@golstats/gsc-game-data 1.0.178 → 1.0.180

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.
@@ -120,7 +120,7 @@
120
120
  * Vue 3 Carousel 0.3.1
121
121
  * (c) 2023
122
122
  * @license MIT
123
- */const Jc={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"}},yj={itemsToShow:{default:Jc.itemsToShow,type:Number},itemsToScroll:{default:Jc.itemsToScroll,type:Number},wrapAround:{default:Jc.wrapAround,type:Boolean},throttle:{default:Jc.throttle,type:Number},snapAlign:{default:Jc.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Jc.transition,type:Number},breakpoints:{default:Jc.breakpoints,type:Object},autoplay:{default:Jc.autoplay,type:Number},pauseAutoplayOnHover:{default:Jc.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Jc.mouseDrag,type:Boolean},touchDrag:{default:Jc.touchDrag,type:Boolean},dir:{default:Jc.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Jc.i18n,type:Object},settings:{default(){return{}},type:Object}};function Nmt({config:e,slidesCount:a}){const{snapAlign:i,wrapAround:N,itemsToShow:L=1}=e;if(N)return Math.max(a-1,0);let u;switch(i){case"start":u=a-L;break;case"end":u=a-1;break;case"center":case"center-odd":u=a-Math.ceil((L-.5)/2);break;case"center-even":u=a-Math.ceil(L/2);break;default:u=0;break}return Math.max(u,0)}function Bmt({config:e,slidesCount:a}){const{wrapAround:i,snapAlign:N,itemsToShow:L=1}=e;let u=0;if(i||L>a)return u;switch(N){case"start":u=0;break;case"end":u=L-1;break;case"center":case"center-odd":u=Math.floor((L-1)/2);break;case"center-even":u=Math.floor((L-2)/2);break;default:u=0;break}return u}function O9({val:e,max:a,min:i}){return a<i?e:Math.min(Math.max(e,i),a)}function Omt({config:e,currentSlide:a,slidesCount:i}){const{snapAlign:N,wrapAround:L,itemsToShow:u=1}=e;let g=a;switch(N){case"center":case"center-odd":g-=(u-1)/2;break;case"center-even":g-=(u-2)/2;break;case"end":g-=u-1;break}return L?g:O9({val:g,max:i-u,min:0})}function vj(e){return e?e.reduce((a,i)=>{var N;return i.type===t.Fragment?[...a,...vj(i.children)]:((N=i.type)===null||N===void 0?void 0:N.name)==="CarouselSlide"?[...a,i]:a},[]):[]}function z9({val:e,max:a,min:i=0}){return e>a?z9({val:e-(a+1),max:a,min:i}):e<i?z9({val:e+(a+1),max:a,min:i}):e}function zmt(e,a){let i;return a?function(...N){const L=this;i||(e.apply(L,N),i=!0,setTimeout(()=>i=!1,a))}:e}function Lmt(e,a){let i;return function(...N){i&&clearTimeout(i),i=setTimeout(()=>{e(...N),i=null},a)}}function Fmt(e="",a={}){return Object.entries(a).reduce((i,[N,L])=>i.replace(`{${N}}`,String(L)),e)}var Dmt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Jc))),a=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Fmt(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:i.value}))}}),Vmt=t.defineComponent({name:"Carousel",props:yj,setup(e,{slots:a,emit:i,expose:N}){var L;const u=t.ref(null),g=t.ref([]),n=t.ref(0),b=t.ref(0),m=t.reactive(Object.assign({},Jc));let r=Object.assign({},Jc),v;const _=t.ref((L=e.modelValue)!==null&&L!==void 0?L:0),c=t.ref(0),s=t.ref(0),o=t.ref(0),l=t.ref(0);let d,h;t.provide("config",m),t.provide("slidesCount",b),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",l),t.provide("slideWidth",n);function p(){v=Object.assign({},e.breakpoints),r=Object.assign(Object.assign(Object.assign({},r),e),{i18n:Object.assign(Object.assign({},r.i18n),e.i18n),breakpoints:void 0}),y(r)}function f(){if(!v||!Object.keys(v).length)return;const te=Object.keys(v).map(se=>Number(se)).sort((se,he)=>+he-+se);let ee=Object.assign({},r);te.some(se=>{const he=window.matchMedia(`(min-width: ${se}px)`).matches;return he&&(ee=Object.assign(Object.assign({},ee),v[se])),he}),y(ee)}function y(te){Object.entries(te).forEach(([ee,se])=>m[ee]=se)}const w=Lmt(()=>{f(),x()},16);function x(){if(!u.value)return;const te=u.value.getBoundingClientRect();n.value=te.width/m.itemsToShow}function M(){b.value<=0||(s.value=Math.ceil((b.value-1)/2),o.value=Nmt({config:m,slidesCount:b.value}),l.value=Bmt({config:m,slidesCount:b.value}),m.wrapAround||(_.value=O9({val:_.value,max:o.value,min:l.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),f(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{h&&clearTimeout(h),d&&clearInterval(d),window.removeEventListener("resize",w,{passive:!0})});let k=!1;const T={x:0,y:0},S={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),P=t.ref(!1),C=()=>{E.value=!0},z=()=>{E.value=!1};function I(te){["INPUT","TEXTAREA","SELECT"].includes(te.target.tagName)||(k=te.type==="touchstart",k||te.preventDefault(),!(!k&&te.button!==0||j.value)&&(T.x=k?te.touches[0].clientX:te.clientX,T.y=k?te.touches[0].clientY:te.clientY,document.addEventListener(k?"touchmove":"mousemove",O,!0),document.addEventListener(k?"touchend":"mouseup",D,!0)))}const O=zmt(te=>{P.value=!0,S.x=k?te.touches[0].clientX:te.clientX,S.y=k?te.touches[0].clientY:te.clientY;const ee=S.x-T.x,se=S.y-T.y;A.y=se,A.x=ee},m.throttle);function D(){const te=m.dir==="rtl"?-1:1,ee=Math.sign(A.x)*.4,se=Math.round(A.x/n.value+ee)*te;if(se&&!k){const he=ce=>{ce.stopPropagation(),window.removeEventListener("click",he,!0)};window.addEventListener("click",he,!0)}q(_.value-se),A.x=0,A.y=0,P.value=!1,document.removeEventListener(k?"touchmove":"mousemove",O,!0),document.removeEventListener(k?"touchend":"mouseup",D,!0)}function V(){!m.autoplay||m.autoplay<=0||(d=setInterval(()=>{m.pauseAutoplayOnHover&&E.value||$()},m.autoplay))}function R(){d&&(clearInterval(d),d=null),V()}const j=t.ref(!1);function q(te){const ee=m.wrapAround?te:O9({val:te,max:o.value,min:l.value});_.value===ee||j.value||(i("slide-start",{slidingToIndex:te,currentSlideIndex:_.value,prevSlideIndex:c.value,slidesCount:b.value}),j.value=!0,c.value=_.value,_.value=ee,h=setTimeout(()=>{if(m.wrapAround){const se=z9({val:ee,max:o.value,min:0});se!==_.value&&(_.value=se,i("loop",{currentSlideIndex:_.value,slidingToIndex:te}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:c.value,slidesCount:b.value}),j.value=!1,R()},m.transition))}function $(){q(_.value+m.itemsToScroll)}function G(){q(_.value-m.itemsToScroll)}const Z={slideTo:q,next:$,prev:G};t.provide("nav",Z),t.provide("isSliding",j);const H=t.computed(()=>Omt({config:m,currentSlide:_.value,slidesCount:b.value}));t.provide("slidesToScroll",H);const Y=t.computed(()=>{const te=m.dir==="rtl"?-1:1,ee=H.value*n.value*te;return{transform:`translateX(${A.x-ee}px)`,transition:`${j.value?m.transition:0}ms`,margin:m.wrapAround?`0 -${b.value*n.value}px`:"",width:"100%"}});function X(){p(),f(),M(),x(),R()}Object.keys(yj).forEach(te=>{["modelValue"].includes(te)||t.watch(()=>e[te],X)}),t.watch(()=>e.modelValue,te=>{te!==_.value&&q(Number(te))}),t.watch(b,M),i("before-init"),p();const le={config:m,slidesCount:b,slideWidth:n,next:$,prev:G,slideTo:q,currentSlide:_,maxSlide:o,minSlide:l,middleSlide:s};N({updateBreakpointsConfigs:f,updateSlidesData:M,updateSlideWidth:x,initDefaultConfigs:p,restartCarousel:X,slideTo:q,next:$,prev:G,nav:Z,data:le});const ie=a.default||a.slides,ae=a.addons,re=t.reactive(le);return()=>{const te=vj(ie==null?void 0:ie(re)),ee=(ae==null?void 0:ae(re))||[];te.forEach((me,fe)=>me.props.index=fe);let se=te;if(m.wrapAround){const me=te.map((ye,xe)=>t.cloneVNode(ye,{index:-te.length+xe,isClone:!0,key:`clone-before-${xe}`})),fe=te.map((ye,xe)=>t.cloneVNode(ye,{index:te.length+xe,isClone:!0,key:`clone-after-${xe}`}));se=[...me,...te,...fe]}g.value=te,b.value=Math.max(te.length,1);const he=t.h("ol",{class:"carousel__track",style:Y.value,onMousedownCapture:m.mouseDrag?I:null,onTouchstartPassiveCapture:m.touchDrag?I:null},se),ce=t.h("div",{class:"carousel__viewport"},he);return t.h("section",{ref:u,class:{carousel:!0,"is-sliding":j.value,"is-dragging":P.value,"is-hover":E.value,"carousel--rtl":m.dir==="rtl"},dir:m.dir,"aria-label":m.i18n.ariaGallery,tabindex:"0",onMouseenter:C,onMouseleave:z},[ce,ee,t.h(Dmt)])}}}),_j;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(_j||(_j={}));var Rmt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const i=t.inject("config",t.reactive(Object.assign({},Jc))),N=t.inject("currentSlide",t.ref(0)),L=t.inject("slidesToScroll",t.ref(0)),u=t.inject("isSliding",t.ref(!1)),g=()=>e.index===N.value,n=()=>e.index===N.value-1,b=()=>e.index===N.value+1,m=()=>{const r=Math.floor(L.value),v=Math.ceil(L.value+i.itemsToShow-1);return e.index>=r&&e.index<=v};return()=>{var r;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":m(),"carousel__slide--active":g(),"carousel__slide--prev":n(),"carousel__slide--next":b(),"carousel__slide--sliding":u.value},"aria-hidden":!m()},(r=a.default)===null||r===void 0?void 0:r.call(a))}}});const $mt=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},jmt=e=>(t.pushScopeId("data-v-cf3e4ab5"),e=e(),t.popScopeId(),e),Umt={class:"gsc-carousel"},Hmt={key:0},Gmt=jmt(()=>t.createElementVNode("div",null,"no hay",-1)),Wmt=[Gmt],qmt={class:"gsc-carousel__2d__slides"},Ymt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zmt=["fill"],Jmt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xmt=["fill"],Kmt={class:"gsc-carousel__2d__navigation"},Qmt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e0t=["stroke"],t0t={key:1,class:"gsc-carousel__2d__navigation__pagination"},n0t=["onClick"],a0t={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r0t=["stroke"],i0t={__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(a=>a 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:a,emit:i}){const N=e;t.useCssVars(o=>({a79d2c9e:e.slideLeftArrowBackgroundImage,"227709fa":e.slidesArrowsLeftAndRight,c388b60c:e.slideRightArrowBackgroundImage,"257da7fc":e.marginTop,"1c9922a0":e.secondarySlidesOpacity}));const L=t.ref(null),u=t.ref({}),g=t.ref(0),n=t.ref(!1);t.watch(L,o=>{o&&n.value?(n.value=!1,b(N.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>N.currentItemIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>N.items,o=>{L.value?b(o):n.value=!0},{immediate:!0});function b(o){if(o&&o.length&&L.value){if(N.defaultItemByProp){const l=N.items.findIndex(d=>d[N.defaultItemByProp.propName]===N.defaultItemByProp.value);l!==-1?(g.value=l,u.value=o[l]):(g.value=0,u.value=o[0])}else g.value=N.defaultItemByIndex,u.value=o[N.defaultItemByIndex];L.value.slideTo&&L.value.slideTo(g.value),i("input",{selectedItem:u.value,selectedItemIndex:g.value})}}function m(){L.value&&L.value.next()}function r(){L.value&&L.value.prev()}function v(){L.value&&L.value.updateSlideWidth()}function _(o){L.value&&L.value.slideTo(o)}function c(o){L.value.slideTo(o)}function s(o){const l=o.slidingToIndex<0?N.items.length-1:o.slidingToIndex===N.items.length?0:o.slidingToIndex;g.value=l,u.value=N.items[l],i("update:currentItemIndex",l),i("input",{selectedItem:u.value,selectedItemIndex:g.value})}return a({prev:r,next:m,updateSlideWidth:v,slideTo:_}),(o,l)=>(t.openBlock(),t.createElementBlock("div",Umt,[N.is3d?(t.openBlock(),t.createElementBlock("div",Hmt,Wmt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",qmt,[t.createVNode(t.unref(Vmt),{ref_key:"carousel2d",ref:L,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:s},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,h)=>(t.openBlock(),t.createBlock(t.unref(Rmt),{key:h},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:d},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:l[0]||(l[0]=d=>L.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Ymt,[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,Zmt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:l[1]||(l[1]=d=>m())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Jmt,[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,Xmt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Kmt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:l[2]||(l[2]=d=>r())},[(t.openBlock(),t.createElementBlock("svg",Qmt,[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:N.arrowsColor},null,8,e0t)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",t0t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${h}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${N.navigationHeight}px`,width:`${g.value===h?N.navigationActiveWidth:N.navigationActiveWidth/2}px`,borderRadius:`${N.navigationBorderRadius}px`,backgroundColor:`${g.value===h?N.navigationActiveColor:N.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:p=>c(h)},null,12,n0t))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:l[3]||(l[3]=d=>L.value.next())},[(t.openBlock(),t.createElementBlock("svg",a0t,[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:N.arrowsColor},null,8,r0t)]))])):t.createCommentVNode("",!0)])],2))]))}},o0t=$mt(i0t,[["__scopeId","data-v-cf3e4ab5"]]),L9=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i};let bj=null;const F9={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)bj=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),bj.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},xj=()=>{t.useCssVars(e=>({"9d0f46f6":e.colorBackgroundHome+"45",ec0e4054:e.colorBackgroundAway+"45","45ffc585":e.colorBackgroundHome,"45fcb394":e.colorBackgroundAway}))},wj=F9.setup;F9.setup=wj?(e,a)=>(xj(),wj(e,a)):xj;const R3=e=>(t.pushScopeId("data-v-71797e9d"),e=e(),t.popScopeId(),e),s0t=R3(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),l0t=[s0t],c0t=R3(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),d0t=["src"],u0t=R3(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),h0t=R3(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),p0t=["src"],f0t=["src"],m0t={class:"text-container"};function g0t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(u.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(u.playbutton),onClick:a[0]||(a[0]=(...g)=>u.onclickPlayVideos&&u.onclickPlayVideos(...g))},l0t,2),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(u.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(u.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),c0t,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,d0t),t.createElementVNode("div",{class:t.normalizeClass([u.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(u.baselogoright)},null,2),u0t,h0t,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(u.teamlogo)},null,10,p0t),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(u.logoright)},null,10,f0t),t.createElementVNode("div",m0t,[t.createElementVNode("span",{class:t.normalizeClass(u.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(u.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const y0t=L9(F9,[["render",g0t],["__scopeId","data-v-71797e9d"]]);let kj=null;const D9={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},seasonnameContainer(){const e=this.gamesContainerWidth;return e<=280?"seasonname280":e<=400?"seasonname400":e<=540?"seasonname540":e<=650?"seasonname650":"seasonname"},matchboxContainer(){const e=this.gamesContainerWidth;return e<=400?"matchbox400":e<=540?"matchbox540":e<=650?"matchbox650":"matchbox"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)kj=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),kj.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Cj=()=>{t.useCssVars(e=>({"5ea1d638":e.colorBackgroundHome,"5ea7fa1a":e.colorBackgroundAway,"74c14a08":e.colorBackgroundAway+"62","25c26638":e.colorBackgroundHome+"36"}))},Tj=D9.setup;D9.setup=Tj?(e,a)=>(Cj(),Tj(e,a)):Cj;const $3=e=>(t.pushScopeId("data-v-83c7df16"),e=e(),t.popScopeId(),e),v0t=$3(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),_0t=$3(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),b0t=[_0t],x0t={class:"player-container"},w0t=["src"],k0t=["src"],C0t=["src"],T0t={class:"container-score"},S0t=["src"],E0t=["src"],A0t=["src"],M0t=$3(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),I0t=$3(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function P0t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(u.thumbnailhighlights)},[v0t,t.createElementVNode("div",{class:t.normalizeClass(u.playbutton),onClick:a[0]||(a[0]=(...g)=>u.onclickPlayVideos&&u.onclickPlayVideos(...g))},b0t,2),t.createElementVNode("div",x0t,[t.createElementVNode("div",{class:t.normalizeClass(u.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(u.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(u.matchboxContainer)},t.toDisplayString(i.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(u.seasonnameContainer)},t.toDisplayString(i.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(u.seasoncontainer)},t.toDisplayString(i.date),3)],2),i.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(u.texttitle)},t.toDisplayString(i.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(u.texttitle2)},t.toDisplayString(i.nameCategory),3)),i.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:i.photoProfile,class:t.normalizeClass(u.playerimage)},null,10,w0t)):t.createCommentVNode("",!0),i.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:i.photoProfile,alt:""},null,8,k0t)):t.createCommentVNode("",!0),i.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:i.photoProfile,class:"img-number"},null,8,C0t)):t.createCommentVNode("",!0),t.createElementVNode("div",T0t,[t.createElementVNode("div",{class:t.normalizeClass(u.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(u.teamname)},t.toDisplayString(i.nameHomeTeam),3),t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(u.teamlogo)},null,10,S0t),t.createElementVNode("span",{class:t.normalizeClass(u.teamscore)},t.toDisplayString(i.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(u.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(u.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(u.teamscore)},t.toDisplayString(i.scoreAway),3),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(u.teamlogo)},null,10,E0t),t.createElementVNode("span",{class:t.normalizeClass(u.teamname)},t.toDisplayString(i.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,A0t),M0t,I0t],2)}const N0t={components:{GSCCarousel:o0t,GSCThumbnailHighlightGameHistoric:y0t,GSCThumbnailHighlightGamePlayer:L9(D9,[["render",P0t],["__scopeId","data-v-83c7df16"]])},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,a){return e.home_team===(a||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const a=new Date(e),i=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][a.getUTCDay()],N=a.getUTCDate(),L=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][a.getUTCMonth()];return`${i} ${N} de ${L}`}else return""},onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,42,54]:a=e.data.category:a=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:a=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let N={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:i,advancedFilter:{playListTitle:""}};e.data.category!==0&&(N.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",N)},play(e){this.$emit("play",e)},async getData(e){const a=Pmt.create({headers:{Authorization:`${this.token}`}});var i=[],N={};if(e.type=="player"){const L=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);if(L.data.seasons[e.season])for(let u=0;u<L.data.seasons[e.season].games_played.length;u++)N={playingAs:this.getPlayingAs(L.data.seasons[e.season].games_played[u],L.data.team_id),category:0,player_id:L.data.player_id,position_id:L.data.position_id,color:L.data.info_thumbnails.colors.background_color,photo_profile:L.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.player_in_action[0]:L.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games_played[u].home_team+".png",player_name:L.data.seasons[e.season].games_played[u].home_team_acronym+" "+L.data.seasons[e.season].games_played[u].home_team_score+" : "+L.data.seasons[e.season].games_played[u].visiting_team_score+" "+L.data.seasons[e.season].games_played[u].visiting_team_acronym,team_id:L.data.team_id,has_relevants:L.data.seasons[e.season].games_played[u].has_relevants,team_id_b:L.data.seasons[e.season].games_played[u].home_team,season_id:L.data.seasons[e.season].games_played[u].season_id,name:L.data.seasons[e.season].games_played[u].player_name,seasonname:L.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:L.data.seasons[e.season].games_played[u].game_id,match:L.data.seasons[e.season].games_played[u].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(L.data.seasons[e.season].games_played[u].date),scorehome:L.data.seasons[e.season].games_played[u].home_team_score,scoreaway:L.data.seasons[e.season].games_played[u].visiting_team_score,hometeamacronym:L.data.seasons[e.season].games_played[u].home_team_acronym,visitingteamacronym:L.data.seasons[e.season].games_played[u].visiting_team_acronym,background:L.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.background_player_in_action[0]:L.data.info_thumbnails.player_profile,backgroundhome:L.data.seasons[e.season].games_played[u].info_thumbnails.home_colors.background_color,backgroundaway:L.data.seasons[e.season].games_played[u].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games_played[u].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games_played[u].visiting_team+".png",total:L.data.seasons[e.season].games_played[u].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.seasons[e.season].games_played[u].home_team+"_"+L.data.seasons[e.season].games_played[u].season_id+"_r1.jpg"},i.push(N);else for(let u=0;u<L.data.national_seasons[e.season].games_played.length;u++)N={playingAs:this.getPlayingAs(L.data.national_seasons[e.season].games_played[u],L.data.team_id),category:0,player_id:L.data.player_id,position_id:L.data.position_id,color:L.data.info_thumbnails.colors.background_color,photo_profile:L.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.player_in_action[0]:L.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.national_seasons[e.season].games_played[u].home_team+".png",player_name:L.data.national_seasons[e.season].games_played[u].home_team_acronym+" "+L.data.national_seasons[e.season].games_played[u].home_team_score+" : "+L.data.national_seasons[e.season].games_played[u].visiting_team_score+" "+L.data.national_seasons[e.season].games_played[u].visiting_team_acronym,team_id:L.data.team_id,has_relevants:L.data.national_seasons[e.season].games_played[u].has_relevants,team_id_b:L.data.national_seasons[e.season].games_played[u].home_team,season_id:L.data.national_seasons[e.season].games_played[u].season_id,name:L.data.national_seasons[e.season].games_played[u].player_name,seasonname:L.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:L.data.national_seasons[e.season].games_played[u].game_id,match:L.data.national_seasons[e.season].games_played[u].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(L.data.national_seasons[e.season].games_played[u].date),scorehome:L.data.national_seasons[e.season].games_played[u].home_team_score,scoreaway:L.data.national_seasons[e.season].games_played[u].visiting_team_score,hometeamacronym:L.data.national_seasons[e.season].games_played[u].home_team_acronym,visitingteamacronym:L.data.national_seasons[e.season].games_played[u].visiting_team_acronym,background:L.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.background_player_in_action[0]:L.data.info_thumbnails.player_profile,backgroundhome:L.data.national_seasons[e.season].games_played[u].info_thumbnails.home_colors.background_color,backgroundaway:L.data.national_seasons[e.season].games_played[u].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.national_seasons[e.season].games_played[u].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.national_seasons[e.season].games_played[u].visiting_team+".png",total:L.data.national_seasons[e.season].games_played[u].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.national_seasons[e.season].games_played[u].home_team+"_"+L.data.national_seasons[e.season].games_played[u].season_id+"_r1.jpg"},i.push(N)}else if(e.type=="historic"){const L=await a.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game);for(let g=0;g<L.data.plays.length;g++)N={teamId:L.data.plays[g][2],player:"Jornada "+L.data.plays[g][6],player_name:L.data.plays[g][4],season_id:L.data.plays[g][31],game_id:L.data.plays[g][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},i.length>0?!i.filter(n=>n.game_id===L.data.plays[g][3]).length>0&&i.push(N):i.push(N);const u=L.data.thumbnails;for(let g=0;g<i.length;g++){const n=Math.floor(Math.random()*u[i[g].game_id].info_thumbnails.images.background_default_games.length);i[g].background="https://golstatsimages.blob.core.windows.net/images-library/"+u[i[g].game_id].info_thumbnails.images.background_default_games[n],i[g].backgroundhome=u[i[g].game_id].info_thumbnails.home_colors.background_color,i[g].backgroundaway=u[i[g].game_id].info_thumbnails.away_colors.background_color,i[g].logoaway="https://az755631.vo.msecnd.net/teams-150/"+u[i[g].game_id].info_thumbnails.away_colors.team_id+".png",i[g].logohome="https://az755631.vo.msecnd.net/teams-150/"+u[i[g].game_id].info_thumbnails.home_colors.team_id+".png",i[g].match=u[i[g].game_id].matchday_name.replace("Matchday","Jor"),i[g].playingAs=u[i[g].game_id].info_thumbnails.home_colors.team_id===i[g].teamId?1:2,i[g].seasonname=u[i[g].game_id].season_name,i[g].score=u[i[g].game_id].score[0]+" - "+u[i[g].game_id].score[1],i[g].category=0}}else{const L=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let u=0;u<L.data.seasons[e.season].games.length;u++){const g=Math.floor(Math.random()*L.data.seasons[e.season].games[u].info_thumbnails.images.background_default_games.length);N={playingAs:this.getPlayingAs(L.data.seasons[e.season].games[u],L.data.team_id),category:0,game_id:L.data.seasons[e.season].games[u].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[u].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[u].home_team+".png",player_name:L.data.seasons[e.season].games[u].home_team_acronym+" "+L.data.seasons[e.season].games[u].home_team_score+" : "+L.data.seasons[e.season].games[u].visiting_team_score+" "+L.data.seasons[e.season].games[u].visiting_team_acronym,team_id_b:L.data.seasons[e.season].games[u].home_team,team_id:L.data.team_id,season_id:L.data.seasons[e.season].games[u].season_id,name:"",seasonname:L.data.seasons[e.season].name,match:L.data.seasons[e.season].games[u].matchday_name.replace("Matchday","Jor"),score:L.data.seasons[e.season].games[u].home_team_score+" : "+L.data.seasons[e.season].games[u].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.seasons[e.season].games[u].info_thumbnails.images.background_default_games[g],backgroundhome:L.data.seasons[e.season].games[u].info_thumbnails.home_colors.background_color,backgroundaway:L.data.seasons[e.season].games[u].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[u].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[u].visiting_team+".png",total:L.data.seasons[e.season].games[u].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.seasons[e.season].games[u].home_team+"_"+L.data.seasons[e.season].games[u].season_id+"_r1.jpg"},i.push(N)}}this.printData=i},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const a of e)this.highlightsWidth=a.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},B0t={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function O0t(e,a,i,N,L,u){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),n=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),b=t.resolveComponent("GSCCarousel");return u.printDataFiltered.length>0&&i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",B0t,[t.createVNode(b,t.mergeProps(u.carouselProps,{items:u.printDataFiltered,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:"0.2"}),{default:t.withCtx(({item:m})=>[i.data.type=="team"||i.data.type=="historic"?(t.openBlock(),t.createBlock(g,{key:0,items:m,"color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"logo-home":m.logohome,"logo-away":m.logoaway,background:m.background,matchday:m.match,onOnclickPlayVideos:r=>u.onclickPlayVideos({data:m,type:1}),"season-name":m.seasonname,score:m.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(n,{key:1,type:"player","name-player":m.name,"type-style":"game","color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"type-img":"0",date:m.date,"season-name":m.seasonname,matchday:m.match,background:m.background,"name-home-team":m.hometeamacronym,"name-away-team":m.visitingteamacronym,"name-category":i.title,onOnclickPlayVideos:r=>u.onclickPlayVideos({data:m,type:2}),"logo-away":m.logoaway,"logo-home":m.logohome,"score-home":m.scorehome,"photo-profile":m.photo_profile,"score-away":m.scoreaway},null,8,["name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)):t.createCommentVNode("",!0)}const z0t=L9(N0t,[["render",O0t]]),_cn="",bcn="",xcn="",L0t={components:{GSCSlider:J1},props:{game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){e.game_status==1?this.getDataProminent(e.gameId):this.getDataProminentPrematch(e.gameId)}}},data(){return{dataProminent:[],dataProminentAll:[],tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"}},computed:{},methods:{onclickPlayVideos(e){const a=[1,2,3];let i={seasonId:this.dataProminentAll.season_id,mainSectionType:1,playListType:e.data.is_team==1?3:2,categoryIds:e.data.categories,gameIds:[this.dataProminentAll._id],playerIds:e.data.is_team!=1?[e.data.player_id]:[],goalkeeperIds:[],teamId:e.data.is_team==1?e.data.team_id:0,matchResult:a,playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",i)},hasDecimal(e){return typeof e!="number"?!1:e.toString().includes(".")},formatNumber(e){if(typeof e=="number")if(this.hasDecimal(e)){const a=Math.round(e*10)/10;return Number.isInteger(a)?a.toString()+"%":a.toFixed(1)+"%"}else return e+"%";else return"0"},formatNumber2(e){if(typeof e=="number")if(this.hasDecimal(e)){const a=Math.round(e*10)/10;return Number.isInteger(a)?a.toString()+"%":a.toFixed(1)+"%"}else return e;else return"0"},textoConNegritas(e){if(!e)return"";const a=e.split(/(\*.*?\*)/g).filter(L=>L.trim()!=="");let i=Math.ceil(a.length/2),N="";return a.forEach((L,u)=>{u===i&&(N+="<br/>"),L.startsWith("*")&&L.endsWith("*")?N+=`<span class="text-bold">${L.slice(1,-1)}</span>`:L.trim()!==""&&(N+=`<span class="text">${L}</span>`)}),N},async getDataProminentPrematch(e){try{const i=await Il.create({headers:{Authorization:`${this.tokenPremium}`}}).get(" https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch");this.dataProminent=i.data.data,this.dataProminentAll=i.data}catch(a){return Promise.reject(a)}},async getDataProminent(e){try{const i=await Il.create({headers:{Authorization:`${this.tokenPremium}`}}).get("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId);this.dataProminent=i.data.data,this.dataProminentAll=i.data}catch(a){return Promise.reject(a)}}}},Sj=e=>(t.pushScopeId("data-v-cfd26d89"),e=e(),t.popScopeId(),e),F0t={class:"data-prominent-game"},D0t=Sj(()=>t.createElementVNode("div",{class:"title-data"},"Este partido:",-1)),V0t={class:"item-data-text"},R0t=["innerHTML"],$0t={class:"contain-stats-control"},j0t={key:0,class:"title-total"},U0t={key:1,class:"item-total"},H0t=["onClick"],G0t={"data-v-83c7df16":"",style:{"margin-left":"-1px"},xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},W0t=[Sj(()=>t.createElementVNode("path",{"data-v-83c7df16":"",d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"},null,-1))];function q0t(e,a,i,N,L,u){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",F0t,[D0t,t.createVNode(g,{height:"115px",pxScroll:272,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.dataProminent,(n,b)=>(t.openBlock(),t.createElementBlock("div",{key:b,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+n.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(n.player_id?"background-image:url(https://az755631.vo.msecnd.net/players-profile/"+n.player_id+".png); border: solid 1.4px "+n.custom_colors.background_color:"background-image:url(https://az755631.vo.msecnd.net/teams-80/"+n.team_id+".png);border: solid 1.4px "+n.custom_colors.background_color)},null,4),n.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+n.custom_colors.font_color)},[n.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[n.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(u.formatNumber(n.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(u.formatNumber(n.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(u.formatNumber2(n.total)),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",V0t,[t.createElementVNode("div",{class:"container-text",innerHTML:u.textoConNegritas(n.description)},null,8,R0t),t.createElementVNode("div",$0t,[n.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",j0t,"TOTAL:")):t.createCommentVNode("",!0),n.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",U0t,[n.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(u.formatNumber(n.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(n.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(u.formatNumber2(n.total)),1)],64))],64))])):t.createCommentVNode("",!0),i.canPlayVideos&&n.show_video==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle(n.title=="Productividad"?"margin-left: 0px !important;":""),onClick:m=>u.onclickPlayVideos({data:n})},[(t.openBlock(),t.createElementBlock("svg",G0t,W0t))],12,H0t)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}const Y0t=Jr(L0t,[["render",q0t],["__scopeId","data-v-cfd26d89"]]),kcn="";g0();const Z0t={components:{GSCCheckbox:v0},props:{game:{type:Object,default:()=>{}},widthSection:{type:Number,default:0},teamSelected:{type:Object,default:()=>({})}},watch:{game:{deep:!0,immediate:!0,async handler(e){e.game_status==1?(this.getDataPosession(e.gameId),await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e})):this.getDataPosessionPrematch(e.seasonId)}}},data(){return{areInactiveVisible:!1,dataPosession:[],arrTeams:[],url:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/posessions/",urlPrematch:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/seasons/",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"}},computed:{...Bd("nextGeneral",["gameForAnalysis","seasonId"]),...Al("nextGeneral",["arrayFilledDataSortedByPriority"])},methods:{async getDataPosession(){try{const a=await Il.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+this.game.gameId);this.dataPosession=a.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const i=await Il.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlPrematch+e+"/posessions");for(const N in i.data.teams)i.data.teams.hasOwnProperty(N)&&(this.arrTeams[N]=i.data.teams[N])}catch(a){return Promise.reject(a)}},onCheckInactive(e){e?this.areInactiveVisible=!0:this.areInactiveVisible=!1},deleteDecimalZero(e){const a=typeof e=="string"?parseFloat(e):e;return typeof a=="number"&&!isNaN(a)?a%1===0?a:a%1===0?Math.floor(a):a:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},getTeamValue(e,a,i){if(!a.game_id)return this.objectZeroValues;const N=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,L=e[i].accomplished.avgPostGame/N;return e[i].accomplished.avgPostGame?{numberValue:L<1?L*100:L,numberBarPercent:e[i].accomplished.avgPostGame/N}:this.objectZeroValues}},created(){this.$store.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})}},p1=e=>(t.pushScopeId("data-v-a4e8feb0"),e=e(),t.popScopeId(),e),J0t={key:0,class:"field-posesion-prominent"},X0t={key:0,class:"title"},K0t={class:"info-data-item"},Q0t={class:"item-indicador"},e1t={class:"item-indicador-value"},t1t={key:0},n1t=p1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),a1t={key:0,class:"inactiveInfo"},r1t={class:"info-data-item"},i1t={class:"item-indicador"},o1t={class:"item-indicador-value"},s1t=p1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),l1t={class:"info-data-item"},c1t={class:"item-indicador"},d1t={class:"item-indicador-value"},u1t={key:0},h1t=p1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),p1t={class:"info-data-item"},f1t={class:"item-indicador"},m1t={class:"item-indicador-value"},g1t=p1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),y1t={key:0,class:"inactiveInfo"},v1t={class:"info-data-item"},_1t={class:"item-indicador"},b1t={class:"item-indicador-value"},x1t=p1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),w1t={class:"info-data-item"},k1t={class:"item-indicador"},C1t={class:"item-indicador-value"},T1t=p1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1));function S1t(e,a,i,N,L,u){const g=t.resolveComponent("GSCCheckbox");return e.arrayFilledDataSortedByPriority.length>0?(t.openBlock(),t.createElementBlock("div",J0t,[i.widthSection>760?(t.openBlock(),t.createElementBlock("div",X0t,"Porcentajes")):t.createCommentVNode("",!0),i.game.game_status==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>760?"field-container":i.widthSection>520?"field-container-movil":i.widthSection>440?"field-container-movil-2":i.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[L.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>1020?"time-show":i.widthSection>920?"time-show-table-xl":i.widthSection>880?"time-show-table-xl-2":i.widthSection>820?"time-show-table-xl-3":i.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":u.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>1020?"field-data-container":i.widthSection>920?"field-data-container-xl":i.widthSection>880?"field-data-container-xl-2":i.widthSection>820?"field-data-container-xl-3":i.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+i.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",K0t,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Q0t,[t.createElementVNode("div",e1t,[L.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[L.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.dataPosession.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[u.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",t1t,t.toDisplayString(u.deleteDecimalZero(u.formatNumbers(u.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),n1t]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. "+t.toDisplayString(i.game.homeTeam.acronym),3)],2)])],2),L.areInactiveVisible&&L.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",a1t,[t.createElementVNode("div",r1t,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",i1t,[t.createElementVNode("div",o1t,t.toDisplayString(L.dataPosession.active_time.inactive_time),1),s1t]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},[i.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+i.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",l1t,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",c1t,[t.createElementVNode("div",d1t,[L.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[L.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.dataPosession.away),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[u.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",u1t,t.toDisplayString(u.deleteDecimalZero(u.formatNumbers(u.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),h1t]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. "+t.toDisplayString(i.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[L.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>760?"field-container":i.widthSection>520?"field-container-movil":i.widthSection>440?"field-container-movil-2":i.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[L.arrTeams[i.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>1020?"time-show":i.widthSection>920?"time-show-table-xl":i.widthSection>880?"time-show-table-xl-2":i.widthSection>820?"time-show-table-xl-3":i.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":u.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>1020?"field-data-container":i.widthSection>920?"field-data-container-xl":i.widthSection>880?"field-data-container-xl-2":i.widthSection>820?"field-data-container-xl-3":i.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(L.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+i.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",p1t,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",f1t,[t.createElementVNode("div",m1t,[L.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.arrTeams[i.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.arrTeams[i.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.arrTeams[i.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.arrTeams[i.teamSelected.teamId].home),1)],64))],64))]),g1t]),i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. "+t.toDisplayString(i.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. Rival",2))],2)])],2),L.areInactiveVisible&&L.arrTeams[i.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",y1t,[t.createElementVNode("div",v1t,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",_1t,[t.createElementVNode("div",b1t,t.toDisplayString(L.arrTeams[i.teamSelected.teamId].active_time.inactive_time),1),x1t]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},[i.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(L.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+i.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",w1t,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",k1t,[t.createElementVNode("div",C1t,[L.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.arrTeams[i.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.arrTeams[i.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.arrTeams[i.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.arrTeams[i.teamSelected.teamId].home),1)],64))],64))]),T1t]),i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. "+t.toDisplayString(i.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. Rival",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}const E1t=Jr(Z0t,[["render",S1t],["__scopeId","data-v-a4e8feb0"]]),Ccn="",V9={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},Ej=()=>{t.useCssVars(e=>({ec641b3a:e.backgroundColor,"66cc4678":e.widthCircle,"1c5ce009":e.heightCircle}))},Aj=V9.setup;V9.setup=Aj?(e,a)=>(Ej(),Aj(e,a)):Ej;const A1t={key:0,class:"text-left"},M1t=["width","src"],I1t=["checked"],P1t=["width","src"],N1t={key:3,class:"text-right"};function B1t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(u.customText)},[i.textOptionLeft!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",A1t,t.toDisplayString(i.textOptionLeft),1)):t.createCommentVNode("",!0),i.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:i.widthIcons,src:i.iconA},null,8,M1t)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...g)=>u.handleSwitchChange&&u.handleSwitchChange(...g)),checked:L.OptionDefault},null,40,I1t),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([u.customStyle,{"--circle-color":i.circleColorSwitch}])},null,4),i.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:i.widthIcons,src:i.iconB},null,8,P1t)):t.createCommentVNode("",!0),i.textOptionRight!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",N1t,t.toDisplayString(i.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const Mj=Jr(V9,[["render",B1t],["__scopeId","data-v-62d6b055"]]),Tcn="";let Ij=null;const R9={components:{},props:{canPlayVideos:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},isLive:{type:Boolean,default:!0},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Ij=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Ij.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Pj=()=>{t.useCssVars(e=>({"524d4024":e.colorBackgroundHome+"45","2acdc375":e.colorBackgroundAway+"45","60764af4":e.colorBackgroundHome,"607c6ed6":e.colorBackgroundAway}))},Nj=R9.setup;R9.setup=Nj?(e,a)=>(Pj(),Nj(e,a)):Pj;const j3=e=>(t.pushScopeId("data-v-ec876074"),e=e(),t.popScopeId(),e),O1t=[j3(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1))],z1t=j3(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),L1t=["src"],F1t=j3(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),D1t=j3(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),V1t=["src"],R1t=["src"],$1t={class:"text-container"};function j1t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(u.thumbnailhighlights)},[i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.playbutton),onClick:a[0]||(a[0]=(...g)=>u.onclickPlayVideos&&u.onclickPlayVideos(...g))},O1t,2)):t.createCommentVNode("",!0),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(u.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(u.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(u.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),z1t,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,L1t),t.createElementVNode("div",{class:t.normalizeClass([u.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(u.baselogoright)},null,2),F1t,D1t,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(u.teamlogo)},null,10,V1t),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(u.logoright)},null,10,R1t),t.createElementVNode("div",$1t,[t.createElementVNode("span",{class:t.normalizeClass(u.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(u.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const U1t=Jr(R9,[["render",j1t],["__scopeId","data-v-ec876074"]]),Ecn="";let Bj=null;const H1t={components:{GSCThumbnailHighlightGameHistoric:U1t},props:{game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{},data(){return{dataProminent:[],gameInfo:{},gamesContainerWidth:0,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},tournamentId:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let N={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:i,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(N.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",N)},async fillData(){const e=Il.create({headers:{Authorization:`${this.token}`}}),a=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId),i=await e.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId);this.tournamentId=i.data.tournament_id;const N=a.data.games.findIndex(u=>u.game_id===this.game.gameId);this.gameInfo=a.data.games[N];const L=await e.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId);this.item.category=0,this.item.game_id=L.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=L.data.thumbnails[L.data.game_id]?L.data.thumbnails[L.data.game_id].score[0]+" - "+L.data.thumbnails[L.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=L.data.thumbnails[L.data.game_id]?L.data.thumbnails[L.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=L.data.thumbnails[L.data.game_id]?L.data.thumbnails[L.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=L.data.thumbnails[L.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+L.data.thumbnails[L.data.game_id].home_team+".png":"",this.item.logoaway=L.data.thumbnails[L.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+L.data.thumbnails[L.data.game_id].visiting_team+".png":"",this.item.background=L.data.thumbnails[L.data.game_id]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.thumbnails[L.data.game_id].info_thumbnails.images.background_default_games[0]:""},setUpResizeObserver(){if(window.ResizeObserver)Bj=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Bj.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},G1t={class:"highlights-prominent-game",ref:"gamesContainer"},W1t={class:"video-partido-container__highlight"},q1t={key:0,class:"video-partido-container__ribbon"},Y1t={key:1,class:"video-partido-container__description"};function Z1t(e,a,i,N,L,u){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",G1t,[t.createElementVNode("div",W1t,[t.createElementVNode("div",{class:"video-partido-container__content2",style:t.normalizeStyle(L.gamesContainerWidth<=680?"display:block; width: 100%":"display:none")},[L.gamesContainerWidth>0?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(L.gamesContainerWidth>330?"video-partido-container__description2":"video-partido-container__description3")}," Las jugadas más importantes del partido ",2)):t.createCommentVNode("",!0)],4),L.gamesContainerWidth>680?(t.openBlock(),t.createElementBlock("div",{key:0,class:"video-partido-container__content",style:t.normalizeStyle(L.gamesContainerWidth<680?"margin-bottom: 30px;":"margin-bottom: 18px;")},[Object.keys(L.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",q1t,t.toDisplayString(L.tournamentId!=41?L.gameInfo.matchday_name.replace("Matchday","Jornada").replace("de Final","").replace("Playoffs 1","Cuartos de Final Ida").replace("Playoffs 2","Cuartos de Final Vuelta").replace("Playoffs 3","Semifinal Ida").replace("Playoffs 4","Semifinal Vuelta").replace("Playoffs 5","Final Ida").replace("Playoffs 6","Final Vuelta"):L.gameInfo.matchday_name=="Matchday 10"?"Final":L.gameInfo.matchday_name.replace("Matchday 1","16vos Ida").replace("Matchday 2","16vos Vuelta").replace("Matchday 3","8vos Ida").replace("Matchday 4","8vos Vuelta").replace("Matchday 5","4tos Ida").replace("Matchday 6","4tos Vuelta").replace("Matchday 7","Semifinal Ida").replace("Matchday 8","Semifinal Vuelta").replace("Matchday 9","Final").replace("Matchday 10","Final")),1)):t.createCommentVNode("",!0),t.createElementVNode("h2",{class:t.normalizeClass(L.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")},"HIGHLIGHTS DEL",2),t.createElementVNode("h2",{class:t.normalizeClass(L.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")},"PARTIDO",2),L.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("p",Y1t," Las jugadas más importantes del partido ")):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(L.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[L.item.background!=""?(t.openBlock(),t.createBlock(g,{key:0,"color-background-home":L.item.backgroundhome,"color-background-away":L.item.backgroundaway,"logo-home":L.item.logohome,"logo-away":L.item.logoaway,"is-live":!0,"can-play-videos":i.canPlayVideos,background:L.item.background,matchday:L.item.match,"season-name":L.item.seasonname,onOnclickPlayVideos:a[0]||(a[0]=n=>u.onclickPlayVideos({data:L.item,type:1})),score:L.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)])],512)}const J1t=Jr(H1t,[["render",Z1t],["__scopeId","data-v-79ccee9d"]]),$9="/play-icn.svg",Acn="",X1t={name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}};function K1t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",u.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",u.showTooltip]),onClick:a[1]||(a[1]=(...g)=>u.tooltipClick&&u.tooltipClick(...g))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:a[0]||(a[0]=(...g)=>u.closeClick&&u.closeClick(...g))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const Q1t=Jr(X1t,[["render",K1t],["__scopeId","data-v-b5f07af8"]]),Mcn="",egt={class:"game-event__minute"},tgt={class:"game-event__icon"},ngt=["src"],agt="/images/events/",rgt=Jr({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:a}){const i=e,N=t.computed(()=>({"--icon-bottom":i.gameEvent.isHomeTeam?"30px":"-5px","--border-color":i.gameEvent.isSelected?"#336dff":"#747c83","--background-color":i.gameEvent.isSelected?"#336dff":"#0d1d29"})),L=t.computed(()=>{let g="";return i.gameEvent.category_id===18?g="icn-tiros-de-esquina.svg":i.gameEvent.category_id===20?g="icn-tiro-a-porteria.svg":i.gameEvent.category_id===10?g="icn-cambio.svg":i.gameEvent.category_id===21?g="icn-falta.svg":i.gameEvent.category_id===27?g="atajada.svg":i.gameEvent.category_id===17?g="fuera-de-lugar.svg":i.gameEvent.category_id===4||i.gameEvent.category_id===13||i.gameEvent.category_id===14||i.gameEvent.category_id===16||i.gameEvent.category_id===6&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===5&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===1&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===2&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===3&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===7&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===12&&i.gameEvent.event_type_id===1?g="gol.svg":i.gameEvent.category_id==30||i.gameEvent.category_id==31||i.gameEvent.category_id==32||i.gameEvent.category_id==33||i.gameEvent.category_id==34||i.gameEvent.category_id==35||i.gameEvent.category_id==36||i.gameEvent.category_id==37||i.gameEvent.category_id==38||i.gameEvent.category_id==39||i.gameEvent.category_id==40?g="var.png":i.gameEvent.category_id===28?g="tiempo-agregado.svg":i.gameEvent.category_id===26?g="jugada-peligrosa.svg":i.gameEvent.category_id===22?g="penal-marcado.svg":i.gameEvent.category_id===15||i.gameEvent.category_id===23?g="penal-fallado.svg":i.gameEvent.category_id===8?g="icn-tarjeta-amarilla.svg":i.gameEvent.category_id===9?g="icn-tarjeta-roja.svg":g="generic.svg",`${agt}${g}`});function u(){a("click-event",i.gameEvent)}return(g,n)=>(t.openBlock(),t.createElementBlock("div",{class:"game-event",onClick:u,style:t.normalizeStyle(N.value)},[t.createElementVNode("div",egt,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",tgt,[t.createElementVNode("img",{src:L.value},null,8,ngt)])],4))}},[["__scopeId","data-v-896a85e7"]]),Pcn="",igt=e=>(t.pushScopeId("data-v-df0b18c7"),e=e(),t.popScopeId(),e),ogt={class:"events-line"},sgt={class:"events-line__events"},lgt=igt(()=>t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),cgt=Jr({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:a}){function i(N){a("click-event",N)}return(N,L)=>(t.openBlock(),t.createElementBlock("div",ogt,[t.createVNode(t.unref(J1),{backgroundColor:"#172531",pxScroll:260,arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",sgt,[lgt,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,u=>(t.openBlock(),t.createBlock(rgt,{key:u.id,"game-event":u,onClickEvent:i},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-df0b18c7"]]),Bcn="",Ey=e=>(t.pushScopeId("data-v-64b7c762"),e=e(),t.popScopeId(),e),dgt={class:"tooltip-data"},ugt=["src"],hgt=Ey(()=>t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),pgt=Ey(()=>t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),fgt={class:"game-events__team-logo"},mgt=["src"],ggt={class:"game-events__event-info"},ygt={key:0,class:"game-events__event-info__line"},vgt={key:1,class:"game-events__event-info__info"},_gt={class:"game-events__event-info__info__player-photo"},bgt={key:0,class:"game-events__event-info__info__player-photo__img"},xgt=["src"],wgt={class:"game-events__event-info__info__event-name"},kgt={class:"game-events__event-info__info__player-name"},Cgt=[Ey(()=>t.createElementVNode("img",{src:$9,alt:""},null,-1))],Tgt=Ey(()=>t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),Sgt={class:"game-events__events"},Egt={class:"game-events__team-logo"},Agt=["src"],Mgt={class:"game-events__event-info"},Igt={key:0,class:"game-events__event-info__line"},Pgt={key:1,class:"game-events__event-info__info"},Ngt={class:"game-events__event-info__info__player-photo"},Bgt={key:0,class:"game-events__event-info__info__player-photo__img"},Ogt=["src"],zgt={class:"game-events__event-info__info__event-name"},Lgt={class:"game-events__event-info__info__player-name"},Fgt=[Ey(()=>t.createElementVNode("img",{src:$9,alt:""},null,-1))],Dgt="https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",Vgt=Jr({__name:"GameEvents",props:{game:{type:Object,default:()=>({})},widthScreen:{type:Number,default:0},token:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0}},setup(e){const a=e;let i=null,N=0;const L=t.ref([]),u=t.ref(new Map),g=t.ref(""),n=t.ref(null),b=t.ref({visible:!1,link:""});t.watch(()=>a.game,d=>{d&&d.gameId!==N&&(N=d.gameId,r(d.gameId,d.is_live))},{deep:!0,immediate:!0}),t.watch(()=>g.value,(d,h)=>{if(d!==h){const p=u.value.get(h),f=u.value.get(d);if(p&&(p.isSelected=!1),f){if(!f.playerShortName){const[y,w]=f.player_name.split(","),x=y.split(" ");let M="";for(const k of x)if(M+=` ${k}`,k.length>3)break;f.playerShortName=w&&y?`${w.trim().charAt(0)}.${M}`:""}f.isSelected=!0,n.value=f}}});function m(d){clearInterval(i),i=setInterval(()=>{r(d)},1e4)}async function r(d,h=!1){try{L.value=[],u.value=new Map,g.value="";let p=!1,f=await c(d);f&&(f=f.reduce((y,w)=>(w.category_id===0&&[13,17,19,21,23].includes(w.game_status_id)&&(p=!0),w.team_id&&(w.isHomeTeam=w.team_id===a.game.homeTeam.team_id,y.push(w),u.value.set(w.play_id,w)),y),[]),L.value=v(f)),!g.value&&L.value.length&&(g.value=L.value[0].play_id),h&&!p?m(d):p&&clearInterval(i)}catch(p){console.error(p)}}function v(d){return d.sort((h,p)=>_(h.match_lapse)+Number(h.minute)-(_(p.match_lapse)+Number(p.minute)))}function _(d){let h=0;switch(d){case 1:h=0;break;case 2:h=45;break;case 3:h=90;break;case 4:h=105;break;case 5:h=120;break}return h}async function c(d){try{const{data:{plays:h}}=await Il.get(`${Dgt}${d}`,{headers:{Authorization:a.token}});return h}catch(h){throw new Error(h)}}function s(d){g.value=d.play_id}function o(){a.canPlayVideos&&n.value.video_link&&n.value.video_link!=="-"&&(b.value.visible=!0,b.value.link=n.value.video_link)}function l(){b.value.visible=!1,b.value.link=""}return(d,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Q1t,{data:b.value,onClose:l},{default:t.withCtx(()=>[t.createElementVNode("div",dgt,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:b.value.link,format:"video/mp4"},null,8,ugt)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[hgt,pgt,t.createElementVNode("div",fgt,[e.game&&e.game.homeTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.homeTeam.logo,alt:"team-logo"},null,8,mgt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",ggt,[n.value&&n.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",ygt)):t.createCommentVNode("",!0),n.value&&n.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",vgt,[t.createElementVNode("div",_gt,[n.value.player_id?(t.openBlock(),t.createElementBlock("div",bgt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${n.value.player_id}.png`,alt:""},null,8,xgt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",wgt,t.toDisplayString(n.value.event_type_id===1?n.value.event_type_name:n.value.category_name),1),t.createElementVNode("div",kgt," | "+t.toDisplayString(n.value.playerShortName),1),e.canPlayVideos&&n.value.video_link&&n.value.video_link!=="-"?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:o},Cgt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),Tgt,t.createElementVNode("div",Sgt,[t.createVNode(cgt,{"game-events":L.value,onClickEvent:s},null,8,["game-events"])]),t.createElementVNode("div",Egt,[e.game&&e.game.awayTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.awayTeam.logo,alt:"team-logo"},null,8,Agt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Mgt,[n.value&&!n.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Igt)):t.createCommentVNode("",!0),n.value&&!n.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Pgt,[t.createElementVNode("div",Ngt,[n.value.player_id?(t.openBlock(),t.createElementBlock("div",Bgt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${n.value.player_id}.png`,alt:""},null,8,Ogt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",zgt,t.toDisplayString(n.value.event_type_id===1?n.value.event_type_name:n.value.category_name),1),t.createElementVNode("div",Lgt," | "+t.toDisplayString(n.value.playerShortName),1),e.canPlayVideos&&n.value.video_link&&n.value.video_link!=="-"?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:o},Fgt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-64b7c762"]]),Fcn="",Rgt={class:"toggle-buttons__background"},$gt=["onClick"],jgt={key:0,class:"toggle-buttons__button__img"},Ugt=["src"],U3=Jr({__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"},activeFontColor:{type:String,default:"#FFFFFF"}},emits:["change"],setup(e,{emit:a}){const i=e;t.useCssVars(g=>({29153391:e.height,"1aee961c":e.width,"738679b2":e.mainBackgroundColor,f3cab270:e.borderRadius,"0ec0fe57":e.mainBorderWidth,"0da9fff4":e.mainBorderColor,"68dc0c06":e.fontFamily,f9ef5e4c:e.fontSize,"5713c56a":e.activeBorderWidth,"55fcc707":e.activeBorderColor,"38297f45":e.activeBackgroundColor,"424728c4":e.activeFontColor}));const N=t.ref(i.selectedButtonIndex),L=t.computed(()=>({"--grid-template-columns":`repeat(${i.buttons.length}, 1fr)`}));t.watch(()=>i.selectedButtonIndex,g=>{N.value=g}),t.watch(N,(g,n)=>{g!==n&&a("change",{index:g,button:i.buttons[g]})});function u(g){N.value=g}return(g,n)=>(t.openBlock(),t.createElementBlock("div",Rgt,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(L.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(b,m)=>(t.openBlock(),t.createElementBlock("div",{key:`b${m}`,class:t.normalizeClass(["toggle-buttons__button",{active:N.value===m,right:b.img&&m>0}]),onClick:r=>u(m)},[b.img?(t.openBlock(),t.createElementBlock("div",jgt,[t.createElementVNode("img",{src:b.img,alt:""},null,8,Ugt)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(b.text||b),1)],10,$gt))),128))],4)]))}},[["__scopeId","data-v-ad07815f"]]),Vcn="",Hgt="/images/cancha-horizontal-raw.jpg",Rcn="",Ggt=e=>(t.pushScopeId("data-v-3a3b7d53"),e=e(),t.popScopeId(),e),Wgt={class:"tooltip__content"},qgt={class:"tooltip__content__player"},Ygt={class:"tooltip__content__player__name"},Zgt={class:"tooltip__content__player__photo"},Jgt=["src"],Xgt={class:"tooltip__content__minute"},Kgt={class:"tooltip__content__team"},Qgt=Ggt(()=>t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),eyt={class:"tooltip__content__team__logo"},tyt=["src"],nyt=Jr({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:a}){const i=e,N=t.computed(()=>({"--top":i.position.y,"--left":i.position.x})),L=t.computed(()=>`${i.event.player.player_name} ${i.event.player.player_lastname}`),u=t.computed(()=>{const[n]=i.event.momentOfPlay.split(":");return`${Number(n)}'`});function g(){a("close")}return(n,b)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:g,style:t.normalizeStyle(N.value)},[t.createElementVNode("div",Wgt,[t.createElementVNode("div",qgt,[t.createElementVNode("div",Ygt,t.toDisplayString(L.value),1),t.createElementVNode("div",Zgt,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,Jgt)])]),t.createElementVNode("div",Xgt,"Minuto: "+t.toDisplayString(u.value),1),t.createElementVNode("div",Kgt,[Qgt,t.createElementVNode("div",eyt,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,tyt)])])])],4))}},[["__scopeId","data-v-3a3b7d53"]]);function j9(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ayt(e){if(e.__esModule)return e;var a=e.default;if(typeof a=="function"){var i=function N(){return this instanceof N?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};i.prototype=a.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(N){var L=Object.getOwnPropertyDescriptor(e,N);Object.defineProperty(i,N,L.get?L:{enumerable:!0,get:function(){return e[N]}})}),i}var U9={exports:{}};function H9(){}H9.prototype={on:function(e,a,i){var N=this.e||(this.e={});return(N[e]||(N[e]=[])).push({fn:a,ctx:i}),this},once:function(e,a,i){var N=this;function L(){N.off(e,L),a.apply(i,arguments)}return L._=a,this.on(e,L,i)},emit:function(e){var a=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),N=0,L=i.length;for(N;N<L;N++)i[N].fn.apply(i[N].ctx,a);return this},off:function(e,a){var i=this.e||(this.e={}),N=i[e],L=[];if(N&&a)for(var u=0,g=N.length;u<g;u++)N[u].fn!==a&&N[u].fn._!==a&&L.push(N[u]);return L.length?i[e]=L:delete i[e],this}},U9.exports=H9,U9.exports.TinyEmitter=H9;var ryt=U9.exports,iyt=ryt,oyt=new iyt;const Pu=j9(oyt),syt=["id"],lyt=["fill"],cyt=["id"],dyt=["fill"],uyt=["stroke-dasharray","x1","y1","x2","y2","marker-end"],hyt=["x","y","stroke-width","fill","stroke"],pyt=["x","y"],fyt={__name:"EventConnection",props:{eventConnection:{type:Object,required:!0},color:{type:String,required:!0},isLastEvent:{type:Boolean,default:!1},mainEventIdSelected:{type:Number,default:0}},emits:["click-event","mose-over-event","mouse-leave-event"],setup(e,{emit:a}){const i=e,N=t.computed(()=>{const _=[];if(i.eventConnection.hasConnectionPath){const c=i.eventConnection.x1===i.eventConnection.x2&&i.eventConnection.y1===i.eventConnection.y2?1:2;let s=b(i.eventConnection.previousEvent?i.eventConnection.previousEvent.y3:i.eventConnection.y1);const o=m(i.eventConnection.previousEvent?i.eventConnection.previousEvent.x3:i.eventConnection.x1);let l=0,d=0;c===2&&(l=b(i.eventConnection.y2),d=m(i.eventConnection.x2));const h=b(i.eventConnection.y3),p=m(i.eventConnection.x3);c===1?_.push({x1:o,y1:s,x2:p,y2:h}):(_.push({x1:o,y1:s,x2:d,y2:l}),_.push({x1:d,y1:l,x2:p,y2:h}))}return _}),L=t.computed(()=>i.mainEventIdSelected!==0?i.eventConnection.relatedPlayId===i.mainEventIdSelected?1:.1:1),u=t.computed(()=>i.mainEventIdSelected!==0?i.eventConnection.relatedPlayId===i.mainEventIdSelected:!0),g=t.computed(()=>b(i.eventConnection.previousEvent?i.eventConnection.previousEvent.y3:i.eventConnection.y1)),n=t.computed(()=>m(i.eventConnection.previousEvent?i.eventConnection.previousEvent.x3:i.eventConnection.x1));function b(_){return(1-_)*100}function m(_){return _*100}function r(_){Pu.emit("mouse-over-event",{mouseEvent:_,eventConnection:i.eventConnection,position:{x:n.value,y:g.value}})}function v(){Pu.emit("mouse-leave-event")}return(_,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("defs",null,[t.withDirectives(t.createElementVNode("marker",{id:`a-${e.eventConnection.playId}`,markerWidth:"10",markerHeight:"10",refX:"0",refY:"3",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:L.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,lyt)],12,syt),[[t.vShow,u.value]]),t.withDirectives(t.createElementVNode("marker",{id:`b-${e.eventConnection.playId}`,markerWidth:"4",markerHeight:"4",refX:"2",refY:"2",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:L.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,dyt)],12,cyt),[[t.vShow,u.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(N.value,(s,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[s.x1&&s.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${o}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:L.value}),"stroke-dasharray":o===0&&N.value.length===2?"none":"5,5",x1:`${s.x1}%`,y1:`${s.y1}%`,x2:`${s.x2}%`,y2:`${s.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&o===N.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,uyt)),[[t.vShow,u.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:r,onMouseleave:v,style:t.normalizeStyle({cursor:"pointer",opacity:L.value})},[t.createElementVNode("rect",{x:`${n.value}%`,y:`${g.value}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":e.eventConnection.isMainPlay?2:1,fill:e.color,stroke:e.eventConnection.isMainPlay?"#fff":"#999",style:t.normalizeStyle({opacity:L.value}),rx:"14",ry:"14"},null,12,hyt),t.createElementVNode("text",{x:`${n.value}%`,y:`${g.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:L.value})},t.toDisplayString(e.eventConnection.player.jersey),13,pyt)],36),[[t.vShow,u.value]])],64))}},myt={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},emits:["click-event","mouse-over-event"],setup(e,{emit:a}){const i=e,N=t.computed(()=>i.eventConnections.getEventsConnectionsByEventType()),L=t.computed(()=>i.eventConnections.getTeamColor());function u(b){a("click-event",b)}function g(b){a("mouse-over-event",b)}function n(){a("mouse-leave-event")}return(b,m)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(N.value,(r,v)=>(t.openBlock(),t.createBlock(fyt,{key:r.id,color:L.value,"is-last-event":v===N.value.length-1,"event-connection":r,"main-event-id-selected":e.mainEventIdSelected,onClickEvent:u,onMouseOverEvent:g,onMouseLeaveEvent:n},null,8,["color","is-last-event","event-connection","main-event-id-selected"]))),128))}},jcn="",gyt=e=>(t.pushScopeId("data-v-bfb31f30"),e=e(),t.popScopeId(),e),yyt={class:"soccer-chalkboard"},vyt={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},_yt=gyt(()=>t.createElementVNode("img",{src:Hgt,alt:""},null,-1)),byt={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xyt=Jr({__name:"SoccerChalkboard",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){Pu.on("mouse-over-time-event",m=>{u(m)}),Pu.on("mouse-leave-time-event",()=>{u(0)}),Pu.on("mouse-over-event",m=>{n(m)}),Pu.on("mouse-leave-event",()=>{b()});const a=t.ref(!1),i=t.ref({}),N=t.ref(0),L=t.ref({x:0,y:0});function u(m){N.value=m}function g(){a.value=!1}function n(m){const v=document.getElementById("soccerChalkboardField");if(v){const _=v.getBoundingClientRect(),c=m.position.x/100*_.width+14,s=m.position.y/100*_.height+14,o=c+170>_.width?_.width-170:c,l=s;N.value=m.eventConnection.relatedPlayId,i.value=m.eventConnection,L.value={x:`${o}px`,y:`${l}px`},a.value=!0}}function b(){a.value=!1,N.value=0}return(m,r)=>(t.openBlock(),t.createElementBlock("div",yyt,[t.createElementVNode("div",vyt,[_yt,(t.openBlock(),t.createElementBlock("svg",byt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(v,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&v.hasTeam(e.teamsSelected)||e.listType==="players"&&v.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(myt,{key:_,"event-connections":v,"main-event-id-selected":N.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),a.value?(t.openBlock(),t.createBlock(nyt,{key:0,position:L.value,event:i.value,onClose:g},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-bfb31f30"]]),Hcn="",Oj=e=>(t.pushScopeId("data-v-a172dbf3"),e=e(),t.popScopeId(),e),wyt={class:"events-timeline"},kyt=Oj(()=>t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),Cyt=["onMouseover"],Tyt=["id"],Syt=[Oj(()=>t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z"},null,-1))],Eyt=["fill"],Ayt=["mask"],Myt=["stroke"],Iyt=Jr({__name:"EventsTimeLine",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const a=e,i=["0'","45'","90'"],N=t.computed(()=>a.eventsConnections.reduce((g,n)=>{const b={minute:"0'",left:"0%",color:n.getTeamColor(),fontColor:n.getTeamFontColor(),playId:n.mainPlay.playId,playerId:n.mainPlay.playerId,teamId:n.mainPlay.teamId,relatedPlayId:n.relatedPlayId},[m]=n.mainPlay.momentOfPlay.split(":"),r=parseInt(m);return r>=90?(b.minute=`${r}'`,b.left="100%"):(b.minute=`${r}'`,b.left=`${r/90*100}%`),g.push(b),g},[]));function L(g){Pu.emit("mouse-over-time-event",g.playId)}function u(){Pu.emit("mouse-leave-time-event")}return(g,n)=>(t.openBlock(),t.createElementBlock("div",wyt,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(i,(b,m)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:m},t.toDisplayString(b),1)),64)),kyt,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(N.value,(b,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&e.teamsSelected.has(b.teamId)||e.listType==="players"&&e.playersSelected.has(b.playerId)?(t.openBlock(),t.createElementBlock("svg",{key:m,width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t.normalizeStyle({left:b.left,cursor:"pointer"}),onMouseover:r=>L(b),onMouseleave:u},[t.createElementVNode("mask",{id:b.playId.toString(),fill:"white"},Syt,8,Tyt),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z",fill:b.color},null,8,Eyt),t.createElementVNode("path",{d:"M7.96294 17.4517L8.82896 16.9517L8.54029 16.4517H7.96294V17.4517ZM10.2723 21.4517L9.40631 21.9517L10.2723 23.4517L11.1384 21.9517L10.2723 21.4517ZM12.5817 17.4517V16.4517H12.0044L11.7157 16.9517L12.5817 17.4517ZM1.77234 3.45166C1.77234 2.34709 2.66777 1.45166 3.77234 1.45166V-0.54834C1.5632 -0.54834 -0.227661 1.24252 -0.227661 3.45166H1.77234ZM1.77234 14.4517V3.45166H-0.227661V14.4517H1.77234ZM3.77234 16.4517C2.66777 16.4517 1.77234 15.5562 1.77234 14.4517H-0.227661C-0.227661 16.6608 1.5632 18.4517 3.77234 18.4517V16.4517ZM7.96294 16.4517H3.77234V18.4517H7.96294V16.4517ZM7.09691 17.9517L9.40631 21.9517L11.1384 20.9517L8.82896 16.9517L7.09691 17.9517ZM11.1384 21.9517L13.4478 17.9517L11.7157 16.9517L9.40631 20.9517L11.1384 21.9517ZM16.7723 16.4517H12.5817V18.4517H16.7723V16.4517ZM18.7723 14.4517C18.7723 15.5562 17.8769 16.4517 16.7723 16.4517V18.4517C18.9815 18.4517 20.7723 16.6608 20.7723 14.4517H18.7723ZM18.7723 3.45166V14.4517H20.7723V3.45166H18.7723ZM16.7723 1.45166C17.8769 1.45166 18.7723 2.34709 18.7723 3.45166H20.7723C20.7723 1.24252 18.9815 -0.54834 16.7723 -0.54834V1.45166ZM3.77234 1.45166H16.7723V-0.54834H3.77234V1.45166Z",fill:"#172531",mask:`url(#${b.playId})`},null,8,Ayt),t.createElementVNode("g",null,[t.createElementVNode("text",{x:"50%",y:"8","text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"9","font-family":"Poppins-Light",stroke:b.fontColor,"stroke-width":"0.7"},t.toDisplayString(b.minute),9,Myt)])],44,Cyt)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-a172dbf3"]]),Yl={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},Pyt=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},Nyt={key:1},Byt={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Oyt=["fill"],zyt={key:0,class:"checkbox__teams"},Lyt={class:"checkbox__teams__logo"},Fyt=["src"],Dyt={class:"checkbox__teams__logo"},Vyt=["src"],Ryt={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:a}){const i=e;t.useCssVars(m=>({"6582e90e":e.width,"310b3edf":e.height}));const N=t.ref(!1),L=t.computed(()=>{const m={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return N.value?(m["background-color"]=i.boxBackgroundColor,m.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):m.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,m}),u=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),g=t.computed(()=>{const m={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(m[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),m});t.watch(()=>i.modelValue,m=>{m!==N.value&&(N.value=m)},{immediate:!0});function n(){i.avoidInteraction||!N.value&&i.avoidToCheck||(N.value=!N.value,a("update:modelValue",N.value))}function b(m){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${m}.png`}return(m,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:n},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(L.value)},[N.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(u.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",Nyt,[(t.openBlock(),t.createElementBlock("svg",Byt,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,Oyt)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",zyt,[t.createElementVNode("div",Lyt,[t.createElementVNode("img",{src:b(e.teamsIds[0]),alt:""},null,8,Fyt)]),t.createElementVNode("div",Dyt,[t.createElementVNode("img",{src:b(e.teamsIds[1]),alt:""},null,8,Vyt)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},ro=Pyt(Ryt,[["__scopeId","data-v-bcf3bcc6"]]),xo=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},$yt={class:"container"},jyt={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Uyt=["fill"],Hyt={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gyt=["fill"],Wyt={__name:"IconExpand",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},isExpanded:{type:Boolean,default:!1},expandIconColor:{type:String,default:"white"},collapseIconColor:{type:String,default:"#D9D9D9"}},setup(e){return t.useCssVars(a=>({"563e5242":e.width,a529e9a4:e.height})),(a,i)=>(t.openBlock(),t.createElementBlock("div",$yt,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",jyt,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,Uyt)])):(t.openBlock(),t.createElementBlock("svg",Hyt,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,Gyt)]))]))}},lm=xo(Wyt,[["__scopeId","data-v-166b6226"]]),Ay=e=>(t.pushScopeId("data-v-4df743e3"),e=e(),t.popScopeId(),e),qyt={class:"productivity"},Yyt={class:"productivity__body__offensive"},Zyt={class:"productivity__body__title"},Jyt={class:"productivity__body__title__info"},Xyt={class:"number-of-categories"},Kyt={class:"productivity__body__categories"},Qyt={class:"productivity__body__defensive-possession"},evt={class:"productivity__body__title"},tvt={class:"productivity__body__title__info"},nvt={class:"number-of-categories"},avt={class:"productivity__body__categories"},rvt={class:"productivity__body__title"},ivt={class:"productivity__body__title__info"},ovt={class:"number-of-categories"},svt={class:"productivity__body__categories"},lvt={class:"productivity__footer"},cvt={class:"productivity__footer__offenses"},dvt=Ay(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),uvt={class:"productivity__footer__offenses__table"},hvt=Ay(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Si"),t.createElementVNode("div",null,"No")],-1)),pvt={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},fvt=Ay(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),mvt={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},gvt=Ay(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),yvt={class:"productivity__footer__offenses__table__row has-padding"},vvt=Ay(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),_vt={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:offensesConditions"],setup(e,{emit:a}){const i=e,N=t.ref(!1),L=t.ref(!1),u=t.ref(!1),g=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),n=t.computed(()=>({"--template-columns":i.isExpansionMode?"1fr":"1fr 1fr"})),b=t.computed(()=>i.productivityCategories.offensive.categories.reduce((c,s)=>(s.isSelected&&c++,c),0)),m=t.computed(()=>i.productivityCategories.defensive.categories.reduce((c,s)=>(s.isSelected&&c++,c),0)),r=t.computed(()=>i.productivityCategories.possession.categories.reduce((c,s)=>(s.isSelected&&c++,c),0));t.watch(()=>i.productivityCategories,c=>{g.value.areYellowCardsSelected=c.offensesConditions.areYellowCardsSelected,g.value.areRedCardsSelected=c.offensesConditions.areRedCardsSelected,g.value.areFoulsCommittedSelected=c.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),t.watch(g,c=>{a("update:offensesConditions",c)},{deep:!0,immediate:!0});function v(c,s){s.isSelected=c,setTimeout(()=>{s.priority=i.numberOfCategoriesSelected},10)}function _(c){c==="offensive"?N.value=!N.value:c==="defensive"?L.value=!L.value:c==="possession"&&(u.value=!u.value)}return(c,s)=>(t.openBlock(),t.createElementBlock("div",qyt,[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",Yyt,[t.createElementVNode("div",Zyt,[t.createElementVNode("div",Jyt,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",Xyt,"("+t.toDisplayString(b.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:s[0]||(s[0]=o=>_("offensive"))},[t.withDirectives(t.createVNode(lm,{"is-expanded":N.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",Kyt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(ro),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":l=>v(l,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||N.value]])]),t.createElementVNode("div",Qyt,[t.createElementVNode("div",evt,[t.createElementVNode("div",tvt,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",nvt,"("+t.toDisplayString(m.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:s[1]||(s[1]=o=>_("defensive"))},[t.withDirectives(t.createVNode(lm,{"is-expanded":L.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",avt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(ro),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":l=>v(l,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||L.value]]),t.createElementVNode("div",rvt,[t.createElementVNode("div",ivt,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",ovt,"("+t.toDisplayString(r.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:s[2]||(s[2]=o=>_("possession"))},[t.withDirectives(t.createVNode(lm,{"is-expanded":u.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",svt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(ro),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":l=>v(l,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||u.value]])])],4),t.createElementVNode("div",lvt,[t.createElementVNode("div",cvt,[dvt,t.createElementVNode("div",uvt,[hvt,t.createElementVNode("div",pvt,[fvt,t.createElementVNode("div",null,[t.createVNode(t.unref(ro),{"model-value":g.value.areFoulsCommittedSelected,"avoid-interaction":g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":s[3]||(s[3]=o=>g.value.areFoulsCommittedSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(ro),{"model-value":!g.value.areFoulsCommittedSelected,"avoid-interaction":!g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":s[4]||(s[4]=o=>g.value.areFoulsCommittedSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",mvt,[gvt,t.createElementVNode("div",null,[t.createVNode(t.unref(ro),{"model-value":g.value.areYellowCardsSelected,"avoid-interaction":g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":s[5]||(s[5]=o=>g.value.areYellowCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(ro),{"model-value":!g.value.areYellowCardsSelected,"avoid-interaction":!g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":s[6]||(s[6]=o=>g.value.areYellowCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",yvt,[vvt,t.createElementVNode("div",null,[t.createVNode(t.unref(ro),{"model-value":g.value.areRedCardsSelected,"avoid-interaction":g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":s[7]||(s[7]=o=>g.value.areRedCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(ro),{"model-value":!g.value.areRedCardsSelected,"avoid-interaction":!g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":s[8]||(s[8]=o=>g.value.areRedCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])])])])])]))}},bvt=xo(_vt,[["__scopeId","data-v-4df743e3"]]),H3=e=>(t.pushScopeId("data-v-9a3af80d"),e=e(),t.popScopeId(),e),xvt={class:"details__header"},wvt=H3(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),kvt={class:"details__header__checkbox"},Cvt={class:"details__body"},Tvt={class:"details__body__playing-as"},Svt=["onClick"],Evt={class:"details__header"},Avt=H3(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),Mvt={class:"details__header__checkbox"},Ivt={class:"details__body"},Pvt=H3(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Nvt={class:"details__body__game-section"},Bvt=["onClick"],Ovt={class:"details__body"},zvt=H3(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Lvt={class:"details__body__game-section"},Fvt=["onClick"],Dvt={__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},fontFamily:{type:String,default:"'Poppins-Regular'"},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const a=e;t.useCssVars(r=>({"35aa5eb4":e.buttonsBackgroundColor,"7765f8c7":e.buttonsTextColor,"5b6eef4b":e.buttonsBorderWidth,"5a57f0e8":e.buttonsBorderColor,a0a4b168:e.buttonsBackgroundColorActive,"349872ad":e.buttonsTextColorActive,76477631:e.buttonsBorderWidthActive,"39de0e0e":e.buttonsBorderColorActive}));const i=t.computed(()=>a.playingAs.every(r=>r.isSelected)),N=t.computed(()=>a.gameSections.every(r=>r.isSelected)),L=t.computed(()=>a.gameSections.reduce((r,v)=>(v.value<=3?r.firstHalf.push(v):r.secondHalf.push(v),r),{firstHalf:[],secondHalf:[]})),u=t.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function g(r){r?a.playingAs.forEach(v=>{v.isSelected=!0}):a.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function n(r){a.playingAs.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function b(r){a.gameSections.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function m(r){r?a.gameSections.forEach(v=>{v.isSelected=!0}):a.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(r,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(u.value)},[t.withDirectives(t.createElementVNode("div",xvt,[wvt,t.createElementVNode("div",kvt,[t.createVNode(t.unref(ro),{label:"Todos",fontFamily:e.fontFamily,"model-value":i.value,"onUpdate:modelValue":g},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",Cvt,[t.createElementVNode("div",Tvt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.playingAs,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>n(_)},t.toDisplayString(_.name),11,Svt))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",Evt,[Avt,t.createElementVNode("div",Mvt,[t.createVNode(t.unref(ro),{label:"Todos",fontFamily:e.fontFamily,"model-value":N.value,"onUpdate:modelValue":m},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",Ivt,[Pvt,t.createElementVNode("div",Nvt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.firstHalf,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>b(_)},t.toDisplayString(_.text),11,Bvt))),128))])]),t.createElementVNode("div",Ovt,[zvt,t.createElementVNode("div",Lvt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.secondHalf,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>b(_)},t.toDisplayString(_.text),11,Fvt))),128))])])],4))}},Vvt=xo(Dvt,[["__scopeId","data-v-9a3af80d"]]),Rvt={class:"scroll-container"},$vt={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(a=>({"6aab424d":e.height,39848040:e.width})),(a,i)=>(t.openBlock(),t.createElementBlock("div",Rvt,[t.renderSlot(a.$slots,"default",{},void 0,!0)]))}},zj=xo($vt,[["__scopeId","data-v-218f5976"]]),jvt={class:"tournaments"},Uvt={class:"tournaments__tournament"},Hvt={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:a}){const i=e,N=t.ref(!1),L=t.computed(()=>i.tournaments.filter(g=>g.isSelected).length);t.watch(()=>i.tournaments,g=>{const n=g.filter(b=>b.isSelected);N.value=n.length===g.length,a("change-filters-selected",n.length),a("update:filters",i.tournaments)},{immediate:!0,deep:!0});function u(g){i.tournaments.forEach((n,b)=>{n.isSelected=g||(b!==0?g:!0)})}return(g,n)=>(t.openBlock(),t.createElementBlock("div",jvt,[t.createVNode(zj,{height:"200px"},{default:t.withCtx(()=>[t.createElementVNode("div",Uvt,[t.createVNode(t.unref(ro),{"model-value":N.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":u},null,8,["model-value","fontFamily"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tournaments,b=>(t.openBlock(),t.createElementBlock("div",{key:b.id||b._id,class:"tournaments__tournament"},[t.createVNode(t.unref(ro),{modelValue:b.isSelected,"onUpdate:modelValue":m=>b.isSelected=m,label:b.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":L.value===1&&b.isSelected},null,8,["modelValue","onUpdate:modelValue","label","fontFamily","avoid-interaction"])]))),128))]),_:1})]))}},Gvt=xo(Hvt,[["__scopeId","data-v-590d8ab3"]]),Ea={PLAYS:"plays",PRODUCTIVITY:"productivity",FIELD:"field",UNIVERSE:"universe",DETAILS:"details",TOURNAMENTS:"tournaments",PERSONAL_DATA:"personalData",PLAYS_TYPES:"playsTypes",GOLSTATS:"golstats",DISTANCE:"distance",RESULTS:"results",RESULTS_BY_TIME:"resultsByTime",VIDEOS:"videos",GAMES:"games",TAKEN_CORNERS:"takenCorners",HOW_WAS_CORNER:"howWasCorner",ZONE:"zone",WHAT_HAPPENED:"whatHappened"},Wvt={key:0,class:"plays-golstats__placeholder"},qvt=["onClick"],Yvt={key:0,class:"plays-golstats__item__value"},Zvt={class:"plays-golstats__item__text"},Jvt={class:"plays-golstats__item__svg"},Xvt={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kvt=["fill"],Qvt={__name:"TemplatePlaysTypeAndGolstats",props:{height:{type:String,default:"fit-content"},type:{type:String,default:""},categories:{type:Array,default:()=>[]},svgColor:{type:String,default:"#CBEE6B"},svgWidth:{type:Number,default:10},svgHeight:{type:Number,default:8}},emits:["change-filters-selected","update:filters"],setup(e,{emit:a}){const i=e,N=t.computed(()=>({"--grid-template-columns":i.type===Ea.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${i.svgWidth}px`,"--svg-height":`${i.svgHeight}px`}));t.watch(()=>i.categories,u=>{const g=u.filter(n=>n.isSelected);a("update:filters",g)},{immediate:!0,deep:!0});function L(u){u.isSelected||(i.categories.forEach(g=>{g.isSelected=!1}),u.isSelected=!0,i.type===Ea.GOLSTATS&&a("change-filters-selected",u.value))}return(u,g)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(N.value)},[t.createVNode(zj,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(Ea).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",Wvt," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(n,b)=>(t.openBlock(),t.createElementBlock("div",{key:`k${b}`,class:"plays-golstats__item",onClick:m=>L(n)},[e.type===t.unref(Ea).GOLSTATS?(t.openBlock(),t.createElementBlock("div",Yvt,t.toDisplayString(n.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Zvt,t.toDisplayString(n.name),1),t.createElementVNode("div",Jvt,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",Xvt,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.svgColor},null,8,Kvt)],512)),[[t.vShow,n.isSelected]])])],8,qvt))),128))]),_:1},8,["height"])],4))}},Lj=xo(Qvt,[["__scopeId","data-v-af3c1673"]]),e2t=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},G9={props:{textRight:{type:String,default:""},textRightColor:{type:String,default:"#FFFFFF"},textRightFontFamily:{type:String,default:"Poppins-Regular"},textRightFontSize:{type:String,default:"13px"},placeholder:{type:String,default:"Ingresar valor"},value:String,inputType:{type:String,default:"text"},width:{type:String,default:"100%"},height:{type:String,default:"30px"},backgroundColor:{type:String,default:"#2e3b46"},borderRadius:{type:String,default:"10px"},border:{type:String,default:"1px solid #bdc1c4"},color:{type:String,default:"#FFFFFF"},placeholderColor:{type:String,default:"#bdc1c4"},font:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"13px"},padding:{type:String,default:"11px"},isNumbersOnly:{type:Boolean,default:!1}},computed:{inputStyle(){return{width:this.width,height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:this.border,color:this.color,fontFamily:this.font,fontSize:this.fontSize,placeholderColor:this.placeholderColor,paddingLeft:this.padding}}},methods:{updateInputValue(e){this.$emit("inputval",e.target.value)},onKeyDown(e){if(this.isNumbersOnly){const a=e.which?e.which:e.keyCode();a>31&&(a<48||a>57)&&e.preventDefault()}}}},Fj=()=>{t.useCssVars(e=>({"53e1855a":e.textRightColor,da8ee600:e.textRightFontSize,"9fb876ba":e.textRightFontFamily}))},Dj=G9.setup;G9.setup=Dj?(e,a)=>(Fj(),Dj(e,a)):Fj;const t2t={class:"input-container"},n2t=["type","placeholder","value"],a2t={class:"right-text"};function r2t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",t2t,[t.createElementVNode("input",{type:i.inputType,placeholder:i.placeholder,value:i.value,style:t.normalizeStyle(u.inputStyle),onKeydown:a[0]||(a[0]=(...g)=>u.onKeyDown&&u.onKeyDown(...g)),onInput:a[1]||(a[1]=(...g)=>u.updateInputValue&&u.updateInputValue(...g))},null,44,n2t),t.createElementVNode("div",a2t,t.toDisplayString(i.textRight),1)])}const Vj=e2t(G9,[["render",r2t],["__scopeId","data-v-b73049e7"]]),i2t=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},W9={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))}}},Rj=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},$j=W9.setup;W9.setup=$j?(e,a)=>(Rj(),$j(e,a)):Rj;const o2t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),s2t=["src"],l2t={key:1,class:"text"},c2t=["src"],d2t={class:"stats"},u2t=o2t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),h2t={class:"numstats"},p2t={class:"leyend"};function f2t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",L.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([u.customStyle,L.status&&i.typeOnOff&&u.customActive]),onClick:a[0]||(a[0]=(...g)=>u.btnClick&&u.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,s2t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",l2t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,c2t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>u.btnClick&&u.btnClick(...g))},[t.createElementVNode("div",d2t,[u2t,t.createElementVNode("div",h2t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",p2t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const m2t=i2t(W9,[["render",f2t],["__scopeId","data-v-fb269a1e"]]),g2t={class:"gsc-dropdown__main-container__item-selected"},y2t=["height","width"],v2t=["stroke"],_2t={class:"gsc-dropdown__items-container"},b2t=["onClick"],x2t={key:0,class:"gsc-dropdown__items-footer"},Ff={__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(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},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},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}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const i=e,N=t.ref({}),L=t.ref(null),u=t.ref(i.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>i.items,(c,s)=>{if(!i.modelValue&&(!i.onlyFirstTime||!s||!s.length)&&c&&c.length){if(i.defaultItemByProp){const o=i.items.findIndex(l=>l[i.defaultItemByProp.propName]===i.defaultItemByProp.value);o!==-1?(u.value=o,N.value=c[o]):(u.value=0,N.value=c[0])}else N.value=c[i.defaultItemByIndex];a("input",N.value)}},{immediate:!0}),t.watch(()=>i.modelValue,c=>{if(c){const s=i.items.findIndex(o=>typeof c=="object"?JSON.stringify(o)===JSON.stringify(c):o===c);s!==-1&&(u.value=s,N.value=i.items[s],a("update:modelValue",N.value))}},{immediate:!0});const n=t.computed(()=>({height:i.height,width:i.width,backgroundColor:i.backgroundColor,borderRadius:`${i.borderRadius}px`,border:`${i.borderType} ${i.borderWidth}px ${i.borderColor}`,color:i.color,"--hover-background-color":i.hoverBackgroundColor,"--list-item-padding":i.listItemPadding,"--list-background-color":i.listBackgroundColor,"--list-height":i.listHeight,"--list-item-selected-color":i.listItemSelectedColor,"--list-item-selected-background-color":i.listItemSelectedBackgroundColor,"--list-item-color":i.listItemColor,"--list-border-radius":`${i.listBorderRadius}`,"--list-border-color":i.listBorderColor,"--list-width":i.isListSameWidth?i.width:"fit-content","--list-border-width":`${i.listBorderWidth}px`,"--footer-border":`${i.footerBorderWidth}px solid ${i.footerBorderColor}`,"--dropdown-opacity":i.isDisabled?"0.5":"1","--dropdown-cursor":i.isDisabled?"not-allowed":"pointer","--dropdown-font-size":i.fontSize?i.fontSize:"14px"})),b=t.computed(()=>({height:`${i.arrowHeight}px`,width:`${i.arrowWidth}px`}));function m(){i.isDisabled||(g.value=!g.value)}function r(c){L.value&&!L.value.contains(c.target)&&(g.value=!1)}function v(c,s){i.isMultipleOption?u.value=-1:(u.value=s,g.value=!1),N.value=c,a("input",N.value),a("update:modelValue",N.value)}function _(){g.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",r)}),t.onBeforeMount(()=>{document.removeEventListener("click",r)}),(c,s)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:L,class:"gsc-dropdown",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:m},[t.createElementVNode("div",g2t,[t.renderSlot(c.$slots,"default",{selectedItem:N.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(b.value)},[(t.openBlock(),t.createElementBlock("svg",{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,v2t)],8,y2t))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",_2t,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${i.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(o,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:l===u.value}]),key:l,onClick:d=>v(o,l)},[t.renderSlot(c.$slots,"availableItem",{item:o})],10,b2t))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",x2t,[t.createVNode(t.unref(m2t),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:_})])):t.createCommentVNode("",!0)])],512),[[t.vShow,g.value]])]),_:3})],4))}},My={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"white",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46"},f1=e=>(t.pushScopeId("data-v-b1fc2fa6"),e=e(),t.popScopeId(),e),w2t={class:"universe"},k2t=f1(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),C2t=f1(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),T2t={class:"universe__inputs"},S2t={class:"universe__inputs__input"},E2t={class:"universe__inputs__checkbox"},A2t=f1(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),M2t=f1(()=>t.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),I2t={class:"universe__inputs"},P2t={class:"universe__inputs__input"},N2t={class:"universe__inputs__checkbox"},B2t=f1(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),O2t=f1(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),z2t={class:"universe__dropdown"},L2t={class:"selected-item"},jj=11,F2t={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,a)=>a+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(e,{expose:a,emit:i}){const N=e,L=t.ref(!1),u=t.ref(!1),g=t.ref(!1),n=t.ref({statistics:{}});t.watch(()=>N.universeFilters,c=>{n.value={...c,lastMonths:c.selectedMonth?c.selectedMonth:c.lastMonths[jj],statistics:{...c.statistics}}},{deep:!0,immediate:!0}),t.watch(()=>n,c=>{L.value=!c.value.minutesPlayed||Number(c.value.minutesPlayed)===0,u.value=!c.value.percentMinutesPlayed||Number(c.value.percentMinutesPlayed)===0,g.value=!c.value.lastMonths||Number(c.value.lastMonths)===0,i("update:universeFilters",c)},{deep:!0,immediate:!0});function b(c){n.value.minutesPlayed=c}function m(c){n.value.percentMinutesPlayed=c}function r(c,s){switch(s){case"minutes":L.value=c,c&&(n.value.minutesPlayed=0);break;case"percent":u.value=c,c&&(n.value.percentMinutesPlayed=0);break;case"months":g.value=c,c&&(n.value.lastMonths=0);break}}function v(){n.value={...N.universeFilters,lastMonths:N.universeFilters.lastMonths[jj],statistics:{...N.universeFilters.statistics}}}function _(c){n.value.lastMonths=c}return a({resetFilters:v}),(c,s)=>(t.openBlock(),t.createElementBlock("div",w2t,[k2t,C2t,t.createElementVNode("div",T2t,[t.createElementVNode("div",S2t,[t.createVNode(t.unref(Vj),{value:n.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:b},null,8,["value"])]),t.createElementVNode("div",E2t,[t.createVNode(t.unref(ro),{modelValue:L.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":s[0]||(s[0]=o=>r(o,"minutes"))},null,8,["modelValue","fontFamily"])])]),A2t,M2t,t.createElementVNode("div",I2t,[t.createElementVNode("div",P2t,[t.createVNode(t.unref(Vj),{value:n.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:m},null,8,["value"])]),t.createElementVNode("div",N2t,[t.createVNode(t.unref(ro),{modelValue:u.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":s[1]||(s[1]=o=>r(o,"percent"))},null,8,["modelValue","fontFamily"])])]),B2t,O2t,t.createElementVNode("div",z2t,[t.createVNode(t.unref(Ff),t.mergeProps(t.unref(My),{items:e.universeFilters.lastMonths,"model-value":n.value.lastMonths,onInput:_}),{default:t.withCtx(({selectedItem:o})=>[t.createElementVNode("div",L2t,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:o})=>[t.createElementVNode("div",null,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},D2t=xo(F2t,[["__scopeId","data-v-b1fc2fa6"]]),Uj=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},V2t={name:"MultiRangeSlider",props:{baseClassName:{type:String,default:"multi-range-slider"},min:{type:Number},max:{type:Number},minValue:{type:Number},maxValue:{type:Number},step:{type:Number,default:1},preventWheel:{type:Boolean,default:!1},ruler:{type:Boolean,default:!0},label:{type:Boolean,default:!0},labels:{type:Array},minCaption:{type:String},maxCaption:{type:String},rangeMargin:{type:Number}},data(){let e=this.labels||[],a=this.min===void 0?0:this.min,i=e.length?e.length-1:100,N=this.max===void 0?i:this.max,L=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(L=1);let u=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(u=e.length-2),N<=a)throw new Error("Invalid props min or max");if(L>u)throw new Error("Invalid props minValue or maxValue");let g=this.rangeMargin===void 0?this.step:this.rangeMargin,n=g%this.step;return n&&(g=g+this.step-n),{valueMin:L<a?a:L,valueMax:u>N?N:u,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:g}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(e){let a=parseFloat(e.target.value);a<=this.valueMax-this.rangeMarginValue&&a>=this.minimum?this.valueMin=a:e.target.value=this.valueMin},onInputMaxChange(e){let a=parseFloat(e.target.value);a>=this.valueMin+this.rangeMarginValue&&a<=this.maximum?this.valueMax=a:e.target.value=this.valueMax},onLeftThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(e){this.mouseMoveCounter++;let a=e.clientX;e.type==="touchmove"&&(a=e.touches[0].clientX);let i=(a-this.startX)/this.barBox.width,N=this.barValue+(this.maximum-this.minimum)*i,L=N%this.step;N-=L,N<this.minimum?N=this.minimum:N>this.valueMax-this.rangeMarginValue&&(N=this.valueMax-this.rangeMarginValue),this.valueMin=N},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(e){this.mouseMoveCounter++;let a=e.clientX;e.type==="touchmove"&&(a=e.touches[0].clientX);let i=(a-this.startX)/this.barBox.width,N=this.barValue+(this.maximum-this.minimum)*i,L=N%this.step;N-=L,N<this.valueMin+this.rangeMarginValue?N=this.valueMin+this.rangeMarginValue:N>this.maximum&&(N=this.maximum),this.valueMax=N},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(e){if(this.preventWheel===!0||!e.shiftKey&&!e.ctrlKey)return;let a=this.step;e.deltaY<0&&(a=-a),e.shiftKey&&e.ctrlKey?this.valueMin+a>=this.minimum&&this.valueMax+a<=this.maximum&&(this.valueMin=this.valueMin+a,this.valueMax=this.valueMax+a):e.ctrlKey?(a=this.valueMax+a,a<this.valueMin+this.rangeMarginValue?a=this.valueMin+this.rangeMarginValue:a>this.maximum&&(a=this.maximum),this.valueMax=a):e.shiftKey&&(a=this.valueMin+a,a<this.minimum?a=this.minimum:a>this.valueMax-this.rangeMarginValue&&(a=this.valueMax-this.rangeMarginValue),this.valueMin=a)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let a={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",a)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],a=e.length?e.length-1:100;return this.max===void 0?a:this.max},stepCount(){let e=this.labels||[];return e.length?e.length-1:Math.floor((this.maximum-this.minimum)/this.step)},subStepCount(){return(this.labels||[]).length&&this.step>1?(this.maximum-this.minimum)/this.step:0},barMin(){return(this.valueMin-this.minimum)/(this.maximum-this.minimum)*100},barMax(){return 100-(this.valueMax-this.minimum)/(this.maximum-this.minimum)*100},barMinVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMin||0).toFixed(e)},barMaxVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMax||100).toFixed(e)},scaleLabels(){let e=this.labels||[];return e.length===0&&(e=[],e.push(this.minimum),e.push(this.maximum)),e}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(e){this.valueMin=e<this.minimum?this.minimum:e},maxValue(e){this.valueMax=e>this.maximum?this.maximum:e}},mounted(){}},R2t={class:"bar"},$2t=["min","max","step","value"],j2t={class:"caption"},U2t={class:"min-caption"},H2t={class:"bar-inner"},G2t=["min","max","step","value"],W2t={class:"caption"},q2t={class:"max-caption"},Y2t={key:0,class:"ruler"},Z2t={key:1,class:"sub-ruler"},J2t={key:2,class:"labels"};function X2t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([i.baseClassName,L.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:a[10]||(a[10]=t.withModifiers((...g)=>u.onMouseWheel&&u.onMouseWheel(...g),["prevent","stop"]))},[t.createElementVNode("div",R2t,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:u.barMin+"%"}),onClick:a[0]||(a[0]=(...g)=>u.onBarLeftClick&&u.onBarLeftClick(...g))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:u.minimum,max:u.maximum,step:i.step,value:L.valueMin,onInput:a[1]||(a[1]=t.withModifiers((...g)=>u.onInputMinChange&&u.onInputMinChange(...g),["stop","prevent"]))},null,40,$2t),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:a[2]||(a[2]=(...g)=>u.onLeftThumbMousedown&&u.onLeftThumbMousedown(...g)),onTouchstart:a[3]||(a[3]=(...g)=>u.onLeftThumbMousedown&&u.onLeftThumbMousedown(...g))},[t.createElementVNode("div",j2t,[t.createElementVNode("span",U2t,t.toDisplayString(i.minCaption||u.barMinVal),1)])],32),t.createElementVNode("div",H2t,[t.createElementVNode("div",{class:"bar-inner-left",onClick:a[4]||(a[4]=(...g)=>u.onInnerBarLeftClick&&u.onInnerBarLeftClick(...g))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:a[5]||(a[5]=(...g)=>u.onInnerBarRightClick&&u.onInnerBarRightClick(...g))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:u.minimum,max:u.maximum,step:i.step,value:L.valueMax,onInput:a[6]||(a[6]=t.withModifiers((...g)=>u.onInputMaxChange&&u.onInputMaxChange(...g),["stop","prevent"]))},null,40,G2t),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:a[7]||(a[7]=(...g)=>u.onRightThumbMousedown&&u.onRightThumbMousedown(...g)),onTouchstart:a[8]||(a[8]=(...g)=>u.onRightThumbMousedown&&u.onRightThumbMousedown(...g))},[t.createElementVNode("div",W2t,[t.createElementVNode("span",q2t,t.toDisplayString(i.maxCaption||u.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:u.barMax+"%"}),onClick:a[9]||(a[9]=(...g)=>u.onBarRightClick&&u.onBarRightClick(...g))},null,4)]),i.ruler?(t.openBlock(),t.createElementBlock("div",Y2t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.stepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),u.subStepCount?(t.openBlock(),t.createElementBlock("div",Z2t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.subStepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),i.label?(t.openBlock(),t.createElementBlock("div",J2t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.scaleLabels,g=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:g},t.toDisplayString(g),1))),128))])):t.createCommentVNode("",!0)],34)}const K2t=Uj(V2t,[["render",X2t]]),q9={components:{MultiRangeSlider:K2t},props:{minLimit:{type:Number,default:10},maxLimit:{type:Number,default:100},minValue:{type:Number,default:10},maxValue:{type:Number,default:100},height:{type:String,default:"150px"},borderRadius:{type:String,default:"6px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:2},borderColor:{type:String,default:"#d9d9d9"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular"},fontFamilyValue:{type:String,default:"Poppins-Medium"},fontColorValue:{type:String,default:"#FFFFFF"},fontSizeValue:{type:String,default:"20px"},backgroundIndicador:{type:String,default:"rgb(22, 233, 40)"},heightIndicador:{type:String,default:"15px"},widthIndicador:{type:String,default:"15px"},marginTopIndicador:{type:String,default:"-8px"},borderColorIndicador:{type:String,default:"#FFFFFF"},borderWidthIndicador:{type:String,default:"3px"},lineInRangeColor:{type:String,default:"rgb(22, 233, 40)"},lineOutRangeColor:{type:String,default:"#c7c7c7"},minSuffix:{type:String,default:""},maxSuffix:{type:String,default:""}},data(){return{minValueLocal:0,maxValueLocal:0}},computed:{customStyle(){return{height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`}},customStyleText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customStyleValue(){return{color:this.fontColorValue,fontSize:this.fontSizeValue,fontFamily:`${this.fontFamilyValue} !important`}}},watch:{minValue:{handler(e){this.minValueLocal=e},immediate:!0},maxValue:{handler(e){this.maxValueLocal=e},immediate:!0}},methods:{onInput(e){this.minValueLocal=e.minValue,this.maxValueLocal=e.maxValue,this.$emit("input",e)}}},Hj=()=>{t.useCssVars(e=>({"318dc560":e.lineOutRangeColor,fcb35722:e.lineInRangeColor,"3edd517e":e.backgroundIndicador,"19ee7a09":e.widthIndicador,"482e6b68":e.heightIndicador,"48824d56":e.borderWidthIndicador,a51d4f50:e.borderColorIndicador,deb3b7b0:e.marginTopIndicador}))},Gj=q9.setup;q9.setup=Gj?(e,a)=>(Hj(),Gj(e,a)):Hj;const Q2t={class:"center"},e_t={class:"bar-ref"},t_t={class:"bar-ref-element-left"},n_t={class:"bar-ref-element-right"};function a_t(e,a,i,N,L,u){const g=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(u.customStyle)},[t.createElementVNode("div",Q2t,[t.createElementVNode("div",e_t,[t.createElementVNode("div",t_t,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(u.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(u.customStyleValue)},t.toDisplayString(L.minValueLocal)+t.toDisplayString(i.minSuffix),5)]),t.createElementVNode("div",n_t,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(u.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(u.customStyleValue)},t.toDisplayString(L.maxValueLocal)+t.toDisplayString(i.maxSuffix),5)])]),t.createVNode(g,{baseClassName:"multi-range-slider",min:i.minLimit,max:i.maxLimit,step:1,ruler:!1,label:!1,"min-value":L.minValueLocal,"max-value":L.maxValueLocal,"range-margin":0,onInput:u.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const Wj=Uj(q9,[["render",a_t]]),r_t={class:"template-distance"},i_t={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:a}){const i=e,N=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>N.value,u=>{a("update:distanceFilters",u)},{deep:!0}),t.watch(()=>i.distance,u=>{N.value.minValue=u.minValue,N.value.maxValue=u.maxValue,N.value.minLimit=u.minLimit,N.value.maxLimit=u.maxLimit},{immediate:!0,deep:!0});function L(u){N.value.minValue=u.minValue,N.value.maxValue=u.maxValue}return(u,g)=>(t.openBlock(),t.createElementBlock("div",r_t,[t.createVNode(t.unref(Wj),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"12px","font-size":"12px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":N.value.minLimit,"max-limit":N.value.maxLimit,"min-value":N.value.minValue,"max-value":N.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:L},null,8,["min-limit","max-limit","min-value","max-value"])]))}},o_t=e=>(t.pushScopeId("data-v-be32e3d8"),e=e(),t.popScopeId(),e),s_t={class:"template-games"},l_t={class:"template-games__header"},c_t=o_t(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),d_t={class:"template-games__header__all-games"},u_t={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(e,{emit:a}){const i=e,N=t.ref(!1),L=t.computed(()=>i.gamesFilters.filter(g=>g.isSelected).length);t.watch(()=>i.gamesFilters,g=>{a("update:gamesFilters",g)},{deep:!0}),t.watch(L,g=>{N.value=g===i.gamesFilters.length,a("update:gamesFilters",i.gamesFilters)},{immediate:!0});const u=g=>{g?i.gamesFilters.forEach(n=>{n.isSelected=g}):i.gamesFilters.forEach((n,b)=>{n.isSelected=b===0}),N.value=g};return(g,n)=>(t.openBlock(),t.createElementBlock("div",s_t,[t.createElementVNode("div",l_t,[c_t,t.createElementVNode("div",d_t,[t.createVNode(t.unref(ro),{modelValue:N.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":u},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(b,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,class:"template-games__game"},[t.createVNode(t.unref(ro),{modelValue:b.isSelected,"onUpdate:modelValue":r=>b.isSelected=r,label:b.label,"teams-ids":b.teamsIds,"avoid-interaction":L.value===1&&b.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},h_t=xo(u_t,[["__scopeId","data-v-be32e3d8"]]),p_t=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},Y9={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))}}},qj=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},Yj=Y9.setup;Y9.setup=Yj?(e,a)=>(qj(),Yj(e,a)):qj;const f_t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),m_t=["src"],g_t={key:1,class:"text"},y_t=["src"],v_t={class:"stats"},__t=f_t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),b_t={class:"numstats"},x_t={class:"leyend"};function w_t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",L.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([u.customStyle,L.status&&i.typeOnOff&&u.customActive]),onClick:a[0]||(a[0]=(...g)=>u.btnClick&&u.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,m_t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",g_t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,y_t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>u.btnClick&&u.btnClick(...g))},[t.createElementVNode("div",v_t,[__t,t.createElementVNode("div",b_t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",x_t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const Z9=p_t(Y9,[["render",w_t],["__scopeId","data-v-fb269a1e"]]),k_t=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},J9={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))}}},Zj=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},Jj=J9.setup;J9.setup=Jj?(e,a)=>(Zj(),Jj(e,a)):Zj;const C_t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),T_t=["src"],S_t={key:1,class:"text"},E_t=["src"],A_t={class:"stats"},M_t=C_t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),I_t={class:"numstats"},P_t={class:"leyend"};function N_t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",L.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([u.customStyle,L.status&&i.typeOnOff&&u.customActive]),onClick:a[0]||(a[0]=(...g)=>u.btnClick&&u.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,T_t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",S_t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,E_t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>u.btnClick&&u.btnClick(...g))},[t.createElementVNode("div",A_t,[M_t,t.createElementVNode("div",I_t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",P_t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const B_t=k_t(J9,[["render",N_t],["__scopeId","data-v-fb269a1e"]]),O_t=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},z_t={key:1},L_t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},F_t=["fill"],D_t={key:0,class:"checkbox__teams"},V_t={class:"checkbox__teams__logo"},R_t=["src"],$_t={class:"checkbox__teams__logo"},j_t=["src"],U_t={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:a}){const i=e;t.useCssVars(m=>({"6582e90e":e.width,"310b3edf":e.height}));const N=t.ref(!1),L=t.computed(()=>{const m={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return N.value?(m["background-color"]=i.boxBackgroundColor,m.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):m.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,m}),u=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),g=t.computed(()=>{const m={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(m[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),m});t.watch(()=>i.modelValue,m=>{m!==N.value&&(N.value=m)},{immediate:!0});function n(){i.avoidInteraction||!N.value&&i.avoidToCheck||(N.value=!N.value,a("update:modelValue",N.value))}function b(m){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${m}.png`}return(m,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:n},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(L.value)},[N.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(u.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",z_t,[(t.openBlock(),t.createElementBlock("svg",L_t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,F_t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",D_t,[t.createElementVNode("div",V_t,[t.createElementVNode("img",{src:b(e.teamsIds[0]),alt:""},null,8,R_t)]),t.createElementVNode("div",$_t,[t.createElementVNode("img",{src:b(e.teamsIds[1]),alt:""},null,8,j_t)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},H_t=O_t(U_t,[["__scopeId","data-v-bcf3bcc6"]]),G_t=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},X9={components:{GSCButton:B_t,GSCCheckbox:H_t},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,a)=>({sector:a+1,active:!1})),lastUpdatedValue:[]}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"340px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},title:{type:String,default:"Pase(s) desde la(s) zona(s):"},titleFontSize:{type:String,default:"14px"}},watch:{value:{deep:!0,immediate:!0,handler(e){const a=e.sort();JSON.stringify(a)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=a,this.sectors.forEach((i,N)=>{i.active=e.includes(N+1),this.validateField(N)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var a=[];for(let i=0;i<e.length;i++)e[i].active&&a.push(i+1);this.$emit("update:modelValue",a)},deep:!0}},computed:{translx(){var e=0;return this.widthField>305?e=this.widthField-305:this.widthField==268&&(e=-36),e},transly(){var e=0;return this.heightField>195?(e=this.heightField-195,e=e/2):this.heightField==180&&(e=-7),e},translxcircle(){var e=0;return this.widthField>305?(e=this.widthField-305,e=e/2):this.widthField==268&&(e=-18),e}},methods:{clickAll(e){if(e){for(let a=0;a<this.sectors.length;a++)this.sectors[a].active=!0,this.validateField(a);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1}else for(let a=0;a<this.sectors.length;a++)this.sectors[a].active=!1,this.validateField(a),this.status14=!1,this.status24=!1,this.status34=!1,this.status44=!1,this.refreshBtn14=0,this.refreshBtn24=0,this.refreshBtn34=0,this.refreshBtn44=0},selectSector(e){var a=0;this.sectors[e].active=!this.sectors[e].active;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(a+=1);a==0&&(this.sectors[e].active=!0),this.validateField(e)},btn14(e){this.sectors[0].active=e?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=e?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=e?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=e?this.sectors[3].active=!0:this.sectors[3].active=!1;var a=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(a+=1);a==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,a==16&&(this.all=!0,this.update+=1)},btn24(e){this.sectors[4].active=e?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=e?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=e?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=e?this.sectors[7].active=!0:this.sectors[7].active=!1;var a=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(a+=1);a==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,a==16&&(this.all=!0,this.update+=1)},btn34(e){this.sectors[8].active=e?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=e?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=e?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=e?this.sectors[11].active=!0:this.sectors[11].active=!1;var a=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(a+=1);a==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,a==16&&(this.all=!0,this.update+=1)},btn44(e){this.sectors[12].active=e?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=e?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=e?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=e?this.sectors[15].active=!0:this.sectors[15].active=!1;var a=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(a+=1);a==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,a==16&&(this.all=!0,this.update+=1)},validateField(e){(e===0||e===1||e===2||e===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(e===4||e===5||e===6||e===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(e===8||e===9||e===10||e===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(e===12||e===13||e===14||e===15)&&(this.status44=!!(this.sectors[12].active&&this.sectors[13].active&&this.sectors[14].active&&this.sectors[15].active)),this.all=!!(this.status14&&this.status34&&this.status24&&this.status44),this.update+=1,this.status14&&(this.refreshBtn14+=1),this.status24&&(this.refreshBtn24+=1),this.status34&&(this.refreshBtn34+=1),this.status44&&(this.refreshBtn44+=1)}}},Xj=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},Kj=X9.setup;X9.setup=Kj?(e,a)=>(Xj(),Kj(e,a)):Xj;const W_t={class:"gsc-field"},q_t={class:"gsc-field__title-checked"},Y_t={class:"gsc-field__title-checked__title"},Z_t={class:"gsc-field__container-field"},J_t={class:"gsc-field__container-field__field"},X_t={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},K_t=["stroke"],Q_t=["stroke","stroke-width"],ebt=["stroke","stroke-width"],tbt=["stroke-width","stroke"],nbt=["fill","fill-opacity","stroke","stroke-width"],abt=["fill","fill-opacity","stroke","stroke-width"],rbt=["fill","fill-opacity","stroke","stroke-width"],ibt=["fill","fill-opacity","stroke","stroke-width"],obt=["fill","fill-opacity","stroke","stroke-width"],sbt=["fill","fill-opacity","stroke","stroke-width"],lbt=["fill","fill-opacity","stroke","stroke-width"],cbt=["fill","fill-opacity","stroke","stroke-width"],dbt=["fill","fill-opacity","stroke","stroke-width"],ubt=["fill","fill-opacity","stroke","stroke-width"],hbt=["fill","fill-opacity","stroke","stroke-width"],pbt=["fill","fill-opacity","stroke","stroke-width"],fbt=["fill","fill-opacity","stroke","stroke-width"],mbt=["fill","fill-opacity","stroke","stroke-width"],gbt=["fill","fill-opacity","stroke","stroke-width"],ybt=["fill","fill-opacity","stroke","stroke-width"],vbt={class:"gsc-field__container-field__bar-buttons"};function _bt(e,a,i,N,L,u){const g=t.resolveComponent("GSCCheckbox"),n=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",W_t,[t.createElementVNode("div",q_t,[t.createElementVNode("div",Y_t,t.toDisplayString(i.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(i.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(g,{label:i.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":i.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:L.all,key:L.update,"model-value":L.all,"onUpdate:modelValue":u.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",Z_t,[t.createElementVNode("div",J_t,[(t.openBlock(),t.createElementBlock("svg",X_t,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:i.colorLineField},null,8,K_t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+u.translx+"px, "+u.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:i.colorLineField,"stroke-width":i.borderWidthLineField,"stroke-linecap":"square"},null,12,Q_t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+u.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:i.colorLineField,"stroke-width":i.borderWidthLineField,"stroke-linecap":"square"},null,12,ebt),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+u.translxcircle+"px, "+u.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":i.borderWidthLineField,stroke:i.colorLineField},null,12,tbt),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:L.sectors[0].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[0]||(a[0]=b=>u.selectSector(0))},null,8,nbt),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:L.sectors[1].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[1]||(a[1]=b=>u.selectSector(1))},null,8,abt),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:L.sectors[2].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[2]||(a[2]=b=>u.selectSector(2))},null,8,rbt),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:L.sectors[3].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[3]||(a[3]=b=>u.selectSector(3))},null,8,ibt),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:L.sectors[4].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[4]||(a[4]=b=>u.selectSector(4))},null,8,obt),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:L.sectors[5].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[5]||(a[5]=b=>u.selectSector(5))},null,8,sbt),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:L.sectors[6].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[6]||(a[6]=b=>u.selectSector(6))},null,8,lbt),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:L.sectors[7].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[7]||(a[7]=b=>u.selectSector(7))},null,8,cbt),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:L.sectors[8].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[8]||(a[8]=b=>u.selectSector(8))},null,8,dbt),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:L.sectors[9].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[9]||(a[9]=b=>u.selectSector(9))},null,8,ubt),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:L.sectors[10].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[10]||(a[10]=b=>u.selectSector(10))},null,8,hbt),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:L.sectors[11].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[11]||(a[11]=b=>u.selectSector(11))},null,8,pbt),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:L.sectors[12].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[12]||(a[12]=b=>u.selectSector(12))},null,8,fbt),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:L.sectors[13].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[13]||(a[13]=b=>u.selectSector(13))},null,8,mbt),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:L.sectors[14].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[14]||(a[14]=b=>u.selectSector(14))},null,8,gbt),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:L.sectors[15].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[15]||(a[15]=b=>u.selectSector(15))},null,8,ybt)]))]),t.createElementVNode("div",vbt,[(t.openBlock(),t.createBlock(n,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:u.btn14,key:L.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:u.btn24,key:L.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:u.btn34,key:L.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:u.btn44,key:L.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const Qj=G_t(X9,[["render",_bt],["__scopeId","data-v-b85699b8"]]),bbt={class:"toggle-buttons__background"},xbt=["onClick"],wbt={__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"}},emits:["change"],setup(e,{emit:a}){const i=e;t.useCssVars(g=>({"0d588b39":e.height,"2a8da974":e.width,"6d34d30a":e.mainBackgroundColor,"3d50bf20":e.borderRadius,e8fc78a2:e.mainBorderWidth,eb2a7568:e.mainBorderColor,acdd84b6:e.fontFamily,"63d45e82":e.fontSize,b28ed67c:e.activeBorderWidth,b4bcd342:e.activeBorderColor,"7fa6e29d":e.activeBackgroundColor}));const N=t.ref(i.selectedButtonIndex),L=t.computed(()=>({"--grid-template-columns":`repeat(${i.buttons.length}, 1fr)`}));t.watch(()=>i.selectedButtonIndex,g=>{N.value=g}),t.watch(N,(g,n)=>{g!==n&&a("change",{index:g,button:i.buttons[g]})});function u(g){N.value=g}return(g,n)=>(t.openBlock(),t.createElementBlock("div",bbt,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(L.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(b,m)=>(t.openBlock(),t.createElementBlock("div",{key:`b${m}`,class:t.normalizeClass(["toggle-buttons__button",{active:N.value===m}]),onClick:r=>u(m)},t.toDisplayString(b.text||b),11,xbt))),128))],4)]))}},kbt=xo(wbt,[["__scopeId","data-v-ac2af001"]]);function eU(e,a){return function(){return e.apply(a,arguments)}}const{toString:Cbt}=Object.prototype,{getPrototypeOf:K9}=Object,G3=(e=>a=>{const i=Cbt.call(a);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),tp=e=>(e=e.toLowerCase(),a=>G3(a)===e),W3=e=>a=>typeof a===e,{isArray:m1}=Array,Iy=W3("undefined");function Tbt(e){return e!==null&&!Iy(e)&&e.constructor!==null&&!Iy(e.constructor)&&Nu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tU=tp("ArrayBuffer");function Sbt(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&tU(e.buffer),a}const Ebt=W3("string"),Nu=W3("function"),nU=W3("number"),q3=e=>e!==null&&typeof e=="object",Abt=e=>e===!0||e===!1,Y3=e=>{if(G3(e)!=="object")return!1;const a=K9(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Mbt=tp("Date"),Ibt=tp("File"),Pbt=tp("Blob"),Nbt=tp("FileList"),Bbt=e=>q3(e)&&Nu(e.pipe),Obt=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Nu(e.append)&&((a=G3(e))==="formdata"||a==="object"&&Nu(e.toString)&&e.toString()==="[object FormData]"))},zbt=tp("URLSearchParams"),Lbt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Py(e,a,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let N,L;if(typeof e!="object"&&(e=[e]),m1(e))for(N=0,L=e.length;N<L;N++)a.call(null,e[N],N,e);else{const u=i?Object.getOwnPropertyNames(e):Object.keys(e),g=u.length;let n;for(N=0;N<g;N++)n=u[N],a.call(null,e[n],n,e)}}function aU(e,a){a=a.toLowerCase();const i=Object.keys(e);let N=i.length,L;for(;N-- >0;)if(L=i[N],a===L.toLowerCase())return L;return null}const rU=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),iU=e=>!Iy(e)&&e!==rU;function Q9(){const{caseless:e}=iU(this)&&this||{},a={},i=(N,L)=>{const u=e&&aU(a,L)||L;Y3(a[u])&&Y3(N)?a[u]=Q9(a[u],N):Y3(N)?a[u]=Q9({},N):m1(N)?a[u]=N.slice():a[u]=N};for(let N=0,L=arguments.length;N<L;N++)arguments[N]&&Py(arguments[N],i);return a}const Fbt=(e,a,i,{allOwnKeys:N}={})=>(Py(a,(L,u)=>{i&&Nu(L)?e[u]=eU(L,i):e[u]=L},{allOwnKeys:N}),e),Dbt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vbt=(e,a,i,N)=>{e.prototype=Object.create(a.prototype,N),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),i&&Object.assign(e.prototype,i)},Rbt=(e,a,i,N)=>{let L,u,g;const n={};if(a=a||{},e==null)return a;do{for(L=Object.getOwnPropertyNames(e),u=L.length;u-- >0;)g=L[u],(!N||N(g,e,a))&&!n[g]&&(a[g]=e[g],n[g]=!0);e=i!==!1&&K9(e)}while(e&&(!i||i(e,a))&&e!==Object.prototype);return a},$bt=(e,a,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=a.length;const N=e.indexOf(a,i);return N!==-1&&N===i},jbt=e=>{if(!e)return null;if(m1(e))return e;let a=e.length;if(!nU(a))return null;const i=new Array(a);for(;a-- >0;)i[a]=e[a];return i},Ubt=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&K9(Uint8Array)),Hbt=(e,a)=>{const i=(e&&e[Symbol.iterator]).call(e);let N;for(;(N=i.next())&&!N.done;){const L=N.value;a.call(e,L[0],L[1])}},Gbt=(e,a)=>{let i;const N=[];for(;(i=e.exec(a))!==null;)N.push(i);return N},Wbt=tp("HTMLFormElement"),qbt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,i,N){return i.toUpperCase()+N}),oU=(({hasOwnProperty:e})=>(a,i)=>e.call(a,i))(Object.prototype),Ybt=tp("RegExp"),sU=(e,a)=>{const i=Object.getOwnPropertyDescriptors(e),N={};Py(i,(L,u)=>{let g;(g=a(L,u,e))!==!1&&(N[u]=g||L)}),Object.defineProperties(e,N)},Zbt=e=>{sU(e,(a,i)=>{if(Nu(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const N=e[i];if(Nu(N)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},Jbt=(e,a)=>{const i={},N=L=>{L.forEach(u=>{i[u]=!0})};return m1(e)?N(e):N(String(e).split(a)),i},Xbt=()=>{},Kbt=(e,a)=>(e=+e,Number.isFinite(e)?e:a),eC="abcdefghijklmnopqrstuvwxyz",lU="0123456789",cU={DIGIT:lU,ALPHA:eC,ALPHA_DIGIT:eC+eC.toUpperCase()+lU},Qbt=(e=16,a=cU.ALPHA_DIGIT)=>{let i="";const{length:N}=a;for(;e--;)i+=a[Math.random()*N|0];return i};function ext(e){return!!(e&&Nu(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const txt=e=>{const a=new Array(10),i=(N,L)=>{if(q3(N)){if(a.indexOf(N)>=0)return;if(!("toJSON"in N)){a[L]=N;const u=m1(N)?[]:{};return Py(N,(g,n)=>{const b=i(g,L+1);!Iy(b)&&(u[n]=b)}),a[L]=void 0,u}}return N};return i(e,0)},nxt=tp("AsyncFunction"),axt=e=>e&&(q3(e)||Nu(e))&&Nu(e.then)&&Nu(e.catch),ar={isArray:m1,isArrayBuffer:tU,isBuffer:Tbt,isFormData:Obt,isArrayBufferView:Sbt,isString:Ebt,isNumber:nU,isBoolean:Abt,isObject:q3,isPlainObject:Y3,isUndefined:Iy,isDate:Mbt,isFile:Ibt,isBlob:Pbt,isRegExp:Ybt,isFunction:Nu,isStream:Bbt,isURLSearchParams:zbt,isTypedArray:Ubt,isFileList:Nbt,forEach:Py,merge:Q9,extend:Fbt,trim:Lbt,stripBOM:Dbt,inherits:Vbt,toFlatObject:Rbt,kindOf:G3,kindOfTest:tp,endsWith:$bt,toArray:jbt,forEachEntry:Hbt,matchAll:Gbt,isHTMLForm:Wbt,hasOwnProperty:oU,hasOwnProp:oU,reduceDescriptors:sU,freezeMethods:Zbt,toObjectSet:Jbt,toCamelCase:qbt,noop:Xbt,toFiniteNumber:Kbt,findKey:aU,global:rU,isContextDefined:iU,ALPHABET:cU,generateString:Qbt,isSpecCompliantForm:ext,toJSONObject:txt,isAsyncFn:nxt,isThenable:axt};function qo(e,a,i,N,L){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),i&&(this.config=i),N&&(this.request=N),L&&(this.response=L)}ar.inherits(qo,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:ar.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const dU=qo.prototype,uU={};["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=>{uU[e]={value:e}}),Object.defineProperties(qo,uU),Object.defineProperty(dU,"isAxiosError",{value:!0}),qo.from=(e,a,i,N,L,u)=>{const g=Object.create(dU);return ar.toFlatObject(e,g,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),qo.call(g,e.message,a,i,N,L),g.cause=e,g.name=e.name,u&&Object.assign(g,u),g};const rxt=null;function tC(e){return ar.isPlainObject(e)||ar.isArray(e)}function hU(e){return ar.endsWith(e,"[]")?e.slice(0,-2):e}function pU(e,a,i){return e?e.concat(a).map(function(N,L){return N=hU(N),!i&&L?"["+N+"]":N}).join(i?".":""):a}function ixt(e){return ar.isArray(e)&&!e.some(tC)}const oxt=ar.toFlatObject(ar,{},null,function(e){return/^is[A-Z]/.test(e)});function Z3(e,a,i){if(!ar.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,i=ar.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,s){return!ar.isUndefined(s[c])});const N=i.metaTokens,L=i.visitor||m,u=i.dots,g=i.indexes,n=(i.Blob||typeof Blob<"u"&&Blob)&&ar.isSpecCompliantForm(a);if(!ar.isFunction(L))throw new TypeError("visitor must be a function");function b(c){if(c===null)return"";if(ar.isDate(c))return c.toISOString();if(!n&&ar.isBlob(c))throw new qo("Blob is not supported. Use a Buffer instead.");return ar.isArrayBuffer(c)||ar.isTypedArray(c)?n&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function m(c,s,o){let l=c;if(c&&!o&&typeof c=="object"){if(ar.endsWith(s,"{}"))s=N?s:s.slice(0,-2),c=JSON.stringify(c);else if(ar.isArray(c)&&ixt(c)||(ar.isFileList(c)||ar.endsWith(s,"[]"))&&(l=ar.toArray(c)))return s=hU(s),l.forEach(function(d,h){!(ar.isUndefined(d)||d===null)&&a.append(g===!0?pU([s],h,u):g===null?s:s+"[]",b(d))}),!1}return tC(c)?!0:(a.append(pU(o,s,u),b(c)),!1)}const r=[],v=Object.assign(oxt,{defaultVisitor:m,convertValue:b,isVisitable:tC});function _(c,s){if(!ar.isUndefined(c)){if(r.indexOf(c)!==-1)throw Error("Circular reference detected in "+s.join("."));r.push(c),ar.forEach(c,function(o,l){(!(ar.isUndefined(o)||o===null)&&L.call(a,o,ar.isString(l)?l.trim():l,s,v))===!0&&_(o,s?s.concat(l):[l])}),r.pop()}}if(!ar.isObject(e))throw new TypeError("data must be an object");return _(e),a}function fU(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return a[i]})}function nC(e,a){this._pairs=[],e&&Z3(e,this,a)}const mU=nC.prototype;mU.append=function(e,a){this._pairs.push([e,a])},mU.toString=function(e){const a=e?function(i){return e.call(this,i,fU)}:fU;return this._pairs.map(function(i){return a(i[0])+"="+a(i[1])},"").join("&")};function sxt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gU(e,a,i){if(!a)return e;const N=i&&i.encode||sxt,L=i&&i.serialize;let u;if(L?u=L(a,i):u=ar.isURLSearchParams(a)?a.toString():new nC(a,i).toString(N),u){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class lxt{constructor(){this.handlers=[]}use(a,i,N){return this.handlers.push({fulfilled:a,rejected:i,synchronous:N?N.synchronous:!1,runWhen:N?N.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){ar.forEach(this.handlers,function(i){i!==null&&a(i)})}}const yU=lxt,vU={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cxt=typeof URLSearchParams<"u"?URLSearchParams:nC,dxt=typeof FormData<"u"?FormData:null,uxt=typeof Blob<"u"?Blob:null,hxt={isBrowser:!0,classes:{URLSearchParams:cxt,FormData:dxt,Blob:uxt},protocols:["http","https","file","blob","url","data"]},_U=typeof window<"u"&&typeof document<"u",pxt=(e=>_U&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),fxt=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),mxt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_U,hasStandardBrowserEnv:pxt,hasStandardBrowserWebWorkerEnv:fxt},Symbol.toStringTag,{value:"Module"})),np={...mxt,...hxt};function gxt(e,a){return Z3(e,new np.classes.URLSearchParams,Object.assign({visitor:function(i,N,L,u){return np.isNode&&ar.isBuffer(i)?(this.append(N,i.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},a))}function yxt(e){return ar.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function vxt(e){const a={},i=Object.keys(e);let N;const L=i.length;let u;for(N=0;N<L;N++)u=i[N],a[u]=e[u];return a}function bU(e){function a(i,N,L,u){let g=i[u++];if(g==="__proto__")return!0;const n=Number.isFinite(+g),b=u>=i.length;return g=!g&&ar.isArray(L)?L.length:g,b?(ar.hasOwnProp(L,g)?L[g]=[L[g],N]:L[g]=N,!n):((!L[g]||!ar.isObject(L[g]))&&(L[g]=[]),a(i,N,L[g],u)&&ar.isArray(L[g])&&(L[g]=vxt(L[g])),!n)}if(ar.isFormData(e)&&ar.isFunction(e.entries)){const i={};return ar.forEachEntry(e,(N,L)=>{a(yxt(N),L,i,0)}),i}return null}function _xt(e,a,i){if(ar.isString(e))try{return(a||JSON.parse)(e),ar.trim(e)}catch(N){if(N.name!=="SyntaxError")throw N}return(i||JSON.stringify)(e)}const aC={transitional:vU,adapter:["xhr","http"],transformRequest:[function(e,a){const i=a.getContentType()||"",N=i.indexOf("application/json")>-1,L=ar.isObject(e);if(L&&ar.isHTMLForm(e)&&(e=new FormData(e)),ar.isFormData(e))return N?JSON.stringify(bU(e)):e;if(ar.isArrayBuffer(e)||ar.isBuffer(e)||ar.isStream(e)||ar.isFile(e)||ar.isBlob(e))return e;if(ar.isArrayBufferView(e))return e.buffer;if(ar.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(L){if(i.indexOf("application/x-www-form-urlencoded")>-1)return gxt(e,this.formSerializer).toString();if((u=ar.isFileList(e))||i.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return Z3(u?{"files[]":e}:e,g&&new g,this.formSerializer)}}return L||N?(a.setContentType("application/json",!1),_xt(e)):e}],transformResponse:[function(e){const a=this.transitional||aC.transitional,i=a&&a.forcedJSONParsing,N=this.responseType==="json";if(e&&ar.isString(e)&&(i&&!this.responseType||N)){const L=!(a&&a.silentJSONParsing)&&N;try{return JSON.parse(e)}catch(u){if(L)throw u.name==="SyntaxError"?qo.from(u,qo.ERR_BAD_RESPONSE,this,null,this.response):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:np.classes.FormData,Blob:np.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ar.forEach(["delete","get","head","post","put","patch"],e=>{aC.headers[e]={}});const rC=aC,bxt=ar.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"]),xxt=e=>{const a={};let i,N,L;return e&&e.split(`
123
+ */const Jc={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"}},yj={itemsToShow:{default:Jc.itemsToShow,type:Number},itemsToScroll:{default:Jc.itemsToScroll,type:Number},wrapAround:{default:Jc.wrapAround,type:Boolean},throttle:{default:Jc.throttle,type:Number},snapAlign:{default:Jc.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Jc.transition,type:Number},breakpoints:{default:Jc.breakpoints,type:Object},autoplay:{default:Jc.autoplay,type:Number},pauseAutoplayOnHover:{default:Jc.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Jc.mouseDrag,type:Boolean},touchDrag:{default:Jc.touchDrag,type:Boolean},dir:{default:Jc.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Jc.i18n,type:Object},settings:{default(){return{}},type:Object}};function Nmt({config:e,slidesCount:a}){const{snapAlign:i,wrapAround:N,itemsToShow:L=1}=e;if(N)return Math.max(a-1,0);let u;switch(i){case"start":u=a-L;break;case"end":u=a-1;break;case"center":case"center-odd":u=a-Math.ceil((L-.5)/2);break;case"center-even":u=a-Math.ceil(L/2);break;default:u=0;break}return Math.max(u,0)}function Bmt({config:e,slidesCount:a}){const{wrapAround:i,snapAlign:N,itemsToShow:L=1}=e;let u=0;if(i||L>a)return u;switch(N){case"start":u=0;break;case"end":u=L-1;break;case"center":case"center-odd":u=Math.floor((L-1)/2);break;case"center-even":u=Math.floor((L-2)/2);break;default:u=0;break}return u}function O9({val:e,max:a,min:i}){return a<i?e:Math.min(Math.max(e,i),a)}function Omt({config:e,currentSlide:a,slidesCount:i}){const{snapAlign:N,wrapAround:L,itemsToShow:u=1}=e;let g=a;switch(N){case"center":case"center-odd":g-=(u-1)/2;break;case"center-even":g-=(u-2)/2;break;case"end":g-=u-1;break}return L?g:O9({val:g,max:i-u,min:0})}function vj(e){return e?e.reduce((a,i)=>{var N;return i.type===t.Fragment?[...a,...vj(i.children)]:((N=i.type)===null||N===void 0?void 0:N.name)==="CarouselSlide"?[...a,i]:a},[]):[]}function z9({val:e,max:a,min:i=0}){return e>a?z9({val:e-(a+1),max:a,min:i}):e<i?z9({val:e+(a+1),max:a,min:i}):e}function zmt(e,a){let i;return a?function(...N){const L=this;i||(e.apply(L,N),i=!0,setTimeout(()=>i=!1,a))}:e}function Lmt(e,a){let i;return function(...N){i&&clearTimeout(i),i=setTimeout(()=>{e(...N),i=null},a)}}function Fmt(e="",a={}){return Object.entries(a).reduce((i,[N,L])=>i.replace(`{${N}}`,String(L)),e)}var Dmt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Jc))),a=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Fmt(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:i.value}))}}),Vmt=t.defineComponent({name:"Carousel",props:yj,setup(e,{slots:a,emit:i,expose:N}){var L;const u=t.ref(null),g=t.ref([]),n=t.ref(0),b=t.ref(0),m=t.reactive(Object.assign({},Jc));let r=Object.assign({},Jc),v;const _=t.ref((L=e.modelValue)!==null&&L!==void 0?L:0),c=t.ref(0),s=t.ref(0),o=t.ref(0),l=t.ref(0);let d,h;t.provide("config",m),t.provide("slidesCount",b),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",l),t.provide("slideWidth",n);function p(){v=Object.assign({},e.breakpoints),r=Object.assign(Object.assign(Object.assign({},r),e),{i18n:Object.assign(Object.assign({},r.i18n),e.i18n),breakpoints:void 0}),y(r)}function f(){if(!v||!Object.keys(v).length)return;const te=Object.keys(v).map(se=>Number(se)).sort((se,he)=>+he-+se);let ee=Object.assign({},r);te.some(se=>{const he=window.matchMedia(`(min-width: ${se}px)`).matches;return he&&(ee=Object.assign(Object.assign({},ee),v[se])),he}),y(ee)}function y(te){Object.entries(te).forEach(([ee,se])=>m[ee]=se)}const w=Lmt(()=>{f(),x()},16);function x(){if(!u.value)return;const te=u.value.getBoundingClientRect();n.value=te.width/m.itemsToShow}function M(){b.value<=0||(s.value=Math.ceil((b.value-1)/2),o.value=Nmt({config:m,slidesCount:b.value}),l.value=Bmt({config:m,slidesCount:b.value}),m.wrapAround||(_.value=O9({val:_.value,max:o.value,min:l.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),f(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{h&&clearTimeout(h),d&&clearInterval(d),window.removeEventListener("resize",w,{passive:!0})});let k=!1;const T={x:0,y:0},S={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),P=t.ref(!1),C=()=>{E.value=!0},z=()=>{E.value=!1};function I(te){["INPUT","TEXTAREA","SELECT"].includes(te.target.tagName)||(k=te.type==="touchstart",k||te.preventDefault(),!(!k&&te.button!==0||j.value)&&(T.x=k?te.touches[0].clientX:te.clientX,T.y=k?te.touches[0].clientY:te.clientY,document.addEventListener(k?"touchmove":"mousemove",O,!0),document.addEventListener(k?"touchend":"mouseup",D,!0)))}const O=zmt(te=>{P.value=!0,S.x=k?te.touches[0].clientX:te.clientX,S.y=k?te.touches[0].clientY:te.clientY;const ee=S.x-T.x,se=S.y-T.y;A.y=se,A.x=ee},m.throttle);function D(){const te=m.dir==="rtl"?-1:1,ee=Math.sign(A.x)*.4,se=Math.round(A.x/n.value+ee)*te;if(se&&!k){const he=ce=>{ce.stopPropagation(),window.removeEventListener("click",he,!0)};window.addEventListener("click",he,!0)}q(_.value-se),A.x=0,A.y=0,P.value=!1,document.removeEventListener(k?"touchmove":"mousemove",O,!0),document.removeEventListener(k?"touchend":"mouseup",D,!0)}function V(){!m.autoplay||m.autoplay<=0||(d=setInterval(()=>{m.pauseAutoplayOnHover&&E.value||$()},m.autoplay))}function R(){d&&(clearInterval(d),d=null),V()}const j=t.ref(!1);function q(te){const ee=m.wrapAround?te:O9({val:te,max:o.value,min:l.value});_.value===ee||j.value||(i("slide-start",{slidingToIndex:te,currentSlideIndex:_.value,prevSlideIndex:c.value,slidesCount:b.value}),j.value=!0,c.value=_.value,_.value=ee,h=setTimeout(()=>{if(m.wrapAround){const se=z9({val:ee,max:o.value,min:0});se!==_.value&&(_.value=se,i("loop",{currentSlideIndex:_.value,slidingToIndex:te}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:c.value,slidesCount:b.value}),j.value=!1,R()},m.transition))}function $(){q(_.value+m.itemsToScroll)}function G(){q(_.value-m.itemsToScroll)}const Z={slideTo:q,next:$,prev:G};t.provide("nav",Z),t.provide("isSliding",j);const H=t.computed(()=>Omt({config:m,currentSlide:_.value,slidesCount:b.value}));t.provide("slidesToScroll",H);const Y=t.computed(()=>{const te=m.dir==="rtl"?-1:1,ee=H.value*n.value*te;return{transform:`translateX(${A.x-ee}px)`,transition:`${j.value?m.transition:0}ms`,margin:m.wrapAround?`0 -${b.value*n.value}px`:"",width:"100%"}});function X(){p(),f(),M(),x(),R()}Object.keys(yj).forEach(te=>{["modelValue"].includes(te)||t.watch(()=>e[te],X)}),t.watch(()=>e.modelValue,te=>{te!==_.value&&q(Number(te))}),t.watch(b,M),i("before-init"),p();const le={config:m,slidesCount:b,slideWidth:n,next:$,prev:G,slideTo:q,currentSlide:_,maxSlide:o,minSlide:l,middleSlide:s};N({updateBreakpointsConfigs:f,updateSlidesData:M,updateSlideWidth:x,initDefaultConfigs:p,restartCarousel:X,slideTo:q,next:$,prev:G,nav:Z,data:le});const ie=a.default||a.slides,ae=a.addons,re=t.reactive(le);return()=>{const te=vj(ie==null?void 0:ie(re)),ee=(ae==null?void 0:ae(re))||[];te.forEach((me,fe)=>me.props.index=fe);let se=te;if(m.wrapAround){const me=te.map((ye,xe)=>t.cloneVNode(ye,{index:-te.length+xe,isClone:!0,key:`clone-before-${xe}`})),fe=te.map((ye,xe)=>t.cloneVNode(ye,{index:te.length+xe,isClone:!0,key:`clone-after-${xe}`}));se=[...me,...te,...fe]}g.value=te,b.value=Math.max(te.length,1);const he=t.h("ol",{class:"carousel__track",style:Y.value,onMousedownCapture:m.mouseDrag?I:null,onTouchstartPassiveCapture:m.touchDrag?I:null},se),ce=t.h("div",{class:"carousel__viewport"},he);return t.h("section",{ref:u,class:{carousel:!0,"is-sliding":j.value,"is-dragging":P.value,"is-hover":E.value,"carousel--rtl":m.dir==="rtl"},dir:m.dir,"aria-label":m.i18n.ariaGallery,tabindex:"0",onMouseenter:C,onMouseleave:z},[ce,ee,t.h(Dmt)])}}}),_j;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(_j||(_j={}));var Rmt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const i=t.inject("config",t.reactive(Object.assign({},Jc))),N=t.inject("currentSlide",t.ref(0)),L=t.inject("slidesToScroll",t.ref(0)),u=t.inject("isSliding",t.ref(!1)),g=()=>e.index===N.value,n=()=>e.index===N.value-1,b=()=>e.index===N.value+1,m=()=>{const r=Math.floor(L.value),v=Math.ceil(L.value+i.itemsToShow-1);return e.index>=r&&e.index<=v};return()=>{var r;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":m(),"carousel__slide--active":g(),"carousel__slide--prev":n(),"carousel__slide--next":b(),"carousel__slide--sliding":u.value},"aria-hidden":!m()},(r=a.default)===null||r===void 0?void 0:r.call(a))}}});const $mt=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},jmt=e=>(t.pushScopeId("data-v-cf3e4ab5"),e=e(),t.popScopeId(),e),Umt={class:"gsc-carousel"},Hmt={key:0},Gmt=jmt(()=>t.createElementVNode("div",null,"no hay",-1)),Wmt=[Gmt],qmt={class:"gsc-carousel__2d__slides"},Ymt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Zmt=["fill"],Jmt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xmt=["fill"],Kmt={class:"gsc-carousel__2d__navigation"},Qmt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e0t=["stroke"],t0t={key:1,class:"gsc-carousel__2d__navigation__pagination"},n0t=["onClick"],a0t={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r0t=["stroke"],i0t={__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(a=>a 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:a,emit:i}){const N=e;t.useCssVars(o=>({a79d2c9e:e.slideLeftArrowBackgroundImage,"227709fa":e.slidesArrowsLeftAndRight,c388b60c:e.slideRightArrowBackgroundImage,"257da7fc":e.marginTop,"1c9922a0":e.secondarySlidesOpacity}));const L=t.ref(null),u=t.ref({}),g=t.ref(0),n=t.ref(!1);t.watch(L,o=>{o&&n.value?(n.value=!1,b(N.items)):o&&o.slideTo&&o.slideTo(g.value)},{deep:!0}),t.watch(()=>N.currentItemIndex,o=>{g.value!==o&&_(o)}),t.watch(()=>N.items,o=>{L.value?b(o):n.value=!0},{immediate:!0});function b(o){if(o&&o.length&&L.value){if(N.defaultItemByProp){const l=N.items.findIndex(d=>d[N.defaultItemByProp.propName]===N.defaultItemByProp.value);l!==-1?(g.value=l,u.value=o[l]):(g.value=0,u.value=o[0])}else g.value=N.defaultItemByIndex,u.value=o[N.defaultItemByIndex];L.value.slideTo&&L.value.slideTo(g.value),i("input",{selectedItem:u.value,selectedItemIndex:g.value})}}function m(){L.value&&L.value.next()}function r(){L.value&&L.value.prev()}function v(){L.value&&L.value.updateSlideWidth()}function _(o){L.value&&L.value.slideTo(o)}function c(o){L.value.slideTo(o)}function s(o){const l=o.slidingToIndex<0?N.items.length-1:o.slidingToIndex===N.items.length?0:o.slidingToIndex;g.value=l,u.value=N.items[l],i("update:currentItemIndex",l),i("input",{selectedItem:u.value,selectedItemIndex:g.value})}return a({prev:r,next:m,updateSlideWidth:v,slideTo:_}),(o,l)=>(t.openBlock(),t.createElementBlock("div",Umt,[N.is3d?(t.openBlock(),t.createElementBlock("div",Hmt,Wmt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",qmt,[t.createVNode(t.unref(Vmt),{ref_key:"carousel2d",ref:L,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:s},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,h)=>(t.openBlock(),t.createBlock(t.unref(Rmt),{key:h},{default:t.withCtx(()=>[t.renderSlot(o.$slots,"default",{item:d},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:l[0]||(l[0]=d=>L.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Ymt,[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,Zmt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:l[1]||(l[1]=d=>m())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",Jmt,[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,Xmt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Kmt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:l[2]||(l[2]=d=>r())},[(t.openBlock(),t.createElementBlock("svg",Qmt,[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:N.arrowsColor},null,8,e0t)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",t0t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${h}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${N.navigationHeight}px`,width:`${g.value===h?N.navigationActiveWidth:N.navigationActiveWidth/2}px`,borderRadius:`${N.navigationBorderRadius}px`,backgroundColor:`${g.value===h?N.navigationActiveColor:N.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:p=>c(h)},null,12,n0t))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:l[3]||(l[3]=d=>L.value.next())},[(t.openBlock(),t.createElementBlock("svg",a0t,[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:N.arrowsColor},null,8,r0t)]))])):t.createCommentVNode("",!0)])],2))]))}},o0t=$mt(i0t,[["__scopeId","data-v-cf3e4ab5"]]),L9=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i};let bj=null;const F9={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)bj=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),bj.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},xj=()=>{t.useCssVars(e=>({"9d0f46f6":e.colorBackgroundHome+"45",ec0e4054:e.colorBackgroundAway+"45","45ffc585":e.colorBackgroundHome,"45fcb394":e.colorBackgroundAway}))},wj=F9.setup;F9.setup=wj?(e,a)=>(xj(),wj(e,a)):xj;const R3=e=>(t.pushScopeId("data-v-71797e9d"),e=e(),t.popScopeId(),e),s0t=R3(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),l0t=[s0t],c0t=R3(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),d0t=["src"],u0t=R3(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),h0t=R3(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),p0t=["src"],f0t=["src"],m0t={class:"text-container"};function g0t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(u.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(u.playbutton),onClick:a[0]||(a[0]=(...g)=>u.onclickPlayVideos&&u.onclickPlayVideos(...g))},l0t,2),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(u.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(u.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),c0t,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,d0t),t.createElementVNode("div",{class:t.normalizeClass([u.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(u.baselogoright)},null,2),u0t,h0t,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(u.teamlogo)},null,10,p0t),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(u.logoright)},null,10,f0t),t.createElementVNode("div",m0t,[t.createElementVNode("span",{class:t.normalizeClass(u.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(u.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const y0t=L9(F9,[["render",g0t],["__scopeId","data-v-71797e9d"]]);let kj=null;const D9={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},seasonnameContainer(){const e=this.gamesContainerWidth;return e<=280?"seasonname280":e<=400?"seasonname400":e<=540?"seasonname540":e<=650?"seasonname650":"seasonname"},matchboxContainer(){const e=this.gamesContainerWidth;return e<=400?"matchbox400":e<=540?"matchbox540":e<=650?"matchbox650":"matchbox"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)kj=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),kj.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Cj=()=>{t.useCssVars(e=>({"5ea1d638":e.colorBackgroundHome,"5ea7fa1a":e.colorBackgroundAway,"74c14a08":e.colorBackgroundAway+"62","25c26638":e.colorBackgroundHome+"36"}))},Tj=D9.setup;D9.setup=Tj?(e,a)=>(Cj(),Tj(e,a)):Cj;const $3=e=>(t.pushScopeId("data-v-83c7df16"),e=e(),t.popScopeId(),e),v0t=$3(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),_0t=$3(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),b0t=[_0t],x0t={class:"player-container"},w0t=["src"],k0t=["src"],C0t=["src"],T0t={class:"container-score"},S0t=["src"],E0t=["src"],A0t=["src"],M0t=$3(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),I0t=$3(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function P0t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(u.thumbnailhighlights)},[v0t,t.createElementVNode("div",{class:t.normalizeClass(u.playbutton),onClick:a[0]||(a[0]=(...g)=>u.onclickPlayVideos&&u.onclickPlayVideos(...g))},b0t,2),t.createElementVNode("div",x0t,[t.createElementVNode("div",{class:t.normalizeClass(u.containerinfogame)},[t.createElementVNode("div",{class:t.normalizeClass(u.matchcontainer)},[t.createElementVNode("div",{class:t.normalizeClass(u.matchboxContainer)},t.toDisplayString(i.matchday),3),t.createElementVNode("div",{class:t.normalizeClass(u.seasonnameContainer)},t.toDisplayString(i.seasonName),3)],2),t.createElementVNode("div",{class:t.normalizeClass(u.seasoncontainer)},t.toDisplayString(i.date),3)],2),i.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(u.texttitle)},t.toDisplayString(i.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(u.texttitle2)},t.toDisplayString(i.nameCategory),3)),i.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:i.photoProfile,class:t.normalizeClass(u.playerimage)},null,10,w0t)):t.createCommentVNode("",!0),i.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:i.photoProfile,alt:""},null,8,k0t)):t.createCommentVNode("",!0),i.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:i.photoProfile,class:"img-number"},null,8,C0t)):t.createCommentVNode("",!0),t.createElementVNode("div",T0t,[t.createElementVNode("div",{class:t.normalizeClass(u.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(u.teamname)},t.toDisplayString(i.nameHomeTeam),3),t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(u.teamlogo)},null,10,S0t),t.createElementVNode("span",{class:t.normalizeClass(u.teamscore)},t.toDisplayString(i.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(u.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(u.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(u.teamscore)},t.toDisplayString(i.scoreAway),3),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(u.teamlogo)},null,10,E0t),t.createElementVNode("span",{class:t.normalizeClass(u.teamname)},t.toDisplayString(i.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,A0t),M0t,I0t],2)}const N0t={components:{GSCCarousel:o0t,GSCThumbnailHighlightGameHistoric:y0t,GSCThumbnailHighlightGamePlayer:L9(D9,[["render",P0t],["__scopeId","data-v-83c7df16"]])},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"},canPlayVideos:{type:Boolean,default:!0},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{printDataFiltered(){return this.canPlayVideos?this.printData.filter(e=>this.videoPrivilegesPlayingAs.has(e.playingAs)):[]},isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{getPlayingAs(e,a){return e.home_team===(a||this.data.team)?1:2},obtenerNombreCompletoFecha(e){if(e){const a=new Date(e),i=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][a.getUTCDay()],N=a.getUTCDate(),L=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][a.getUTCMonth()];return`${i} ${N} de ${L}`}else return""},onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.has_relevants==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,42,54]:a=e.data.category:a=[55,324,323,608,39,774,802,52,53,40,42,54]:e.data.has_relevants==1?e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:a=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let N={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:e.data.team_id_b?e.data.team_id_b:0,matchResult:e.data.matchResult?[e.data.matchResult]:i,advancedFilter:{playListTitle:""}};e.data.category!==0&&(N.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",N)},play(e){this.$emit("play",e)},async getData(e){const a=Pmt.create({headers:{Authorization:`${this.token}`}});var i=[],N={};if(e.type=="player"){const L=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);if(L.data.seasons[e.season])for(let u=0;u<L.data.seasons[e.season].games_played.length;u++)N={playingAs:this.getPlayingAs(L.data.seasons[e.season].games_played[u],L.data.team_id),category:0,player_id:L.data.player_id,position_id:L.data.position_id,color:L.data.info_thumbnails.colors.background_color,photo_profile:L.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.player_in_action[0]:L.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games_played[u].home_team+".png",player_name:L.data.seasons[e.season].games_played[u].home_team_acronym+" "+L.data.seasons[e.season].games_played[u].home_team_score+" : "+L.data.seasons[e.season].games_played[u].visiting_team_score+" "+L.data.seasons[e.season].games_played[u].visiting_team_acronym,team_id:L.data.team_id,has_relevants:L.data.seasons[e.season].games_played[u].has_relevants,team_id_b:L.data.seasons[e.season].games_played[u].home_team,season_id:L.data.seasons[e.season].games_played[u].season_id,name:L.data.seasons[e.season].games_played[u].player_name,seasonname:L.data.seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:L.data.seasons[e.season].games_played[u].game_id,match:L.data.seasons[e.season].games_played[u].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(L.data.seasons[e.season].games_played[u].date),scorehome:L.data.seasons[e.season].games_played[u].home_team_score,scoreaway:L.data.seasons[e.season].games_played[u].visiting_team_score,hometeamacronym:L.data.seasons[e.season].games_played[u].home_team_acronym,visitingteamacronym:L.data.seasons[e.season].games_played[u].visiting_team_acronym,background:L.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.background_player_in_action[0]:L.data.info_thumbnails.player_profile,backgroundhome:L.data.seasons[e.season].games_played[u].info_thumbnails.home_colors.background_color,backgroundaway:L.data.seasons[e.season].games_played[u].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games_played[u].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games_played[u].visiting_team+".png",total:L.data.seasons[e.season].games_played[u].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.seasons[e.season].games_played[u].home_team+"_"+L.data.seasons[e.season].games_played[u].season_id+"_r1.jpg"},i.push(N);else for(let u=0;u<L.data.national_seasons[e.season].games_played.length;u++)N={playingAs:this.getPlayingAs(L.data.national_seasons[e.season].games_played[u],L.data.team_id),category:0,player_id:L.data.player_id,position_id:L.data.position_id,color:L.data.info_thumbnails.colors.background_color,photo_profile:L.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.player_in_action[0]:L.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.national_seasons[e.season].games_played[u].home_team+".png",player_name:L.data.national_seasons[e.season].games_played[u].home_team_acronym+" "+L.data.national_seasons[e.season].games_played[u].home_team_score+" : "+L.data.national_seasons[e.season].games_played[u].visiting_team_score+" "+L.data.national_seasons[e.season].games_played[u].visiting_team_acronym,team_id:L.data.team_id,has_relevants:L.data.national_seasons[e.season].games_played[u].has_relevants,team_id_b:L.data.national_seasons[e.season].games_played[u].home_team,season_id:L.data.national_seasons[e.season].games_played[u].season_id,name:L.data.national_seasons[e.season].games_played[u].player_name,seasonname:L.data.national_seasons[e.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:L.data.national_seasons[e.season].games_played[u].game_id,match:L.data.national_seasons[e.season].games_played[u].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(L.data.national_seasons[e.season].games_played[u].date),scorehome:L.data.national_seasons[e.season].games_played[u].home_team_score,scoreaway:L.data.national_seasons[e.season].games_played[u].visiting_team_score,hometeamacronym:L.data.national_seasons[e.season].games_played[u].home_team_acronym,visitingteamacronym:L.data.national_seasons[e.season].games_played[u].visiting_team_acronym,background:L.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.background_player_in_action[0]:L.data.info_thumbnails.player_profile,backgroundhome:L.data.national_seasons[e.season].games_played[u].info_thumbnails.home_colors.background_color,backgroundaway:L.data.national_seasons[e.season].games_played[u].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.national_seasons[e.season].games_played[u].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.national_seasons[e.season].games_played[u].visiting_team+".png",total:L.data.national_seasons[e.season].games_played[u].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.national_seasons[e.season].games_played[u].home_team+"_"+L.data.national_seasons[e.season].games_played[u].season_id+"_r1.jpg"},i.push(N)}else if(e.type=="historic"){const L=await a.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game);for(let g=0;g<L.data.plays.length;g++)N={teamId:L.data.plays[g][2],player:"Jornada "+L.data.plays[g][6],player_name:L.data.plays[g][4],season_id:L.data.plays[g][31],game_id:L.data.plays[g][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},i.length>0?!i.filter(n=>n.game_id===L.data.plays[g][3]).length>0&&i.push(N):i.push(N);const u=L.data.thumbnails;for(let g=0;g<i.length;g++){const n=Math.floor(Math.random()*u[i[g].game_id].info_thumbnails.images.background_default_games.length);i[g].background="https://golstatsimages.blob.core.windows.net/images-library/"+u[i[g].game_id].info_thumbnails.images.background_default_games[n],i[g].backgroundhome=u[i[g].game_id].info_thumbnails.home_colors.background_color,i[g].backgroundaway=u[i[g].game_id].info_thumbnails.away_colors.background_color,i[g].logoaway="https://az755631.vo.msecnd.net/teams-150/"+u[i[g].game_id].info_thumbnails.away_colors.team_id+".png",i[g].logohome="https://az755631.vo.msecnd.net/teams-150/"+u[i[g].game_id].info_thumbnails.home_colors.team_id+".png",i[g].match=u[i[g].game_id].matchday_name.replace("Matchday","Jor"),i[g].playingAs=u[i[g].game_id].info_thumbnails.home_colors.team_id===i[g].teamId?1:2,i[g].seasonname=u[i[g].game_id].season_name,i[g].score=u[i[g].game_id].score[0]+" - "+u[i[g].game_id].score[1],i[g].category=0}}else{const L=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let u=0;u<L.data.seasons[e.season].games.length;u++){const g=Math.floor(Math.random()*L.data.seasons[e.season].games[u].info_thumbnails.images.background_default_games.length);N={playingAs:this.getPlayingAs(L.data.seasons[e.season].games[u],L.data.team_id),category:0,game_id:L.data.seasons[e.season].games[u].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[u].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[u].home_team+".png",player_name:L.data.seasons[e.season].games[u].home_team_acronym+" "+L.data.seasons[e.season].games[u].home_team_score+" : "+L.data.seasons[e.season].games[u].visiting_team_score+" "+L.data.seasons[e.season].games[u].visiting_team_acronym,team_id_b:L.data.seasons[e.season].games[u].home_team,team_id:L.data.team_id,season_id:L.data.seasons[e.season].games[u].season_id,name:"",seasonname:L.data.seasons[e.season].name,match:L.data.seasons[e.season].games[u].matchday_name.replace("Matchday","Jor"),score:L.data.seasons[e.season].games[u].home_team_score+" : "+L.data.seasons[e.season].games[u].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.seasons[e.season].games[u].info_thumbnails.images.background_default_games[g],backgroundhome:L.data.seasons[e.season].games[u].info_thumbnails.home_colors.background_color,backgroundaway:L.data.seasons[e.season].games[u].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[u].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[e.season].games[u].visiting_team+".png",total:L.data.seasons[e.season].games[u].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.seasons[e.season].games[u].home_team+"_"+L.data.seasons[e.season].games[u].season_id+"_r1.jpg"},i.push(N)}}this.printData=i},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const a of e)this.highlightsWidth=a.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},B0t={key:0,ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function O0t(e,a,i,N,L,u){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),n=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),b=t.resolveComponent("GSCCarousel");return u.printDataFiltered.length>0&&i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",B0t,[t.createVNode(b,t.mergeProps(u.carouselProps,{items:u.printDataFiltered,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:"0.2"}),{default:t.withCtx(({item:m})=>[i.data.type=="team"||i.data.type=="historic"?(t.openBlock(),t.createBlock(g,{key:0,items:m,"color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"logo-home":m.logohome,"logo-away":m.logoaway,background:m.background,matchday:m.match,onOnclickPlayVideos:r=>u.onclickPlayVideos({data:m,type:1}),"season-name":m.seasonname,score:m.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(n,{key:1,type:"player","name-player":m.name,"type-style":"game","color-background-home":m.backgroundhome,"color-background-away":m.backgroundaway,"type-img":"0",date:m.date,"season-name":m.seasonname,matchday:m.match,background:m.background,"name-home-team":m.hometeamacronym,"name-away-team":m.visitingteamacronym,"name-category":i.title,onOnclickPlayVideos:r=>u.onclickPlayVideos({data:m,type:2}),"logo-away":m.logoaway,"logo-home":m.logohome,"score-home":m.scorehome,"photo-profile":m.photo_profile,"score-away":m.scoreaway},null,8,["name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)):t.createCommentVNode("",!0)}const z0t=L9(N0t,[["render",O0t]]),_cn="",bcn="",xcn="",L0t={components:{GSCSlider:J1},props:{game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{game:{deep:!0,immediate:!0,handler(e){e.game_status==1?this.getDataProminent(e.gameId):this.getDataProminentPrematch(e.gameId)}}},data(){return{dataProminent:[],dataProminentAll:[],tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"}},computed:{},methods:{onclickPlayVideos(e){const a=[1,2,3];let i={seasonId:this.dataProminentAll.season_id,mainSectionType:1,playListType:e.data.is_team==1?3:2,categoryIds:e.data.categories,gameIds:this.game.game_status==1?[this.dataProminentAll._id]:null,playerIds:e.data.is_team!=1?[e.data.player_id]:[],goalkeeperIds:[],teamId:e.data.is_team==1?e.data.team_id:0,matchResult:a,playData:{},advancedFilter:{playListTitle:""}};this.$emit("openmedia",i)},hasDecimal(e){return typeof e!="number"?!1:e.toString().includes(".")},formatNumber(e){if(typeof e=="number")if(this.hasDecimal(e)){const a=Math.round(e*10)/10;return Number.isInteger(a)?a.toString()+"%":a.toFixed(1)+"%"}else return e+"%";else return"0"},formatNumber2(e){if(typeof e=="number")if(this.hasDecimal(e)){const a=Math.round(e*10)/10;return Number.isInteger(a)?a.toString()+"%":a.toFixed(1)+"%"}else return e;else return"0"},textoConNegritas(e){if(!e)return"";const a=e.split(/(\*.*?\*)/g).filter(L=>L.trim()!=="");let i=Math.ceil(a.length/2),N="";return a.forEach((L,u)=>{u===i&&(N+="<br/>"),L.startsWith("*")&&L.endsWith("*")?N+=`<span class="text-bold">${L.slice(1,-1)}</span>`:L.trim()!==""&&(N+=`<span class="text">${L}</span>`)}),N},async getDataProminentPrematch(e){try{const i=await Il.create({headers:{Authorization:`${this.tokenPremium}`}}).get(" https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId+"/prematch");this.dataProminent=i.data.data,this.dataProminentAll=i.data}catch(a){return Promise.reject(a)}},async getDataProminent(e){try{const i=await Il.create({headers:{Authorization:`${this.tokenPremium}`}}).get("https://1qvtl1japi.execute-api.us-east-2.amazonaws.com/prod/highlights/seasons/"+this.game.seasonId+"/games/"+this.game.gameId);this.dataProminent=i.data.data,this.dataProminentAll=i.data}catch(a){return Promise.reject(a)}}}},Sj=e=>(t.pushScopeId("data-v-d97ff9e9"),e=e(),t.popScopeId(),e),F0t={class:"data-prominent-game"},D0t=Sj(()=>t.createElementVNode("div",{class:"title-data"},"Este partido:",-1)),V0t={class:"item-data-text"},R0t=["innerHTML"],$0t={class:"contain-stats-control"},j0t={key:0,class:"title-total"},U0t={key:1,class:"item-total"},H0t=["onClick"],G0t={"data-v-83c7df16":"",style:{"margin-left":"-1px"},xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},W0t=[Sj(()=>t.createElementVNode("path",{"data-v-83c7df16":"",d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"},null,-1))];function q0t(e,a,i,N,L,u){const g=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",F0t,[D0t,t.createVNode(g,{height:"115px",pxScroll:272,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsHideOnNoScroll:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,42,0.1) 0%, rgba(13,29,42,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.dataProminent,(n,b)=>(t.openBlock(),t.createElementBlock("div",{key:b,class:"item-prominent-data"},[t.createElementVNode("div",{class:"item-percent-shield",style:t.normalizeStyle("background:"+n.custom_colors.background_color)},[t.createElementVNode("div",{class:"item-team",style:t.normalizeStyle(n.player_id?"background-image:url(https://az755631.vo.msecnd.net/players-profile/"+n.player_id+".png); border: solid 1.4px "+n.custom_colors.background_color:"background-image:url(https://az755631.vo.msecnd.net/teams-80/"+n.team_id+".png);border: solid 1.4px "+n.custom_colors.background_color)},null,4),n.show_value==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"item-percent",style:t.normalizeStyle("color:"+n.custom_colors.font_color)},[n.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[n.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(u.formatNumber(n.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(u.formatNumber(n.percent)),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(u.formatNumber2(n.total)),1)],64))],4)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",V0t,[t.createElementVNode("div",{class:"container-text",innerHTML:u.textoConNegritas(n.description)},null,8,R0t),t.createElementVNode("div",$0t,[n.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",j0t,"TOTAL:")):t.createCommentVNode("",!0),n.title!="Productividad"?(t.openBlock(),t.createElementBlock("div",U0t,[n.is_percentage==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(u.formatNumber(n.percent)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.title=="Distancia recorrida"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(n.total)+" km",1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(u.formatNumber2(n.total)),1)],64))],64))])):t.createCommentVNode("",!0),i.canPlayVideos&&n.show_video==1?(t.openBlock(),t.createElementBlock("div",{key:2,class:"btn-play",style:t.normalizeStyle(n.title=="Productividad"?"margin-left: 0px !important;":""),onClick:m=>u.onclickPlayVideos({data:n})},[(t.openBlock(),t.createElementBlock("svg",G0t,W0t))],12,H0t)):t.createCommentVNode("",!0)])])]))),128))]),_:1})])}const Y0t=Jr(L0t,[["render",q0t],["__scopeId","data-v-d97ff9e9"]]),kcn="";g0();const Z0t={components:{GSCCheckbox:v0},props:{game:{type:Object,default:()=>{}},widthSection:{type:Number,default:0},teamSelected:{type:Object,default:()=>({})}},watch:{game:{deep:!0,immediate:!0,async handler(e){e.game_status==1?(this.getDataPosession(e.gameId),await this.$store.dispatch("nextGeneral/cleanStats"),await this.$store.dispatch("nextGeneral/checkState",{gameId:e.gameId,currentSeasonId:e.seasonId,isTeamsAnalysis:!0,defaultFilter:null,gameInfo:e})):this.getDataPosessionPrematch(e.seasonId)}}},data(){return{areInactiveVisible:!1,dataPosession:[],arrTeams:[],url:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/posessions/",urlPrematch:"https://rwtfu33saa.execute-api.us-east-2.amazonaws.com/prod/ta/seasons/",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"}},computed:{...Bd("nextGeneral",["gameForAnalysis","seasonId"]),...Al("nextGeneral",["arrayFilledDataSortedByPriority"])},methods:{async getDataPosession(){try{const a=await Il.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+this.game.gameId);this.dataPosession=a.data}catch(e){return Promise.reject(e)}},async getDataPosessionPrematch(e){try{const i=await Il.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlPrematch+e+"/posessions");for(const N in i.data.teams)i.data.teams.hasOwnProperty(N)&&(this.arrTeams[N]=i.data.teams[N])}catch(a){return Promise.reject(a)}},onCheckInactive(e){e?this.areInactiveVisible=!0:this.areInactiveVisible=!1},deleteDecimalZero(e){const a=typeof e=="string"?parseFloat(e):e;return typeof a=="number"&&!isNaN(a)?a%1===0?a:a%1===0?Math.floor(a):a:e},formatNumbers(e){return e%1!==0?e.toFixed(1):e},hVal(e){return this.getTeamValue(e,this.gameForAnalysis,"homeTeam")},aVal(e){return this.getTeamValue(e,this.gameForAnalysis,"visitingTeam")},getTeamValue(e,a,i){if(!a.game_id)return this.objectZeroValues;const N=e.homeTeam.accomplished.avgPostGame+e.visitingTeam.accomplished.avgPostGame,L=e[i].accomplished.avgPostGame/N;return e[i].accomplished.avgPostGame?{numberValue:L<1?L*100:L,numberBarPercent:e[i].accomplished.avgPostGame/N}:this.objectZeroValues}},created(){this.$store.commit("nextGeneral/updateFilters",{filters:{local:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]},visit:{playingAs:[1,2],statistics:{},matchResult:[1,2,3],firstHalf:[1,2,3],secondHalf:[4,5,6]}},needsFormat:!0})}},p1=e=>(t.pushScopeId("data-v-a4e8feb0"),e=e(),t.popScopeId(),e),J0t={key:0,class:"field-posesion-prominent"},X0t={key:0,class:"title"},K0t={class:"info-data-item"},Q0t={class:"item-indicador"},e1t={class:"item-indicador-value"},t1t={key:0},n1t=p1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),a1t={key:0,class:"inactiveInfo"},r1t={class:"info-data-item"},i1t={class:"item-indicador"},o1t={class:"item-indicador-value"},s1t=p1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),l1t={class:"info-data-item"},c1t={class:"item-indicador"},d1t={class:"item-indicador-value"},u1t={key:0},h1t=p1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),p1t={class:"info-data-item"},f1t={class:"item-indicador"},m1t={class:"item-indicador-value"},g1t=p1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),y1t={key:0,class:"inactiveInfo"},v1t={class:"info-data-item"},_1t={class:"item-indicador"},b1t={class:"item-indicador-value"},x1t=p1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1)),w1t={class:"info-data-item"},k1t={class:"item-indicador"},C1t={class:"item-indicador-value"},T1t=p1(()=>t.createElementVNode("div",{class:"item-indicador-img"},[t.createElementVNode("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M3.87817 5.92969L0.506034 0.0889796L7.2503 0.0889802L3.87817 5.92969Z",fill:"#38CFFF"})])],-1));function S1t(e,a,i,N,L,u){const g=t.resolveComponent("GSCCheckbox");return e.arrayFilledDataSortedByPriority.length>0?(t.openBlock(),t.createElementBlock("div",J0t,[i.widthSection>760?(t.openBlock(),t.createElementBlock("div",X0t,"Porcentajes")):t.createCommentVNode("",!0),i.game.game_status==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>760?"field-container":i.widthSection>520?"field-container-movil":i.widthSection>440?"field-container-movil-2":i.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[L.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>1020?"time-show":i.widthSection>920?"time-show-table-xl":i.widthSection>880?"time-show-table-xl-2":i.widthSection>820?"time-show-table-xl-3":i.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":u.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>1020?"field-data-container":i.widthSection>920?"field-data-container-xl":i.widthSection>880?"field-data-container-xl-2":i.widthSection>820?"field-data-container-xl-3":i.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+i.game.homeTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",K0t,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",Q0t,[t.createElementVNode("div",e1t,[L.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[L.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.dataPosession.active_time.home),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.dataPosession.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[u.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",t1t,t.toDisplayString(u.deleteDecimalZero(u.formatNumbers(u.hVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),n1t]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. "+t.toDisplayString(i.game.homeTeam.acronym),3)],2)])],2),L.areInactiveVisible&&L.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock("div",a1t,[t.createElementVNode("div",r1t,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",i1t,[t.createElementVNode("div",o1t,t.toDisplayString(L.dataPosession.active_time.inactive_time),1),s1t]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},[i.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+i.game.awayTeam.logo.replace("80","150")+")")},null,6),t.createElementVNode("div",l1t,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",c1t,[t.createElementVNode("div",d1t,[L.dataPosession.has_posession==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[L.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.dataPosession.active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.dataPosession.away),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[u.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession)?(t.openBlock(),t.createElementBlock("span",u1t,t.toDisplayString(u.deleteDecimalZero(u.formatNumbers(u.aVal(e.arrayFilledDataSortedByPriority[0].subcategories.possession).numberValue)))+"%",1)):t.createCommentVNode("",!0)],64))]),h1t]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. "+t.toDisplayString(i.game.awayTeam.acronym),3)],2)])],2)],2)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[L.arrTeams.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>760?"field-container":i.widthSection>520?"field-container-movil":i.widthSection>440?"field-container-movil-2":i.widthSection>360?"field-container-movil-3":"field-container-movil-4")},[L.arrTeams[i.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>1020?"time-show":i.widthSection>920?"time-show-table-xl":i.widthSection>880?"time-show-table-xl-2":i.widthSection>820?"time-show-table-xl-3":i.widthSection>760?"time-show-table-xl-4":"time-show-movil")},[t.createVNode(g,{label:"Mostrar tiempo inactivo",fontFamily:"Poppins-Regular","onUpdate:modelValue":u.onCheckInactive,"label-color":"#8c9399"},null,8,["onUpdate:modelValue"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>1020?"field-data-container":i.widthSection>920?"field-data-container-xl":i.widthSection>880?"field-data-container-xl-2":i.widthSection>820?"field-data-container-xl-3":i.widthSection>760?"field-data-container-xl-4":"field-data-container-movil")},[t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"container-data-img-home":"container-data-img-home50")},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(L.areInactiveVisible?"homeInfo":"homeInfo50"),style:t.normalizeStyle("background-image:url("+i.game.homeTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",p1t,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",f1t,[t.createElementVNode("div",m1t,[L.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.arrTeams[i.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.arrTeams[i.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.arrTeams[i.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.arrTeams[i.teamSelected.teamId].home),1)],64))],64))]),g1t]),i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. "+t.toDisplayString(i.game.homeTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. Rival",2))],2)])],2),L.areInactiveVisible&&L.arrTeams[i.teamSelected.teamId].has_posession==1?(t.openBlock(),t.createElementBlock("div",y1t,[t.createElementVNode("div",v1t,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",_1t,[t.createElementVNode("div",b1t,t.toDisplayString(L.arrTeams[i.teamSelected.teamId].active_time.inactive_time),1),x1t]),t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},[i.widthSection>580?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("T. Inactivo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("T. Inactivo")],64))],2)],2)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(L.areInactiveVisible?"container-data-img-away":"container-data-img-away50")},[i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(L.areInactiveVisible?"awayInfo":"awayInfo50"),style:t.normalizeStyle("background-image:url("+i.game.awayTeam.logo.replace("80","150")+")")},null,6)):t.createCommentVNode("",!0),t.createElementVNode("div",w1t,[t.createElementVNode("div",{class:t.normalizeClass(i.widthSection>580?"item-ref-data":"item-ref-data-movil")},[t.createElementVNode("div",k1t,[t.createElementVNode("div",C1t,[L.areInactiveVisible?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.arrTeams[i.teamSelected.teamId].active_time.away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.arrTeams[i.teamSelected.teamId].active_time.home),1)],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[i.game.homeTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(L.arrTeams[i.teamSelected.teamId].away),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(L.arrTeams[i.teamSelected.teamId].home),1)],64))],64))]),T1t]),i.game.awayTeam.team_id==i.teamSelected.teamId?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. "+t.toDisplayString(i.game.awayTeam.acronym),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.widthSection>580?"title-indicador":"title-indicador-movil")},"Pos. Rival",2))],2)])],2)],2)],2)):t.createCommentVNode("",!0)],64))])):t.createCommentVNode("",!0)}const E1t=Jr(Z0t,[["render",S1t],["__scopeId","data-v-a4e8feb0"]]),Ccn="",V9={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(a){throw new Error(a)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},Ej=()=>{t.useCssVars(e=>({ec641b3a:e.backgroundColor,"66cc4678":e.widthCircle,"1c5ce009":e.heightCircle}))},Aj=V9.setup;V9.setup=Aj?(e,a)=>(Ej(),Aj(e,a)):Ej;const A1t={key:0,class:"text-left"},M1t=["width","src"],I1t=["checked"],P1t=["width","src"],N1t={key:3,class:"text-right"};function B1t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(u.customText)},[i.textOptionLeft!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",A1t,t.toDisplayString(i.textOptionLeft),1)):t.createCommentVNode("",!0),i.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:i.widthIcons,src:i.iconA},null,8,M1t)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:a[0]||(a[0]=(...g)=>u.handleSwitchChange&&u.handleSwitchChange(...g)),checked:L.OptionDefault},null,40,I1t),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([u.customStyle,{"--circle-color":i.circleColorSwitch}])},null,4),i.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:i.widthIcons,src:i.iconB},null,8,P1t)):t.createCommentVNode("",!0),i.textOptionRight!=""&&!i.hiddenLabels?(t.openBlock(),t.createElementBlock("span",N1t,t.toDisplayString(i.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const Mj=Jr(V9,[["render",B1t],["__scopeId","data-v-62d6b055"]]),Tcn="";let Ij=null;const R9={components:{},props:{canPlayVideos:{type:Boolean,default:!1},titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},isLive:{type:Boolean,default:!0},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Ij=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Ij.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},Pj=()=>{t.useCssVars(e=>({"524d4024":e.colorBackgroundHome+"45","2acdc375":e.colorBackgroundAway+"45","60764af4":e.colorBackgroundHome,"607c6ed6":e.colorBackgroundAway}))},Nj=R9.setup;R9.setup=Nj?(e,a)=>(Pj(),Nj(e,a)):Pj;const j3=e=>(t.pushScopeId("data-v-ec876074"),e=e(),t.popScopeId(),e),O1t=[j3(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1))],z1t=j3(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),L1t=["src"],F1t=j3(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),D1t=j3(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),V1t=["src"],R1t=["src"],$1t={class:"text-container"};function j1t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(u.thumbnailhighlights)},[i.canPlayVideos?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.playbutton),onClick:a[0]||(a[0]=(...g)=>u.onclickPlayVideos&&u.onclickPlayVideos(...g))},O1t,2)):t.createCommentVNode("",!0),i.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(u.date)},t.toDisplayString(i.dateGame),3)):t.createCommentVNode("",!0),i.matchday!=""&&i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(u.containerinfogame)},[i.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.matchcontainer)},t.toDisplayString(i.matchday),3)):t.createCommentVNode("",!0),i.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(u.seasoncontainer)},t.toDisplayString(i.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),z1t,t.createElementVNode("img",{src:i.background,alt:"",class:"bkg-blackwhite position-image"},null,8,L1t),t.createElementVNode("div",{class:t.normalizeClass([u.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(u.baselogoright)},null,2),F1t,D1t,t.createElementVNode("img",{src:i.logoHome,alt:"",class:t.normalizeClass(u.teamlogo)},null,10,V1t),t.createElementVNode("img",{src:i.logoAway,alt:"",class:t.normalizeClass(u.logoright)},null,10,R1t),t.createElementVNode("div",$1t,[t.createElementVNode("span",{class:t.normalizeClass(u.secondline)},t.toDisplayString(i.score),3),t.createElementVNode("div",{class:t.normalizeClass(u.titlename)},t.toDisplayString(i.titleCategory),3)])],2)}const U1t=Jr(R9,[["render",j1t],["__scopeId","data-v-ec876074"]]),Ecn="";let Bj=null;const H1t={components:{GSCThumbnailHighlightGameHistoric:U1t},props:{game:{type:Object,default:()=>{}},canPlayVideos:{type:Boolean,default:!1}},watch:{},data(){return{dataProminent:[],gameInfo:{},gamesContainerWidth:0,item:{backgroundhome:"",backgroundaway:"",logohome:"",logoaway:"",background:"",match:"",seasonname:"",score:""},tournamentId:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const i=[1,2,3];let N={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:i,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(N.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",N)},async fillData(){const e=Il.create({headers:{Authorization:`${this.token}`}}),a=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.game.seasonId),i=await e.get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+this.game.seasonId);this.tournamentId=i.data.tournament_id;const N=a.data.games.findIndex(u=>u.game_id===this.game.gameId);this.gameInfo=a.data.games[N];const L=await e.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+this.game.gameId);this.item.category=0,this.item.game_id=L.data.game_id,this.item.season_id=this.game.seasonId,this.item.score=L.data.thumbnails[L.data.game_id]?L.data.thumbnails[L.data.game_id].score[0]+" - "+L.data.thumbnails[L.data.game_id].score[1]:"0 - 0",this.item.backgroundhome=L.data.thumbnails[L.data.game_id]?L.data.thumbnails[L.data.game_id].info_thumbnails.home_colors.background_color:"",this.item.backgroundaway=L.data.thumbnails[L.data.game_id]?L.data.thumbnails[L.data.game_id].info_thumbnails.away_colors.background_color:"",this.item.logohome=L.data.thumbnails[L.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+L.data.thumbnails[L.data.game_id].home_team+".png":"",this.item.logoaway=L.data.thumbnails[L.data.game_id]?"https://az755631.vo.msecnd.net/teams-150/"+L.data.thumbnails[L.data.game_id].visiting_team+".png":"",this.item.background=L.data.thumbnails[L.data.game_id]?"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.thumbnails[L.data.game_id].info_thumbnails.images.background_default_games[0]:""},setUpResizeObserver(){if(window.ResizeObserver)Bj=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Bj.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3),await this.fillData()}},G1t={class:"highlights-prominent-game",ref:"gamesContainer"},W1t={class:"video-partido-container__highlight"},q1t={key:0,class:"video-partido-container__ribbon"},Y1t={key:1,class:"video-partido-container__description"};function Z1t(e,a,i,N,L,u){const g=t.resolveComponent("GSCThumbnailHighlightGameHistoric");return t.openBlock(),t.createElementBlock("div",G1t,[t.createElementVNode("div",W1t,[t.createElementVNode("div",{class:"video-partido-container__content2",style:t.normalizeStyle(L.gamesContainerWidth<=680?"display:block; width: 100%":"display:none")},[L.gamesContainerWidth>0?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(L.gamesContainerWidth>330?"video-partido-container__description2":"video-partido-container__description3")}," Las jugadas más importantes del partido ",2)):t.createCommentVNode("",!0)],4),L.gamesContainerWidth>680?(t.openBlock(),t.createElementBlock("div",{key:0,class:"video-partido-container__content",style:t.normalizeStyle(L.gamesContainerWidth<680?"margin-bottom: 30px;":"margin-bottom: 18px;")},[Object.keys(L.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",q1t,t.toDisplayString(L.tournamentId!=41?L.gameInfo.matchday_name.replace("Matchday","Jornada").replace("de Final","").replace("Playoffs 1","Cuartos de Final Ida").replace("Playoffs 2","Cuartos de Final Vuelta").replace("Playoffs 3","Semifinal Ida").replace("Playoffs 4","Semifinal Vuelta").replace("Playoffs 5","Final Ida").replace("Playoffs 6","Final Vuelta"):L.gameInfo.matchday_name=="Matchday 10"?"Final":L.gameInfo.matchday_name.replace("Matchday 1","16vos Ida").replace("Matchday 2","16vos Vuelta").replace("Matchday 3","8vos Ida").replace("Matchday 4","8vos Vuelta").replace("Matchday 5","4tos Ida").replace("Matchday 6","4tos Vuelta").replace("Matchday 7","Semifinal Ida").replace("Matchday 8","Semifinal Vuelta").replace("Matchday 9","Final").replace("Matchday 10","Final")),1)):t.createCommentVNode("",!0),t.createElementVNode("h2",{class:t.normalizeClass(L.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")},"HIGHLIGHTS DEL",2),t.createElementVNode("h2",{class:t.normalizeClass(L.gamesContainerWidth>865?"video-partido-container__title":"video-partido-container__titletablet")},"PARTIDO",2),L.gamesContainerWidth>=645?(t.openBlock(),t.createElementBlock("p",Y1t," Las jugadas más importantes del partido ")):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(L.gamesContainerWidth>865?"video-partido-container__image":"video-partido-container__image2")},[L.item.background!=""?(t.openBlock(),t.createBlock(g,{key:0,"color-background-home":L.item.backgroundhome,"color-background-away":L.item.backgroundaway,"logo-home":L.item.logohome,"logo-away":L.item.logoaway,"is-live":!0,"can-play-videos":i.canPlayVideos,background:L.item.background,matchday:L.item.match,"season-name":L.item.seasonname,onOnclickPlayVideos:a[0]||(a[0]=n=>u.onclickPlayVideos({data:L.item,type:1})),score:L.item.score},null,8,["color-background-home","color-background-away","logo-home","logo-away","can-play-videos","background","matchday","season-name","score"])):t.createCommentVNode("",!0)],2)])],512)}const J1t=Jr(H1t,[["render",Z1t],["__scopeId","data-v-79ccee9d"]]),$9="/play-icn.svg",Acn="",X1t={name:"TooltipEmpty",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(){},closeClick:function(){this.$emit("close")}}};function K1t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",u.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",u.showTooltip]),onClick:a[1]||(a[1]=(...g)=>u.tooltipClick&&u.tooltipClick(...g))},[t.createElementVNode("span",{role:"button",class:"box-tooltip-close",onClick:a[0]||(a[0]=(...g)=>u.closeClick&&u.closeClick(...g))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const Q1t=Jr(X1t,[["render",K1t],["__scopeId","data-v-b5f07af8"]]),Mcn="",egt={class:"game-event__minute"},tgt={class:"game-event__icon"},ngt=["src"],agt="/images/events/",rgt=Jr({__name:"GameEvent",props:{gameEvent:{type:Object,default:()=>{}}},emits:["click-event"],setup(e,{emit:a}){const i=e,N=t.computed(()=>({"--icon-bottom":i.gameEvent.isHomeTeam?"30px":"-5px","--border-color":i.gameEvent.isSelected?"#336dff":"#747c83","--background-color":i.gameEvent.isSelected?"#336dff":"#0d1d29"})),L=t.computed(()=>{let g="";return i.gameEvent.category_id===18?g="icn-tiros-de-esquina.svg":i.gameEvent.category_id===20?g="icn-tiro-a-porteria.svg":i.gameEvent.category_id===10?g="icn-cambio.svg":i.gameEvent.category_id===21?g="icn-falta.svg":i.gameEvent.category_id===27?g="atajada.svg":i.gameEvent.category_id===17?g="fuera-de-lugar.svg":i.gameEvent.category_id===4||i.gameEvent.category_id===13||i.gameEvent.category_id===14||i.gameEvent.category_id===16||i.gameEvent.category_id===6&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===5&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===1&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===2&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===3&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===7&&i.gameEvent.event_type_id===1||i.gameEvent.category_id===12&&i.gameEvent.event_type_id===1?g="gol.svg":i.gameEvent.category_id==30||i.gameEvent.category_id==31||i.gameEvent.category_id==32||i.gameEvent.category_id==33||i.gameEvent.category_id==34||i.gameEvent.category_id==35||i.gameEvent.category_id==36||i.gameEvent.category_id==37||i.gameEvent.category_id==38||i.gameEvent.category_id==39||i.gameEvent.category_id==40?g="var.png":i.gameEvent.category_id===28?g="tiempo-agregado.svg":i.gameEvent.category_id===26?g="jugada-peligrosa.svg":i.gameEvent.category_id===22?g="penal-marcado.svg":i.gameEvent.category_id===15||i.gameEvent.category_id===23?g="penal-fallado.svg":i.gameEvent.category_id===8?g="icn-tarjeta-amarilla.svg":i.gameEvent.category_id===9?g="icn-tarjeta-roja.svg":g="generic.svg",`${agt}${g}`});function u(){a("click-event",i.gameEvent)}return(g,n)=>(t.openBlock(),t.createElementBlock("div",{class:"game-event",onClick:u,style:t.normalizeStyle(N.value)},[t.createElementVNode("div",egt,[t.createElementVNode("div",null,t.toDisplayString(e.gameEvent.minute)+"'",1)]),t.createElementVNode("div",tgt,[t.createElementVNode("img",{src:L.value},null,8,ngt)])],4))}},[["__scopeId","data-v-896a85e7"]]),Pcn="",igt=e=>(t.pushScopeId("data-v-df0b18c7"),e=e(),t.popScopeId(),e),ogt={class:"events-line"},sgt={class:"events-line__events"},lgt=igt(()=>t.createElementVNode("div",{class:"events-line__events__line"},null,-1)),cgt=Jr({__name:"EventsLine",props:{gameEvents:{type:Array,default:()=>[]}},emits:["click-event"],setup(e,{emit:a}){function i(N){a("click-event",N)}return(N,L)=>(t.openBlock(),t.createElementBlock("div",ogt,[t.createVNode(t.unref(J1),{backgroundColor:"#172531",pxScroll:260,arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:t.withCtx(()=>[t.createElementVNode("div",sgt,[lgt,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gameEvents,u=>(t.openBlock(),t.createBlock(rgt,{key:u.id,"game-event":u,onClickEvent:i},null,8,["game-event"]))),128))])]),_:1})]))}},[["__scopeId","data-v-df0b18c7"]]),Bcn="",Ey=e=>(t.pushScopeId("data-v-64b7c762"),e=e(),t.popScopeId(),e),dgt={class:"tooltip-data"},ugt=["src"],hgt=Ey(()=>t.createElementVNode("div",{class:"game-events__title-left-padding"},null,-1)),pgt=Ey(()=>t.createElementVNode("div",{class:"game-events__title"},"Eventos",-1)),fgt={class:"game-events__team-logo"},mgt=["src"],ggt={class:"game-events__event-info"},ygt={key:0,class:"game-events__event-info__line"},vgt={key:1,class:"game-events__event-info__info"},_gt={class:"game-events__event-info__info__player-photo"},bgt={key:0,class:"game-events__event-info__info__player-photo__img"},xgt=["src"],wgt={class:"game-events__event-info__info__event-name"},kgt={class:"game-events__event-info__info__player-name"},Cgt=[Ey(()=>t.createElementVNode("img",{src:$9,alt:""},null,-1))],Tgt=Ey(()=>t.createElementVNode("div",{class:"game-events__events-padding"},null,-1)),Sgt={class:"game-events__events"},Egt={class:"game-events__team-logo"},Agt=["src"],Mgt={class:"game-events__event-info"},Igt={key:0,class:"game-events__event-info__line"},Pgt={key:1,class:"game-events__event-info__info"},Ngt={class:"game-events__event-info__info__player-photo"},Bgt={key:0,class:"game-events__event-info__info__player-photo__img"},Ogt=["src"],zgt={class:"game-events__event-info__info__event-name"},Lgt={class:"game-events__event-info__info__player-name"},Fgt=[Ey(()=>t.createElementVNode("img",{src:$9,alt:""},null,-1))],Dgt="https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",Vgt=Jr({__name:"GameEvents",props:{game:{type:Object,default:()=>({})},widthScreen:{type:Number,default:0},token:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0}},setup(e){const a=e;let i=null,N=0;const L=t.ref([]),u=t.ref(new Map),g=t.ref(""),n=t.ref(null),b=t.ref({visible:!1,link:""});t.watch(()=>a.game,d=>{d&&d.gameId!==N&&(N=d.gameId,r(d.gameId,d.is_live))},{deep:!0,immediate:!0}),t.watch(()=>g.value,(d,h)=>{if(d!==h){const p=u.value.get(h),f=u.value.get(d);if(p&&(p.isSelected=!1),f){if(!f.playerShortName){const[y,w]=f.player_name.split(","),x=y.split(" ");let M="";for(const k of x)if(M+=` ${k}`,k.length>3)break;f.playerShortName=w&&y?`${w.trim().charAt(0)}.${M}`:""}f.isSelected=!0,n.value=f}}});function m(d){clearInterval(i),i=setInterval(()=>{r(d)},1e4)}async function r(d,h=!1){try{L.value=[],u.value=new Map,g.value="";let p=!1,f=await c(d);f&&(f=f.reduce((y,w)=>(w.category_id===0&&[13,17,19,21,23].includes(w.game_status_id)&&(p=!0),w.team_id&&(w.isHomeTeam=w.team_id===a.game.homeTeam.team_id,y.push(w),u.value.set(w.play_id,w)),y),[]),L.value=v(f)),!g.value&&L.value.length&&(g.value=L.value[0].play_id),h&&!p?m(d):p&&clearInterval(i)}catch(p){console.error(p)}}function v(d){return d.sort((h,p)=>_(h.match_lapse)+Number(h.minute)-(_(p.match_lapse)+Number(p.minute)))}function _(d){let h=0;switch(d){case 1:h=0;break;case 2:h=45;break;case 3:h=90;break;case 4:h=105;break;case 5:h=120;break}return h}async function c(d){try{const{data:{plays:h}}=await Il.get(`${Dgt}${d}`,{headers:{Authorization:a.token}});return h}catch(h){throw new Error(h)}}function s(d){g.value=d.play_id}function o(){a.canPlayVideos&&n.value.video_link&&n.value.video_link!=="-"&&(b.value.visible=!0,b.value.link=n.value.video_link)}function l(){b.value.visible=!1,b.value.link=""}return(d,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(Q1t,{data:b.value,onClose:l},{default:t.withCtx(()=>[t.createElementVNode("div",dgt,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:b.value.link,format:"video/mp4"},null,8,ugt)])])]),_:1},8,["data"]),t.createElementVNode("div",{class:t.normalizeClass(e.widthScreen>920?"game-events":"game-events__mobile")},[hgt,pgt,t.createElementVNode("div",fgt,[e.game&&e.game.homeTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.homeTeam.logo,alt:"team-logo"},null,8,mgt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",ggt,[n.value&&n.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",ygt)):t.createCommentVNode("",!0),n.value&&n.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",vgt,[t.createElementVNode("div",_gt,[n.value.player_id?(t.openBlock(),t.createElementBlock("div",bgt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${n.value.player_id}.png`,alt:""},null,8,xgt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",wgt,t.toDisplayString(n.value.event_type_id===1?n.value.event_type_name:n.value.category_name),1),t.createElementVNode("div",kgt," | "+t.toDisplayString(n.value.playerShortName),1),e.canPlayVideos&&n.value.video_link&&n.value.video_link!=="-"?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:o},Cgt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]),Tgt,t.createElementVNode("div",Sgt,[t.createVNode(cgt,{"game-events":L.value,onClickEvent:s},null,8,["game-events"])]),t.createElementVNode("div",Egt,[e.game&&e.game.awayTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:"game-events__team-logo__img",src:e.game.awayTeam.logo,alt:"team-logo"},null,8,Agt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",Mgt,[n.value&&!n.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Igt)):t.createCommentVNode("",!0),n.value&&!n.value.isHomeTeam?(t.openBlock(),t.createElementBlock("div",Pgt,[t.createElementVNode("div",Ngt,[n.value.player_id?(t.openBlock(),t.createElementBlock("div",Bgt,[t.createElementVNode("img",{src:`https://az755631.vo.msecnd.net/players-profile/${n.value.player_id}.png`,alt:""},null,8,Ogt)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",zgt,t.toDisplayString(n.value.event_type_id===1?n.value.event_type_name:n.value.category_name),1),t.createElementVNode("div",Lgt," | "+t.toDisplayString(n.value.playerShortName),1),e.canPlayVideos&&n.value.video_link&&n.value.video_link!=="-"?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:"game-events__event-info__info__button-play",onClick:o},Fgt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])],2)],64))}},[["__scopeId","data-v-64b7c762"]]),Fcn="",Rgt={class:"toggle-buttons__background"},$gt=["onClick"],jgt={key:0,class:"toggle-buttons__button__img"},Ugt=["src"],U3=Jr({__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"},activeFontColor:{type:String,default:"#FFFFFF"}},emits:["change"],setup(e,{emit:a}){const i=e;t.useCssVars(g=>({29153391:e.height,"1aee961c":e.width,"738679b2":e.mainBackgroundColor,f3cab270:e.borderRadius,"0ec0fe57":e.mainBorderWidth,"0da9fff4":e.mainBorderColor,"68dc0c06":e.fontFamily,f9ef5e4c:e.fontSize,"5713c56a":e.activeBorderWidth,"55fcc707":e.activeBorderColor,"38297f45":e.activeBackgroundColor,"424728c4":e.activeFontColor}));const N=t.ref(i.selectedButtonIndex),L=t.computed(()=>({"--grid-template-columns":`repeat(${i.buttons.length}, 1fr)`}));t.watch(()=>i.selectedButtonIndex,g=>{N.value=g}),t.watch(N,(g,n)=>{g!==n&&a("change",{index:g,button:i.buttons[g]})});function u(g){N.value=g}return(g,n)=>(t.openBlock(),t.createElementBlock("div",Rgt,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(L.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(b,m)=>(t.openBlock(),t.createElementBlock("div",{key:`b${m}`,class:t.normalizeClass(["toggle-buttons__button",{active:N.value===m,right:b.img&&m>0}]),onClick:r=>u(m)},[b.img?(t.openBlock(),t.createElementBlock("div",jgt,[t.createElementVNode("img",{src:b.img,alt:""},null,8,Ugt)])):t.createCommentVNode("",!0),t.createElementVNode("div",null,t.toDisplayString(b.text||b),1)],10,$gt))),128))],4)]))}},[["__scopeId","data-v-ad07815f"]]),Vcn="",Hgt="/images/cancha-horizontal-raw.jpg",Rcn="",Ggt=e=>(t.pushScopeId("data-v-3a3b7d53"),e=e(),t.popScopeId(),e),Wgt={class:"tooltip__content"},qgt={class:"tooltip__content__player"},Ygt={class:"tooltip__content__player__name"},Zgt={class:"tooltip__content__player__photo"},Jgt=["src"],Xgt={class:"tooltip__content__minute"},Kgt={class:"tooltip__content__team"},Qgt=Ggt(()=>t.createElementVNode("div",{class:"tooltip__content__team__name"},"Equipo:",-1)),eyt={class:"tooltip__content__team__logo"},tyt=["src"],nyt=Jr({__name:"TooltipChalkboard",props:{event:{type:Object,default:()=>({})},position:{type:Object,default:()=>({x:"0",y:"0"})}},emits:["close"],setup(e,{emit:a}){const i=e,N=t.computed(()=>({"--top":i.position.y,"--left":i.position.x})),L=t.computed(()=>`${i.event.player.player_name} ${i.event.player.player_lastname}`),u=t.computed(()=>{const[n]=i.event.momentOfPlay.split(":");return`${Number(n)}'`});function g(){a("close")}return(n,b)=>(t.openBlock(),t.createElementBlock("div",{class:"tooltip",onClick:g,style:t.normalizeStyle(N.value)},[t.createElementVNode("div",Wgt,[t.createElementVNode("div",qgt,[t.createElementVNode("div",Ygt,t.toDisplayString(L.value),1),t.createElementVNode("div",Zgt,[t.createElementVNode("img",{src:e.event.player.photo,alt:""},null,8,Jgt)])]),t.createElementVNode("div",Xgt,"Minuto: "+t.toDisplayString(u.value),1),t.createElementVNode("div",Kgt,[Qgt,t.createElementVNode("div",eyt,[t.createElementVNode("img",{src:e.event.team.logo,alt:""},null,8,tyt)])])])],4))}},[["__scopeId","data-v-3a3b7d53"]]);function j9(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ayt(e){if(e.__esModule)return e;var a=e.default;if(typeof a=="function"){var i=function N(){return this instanceof N?Reflect.construct(a,arguments,this.constructor):a.apply(this,arguments)};i.prototype=a.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(N){var L=Object.getOwnPropertyDescriptor(e,N);Object.defineProperty(i,N,L.get?L:{enumerable:!0,get:function(){return e[N]}})}),i}var U9={exports:{}};function H9(){}H9.prototype={on:function(e,a,i){var N=this.e||(this.e={});return(N[e]||(N[e]=[])).push({fn:a,ctx:i}),this},once:function(e,a,i){var N=this;function L(){N.off(e,L),a.apply(i,arguments)}return L._=a,this.on(e,L,i)},emit:function(e){var a=[].slice.call(arguments,1),i=((this.e||(this.e={}))[e]||[]).slice(),N=0,L=i.length;for(N;N<L;N++)i[N].fn.apply(i[N].ctx,a);return this},off:function(e,a){var i=this.e||(this.e={}),N=i[e],L=[];if(N&&a)for(var u=0,g=N.length;u<g;u++)N[u].fn!==a&&N[u].fn._!==a&&L.push(N[u]);return L.length?i[e]=L:delete i[e],this}},U9.exports=H9,U9.exports.TinyEmitter=H9;var ryt=U9.exports,iyt=ryt,oyt=new iyt;const Pu=j9(oyt),syt=["id"],lyt=["fill"],cyt=["id"],dyt=["fill"],uyt=["stroke-dasharray","x1","y1","x2","y2","marker-end"],hyt=["x","y","stroke-width","fill","stroke"],pyt=["x","y"],fyt={__name:"EventConnection",props:{eventConnection:{type:Object,required:!0},color:{type:String,required:!0},isLastEvent:{type:Boolean,default:!1},mainEventIdSelected:{type:Number,default:0}},emits:["click-event","mose-over-event","mouse-leave-event"],setup(e,{emit:a}){const i=e,N=t.computed(()=>{const _=[];if(i.eventConnection.hasConnectionPath){const c=i.eventConnection.x1===i.eventConnection.x2&&i.eventConnection.y1===i.eventConnection.y2?1:2;let s=b(i.eventConnection.previousEvent?i.eventConnection.previousEvent.y3:i.eventConnection.y1);const o=m(i.eventConnection.previousEvent?i.eventConnection.previousEvent.x3:i.eventConnection.x1);let l=0,d=0;c===2&&(l=b(i.eventConnection.y2),d=m(i.eventConnection.x2));const h=b(i.eventConnection.y3),p=m(i.eventConnection.x3);c===1?_.push({x1:o,y1:s,x2:p,y2:h}):(_.push({x1:o,y1:s,x2:d,y2:l}),_.push({x1:d,y1:l,x2:p,y2:h}))}return _}),L=t.computed(()=>i.mainEventIdSelected!==0?i.eventConnection.relatedPlayId===i.mainEventIdSelected?1:.1:1),u=t.computed(()=>i.mainEventIdSelected!==0?i.eventConnection.relatedPlayId===i.mainEventIdSelected:!0),g=t.computed(()=>b(i.eventConnection.previousEvent?i.eventConnection.previousEvent.y3:i.eventConnection.y1)),n=t.computed(()=>m(i.eventConnection.previousEvent?i.eventConnection.previousEvent.x3:i.eventConnection.x1));function b(_){return(1-_)*100}function m(_){return _*100}function r(_){Pu.emit("mouse-over-event",{mouseEvent:_,eventConnection:i.eventConnection,position:{x:n.value,y:g.value}})}function v(){Pu.emit("mouse-leave-event")}return(_,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("defs",null,[t.withDirectives(t.createElementVNode("marker",{id:`a-${e.eventConnection.playId}`,markerWidth:"10",markerHeight:"10",refX:"0",refY:"3",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:L.value})},[t.createElementVNode("path",{d:"M0,0 L0,6 L9,3 z",fill:e.color},null,8,lyt)],12,syt),[[t.vShow,u.value]]),t.withDirectives(t.createElementVNode("marker",{id:`b-${e.eventConnection.playId}`,markerWidth:"4",markerHeight:"4",refX:"2",refY:"2",orient:"auto",markerUnits:"strokeWidth",style:t.normalizeStyle({opacity:L.value})},[t.createElementVNode("circle",{cx:"2",cy:"2",r:"2",fill:e.color},null,8,dyt)],12,cyt),[[t.vShow,u.value]])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(N.value,(s,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[s.x1&&s.y1?t.withDirectives((t.openBlock(),t.createElementBlock("line",{key:`${e.eventConnection.playId}-${o}`,style:t.normalizeStyle({stroke:e.color,"stroke-width":2,opacity:L.value}),"stroke-dasharray":o===0&&N.value.length===2?"none":"5,5",x1:`${s.x1}%`,y1:`${s.y1}%`,x2:`${s.x2}%`,y2:`${s.y2}%`,"marker-start":"`url(`#b-${eventConnection.playId}`)`","marker-end":`url(${e.isLastEvent&&o===N.value.length-1?`#a-${e.eventConnection.playId}`:""})`},null,12,uyt)),[[t.vShow,u.value]]):t.createCommentVNode("",!0)],64))),256)),t.withDirectives(t.createElementVNode("g",{onMouseover:r,onMouseleave:v,style:t.normalizeStyle({cursor:"pointer",opacity:L.value})},[t.createElementVNode("rect",{x:`${n.value}%`,y:`${g.value}%`,transform:"translate(-14, -14)",height:"28",width:"28","stroke-width":e.eventConnection.isMainPlay?2:1,fill:e.color,stroke:e.eventConnection.isMainPlay?"#fff":"#999",style:t.normalizeStyle({opacity:L.value}),rx:"14",ry:"14"},null,12,hyt),t.createElementVNode("text",{x:`${n.value}%`,y:`${g.value}%`,"text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"15",fill:"#fff","font-family":"'Poppins-SemiBold', sans-serif",style:t.normalizeStyle({opacity:L.value})},t.toDisplayString(e.eventConnection.player.jersey),13,pyt)],36),[[t.vShow,u.value]])],64))}},myt={__name:"EventConnections",props:{eventConnections:{type:Object,required:!0},mainEventIdSelected:{type:Number,default:0}},emits:["click-event","mouse-over-event"],setup(e,{emit:a}){const i=e,N=t.computed(()=>i.eventConnections.getEventsConnectionsByEventType()),L=t.computed(()=>i.eventConnections.getTeamColor());function u(b){a("click-event",b)}function g(b){a("mouse-over-event",b)}function n(){a("mouse-leave-event")}return(b,m)=>(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(N.value,(r,v)=>(t.openBlock(),t.createBlock(fyt,{key:r.id,color:L.value,"is-last-event":v===N.value.length-1,"event-connection":r,"main-event-id-selected":e.mainEventIdSelected,onClickEvent:u,onMouseOverEvent:g,onMouseLeaveEvent:n},null,8,["color","is-last-event","event-connection","main-event-id-selected"]))),128))}},jcn="",gyt=e=>(t.pushScopeId("data-v-bfb31f30"),e=e(),t.popScopeId(),e),yyt={class:"soccer-chalkboard"},vyt={id:"soccerChalkboardField",class:"soccer-chalkboard__field"},_yt=gyt(()=>t.createElementVNode("img",{src:Hgt,alt:""},null,-1)),byt={viewBox:"0 0 547 340",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xyt=Jr({__name:"SoccerChalkboard",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){Pu.on("mouse-over-time-event",m=>{u(m)}),Pu.on("mouse-leave-time-event",()=>{u(0)}),Pu.on("mouse-over-event",m=>{n(m)}),Pu.on("mouse-leave-event",()=>{b()});const a=t.ref(!1),i=t.ref({}),N=t.ref(0),L=t.ref({x:0,y:0});function u(m){N.value=m}function g(){a.value=!1}function n(m){const v=document.getElementById("soccerChalkboardField");if(v){const _=v.getBoundingClientRect(),c=m.position.x/100*_.width+14,s=m.position.y/100*_.height+14,o=c+170>_.width?_.width-170:c,l=s;N.value=m.eventConnection.relatedPlayId,i.value=m.eventConnection,L.value={x:`${o}px`,y:`${l}px`},a.value=!0}}function b(){a.value=!1,N.value=0}return(m,r)=>(t.openBlock(),t.createElementBlock("div",yyt,[t.createElementVNode("div",vyt,[_yt,(t.openBlock(),t.createElementBlock("svg",byt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.eventsConnections,(v,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&v.hasTeam(e.teamsSelected)||e.listType==="players"&&v.hasPlayer(e.playersSelected)?(t.openBlock(),t.createBlock(myt,{key:_,"event-connections":v,"main-event-id-selected":N.value},null,8,["event-connections","main-event-id-selected"])):t.createCommentVNode("",!0)],64))),256))]))]),a.value?(t.openBlock(),t.createBlock(nyt,{key:0,position:L.value,event:i.value,onClose:g},null,8,["position","event"])):t.createCommentVNode("",!0)]))}},[["__scopeId","data-v-bfb31f30"]]),Hcn="",Oj=e=>(t.pushScopeId("data-v-a172dbf3"),e=e(),t.popScopeId(),e),wyt={class:"events-timeline"},kyt=Oj(()=>t.createElementVNode("div",{class:"events-timeline__back-line"},null,-1)),Cyt=["onMouseover"],Tyt=["id"],Syt=[Oj(()=>t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z"},null,-1))],Eyt=["fill"],Ayt=["mask"],Myt=["stroke"],Iyt=Jr({__name:"EventsTimeLine",props:{eventsConnections:{type:Array,default:()=>[]},listType:{type:String,default:"events"},playersSelected:{type:Set,default:()=>new Set},teamsSelected:{type:Set,default:()=>new Set}},setup(e){const a=e,i=["0'","45'","90'"],N=t.computed(()=>a.eventsConnections.reduce((g,n)=>{const b={minute:"0'",left:"0%",color:n.getTeamColor(),fontColor:n.getTeamFontColor(),playId:n.mainPlay.playId,playerId:n.mainPlay.playerId,teamId:n.mainPlay.teamId,relatedPlayId:n.relatedPlayId},[m]=n.mainPlay.momentOfPlay.split(":"),r=parseInt(m);return r>=90?(b.minute=`${r}'`,b.left="100%"):(b.minute=`${r}'`,b.left=`${r/90*100}%`),g.push(b),g},[]));function L(g){Pu.emit("mouse-over-time-event",g.playId)}function u(){Pu.emit("mouse-leave-time-event")}return(g,n)=>(t.openBlock(),t.createElementBlock("div",wyt,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(i,(b,m)=>t.createElementVNode("div",{class:"events-timeline__game-time",key:m},t.toDisplayString(b),1)),64)),kyt,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(N.value,(b,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.listType==="events"&&e.teamsSelected.has(b.teamId)||e.listType==="players"&&e.playersSelected.has(b.playerId)?(t.openBlock(),t.createElementBlock("svg",{key:m,width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:t.normalizeStyle({left:b.left,cursor:"pointer"}),onMouseover:r=>L(b),onMouseleave:u},[t.createElementVNode("mask",{id:b.playId.toString(),fill:"white"},Syt,8,Tyt),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.77234 0.45166C2.11548 0.45166 0.772339 1.79481 0.772339 3.45166V14.4517C0.772339 16.1085 2.11548 17.4517 3.77234 17.4517H7.96294L10.2723 21.4517L12.5817 17.4517H16.7723C18.4292 17.4517 19.7723 16.1085 19.7723 14.4517V3.45166C19.7723 1.79481 18.4292 0.45166 16.7723 0.45166H3.77234Z",fill:b.color},null,8,Eyt),t.createElementVNode("path",{d:"M7.96294 17.4517L8.82896 16.9517L8.54029 16.4517H7.96294V17.4517ZM10.2723 21.4517L9.40631 21.9517L10.2723 23.4517L11.1384 21.9517L10.2723 21.4517ZM12.5817 17.4517V16.4517H12.0044L11.7157 16.9517L12.5817 17.4517ZM1.77234 3.45166C1.77234 2.34709 2.66777 1.45166 3.77234 1.45166V-0.54834C1.5632 -0.54834 -0.227661 1.24252 -0.227661 3.45166H1.77234ZM1.77234 14.4517V3.45166H-0.227661V14.4517H1.77234ZM3.77234 16.4517C2.66777 16.4517 1.77234 15.5562 1.77234 14.4517H-0.227661C-0.227661 16.6608 1.5632 18.4517 3.77234 18.4517V16.4517ZM7.96294 16.4517H3.77234V18.4517H7.96294V16.4517ZM7.09691 17.9517L9.40631 21.9517L11.1384 20.9517L8.82896 16.9517L7.09691 17.9517ZM11.1384 21.9517L13.4478 17.9517L11.7157 16.9517L9.40631 20.9517L11.1384 21.9517ZM16.7723 16.4517H12.5817V18.4517H16.7723V16.4517ZM18.7723 14.4517C18.7723 15.5562 17.8769 16.4517 16.7723 16.4517V18.4517C18.9815 18.4517 20.7723 16.6608 20.7723 14.4517H18.7723ZM18.7723 3.45166V14.4517H20.7723V3.45166H18.7723ZM16.7723 1.45166C17.8769 1.45166 18.7723 2.34709 18.7723 3.45166H20.7723C20.7723 1.24252 18.9815 -0.54834 16.7723 -0.54834V1.45166ZM3.77234 1.45166H16.7723V-0.54834H3.77234V1.45166Z",fill:"#172531",mask:`url(#${b.playId})`},null,8,Ayt),t.createElementVNode("g",null,[t.createElementVNode("text",{x:"50%",y:"8","text-anchor":"middle","dominant-baseline":"middle",dy:"1","font-size":"9","font-family":"Poppins-Light",stroke:b.fontColor,"stroke-width":"0.7"},t.toDisplayString(b.minute),9,Myt)])],44,Cyt)):t.createCommentVNode("",!0)],64))),256))]))}},[["__scopeId","data-v-a172dbf3"]]),Yl={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},Pyt=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},Nyt={key:1},Byt={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Oyt=["fill"],zyt={key:0,class:"checkbox__teams"},Lyt={class:"checkbox__teams__logo"},Fyt=["src"],Dyt={class:"checkbox__teams__logo"},Vyt=["src"],Ryt={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:a}){const i=e;t.useCssVars(m=>({"6582e90e":e.width,"310b3edf":e.height}));const N=t.ref(!1),L=t.computed(()=>{const m={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return N.value?(m["background-color"]=i.boxBackgroundColor,m.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):m.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,m}),u=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),g=t.computed(()=>{const m={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(m[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),m});t.watch(()=>i.modelValue,m=>{m!==N.value&&(N.value=m)},{immediate:!0});function n(){i.avoidInteraction||!N.value&&i.avoidToCheck||(N.value=!N.value,a("update:modelValue",N.value))}function b(m){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${m}.png`}return(m,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:n},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(L.value)},[N.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(u.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",Nyt,[(t.openBlock(),t.createElementBlock("svg",Byt,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,Oyt)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",zyt,[t.createElementVNode("div",Lyt,[t.createElementVNode("img",{src:b(e.teamsIds[0]),alt:""},null,8,Fyt)]),t.createElementVNode("div",Dyt,[t.createElementVNode("img",{src:b(e.teamsIds[1]),alt:""},null,8,Vyt)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},ro=Pyt(Ryt,[["__scopeId","data-v-bcf3bcc6"]]),xo=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},$yt={class:"container"},jyt={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Uyt=["fill"],Hyt={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gyt=["fill"],Wyt={__name:"IconExpand",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},isExpanded:{type:Boolean,default:!1},expandIconColor:{type:String,default:"white"},collapseIconColor:{type:String,default:"#D9D9D9"}},setup(e){return t.useCssVars(a=>({"563e5242":e.width,a529e9a4:e.height})),(a,i)=>(t.openBlock(),t.createElementBlock("div",$yt,[e.isExpanded?(t.openBlock(),t.createElementBlock("svg",jyt,[t.createElementVNode("rect",{width:"11",height:"1.7",fill:e.collapseIconColor},null,8,Uyt)])):(t.openBlock(),t.createElementBlock("svg",Hyt,[t.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:e.expandIconColor},null,8,Gyt)]))]))}},lm=xo(Wyt,[["__scopeId","data-v-166b6226"]]),Ay=e=>(t.pushScopeId("data-v-4df743e3"),e=e(),t.popScopeId(),e),qyt={class:"productivity"},Yyt={class:"productivity__body__offensive"},Zyt={class:"productivity__body__title"},Jyt={class:"productivity__body__title__info"},Xyt={class:"number-of-categories"},Kyt={class:"productivity__body__categories"},Qyt={class:"productivity__body__defensive-possession"},evt={class:"productivity__body__title"},tvt={class:"productivity__body__title__info"},nvt={class:"number-of-categories"},avt={class:"productivity__body__categories"},rvt={class:"productivity__body__title"},ivt={class:"productivity__body__title__info"},ovt={class:"number-of-categories"},svt={class:"productivity__body__categories"},lvt={class:"productivity__footer"},cvt={class:"productivity__footer__offenses"},dvt=Ay(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),uvt={class:"productivity__footer__offenses__table"},hvt=Ay(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[t.createElementVNode("div"),t.createElementVNode("div",null,"Si"),t.createElementVNode("div",null,"No")],-1)),pvt={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},fvt=Ay(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),mvt={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},gvt=Ay(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),yvt={class:"productivity__footer__offenses__table__row has-padding"},vvt=Ay(()=>t.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),_vt={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:offensesConditions"],setup(e,{emit:a}){const i=e,N=t.ref(!1),L=t.ref(!1),u=t.ref(!1),g=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),n=t.computed(()=>({"--template-columns":i.isExpansionMode?"1fr":"1fr 1fr"})),b=t.computed(()=>i.productivityCategories.offensive.categories.reduce((c,s)=>(s.isSelected&&c++,c),0)),m=t.computed(()=>i.productivityCategories.defensive.categories.reduce((c,s)=>(s.isSelected&&c++,c),0)),r=t.computed(()=>i.productivityCategories.possession.categories.reduce((c,s)=>(s.isSelected&&c++,c),0));t.watch(()=>i.productivityCategories,c=>{g.value.areYellowCardsSelected=c.offensesConditions.areYellowCardsSelected,g.value.areRedCardsSelected=c.offensesConditions.areRedCardsSelected,g.value.areFoulsCommittedSelected=c.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),t.watch(g,c=>{a("update:offensesConditions",c)},{deep:!0,immediate:!0});function v(c,s){s.isSelected=c,setTimeout(()=>{s.priority=i.numberOfCategoriesSelected},10)}function _(c){c==="offensive"?N.value=!N.value:c==="defensive"?L.value=!L.value:c==="possession"&&(u.value=!u.value)}return(c,s)=>(t.openBlock(),t.createElementBlock("div",qyt,[t.createElementVNode("div",{class:"productivity__body",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",Yyt,[t.createElementVNode("div",Zyt,[t.createElementVNode("div",Jyt,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.offensive.title),1),t.createElementVNode("span",Xyt,"("+t.toDisplayString(b.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:s[0]||(s[0]=o=>_("offensive"))},[t.withDirectives(t.createVNode(lm,{"is-expanded":N.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",Kyt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.offensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(ro),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":l=>v(l,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||N.value]])]),t.createElementVNode("div",Qyt,[t.createElementVNode("div",evt,[t.createElementVNode("div",tvt,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.defensive.title),1),t.createElementVNode("span",nvt,"("+t.toDisplayString(m.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:s[1]||(s[1]=o=>_("defensive"))},[t.withDirectives(t.createVNode(lm,{"is-expanded":L.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",avt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.defensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(ro),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":l=>v(l,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||L.value]]),t.createElementVNode("div",rvt,[t.createElementVNode("div",ivt,[t.createElementVNode("span",null,t.toDisplayString(e.productivityCategories.possession.title),1),t.createElementVNode("span",ovt,"("+t.toDisplayString(r.value)+")",1)]),t.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:s[2]||(s[2]=o=>_("possession"))},[t.withDirectives(t.createVNode(lm,{"is-expanded":u.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",svt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.productivityCategories.possession.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"productivity__checkbox"},[t.createVNode(t.unref(ro),{label:o.name,fontFamily:e.fontFamily,"model-value":o.isSelected,"avoid-to-check":e.areMaxCategoriesReached,"box-value":o.priority||0,"onUpdate:modelValue":l=>v(l,o)},null,8,["label","fontFamily","model-value","avoid-to-check","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||u.value]])])],4),t.createElementVNode("div",lvt,[t.createElementVNode("div",cvt,[dvt,t.createElementVNode("div",uvt,[hvt,t.createElementVNode("div",pvt,[fvt,t.createElementVNode("div",null,[t.createVNode(t.unref(ro),{"model-value":g.value.areFoulsCommittedSelected,"avoid-interaction":g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":s[3]||(s[3]=o=>g.value.areFoulsCommittedSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(ro),{"model-value":!g.value.areFoulsCommittedSelected,"avoid-interaction":!g.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":s[4]||(s[4]=o=>g.value.areFoulsCommittedSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",mvt,[gvt,t.createElementVNode("div",null,[t.createVNode(t.unref(ro),{"model-value":g.value.areYellowCardsSelected,"avoid-interaction":g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":s[5]||(s[5]=o=>g.value.areYellowCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(ro),{"model-value":!g.value.areYellowCardsSelected,"avoid-interaction":!g.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":s[6]||(s[6]=o=>g.value.areYellowCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])]),t.createElementVNode("div",yvt,[vvt,t.createElementVNode("div",null,[t.createVNode(t.unref(ro),{"model-value":g.value.areRedCardsSelected,"avoid-interaction":g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":s[7]||(s[7]=o=>g.value.areRedCardsSelected=o)},null,8,["model-value","avoid-interaction"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(ro),{"model-value":!g.value.areRedCardsSelected,"avoid-interaction":!g.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":s[8]||(s[8]=o=>g.value.areRedCardsSelected=!o)},null,8,["model-value","avoid-interaction"])])])])])])]))}},bvt=xo(_vt,[["__scopeId","data-v-4df743e3"]]),H3=e=>(t.pushScopeId("data-v-9a3af80d"),e=e(),t.popScopeId(),e),xvt={class:"details__header"},wvt=H3(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),kvt={class:"details__header__checkbox"},Cvt={class:"details__body"},Tvt={class:"details__body__playing-as"},Svt=["onClick"],Evt={class:"details__header"},Avt=H3(()=>t.createElementVNode("div",{class:"details__header__title"},[t.createTextVNode(" En: "),t.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),Mvt={class:"details__header__checkbox"},Ivt={class:"details__body"},Pvt=H3(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Nvt={class:"details__body__game-section"},Bvt=["onClick"],Ovt={class:"details__body"},zvt=H3(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Lvt={class:"details__body__game-section"},Fvt=["onClick"],Dvt={__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},fontFamily:{type:String,default:"'Poppins-Regular'"},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const a=e;t.useCssVars(r=>({"35aa5eb4":e.buttonsBackgroundColor,"7765f8c7":e.buttonsTextColor,"5b6eef4b":e.buttonsBorderWidth,"5a57f0e8":e.buttonsBorderColor,a0a4b168:e.buttonsBackgroundColorActive,"349872ad":e.buttonsTextColorActive,76477631:e.buttonsBorderWidthActive,"39de0e0e":e.buttonsBorderColorActive}));const i=t.computed(()=>a.playingAs.every(r=>r.isSelected)),N=t.computed(()=>a.gameSections.every(r=>r.isSelected)),L=t.computed(()=>a.gameSections.reduce((r,v)=>(v.value<=3?r.firstHalf.push(v):r.secondHalf.push(v),r),{firstHalf:[],secondHalf:[]})),u=t.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function g(r){r?a.playingAs.forEach(v=>{v.isSelected=!0}):a.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function n(r){a.playingAs.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function b(r){a.gameSections.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function m(r){r?a.gameSections.forEach(v=>{v.isSelected=!0}):a.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(r,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(u.value)},[t.withDirectives(t.createElementVNode("div",xvt,[wvt,t.createElementVNode("div",kvt,[t.createVNode(t.unref(ro),{label:"Todos",fontFamily:e.fontFamily,"model-value":i.value,"onUpdate:modelValue":g},null,8,["fontFamily","model-value"])])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.withDirectives(t.createElementVNode("div",Cvt,[t.createElementVNode("div",Tvt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.playingAs,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>n(_)},t.toDisplayString(_.name),11,Svt))),128))])],512),[[t.vShow,!e.isPlayingAsHidden]]),t.createElementVNode("div",Evt,[Avt,t.createElementVNode("div",Mvt,[t.createVNode(t.unref(ro),{label:"Todos",fontFamily:e.fontFamily,"model-value":N.value,"onUpdate:modelValue":m},null,8,["fontFamily","model-value"])])]),t.createElementVNode("div",Ivt,[Pvt,t.createElementVNode("div",Nvt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.firstHalf,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>b(_)},t.toDisplayString(_.text),11,Bvt))),128))])]),t.createElementVNode("div",Ovt,[zvt,t.createElementVNode("div",Lvt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.secondHalf,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>b(_)},t.toDisplayString(_.text),11,Fvt))),128))])])],4))}},Vvt=xo(Dvt,[["__scopeId","data-v-9a3af80d"]]),Rvt={class:"scroll-container"},$vt={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(e){return t.useCssVars(a=>({"6aab424d":e.height,39848040:e.width})),(a,i)=>(t.openBlock(),t.createElementBlock("div",Rvt,[t.renderSlot(a.$slots,"default",{},void 0,!0)]))}},zj=xo($vt,[["__scopeId","data-v-218f5976"]]),jvt={class:"tournaments"},Uvt={class:"tournaments__tournament"},Hvt={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["change-filters-selected","update:filters"],setup(e,{emit:a}){const i=e,N=t.ref(!1),L=t.computed(()=>i.tournaments.filter(g=>g.isSelected).length);t.watch(()=>i.tournaments,g=>{const n=g.filter(b=>b.isSelected);N.value=n.length===g.length,a("change-filters-selected",n.length),a("update:filters",i.tournaments)},{immediate:!0,deep:!0});function u(g){i.tournaments.forEach((n,b)=>{n.isSelected=g||(b!==0?g:!0)})}return(g,n)=>(t.openBlock(),t.createElementBlock("div",jvt,[t.createVNode(zj,{height:"200px"},{default:t.withCtx(()=>[t.createElementVNode("div",Uvt,[t.createVNode(t.unref(ro),{"model-value":N.value,label:"Todas las ligas",fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":u},null,8,["model-value","fontFamily"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tournaments,b=>(t.openBlock(),t.createElementBlock("div",{key:b.id||b._id,class:"tournaments__tournament"},[t.createVNode(t.unref(ro),{modelValue:b.isSelected,"onUpdate:modelValue":m=>b.isSelected=m,label:b.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":L.value===1&&b.isSelected},null,8,["modelValue","onUpdate:modelValue","label","fontFamily","avoid-interaction"])]))),128))]),_:1})]))}},Gvt=xo(Hvt,[["__scopeId","data-v-590d8ab3"]]),Ea={PLAYS:"plays",PRODUCTIVITY:"productivity",FIELD:"field",UNIVERSE:"universe",DETAILS:"details",TOURNAMENTS:"tournaments",PERSONAL_DATA:"personalData",PLAYS_TYPES:"playsTypes",GOLSTATS:"golstats",DISTANCE:"distance",RESULTS:"results",RESULTS_BY_TIME:"resultsByTime",VIDEOS:"videos",GAMES:"games",TAKEN_CORNERS:"takenCorners",HOW_WAS_CORNER:"howWasCorner",ZONE:"zone",WHAT_HAPPENED:"whatHappened"},Wvt={key:0,class:"plays-golstats__placeholder"},qvt=["onClick"],Yvt={key:0,class:"plays-golstats__item__value"},Zvt={class:"plays-golstats__item__text"},Jvt={class:"plays-golstats__item__svg"},Xvt={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kvt=["fill"],Qvt={__name:"TemplatePlaysTypeAndGolstats",props:{height:{type:String,default:"fit-content"},type:{type:String,default:""},categories:{type:Array,default:()=>[]},svgColor:{type:String,default:"#CBEE6B"},svgWidth:{type:Number,default:10},svgHeight:{type:Number,default:8}},emits:["change-filters-selected","update:filters"],setup(e,{emit:a}){const i=e,N=t.computed(()=>({"--grid-template-columns":i.type===Ea.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${i.svgWidth}px`,"--svg-height":`${i.svgHeight}px`}));t.watch(()=>i.categories,u=>{const g=u.filter(n=>n.isSelected);a("update:filters",g)},{immediate:!0,deep:!0});function L(u){u.isSelected||(i.categories.forEach(g=>{g.isSelected=!1}),u.isSelected=!0,i.type===Ea.GOLSTATS&&a("change-filters-selected",u.value))}return(u,g)=>(t.openBlock(),t.createElementBlock("div",{class:"plays-golstats",style:t.normalizeStyle(N.value)},[t.createVNode(zj,{height:e.height},{default:t.withCtx(()=>[e.type===t.unref(Ea).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",Wvt," Elige un tipo de jugada para filtrar: ")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categories,(n,b)=>(t.openBlock(),t.createElementBlock("div",{key:`k${b}`,class:"plays-golstats__item",onClick:m=>L(n)},[e.type===t.unref(Ea).GOLSTATS?(t.openBlock(),t.createElementBlock("div",Yvt,t.toDisplayString(n.value),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Zvt,t.toDisplayString(n.name),1),t.createElementVNode("div",Jvt,[t.withDirectives((t.openBlock(),t.createElementBlock("svg",Xvt,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.svgColor},null,8,Kvt)],512)),[[t.vShow,n.isSelected]])])],8,qvt))),128))]),_:1},8,["height"])],4))}},Lj=xo(Qvt,[["__scopeId","data-v-af3c1673"]]),e2t=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},G9={props:{textRight:{type:String,default:""},textRightColor:{type:String,default:"#FFFFFF"},textRightFontFamily:{type:String,default:"Poppins-Regular"},textRightFontSize:{type:String,default:"13px"},placeholder:{type:String,default:"Ingresar valor"},value:String,inputType:{type:String,default:"text"},width:{type:String,default:"100%"},height:{type:String,default:"30px"},backgroundColor:{type:String,default:"#2e3b46"},borderRadius:{type:String,default:"10px"},border:{type:String,default:"1px solid #bdc1c4"},color:{type:String,default:"#FFFFFF"},placeholderColor:{type:String,default:"#bdc1c4"},font:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"13px"},padding:{type:String,default:"11px"},isNumbersOnly:{type:Boolean,default:!1}},computed:{inputStyle(){return{width:this.width,height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:this.border,color:this.color,fontFamily:this.font,fontSize:this.fontSize,placeholderColor:this.placeholderColor,paddingLeft:this.padding}}},methods:{updateInputValue(e){this.$emit("inputval",e.target.value)},onKeyDown(e){if(this.isNumbersOnly){const a=e.which?e.which:e.keyCode();a>31&&(a<48||a>57)&&e.preventDefault()}}}},Fj=()=>{t.useCssVars(e=>({"53e1855a":e.textRightColor,da8ee600:e.textRightFontSize,"9fb876ba":e.textRightFontFamily}))},Dj=G9.setup;G9.setup=Dj?(e,a)=>(Fj(),Dj(e,a)):Fj;const t2t={class:"input-container"},n2t=["type","placeholder","value"],a2t={class:"right-text"};function r2t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",t2t,[t.createElementVNode("input",{type:i.inputType,placeholder:i.placeholder,value:i.value,style:t.normalizeStyle(u.inputStyle),onKeydown:a[0]||(a[0]=(...g)=>u.onKeyDown&&u.onKeyDown(...g)),onInput:a[1]||(a[1]=(...g)=>u.updateInputValue&&u.updateInputValue(...g))},null,44,n2t),t.createElementVNode("div",a2t,t.toDisplayString(i.textRight),1)])}const Vj=e2t(G9,[["render",r2t],["__scopeId","data-v-b73049e7"]]),i2t=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},W9={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))}}},Rj=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},$j=W9.setup;W9.setup=$j?(e,a)=>(Rj(),$j(e,a)):Rj;const o2t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),s2t=["src"],l2t={key:1,class:"text"},c2t=["src"],d2t={class:"stats"},u2t=o2t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),h2t={class:"numstats"},p2t={class:"leyend"};function f2t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",L.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([u.customStyle,L.status&&i.typeOnOff&&u.customActive]),onClick:a[0]||(a[0]=(...g)=>u.btnClick&&u.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,s2t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",l2t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,c2t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>u.btnClick&&u.btnClick(...g))},[t.createElementVNode("div",d2t,[u2t,t.createElementVNode("div",h2t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",p2t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const m2t=i2t(W9,[["render",f2t],["__scopeId","data-v-fb269a1e"]]),g2t={class:"gsc-dropdown__main-container__item-selected"},y2t=["height","width"],v2t=["stroke"],_2t={class:"gsc-dropdown__items-container"},b2t=["onClick"],x2t={key:0,class:"gsc-dropdown__items-footer"},Ff={__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(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},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},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}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const i=e,N=t.ref({}),L=t.ref(null),u=t.ref(i.isMultipleOption?-1:0),g=t.ref(!1);t.watch(()=>i.items,(c,s)=>{if(!i.modelValue&&(!i.onlyFirstTime||!s||!s.length)&&c&&c.length){if(i.defaultItemByProp){const o=i.items.findIndex(l=>l[i.defaultItemByProp.propName]===i.defaultItemByProp.value);o!==-1?(u.value=o,N.value=c[o]):(u.value=0,N.value=c[0])}else N.value=c[i.defaultItemByIndex];a("input",N.value)}},{immediate:!0}),t.watch(()=>i.modelValue,c=>{if(c){const s=i.items.findIndex(o=>typeof c=="object"?JSON.stringify(o)===JSON.stringify(c):o===c);s!==-1&&(u.value=s,N.value=i.items[s],a("update:modelValue",N.value))}},{immediate:!0});const n=t.computed(()=>({height:i.height,width:i.width,backgroundColor:i.backgroundColor,borderRadius:`${i.borderRadius}px`,border:`${i.borderType} ${i.borderWidth}px ${i.borderColor}`,color:i.color,"--hover-background-color":i.hoverBackgroundColor,"--list-item-padding":i.listItemPadding,"--list-background-color":i.listBackgroundColor,"--list-height":i.listHeight,"--list-item-selected-color":i.listItemSelectedColor,"--list-item-selected-background-color":i.listItemSelectedBackgroundColor,"--list-item-color":i.listItemColor,"--list-border-radius":`${i.listBorderRadius}`,"--list-border-color":i.listBorderColor,"--list-width":i.isListSameWidth?i.width:"fit-content","--list-border-width":`${i.listBorderWidth}px`,"--footer-border":`${i.footerBorderWidth}px solid ${i.footerBorderColor}`,"--dropdown-opacity":i.isDisabled?"0.5":"1","--dropdown-cursor":i.isDisabled?"not-allowed":"pointer","--dropdown-font-size":i.fontSize?i.fontSize:"14px"})),b=t.computed(()=>({height:`${i.arrowHeight}px`,width:`${i.arrowWidth}px`}));function m(){i.isDisabled||(g.value=!g.value)}function r(c){L.value&&!L.value.contains(c.target)&&(g.value=!1)}function v(c,s){i.isMultipleOption?u.value=-1:(u.value=s,g.value=!1),N.value=c,a("input",N.value),a("update:modelValue",N.value)}function _(){g.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",r)}),t.onBeforeMount(()=>{document.removeEventListener("click",r)}),(c,s)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:L,class:"gsc-dropdown",style:t.normalizeStyle(n.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:m},[t.createElementVNode("div",g2t,[t.renderSlot(c.$slots,"default",{selectedItem:N.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":g.value}]),style:t.normalizeStyle(b.value)},[(t.openBlock(),t.createElementBlock("svg",{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,v2t)],8,y2t))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",_2t,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${i.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(o,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:l===u.value}]),key:l,onClick:d=>v(o,l)},[t.renderSlot(c.$slots,"availableItem",{item:o})],10,b2t))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",x2t,[t.createVNode(t.unref(m2t),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:_})])):t.createCommentVNode("",!0)])],512),[[t.vShow,g.value]])]),_:3})],4))}},My={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"white",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46"},f1=e=>(t.pushScopeId("data-v-b1fc2fa6"),e=e(),t.popScopeId(),e),w2t={class:"universe"},k2t=f1(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),C2t=f1(()=>t.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),T2t={class:"universe__inputs"},S2t={class:"universe__inputs__input"},E2t={class:"universe__inputs__checkbox"},A2t=f1(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),M2t=f1(()=>t.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),I2t={class:"universe__inputs"},P2t={class:"universe__inputs__input"},N2t={class:"universe__inputs__checkbox"},B2t=f1(()=>t.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),O2t=f1(()=>t.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),z2t={class:"universe__dropdown"},L2t={class:"selected-item"},jj=11,F2t={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,a)=>a+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(e,{expose:a,emit:i}){const N=e,L=t.ref(!1),u=t.ref(!1),g=t.ref(!1),n=t.ref({statistics:{}});t.watch(()=>N.universeFilters,c=>{n.value={...c,lastMonths:c.selectedMonth?c.selectedMonth:c.lastMonths[jj],statistics:{...c.statistics}}},{deep:!0,immediate:!0}),t.watch(()=>n,c=>{L.value=!c.value.minutesPlayed||Number(c.value.minutesPlayed)===0,u.value=!c.value.percentMinutesPlayed||Number(c.value.percentMinutesPlayed)===0,g.value=!c.value.lastMonths||Number(c.value.lastMonths)===0,i("update:universeFilters",c)},{deep:!0,immediate:!0});function b(c){n.value.minutesPlayed=c}function m(c){n.value.percentMinutesPlayed=c}function r(c,s){switch(s){case"minutes":L.value=c,c&&(n.value.minutesPlayed=0);break;case"percent":u.value=c,c&&(n.value.percentMinutesPlayed=0);break;case"months":g.value=c,c&&(n.value.lastMonths=0);break}}function v(){n.value={...N.universeFilters,lastMonths:N.universeFilters.lastMonths[jj],statistics:{...N.universeFilters.statistics}}}function _(c){n.value.lastMonths=c}return a({resetFilters:v}),(c,s)=>(t.openBlock(),t.createElementBlock("div",w2t,[k2t,C2t,t.createElementVNode("div",T2t,[t.createElementVNode("div",S2t,[t.createVNode(t.unref(Vj),{value:n.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:b},null,8,["value"])]),t.createElementVNode("div",E2t,[t.createVNode(t.unref(ro),{modelValue:L.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":s[0]||(s[0]=o=>r(o,"minutes"))},null,8,["modelValue","fontFamily"])])]),A2t,M2t,t.createElementVNode("div",I2t,[t.createElementVNode("div",P2t,[t.createVNode(t.unref(Vj),{value:n.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:m},null,8,["value"])]),t.createElementVNode("div",N2t,[t.createVNode(t.unref(ro),{modelValue:u.value,label:"Indistinto",fontFamily:e.fontFamily,"box-position":"right","onUpdate:modelValue":s[1]||(s[1]=o=>r(o,"percent"))},null,8,["modelValue","fontFamily"])])]),B2t,O2t,t.createElementVNode("div",z2t,[t.createVNode(t.unref(Ff),t.mergeProps(t.unref(My),{items:e.universeFilters.lastMonths,"model-value":n.value.lastMonths,onInput:_}),{default:t.withCtx(({selectedItem:o})=>[t.createElementVNode("div",L2t,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),availableItem:t.withCtx(({item:o})=>[t.createElementVNode("div",null,t.toDisplayString(o)+" "+t.toDisplayString(o===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),t.createCommentVNode("",!0),t.createCommentVNode("",!0)]))}},D2t=xo(F2t,[["__scopeId","data-v-b1fc2fa6"]]),Uj=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},V2t={name:"MultiRangeSlider",props:{baseClassName:{type:String,default:"multi-range-slider"},min:{type:Number},max:{type:Number},minValue:{type:Number},maxValue:{type:Number},step:{type:Number,default:1},preventWheel:{type:Boolean,default:!1},ruler:{type:Boolean,default:!0},label:{type:Boolean,default:!0},labels:{type:Array},minCaption:{type:String},maxCaption:{type:String},rangeMargin:{type:Number}},data(){let e=this.labels||[],a=this.min===void 0?0:this.min,i=e.length?e.length-1:100,N=this.max===void 0?i:this.max,L=this.minValue===void 0?25:this.minValue;e.length&&this.minValue===void 0&&(L=1);let u=this.maxValue||75;if(e.length&&this.maxValue===void 0&&(u=e.length-2),N<=a)throw new Error("Invalid props min or max");if(L>u)throw new Error("Invalid props minValue or maxValue");let g=this.rangeMargin===void 0?this.step:this.rangeMargin,n=g%this.step;return n&&(g=g+this.step-n),{valueMin:L<a?a:L,valueMax:u>N?N:u,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:g}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(e){let a=parseFloat(e.target.value);a<=this.valueMax-this.rangeMarginValue&&a>=this.minimum?this.valueMin=a:e.target.value=this.valueMin},onInputMaxChange(e){let a=parseFloat(e.target.value);a>=this.valueMin+this.rangeMarginValue&&a<=this.maximum?this.valueMax=a:e.target.value=this.valueMax},onLeftThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(e){this.mouseMoveCounter++;let a=e.clientX;e.type==="touchmove"&&(a=e.touches[0].clientX);let i=(a-this.startX)/this.barBox.width,N=this.barValue+(this.maximum-this.minimum)*i,L=N%this.step;N-=L,N<this.minimum?N=this.minimum:N>this.valueMax-this.rangeMarginValue&&(N=this.valueMax-this.rangeMarginValue),this.valueMin=N},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(e){if(e.preventDefault(),this.startX=e.clientX,e.type==="touchstart")if(e.touches.length===1)this.startX=e.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=e.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(e){this.mouseMoveCounter++;let a=e.clientX;e.type==="touchmove"&&(a=e.touches[0].clientX);let i=(a-this.startX)/this.barBox.width,N=this.barValue+(this.maximum-this.minimum)*i,L=N%this.step;N-=L,N<this.valueMin+this.rangeMarginValue?N=this.valueMin+this.rangeMarginValue:N>this.maximum&&(N=this.maximum),this.valueMax=N},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(e){if(this.preventWheel===!0||!e.shiftKey&&!e.ctrlKey)return;let a=this.step;e.deltaY<0&&(a=-a),e.shiftKey&&e.ctrlKey?this.valueMin+a>=this.minimum&&this.valueMax+a<=this.maximum&&(this.valueMin=this.valueMin+a,this.valueMax=this.valueMax+a):e.ctrlKey?(a=this.valueMax+a,a<this.valueMin+this.rangeMarginValue?a=this.valueMin+this.rangeMarginValue:a>this.maximum&&(a=this.maximum),this.valueMax=a):e.shiftKey&&(a=this.valueMin+a,a<this.minimum?a=this.minimum:a>this.valueMax-this.rangeMarginValue&&(a=this.valueMax-this.rangeMarginValue),this.valueMin=a)},triggerInput(){let e=0;this.step.toString().includes(".")&&(e=2);let a={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(e)),maxValue:parseFloat(this.valueMax.toFixed(e))};this.$emit("input",a)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let e=this.labels||[],a=e.length?e.length-1:100;return this.max===void 0?a:this.max},stepCount(){let e=this.labels||[];return e.length?e.length-1:Math.floor((this.maximum-this.minimum)/this.step)},subStepCount(){return(this.labels||[]).length&&this.step>1?(this.maximum-this.minimum)/this.step:0},barMin(){return(this.valueMin-this.minimum)/(this.maximum-this.minimum)*100},barMax(){return 100-(this.valueMax-this.minimum)/(this.maximum-this.minimum)*100},barMinVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMin||0).toFixed(e)},barMaxVal(){let e=0;return this.step.toString().includes(".")&&(e=2),(this.valueMax||100).toFixed(e)},scaleLabels(){let e=this.labels||[];return e.length===0&&(e=[],e.push(this.minimum),e.push(this.maximum)),e}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(e){this.valueMin=e<this.minimum?this.minimum:e},maxValue(e){this.valueMax=e>this.maximum?this.maximum:e}},mounted(){}},R2t={class:"bar"},$2t=["min","max","step","value"],j2t={class:"caption"},U2t={class:"min-caption"},H2t={class:"bar-inner"},G2t=["min","max","step","value"],W2t={class:"caption"},q2t={class:"max-caption"},Y2t={key:0,class:"ruler"},Z2t={key:1,class:"sub-ruler"},J2t={key:2,class:"labels"};function X2t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([i.baseClassName,L.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:a[10]||(a[10]=t.withModifiers((...g)=>u.onMouseWheel&&u.onMouseWheel(...g),["prevent","stop"]))},[t.createElementVNode("div",R2t,[t.createElementVNode("div",{class:"bar-left",style:t.normalizeStyle({width:u.barMin+"%"}),onClick:a[0]||(a[0]=(...g)=>u.onBarLeftClick&&u.onBarLeftClick(...g))},null,4),t.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:u.minimum,max:u.maximum,step:i.step,value:L.valueMin,onInput:a[1]||(a[1]=t.withModifiers((...g)=>u.onInputMinChange&&u.onInputMinChange(...g),["stop","prevent"]))},null,40,$2t),t.createElementVNode("div",{class:"thumb thumb-left",onMousedown:a[2]||(a[2]=(...g)=>u.onLeftThumbMousedown&&u.onLeftThumbMousedown(...g)),onTouchstart:a[3]||(a[3]=(...g)=>u.onLeftThumbMousedown&&u.onLeftThumbMousedown(...g))},[t.createElementVNode("div",j2t,[t.createElementVNode("span",U2t,t.toDisplayString(i.minCaption||u.barMinVal),1)])],32),t.createElementVNode("div",H2t,[t.createElementVNode("div",{class:"bar-inner-left",onClick:a[4]||(a[4]=(...g)=>u.onInnerBarLeftClick&&u.onInnerBarLeftClick(...g))}),t.createElementVNode("div",{class:"bar-inner-right",onClick:a[5]||(a[5]=(...g)=>u.onInnerBarRightClick&&u.onInnerBarRightClick(...g))})]),t.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:u.minimum,max:u.maximum,step:i.step,value:L.valueMax,onInput:a[6]||(a[6]=t.withModifiers((...g)=>u.onInputMaxChange&&u.onInputMaxChange(...g),["stop","prevent"]))},null,40,G2t),t.createElementVNode("div",{class:"thumb thumb-right",onMousedown:a[7]||(a[7]=(...g)=>u.onRightThumbMousedown&&u.onRightThumbMousedown(...g)),onTouchstart:a[8]||(a[8]=(...g)=>u.onRightThumbMousedown&&u.onRightThumbMousedown(...g))},[t.createElementVNode("div",W2t,[t.createElementVNode("span",q2t,t.toDisplayString(i.maxCaption||u.barMaxVal),1)])],32),t.createElementVNode("div",{class:"bar-right",style:t.normalizeStyle({width:u.barMax+"%"}),onClick:a[9]||(a[9]=(...g)=>u.onBarRightClick&&u.onBarRightClick(...g))},null,4)]),i.ruler?(t.openBlock(),t.createElementBlock("div",Y2t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.stepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-rule"}))),128))])):t.createCommentVNode("",!0),u.subStepCount?(t.openBlock(),t.createElementBlock("div",Z2t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.subStepCount,g=>(t.openBlock(),t.createElementBlock("div",{key:g,class:"ruler-sub-rule"}))),128))])):t.createCommentVNode("",!0),i.label?(t.openBlock(),t.createElementBlock("div",J2t,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.scaleLabels,g=>(t.openBlock(),t.createElementBlock("div",{class:"label",key:g},t.toDisplayString(g),1))),128))])):t.createCommentVNode("",!0)],34)}const K2t=Uj(V2t,[["render",X2t]]),q9={components:{MultiRangeSlider:K2t},props:{minLimit:{type:Number,default:10},maxLimit:{type:Number,default:100},minValue:{type:Number,default:10},maxValue:{type:Number,default:100},height:{type:String,default:"150px"},borderRadius:{type:String,default:"6px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:2},borderColor:{type:String,default:"#d9d9d9"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular"},fontFamilyValue:{type:String,default:"Poppins-Medium"},fontColorValue:{type:String,default:"#FFFFFF"},fontSizeValue:{type:String,default:"20px"},backgroundIndicador:{type:String,default:"rgb(22, 233, 40)"},heightIndicador:{type:String,default:"15px"},widthIndicador:{type:String,default:"15px"},marginTopIndicador:{type:String,default:"-8px"},borderColorIndicador:{type:String,default:"#FFFFFF"},borderWidthIndicador:{type:String,default:"3px"},lineInRangeColor:{type:String,default:"rgb(22, 233, 40)"},lineOutRangeColor:{type:String,default:"#c7c7c7"},minSuffix:{type:String,default:""},maxSuffix:{type:String,default:""}},data(){return{minValueLocal:0,maxValueLocal:0}},computed:{customStyle(){return{height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`}},customStyleText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customStyleValue(){return{color:this.fontColorValue,fontSize:this.fontSizeValue,fontFamily:`${this.fontFamilyValue} !important`}}},watch:{minValue:{handler(e){this.minValueLocal=e},immediate:!0},maxValue:{handler(e){this.maxValueLocal=e},immediate:!0}},methods:{onInput(e){this.minValueLocal=e.minValue,this.maxValueLocal=e.maxValue,this.$emit("input",e)}}},Hj=()=>{t.useCssVars(e=>({"318dc560":e.lineOutRangeColor,fcb35722:e.lineInRangeColor,"3edd517e":e.backgroundIndicador,"19ee7a09":e.widthIndicador,"482e6b68":e.heightIndicador,"48824d56":e.borderWidthIndicador,a51d4f50:e.borderColorIndicador,deb3b7b0:e.marginTopIndicador}))},Gj=q9.setup;q9.setup=Gj?(e,a)=>(Hj(),Gj(e,a)):Hj;const Q2t={class:"center"},e_t={class:"bar-ref"},t_t={class:"bar-ref-element-left"},n_t={class:"bar-ref-element-right"};function a_t(e,a,i,N,L,u){const g=t.resolveComponent("MultiRangeSlider");return t.openBlock(),t.createElementBlock("div",{class:"custom-range-slider",style:t.normalizeStyle(u.customStyle)},[t.createElementVNode("div",Q2t,[t.createElementVNode("div",e_t,[t.createElementVNode("div",t_t,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(u.customStyleText)},"De:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(u.customStyleValue)},t.toDisplayString(L.minValueLocal)+t.toDisplayString(i.minSuffix),5)]),t.createElementVNode("div",n_t,[t.createElementVNode("div",{class:"text",style:t.normalizeStyle(u.customStyleText)},"A:",4),t.createElementVNode("div",{class:"value",style:t.normalizeStyle(u.customStyleValue)},t.toDisplayString(L.maxValueLocal)+t.toDisplayString(i.maxSuffix),5)])]),t.createVNode(g,{baseClassName:"multi-range-slider",min:i.minLimit,max:i.maxLimit,step:1,ruler:!1,label:!1,"min-value":L.minValueLocal,"max-value":L.maxValueLocal,"range-margin":0,onInput:u.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const Wj=Uj(q9,[["render",a_t]]),r_t={class:"template-distance"},i_t={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(e,{emit:a}){const i=e,N=t.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});t.watch(()=>N.value,u=>{a("update:distanceFilters",u)},{deep:!0}),t.watch(()=>i.distance,u=>{N.value.minValue=u.minValue,N.value.maxValue=u.maxValue,N.value.minLimit=u.minLimit,N.value.maxLimit=u.maxLimit},{immediate:!0,deep:!0});function L(u){N.value.minValue=u.minValue,N.value.maxValue=u.maxValue}return(u,g)=>(t.openBlock(),t.createElementBlock("div",r_t,[t.createVNode(t.unref(Wj),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"12px","font-size":"12px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":N.value.minLimit,"max-limit":N.value.maxLimit,"min-value":N.value.minValue,"max-value":N.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:L},null,8,["min-limit","max-limit","min-value","max-value"])]))}},o_t=e=>(t.pushScopeId("data-v-be32e3d8"),e=e(),t.popScopeId(),e),s_t={class:"template-games"},l_t={class:"template-games__header"},c_t=o_t(()=>t.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),d_t={class:"template-games__header__all-games"},u_t={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(e,{emit:a}){const i=e,N=t.ref(!1),L=t.computed(()=>i.gamesFilters.filter(g=>g.isSelected).length);t.watch(()=>i.gamesFilters,g=>{a("update:gamesFilters",g)},{deep:!0}),t.watch(L,g=>{N.value=g===i.gamesFilters.length,a("update:gamesFilters",i.gamesFilters)},{immediate:!0});const u=g=>{g?i.gamesFilters.forEach(n=>{n.isSelected=g}):i.gamesFilters.forEach((n,b)=>{n.isSelected=b===0}),N.value=g};return(g,n)=>(t.openBlock(),t.createElementBlock("div",s_t,[t.createElementVNode("div",l_t,[c_t,t.createElementVNode("div",d_t,[t.createVNode(t.unref(ro),{modelValue:N.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":u},null,8,["modelValue"])])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesFilters,(b,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,class:"template-games__game"},[t.createVNode(t.unref(ro),{modelValue:b.isSelected,"onUpdate:modelValue":r=>b.isSelected=r,label:b.label,"teams-ids":b.teamsIds,"avoid-interaction":L.value===1&&b.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},h_t=xo(u_t,[["__scopeId","data-v-be32e3d8"]]),p_t=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},Y9={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))}}},qj=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},Yj=Y9.setup;Y9.setup=Yj?(e,a)=>(qj(),Yj(e,a)):qj;const f_t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),m_t=["src"],g_t={key:1,class:"text"},y_t=["src"],v_t={class:"stats"},__t=f_t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),b_t={class:"numstats"},x_t={class:"leyend"};function w_t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",L.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([u.customStyle,L.status&&i.typeOnOff&&u.customActive]),onClick:a[0]||(a[0]=(...g)=>u.btnClick&&u.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,m_t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",g_t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,y_t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>u.btnClick&&u.btnClick(...g))},[t.createElementVNode("div",v_t,[__t,t.createElementVNode("div",b_t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",x_t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const Z9=p_t(Y9,[["render",w_t],["__scopeId","data-v-fb269a1e"]]),k_t=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},J9={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))}}},Zj=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},Jj=J9.setup;J9.setup=Jj?(e,a)=>(Zj(),Jj(e,a)):Zj;const C_t=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),T_t=["src"],S_t={key:1,class:"text"},E_t=["src"],A_t={class:"stats"},M_t=C_t(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),I_t={class:"numstats"},P_t={class:"leyend"};function N_t(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",L.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([u.customStyle,L.status&&i.typeOnOff&&u.customActive]),onClick:a[0]||(a[0]=(...g)=>u.btnClick&&u.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,T_t)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",S_t,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,E_t)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>u.btnClick&&u.btnClick(...g))},[t.createElementVNode("div",A_t,[M_t,t.createElementVNode("div",I_t,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",P_t,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const B_t=k_t(J9,[["render",N_t],["__scopeId","data-v-fb269a1e"]]),O_t=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},z_t={key:1},L_t={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},F_t=["fill"],D_t={key:0,class:"checkbox__teams"},V_t={class:"checkbox__teams__logo"},R_t=["src"],$_t={class:"checkbox__teams__logo"},j_t=["src"],U_t={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:a}){const i=e;t.useCssVars(m=>({"6582e90e":e.width,"310b3edf":e.height}));const N=t.ref(!1),L=t.computed(()=>{const m={color:i.boxValueColor,"font-family":i.fontFamily,height:i.boxWidthAndHeight,width:i.boxWidthAndHeight,minWidth:i.boxWidthAndHeight,"border-radius":i.boxBorderRadius,"margin-top":i.boxMarginTop};return N.value?(m["background-color"]=i.boxBackgroundColor,m.border=`solid ${i.boxBorderWidth} ${i.boxBackgroundColor}`):m.border=`solid ${i.boxBorderWidth} ${i.boxBorderColor}`,m}),u=t.computed(()=>({"font-family":i.boxValueFontFamily,"font-size":i.boxValueFontSize,color:i.boxValueColor,"line-height":1})),g=t.computed(()=>{const m={color:i.labelColor,"font-family":i.fontFamily,"font-size":i.labelFontSize,"white-space":i.labelWhiteSpace,"text-align":i.boxPosition==="top"||i.boxPosition==="bottom"?"center":i.boxPosition};return(i.boxPosition==="left"||i.boxPosition==="right")&&(m[`margin-${i.boxPosition}`]=i.isBoxOnly?"0":i.teamsIds?"8px":"10px"),m});t.watch(()=>i.modelValue,m=>{m!==N.value&&(N.value=m)},{immediate:!0});function n(){i.avoidInteraction||!N.value&&i.avoidToCheck||(N.value=!N.value,a("update:modelValue",N.value))}function b(m){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${m}.png`}return(m,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:n},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(L.value)},[N.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(u.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",z_t,[(t.openBlock(),t.createElementBlock("svg",L_t,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,F_t)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",D_t,[t.createElementVNode("div",V_t,[t.createElementVNode("img",{src:b(e.teamsIds[0]),alt:""},null,8,R_t)]),t.createElementVNode("div",$_t,[t.createElementVNode("img",{src:b(e.teamsIds[1]),alt:""},null,8,j_t)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(g.value)},t.toDisplayString(e.label),5)],2))}},H_t=O_t(U_t,[["__scopeId","data-v-bcf3bcc6"]]),G_t=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},X9={components:{GSCButton:B_t,GSCCheckbox:H_t},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(e,a)=>({sector:a+1,active:!1})),lastUpdatedValue:[]}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"340px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},title:{type:String,default:"Pase(s) desde la(s) zona(s):"},titleFontSize:{type:String,default:"14px"}},watch:{value:{deep:!0,immediate:!0,handler(e){const a=e.sort();JSON.stringify(a)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=a,this.sectors.forEach((i,N)=>{i.active=e.includes(N+1),this.validateField(N)}),this.$emit("update:modelValue",e))}},sectors:{handler(e){var a=[];for(let i=0;i<e.length;i++)e[i].active&&a.push(i+1);this.$emit("update:modelValue",a)},deep:!0}},computed:{translx(){var e=0;return this.widthField>305?e=this.widthField-305:this.widthField==268&&(e=-36),e},transly(){var e=0;return this.heightField>195?(e=this.heightField-195,e=e/2):this.heightField==180&&(e=-7),e},translxcircle(){var e=0;return this.widthField>305?(e=this.widthField-305,e=e/2):this.widthField==268&&(e=-18),e}},methods:{clickAll(e){if(e){for(let a=0;a<this.sectors.length;a++)this.sectors[a].active=!0,this.validateField(a);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1}else for(let a=0;a<this.sectors.length;a++)this.sectors[a].active=!1,this.validateField(a),this.status14=!1,this.status24=!1,this.status34=!1,this.status44=!1,this.refreshBtn14=0,this.refreshBtn24=0,this.refreshBtn34=0,this.refreshBtn44=0},selectSector(e){var a=0;this.sectors[e].active=!this.sectors[e].active;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(a+=1);a==0&&(this.sectors[e].active=!0),this.validateField(e)},btn14(e){this.sectors[0].active=e?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=e?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=e?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=e?this.sectors[3].active=!0:this.sectors[3].active=!1;var a=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(a+=1);a==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,a==16&&(this.all=!0,this.update+=1)},btn24(e){this.sectors[4].active=e?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=e?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=e?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=e?this.sectors[7].active=!0:this.sectors[7].active=!1;var a=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(a+=1);a==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,a==16&&(this.all=!0,this.update+=1)},btn34(e){this.sectors[8].active=e?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=e?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=e?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=e?this.sectors[11].active=!0:this.sectors[11].active=!1;var a=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(a+=1);a==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,a==16&&(this.all=!0,this.update+=1)},btn44(e){this.sectors[12].active=e?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=e?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=e?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=e?this.sectors[15].active=!0:this.sectors[15].active=!1;var a=0;for(let i=0;i<this.sectors.length;i++)this.sectors[i].active&&(a+=1);a==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,a==16&&(this.all=!0,this.update+=1)},validateField(e){(e===0||e===1||e===2||e===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(e===4||e===5||e===6||e===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(e===8||e===9||e===10||e===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(e===12||e===13||e===14||e===15)&&(this.status44=!!(this.sectors[12].active&&this.sectors[13].active&&this.sectors[14].active&&this.sectors[15].active)),this.all=!!(this.status14&&this.status34&&this.status24&&this.status44),this.update+=1,this.status14&&(this.refreshBtn14+=1),this.status24&&(this.refreshBtn24+=1),this.status34&&(this.refreshBtn34+=1),this.status44&&(this.refreshBtn44+=1)}}},Xj=()=>{t.useCssVars(e=>({"4fe806fe":e.widthContainer,"91de7c52":e.heightContainer,"266afcdc":e.backgroundColor,"2b853536":e.titleFontSize,"986b6446":e.widthFieldGrid,"1af308b6":e.heightFieldGrid}))},Kj=X9.setup;X9.setup=Kj?(e,a)=>(Xj(),Kj(e,a)):Xj;const W_t={class:"gsc-field"},q_t={class:"gsc-field__title-checked"},Y_t={class:"gsc-field__title-checked__title"},Z_t={class:"gsc-field__container-field"},J_t={class:"gsc-field__container-field__field"},X_t={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},K_t=["stroke"],Q_t=["stroke","stroke-width"],ebt=["stroke","stroke-width"],tbt=["stroke-width","stroke"],nbt=["fill","fill-opacity","stroke","stroke-width"],abt=["fill","fill-opacity","stroke","stroke-width"],rbt=["fill","fill-opacity","stroke","stroke-width"],ibt=["fill","fill-opacity","stroke","stroke-width"],obt=["fill","fill-opacity","stroke","stroke-width"],sbt=["fill","fill-opacity","stroke","stroke-width"],lbt=["fill","fill-opacity","stroke","stroke-width"],cbt=["fill","fill-opacity","stroke","stroke-width"],dbt=["fill","fill-opacity","stroke","stroke-width"],ubt=["fill","fill-opacity","stroke","stroke-width"],hbt=["fill","fill-opacity","stroke","stroke-width"],pbt=["fill","fill-opacity","stroke","stroke-width"],fbt=["fill","fill-opacity","stroke","stroke-width"],mbt=["fill","fill-opacity","stroke","stroke-width"],gbt=["fill","fill-opacity","stroke","stroke-width"],ybt=["fill","fill-opacity","stroke","stroke-width"],vbt={class:"gsc-field__container-field__bar-buttons"};function _bt(e,a,i,N,L,u){const g=t.resolveComponent("GSCCheckbox"),n=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",W_t,[t.createElementVNode("div",q_t,[t.createElementVNode("div",Y_t,t.toDisplayString(i.title),1),t.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:t.normalizeStyle(i.widthField>=350?"min-width: 123px":"")},[(t.openBlock(),t.createBlock(g,{label:i.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":i.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:L.all,key:L.update,"model-value":L.all,"onUpdate:modelValue":u.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),t.createElementVNode("div",Z_t,[t.createElementVNode("div",J_t,[(t.openBlock(),t.createElementBlock("svg",X_t,[t.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:i.colorLineField},null,8,K_t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+u.translx+"px, "+u.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:i.colorLineField,"stroke-width":i.borderWidthLineField,"stroke-linecap":"square"},null,12,Q_t),t.createElementVNode("path",{style:t.normalizeStyle("transform: translateY("+u.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:i.colorLineField,"stroke-width":i.borderWidthLineField,"stroke-linecap":"square"},null,12,ebt),t.createElementVNode("path",{style:t.normalizeStyle("transform: translate("+u.translxcircle+"px, "+u.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":i.borderWidthLineField,stroke:i.colorLineField},null,12,tbt),t.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:L.sectors[0].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[0]||(a[0]=b=>u.selectSector(0))},null,8,nbt),t.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:L.sectors[1].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[1]||(a[1]=b=>u.selectSector(1))},null,8,abt),t.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:L.sectors[2].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[2]||(a[2]=b=>u.selectSector(2))},null,8,rbt),t.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:L.sectors[3].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[3]||(a[3]=b=>u.selectSector(3))},null,8,ibt),t.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:L.sectors[4].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[4]||(a[4]=b=>u.selectSector(4))},null,8,obt),t.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:L.sectors[5].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[5]||(a[5]=b=>u.selectSector(5))},null,8,sbt),t.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:L.sectors[6].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[6]||(a[6]=b=>u.selectSector(6))},null,8,lbt),t.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:L.sectors[7].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[7]||(a[7]=b=>u.selectSector(7))},null,8,cbt),t.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:L.sectors[8].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[8]||(a[8]=b=>u.selectSector(8))},null,8,dbt),t.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:L.sectors[9].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[9]||(a[9]=b=>u.selectSector(9))},null,8,ubt),t.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:L.sectors[10].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[10]||(a[10]=b=>u.selectSector(10))},null,8,hbt),t.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:L.sectors[11].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[11]||(a[11]=b=>u.selectSector(11))},null,8,pbt),t.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:L.sectors[12].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[12]||(a[12]=b=>u.selectSector(12))},null,8,fbt),t.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:L.sectors[13].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[13]||(a[13]=b=>u.selectSector(13))},null,8,mbt),t.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:L.sectors[14].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[14]||(a[14]=b=>u.selectSector(14))},null,8,gbt),t.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:L.sectors[15].active?i.backgroundSectorActive:i.backgroundSectorDisabled,"fill-opacity":i.opacitySector,stroke:i.borderColor,"stroke-width":i.borderWidth,onClick:a[15]||(a[15]=b=>u.selectSector(15))},null,8,ybt)]))]),t.createElementVNode("div",vbt,[(t.openBlock(),t.createBlock(n,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:u.btn14,key:L.refreshBtn14,value:e.status14},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:u.btn24,key:L.refreshBtn24,value:e.status24},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:u.btn34,key:L.refreshBtn34,value:e.status34},null,8,["onStatus","value"])),(t.openBlock(),t.createBlock(n,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:u.btn44,key:L.refreshBtn44,value:e.status44},null,8,["onStatus","value"]))])])])}const Qj=G_t(X9,[["render",_bt],["__scopeId","data-v-b85699b8"]]),bbt={class:"toggle-buttons__background"},xbt=["onClick"],wbt={__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"}},emits:["change"],setup(e,{emit:a}){const i=e;t.useCssVars(g=>({"0d588b39":e.height,"2a8da974":e.width,"6d34d30a":e.mainBackgroundColor,"3d50bf20":e.borderRadius,e8fc78a2:e.mainBorderWidth,eb2a7568:e.mainBorderColor,acdd84b6:e.fontFamily,"63d45e82":e.fontSize,b28ed67c:e.activeBorderWidth,b4bcd342:e.activeBorderColor,"7fa6e29d":e.activeBackgroundColor}));const N=t.ref(i.selectedButtonIndex),L=t.computed(()=>({"--grid-template-columns":`repeat(${i.buttons.length}, 1fr)`}));t.watch(()=>i.selectedButtonIndex,g=>{N.value=g}),t.watch(N,(g,n)=>{g!==n&&a("change",{index:g,button:i.buttons[g]})});function u(g){N.value=g}return(g,n)=>(t.openBlock(),t.createElementBlock("div",bbt,[t.createElementVNode("div",{class:"toggle-buttons",style:t.normalizeStyle(L.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(b,m)=>(t.openBlock(),t.createElementBlock("div",{key:`b${m}`,class:t.normalizeClass(["toggle-buttons__button",{active:N.value===m}]),onClick:r=>u(m)},t.toDisplayString(b.text||b),11,xbt))),128))],4)]))}},kbt=xo(wbt,[["__scopeId","data-v-ac2af001"]]);function eU(e,a){return function(){return e.apply(a,arguments)}}const{toString:Cbt}=Object.prototype,{getPrototypeOf:K9}=Object,G3=(e=>a=>{const i=Cbt.call(a);return e[i]||(e[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),tp=e=>(e=e.toLowerCase(),a=>G3(a)===e),W3=e=>a=>typeof a===e,{isArray:m1}=Array,Iy=W3("undefined");function Tbt(e){return e!==null&&!Iy(e)&&e.constructor!==null&&!Iy(e.constructor)&&Nu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tU=tp("ArrayBuffer");function Sbt(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&tU(e.buffer),a}const Ebt=W3("string"),Nu=W3("function"),nU=W3("number"),q3=e=>e!==null&&typeof e=="object",Abt=e=>e===!0||e===!1,Y3=e=>{if(G3(e)!=="object")return!1;const a=K9(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Mbt=tp("Date"),Ibt=tp("File"),Pbt=tp("Blob"),Nbt=tp("FileList"),Bbt=e=>q3(e)&&Nu(e.pipe),Obt=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Nu(e.append)&&((a=G3(e))==="formdata"||a==="object"&&Nu(e.toString)&&e.toString()==="[object FormData]"))},zbt=tp("URLSearchParams"),Lbt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Py(e,a,{allOwnKeys:i=!1}={}){if(e===null||typeof e>"u")return;let N,L;if(typeof e!="object"&&(e=[e]),m1(e))for(N=0,L=e.length;N<L;N++)a.call(null,e[N],N,e);else{const u=i?Object.getOwnPropertyNames(e):Object.keys(e),g=u.length;let n;for(N=0;N<g;N++)n=u[N],a.call(null,e[n],n,e)}}function aU(e,a){a=a.toLowerCase();const i=Object.keys(e);let N=i.length,L;for(;N-- >0;)if(L=i[N],a===L.toLowerCase())return L;return null}const rU=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),iU=e=>!Iy(e)&&e!==rU;function Q9(){const{caseless:e}=iU(this)&&this||{},a={},i=(N,L)=>{const u=e&&aU(a,L)||L;Y3(a[u])&&Y3(N)?a[u]=Q9(a[u],N):Y3(N)?a[u]=Q9({},N):m1(N)?a[u]=N.slice():a[u]=N};for(let N=0,L=arguments.length;N<L;N++)arguments[N]&&Py(arguments[N],i);return a}const Fbt=(e,a,i,{allOwnKeys:N}={})=>(Py(a,(L,u)=>{i&&Nu(L)?e[u]=eU(L,i):e[u]=L},{allOwnKeys:N}),e),Dbt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vbt=(e,a,i,N)=>{e.prototype=Object.create(a.prototype,N),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),i&&Object.assign(e.prototype,i)},Rbt=(e,a,i,N)=>{let L,u,g;const n={};if(a=a||{},e==null)return a;do{for(L=Object.getOwnPropertyNames(e),u=L.length;u-- >0;)g=L[u],(!N||N(g,e,a))&&!n[g]&&(a[g]=e[g],n[g]=!0);e=i!==!1&&K9(e)}while(e&&(!i||i(e,a))&&e!==Object.prototype);return a},$bt=(e,a,i)=>{e=String(e),(i===void 0||i>e.length)&&(i=e.length),i-=a.length;const N=e.indexOf(a,i);return N!==-1&&N===i},jbt=e=>{if(!e)return null;if(m1(e))return e;let a=e.length;if(!nU(a))return null;const i=new Array(a);for(;a-- >0;)i[a]=e[a];return i},Ubt=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&K9(Uint8Array)),Hbt=(e,a)=>{const i=(e&&e[Symbol.iterator]).call(e);let N;for(;(N=i.next())&&!N.done;){const L=N.value;a.call(e,L[0],L[1])}},Gbt=(e,a)=>{let i;const N=[];for(;(i=e.exec(a))!==null;)N.push(i);return N},Wbt=tp("HTMLFormElement"),qbt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,i,N){return i.toUpperCase()+N}),oU=(({hasOwnProperty:e})=>(a,i)=>e.call(a,i))(Object.prototype),Ybt=tp("RegExp"),sU=(e,a)=>{const i=Object.getOwnPropertyDescriptors(e),N={};Py(i,(L,u)=>{let g;(g=a(L,u,e))!==!1&&(N[u]=g||L)}),Object.defineProperties(e,N)},Zbt=e=>{sU(e,(a,i)=>{if(Nu(e)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const N=e[i];if(Nu(N)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},Jbt=(e,a)=>{const i={},N=L=>{L.forEach(u=>{i[u]=!0})};return m1(e)?N(e):N(String(e).split(a)),i},Xbt=()=>{},Kbt=(e,a)=>(e=+e,Number.isFinite(e)?e:a),eC="abcdefghijklmnopqrstuvwxyz",lU="0123456789",cU={DIGIT:lU,ALPHA:eC,ALPHA_DIGIT:eC+eC.toUpperCase()+lU},Qbt=(e=16,a=cU.ALPHA_DIGIT)=>{let i="";const{length:N}=a;for(;e--;)i+=a[Math.random()*N|0];return i};function ext(e){return!!(e&&Nu(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const txt=e=>{const a=new Array(10),i=(N,L)=>{if(q3(N)){if(a.indexOf(N)>=0)return;if(!("toJSON"in N)){a[L]=N;const u=m1(N)?[]:{};return Py(N,(g,n)=>{const b=i(g,L+1);!Iy(b)&&(u[n]=b)}),a[L]=void 0,u}}return N};return i(e,0)},nxt=tp("AsyncFunction"),axt=e=>e&&(q3(e)||Nu(e))&&Nu(e.then)&&Nu(e.catch),ar={isArray:m1,isArrayBuffer:tU,isBuffer:Tbt,isFormData:Obt,isArrayBufferView:Sbt,isString:Ebt,isNumber:nU,isBoolean:Abt,isObject:q3,isPlainObject:Y3,isUndefined:Iy,isDate:Mbt,isFile:Ibt,isBlob:Pbt,isRegExp:Ybt,isFunction:Nu,isStream:Bbt,isURLSearchParams:zbt,isTypedArray:Ubt,isFileList:Nbt,forEach:Py,merge:Q9,extend:Fbt,trim:Lbt,stripBOM:Dbt,inherits:Vbt,toFlatObject:Rbt,kindOf:G3,kindOfTest:tp,endsWith:$bt,toArray:jbt,forEachEntry:Hbt,matchAll:Gbt,isHTMLForm:Wbt,hasOwnProperty:oU,hasOwnProp:oU,reduceDescriptors:sU,freezeMethods:Zbt,toObjectSet:Jbt,toCamelCase:qbt,noop:Xbt,toFiniteNumber:Kbt,findKey:aU,global:rU,isContextDefined:iU,ALPHABET:cU,generateString:Qbt,isSpecCompliantForm:ext,toJSONObject:txt,isAsyncFn:nxt,isThenable:axt};function qo(e,a,i,N,L){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),i&&(this.config=i),N&&(this.request=N),L&&(this.response=L)}ar.inherits(qo,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:ar.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const dU=qo.prototype,uU={};["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=>{uU[e]={value:e}}),Object.defineProperties(qo,uU),Object.defineProperty(dU,"isAxiosError",{value:!0}),qo.from=(e,a,i,N,L,u)=>{const g=Object.create(dU);return ar.toFlatObject(e,g,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),qo.call(g,e.message,a,i,N,L),g.cause=e,g.name=e.name,u&&Object.assign(g,u),g};const rxt=null;function tC(e){return ar.isPlainObject(e)||ar.isArray(e)}function hU(e){return ar.endsWith(e,"[]")?e.slice(0,-2):e}function pU(e,a,i){return e?e.concat(a).map(function(N,L){return N=hU(N),!i&&L?"["+N+"]":N}).join(i?".":""):a}function ixt(e){return ar.isArray(e)&&!e.some(tC)}const oxt=ar.toFlatObject(ar,{},null,function(e){return/^is[A-Z]/.test(e)});function Z3(e,a,i){if(!ar.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,i=ar.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,s){return!ar.isUndefined(s[c])});const N=i.metaTokens,L=i.visitor||m,u=i.dots,g=i.indexes,n=(i.Blob||typeof Blob<"u"&&Blob)&&ar.isSpecCompliantForm(a);if(!ar.isFunction(L))throw new TypeError("visitor must be a function");function b(c){if(c===null)return"";if(ar.isDate(c))return c.toISOString();if(!n&&ar.isBlob(c))throw new qo("Blob is not supported. Use a Buffer instead.");return ar.isArrayBuffer(c)||ar.isTypedArray(c)?n&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function m(c,s,o){let l=c;if(c&&!o&&typeof c=="object"){if(ar.endsWith(s,"{}"))s=N?s:s.slice(0,-2),c=JSON.stringify(c);else if(ar.isArray(c)&&ixt(c)||(ar.isFileList(c)||ar.endsWith(s,"[]"))&&(l=ar.toArray(c)))return s=hU(s),l.forEach(function(d,h){!(ar.isUndefined(d)||d===null)&&a.append(g===!0?pU([s],h,u):g===null?s:s+"[]",b(d))}),!1}return tC(c)?!0:(a.append(pU(o,s,u),b(c)),!1)}const r=[],v=Object.assign(oxt,{defaultVisitor:m,convertValue:b,isVisitable:tC});function _(c,s){if(!ar.isUndefined(c)){if(r.indexOf(c)!==-1)throw Error("Circular reference detected in "+s.join("."));r.push(c),ar.forEach(c,function(o,l){(!(ar.isUndefined(o)||o===null)&&L.call(a,o,ar.isString(l)?l.trim():l,s,v))===!0&&_(o,s?s.concat(l):[l])}),r.pop()}}if(!ar.isObject(e))throw new TypeError("data must be an object");return _(e),a}function fU(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return a[i]})}function nC(e,a){this._pairs=[],e&&Z3(e,this,a)}const mU=nC.prototype;mU.append=function(e,a){this._pairs.push([e,a])},mU.toString=function(e){const a=e?function(i){return e.call(this,i,fU)}:fU;return this._pairs.map(function(i){return a(i[0])+"="+a(i[1])},"").join("&")};function sxt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gU(e,a,i){if(!a)return e;const N=i&&i.encode||sxt,L=i&&i.serialize;let u;if(L?u=L(a,i):u=ar.isURLSearchParams(a)?a.toString():new nC(a,i).toString(N),u){const g=e.indexOf("#");g!==-1&&(e=e.slice(0,g)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class lxt{constructor(){this.handlers=[]}use(a,i,N){return this.handlers.push({fulfilled:a,rejected:i,synchronous:N?N.synchronous:!1,runWhen:N?N.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){ar.forEach(this.handlers,function(i){i!==null&&a(i)})}}const yU=lxt,vU={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cxt=typeof URLSearchParams<"u"?URLSearchParams:nC,dxt=typeof FormData<"u"?FormData:null,uxt=typeof Blob<"u"?Blob:null,hxt={isBrowser:!0,classes:{URLSearchParams:cxt,FormData:dxt,Blob:uxt},protocols:["http","https","file","blob","url","data"]},_U=typeof window<"u"&&typeof document<"u",pxt=(e=>_U&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),fxt=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),mxt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_U,hasStandardBrowserEnv:pxt,hasStandardBrowserWebWorkerEnv:fxt},Symbol.toStringTag,{value:"Module"})),np={...mxt,...hxt};function gxt(e,a){return Z3(e,new np.classes.URLSearchParams,Object.assign({visitor:function(i,N,L,u){return np.isNode&&ar.isBuffer(i)?(this.append(N,i.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},a))}function yxt(e){return ar.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function vxt(e){const a={},i=Object.keys(e);let N;const L=i.length;let u;for(N=0;N<L;N++)u=i[N],a[u]=e[u];return a}function bU(e){function a(i,N,L,u){let g=i[u++];if(g==="__proto__")return!0;const n=Number.isFinite(+g),b=u>=i.length;return g=!g&&ar.isArray(L)?L.length:g,b?(ar.hasOwnProp(L,g)?L[g]=[L[g],N]:L[g]=N,!n):((!L[g]||!ar.isObject(L[g]))&&(L[g]=[]),a(i,N,L[g],u)&&ar.isArray(L[g])&&(L[g]=vxt(L[g])),!n)}if(ar.isFormData(e)&&ar.isFunction(e.entries)){const i={};return ar.forEachEntry(e,(N,L)=>{a(yxt(N),L,i,0)}),i}return null}function _xt(e,a,i){if(ar.isString(e))try{return(a||JSON.parse)(e),ar.trim(e)}catch(N){if(N.name!=="SyntaxError")throw N}return(i||JSON.stringify)(e)}const aC={transitional:vU,adapter:["xhr","http"],transformRequest:[function(e,a){const i=a.getContentType()||"",N=i.indexOf("application/json")>-1,L=ar.isObject(e);if(L&&ar.isHTMLForm(e)&&(e=new FormData(e)),ar.isFormData(e))return N?JSON.stringify(bU(e)):e;if(ar.isArrayBuffer(e)||ar.isBuffer(e)||ar.isStream(e)||ar.isFile(e)||ar.isBlob(e))return e;if(ar.isArrayBufferView(e))return e.buffer;if(ar.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(L){if(i.indexOf("application/x-www-form-urlencoded")>-1)return gxt(e,this.formSerializer).toString();if((u=ar.isFileList(e))||i.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return Z3(u?{"files[]":e}:e,g&&new g,this.formSerializer)}}return L||N?(a.setContentType("application/json",!1),_xt(e)):e}],transformResponse:[function(e){const a=this.transitional||aC.transitional,i=a&&a.forcedJSONParsing,N=this.responseType==="json";if(e&&ar.isString(e)&&(i&&!this.responseType||N)){const L=!(a&&a.silentJSONParsing)&&N;try{return JSON.parse(e)}catch(u){if(L)throw u.name==="SyntaxError"?qo.from(u,qo.ERR_BAD_RESPONSE,this,null,this.response):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:np.classes.FormData,Blob:np.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ar.forEach(["delete","get","head","post","put","patch"],e=>{aC.headers[e]={}});const rC=aC,bxt=ar.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"]),xxt=e=>{const a={};let i,N,L;return e&&e.split(`
124
124
  `).forEach(function(u){L=u.indexOf(":"),i=u.substring(0,L).trim().toLowerCase(),N=u.substring(L+1).trim(),!(!i||a[i]&&bxt[i])&&(i==="set-cookie"?a[i]?a[i].push(N):a[i]=[N]:a[i]=a[i]?a[i]+", "+N:N)}),a},xU=Symbol("internals");function Ny(e){return e&&String(e).trim().toLowerCase()}function J3(e){return e===!1||e==null?e:ar.isArray(e)?e.map(J3):String(e)}function wxt(e){const a=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let N;for(;N=i.exec(e);)a[N[1]]=N[2];return a}const kxt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function iC(e,a,i,N,L){if(ar.isFunction(N))return N.call(this,a,i);if(L&&(a=i),!!ar.isString(a)){if(ar.isString(N))return a.indexOf(N)!==-1;if(ar.isRegExp(N))return N.test(a)}}function Cxt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,i,N)=>i.toUpperCase()+N)}function Txt(e,a){const i=ar.toCamelCase(" "+a);["get","set","has"].forEach(N=>{Object.defineProperty(e,N+i,{value:function(L,u,g){return this[N].call(this,a,L,u,g)},configurable:!0})})}let X3=class{constructor(a){a&&this.set(a)}set(a,i,N){const L=this;function u(n,b,m){const r=Ny(b);if(!r)throw new Error("header name must be a non-empty string");const v=ar.findKey(L,r);(!v||L[v]===void 0||m===!0||m===void 0&&L[v]!==!1)&&(L[v||b]=J3(n))}const g=(n,b)=>ar.forEach(n,(m,r)=>u(m,r,b));return ar.isPlainObject(a)||a instanceof this.constructor?g(a,i):ar.isString(a)&&(a=a.trim())&&!kxt(a)?g(xxt(a),i):a!=null&&u(i,a,N),this}get(a,i){if(a=Ny(a),a){const N=ar.findKey(this,a);if(N){const L=this[N];if(!i)return L;if(i===!0)return wxt(L);if(ar.isFunction(i))return i.call(this,L,N);if(ar.isRegExp(i))return i.exec(L);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,i){if(a=Ny(a),a){const N=ar.findKey(this,a);return!!(N&&this[N]!==void 0&&(!i||iC(this,this[N],N,i)))}return!1}delete(a,i){const N=this;let L=!1;function u(g){if(g=Ny(g),g){const n=ar.findKey(N,g);n&&(!i||iC(N,N[n],n,i))&&(delete N[n],L=!0)}}return ar.isArray(a)?a.forEach(u):u(a),L}clear(a){const i=Object.keys(this);let N=i.length,L=!1;for(;N--;){const u=i[N];(!a||iC(this,this[u],u,a,!0))&&(delete this[u],L=!0)}return L}normalize(a){const i=this,N={};return ar.forEach(this,(L,u)=>{const g=ar.findKey(N,u);if(g){i[g]=J3(L),delete i[u];return}const n=a?Cxt(u):String(u).trim();n!==u&&delete i[u],i[n]=J3(L),N[n]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const i=Object.create(null);return ar.forEach(this,(N,L)=>{N!=null&&N!==!1&&(i[L]=a&&ar.isArray(N)?N.join(", "):N)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,i])=>a+": "+i).join(`
125
125
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...i){const N=new this(a);return i.forEach(L=>N.set(L)),N}static accessor(a){const i=(this[xU]=this[xU]={accessors:{}}).accessors,N=this.prototype;function L(u){const g=Ny(u);i[g]||(Txt(N,u),i[g]=!0)}return ar.isArray(a)?a.forEach(L):L(a),this}};X3.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ar.reduceDescriptors(X3.prototype,({value:e},a)=>{let i=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(N){this[i]=N}}}),ar.freezeMethods(X3);const bp=X3;function oC(e,a){const i=this||rC,N=a||i,L=bp.from(N.headers);let u=N.data;return ar.forEach(e,function(g){u=g.call(i,u,L.normalize(),a?a.status:void 0)}),L.normalize(),u}function wU(e){return!!(e&&e.__CANCEL__)}function By(e,a,i){qo.call(this,e??"canceled",qo.ERR_CANCELED,a,i),this.name="CanceledError"}ar.inherits(By,qo,{__CANCEL__:!0});function Sxt(e,a,i){const N=i.config.validateStatus;!i.status||!N||N(i.status)?e(i):a(new qo("Request failed with status code "+i.status,[qo.ERR_BAD_REQUEST,qo.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}const Ext=np.hasStandardBrowserEnv?{write(e,a,i,N,L,u){const g=[e+"="+encodeURIComponent(a)];ar.isNumber(i)&&g.push("expires="+new Date(i).toGMTString()),ar.isString(N)&&g.push("path="+N),ar.isString(L)&&g.push("domain="+L),u===!0&&g.push("secure"),document.cookie=g.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Axt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Mxt(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function kU(e,a){return e&&!Axt(a)?Mxt(e,a):a}const Ixt=np.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let i;function N(L){let u=L;return e&&(a.setAttribute("href",u),u=a.href),a.setAttribute("href",u),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return i=N(window.location.href),function(L){const u=ar.isString(L)?N(L):L;return u.protocol===i.protocol&&u.host===i.host}}():function(){return function(){return!0}}();function Pxt(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function Nxt(e,a){e=e||10;const i=new Array(e),N=new Array(e);let L=0,u=0,g;return a=a!==void 0?a:1e3,function(n){const b=Date.now(),m=N[u];g||(g=b),i[L]=n,N[L]=b;let r=u,v=0;for(;r!==L;)v+=i[r++],r=r%e;if(L=(L+1)%e,L===u&&(u=(u+1)%e),b-g<a)return;const _=m&&b-m;return _?Math.round(v*1e3/_):void 0}}function CU(e,a){let i=0;const N=Nxt(50,250);return L=>{const u=L.loaded,g=L.lengthComputable?L.total:void 0,n=u-i,b=N(n),m=u<=g;i=u;const r={loaded:u,total:g,progress:g?u/g:void 0,bytes:n,rate:b||void 0,estimated:b&&g&&m?(g-u)/b:void 0,event:L};r[a?"download":"upload"]=!0,e(r)}}const Bxt=typeof XMLHttpRequest<"u",Oxt=Bxt&&function(e){return new Promise(function(a,i){let N=e.data;const L=bp.from(e.headers).normalize();let{responseType:u,withXSRFToken:g}=e,n;function b(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}let m;if(ar.isFormData(N)){if(np.hasStandardBrowserEnv||np.hasStandardBrowserWebWorkerEnv)L.setContentType(!1);else if((m=L.getContentType())!==!1){const[s,...o]=m?m.split(";").map(l=>l.trim()).filter(Boolean):[];L.setContentType([s||"multipart/form-data",...o].join("; "))}}let r=new XMLHttpRequest;if(e.auth){const s=e.auth.username||"",o=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";L.set("Authorization","Basic "+btoa(s+":"+o))}const v=kU(e.baseURL,e.url);r.open(e.method.toUpperCase(),gU(v,e.params,e.paramsSerializer),!0),r.timeout=e.timeout;function _(){if(!r)return;const s=bp.from("getAllResponseHeaders"in r&&r.getAllResponseHeaders()),o={data:!u||u==="text"||u==="json"?r.responseText:r.response,status:r.status,statusText:r.statusText,headers:s,config:e,request:r};Sxt(function(l){a(l),b()},function(l){i(l),b()},o),r=null}if("onloadend"in r?r.onloadend=_:r.onreadystatechange=function(){!r||r.readyState!==4||r.status===0&&!(r.responseURL&&r.responseURL.indexOf("file:")===0)||setTimeout(_)},r.onabort=function(){r&&(i(new qo("Request aborted",qo.ECONNABORTED,e,r)),r=null)},r.onerror=function(){i(new qo("Network Error",qo.ERR_NETWORK,e,r)),r=null},r.ontimeout=function(){let s=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const o=e.transitional||vU;e.timeoutErrorMessage&&(s=e.timeoutErrorMessage),i(new qo(s,o.clarifyTimeoutError?qo.ETIMEDOUT:qo.ECONNABORTED,e,r)),r=null},np.hasStandardBrowserEnv&&(g&&ar.isFunction(g)&&(g=g(e)),g||g!==!1&&Ixt(v))){const s=e.xsrfHeaderName&&e.xsrfCookieName&&Ext.read(e.xsrfCookieName);s&&L.set(e.xsrfHeaderName,s)}N===void 0&&L.setContentType(null),"setRequestHeader"in r&&ar.forEach(L.toJSON(),function(s,o){r.setRequestHeader(o,s)}),ar.isUndefined(e.withCredentials)||(r.withCredentials=!!e.withCredentials),u&&u!=="json"&&(r.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&r.addEventListener("progress",CU(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&r.upload&&r.upload.addEventListener("progress",CU(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=s=>{r&&(i(!s||s.type?new By(null,e,r):s),r.abort(),r=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));const c=Pxt(v);if(c&&np.protocols.indexOf(c)===-1){i(new qo("Unsupported protocol "+c+":",qo.ERR_BAD_REQUEST,e));return}r.send(N||null)})},sC={http:rxt,xhr:Oxt};ar.forEach(sC,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const TU=e=>`- ${e}`,zxt=e=>ar.isFunction(e)||e===null||e===!1,SU={getAdapter:e=>{e=ar.isArray(e)?e:[e];const{length:a}=e;let i,N;const L={};for(let u=0;u<a;u++){i=e[u];let g;if(N=i,!zxt(i)&&(N=sC[(g=String(i)).toLowerCase()],N===void 0))throw new qo(`Unknown adapter '${g}'`);if(N)break;L[g||"#"+u]=N}if(!N){const u=Object.entries(L).map(([n,b])=>`adapter ${n} `+(b===!1?"is not supported by the environment":"is not available in the build"));let g=a?u.length>1?`since :
126
126
  `+u.map(TU).join(`
@@ -3571,7 +3571,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
3571
3571
  `).slice(2):`
3572
3572
  `+Y.split(`
3573
3573
  `).map(function(le){return" "+le}).join(`
3574
- `)):Y=R.stylize("[Circular]","special")),k(H)){if(Z&&G.match(/^\d+$/))return Y;(H=JSON.stringify(""+G)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(H=H.slice(1,-1),H=R.stylize(H,"name")):(H=H.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),H=R.stylize(H,"string"))}return H+": "+Y}function f(R){return Array.isArray(R)}function y(R){return typeof R=="boolean"}function w(R){return R===null}function x(R){return typeof R=="number"}function M(R){return typeof R=="string"}function k(R){return R===void 0}function T(R){return S(R)&&C(R)==="[object RegExp]"}function S(R){return typeof R=="object"&&R!==null}function A(R){return S(R)&&C(R)==="[object Date]"}function E(R){return S(R)&&(C(R)==="[object Error]"||R instanceof Error)}function P(R){return typeof R=="function"}function C(R){return Object.prototype.toString.call(R)}function z(R){return R<10?"0"+R.toString(10):R.toString(10)}g.debuglog=function(R){if(R=R.toUpperCase(),!v[R])if(_.test(R)){var j=b.pid;v[R]=function(){var q=g.format.apply(g,arguments);console.error("%s %d: %s",R,j,q)}}else v[R]=function(){};return v[R]},g.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},g.types=n(41088),g.isArray=f,g.isBoolean=y,g.isNull=w,g.isNullOrUndefined=function(R){return R==null},g.isNumber=x,g.isString=M,g.isSymbol=function(R){return typeof R=="symbol"},g.isUndefined=k,g.isRegExp=T,g.types.isRegExp=T,g.isObject=S,g.isDate=A,g.types.isDate=A,g.isError=E,g.types.isNativeError=E,g.isFunction=P,g.isPrimitive=function(R){return R===null||typeof R=="boolean"||typeof R=="number"||typeof R=="string"||typeof R=="symbol"||R===void 0},g.isBuffer=n(75272);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(R,j){return Object.prototype.hasOwnProperty.call(R,j)}g.log=function(){var R,j;console.log("%s - %s",(j=[z((R=new Date).getHours()),z(R.getMinutes()),z(R.getSeconds())].join(":"),[R.getDate(),I[R.getMonth()],j].join(" ")),g.format.apply(g,arguments))},g.inherits=n(6768),g._extend=function(R,j){if(!j||!S(j))return R;for(var q=Object.keys(j),$=q.length;$--;)R[q[$]]=j[q[$]];return R};var D=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function V(R,j){if(!R){var q=new Error("Promise was rejected with a falsy value");q.reason=R,R=q}return j(R)}g.promisify=function(R){if(typeof R!="function")throw new TypeError('The "original" argument must be of type Function');if(D&&R[D]){var j;if(typeof(j=R[D])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(j,D,{value:j,enumerable:!1,writable:!1,configurable:!0}),j}function j(){for(var q,$,G=new Promise(function(Y,X){q=Y,$=X}),Z=[],H=0;H<arguments.length;H++)Z.push(arguments[H]);Z.push(function(Y,X){Y?$(Y):q(X)});try{R.apply(this,Z)}catch(Y){$(Y)}return G}return Object.setPrototypeOf(j,Object.getPrototypeOf(R)),D&&Object.defineProperty(j,D,{value:j,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(j,m(R))},g.promisify.custom=D,g.callbackify=function(R){if(typeof R!="function")throw new TypeError('The "original" argument must be of type Function');function j(){for(var q=[],$=0;$<arguments.length;$++)q.push(arguments[$]);var G=q.pop();if(typeof G!="function")throw new TypeError("The last argument must be of type Function");var Z=this,H=function(){return G.apply(Z,arguments)};R.apply(this,q).then(function(Y){b.nextTick(H.bind(null,null,Y))},function(Y){b.nextTick(V.bind(null,Y,H))})}return Object.setPrototypeOf(j,Object.getPrototypeOf(R)),Object.defineProperties(j,m(R)),j}},5408:function(u,g,n){var b=n(13380);u.exports=function(m){return b("webgl",m)}},96632:function(u,g,n){var b=n(46492),m=n(63436),r=n(57916),v=n(99676),_=n(2304),c=v("Object.prototype.toString"),s=n(46672)(),o=typeof globalThis>"u"?n.g:globalThis,l=m(),d=v("String.prototype.slice"),h=Object.getPrototypeOf,p=v("Array.prototype.indexOf",!0)||function(y,w){for(var x=0;x<y.length;x+=1)if(y[x]===w)return x;return-1},f={__proto__:null};b(l,s&&_&&h?function(y){var w=new o[y];if(Symbol.toStringTag in w){var x=h(w),M=_(x,Symbol.toStringTag);if(!M){var k=h(x);M=_(k,Symbol.toStringTag)}f["$"+y]=r(M.get)}}:function(y){var w=new o[y],x=w.slice||w.set;x&&(f["$"+y]=r(x))}),u.exports=function(y){if(!y||typeof y!="object")return!1;if(!s){var w=d(c(y),8,-1);return p(l,w)>-1?w:w==="Object"&&function(x){var M=!1;return b(f,function(k,T){if(!M)try{k(x),M=d(T,1)}catch{}}),M}(y)}return _?function(x){var M=!1;return b(f,function(k,T){if(!M)try{"$"+k(x)===T&&(M=d(T,1))}catch{}}),M}(y):null}},67020:function(u,g,n){var b=n(38700),m=n(50896),r=b.instance();function v(h){this.local=this.regionalOptions[h||""]||this.regionalOptions[""]}v.prototype=new b.baseCalendar,m(v.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(h,p){if(typeof h=="string"){var f=h.match(c);return f?f[0]:""}var y=this._validateYear(h),w=h.month(),x=""+this.toChineseMonth(y,w);return p&&x.length<2&&(x="0"+x),this.isIntercalaryMonth(y,w)&&(x+="i"),x},monthNames:function(h){if(typeof h=="string"){var p=h.match(s);return p?p[0]:""}var f=this._validateYear(h),y=h.month(),w=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(f,y)-1];return this.isIntercalaryMonth(f,y)&&(w="闰"+w),w},monthNamesShort:function(h){if(typeof h=="string"){var p=h.match(o);return p?p[0]:""}var f=this._validateYear(h),y=h.month(),w=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(f,y)-1];return this.isIntercalaryMonth(f,y)&&(w="闰"+w),w},parseMonth:function(h,p){h=this._validateYear(h);var f,y=parseInt(p);if(isNaN(y))p[0]==="闰"&&(f=!0,p=p.substring(1)),p[p.length-1]==="月"&&(p=p.substring(0,p.length-1)),y=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(p);else{var w=p[p.length-1];f=w==="i"||w==="I"}return this.toMonthIndex(h,y,f)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(h,p){if(h.year&&(h=h.year()),typeof h!="number"||h<1888||h>2111)throw p.replace(/\{0\}/,this.local.name);return h},toMonthIndex:function(h,p,f){var y=this.intercalaryMonth(h);if(f&&p!==y||p<1||p>12)throw b.local.invalidMonth.replace(/\{0\}/,this.local.name);return y?!f&&p<=y?p-1:p:p-1},toChineseMonth:function(h,p){h.year&&(p=(h=h.year()).month());var f=this.intercalaryMonth(h);if(p<0||p>(f?12:11))throw b.local.invalidMonth.replace(/\{0\}/,this.local.name);return f?p<f?p+1:p:p+1},intercalaryMonth:function(h){return h=this._validateYear(h),l[h-l[0]]>>13},isIntercalaryMonth:function(h,p){h.year&&(p=(h=h.year()).month());var f=this.intercalaryMonth(h);return!!f&&f===p},leapYear:function(h){return this.intercalaryMonth(h)!==0},weekOfYear:function(h,p,f){var y,w=this._validateYear(h,b.local.invalidyear),x=d[w-d[0]],M=x>>9&4095,k=x>>5&15,T=31&x;(y=r.newDate(M,k,T)).add(4-(y.dayOfWeek()||7),"d");var S=this.toJD(h,p,f)-y.toJD();return 1+Math.floor(S/7)},monthsInYear:function(h){return this.leapYear(h)?13:12},daysInMonth:function(h,p){h.year&&(p=h.month(),h=h.year()),h=this._validateYear(h);var f=l[h-l[0]];if(p>(f>>13?12:11))throw b.local.invalidMonth.replace(/\{0\}/,this.local.name);return f&1<<12-p?30:29},weekDay:function(h,p,f){return(this.dayOfWeek(h,p,f)||7)<6},toJD:function(h,p,f){var y=this._validate(h,x,f,b.local.invalidDate);h=this._validateYear(y.year()),p=y.month(),f=y.day();var w=this.isIntercalaryMonth(h,p),x=this.toChineseMonth(h,p),M=function(k,T,S,A,E){var P,C,z;if(typeof k=="object")C=k,P=T||{};else{var I;if(!(typeof k=="number"&&k>=1888&&k<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof S=="number"&&S>=1&&S<=30))throw new Error("Lunar day outside range 1 - 30");typeof A=="object"?(I=!1,P=A):(I=!!A,P={}),C={year:k,month:T,day:S,isIntercalary:I}}z=C.day-1;var O,D=l[C.year-l[0]],V=D>>13;O=V&&(C.month>V||C.isIntercalary)?C.month:C.month-1;for(var R=0;R<O;R++)z+=D&1<<12-R?30:29;var j=d[C.year-d[0]],q=new Date(j>>9&4095,(j>>5&15)-1,(31&j)+z);return P.year=q.getFullYear(),P.month=1+q.getMonth(),P.day=q.getDate(),P}(h,x,f,w);return r.toJD(M.year,M.month,M.day)},fromJD:function(h){var p=r.fromJD(h),f=function(w,x,M,k){var T,S;if(typeof w=="object")T=w,S=x||{};else{if(!(typeof w=="number"&&w>=1888&&w<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof x=="number"&&x>=1&&x<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof M=="number"&&M>=1&&M<=31))throw new Error("Solar day outside range 1 - 31");T={year:w,month:x,day:M},S={}}var A=d[T.year-d[0]],E=T.year<<9|T.month<<5|T.day;S.year=E>=A?T.year:T.year-1,A=d[S.year-d[0]];var P,C=new Date(A>>9&4095,(A>>5&15)-1,31&A),z=new Date(T.year,T.month-1,T.day);P=Math.round((z-C)/864e5);var I,O=l[S.year-l[0]];for(I=0;I<13;I++){var D=O&1<<12-I?30:29;if(P<D)break;P-=D}var V=O>>13;return!V||I<V?(S.isIntercalary=!1,S.month=1+I):I===V?(S.isIntercalary=!0,S.month=I):(S.isIntercalary=!1,S.month=I),S.day=1+P,S}(p.year(),p.month(),p.day()),y=this.toMonthIndex(f.year,f.month,f.isIntercalary);return this.newDate(f.year,y,f.day)},fromString:function(h){var p=h.match(_),f=this._validateYear(+p[1]),y=+p[2],w=!!p[3],x=this.toMonthIndex(f,y,w),M=+p[4];return this.newDate(f,x,M)},add:function(h,p,f){var y=h.year(),w=h.month(),x=this.isIntercalaryMonth(y,w),M=this.toChineseMonth(y,w),k=Object.getPrototypeOf(v.prototype).add.call(this,h,p,f);if(f==="y"){var T=k.year(),S=k.month(),A=this.isIntercalaryMonth(T,M),E=x&&A?this.toMonthIndex(T,M,!0):this.toMonthIndex(T,M,!1);E!==S&&k.month(E)}return k}});var _=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,c=/^\d?\d[iI]?/m,s=/^闰?十?[一二三四五六七八九]?月/m,o=/^闰?十?[一二三四五六七八九]?/m;b.calendars.chinese=v;var l=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],d=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},89792:function(u,g,n){var b=n(38700),m=n(50896);function r(v){this.local=this.regionalOptions[v||""]||this.regionalOptions[""]}r.prototype=new b.baseCalendar,m(r.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var _=this._validate(v,this.minMonth,this.minDay,b.local.invalidYear);return(v=_.year()+(_.year()<0?1:0))%4==3||v%4==-1},monthsInYear:function(v){return this._validate(v,this.minMonth,this.minDay,b.local.invalidYear||b.regionalOptions[""].invalidYear),13},weekOfYear:function(v,_,c){var s=this.newDate(v,_,c);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInMonth:function(v,_){var c=this._validate(v,_,this.minDay,b.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===13&&this.leapYear(c.year())?1:0)},weekDay:function(v,_,c){return(this.dayOfWeek(v,_,c)||7)<6},toJD:function(v,_,c){var s=this._validate(v,_,c,b.local.invalidDate);return(v=s.year())<0&&v++,s.day()+30*(s.month()-1)+365*(v-1)+Math.floor(v/4)+this.jdEpoch-1},fromJD:function(v){var _=Math.floor(v)+.5-this.jdEpoch,c=Math.floor((_-Math.floor((_+366)/1461))/365)+1;c<=0&&c--,_=Math.floor(v)+.5-this.newDate(c,1,1).toJD();var s=Math.floor(_/30)+1,o=_-30*(s-1)+1;return this.newDate(c,s,o)}}),b.calendars.coptic=r},55668:function(u,g,n){var b=n(38700),m=n(50896);function r(_){this.local=this.regionalOptions[_||""]||this.regionalOptions[""]}r.prototype=new b.baseCalendar,m(r.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(_){return this._validate(_,this.minMonth,this.minDay,b.local.invalidYear),!1},monthsInYear:function(_){return this._validate(_,this.minMonth,this.minDay,b.local.invalidYear),13},daysInYear:function(_){return this._validate(_,this.minMonth,this.minDay,b.local.invalidYear),400},weekOfYear:function(_,c,s){var o=this.newDate(_,c,s);return o.add(-o.dayOfWeek(),"d"),Math.floor((o.dayOfYear()-1)/8)+1},daysInMonth:function(_,c){var s=this._validate(_,c,this.minDay,b.local.invalidMonth);return this.daysPerMonth[s.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(_,c,s){return(this._validate(_,c,s,b.local.invalidDate).day()+1)%8},weekDay:function(_,c,s){var o=this.dayOfWeek(_,c,s);return o>=2&&o<=6},extraInfo:function(_,c,s){var o=this._validate(_,c,s,b.local.invalidDate);return{century:v[Math.floor((o.year()-1)/100)+1]||""}},toJD:function(_,c,s){var o=this._validate(_,c,s,b.local.invalidDate);return _=o.year()+(o.year()<0?1:0),c=o.month(),(s=o.day())+(c>1?16:0)+(c>2?32*(c-2):0)+400*(_-1)+this.jdEpoch-1},fromJD:function(_){_=Math.floor(_+.5)-Math.floor(this.jdEpoch)-1;var c=Math.floor(_/400)+1;_-=400*(c-1),_+=_>15?16:0;var s=Math.floor(_/32)+1,o=_-32*(s-1)+1;return this.newDate(c<=0?c-1:c,s,o)}});var v={20:"Fruitbat",21:"Anchovy"};b.calendars.discworld=r},65168:function(u,g,n){var b=n(38700),m=n(50896);function r(v){this.local=this.regionalOptions[v||""]||this.regionalOptions[""]}r.prototype=new b.baseCalendar,m(r.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var _=this._validate(v,this.minMonth,this.minDay,b.local.invalidYear);return(v=_.year()+(_.year()<0?1:0))%4==3||v%4==-1},monthsInYear:function(v){return this._validate(v,this.minMonth,this.minDay,b.local.invalidYear||b.regionalOptions[""].invalidYear),13},weekOfYear:function(v,_,c){var s=this.newDate(v,_,c);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInMonth:function(v,_){var c=this._validate(v,_,this.minDay,b.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===13&&this.leapYear(c.year())?1:0)},weekDay:function(v,_,c){return(this.dayOfWeek(v,_,c)||7)<6},toJD:function(v,_,c){var s=this._validate(v,_,c,b.local.invalidDate);return(v=s.year())<0&&v++,s.day()+30*(s.month()-1)+365*(v-1)+Math.floor(v/4)+this.jdEpoch-1},fromJD:function(v){var _=Math.floor(v)+.5-this.jdEpoch,c=Math.floor((_-Math.floor((_+366)/1461))/365)+1;c<=0&&c--,_=Math.floor(v)+.5-this.newDate(c,1,1).toJD();var s=Math.floor(_/30)+1,o=_-30*(s-1)+1;return this.newDate(c,s,o)}}),b.calendars.ethiopian=r},2084:function(u,g,n){var b=n(38700),m=n(50896);function r(_){this.local=this.regionalOptions[_||""]||this.regionalOptions[""]}function v(_,c){return _-c*Math.floor(_/c)}r.prototype=new b.baseCalendar,m(r.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(_){var c=this._validate(_,this.minMonth,this.minDay,b.local.invalidYear);return this._leapYear(c.year())},_leapYear:function(_){return v(7*(_=_<0?_+1:_)+1,19)<7},monthsInYear:function(_){return this._validate(_,this.minMonth,this.minDay,b.local.invalidYear),this._leapYear(_.year?_.year():_)?13:12},weekOfYear:function(_,c,s){var o=this.newDate(_,c,s);return o.add(-o.dayOfWeek(),"d"),Math.floor((o.dayOfYear()-1)/7)+1},daysInYear:function(_){return _=this._validate(_,this.minMonth,this.minDay,b.local.invalidYear).year(),this.toJD(_===-1?1:_+1,7,1)-this.toJD(_,7,1)},daysInMonth:function(_,c){return _.year&&(c=_.month(),_=_.year()),this._validate(_,c,this.minDay,b.local.invalidMonth),c===12&&this.leapYear(_)||c===8&&v(this.daysInYear(_),10)===5?30:c===9&&v(this.daysInYear(_),10)===3?29:this.daysPerMonth[c-1]},weekDay:function(_,c,s){return this.dayOfWeek(_,c,s)!==6},extraInfo:function(_,c,s){var o=this._validate(_,c,s,b.local.invalidDate);return{yearType:(this.leapYear(o)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(o)%10-3]}},toJD:function(_,c,s){var o=this._validate(_,c,s,b.local.invalidDate);_=o.year(),c=o.month(),s=o.day();var l=_<=0?_+1:_,d=this.jdEpoch+this._delay1(l)+this._delay2(l)+s+1;if(c<7){for(var h=7;h<=this.monthsInYear(_);h++)d+=this.daysInMonth(_,h);for(h=1;h<c;h++)d+=this.daysInMonth(_,h)}else for(h=7;h<c;h++)d+=this.daysInMonth(_,h);return d},_delay1:function(_){var c=Math.floor((235*_-234)/19),s=12084+13753*c,o=29*c+Math.floor(s/25920);return v(3*(o+1),7)<3&&o++,o},_delay2:function(_){var c=this._delay1(_-1),s=this._delay1(_);return this._delay1(_+1)-s==356?2:s-c==382?1:0},fromJD:function(_){_=Math.floor(_)+.5;for(var c=Math.floor(98496*(_-this.jdEpoch)/35975351)-1;_>=this.toJD(c===-1?1:c+1,7,1);)c++;for(var s=_<this.toJD(c,1,1)?7:1;_>this.toJD(c,s,this.daysInMonth(c,s));)s++;var o=_-this.toJD(c,s,1)+1;return this.newDate(c,s,o)}}),b.calendars.hebrew=r},26368:function(u,g,n){var b=n(38700),m=n(50896);function r(v){this.local=this.regionalOptions[v||""]||this.regionalOptions[""]}r.prototype=new b.baseCalendar,m(r.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(v){return(11*this._validate(v,this.minMonth,this.minDay,b.local.invalidYear).year()+14)%30<11},weekOfYear:function(v,_,c){var s=this.newDate(v,_,c);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInYear:function(v){return this.leapYear(v)?355:354},daysInMonth:function(v,_){var c=this._validate(v,_,this.minDay,b.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===12&&this.leapYear(c.year())?1:0)},weekDay:function(v,_,c){return this.dayOfWeek(v,_,c)!==5},toJD:function(v,_,c){var s=this._validate(v,_,c,b.local.invalidDate);return v=s.year(),_=s.month(),v=v<=0?v+1:v,(c=s.day())+Math.ceil(29.5*(_-1))+354*(v-1)+Math.floor((3+11*v)/30)+this.jdEpoch-1},fromJD:function(v){v=Math.floor(v)+.5;var _=Math.floor((30*(v-this.jdEpoch)+10646)/10631);_=_<=0?_-1:_;var c=Math.min(12,Math.ceil((v-29-this.toJD(_,1,1))/29.5)+1),s=v-this.toJD(_,c,1)+1;return this.newDate(_,c,s)}}),b.calendars.islamic=r},24747:function(u,g,n){var b=n(38700),m=n(50896);function r(v){this.local=this.regionalOptions[v||""]||this.regionalOptions[""]}r.prototype=new b.baseCalendar,m(r.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var _=this._validate(v,this.minMonth,this.minDay,b.local.invalidYear);return(v=_.year()<0?_.year()+1:_.year())%4==0},weekOfYear:function(v,_,c){var s=this.newDate(v,_,c);return s.add(4-(s.dayOfWeek()||7),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInMonth:function(v,_){var c=this._validate(v,_,this.minDay,b.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===2&&this.leapYear(c.year())?1:0)},weekDay:function(v,_,c){return(this.dayOfWeek(v,_,c)||7)<6},toJD:function(v,_,c){var s=this._validate(v,_,c,b.local.invalidDate);return v=s.year(),_=s.month(),c=s.day(),v<0&&v++,_<=2&&(v--,_+=12),Math.floor(365.25*(v+4716))+Math.floor(30.6001*(_+1))+c-1524.5},fromJD:function(v){var _=Math.floor(v+.5)+1524,c=Math.floor((_-122.1)/365.25),s=Math.floor(365.25*c),o=Math.floor((_-s)/30.6001),l=o-Math.floor(o<14?1:13),d=c-Math.floor(l>2?4716:4715),h=_-s-Math.floor(30.6001*o);return d<=0&&d--,this.newDate(d,l,h)}}),b.calendars.julian=r},65616:function(u,g,n){var b=n(38700),m=n(50896);function r(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}function v(c,s){return c-s*Math.floor(c/s)}function _(c,s){return v(c-1,s)+1}r.prototype=new b.baseCalendar,m(r.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(c){return this._validate(c,this.minMonth,this.minDay,b.local.invalidYear),!1},formatYear:function(c){c=this._validate(c,this.minMonth,this.minDay,b.local.invalidYear).year();var s=Math.floor(c/400);return c%=400,c+=c<0?400:0,s+"."+Math.floor(c/20)+"."+c%20},forYear:function(c){if((c=c.split(".")).length<3)throw"Invalid Mayan year";for(var s=0,o=0;o<c.length;o++){var l=parseInt(c[o],10);if(Math.abs(l)>19||o>0&&l<0)throw"Invalid Mayan year";s=20*s+l}return s},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,b.local.invalidYear),18},weekOfYear:function(c,s,o){return this._validate(c,s,o,b.local.invalidDate),0},daysInYear:function(c){return this._validate(c,this.minMonth,this.minDay,b.local.invalidYear),360},daysInMonth:function(c,s){return this._validate(c,s,this.minDay,b.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(c,s,o){return this._validate(c,s,o,b.local.invalidDate).day()},weekDay:function(c,s,o){return this._validate(c,s,o,b.local.invalidDate),!0},extraInfo:function(c,s,o){var l=this._validate(c,s,o,b.local.invalidDate).toJD(),d=this._toHaab(l),h=this._toTzolkin(l);return{haabMonthName:this.local.haabMonths[d[0]-1],haabMonth:d[0],haabDay:d[1],tzolkinDayName:this.local.tzolkinMonths[h[0]-1],tzolkinDay:h[0],tzolkinTrecena:h[1]}},_toHaab:function(c){var s=v(8+(c-=this.jdEpoch)+340,365);return[Math.floor(s/20)+1,v(s,20)]},_toTzolkin:function(c){return[_(20+(c-=this.jdEpoch),20),_(c+4,13)]},toJD:function(c,s,o){var l=this._validate(c,s,o,b.local.invalidDate);return l.day()+20*l.month()+360*l.year()+this.jdEpoch},fromJD:function(c){c=Math.floor(c)+.5-this.jdEpoch;var s=Math.floor(c/360);c%=360,c+=c<0?360:0;var o=Math.floor(c/20),l=c%20;return this.newDate(s,o,l)}}),b.calendars.mayan=r},30632:function(u,g,n){var b=n(38700),m=n(50896);function r(_){this.local=this.regionalOptions[_||""]||this.regionalOptions[""]}r.prototype=new b.baseCalendar;var v=b.instance("gregorian");m(r.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(_){var c=this._validate(_,this.minMonth,this.minDay,b.local.invalidYear||b.regionalOptions[""].invalidYear);return v.leapYear(c.year()+(c.year()<1?1:0)+1469)},weekOfYear:function(_,c,s){var o=this.newDate(_,c,s);return o.add(1-(o.dayOfWeek()||7),"d"),Math.floor((o.dayOfYear()-1)/7)+1},daysInMonth:function(_,c){var s=this._validate(_,c,this.minDay,b.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===12&&this.leapYear(s.year())?1:0)},weekDay:function(_,c,s){return(this.dayOfWeek(_,c,s)||7)<6},toJD:function(_,c,s){var o=this._validate(_,c,s,b.local.invalidMonth);(_=o.year())<0&&_++;for(var l=o.day(),d=1;d<o.month();d++)l+=this.daysPerMonth[d-1];return l+v.toJD(_+1468,3,13)},fromJD:function(_){_=Math.floor(_+.5);for(var c=Math.floor((_-(this.jdEpoch-1))/366);_>=this.toJD(c+1,1,1);)c++;for(var s=_-Math.floor(this.toJD(c,1,1)+.5)+1,o=1;s>this.daysInMonth(c,o);)s-=this.daysInMonth(c,o),o++;return this.newDate(c,o,s)}}),b.calendars.nanakshahi=r},73040:function(u,g,n){var b=n(38700),m=n(50896);function r(v){this.local=this.regionalOptions[v||""]||this.regionalOptions[""]}r.prototype=new b.baseCalendar,m(r.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(v){return this.daysInYear(v)!==this.daysPerYear},weekOfYear:function(v,_,c){var s=this.newDate(v,_,c);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInYear:function(v){if(v=this._validate(v,this.minMonth,this.minDay,b.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[v]===void 0)return this.daysPerYear;for(var _=0,c=this.minMonth;c<=12;c++)_+=this.NEPALI_CALENDAR_DATA[v][c];return _},daysInMonth:function(v,_){return v.year&&(_=v.month(),v=v.year()),this._validate(v,_,this.minDay,b.local.invalidMonth),this.NEPALI_CALENDAR_DATA[v]===void 0?this.daysPerMonth[_-1]:this.NEPALI_CALENDAR_DATA[v][_]},weekDay:function(v,_,c){return this.dayOfWeek(v,_,c)!==6},toJD:function(v,_,c){var s=this._validate(v,_,c,b.local.invalidDate);v=s.year(),_=s.month(),c=s.day();var o=b.instance(),l=0,d=_,h=v;this._createMissingCalendarData(v);var p=v-(d>9||d===9&&c>=this.NEPALI_CALENDAR_DATA[h][0]?56:57);for(_!==9&&(l=c,d--);d!==9;)d<=0&&(d=12,h--),l+=this.NEPALI_CALENDAR_DATA[h][d],d--;return _===9?(l+=c-this.NEPALI_CALENDAR_DATA[h][0])<0&&(l+=o.daysInYear(p)):l+=this.NEPALI_CALENDAR_DATA[h][9]-this.NEPALI_CALENDAR_DATA[h][0],o.newDate(p,1,1).add(l,"d").toJD()},fromJD:function(v){var _=b.instance().fromJD(v),c=_.year(),s=_.dayOfYear(),o=c+56;this._createMissingCalendarData(o);for(var l=9,d=this.NEPALI_CALENDAR_DATA[o][0],h=this.NEPALI_CALENDAR_DATA[o][l]-d+1;s>h;)++l>12&&(l=1,o++),h+=this.NEPALI_CALENDAR_DATA[o][l];var p=this.NEPALI_CALENDAR_DATA[o][l]-(h-s);return this.newDate(o,l,p)},_createMissingCalendarData:function(v){var _=this.daysPerMonth.slice(0);_.unshift(17);for(var c=v-1;c<v+2;c++)this.NEPALI_CALENDAR_DATA[c]===void 0&&(this.NEPALI_CALENDAR_DATA[c]=_)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),b.calendars.nepali=r},1104:function(u,g,n){var b=n(38700),m=n(50896);function r(_){this.local=this.regionalOptions[_||""]||this.regionalOptions[""]}function v(_,c){return _-c*Math.floor(_/c)}r.prototype=new b.baseCalendar,m(r.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(_){var c=this._validate(_,this.minMonth,this.minDay,b.local.invalidYear);return 682*((c.year()-(c.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(_,c,s){var o=this.newDate(_,c,s);return o.add(-(o.dayOfWeek()+1)%7,"d"),Math.floor((o.dayOfYear()-1)/7)+1},daysInMonth:function(_,c){var s=this._validate(_,c,this.minDay,b.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===12&&this.leapYear(s.year())?1:0)},weekDay:function(_,c,s){return this.dayOfWeek(_,c,s)!==5},toJD:function(_,c,s){var o=this._validate(_,c,s,b.local.invalidDate);_=o.year(),c=o.month(),s=o.day();var l=_-(_>=0?474:473),d=474+v(l,2820);return s+(c<=7?31*(c-1):30*(c-1)+6)+Math.floor((682*d-110)/2816)+365*(d-1)+1029983*Math.floor(l/2820)+this.jdEpoch-1},fromJD:function(_){var c=(_=Math.floor(_)+.5)-this.toJD(475,1,1),s=Math.floor(c/1029983),o=v(c,1029983),l=2820;if(o!==1029982){var d=Math.floor(o/366),h=v(o,366);l=Math.floor((2134*d+2816*h+2815)/1028522)+d+1}var p=l+2820*s+474;p=p<=0?p-1:p;var f=_-this.toJD(p,1,1)+1,y=f<=186?Math.ceil(f/31):Math.ceil((f-6)/30),w=_-this.toJD(p,y,1)+1;return this.newDate(p,y,w)}}),b.calendars.persian=r,b.calendars.jalali=r},51456:function(u,g,n){var b=n(38700),m=n(50896),r=b.instance();function v(_){this.local=this.regionalOptions[_||""]||this.regionalOptions[""]}v.prototype=new b.baseCalendar,m(v.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(_){var c=this._validate(_,this.minMonth,this.minDay,b.local.invalidYear);return _=this._t2gYear(c.year()),r.leapYear(_)},weekOfYear:function(_,c,s){var o=this._validate(_,this.minMonth,this.minDay,b.local.invalidYear);return _=this._t2gYear(o.year()),r.weekOfYear(_,o.month(),o.day())},daysInMonth:function(_,c){var s=this._validate(_,c,this.minDay,b.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===2&&this.leapYear(s.year())?1:0)},weekDay:function(_,c,s){return(this.dayOfWeek(_,c,s)||7)<6},toJD:function(_,c,s){var o=this._validate(_,c,s,b.local.invalidDate);return _=this._t2gYear(o.year()),r.toJD(_,o.month(),o.day())},fromJD:function(_){var c=r.fromJD(_),s=this._g2tYear(c.year());return this.newDate(s,c.month(),c.day())},_t2gYear:function(_){return _+this.yearsOffset+(_>=-this.yearsOffset&&_<=-1?1:0)},_g2tYear:function(_){return _-this.yearsOffset-(_>=1&&_<=this.yearsOffset?1:0)}}),b.calendars.taiwan=v},4592:function(u,g,n){var b=n(38700),m=n(50896),r=b.instance();function v(_){this.local=this.regionalOptions[_||""]||this.regionalOptions[""]}v.prototype=new b.baseCalendar,m(v.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(_){var c=this._validate(_,this.minMonth,this.minDay,b.local.invalidYear);return _=this._t2gYear(c.year()),r.leapYear(_)},weekOfYear:function(_,c,s){var o=this._validate(_,this.minMonth,this.minDay,b.local.invalidYear);return _=this._t2gYear(o.year()),r.weekOfYear(_,o.month(),o.day())},daysInMonth:function(_,c){var s=this._validate(_,c,this.minDay,b.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===2&&this.leapYear(s.year())?1:0)},weekDay:function(_,c,s){return(this.dayOfWeek(_,c,s)||7)<6},toJD:function(_,c,s){var o=this._validate(_,c,s,b.local.invalidDate);return _=this._t2gYear(o.year()),r.toJD(_,o.month(),o.day())},fromJD:function(_){var c=r.fromJD(_),s=this._g2tYear(c.year());return this.newDate(s,c.month(),c.day())},_t2gYear:function(_){return _-this.yearsOffset-(_>=1&&_<=this.yearsOffset?1:0)},_g2tYear:function(_){return _+this.yearsOffset+(_>=-this.yearsOffset&&_<=-1?1:0)}}),b.calendars.thai=v},45348:function(u,g,n){var b=n(38700),m=n(50896);function r(_){this.local=this.regionalOptions[_||""]||this.regionalOptions[""]}r.prototype=new b.baseCalendar,m(r.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(_){var c=this._validate(_,this.minMonth,this.minDay,b.local.invalidYear);return this.daysInYear(c.year())===355},weekOfYear:function(_,c,s){var o=this.newDate(_,c,s);return o.add(-o.dayOfWeek(),"d"),Math.floor((o.dayOfYear()-1)/7)+1},daysInYear:function(_){for(var c=0,s=1;s<=12;s++)c+=this.daysInMonth(_,s);return c},daysInMonth:function(_,c){for(var s=this._validate(_,c,this.minDay,b.local.invalidMonth).toJD()-24e5+.5,o=0,l=0;l<v.length;l++){if(v[l]>s)return v[o]-v[o-1];o++}return 30},weekDay:function(_,c,s){return this.dayOfWeek(_,c,s)!==5},toJD:function(_,c,s){var o=this._validate(_,c,s,b.local.invalidDate),l=12*(o.year()-1)+o.month()-15292;return o.day()+v[l-1]-1+24e5-.5},fromJD:function(_){for(var c=_-24e5+.5,s=0,o=0;o<v.length&&!(v[o]>c);o++)s++;var l=s+15292,d=Math.floor((l-1)/12),h=d+1,p=l-12*d,f=c-v[s-1]+1;return this.newDate(h,p,f)},isValid:function(_,c,s){var o=b.baseCalendar.prototype.isValid.apply(this,arguments);return o&&(o=(_=_.year!=null?_.year:_)>=1276&&_<=1500),o},_validate:function(_,c,s,o){var l=b.baseCalendar.prototype._validate.apply(this,arguments);if(l.year<1276||l.year>1500)throw o.replace(/\{0\}/,this.local.name);return l}}),b.calendars.ummalqura=r;var v=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(u,g,n){var b=n(50896);function m(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function r(o,l,d,h){if(this._calendar=o,this._year=l,this._month=d,this._day=h,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(s.local.invalidDate||s.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function v(o,l){return"000000".substring(0,l-(o=""+o).length)+o}function _(){this.shortYearCutoff="+10"}function c(o){this.local=this.regionalOptions[o]||this.regionalOptions[""]}b(m.prototype,{instance:function(o,l){o=(o||"gregorian").toLowerCase(),l=l||"";var d=this._localCals[o+"-"+l];if(!d&&this.calendars[o]&&(d=new this.calendars[o](l),this._localCals[o+"-"+l]=d),!d)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,o);return d},newDate:function(o,l,d,h,p){return(h=(o!=null&&o.year?o.calendar():typeof h=="string"?this.instance(h,p):h)||this.instance()).newDate(o,l,d)},substituteDigits:function(o){return function(l){return(l+"").replace(/[0-9]/g,function(d){return o[d]})}},substituteChineseDigits:function(o,l){return function(d){for(var h="",p=0;d>0;){var f=d%10;h=(f===0?"":o[f]+l[p])+h,p++,d=Math.floor(d/10)}return h.indexOf(o[1]+l[1])===0&&(h=h.substr(1)),h||o[0]}}}),b(r.prototype,{newDate:function(o,l,d){return this._calendar.newDate(o??this,l,d)},year:function(o){return arguments.length===0?this._year:this.set(o,"y")},month:function(o){return arguments.length===0?this._month:this.set(o,"m")},day:function(o){return arguments.length===0?this._day:this.set(o,"d")},date:function(o,l,d){if(!this._calendar.isValid(o,l,d))throw(s.local.invalidDate||s.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=o,this._month=l,this._day=d,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(o,l){return this._calendar.add(this,o,l)},set:function(o,l){return this._calendar.set(this,o,l)},compareTo:function(o){if(this._calendar.name!==o._calendar.name)throw(s.local.differentCalendars||s.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,o._calendar.local.name);var l=this._year!==o._year?this._year-o._year:this._month!==o._month?this.monthOfYear()-o.monthOfYear():this._day-o._day;return l===0?0:l<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(o){return this._calendar.fromJD(o)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(o){return this._calendar.fromJSDate(o)},toString:function(){return(this.year()<0?"-":"")+v(Math.abs(this.year()),4)+"-"+v(this.month(),2)+"-"+v(this.day(),2)}}),b(_.prototype,{_validateLevel:0,newDate:function(o,l,d){return o==null?this.today():(o.year&&(this._validate(o,l,d,s.local.invalidDate||s.regionalOptions[""].invalidDate),d=o.day(),l=o.month(),o=o.year()),new r(this,o,l,d))},today:function(){return this.fromJSDate(new Date)},epoch:function(o){return this._validate(o,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(o){var l=this._validate(o,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return(l.year()<0?"-":"")+v(Math.abs(l.year()),4)},monthsInYear:function(o){return this._validate(o,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear),12},monthOfYear:function(o,l){var d=this._validate(o,l,this.minDay,s.local.invalidMonth||s.regionalOptions[""].invalidMonth);return(d.month()+this.monthsInYear(d)-this.firstMonth)%this.monthsInYear(d)+this.minMonth},fromMonthOfYear:function(o,l){var d=(l+this.firstMonth-2*this.minMonth)%this.monthsInYear(o)+this.minMonth;return this._validate(o,d,this.minDay,s.local.invalidMonth||s.regionalOptions[""].invalidMonth),d},daysInYear:function(o){var l=this._validate(o,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return this.leapYear(l)?366:365},dayOfYear:function(o,l,d){var h=this._validate(o,l,d,s.local.invalidDate||s.regionalOptions[""].invalidDate);return h.toJD()-this.newDate(h.year(),this.fromMonthOfYear(h.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(o,l,d){var h=this._validate(o,l,d,s.local.invalidDate||s.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(h))+2)%this.daysInWeek()},extraInfo:function(o,l,d){return this._validate(o,l,d,s.local.invalidDate||s.regionalOptions[""].invalidDate),{}},add:function(o,l,d){return this._validate(o,this.minMonth,this.minDay,s.local.invalidDate||s.regionalOptions[""].invalidDate),this._correctAdd(o,this._add(o,l,d),l,d)},_add:function(o,l,d){if(this._validateLevel++,d==="d"||d==="w"){var h=o.toJD()+l*(d==="w"?this.daysInWeek():1),p=o.calendar().fromJD(h);return this._validateLevel--,[p.year(),p.month(),p.day()]}try{var f=o.year()+(d==="y"?l:0),y=o.monthOfYear()+(d==="m"?l:0);p=o.day(),d==="y"?(o.month()!==this.fromMonthOfYear(f,y)&&(y=this.newDate(f,o.month(),this.minDay).monthOfYear()),y=Math.min(y,this.monthsInYear(f)),p=Math.min(p,this.daysInMonth(f,this.fromMonthOfYear(f,y)))):d==="m"&&(function(x){for(;y<x.minMonth;)f--,y+=x.monthsInYear(f);for(var M=x.monthsInYear(f);y>M-1+x.minMonth;)f++,y-=M,M=x.monthsInYear(f)}(this),p=Math.min(p,this.daysInMonth(f,this.fromMonthOfYear(f,y))));var w=[f,this.fromMonthOfYear(f,y),p];return this._validateLevel--,w}catch(x){throw this._validateLevel--,x}},_correctAdd:function(o,l,d,h){if(!(this.hasYearZero||h!=="y"&&h!=="m"||l[0]!==0&&o.year()>0==l[0]>0)){var p={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[h],f=d<0?-1:1;l=this._add(o,d*p[0]+f*p[1],p[2])}return o.date(l[0],l[1],l[2])},set:function(o,l,d){this._validate(o,this.minMonth,this.minDay,s.local.invalidDate||s.regionalOptions[""].invalidDate);var h=d==="y"?l:o.year(),p=d==="m"?l:o.month(),f=d==="d"?l:o.day();return d!=="y"&&d!=="m"||(f=Math.min(f,this.daysInMonth(h,p))),o.date(h,p,f)},isValid:function(o,l,d){this._validateLevel++;var h=this.hasYearZero||o!==0;if(h){var p=this.newDate(o,l,this.minDay);h=l>=this.minMonth&&l-this.minMonth<this.monthsInYear(p)&&d>=this.minDay&&d-this.minDay<this.daysInMonth(p)}return this._validateLevel--,h},toJSDate:function(o,l,d){var h=this._validate(o,l,d,s.local.invalidDate||s.regionalOptions[""].invalidDate);return s.instance().fromJD(this.toJD(h)).toJSDate()},fromJSDate:function(o){return this.fromJD(s.instance().fromJSDate(o).toJD())},_validate:function(o,l,d,h){if(o.year){if(this._validateLevel===0&&this.name!==o.calendar().name)throw(s.local.differentCalendars||s.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,o.calendar().local.name);return o}try{if(this._validateLevel++,this._validateLevel===1&&!this.isValid(o,l,d))throw h.replace(/\{0\}/,this.local.name);var p=this.newDate(o,l,d);return this._validateLevel--,p}catch(f){throw this._validateLevel--,f}}}),c.prototype=new _,b(c.prototype,{name:"Gregorian",jdEpoch:17214255e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(o){var l=this._validate(o,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return(o=l.year()+(l.year()<0?1:0))%4==0&&(o%100!=0||o%400==0)},weekOfYear:function(o,l,d){var h=this.newDate(o,l,d);return h.add(4-(h.dayOfWeek()||7),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInMonth:function(o,l){var d=this._validate(o,l,this.minDay,s.local.invalidMonth||s.regionalOptions[""].invalidMonth);return this.daysPerMonth[d.month()-1]+(d.month()===2&&this.leapYear(d.year())?1:0)},weekDay:function(o,l,d){return(this.dayOfWeek(o,l,d)||7)<6},toJD:function(o,l,d){var h=this._validate(o,l,d,s.local.invalidDate||s.regionalOptions[""].invalidDate);o=h.year(),l=h.month(),d=h.day(),o<0&&o++,l<3&&(l+=12,o--);var p=Math.floor(o/100),f=2-p+Math.floor(p/4);return Math.floor(365.25*(o+4716))+Math.floor(30.6001*(l+1))+d+f-1524.5},fromJD:function(o){var l=Math.floor(o+.5),d=Math.floor((l-186721625e-2)/36524.25),h=1524+(d=l+1+d-Math.floor(d/4)),p=Math.floor((h-122.1)/365.25),f=Math.floor(365.25*p),y=Math.floor((h-f)/30.6001),w=h-f-Math.floor(30.6001*y),x=y-(y>13.5?13:1),M=p-(x>2.5?4716:4715);return M<=0&&M--,this.newDate(M,x,w)},toJSDate:function(o,l,d){var h=this._validate(o,l,d,s.local.invalidDate||s.regionalOptions[""].invalidDate),p=new Date(h.year(),h.month()-1,h.day());return p.setHours(0),p.setMinutes(0),p.setSeconds(0),p.setMilliseconds(0),p.setHours(p.getHours()>12?p.getHours()+2:0),p},fromJSDate:function(o){return this.newDate(o.getFullYear(),o.getMonth()+1,o.getDate())}});var s=u.exports=new m;s.cdate=r,s.baseCalendar=_,s.calendars.gregorian=c},15168:function(u,g,n){var b=n(50896),m=n(38700);b(m.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),m.local=m.regionalOptions[""],b(m.cdate.prototype,{formatDate:function(r,v){return typeof r!="string"&&(v=r,r=""),this._calendar.formatDate(r||"",this,v)}}),b(m.baseCalendar.prototype,{UNIX_EPOCH:m.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:m.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(r,v,_){if(typeof r!="string"&&(_=v,v=r,r=""),!v)return"";if(v.calendar()!==this)throw m.local.invalidFormat||m.regionalOptions[""].invalidFormat;r=r||this.local.dateFormat;for(var c,s,o,l=(_=_||{}).dayNamesShort||this.local.dayNamesShort,d=_.dayNames||this.local.dayNames,h=_.monthNumbers||this.local.monthNumbers,p=_.monthNamesShort||this.local.monthNamesShort,f=_.monthNames||this.local.monthNames,y=(_.calculateWeek||this.local.calculateWeek,function(C,z){for(var I=1;P+I<r.length&&r.charAt(P+I)===C;)I++;return P+=I-1,Math.floor(I/(z||1))>1}),w=function(C,z,I,O){var D=""+z;if(y(C,O))for(;D.length<I;)D="0"+D;return D},x=this,M=function(C){return typeof h=="function"?h.call(x,C,y("m")):S(w("m",C.month(),2))},k=function(C,z){return z?typeof f=="function"?f.call(x,C):f[C.month()-x.minMonth]:typeof p=="function"?p.call(x,C):p[C.month()-x.minMonth]},T=this.local.digits,S=function(C){return _.localNumbers&&T?T(C):C},A="",E=!1,P=0;P<r.length;P++)if(E)r.charAt(P)!=="'"||y("'")?A+=r.charAt(P):E=!1;else switch(r.charAt(P)){case"d":A+=S(w("d",v.day(),2));break;case"D":A+=(c=v.dayOfWeek(),s=l,o=d,y("D")?o[c]:s[c]);break;case"o":A+=w("o",v.dayOfYear(),3);break;case"w":A+=w("w",v.weekOfYear(),2);break;case"m":A+=M(v);break;case"M":A+=k(v,y("M"));break;case"y":A+=y("y",2)?v.year():(v.year()%100<10?"0":"")+v.year()%100;break;case"Y":y("Y",2),A+=v.formatYear();break;case"J":A+=v.toJD();break;case"@":A+=(v.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":A+=(v.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":y("'")?A+="'":E=!0;break;default:A+=r.charAt(P)}return A},parseDate:function(r,v,_){if(v==null)throw m.local.invalidArguments||m.regionalOptions[""].invalidArguments;if((v=typeof v=="object"?v.toString():v+"")==="")return null;r=r||this.local.dateFormat;var c=(_=_||{}).shortYearCutoff||this.shortYearCutoff;c=typeof c!="string"?c:this.today().year()%100+parseInt(c,10);for(var s=_.dayNamesShort||this.local.dayNamesShort,o=_.dayNames||this.local.dayNames,l=_.parseMonth||this.local.parseMonth,d=_.monthNumbers||this.local.monthNumbers,h=_.monthNamesShort||this.local.monthNamesShort,p=_.monthNames||this.local.monthNames,f=-1,y=-1,w=-1,x=-1,M=-1,k=!1,T=!1,S=function(j,q){for(var $=1;D+$<r.length&&r.charAt(D+$)===j;)$++;return D+=$-1,Math.floor($/(q||1))>1},A=function(j,q){var $=S(j,q),G=[2,3,$?4:2,$?4:2,10,11,20]["oyYJ@!".indexOf(j)+1],Z=new RegExp("^-?\\d{1,"+G+"}"),H=v.substring(O).match(Z);if(!H)throw(m.local.missingNumberAt||m.regionalOptions[""].missingNumberAt).replace(/\{0\}/,O);return O+=H[0].length,parseInt(H[0],10)},E=this,P=function(){if(typeof d=="function"){S("m");var j=d.call(E,v.substring(O));return O+=j.length,j}return A("m")},C=function(j,q,$,G){for(var Z=S(j,G)?$:q,H=0;H<Z.length;H++)if(v.substr(O,Z[H].length).toLowerCase()===Z[H].toLowerCase())return O+=Z[H].length,H+E.minMonth;throw(m.local.unknownNameAt||m.regionalOptions[""].unknownNameAt).replace(/\{0\}/,O)},z=function(){if(typeof p=="function"){var j=S("M")?p.call(E,v.substring(O)):h.call(E,v.substring(O));return O+=j.length,j}return C("M",h,p)},I=function(){if(v.charAt(O)!==r.charAt(D))throw(m.local.unexpectedLiteralAt||m.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,O);O++},O=0,D=0;D<r.length;D++)if(T)r.charAt(D)!=="'"||S("'")?I():T=!1;else switch(r.charAt(D)){case"d":x=A("d");break;case"D":C("D",s,o);break;case"o":M=A("o");break;case"w":A("w");break;case"m":w=P();break;case"M":w=z();break;case"y":var V=D;k=!S("y",2),D=V,y=A("y",2);break;case"Y":y=A("Y",2);break;case"J":f=A("J")+.5,v.charAt(O)==="."&&(O++,A("J"));break;case"@":f=A("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":f=A("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":O=v.length;break;case"'":S("'")?I():T=!0;break;default:I()}if(O<v.length)throw m.local.unexpectedText||m.regionalOptions[""].unexpectedText;if(y===-1?y=this.today().year():y<100&&k&&(y+=c===-1?1900:this.today().year()-this.today().year()%100-(y<=c?0:100)),typeof w=="string"&&(w=l.call(this,y,w)),M>-1){w=1,x=M;for(var R=this.daysInMonth(y,w);x>R;R=this.daysInMonth(y,w))w++,x-=R}return f>-1?this.fromJD(f):this.newDate(y,w,x)},determineDate:function(r,v,_,c,s){_&&typeof _!="object"&&(s=c,c=_,_=null),typeof c!="string"&&(s=c,c="");var o=this;return v=v?v.newDate():null,r==null?v:typeof r=="string"?function(l){try{return o.parseDate(c,l,s)}catch{}for(var d=((l=l.toLowerCase()).match(/^c/)&&_?_.newDate():null)||o.today(),h=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,p=h.exec(l);p;)d.add(parseInt(p[1],10),p[2]||"d"),p=h.exec(l);return d}(r):typeof r=="number"?isNaN(r)||r===1/0||r===-1/0?v:o.today().add(r,"d"):o.newDate(r)}})},21576:function(){},19768:function(){},63436:function(u,g,n){var b=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],m=typeof globalThis>"u"?n.g:globalThis;u.exports=function(){for(var r=[],v=0;v<b.length;v++)typeof m[b[v]]=="function"&&(r[r.length]=b[v]);return r}},67756:function(u,g,n){function b(fe,ye,xe){fe.prototype=ye.prototype=xe,xe.constructor=fe}function m(fe,ye){var xe=Object.create(fe.prototype);for(var ke in ye)xe[ke]=ye[ke];return xe}function r(){}n.d(g,{qy:function(){return me},Gz:function(){return ie}});var v=.7,_=1/v,c="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",o="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,d=new RegExp("^rgb\\(".concat(c,",").concat(c,",").concat(c,"\\)$")),h=new RegExp("^rgb\\(".concat(o,",").concat(o,",").concat(o,"\\)$")),p=new RegExp("^rgba\\(".concat(c,",").concat(c,",").concat(c,",").concat(s,"\\)$")),f=new RegExp("^rgba\\(".concat(o,",").concat(o,",").concat(o,",").concat(s,"\\)$")),y=new RegExp("^hsl\\(".concat(s,",").concat(o,",").concat(o,"\\)$")),w=new RegExp("^hsla\\(".concat(s,",").concat(o,",").concat(o,",").concat(s,"\\)$")),x={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function M(){return this.rgb().formatHex()}function k(){return this.rgb().formatRgb()}function T(fe){var ye,xe;return fe=(fe+"").trim().toLowerCase(),(ye=l.exec(fe))?(xe=ye[1].length,ye=parseInt(ye[1],16),xe===6?S(ye):xe===3?new P(ye>>8&15|ye>>4&240,ye>>4&15|240&ye,(15&ye)<<4|15&ye,1):xe===8?A(ye>>24&255,ye>>16&255,ye>>8&255,(255&ye)/255):xe===4?A(ye>>12&15|ye>>8&240,ye>>8&15|ye>>4&240,ye>>4&15|240&ye,((15&ye)<<4|15&ye)/255):null):(ye=d.exec(fe))?new P(ye[1],ye[2],ye[3],1):(ye=h.exec(fe))?new P(255*ye[1]/100,255*ye[2]/100,255*ye[3]/100,1):(ye=p.exec(fe))?A(ye[1],ye[2],ye[3],ye[4]):(ye=f.exec(fe))?A(255*ye[1]/100,255*ye[2]/100,255*ye[3]/100,ye[4]):(ye=y.exec(fe))?V(ye[1],ye[2]/100,ye[3]/100,1):(ye=w.exec(fe))?V(ye[1],ye[2]/100,ye[3]/100,ye[4]):x.hasOwnProperty(fe)?S(x[fe]):fe==="transparent"?new P(NaN,NaN,NaN,0):null}function S(fe){return new P(fe>>16&255,fe>>8&255,255&fe,1)}function A(fe,ye,xe,ke){return ke<=0&&(fe=ye=xe=NaN),new P(fe,ye,xe,ke)}function E(fe,ye,xe,ke){return arguments.length===1?((Ce=fe)instanceof r||(Ce=T(Ce)),Ce?new P((Ce=Ce.rgb()).r,Ce.g,Ce.b,Ce.opacity):new P):new P(fe,ye,xe,ke??1);var Ce}function P(fe,ye,xe,ke){this.r=+fe,this.g=+ye,this.b=+xe,this.opacity=+ke}function C(){return"#".concat(D(this.r)).concat(D(this.g)).concat(D(this.b))}function z(){var fe=I(this.opacity);return"".concat(fe===1?"rgb(":"rgba(").concat(O(this.r),", ").concat(O(this.g),", ").concat(O(this.b)).concat(fe===1?")":", ".concat(fe,")"))}function I(fe){return isNaN(fe)?1:Math.max(0,Math.min(1,fe))}function O(fe){return Math.max(0,Math.min(255,Math.round(fe)||0))}function D(fe){return((fe=O(fe))<16?"0":"")+fe.toString(16)}function V(fe,ye,xe,ke){return ke<=0?fe=ye=xe=NaN:xe<=0||xe>=1?fe=ye=NaN:ye<=0&&(fe=NaN),new j(fe,ye,xe,ke)}function R(fe){if(fe instanceof j)return new j(fe.h,fe.s,fe.l,fe.opacity);if(fe instanceof r||(fe=T(fe)),!fe)return new j;if(fe instanceof j)return fe;var ye=(fe=fe.rgb()).r/255,xe=fe.g/255,ke=fe.b/255,Ce=Math.min(ye,xe,ke),Ie=Math.max(ye,xe,ke),Ve=NaN,we=Ie-Ce,pe=(Ie+Ce)/2;return we?(Ve=ye===Ie?(xe-ke)/we+6*(xe<ke):xe===Ie?(ke-ye)/we+2:(ye-xe)/we+4,we/=pe<.5?Ie+Ce:2-Ie-Ce,Ve*=60):we=pe>0&&pe<1?0:Ve,new j(Ve,we,pe,fe.opacity)}function j(fe,ye,xe,ke){this.h=+fe,this.s=+ye,this.l=+xe,this.opacity=+ke}function q(fe){return(fe=(fe||0)%360)<0?fe+360:fe}function $(fe){return Math.max(0,Math.min(1,fe||0))}function G(fe,ye,xe){return 255*(fe<60?ye+(xe-ye)*fe/60:fe<180?xe:fe<240?ye+(xe-ye)*(240-fe)/60:ye)}b(r,T,{copy:function(fe){return Object.assign(new this.constructor,this,fe)},displayable:function(){return this.rgb().displayable()},hex:M,formatHex:M,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return R(this).formatHsl()},formatRgb:k,toString:k}),b(P,E,m(r,{brighter:function(fe){return fe=fe==null?_:Math.pow(_,fe),new P(this.r*fe,this.g*fe,this.b*fe,this.opacity)},darker:function(fe){return fe=fe==null?v:Math.pow(v,fe),new P(this.r*fe,this.g*fe,this.b*fe,this.opacity)},rgb:function(){return this},clamp:function(){return new P(O(this.r),O(this.g),O(this.b),I(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:C,formatHex:C,formatHex8:function(){return"#".concat(D(this.r)).concat(D(this.g)).concat(D(this.b)).concat(D(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:z,toString:z})),b(j,function(fe,ye,xe,ke){return arguments.length===1?R(fe):new j(fe,ye,xe,ke??1)},m(r,{brighter:function(fe){return fe=fe==null?_:Math.pow(_,fe),new j(this.h,this.s,this.l*fe,this.opacity)},darker:function(fe){return fe=fe==null?v:Math.pow(v,fe),new j(this.h,this.s,this.l*fe,this.opacity)},rgb:function(){var fe=this.h%360+360*(this.h<0),ye=isNaN(fe)||isNaN(this.s)?0:this.s,xe=this.l,ke=xe+(xe<.5?xe:1-xe)*ye,Ce=2*xe-ke;return new P(G(fe>=240?fe-240:fe+120,Ce,ke),G(fe,Ce,ke),G(fe<120?fe+240:fe-120,Ce,ke),this.opacity)},clamp:function(){return new j(q(this.h),$(this.s),$(this.l),I(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var fe=I(this.opacity);return"".concat(fe===1?"hsl(":"hsla(").concat(q(this.h),", ").concat(100*$(this.s),"%, ").concat(100*$(this.l),"%").concat(fe===1?")":", ".concat(fe,")"))}}));var Z=function(fe){return function(){return fe}};function H(fe,ye){var xe=ye-fe;return xe?function(ke,Ce){return function(Ie){return ke+Ie*Ce}}(fe,xe):Z(isNaN(fe)?ye:fe)}var Y=function fe(ye){var xe=function(Ce){return(Ce=+Ce)==1?H:function(Ie,Ve){return Ve-Ie?function(we,pe,ue){return we=Math.pow(we,ue),pe=Math.pow(pe,ue)-we,ue=1/ue,function(_e){return Math.pow(we+_e*pe,ue)}}(Ie,Ve,Ce):Z(isNaN(Ie)?Ve:Ie)}}(ye);function ke(Ce,Ie){var Ve=xe((Ce=E(Ce)).r,(Ie=E(Ie)).r),we=xe(Ce.g,Ie.g),pe=xe(Ce.b,Ie.b),ue=H(Ce.opacity,Ie.opacity);return function(_e){return Ce.r=Ve(_e),Ce.g=we(_e),Ce.b=pe(_e),Ce.opacity=ue(_e),Ce+""}}return ke.gamma=fe,ke}(1);function X(fe,ye){var xe,ke=ye?ye.length:0,Ce=fe?Math.min(ke,fe.length):0,Ie=new Array(Ce),Ve=new Array(ke);for(xe=0;xe<Ce;++xe)Ie[xe]=me(fe[xe],ye[xe]);for(;xe<ke;++xe)Ve[xe]=ye[xe];return function(we){for(xe=0;xe<Ce;++xe)Ve[xe]=Ie[xe](we);return Ve}}function le(fe,ye){var xe=new Date;return fe=+fe,ye=+ye,function(ke){return xe.setTime(fe*(1-ke)+ye*ke),xe}}function ie(fe,ye){return fe=+fe,ye=+ye,function(xe){return fe*(1-xe)+ye*xe}}function ae(fe){return ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ye){return typeof ye}:function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye},ae(fe)}function re(fe,ye){var xe,ke={},Ce={};for(xe in fe!==null&&ae(fe)==="object"||(fe={}),ye!==null&&ae(ye)==="object"||(ye={}),ye)xe in fe?ke[xe]=me(fe[xe],ye[xe]):Ce[xe]=ye[xe];return function(Ie){for(xe in ke)Ce[xe]=ke[xe](Ie);return Ce}}var te=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ee=new RegExp(te.source,"g");function se(fe,ye){var xe,ke,Ce,Ie=te.lastIndex=ee.lastIndex=0,Ve=-1,we=[],pe=[];for(fe+="",ye+="";(xe=te.exec(fe))&&(ke=ee.exec(ye));)(Ce=ke.index)>Ie&&(Ce=ye.slice(Ie,Ce),we[Ve]?we[Ve]+=Ce:we[++Ve]=Ce),(xe=xe[0])===(ke=ke[0])?we[Ve]?we[Ve]+=ke:we[++Ve]=ke:(we[++Ve]=null,pe.push({i:Ve,x:ie(xe,ke)})),Ie=ee.lastIndex;return Ie<ye.length&&(Ce=ye.slice(Ie),we[Ve]?we[Ve]+=Ce:we[++Ve]=Ce),we.length<2?pe[0]?function(ue){return function(_e){return ue(_e)+""}}(pe[0].x):function(ue){return function(){return ue}}(ye):(ye=pe.length,function(ue){for(var _e,Be=0;Be<ye;++Be)we[(_e=pe[Be]).i]=_e.x(ue);return we.join("")})}function he(fe,ye){ye||(ye=[]);var xe,ke=fe?Math.min(ye.length,fe.length):0,Ce=ye.slice();return function(Ie){for(xe=0;xe<ke;++xe)Ce[xe]=fe[xe]*(1-Ie)+ye[xe]*Ie;return Ce}}function ce(fe){return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ye){return typeof ye}:function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye},ce(fe)}function me(fe,ye){var xe,ke,Ce=ce(ye);return ye==null||Ce==="boolean"?Z(ye):(Ce==="number"?ie:Ce==="string"?(xe=T(ye))?(ye=xe,Y):se:ye instanceof T?Y:ye instanceof Date?le:(ke=ye,!ArrayBuffer.isView(ke)||ke instanceof DataView?Array.isArray(ye)?X:typeof ye.valueOf!="function"&&typeof ye.toString!="function"||isNaN(ye)?re:ie:he))(fe,ye)}},30584:function(u){u.exports=JSON.parse('["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]')},7294:function(u){u.exports=JSON.parse('["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]')},47916:function(u){u.exports=JSON.parse('["normal","italic","oblique"]')},2904:function(u){u.exports=JSON.parse('["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]')},68194:function(u){u.exports=JSON.parse('["inherit","initial","unset"]')},3748:function(u){u.exports=JSON.parse('["caption","icon","menu","message-box","small-caption","status-bar"]')}},N={};function L(u){var g=N[u];if(g!==void 0)return g.exports;var n=N[u]={exports:{}};return i[u].call(n.exports,n,n.exports,L),n.exports}return L.n=function(u){var g=u&&u.__esModule?function(){return u.default}:function(){return u};return L.d(g,{a:g}),g},L.d=function(u,g){for(var n in g)L.o(g,n)&&!L.o(u,n)&&Object.defineProperty(u,n,{enumerable:!0,get:g[n]})},L.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),L.o=function(u,g){return Object.prototype.hasOwnProperty.call(u,g)},L.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},L(13792)}()})})(JU);var j9t=JU.exports;const XU=j9(j9t),odn="",sdn="",U9t={ref:"card",class:"card-volumetric-field"},KU=1,H9t=800,QU=300,G9t=-46,eH=100,tH=-14,W9t=Jr({__name:"VolumetricField",props:{passesPlays:{type:Array,default:()=>[]},playIndexes:{type:Object,default:()=>{}}},setup(e){const a=e,i=new Set([2,20,308,310]),N=[[0,"rgb(12,31,82)"],[.2,"rgb(115,248,253)"],[.4,"rgb(117,251,98)"],[.6,"rgb(255,255,84)"],[.8,"rgb(242,168,59)"],[1,"rgb(234,55,36)"]];let L=null;const u=t.ref(null),g=t.ref(null),n=t.ref(0),b=t.ref(null);t.watch(()=>a.passesPlays,p=>{const f=p.reduce((y,w)=>(i.has(w[a.playIndexes.categoryId])&&y.push({x1:w[a.playIndexes.coordinate1X],y1:w[a.playIndexes.coordinate1Y],x2:w[a.playIndexes.coordinate2X],y2:w[a.playIndexes.coordinate2Y],x3:w[a.playIndexes.coordinate3X],y3:w[a.playIndexes.coordinate3Y]}),y),[]);h(f)}),t.watch(()=>n.value,(p,f)=>{b.value&&(o(p),g.value.style.height=`${l(p)}px`,b.value.style.top=`${d(l(p))}px`)});function m(){L=new ResizeObserver(p=>{for(const f of p)n.value=f.contentRect.width}),L.observe(u.value)}function r(p){return Array.from({length:p},()=>0)}function v(p,f){let y=.01351,w=.02439,x=0,M=0,k=[];const T=f.length,S=Math.floor(T/10);for(;x<74;)M=f.filter(A=>1-A.y3>=x*y&&1-A.y3<=(x+1)*y&&1-A.x3>=p*w&&1-A.x3<=(p+1)*w).map(A=>A.y3).length,k.push(parseFloat((M/S).toFixed(4))),x++;return k.reverse()}function _(p){let f=[r(74),r(74)],y=[],w=39;for(;w>0&&w<=39;)y=v(w,p),f.push(y),w--;return f.push(r(74),r(74)),f}function c(p,f,y){const w=[];let k=0,T=0;w.push(p[0]);for(let S=1;S<y-1;S++){const A=[];A.push(p[S][0]);for(let E=1;E<f-1;E++)k=p[S][E-1],T=p[S][E+1],A.push(k+.5*(p[S][E]+T-k));A.push(p[S][f-1]),w.push(A)}w.push(p[y-1]);for(let S=1;S<f-1;S++)for(let A=1;A<y-1;A++)k=w[A-1][S],T=w[A+1][S],w[A][S]=k+.5*(w[A][S]+T-k);return w}function s(p){let f=0,y=0;for(let w=0;w<p.length;w++){y=y+p[w].reduce(function(M,k){return M+k});const x=Math.max.apply(null,p[w]);x>f&&(f=x)}return f}function o(p){XU.relayout(u.value,{width:p,height:l(p)})}function l(p){return Math.round(QU/H9t*p,0)}function d(p){return tH+(p-eH)/(QU-eH)*(G9t-tH)}function h(p){let f=_(p),y=f.length,w=f[0].length;f=c(c(f,w,y),w,y),w=f[0].length,y=f.length;const x=s(f),M=[{z:f,type:"surface",connectgaps:!0,opacity:.25,colorscale:N,autoscale:!1,showscale:!1}],k=[0,w],T=[0,y],S=[0,x*5],A={scene:{xaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,showbackground:!1,backgroundcolor:"transparent",range:k},yaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,showbackground:!1,backgroundcolor:"transparent",range:T},zaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,showbackground:!1,backgroundcolor:"transparent",range:S},aspectratio:{x:1,y:.419,z:1},camera:{eye:{x:-.006743829259037479,y:.33535167247712533,z:-.0014332540873207011},center:{x:-.00679220694254041,y:.10728256468650094,z:-.30848979628595363}}},showlegend:!1,width:n.value,height:l(n.value),paper_bgcolor:"rgba(0,0,0,0)",margin:{l:0,r:0,b:0,t:0}};g.value&&(g.value.style.height=`${l(n.value)}px`);const E=[];for(let P=0;P<w;P++){const C=[],z=[],I=[];for(let O=0;O<y;O++)C.push(P),z.push(O),I.push(M[0].z[O][P]);E.push({x:C,y:z,z:I,type:"scatter3d",mode:"lines",line:{cmin:-.1,cmax:x,width:KU,color:I,colorscale:N,shape:"spline",smoothing:.6,dash:"dotline"}})}for(let P=0;P<y;P++){const C=[],z=[],I=[];for(let O=0;O<w;O++)C.push(O),z.push(P),I.push(M[0].z[P][O]);E.push({x:C,y:z,z:I,type:"scatter3d",mode:"lines",line:{cmin:-.1,cmax:x,width:KU,color:I,colorscale:N,shape:"spline",smoothing:.6,dash:"dotline"}})}XU.newPlot("surface-plot",M.concat(E),A,{displayModeBar:!1},{responsive:!0}),b.value=document.getElementsByClassName("plot-container")[0],b.value&&(b.value.style.top=`${d(l(n.value))}px`)}return t.onMounted(()=>{u.value&&(u.value.style.pointerEvents="none"),m()}),(p,f)=>(t.openBlock(),t.createElementBlock("div",U9t,[t.createElementVNode("div",{ref_key:"volumetricField",ref:g,class:"card-volumetric-field__volumetric-field"},[t.createElementVNode("div",{ref_key:"surfacePlot",ref:u,id:"surface-plot"},null,512)],512)],512))}},[["__scopeId","data-v-b4141ee5"]]),cdn="",nH=e=>(t.pushScopeId("data-v-dd911c44"),e=e(),t.popScopeId(),e),q9t=nH(()=>t.createElementVNode("div",{class:"attack-direction__line"},null,-1)),Y9t=nH(()=>t.createElementVNode("div",{class:"attack-direction__text"},"Ataca",-1)),Z9t=Jr({__name:"AttackDirection",props:{team:{type:Object,required:!0}},setup(e){const a=e,i=t.computed(()=>({"--flex-direction-info":a.team.isHomeTeam?"flex":"row-reverse","--justify-content-info":a.team.isHomeTeam?"flex-start":"flex-end","--arrow-color":a.team.isHomeTeam?"#336dff":"#7ed321"}));return(N,L)=>(t.openBlock(),t.createElementBlock("div",{class:"attack-direction",style:t.normalizeStyle(i.value)},[q9t,t.createElementVNode("div",{class:t.normalizeClass(`attack-direction__triangle-${e.team.isHomeTeam?"right":"left"}`)},null,2),Y9t],4))}},[["__scopeId","data-v-dd911c44"]]),J9t=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y","xGi","xGf","distance","fieldArea"];let xC=null;function X9t(){return xC||(xC=W1(J9t)),xC}const udn="",K9t=e=>(t.pushScopeId("data-v-31b7b20b"),e=e(),t.popScopeId(),e),Q9t={class:"volumetric-section-container"},eCt=K9t(()=>t.createElementVNode("div",{class:"volumetric-section-container__title"},"Volumétrica",-1)),tCt={key:0,class:"volumetric-section-container__switch"},nCt={class:"volumetric-section-container__attack-direction"},aCt={class:"volumetric-section-container__field"},rCt=Jr({__name:"VolumetricSectionContainer",props:{game:{type:Object,default:()=>({})},seasonSelected:{type:Object,default:()=>({})},token:{type:String,default:""},isGamePreMatch:{type:Boolean,default:!1},teamSelectedPreMatch:{type:Object,default:()=>({})}},setup(e){const a=e,i=X9t(),N=new Set([2,20,308,310]),L=new Set([3,21,309]),u=new Set([...N,...L]),g=t.ref(0),n=t.ref(new Map),b=t.ref({teamId:0}),m=t.computed(()=>[{teamId:a.game.homeTeam.team_id,text:a.game.homeTeam.colloquial_name,img:a.game.homeTeam.logo,isHomeTeam:!0},{teamId:a.game.awayTeam.team_id,text:a.game.awayTeam.colloquial_name,img:a.game.awayTeam.logo,isHomeTeam:!1}]),r=t.computed(()=>n.value.get(a.isGamePreMatch?a.teamSelectedPreMatch.teamId:b.value.teamId)||[]);t.watch(()=>m.value,()=>{g.value=0,b.value=m.value[g.value]},{immediate:!0}),t.watch(()=>a.game.gameId,o=>{o&&v()},{immediate:!0});async function v(){try{const o=await c();n.value.set(a.game.homeTeam.team_id,o.homeTeam),n.value.set(a.game.awayTeam.team_id,o.awayTeam)}catch(o){throw new Error(o)}}function _(o){return a.game.game_status===4?o[i.gameId]!==a.game.gameId:o[i.gameId]===a.game.gameId}async function c(){try{const[o,l]=await Promise.all([Il.get(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsTeamBySeason-${a.game.seasonId}-${a.game.homeTeam.team_id}.json`,{headers:{Authorization:""}}),Il.get(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsTeamBySeason-${a.game.seasonId}-${a.game.awayTeam.team_id}.json`,{headers:{Authorization:""}})]);return{homeTeam:o.data.data.posession.filter(h=>h[i.teamId]===a.game.homeTeam.team_id&&u.has(h[i.categoryId])&&_(h)),awayTeam:l.data.data.posession.filter(h=>h[i.teamId]===a.game.awayTeam.team_id&&u.has(h[i.categoryId])&&_(h)?(h[i.coordinate1Y]=1-h[i.coordinate1Y],h[i.coordinate2Y]=1-h[i.coordinate2Y],h[i.coordinate3Y]=1-h[i.coordinate3Y],h[i.coordinate1X]=1-h[i.coordinate1X],h[i.coordinate2X]=1-h[i.coordinate2X],h[i.coordinate3X]=1-h[i.coordinate3X],!0):!1)}}catch(o){throw new Error(o)}}function s(o){g.value=o.index,b.value=o.button}return(o,l)=>(t.openBlock(),t.createElementBlock("div",Q9t,[eCt,e.isGamePreMatch?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",tCt,[t.createVNode(U3,{"selected-button-index":g.value,buttons:m.value,width:"320px","border-radius":"16px",onChange:s},null,8,["selected-button-index","buttons"])])),t.createElementVNode("div",nCt,[t.createVNode(Z9t,{team:e.isGamePreMatch?e.teamSelectedPreMatch:b.value},null,8,["team"])]),t.createElementVNode("div",aCt,[t.createVNode(W9t,{"passes-plays":r.value,"play-indexes":t.unref(i)},null,8,["passes-plays","play-indexes"])])]))}},[["__scopeId","data-v-31b7b20b"]]),pdn="";let aH=null;const iCt={components:{GSCHighlights:z0t,ToggleButtons:U3,VolumetricSectionContainer:rCt,DataProminentGame:Y0t,HighlightsProminentGame:J1t,GSCRadioToggle:Mj,FieldPosesion:E1t,EventsLine:Vgt,ChalkboardSectionContainer:$9t},props:{game:{type:Object,default:()=>({})},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"},seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!1},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},data(){return{widthSection:0,viewVolumtrica:!0,teamButtonSelectedIndex:0,switchTypeViewFiled:"Porcentajes",teamSelected:{teamId:0}}},computed:{toggleButtons(){return[{teamId:this.game.homeTeam.team_id,text:this.game.homeTeam.colloquial_name,img:this.game.homeTeam.logo,isHomeTeam:!0},{teamId:this.game.awayTeam.team_id,text:this.game.awayTeam.colloquial_name,img:this.game.awayTeam.logo,isHomeTeam:!1}]},isGamePreMatch(){return this.game&&this.game.game_status===4}},watch:{widthSection(){this.viewVolumtrica=this.widthSection>=760},toggleButtons:{handler(){this.teamButtonSelectedIndex=0,this.teamSelected=this.toggleButtons[0]},deep:!0,immediate:!0}},methods:{onChangeToggle(e){this.teamButtonSelectedIndex=e.index,this.teamSelected=e.button},setUpResizeObserver(){if(window.ResizeObserver)aH=new ResizeObserver(()=>{this.widthSection=this.$refs.prominent.clientWidth}),aH.observe(this.$refs.prominent);else throw new Error("Resize observer not supported!")},async ChangeRadio(e){typeof e=="string"&&(this.switchTypeViewFiled=e)},openmedia(e){this.$emit("openmedia",e)},onClickPlayEvent(e){this.$emit("click-play-event",e)},onOpenMediaPlayer(e){this.canPlayVideos&&this.$emit("open-media-player",e)}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},wp=e=>(t.pushScopeId("data-v-475bc57a"),e=e(),t.popScopeId(),e),oCt={class:"container-prominent",ref:"prominent"},sCt={class:"container-prominent-data"},lCt={class:"container-prominent-section"},cCt={class:"highlights-containers"},dCt=wp(()=>t.createElementVNode("div",{class:"fields-section-title"},"Posesión",-1)),uCt={key:0,class:"container-leyend-prematch"},hCt=wp(()=>t.createElementVNode("span",{class:"leyend-bold"},"IMPORTANTE:",-1)),pCt={key:1,class:"container-leyend-prematch-movil"},fCt=wp(()=>t.createElementVNode("span",{class:"leyend-bold"},"IMPORTANTE:",-1)),mCt=wp(()=>t.createElementVNode("br",null,null,-1)),gCt=wp(()=>t.createElementVNode("br",null,null,-1)),yCt={key:2,class:"container-leyend-prematch-movil"},vCt=wp(()=>t.createElementVNode("span",{class:"leyend-bold"},"IMPORTANTE:",-1)),_Ct=wp(()=>t.createElementVNode("br",null,null,-1)),bCt=wp(()=>t.createElementVNode("br",null,null,-1)),xCt={class:"container-switch-toggle"},wCt={class:"container-prominent-section__chalkboard"},kCt=wp(()=>t.createElementVNode("div",{class:"fields-section-title"},"Pizarra",-1));function CCt(e,a,i,N,L,u){const g=t.resolveComponent("DataProminentGame"),n=t.resolveComponent("HighlightsProminentGame"),b=t.resolveComponent("GSCHighlights"),m=t.resolveComponent("EventsLine"),r=t.resolveComponent("ToggleButtons"),v=t.resolveComponent("GSCRadioToggle"),_=t.resolveComponent("FieldPosesion"),c=t.resolveComponent("VolumetricSectionContainer"),s=t.resolveComponent("ChalkboardSectionContainer");return t.openBlock(),t.createElementBlock("div",oCt,[t.createElementVNode("div",sCt,[t.createVNode(g,{game:i.game,"can-play-videos":i.canPlayVideos,onOpenmedia:u.openmedia},null,8,["game","can-play-videos","onOpenmedia"])]),t.createElementVNode("div",lCt,[t.createElementVNode("div",cCt,[i.game.status==1?(t.openBlock(),t.createBlock(n,{key:0,"can-play-videos":i.canPlayVideos,game:i.game,onOpenmedia:u.openmedia},null,8,["can-play-videos","game","onOpenmedia"])):(t.openBlock(),t.createBlock(b,{key:1,data:{game:i.game.gameId,season:i.game.seasonId,type:"historic"},"can-play-videos":i.canPlayVideos,"video-privileges-playing-as":i.videoPrivilegesPlayingAs,onOpenmedia:u.openmedia},null,8,["data","can-play-videos","video-privileges-playing-as","onOpenmedia"]))]),i.game.status==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(L.widthSection>920?"container-prominent-section__events-line":"container-prominent-section__events-line-mobile")},[t.createVNode(m,{token:i.token,game:i.game,widthScreen:L.widthSection,"can-play-videos":i.canPlayVideos,onClickPlay:u.onClickPlayEvent},null,8,["token","game","widthScreen","can-play-videos","onClickPlay"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(L.widthSection>760?"fields-section-container":"fields-section-container-movil")},[dCt,i.game.game_status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[L.widthSection>590?(t.openBlock(),t.createElementBlock("div",uCt,[hCt,t.createTextVNode("  Es en base a las estadisticas de los partidos ya jugados en el torneo. ")])):t.createCommentVNode("",!0),L.widthSection>340&&L.widthSection<=590?(t.openBlock(),t.createElementBlock("div",pCt,[fCt,t.createTextVNode("  "),mCt,t.createTextVNode("Es en base a las estadisticas de los partidos ya "),gCt,t.createTextVNode(" jugados en el torneo. ")])):t.createCommentVNode("",!0),L.widthSection<=340?(t.openBlock(),t.createElementBlock("div",yCt,[vCt,t.createTextVNode("  "),_Ct,t.createTextVNode("Es en base a las estadisticas de los "),bCt,t.createTextVNode("partidos ya jugados en el torneo. ")])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(L.widthSection>420?"container-switch-prematch-teams":"container-switch-prematch-teams-movil")},[t.createVNode(r,{"selected-button-index":L.teamButtonSelectedIndex,buttons:u.toggleButtons,width:"320px","border-radius":"16px",onChange:u.onChangeToggle},null,8,["selected-button-index","buttons","onChange"])],2)],64)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",xCt,[t.createVNode(v,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":"Porcentajes",textOptionLeft:"Porcentajes",textOptionRight:"Volumétrico",onChange:u.ChangeRadio},null,8,["onChange"])],512),[[t.vShow,L.widthSection<=760]]),t.createElementVNode("div",{class:t.normalizeClass(L.widthSection>760?"fields-container":"fields-container-movil")},[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(L.widthSection>760?"field-possesion-container":"field-possesion-container-movil")},[t.createVNode(_,{"width-Section":L.widthSection,game:i.game,"team-selected":L.teamSelected.teamId==0?u.toggleButtons[0]:L.teamSelected},null,8,["width-Section","game","team-selected"])],2),[[t.vShow,L.switchTypeViewFiled=="Porcentajes"||L.widthSection>760]]),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(L.widthSection>760?"field-volumetrica-container":"field-volumetrica-container-movil")},[t.createVNode(c,{game:i.game,"season-selected":i.seasonSelected,token:i.token,"is-game-pre-match":u.isGamePreMatch,"team-selected-pre-match":L.teamSelected},null,8,["game","season-selected","token","is-game-pre-match","team-selected-pre-match"])],2),[[t.vShow,L.viewVolumtrica&&L.widthSection>760||L.switchTypeViewFiled=="Volumétrico"]])],2),t.createCommentVNode("",!0)],2),t.createElementVNode("div",wCt,[kCt,t.createVNode(s,{game:i.game,"season-selected":i.seasonSelected,token:i.token,"width-section":L.widthSection,"can-play-videos":i.canPlayVideos,"is-game-pre-match":u.isGamePreMatch,onOpenMediaPlayer:u.onOpenMediaPlayer},null,8,["game","season-selected","token","width-section","can-play-videos","is-game-pre-match","onOpenMediaPlayer"])])])],512)}const TCt=Jr(iCt,[["render",CCt],["__scopeId","data-v-475bc57a"]]),fdn="",SCt={class:"datagame-container"},ECt=Jr({__name:"GSCProminentMain",props:{game:{type:Object,default:()=>({})},seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!1},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},emits:["click-play-event","openmedia"],setup(e,{emit:a}){function i(u){a("click-play-event",u)}function N(u){a("openmedia",u)}function L(u){a("openmedia",u)}return(u,g)=>(t.openBlock(),t.createElementBlock("div",SCt,[t.createVNode(TCt,{game:e.game,"season-selected":e.seasonSelected,"can-play-videos":e.canPlayVideos,"video-privileges-playing-as":e.videoPrivilegesPlayingAs,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:N,onClickPlayEvent:i,onOpenMediaPlayer:L},null,8,["game","season-selected","can-play-videos","video-privileges-playing-as","play-videos-privileges"])]))}},[["__scopeId","data-v-8e9f6860"]]),ACt={class:"datagame-container"},MCt={__name:"GSCDatosGSMainAvanced",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia"],setup(e,{emit:a}){const i=e,N=t.ref(0);t.watch(()=>i.game,u=>{N.value=u.gameId},{deep:!0,immediate:!0});function L(u){a("openmedia",u)}return(u,g)=>(t.openBlock(),t.createElementBlock("div",ACt,[e.game.game_status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(Sb),{key:N.value,type:0,data:{season:e.game.seasonId,game:e.game.gameId,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:1},"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:L},null,8,["data","play-videos-privileges"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(Sb),{key:N.value,type:1,data:{season:e.game.seasonId,game:e.game.gameId,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:2},"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:L},null,8,["data","play-videos-privileges"])):t.createCommentVNode("",!0)],64))]))}},ICt={computed:{sizeTabsFontMP(){const e=this.elementSize.width;return e<=380?"12px":e<=768?"14px":"16px"},sizeTabsFontMS(){const e=this.elementSize.width;return e<=600?"12px":e<=768?"13px":"14px"},sizeTabsMS(){const e=this.elementSize.width;return e<=480?"145px":e<=600?"153px":e<=620?"163px":e<=640?"170px":e<=660?"175px":e<=680?"180px":e<=700?"185px":e<=720?"195px":"200px"},sizeTabsMP(){const e=this.elementSize.width;return e<=319?"68px":e<=330?"73px":e<=340?"78px":e<=350?"82px":e<=360||e<=370?"90px":e<=390?"95px":e<=410?"105px":e<=430?"110px":e<=450?"117px":e<=470?"122px":e<=500?"130px":e<=530?"138px":e<=560?"155px":e<=590?"163px":e<=620?"175px":e<=650?"180px":e<=680?"195px":e<=730?"210px":e<=768?"100px":"110px"},comextleyemdmultipleleaguesClass(){return this.elementSize.width<=380?this.$style.comtextleyemdmultipleleagues380:this.$style.comtextleyemdmultipleleagues},comdropdownParentClass(){return this.elementSize.width<=730?this.$style.comdropdownParent730:this.$style.comdropdownParent},comdescubreVideosClass(){const e=this.elementSize.width;return e<=960?this.$style.comdescubreVideos960:e<=1232?this.$style.comdescubreVideos1232:this.$style.comdescubreVideos},comquitarFiltrosClass(){const e=this.elementSize.width;return e<=380?this.$style.comquitarFiltros380:e<=480?this.$style.comquitarFiltros480:e<=730?this.$style.comquitarFiltros730:this.$style.comquitarFiltros},commejoresJugadoresClass(){const e=this.elementSize.width;return e<=480?this.$style.commejoresJugadores480:e<=730?this.$style.commejoresJugadores730:this.$style.commejoresJugadores},menuSectionClass(){return this.elementSize.width<=960?this.$style.commenuSection960:this.$style.commenuSection},topFiltersClass(){const e=this.elementSize.width;return e<=420?this.$style.comtopFilters420:e<=460?this.$style.comtopFilters460:e<=1232?this.$style.comtopFilters1232:this.$style.comtopFilters},toniKroosWrapperClass(){const e=this.elementSize.width;return e<=319?this.$style.comtoniKroosWrapper320:e<=420?this.$style.comtoniKroosWrapper420:e<=916?this.$style.comtoniKroosWrapper760:e<=975?this.$style.comtoniKroosWrapper975:e<=1079?this.$style.comtoniKroosWrapper1080:this.$style.comtoniKroosWrapper},containerTablesClass(){const e=this.elementSize.width;return e<=319?this.$style.comcontainerTables320:e<=916?this.$style.comcontainerTables760:e<=1079?this.$style.comcontainerTables960:this.$style.comcontainerTables},containerTheBestClass(){const e=this.elementSize.width;return e<=319?this.$style.comcontainerTheBest320:e<=960?this.$style.comcontainerTheBest960:e<=1232?this.$style.comcontainerTheBest1232:this.$style.comcontainerTheBest},menuSectionHeaderClass(){const e=this.elementSize.width;return e<=730?this.$style.commenuSectionHeader730:e<=960?this.$style.commenuSectionHeader960:e<=1232?this.$style.commenuSectionHeader1232:this.$style.commenuSectionHeader},losMejoresClass(){const e=this.elementSize.width;return e<=380?this.$style.comlosMejores380:e<=530?this.$style.comlosMejores530:e<=730?this.$style.comlosMejores730:this.$style.comlosMejores},dropdownClass(){return this.elementSize.width<=730?this.$style.comdropdown730:this.$style.comdropdown},dropdown1Class(){return this.elementSize.width<=730?this.$style.comdropdown1730:this.$style.comdropdown1},menuSectionParentHeaderClass(){const e=this.elementSize.width;return e<=430?this.$style.commenuSectionParentHeader430:e<=730?this.$style.commenuSectionParentHeader730:e<=960?this.$style.commenuSectionParentHeader960:e<=1232?this.$style.commenuSectionParentHeader1232:this.$style.commenuSectionParentHeader},templateLosMejoresClass(){const e=this.elementSize.width;return e<=319?this.$style.comtemplateLosMejores1320:e<=350?this.$style.comtemplateLosMejores1350:e<=420?this.$style.comtemplateLosMejores1420:e<=540?this.$style.comtemplateLosMejores1540:e<=960?this.$style.comtemplateLosMejores1960:e<=1232?this.$style.comtemplateLosMejores11232:this.$style.comtemplateLosMejores1},containerMenuClass(){return this.elementSize.width<=760?this.$style.comcontainerMenu760:this.$style.comcontainerMenu},titleSectionClass(){return this.elementSize.width<=540?this.$style.comtitleSection540:this.$style.comtitleSection},containerSectionClass(){const e=this.elementSize.width;return e<=319?this.$style.comcontainerSection320:e<=350?this.$style.comcontainerSection350:e<=960?this.$style.comcontainerSection960:e<=1232?this.$style.comcontainerSection1232:this.$style.comcontainerSection},filtersContainerClass(){const e=this.elementSize.width;return e<=420?this.$style.comfiltersContainer420:e<=760?this.$style.comfiltersContainer760:e<=1232?this.$style.comfiltersContainer1232:this.$style.comfiltersContainer},topFiltersParentClass(){const e=this.elementSize.width;return e<=420?this.$style.comtopFiltersParent420:e<=460?this.$style.comtopFiltersParent460:e<=1232?this.$style.comtopFiltersParent1232:this.$style.comtopFiltersParent}}};function Vy(e){const a=t.ref({width:0,height:0});function i(){const N=e.value.getBoundingClientRect();a.value.width=N.width,a.value.height=N.height}return t.onMounted(()=>{i(),window.addEventListener("resize",i)}),t.onUnmounted(()=>{window.removeEventListener("resize",i)}),{elementSize:a}}const PCt={containerLeftTitles:"_containerLeftTitles_1rde2_60",containerLeftTitles420:"_containerLeftTitles420_1rde2_68",containerLeftTitles620:"_containerLeftTitles620_1rde2_76",containerLeftTitlesTeam:"_containerLeftTitlesTeam_1rde2_85",containerLeftTitlesTeam1180:"_containerLeftTitlesTeam1180_1rde2_93",containerLeftTitlesTeam1090:"_containerLeftTitlesTeam1090_1rde2_101",containerLeftTitlesTeam960:"_containerLeftTitlesTeam960_1rde2_109",containerLeftTitlesTeam860:"_containerLeftTitlesTeam860_1rde2_117",containerLeftTitlesTeam768:"_containerLeftTitlesTeam768_1rde2_125",containerLeftTitlesTeam680:"_containerLeftTitlesTeam680_1rde2_133",containerLeftTitlesTeam620:"_containerLeftTitlesTeam620_1rde2_141",containerLeftTitlesTeam420:"_containerLeftTitlesTeam420_1rde2_149",headTitles:"_headTitles_1rde2_158",headTitles960:"_headTitles960_1rde2_173",headTitles420:"_headTitles420_1rde2_188",headTitles540:"_headTitles540_1rde2_208",headTitles460:"_headTitles460_1rde2_223",headTitles620:"_headTitles620_1rde2_238",position:"_position_1rde2_253",position420:"_position420_1rde2_262",player:"_player_1rde2_265",player420:"_player420_1rde2_276",containerRightType1:"_containerRightType1_1rde2_280",containerRightTitles:"_containerRightTitles_1rde2_287",containerRightTitles960:"_containerRightTitles960_1rde2_296",block02Titles:"_block02Titles_1rde2_305",block02Titles620:"_block02Titles620_1rde2_313",mon1Scouting:"_mon1Scouting_1rde2_317",mon1Scouting960:"_mon1Scouting960_1rde2_327",mon1:"_mon1_1rde2_317",mon1420:"_mon1420_1rde2_345",mon1620:"_mon1620_1rde2_355",icnIcon:"_icnIcon_1rde2_365",icnIcon960:"_icnIcon960_1rde2_370",icnIcon420:"_icnIcon420_1rde2_376",teamTitle:"_teamTitle_1rde2_380",positionTitle:"_positionTitle_1rde2_390",ageTitle:"_ageTitle_1rde2_398",partidos:"_partidos_1rde2_406",playedGamesTitle:"_playedGamesTitle_1rde2_410",playedMinutesTitle:"_playedMinutesTitle_1rde2_420",block01Titles:"_block01Titles_1rde2_429",mon:"_mon_1rde2_317",containesOptionsTitles:"_containesOptionsTitles_1rde2_445",templateTablaProductividadType1:"_templateTablaProductividadType1_1rde2_452",templateTablaProductividadType1400:"_templateTablaProductividadType1400_1rde2_464",headTitlesType1:"_headTitlesType1_1rde2_478",headTitlesType1420:"_headTitlesType1420_1rde2_491",headTitlesType1400:"_headTitlesType1400_1rde2_507",headTitlesType1540:"_headTitlesType1540_1rde2_523",headTitlesType1460:"_headTitlesType1460_1rde2_537",headTitlesType1680:"_headTitlesType1680_1rde2_551",headTitlesType1350:"_headTitlesType1350_1rde2_564",positionType1:"_positionType1_1rde2_579",positionType1400:"_positionType1400_1rde2_588",teamType1:"_teamType1_1rde2_598",teamType1400:"_teamType1400_1rde2_607",frecuenciaType1:"_frecuenciaType1_1rde2_617",frecuenciaType1540:"_frecuenciaType1540_1rde2_625",containerLeftTitlesType1:"_containerLeftTitlesType1_1rde2_634",frecuenciaWrapperType1:"_frecuenciaWrapperType1_1rde2_642",frecuenciaWrapperType1680:"_frecuenciaWrapperType1680_1rde2_651",promedioPartidoType1:"_promedioPartidoType1_1rde2_659",promedioEstePartidoType1:"_promedioEstePartidoType1_1rde2_663",promedioEstePartidoType1960:"_promedioEstePartidoType1960_1rde2_671",promedioEstePartidoWrapperType1:"_promedioEstePartidoWrapperType1_1rde2_675",promedioEstePartidoWrapperType11200:"_promedioEstePartidoWrapperType11200_1rde2_683",promedioEstePartidoWrapperType11090:"_promedioEstePartidoWrapperType11090_1rde2_692",promedioEstePartidoWrapperType11086:"_promedioEstePartidoWrapperType11086_1rde2_702",promedioPartidosType1:"_promedioPartidosType1_1rde2_711",promedioPartidosWrapperType1:"_promedioPartidosWrapperType1_1rde2_718",promedioPartidosWrapperType1960:"_promedioPartidosWrapperType1960_1rde2_726",promedioPartidosWrapperType11086:"_promedioPartidosWrapperType11086_1rde2_729",partidosJugadosType1:"_partidosJugadosType1_1rde2_732",partidosJugadosType1960:"_partidosJugadosType1960_1rde2_738",partidosJugadosWrapperType1:"_partidosJugadosWrapperType1_1rde2_745",partidosJugadosWrapperType11200:"_partidosJugadosWrapperType11200_1rde2_753",partidosJugadosWrapperType11180:"_partidosJugadosWrapperType11180_1rde2_761",partidosJugadosWrapperType11170:"_partidosJugadosWrapperType11170_1rde2_769",partidosJugadosWrapperType11140:"_partidosJugadosWrapperType11140_1rde2_777",partidosJugadosWrapperType11086:"_partidosJugadosWrapperType11086_1rde2_785",partidosJugadosWrapperType1960:"_partidosJugadosWrapperType1960_1rde2_793",partidosJugadosWrapperType1880:"_partidosJugadosWrapperType1880_1rde2_801",partidosJugadosWrapperType1860:"_partidosJugadosWrapperType1860_1rde2_809",partidosJugadosWrapperType1830:"_partidosJugadosWrapperType1830_1rde2_817",partidosJugadosWrapperType1790:"_partidosJugadosWrapperType1790_1rde2_825",partidosJugadosWrapperType1930:"_partidosJugadosWrapperType1930_1rde2_833",partidosJugadosWrapperType1770:"_partidosJugadosWrapperType1770_1rde2_841",block01TitlesType1:"_block01TitlesType1_1rde2_844",monType1:"_monType1_1rde2_852",monType1960:"_monType1960_1rde2_861",monType1680:"_monType1680_1rde2_871",videosType1:"_videosType1_1rde2_874",videosType1680:"_videosType1680_1rde2_884",videosType1600:"_videosType1600_1rde2_893",videosType1540:"_videosType1540_1rde2_902",videosType1420:"_videosType1420_1rde2_911",videosType1400:"_videosType1400_1rde2_920",containesOptionsTitlesType1:"_containesOptionsTitlesType1_1rde2_932",containesOptionsTitlesType1768:"_containesOptionsTitlesType1768_1rde2_940",containesOptionsTitlesType1730:"_containesOptionsTitlesType1730_1rde2_947",containesOptionsTitlesType1690:"_containesOptionsTitlesType1690_1rde2_954",icnIconType1:"_icnIconType1_1rde2_961",icnIconType1420:"_icnIconType1420_1rde2_967",icnIconType1400:"_icnIconType1400_1rde2_974",block02TitlesType1:"_block02TitlesType1_1rde2_978",block02TitlesType1680:"_block02TitlesType1680_1rde2_985",block02TitlesType1350:"_block02TitlesType1350_1rde2_992",containerRightTitlesType1:"_containerRightTitlesType1_1rde2_999",containerRightTitlesType1420:"_containerRightTitlesType1420_1rde2_1008"},wC={components:{},computed:{icnIconType1Class(){const e=this.elementSize.width;return e<=400?this.$style.icnIconType1400:e<=420?this.$style.icnIconType1420:this.$style.icnIconType1},videosType1Class(){const e=this.elementSize.width;return e<=400?this.$style.videosType1400:e<=420?this.$style.videosType1420:e<=540?this.$style.videosType1540:e<=600?this.$style.videosType1600:e<=680?this.$style.videosType1680:this.$style.videosType1},monType1Class(){const e=this.elementSize.width;return e<=680?this.$style.monType1680:e<=960?this.$style.monType1960:this.$style.monType1},block02TitlesType1Class(){const e=this.elementSize.width;return e<=350?this.$style.block02TitlesType1350:e<=680?this.$style.block02TitlesType1680:this.$style.block02TitlesType1},containesOptionsTitlesType1Class(){const e=this.elementSize.width;return e<=400?this.$style.containesOptionsTitlesType1400:e<=690?this.$style.containesOptionsTitlesType1690:e<=730?this.$style.containesOptionsTitlesType1730:e<=768?this.$style.containesOptionsTitlesType1768:this.$style.containesOptionsTitlesType1},partidosJugadosWrapperType1Class(){const e=this.elementSize.width;return e<=770?this.$style.promedioPartidosWrapperType1770:e<=790?this.$style.partidosJugadosWrapperType1790:e<=830?this.$style.partidosJugadosWrapperType1830:e<=860?this.$style.partidosJugadosWrapperType1860:e<=880?this.$style.partidosJugadosWrapperType1880:e<=930?this.$style.partidosJugadosWrapperType1930:e<=960?this.$style.partidosJugadosWrapperType1960:e<=1086?this.$style.partidosJugadosWrapperType11086:e<=1140?this.$style.partidosJugadosWrapperType11140:e<=1170?this.$style.partidosJugadosWrapperType11170:e<=1180?this.$style.partidosJugadosWrapperType11180:e<=1200?this.$style.partidosJugadosWrapperType11200:this.$style.partidosJugadosWrapperType1},promedioPartidosWrapperType1Class(){const e=this.elementSize.width;return e<=960?this.$style.promedioPartidosWrapperType1960:e<=1086?this.$style.promedioPartidosWrapperType11086:this.$style.promedioPartidosWrapperType1},partidosJugadosType1Class(){return this.elementSize.width<=960?this.$style.partidosJugadosType1960:this.$style.partidosJugadosType1},templateTablaProductividadType1Class(){return this.elementSize.width<=400?this.$style.templateTablaProductividadType1400:this.$style.templateTablaProductividadType1},promedioEstePartidoType1Class(){return this.elementSize.width<=960?this.$style.promedioEstePartidoType1960:this.$style.promedioEstePartidoType1},headTitlesType1Class(){const e=this.elementSize.width;return e<=350?this.$style.headTitlesType1350:e<=400?this.$style.headTitlesType1400:e<=420?this.$style.headTitlesType1420:e<=460?this.$style.headTitlesType1460:e<=540?this.$style.headTitlesType1540:e<=680?this.$style.headTitlesType1680:this.$style.headTitlesType1},headTitlesClass(){const e=this.elementSize.width;return e<=420?this.$style.headTitles420:e<=460?this.$style.headTitles460:e<=540?this.$style.headTitles540:e<=620?this.$style.headTitles620:e<=960?this.$style.headTitles960:this.$style.headTitles},containerLeftTitlesClass(){const e=this.elementSize.width;return e<=420?this.$style.containerLeftTitles420:e<=620?this.$style.containerLeftTitles620:this.$style.containerLeftTitles},containerLeftTitlesClassTeam(){const e=this.elementSize.width;return e<=420?this.$style.containerLeftTitlesTeam420:e<=620?this.$style.containerLeftTitlesTeam620:e<=680?this.$style.containerLeftTitlesTeam680:e<=768?this.$style.containerLeftTitlesTeam768:e<=860?this.$style.containerLeftTitlesTeam860:e<=960?this.$style.containerLeftTitlesTeam960:e<=1090?this.$style.containerLeftTitlesTeam1090:e<=1180?this.$style.containerLeftTitlesTeam1180:this.$style.containerLeftTitlesTeam},icnIconClass(){const e=this.elementSize.width;return e<=420?this.$style.icnIcon420:e<=960?this.$style.icnIcon960:this.$style.icnIcon},mon1Class(){const e=this.elementSize.width;return e<=420?this.$style.mon1420:e<=620?this.$style.mon1620:this.$style.mon1},mon1ScoutingClass(){const e=this.elementSize.width;return e<=420?this.$style.mon1420:e<=960?this.$style.mon1Scouting960:this.$style.mon1Scouting},promedioEstePartidoWrapperType1Class(){const e=this.elementSize.width;return e<=1086?this.$style.promedioEstePartidoWrapperType11086:e<=1090?this.$style.promedioEstePartidoWrapperType11090:e<=1200?this.$style.promedioEstePartidoWrapperType11200:this.$style.promedioEstePartidoWrapperType1},frecuenciaWrapperType1Class(){return this.elementSize.width<=680?this.$style.frecuenciaWrapperType1680:this.$style.frecuenciaWrapperType1},frecuenciaType1Class(){return this.elementSize.width<=540?this.$style.frecuenciaType1540:this.$style.frecuenciaType1},positionType1Class(){return this.elementSize.width<=400?this.$style.positionType1400:this.$style.positionType1},containerRightType1Class(){return this.elementSize.width<=420?this.$style.containerRightType1420:this.$style.containerRightType1},containerRightTitlesType1Class(){return this.elementSize.width<=420?this.$style.containerRightTitlesType1420:this.$style.containerRightTitlesType1},teamType1Class(){return this.elementSize.width<=400?this.$style.teamType1400:this.$style.teamType1},playerClass(){return this.elementSize.width<=420?this.$style.player420:this.$style.player},positionClass(){return this.elementSize.width<=420?this.$style.position420:this.$style.position},containerRightTitlesClass(){return this.elementSize.width<=960?this.$style.containerRightTitles960:this.$style.containerRightTitles},block02TitlesClass(){return this.elementSize.width<=620?this.$style.block02Titles960:this.$style.block02Titles}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=Vy(e);return{myDivRef:e,elementSize:a}},props:{type:{type:Number,default:0},background:{type:String,default:"#172531"},height:{type:String,default:"71px"},heightTeam:{type:String,default:"65px"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"}},watch:{},data:()=>({}),async created(){},methods:{}},rH=()=>{t.useCssVars(e=>({"5f39c1fc":e.background,e40d360a:e.height,"3fa5cfc4":e.fontSize,97959e3:e.fontColor,52693332:e.fontFamily,"78a025f8":e.heightTeam}))},iH=wC.setup;wC.setup=iH?(e,a)=>(rH(),iH(e,a)):rH;const NCt={ref:"myDivRef"},BCt=t.createElementVNode("br",null,null,-1),OCt=t.createElementVNode("br",null,null,-1);function zCt(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",NCt,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.headTitlesClass),id:"container-titles"},[t.createElementVNode("div",{class:t.normalizeClass(u.containerLeftTitlesClass),id:"container-left-titles"},[t.createElementVNode("div",{class:t.normalizeClass(u.positionClass)},"Pos.",2),t.createElementVNode("div",{class:t.normalizeClass(u.playerClass)},"Jugador",2)],2),t.createElementVNode("div",{class:t.normalizeClass(u.containerRightTitlesClass),id:"container-right-titles"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01Titles)},[N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamTitle)},"Equipo",2)):t.createCommentVNode("",!0),N.elementSize.width>730?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.positionTitle)},"Posición",2)):t.createCommentVNode("",!0),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.ageTitle)},"edad",2)):t.createCommentVNode("",!0),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(e.$style.ageTitle)},"País",2)):t.createCommentVNode("",!0),N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(e.$style.playedGamesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Partidos",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Jugados",2)],2)):t.createCommentVNode("",!0),N.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:5,class:t.normalizeClass(e.$style.playedMinutesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Minutos",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Jugados",2)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(u.block02TitlesClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptionsTitles)},[N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.mon)},"Total",2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(u.mon1Class)},"Videos",2)],2)],2)],2)],2)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(u.templateTablaProductividadType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(u.headTitlesType1Class),id:"container-titles"},[t.createElementVNode("div",{class:t.normalizeClass(u.containerLeftTitlesClassTeam),id:"container-left-titles"},[t.createElementVNode("div",{class:t.normalizeClass(u.positionType1Class)},"Pos.",2),t.createElementVNode("div",{class:t.normalizeClass(u.teamType1Class)},"Equipo",2)],2),t.createElementVNode("div",{class:t.normalizeClass(u.containerRightType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(u.frecuenciaWrapperType1Class)},[N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.frecuenciaType1Class)},"Frecuencia",2)):t.createCommentVNode("",!0)],2),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.promedioEstePartidoWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(u.promedioEstePartidoType1Class)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.promedioPartidoType1)},"Promedio partido",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.promedioPartidoType1)},"este Torneo",2)],2)],2)):t.createCommentVNode("",!0),N.elementSize.width>1086?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(u.promedioPartidosWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.promedioPartidosType1)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.promedioPartidoType1)},[t.createTextVNode("Promedio partido"),BCt,t.createTextVNode("Torneo anterior")],2)],2)],2)):t.createCommentVNode("",!0),N.elementSize.width>770?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(u.partidosJugadosWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.partidosJugadosType1)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.promedioPartidoType1)},[t.createTextVNode("Partidos "),OCt,t.createTextVNode("Jugados")],2)],2)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(u.containesOptionsTitlesType1Class)},[N.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.monType1Class)},"total",2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(u.videosType1Class)},"Videos",2)],2)],2)],2)):t.createCommentVNode("",!0),i.type==2?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(u.headTitlesClass),id:"container-titles"},[t.createElementVNode("div",{class:t.normalizeClass(u.containerLeftTitlesClass),id:"container-left-titles"},[t.createElementVNode("div",{class:t.normalizeClass(u.positionClass)},"Pos.",2),t.createElementVNode("div",{class:t.normalizeClass(u.playerClass)},"Jugador",2)],2),t.createElementVNode("div",{class:t.normalizeClass(u.containerRightTitlesClass),id:"container-right-titles"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01Titles)},[N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamTitle)},"Equipo",2)):t.createCommentVNode("",!0),N.elementSize.width>730?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.positionTitle)},"Posición",2)):t.createCommentVNode("",!0),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.ageTitle)},"edad",2)):t.createCommentVNode("",!0),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(e.$style.ageTitle)},"País",2)):t.createCommentVNode("",!0),N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(e.$style.playedGamesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Partidos",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Jugados",2)],2)):t.createCommentVNode("",!0),N.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:5,class:t.normalizeClass(e.$style.playedMinutesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Minutos",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Jugados",2)],2)):t.createCommentVNode("",!0),N.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:6,class:t.normalizeClass(e.$style.playedMinutesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Liga",2)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(u.block02TitlesClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptionsTitles)},[t.createElementVNode("div",{class:t.normalizeClass(u.mon1ScoutingClass)},"Videos",2)],2)],2)],2)],2)):t.createCommentVNode("",!0)],512)}const oH=Jr(wC,[["render",zCt],["__cssModules",{$style:PCt}]]),_hn="",kC={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconPosition:{type:String,default:"left"},iconSize:String,mini:{type:Boolean,default:!1},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"},buttonMaxWidth:{type:String,default:"auto"},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,maxWidth:this.buttonMaxWidth,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))}}},sH=()=>{t.useCssVars(e=>({"72ff6367":e.height,"5ab83942":e.borderWidthBtn,"685a33c6":e.borderType,bc0fc752:e.borderColor,"9449c3c4":e.borderRadius,ac97d8f4:e.width,"7e4ca6d6":e.backgroundColor,"00cc2df0":e.cursorType,"09b439a0":e.fontSize,"699b8062":e.fontStyle,"9ad7625a":e.fontFamily,"081aa5ee":e.marginLeftStat,"624845a4":e.fontSizeStat}))},lH=kC.setup;kC.setup=lH?(e,a)=>(sH(),lH(e,a)):sH;const LCt=e=>(t.pushScopeId("data-v-a6a12d0c"),e=e(),t.popScopeId(),e),FCt=["src"],DCt={key:1,class:"text"},VCt=["src"],RCt={class:"stats"},$Ct=LCt(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),jCt={class:"numstats"},UCt={class:"leyend"};function HCt(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",L.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([u.customStyle,L.status&&i.typeOnOff&&u.customActive]),onClick:a[0]||(a[0]=(...g)=>u.btnClick&&u.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(i.mini?"icon-txt":"icon"),style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,14,FCt)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",DCt,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,VCt)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>u.btnClick&&u.btnClick(...g))},[t.createElementVNode("div",RCt,[$Ct,t.createElementVNode("div",jCt,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",UCt,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const cH=Jr(kC,[["render",HCt],["__scopeId","data-v-a6a12d0c"]]),GCt={rotate:"_rotate_1uuxc_3",positionContainer:"_positionContainer_1uuxc_50",positionContainer620:"_positionContainer620_1uuxc_57",rowwPlayer:"_rowwPlayer_1uuxc_64",rowwPlayer960:"_rowwPlayer960_1uuxc_80",rowwPlayer420:"_rowwPlayer420_1uuxc_95",rowwPlayer460:"_rowwPlayer460_1uuxc_111",containerLeft:"_containerLeft_1uuxc_128",containerLeft420:"_containerLeft420_1uuxc_136",containerLeft620:"_containerLeft620_1uuxc_144",iconFavoritesType1:"_iconFavoritesType1_1uuxc_151",iconFavoritesType1320:"_iconFavoritesType1320_1uuxc_159",iconFavorites:"_iconFavorites_1uuxc_151",iconFavorites420:"_iconFavorites420_1uuxc_175",playerContainer:"_playerContainer_1uuxc_183",playerContainer420:"_playerContainer420_1uuxc_195",playerContainer460:"_playerContainer460_1uuxc_207",playerContainerType1:"_playerContainerType1_1uuxc_219",playerContainerType1320:"_playerContainerType1320_1uuxc_229",playerContainerType1460:"_playerContainerType1460_1uuxc_239",imgPlayerIcon:"_imgPlayerIcon_1uuxc_249",imgPlayerIcon460:"_imgPlayerIcon460_1uuxc_259",imgPlayerIcon420:"_imgPlayerIcon420_1uuxc_269",manchesterUnited:"_manchesterUnited_1uuxc_279",manchesterUnited360:"_manchesterUnited360_1uuxc_290",manchesterUnited420:"_manchesterUnited420_1uuxc_301",manchesterUnited460:"_manchesterUnited460_1uuxc_312",containerRight:"_containerRight_1uuxc_323",containerRight960:"_containerRight960_1uuxc_332",containerRight420:"_containerRight420_1uuxc_342",numberOfVideos:"_numberOfVideos_1uuxc_353",numberOfVideos620:"_numberOfVideos620_1uuxc_359",block02:"_block02_1uuxc_365",block02960:"_block02960_1uuxc_375",block02620:"_block02620_1uuxc_384",block02420:"_block02420_1uuxc_391",verVideos:"_verVideos_1uuxc_399",verVideos620:"_verVideos620_1uuxc_405",numberPosition:"_numberPosition_1uuxc_408",shapeIcon:"_shapeIcon_1uuxc_414",chivasIcon:"_chivasIcon_1uuxc_419",imgTeamIcon:"_imgTeamIcon_1uuxc_430",teamName:"_teamName_1uuxc_435",nameTeam:"_nameTeam_1uuxc_441",dfC:"_dfC_1uuxc_450",position:"_position_1uuxc_50",age:"_age_1uuxc_460",manchesterUnitedIcon:"_manchesterUnitedIcon_1uuxc_468",country:"_country_1uuxc_475",playedGames:"_playedGames_1uuxc_482",playedMinutes:"_playedMinutes_1uuxc_489",block01:"_block01_1uuxc_496",leagueName:"_leagueName_1uuxc_503",roleCharacterIcon:"_roleCharacterIcon_1uuxc_509",btnVideos:"_btnVideos_1uuxc_517",containerBtnVideos:"_containerBtnVideos_1uuxc_532",containerBtnVideos620:"_containerBtnVideos620_1uuxc_542",containesOptions:"_containesOptions_1uuxc_551",arrowExpandIcon:"_arrowExpandIcon_1uuxc_558",rowTeam:"_rowTeam_1uuxc_567",rowTeam420:"_rowTeam420_1uuxc_585",rowTeam320:"_rowTeam320_1uuxc_603",rowTeam460:"_rowTeam460_1uuxc_622",rowTeam350:"_rowTeam350_1uuxc_641",containerLeftType1:"_containerLeftType1_1uuxc_659",containerLeftType1680:"_containerLeftType1680_1uuxc_665",containerLeftType1320:"_containerLeftType1320_1uuxc_672",containerLeftType1350:"_containerLeftType1350_1uuxc_680",positionContainertype1:"_positionContainertype1_1uuxc_687",positionContainertype1380:"_positionContainertype1380_1uuxc_695",positionContainertype1680:"_positionContainertype1680_1uuxc_703",positionContainertype1420:"_positionContainertype1420_1uuxc_711",manchesterUnitedType1:"_manchesterUnitedType1_1uuxc_719",manchesterUnitedType1460:"_manchesterUnitedType1460_1uuxc_725",manchesterUnitedType1320:"_manchesterUnitedType1320_1uuxc_732",containerRightType1:"_containerRightType1_1uuxc_739",containerRightType1420:"_containerRightType1420_1uuxc_750",containerRightType1320:"_containerRightType1320_1uuxc_761",teamNameWrapperType1:"_teamNameWrapperType1_1uuxc_772",teamNameWrapperType1960:"_teamNameWrapperType1960_1uuxc_779",teamNameWrapperType11086:"_teamNameWrapperType11086_1uuxc_786",ageWrapperType1:"_ageWrapperType1_1uuxc_793",ageWrapperType1680:"_ageWrapperType1680_1uuxc_800",ageWrapperType11086:"_ageWrapperType11086_1uuxc_808",ageType1:"_ageType1_1uuxc_816",ageType1960:"_ageType1960_1uuxc_824",playedGamesWrapperType1:"_playedGamesWrapperType1_1uuxc_827",playedGamesWrapperType1680:"_playedGamesWrapperType1680_1uuxc_834",playedGamesWrapperType1960:"_playedGamesWrapperType1960_1uuxc_837",playedGamesType1:"_playedGamesType1_1uuxc_840",playedGamesType1540:"_playedGamesType1540_1uuxc_847",playedGamesType1960:"_playedGamesType1960_1uuxc_851",playedGamesType11086:"_playedGamesType11086_1uuxc_854",playedMinutesWrapperType1:"_playedMinutesWrapperType1_1uuxc_857",playedMinutesWrapperType11086:"_playedMinutesWrapperType11086_1uuxc_864",playedMinutesType1:"_playedMinutesType1_1uuxc_871",playedMinutesType1680:"_playedMinutesType1680_1uuxc_878",block02Type1:"_block02Type1_1uuxc_881",block02Type1680:"_block02Type1680_1uuxc_889",block02Type1320:"_block02Type1320_1uuxc_897",block02Type1350:"_block02Type1350_1uuxc_906",leagueNameWrapperType1:"_leagueNameWrapperType1_1uuxc_914",leagueNameWrapperType1680:"_leagueNameWrapperType1680_1uuxc_922",leagueNameWrapperType1960:"_leagueNameWrapperType1960_1uuxc_925",leagueNameType1:"_leagueNameType1_1uuxc_933",leagueNameType1960:"_leagueNameType1960_1uuxc_943",numberOfVideosType1:"_numberOfVideosType1_1uuxc_953",numberOfVideosType1680:"_numberOfVideosType1680_1uuxc_960",numberOfVideosType11232:"_numberOfVideosType11232_1uuxc_967",vectorIconType1:"_vectorIconType1_1uuxc_974",block01TitlesType1:"_block01TitlesType1_1uuxc_991",numberPositionType1:"_numberPositionType1_1uuxc_998",shapeIconType1:"_shapeIconType1_1uuxc_1004",tijuanaIconType1:"_tijuanaIconType1_1uuxc_1010",tijuanaWrapperType1:"_tijuanaWrapperType1_1uuxc_1016",tijuanaWrapperType1NoBg:"_tijuanaWrapperType1NoBg_1uuxc_1027",teamNameType1:"_teamNameType1_1uuxc_1035",roleCharacterIconType1:"_roleCharacterIconType1_1uuxc_1042",verVideosType1:"_verVideosType1_1uuxc_1049",btnVideosType1:"_btnVideosType1_1uuxc_1055",containerBtnVideosType1:"_containerBtnVideosType1_1uuxc_1070",containesOptionsType1:"_containesOptionsType1_1uuxc_1081",arrowExpandIconType1:"_arrowExpandIconType1_1uuxc_1089",templateTablaProductividadType1:"_templateTablaProductividadType1_1uuxc_1095",verVideosType11232:"_verVideosType11232_1uuxc_1107",templateTablaProductividadType1320:"_templateTablaProductividadType1320_1uuxc_1111",verVideosType1680:"_verVideosType1680_1uuxc_1115"},CC={components:{GSCButton:cH},computed:{manchesterUnitedType1Class(){const e=this.elementSize.width;return e<=320?this.$style.manchesterUnitedType1320:e<=460?this.$style.manchesterUnitedType1460:this.$style.manchesterUnitedType1},containerRightType1Class(){const e=this.elementSize.width;return e<=320?this.$style.containerRightType1320:e<=420?this.$style.containerRightType1420:this.$style.containerRightType1},teamNameWrapperType1Class(){const e=this.elementSize.width;return e<=960?this.$style.teamNameWrapperType1960:e<=1086?this.$style.teamNameWrapperType11086:this.$style.teamNameWrapperType1},ageWrapperType1Class(){const e=this.elementSize.width;return e<=680?this.$style.ageWrapperType1680:e<=1086?this.$style.ageWrapperType11086:this.$style.ageWrapperType1},ageType1Class(){return this.elementSize.width<=960?this.$style.ageType1960:this.$style.ageType1},playedGamesWrapperType1Class(){const e=this.elementSize.width;return e<=680?this.$style.playedGamesWrapperType1680:e<=960?this.$style.playedGamesWrapperType1960:this.$style.playedGamesWrapperType1},playedGamesType1Class(){const e=this.elementSize.width;return e<=540?this.$style.playedGamesType1540:e<=960?this.$style.playedGamesType1960:e<=1086?this.$style.playedGamesType11086:this.$style.playedGamesType1},playedMinutesWrapperType1Class(){return this.elementSize.width<=1086?this.$style.playedMinutesWrapperType11086:this.$style.playedMinutesWrapperType1},playedMinutesType1Class(){return this.elementSize.width<=680?this.$style.playedMinutesType1680:this.$style.playedMinutesType1},block02Type1Class(){const e=this.elementSize.width;return e<=320?this.$style.block02Type1320:e<=350?this.$style.block02Type1350:e<=680?this.$style.block02Type1680:this.$style.block02Type1},leagueNameWrapperType1Class(){const e=this.elementSize.width;return e<=680?this.$style.leagueNameWrapperType1680:e<=960?this.$style.leagueNameWrapperType1960:this.$style.leagueNameWrapperType1},leagueNameType1Class(){return this.elementSize.width<=960?this.$style.leagueNameType1960:this.$style.leagueNameType1},numberOfVideosType1Class(){const e=this.elementSize.width;return e<=680?this.$style.numberOfVideosType1680:e<=1232?this.$style.numberOfVideosType11232:this.$style.numberOfVideosType1},containerLeftType1Class(){const e=this.elementSize.width;return e<=320?this.$style.containerLeftType1320:e<=350?this.$style.containerLeftType1350:e<=680?this.$style.containerLeftType1680:this.$style.containerLeftType1},positionContainertype1Class(){const e=this.elementSize.width;return e<=380?this.$style.positionContainertype1380:e<=420?this.$style.positionContainertype1420:e<=680?this.$style.positionContainertype1680:this.$style.positionContainertype1},rowTeamClass(){const e=this.elementSize.width;return e<=320?this.$style.rowTeam320:e<=350?this.$style.rowTeam350:e<=420?this.$style.rowTeam420:e<=460?this.$style.rowTeam460:this.$style.rowTeam},containerBtnVideosClass(){return this.$style.containerBtnVideos},numberOfVideosClass(){return this.elementSize.width<=620?this.$style.numberOfVideos620:this.$style.numberOfVideos},block02Class(){const e=this.elementSize.width;return e<=420?this.$style.block02420:e<=620?this.$style.block02620:e<=960?this.$style.block02960:this.$style.block02},imgPlayerIconClass(){const e=this.elementSize.width;return e<=420?this.$style.imgPlayerIcon420:e<=460?this.$style.imgPlayerIcon460:this.$style.imgPlayerIcon},manchesterUnitedClass(){const e=this.elementSize.width;return e<=360?this.$style.manchesterUnited360:e<=420?this.$style.manchesterUnited420:e<=460?this.$style.manchesterUnited460:this.$style.manchesterUnited},containerRightClass(){const e=this.elementSize.width;return e<=420?this.$style.containerRight420:e<=960?this.$style.containerRight960:this.$style.containerRight},playerContainerType1Class(){const e=this.elementSize.width;return e<=320?this.$style.playerContainerType1320:e<=460?this.$style.playerContainerType1460:this.$style.playerContainerType1},playerContainerClass(){const e=this.elementSize.width;return e<=420?this.$style.playerContainer420:e<=460?this.$style.playerContainer460:this.$style.playerContainer},iconFavoritesClass(){return this.elementSize.width<=420?this.$style.iconFavorites420:this.$style.iconFavorites},iconFavoritesType1Class(){return this.elementSize.width<=320?this.$style.iconFavoritesType1320:this.$style.iconFavoritesType1},containerLeftClass(){const e=this.elementSize.width;return e<=420?this.$style.containerLeft420:e<=620?this.$style.containerLeft620:this.$style.containerLeft},positionContainerClass(){return this.elementSize.width<=620?this.$style.positionContainer620:this.$style.positionContainer},rowwPlayerClass(){const e=this.elementSize.width;return e<=420?this.$style.rowwPlayer420:e<=460?this.$style.rowwPlayer460:e<=960?this.$style.rowwPlayer960:this.$style.rowwPlayer}},setup(){const e=t.ref("myDivRef2"),{elementSize:a}=Vy(e);return{myDivRef2:e,elementSize:a}},props:{canPlayVideos:{type:Boolean,default:!1},type:{type:Number,default:0},typeView:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},background:{type:String,default:"#172531"},height:{type:String,default:"35px"},fontColor:{type:String,default:"#F4F4F4"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"},data:{type:Object,default:()=>{}},colorArrow:{type:String,default:"#D9D9D9"},buttonTextValue:{type:String,default:"Ver videos"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"13px"},iconSizeMini:{type:String,default:"13px"},iconPosition:{type:String,default:"left"},buttonWidth:{type:String,default:"93px"},buttonWidthMini:{type:String,default:"24px"},buttonHeightMini:{type:String,default:"24px"},buttonHeight:{type:String,default:"30px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#55636e"},buttonFontSize:{type:String,default:"10px"}},data:()=>({expand:!1}),methods:{clickExpand(e){this.$emit("expand",{expand:!this.isExpanded,id:e})},emitEventMedia(e){this.$emit("mediadata",e)}}},dH=()=>{t.useCssVars(e=>({"3be78218":e.height,"7193659f":e.background,"2a8119a1":e.fontSize,"24c329c3":e.fontColor,"77fbad04":e.fontFamily}))},uH=CC.setup;CC.setup=uH?(e,a)=>(dH(),uH(e,a)):dH;const WCt={ref:"myDivRef2",style:{"border-left":"rgba(13,29,41,0.7) 1px solid","border-right":"rgba(13,29,41,0.7) 1px solid"}},qCt=["src"],YCt=["src"],ZCt=["src"],JCt=["src"],XCt=["fill"],KCt=["fill"],QCt=["src"],eTt=["src"],tTt=["fill"],nTt=["fill"],aTt=["src"],rTt=["src"],iTt=["src"],oTt=["src"],sTt=["fill"],lTt=["fill"];function cTt(e,a,i,N,L,u){const g=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",WCt,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.rowwPlayerClass),id:"container-row-player"},[t.createElementVNode("div",{class:t.normalizeClass(u.containerLeftClass),id:"container-left"},[t.createElementVNode("div",{class:t.normalizeClass(u.positionContainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.numberPosition)},t.toDisplayString(i.data.position),3)],2),t.createElementVNode("div",{class:t.normalizeClass(u.playerContainerClass)},[t.createElementVNode("img",{class:t.normalizeClass(u.imgPlayerIconClass),src:i.data.player_photo},null,10,qCt),t.createElementVNode("div",{class:t.normalizeClass(u.manchesterUnitedClass)},[N.elementSize.width<=420?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.data.player_short),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(i.data.player_name),1)],64))],2),N.elementSize.width<=420?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.chivasIcon),alt:"",src:i.data.team_logo},null,10,YCt)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(u.containerRightClass),id:"container-right"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01)},[N.elementSize.width>420?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.nameTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgTeamIcon),alt:"",src:i.data.team_logo},null,10,ZCt),N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamName)},t.toDisplayString(i.data.team_abrev),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),N.elementSize.width>730?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.position)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.dfC)},t.toDisplayString(i.data.player_position),3)],2)):t.createCommentVNode("",!0),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.age)},t.toDisplayString(i.data.player_age),3)):t.createCommentVNode("",!0),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(e.$style.country)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.manchesterUnitedIcon),alt:"",src:i.data.player_country_flag},null,10,JCt)],2)):t.createCommentVNode("",!0),N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(e.$style.playedGames)},t.toDisplayString(i.data.player_games),3)):t.createCommentVNode("",!0),N.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:5,class:t.normalizeClass(e.$style.playedMinutes)},t.toDisplayString(i.data.player_min),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(u.block02Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptions)},[N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.leagueName)},t.toDisplayString(i.data.total),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(u.containerBtnVideosClass)},[i.canPlayVideos?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[N.elementSize.width>635?(t.openBlock(),t.createBlock(g,{key:0,icon:i.iconVideos,"icon-size":i.iconSize,"icon-position":i.iconPosition,width:i.buttonWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.buttonTextValue,"font-size":i.buttonFontSize,onClick:a[0]||(a[0]=n=>u.emitEventMedia(i.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(t.openBlock(),t.createBlock(g,{key:1,mini:!0,icon:i.iconVideos,"icon-size":i.iconSizeMini,"icon-position":i.iconPosition,width:i.buttonWidthMini,height:i.buttonHeightMini,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"font-size":i.buttonFontSize,onClick:a[1]||(a[1]=n=>u.emitEventMedia(i.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"]))],64)):t.createCommentVNode("",!0),N.elementSize.width<=635?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(u.numberOfVideosClass)},t.toDisplayString(i.data.total),3)):t.createCommentVNode("",!0)],2)],2),(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,i.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:i.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:a[2]||(a[2]=n=>u.clickExpand(i.data.id))},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:i.colorArrow},null,8,KCt)],10,XCt))],2)],2)],2)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(u.rowTeamClass),style:t.normalizeStyle(N.elementSize.width>540?"border-bottom: 1px solid rgba(255, 255, 255, 0.1)":""),id:"container-row-player"},[t.createElementVNode("div",{class:t.normalizeClass(u.containerLeftType1Class),id:"container-left"},[t.createElementVNode("div",{class:t.normalizeClass(u.positionContainertype1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.numberPositionType1)},t.toDisplayString(i.data.position),3),t.createElementVNode("div",{class:t.normalizeClass(u.iconFavoritesType1Class)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIconType1),alt:"",src:i.data.team_logo},null,10,QCt)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(u.playerContainerType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(i.typeView==0?e.$style.tijuanaWrapperType1:e.$style.tijuanaWrapperType1NoBg)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.tijuanaIconType1),alt:"",src:i.data.team_logo},null,10,eTt)],2),t.createElementVNode("div",{class:t.normalizeClass(u.manchesterUnitedType1Class)},t.toDisplayString(i.data.team_abrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(u.containerRightType1Class),id:"container-right"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01TitlesType1)},[N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.teamNameWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamNameType1)},[t.createTextVNode(" C/"+t.toDisplayString(i.data.frequency)+" ",1),i.data.category!=2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("min")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("segs")],64))],2)],2)):t.createCommentVNode("",!0),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(u.ageWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(u.ageType1Class)},t.toDisplayString(i.data.promthistournament),3)],2)):t.createCommentVNode("",!0),N.elementSize.width>1086?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(u.playedGamesWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(u.playedGamesType1Class)},t.toDisplayString(i.data.promlasttournament),3)],2)):t.createCommentVNode("",!0),N.elementSize.width>770?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(u.playedMinutesWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(u.playedMinutesType1Class)},t.toDisplayString(i.data.team_games),3)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(u.block02Type1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptionsType1)},[t.createElementVNode("div",{class:t.normalizeClass(u.leagueNameWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(u.leagueNameType1Class)},t.toDisplayString(i.data.total),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerBtnVideosType1)},[N.elementSize.width>679&&i.canPlayVideos?(t.openBlock(),t.createBlock(g,{key:0,icon:i.iconVideos,"icon-size":i.iconSize,"icon-position":i.iconPosition,width:i.buttonWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.buttonTextValue,"font-size":i.buttonFontSize,onClick:a[3]||(a[3]=n=>u.emitEventMedia(i.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(t.openBlock(),t.createBlock(g,{key:1,mini:!0,icon:i.iconVideos,"icon-size":i.iconSizeMini,"icon-position":i.iconPosition,width:i.buttonWidthMini,height:i.buttonHeightMini,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"font-size":i.buttonFontSize,onClick:a[4]||(a[4]=n=>u.emitEventMedia(i.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),t.createElementVNode("div",{class:t.normalizeClass(u.numberOfVideosType1Class)},t.toDisplayString(i.data.total),3)],2)],2),(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,i.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:i.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:a[5]||(a[5]=n=>u.clickExpand(i.data.id))},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:i.colorArrow},null,8,nTt)],10,tTt))],2)],2)],6)):t.createCommentVNode("",!0),i.type==2?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(u.rowwPlayerClass),id:"container-row-player"},[t.createElementVNode("div",{class:t.normalizeClass(u.containerLeftClass),id:"container-left"},[t.createElementVNode("div",{class:t.normalizeClass(u.positionContainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.numberPosition)},t.toDisplayString(i.data.position),3)],2),t.createElementVNode("div",{class:t.normalizeClass(u.playerContainerClass)},[t.createElementVNode("img",{class:t.normalizeClass(u.imgPlayerIconClass),src:i.data.player_photo},null,10,aTt),t.createElementVNode("div",{class:t.normalizeClass(u.manchesterUnitedClass)},t.toDisplayString(i.data.player_name),3),N.elementSize.width<=420?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.chivasIcon),alt:"",src:i.data.team_logo},null,10,rTt)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(u.containerRightClass),id:"container-right"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01)},[N.elementSize.width>420?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.nameTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgTeamIcon),alt:"",src:i.data.team_logo},null,10,iTt),N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamName)},t.toDisplayString(i.data.team_abrev),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),N.elementSize.width>730?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.position)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.dfC)},t.toDisplayString(i.data.player_position),3)],2)):t.createCommentVNode("",!0),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.age)},t.toDisplayString(i.data.player_age),3)):t.createCommentVNode("",!0),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(e.$style.country)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.manchesterUnitedIcon),alt:"",src:i.data.player_country_flag},null,10,oTt)],2)):t.createCommentVNode("",!0),N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(e.$style.playedGames)},t.toDisplayString(i.data.player_games),3)):t.createCommentVNode("",!0),N.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:5,class:t.normalizeClass(e.$style.playedMinutes)},t.toDisplayString(i.data.player_min),3)):t.createCommentVNode("",!0),N.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:6,class:t.normalizeClass(e.$style.playedMinutes)},t.toDisplayString(i.data.league_name),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(u.block02Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptions)},[t.createElementVNode("div",{class:t.normalizeClass(u.containerBtnVideosClass)},[i.canPlayVideos?(t.openBlock(),t.createBlock(g,{key:0,icon:i.iconVideos,"icon-size":i.iconSize,"icon-position":i.iconPosition,width:N.elementSize.width<=680?"83px":i.buttonWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.buttonTextValue,"font-size":i.buttonFontSize,onClick:a[6]||(a[6]=n=>u.emitEventMedia(i.data)),style:t.normalizeStyle(N.elementSize.width<=680?N.elementSize.width<=420?"margin-right: 35px;":"margin-right: 0px;":"")},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size","style"])):t.createCommentVNode("",!0)],2)],2),(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,i.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:i.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:a[7]||(a[7]=n=>u.clickExpand(i.data.id))},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:i.colorArrow},null,8,lTt)],10,sTt))],2)],2)],2)):t.createCommentVNode("",!0)],512)}const hH=Jr(CC,[["render",cTt],["__cssModules",{$style:GCt}]]),dTt=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},TC={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))}}},pH=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},fH=TC.setup;TC.setup=fH?(e,a)=>(pH(),fH(e,a)):pH;const uTt=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),hTt=["src"],pTt={key:1,class:"text"},fTt=["src"],mTt={class:"stats"},gTt=uTt(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),yTt={class:"numstats"},vTt={class:"leyend"};function _Tt(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",L.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([u.customStyle,L.status&&i.typeOnOff&&u.customActive]),onClick:a[0]||(a[0]=(...g)=>u.btnClick&&u.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,hTt)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",pTt,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,fTt)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>u.btnClick&&u.btnClick(...g))},[t.createElementVNode("div",mTt,[gTt,t.createElementVNode("div",yTt,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",vTt,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const bTt=dTt(TC,[["render",_Tt],["__scopeId","data-v-fb269a1e"]]),xTt=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},SC={components:{GSCButton:bTt},props:{hiddenButtonAll:{type:Boolean,default:!1},teamId:{type:Number,default:0},height:{type:String,default:"71px"},backgroundColor:{type:String,default:"#0d1d29"},containBorderType:{type:String,default:"solid"},containBorderWidth:{type:Number,default:0},containBorderColor:{type:String,default:""},componentontainBorderRadius:{type:String,default:"0px"},teamBorderType:{type:String,default:"solid"},teamBorderWidth:{type:Number,default:1},teamBorderColor:{type:String,default:"#566068"},teamBorderRadius:{type:String,default:"43px"},teamHeight:{type:String,default:"43px"},teamWidth:{type:String,default:"43px"},data:{type:Array,default:()=>[]}},data(){return{teamselect:this.teamId,scrollBar:!1}},watch:{teamId:{handler:function(e){this.teamselect=e},immediate:!0}},computed:{centerTextCustom(){return this.hiddenButtonAll&&!this.scrollBar?"center":"left"},marginCustom(){return this.hiddenButtonAll?"0px":"12px"},customStyleContain(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.containBorderRadius,border:`${this.containBorderType} ${this.containBorderWidth}px ${this.containBorderColor}`}},customStyleTeam(){return{height:this.teamHeight,width:this.teamWidth,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.teamBorderType} ${this.teamBorderWidth}px ${this.teamBorderColor}`}}},methods:{checkIfElementHasScroll(){const e=this.$refs.container.querySelector("#panelteams");e.scrollWidth>e.clientWidth?this.scrollBar=!0:this.scrollBar=!1},btnTeamClick(e){this.$emit("clickTeam",e),this.teamselect=e},click(){this.$emit("clickAll",0),this.teamselect=0}},mounted(){this.checkIfElementHasScroll(),window.addEventListener("resize",this.checkIfElementHasScroll)},beforeUnmount(){window.removeEventListener("resize",this.checkIfElementHasScroll)}},mH=()=>{t.useCssVars(e=>({"132156c0":e.centerTextCustom,"096d3ecc":e.marginCustom}))},gH=SC.setup;SC.setup=gH?(e,a)=>(mH(),gH(e,a)):mH;const wTt={id:"panelteams",class:"gsc-filterperteam__panel-teams",ref:"panel"},kTt={class:"gsc-filterperteam__panel-teams__cont-teams"},CTt=["onClick"],TTt=["src","alt","title"];function STt(e,a,i,N,L,u){const g=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",{class:"gsc-filterperteam",ref:"container",style:t.normalizeStyle(u.customStyleContain)},[t.createElementVNode("div",wTt,[t.createElementVNode("div",kTt,[i.hiddenButtonAll?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(u.customStyleTeam),class:t.normalizeClass(["gsc-filterperteam__panel-teams__cont-teams__button-all",this.teamselect!==0?"--disabled":""])},[t.createVNode(g,{"text-value":"Todos",width:"76px",height:"28px","font-family":"Poppins-Light","font-size":"13px","border-color":"#cbee6b","border-type":"solid","border-width":"1","background-color":"#2A3641","border-radius":"64px",onClick:u.click},null,8,["onClick"])],6)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.data,(n,b)=>(t.openBlock(),t.createElementBlock("div",{key:b,style:t.normalizeStyle(u.customStyleTeam),class:t.normalizeClass([n.id==L.teamselect?"colorselect":"","gsc-filterperteam__panel-teams__cont-teams__btn-team hover-team"]),onClick:m=>u.btnTeamClick(n.id)},[t.createElementVNode("img",{src:n.logo,alt:n.name,title:n.name},null,8,TTt)],14,CTt))),128))])],512)],4)}const ETt=xTt(SC,[["render",STt],["__scopeId","data-v-ab79352d"]]),ATt={tablePosition:"_tablePosition_j5t90_46",tablePositionWrapper:"_tablePositionWrapper_j5t90_62",imgHenrryIcon:"_imgHenrryIcon_j5t90_71",americaIcon:"_americaIcon_j5t90_79",playerPhoto:"_playerPhoto_j5t90_91",toniKroos:"_toniKroos_j5t90_100",shapeIcon:"_shapeIcon_j5t90_111",menuiconsTeams:"_menuiconsTeams_j5t90_117",component31:"_component31_j5t90_126",playerName:"_playerName_j5t90_137",icnPlayIcon:"_icnPlayIcon_j5t90_145",goles:"_goles_j5t90_153",americaIcon1:"_americaIcon1_j5t90_160",teamsAmerica:"_teamsAmerica_j5t90_174",containerData:"_containerData_j5t90_180",shapeIcon1:"_shapeIcon1_j5t90_188",icnExpand1:"_icnExpand1_j5t90_194",icnExpand:"_icnExpand_j5t90_194",playerData:"_playerData_j5t90_214",playerInfo:"_playerInfo_j5t90_225",headerTop:"_headerTop_j5t90_240",playerRow:"_playerRow_j5t90_254",groupsLeague:"_groupsLeague_j5t90_265",text:"_text_j5t90_274",btnViewFullList:"_btnViewFullList_j5t90_282",headerTops:"_headerTops_j5t90_299",btnVideosOptions:"_btnVideosOptions_j5t90_371",position:"_position_j5t90_548",positionWrapper:"_positionWrapper_j5t90_560",imgNecaxaIcon:"_imgNecaxaIcon_j5t90_568",teamLogo:"_teamLogo_j5t90_574",teamPhoto:"_teamPhoto_j5t90_582",name:"_name_j5t90_590",icnPlayIconType1:"_icnPlayIconType1_j5t90_598",verVideosType1:"_verVideosType1_j5t90_605",btnVideosOptionsType1:"_btnVideosOptionsType1_j5t90_611",btnVideosOptions1:"_btnVideosOptions1_j5t90_623",leftContainer:"_leftContainer_j5t90_635",shapeIconType1:"_shapeIconType1_j5t90_644",icnExpandType1:"_icnExpandType1_j5t90_649",arrowExpand:"_arrowExpand_j5t90_659",containerInfo:"_containerInfo_j5t90_667",headerTopTeam:"_headerTopTeam_j5t90_679",containerHeader:"_containerHeader_j5t90_693",goles1:"_goles1_j5t90_702",golesType1:"_golesType1_j5t90_705",golesWrapper:"_golesWrapper_j5t90_710",btnViewAll:"_btnViewAll_j5t90_719",headerTopsTeams:"_headerTopsTeams_j5t90_736",arrowExpandIcon:"_arrowExpandIcon_j5t90_853",rotate:"_rotate_j5t90_858"},EC={components:{GSCButton:cH},props:{type:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},canPlayVideos:{type:Boolean,default:!1},categoryName:{type:String,default:""},categoryId:{type:String,default:""},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0d1d29"},backgroundColorHeader:{type:String,default:"#183143"},fontColorName:{type:String,default:"#F4F4F4"},fontSizeName:{type:String,default:"14px"},fontFamilyName:{type:String,default:"Poppins-Regular"},fontColorTopNum:{type:String,default:"#FFFFFF"},fontSizeTopNum:{type:String,default:"96px"},fontFamilyTopNum:{type:String,default:"Oswald-Bold"},fontColorCategory:{type:String,default:"#FFFFFF"},fontSizeCategory:{type:String,default:"12px"},fontFamilyCategory:{type:String,default:"Poppins-Regular"},opacityColorTopNum:{type:Number,default:.09},borderColorCategory:{type:String,default:"#cbee6b"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"18px"},iconPosition:{type:String,default:"left"},colorArrow:{type:String,default:"#D9D9D9"},buttonWidth:{type:String,default:"fit-content"},buttonMaxWidth:{type:String,default:"180px"},buttonHeight:{type:String,default:"24px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#cbee6b"},buttonFontSize:{type:String,default:"12px"}},data:()=>({expand:!1}),methods:{viewProfile(e){this.$emit("play",e)},clickMore(e){this.$emit("more",e)},clickExpand(e){this.$emit("expand",{expand:!this.isExpanded,id:e})},clickFav(e){this.$emit("fav",e)},clickEventMedia(e){this.$emit("mediadata",e)}}},yH=()=>{t.useCssVars(e=>({"30385b57":e.fontSizeTopNum,fc47d98c:e.fontFamilyTopNum,"3a371dcf":e.fontColorTopNum,49849102:e.opacityColorTopNum,"104c81e9":e.fontColorName,"461453d8":e.fontFamilyName,a9e0fd1e:e.fontSizeName,"905d4ea8":e.backgroundColorHeader,"8eaba7f2":e.fontFamilyCategory,"4114e0e4":e.fontSizeCategory,73263548:e.fontColorCategory,"29b8cbc2":e.borderColorCategory}))},vH=EC.setup;EC.setup=vH?(e,a)=>(yH(),vH(e,a)):yH;const MTt=["src"],ITt=["src"],PTt=["src"],NTt=["src"],BTt=["fill"],OTt=["fill"],zTt=["src"],LTt=["fill"],FTt=["fill"];function DTt(e,a,i,N,L,u){const g=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.headerTops)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerRow),id:"player-row"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerTop)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerPhoto),id:"container-player-photp"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.tablePositionWrapper)},[t.createElementVNode("b",{class:t.normalizeClass(e.$style.tablePosition)},t.toDisplayString(i.data.top),3)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHenrryIcon),alt:"",src:i.data.photo},null,10,MTt),t.createElementVNode("img",{class:t.normalizeClass(e.$style.americaIcon),alt:"",src:i.data.logo},null,10,ITt)],2),t.createElementVNode("main",{class:t.normalizeClass(e.$style.playerInfo),id:"container-player-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerName)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.toniKroos)},t.toDisplayString(i.data.name),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[i.canPlayVideos?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(g,{"icon-size":i.iconSize,"icon-position":i.iconPosition,width:i.buttonWidth,"button-max-width":i.buttonMaxWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.data.total+" "+i.categoryName.toLowerCase(),"font-size":i.buttonFontSize,onClick:a[0]||(a[0]=n=>u.clickEventMedia(i.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamsAmerica)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.americaIcon1),alt:"",src:i.data.logo},null,10,PTt)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(g,{icon:"","icon-size":i.iconSize,"icon-position":i.iconPosition,width:i.buttonWidth,"button-max-width":i.buttonMaxWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.data.total+" "+i.categoryName.toLowerCase(),"font-size":i.buttonFontSize},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamsAmerica)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.americaIcon1),alt:"",src:i.data.logo},null,10,NTt)],2)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.icnExpand),onClick:a[1]||(a[1]=n=>u.clickExpand(i.data.player_id))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,i.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:i.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:i.colorArrow},null,8,OTt)],10,BTt))],2)],2)],2)],2)],2)],2)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.headerTopsTeams)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerHeader),id:"header-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerTopTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamPhoto),id:"container-team"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.positionWrapper)},[t.createElementVNode("b",{class:t.normalizeClass(e.$style.position)},t.toDisplayString(i.data.top),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamLogo)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgNecaxaIcon),alt:"",src:i.data.logo},null,10,zTt)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerInfo)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leftContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(i.data.name_team),3),t.createVNode(g,{"icon-size":i.iconSize,"icon-position":i.iconPosition,width:i.buttonWidth,"button-max-width":i.buttonMaxWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.data.total+" "+i.categoryName.toLowerCase(),"font-size":i.buttonFontSize,onClick:a[2]||(a[2]=n=>u.clickEventMedia(i.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideosOptions1)},[t.createVNode(g,{"icon-size":i.iconSize,"icon-position":i.iconPosition,width:i.buttonWidth,"button-max-width":i.buttonMaxWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.data.total+" "+i.categoryName.toLowerCase(),"font-size":i.buttonFontSize,onClick:a[3]||(a[3]=n=>u.clickEventMedia(i.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideosType1)},t.toDisplayString(i.data.total),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.arrowExpand),onClick:a[4]||(a[4]=n=>u.clickExpand(i.data.player_id))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,i.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:i.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:i.colorArrow},null,8,FTt)],10,LTt))],2)],2)],2)],2)],2)):t.createCommentVNode("",!0)])}const VTt=Jr(EC,[["render",DTt],["__cssModules",{$style:ATt}]]),RTt=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},AC={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))}}},_H=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},bH=AC.setup;AC.setup=bH?(e,a)=>(_H(),bH(e,a)):_H;const $Tt=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),jTt=["src"],UTt={key:1,class:"text"},HTt=["src"],GTt={class:"stats"},WTt=$Tt(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),qTt={class:"numstats"},YTt={class:"leyend"};function ZTt(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",L.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([u.customStyle,L.status&&i.typeOnOff&&u.customActive]),onClick:a[0]||(a[0]=(...g)=>u.btnClick&&u.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,jTt)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",UTt,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,HTt)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>u.btnClick&&u.btnClick(...g))},[t.createElementVNode("div",GTt,[WTt,t.createElementVNode("div",qTt,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",YTt,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const JTt=RTt(AC,[["render",ZTt],["__scopeId","data-v-fb269a1e"]]),Dmn="",Vmn="",XTt={equipo:"_equipo_h5n0e_38",atlasSeleccin:"_atlasSeleccin_h5n0e_43",equipoAtlasSeleccinMexi:"_equipoAtlasSeleccinMexi_h5n0e_47",aos:"_aos_h5n0e_51",span12:"_span12_h5n0e_55",nacionalidadMex:"_nacionalidadMex_h5n0e_58",manchesterUnited:"_manchesterUnited_h5n0e_61",manchesterUnited12:"_manchesterUnited12_h5n0e_68",containerInfo:"_containerInfo_h5n0e_78",verPerfil12:"_verPerfil12_h5n0e_87",btnProfile:"_btnProfile_h5n0e_96",containerButton:"_containerButton_h5n0e_112",dataContainer:"_dataContainer_h5n0e_119",expandedInfoPlayer:"_expandedInfoPlayer_h5n0e_129",containerDataBg:"_containerDataBg_h5n0e_219",containerDataSm:"_containerDataSm_h5n0e_230",span:"_span_h5n0e_55",manchesterUnited14:"_manchesterUnited14_h5n0e_241",filter:"_filter_h5n0e_246",verPerfil:"_verPerfil_h5n0e_87",manchesterUnited8:"_manchesterUnited8_h5n0e_267",manchesterUnitedParent1:"_manchesterUnitedParent1_h5n0e_273",manchesterUnited1:"_manchesterUnited1_h5n0e_68",manchesterUnitedParent:"_manchesterUnitedParent_h5n0e_273",frameDiv:"_frameDiv_h5n0e_295",infoExpanded:"_infoExpanded_h5n0e_303",countryFlag:"_countryFlag_h5n0e_456"},MC={components:{GSCButton:JTt},props:{background:{type:String,default:"#172531"},type:{type:Number,default:1},viewButton:{type:Boolean,default:!0},viewTeam:{type:Boolean,default:!0},viewAge:{type:Boolean,default:!0},viewNationality:{type:Boolean,default:!0},viewPosition:{type:Boolean,default:!0},viewGames:{type:Boolean,default:!0},viewMin:{type:Boolean,default:!0},viewGoals:{type:Boolean,default:!0},viewEffectiveness:{type:Boolean,default:!0},height:{type:String,default:"134px"},fontColor:{type:String,default:"#ffffffb3"},fontColorValue:{type:String,default:"#ffffff"},fontFamily:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"10px"},additionalClass:{type:String,default:""},data:{type:Object,default:()=>{}}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=Vy(e);return{myDivRef:e,elementSize:a}},data(){return{}},computed:{},methods:{viewProfile(e){this.$emit("viewprofile",e)}}},xH=()=>{t.useCssVars(e=>({"941c143a":e.fontFamily,"1e80c904":e.fontColor,"095c4a66":e.fontColorValue,"7ce20e40":e.fontSize,a0eca304:e.background}))},wH=MC.setup;MC.setup=wH?(e,a)=>(xH(),wH(e,a)):xH;const Fd=e=>(t.pushScopeId("data-v-07d09a87"),e=e(),t.popScopeId(),e),KTt={ref:"myDivRef"},QTt=["src"],eSt=Fd(()=>t.createElementVNode("span",null,"Posición en la tabla: ",-1)),tSt=Fd(()=>t.createElementVNode("span",null,"Goles anotados: ",-1)),nSt=Fd(()=>t.createElementVNode("span",null,"Goles recibidos: ",-1)),aSt=Fd(()=>t.createElementVNode("span",null,"Partidos jugados: ",-1)),rSt=Fd(()=>t.createElementVNode("span",null,"Efectividad de pases: ",-1)),iSt=Fd(()=>t.createElementVNode("span",null,"xG: ",-1)),oSt=Fd(()=>t.createElementVNode("span",null,"Efectividad de pases: ",-1)),sSt=Fd(()=>t.createElementVNode("span",null,"xG: ",-1)),lSt=Fd(()=>t.createElementVNode("span",null,"Posición en la tabla: ",-1)),cSt=Fd(()=>t.createElementVNode("span",null,"Goles anotados: ",-1)),dSt=Fd(()=>t.createElementVNode("span",null,"Goles recibidos: ",-1)),uSt=Fd(()=>t.createElementVNode("span",null,"Partidos jugados: ",-1)),hSt=Fd(()=>t.createElementVNode("span",null,"Efectividad de pases: ",-1)),pSt=Fd(()=>t.createElementVNode("span",null,"xG: ",-1));function fSt(e,a,i,N,L,u){const g=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",KTt,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.expandedInfoPlayer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.dataContainer),id:"data-container"},[t.createElementVNode("div",{class:t.normalizeClass([e.$style.containerInfo,i.additionalClass]),id:"container-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},[i.viewTeam?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(e.$style.equipoAtlasSeleccinMexi)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.equipo)},"Equipo: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.atlasSeleccin)},t.toDisplayString(i.data.teams),3)],2)):t.createCommentVNode("",!0),i.viewAge?(t.openBlock(),t.createElementBlock("p",{key:1,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.equipo)},"Edad: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aos)},t.toDisplayString(i.data.age)+" años",3),t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)}," ("+t.toDisplayString(i.data.dataofbirth)+")",3)],2)):t.createCommentVNode("",!0),i.viewNationality?(t.openBlock(),t.createElementBlock("p",{key:2,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"Nacionalidad: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aos)},[t.createTextVNode(t.toDisplayString(i.data.nationality.substring(0,3).toUpperCase())+" ",1),t.createElementVNode("div",{class:t.normalizeClass(e.$style.countryFlag)},[t.createElementVNode("img",{src:i.data.countryFlag},null,8,QTt)],2)],2)],2)):t.createCommentVNode("",!0),i.viewPosition?(t.openBlock(),t.createElementBlock("p",{key:3,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"Posición: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aos)},t.toDisplayString(i.data.position),3)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited12)},[i.viewGames?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"partidos Jugados: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aos)},t.toDisplayString(i.data.games),3)],2)):t.createCommentVNode("",!0),i.viewMin?(t.openBlock(),t.createElementBlock("p",{key:1,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"Minutos Jugados: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aos)},t.toDisplayString(i.data.min),3)],2)):t.createCommentVNode("",!0),i.viewGoals?(t.openBlock(),t.createElementBlock("p",{key:2,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},t.toDisplayString(i.data.category)+": ",3),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aos)},t.toDisplayString(i.data.goals),3)],2)):t.createCommentVNode("",!0),i.viewEffectiveness?(t.openBlock(),t.createElementBlock("p",{key:3,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"Efectividad de pases: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aos)},t.toDisplayString(i.data.effectiveness.toFixed(0))+"%",3)],2)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerButton),id:"btn-container"},[i.viewButton?(t.openBlock(),t.createBlock(g,{key:0,style:t.normalizeStyle(i.additionalClass!=""&&N.elementSize.width>540?"margin-right: 50px":""),width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:a[0]||(a[0]=n=>u.viewProfile(i.data.id))},null,8,["style"])):t.createCommentVNode("",!0)],2)],2)],2)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.infoExpanded)},[t.createElementVNode("div",{class:t.normalizeClass([e.$style.containerDataBg,i.additionalClass])},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnitedParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[eSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.span)},t.toDisplayString(i.data.position),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[tSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.span)},t.toDisplayString(i.data.goals),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[nSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.span)},t.toDisplayString(i.data.goals_received),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[aSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.span)},t.toDisplayString(i.data.games_played),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnitedParent)},[i.viewEffectiveness?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited1)},[rSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.span)},t.toDisplayString(i.data.effectiveness.toFixed(0))+"%",3)],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[iSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.span)},t.toDisplayString(i.data.xg),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnitedParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[t.createElementVNode("span",null,t.toDisplayString(i.data.category)+": ",1),t.createElementVNode("span",{class:t.normalizeClass(e.$style.span)},t.toDisplayString(i.data.total),3)],2),i.viewEffectiveness?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited8)},[oSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.span)},t.toDisplayString(i.data.effectiveness)+"%",3)],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited8)},[sSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.span)},t.toDisplayString(i.data.xg),3)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerDataSm)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameDiv)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[lSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.span)},t.toDisplayString(i.data.position),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[cSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.span)},t.toDisplayString(i.data.goals),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[dSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.span)},t.toDisplayString(i.data.goals_received),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[uSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.span)},t.toDisplayString(i.data.games_played),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnitedParent1)},[i.viewEffectiveness?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited14)},[hSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.span)},t.toDisplayString(i.data.effectiveness.toFixed(0))+"%",3)],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[pSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.span)},t.toDisplayString(i.data.xg),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[t.createElementVNode("span",null,t.toDisplayString(i.data.category)+": ",1),t.createElementVNode("span",{class:t.normalizeClass(e.$style.span)},t.toDisplayString(i.data.total),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited8)},[t.createElementVNode("span",null,t.toDisplayString(i.data.category)+": ",1),t.createElementVNode("span",{class:t.normalizeClass(e.$style.span)},t.toDisplayString(i.data.total),3)],2)],2)],2),i.viewButton?(t.openBlock(),t.createBlock(g,{key:0,style:t.normalizeStyle(i.additionalClass!=""&&N.elementSize.width>540?"margin-right: 42px":""),width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:a[1]||(a[1]=n=>u.viewProfile(i.data.id))},null,8,["style"])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0)],512)}const kH=Jr(MC,[["render",fSt],["__cssModules",{$style:XTt}],["__scopeId","data-v-07d09a87"]]);/**
3574
+ `)):Y=R.stylize("[Circular]","special")),k(H)){if(Z&&G.match(/^\d+$/))return Y;(H=JSON.stringify(""+G)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(H=H.slice(1,-1),H=R.stylize(H,"name")):(H=H.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),H=R.stylize(H,"string"))}return H+": "+Y}function f(R){return Array.isArray(R)}function y(R){return typeof R=="boolean"}function w(R){return R===null}function x(R){return typeof R=="number"}function M(R){return typeof R=="string"}function k(R){return R===void 0}function T(R){return S(R)&&C(R)==="[object RegExp]"}function S(R){return typeof R=="object"&&R!==null}function A(R){return S(R)&&C(R)==="[object Date]"}function E(R){return S(R)&&(C(R)==="[object Error]"||R instanceof Error)}function P(R){return typeof R=="function"}function C(R){return Object.prototype.toString.call(R)}function z(R){return R<10?"0"+R.toString(10):R.toString(10)}g.debuglog=function(R){if(R=R.toUpperCase(),!v[R])if(_.test(R)){var j=b.pid;v[R]=function(){var q=g.format.apply(g,arguments);console.error("%s %d: %s",R,j,q)}}else v[R]=function(){};return v[R]},g.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},g.types=n(41088),g.isArray=f,g.isBoolean=y,g.isNull=w,g.isNullOrUndefined=function(R){return R==null},g.isNumber=x,g.isString=M,g.isSymbol=function(R){return typeof R=="symbol"},g.isUndefined=k,g.isRegExp=T,g.types.isRegExp=T,g.isObject=S,g.isDate=A,g.types.isDate=A,g.isError=E,g.types.isNativeError=E,g.isFunction=P,g.isPrimitive=function(R){return R===null||typeof R=="boolean"||typeof R=="number"||typeof R=="string"||typeof R=="symbol"||R===void 0},g.isBuffer=n(75272);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(R,j){return Object.prototype.hasOwnProperty.call(R,j)}g.log=function(){var R,j;console.log("%s - %s",(j=[z((R=new Date).getHours()),z(R.getMinutes()),z(R.getSeconds())].join(":"),[R.getDate(),I[R.getMonth()],j].join(" ")),g.format.apply(g,arguments))},g.inherits=n(6768),g._extend=function(R,j){if(!j||!S(j))return R;for(var q=Object.keys(j),$=q.length;$--;)R[q[$]]=j[q[$]];return R};var D=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function V(R,j){if(!R){var q=new Error("Promise was rejected with a falsy value");q.reason=R,R=q}return j(R)}g.promisify=function(R){if(typeof R!="function")throw new TypeError('The "original" argument must be of type Function');if(D&&R[D]){var j;if(typeof(j=R[D])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(j,D,{value:j,enumerable:!1,writable:!1,configurable:!0}),j}function j(){for(var q,$,G=new Promise(function(Y,X){q=Y,$=X}),Z=[],H=0;H<arguments.length;H++)Z.push(arguments[H]);Z.push(function(Y,X){Y?$(Y):q(X)});try{R.apply(this,Z)}catch(Y){$(Y)}return G}return Object.setPrototypeOf(j,Object.getPrototypeOf(R)),D&&Object.defineProperty(j,D,{value:j,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(j,m(R))},g.promisify.custom=D,g.callbackify=function(R){if(typeof R!="function")throw new TypeError('The "original" argument must be of type Function');function j(){for(var q=[],$=0;$<arguments.length;$++)q.push(arguments[$]);var G=q.pop();if(typeof G!="function")throw new TypeError("The last argument must be of type Function");var Z=this,H=function(){return G.apply(Z,arguments)};R.apply(this,q).then(function(Y){b.nextTick(H.bind(null,null,Y))},function(Y){b.nextTick(V.bind(null,Y,H))})}return Object.setPrototypeOf(j,Object.getPrototypeOf(R)),Object.defineProperties(j,m(R)),j}},5408:function(u,g,n){var b=n(13380);u.exports=function(m){return b("webgl",m)}},96632:function(u,g,n){var b=n(46492),m=n(63436),r=n(57916),v=n(99676),_=n(2304),c=v("Object.prototype.toString"),s=n(46672)(),o=typeof globalThis>"u"?n.g:globalThis,l=m(),d=v("String.prototype.slice"),h=Object.getPrototypeOf,p=v("Array.prototype.indexOf",!0)||function(y,w){for(var x=0;x<y.length;x+=1)if(y[x]===w)return x;return-1},f={__proto__:null};b(l,s&&_&&h?function(y){var w=new o[y];if(Symbol.toStringTag in w){var x=h(w),M=_(x,Symbol.toStringTag);if(!M){var k=h(x);M=_(k,Symbol.toStringTag)}f["$"+y]=r(M.get)}}:function(y){var w=new o[y],x=w.slice||w.set;x&&(f["$"+y]=r(x))}),u.exports=function(y){if(!y||typeof y!="object")return!1;if(!s){var w=d(c(y),8,-1);return p(l,w)>-1?w:w==="Object"&&function(x){var M=!1;return b(f,function(k,T){if(!M)try{k(x),M=d(T,1)}catch{}}),M}(y)}return _?function(x){var M=!1;return b(f,function(k,T){if(!M)try{"$"+k(x)===T&&(M=d(T,1))}catch{}}),M}(y):null}},67020:function(u,g,n){var b=n(38700),m=n(50896),r=b.instance();function v(h){this.local=this.regionalOptions[h||""]||this.regionalOptions[""]}v.prototype=new b.baseCalendar,m(v.prototype,{name:"Chinese",jdEpoch:17214255e-1,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(h,p){if(typeof h=="string"){var f=h.match(c);return f?f[0]:""}var y=this._validateYear(h),w=h.month(),x=""+this.toChineseMonth(y,w);return p&&x.length<2&&(x="0"+x),this.isIntercalaryMonth(y,w)&&(x+="i"),x},monthNames:function(h){if(typeof h=="string"){var p=h.match(s);return p?p[0]:""}var f=this._validateYear(h),y=h.month(),w=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][this.toChineseMonth(f,y)-1];return this.isIntercalaryMonth(f,y)&&(w="闰"+w),w},monthNamesShort:function(h){if(typeof h=="string"){var p=h.match(o);return p?p[0]:""}var f=this._validateYear(h),y=h.month(),w=["一","二","三","四","五","六","七","八","九","十","十一","十二"][this.toChineseMonth(f,y)-1];return this.isIntercalaryMonth(f,y)&&(w="闰"+w),w},parseMonth:function(h,p){h=this._validateYear(h);var f,y=parseInt(p);if(isNaN(y))p[0]==="闰"&&(f=!0,p=p.substring(1)),p[p.length-1]==="月"&&(p=p.substring(0,p.length-1)),y=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(p);else{var w=p[p.length-1];f=w==="i"||w==="I"}return this.toMonthIndex(h,y,f)},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(h,p){if(h.year&&(h=h.year()),typeof h!="number"||h<1888||h>2111)throw p.replace(/\{0\}/,this.local.name);return h},toMonthIndex:function(h,p,f){var y=this.intercalaryMonth(h);if(f&&p!==y||p<1||p>12)throw b.local.invalidMonth.replace(/\{0\}/,this.local.name);return y?!f&&p<=y?p-1:p:p-1},toChineseMonth:function(h,p){h.year&&(p=(h=h.year()).month());var f=this.intercalaryMonth(h);if(p<0||p>(f?12:11))throw b.local.invalidMonth.replace(/\{0\}/,this.local.name);return f?p<f?p+1:p:p+1},intercalaryMonth:function(h){return h=this._validateYear(h),l[h-l[0]]>>13},isIntercalaryMonth:function(h,p){h.year&&(p=(h=h.year()).month());var f=this.intercalaryMonth(h);return!!f&&f===p},leapYear:function(h){return this.intercalaryMonth(h)!==0},weekOfYear:function(h,p,f){var y,w=this._validateYear(h,b.local.invalidyear),x=d[w-d[0]],M=x>>9&4095,k=x>>5&15,T=31&x;(y=r.newDate(M,k,T)).add(4-(y.dayOfWeek()||7),"d");var S=this.toJD(h,p,f)-y.toJD();return 1+Math.floor(S/7)},monthsInYear:function(h){return this.leapYear(h)?13:12},daysInMonth:function(h,p){h.year&&(p=h.month(),h=h.year()),h=this._validateYear(h);var f=l[h-l[0]];if(p>(f>>13?12:11))throw b.local.invalidMonth.replace(/\{0\}/,this.local.name);return f&1<<12-p?30:29},weekDay:function(h,p,f){return(this.dayOfWeek(h,p,f)||7)<6},toJD:function(h,p,f){var y=this._validate(h,x,f,b.local.invalidDate);h=this._validateYear(y.year()),p=y.month(),f=y.day();var w=this.isIntercalaryMonth(h,p),x=this.toChineseMonth(h,p),M=function(k,T,S,A,E){var P,C,z;if(typeof k=="object")C=k,P=T||{};else{var I;if(!(typeof k=="number"&&k>=1888&&k<=2111))throw new Error("Lunar year outside range 1888-2111");if(!(typeof T=="number"&&T>=1&&T<=12))throw new Error("Lunar month outside range 1 - 12");if(!(typeof S=="number"&&S>=1&&S<=30))throw new Error("Lunar day outside range 1 - 30");typeof A=="object"?(I=!1,P=A):(I=!!A,P={}),C={year:k,month:T,day:S,isIntercalary:I}}z=C.day-1;var O,D=l[C.year-l[0]],V=D>>13;O=V&&(C.month>V||C.isIntercalary)?C.month:C.month-1;for(var R=0;R<O;R++)z+=D&1<<12-R?30:29;var j=d[C.year-d[0]],q=new Date(j>>9&4095,(j>>5&15)-1,(31&j)+z);return P.year=q.getFullYear(),P.month=1+q.getMonth(),P.day=q.getDate(),P}(h,x,f,w);return r.toJD(M.year,M.month,M.day)},fromJD:function(h){var p=r.fromJD(h),f=function(w,x,M,k){var T,S;if(typeof w=="object")T=w,S=x||{};else{if(!(typeof w=="number"&&w>=1888&&w<=2111))throw new Error("Solar year outside range 1888-2111");if(!(typeof x=="number"&&x>=1&&x<=12))throw new Error("Solar month outside range 1 - 12");if(!(typeof M=="number"&&M>=1&&M<=31))throw new Error("Solar day outside range 1 - 31");T={year:w,month:x,day:M},S={}}var A=d[T.year-d[0]],E=T.year<<9|T.month<<5|T.day;S.year=E>=A?T.year:T.year-1,A=d[S.year-d[0]];var P,C=new Date(A>>9&4095,(A>>5&15)-1,31&A),z=new Date(T.year,T.month-1,T.day);P=Math.round((z-C)/864e5);var I,O=l[S.year-l[0]];for(I=0;I<13;I++){var D=O&1<<12-I?30:29;if(P<D)break;P-=D}var V=O>>13;return!V||I<V?(S.isIntercalary=!1,S.month=1+I):I===V?(S.isIntercalary=!0,S.month=I):(S.isIntercalary=!1,S.month=I),S.day=1+P,S}(p.year(),p.month(),p.day()),y=this.toMonthIndex(f.year,f.month,f.isIntercalary);return this.newDate(f.year,y,f.day)},fromString:function(h){var p=h.match(_),f=this._validateYear(+p[1]),y=+p[2],w=!!p[3],x=this.toMonthIndex(f,y,w),M=+p[4];return this.newDate(f,x,M)},add:function(h,p,f){var y=h.year(),w=h.month(),x=this.isIntercalaryMonth(y,w),M=this.toChineseMonth(y,w),k=Object.getPrototypeOf(v.prototype).add.call(this,h,p,f);if(f==="y"){var T=k.year(),S=k.month(),A=this.isIntercalaryMonth(T,M),E=x&&A?this.toMonthIndex(T,M,!0):this.toMonthIndex(T,M,!1);E!==S&&k.month(E)}return k}});var _=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,c=/^\d?\d[iI]?/m,s=/^闰?十?[一二三四五六七八九]?月/m,o=/^闰?十?[一二三四五六七八九]?/m;b.calendars.chinese=v;var l=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],d=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},89792:function(u,g,n){var b=n(38700),m=n(50896);function r(v){this.local=this.regionalOptions[v||""]||this.regionalOptions[""]}r.prototype=new b.baseCalendar,m(r.prototype,{name:"Coptic",jdEpoch:18250295e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var _=this._validate(v,this.minMonth,this.minDay,b.local.invalidYear);return(v=_.year()+(_.year()<0?1:0))%4==3||v%4==-1},monthsInYear:function(v){return this._validate(v,this.minMonth,this.minDay,b.local.invalidYear||b.regionalOptions[""].invalidYear),13},weekOfYear:function(v,_,c){var s=this.newDate(v,_,c);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInMonth:function(v,_){var c=this._validate(v,_,this.minDay,b.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===13&&this.leapYear(c.year())?1:0)},weekDay:function(v,_,c){return(this.dayOfWeek(v,_,c)||7)<6},toJD:function(v,_,c){var s=this._validate(v,_,c,b.local.invalidDate);return(v=s.year())<0&&v++,s.day()+30*(s.month()-1)+365*(v-1)+Math.floor(v/4)+this.jdEpoch-1},fromJD:function(v){var _=Math.floor(v)+.5-this.jdEpoch,c=Math.floor((_-Math.floor((_+366)/1461))/365)+1;c<=0&&c--,_=Math.floor(v)+.5-this.newDate(c,1,1).toJD();var s=Math.floor(_/30)+1,o=_-30*(s-1)+1;return this.newDate(c,s,o)}}),b.calendars.coptic=r},55668:function(u,g,n){var b=n(38700),m=n(50896);function r(_){this.local=this.regionalOptions[_||""]||this.regionalOptions[""]}r.prototype=new b.baseCalendar,m(r.prototype,{name:"Discworld",jdEpoch:17214255e-1,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(_){return this._validate(_,this.minMonth,this.minDay,b.local.invalidYear),!1},monthsInYear:function(_){return this._validate(_,this.minMonth,this.minDay,b.local.invalidYear),13},daysInYear:function(_){return this._validate(_,this.minMonth,this.minDay,b.local.invalidYear),400},weekOfYear:function(_,c,s){var o=this.newDate(_,c,s);return o.add(-o.dayOfWeek(),"d"),Math.floor((o.dayOfYear()-1)/8)+1},daysInMonth:function(_,c){var s=this._validate(_,c,this.minDay,b.local.invalidMonth);return this.daysPerMonth[s.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(_,c,s){return(this._validate(_,c,s,b.local.invalidDate).day()+1)%8},weekDay:function(_,c,s){var o=this.dayOfWeek(_,c,s);return o>=2&&o<=6},extraInfo:function(_,c,s){var o=this._validate(_,c,s,b.local.invalidDate);return{century:v[Math.floor((o.year()-1)/100)+1]||""}},toJD:function(_,c,s){var o=this._validate(_,c,s,b.local.invalidDate);return _=o.year()+(o.year()<0?1:0),c=o.month(),(s=o.day())+(c>1?16:0)+(c>2?32*(c-2):0)+400*(_-1)+this.jdEpoch-1},fromJD:function(_){_=Math.floor(_+.5)-Math.floor(this.jdEpoch)-1;var c=Math.floor(_/400)+1;_-=400*(c-1),_+=_>15?16:0;var s=Math.floor(_/32)+1,o=_-32*(s-1)+1;return this.newDate(c<=0?c-1:c,s,o)}});var v={20:"Fruitbat",21:"Anchovy"};b.calendars.discworld=r},65168:function(u,g,n){var b=n(38700),m=n(50896);function r(v){this.local=this.regionalOptions[v||""]||this.regionalOptions[""]}r.prototype=new b.baseCalendar,m(r.prototype,{name:"Ethiopian",jdEpoch:17242205e-1,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var _=this._validate(v,this.minMonth,this.minDay,b.local.invalidYear);return(v=_.year()+(_.year()<0?1:0))%4==3||v%4==-1},monthsInYear:function(v){return this._validate(v,this.minMonth,this.minDay,b.local.invalidYear||b.regionalOptions[""].invalidYear),13},weekOfYear:function(v,_,c){var s=this.newDate(v,_,c);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInMonth:function(v,_){var c=this._validate(v,_,this.minDay,b.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===13&&this.leapYear(c.year())?1:0)},weekDay:function(v,_,c){return(this.dayOfWeek(v,_,c)||7)<6},toJD:function(v,_,c){var s=this._validate(v,_,c,b.local.invalidDate);return(v=s.year())<0&&v++,s.day()+30*(s.month()-1)+365*(v-1)+Math.floor(v/4)+this.jdEpoch-1},fromJD:function(v){var _=Math.floor(v)+.5-this.jdEpoch,c=Math.floor((_-Math.floor((_+366)/1461))/365)+1;c<=0&&c--,_=Math.floor(v)+.5-this.newDate(c,1,1).toJD();var s=Math.floor(_/30)+1,o=_-30*(s-1)+1;return this.newDate(c,s,o)}}),b.calendars.ethiopian=r},2084:function(u,g,n){var b=n(38700),m=n(50896);function r(_){this.local=this.regionalOptions[_||""]||this.regionalOptions[""]}function v(_,c){return _-c*Math.floor(_/c)}r.prototype=new b.baseCalendar,m(r.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(_){var c=this._validate(_,this.minMonth,this.minDay,b.local.invalidYear);return this._leapYear(c.year())},_leapYear:function(_){return v(7*(_=_<0?_+1:_)+1,19)<7},monthsInYear:function(_){return this._validate(_,this.minMonth,this.minDay,b.local.invalidYear),this._leapYear(_.year?_.year():_)?13:12},weekOfYear:function(_,c,s){var o=this.newDate(_,c,s);return o.add(-o.dayOfWeek(),"d"),Math.floor((o.dayOfYear()-1)/7)+1},daysInYear:function(_){return _=this._validate(_,this.minMonth,this.minDay,b.local.invalidYear).year(),this.toJD(_===-1?1:_+1,7,1)-this.toJD(_,7,1)},daysInMonth:function(_,c){return _.year&&(c=_.month(),_=_.year()),this._validate(_,c,this.minDay,b.local.invalidMonth),c===12&&this.leapYear(_)||c===8&&v(this.daysInYear(_),10)===5?30:c===9&&v(this.daysInYear(_),10)===3?29:this.daysPerMonth[c-1]},weekDay:function(_,c,s){return this.dayOfWeek(_,c,s)!==6},extraInfo:function(_,c,s){var o=this._validate(_,c,s,b.local.invalidDate);return{yearType:(this.leapYear(o)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(o)%10-3]}},toJD:function(_,c,s){var o=this._validate(_,c,s,b.local.invalidDate);_=o.year(),c=o.month(),s=o.day();var l=_<=0?_+1:_,d=this.jdEpoch+this._delay1(l)+this._delay2(l)+s+1;if(c<7){for(var h=7;h<=this.monthsInYear(_);h++)d+=this.daysInMonth(_,h);for(h=1;h<c;h++)d+=this.daysInMonth(_,h)}else for(h=7;h<c;h++)d+=this.daysInMonth(_,h);return d},_delay1:function(_){var c=Math.floor((235*_-234)/19),s=12084+13753*c,o=29*c+Math.floor(s/25920);return v(3*(o+1),7)<3&&o++,o},_delay2:function(_){var c=this._delay1(_-1),s=this._delay1(_);return this._delay1(_+1)-s==356?2:s-c==382?1:0},fromJD:function(_){_=Math.floor(_)+.5;for(var c=Math.floor(98496*(_-this.jdEpoch)/35975351)-1;_>=this.toJD(c===-1?1:c+1,7,1);)c++;for(var s=_<this.toJD(c,1,1)?7:1;_>this.toJD(c,s,this.daysInMonth(c,s));)s++;var o=_-this.toJD(c,s,1)+1;return this.newDate(c,s,o)}}),b.calendars.hebrew=r},26368:function(u,g,n){var b=n(38700),m=n(50896);function r(v){this.local=this.regionalOptions[v||""]||this.regionalOptions[""]}r.prototype=new b.baseCalendar,m(r.prototype,{name:"Islamic",jdEpoch:19484395e-1,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(v){return(11*this._validate(v,this.minMonth,this.minDay,b.local.invalidYear).year()+14)%30<11},weekOfYear:function(v,_,c){var s=this.newDate(v,_,c);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInYear:function(v){return this.leapYear(v)?355:354},daysInMonth:function(v,_){var c=this._validate(v,_,this.minDay,b.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===12&&this.leapYear(c.year())?1:0)},weekDay:function(v,_,c){return this.dayOfWeek(v,_,c)!==5},toJD:function(v,_,c){var s=this._validate(v,_,c,b.local.invalidDate);return v=s.year(),_=s.month(),v=v<=0?v+1:v,(c=s.day())+Math.ceil(29.5*(_-1))+354*(v-1)+Math.floor((3+11*v)/30)+this.jdEpoch-1},fromJD:function(v){v=Math.floor(v)+.5;var _=Math.floor((30*(v-this.jdEpoch)+10646)/10631);_=_<=0?_-1:_;var c=Math.min(12,Math.ceil((v-29-this.toJD(_,1,1))/29.5)+1),s=v-this.toJD(_,c,1)+1;return this.newDate(_,c,s)}}),b.calendars.islamic=r},24747:function(u,g,n){var b=n(38700),m=n(50896);function r(v){this.local=this.regionalOptions[v||""]||this.regionalOptions[""]}r.prototype=new b.baseCalendar,m(r.prototype,{name:"Julian",jdEpoch:17214235e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(v){var _=this._validate(v,this.minMonth,this.minDay,b.local.invalidYear);return(v=_.year()<0?_.year()+1:_.year())%4==0},weekOfYear:function(v,_,c){var s=this.newDate(v,_,c);return s.add(4-(s.dayOfWeek()||7),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInMonth:function(v,_){var c=this._validate(v,_,this.minDay,b.local.invalidMonth);return this.daysPerMonth[c.month()-1]+(c.month()===2&&this.leapYear(c.year())?1:0)},weekDay:function(v,_,c){return(this.dayOfWeek(v,_,c)||7)<6},toJD:function(v,_,c){var s=this._validate(v,_,c,b.local.invalidDate);return v=s.year(),_=s.month(),c=s.day(),v<0&&v++,_<=2&&(v--,_+=12),Math.floor(365.25*(v+4716))+Math.floor(30.6001*(_+1))+c-1524.5},fromJD:function(v){var _=Math.floor(v+.5)+1524,c=Math.floor((_-122.1)/365.25),s=Math.floor(365.25*c),o=Math.floor((_-s)/30.6001),l=o-Math.floor(o<14?1:13),d=c-Math.floor(l>2?4716:4715),h=_-s-Math.floor(30.6001*o);return d<=0&&d--,this.newDate(d,l,h)}}),b.calendars.julian=r},65616:function(u,g,n){var b=n(38700),m=n(50896);function r(c){this.local=this.regionalOptions[c||""]||this.regionalOptions[""]}function v(c,s){return c-s*Math.floor(c/s)}function _(c,s){return v(c-1,s)+1}r.prototype=new b.baseCalendar,m(r.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(c){return this._validate(c,this.minMonth,this.minDay,b.local.invalidYear),!1},formatYear:function(c){c=this._validate(c,this.minMonth,this.minDay,b.local.invalidYear).year();var s=Math.floor(c/400);return c%=400,c+=c<0?400:0,s+"."+Math.floor(c/20)+"."+c%20},forYear:function(c){if((c=c.split(".")).length<3)throw"Invalid Mayan year";for(var s=0,o=0;o<c.length;o++){var l=parseInt(c[o],10);if(Math.abs(l)>19||o>0&&l<0)throw"Invalid Mayan year";s=20*s+l}return s},monthsInYear:function(c){return this._validate(c,this.minMonth,this.minDay,b.local.invalidYear),18},weekOfYear:function(c,s,o){return this._validate(c,s,o,b.local.invalidDate),0},daysInYear:function(c){return this._validate(c,this.minMonth,this.minDay,b.local.invalidYear),360},daysInMonth:function(c,s){return this._validate(c,s,this.minDay,b.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(c,s,o){return this._validate(c,s,o,b.local.invalidDate).day()},weekDay:function(c,s,o){return this._validate(c,s,o,b.local.invalidDate),!0},extraInfo:function(c,s,o){var l=this._validate(c,s,o,b.local.invalidDate).toJD(),d=this._toHaab(l),h=this._toTzolkin(l);return{haabMonthName:this.local.haabMonths[d[0]-1],haabMonth:d[0],haabDay:d[1],tzolkinDayName:this.local.tzolkinMonths[h[0]-1],tzolkinDay:h[0],tzolkinTrecena:h[1]}},_toHaab:function(c){var s=v(8+(c-=this.jdEpoch)+340,365);return[Math.floor(s/20)+1,v(s,20)]},_toTzolkin:function(c){return[_(20+(c-=this.jdEpoch),20),_(c+4,13)]},toJD:function(c,s,o){var l=this._validate(c,s,o,b.local.invalidDate);return l.day()+20*l.month()+360*l.year()+this.jdEpoch},fromJD:function(c){c=Math.floor(c)+.5-this.jdEpoch;var s=Math.floor(c/360);c%=360,c+=c<0?360:0;var o=Math.floor(c/20),l=c%20;return this.newDate(s,o,l)}}),b.calendars.mayan=r},30632:function(u,g,n){var b=n(38700),m=n(50896);function r(_){this.local=this.regionalOptions[_||""]||this.regionalOptions[""]}r.prototype=new b.baseCalendar;var v=b.instance("gregorian");m(r.prototype,{name:"Nanakshahi",jdEpoch:22576735e-1,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(_){var c=this._validate(_,this.minMonth,this.minDay,b.local.invalidYear||b.regionalOptions[""].invalidYear);return v.leapYear(c.year()+(c.year()<1?1:0)+1469)},weekOfYear:function(_,c,s){var o=this.newDate(_,c,s);return o.add(1-(o.dayOfWeek()||7),"d"),Math.floor((o.dayOfYear()-1)/7)+1},daysInMonth:function(_,c){var s=this._validate(_,c,this.minDay,b.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===12&&this.leapYear(s.year())?1:0)},weekDay:function(_,c,s){return(this.dayOfWeek(_,c,s)||7)<6},toJD:function(_,c,s){var o=this._validate(_,c,s,b.local.invalidMonth);(_=o.year())<0&&_++;for(var l=o.day(),d=1;d<o.month();d++)l+=this.daysPerMonth[d-1];return l+v.toJD(_+1468,3,13)},fromJD:function(_){_=Math.floor(_+.5);for(var c=Math.floor((_-(this.jdEpoch-1))/366);_>=this.toJD(c+1,1,1);)c++;for(var s=_-Math.floor(this.toJD(c,1,1)+.5)+1,o=1;s>this.daysInMonth(c,o);)s-=this.daysInMonth(c,o),o++;return this.newDate(c,o,s)}}),b.calendars.nanakshahi=r},73040:function(u,g,n){var b=n(38700),m=n(50896);function r(v){this.local=this.regionalOptions[v||""]||this.regionalOptions[""]}r.prototype=new b.baseCalendar,m(r.prototype,{name:"Nepali",jdEpoch:17007095e-1,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(v){return this.daysInYear(v)!==this.daysPerYear},weekOfYear:function(v,_,c){var s=this.newDate(v,_,c);return s.add(-s.dayOfWeek(),"d"),Math.floor((s.dayOfYear()-1)/7)+1},daysInYear:function(v){if(v=this._validate(v,this.minMonth,this.minDay,b.local.invalidYear).year(),this.NEPALI_CALENDAR_DATA[v]===void 0)return this.daysPerYear;for(var _=0,c=this.minMonth;c<=12;c++)_+=this.NEPALI_CALENDAR_DATA[v][c];return _},daysInMonth:function(v,_){return v.year&&(_=v.month(),v=v.year()),this._validate(v,_,this.minDay,b.local.invalidMonth),this.NEPALI_CALENDAR_DATA[v]===void 0?this.daysPerMonth[_-1]:this.NEPALI_CALENDAR_DATA[v][_]},weekDay:function(v,_,c){return this.dayOfWeek(v,_,c)!==6},toJD:function(v,_,c){var s=this._validate(v,_,c,b.local.invalidDate);v=s.year(),_=s.month(),c=s.day();var o=b.instance(),l=0,d=_,h=v;this._createMissingCalendarData(v);var p=v-(d>9||d===9&&c>=this.NEPALI_CALENDAR_DATA[h][0]?56:57);for(_!==9&&(l=c,d--);d!==9;)d<=0&&(d=12,h--),l+=this.NEPALI_CALENDAR_DATA[h][d],d--;return _===9?(l+=c-this.NEPALI_CALENDAR_DATA[h][0])<0&&(l+=o.daysInYear(p)):l+=this.NEPALI_CALENDAR_DATA[h][9]-this.NEPALI_CALENDAR_DATA[h][0],o.newDate(p,1,1).add(l,"d").toJD()},fromJD:function(v){var _=b.instance().fromJD(v),c=_.year(),s=_.dayOfYear(),o=c+56;this._createMissingCalendarData(o);for(var l=9,d=this.NEPALI_CALENDAR_DATA[o][0],h=this.NEPALI_CALENDAR_DATA[o][l]-d+1;s>h;)++l>12&&(l=1,o++),h+=this.NEPALI_CALENDAR_DATA[o][l];var p=this.NEPALI_CALENDAR_DATA[o][l]-(h-s);return this.newDate(o,l,p)},_createMissingCalendarData:function(v){var _=this.daysPerMonth.slice(0);_.unshift(17);for(var c=v-1;c<v+2;c++)this.NEPALI_CALENDAR_DATA[c]===void 0&&(this.NEPALI_CALENDAR_DATA[c]=_)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),b.calendars.nepali=r},1104:function(u,g,n){var b=n(38700),m=n(50896);function r(_){this.local=this.regionalOptions[_||""]||this.regionalOptions[""]}function v(_,c){return _-c*Math.floor(_/c)}r.prototype=new b.baseCalendar,m(r.prototype,{name:"Persian",jdEpoch:19483205e-1,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(_){var c=this._validate(_,this.minMonth,this.minDay,b.local.invalidYear);return 682*((c.year()-(c.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(_,c,s){var o=this.newDate(_,c,s);return o.add(-(o.dayOfWeek()+1)%7,"d"),Math.floor((o.dayOfYear()-1)/7)+1},daysInMonth:function(_,c){var s=this._validate(_,c,this.minDay,b.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===12&&this.leapYear(s.year())?1:0)},weekDay:function(_,c,s){return this.dayOfWeek(_,c,s)!==5},toJD:function(_,c,s){var o=this._validate(_,c,s,b.local.invalidDate);_=o.year(),c=o.month(),s=o.day();var l=_-(_>=0?474:473),d=474+v(l,2820);return s+(c<=7?31*(c-1):30*(c-1)+6)+Math.floor((682*d-110)/2816)+365*(d-1)+1029983*Math.floor(l/2820)+this.jdEpoch-1},fromJD:function(_){var c=(_=Math.floor(_)+.5)-this.toJD(475,1,1),s=Math.floor(c/1029983),o=v(c,1029983),l=2820;if(o!==1029982){var d=Math.floor(o/366),h=v(o,366);l=Math.floor((2134*d+2816*h+2815)/1028522)+d+1}var p=l+2820*s+474;p=p<=0?p-1:p;var f=_-this.toJD(p,1,1)+1,y=f<=186?Math.ceil(f/31):Math.ceil((f-6)/30),w=_-this.toJD(p,y,1)+1;return this.newDate(p,y,w)}}),b.calendars.persian=r,b.calendars.jalali=r},51456:function(u,g,n){var b=n(38700),m=n(50896),r=b.instance();function v(_){this.local=this.regionalOptions[_||""]||this.regionalOptions[""]}v.prototype=new b.baseCalendar,m(v.prototype,{name:"Taiwan",jdEpoch:24194025e-1,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(_){var c=this._validate(_,this.minMonth,this.minDay,b.local.invalidYear);return _=this._t2gYear(c.year()),r.leapYear(_)},weekOfYear:function(_,c,s){var o=this._validate(_,this.minMonth,this.minDay,b.local.invalidYear);return _=this._t2gYear(o.year()),r.weekOfYear(_,o.month(),o.day())},daysInMonth:function(_,c){var s=this._validate(_,c,this.minDay,b.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===2&&this.leapYear(s.year())?1:0)},weekDay:function(_,c,s){return(this.dayOfWeek(_,c,s)||7)<6},toJD:function(_,c,s){var o=this._validate(_,c,s,b.local.invalidDate);return _=this._t2gYear(o.year()),r.toJD(_,o.month(),o.day())},fromJD:function(_){var c=r.fromJD(_),s=this._g2tYear(c.year());return this.newDate(s,c.month(),c.day())},_t2gYear:function(_){return _+this.yearsOffset+(_>=-this.yearsOffset&&_<=-1?1:0)},_g2tYear:function(_){return _-this.yearsOffset-(_>=1&&_<=this.yearsOffset?1:0)}}),b.calendars.taiwan=v},4592:function(u,g,n){var b=n(38700),m=n(50896),r=b.instance();function v(_){this.local=this.regionalOptions[_||""]||this.regionalOptions[""]}v.prototype=new b.baseCalendar,m(v.prototype,{name:"Thai",jdEpoch:15230985e-1,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(_){var c=this._validate(_,this.minMonth,this.minDay,b.local.invalidYear);return _=this._t2gYear(c.year()),r.leapYear(_)},weekOfYear:function(_,c,s){var o=this._validate(_,this.minMonth,this.minDay,b.local.invalidYear);return _=this._t2gYear(o.year()),r.weekOfYear(_,o.month(),o.day())},daysInMonth:function(_,c){var s=this._validate(_,c,this.minDay,b.local.invalidMonth);return this.daysPerMonth[s.month()-1]+(s.month()===2&&this.leapYear(s.year())?1:0)},weekDay:function(_,c,s){return(this.dayOfWeek(_,c,s)||7)<6},toJD:function(_,c,s){var o=this._validate(_,c,s,b.local.invalidDate);return _=this._t2gYear(o.year()),r.toJD(_,o.month(),o.day())},fromJD:function(_){var c=r.fromJD(_),s=this._g2tYear(c.year());return this.newDate(s,c.month(),c.day())},_t2gYear:function(_){return _-this.yearsOffset-(_>=1&&_<=this.yearsOffset?1:0)},_g2tYear:function(_){return _+this.yearsOffset+(_>=-this.yearsOffset&&_<=-1?1:0)}}),b.calendars.thai=v},45348:function(u,g,n){var b=n(38700),m=n(50896);function r(_){this.local=this.regionalOptions[_||""]||this.regionalOptions[""]}r.prototype=new b.baseCalendar,m(r.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā’","Yawm al-Arba‘ā’","Yawm al-Khamīs","Yawm al-Jum‘a","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(_){var c=this._validate(_,this.minMonth,this.minDay,b.local.invalidYear);return this.daysInYear(c.year())===355},weekOfYear:function(_,c,s){var o=this.newDate(_,c,s);return o.add(-o.dayOfWeek(),"d"),Math.floor((o.dayOfYear()-1)/7)+1},daysInYear:function(_){for(var c=0,s=1;s<=12;s++)c+=this.daysInMonth(_,s);return c},daysInMonth:function(_,c){for(var s=this._validate(_,c,this.minDay,b.local.invalidMonth).toJD()-24e5+.5,o=0,l=0;l<v.length;l++){if(v[l]>s)return v[o]-v[o-1];o++}return 30},weekDay:function(_,c,s){return this.dayOfWeek(_,c,s)!==5},toJD:function(_,c,s){var o=this._validate(_,c,s,b.local.invalidDate),l=12*(o.year()-1)+o.month()-15292;return o.day()+v[l-1]-1+24e5-.5},fromJD:function(_){for(var c=_-24e5+.5,s=0,o=0;o<v.length&&!(v[o]>c);o++)s++;var l=s+15292,d=Math.floor((l-1)/12),h=d+1,p=l-12*d,f=c-v[s-1]+1;return this.newDate(h,p,f)},isValid:function(_,c,s){var o=b.baseCalendar.prototype.isValid.apply(this,arguments);return o&&(o=(_=_.year!=null?_.year:_)>=1276&&_<=1500),o},_validate:function(_,c,s,o){var l=b.baseCalendar.prototype._validate.apply(this,arguments);if(l.year<1276||l.year>1500)throw o.replace(/\{0\}/,this.local.name);return l}}),b.calendars.ummalqura=r;var v=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},38700:function(u,g,n){var b=n(50896);function m(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function r(o,l,d,h){if(this._calendar=o,this._year=l,this._month=d,this._day=h,this._calendar._validateLevel===0&&!this._calendar.isValid(this._year,this._month,this._day))throw(s.local.invalidDate||s.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function v(o,l){return"000000".substring(0,l-(o=""+o).length)+o}function _(){this.shortYearCutoff="+10"}function c(o){this.local=this.regionalOptions[o]||this.regionalOptions[""]}b(m.prototype,{instance:function(o,l){o=(o||"gregorian").toLowerCase(),l=l||"";var d=this._localCals[o+"-"+l];if(!d&&this.calendars[o]&&(d=new this.calendars[o](l),this._localCals[o+"-"+l]=d),!d)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,o);return d},newDate:function(o,l,d,h,p){return(h=(o!=null&&o.year?o.calendar():typeof h=="string"?this.instance(h,p):h)||this.instance()).newDate(o,l,d)},substituteDigits:function(o){return function(l){return(l+"").replace(/[0-9]/g,function(d){return o[d]})}},substituteChineseDigits:function(o,l){return function(d){for(var h="",p=0;d>0;){var f=d%10;h=(f===0?"":o[f]+l[p])+h,p++,d=Math.floor(d/10)}return h.indexOf(o[1]+l[1])===0&&(h=h.substr(1)),h||o[0]}}}),b(r.prototype,{newDate:function(o,l,d){return this._calendar.newDate(o??this,l,d)},year:function(o){return arguments.length===0?this._year:this.set(o,"y")},month:function(o){return arguments.length===0?this._month:this.set(o,"m")},day:function(o){return arguments.length===0?this._day:this.set(o,"d")},date:function(o,l,d){if(!this._calendar.isValid(o,l,d))throw(s.local.invalidDate||s.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=o,this._month=l,this._day=d,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(o,l){return this._calendar.add(this,o,l)},set:function(o,l){return this._calendar.set(this,o,l)},compareTo:function(o){if(this._calendar.name!==o._calendar.name)throw(s.local.differentCalendars||s.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,o._calendar.local.name);var l=this._year!==o._year?this._year-o._year:this._month!==o._month?this.monthOfYear()-o.monthOfYear():this._day-o._day;return l===0?0:l<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(o){return this._calendar.fromJD(o)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(o){return this._calendar.fromJSDate(o)},toString:function(){return(this.year()<0?"-":"")+v(Math.abs(this.year()),4)+"-"+v(this.month(),2)+"-"+v(this.day(),2)}}),b(_.prototype,{_validateLevel:0,newDate:function(o,l,d){return o==null?this.today():(o.year&&(this._validate(o,l,d,s.local.invalidDate||s.regionalOptions[""].invalidDate),d=o.day(),l=o.month(),o=o.year()),new r(this,o,l,d))},today:function(){return this.fromJSDate(new Date)},epoch:function(o){return this._validate(o,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear).year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(o){var l=this._validate(o,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return(l.year()<0?"-":"")+v(Math.abs(l.year()),4)},monthsInYear:function(o){return this._validate(o,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear),12},monthOfYear:function(o,l){var d=this._validate(o,l,this.minDay,s.local.invalidMonth||s.regionalOptions[""].invalidMonth);return(d.month()+this.monthsInYear(d)-this.firstMonth)%this.monthsInYear(d)+this.minMonth},fromMonthOfYear:function(o,l){var d=(l+this.firstMonth-2*this.minMonth)%this.monthsInYear(o)+this.minMonth;return this._validate(o,d,this.minDay,s.local.invalidMonth||s.regionalOptions[""].invalidMonth),d},daysInYear:function(o){var l=this._validate(o,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return this.leapYear(l)?366:365},dayOfYear:function(o,l,d){var h=this._validate(o,l,d,s.local.invalidDate||s.regionalOptions[""].invalidDate);return h.toJD()-this.newDate(h.year(),this.fromMonthOfYear(h.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(o,l,d){var h=this._validate(o,l,d,s.local.invalidDate||s.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(h))+2)%this.daysInWeek()},extraInfo:function(o,l,d){return this._validate(o,l,d,s.local.invalidDate||s.regionalOptions[""].invalidDate),{}},add:function(o,l,d){return this._validate(o,this.minMonth,this.minDay,s.local.invalidDate||s.regionalOptions[""].invalidDate),this._correctAdd(o,this._add(o,l,d),l,d)},_add:function(o,l,d){if(this._validateLevel++,d==="d"||d==="w"){var h=o.toJD()+l*(d==="w"?this.daysInWeek():1),p=o.calendar().fromJD(h);return this._validateLevel--,[p.year(),p.month(),p.day()]}try{var f=o.year()+(d==="y"?l:0),y=o.monthOfYear()+(d==="m"?l:0);p=o.day(),d==="y"?(o.month()!==this.fromMonthOfYear(f,y)&&(y=this.newDate(f,o.month(),this.minDay).monthOfYear()),y=Math.min(y,this.monthsInYear(f)),p=Math.min(p,this.daysInMonth(f,this.fromMonthOfYear(f,y)))):d==="m"&&(function(x){for(;y<x.minMonth;)f--,y+=x.monthsInYear(f);for(var M=x.monthsInYear(f);y>M-1+x.minMonth;)f++,y-=M,M=x.monthsInYear(f)}(this),p=Math.min(p,this.daysInMonth(f,this.fromMonthOfYear(f,y))));var w=[f,this.fromMonthOfYear(f,y),p];return this._validateLevel--,w}catch(x){throw this._validateLevel--,x}},_correctAdd:function(o,l,d,h){if(!(this.hasYearZero||h!=="y"&&h!=="m"||l[0]!==0&&o.year()>0==l[0]>0)){var p={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[h],f=d<0?-1:1;l=this._add(o,d*p[0]+f*p[1],p[2])}return o.date(l[0],l[1],l[2])},set:function(o,l,d){this._validate(o,this.minMonth,this.minDay,s.local.invalidDate||s.regionalOptions[""].invalidDate);var h=d==="y"?l:o.year(),p=d==="m"?l:o.month(),f=d==="d"?l:o.day();return d!=="y"&&d!=="m"||(f=Math.min(f,this.daysInMonth(h,p))),o.date(h,p,f)},isValid:function(o,l,d){this._validateLevel++;var h=this.hasYearZero||o!==0;if(h){var p=this.newDate(o,l,this.minDay);h=l>=this.minMonth&&l-this.minMonth<this.monthsInYear(p)&&d>=this.minDay&&d-this.minDay<this.daysInMonth(p)}return this._validateLevel--,h},toJSDate:function(o,l,d){var h=this._validate(o,l,d,s.local.invalidDate||s.regionalOptions[""].invalidDate);return s.instance().fromJD(this.toJD(h)).toJSDate()},fromJSDate:function(o){return this.fromJD(s.instance().fromJSDate(o).toJD())},_validate:function(o,l,d,h){if(o.year){if(this._validateLevel===0&&this.name!==o.calendar().name)throw(s.local.differentCalendars||s.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,o.calendar().local.name);return o}try{if(this._validateLevel++,this._validateLevel===1&&!this.isValid(o,l,d))throw h.replace(/\{0\}/,this.local.name);var p=this.newDate(o,l,d);return this._validateLevel--,p}catch(f){throw this._validateLevel--,f}}}),c.prototype=new _,b(c.prototype,{name:"Gregorian",jdEpoch:17214255e-1,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(o){var l=this._validate(o,this.minMonth,this.minDay,s.local.invalidYear||s.regionalOptions[""].invalidYear);return(o=l.year()+(l.year()<0?1:0))%4==0&&(o%100!=0||o%400==0)},weekOfYear:function(o,l,d){var h=this.newDate(o,l,d);return h.add(4-(h.dayOfWeek()||7),"d"),Math.floor((h.dayOfYear()-1)/7)+1},daysInMonth:function(o,l){var d=this._validate(o,l,this.minDay,s.local.invalidMonth||s.regionalOptions[""].invalidMonth);return this.daysPerMonth[d.month()-1]+(d.month()===2&&this.leapYear(d.year())?1:0)},weekDay:function(o,l,d){return(this.dayOfWeek(o,l,d)||7)<6},toJD:function(o,l,d){var h=this._validate(o,l,d,s.local.invalidDate||s.regionalOptions[""].invalidDate);o=h.year(),l=h.month(),d=h.day(),o<0&&o++,l<3&&(l+=12,o--);var p=Math.floor(o/100),f=2-p+Math.floor(p/4);return Math.floor(365.25*(o+4716))+Math.floor(30.6001*(l+1))+d+f-1524.5},fromJD:function(o){var l=Math.floor(o+.5),d=Math.floor((l-186721625e-2)/36524.25),h=1524+(d=l+1+d-Math.floor(d/4)),p=Math.floor((h-122.1)/365.25),f=Math.floor(365.25*p),y=Math.floor((h-f)/30.6001),w=h-f-Math.floor(30.6001*y),x=y-(y>13.5?13:1),M=p-(x>2.5?4716:4715);return M<=0&&M--,this.newDate(M,x,w)},toJSDate:function(o,l,d){var h=this._validate(o,l,d,s.local.invalidDate||s.regionalOptions[""].invalidDate),p=new Date(h.year(),h.month()-1,h.day());return p.setHours(0),p.setMinutes(0),p.setSeconds(0),p.setMilliseconds(0),p.setHours(p.getHours()>12?p.getHours()+2:0),p},fromJSDate:function(o){return this.newDate(o.getFullYear(),o.getMonth()+1,o.getDate())}});var s=u.exports=new m;s.cdate=r,s.baseCalendar=_,s.calendars.gregorian=c},15168:function(u,g,n){var b=n(50896),m=n(38700);b(m.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),m.local=m.regionalOptions[""],b(m.cdate.prototype,{formatDate:function(r,v){return typeof r!="string"&&(v=r,r=""),this._calendar.formatDate(r||"",this,v)}}),b(m.baseCalendar.prototype,{UNIX_EPOCH:m.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:m.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(r,v,_){if(typeof r!="string"&&(_=v,v=r,r=""),!v)return"";if(v.calendar()!==this)throw m.local.invalidFormat||m.regionalOptions[""].invalidFormat;r=r||this.local.dateFormat;for(var c,s,o,l=(_=_||{}).dayNamesShort||this.local.dayNamesShort,d=_.dayNames||this.local.dayNames,h=_.monthNumbers||this.local.monthNumbers,p=_.monthNamesShort||this.local.monthNamesShort,f=_.monthNames||this.local.monthNames,y=(_.calculateWeek||this.local.calculateWeek,function(C,z){for(var I=1;P+I<r.length&&r.charAt(P+I)===C;)I++;return P+=I-1,Math.floor(I/(z||1))>1}),w=function(C,z,I,O){var D=""+z;if(y(C,O))for(;D.length<I;)D="0"+D;return D},x=this,M=function(C){return typeof h=="function"?h.call(x,C,y("m")):S(w("m",C.month(),2))},k=function(C,z){return z?typeof f=="function"?f.call(x,C):f[C.month()-x.minMonth]:typeof p=="function"?p.call(x,C):p[C.month()-x.minMonth]},T=this.local.digits,S=function(C){return _.localNumbers&&T?T(C):C},A="",E=!1,P=0;P<r.length;P++)if(E)r.charAt(P)!=="'"||y("'")?A+=r.charAt(P):E=!1;else switch(r.charAt(P)){case"d":A+=S(w("d",v.day(),2));break;case"D":A+=(c=v.dayOfWeek(),s=l,o=d,y("D")?o[c]:s[c]);break;case"o":A+=w("o",v.dayOfYear(),3);break;case"w":A+=w("w",v.weekOfYear(),2);break;case"m":A+=M(v);break;case"M":A+=k(v,y("M"));break;case"y":A+=y("y",2)?v.year():(v.year()%100<10?"0":"")+v.year()%100;break;case"Y":y("Y",2),A+=v.formatYear();break;case"J":A+=v.toJD();break;case"@":A+=(v.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":A+=(v.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":y("'")?A+="'":E=!0;break;default:A+=r.charAt(P)}return A},parseDate:function(r,v,_){if(v==null)throw m.local.invalidArguments||m.regionalOptions[""].invalidArguments;if((v=typeof v=="object"?v.toString():v+"")==="")return null;r=r||this.local.dateFormat;var c=(_=_||{}).shortYearCutoff||this.shortYearCutoff;c=typeof c!="string"?c:this.today().year()%100+parseInt(c,10);for(var s=_.dayNamesShort||this.local.dayNamesShort,o=_.dayNames||this.local.dayNames,l=_.parseMonth||this.local.parseMonth,d=_.monthNumbers||this.local.monthNumbers,h=_.monthNamesShort||this.local.monthNamesShort,p=_.monthNames||this.local.monthNames,f=-1,y=-1,w=-1,x=-1,M=-1,k=!1,T=!1,S=function(j,q){for(var $=1;D+$<r.length&&r.charAt(D+$)===j;)$++;return D+=$-1,Math.floor($/(q||1))>1},A=function(j,q){var $=S(j,q),G=[2,3,$?4:2,$?4:2,10,11,20]["oyYJ@!".indexOf(j)+1],Z=new RegExp("^-?\\d{1,"+G+"}"),H=v.substring(O).match(Z);if(!H)throw(m.local.missingNumberAt||m.regionalOptions[""].missingNumberAt).replace(/\{0\}/,O);return O+=H[0].length,parseInt(H[0],10)},E=this,P=function(){if(typeof d=="function"){S("m");var j=d.call(E,v.substring(O));return O+=j.length,j}return A("m")},C=function(j,q,$,G){for(var Z=S(j,G)?$:q,H=0;H<Z.length;H++)if(v.substr(O,Z[H].length).toLowerCase()===Z[H].toLowerCase())return O+=Z[H].length,H+E.minMonth;throw(m.local.unknownNameAt||m.regionalOptions[""].unknownNameAt).replace(/\{0\}/,O)},z=function(){if(typeof p=="function"){var j=S("M")?p.call(E,v.substring(O)):h.call(E,v.substring(O));return O+=j.length,j}return C("M",h,p)},I=function(){if(v.charAt(O)!==r.charAt(D))throw(m.local.unexpectedLiteralAt||m.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,O);O++},O=0,D=0;D<r.length;D++)if(T)r.charAt(D)!=="'"||S("'")?I():T=!1;else switch(r.charAt(D)){case"d":x=A("d");break;case"D":C("D",s,o);break;case"o":M=A("o");break;case"w":A("w");break;case"m":w=P();break;case"M":w=z();break;case"y":var V=D;k=!S("y",2),D=V,y=A("y",2);break;case"Y":y=A("Y",2);break;case"J":f=A("J")+.5,v.charAt(O)==="."&&(O++,A("J"));break;case"@":f=A("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":f=A("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":O=v.length;break;case"'":S("'")?I():T=!0;break;default:I()}if(O<v.length)throw m.local.unexpectedText||m.regionalOptions[""].unexpectedText;if(y===-1?y=this.today().year():y<100&&k&&(y+=c===-1?1900:this.today().year()-this.today().year()%100-(y<=c?0:100)),typeof w=="string"&&(w=l.call(this,y,w)),M>-1){w=1,x=M;for(var R=this.daysInMonth(y,w);x>R;R=this.daysInMonth(y,w))w++,x-=R}return f>-1?this.fromJD(f):this.newDate(y,w,x)},determineDate:function(r,v,_,c,s){_&&typeof _!="object"&&(s=c,c=_,_=null),typeof c!="string"&&(s=c,c="");var o=this;return v=v?v.newDate():null,r==null?v:typeof r=="string"?function(l){try{return o.parseDate(c,l,s)}catch{}for(var d=((l=l.toLowerCase()).match(/^c/)&&_?_.newDate():null)||o.today(),h=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,p=h.exec(l);p;)d.add(parseInt(p[1],10),p[2]||"d"),p=h.exec(l);return d}(r):typeof r=="number"?isNaN(r)||r===1/0||r===-1/0?v:o.today().add(r,"d"):o.newDate(r)}})},21576:function(){},19768:function(){},63436:function(u,g,n){var b=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],m=typeof globalThis>"u"?n.g:globalThis;u.exports=function(){for(var r=[],v=0;v<b.length;v++)typeof m[b[v]]=="function"&&(r[r.length]=b[v]);return r}},67756:function(u,g,n){function b(fe,ye,xe){fe.prototype=ye.prototype=xe,xe.constructor=fe}function m(fe,ye){var xe=Object.create(fe.prototype);for(var ke in ye)xe[ke]=ye[ke];return xe}function r(){}n.d(g,{qy:function(){return me},Gz:function(){return ie}});var v=.7,_=1/v,c="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",o="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,d=new RegExp("^rgb\\(".concat(c,",").concat(c,",").concat(c,"\\)$")),h=new RegExp("^rgb\\(".concat(o,",").concat(o,",").concat(o,"\\)$")),p=new RegExp("^rgba\\(".concat(c,",").concat(c,",").concat(c,",").concat(s,"\\)$")),f=new RegExp("^rgba\\(".concat(o,",").concat(o,",").concat(o,",").concat(s,"\\)$")),y=new RegExp("^hsl\\(".concat(s,",").concat(o,",").concat(o,"\\)$")),w=new RegExp("^hsla\\(".concat(s,",").concat(o,",").concat(o,",").concat(s,"\\)$")),x={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function M(){return this.rgb().formatHex()}function k(){return this.rgb().formatRgb()}function T(fe){var ye,xe;return fe=(fe+"").trim().toLowerCase(),(ye=l.exec(fe))?(xe=ye[1].length,ye=parseInt(ye[1],16),xe===6?S(ye):xe===3?new P(ye>>8&15|ye>>4&240,ye>>4&15|240&ye,(15&ye)<<4|15&ye,1):xe===8?A(ye>>24&255,ye>>16&255,ye>>8&255,(255&ye)/255):xe===4?A(ye>>12&15|ye>>8&240,ye>>8&15|ye>>4&240,ye>>4&15|240&ye,((15&ye)<<4|15&ye)/255):null):(ye=d.exec(fe))?new P(ye[1],ye[2],ye[3],1):(ye=h.exec(fe))?new P(255*ye[1]/100,255*ye[2]/100,255*ye[3]/100,1):(ye=p.exec(fe))?A(ye[1],ye[2],ye[3],ye[4]):(ye=f.exec(fe))?A(255*ye[1]/100,255*ye[2]/100,255*ye[3]/100,ye[4]):(ye=y.exec(fe))?V(ye[1],ye[2]/100,ye[3]/100,1):(ye=w.exec(fe))?V(ye[1],ye[2]/100,ye[3]/100,ye[4]):x.hasOwnProperty(fe)?S(x[fe]):fe==="transparent"?new P(NaN,NaN,NaN,0):null}function S(fe){return new P(fe>>16&255,fe>>8&255,255&fe,1)}function A(fe,ye,xe,ke){return ke<=0&&(fe=ye=xe=NaN),new P(fe,ye,xe,ke)}function E(fe,ye,xe,ke){return arguments.length===1?((Ce=fe)instanceof r||(Ce=T(Ce)),Ce?new P((Ce=Ce.rgb()).r,Ce.g,Ce.b,Ce.opacity):new P):new P(fe,ye,xe,ke??1);var Ce}function P(fe,ye,xe,ke){this.r=+fe,this.g=+ye,this.b=+xe,this.opacity=+ke}function C(){return"#".concat(D(this.r)).concat(D(this.g)).concat(D(this.b))}function z(){var fe=I(this.opacity);return"".concat(fe===1?"rgb(":"rgba(").concat(O(this.r),", ").concat(O(this.g),", ").concat(O(this.b)).concat(fe===1?")":", ".concat(fe,")"))}function I(fe){return isNaN(fe)?1:Math.max(0,Math.min(1,fe))}function O(fe){return Math.max(0,Math.min(255,Math.round(fe)||0))}function D(fe){return((fe=O(fe))<16?"0":"")+fe.toString(16)}function V(fe,ye,xe,ke){return ke<=0?fe=ye=xe=NaN:xe<=0||xe>=1?fe=ye=NaN:ye<=0&&(fe=NaN),new j(fe,ye,xe,ke)}function R(fe){if(fe instanceof j)return new j(fe.h,fe.s,fe.l,fe.opacity);if(fe instanceof r||(fe=T(fe)),!fe)return new j;if(fe instanceof j)return fe;var ye=(fe=fe.rgb()).r/255,xe=fe.g/255,ke=fe.b/255,Ce=Math.min(ye,xe,ke),Ie=Math.max(ye,xe,ke),Ve=NaN,we=Ie-Ce,pe=(Ie+Ce)/2;return we?(Ve=ye===Ie?(xe-ke)/we+6*(xe<ke):xe===Ie?(ke-ye)/we+2:(ye-xe)/we+4,we/=pe<.5?Ie+Ce:2-Ie-Ce,Ve*=60):we=pe>0&&pe<1?0:Ve,new j(Ve,we,pe,fe.opacity)}function j(fe,ye,xe,ke){this.h=+fe,this.s=+ye,this.l=+xe,this.opacity=+ke}function q(fe){return(fe=(fe||0)%360)<0?fe+360:fe}function $(fe){return Math.max(0,Math.min(1,fe||0))}function G(fe,ye,xe){return 255*(fe<60?ye+(xe-ye)*fe/60:fe<180?xe:fe<240?ye+(xe-ye)*(240-fe)/60:ye)}b(r,T,{copy:function(fe){return Object.assign(new this.constructor,this,fe)},displayable:function(){return this.rgb().displayable()},hex:M,formatHex:M,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return R(this).formatHsl()},formatRgb:k,toString:k}),b(P,E,m(r,{brighter:function(fe){return fe=fe==null?_:Math.pow(_,fe),new P(this.r*fe,this.g*fe,this.b*fe,this.opacity)},darker:function(fe){return fe=fe==null?v:Math.pow(v,fe),new P(this.r*fe,this.g*fe,this.b*fe,this.opacity)},rgb:function(){return this},clamp:function(){return new P(O(this.r),O(this.g),O(this.b),I(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:C,formatHex:C,formatHex8:function(){return"#".concat(D(this.r)).concat(D(this.g)).concat(D(this.b)).concat(D(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:z,toString:z})),b(j,function(fe,ye,xe,ke){return arguments.length===1?R(fe):new j(fe,ye,xe,ke??1)},m(r,{brighter:function(fe){return fe=fe==null?_:Math.pow(_,fe),new j(this.h,this.s,this.l*fe,this.opacity)},darker:function(fe){return fe=fe==null?v:Math.pow(v,fe),new j(this.h,this.s,this.l*fe,this.opacity)},rgb:function(){var fe=this.h%360+360*(this.h<0),ye=isNaN(fe)||isNaN(this.s)?0:this.s,xe=this.l,ke=xe+(xe<.5?xe:1-xe)*ye,Ce=2*xe-ke;return new P(G(fe>=240?fe-240:fe+120,Ce,ke),G(fe,Ce,ke),G(fe<120?fe+240:fe-120,Ce,ke),this.opacity)},clamp:function(){return new j(q(this.h),$(this.s),$(this.l),I(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var fe=I(this.opacity);return"".concat(fe===1?"hsl(":"hsla(").concat(q(this.h),", ").concat(100*$(this.s),"%, ").concat(100*$(this.l),"%").concat(fe===1?")":", ".concat(fe,")"))}}));var Z=function(fe){return function(){return fe}};function H(fe,ye){var xe=ye-fe;return xe?function(ke,Ce){return function(Ie){return ke+Ie*Ce}}(fe,xe):Z(isNaN(fe)?ye:fe)}var Y=function fe(ye){var xe=function(Ce){return(Ce=+Ce)==1?H:function(Ie,Ve){return Ve-Ie?function(we,pe,ue){return we=Math.pow(we,ue),pe=Math.pow(pe,ue)-we,ue=1/ue,function(_e){return Math.pow(we+_e*pe,ue)}}(Ie,Ve,Ce):Z(isNaN(Ie)?Ve:Ie)}}(ye);function ke(Ce,Ie){var Ve=xe((Ce=E(Ce)).r,(Ie=E(Ie)).r),we=xe(Ce.g,Ie.g),pe=xe(Ce.b,Ie.b),ue=H(Ce.opacity,Ie.opacity);return function(_e){return Ce.r=Ve(_e),Ce.g=we(_e),Ce.b=pe(_e),Ce.opacity=ue(_e),Ce+""}}return ke.gamma=fe,ke}(1);function X(fe,ye){var xe,ke=ye?ye.length:0,Ce=fe?Math.min(ke,fe.length):0,Ie=new Array(Ce),Ve=new Array(ke);for(xe=0;xe<Ce;++xe)Ie[xe]=me(fe[xe],ye[xe]);for(;xe<ke;++xe)Ve[xe]=ye[xe];return function(we){for(xe=0;xe<Ce;++xe)Ve[xe]=Ie[xe](we);return Ve}}function le(fe,ye){var xe=new Date;return fe=+fe,ye=+ye,function(ke){return xe.setTime(fe*(1-ke)+ye*ke),xe}}function ie(fe,ye){return fe=+fe,ye=+ye,function(xe){return fe*(1-xe)+ye*xe}}function ae(fe){return ae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ye){return typeof ye}:function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye},ae(fe)}function re(fe,ye){var xe,ke={},Ce={};for(xe in fe!==null&&ae(fe)==="object"||(fe={}),ye!==null&&ae(ye)==="object"||(ye={}),ye)xe in fe?ke[xe]=me(fe[xe],ye[xe]):Ce[xe]=ye[xe];return function(Ie){for(xe in ke)Ce[xe]=ke[xe](Ie);return Ce}}var te=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ee=new RegExp(te.source,"g");function se(fe,ye){var xe,ke,Ce,Ie=te.lastIndex=ee.lastIndex=0,Ve=-1,we=[],pe=[];for(fe+="",ye+="";(xe=te.exec(fe))&&(ke=ee.exec(ye));)(Ce=ke.index)>Ie&&(Ce=ye.slice(Ie,Ce),we[Ve]?we[Ve]+=Ce:we[++Ve]=Ce),(xe=xe[0])===(ke=ke[0])?we[Ve]?we[Ve]+=ke:we[++Ve]=ke:(we[++Ve]=null,pe.push({i:Ve,x:ie(xe,ke)})),Ie=ee.lastIndex;return Ie<ye.length&&(Ce=ye.slice(Ie),we[Ve]?we[Ve]+=Ce:we[++Ve]=Ce),we.length<2?pe[0]?function(ue){return function(_e){return ue(_e)+""}}(pe[0].x):function(ue){return function(){return ue}}(ye):(ye=pe.length,function(ue){for(var _e,Be=0;Be<ye;++Be)we[(_e=pe[Be]).i]=_e.x(ue);return we.join("")})}function he(fe,ye){ye||(ye=[]);var xe,ke=fe?Math.min(ye.length,fe.length):0,Ce=ye.slice();return function(Ie){for(xe=0;xe<ke;++xe)Ce[xe]=fe[xe]*(1-Ie)+ye[xe]*Ie;return Ce}}function ce(fe){return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ye){return typeof ye}:function(ye){return ye&&typeof Symbol=="function"&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye},ce(fe)}function me(fe,ye){var xe,ke,Ce=ce(ye);return ye==null||Ce==="boolean"?Z(ye):(Ce==="number"?ie:Ce==="string"?(xe=T(ye))?(ye=xe,Y):se:ye instanceof T?Y:ye instanceof Date?le:(ke=ye,!ArrayBuffer.isView(ke)||ke instanceof DataView?Array.isArray(ye)?X:typeof ye.valueOf!="function"&&typeof ye.toString!="function"||isNaN(ye)?re:ie:he))(fe,ye)}},30584:function(u){u.exports=JSON.parse('["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]')},7294:function(u){u.exports=JSON.parse('["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]')},47916:function(u){u.exports=JSON.parse('["normal","italic","oblique"]')},2904:function(u){u.exports=JSON.parse('["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]')},68194:function(u){u.exports=JSON.parse('["inherit","initial","unset"]')},3748:function(u){u.exports=JSON.parse('["caption","icon","menu","message-box","small-caption","status-bar"]')}},N={};function L(u){var g=N[u];if(g!==void 0)return g.exports;var n=N[u]={exports:{}};return i[u].call(n.exports,n,n.exports,L),n.exports}return L.n=function(u){var g=u&&u.__esModule?function(){return u.default}:function(){return u};return L.d(g,{a:g}),g},L.d=function(u,g){for(var n in g)L.o(g,n)&&!L.o(u,n)&&Object.defineProperty(u,n,{enumerable:!0,get:g[n]})},L.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),L.o=function(u,g){return Object.prototype.hasOwnProperty.call(u,g)},L.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},L(13792)}()})})(JU);var j9t=JU.exports;const XU=j9(j9t),odn="",sdn="",U9t={ref:"card",class:"card-volumetric-field"},KU=1,H9t=800,QU=300,G9t=-46,eH=100,tH=-14,W9t=Jr({__name:"VolumetricField",props:{passesPlays:{type:Array,default:()=>[]},playIndexes:{type:Object,default:()=>{}}},setup(e){const a=e,i=new Set([2,20,308,310]),N=[[0,"rgb(12,31,82)"],[.2,"rgb(115,248,253)"],[.4,"rgb(117,251,98)"],[.6,"rgb(255,255,84)"],[.8,"rgb(242,168,59)"],[1,"rgb(234,55,36)"]];let L=null;const u=t.ref(null),g=t.ref(null),n=t.ref(0),b=t.ref(null);t.watch(()=>a.passesPlays,p=>{const f=p.reduce((y,w)=>(i.has(w[a.playIndexes.categoryId])&&y.push({x1:w[a.playIndexes.coordinate1X],y1:w[a.playIndexes.coordinate1Y],x2:w[a.playIndexes.coordinate2X],y2:w[a.playIndexes.coordinate2Y],x3:w[a.playIndexes.coordinate3X],y3:w[a.playIndexes.coordinate3Y]}),y),[]);h(f)}),t.watch(()=>n.value,(p,f)=>{b.value&&(o(p),g.value.style.height=`${l(p)}px`,b.value.style.top=`${d(l(p))}px`)});function m(){L=new ResizeObserver(p=>{for(const f of p)n.value=f.contentRect.width}),L.observe(u.value)}function r(p){return Array.from({length:p},()=>0)}function v(p,f){let y=.01351,w=.02439,x=0,M=0,k=[];const T=f.length,S=Math.floor(T/10);for(;x<74;)M=f.filter(A=>1-A.y3>=x*y&&1-A.y3<=(x+1)*y&&1-A.x3>=p*w&&1-A.x3<=(p+1)*w).map(A=>A.y3).length,k.push(parseFloat((M/S).toFixed(4))),x++;return k.reverse()}function _(p){let f=[r(74),r(74)],y=[],w=39;for(;w>0&&w<=39;)y=v(w,p),f.push(y),w--;return f.push(r(74),r(74)),f}function c(p,f,y){const w=[];let k=0,T=0;w.push(p[0]);for(let S=1;S<y-1;S++){const A=[];A.push(p[S][0]);for(let E=1;E<f-1;E++)k=p[S][E-1],T=p[S][E+1],A.push(k+.5*(p[S][E]+T-k));A.push(p[S][f-1]),w.push(A)}w.push(p[y-1]);for(let S=1;S<f-1;S++)for(let A=1;A<y-1;A++)k=w[A-1][S],T=w[A+1][S],w[A][S]=k+.5*(w[A][S]+T-k);return w}function s(p){let f=0,y=0;for(let w=0;w<p.length;w++){y=y+p[w].reduce(function(M,k){return M+k});const x=Math.max.apply(null,p[w]);x>f&&(f=x)}return f}function o(p){XU.relayout(u.value,{width:p,height:l(p)})}function l(p){return Math.round(QU/H9t*p,0)}function d(p){return tH+(p-eH)/(QU-eH)*(G9t-tH)}function h(p){let f=_(p),y=f.length,w=f[0].length;f=c(c(f,w,y),w,y),w=f[0].length,y=f.length;const x=s(f),M=[{z:f,type:"surface",connectgaps:!0,opacity:.25,colorscale:N,autoscale:!1,showscale:!1}],k=[0,w],T=[0,y],S=[0,x*5],A={scene:{xaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,showbackground:!1,backgroundcolor:"transparent",range:k},yaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,showbackground:!1,backgroundcolor:"transparent",range:T},zaxis:{title:"",showgrid:!1,showline:!1,zeroline:!1,showticklabels:!1,showbackground:!1,backgroundcolor:"transparent",range:S},aspectratio:{x:1,y:.419,z:1},camera:{eye:{x:-.006743829259037479,y:.33535167247712533,z:-.0014332540873207011},center:{x:-.00679220694254041,y:.10728256468650094,z:-.30848979628595363}}},showlegend:!1,width:n.value,height:l(n.value),paper_bgcolor:"rgba(0,0,0,0)",margin:{l:0,r:0,b:0,t:0}};g.value&&(g.value.style.height=`${l(n.value)}px`);const E=[];for(let P=0;P<w;P++){const C=[],z=[],I=[];for(let O=0;O<y;O++)C.push(P),z.push(O),I.push(M[0].z[O][P]);E.push({x:C,y:z,z:I,type:"scatter3d",mode:"lines",line:{cmin:-.1,cmax:x,width:KU,color:I,colorscale:N,shape:"spline",smoothing:.6,dash:"dotline"}})}for(let P=0;P<y;P++){const C=[],z=[],I=[];for(let O=0;O<w;O++)C.push(O),z.push(P),I.push(M[0].z[P][O]);E.push({x:C,y:z,z:I,type:"scatter3d",mode:"lines",line:{cmin:-.1,cmax:x,width:KU,color:I,colorscale:N,shape:"spline",smoothing:.6,dash:"dotline"}})}XU.newPlot("surface-plot",M.concat(E),A,{displayModeBar:!1},{responsive:!0}),b.value=document.getElementsByClassName("plot-container")[0],b.value&&(b.value.style.top=`${d(l(n.value))}px`)}return t.onMounted(()=>{u.value&&(u.value.style.pointerEvents="none"),m()}),(p,f)=>(t.openBlock(),t.createElementBlock("div",U9t,[t.createElementVNode("div",{ref_key:"volumetricField",ref:g,class:"card-volumetric-field__volumetric-field"},[t.createElementVNode("div",{ref_key:"surfacePlot",ref:u,id:"surface-plot"},null,512)],512)],512))}},[["__scopeId","data-v-b4141ee5"]]),cdn="",nH=e=>(t.pushScopeId("data-v-dd911c44"),e=e(),t.popScopeId(),e),q9t=nH(()=>t.createElementVNode("div",{class:"attack-direction__line"},null,-1)),Y9t=nH(()=>t.createElementVNode("div",{class:"attack-direction__text"},"Ataca",-1)),Z9t=Jr({__name:"AttackDirection",props:{team:{type:Object,required:!0}},setup(e){const a=e,i=t.computed(()=>({"--flex-direction-info":a.team.isHomeTeam?"flex":"row-reverse","--justify-content-info":a.team.isHomeTeam?"flex-start":"flex-end","--arrow-color":a.team.isHomeTeam?"#336dff":"#7ed321"}));return(N,L)=>(t.openBlock(),t.createElementBlock("div",{class:"attack-direction",style:t.normalizeStyle(i.value)},[q9t,t.createElementVNode("div",{class:t.normalizeClass(`attack-direction__triangle-${e.team.isHomeTeam?"right":"left"}`)},null,2),Y9t],4))}},[["__scopeId","data-v-dd911c44"]]),J9t=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y","xGi","xGf","distance","fieldArea"];let xC=null;function X9t(){return xC||(xC=W1(J9t)),xC}const udn="",K9t=e=>(t.pushScopeId("data-v-31b7b20b"),e=e(),t.popScopeId(),e),Q9t={class:"volumetric-section-container"},eCt=K9t(()=>t.createElementVNode("div",{class:"volumetric-section-container__title"},"Volumétrica",-1)),tCt={key:0,class:"volumetric-section-container__switch"},nCt={class:"volumetric-section-container__attack-direction"},aCt={class:"volumetric-section-container__field"},rCt=Jr({__name:"VolumetricSectionContainer",props:{game:{type:Object,default:()=>({})},seasonSelected:{type:Object,default:()=>({})},token:{type:String,default:""},isGamePreMatch:{type:Boolean,default:!1},teamSelectedPreMatch:{type:Object,default:()=>({})}},setup(e){const a=e,i=X9t(),N=new Set([2,20,308,310]),L=new Set([3,21,309]),u=new Set([...N,...L]),g=t.ref(0),n=t.ref(new Map),b=t.ref({teamId:0}),m=t.computed(()=>[{teamId:a.game.homeTeam.team_id,text:a.game.homeTeam.colloquial_name,img:a.game.homeTeam.logo,isHomeTeam:!0},{teamId:a.game.awayTeam.team_id,text:a.game.awayTeam.colloquial_name,img:a.game.awayTeam.logo,isHomeTeam:!1}]),r=t.computed(()=>n.value.get(a.isGamePreMatch?a.teamSelectedPreMatch.teamId:b.value.teamId)||[]);t.watch(()=>m.value,()=>{g.value=0,b.value=m.value[g.value]},{immediate:!0}),t.watch(()=>a.game.gameId,o=>{o&&v()},{immediate:!0});async function v(){try{const o=await c();n.value.set(a.game.homeTeam.team_id,o.homeTeam),n.value.set(a.game.awayTeam.team_id,o.awayTeam)}catch(o){throw new Error(o)}}function _(o){return a.game.game_status===4?o[i.gameId]!==a.game.gameId:o[i.gameId]===a.game.gameId}async function c(){try{const[o,l]=await Promise.all([Il.get(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsTeamBySeason-${a.game.seasonId}-${a.game.homeTeam.team_id}.json`,{headers:{Authorization:""}}),Il.get(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsTeamBySeason-${a.game.seasonId}-${a.game.awayTeam.team_id}.json`,{headers:{Authorization:""}})]);return{homeTeam:o.data.data.posession.filter(h=>h[i.teamId]===a.game.homeTeam.team_id&&u.has(h[i.categoryId])&&_(h)),awayTeam:l.data.data.posession.filter(h=>h[i.teamId]===a.game.awayTeam.team_id&&u.has(h[i.categoryId])&&_(h)?(h[i.coordinate1Y]=1-h[i.coordinate1Y],h[i.coordinate2Y]=1-h[i.coordinate2Y],h[i.coordinate3Y]=1-h[i.coordinate3Y],h[i.coordinate1X]=1-h[i.coordinate1X],h[i.coordinate2X]=1-h[i.coordinate2X],h[i.coordinate3X]=1-h[i.coordinate3X],!0):!1)}}catch(o){throw new Error(o)}}function s(o){g.value=o.index,b.value=o.button}return(o,l)=>(t.openBlock(),t.createElementBlock("div",Q9t,[eCt,e.isGamePreMatch?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",tCt,[t.createVNode(U3,{"selected-button-index":g.value,buttons:m.value,width:"320px","border-radius":"16px",onChange:s},null,8,["selected-button-index","buttons"])])),t.createElementVNode("div",nCt,[t.createVNode(Z9t,{team:e.isGamePreMatch?e.teamSelectedPreMatch:b.value},null,8,["team"])]),t.createElementVNode("div",aCt,[t.createVNode(W9t,{"passes-plays":r.value,"play-indexes":t.unref(i)},null,8,["passes-plays","play-indexes"])])]))}},[["__scopeId","data-v-31b7b20b"]]),pdn="";let aH=null;const iCt={components:{GSCHighlights:z0t,ToggleButtons:U3,VolumetricSectionContainer:rCt,DataProminentGame:Y0t,HighlightsProminentGame:J1t,GSCRadioToggle:Mj,FieldPosesion:E1t,EventsLine:Vgt,ChalkboardSectionContainer:$9t},props:{game:{type:Object,default:()=>({})},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"},seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!1},is_captured:{type:Number,default:1},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},data(){return{widthSection:0,viewVolumtrica:!0,teamButtonSelectedIndex:0,switchTypeViewFiled:"Porcentajes",teamSelected:{teamId:0}}},computed:{toggleButtons(){return[{teamId:this.game.homeTeam.team_id,text:this.game.homeTeam.colloquial_name,img:this.game.homeTeam.logo,isHomeTeam:!0},{teamId:this.game.awayTeam.team_id,text:this.game.awayTeam.colloquial_name,img:this.game.awayTeam.logo,isHomeTeam:!1}]},isGamePreMatch(){return this.game&&this.game.game_status===4}},watch:{widthSection(){this.viewVolumtrica=this.widthSection>=760},toggleButtons:{handler(){this.teamButtonSelectedIndex=0,this.teamSelected=this.toggleButtons[0]},deep:!0,immediate:!0}},methods:{onChangeToggle(e){this.teamButtonSelectedIndex=e.index,this.teamSelected=e.button},setUpResizeObserver(){if(window.ResizeObserver)aH=new ResizeObserver(()=>{this.widthSection=this.$refs.prominent.clientWidth}),aH.observe(this.$refs.prominent);else throw new Error("Resize observer not supported!")},async ChangeRadio(e){typeof e=="string"&&(this.switchTypeViewFiled=e)},openmedia(e){this.$emit("openmedia",e)},onClickPlayEvent(e){this.$emit("click-play-event",e)},onOpenMediaPlayer(e){this.canPlayVideos&&this.$emit("open-media-player",e)}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},wp=e=>(t.pushScopeId("data-v-137070c7"),e=e(),t.popScopeId(),e),oCt={class:"container-prominent",ref:"prominent"},sCt={class:"container-prominent-data"},lCt={class:"container-prominent-section"},cCt={class:"highlights-containers"},dCt=wp(()=>t.createElementVNode("div",{class:"fields-section-title"},"Posesión",-1)),uCt={key:0,class:"container-leyend-prematch"},hCt=wp(()=>t.createElementVNode("span",{class:"leyend-bold"},"IMPORTANTE:",-1)),pCt={key:1,class:"container-leyend-prematch-movil"},fCt=wp(()=>t.createElementVNode("span",{class:"leyend-bold"},"IMPORTANTE:",-1)),mCt=wp(()=>t.createElementVNode("br",null,null,-1)),gCt=wp(()=>t.createElementVNode("br",null,null,-1)),yCt={key:2,class:"container-leyend-prematch-movil"},vCt=wp(()=>t.createElementVNode("span",{class:"leyend-bold"},"IMPORTANTE:",-1)),_Ct=wp(()=>t.createElementVNode("br",null,null,-1)),bCt=wp(()=>t.createElementVNode("br",null,null,-1)),xCt={class:"container-switch-toggle"},wCt={class:"container-prominent-section__chalkboard"},kCt=wp(()=>t.createElementVNode("div",{class:"fields-section-title"},"Pizarra",-1));function CCt(e,a,i,N,L,u){const g=t.resolveComponent("DataProminentGame"),n=t.resolveComponent("HighlightsProminentGame"),b=t.resolveComponent("GSCHighlights"),m=t.resolveComponent("EventsLine"),r=t.resolveComponent("ToggleButtons"),v=t.resolveComponent("GSCRadioToggle"),_=t.resolveComponent("FieldPosesion"),c=t.resolveComponent("VolumetricSectionContainer"),s=t.resolveComponent("ChalkboardSectionContainer");return t.openBlock(),t.createElementBlock("div",oCt,[t.createElementVNode("div",sCt,[t.createVNode(g,{game:i.game,"can-play-videos":i.canPlayVideos,onOpenmedia:u.openmedia},null,8,["game","can-play-videos","onOpenmedia"])]),t.createElementVNode("div",lCt,[t.createElementVNode("div",cCt,[i.game.status==1?(t.openBlock(),t.createBlock(n,{key:0,"can-play-videos":i.canPlayVideos,game:i.game,onOpenmedia:u.openmedia},null,8,["can-play-videos","game","onOpenmedia"])):(t.openBlock(),t.createBlock(b,{key:1,data:{game:i.game.gameId,season:i.game.seasonId,type:"historic"},"can-play-videos":i.canPlayVideos,"video-privileges-playing-as":i.videoPrivilegesPlayingAs,onOpenmedia:u.openmedia},null,8,["data","can-play-videos","video-privileges-playing-as","onOpenmedia"]))]),i.game.status==1&&i.is_captured==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(L.widthSection>920?"container-prominent-section__events-line":"container-prominent-section__events-line-mobile")},[t.createVNode(m,{token:i.token,game:i.game,widthScreen:L.widthSection,"can-play-videos":i.canPlayVideos,onClickPlay:u.onClickPlayEvent},null,8,["token","game","widthScreen","can-play-videos","onClickPlay"])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(L.widthSection>760?"fields-section-container":"fields-section-container-movil")},[dCt,i.game.game_status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[L.widthSection>590?(t.openBlock(),t.createElementBlock("div",uCt,[hCt,t.createTextVNode("  Es en base a las estadisticas de los partidos ya jugados en el torneo. ")])):t.createCommentVNode("",!0),L.widthSection>340&&L.widthSection<=590?(t.openBlock(),t.createElementBlock("div",pCt,[fCt,t.createTextVNode("  "),mCt,t.createTextVNode("Es en base a las estadisticas de los partidos ya "),gCt,t.createTextVNode(" jugados en el torneo. ")])):t.createCommentVNode("",!0),L.widthSection<=340?(t.openBlock(),t.createElementBlock("div",yCt,[vCt,t.createTextVNode("  "),_Ct,t.createTextVNode("Es en base a las estadisticas de los "),bCt,t.createTextVNode("partidos ya jugados en el torneo. ")])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(L.widthSection>420?"container-switch-prematch-teams":"container-switch-prematch-teams-movil")},[t.createVNode(r,{"selected-button-index":L.teamButtonSelectedIndex,buttons:u.toggleButtons,width:"320px","border-radius":"16px",onChange:u.onChangeToggle},null,8,["selected-button-index","buttons","onChange"])],2)],64)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",xCt,[t.createVNode(v,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":"Porcentajes",textOptionLeft:"Porcentajes",textOptionRight:"Volumétrico",onChange:u.ChangeRadio},null,8,["onChange"])],512),[[t.vShow,L.widthSection<=760]]),t.createElementVNode("div",{class:t.normalizeClass(L.widthSection>760?"fields-container":"fields-container-movil")},[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(L.widthSection>760?"field-possesion-container":"field-possesion-container-movil")},[t.createVNode(_,{"width-Section":L.widthSection,game:i.game,"team-selected":L.teamSelected.teamId==0?u.toggleButtons[0]:L.teamSelected},null,8,["width-Section","game","team-selected"])],2),[[t.vShow,L.switchTypeViewFiled=="Porcentajes"||L.widthSection>760]]),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(L.widthSection>760?"field-volumetrica-container":"field-volumetrica-container-movil")},[t.createVNode(c,{game:i.game,"season-selected":i.seasonSelected,token:i.token,"is-game-pre-match":u.isGamePreMatch,"team-selected-pre-match":L.teamSelected},null,8,["game","season-selected","token","is-game-pre-match","team-selected-pre-match"])],2),[[t.vShow,L.viewVolumtrica&&L.widthSection>760||L.switchTypeViewFiled=="Volumétrico"]])],2),t.createCommentVNode("",!0)],2),t.createElementVNode("div",wCt,[kCt,t.createVNode(s,{game:i.game,"season-selected":i.seasonSelected,token:i.token,"width-section":L.widthSection,"can-play-videos":i.canPlayVideos,"is-game-pre-match":u.isGamePreMatch,onOpenMediaPlayer:u.onOpenMediaPlayer},null,8,["game","season-selected","token","width-section","can-play-videos","is-game-pre-match","onOpenMediaPlayer"])])])],512)}const TCt=Jr(iCt,[["render",CCt],["__scopeId","data-v-137070c7"]]),fdn="",SCt={class:"datagame-container"},ECt=Jr({__name:"GSCProminentMain",props:{game:{type:Object,default:()=>({})},seasonSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!1},is_captured:{type:Number,default:1},videoPrivilegesPlayingAs:{type:Set,default:()=>new Set([1,2])},playVideosPrivileges:{type:Object,default:null}},emits:["click-play-event","openmedia"],setup(e,{emit:a}){function i(u){a("click-play-event",u)}function N(u){a("openmedia",u)}function L(u){a("openmedia",u)}return(u,g)=>(t.openBlock(),t.createElementBlock("div",SCt,[t.createVNode(TCt,{game:e.game,is_captured:e.is_captured,"season-selected":e.seasonSelected,"can-play-videos":e.canPlayVideos,"video-privileges-playing-as":e.videoPrivilegesPlayingAs,"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:N,onClickPlayEvent:i,onOpenMediaPlayer:L},null,8,["game","is_captured","season-selected","can-play-videos","video-privileges-playing-as","play-videos-privileges"])]))}},[["__scopeId","data-v-f1755f06"]]),ACt={class:"datagame-container"},MCt={__name:"GSCDatosGSMainAvanced",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},playVideosPrivileges:{type:Object,default:null}},emits:["openmedia"],setup(e,{emit:a}){const i=e,N=t.ref(0);t.watch(()=>i.game,u=>{N.value=u.gameId},{deep:!0,immediate:!0});function L(u){a("openmedia",u)}return(u,g)=>(t.openBlock(),t.createElementBlock("div",ACt,[e.game.game_status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(Sb),{key:N.value,type:0,data:{season:e.game.seasonId,game:e.game.gameId,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:1},"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:L},null,8,["data","play-videos-privileges"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(Sb),{key:N.value,type:1,data:{season:e.game.seasonId,game:e.game.gameId,home_team_id:e.game.homeTeam.team_id,away_team_id:e.game.awayTeam.team_id,team_view:2},"play-videos-privileges":e.playVideosPrivileges,onOpenmedia:L},null,8,["data","play-videos-privileges"])):t.createCommentVNode("",!0)],64))]))}},ICt={computed:{sizeTabsFontMP(){const e=this.elementSize.width;return e<=380?"12px":e<=768?"14px":"16px"},sizeTabsFontMS(){const e=this.elementSize.width;return e<=600?"12px":e<=768?"13px":"14px"},sizeTabsMS(){const e=this.elementSize.width;return e<=480?"145px":e<=600?"153px":e<=620?"163px":e<=640?"170px":e<=660?"175px":e<=680?"180px":e<=700?"185px":e<=720?"195px":"200px"},sizeTabsMP(){const e=this.elementSize.width;return e<=319?"68px":e<=330?"73px":e<=340?"78px":e<=350?"82px":e<=360||e<=370?"90px":e<=390?"95px":e<=410?"105px":e<=430?"110px":e<=450?"117px":e<=470?"122px":e<=500?"130px":e<=530?"138px":e<=560?"155px":e<=590?"163px":e<=620?"175px":e<=650?"180px":e<=680?"195px":e<=730?"210px":e<=768?"100px":"110px"},comextleyemdmultipleleaguesClass(){return this.elementSize.width<=380?this.$style.comtextleyemdmultipleleagues380:this.$style.comtextleyemdmultipleleagues},comdropdownParentClass(){return this.elementSize.width<=730?this.$style.comdropdownParent730:this.$style.comdropdownParent},comdescubreVideosClass(){const e=this.elementSize.width;return e<=960?this.$style.comdescubreVideos960:e<=1232?this.$style.comdescubreVideos1232:this.$style.comdescubreVideos},comquitarFiltrosClass(){const e=this.elementSize.width;return e<=380?this.$style.comquitarFiltros380:e<=480?this.$style.comquitarFiltros480:e<=730?this.$style.comquitarFiltros730:this.$style.comquitarFiltros},commejoresJugadoresClass(){const e=this.elementSize.width;return e<=480?this.$style.commejoresJugadores480:e<=730?this.$style.commejoresJugadores730:this.$style.commejoresJugadores},menuSectionClass(){return this.elementSize.width<=960?this.$style.commenuSection960:this.$style.commenuSection},topFiltersClass(){const e=this.elementSize.width;return e<=420?this.$style.comtopFilters420:e<=460?this.$style.comtopFilters460:e<=1232?this.$style.comtopFilters1232:this.$style.comtopFilters},toniKroosWrapperClass(){const e=this.elementSize.width;return e<=319?this.$style.comtoniKroosWrapper320:e<=420?this.$style.comtoniKroosWrapper420:e<=916?this.$style.comtoniKroosWrapper760:e<=975?this.$style.comtoniKroosWrapper975:e<=1079?this.$style.comtoniKroosWrapper1080:this.$style.comtoniKroosWrapper},containerTablesClass(){const e=this.elementSize.width;return e<=319?this.$style.comcontainerTables320:e<=916?this.$style.comcontainerTables760:e<=1079?this.$style.comcontainerTables960:this.$style.comcontainerTables},containerTheBestClass(){const e=this.elementSize.width;return e<=319?this.$style.comcontainerTheBest320:e<=960?this.$style.comcontainerTheBest960:e<=1232?this.$style.comcontainerTheBest1232:this.$style.comcontainerTheBest},menuSectionHeaderClass(){const e=this.elementSize.width;return e<=730?this.$style.commenuSectionHeader730:e<=960?this.$style.commenuSectionHeader960:e<=1232?this.$style.commenuSectionHeader1232:this.$style.commenuSectionHeader},losMejoresClass(){const e=this.elementSize.width;return e<=380?this.$style.comlosMejores380:e<=530?this.$style.comlosMejores530:e<=730?this.$style.comlosMejores730:this.$style.comlosMejores},dropdownClass(){return this.elementSize.width<=730?this.$style.comdropdown730:this.$style.comdropdown},dropdown1Class(){return this.elementSize.width<=730?this.$style.comdropdown1730:this.$style.comdropdown1},menuSectionParentHeaderClass(){const e=this.elementSize.width;return e<=430?this.$style.commenuSectionParentHeader430:e<=730?this.$style.commenuSectionParentHeader730:e<=960?this.$style.commenuSectionParentHeader960:e<=1232?this.$style.commenuSectionParentHeader1232:this.$style.commenuSectionParentHeader},templateLosMejoresClass(){const e=this.elementSize.width;return e<=319?this.$style.comtemplateLosMejores1320:e<=350?this.$style.comtemplateLosMejores1350:e<=420?this.$style.comtemplateLosMejores1420:e<=540?this.$style.comtemplateLosMejores1540:e<=960?this.$style.comtemplateLosMejores1960:e<=1232?this.$style.comtemplateLosMejores11232:this.$style.comtemplateLosMejores1},containerMenuClass(){return this.elementSize.width<=760?this.$style.comcontainerMenu760:this.$style.comcontainerMenu},titleSectionClass(){return this.elementSize.width<=540?this.$style.comtitleSection540:this.$style.comtitleSection},containerSectionClass(){const e=this.elementSize.width;return e<=319?this.$style.comcontainerSection320:e<=350?this.$style.comcontainerSection350:e<=960?this.$style.comcontainerSection960:e<=1232?this.$style.comcontainerSection1232:this.$style.comcontainerSection},filtersContainerClass(){const e=this.elementSize.width;return e<=420?this.$style.comfiltersContainer420:e<=760?this.$style.comfiltersContainer760:e<=1232?this.$style.comfiltersContainer1232:this.$style.comfiltersContainer},topFiltersParentClass(){const e=this.elementSize.width;return e<=420?this.$style.comtopFiltersParent420:e<=460?this.$style.comtopFiltersParent460:e<=1232?this.$style.comtopFiltersParent1232:this.$style.comtopFiltersParent}}};function Vy(e){const a=t.ref({width:0,height:0});function i(){const N=e.value.getBoundingClientRect();a.value.width=N.width,a.value.height=N.height}return t.onMounted(()=>{i(),window.addEventListener("resize",i)}),t.onUnmounted(()=>{window.removeEventListener("resize",i)}),{elementSize:a}}const PCt={containerLeftTitles:"_containerLeftTitles_1rde2_60",containerLeftTitles420:"_containerLeftTitles420_1rde2_68",containerLeftTitles620:"_containerLeftTitles620_1rde2_76",containerLeftTitlesTeam:"_containerLeftTitlesTeam_1rde2_85",containerLeftTitlesTeam1180:"_containerLeftTitlesTeam1180_1rde2_93",containerLeftTitlesTeam1090:"_containerLeftTitlesTeam1090_1rde2_101",containerLeftTitlesTeam960:"_containerLeftTitlesTeam960_1rde2_109",containerLeftTitlesTeam860:"_containerLeftTitlesTeam860_1rde2_117",containerLeftTitlesTeam768:"_containerLeftTitlesTeam768_1rde2_125",containerLeftTitlesTeam680:"_containerLeftTitlesTeam680_1rde2_133",containerLeftTitlesTeam620:"_containerLeftTitlesTeam620_1rde2_141",containerLeftTitlesTeam420:"_containerLeftTitlesTeam420_1rde2_149",headTitles:"_headTitles_1rde2_158",headTitles960:"_headTitles960_1rde2_173",headTitles420:"_headTitles420_1rde2_188",headTitles540:"_headTitles540_1rde2_208",headTitles460:"_headTitles460_1rde2_223",headTitles620:"_headTitles620_1rde2_238",position:"_position_1rde2_253",position420:"_position420_1rde2_262",player:"_player_1rde2_265",player420:"_player420_1rde2_276",containerRightType1:"_containerRightType1_1rde2_280",containerRightTitles:"_containerRightTitles_1rde2_287",containerRightTitles960:"_containerRightTitles960_1rde2_296",block02Titles:"_block02Titles_1rde2_305",block02Titles620:"_block02Titles620_1rde2_313",mon1Scouting:"_mon1Scouting_1rde2_317",mon1Scouting960:"_mon1Scouting960_1rde2_327",mon1:"_mon1_1rde2_317",mon1420:"_mon1420_1rde2_345",mon1620:"_mon1620_1rde2_355",icnIcon:"_icnIcon_1rde2_365",icnIcon960:"_icnIcon960_1rde2_370",icnIcon420:"_icnIcon420_1rde2_376",teamTitle:"_teamTitle_1rde2_380",positionTitle:"_positionTitle_1rde2_390",ageTitle:"_ageTitle_1rde2_398",partidos:"_partidos_1rde2_406",playedGamesTitle:"_playedGamesTitle_1rde2_410",playedMinutesTitle:"_playedMinutesTitle_1rde2_420",block01Titles:"_block01Titles_1rde2_429",mon:"_mon_1rde2_317",containesOptionsTitles:"_containesOptionsTitles_1rde2_445",templateTablaProductividadType1:"_templateTablaProductividadType1_1rde2_452",templateTablaProductividadType1400:"_templateTablaProductividadType1400_1rde2_464",headTitlesType1:"_headTitlesType1_1rde2_478",headTitlesType1420:"_headTitlesType1420_1rde2_491",headTitlesType1400:"_headTitlesType1400_1rde2_507",headTitlesType1540:"_headTitlesType1540_1rde2_523",headTitlesType1460:"_headTitlesType1460_1rde2_537",headTitlesType1680:"_headTitlesType1680_1rde2_551",headTitlesType1350:"_headTitlesType1350_1rde2_564",positionType1:"_positionType1_1rde2_579",positionType1400:"_positionType1400_1rde2_588",teamType1:"_teamType1_1rde2_598",teamType1400:"_teamType1400_1rde2_607",frecuenciaType1:"_frecuenciaType1_1rde2_617",frecuenciaType1540:"_frecuenciaType1540_1rde2_625",containerLeftTitlesType1:"_containerLeftTitlesType1_1rde2_634",frecuenciaWrapperType1:"_frecuenciaWrapperType1_1rde2_642",frecuenciaWrapperType1680:"_frecuenciaWrapperType1680_1rde2_651",promedioPartidoType1:"_promedioPartidoType1_1rde2_659",promedioEstePartidoType1:"_promedioEstePartidoType1_1rde2_663",promedioEstePartidoType1960:"_promedioEstePartidoType1960_1rde2_671",promedioEstePartidoWrapperType1:"_promedioEstePartidoWrapperType1_1rde2_675",promedioEstePartidoWrapperType11200:"_promedioEstePartidoWrapperType11200_1rde2_683",promedioEstePartidoWrapperType11090:"_promedioEstePartidoWrapperType11090_1rde2_692",promedioEstePartidoWrapperType11086:"_promedioEstePartidoWrapperType11086_1rde2_702",promedioPartidosType1:"_promedioPartidosType1_1rde2_711",promedioPartidosWrapperType1:"_promedioPartidosWrapperType1_1rde2_718",promedioPartidosWrapperType1960:"_promedioPartidosWrapperType1960_1rde2_726",promedioPartidosWrapperType11086:"_promedioPartidosWrapperType11086_1rde2_729",partidosJugadosType1:"_partidosJugadosType1_1rde2_732",partidosJugadosType1960:"_partidosJugadosType1960_1rde2_738",partidosJugadosWrapperType1:"_partidosJugadosWrapperType1_1rde2_745",partidosJugadosWrapperType11200:"_partidosJugadosWrapperType11200_1rde2_753",partidosJugadosWrapperType11180:"_partidosJugadosWrapperType11180_1rde2_761",partidosJugadosWrapperType11170:"_partidosJugadosWrapperType11170_1rde2_769",partidosJugadosWrapperType11140:"_partidosJugadosWrapperType11140_1rde2_777",partidosJugadosWrapperType11086:"_partidosJugadosWrapperType11086_1rde2_785",partidosJugadosWrapperType1960:"_partidosJugadosWrapperType1960_1rde2_793",partidosJugadosWrapperType1880:"_partidosJugadosWrapperType1880_1rde2_801",partidosJugadosWrapperType1860:"_partidosJugadosWrapperType1860_1rde2_809",partidosJugadosWrapperType1830:"_partidosJugadosWrapperType1830_1rde2_817",partidosJugadosWrapperType1790:"_partidosJugadosWrapperType1790_1rde2_825",partidosJugadosWrapperType1930:"_partidosJugadosWrapperType1930_1rde2_833",partidosJugadosWrapperType1770:"_partidosJugadosWrapperType1770_1rde2_841",block01TitlesType1:"_block01TitlesType1_1rde2_844",monType1:"_monType1_1rde2_852",monType1960:"_monType1960_1rde2_861",monType1680:"_monType1680_1rde2_871",videosType1:"_videosType1_1rde2_874",videosType1680:"_videosType1680_1rde2_884",videosType1600:"_videosType1600_1rde2_893",videosType1540:"_videosType1540_1rde2_902",videosType1420:"_videosType1420_1rde2_911",videosType1400:"_videosType1400_1rde2_920",containesOptionsTitlesType1:"_containesOptionsTitlesType1_1rde2_932",containesOptionsTitlesType1768:"_containesOptionsTitlesType1768_1rde2_940",containesOptionsTitlesType1730:"_containesOptionsTitlesType1730_1rde2_947",containesOptionsTitlesType1690:"_containesOptionsTitlesType1690_1rde2_954",icnIconType1:"_icnIconType1_1rde2_961",icnIconType1420:"_icnIconType1420_1rde2_967",icnIconType1400:"_icnIconType1400_1rde2_974",block02TitlesType1:"_block02TitlesType1_1rde2_978",block02TitlesType1680:"_block02TitlesType1680_1rde2_985",block02TitlesType1350:"_block02TitlesType1350_1rde2_992",containerRightTitlesType1:"_containerRightTitlesType1_1rde2_999",containerRightTitlesType1420:"_containerRightTitlesType1420_1rde2_1008"},wC={components:{},computed:{icnIconType1Class(){const e=this.elementSize.width;return e<=400?this.$style.icnIconType1400:e<=420?this.$style.icnIconType1420:this.$style.icnIconType1},videosType1Class(){const e=this.elementSize.width;return e<=400?this.$style.videosType1400:e<=420?this.$style.videosType1420:e<=540?this.$style.videosType1540:e<=600?this.$style.videosType1600:e<=680?this.$style.videosType1680:this.$style.videosType1},monType1Class(){const e=this.elementSize.width;return e<=680?this.$style.monType1680:e<=960?this.$style.monType1960:this.$style.monType1},block02TitlesType1Class(){const e=this.elementSize.width;return e<=350?this.$style.block02TitlesType1350:e<=680?this.$style.block02TitlesType1680:this.$style.block02TitlesType1},containesOptionsTitlesType1Class(){const e=this.elementSize.width;return e<=400?this.$style.containesOptionsTitlesType1400:e<=690?this.$style.containesOptionsTitlesType1690:e<=730?this.$style.containesOptionsTitlesType1730:e<=768?this.$style.containesOptionsTitlesType1768:this.$style.containesOptionsTitlesType1},partidosJugadosWrapperType1Class(){const e=this.elementSize.width;return e<=770?this.$style.promedioPartidosWrapperType1770:e<=790?this.$style.partidosJugadosWrapperType1790:e<=830?this.$style.partidosJugadosWrapperType1830:e<=860?this.$style.partidosJugadosWrapperType1860:e<=880?this.$style.partidosJugadosWrapperType1880:e<=930?this.$style.partidosJugadosWrapperType1930:e<=960?this.$style.partidosJugadosWrapperType1960:e<=1086?this.$style.partidosJugadosWrapperType11086:e<=1140?this.$style.partidosJugadosWrapperType11140:e<=1170?this.$style.partidosJugadosWrapperType11170:e<=1180?this.$style.partidosJugadosWrapperType11180:e<=1200?this.$style.partidosJugadosWrapperType11200:this.$style.partidosJugadosWrapperType1},promedioPartidosWrapperType1Class(){const e=this.elementSize.width;return e<=960?this.$style.promedioPartidosWrapperType1960:e<=1086?this.$style.promedioPartidosWrapperType11086:this.$style.promedioPartidosWrapperType1},partidosJugadosType1Class(){return this.elementSize.width<=960?this.$style.partidosJugadosType1960:this.$style.partidosJugadosType1},templateTablaProductividadType1Class(){return this.elementSize.width<=400?this.$style.templateTablaProductividadType1400:this.$style.templateTablaProductividadType1},promedioEstePartidoType1Class(){return this.elementSize.width<=960?this.$style.promedioEstePartidoType1960:this.$style.promedioEstePartidoType1},headTitlesType1Class(){const e=this.elementSize.width;return e<=350?this.$style.headTitlesType1350:e<=400?this.$style.headTitlesType1400:e<=420?this.$style.headTitlesType1420:e<=460?this.$style.headTitlesType1460:e<=540?this.$style.headTitlesType1540:e<=680?this.$style.headTitlesType1680:this.$style.headTitlesType1},headTitlesClass(){const e=this.elementSize.width;return e<=420?this.$style.headTitles420:e<=460?this.$style.headTitles460:e<=540?this.$style.headTitles540:e<=620?this.$style.headTitles620:e<=960?this.$style.headTitles960:this.$style.headTitles},containerLeftTitlesClass(){const e=this.elementSize.width;return e<=420?this.$style.containerLeftTitles420:e<=620?this.$style.containerLeftTitles620:this.$style.containerLeftTitles},containerLeftTitlesClassTeam(){const e=this.elementSize.width;return e<=420?this.$style.containerLeftTitlesTeam420:e<=620?this.$style.containerLeftTitlesTeam620:e<=680?this.$style.containerLeftTitlesTeam680:e<=768?this.$style.containerLeftTitlesTeam768:e<=860?this.$style.containerLeftTitlesTeam860:e<=960?this.$style.containerLeftTitlesTeam960:e<=1090?this.$style.containerLeftTitlesTeam1090:e<=1180?this.$style.containerLeftTitlesTeam1180:this.$style.containerLeftTitlesTeam},icnIconClass(){const e=this.elementSize.width;return e<=420?this.$style.icnIcon420:e<=960?this.$style.icnIcon960:this.$style.icnIcon},mon1Class(){const e=this.elementSize.width;return e<=420?this.$style.mon1420:e<=620?this.$style.mon1620:this.$style.mon1},mon1ScoutingClass(){const e=this.elementSize.width;return e<=420?this.$style.mon1420:e<=960?this.$style.mon1Scouting960:this.$style.mon1Scouting},promedioEstePartidoWrapperType1Class(){const e=this.elementSize.width;return e<=1086?this.$style.promedioEstePartidoWrapperType11086:e<=1090?this.$style.promedioEstePartidoWrapperType11090:e<=1200?this.$style.promedioEstePartidoWrapperType11200:this.$style.promedioEstePartidoWrapperType1},frecuenciaWrapperType1Class(){return this.elementSize.width<=680?this.$style.frecuenciaWrapperType1680:this.$style.frecuenciaWrapperType1},frecuenciaType1Class(){return this.elementSize.width<=540?this.$style.frecuenciaType1540:this.$style.frecuenciaType1},positionType1Class(){return this.elementSize.width<=400?this.$style.positionType1400:this.$style.positionType1},containerRightType1Class(){return this.elementSize.width<=420?this.$style.containerRightType1420:this.$style.containerRightType1},containerRightTitlesType1Class(){return this.elementSize.width<=420?this.$style.containerRightTitlesType1420:this.$style.containerRightTitlesType1},teamType1Class(){return this.elementSize.width<=400?this.$style.teamType1400:this.$style.teamType1},playerClass(){return this.elementSize.width<=420?this.$style.player420:this.$style.player},positionClass(){return this.elementSize.width<=420?this.$style.position420:this.$style.position},containerRightTitlesClass(){return this.elementSize.width<=960?this.$style.containerRightTitles960:this.$style.containerRightTitles},block02TitlesClass(){return this.elementSize.width<=620?this.$style.block02Titles960:this.$style.block02Titles}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=Vy(e);return{myDivRef:e,elementSize:a}},props:{type:{type:Number,default:0},background:{type:String,default:"#172531"},height:{type:String,default:"71px"},heightTeam:{type:String,default:"65px"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"}},watch:{},data:()=>({}),async created(){},methods:{}},rH=()=>{t.useCssVars(e=>({"5f39c1fc":e.background,e40d360a:e.height,"3fa5cfc4":e.fontSize,97959e3:e.fontColor,52693332:e.fontFamily,"78a025f8":e.heightTeam}))},iH=wC.setup;wC.setup=iH?(e,a)=>(rH(),iH(e,a)):rH;const NCt={ref:"myDivRef"},BCt=t.createElementVNode("br",null,null,-1),OCt=t.createElementVNode("br",null,null,-1);function zCt(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",NCt,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.headTitlesClass),id:"container-titles"},[t.createElementVNode("div",{class:t.normalizeClass(u.containerLeftTitlesClass),id:"container-left-titles"},[t.createElementVNode("div",{class:t.normalizeClass(u.positionClass)},"Pos.",2),t.createElementVNode("div",{class:t.normalizeClass(u.playerClass)},"Jugador",2)],2),t.createElementVNode("div",{class:t.normalizeClass(u.containerRightTitlesClass),id:"container-right-titles"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01Titles)},[N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamTitle)},"Equipo",2)):t.createCommentVNode("",!0),N.elementSize.width>730?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.positionTitle)},"Posición",2)):t.createCommentVNode("",!0),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.ageTitle)},"edad",2)):t.createCommentVNode("",!0),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(e.$style.ageTitle)},"País",2)):t.createCommentVNode("",!0),N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(e.$style.playedGamesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Partidos",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Jugados",2)],2)):t.createCommentVNode("",!0),N.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:5,class:t.normalizeClass(e.$style.playedMinutesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Minutos",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Jugados",2)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(u.block02TitlesClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptionsTitles)},[N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.mon)},"Total",2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(u.mon1Class)},"Videos",2)],2)],2)],2)],2)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(u.templateTablaProductividadType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(u.headTitlesType1Class),id:"container-titles"},[t.createElementVNode("div",{class:t.normalizeClass(u.containerLeftTitlesClassTeam),id:"container-left-titles"},[t.createElementVNode("div",{class:t.normalizeClass(u.positionType1Class)},"Pos.",2),t.createElementVNode("div",{class:t.normalizeClass(u.teamType1Class)},"Equipo",2)],2),t.createElementVNode("div",{class:t.normalizeClass(u.containerRightType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(u.frecuenciaWrapperType1Class)},[N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.frecuenciaType1Class)},"Frecuencia",2)):t.createCommentVNode("",!0)],2),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.promedioEstePartidoWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(u.promedioEstePartidoType1Class)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.promedioPartidoType1)},"Promedio partido",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.promedioPartidoType1)},"este Torneo",2)],2)],2)):t.createCommentVNode("",!0),N.elementSize.width>1086?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(u.promedioPartidosWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.promedioPartidosType1)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.promedioPartidoType1)},[t.createTextVNode("Promedio partido"),BCt,t.createTextVNode("Torneo anterior")],2)],2)],2)):t.createCommentVNode("",!0),N.elementSize.width>770?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(u.partidosJugadosWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.partidosJugadosType1)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.promedioPartidoType1)},[t.createTextVNode("Partidos "),OCt,t.createTextVNode("Jugados")],2)],2)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(u.containesOptionsTitlesType1Class)},[N.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.monType1Class)},"total",2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(u.videosType1Class)},"Videos",2)],2)],2)],2)):t.createCommentVNode("",!0),i.type==2?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(u.headTitlesClass),id:"container-titles"},[t.createElementVNode("div",{class:t.normalizeClass(u.containerLeftTitlesClass),id:"container-left-titles"},[t.createElementVNode("div",{class:t.normalizeClass(u.positionClass)},"Pos.",2),t.createElementVNode("div",{class:t.normalizeClass(u.playerClass)},"Jugador",2)],2),t.createElementVNode("div",{class:t.normalizeClass(u.containerRightTitlesClass),id:"container-right-titles"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01Titles)},[N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamTitle)},"Equipo",2)):t.createCommentVNode("",!0),N.elementSize.width>730?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.positionTitle)},"Posición",2)):t.createCommentVNode("",!0),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.ageTitle)},"edad",2)):t.createCommentVNode("",!0),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(e.$style.ageTitle)},"País",2)):t.createCommentVNode("",!0),N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(e.$style.playedGamesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Partidos",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Jugados",2)],2)):t.createCommentVNode("",!0),N.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:5,class:t.normalizeClass(e.$style.playedMinutesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Minutos",2),t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Jugados",2)],2)):t.createCommentVNode("",!0),N.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:6,class:t.normalizeClass(e.$style.playedMinutesTitle)},[t.createElementVNode("p",{class:t.normalizeClass(e.$style.partidos)},"Liga",2)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(u.block02TitlesClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptionsTitles)},[t.createElementVNode("div",{class:t.normalizeClass(u.mon1ScoutingClass)},"Videos",2)],2)],2)],2)],2)):t.createCommentVNode("",!0)],512)}const oH=Jr(wC,[["render",zCt],["__cssModules",{$style:PCt}]]),_hn="",kC={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconPosition:{type:String,default:"left"},iconSize:String,mini:{type:Boolean,default:!1},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"},buttonMaxWidth:{type:String,default:"auto"},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,maxWidth:this.buttonMaxWidth,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))}}},sH=()=>{t.useCssVars(e=>({"72ff6367":e.height,"5ab83942":e.borderWidthBtn,"685a33c6":e.borderType,bc0fc752:e.borderColor,"9449c3c4":e.borderRadius,ac97d8f4:e.width,"7e4ca6d6":e.backgroundColor,"00cc2df0":e.cursorType,"09b439a0":e.fontSize,"699b8062":e.fontStyle,"9ad7625a":e.fontFamily,"081aa5ee":e.marginLeftStat,"624845a4":e.fontSizeStat}))},lH=kC.setup;kC.setup=lH?(e,a)=>(sH(),lH(e,a)):sH;const LCt=e=>(t.pushScopeId("data-v-a6a12d0c"),e=e(),t.popScopeId(),e),FCt=["src"],DCt={key:1,class:"text"},VCt=["src"],RCt={class:"stats"},$Ct=LCt(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),jCt={class:"numstats"},UCt={class:"leyend"};function HCt(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",L.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([u.customStyle,L.status&&i.typeOnOff&&u.customActive]),onClick:a[0]||(a[0]=(...g)=>u.btnClick&&u.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(i.mini?"icon-txt":"icon"),style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,14,FCt)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",DCt,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,VCt)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>u.btnClick&&u.btnClick(...g))},[t.createElementVNode("div",RCt,[$Ct,t.createElementVNode("div",jCt,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",UCt,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const cH=Jr(kC,[["render",HCt],["__scopeId","data-v-a6a12d0c"]]),GCt={rotate:"_rotate_z2pk6_3",positionContainer:"_positionContainer_z2pk6_50",positionContainer620:"_positionContainer620_z2pk6_57",rowwPlayerGames:"_rowwPlayerGames_z2pk6_64",rowwPlayer960Games:"_rowwPlayer960Games_z2pk6_80",rowwPlayer420Games:"_rowwPlayer420Games_z2pk6_95",rowwPlayer460Games:"_rowwPlayer460Games_z2pk6_111",containerLeftGames:"_containerLeftGames_z2pk6_128",containerLeft420Games:"_containerLeft420Games_z2pk6_136",containerLeft620Games:"_containerLeft620Games_z2pk6_144",iconFavoritesType1:"_iconFavoritesType1_z2pk6_151",iconFavoritesType1320:"_iconFavoritesType1320_z2pk6_159",iconFavorites:"_iconFavorites_z2pk6_151",iconFavorites420:"_iconFavorites420_z2pk6_175",playerContainerGames:"_playerContainerGames_z2pk6_183",playerContainer420Games:"_playerContainer420Games_z2pk6_195",playerContainer460Games:"_playerContainer460Games_z2pk6_207",playerContainerType1Games:"_playerContainerType1Games_z2pk6_219",playerContainerType1320Games:"_playerContainerType1320Games_z2pk6_229",playerContainerType1460Games:"_playerContainerType1460Games_z2pk6_239",imgPlayerIcon:"_imgPlayerIcon_z2pk6_249",imgPlayerIcon460:"_imgPlayerIcon460_z2pk6_259",imgPlayerIcon420:"_imgPlayerIcon420_z2pk6_269",manchesterUnitedGames:"_manchesterUnitedGames_z2pk6_279",manchesterUnited360Games:"_manchesterUnited360Games_z2pk6_290",manchesterUnited420Games:"_manchesterUnited420Games_z2pk6_301",manchesterUnited460Games:"_manchesterUnited460Games_z2pk6_312",containerRightGames:"_containerRightGames_z2pk6_323",containerRight960Games:"_containerRight960Games_z2pk6_332",containerRight420Games:"_containerRight420Games_z2pk6_342",numberOfVideos:"_numberOfVideos_z2pk6_353",numberOfVideos620:"_numberOfVideos620_z2pk6_359",block02Games:"_block02Games_z2pk6_365",block02960Games:"_block02960Games_z2pk6_375",block02620Games:"_block02620Games_z2pk6_384",block02420Games:"_block02420Games_z2pk6_391",verVideos:"_verVideos_z2pk6_399",verVideos620:"_verVideos620_z2pk6_405",numberPosition:"_numberPosition_z2pk6_408",shapeIcon:"_shapeIcon_z2pk6_414",chivasIcon:"_chivasIcon_z2pk6_419",imgTeamIcon:"_imgTeamIcon_z2pk6_430",teamName:"_teamName_z2pk6_435",nameTeamGames:"_nameTeamGames_z2pk6_441",dfC:"_dfC_z2pk6_450",position:"_position_z2pk6_50",age:"_age_z2pk6_460",manchesterUnitedIcon:"_manchesterUnitedIcon_z2pk6_468",country:"_country_z2pk6_475",playedGames:"_playedGames_z2pk6_482",playedMinutes:"_playedMinutes_z2pk6_489",block01:"_block01_z2pk6_496",leagueName:"_leagueName_z2pk6_503",roleCharacterIcon:"_roleCharacterIcon_z2pk6_509",btnVideosGames:"_btnVideosGames_z2pk6_517",containerBtnVideosGames:"_containerBtnVideosGames_z2pk6_532",containerBtnVideos620Games:"_containerBtnVideos620Games_z2pk6_542",containesOptions:"_containesOptions_z2pk6_551",arrowExpandIcon:"_arrowExpandIcon_z2pk6_558",rowTeam:"_rowTeam_z2pk6_567",rowTeam420:"_rowTeam420_z2pk6_585",rowTeam320:"_rowTeam320_z2pk6_603",rowTeam460:"_rowTeam460_z2pk6_622",rowTeam350:"_rowTeam350_z2pk6_641",containerLeftType1:"_containerLeftType1_z2pk6_659",containerLeftType1680:"_containerLeftType1680_z2pk6_665",containerLeftType1320:"_containerLeftType1320_z2pk6_672",containerLeftType1350:"_containerLeftType1350_z2pk6_680",positionContainertype1:"_positionContainertype1_z2pk6_687",positionContainertype1380:"_positionContainertype1380_z2pk6_695",positionContainertype1680:"_positionContainertype1680_z2pk6_703",positionContainertype1420:"_positionContainertype1420_z2pk6_711",manchesterUnitedType1:"_manchesterUnitedType1_z2pk6_719",manchesterUnitedType1460:"_manchesterUnitedType1460_z2pk6_725",manchesterUnitedType1320:"_manchesterUnitedType1320_z2pk6_732",containerRightType1Games:"_containerRightType1Games_z2pk6_739",containerRightType1420Games:"_containerRightType1420Games_z2pk6_750",containerRightType1320Games:"_containerRightType1320Games_z2pk6_761",teamNameWrapperType1:"_teamNameWrapperType1_z2pk6_772",teamNameWrapperType1960:"_teamNameWrapperType1960_z2pk6_779",teamNameWrapperType11086:"_teamNameWrapperType11086_z2pk6_786",ageWrapperType1:"_ageWrapperType1_z2pk6_793",ageWrapperType1680:"_ageWrapperType1680_z2pk6_800",ageWrapperType11086:"_ageWrapperType11086_z2pk6_808",ageType1:"_ageType1_z2pk6_816",ageType1960:"_ageType1960_z2pk6_824",playedGamesWrapperType1:"_playedGamesWrapperType1_z2pk6_827",playedGamesWrapperType1680:"_playedGamesWrapperType1680_z2pk6_834",playedGamesWrapperType1960:"_playedGamesWrapperType1960_z2pk6_837",playedGamesType1:"_playedGamesType1_z2pk6_840",playedGamesType1540:"_playedGamesType1540_z2pk6_847",playedGamesType1960:"_playedGamesType1960_z2pk6_851",playedGamesType11086:"_playedGamesType11086_z2pk6_854",playedMinutesWrapperType1:"_playedMinutesWrapperType1_z2pk6_857",playedMinutesWrapperType11086:"_playedMinutesWrapperType11086_z2pk6_864",playedMinutesType1:"_playedMinutesType1_z2pk6_871",playedMinutesType1680:"_playedMinutesType1680_z2pk6_878",block02Type1Games:"_block02Type1Games_z2pk6_881",block02Type1680Games:"_block02Type1680Games_z2pk6_889",block02Type1320Games:"_block02Type1320Games_z2pk6_897",block02Type1350Games:"_block02Type1350Games_z2pk6_906",leagueNameWrapperType1:"_leagueNameWrapperType1_z2pk6_914",leagueNameWrapperType1680:"_leagueNameWrapperType1680_z2pk6_922",leagueNameWrapperType1960:"_leagueNameWrapperType1960_z2pk6_925",leagueNameType1:"_leagueNameType1_z2pk6_933",leagueNameType1960:"_leagueNameType1960_z2pk6_943",numberOfVideosType1:"_numberOfVideosType1_z2pk6_953",numberOfVideosType1680:"_numberOfVideosType1680_z2pk6_960",numberOfVideosType11232:"_numberOfVideosType11232_z2pk6_967",vectorIconType1:"_vectorIconType1_z2pk6_974",block01TitlesType1:"_block01TitlesType1_z2pk6_991",numberPositionType1:"_numberPositionType1_z2pk6_998",shapeIconType1:"_shapeIconType1_z2pk6_1004",tijuanaIconType1:"_tijuanaIconType1_z2pk6_1010",tijuanaWrapperType1:"_tijuanaWrapperType1_z2pk6_1016",tijuanaWrapperType1NoBg:"_tijuanaWrapperType1NoBg_z2pk6_1027",teamNameType1:"_teamNameType1_z2pk6_1035",roleCharacterIconType1:"_roleCharacterIconType1_z2pk6_1042",verVideosType1:"_verVideosType1_z2pk6_1049",btnVideosType1Games:"_btnVideosType1Games_z2pk6_1055",containerBtnVideosType1Games:"_containerBtnVideosType1Games_z2pk6_1070",containesOptionsType1Games:"_containesOptionsType1Games_z2pk6_1081",arrowExpandIconType1:"_arrowExpandIconType1_z2pk6_1089",templateTablaProductividadType1:"_templateTablaProductividadType1_z2pk6_1095",verVideosType11232:"_verVideosType11232_z2pk6_1107",templateTablaProductividadType1320:"_templateTablaProductividadType1320_z2pk6_1111",verVideosType1680:"_verVideosType1680_z2pk6_1115"},CC={components:{GSCButton:cH},computed:{manchesterUnitedType1Class(){const e=this.elementSize.width;return e<=320?this.$style.manchesterUnitedType1320:e<=460?this.$style.manchesterUnitedType1460:this.$style.manchesterUnitedType1},containerRightType1Class(){const e=this.elementSize.width;return e<=320?this.$style.containerRightType1320Games:e<=420?this.$style.containerRightType1420Games:this.$style.containerRightType1Games},teamNameWrapperType1Class(){const e=this.elementSize.width;return e<=960?this.$style.teamNameWrapperType1960:e<=1086?this.$style.teamNameWrapperType11086:this.$style.teamNameWrapperType1},ageWrapperType1Class(){const e=this.elementSize.width;return e<=680?this.$style.ageWrapperType1680:e<=1086?this.$style.ageWrapperType11086:this.$style.ageWrapperType1},ageType1Class(){return this.elementSize.width<=960?this.$style.ageType1960:this.$style.ageType1},playedGamesWrapperType1Class(){const e=this.elementSize.width;return e<=680?this.$style.playedGamesWrapperType1680:e<=960?this.$style.playedGamesWrapperType1960:this.$style.playedGamesWrapperType1},playedGamesType1Class(){const e=this.elementSize.width;return e<=540?this.$style.playedGamesType1540:e<=960?this.$style.playedGamesType1960:e<=1086?this.$style.playedGamesType11086:this.$style.playedGamesType1},playedMinutesWrapperType1Class(){return this.elementSize.width<=1086?this.$style.playedMinutesWrapperType11086:this.$style.playedMinutesWrapperType1},playedMinutesType1Class(){return this.elementSize.width<=680?this.$style.playedMinutesType1680:this.$style.playedMinutesType1},block02Type1Class(){const e=this.elementSize.width;return e<=320?this.$style.block02Type1320Games:e<=350?this.$style.block02Type1350Games:e<=680?this.$style.block02Type1680Games:this.$style.block02Type1Games},leagueNameWrapperType1Class(){const e=this.elementSize.width;return e<=680?this.$style.leagueNameWrapperType1680:e<=960?this.$style.leagueNameWrapperType1960:this.$style.leagueNameWrapperType1},leagueNameType1Class(){return this.elementSize.width<=960?this.$style.leagueNameType1960:this.$style.leagueNameType1},numberOfVideosType1Class(){const e=this.elementSize.width;return e<=680?this.$style.numberOfVideosType1680:e<=1232?this.$style.numberOfVideosType11232:this.$style.numberOfVideosType1},containerLeftType1Class(){const e=this.elementSize.width;return e<=320?this.$style.containerLeftType1320:e<=350?this.$style.containerLeftType1350:e<=680?this.$style.containerLeftType1680:this.$style.containerLeftType1},positionContainertype1Class(){const e=this.elementSize.width;return e<=380?this.$style.positionContainertype1380:e<=420?this.$style.positionContainertype1420:e<=680?this.$style.positionContainertype1680:this.$style.positionContainertype1},rowTeamClass(){const e=this.elementSize.width;return e<=320?this.$style.rowTeam320:e<=350?this.$style.rowTeam350:e<=420?this.$style.rowTeam420:e<=460?this.$style.rowTeam460:this.$style.rowTeam},containerBtnVideosClass(){return this.$style.containerBtnVideosGames},numberOfVideosClass(){return this.elementSize.width<=620?this.$style.numberOfVideos620:this.$style.numberOfVideos},block02Class(){const e=this.elementSize.width;return e<=420?this.$style.block02420Games:e<=620?this.$style.block02620Games:e<=960?this.$style.block02960Games:this.$style.block02Games},imgPlayerIconClass(){const e=this.elementSize.width;return e<=420?this.$style.imgPlayerIcon420:e<=460?this.$style.imgPlayerIcon460:this.$style.imgPlayerIcon},manchesterUnitedClass(){const e=this.elementSize.width;return e<=360?this.$style.manchesterUnited360Games:e<=420?this.$style.manchesterUnited420Games:e<=460?this.$style.manchesterUnited460Games:this.$style.manchesterUnitedGames},containerRightClass(){const e=this.elementSize.width;return e<=420?this.$style.containerRight420Games:e<=960?this.$style.containerRight960Games:this.$style.containerRightGames},playerContainerType1Class(){const e=this.elementSize.width;return e<=320?this.$style.playerContainerType1320Games:e<=460?this.$style.playerContainerType1460Games:this.$style.playerContainerType1Games},playerContainerClass(){const e=this.elementSize.width;return e<=420?this.$style.playerContainer420Games:e<=460?this.$style.playerContainer460Games:this.$style.playerContainerGames},iconFavoritesClass(){return this.elementSize.width<=420?this.$style.iconFavorites420:this.$style.iconFavorites},iconFavoritesType1Class(){return this.elementSize.width<=320?this.$style.iconFavoritesType1320:this.$style.iconFavoritesType1},containerLeftClass(){const e=this.elementSize.width;return e<=420?this.$style.containerLeft420Games:e<=620?this.$style.containerLeft620Games:this.$style.containerLeftGames},positionContainerClass(){return this.elementSize.width<=620?this.$style.positionContainer620:this.$style.positionContainer},rowwPlayerClass(){const e=this.elementSize.width;return e<=420?this.$style.rowwPlayer420Games:e<=460?this.$style.rowwPlayer460Games:e<=960?this.$style.rowwPlayer960Games:this.$style.rowwPlayerGames}},setup(){const e=t.ref("myDivRef2"),{elementSize:a}=Vy(e);return{myDivRef2:e,elementSize:a}},props:{canPlayVideos:{type:Boolean,default:!1},type:{type:Number,default:0},typeView:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},background:{type:String,default:"#172531"},height:{type:String,default:"35px"},fontColor:{type:String,default:"#F4F4F4"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"},data:{type:Object,default:()=>{}},colorArrow:{type:String,default:"#D9D9D9"},buttonTextValue:{type:String,default:"Ver videos"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"13px"},iconSizeMini:{type:String,default:"13px"},iconPosition:{type:String,default:"left"},buttonWidth:{type:String,default:"93px"},buttonWidthMini:{type:String,default:"24px"},buttonHeightMini:{type:String,default:"24px"},buttonHeight:{type:String,default:"30px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#55636e"},buttonFontSize:{type:String,default:"10px"}},data:()=>({expand:!1}),methods:{clickExpand(e){this.$emit("expand",{expand:!this.isExpanded,id:e})},emitEventMedia(e){this.$emit("mediadata",e)}}},dH=()=>{t.useCssVars(e=>({"7dc76915":e.height,"62fd861c":e.background,"7403355e":e.fontSize,"0b8485a6":e.fontColor,"6965cd81":e.fontFamily}))},uH=CC.setup;CC.setup=uH?(e,a)=>(dH(),uH(e,a)):dH;const WCt={ref:"myDivRef2",style:{"border-left":"rgba(13,29,41,0.7) 1px solid","border-right":"rgba(13,29,41,0.7) 1px solid"}},qCt=["src"],YCt=["src"],ZCt=["src"],JCt=["src"],XCt=["fill"],KCt=["fill"],QCt=["src"],eTt=["src"],tTt=["fill"],nTt=["fill"],aTt=["src"],rTt=["src"],iTt=["src"],oTt=["src"],sTt=["fill"],lTt=["fill"];function cTt(e,a,i,N,L,u){const g=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",WCt,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.rowwPlayerClass),id:"container-row-player"},[t.createElementVNode("div",{class:t.normalizeClass(u.containerLeftClass),id:"container-left"},[t.createElementVNode("div",{class:t.normalizeClass(u.positionContainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.numberPosition)},t.toDisplayString(i.data.position),3)],2),t.createElementVNode("div",{class:t.normalizeClass(u.playerContainerClass)},[t.createElementVNode("img",{class:t.normalizeClass(u.imgPlayerIconClass),src:i.data.player_photo},null,10,qCt),t.createElementVNode("div",{class:t.normalizeClass(u.manchesterUnitedClass)},[N.elementSize.width<=420?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.data.player_short),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(i.data.player_name),1)],64))],2),N.elementSize.width<=420?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.chivasIcon),alt:"",src:i.data.team_logo},null,10,YCt)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(u.containerRightClass),id:"container-right"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01)},[N.elementSize.width>420?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.nameTeamGames)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgTeamIcon),alt:"",src:i.data.team_logo},null,10,ZCt),N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamName)},t.toDisplayString(i.data.team_abrev),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),N.elementSize.width>730?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.position)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.dfC)},t.toDisplayString(i.data.player_position),3)],2)):t.createCommentVNode("",!0),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.age)},t.toDisplayString(i.data.player_age),3)):t.createCommentVNode("",!0),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(e.$style.country)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.manchesterUnitedIcon),alt:"",src:i.data.player_country_flag},null,10,JCt)],2)):t.createCommentVNode("",!0),N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(e.$style.playedGames)},t.toDisplayString(i.data.player_games),3)):t.createCommentVNode("",!0),N.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:5,class:t.normalizeClass(e.$style.playedMinutes)},t.toDisplayString(i.data.player_min),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(u.block02Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptions)},[N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.leagueName)},t.toDisplayString(i.data.total),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(u.containerBtnVideosClass)},[i.canPlayVideos?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[N.elementSize.width>635?(t.openBlock(),t.createBlock(g,{key:0,icon:i.iconVideos,"icon-size":i.iconSize,"icon-position":i.iconPosition,width:i.buttonWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.buttonTextValue,"font-size":i.buttonFontSize,onClick:a[0]||(a[0]=n=>u.emitEventMedia(i.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(t.openBlock(),t.createBlock(g,{key:1,mini:!0,icon:i.iconVideos,"icon-size":i.iconSizeMini,"icon-position":i.iconPosition,width:i.buttonWidthMini,height:i.buttonHeightMini,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"font-size":i.buttonFontSize,onClick:a[1]||(a[1]=n=>u.emitEventMedia(i.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"]))],64)):t.createCommentVNode("",!0),N.elementSize.width<=635?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(u.numberOfVideosClass)},t.toDisplayString(i.data.total),3)):t.createCommentVNode("",!0)],2)],2),(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,i.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:i.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:a[2]||(a[2]=n=>u.clickExpand(i.data.id))},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:i.colorArrow},null,8,KCt)],10,XCt))],2)],2)],2)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(u.rowTeamClass),style:t.normalizeStyle(N.elementSize.width>540?"border-bottom: 1px solid rgba(255, 255, 255, 0.1)":""),id:"container-row-player"},[t.createElementVNode("div",{class:t.normalizeClass(u.containerLeftType1Class),id:"container-left"},[t.createElementVNode("div",{class:t.normalizeClass(u.positionContainertype1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.numberPositionType1)},t.toDisplayString(i.data.position),3),t.createElementVNode("div",{class:t.normalizeClass(u.iconFavoritesType1Class)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIconType1),alt:"",src:i.data.team_logo},null,10,QCt)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(u.playerContainerType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(i.typeView==0?e.$style.tijuanaWrapperType1:e.$style.tijuanaWrapperType1NoBg)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.tijuanaIconType1),alt:"",src:i.data.team_logo},null,10,eTt)],2),t.createElementVNode("div",{class:t.normalizeClass(u.manchesterUnitedType1Class)},t.toDisplayString(i.data.team_abrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(u.containerRightType1Class),id:"container-right"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01TitlesType1)},[N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(u.teamNameWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamNameType1)},[t.createTextVNode(" C/"+t.toDisplayString(i.data.frequency)+" ",1),i.data.category!=2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("min")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("segs")],64))],2)],2)):t.createCommentVNode("",!0),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(u.ageWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(u.ageType1Class)},t.toDisplayString(i.data.promthistournament),3)],2)):t.createCommentVNode("",!0),N.elementSize.width>1086?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(u.playedGamesWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(u.playedGamesType1Class)},t.toDisplayString(i.data.promlasttournament),3)],2)):t.createCommentVNode("",!0),N.elementSize.width>770?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(u.playedMinutesWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(u.playedMinutesType1Class)},t.toDisplayString(i.data.team_games),3)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(u.block02Type1Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptionsType1Games)},[t.createElementVNode("div",{class:t.normalizeClass(u.leagueNameWrapperType1Class)},[t.createElementVNode("div",{class:t.normalizeClass(u.leagueNameType1Class)},t.toDisplayString(i.data.total),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerBtnVideosType1Games)},[N.elementSize.width>679&&i.canPlayVideos?(t.openBlock(),t.createBlock(g,{key:0,icon:i.iconVideos,"icon-size":i.iconSize,"icon-position":i.iconPosition,width:i.buttonWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.buttonTextValue,"font-size":i.buttonFontSize,onClick:a[3]||(a[3]=n=>u.emitEventMedia(i.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(t.openBlock(),t.createBlock(g,{key:1,mini:!0,icon:i.iconVideos,"icon-size":i.iconSizeMini,"icon-position":i.iconPosition,width:i.buttonWidthMini,height:i.buttonHeightMini,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"font-size":i.buttonFontSize,onClick:a[4]||(a[4]=n=>u.emitEventMedia(i.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),t.createElementVNode("div",{class:t.normalizeClass(u.numberOfVideosType1Class)},t.toDisplayString(i.data.total),3)],2)],2),(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,i.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:i.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:a[5]||(a[5]=n=>u.clickExpand(i.data.id))},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:i.colorArrow},null,8,nTt)],10,tTt))],2)],2)],6)):t.createCommentVNode("",!0),i.type==2?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(u.rowwPlayerClass),id:"container-row-player"},[t.createElementVNode("div",{class:t.normalizeClass(u.containerLeftClass),id:"container-left"},[t.createElementVNode("div",{class:t.normalizeClass(u.positionContainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.numberPosition)},t.toDisplayString(i.data.position),3)],2),t.createElementVNode("div",{class:t.normalizeClass(u.playerContainerClass)},[t.createElementVNode("img",{class:t.normalizeClass(u.imgPlayerIconClass),src:i.data.player_photo},null,10,aTt),t.createElementVNode("div",{class:t.normalizeClass(u.manchesterUnitedClass)},t.toDisplayString(i.data.player_name),3),N.elementSize.width<=420?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.chivasIcon),alt:"",src:i.data.team_logo},null,10,rTt)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(u.containerRightClass),id:"container-right"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.block01)},[N.elementSize.width>420?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.nameTeamGames)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgTeamIcon),alt:"",src:i.data.team_logo},null,10,iTt),N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamName)},t.toDisplayString(i.data.team_abrev),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),N.elementSize.width>730?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.position)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.dfC)},t.toDisplayString(i.data.player_position),3)],2)):t.createCommentVNode("",!0),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.age)},t.toDisplayString(i.data.player_age),3)):t.createCommentVNode("",!0),N.elementSize.width>960?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(e.$style.country)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.manchesterUnitedIcon),alt:"",src:i.data.player_country_flag},null,10,oTt)],2)):t.createCommentVNode("",!0),N.elementSize.width>540?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(e.$style.playedGames)},t.toDisplayString(i.data.player_games),3)):t.createCommentVNode("",!0),N.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:5,class:t.normalizeClass(e.$style.playedMinutes)},t.toDisplayString(i.data.player_min),3)):t.createCommentVNode("",!0),N.elementSize.width>635?(t.openBlock(),t.createElementBlock("div",{key:6,class:t.normalizeClass(e.$style.playedMinutes)},t.toDisplayString(i.data.league_name),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(u.block02Class)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containesOptions)},[t.createElementVNode("div",{class:t.normalizeClass(u.containerBtnVideosClass)},[i.canPlayVideos?(t.openBlock(),t.createBlock(g,{key:0,icon:i.iconVideos,"icon-size":i.iconSize,"icon-position":i.iconPosition,width:N.elementSize.width<=680?"83px":i.buttonWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.buttonTextValue,"font-size":i.buttonFontSize,onClick:a[6]||(a[6]=n=>u.emitEventMedia(i.data)),style:t.normalizeStyle(N.elementSize.width<=680?N.elementSize.width<=420?"margin-right: 35px;":"margin-right: 0px;":"")},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size","style"])):t.createCommentVNode("",!0)],2)],2),(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,i.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:i.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:a[7]||(a[7]=n=>u.clickExpand(i.data.id))},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:i.colorArrow},null,8,lTt)],10,sTt))],2)],2)],2)):t.createCommentVNode("",!0)],512)}const hH=Jr(CC,[["render",cTt],["__cssModules",{$style:GCt}]]),dTt=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},TC={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))}}},pH=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},fH=TC.setup;TC.setup=fH?(e,a)=>(pH(),fH(e,a)):pH;const uTt=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),hTt=["src"],pTt={key:1,class:"text"},fTt=["src"],mTt={class:"stats"},gTt=uTt(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),yTt={class:"numstats"},vTt={class:"leyend"};function _Tt(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",L.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([u.customStyle,L.status&&i.typeOnOff&&u.customActive]),onClick:a[0]||(a[0]=(...g)=>u.btnClick&&u.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,hTt)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",pTt,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,fTt)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>u.btnClick&&u.btnClick(...g))},[t.createElementVNode("div",mTt,[gTt,t.createElementVNode("div",yTt,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",vTt,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const bTt=dTt(TC,[["render",_Tt],["__scopeId","data-v-fb269a1e"]]),xTt=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},SC={components:{GSCButton:bTt},props:{hiddenButtonAll:{type:Boolean,default:!1},teamId:{type:Number,default:0},height:{type:String,default:"71px"},backgroundColor:{type:String,default:"#0d1d29"},containBorderType:{type:String,default:"solid"},containBorderWidth:{type:Number,default:0},containBorderColor:{type:String,default:""},componentontainBorderRadius:{type:String,default:"0px"},teamBorderType:{type:String,default:"solid"},teamBorderWidth:{type:Number,default:1},teamBorderColor:{type:String,default:"#566068"},teamBorderRadius:{type:String,default:"43px"},teamHeight:{type:String,default:"43px"},teamWidth:{type:String,default:"43px"},data:{type:Array,default:()=>[]}},data(){return{teamselect:this.teamId,scrollBar:!1}},watch:{teamId:{handler:function(e){this.teamselect=e},immediate:!0}},computed:{centerTextCustom(){return this.hiddenButtonAll&&!this.scrollBar?"center":"left"},marginCustom(){return this.hiddenButtonAll?"0px":"12px"},customStyleContain(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.containBorderRadius,border:`${this.containBorderType} ${this.containBorderWidth}px ${this.containBorderColor}`}},customStyleTeam(){return{height:this.teamHeight,width:this.teamWidth,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.teamBorderType} ${this.teamBorderWidth}px ${this.teamBorderColor}`}}},methods:{checkIfElementHasScroll(){const e=this.$refs.container.querySelector("#panelteams");e.scrollWidth>e.clientWidth?this.scrollBar=!0:this.scrollBar=!1},btnTeamClick(e){this.$emit("clickTeam",e),this.teamselect=e},click(){this.$emit("clickAll",0),this.teamselect=0}},mounted(){this.checkIfElementHasScroll(),window.addEventListener("resize",this.checkIfElementHasScroll)},beforeUnmount(){window.removeEventListener("resize",this.checkIfElementHasScroll)}},mH=()=>{t.useCssVars(e=>({"132156c0":e.centerTextCustom,"096d3ecc":e.marginCustom}))},gH=SC.setup;SC.setup=gH?(e,a)=>(mH(),gH(e,a)):mH;const wTt={id:"panelteams",class:"gsc-filterperteam__panel-teams",ref:"panel"},kTt={class:"gsc-filterperteam__panel-teams__cont-teams"},CTt=["onClick"],TTt=["src","alt","title"];function STt(e,a,i,N,L,u){const g=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",{class:"gsc-filterperteam",ref:"container",style:t.normalizeStyle(u.customStyleContain)},[t.createElementVNode("div",wTt,[t.createElementVNode("div",kTt,[i.hiddenButtonAll?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(u.customStyleTeam),class:t.normalizeClass(["gsc-filterperteam__panel-teams__cont-teams__button-all",this.teamselect!==0?"--disabled":""])},[t.createVNode(g,{"text-value":"Todos",width:"76px",height:"28px","font-family":"Poppins-Light","font-size":"13px","border-color":"#cbee6b","border-type":"solid","border-width":"1","background-color":"#2A3641","border-radius":"64px",onClick:u.click},null,8,["onClick"])],6)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.data,(n,b)=>(t.openBlock(),t.createElementBlock("div",{key:b,style:t.normalizeStyle(u.customStyleTeam),class:t.normalizeClass([n.id==L.teamselect?"colorselect":"","gsc-filterperteam__panel-teams__cont-teams__btn-team hover-team"]),onClick:m=>u.btnTeamClick(n.id)},[t.createElementVNode("img",{src:n.logo,alt:n.name,title:n.name},null,8,TTt)],14,CTt))),128))])],512)],4)}const ETt=xTt(SC,[["render",STt],["__scopeId","data-v-ab79352d"]]),ATt={tablePositionGames:"_tablePositionGames_16xzc_46",tablePositionWrapperGames:"_tablePositionWrapperGames_16xzc_62",imgHenrryIcon:"_imgHenrryIcon_16xzc_71",americaIcon:"_americaIcon_16xzc_79",playerPhotoGames:"_playerPhotoGames_16xzc_91",toniKroosGames:"_toniKroosGames_16xzc_100",shapeIcon:"_shapeIcon_16xzc_111",menuiconsTeams:"_menuiconsTeams_16xzc_117",component31:"_component31_16xzc_126",playerNameGames:"_playerNameGames_16xzc_137",icnPlayIcon:"_icnPlayIcon_16xzc_145",goles:"_goles_16xzc_153",americaIcon1:"_americaIcon1_16xzc_160",teamsAmerica:"_teamsAmerica_16xzc_174",containerData:"_containerData_16xzc_180",shapeIcon1:"_shapeIcon1_16xzc_188",icnExpand1:"_icnExpand1_16xzc_194",icnExpand:"_icnExpand_16xzc_194",playerDataGames:"_playerDataGames_16xzc_214",playerInfoGames:"_playerInfoGames_16xzc_225",headerTopGame:"_headerTopGame_16xzc_240",playerRow:"_playerRow_16xzc_254",groupsLeague:"_groupsLeague_16xzc_265",text:"_text_16xzc_274",btnViewFullList:"_btnViewFullList_16xzc_282",headerTopsGames:"_headerTopsGames_16xzc_299",btnVideosOptions:"_btnVideosOptions_16xzc_371",position:"_position_16xzc_548",positionWrapper:"_positionWrapper_16xzc_560",imgNecaxaIcon:"_imgNecaxaIcon_16xzc_568",teamLogo:"_teamLogo_16xzc_574",teamPhoto:"_teamPhoto_16xzc_582",name:"_name_16xzc_590",icnPlayIconType1:"_icnPlayIconType1_16xzc_598",verVideosType1:"_verVideosType1_16xzc_605",btnVideosOptionsType1:"_btnVideosOptionsType1_16xzc_611",btnVideosOptions1Games:"_btnVideosOptions1Games_16xzc_623",leftContainer:"_leftContainer_16xzc_635",shapeIconType1:"_shapeIconType1_16xzc_644",icnExpandType1:"_icnExpandType1_16xzc_649",arrowExpand:"_arrowExpand_16xzc_659",containerInfoGames:"_containerInfoGames_16xzc_667",headerTopTeam:"_headerTopTeam_16xzc_679",containerHeader:"_containerHeader_16xzc_693",goles1:"_goles1_16xzc_702",golesType1:"_golesType1_16xzc_705",golesWrapper:"_golesWrapper_16xzc_710",btnViewAll:"_btnViewAll_16xzc_719",headerTopsTeams:"_headerTopsTeams_16xzc_736",arrowExpandIcon:"_arrowExpandIcon_16xzc_853",rotate:"_rotate_16xzc_858"},EC={components:{GSCButton:cH},props:{type:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},canPlayVideos:{type:Boolean,default:!1},categoryName:{type:String,default:""},categoryId:{type:String,default:""},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0d1d29"},backgroundColorHeader:{type:String,default:"#183143"},fontColorName:{type:String,default:"#F4F4F4"},fontSizeName:{type:String,default:"14px"},fontFamilyName:{type:String,default:"Poppins-Regular"},fontColorTopNum:{type:String,default:"#FFFFFF"},fontSizeTopNum:{type:String,default:"96px"},fontFamilyTopNum:{type:String,default:"Oswald-Bold"},fontColorCategory:{type:String,default:"#FFFFFF"},fontSizeCategory:{type:String,default:"12px"},fontFamilyCategory:{type:String,default:"Poppins-Regular"},opacityColorTopNum:{type:Number,default:.09},borderColorCategory:{type:String,default:"#cbee6b"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"18px"},iconPosition:{type:String,default:"left"},colorArrow:{type:String,default:"#D9D9D9"},buttonWidth:{type:String,default:"fit-content"},buttonMaxWidth:{type:String,default:"180px"},buttonHeight:{type:String,default:"24px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#cbee6b"},buttonFontSize:{type:String,default:"12px"}},data:()=>({expand:!1}),methods:{viewProfile(e){this.$emit("play",e)},clickMore(e){this.$emit("more",e)},clickExpand(e){this.$emit("expand",{expand:!this.isExpanded,id:e})},clickFav(e){this.$emit("fav",e)},clickEventMedia(e){this.$emit("mediadata",e)}}},yH=()=>{t.useCssVars(e=>({"61ea75d2":e.fontSizeTopNum,"9489e60c":e.fontFamilyTopNum,"75b1ec0f":e.fontColorTopNum,d9757d82:e.opacityColorTopNum,"06b43fae":e.fontColorName,"7bc83fd4":e.fontFamilyName,"8a1d499e":e.fontSizeName,"6d0876ec":e.backgroundColorHeader,"70b1b5c7":e.fontFamilyCategory,"74f3daa4":e.fontSizeCategory,"0e6d239c":e.fontColorCategory,"340d485f":e.borderColorCategory}))},vH=EC.setup;EC.setup=vH?(e,a)=>(yH(),vH(e,a)):yH;const MTt=["src"],ITt=["src"],PTt=["src"],NTt=["src"],BTt=["fill"],OTt=["fill"],zTt=["src"],LTt=["fill"],FTt=["fill"];function DTt(e,a,i,N,L,u){const g=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.headerTopsGames)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerRow),id:"player-row"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerTopGame)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerPhotoGames),id:"container-player-photp"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.tablePositionWrapperGames)},[t.createElementVNode("b",{class:t.normalizeClass(e.$style.tablePositionGames)},t.toDisplayString(i.data.top),3)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHenrryIcon),alt:"",src:i.data.photo},null,10,MTt),t.createElementVNode("img",{class:t.normalizeClass(e.$style.americaIcon),alt:"",src:i.data.logo},null,10,ITt)],2),t.createElementVNode("main",{class:t.normalizeClass(e.$style.playerInfoGames),id:"container-player-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerNameGames)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.toniKroosGames)},t.toDisplayString(i.data.name),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.playerDataGames)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[i.canPlayVideos?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(g,{"icon-size":i.iconSize,"icon-position":i.iconPosition,width:i.buttonWidth,"button-max-width":i.buttonMaxWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.data.total+" "+i.categoryName.toLowerCase(),"font-size":i.buttonFontSize,onClick:a[0]||(a[0]=n=>u.clickEventMedia(i.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamsAmerica)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.americaIcon1),alt:"",src:i.data.logo},null,10,PTt)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(g,{icon:"","icon-size":i.iconSize,"icon-position":i.iconPosition,width:i.buttonWidth,"button-max-width":i.buttonMaxWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.data.total+" "+i.categoryName.toLowerCase(),"font-size":i.buttonFontSize},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamsAmerica)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.americaIcon1),alt:"",src:i.data.logo},null,10,NTt)],2)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.icnExpand),onClick:a[1]||(a[1]=n=>u.clickExpand(i.data.player_id))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,i.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:i.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:i.colorArrow},null,8,OTt)],10,BTt))],2)],2)],2)],2)],2)],2)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.headerTopsTeams)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerHeader),id:"header-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerTopTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamPhoto),id:"container-team"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.positionWrapper)},[t.createElementVNode("b",{class:t.normalizeClass(e.$style.position)},t.toDisplayString(i.data.top),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamLogo)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgNecaxaIcon),alt:"",src:i.data.logo},null,10,zTt)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerInfoGames)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leftContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(i.data.name_team),3),t.createVNode(g,{"icon-size":i.iconSize,"icon-position":i.iconPosition,width:i.buttonWidth,"button-max-width":i.buttonMaxWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.data.total+" "+i.categoryName.toLowerCase(),"font-size":i.buttonFontSize,onClick:a[2]||(a[2]=n=>u.clickEventMedia(i.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnVideosOptions1Games)},[t.createVNode(g,{"icon-size":i.iconSize,"icon-position":i.iconPosition,width:i.buttonWidth,"button-max-width":i.buttonMaxWidth,height:i.buttonHeight,"border-radius":i.buttonRadius,"border-width":i.buttonBorderWidth,"background-color":i.buttonBackground,"font-family":i.buttonfontFamily,"border-color":i.buttonBorderColor,"text-value":i.data.total+" "+i.categoryName.toLowerCase(),"font-size":i.buttonFontSize,onClick:a[3]||(a[3]=n=>u.clickEventMedia(i.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideosType1)},t.toDisplayString(i.data.total),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.arrowExpand),onClick:a[4]||(a[4]=n=>u.clickExpand(i.data.player_id))},[(t.openBlock(),t.createElementBlock("svg",{class:t.normalizeClass([e.$style.arrowExpandIcon,i.isExpanded?e.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:i.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:i.colorArrow},null,8,FTt)],10,LTt))],2)],2)],2)],2)],2)):t.createCommentVNode("",!0)])}const VTt=Jr(EC,[["render",DTt],["__cssModules",{$style:ATt}]]),RTt=(e,a)=>{const i=e.__vccOpts||e;for(const[N,L]of a)i[N]=L;return i},AC={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))}}},_H=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},bH=AC.setup;AC.setup=bH?(e,a)=>(_H(),bH(e,a)):_H;const $Tt=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),jTt=["src"],UTt={key:1,class:"text"},HTt=["src"],GTt={class:"stats"},WTt=$Tt(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),qTt={class:"numstats"},YTt={class:"leyend"};function ZTt(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",null,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",L.status&&i.typeOnOff&&"button-active"]),style:t.normalizeStyle([u.customStyle,L.status&&i.typeOnOff&&u.customActive]),onClick:a[0]||(a[0]=(...g)=>u.btnClick&&u.btnClick(...g))},[i.icon&&i.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,jTt)):t.createCommentVNode("",!0),i.textValue?(t.openBlock(),t.createElementBlock("div",UTt,t.toDisplayString(i.textValue),1)):t.createCommentVNode("",!0),i.icon&&i.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:i.iconSize}),src:i.icon},null,12,HTt)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...g)=>u.btnClick&&u.btnClick(...g))},[t.createElementVNode("div",GTt,[WTt,t.createElementVNode("div",qTt,t.toDisplayString(i.textStat),1)]),t.createElementVNode("div",YTt,t.toDisplayString(i.textCategory),1)])):t.createCommentVNode("",!0)])}const JTt=RTt(AC,[["render",ZTt],["__scopeId","data-v-fb269a1e"]]),Dmn="",Vmn="",XTt={equipoGames:"_equipoGames_19uzf_38",atlasSeleccinGames:"_atlasSeleccinGames_19uzf_43",equipoAtlasSeleccinMexiGames:"_equipoAtlasSeleccinMexiGames_19uzf_47",aosGames:"_aosGames_19uzf_51",span12:"_span12_19uzf_55",nacionalidadMex:"_nacionalidadMex_19uzf_58",manchesterUnited:"_manchesterUnited_19uzf_61",manchesterUnited12:"_manchesterUnited12_19uzf_68",containerInfoGames:"_containerInfoGames_19uzf_78",verPerfil12:"_verPerfil12_19uzf_87",btnProfile:"_btnProfile_19uzf_96",containerButton:"_containerButton_19uzf_112",dataContainer:"_dataContainer_19uzf_119",expandedInfoPlayerGames:"_expandedInfoPlayerGames_19uzf_129",containerDataBg:"_containerDataBg_19uzf_219",containerDataSm:"_containerDataSm_19uzf_230",span:"_span_19uzf_55",manchesterUnited14:"_manchesterUnited14_19uzf_241",filter:"_filter_19uzf_246",verPerfil:"_verPerfil_19uzf_87",manchesterUnited8:"_manchesterUnited8_19uzf_267",manchesterUnitedParent1:"_manchesterUnitedParent1_19uzf_273",manchesterUnited1:"_manchesterUnited1_19uzf_68",manchesterUnitedParent:"_manchesterUnitedParent_19uzf_273",frameDiv:"_frameDiv_19uzf_295",infoExpanded:"_infoExpanded_19uzf_303",countryFlag:"_countryFlag_19uzf_456"},MC={components:{GSCButton:JTt},props:{background:{type:String,default:"#172531"},type:{type:Number,default:1},viewButton:{type:Boolean,default:!0},viewTeam:{type:Boolean,default:!0},viewAge:{type:Boolean,default:!0},viewNationality:{type:Boolean,default:!0},viewPosition:{type:Boolean,default:!0},viewGames:{type:Boolean,default:!0},viewMin:{type:Boolean,default:!0},viewGoals:{type:Boolean,default:!0},viewEffectiveness:{type:Boolean,default:!0},height:{type:String,default:"134px"},fontColor:{type:String,default:"#ffffffb3"},fontColorValue:{type:String,default:"#ffffff"},fontFamily:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"10px"},additionalClass:{type:String,default:""},data:{type:Object,default:()=>{}}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=Vy(e);return{myDivRef:e,elementSize:a}},data(){return{}},computed:{},methods:{viewProfile(e){this.$emit("viewprofile",e)}}},xH=()=>{t.useCssVars(e=>({"3948b208":e.fontFamily,"410010cb":e.fontColor,"0bdb5766":e.fontColorValue,c1f19cce:e.fontSize,"461940d2":e.background}))},wH=MC.setup;MC.setup=wH?(e,a)=>(xH(),wH(e,a)):xH;const Fd=e=>(t.pushScopeId("data-v-7a212a61"),e=e(),t.popScopeId(),e),KTt={ref:"myDivRef"},QTt=["src"],eSt=Fd(()=>t.createElementVNode("span",null,"Posición en la tabla: ",-1)),tSt=Fd(()=>t.createElementVNode("span",null,"Goles anotados: ",-1)),nSt=Fd(()=>t.createElementVNode("span",null,"Goles recibidos: ",-1)),aSt=Fd(()=>t.createElementVNode("span",null,"Partidos jugados: ",-1)),rSt=Fd(()=>t.createElementVNode("span",null,"Efectividad de pases: ",-1)),iSt=Fd(()=>t.createElementVNode("span",null,"xG: ",-1)),oSt=Fd(()=>t.createElementVNode("span",null,"Efectividad de pases: ",-1)),sSt=Fd(()=>t.createElementVNode("span",null,"xG: ",-1)),lSt=Fd(()=>t.createElementVNode("span",null,"Posición en la tabla: ",-1)),cSt=Fd(()=>t.createElementVNode("span",null,"Goles anotados: ",-1)),dSt=Fd(()=>t.createElementVNode("span",null,"Goles recibidos: ",-1)),uSt=Fd(()=>t.createElementVNode("span",null,"Partidos jugados: ",-1)),hSt=Fd(()=>t.createElementVNode("span",null,"Efectividad de pases: ",-1)),pSt=Fd(()=>t.createElementVNode("span",null,"xG: ",-1));function fSt(e,a,i,N,L,u){const g=t.resolveComponent("GSCButton");return t.openBlock(),t.createElementBlock("div",KTt,[i.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.expandedInfoPlayerGames)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.dataContainer),id:"data-container"},[t.createElementVNode("div",{class:t.normalizeClass([e.$style.containerInfoGames,i.additionalClass]),id:"container-info"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},[i.viewTeam?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(e.$style.equipoAtlasSeleccinMexiGames)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.equipoGames)},"Equipo: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.atlasSeleccinGames)},t.toDisplayString(i.data.teams),3)],2)):t.createCommentVNode("",!0),i.viewAge?(t.openBlock(),t.createElementBlock("p",{key:1,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.equipoGames)},"Edad: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},t.toDisplayString(i.data.age)+" años",3),t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)}," ("+t.toDisplayString(i.data.dataofbirth)+")",3)],2)):t.createCommentVNode("",!0),i.viewNationality?(t.openBlock(),t.createElementBlock("p",{key:2,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"Nacionalidad: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},[t.createTextVNode(t.toDisplayString(i.data.nationality.substring(0,3).toUpperCase())+" ",1),t.createElementVNode("div",{class:t.normalizeClass(e.$style.countryFlag)},[t.createElementVNode("img",{src:i.data.countryFlag},null,8,QTt)],2)],2)],2)):t.createCommentVNode("",!0),i.viewPosition?(t.openBlock(),t.createElementBlock("p",{key:3,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"Posición: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},t.toDisplayString(i.data.position),3)],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited12)},[i.viewGames?(t.openBlock(),t.createElementBlock("p",{key:0,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"partidos Jugados: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},t.toDisplayString(i.data.games),3)],2)):t.createCommentVNode("",!0),i.viewMin?(t.openBlock(),t.createElementBlock("p",{key:1,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"Minutos Jugados: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},t.toDisplayString(i.data.min),3)],2)):t.createCommentVNode("",!0),i.viewGoals?(t.openBlock(),t.createElementBlock("p",{key:2,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},t.toDisplayString(i.data.category)+": ",3),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},t.toDisplayString(i.data.goals),3)],2)):t.createCommentVNode("",!0),i.viewEffectiveness?(t.openBlock(),t.createElementBlock("p",{key:3,class:t.normalizeClass(e.$style.nacionalidadMex)},[t.createElementVNode("span",{class:t.normalizeClass(e.$style.span12)},"Efectividad de pases: ",2),t.createElementVNode("span",{class:t.normalizeClass(e.$style.aosGames)},t.toDisplayString(i.data.effectiveness.toFixed(0))+"%",3)],2)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerButton),id:"btn-container"},[i.viewButton?(t.openBlock(),t.createBlock(g,{key:0,style:t.normalizeStyle(i.additionalClass!=""&&N.elementSize.width>540?"margin-right: 50px":""),width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:a[0]||(a[0]=n=>u.viewProfile(i.data.id))},null,8,["style"])):t.createCommentVNode("",!0)],2)],2)],2)):t.createCommentVNode("",!0),i.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.infoExpanded)},[t.createElementVNode("div",{class:t.normalizeClass([e.$style.containerDataBg,i.additionalClass])},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnitedParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[eSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.position),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[tSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.goals),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[nSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.goals_received),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[aSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.games_played),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnitedParent)},[i.viewEffectiveness?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited1)},[rSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.effectiveness.toFixed(0))+"%",3)],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[iSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.xg),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnitedParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[t.createElementVNode("span",null,t.toDisplayString(i.data.category)+": ",1),t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.total),3)],2),i.viewEffectiveness?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited8)},[oSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.effectiveness)+"%",3)],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited8)},[sSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.xg),3)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerDataSm)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameDiv)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[lSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.position),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[cSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.goals),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[dSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.goals_received),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[uSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.games_played),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnitedParent1)},[i.viewEffectiveness?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited14)},[hSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.effectiveness.toFixed(0))+"%",3)],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[pSt,t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.xg),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[t.createElementVNode("span",null,t.toDisplayString(i.data.category)+": ",1),t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.total),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited8)},[t.createElementVNode("span",null,t.toDisplayString(i.data.category)+": ",1),t.createElementVNode("span",{class:t.normalizeClass(e.$style.spanGames)},t.toDisplayString(i.data.total),3)],2)],2)],2),i.viewButton?(t.openBlock(),t.createBlock(g,{key:0,style:t.normalizeStyle(i.additionalClass!=""&&N.elementSize.width>540?"margin-right: 42px":""),width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:a[1]||(a[1]=n=>u.viewProfile(i.data.id))},null,8,["style"])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0)],512)}const kH=Jr(MC,[["render",fSt],["__cssModules",{$style:XTt}],["__scopeId","data-v-7a212a61"]]);/**
3575
3575
  * Vue 3 Carousel 0.3.1
3576
3576
  * (c) 2023
3577
3577
  * @license MIT
@@ -7040,5 +7040,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
7040
7040
  * vuex v4.0.2
7041
7041
  * (c) 2021 Evan You
7042
7042
  * @license MIT
7043
- */var _nn="store";function xm(e,a){Object.keys(e).forEach(function(i){return a(e[i],i)})}function Kq(e){return e!==null&&typeof e=="object"}function bnn(e){return e&&typeof e.then=="function"}function th(e,a){if(!e)throw new Error("[vuex] "+a)}function xnn(e,a){return function(){return e(a)}}function Qq(e,a,i){return a.indexOf(e)<0&&(i&&i.prepend?a.unshift(e):a.push(e)),function(){var N=a.indexOf(e);N>-1&&a.splice(N,1)}}function eY(e,a){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var i=e.state;W4(e,i,[],e._modules.root,!0),rS(e,i,a)}function rS(e,a,i){var N=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var L=e._wrappedGetters,u={};xm(L,function(g,n){u[n]=xnn(g,e),Object.defineProperty(e.getters,n,{get:function(){return u[n]()},enumerable:!0})}),e._state=t.reactive({data:a}),e.strict&&Snn(e),N&&i&&e._withCommit(function(){N.data=null})}function W4(e,a,i,N,L){var u=!i.length,g=e._modules.getNamespace(i);if(N.namespaced&&(e._modulesNamespaceMap[g]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+g+" for the namespaced module "+i.join("/")),e._modulesNamespaceMap[g]=N),!u&&!L){var n=iS(a,i.slice(0,-1)),b=i[i.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&b in n&&console.warn('[vuex] state field "'+b+'" was overridden by a module with the same name at "'+i.join(".")+'"'),n[b]=N.state})}var m=N.context=wnn(e,g,i);N.forEachMutation(function(r,v){var _=g+v;knn(e,_,r,m)}),N.forEachAction(function(r,v){var _=r.root?v:g+v,c=r.handler||r;Cnn(e,_,c,m)}),N.forEachGetter(function(r,v){var _=g+v;Tnn(e,_,r,m)}),N.forEachChild(function(r,v){W4(e,a,i.concat(v),r,L)})}function wnn(e,a,i){var N=a==="",L={dispatch:N?e.dispatch:function(u,g,n){var b=q4(u,g,n),m=b.payload,r=b.options,v=b.type;if((!r||!r.root)&&(v=a+v,process.env.NODE_ENV!=="production"&&!e._actions[v])){console.error("[vuex] unknown local action type: "+b.type+", global type: "+v);return}return e.dispatch(v,m)},commit:N?e.commit:function(u,g,n){var b=q4(u,g,n),m=b.payload,r=b.options,v=b.type;if((!r||!r.root)&&(v=a+v,process.env.NODE_ENV!=="production"&&!e._mutations[v])){console.error("[vuex] unknown local mutation type: "+b.type+", global type: "+v);return}e.commit(v,m,r)}};return Object.defineProperties(L,{getters:{get:N?function(){return e.getters}:function(){return tY(e,a)}},state:{get:function(){return iS(e.state,i)}}}),L}function tY(e,a){if(!e._makeLocalGettersCache[a]){var i={},N=a.length;Object.keys(e.getters).forEach(function(L){if(L.slice(0,N)===a){var u=L.slice(N);Object.defineProperty(i,u,{get:function(){return e.getters[L]},enumerable:!0})}}),e._makeLocalGettersCache[a]=i}return e._makeLocalGettersCache[a]}function knn(e,a,i,N){var L=e._mutations[a]||(e._mutations[a]=[]);L.push(function(u){i.call(e,N.state,u)})}function Cnn(e,a,i,N){var L=e._actions[a]||(e._actions[a]=[]);L.push(function(u){var g=i.call(e,{dispatch:N.dispatch,commit:N.commit,getters:N.getters,state:N.state,rootGetters:e.getters,rootState:e.state},u);return bnn(g)||(g=Promise.resolve(g)),e._devtoolHook?g.catch(function(n){throw e._devtoolHook.emit("vuex:error",n),n}):g})}function Tnn(e,a,i,N){if(e._wrappedGetters[a]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+a);return}e._wrappedGetters[a]=function(L){return i(N.state,N.getters,L.state,L.getters)}}function Snn(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&th(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function iS(e,a){return a.reduce(function(i,N){return i[N]},e)}function q4(e,a,i){return Kq(e)&&e.type&&(i=a,a=e,e=e.type),process.env.NODE_ENV!=="production"&&th(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:a,options:i}}var Enn="vuex bindings",nY="vuex:mutations",oS="vuex:actions",B1="vuex",Ann=0;function Mnn(e,a){vnn({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[Enn]},function(i){i.addTimelineLayer({id:nY,label:"Vuex Mutations",color:aY}),i.addTimelineLayer({id:oS,label:"Vuex Actions",color:aY}),i.addInspector({id:B1,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),i.on.getInspectorTree(function(N){if(N.app===e&&N.inspectorId===B1)if(N.filter){var L=[];sY(L,a._modules.root,N.filter,""),N.rootNodes=L}else N.rootNodes=[oY(a._modules.root,"")]}),i.on.getInspectorState(function(N){if(N.app===e&&N.inspectorId===B1){var L=N.nodeId;tY(a,L),N.state=Nnn(Onn(a._modules,L),L==="root"?a.getters:a._makeLocalGettersCache,L)}}),i.on.editInspectorState(function(N){if(N.app===e&&N.inspectorId===B1){var L=N.nodeId,u=N.path;L!=="root"&&(u=L.split("/").filter(Boolean).concat(u)),a._withCommit(function(){N.set(a._state.data,u,N.state.value)})}}),a.subscribe(function(N,L){var u={};N.payload&&(u.payload=N.payload),u.state=L,i.notifyComponentUpdate(),i.sendInspectorTree(B1),i.sendInspectorState(B1),i.addTimelineEvent({layerId:nY,event:{time:Date.now(),title:N.type,data:u}})}),a.subscribeAction({before:function(N,L){var u={};N.payload&&(u.payload=N.payload),N._id=Ann++,N._time=Date.now(),u.state=L,i.addTimelineEvent({layerId:oS,event:{time:N._time,title:N.type,groupId:N._id,subtitle:"start",data:u}})},after:function(N,L){var u={},g=Date.now()-N._time;u.duration={_custom:{type:"duration",display:g+"ms",tooltip:"Action duration",value:g}},N.payload&&(u.payload=N.payload),u.state=L,i.addTimelineEvent({layerId:oS,event:{time:Date.now(),title:N.type,groupId:N._id,subtitle:"end",data:u}})}})})}var aY=8702998,Inn=6710886,Pnn=16777215,rY={label:"namespaced",textColor:Pnn,backgroundColor:Inn};function iY(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function oY(e,a){return{id:a||"root",label:iY(a),tags:e.namespaced?[rY]:[],children:Object.keys(e._children).map(function(i){return oY(e._children[i],a+i+"/")})}}function sY(e,a,i,N){N.includes(i)&&e.push({id:N||"root",label:N.endsWith("/")?N.slice(0,N.length-1):N||"Root",tags:a.namespaced?[rY]:[]}),Object.keys(a._children).forEach(function(L){sY(e,a._children[L],i,N+L+"/")})}function Nnn(e,a,i){a=i==="root"?a:a[i];var N=Object.keys(a),L={state:Object.keys(e.state).map(function(g){return{key:g,editable:!0,value:e.state[g]}})};if(N.length){var u=Bnn(a);L.getters=Object.keys(u).map(function(g){return{key:g.endsWith("/")?iY(g):g,editable:!1,value:sS(function(){return u[g]})}})}return L}function Bnn(e){var a={};return Object.keys(e).forEach(function(i){var N=i.split("/");if(N.length>1){var L=a,u=N.pop();N.forEach(function(g){L[g]||(L[g]={_custom:{value:{},display:g,tooltip:"Module",abstract:!0}}),L=L[g]._custom.value}),L[u]=sS(function(){return e[i]})}else a[i]=sS(function(){return e[i]})}),a}function Onn(e,a){var i=a.split("/").filter(function(N){return N});return i.reduce(function(N,L,u){var g=N[L];if(!g)throw new Error('Missing module "'+L+'" for path "'+a+'".');return u===i.length-1?g:g._children},a==="root"?e:e.root._children)}function sS(e){try{return e()}catch(a){return a}}var nh=function(e,a){this.runtime=a,this._children=Object.create(null),this._rawModule=e;var i=e.state;this.state=(typeof i=="function"?i():i)||{}},lY={namespaced:{configurable:!0}};lY.namespaced.get=function(){return!!this._rawModule.namespaced},nh.prototype.addChild=function(e,a){this._children[e]=a},nh.prototype.removeChild=function(e){delete this._children[e]},nh.prototype.getChild=function(e){return this._children[e]},nh.prototype.hasChild=function(e){return e in this._children},nh.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},nh.prototype.forEachChild=function(e){xm(this._children,e)},nh.prototype.forEachGetter=function(e){this._rawModule.getters&&xm(this._rawModule.getters,e)},nh.prototype.forEachAction=function(e){this._rawModule.actions&&xm(this._rawModule.actions,e)},nh.prototype.forEachMutation=function(e){this._rawModule.mutations&&xm(this._rawModule.mutations,e)},Object.defineProperties(nh.prototype,lY);var wm=function(e){this.register([],e,!1)};wm.prototype.get=function(e){return e.reduce(function(a,i){return a.getChild(i)},this.root)},wm.prototype.getNamespace=function(e){var a=this.root;return e.reduce(function(i,N){return a=a.getChild(N),i+(a.namespaced?N+"/":"")},"")},wm.prototype.update=function(e){cY([],this.root,e)},wm.prototype.register=function(e,a,i){var N=this;i===void 0&&(i=!0),process.env.NODE_ENV!=="production"&&hY(e,a);var L=new nh(a,i);if(e.length===0)this.root=L;else{var u=this.get(e.slice(0,-1));u.addChild(e[e.length-1],L)}a.modules&&xm(a.modules,function(g,n){N.register(e.concat(n),g,i)})},wm.prototype.unregister=function(e){var a=this.get(e.slice(0,-1)),i=e[e.length-1],N=a.getChild(i);if(!N){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+i+"', which is not registered");return}N.runtime&&a.removeChild(i)},wm.prototype.isRegistered=function(e){var a=this.get(e.slice(0,-1)),i=e[e.length-1];return a?a.hasChild(i):!1};function cY(e,a,i){if(process.env.NODE_ENV!=="production"&&hY(e,i),a.update(i),i.modules)for(var N in i.modules){if(!a.getChild(N)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+N+"' on hot reloading, manual reload is needed");return}cY(e.concat(N),a.getChild(N),i.modules[N])}}var dY={assert:function(e){return typeof e=="function"},expected:"function"},znn={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},uY={getters:dY,mutations:dY,actions:znn};function hY(e,a){Object.keys(uY).forEach(function(i){if(a[i]){var N=uY[i];xm(a[i],function(L,u){th(N.assert(L),Lnn(e,i,u,L,N.expected))})}})}function Lnn(e,a,i,N,L){var u=a+" should be "+L+' but "'+a+"."+i+'"';return e.length>0&&(u+=' in module "'+e.join(".")+'"'),u+=" is "+JSON.stringify(N)+".",u}var Ud=function e(a){var i=this;a===void 0&&(a={}),process.env.NODE_ENV!=="production"&&(th(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),th(this instanceof e,"store must be called with the new operator."));var N=a.plugins;N===void 0&&(N=[]);var L=a.strict;L===void 0&&(L=!1);var u=a.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new wm(a),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=u;var g=this,n=this,b=n.dispatch,m=n.commit;this.dispatch=function(v,_){return b.call(g,v,_)},this.commit=function(v,_,c){return m.call(g,v,_,c)},this.strict=L;var r=this._modules.root.state;W4(this,r,[],this._modules.root),rS(this,r),N.forEach(function(v){return v(i)})},lS={state:{configurable:!0}};Ud.prototype.install=function(e,a){e.provide(a||_nn,this),e.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;i&&Mnn(e,this)},lS.state.get=function(){return this._state.data},lS.state.set=function(e){process.env.NODE_ENV!=="production"&&th(!1,"use store.replaceState() to explicit replace store state.")},Ud.prototype.commit=function(e,a,i){var N=this,L=q4(e,a,i),u=L.type,g=L.payload,n=L.options,b={type:u,payload:g},m=this._mutations[u];if(!m){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+u);return}this._withCommit(function(){m.forEach(function(r){r(g)})}),this._subscribers.slice().forEach(function(r){return r(b,N.state)}),process.env.NODE_ENV!=="production"&&n&&n.silent&&console.warn("[vuex] mutation type: "+u+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Ud.prototype.dispatch=function(e,a){var i=this,N=q4(e,a),L=N.type,u=N.payload,g={type:L,payload:u},n=this._actions[L];if(!n){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+L);return}try{this._actionSubscribers.slice().filter(function(m){return m.before}).forEach(function(m){return m.before(g,i.state)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(m))}var b=n.length>1?Promise.all(n.map(function(m){return m(u)})):n[0](u);return new Promise(function(m,r){b.then(function(v){try{i._actionSubscribers.filter(function(_){return _.after}).forEach(function(_){return _.after(g,i.state)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(_))}m(v)},function(v){try{i._actionSubscribers.filter(function(_){return _.error}).forEach(function(_){return _.error(g,i.state,v)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(_))}r(v)})})},Ud.prototype.subscribe=function(e,a){return Qq(e,this._subscribers,a)},Ud.prototype.subscribeAction=function(e,a){var i=typeof e=="function"?{before:e}:e;return Qq(i,this._actionSubscribers,a)},Ud.prototype.watch=function(e,a,i){var N=this;return process.env.NODE_ENV!=="production"&&th(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(N.state,N.getters)},a,Object.assign({},i))},Ud.prototype.replaceState=function(e){var a=this;this._withCommit(function(){a._state.data=e})},Ud.prototype.registerModule=function(e,a,i){i===void 0&&(i={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(th(Array.isArray(e),"module path must be a string or an Array."),th(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,a),W4(this,this.state,e,this._modules.get(e),i.preserveState),rS(this,this.state)},Ud.prototype.unregisterModule=function(e){var a=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&th(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var i=iS(a.state,e.slice(0,-1));delete i[e[e.length-1]]}),eY(this)},Ud.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&th(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Ud.prototype.hotUpdate=function(e){this._modules.update(e),eY(this,!0)},Ud.prototype._withCommit=function(e){var a=this._committing;this._committing=!0,e(),this._committing=a},Object.defineProperties(Ud.prototype,lS);var Fnn=Vnn(function(e,a){var i={};return process.env.NODE_ENV!=="production"&&!pY(a)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),Dnn(a).forEach(function(N){var L=N.key,u=N.val;i[L]=function(){for(var g=[],n=arguments.length;n--;)g[n]=arguments[n];var b=this.$store.commit;if(e){var m=Rnn(this.$store,"mapMutations",e);if(!m)return;b=m.context.commit}return typeof u=="function"?u.apply(this,[b].concat(g)):b.apply(this.$store,[u].concat(g))}}),i});function Dnn(e){return pY(e)?Array.isArray(e)?e.map(function(a){return{key:a,val:a}}):Object.keys(e).map(function(a){return{key:a,val:e[a]}}):[]}function pY(e){return Array.isArray(e)||Kq(e)}function Vnn(e){return function(a,i){return typeof a!="string"?(i=a,a=""):a.charAt(a.length-1)!=="/"&&(a+="/"),e(a,i)}}function Rnn(e,a,i){var N=e._modulesNamespaceMap[i];return process.env.NODE_ENV!=="production"&&!N&&console.error("[vuex] module namespace not found in "+a+"(): "+i),N}const $nn="/icn-play.svg",jnn="/icn-tiros-de-esquina.svg",Unn="/icn-tiro-a-porteria.svg",Hnn="/icn-cambio.svg",Gnn="/icn-falta.svg",Wnn="/atajada.svg",qnn="/fuera-de-lugar.svg",cS="/gol.svg",Ynn="/var.png",Znn="/tiempo-agregado.svg",Jnn="/jugada-peligrosa.svg",Xnn="/penal-marcado.svg",Knn="/penal-fallado.svg",Qnn="/inicia-el-partido.svg",ean="/fin-del-partido.svg",tan="/icn-tarjeta-amarilla.svg",nan="/icn-tarjeta-roja.svg",aan=[1,2,3,4,6],ran={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],a=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return nS.GOAL_IDS.includes(a)?(e.push("is-main-event"),e.push("goal")):nS.YELLOW_CARD_IDS.includes(a)?(e.push("is-main-event"),e.push("yellow-card")):nS.RED_CARD_IDS.includes(a)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(a=>dnn(a))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||aan.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...Fnn("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,a]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(a),teamId:this.gameEvent.team_id})}}},ian=e=>(t.pushScopeId("data-v-9943063a"),e=e(),t.popScopeId(),e),oan={class:"time-line-event__details"},san={width:"127",preload:"metadata",style:{"border-radius":"8px"}},lan=["src"],can=ian(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),dan={class:"time-line-event__details__info"},uan={key:0,class:"time-line-event__details__info__header__players"},han={class:"time-line-event__details__info__header__players__div-img"},pan=["src"],fan={class:"time-line-event__details__info__body"},man={class:"time-line-event__details__info__body__comment"},gan={class:"time-line-event__minute__container"},yan={class:"time-line-event__minute__container__text"},van={class:"time-line-event__minute__container__icon-container"},_an={class:"time-line-event__minute__container__icon-container__icon"},ban={key:0,src:jnn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},xan={key:1,src:Unn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},wan={key:2,src:Hnn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},kan={key:3,src:Gnn,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Can={key:4,src:Wnn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Tan={key:5,src:qnn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},San={key:6,src:cS,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Ean={key:7,src:cS,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Aan={key:8,src:cS,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Man={key:9,src:Ynn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Ian={key:10,src:Znn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Pan={key:11,src:Jnn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Nan={key:12,src:Xnn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Ban={key:13,src:Knn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Oan={key:14,src:Qnn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},zan={key:15,src:ean,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Lan={key:16,src:tan,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Fan={key:17,src:nan,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Dan={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function Van(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",u.teamTypeClasses]),style:t.normalizeStyle({width:`${i.width}px`}),key:L.gameEventKey},[t.createElementVNode("div",oan,[i.canPlayVideos&&i.gameEvent.video_link!=="-"&&i.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:a[0]||(a[0]=g=>u.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[t.createElementVNode("video",san,[t.createElementVNode("source",{src:i.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,lan)]),can])):t.createCommentVNode("",!0),t.createElementVNode("div",dan,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",u.teamTypeClasses2])},[i.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",uan,[u.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(u.srcImgPlayers,(g,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":n===1}]),key:n},[t.createElementVNode("div",han,[t.createElementVNode("img",{src:g,alt:""},null,8,pan)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",u.nameClasses]),onClick:a[1]||(a[1]=g=>u.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[i.canPlayVideos&&i.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:$nn,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(i.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${i.gameEvent.event_type_name}`:i.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(i.gameEvent.category_id?i.gameEvent.event_type_id===5?i.gameEvent.category_name:i.gameEvent.event_type_name==="Gol"?i.gameEvent.event_type_name+" de "+i.gameEvent.team_name:i.gameEvent.event_type_name:i.gameEvent.comments),1)],2)],2),t.createElementVNode("div",fan,[t.createElementVNode("div",man,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",u.minuteClasses])},[t.createElementVNode("div",gan,[t.createElementVNode("div",yan,t.toDisplayString(i.gameEvent.minute)+"'",1),t.createElementVNode("div",van,[t.createElementVNode("div",_an,[i.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",ban)):i.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",xan)):i.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",wan)):i.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",kan)):i.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",Can)):i.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",Tan)):i.gameEvent.category_id==6&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==5&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==1&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==2&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==3&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==7&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==12&&i.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",San)):i.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",Ean)):i.gameEvent.category_id==13||i.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",Aan)):i.gameEvent.category_id==30||i.gameEvent.category_id==31||i.gameEvent.category_id==32||i.gameEvent.category_id==33||i.gameEvent.category_id==34||i.gameEvent.category_id==35||i.gameEvent.category_id==36||i.gameEvent.category_id==37||i.gameEvent.category_id==38||i.gameEvent.category_id==39||i.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",Man)):i.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",Ian)):i.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",Pan)):i.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",Nan)):i.gameEvent.category_id==15||i.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",Ban)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==16||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==18||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==20||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",Oan)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==13||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==17||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==19||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==21||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",zan)):i.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",Lan)):i.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",Fan)):(t.openBlock(),t.createElementBlock("img",Dan))])])])],2)],6)}const Ran=av(ran,[["render",Van],["__scopeId","data-v-9943063a"]]),$an={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},jan={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let Y4=null;const Uan={name:"TimeLine",components:{Tooltip:onn,TimeLineEvent:Ran},mixins:[lnn],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const a=await this.fetchGameEvents(e);a?(this.gameEvents=[...a],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(a){throw new Error(a)}},getGameEventClassAndSetIcon(e,a){return e.icon=a===0?"inicio_del_partido":$an[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:a}}=await Yq.get(`${this.gameEventsUrl}${e}`);return a}catch(a){throw new Error(a)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)Y4=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),Y4.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,a){const i=this.$refs[`gameEventDiv${a}`][0],N=this.$refs[`gameEventLine${a}`]?this.$refs[`gameEventLine${a}`][0]:null,L=e+12;i&&(i.style.height=`${L}px`),N&&(N.style.height=`${L}px`)},sortGameEvents(){this.gameEvents.sort((e,a)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(a.match_lapse)+Number(a.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let a=0;switch(e){case 1:a=0;break;case 2:a=45;break;case 3:a=90;break;case 4:a=105;break;case 5:a=120;break}return a},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const a=this.gameEvents.findIndex(i=>i.play_id===e.play_id);a&&this.gameEvents.splice(a,1)},checkTimeLineStatus(){this.gameEvents.forEach(a=>{const i=jan[a.game_status];i&&this.timeLineStatuses.push({...i,gameEvent:a})}),this.timeLineStatuses.sort((a,i)=>i.weight-a.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const a=this.gameData[e].team_id;return cnn(a)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){Y4&&Y4.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,a]){this.channelName===e&&this.addGameEventFromChannel(a)},update_mxm([e,a]){this.channelName===e&&(this.deleteGameEventFromChannel(a),this.addGameEventFromChannel(a))},delete_mxm([e,a]){this.channelName===e&&this.deleteGameEventFromChannel(a)}}},fY=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),Han={ref:"timeLine",class:"time-line"},Gan={class:"time-line__header"},Wan={class:"time-line__header__dot"},qan={class:"time-line__header__dot__home-team team-logo"},Yan=["src"],Zan={class:"time-line__header__dot__away-team team-logo"},Jan=["src"],Xan={key:1,class:"start-line"},Kan=fY(()=>t.createElementVNode("div",null,null,-1)),Qan=fY(()=>t.createElementVNode("div",null,null,-1)),ern=[Kan,Qan],trn={key:1,class:"noEventText"},nrn={class:"tooltip-data"},arn=["src"];function rrn(e,a,i,N,L,u){const g=t.resolveComponent("TimeLineEvent"),n=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",Han,[t.createElementVNode("div",Gan,[t.createElementVNode("div",Wan,[t.createElementVNode("div",qan,[t.createElementVNode("img",{src:u.getTeamLogoSrc("homeTeam"),alt:""},null,8,Yan)]),t.createElementVNode("div",Zan,[t.createElementVNode("img",{src:u.getTeamLogoSrc("awayTeam"),alt:""},null,8,Jan)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${L.gameEvents.length}`},[i.gameData.status!==4||i.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:L.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.gameEventsToShow,(b,m)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:b.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${m}`,class:t.normalizeClass(u.getGameEventClassAndSetIcon(b,m))},[t.createElementVNode("div",{class:t.normalizeClass(u.getEventContainerClass(b))},[t.createVNode(g,{"game-event":b,"is-mobile":u.isMobile,"time-line-width":L.timeLineWidth,width:u.gameEventWidth,"can-play-videos":i.canPlayVideos,onEventHeight:r=>u.updateContainerHeight(r,m),onPlayerChanged:a[0]||(a[0]=r=>e.$emit("player-changed",r)),onThumbnailClick:u.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),m>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${m}`,class:"line"},null,512)):t.createCommentVNode("",!0),i.gameData.status===1&&m===u.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",Xan,ern)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",trn,"Aún no comienza el partido"))]))],512),t.createVNode(n,{data:L.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",nrn,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:L.dataVideo.link,format:"video/mp4"},null,8,arn)])])]),_:1},8,["data"])],64)}const irn=av(Uan,[["render",rrn],["__scopeId","data-v-2574e576"]]),orn={class:"game-time-line__options"},srn={class:"game-time-line__timeline"},lrn={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){Yq.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const a=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),i=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let N=null;const L=t.ref(["Todo","1er tiempo","2do tiempo"]),u=t.ref("Todo"),g=t.ref({}),n=t.ref(null),b=t.ref(0),m=t.computed(()=>{let s="all";return u.value==="1er tiempo"||u.value==="1er"?s="firstHalf":(u.value==="2do tiempo"||u.value==="2do")&&(s="secondHalf"),s}),r=t.computed(()=>b.value<500);function v(s){u.value=s}function _(s){g.value=s}function c(){if(window.ResizeObserver)N=new ResizeObserver(()=>{b.value=n.value.clientWidth}),N.observe(n.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{c()}),t.onBeforeUnmount(()=>{N&&N.unobserve(n.value)}),(s,o)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:n,class:"game-time-line"},[t.createElementVNode("div",orn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value,l=>(t.openBlock(),t.createElementBlock("div",{key:l,class:"game-time-line__options__option"},[t.createVNode(Ren,t.mergeProps(b.value<390?i.value:a.value,{text:l=="Todo"?l:b.value<390?l.substring(0,3):l,"is-active":u.value===l,onClick:d=>v(l)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",srn,[t.createVNode(irn,{"game-data":e.game,"time-line-period":m.value,"is-mobile":r.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:_},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},crn=av(lrn,[["__scopeId","data-v-f42d0c90"]]),bgn="",drn={class:"game-data__header"},urn={class:"game-data__header__tournament-season-dropdown"},hrn={class:"game-data__header__teams-carousel"},prn={class:"game-data__body"},frn={class:"game-data__body__menu"},mrn={class:"game-data__body__menu__contmenuswitch"};Il.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const grn=t.defineComponent({name:"TemplateVideos",components:{StatisticsMain:ece,GSCGameTimeLine:crn,GscSwitchComponent:zC,GSCLineupsMain:w3e,GSCDatosGSMain:pTe,GSCVideoGame:jLe,ModalEvents:jL,GSCSummaryMain:fft,GSCTacticaFijaMain:Den,GSCProminentMain:ECt,GSCComparative:sAt}}),yrn=Jr(Object.assign(grn,{props:{tournamentsApiUrl:{type:String,default:""},currentSeasonId:{type:Number,default:0},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},socket:{type:Object,default:()=>({})},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:a}){const i=e,N=g0();Pu.on("socket-connected",()=>{N.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)});const L=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"),u=t.ref({season:[]}),g=t.ref({}),n=t.ref(!1),b=t.ref({}),m=t.ref(1),r=t.ref(!0),v=t.ref(new Set([1,2])),_=t.ref({}),c=t.ref({minute:"",score:{}}),s=t.ref(0),o=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),l=t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCComparative",name:"Comparativa",id:3},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),d=t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),h=t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);const p=t.ref(0);let f=null;const y=t.ref(null),w=t.ref(0),x=t.ref(d.value[0]),M=t.ref([]);let k=t.ref("");const T={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},S=t.computed(()=>{const ce=[];return g.value&&g.value.id&&(ce.push({id:g.value.id,name:g.value.name,type:g.value.type}),g.value.related_seasons&&g.value.related_seasons.forEach(me=>{ce.push({id:me.id,type:me.type})})),ce}),A=t.computed(()=>{if(i.clientPrivilegesBySeasons){const ce=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(ce)return ce.teamId}return 0});function E(){n.value=!1}function P(ce){const me=ce.split(",");return!(me.length<2||me[1].split(" ").length<2)}function C(ce){if(!P(ce))return"";const me=I(ce);return`${z(ce)}. ${me}`}function z(ce){return ce.split(",")[1].split(" ")[1][0]}function I(ce){const me=ce.split(",")[0].split(" ");return me[0].length<=3&&me.length>1?`${me[0]} ${me[1]}`:me[0]}async function O(ce){try{const me=Il.create({headers:{Authorization:`${L.value}`}});_.value={};const fe=await me.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+ce.game_id);_.value[ce.home_team.team_id]=[],_.value[ce.home_team.team_id].team={name:ce.home_team.acronym,logo:ce.home_team.logo},_.value[ce.home_team.team_id].goals=[],_.value[ce.home_team.team_id].red=[],_.value[ce.home_team.team_id].yellow=[],_.value[ce.visiting_team.team_id]=[],_.value[ce.visiting_team.team_id].team={name:ce.visiting_team.acronym,logo:ce.visiting_team.logo},_.value[ce.visiting_team.team_id].goals=[],_.value[ce.visiting_team.team_id].red=[],_.value[ce.visiting_team.team_id].yellow=[],fe.data.minute!=null&&(c.value={minute:fe.data.minute,score:fe.data.score});for(let ye=0;ye<fe.data.plays.length;ye++)fe.data.plays[ye].category_name=="Roja"&&fe.data.plays[ye].status==1&&(ce.home_team.team_id==fe.data.plays[ye].team_id?(C(fe.data.plays[ye].player_name)in _.value[ce.home_team.team_id].red||(_.value[ce.home_team.team_id].red[C(fe.data.plays[ye].player_name)]={},_.value[ce.home_team.team_id].red[C(fe.data.plays[ye].player_name)].event=[],_.value[ce.home_team.team_id].red[C(fe.data.plays[ye].player_name)].name=C(fe.data.plays[ye].player_name)),_.value[ce.home_team.team_id].red[C(fe.data.plays[ye].player_name)].event.push(fe.data.plays[ye].minute)):(C(fe.data.plays[ye].player_name)in _.value[ce.visiting_team.team_id].red||(_.value[ce.visiting_team.team_id].red[C(fe.data.plays[ye].player_name)]={},_.value[ce.visiting_team.team_id].red[C(fe.data.plays[ye].player_name)].event=[],_.value[ce.visiting_team.team_id].red[C(fe.data.plays[ye].player_name)].name=C(fe.data.plays[ye].player_name)),_.value[ce.visiting_team.team_id].red[C(fe.data.plays[ye].player_name)].event.push(fe.data.plays[ye].minute))),fe.data.plays[ye].category_name=="Amarilla"&&fe.data.plays[ye].status==1&&(ce.home_team.team_id==fe.data.plays[ye].team_id?(C(fe.data.plays[ye].player_name)in _.value[ce.home_team.team_id].yellow||(_.value[ce.home_team.team_id].yellow[C(fe.data.plays[ye].player_name)]={},_.value[ce.home_team.team_id].yellow[C(fe.data.plays[ye].player_name)].event=[],_.value[ce.home_team.team_id].yellow[C(fe.data.plays[ye].player_name)].name=C(fe.data.plays[ye].player_name)),_.value[ce.home_team.team_id].yellow[C(fe.data.plays[ye].player_name)].event.push(fe.data.plays[ye].minute)):(C(fe.data.plays[ye].player_name)in _.value[ce.visiting_team.team_id].yellow||(_.value[ce.visiting_team.team_id].yellow[C(fe.data.plays[ye].player_name)]={},_.value[ce.visiting_team.team_id].yellow[C(fe.data.plays[ye].player_name)].event=[],_.value[ce.visiting_team.team_id].yellow[C(fe.data.plays[ye].player_name)].name=C(fe.data.plays[ye].player_name)),_.value[ce.visiting_team.team_id].yellow[C(fe.data.plays[ye].player_name)].event.push(fe.data.plays[ye].minute))),fe.data.plays[ye].event_type_name=="Gol"&&fe.data.plays[ye].status==1&&(ce.home_team.team_id==fe.data.plays[ye].team_id?(C(fe.data.plays[ye].player_name)in _.value[ce.home_team.team_id].goals||(_.value[ce.home_team.team_id].goals[C(fe.data.plays[ye].player_name)]={},_.value[ce.home_team.team_id].goals[C(fe.data.plays[ye].player_name)].event=[],_.value[ce.home_team.team_id].goals[C(fe.data.plays[ye].player_name)].name=C(fe.data.plays[ye].player_name)),_.value[ce.home_team.team_id].goals[C(fe.data.plays[ye].player_name)].event.push(fe.data.plays[ye].minute)):(C(fe.data.plays[ye].player_name)in _.value[ce.visiting_team.team_id].goals||(_.value[ce.visiting_team.team_id].goals[C(fe.data.plays[ye].player_name)]={},_.value[ce.visiting_team.team_id].goals[C(fe.data.plays[ye].player_name)].event=[],_.value[ce.visiting_team.team_id].goals[C(fe.data.plays[ye].player_name)].name=C(fe.data.plays[ye].player_name)),_.value[ce.visiting_team.team_id].goals[C(fe.data.plays[ye].player_name)].event.push(fe.data.plays[ye].minute)))}catch(me){return Promise.reject(me)}}function D(ce){n.value=!0,ce.is_live!=1&&(ce.game_status==4||Object.keys(ce.minutes).length>0)?(s.value=1,_.value={plays:ce.minutes,home_team:ce.home_team,visiting_team:ce.visiting_team}):(s.value=0,O(ce))}function V(){f=new ResizeObserver(ce=>{for(const me of ce)w.value=me.contentRect.width}),f.observe(y.value)}const R=t.computed(()=>{let ce={};return b.value&&b.value.game_id&&(ce={gameId:b.value.game_id,id:b.value.game_id,seasonId:b.value.season_id,status:b.value.game_status,game_status:b.value.game_status==0?4:b.value.game_status,dateTimeUTC:b.value.date_time_utc,homeTeam:b.value.home_team,awayTeam:b.value.visiting_team,is_live:b.value.is_live,minutes:b.value.minutes}),ce});t.watch(()=>R,ce=>{Object.keys(ce.value).length>0&&(d.value=[],ce.value.is_live==1||ce.value.game_status==4?(d.value=[...l.value],x.value=l.value[0]):(d.value=[...h.value],x.value=h.value[0]),g.value.is_tactic_available==0&&d.value.pop(),p.value+=1,O({game_id:ce.value.gameId,home_team:ce.value.homeTeam,visiting_team:ce.value.awayTeam}),ce.value.is_live==1&&setInterval(()=>{s.value=0,O({game_id:ce.value.gameId,home_team:ce.value.homeTeam,visiting_team:ce.value.awayTeam})},6e4))},{deep:!0,immediate:!0}),t.watch(()=>N.state.nextGeneral.gameForAnalysis,()=>{N.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)},{deep:!0,immediate:!0});function j(ce){m.value=ce.is_captured,r.value=ce.is_captured!==0,u.value.id!==ce.id&&(u.value=ce,N.commit("gameGlobal/setTournamentType",ce.tournament_type))}function q(ce){ie.value&&!ie.value.canPrivilegesTeamPlayVideos||a("openmedia",ce)}function $(ce){a("onOpenProfile",ce)}function G(ce){a("openProfileTeam",ce)}function Z(ce){a("openProfilePlayer",ce)}function H(ce){te(ce),ce=="Estadísticas"&&(k.value="Comparativa")}function Y(){k.value=""}function X(ce){g.value.id!==ce.id&&(g.value=ce,a("change-season-id",ce.id))}const le=t.computed(()=>d.value.reduce((ce,me)=>(i.disabledSectionsIds.includes(me.id)||ie.value&&!ie.value.canPrivilegesTeamPlayVideos&&me.id===2||i.clientPrivilegesBySeasons&&me.id===7||(r.value||me.id!==5&&me.id!==6)&&ce.push(me.name),ce),[])),ie=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(g.value&&b.value&&b.value.game_id){const ce=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(ce)if(re(ce.playingAs),b.value.game_status===1){const me=ce.playingAs.has(b.value.playingAs);return{seasonAndPrivileges:ce,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&me,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:b.value.home_team.team_id===ce.teamId,homeTeamDetails:{canPlayVideos:me,team:b.value.home_team},awayTeamDetails:{canPlayVideos:me,team:b.value.visiting_team}}}else{const me=b.value.home_team.team_id===ce.teamId,fe=ae.value.filter(xe=>ce.playingAs.has(xe.playingAs));return{seasonAndPrivileges:ce,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&fe.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:me,homeTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&me&&fe.length>0,team:b.value.home_team},awayTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&!me&&fe.length>0,team:b.value.visiting_team}}}re(new Set)}return T}return null}),ae=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(g.value){const ce=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(ce)return M.value.filter(me=>me.game_status===1&&ce.playingAs.has(me.playingAs))}return[]}return[]});t.watch(le,()=>{ie.value&&!ie.value.canPrivilegesTeamPlayVideos&&x.value.id===2&&te("Resumen")},{deep:!0,immediate:!0});function re(ce){v.value=ce}function te(ce){x.value=d.value.find(me=>me.name===ce)||d.value[0]}t.onMounted(()=>{V(),t.nextTick(()=>{i.isSynchronization&&te("Táctica Fija")})}),t.onBeforeUnmount(()=>{f&&f.disconnect()});function ee(ce){ce.playingAs||(ce.playingAs=A.value?ce.home_team.team_id===A.value?1:2:0),b.value=ce}function se(ce){M.value=ce.map(me=>{const fe={...me};return A.value&&(fe.playingAs=fe.home_team.team_id===A.value?1:2),fe})}function he(ce){}return(ce,me)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:y},[t.createElementVNode("div",drn,[t.withDirectives(t.createElementVNode("div",urn,[t.createVNode(t.unref(PA),{"current-season-id":e.currentSeasonId,onInput:j,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl},null,8,["current-season-id","tournaments-ids-to-include","api-url"]),t.createVNode(t.unref(OA),{"current-season-id":e.currentSeasonId,seasons:u.value.seasons,onInput:X},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",hrn,[t.createVNode(t.unref(ste),{"plays-live":_.value,"info-live":c.value,token:o.value,is_captured:m.value,"await-for-seasons":"",seasons:S.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":A.value,"only-games-team-id":A.value,"tournament-type":t.unref(N).state.gameGlobal.tournamentType,onChangeGameCarousel:ee,onOpenModalEvent:D,onChangeGamesByClientPrivileges:se},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),n.value?(t.openBlock(),t.createBlock(jL,{key:0,width:w.value,onCloseModalEventsLive:E,plays:_.value,game:b.value,type:s.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",prn,[t.createElementVNode("div",frn,[t.createElementVNode("div",mrn,[t.createVNode(t.unref(zC),{type:2,buttons:le.value,"font-family":"Poppins-Regular","font-size":"16px",width:w.value<400||w.value<700?"max-content":w.value<840||w.value<1050?"155px":"165px","selected-option":x.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:te},null,8,["buttons","width","selected-option"])])]),R.value&&R.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(x.value.componentName),{key:p.value,game:R.value,subsection:t.unref(k),seasonSelected:g.value,showLineups:r.value,socket:e.socket,"is-tactic-visible":!!g.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":ie.value?ie.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":v.value,"client-privileges-team-id":A.value,"play-videos-privileges":ie.value,token:o.value,onResetSubsection:Y,onOpenmedia:q,onOnOpenProfile:$,onOpenProfileTeam:G,onOpenProfilePlayer:Z,onChangeToTab:H,onOpenMediaPlayer:q,onClickPlayEvent:he},null,40,["game","subsection","seasonSelected","showLineups","socket","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token"])):t.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-f7ccd796"]]);async function md({url:e,options:a={},retries:i=3}){return await Il.get(e,a).then(N=>N).catch(N=>i>0?md({url:e,options:a,retries:i-1}):N)}async function mY({seasonId:e},a=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(i){if(a)return mY({seasonId:e},!1);throw new Error(i)}}async function vrn({seasonId:e}){try{return(await md({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}async function _rn({seasonId:e}){try{return(await md({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}function brn(e,a,i,N,L,u,g=!1){const n=i.map(b=>b===1?2:b===2?1:3);return e.filter(b=>{const m=u&&b[L.teamId]?b[L.teamId]!==u:!1,r=a===1?2:1;return(g||N.includes(b[L.gameId]))&&(!a||(m?r:a)===b[L.playingAs])&&(i.includes(b[L.matchResult])&&b[L.teamId]===u||n.includes(b[L.matchResult])&&b[L.teamId]!==u)})}function gY(e,a,i,N,L){return a.length===2&&i.length===3&&N.length===6?e:e.filter(u=>a.includes(u[L.playingAs])&&i.includes(u[L.matchResult])&&N.includes(u[L.section]))}async function yY({seasonId:e}){try{const a=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await md({url:a})).data}catch(a){return Promise.reject(a)}}async function xrn({seasonId:e,gameId:a}){try{const i=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${a}`,{data:N}=await md({url:i});return N}catch(i){return Promise.reject(i)}}async function wrn({gameId:e}){try{const a=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await md({url:a})).data.data}catch(a){return Promise.reject(a)}}async function krn({gameId:e}){try{const a=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await md({url:a})).data.data||[]}catch(a){return Promise.reject(a)}}const Crn=["categoryId","matchLapse","section","matchResult","playingAs","total"];let dS=null;function vY(){return dS||(dS=W1(Crn)),dS}async function Trn(e){try{const a=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await md({url:a})).data}catch(a){return Promise.reject(a)}}async function _Y({seasonId:e,teamId:a}){try{return await md({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${a}`})}catch(i){return Promise.reject(i)}}async function Srn(e){try{const a=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await md({url:a})}catch(a){return Promise.reject(a)}}async function Ern(e){try{return await md({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(a){return Promise.reject(a)}}const Arn={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,a,i,N){return brn(e.seasonPlays,N["filterGeneral/getPlayingAs"],N["filterGeneral/getResults"],N["filterGeneral/getSelectedGamesIds"],vY(),N["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const a=e.currentSeasonGames.reduce((i,N)=>{const L={...N};return L.home_team=e.currentSeasonTeams.find(u=>u.team_id===N.home_team),L.visiting_team=e.currentSeasonTeams.find(u=>u.team_id===N.visiting_team),i[N.matchday_abbreviation]?i[N.matchday_abbreviation][N.game_status===3?"canceled":N.date]?i[N.matchday_abbreviation][N.game_status===3?"canceled":N.date].push(L):i[N.matchday_abbreviation][N.game_status===3?"canceled":N.date]=[L]:i[N.matchday_abbreviation]={[N.game_status===3?"canceled":N.date]:[L]},i},{});for(let[i,N]of Object.entries(a))a[i]=Object.entries(N).map(([L,u])=>({date:L,games:u})),a[i].sort((L,u)=>L.date<u.date?-1:L.date>u.date?1:0);return a},matchdaysDates(e,a){let i=[];if(a.nextGamesSchedule){let N=Object.keys(a.nextGamesSchedule);for(let L of N){let u=Number(L.replace("M","")),g=a.nextGamesSchedule[L].map(n=>({matchday:u,date:new Date(n.date)}));i=i.concat(g)}}return i},closestMatchDay(e,a){let i=new Date,N=0,L=-new Date(0,0,0).valueOf(),u=a.matchdaysDates,g=u.length;for(let n=0;n<u.length;n++)N=Math.abs(u[n].date-i),N<L&&(g=n,L=N);return u[g]?u[g].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,a){e.booleanIsLiveGamesModalOpen=a},setBooleanAreLiveGames(e,a){e.booleanAreLiveGames=a},updateSeasonPlays(e,a){e.seasonPlays=a},updateCurrentSeasonTeams(e,a){e.currentSeasonTeams=a},updateCurrentSeasonGames(e,a){e.currentSeasonGames=a},updateSelectedRound(e,a){e.selectedRound=a}},actions:{async getSeasonPlays({commit:e,rootGetters:a},i=!1){try{const N=await mY({seasonId:a["filterGeneral/getSeasonId"]});if(i)return N;e("updateSeasonPlays",N)}catch(N){return Promise.reject(N)}},async getCurrentSeasonGames({commit:e,rootGetters:a}){try{const i=await yY({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,rootGetters:a}){try{const i=await Trn({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",i.teams)}catch(i){return Promise.reject(i)}},async isDataFilled({state:e,dispatch:a,commit:i}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return i("setIsSectionLoading",!1,{root:!0}),!0;const N=[void 0,void 0];return e.currentSeasonGames.length===0&&(N[0]=a("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(N[1]=a("getCurrentSeasonTeams")),await Promise.all(N),!1}catch(N){throw new Error(N)}}}}};async function Mrn({filter:e}){try{const a=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:i}=await md({url:a});return i}catch(a){return Promise.reject(a)}}const Irn=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let uS=null;function Prn(){return uS||(uS=W1(Irn)),uS}class Z4{constructor(){ll(this,"maximumLiveSection",1);ll(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});ll(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(a){a>this.maximumLiveSection&&(this.maximumLiveSection=a)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(a,i,N){N&&(this.setMaximumLiveSection(a),this.accomplished.totalLive+=i,this.accomplished.totalsLiveTrendLive.sections[a-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,i)),this.accomplished.totalPostGame+=i,this.accomplished.avgPostGameTrendLive.sections[a-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,a,i)}increaseReceivedByOne(a,i,N){N&&(this.setMaximumLiveSection(a),this.received.totalLive+=i,this.received.totalsLiveTrendLive.sections[a-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,i)),this.received.totalPostGame+=i,this.received.avgPostGameTrendLive.sections[a-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,a,i)}increaseTrendLiveAccumulatedByOne(a,i,N){for(let L=i-1;L<a.accumulated.length;L++)a.accumulated[L]+=N}decreaseAccomplishedLiveByOne(a,i){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=i),this.accomplished.totalsLiveTrendLive.sections[a-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[a-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,i))}decreaseReceivedLiveByOne(a,i){this.received.totalLive>0&&(this.received.totalLive-=i),this.received.totalsLiveTrendLive.sections[a-1]>0&&(this.received.totalsLiveTrendLive.sections[a-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,i))}decreaseTotalsLiveTrendLiveAccumulatedByOne(a,i,N){for(let L=a.accumulated.length-1;L>=i-1;L--)a.accumulated[L]-=N}calculateAvg(a){a&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/a,this.received.avgPostGame=this.received.totalPostGame/a,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,a),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,a),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,a),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,a))}getAvgPostGameTrendLiveAvg(a,i){return a.map(N=>N/i)}calculateRanking(a,i,N,L,u,g,n,b){let m=[];L===3&&a&&a.length&&(N.playingAs.length!==2||N.matchResult.length!==3)?m=Array.from(a.reduce((v,_)=>{const c=_[i.playingAs]===1,s=c?"1":"2",o=v.get(_[i.gameId]);if(o)o[s]?o[s].arrayPlays.push(_):o[s]={numberTeamId:_[i.teamId],arrayPlays:[_]};else{const l={numberMatchResult:_[i.matchResult]};c&&(l[1]={numberTeamId:_[i.teamId],arrayPlays:[_]}),v.set(_[i.gameId],l)}return v},new Map).values()).reduce((v,_)=>{const c=N.playingAs.length===2?"both":N.playingAs[0].toString();return(c==="both"&&(_[1].numberTeamId===N.teamId||_[2].numberTeamId===N.teamId)||c!=="both"&&_[c].numberTeamId===N.teamId)&&N.matchResult.includes(_.numberMatchResult)&&v.push(..._[1].arrayPlays,..._[2].arrayPlays),v},[]).filter(v=>N.sections.includes(v[i.section])):(m=a?[...a]:[],n&&a&&(m=a.filter(r=>N.playingAs.includes(r[i.playingAs])&&N.matchResult.includes(r[i.matchResult])&&N.sections.includes(r[i.section])))),this.setTeamRanking(m,L,i,N.teamId,g,"accomplished",b)}setTeamRanking(a,i,N,L,u,g,n){let b=null,m=null;i===3&&(b=new Map,m={},a.forEach(_=>{const c=b.get(_[N.gameId]);c?c[_[N.teamId.toString()]]?c[_[N.teamId.toString()]]+=_[N.total]:c[_[N.teamId.toString()]]=_[N.total]:b.set(_[N.gameId],{[_[N.teamId.toString()]]:_[N.total]})}),Array.from(b.values()).forEach(_=>{const[c,s]=Object.keys(_).map(l=>l),o=_[c]+_[s];this.addPassesAvgByTeam(m,c,o?_[c]/o:0),this.addPassesAvgByTeam(m,s,o?_[s]/o:0)}));const r=u.sort((_,c)=>_.team_id-c.team_id).map(_=>{if(i===3){const c=m[_.team_id.toString()];return{teamId:_.team_id,points:c?c.numberTotalPassesAvg/c.numberGamesCount:0,total:c?c.numberTotalPassesAvg:0}}else{const c=a.reduce((s,o)=>o[N.teamId]===_.team_id&&i===o[N.categoryId]?s+o[N.total]:s,0);return{teamId:_.team_id,points:_[`${n}FilterGames`]?c/_[`${n}FilterGames`]:0,total:c}}}).sort((_,c)=>c.points-_.points);this.accomplished.arrayRankings=r;const v=r.findIndex(_=>_.teamId===L);i===3&&(this.accomplished.avgPreGame=r[v].points),this[g].ranking=v+1,this[g].leader=r[0]}addPassesAvgByTeam(a,i,N){a[i]?(a[i].numberGamesCount+=1,a[i].numberTotalPassesAvg+=N):a[i]={numberGamesCount:1,numberTotalPassesAvg:N}}}class oo{constructor(a,i,N,L,u,g,n,b,m,r){ll(this,"id","");ll(this,"generalId",0);ll(this,"name","");ll(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});ll(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});ll(this,"accomplishedCategoryIds",[]);ll(this,"receivedCategoryIds",[]);ll(this,"generalCategoriesIds",{accomplished:0,received:0});ll(this,"specialMention","");ll(this,"homeTeam",new Z4);ll(this,"visitingTeam",new Z4);ll(this,"isLeagueDataCalculated",!1);ll(this,"leagueAccomplishedMax",0);ll(this,"leagueReceivedMax",0);ll(this,"leagueAccomplishedAvg",0);ll(this,"leagueReceivedAvg",0);ll(this,"leagueAccomplishedAccumulator",0);ll(this,"leagueReceivedAccumulator",0);ll(this,"homeTeamType","homeTeam");ll(this,"visitingTeamType","visitingTeam");ll(this,"betOnly",!1);ll(this,"isPercent",!1);this.id=`${N.accomplished}-${N.received}`,this.accomplishedCategoryIds=a||[],this.receivedCategoryIds=i||[],this.generalCategoriesIds=N||{accomplished:0,received:0},this.name=L,this.names["0-0"]=L||"",this.names["1-1"]=u||"",this.names["0-1"]=g||"",this.names["1-0"]=n||"",this.generalId=b||0,this.betOnly=m||!1,this.isPercent=r||!1}addLeaguePlays(a,i,N){a.length===0||!N||this.isLeagueDataCalculated||(a.forEach(L=>{this.isAccomplishedLeaguePlay(L[i.categoryId])&&(this.leagueAccomplishedAccumulator+=L[i.total]),this.isReceivedLeaguePlay(L[i.categoryId])&&(this.leagueReceivedAccumulator+=L[i.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*N)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*N)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(a,i,N){let L="-";for(const[u,g]of Object.entries(this.generalCategoriesIds))a===g&&(L=`${u==="accomplished"?"0":"1"}${L}`),i===g&&(L=`${L}${u==="accomplished"?"0":"1"}`);L.length===3&&(this.mentions[L]=N)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(a,i,N,L,u){!N||!u||a!==this.homeTeamType&&a!==this.visitingTeamType||(N.forEach(g=>{this.isAccomplishedPlay(g[L.categoryId])?this[a].increaseAccomplishedByOne(g[L.section],g[L.total]):this.isReceivedPlay(g[L.categoryId])&&this[a].increaseReceivedByOne(g[L.section],g[L.total])}),this[a].calculateAvg(u))}addLivePlay(a,i,N,L,u=!1,g=!1){(a===this.homeTeamType||a===this.visitingTeamType)&&N[L.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[a].increaseAccomplishedByOne(N[L.section],N[L.total],!0)}subtractLivePlay(a,i,N,L,u){(a===this.homeTeamType||a===this.visitingTeamType)&&(this.isAccomplishedPlay(N[L.categoryId])&&!u?this[a].decreaseAccomplishedLiveByOne(N[L.section],N[L.total]):this.isReceivedPlay(N[L.categoryId])&&u&&this[a].decreaseReceivedLiveByOne(N[L.section],N[L.total]))}isAccomplishedLeaguePlay(a){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(N=>a===N||`${a}_r`===N)}isReceivedLeaguePlay(a){return!!this.receivedCategoryIds.find(i=>a===i)}isAccomplishedPlay(a){return this.generalCategoriesIds.accomplished===a}isReceivedPlay(a){return this.generalCategoriesIds.received===a}calcRankingLeague(a,i,N,L,u,g=!1){this[this.homeTeamType].calculateRanking(a,i,N,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,u,g,this.homeTeamType),this[this.visitingTeamType].calculateRanking(a,i,L,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,u,g,this.visitingTeamType)}resetData(){this.homeTeam=new Z4,this.visitingTeam=new Z4,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(a){return this.generalCategoriesIds.accomplished===a||this.generalCategoriesIds.received===a}}const Nrn={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new oo([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new oo([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new oo([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new oo([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new oo([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new oo([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new oo([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new oo([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new oo([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new oo([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new oo([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new oo([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new oo([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new oo([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new oo([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new oo([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new oo([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new oo([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new oo([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new oo([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new oo([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new oo([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new oo([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new oo([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new oo([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new oo([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new oo([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new oo([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new oo([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new oo([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new oo([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new oo([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new oo([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new oo([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new oo([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new oo([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new oo([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new oo([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},Brn=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],Orn=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let hS=null;function zrn(){return hS||(hS=W1(Orn)),hS}const Lrn=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let pS=null;function Frn(){return pS||(pS=W1(Lrn)),pS}function J4(e,a,i){return[i.get(e[a.categoryId])||[],e[a.teamId],e[a.matchResult],e[a.playingAs],e[a.matchLapse],e[a.section],e[a.total]]}function bY(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function fS(e,a,i){let N=[...a];return e[i.categoryId]===2&&(N[0]=14),e[i.categoryId]===20&&(N[0]=15),[14,15].includes(N[0])?N:null}var mS={exports:{}},Drn=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Vrn=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],xY=function(a){var i=a,N=a.indexOf("["),L=a.indexOf("]");N!=-1&&L!=-1&&(a=a.substring(0,N)+a.substring(N,L).replace(/:/g,";")+a.substring(L,a.length));for(var u=Drn.exec(a||""),g={},n=14;n--;)g[Vrn[n]]=u[n]||"";return N!=-1&&L!=-1&&(g.source=i,g.host=g.host.substring(1,g.host.length-1).replace(/;/g,":"),g.authority=g.authority.replace("[","").replace("]","").replace(/;/g,":"),g.ipv6uri=!0),g.pathNames=Rrn(g,g.path),g.queryKey=$rn(g,g.query),g};function Rrn(e,a){var i=/\/{2,9}/g,N=a.replace(i,"/").split("/");return(a.substr(0,1)=="/"||a.length===0)&&N.splice(0,1),a.substr(a.length-1,1)=="/"&&N.splice(N.length-1,1),N}function $rn(e,a){var i={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(N,L,u){L&&(i[L]=u)}),i}var gS={exports:{}},yS={exports:{}},cv=1e3,dv=cv*60,uv=dv*60,hv=uv*24,jrn=hv*365.25,Urn=function(e,a){a=a||{};var i=typeof e;if(i==="string"&&e.length>0)return Hrn(e);if(i==="number"&&isNaN(e)===!1)return a.long?Wrn(e):Grn(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Hrn(e){if(e=String(e),!(e.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var i=parseFloat(a[1]),N=(a[2]||"ms").toLowerCase();switch(N){case"years":case"year":case"yrs":case"yr":case"y":return i*jrn;case"days":case"day":case"d":return i*hv;case"hours":case"hour":case"hrs":case"hr":case"h":return i*uv;case"minutes":case"minute":case"mins":case"min":case"m":return i*dv;case"seconds":case"second":case"secs":case"sec":case"s":return i*cv;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function Grn(e){return e>=hv?Math.round(e/hv)+"d":e>=uv?Math.round(e/uv)+"h":e>=dv?Math.round(e/dv)+"m":e>=cv?Math.round(e/cv)+"s":e+"ms"}function Wrn(e){return X4(e,hv,"day")||X4(e,uv,"hour")||X4(e,dv,"minute")||X4(e,cv,"second")||e+" ms"}function X4(e,a,i){if(!(e<a))return e<a*1.5?Math.floor(e/a)+" "+i:Math.ceil(e/a)+" "+i+"s"}(function(e,a){a=e.exports=N.debug=N.default=N,a.coerce=b,a.disable=g,a.enable=u,a.enabled=n,a.humanize=Urn,a.instances=[],a.names=[],a.skips=[],a.formatters={};function i(m){var r=0,v;for(v in m)r=(r<<5)-r+m.charCodeAt(v),r|=0;return a.colors[Math.abs(r)%a.colors.length]}function N(m){var r;function v(){if(v.enabled){var _=v,c=+new Date,s=c-(r||c);_.diff=s,_.prev=r,_.curr=c,r=c;for(var o=new Array(arguments.length),l=0;l<o.length;l++)o[l]=arguments[l];o[0]=a.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var d=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(p,f){if(p==="%%")return p;d++;var y=a.formatters[f];if(typeof y=="function"){var w=o[d];p=y.call(_,w),o.splice(d,1),d--}return p}),a.formatArgs.call(_,o);var h=v.log||a.log||console.log.bind(console);h.apply(_,o)}}return v.namespace=m,v.enabled=a.enabled(m),v.useColors=a.useColors(),v.color=i(m),v.destroy=L,typeof a.init=="function"&&a.init(v),a.instances.push(v),v}function L(){var m=a.instances.indexOf(this);return m!==-1?(a.instances.splice(m,1),!0):!1}function u(m){a.save(m),a.names=[],a.skips=[];var r,v=(typeof m=="string"?m:"").split(/[\s,]+/),_=v.length;for(r=0;r<_;r++)v[r]&&(m=v[r].replace(/\*/g,".*?"),m[0]==="-"?a.skips.push(new RegExp("^"+m.substr(1)+"$")):a.names.push(new RegExp("^"+m+"$")));for(r=0;r<a.instances.length;r++){var c=a.instances[r];c.enabled=a.enabled(c.namespace)}}function g(){a.enable("")}function n(m){if(m[m.length-1]==="*")return!0;var r,v;for(r=0,v=a.skips.length;r<v;r++)if(a.skips[r].test(m))return!1;for(r=0,v=a.names.length;r<v;r++)if(a.names[r].test(m))return!0;return!1}function b(m){return m instanceof Error?m.stack||m.message:m}})(yS,yS.exports);var qrn=yS.exports;(function(e,a){a=e.exports=qrn,a.log=L,a.formatArgs=N,a.save=u,a.load=g,a.useColors=i,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:n(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function i(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a.formatters.j=function(b){try{return JSON.stringify(b)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}};function N(b){var m=this.useColors;if(b[0]=(m?"%c":"")+this.namespace+(m?" %c":" ")+b[0]+(m?"%c ":" ")+"+"+a.humanize(this.diff),!!m){var r="color: "+this.color;b.splice(1,0,r,"color: inherit");var v=0,_=0;b[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(v++,c==="%c"&&(_=v))}),b.splice(_,0,r)}}function L(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function u(b){try{b==null?a.storage.removeItem("debug"):a.storage.debug=b}catch{}}function g(){var b;try{b=a.storage.debug}catch{}return!b&&typeof process<"u"&&"env"in process&&(b=process.env.DEBUG),b}a.enable(g());function n(){try{return window.localStorage}catch{}}})(gS,gS.exports);var K4=gS.exports,Yrn=xY,wY=K4("socket.io-client:url"),Zrn=Jrn;function Jrn(e,a){var i=e;a=a||typeof location<"u"&&location,e==null&&(e=a.protocol+"//"+a.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=a.protocol+e:e=a.host+e),/^(https?|wss?):\/\//.test(e)||(wY("protocol-less url %s",e),typeof a<"u"?e=a.protocol+"//"+e:e="https://"+e),wY("parse %s",e),i=Yrn(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";var N=i.host.indexOf(":")!==-1,L=N?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+L+":"+i.port,i.href=i.protocol+"://"+L+(a&&a.port===i.port?"":":"+i.port),i}var Q4={},vS={exports:{}},_S={exports:{}},pv=1e3,fv=pv*60,mv=fv*60,gv=mv*24,Xrn=gv*365.25,Krn=function(e,a){a=a||{};var i=typeof e;if(i==="string"&&e.length>0)return Qrn(e);if(i==="number"&&isNaN(e)===!1)return a.long?tin(e):ein(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Qrn(e){if(e=String(e),!(e.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var i=parseFloat(a[1]),N=(a[2]||"ms").toLowerCase();switch(N){case"years":case"year":case"yrs":case"yr":case"y":return i*Xrn;case"days":case"day":case"d":return i*gv;case"hours":case"hour":case"hrs":case"hr":case"h":return i*mv;case"minutes":case"minute":case"mins":case"min":case"m":return i*fv;case"seconds":case"second":case"secs":case"sec":case"s":return i*pv;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function ein(e){return e>=gv?Math.round(e/gv)+"d":e>=mv?Math.round(e/mv)+"h":e>=fv?Math.round(e/fv)+"m":e>=pv?Math.round(e/pv)+"s":e+"ms"}function tin(e){return e5(e,gv,"day")||e5(e,mv,"hour")||e5(e,fv,"minute")||e5(e,pv,"second")||e+" ms"}function e5(e,a,i){if(!(e<a))return e<a*1.5?Math.floor(e/a)+" "+i:Math.ceil(e/a)+" "+i+"s"}(function(e,a){a=e.exports=N.debug=N.default=N,a.coerce=b,a.disable=g,a.enable=u,a.enabled=n,a.humanize=Krn,a.instances=[],a.names=[],a.skips=[],a.formatters={};function i(m){var r=0,v;for(v in m)r=(r<<5)-r+m.charCodeAt(v),r|=0;return a.colors[Math.abs(r)%a.colors.length]}function N(m){var r;function v(){if(v.enabled){var _=v,c=+new Date,s=c-(r||c);_.diff=s,_.prev=r,_.curr=c,r=c;for(var o=new Array(arguments.length),l=0;l<o.length;l++)o[l]=arguments[l];o[0]=a.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var d=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(p,f){if(p==="%%")return p;d++;var y=a.formatters[f];if(typeof y=="function"){var w=o[d];p=y.call(_,w),o.splice(d,1),d--}return p}),a.formatArgs.call(_,o);var h=v.log||a.log||console.log.bind(console);h.apply(_,o)}}return v.namespace=m,v.enabled=a.enabled(m),v.useColors=a.useColors(),v.color=i(m),v.destroy=L,typeof a.init=="function"&&a.init(v),a.instances.push(v),v}function L(){var m=a.instances.indexOf(this);return m!==-1?(a.instances.splice(m,1),!0):!1}function u(m){a.save(m),a.names=[],a.skips=[];var r,v=(typeof m=="string"?m:"").split(/[\s,]+/),_=v.length;for(r=0;r<_;r++)v[r]&&(m=v[r].replace(/\*/g,".*?"),m[0]==="-"?a.skips.push(new RegExp("^"+m.substr(1)+"$")):a.names.push(new RegExp("^"+m+"$")));for(r=0;r<a.instances.length;r++){var c=a.instances[r];c.enabled=a.enabled(c.namespace)}}function g(){a.enable("")}function n(m){if(m[m.length-1]==="*")return!0;var r,v;for(r=0,v=a.skips.length;r<v;r++)if(a.skips[r].test(m))return!1;for(r=0,v=a.names.length;r<v;r++)if(a.names[r].test(m))return!0;return!1}function b(m){return m instanceof Error?m.stack||m.message:m}})(_S,_S.exports);var nin=_S.exports;(function(e,a){a=e.exports=nin,a.log=L,a.formatArgs=N,a.save=u,a.load=g,a.useColors=i,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:n(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function i(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a.formatters.j=function(b){try{return JSON.stringify(b)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}};function N(b){var m=this.useColors;if(b[0]=(m?"%c":"")+this.namespace+(m?" %c":" ")+b[0]+(m?"%c ":" ")+"+"+a.humanize(this.diff),!!m){var r="color: "+this.color;b.splice(1,0,r,"color: inherit");var v=0,_=0;b[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(v++,c==="%c"&&(_=v))}),b.splice(_,0,r)}}function L(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function u(b){try{b==null?a.storage.removeItem("debug"):a.storage.debug=b}catch{}}function g(){var b;try{b=a.storage.debug}catch{}return!b&&typeof process<"u"&&"env"in process&&(b=process.env.DEBUG),b}a.enable(g());function n(){try{return window.localStorage}catch{}}})(vS,vS.exports);var ain=vS.exports,kY={exports:{}};(function(e){e.exports=a;function a(N){if(N)return i(N)}function i(N){for(var L in a.prototype)N[L]=a.prototype[L];return N}a.prototype.on=a.prototype.addEventListener=function(N,L){return this._callbacks=this._callbacks||{},(this._callbacks["$"+N]=this._callbacks["$"+N]||[]).push(L),this},a.prototype.once=function(N,L){function u(){this.off(N,u),L.apply(this,arguments)}return u.fn=L,this.on(N,u),this},a.prototype.off=a.prototype.removeListener=a.prototype.removeAllListeners=a.prototype.removeEventListener=function(N,L){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var u=this._callbacks["$"+N];if(!u)return this;if(arguments.length==1)return delete this._callbacks["$"+N],this;for(var g,n=0;n<u.length;n++)if(g=u[n],g===L||g.fn===L){u.splice(n,1);break}return u.length===0&&delete this._callbacks["$"+N],this},a.prototype.emit=function(N){this._callbacks=this._callbacks||{};for(var L=new Array(arguments.length-1),u=this._callbacks["$"+N],g=1;g<arguments.length;g++)L[g-1]=arguments[g];if(u){u=u.slice(0);for(var g=0,n=u.length;g<n;++g)u[g].apply(this,L)}return this},a.prototype.listeners=function(N){return this._callbacks=this._callbacks||{},this._callbacks["$"+N]||[]},a.prototype.hasListeners=function(N){return!!this.listeners(N).length}})(kY);var O1=kY.exports,t5={},rin={}.toString,bS=Array.isArray||function(e){return rin.call(e)=="[object Array]"},CY=lin,iin=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",oin=typeof ArrayBuffer=="function",sin=function(e){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer};function lin(e){return iin&&Buffer.isBuffer(e)||oin&&(e instanceof ArrayBuffer||sin(e))}var xS=bS,TY=CY,SY=Object.prototype.toString,cin=typeof Blob=="function"||typeof Blob<"u"&&SY.call(Blob)==="[object BlobConstructor]",din=typeof File=="function"||typeof File<"u"&&SY.call(File)==="[object FileConstructor]";t5.deconstructPacket=function(e){var a=[],i=e.data,N=e;return N.data=wS(i,a),N.attachments=a.length,{packet:N,buffers:a}};function wS(e,a){if(!e)return e;if(TY(e)){var i={_placeholder:!0,num:a.length};return a.push(e),i}else if(xS(e)){for(var N=new Array(e.length),L=0;L<e.length;L++)N[L]=wS(e[L],a);return N}else if(typeof e=="object"&&!(e instanceof Date)){var N={};for(var u in e)N[u]=wS(e[u],a);return N}return e}t5.reconstructPacket=function(e,a){return e.data=kS(e.data,a),e.attachments=void 0,e};function kS(e,a){if(!e)return e;if(e&&e._placeholder===!0){var i=typeof e.num=="number"&&e.num>=0&&e.num<a.length;if(i)return a[e.num];throw new Error("illegal attachments")}else if(xS(e))for(var N=0;N<e.length;N++)e[N]=kS(e[N],a);else if(typeof e=="object")for(var L in e)e[L]=kS(e[L],a);return e}t5.removeBlobs=function(e,a){function i(u,g,n){if(!u)return u;if(cin&&u instanceof Blob||din&&u instanceof File){N++;var b=new FileReader;b.onload=function(){n?n[g]=this.result:L=this.result,--N||a(L)},b.readAsArrayBuffer(u)}else if(xS(u))for(var m=0;m<u.length;m++)i(u[m],m,u);else if(typeof u=="object"&&!TY(u))for(var r in u)i(u[r],r,u)}var N=0,L=e;i(L),N||a(L)},function(e){var a=ain("socket.io-parser"),i=O1,N=t5,L=bS,u=CY;e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=g,e.Decoder=v;function g(){}var n=e.ERROR+'"encode error"';g.prototype.encode=function(d,h){if(a("encoding packet %j",d),e.BINARY_EVENT===d.type||e.BINARY_ACK===d.type)r(d,h);else{var p=b(d);h([p])}};function b(d){var h=""+d.type;if((e.BINARY_EVENT===d.type||e.BINARY_ACK===d.type)&&(h+=d.attachments+"-"),d.nsp&&d.nsp!=="/"&&(h+=d.nsp+","),d.id!=null&&(h+=d.id),d.data!=null){var p=m(d.data);if(p!==!1)h+=p;else return n}return a("encoded %j as %s",d,h),h}function m(d){try{return JSON.stringify(d)}catch{return!1}}function r(d,h){function p(f){var y=N.deconstructPacket(f),w=b(y.packet),x=y.buffers;x.unshift(w),h(x)}N.removeBlobs(d,p)}function v(){this.reconstructor=null}i(v.prototype),v.prototype.add=function(d){var h;if(typeof d=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");h=c(d),e.BINARY_EVENT===h.type||e.BINARY_ACK===h.type?(this.reconstructor=new o(h),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",h)):this.emit("decoded",h)}else if(u(d)||d.base64)if(this.reconstructor)h=this.reconstructor.takeBinaryData(d),h&&(this.reconstructor=null,this.emit("decoded",h));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+d)};function _(d,h){switch(d){case 0:return typeof h=="object";case 1:return h===void 0;case 4:return typeof h=="string"||typeof h=="object";case 2:case 5:return L(h)&&(typeof h[0]=="string"||typeof h[0]=="number");case 3:case 6:return L(h)}}function c(d){var h=0,p={type:Number(d.charAt(0))};if(e.types[p.type]==null)return l("unknown packet type "+p.type);if(e.BINARY_EVENT===p.type||e.BINARY_ACK===p.type){for(var f=h+1;d.charAt(++h)!=="-"&&h!=d.length;);var y=d.substring(f,h);if(y!=Number(y)||d.charAt(h)!=="-")throw new Error("Illegal attachments");p.attachments=Number(y)}if(d.charAt(h+1)==="/"){for(var f=h+1;++h;){var w=d.charAt(h);if(w===","||h===d.length)break}p.nsp=d.substring(f,h)}else p.nsp="/";var x=d.charAt(h+1);if(x!==""&&Number(x)==x){for(var f=h+1;++h;){var w=d.charAt(h);if(w==null||Number(w)!=w){--h;break}if(h===d.length)break}p.id=Number(d.substring(f,h+1))}if(d.charAt(++h)){var M=s(d.substr(h));if(_(p.type,M))p.data=M;else throw new Error("invalid payload")}return a("decoded %s as %j",d,p),p}function s(d){try{return JSON.parse(d)}catch{return!1}}v.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function o(d){this.reconPack=d,this.buffers=[]}o.prototype.takeBinaryData=function(d){if(this.buffers.push(d),this.buffers.length===this.reconPack.attachments){var h=N.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),h}return null},o.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function l(d){return{type:e.ERROR,data:"parser error: "+d}}}(Q4);var CS={exports:{}},n5={},TS={exports:{}};try{TS.exports=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{TS.exports=!1}var uin=TS.exports,SS=function(){return typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),hin=uin,pin=SS,ES=function(e){var a=e.xdomain,i=e.xscheme,N=e.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!a||hin))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!i&&N)return new XDomainRequest}catch{}if(!a)try{return new pin[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}},AS={exports:{}},km={},fin=Object.keys||function(a){var i=[],N=Object.prototype.hasOwnProperty;for(var L in a)N.call(a,L)&&i.push(L);return i},min=bS,EY=Object.prototype.toString,gin=typeof Blob=="function"||typeof Blob<"u"&&EY.call(Blob)==="[object BlobConstructor]",yin=typeof File=="function"||typeof File<"u"&&EY.call(File)==="[object FileConstructor]",AY=a5;function a5(e){if(!e||typeof e!="object")return!1;if(min(e)){for(var a=0,i=e.length;a<i;a++)if(a5(e[a]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(e)||typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||gin&&e instanceof Blob||yin&&e instanceof File)return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return a5(e.toJSON(),!0);for(var N in e)if(Object.prototype.hasOwnProperty.call(e,N)&&a5(e[N]))return!0;return!1}var vin=function(e,a,i){var N=e.byteLength;if(a=a||0,i=i||N,e.slice)return e.slice(a,i);if(a<0&&(a+=N),i<0&&(i+=N),i>N&&(i=N),a>=N||a>=i||N===0)return new ArrayBuffer(0);for(var L=new Uint8Array(e),u=new Uint8Array(i-a),g=a,n=0;g<i;g++,n++)u[n]=L[g];return u.buffer},_in=bin;function bin(e,a,i){var N=!1;return i=i||xin,L.count=e,e===0?a():L;function L(u,g){if(L.count<=0)throw new Error("after called too many times");--L.count,u?(N=!0,a(u),a=i):L.count===0&&!N&&a(null,g)}}function xin(){}/*! https://mths.be/utf8js v2.1.2 by @mathias */var qf=String.fromCharCode;function MY(e){for(var a=[],i=0,N=e.length,L,u;i<N;)L=e.charCodeAt(i++),L>=55296&&L<=56319&&i<N?(u=e.charCodeAt(i++),(u&64512)==56320?a.push(((L&1023)<<10)+(u&1023)+65536):(a.push(L),i--)):a.push(L);return a}function win(e){for(var a=e.length,i=-1,N,L="";++i<a;)N=e[i],N>65535&&(N-=65536,L+=qf(N>>>10&1023|55296),N=56320|N&1023),L+=qf(N);return L}function IY(e,a){if(e>=55296&&e<=57343){if(a)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function MS(e,a){return qf(e>>a&63|128)}function kin(e,a){if(!(e&4294967168))return qf(e);var i="";return e&4294965248?e&4294901760?e&4292870144||(i=qf(e>>18&7|240),i+=MS(e,12),i+=MS(e,6)):(IY(e,a)||(e=65533),i=qf(e>>12&15|224),i+=MS(e,6)):i=qf(e>>6&31|192),i+=qf(e&63|128),i}function Cin(e,a){a=a||{};for(var i=a.strict!==!1,N=MY(e),L=N.length,u=-1,g,n="";++u<L;)g=N[u],n+=kin(g,i);return n}function z1(){if(Yf>=i5)throw Error("Invalid byte index");var e=r5[Yf]&255;if(Yf++,(e&192)==128)return e&63;throw Error("Invalid continuation byte")}function Tin(e){var a,i,N,L,u;if(Yf>i5)throw Error("Invalid byte index");if(Yf==i5)return!1;if(a=r5[Yf]&255,Yf++,!(a&128))return a;if((a&224)==192){if(i=z1(),u=(a&31)<<6|i,u>=128)return u;throw Error("Invalid continuation byte")}if((a&240)==224){if(i=z1(),N=z1(),u=(a&15)<<12|i<<6|N,u>=2048)return IY(u,e)?u:65533;throw Error("Invalid continuation byte")}if((a&248)==240&&(i=z1(),N=z1(),L=z1(),u=(a&7)<<18|i<<12|N<<6|L,u>=65536&&u<=1114111))return u;throw Error("Invalid UTF-8 detected")}var r5,i5,Yf;function Sin(e,a){a=a||{};var i=a.strict!==!1;r5=MY(e),i5=r5.length,Yf=0;for(var N=[],L;(L=Tin(i))!==!1;)N.push(L);return win(N)}var Ein={version:"2.1.2",encode:Cin,decode:Sin},o5={},PY;function Ain(){return PY||(PY=1,function(e){o5.encode=function(a){var i=new Uint8Array(a),N,L=i.length,u="";for(N=0;N<L;N+=3)u+=e[i[N]>>2],u+=e[(i[N]&3)<<4|i[N+1]>>4],u+=e[(i[N+1]&15)<<2|i[N+2]>>6],u+=e[i[N+2]&63];return L%3===2?u=u.substring(0,u.length-1)+"=":L%3===1&&(u=u.substring(0,u.length-2)+"=="),u},o5.decode=function(a){var i=a.length*.75,N=a.length,L,u=0,g,n,b,m;a[a.length-1]==="="&&(i--,a[a.length-2]==="="&&i--);var r=new ArrayBuffer(i),v=new Uint8Array(r);for(L=0;L<N;L+=4)g=e.indexOf(a[L]),n=e.indexOf(a[L+1]),b=e.indexOf(a[L+2]),m=e.indexOf(a[L+3]),v[u++]=g<<2|n>>4,v[u++]=(n&15)<<4|b>>2,v[u++]=(b&3)<<6|m&63;return r}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),o5}var IS,NY;function Min(){if(NY)return IS;NY=1;var e=typeof e<"u"?e:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:!1,a=function(){try{var n=new Blob(["hi"]);return n.size===2}catch{return!1}}(),i=a&&function(){try{var n=new Blob([new Uint8Array([1,2])]);return n.size===2}catch{return!1}}(),N=e&&e.prototype.append&&e.prototype.getBlob;function L(n){return n.map(function(b){if(b.buffer instanceof ArrayBuffer){var m=b.buffer;if(b.byteLength!==m.byteLength){var r=new Uint8Array(b.byteLength);r.set(new Uint8Array(m,b.byteOffset,b.byteLength)),m=r.buffer}return m}return b})}function u(n,b){b=b||{};var m=new e;return L(n).forEach(function(r){m.append(r)}),b.type?m.getBlob(b.type):m.getBlob()}function g(n,b){return new Blob(L(n),b||{})}return typeof Blob<"u"&&(u.prototype=Blob.prototype,g.prototype=Blob.prototype),IS=function(){return a?i?Blob:g:N?u:void 0}(),IS}(function(e){var a=fin,i=AY,N=vin,L=_in,u=Ein,g;typeof ArrayBuffer<"u"&&(g=Ain());var n=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),b=typeof navigator<"u"&&/PhantomJS/i.test(navigator.userAgent),m=n||b;e.protocol=3;var r=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},v=a(r),_={type:"error",data:"parser error"},c=Min();e.encodePacket=function(f,y,w,x){typeof y=="function"&&(x=y,y=!1),typeof w=="function"&&(x=w,w=null);var M=f.data===void 0?void 0:f.data.buffer||f.data;if(typeof ArrayBuffer<"u"&&M instanceof ArrayBuffer)return o(f,y,x);if(typeof c<"u"&&M instanceof c)return d(f,y,x);if(M&&M.base64)return s(f,x);var k=r[f.type];return f.data!==void 0&&(k+=w?u.encode(String(f.data),{strict:!1}):String(f.data)),x(""+k)};function s(f,y){var w="b"+e.packets[f.type]+f.data.data;return y(w)}function o(f,y,w){if(!y)return e.encodeBase64Packet(f,w);var x=f.data,M=new Uint8Array(x),k=new Uint8Array(1+x.byteLength);k[0]=r[f.type];for(var T=0;T<M.length;T++)k[T+1]=M[T];return w(k.buffer)}function l(f,y,w){if(!y)return e.encodeBase64Packet(f,w);var x=new FileReader;return x.onload=function(){e.encodePacket({type:f.type,data:x.result},y,!0,w)},x.readAsArrayBuffer(f.data)}function d(f,y,w){if(!y)return e.encodeBase64Packet(f,w);if(m)return l(f,y,w);var x=new Uint8Array(1);x[0]=r[f.type];var M=new c([x.buffer,f.data]);return w(M)}e.encodeBase64Packet=function(f,y){var w="b"+e.packets[f.type];if(typeof c<"u"&&f.data instanceof c){var x=new FileReader;return x.onload=function(){var A=x.result.split(",")[1];y(w+A)},x.readAsDataURL(f.data)}var M;try{M=String.fromCharCode.apply(null,new Uint8Array(f.data))}catch{for(var k=new Uint8Array(f.data),T=new Array(k.length),S=0;S<k.length;S++)T[S]=k[S];M=String.fromCharCode.apply(null,T)}return w+=btoa(M),y(w)},e.decodePacket=function(f,y,w){if(f===void 0)return _;if(typeof f=="string"){if(f.charAt(0)==="b")return e.decodeBase64Packet(f.substr(1),y);if(w&&(f=h(f),f===!1))return _;var M=f.charAt(0);return Number(M)!=M||!v[M]?_:f.length>1?{type:v[M],data:f.substring(1)}:{type:v[M]}}var x=new Uint8Array(f),M=x[0],k=N(f,1);return c&&y==="blob"&&(k=new c([k])),{type:v[M],data:k}};function h(f){try{f=u.decode(f,{strict:!1})}catch{return!1}return f}e.decodeBase64Packet=function(f,y){var w=v[f.charAt(0)];if(!g)return{type:w,data:{base64:!0,data:f.substr(1)}};var x=g.decode(f.substr(1));return y==="blob"&&c&&(x=new c([x])),{type:w,data:x}},e.encodePayload=function(f,y,w){typeof y=="function"&&(w=y,y=null);var x=i(f);if(y&&x)return c&&!m?e.encodePayloadAsBlob(f,w):e.encodePayloadAsArrayBuffer(f,w);if(!f.length)return w("0:");function M(T){return T.length+":"+T}function k(T,S){e.encodePacket(T,x?y:!1,!1,function(A){S(null,M(A))})}p(f,k,function(T,S){return w(S.join(""))})};function p(f,y,w){for(var x=new Array(f.length),M=L(f.length,w),k=function(S,A,E){y(A,function(P,C){x[S]=C,E(P,x)})},T=0;T<f.length;T++)k(T,f[T],M)}e.decodePayload=function(f,y,w){if(typeof f!="string")return e.decodePayloadAsBinary(f,y,w);typeof y=="function"&&(w=y,y=null);var x;if(f==="")return w(_,0,1);for(var M="",k,T,S=0,A=f.length;S<A;S++){var E=f.charAt(S);if(E!==":"){M+=E;continue}if(M===""||M!=(k=Number(M))||(T=f.substr(S+1,k),M!=T.length))return w(_,0,1);if(T.length){if(x=e.decodePacket(T,y,!1),_.type===x.type&&_.data===x.data)return w(_,0,1);var P=w(x,S+k,A);if(P===!1)return}S+=k,M=""}if(M!=="")return w(_,0,1)},e.encodePayloadAsArrayBuffer=function(f,y){if(!f.length)return y(new ArrayBuffer(0));function w(x,M){e.encodePacket(x,!0,!0,function(k){return M(null,k)})}p(f,w,function(x,M){var k=M.reduce(function(A,E){var P;return typeof E=="string"?P=E.length:P=E.byteLength,A+P.toString().length+P+2},0),T=new Uint8Array(k),S=0;return M.forEach(function(A){var E=typeof A=="string",P=A;if(E){for(var I=new Uint8Array(A.length),C=0;C<A.length;C++)I[C]=A.charCodeAt(C);P=I.buffer}E?T[S++]=0:T[S++]=1;for(var z=P.byteLength.toString(),C=0;C<z.length;C++)T[S++]=parseInt(z[C]);T[S++]=255;for(var I=new Uint8Array(P),C=0;C<I.length;C++)T[S++]=I[C]}),y(T.buffer)})},e.encodePayloadAsBlob=function(f,y){function w(x,M){e.encodePacket(x,!0,!0,function(k){var T=new Uint8Array(1);if(T[0]=1,typeof k=="string"){for(var S=new Uint8Array(k.length),A=0;A<k.length;A++)S[A]=k.charCodeAt(A);k=S.buffer,T[0]=0}for(var E=k instanceof ArrayBuffer?k.byteLength:k.size,P=E.toString(),C=new Uint8Array(P.length+1),A=0;A<P.length;A++)C[A]=parseInt(P[A]);if(C[P.length]=255,c){var z=new c([T.buffer,C.buffer,k]);M(null,z)}})}p(f,w,function(x,M){return y(new c(M))})},e.decodePayloadAsBinary=function(f,y,w){typeof y=="function"&&(w=y,y=null);for(var x=f,M=[];x.byteLength>0;){for(var k=new Uint8Array(x),T=k[0]===0,S="",A=1;k[A]!==255;A++){if(S.length>310)return w(_,0,1);S+=k[A]}x=N(x,2+S.length),S=parseInt(S);var E=N(x,0,S);if(T)try{E=String.fromCharCode.apply(null,new Uint8Array(E))}catch{var P=new Uint8Array(E);E="";for(var A=0;A<P.length;A++)E+=String.fromCharCode(P[A])}M.push(E),x=N(x,S)}var C=M.length;M.forEach(function(z,I){w(e.decodePacket(z,y,!0),I,C)})}})(km);var PS,BY;function NS(){if(BY)return PS;BY=1;var e=km,a=O1;PS=i;function i(N){this.path=N.path,this.hostname=N.hostname,this.port=N.port,this.secure=N.secure,this.query=N.query,this.timestampParam=N.timestampParam,this.timestampRequests=N.timestampRequests,this.readyState="",this.agent=N.agent||!1,this.socket=N.socket,this.enablesXDR=N.enablesXDR,this.withCredentials=N.withCredentials,this.pfx=N.pfx,this.key=N.key,this.passphrase=N.passphrase,this.cert=N.cert,this.ca=N.ca,this.ciphers=N.ciphers,this.rejectUnauthorized=N.rejectUnauthorized,this.forceNode=N.forceNode,this.isReactNative=N.isReactNative,this.extraHeaders=N.extraHeaders,this.localAddress=N.localAddress}return a(i.prototype),i.prototype.onError=function(N,L){var u=new Error(N);return u.type="TransportError",u.description=L,this.emit("error",u),this},i.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this},i.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this},i.prototype.send=function(N){if(this.readyState==="open")this.write(N);else throw new Error("Transport not open")},i.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},i.prototype.onData=function(N){var L=e.decodePacket(N,this.socket.binaryType);this.onPacket(L)},i.prototype.onPacket=function(N){this.emit("packet",N)},i.prototype.onClose=function(){this.readyState="closed",this.emit("close")},PS}var L1={};L1.encode=function(e){var a="";for(var i in e)e.hasOwnProperty(i)&&(a.length&&(a+="&"),a+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return a},L1.decode=function(e){for(var a={},i=e.split("&"),N=0,L=i.length;N<L;N++){var u=i[N].split("=");a[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return a};var s5=function(e,a){var i=function(){};i.prototype=a.prototype,e.prototype=new i,e.prototype.constructor=e},OY="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),l5=64,zY={},LY=0,Zf=0,FY;function BS(e){var a="";do a=OY[e%l5]+a,e=Math.floor(e/l5);while(e>0);return a}function Iin(e){var a=0;for(Zf=0;Zf<e.length;Zf++)a=a*l5+zY[e.charAt(Zf)];return a}function OS(){var e=BS(+new Date);return e!==FY?(LY=0,FY=e):e+"."+BS(LY++)}for(;Zf<l5;Zf++)zY[OY[Zf]]=Zf;OS.encode=BS,OS.decode=Iin;var DY=OS,zS={exports:{}},LS={exports:{}},yv=1e3,vv=yv*60,_v=vv*60,bv=_v*24,Pin=bv*365.25,Nin=function(e,a){a=a||{};var i=typeof e;if(i==="string"&&e.length>0)return Bin(e);if(i==="number"&&isNaN(e)===!1)return a.long?zin(e):Oin(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Bin(e){if(e=String(e),!(e.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var i=parseFloat(a[1]),N=(a[2]||"ms").toLowerCase();switch(N){case"years":case"year":case"yrs":case"yr":case"y":return i*Pin;case"days":case"day":case"d":return i*bv;case"hours":case"hour":case"hrs":case"hr":case"h":return i*_v;case"minutes":case"minute":case"mins":case"min":case"m":return i*vv;case"seconds":case"second":case"secs":case"sec":case"s":return i*yv;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function Oin(e){return e>=bv?Math.round(e/bv)+"d":e>=_v?Math.round(e/_v)+"h":e>=vv?Math.round(e/vv)+"m":e>=yv?Math.round(e/yv)+"s":e+"ms"}function zin(e){return c5(e,bv,"day")||c5(e,_v,"hour")||c5(e,vv,"minute")||c5(e,yv,"second")||e+" ms"}function c5(e,a,i){if(!(e<a))return e<a*1.5?Math.floor(e/a)+" "+i:Math.ceil(e/a)+" "+i+"s"}(function(e,a){a=e.exports=N.debug=N.default=N,a.coerce=b,a.disable=g,a.enable=u,a.enabled=n,a.humanize=Nin,a.instances=[],a.names=[],a.skips=[],a.formatters={};function i(m){var r=0,v;for(v in m)r=(r<<5)-r+m.charCodeAt(v),r|=0;return a.colors[Math.abs(r)%a.colors.length]}function N(m){var r;function v(){if(v.enabled){var _=v,c=+new Date,s=c-(r||c);_.diff=s,_.prev=r,_.curr=c,r=c;for(var o=new Array(arguments.length),l=0;l<o.length;l++)o[l]=arguments[l];o[0]=a.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var d=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(p,f){if(p==="%%")return p;d++;var y=a.formatters[f];if(typeof y=="function"){var w=o[d];p=y.call(_,w),o.splice(d,1),d--}return p}),a.formatArgs.call(_,o);var h=v.log||a.log||console.log.bind(console);h.apply(_,o)}}return v.namespace=m,v.enabled=a.enabled(m),v.useColors=a.useColors(),v.color=i(m),v.destroy=L,typeof a.init=="function"&&a.init(v),a.instances.push(v),v}function L(){var m=a.instances.indexOf(this);return m!==-1?(a.instances.splice(m,1),!0):!1}function u(m){a.save(m),a.names=[],a.skips=[];var r,v=(typeof m=="string"?m:"").split(/[\s,]+/),_=v.length;for(r=0;r<_;r++)v[r]&&(m=v[r].replace(/\*/g,".*?"),m[0]==="-"?a.skips.push(new RegExp("^"+m.substr(1)+"$")):a.names.push(new RegExp("^"+m+"$")));for(r=0;r<a.instances.length;r++){var c=a.instances[r];c.enabled=a.enabled(c.namespace)}}function g(){a.enable("")}function n(m){if(m[m.length-1]==="*")return!0;var r,v;for(r=0,v=a.skips.length;r<v;r++)if(a.skips[r].test(m))return!1;for(r=0,v=a.names.length;r<v;r++)if(a.names[r].test(m))return!0;return!1}function b(m){return m instanceof Error?m.stack||m.message:m}})(LS,LS.exports);var Lin=LS.exports;(function(e,a){a=e.exports=Lin,a.log=L,a.formatArgs=N,a.save=u,a.load=g,a.useColors=i,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:n(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function i(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a.formatters.j=function(b){try{return JSON.stringify(b)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}};function N(b){var m=this.useColors;if(b[0]=(m?"%c":"")+this.namespace+(m?" %c":" ")+b[0]+(m?"%c ":" ")+"+"+a.humanize(this.diff),!!m){var r="color: "+this.color;b.splice(1,0,r,"color: inherit");var v=0,_=0;b[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(v++,c==="%c"&&(_=v))}),b.splice(_,0,r)}}function L(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function u(b){try{b==null?a.storage.removeItem("debug"):a.storage.debug=b}catch{}}function g(){var b;try{b=a.storage.debug}catch{}return!b&&typeof process<"u"&&"env"in process&&(b=process.env.DEBUG),b}a.enable(g());function n(){try{return window.localStorage}catch{}}})(zS,zS.exports);var d5=zS.exports,VY=NS(),Fin=L1,RY=km,Din=s5,Vin=DY,ah=d5("engine.io-client:polling"),$Y=lp,Rin=function(){var e=ES,a=new e({xdomain:!1});return a.responseType!=null}();function lp(e){var a=e&&e.forceBase64;(!Rin||a)&&(this.supportsBinary=!1),VY.call(this,e)}Din(lp,VY),lp.prototype.name="polling",lp.prototype.doOpen=function(){this.poll()},lp.prototype.pause=function(e){var a=this;this.readyState="pausing";function i(){ah("paused"),a.readyState="paused",e()}if(this.polling||!this.writable){var N=0;this.polling&&(ah("we are currently polling - waiting to pause"),N++,this.once("pollComplete",function(){ah("pre-pause polling complete"),--N||i()})),this.writable||(ah("we are currently writing - waiting to pause"),N++,this.once("drain",function(){ah("pre-pause writing complete"),--N||i()}))}else i()},lp.prototype.poll=function(){ah("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},lp.prototype.onData=function(e){var a=this;ah("polling got data %s",e);var i=function(N,L,u){if(a.readyState==="opening"&&N.type==="open"&&a.onOpen(),N.type==="close")return a.onClose(),!1;a.onPacket(N)};RY.decodePayload(e,this.socket.binaryType,i),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():ah('ignoring poll - transport state "%s"',this.readyState))},lp.prototype.doClose=function(){var e=this;function a(){ah("writing close packet"),e.write([{type:"close"}])}this.readyState==="open"?(ah("transport open - closing"),a()):(ah("transport not open - deferring close"),this.once("open",a))},lp.prototype.write=function(e){var a=this;this.writable=!1;var i=function(){a.writable=!0,a.emit("drain")};RY.encodePayload(e,this.supportsBinary,function(N){a.doWrite(N,i)})},lp.prototype.uri=function(){var e=this.query||{},a=this.secure?"https":"http",i="";this.timestampRequests!==!1&&(e[this.timestampParam]=Vin()),!this.supportsBinary&&!e.sid&&(e.b64=1),e=Fin.encode(e),this.port&&(a==="https"&&Number(this.port)!==443||a==="http"&&Number(this.port)!==80)&&(i=":"+this.port),e.length&&(e="?"+e);var N=this.hostname.indexOf(":")!==-1;return a+"://"+(N?"["+this.hostname+"]":this.hostname)+i+this.path+e};var $in=ES,jY=$Y,jin=O1,Uin=s5,FS=d5("engine.io-client:polling-xhr"),Hin=SS;AS.exports=F1,AS.exports.Request=Nc;function UY(){}function F1(e){if(jY.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,typeof location<"u"){var a=location.protocol==="https:",i=location.port;i||(i=a?443:80),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port,this.xs=e.secure!==a}}Uin(F1,jY),F1.prototype.supportsBinary=!0,F1.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new Nc(e)},F1.prototype.doWrite=function(e,a){var i=typeof e!="string"&&e!==void 0,N=this.request({method:"POST",data:e,isBinary:i}),L=this;N.on("success",a),N.on("error",function(u){L.onError("xhr post error",u)}),this.sendXhr=N},F1.prototype.doPoll=function(){FS("xhr poll");var e=this.request(),a=this;e.on("data",function(i){a.onData(i)}),e.on("error",function(i){a.onError("xhr poll error",i)}),this.pollXhr=e};function Nc(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=e.async!==!1,this.data=e.data!==void 0?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}if(jin(Nc.prototype),Nc.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var a=this.xhr=new $in(e),i=this;try{FS("xhr open %s: %s",this.method,this.uri),a.open(this.method,this.uri,this.async);try{if(this.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(var N in this.extraHeaders)this.extraHeaders.hasOwnProperty(N)&&a.setRequestHeader(N,this.extraHeaders[N])}}catch{}if(this.method==="POST")try{this.isBinary?a.setRequestHeader("Content-type","application/octet-stream"):a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in a&&(a.withCredentials=this.withCredentials),this.requestTimeout&&(a.timeout=this.requestTimeout),this.hasXDR()?(a.onload=function(){i.onLoad()},a.onerror=function(){i.onError(a.responseText)}):a.onreadystatechange=function(){if(a.readyState===2)try{var L=a.getResponseHeader("Content-Type");(i.supportsBinary&&L==="application/octet-stream"||L==="application/octet-stream; charset=UTF-8")&&(a.responseType="arraybuffer")}catch{}a.readyState===4&&(a.status===200||a.status===1223?i.onLoad():setTimeout(function(){i.onError(typeof a.status=="number"?a.status:0)},0))},FS("xhr data %s",this.data),a.send(this.data)}catch(L){setTimeout(function(){i.onError(L)},0);return}typeof document<"u"&&(this.index=Nc.requestsCount++,Nc.requests[this.index]=this)},Nc.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},Nc.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},Nc.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},Nc.prototype.cleanup=function(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=UY:this.xhr.onreadystatechange=UY,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Nc.requests[this.index],this.xhr=null}},Nc.prototype.onLoad=function(){var e;try{var a;try{a=this.xhr.getResponseHeader("Content-Type")}catch{}a==="application/octet-stream"||a==="application/octet-stream; charset=UTF-8"?e=this.xhr.response||this.xhr.responseText:e=this.xhr.responseText}catch(i){this.onError(i)}e!=null&&this.onData(e)},Nc.prototype.hasXDR=function(){return typeof XDomainRequest<"u"&&!this.xs&&this.enablesXDR},Nc.prototype.abort=function(){this.cleanup()},Nc.requestsCount=0,Nc.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",HY);else if(typeof addEventListener=="function"){var Gin="onpagehide"in Hin?"pagehide":"unload";addEventListener(Gin,HY,!1)}}function HY(){for(var e in Nc.requests)Nc.requests.hasOwnProperty(e)&&Nc.requests[e].abort()}var Win=AS.exports,DS=$Y,qin=s5,GY=SS,Yin=D1,Zin=/\n/g,Jin=/\\n/g,u5;function Xin(){}function D1(e){DS.call(this,e),this.query=this.query||{},u5||(u5=GY.___eio=GY.___eio||[]),this.index=u5.length;var a=this;u5.push(function(i){a.onData(i)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){a.script&&(a.script.onerror=Xin)},!1)}qin(D1,DS),D1.prototype.supportsBinary=!1,D1.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),DS.prototype.doClose.call(this)},D1.prototype.doPoll=function(){var e=this,a=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),a.async=!0,a.src=this.uri(),a.onerror=function(L){e.onError("jsonp poll error",L)};var i=document.getElementsByTagName("script")[0];i?i.parentNode.insertBefore(a,i):(document.head||document.body).appendChild(a),this.script=a;var N=typeof navigator<"u"&&/gecko/i.test(navigator.userAgent);N&&setTimeout(function(){var L=document.createElement("iframe");document.body.appendChild(L),document.body.removeChild(L)},100)},D1.prototype.doWrite=function(e,a){var i=this;if(!this.form){var N=document.createElement("form"),L=document.createElement("textarea"),u=this.iframeId="eio_iframe_"+this.index,g;N.className="socketio",N.style.position="absolute",N.style.top="-1000px",N.style.left="-1000px",N.target=u,N.method="POST",N.setAttribute("accept-charset","utf-8"),L.name="d",N.appendChild(L),document.body.appendChild(N),this.form=N,this.area=L}this.form.action=this.uri();function n(){b(),a()}function b(){if(i.iframe)try{i.form.removeChild(i.iframe)}catch(r){i.onError("jsonp polling iframe removal error",r)}try{var m='<iframe src="javascript:0" name="'+i.iframeId+'">';g=document.createElement(m)}catch{g=document.createElement("iframe"),g.name=i.iframeId,g.src="javascript:0"}g.id=i.iframeId,i.form.appendChild(g),i.iframe=g}b(),e=e.replace(Jin,`\\
7043
+ */var _nn="store";function xm(e,a){Object.keys(e).forEach(function(i){return a(e[i],i)})}function Kq(e){return e!==null&&typeof e=="object"}function bnn(e){return e&&typeof e.then=="function"}function th(e,a){if(!e)throw new Error("[vuex] "+a)}function xnn(e,a){return function(){return e(a)}}function Qq(e,a,i){return a.indexOf(e)<0&&(i&&i.prepend?a.unshift(e):a.push(e)),function(){var N=a.indexOf(e);N>-1&&a.splice(N,1)}}function eY(e,a){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var i=e.state;W4(e,i,[],e._modules.root,!0),rS(e,i,a)}function rS(e,a,i){var N=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var L=e._wrappedGetters,u={};xm(L,function(g,n){u[n]=xnn(g,e),Object.defineProperty(e.getters,n,{get:function(){return u[n]()},enumerable:!0})}),e._state=t.reactive({data:a}),e.strict&&Snn(e),N&&i&&e._withCommit(function(){N.data=null})}function W4(e,a,i,N,L){var u=!i.length,g=e._modules.getNamespace(i);if(N.namespaced&&(e._modulesNamespaceMap[g]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+g+" for the namespaced module "+i.join("/")),e._modulesNamespaceMap[g]=N),!u&&!L){var n=iS(a,i.slice(0,-1)),b=i[i.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&b in n&&console.warn('[vuex] state field "'+b+'" was overridden by a module with the same name at "'+i.join(".")+'"'),n[b]=N.state})}var m=N.context=wnn(e,g,i);N.forEachMutation(function(r,v){var _=g+v;knn(e,_,r,m)}),N.forEachAction(function(r,v){var _=r.root?v:g+v,c=r.handler||r;Cnn(e,_,c,m)}),N.forEachGetter(function(r,v){var _=g+v;Tnn(e,_,r,m)}),N.forEachChild(function(r,v){W4(e,a,i.concat(v),r,L)})}function wnn(e,a,i){var N=a==="",L={dispatch:N?e.dispatch:function(u,g,n){var b=q4(u,g,n),m=b.payload,r=b.options,v=b.type;if((!r||!r.root)&&(v=a+v,process.env.NODE_ENV!=="production"&&!e._actions[v])){console.error("[vuex] unknown local action type: "+b.type+", global type: "+v);return}return e.dispatch(v,m)},commit:N?e.commit:function(u,g,n){var b=q4(u,g,n),m=b.payload,r=b.options,v=b.type;if((!r||!r.root)&&(v=a+v,process.env.NODE_ENV!=="production"&&!e._mutations[v])){console.error("[vuex] unknown local mutation type: "+b.type+", global type: "+v);return}e.commit(v,m,r)}};return Object.defineProperties(L,{getters:{get:N?function(){return e.getters}:function(){return tY(e,a)}},state:{get:function(){return iS(e.state,i)}}}),L}function tY(e,a){if(!e._makeLocalGettersCache[a]){var i={},N=a.length;Object.keys(e.getters).forEach(function(L){if(L.slice(0,N)===a){var u=L.slice(N);Object.defineProperty(i,u,{get:function(){return e.getters[L]},enumerable:!0})}}),e._makeLocalGettersCache[a]=i}return e._makeLocalGettersCache[a]}function knn(e,a,i,N){var L=e._mutations[a]||(e._mutations[a]=[]);L.push(function(u){i.call(e,N.state,u)})}function Cnn(e,a,i,N){var L=e._actions[a]||(e._actions[a]=[]);L.push(function(u){var g=i.call(e,{dispatch:N.dispatch,commit:N.commit,getters:N.getters,state:N.state,rootGetters:e.getters,rootState:e.state},u);return bnn(g)||(g=Promise.resolve(g)),e._devtoolHook?g.catch(function(n){throw e._devtoolHook.emit("vuex:error",n),n}):g})}function Tnn(e,a,i,N){if(e._wrappedGetters[a]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+a);return}e._wrappedGetters[a]=function(L){return i(N.state,N.getters,L.state,L.getters)}}function Snn(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&th(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function iS(e,a){return a.reduce(function(i,N){return i[N]},e)}function q4(e,a,i){return Kq(e)&&e.type&&(i=a,a=e,e=e.type),process.env.NODE_ENV!=="production"&&th(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:a,options:i}}var Enn="vuex bindings",nY="vuex:mutations",oS="vuex:actions",B1="vuex",Ann=0;function Mnn(e,a){vnn({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[Enn]},function(i){i.addTimelineLayer({id:nY,label:"Vuex Mutations",color:aY}),i.addTimelineLayer({id:oS,label:"Vuex Actions",color:aY}),i.addInspector({id:B1,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),i.on.getInspectorTree(function(N){if(N.app===e&&N.inspectorId===B1)if(N.filter){var L=[];sY(L,a._modules.root,N.filter,""),N.rootNodes=L}else N.rootNodes=[oY(a._modules.root,"")]}),i.on.getInspectorState(function(N){if(N.app===e&&N.inspectorId===B1){var L=N.nodeId;tY(a,L),N.state=Nnn(Onn(a._modules,L),L==="root"?a.getters:a._makeLocalGettersCache,L)}}),i.on.editInspectorState(function(N){if(N.app===e&&N.inspectorId===B1){var L=N.nodeId,u=N.path;L!=="root"&&(u=L.split("/").filter(Boolean).concat(u)),a._withCommit(function(){N.set(a._state.data,u,N.state.value)})}}),a.subscribe(function(N,L){var u={};N.payload&&(u.payload=N.payload),u.state=L,i.notifyComponentUpdate(),i.sendInspectorTree(B1),i.sendInspectorState(B1),i.addTimelineEvent({layerId:nY,event:{time:Date.now(),title:N.type,data:u}})}),a.subscribeAction({before:function(N,L){var u={};N.payload&&(u.payload=N.payload),N._id=Ann++,N._time=Date.now(),u.state=L,i.addTimelineEvent({layerId:oS,event:{time:N._time,title:N.type,groupId:N._id,subtitle:"start",data:u}})},after:function(N,L){var u={},g=Date.now()-N._time;u.duration={_custom:{type:"duration",display:g+"ms",tooltip:"Action duration",value:g}},N.payload&&(u.payload=N.payload),u.state=L,i.addTimelineEvent({layerId:oS,event:{time:Date.now(),title:N.type,groupId:N._id,subtitle:"end",data:u}})}})})}var aY=8702998,Inn=6710886,Pnn=16777215,rY={label:"namespaced",textColor:Pnn,backgroundColor:Inn};function iY(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function oY(e,a){return{id:a||"root",label:iY(a),tags:e.namespaced?[rY]:[],children:Object.keys(e._children).map(function(i){return oY(e._children[i],a+i+"/")})}}function sY(e,a,i,N){N.includes(i)&&e.push({id:N||"root",label:N.endsWith("/")?N.slice(0,N.length-1):N||"Root",tags:a.namespaced?[rY]:[]}),Object.keys(a._children).forEach(function(L){sY(e,a._children[L],i,N+L+"/")})}function Nnn(e,a,i){a=i==="root"?a:a[i];var N=Object.keys(a),L={state:Object.keys(e.state).map(function(g){return{key:g,editable:!0,value:e.state[g]}})};if(N.length){var u=Bnn(a);L.getters=Object.keys(u).map(function(g){return{key:g.endsWith("/")?iY(g):g,editable:!1,value:sS(function(){return u[g]})}})}return L}function Bnn(e){var a={};return Object.keys(e).forEach(function(i){var N=i.split("/");if(N.length>1){var L=a,u=N.pop();N.forEach(function(g){L[g]||(L[g]={_custom:{value:{},display:g,tooltip:"Module",abstract:!0}}),L=L[g]._custom.value}),L[u]=sS(function(){return e[i]})}else a[i]=sS(function(){return e[i]})}),a}function Onn(e,a){var i=a.split("/").filter(function(N){return N});return i.reduce(function(N,L,u){var g=N[L];if(!g)throw new Error('Missing module "'+L+'" for path "'+a+'".');return u===i.length-1?g:g._children},a==="root"?e:e.root._children)}function sS(e){try{return e()}catch(a){return a}}var nh=function(e,a){this.runtime=a,this._children=Object.create(null),this._rawModule=e;var i=e.state;this.state=(typeof i=="function"?i():i)||{}},lY={namespaced:{configurable:!0}};lY.namespaced.get=function(){return!!this._rawModule.namespaced},nh.prototype.addChild=function(e,a){this._children[e]=a},nh.prototype.removeChild=function(e){delete this._children[e]},nh.prototype.getChild=function(e){return this._children[e]},nh.prototype.hasChild=function(e){return e in this._children},nh.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},nh.prototype.forEachChild=function(e){xm(this._children,e)},nh.prototype.forEachGetter=function(e){this._rawModule.getters&&xm(this._rawModule.getters,e)},nh.prototype.forEachAction=function(e){this._rawModule.actions&&xm(this._rawModule.actions,e)},nh.prototype.forEachMutation=function(e){this._rawModule.mutations&&xm(this._rawModule.mutations,e)},Object.defineProperties(nh.prototype,lY);var wm=function(e){this.register([],e,!1)};wm.prototype.get=function(e){return e.reduce(function(a,i){return a.getChild(i)},this.root)},wm.prototype.getNamespace=function(e){var a=this.root;return e.reduce(function(i,N){return a=a.getChild(N),i+(a.namespaced?N+"/":"")},"")},wm.prototype.update=function(e){cY([],this.root,e)},wm.prototype.register=function(e,a,i){var N=this;i===void 0&&(i=!0),process.env.NODE_ENV!=="production"&&hY(e,a);var L=new nh(a,i);if(e.length===0)this.root=L;else{var u=this.get(e.slice(0,-1));u.addChild(e[e.length-1],L)}a.modules&&xm(a.modules,function(g,n){N.register(e.concat(n),g,i)})},wm.prototype.unregister=function(e){var a=this.get(e.slice(0,-1)),i=e[e.length-1],N=a.getChild(i);if(!N){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+i+"', which is not registered");return}N.runtime&&a.removeChild(i)},wm.prototype.isRegistered=function(e){var a=this.get(e.slice(0,-1)),i=e[e.length-1];return a?a.hasChild(i):!1};function cY(e,a,i){if(process.env.NODE_ENV!=="production"&&hY(e,i),a.update(i),i.modules)for(var N in i.modules){if(!a.getChild(N)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+N+"' on hot reloading, manual reload is needed");return}cY(e.concat(N),a.getChild(N),i.modules[N])}}var dY={assert:function(e){return typeof e=="function"},expected:"function"},znn={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},uY={getters:dY,mutations:dY,actions:znn};function hY(e,a){Object.keys(uY).forEach(function(i){if(a[i]){var N=uY[i];xm(a[i],function(L,u){th(N.assert(L),Lnn(e,i,u,L,N.expected))})}})}function Lnn(e,a,i,N,L){var u=a+" should be "+L+' but "'+a+"."+i+'"';return e.length>0&&(u+=' in module "'+e.join(".")+'"'),u+=" is "+JSON.stringify(N)+".",u}var Ud=function e(a){var i=this;a===void 0&&(a={}),process.env.NODE_ENV!=="production"&&(th(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),th(this instanceof e,"store must be called with the new operator."));var N=a.plugins;N===void 0&&(N=[]);var L=a.strict;L===void 0&&(L=!1);var u=a.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new wm(a),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=u;var g=this,n=this,b=n.dispatch,m=n.commit;this.dispatch=function(v,_){return b.call(g,v,_)},this.commit=function(v,_,c){return m.call(g,v,_,c)},this.strict=L;var r=this._modules.root.state;W4(this,r,[],this._modules.root),rS(this,r),N.forEach(function(v){return v(i)})},lS={state:{configurable:!0}};Ud.prototype.install=function(e,a){e.provide(a||_nn,this),e.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;i&&Mnn(e,this)},lS.state.get=function(){return this._state.data},lS.state.set=function(e){process.env.NODE_ENV!=="production"&&th(!1,"use store.replaceState() to explicit replace store state.")},Ud.prototype.commit=function(e,a,i){var N=this,L=q4(e,a,i),u=L.type,g=L.payload,n=L.options,b={type:u,payload:g},m=this._mutations[u];if(!m){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+u);return}this._withCommit(function(){m.forEach(function(r){r(g)})}),this._subscribers.slice().forEach(function(r){return r(b,N.state)}),process.env.NODE_ENV!=="production"&&n&&n.silent&&console.warn("[vuex] mutation type: "+u+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Ud.prototype.dispatch=function(e,a){var i=this,N=q4(e,a),L=N.type,u=N.payload,g={type:L,payload:u},n=this._actions[L];if(!n){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+L);return}try{this._actionSubscribers.slice().filter(function(m){return m.before}).forEach(function(m){return m.before(g,i.state)})}catch(m){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(m))}var b=n.length>1?Promise.all(n.map(function(m){return m(u)})):n[0](u);return new Promise(function(m,r){b.then(function(v){try{i._actionSubscribers.filter(function(_){return _.after}).forEach(function(_){return _.after(g,i.state)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(_))}m(v)},function(v){try{i._actionSubscribers.filter(function(_){return _.error}).forEach(function(_){return _.error(g,i.state,v)})}catch(_){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(_))}r(v)})})},Ud.prototype.subscribe=function(e,a){return Qq(e,this._subscribers,a)},Ud.prototype.subscribeAction=function(e,a){var i=typeof e=="function"?{before:e}:e;return Qq(i,this._actionSubscribers,a)},Ud.prototype.watch=function(e,a,i){var N=this;return process.env.NODE_ENV!=="production"&&th(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(N.state,N.getters)},a,Object.assign({},i))},Ud.prototype.replaceState=function(e){var a=this;this._withCommit(function(){a._state.data=e})},Ud.prototype.registerModule=function(e,a,i){i===void 0&&(i={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(th(Array.isArray(e),"module path must be a string or an Array."),th(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,a),W4(this,this.state,e,this._modules.get(e),i.preserveState),rS(this,this.state)},Ud.prototype.unregisterModule=function(e){var a=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&th(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var i=iS(a.state,e.slice(0,-1));delete i[e[e.length-1]]}),eY(this)},Ud.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&th(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Ud.prototype.hotUpdate=function(e){this._modules.update(e),eY(this,!0)},Ud.prototype._withCommit=function(e){var a=this._committing;this._committing=!0,e(),this._committing=a},Object.defineProperties(Ud.prototype,lS);var Fnn=Vnn(function(e,a){var i={};return process.env.NODE_ENV!=="production"&&!pY(a)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),Dnn(a).forEach(function(N){var L=N.key,u=N.val;i[L]=function(){for(var g=[],n=arguments.length;n--;)g[n]=arguments[n];var b=this.$store.commit;if(e){var m=Rnn(this.$store,"mapMutations",e);if(!m)return;b=m.context.commit}return typeof u=="function"?u.apply(this,[b].concat(g)):b.apply(this.$store,[u].concat(g))}}),i});function Dnn(e){return pY(e)?Array.isArray(e)?e.map(function(a){return{key:a,val:a}}):Object.keys(e).map(function(a){return{key:a,val:e[a]}}):[]}function pY(e){return Array.isArray(e)||Kq(e)}function Vnn(e){return function(a,i){return typeof a!="string"?(i=a,a=""):a.charAt(a.length-1)!=="/"&&(a+="/"),e(a,i)}}function Rnn(e,a,i){var N=e._modulesNamespaceMap[i];return process.env.NODE_ENV!=="production"&&!N&&console.error("[vuex] module namespace not found in "+a+"(): "+i),N}const $nn="/icn-play.svg",jnn="/icn-tiros-de-esquina.svg",Unn="/icn-tiro-a-porteria.svg",Hnn="/icn-cambio.svg",Gnn="/icn-falta.svg",Wnn="/atajada.svg",qnn="/fuera-de-lugar.svg",cS="/gol.svg",Ynn="/var.png",Znn="/tiempo-agregado.svg",Jnn="/jugada-peligrosa.svg",Xnn="/penal-marcado.svg",Knn="/penal-fallado.svg",Qnn="/inicia-el-partido.svg",ean="/fin-del-partido.svg",tan="/icn-tarjeta-amarilla.svg",nan="/icn-tarjeta-roja.svg",aan=[1,2,3,4,6],ran={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],a=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return nS.GOAL_IDS.includes(a)?(e.push("is-main-event"),e.push("goal")):nS.YELLOW_CARD_IDS.includes(a)?(e.push("is-main-event"),e.push("yellow-card")):nS.RED_CARD_IDS.includes(a)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(a=>dnn(a))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||aan.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...Fnn("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,a]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(a),teamId:this.gameEvent.team_id})}}},ian=e=>(t.pushScopeId("data-v-9943063a"),e=e(),t.popScopeId(),e),oan={class:"time-line-event__details"},san={width:"127",preload:"metadata",style:{"border-radius":"8px"}},lan=["src"],can=ian(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),dan={class:"time-line-event__details__info"},uan={key:0,class:"time-line-event__details__info__header__players"},han={class:"time-line-event__details__info__header__players__div-img"},pan=["src"],fan={class:"time-line-event__details__info__body"},man={class:"time-line-event__details__info__body__comment"},gan={class:"time-line-event__minute__container"},yan={class:"time-line-event__minute__container__text"},van={class:"time-line-event__minute__container__icon-container"},_an={class:"time-line-event__minute__container__icon-container__icon"},ban={key:0,src:jnn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},xan={key:1,src:Unn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},wan={key:2,src:Hnn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},kan={key:3,src:Gnn,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Can={key:4,src:Wnn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Tan={key:5,src:qnn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},San={key:6,src:cS,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Ean={key:7,src:cS,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Aan={key:8,src:cS,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Man={key:9,src:Ynn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Ian={key:10,src:Znn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Pan={key:11,src:Jnn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Nan={key:12,src:Xnn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Ban={key:13,src:Knn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Oan={key:14,src:Qnn,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},zan={key:15,src:ean,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Lan={key:16,src:tan,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},Fan={key:17,src:nan,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},Dan={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function Van(e,a,i,N,L,u){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",u.teamTypeClasses]),style:t.normalizeStyle({width:`${i.width}px`}),key:L.gameEventKey},[t.createElementVNode("div",oan,[i.canPlayVideos&&i.gameEvent.video_link!=="-"&&i.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:a[0]||(a[0]=g=>u.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[t.createElementVNode("video",san,[t.createElementVNode("source",{src:i.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,lan)]),can])):t.createCommentVNode("",!0),t.createElementVNode("div",dan,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",u.teamTypeClasses2])},[i.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",uan,[u.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(u.srcImgPlayers,(g,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":n===1}]),key:n},[t.createElementVNode("div",han,[t.createElementVNode("img",{src:g,alt:""},null,8,pan)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",u.nameClasses]),onClick:a[1]||(a[1]=g=>u.thumbnailClick(i.gameEvent.video_link,i.gameEvent.event_type_name))},[i.canPlayVideos&&i.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:$nn,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(i.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${i.gameEvent.event_type_name}`:i.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(i.gameEvent.category_id?i.gameEvent.event_type_id===5?i.gameEvent.category_name:i.gameEvent.event_type_name==="Gol"?i.gameEvent.event_type_name+" de "+i.gameEvent.team_name:i.gameEvent.event_type_name:i.gameEvent.comments),1)],2)],2),t.createElementVNode("div",fan,[t.createElementVNode("div",man,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",u.minuteClasses])},[t.createElementVNode("div",gan,[t.createElementVNode("div",yan,t.toDisplayString(i.gameEvent.minute)+"'",1),t.createElementVNode("div",van,[t.createElementVNode("div",_an,[i.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",ban)):i.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",xan)):i.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",wan)):i.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",kan)):i.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",Can)):i.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",Tan)):i.gameEvent.category_id==6&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==5&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==1&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==2&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==3&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==7&&i.gameEvent.event_type_id==1||i.gameEvent.category_id==12&&i.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",San)):i.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",Ean)):i.gameEvent.category_id==13||i.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",Aan)):i.gameEvent.category_id==30||i.gameEvent.category_id==31||i.gameEvent.category_id==32||i.gameEvent.category_id==33||i.gameEvent.category_id==34||i.gameEvent.category_id==35||i.gameEvent.category_id==36||i.gameEvent.category_id==37||i.gameEvent.category_id==38||i.gameEvent.category_id==39||i.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",Man)):i.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",Ian)):i.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",Pan)):i.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",Nan)):i.gameEvent.category_id==15||i.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",Ban)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==16||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==18||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==20||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",Oan)):i.gameEvent.category_id==0&&i.gameEvent.game_status_id==13||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==17||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==19||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==21||i.gameEvent.category_id==0&&i.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",zan)):i.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",Lan)):i.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",Fan)):(t.openBlock(),t.createElementBlock("img",Dan))])])])],2)],6)}const Ran=av(ran,[["render",Van],["__scopeId","data-v-9943063a"]]),$an={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},jan={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let Y4=null;const Uan={name:"TimeLine",components:{Tooltip:onn,TimeLineEvent:Ran},mixins:[lnn],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const a=await this.fetchGameEvents(e);a?(this.gameEvents=[...a],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(a){throw new Error(a)}},getGameEventClassAndSetIcon(e,a){return e.icon=a===0?"inicio_del_partido":$an[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:a}}=await Yq.get(`${this.gameEventsUrl}${e}`);return a}catch(a){throw new Error(a)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)Y4=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),Y4.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,a){const i=this.$refs[`gameEventDiv${a}`][0],N=this.$refs[`gameEventLine${a}`]?this.$refs[`gameEventLine${a}`][0]:null,L=e+12;i&&(i.style.height=`${L}px`),N&&(N.style.height=`${L}px`)},sortGameEvents(){this.gameEvents.sort((e,a)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(a.match_lapse)+Number(a.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let a=0;switch(e){case 1:a=0;break;case 2:a=45;break;case 3:a=90;break;case 4:a=105;break;case 5:a=120;break}return a},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const a=this.gameEvents.findIndex(i=>i.play_id===e.play_id);a&&this.gameEvents.splice(a,1)},checkTimeLineStatus(){this.gameEvents.forEach(a=>{const i=jan[a.game_status];i&&this.timeLineStatuses.push({...i,gameEvent:a})}),this.timeLineStatuses.sort((a,i)=>i.weight-a.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const a=this.gameData[e].team_id;return cnn(a)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){Y4&&Y4.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,a]){this.channelName===e&&this.addGameEventFromChannel(a)},update_mxm([e,a]){this.channelName===e&&(this.deleteGameEventFromChannel(a),this.addGameEventFromChannel(a))},delete_mxm([e,a]){this.channelName===e&&this.deleteGameEventFromChannel(a)}}},fY=e=>(t.pushScopeId("data-v-2574e576"),e=e(),t.popScopeId(),e),Han={ref:"timeLine",class:"time-line"},Gan={class:"time-line__header"},Wan={class:"time-line__header__dot"},qan={class:"time-line__header__dot__home-team team-logo"},Yan=["src"],Zan={class:"time-line__header__dot__away-team team-logo"},Jan=["src"],Xan={key:1,class:"start-line"},Kan=fY(()=>t.createElementVNode("div",null,null,-1)),Qan=fY(()=>t.createElementVNode("div",null,null,-1)),ern=[Kan,Qan],trn={key:1,class:"noEventText"},nrn={class:"tooltip-data"},arn=["src"];function rrn(e,a,i,N,L,u){const g=t.resolveComponent("TimeLineEvent"),n=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",Han,[t.createElementVNode("div",Gan,[t.createElementVNode("div",Wan,[t.createElementVNode("div",qan,[t.createElementVNode("img",{src:u.getTeamLogoSrc("homeTeam"),alt:""},null,8,Yan)]),t.createElementVNode("div",Zan,[t.createElementVNode("img",{src:u.getTeamLogoSrc("awayTeam"),alt:""},null,8,Jan)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${L.gameEvents.length}`},[i.gameData.status!==4||i.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:L.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.gameEventsToShow,(b,m)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:b.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${m}`,class:t.normalizeClass(u.getGameEventClassAndSetIcon(b,m))},[t.createElementVNode("div",{class:t.normalizeClass(u.getEventContainerClass(b))},[t.createVNode(g,{"game-event":b,"is-mobile":u.isMobile,"time-line-width":L.timeLineWidth,width:u.gameEventWidth,"can-play-videos":i.canPlayVideos,onEventHeight:r=>u.updateContainerHeight(r,m),onPlayerChanged:a[0]||(a[0]=r=>e.$emit("player-changed",r)),onThumbnailClick:u.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),m>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${m}`,class:"line"},null,512)):t.createCommentVNode("",!0),i.gameData.status===1&&m===u.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",Xan,ern)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",trn,"Aún no comienza el partido"))]))],512),t.createVNode(n,{data:L.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",nrn,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:L.dataVideo.link,format:"video/mp4"},null,8,arn)])])]),_:1},8,["data"])],64)}const irn=av(Uan,[["render",rrn],["__scopeId","data-v-2574e576"]]),orn={class:"game-time-line__options"},srn={class:"game-time-line__timeline"},lrn={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},setup(e){Yq.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const a=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),i=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let N=null;const L=t.ref(["Todo","1er tiempo","2do tiempo"]),u=t.ref("Todo"),g=t.ref({}),n=t.ref(null),b=t.ref(0),m=t.computed(()=>{let s="all";return u.value==="1er tiempo"||u.value==="1er"?s="firstHalf":(u.value==="2do tiempo"||u.value==="2do")&&(s="secondHalf"),s}),r=t.computed(()=>b.value<500);function v(s){u.value=s}function _(s){g.value=s}function c(){if(window.ResizeObserver)N=new ResizeObserver(()=>{b.value=n.value.clientWidth}),N.observe(n.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{c()}),t.onBeforeUnmount(()=>{N&&N.unobserve(n.value)}),(s,o)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:n,class:"game-time-line"},[t.createElementVNode("div",orn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value,l=>(t.openBlock(),t.createElementBlock("div",{key:l,class:"game-time-line__options__option"},[t.createVNode(Ren,t.mergeProps(b.value<390?i.value:a.value,{text:l=="Todo"?l:b.value<390?l.substring(0,3):l,"is-active":u.value===l,onClick:d=>v(l)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",srn,[t.createVNode(irn,{"game-data":e.game,"time-line-period":m.value,"is-mobile":r.value,socket:e.socket,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:_},null,8,["game-data","time-line-period","is-mobile","socket","can-play-videos"])])],512))}},crn=av(lrn,[["__scopeId","data-v-f42d0c90"]]),bgn="",drn={class:"game-data__header"},urn={class:"game-data__header__tournament-season-dropdown"},hrn={class:"game-data__header__teams-carousel"},prn={class:"game-data__body"},frn={class:"game-data__body__menu"},mrn={class:"game-data__body__menu__contmenuswitch"};Il.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const grn=t.defineComponent({name:"TemplateVideos",components:{StatisticsMain:ece,GSCGameTimeLine:crn,GscSwitchComponent:zC,GSCLineupsMain:w3e,GSCDatosGSMain:pTe,GSCVideoGame:jLe,ModalEvents:jL,GSCSummaryMain:fft,GSCTacticaFijaMain:Den,GSCProminentMain:ECt,GSCComparative:sAt}}),yrn=Jr(Object.assign(grn,{props:{tournamentsApiUrl:{type:String,default:""},currentSeasonId:{type:Number,default:0},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},socket:{type:Object,default:()=>({})},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:a}){const i=e,N=g0();Pu.on("socket-connected",()=>{N.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)});const L=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g"),u=t.ref({season:[]}),g=t.ref({}),n=t.ref(!1),b=t.ref({}),m=t.ref(1),r=t.ref(!0),v=t.ref(new Set([1,2])),_=t.ref({}),c=t.ref({minute:"",score:{}}),s=t.ref(0),o=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),l=t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCComparative",name:"Comparativa",id:3},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),d=t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),h=t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);t.ref([{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);const p=t.ref(0);let f=null;const y=t.ref(null),w=t.ref(0),x=t.ref(d.value[0]),M=t.ref([]);let k=t.ref("");const T={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},S=t.computed(()=>{const ce=[];return g.value&&g.value.id&&(ce.push({id:g.value.id,name:g.value.name,type:g.value.type}),g.value.related_seasons&&g.value.related_seasons.forEach(me=>{ce.push({id:me.id,type:me.type})})),ce}),A=t.computed(()=>{if(i.clientPrivilegesBySeasons){const ce=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(ce)return ce.teamId}return 0});function E(){n.value=!1}function P(ce){const me=ce.split(",");return!(me.length<2||me[1].split(" ").length<2)}function C(ce){if(!P(ce))return"";const me=I(ce);return`${z(ce)}. ${me}`}function z(ce){return ce.split(",")[1].split(" ")[1][0]}function I(ce){const me=ce.split(",")[0].split(" ");return me[0].length<=3&&me.length>1?`${me[0]} ${me[1]}`:me[0]}async function O(ce){try{const me=Il.create({headers:{Authorization:`${L.value}`}});_.value={};const fe=await me.get("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+ce.game_id);_.value[ce.home_team.team_id]=[],_.value[ce.home_team.team_id].team={name:ce.home_team.acronym,logo:ce.home_team.logo},_.value[ce.home_team.team_id].goals=[],_.value[ce.home_team.team_id].red=[],_.value[ce.home_team.team_id].yellow=[],_.value[ce.visiting_team.team_id]=[],_.value[ce.visiting_team.team_id].team={name:ce.visiting_team.acronym,logo:ce.visiting_team.logo},_.value[ce.visiting_team.team_id].goals=[],_.value[ce.visiting_team.team_id].red=[],_.value[ce.visiting_team.team_id].yellow=[],fe.data.minute!=null&&(c.value={minute:fe.data.minute,score:fe.data.score});for(let ye=0;ye<fe.data.plays.length;ye++)fe.data.plays[ye].category_name=="Roja"&&fe.data.plays[ye].status==1&&(ce.home_team.team_id==fe.data.plays[ye].team_id?(C(fe.data.plays[ye].player_name)in _.value[ce.home_team.team_id].red||(_.value[ce.home_team.team_id].red[C(fe.data.plays[ye].player_name)]={},_.value[ce.home_team.team_id].red[C(fe.data.plays[ye].player_name)].event=[],_.value[ce.home_team.team_id].red[C(fe.data.plays[ye].player_name)].name=C(fe.data.plays[ye].player_name)),_.value[ce.home_team.team_id].red[C(fe.data.plays[ye].player_name)].event.push(fe.data.plays[ye].minute)):(C(fe.data.plays[ye].player_name)in _.value[ce.visiting_team.team_id].red||(_.value[ce.visiting_team.team_id].red[C(fe.data.plays[ye].player_name)]={},_.value[ce.visiting_team.team_id].red[C(fe.data.plays[ye].player_name)].event=[],_.value[ce.visiting_team.team_id].red[C(fe.data.plays[ye].player_name)].name=C(fe.data.plays[ye].player_name)),_.value[ce.visiting_team.team_id].red[C(fe.data.plays[ye].player_name)].event.push(fe.data.plays[ye].minute))),fe.data.plays[ye].category_name=="Amarilla"&&fe.data.plays[ye].status==1&&(ce.home_team.team_id==fe.data.plays[ye].team_id?(C(fe.data.plays[ye].player_name)in _.value[ce.home_team.team_id].yellow||(_.value[ce.home_team.team_id].yellow[C(fe.data.plays[ye].player_name)]={},_.value[ce.home_team.team_id].yellow[C(fe.data.plays[ye].player_name)].event=[],_.value[ce.home_team.team_id].yellow[C(fe.data.plays[ye].player_name)].name=C(fe.data.plays[ye].player_name)),_.value[ce.home_team.team_id].yellow[C(fe.data.plays[ye].player_name)].event.push(fe.data.plays[ye].minute)):(C(fe.data.plays[ye].player_name)in _.value[ce.visiting_team.team_id].yellow||(_.value[ce.visiting_team.team_id].yellow[C(fe.data.plays[ye].player_name)]={},_.value[ce.visiting_team.team_id].yellow[C(fe.data.plays[ye].player_name)].event=[],_.value[ce.visiting_team.team_id].yellow[C(fe.data.plays[ye].player_name)].name=C(fe.data.plays[ye].player_name)),_.value[ce.visiting_team.team_id].yellow[C(fe.data.plays[ye].player_name)].event.push(fe.data.plays[ye].minute))),fe.data.plays[ye].event_type_name=="Gol"&&fe.data.plays[ye].status==1&&(ce.home_team.team_id==fe.data.plays[ye].team_id?(C(fe.data.plays[ye].player_name)in _.value[ce.home_team.team_id].goals||(_.value[ce.home_team.team_id].goals[C(fe.data.plays[ye].player_name)]={},_.value[ce.home_team.team_id].goals[C(fe.data.plays[ye].player_name)].event=[],_.value[ce.home_team.team_id].goals[C(fe.data.plays[ye].player_name)].name=C(fe.data.plays[ye].player_name)),_.value[ce.home_team.team_id].goals[C(fe.data.plays[ye].player_name)].event.push(fe.data.plays[ye].minute)):(C(fe.data.plays[ye].player_name)in _.value[ce.visiting_team.team_id].goals||(_.value[ce.visiting_team.team_id].goals[C(fe.data.plays[ye].player_name)]={},_.value[ce.visiting_team.team_id].goals[C(fe.data.plays[ye].player_name)].event=[],_.value[ce.visiting_team.team_id].goals[C(fe.data.plays[ye].player_name)].name=C(fe.data.plays[ye].player_name)),_.value[ce.visiting_team.team_id].goals[C(fe.data.plays[ye].player_name)].event.push(fe.data.plays[ye].minute)))}catch(me){return Promise.reject(me)}}function D(ce){n.value=!0,ce.is_live!=1&&(ce.game_status==4||Object.keys(ce.minutes).length>0)?(s.value=1,_.value={plays:ce.minutes,home_team:ce.home_team,visiting_team:ce.visiting_team}):(s.value=0,O(ce))}function V(){f=new ResizeObserver(ce=>{for(const me of ce)w.value=me.contentRect.width}),f.observe(y.value)}const R=t.computed(()=>{let ce={};return b.value&&b.value.game_id&&(ce={gameId:b.value.game_id,id:b.value.game_id,seasonId:b.value.season_id,status:b.value.game_status,game_status:b.value.game_status==0?4:b.value.game_status,dateTimeUTC:b.value.date_time_utc,homeTeam:b.value.home_team,awayTeam:b.value.visiting_team,is_live:b.value.is_live,minutes:b.value.minutes}),ce});t.watch(()=>R,ce=>{Object.keys(ce.value).length>0&&(d.value=[],ce.value.is_live==1||ce.value.game_status==4?(d.value=[...l.value],x.value=l.value[0]):(d.value=[...h.value],x.value=h.value[0]),g.value.is_tactic_available==0&&d.value.pop(),p.value+=1,O({game_id:ce.value.gameId,home_team:ce.value.homeTeam,visiting_team:ce.value.awayTeam}),ce.value.is_live==1&&setInterval(()=>{s.value=0,O({game_id:ce.value.gameId,home_team:ce.value.homeTeam,visiting_team:ce.value.awayTeam})},6e4))},{deep:!0,immediate:!0}),t.watch(()=>N.state.nextGeneral.gameForAnalysis,()=>{N.commit("nextGeneral/updateIsSocketConnected",i.socket.connected)},{deep:!0,immediate:!0});function j(ce){m.value=ce.is_captured,r.value=ce.is_captured!==0,u.value.id!==ce.id&&(u.value=ce,N.commit("gameGlobal/setTournamentType",ce.tournament_type))}function q(ce){ie.value&&!ie.value.canPrivilegesTeamPlayVideos||a("openmedia",ce)}function $(ce){a("onOpenProfile",ce)}function G(ce){a("openProfileTeam",ce)}function Z(ce){a("openProfilePlayer",ce)}function H(ce){te(ce),ce=="Estadísticas"&&(k.value="Comparativa")}function Y(){k.value=""}function X(ce){g.value.id!==ce.id&&(g.value=ce,a("change-season-id",ce.id))}const le=t.computed(()=>d.value.reduce((ce,me)=>(i.disabledSectionsIds.includes(me.id)||ie.value&&!ie.value.canPrivilegesTeamPlayVideos&&me.id===2||i.clientPrivilegesBySeasons&&me.id===7||(r.value||me.id!==5&&me.id!==6)&&ce.push(me.name),ce),[])),ie=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(g.value&&b.value&&b.value.game_id){const ce=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(ce)if(re(ce.playingAs),b.value.game_status===1){const me=ce.playingAs.has(b.value.playingAs);return{seasonAndPrivileges:ce,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&me,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:b.value.home_team.team_id===ce.teamId,homeTeamDetails:{canPlayVideos:me,team:b.value.home_team},awayTeamDetails:{canPlayVideos:me,team:b.value.visiting_team}}}else{const me=b.value.home_team.team_id===ce.teamId,fe=ae.value.filter(xe=>ce.playingAs.has(xe.playingAs));return{seasonAndPrivileges:ce,canPrivilegesTeamPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&fe.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:me,homeTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&me&&fe.length>0,team:b.value.home_team},awayTeamDetails:{canPlayVideos:i.clientPrivilegesBySeasons.canPlayVideos&&!me&&fe.length>0,team:b.value.visiting_team}}}re(new Set)}return T}return null}),ae=t.computed(()=>{if(i.clientPrivilegesBySeasons){if(g.value){const ce=i.clientPrivilegesBySeasons.seasonsAndPrivileges.get(g.value.id);if(ce)return M.value.filter(me=>me.game_status===1&&ce.playingAs.has(me.playingAs))}return[]}return[]});t.watch(le,()=>{ie.value&&!ie.value.canPrivilegesTeamPlayVideos&&x.value.id===2&&te("Resumen")},{deep:!0,immediate:!0});function re(ce){v.value=ce}function te(ce){x.value=d.value.find(me=>me.name===ce)||d.value[0]}t.onMounted(()=>{V(),t.nextTick(()=>{i.isSynchronization&&te("Táctica Fija")})}),t.onBeforeUnmount(()=>{f&&f.disconnect()});function ee(ce){ce.playingAs||(ce.playingAs=A.value?ce.home_team.team_id===A.value?1:2:0),b.value=ce}function se(ce){M.value=ce.map(me=>{const fe={...me};return A.value&&(fe.playingAs=fe.home_team.team_id===A.value?1:2),fe})}function he(ce){}return(ce,me)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:y},[t.createElementVNode("div",drn,[t.withDirectives(t.createElementVNode("div",urn,[t.createVNode(t.unref(PA),{"current-season-id":e.currentSeasonId,onInput:j,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentsApiUrl},null,8,["current-season-id","tournaments-ids-to-include","api-url"]),t.createVNode(t.unref(OA),{"current-season-id":e.currentSeasonId,seasons:u.value.seasons,onInput:X},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",hrn,[t.createVNode(t.unref(ste),{"plays-live":_.value,"info-live":c.value,token:o.value,is_captured:m.value,"await-for-seasons":"",seasons:S.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":A.value,"only-games-team-id":A.value,"tournament-type":t.unref(N).state.gameGlobal.tournamentType,onChangeGameCarousel:ee,onOpenModalEvent:D,onChangeGamesByClientPrivileges:se},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type"])])]),n.value?(t.openBlock(),t.createBlock(jL,{key:0,width:w.value,onCloseModalEventsLive:E,plays:_.value,game:b.value,type:s.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",prn,[t.createElementVNode("div",frn,[t.createElementVNode("div",mrn,[t.createVNode(t.unref(zC),{type:2,buttons:le.value,"font-family":"Poppins-Regular","font-size":"16px",width:w.value<400||w.value<700?"max-content":w.value<840||w.value<1050?"155px":"165px","selected-option":x.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:te},null,8,["buttons","width","selected-option"])])]),R.value&&R.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(x.value.componentName),{key:p.value,game:R.value,subsection:t.unref(k),seasonSelected:g.value,showLineups:r.value,socket:e.socket,is_captured:m.value,"is-tactic-visible":!!g.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":ie.value?ie.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":v.value,"client-privileges-team-id":A.value,"play-videos-privileges":ie.value,token:o.value,onResetSubsection:Y,onOpenmedia:q,onOnOpenProfile:$,onOpenProfileTeam:G,onOpenProfilePlayer:Z,onChangeToTab:H,onOpenMediaPlayer:q,onClickPlayEvent:he},null,40,["game","subsection","seasonSelected","showLineups","socket","is_captured","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token"])):t.createCommentVNode("",!0)])],512))}}),[["__scopeId","data-v-128b1bf1"]]);async function md({url:e,options:a={},retries:i=3}){return await Il.get(e,a).then(N=>N).catch(N=>i>0?md({url:e,options:a,retries:i-1}):N)}async function mY({seasonId:e},a=!0){try{return(await(await fetch(`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`)).json()).data}catch(i){if(a)return mY({seasonId:e},!1);throw new Error(i)}}async function vrn({seasonId:e}){try{return(await md({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}async function _rn({seasonId:e}){try{return(await md({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}function brn(e,a,i,N,L,u,g=!1){const n=i.map(b=>b===1?2:b===2?1:3);return e.filter(b=>{const m=u&&b[L.teamId]?b[L.teamId]!==u:!1,r=a===1?2:1;return(g||N.includes(b[L.gameId]))&&(!a||(m?r:a)===b[L.playingAs])&&(i.includes(b[L.matchResult])&&b[L.teamId]===u||n.includes(b[L.matchResult])&&b[L.teamId]!==u)})}function gY(e,a,i,N,L){return a.length===2&&i.length===3&&N.length===6?e:e.filter(u=>a.includes(u[L.playingAs])&&i.includes(u[L.matchResult])&&N.includes(u[L.section]))}async function yY({seasonId:e}){try{const a=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await md({url:a})).data}catch(a){return Promise.reject(a)}}async function xrn({seasonId:e,gameId:a}){try{const i=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${a}`,{data:N}=await md({url:i});return N}catch(i){return Promise.reject(i)}}async function wrn({gameId:e}){try{const a=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await md({url:a})).data.data}catch(a){return Promise.reject(a)}}async function krn({gameId:e}){try{const a=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await md({url:a})).data.data||[]}catch(a){return Promise.reject(a)}}const Crn=["categoryId","matchLapse","section","matchResult","playingAs","total"];let dS=null;function vY(){return dS||(dS=W1(Crn)),dS}async function Trn(e){try{const a=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await md({url:a})).data}catch(a){return Promise.reject(a)}}async function _Y({seasonId:e,teamId:a}){try{return await md({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${a}`})}catch(i){return Promise.reject(i)}}async function Srn(e){try{const a=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await md({url:a})}catch(a){return Promise.reject(a)}}async function Ern(e){try{return await md({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(a){return Promise.reject(a)}}const Arn={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,a,i,N){return brn(e.seasonPlays,N["filterGeneral/getPlayingAs"],N["filterGeneral/getResults"],N["filterGeneral/getSelectedGamesIds"],vY(),N["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const a=e.currentSeasonGames.reduce((i,N)=>{const L={...N};return L.home_team=e.currentSeasonTeams.find(u=>u.team_id===N.home_team),L.visiting_team=e.currentSeasonTeams.find(u=>u.team_id===N.visiting_team),i[N.matchday_abbreviation]?i[N.matchday_abbreviation][N.game_status===3?"canceled":N.date]?i[N.matchday_abbreviation][N.game_status===3?"canceled":N.date].push(L):i[N.matchday_abbreviation][N.game_status===3?"canceled":N.date]=[L]:i[N.matchday_abbreviation]={[N.game_status===3?"canceled":N.date]:[L]},i},{});for(let[i,N]of Object.entries(a))a[i]=Object.entries(N).map(([L,u])=>({date:L,games:u})),a[i].sort((L,u)=>L.date<u.date?-1:L.date>u.date?1:0);return a},matchdaysDates(e,a){let i=[];if(a.nextGamesSchedule){let N=Object.keys(a.nextGamesSchedule);for(let L of N){let u=Number(L.replace("M","")),g=a.nextGamesSchedule[L].map(n=>({matchday:u,date:new Date(n.date)}));i=i.concat(g)}}return i},closestMatchDay(e,a){let i=new Date,N=0,L=-new Date(0,0,0).valueOf(),u=a.matchdaysDates,g=u.length;for(let n=0;n<u.length;n++)N=Math.abs(u[n].date-i),N<L&&(g=n,L=N);return u[g]?u[g].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,a){e.booleanIsLiveGamesModalOpen=a},setBooleanAreLiveGames(e,a){e.booleanAreLiveGames=a},updateSeasonPlays(e,a){e.seasonPlays=a},updateCurrentSeasonTeams(e,a){e.currentSeasonTeams=a},updateCurrentSeasonGames(e,a){e.currentSeasonGames=a},updateSelectedRound(e,a){e.selectedRound=a}},actions:{async getSeasonPlays({commit:e,rootGetters:a},i=!1){try{const N=await mY({seasonId:a["filterGeneral/getSeasonId"]});if(i)return N;e("updateSeasonPlays",N)}catch(N){return Promise.reject(N)}},async getCurrentSeasonGames({commit:e,rootGetters:a}){try{const i=await yY({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,rootGetters:a}){try{const i=await Trn({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",i.teams)}catch(i){return Promise.reject(i)}},async isDataFilled({state:e,dispatch:a,commit:i}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return i("setIsSectionLoading",!1,{root:!0}),!0;const N=[void 0,void 0];return e.currentSeasonGames.length===0&&(N[0]=a("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(N[1]=a("getCurrentSeasonTeams")),await Promise.all(N),!1}catch(N){throw new Error(N)}}}}};async function Mrn({filter:e}){try{const a=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:i}=await md({url:a});return i}catch(a){return Promise.reject(a)}}const Irn=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let uS=null;function Prn(){return uS||(uS=W1(Irn)),uS}class Z4{constructor(){ll(this,"maximumLiveSection",1);ll(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});ll(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(a){a>this.maximumLiveSection&&(this.maximumLiveSection=a)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(a,i,N){N&&(this.setMaximumLiveSection(a),this.accomplished.totalLive+=i,this.accomplished.totalsLiveTrendLive.sections[a-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,i)),this.accomplished.totalPostGame+=i,this.accomplished.avgPostGameTrendLive.sections[a-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,a,i)}increaseReceivedByOne(a,i,N){N&&(this.setMaximumLiveSection(a),this.received.totalLive+=i,this.received.totalsLiveTrendLive.sections[a-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,i)),this.received.totalPostGame+=i,this.received.avgPostGameTrendLive.sections[a-1]+=i,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,a,i)}increaseTrendLiveAccumulatedByOne(a,i,N){for(let L=i-1;L<a.accumulated.length;L++)a.accumulated[L]+=N}decreaseAccomplishedLiveByOne(a,i){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=i),this.accomplished.totalsLiveTrendLive.sections[a-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[a-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,i))}decreaseReceivedLiveByOne(a,i){this.received.totalLive>0&&(this.received.totalLive-=i),this.received.totalsLiveTrendLive.sections[a-1]>0&&(this.received.totalsLiveTrendLive.sections[a-1]-=i,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,i))}decreaseTotalsLiveTrendLiveAccumulatedByOne(a,i,N){for(let L=a.accumulated.length-1;L>=i-1;L--)a.accumulated[L]-=N}calculateAvg(a){a&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/a,this.received.avgPostGame=this.received.totalPostGame/a,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,a),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,a),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,a),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,a))}getAvgPostGameTrendLiveAvg(a,i){return a.map(N=>N/i)}calculateRanking(a,i,N,L,u,g,n,b){let m=[];L===3&&a&&a.length&&(N.playingAs.length!==2||N.matchResult.length!==3)?m=Array.from(a.reduce((v,_)=>{const c=_[i.playingAs]===1,s=c?"1":"2",o=v.get(_[i.gameId]);if(o)o[s]?o[s].arrayPlays.push(_):o[s]={numberTeamId:_[i.teamId],arrayPlays:[_]};else{const l={numberMatchResult:_[i.matchResult]};c&&(l[1]={numberTeamId:_[i.teamId],arrayPlays:[_]}),v.set(_[i.gameId],l)}return v},new Map).values()).reduce((v,_)=>{const c=N.playingAs.length===2?"both":N.playingAs[0].toString();return(c==="both"&&(_[1].numberTeamId===N.teamId||_[2].numberTeamId===N.teamId)||c!=="both"&&_[c].numberTeamId===N.teamId)&&N.matchResult.includes(_.numberMatchResult)&&v.push(..._[1].arrayPlays,..._[2].arrayPlays),v},[]).filter(v=>N.sections.includes(v[i.section])):(m=a?[...a]:[],n&&a&&(m=a.filter(r=>N.playingAs.includes(r[i.playingAs])&&N.matchResult.includes(r[i.matchResult])&&N.sections.includes(r[i.section])))),this.setTeamRanking(m,L,i,N.teamId,g,"accomplished",b)}setTeamRanking(a,i,N,L,u,g,n){let b=null,m=null;i===3&&(b=new Map,m={},a.forEach(_=>{const c=b.get(_[N.gameId]);c?c[_[N.teamId.toString()]]?c[_[N.teamId.toString()]]+=_[N.total]:c[_[N.teamId.toString()]]=_[N.total]:b.set(_[N.gameId],{[_[N.teamId.toString()]]:_[N.total]})}),Array.from(b.values()).forEach(_=>{const[c,s]=Object.keys(_).map(l=>l),o=_[c]+_[s];this.addPassesAvgByTeam(m,c,o?_[c]/o:0),this.addPassesAvgByTeam(m,s,o?_[s]/o:0)}));const r=u.sort((_,c)=>_.team_id-c.team_id).map(_=>{if(i===3){const c=m[_.team_id.toString()];return{teamId:_.team_id,points:c?c.numberTotalPassesAvg/c.numberGamesCount:0,total:c?c.numberTotalPassesAvg:0}}else{const c=a.reduce((s,o)=>o[N.teamId]===_.team_id&&i===o[N.categoryId]?s+o[N.total]:s,0);return{teamId:_.team_id,points:_[`${n}FilterGames`]?c/_[`${n}FilterGames`]:0,total:c}}}).sort((_,c)=>c.points-_.points);this.accomplished.arrayRankings=r;const v=r.findIndex(_=>_.teamId===L);i===3&&(this.accomplished.avgPreGame=r[v].points),this[g].ranking=v+1,this[g].leader=r[0]}addPassesAvgByTeam(a,i,N){a[i]?(a[i].numberGamesCount+=1,a[i].numberTotalPassesAvg+=N):a[i]={numberGamesCount:1,numberTotalPassesAvg:N}}}class oo{constructor(a,i,N,L,u,g,n,b,m,r){ll(this,"id","");ll(this,"generalId",0);ll(this,"name","");ll(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});ll(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});ll(this,"accomplishedCategoryIds",[]);ll(this,"receivedCategoryIds",[]);ll(this,"generalCategoriesIds",{accomplished:0,received:0});ll(this,"specialMention","");ll(this,"homeTeam",new Z4);ll(this,"visitingTeam",new Z4);ll(this,"isLeagueDataCalculated",!1);ll(this,"leagueAccomplishedMax",0);ll(this,"leagueReceivedMax",0);ll(this,"leagueAccomplishedAvg",0);ll(this,"leagueReceivedAvg",0);ll(this,"leagueAccomplishedAccumulator",0);ll(this,"leagueReceivedAccumulator",0);ll(this,"homeTeamType","homeTeam");ll(this,"visitingTeamType","visitingTeam");ll(this,"betOnly",!1);ll(this,"isPercent",!1);this.id=`${N.accomplished}-${N.received}`,this.accomplishedCategoryIds=a||[],this.receivedCategoryIds=i||[],this.generalCategoriesIds=N||{accomplished:0,received:0},this.name=L,this.names["0-0"]=L||"",this.names["1-1"]=u||"",this.names["0-1"]=g||"",this.names["1-0"]=n||"",this.generalId=b||0,this.betOnly=m||!1,this.isPercent=r||!1}addLeaguePlays(a,i,N){a.length===0||!N||this.isLeagueDataCalculated||(a.forEach(L=>{this.isAccomplishedLeaguePlay(L[i.categoryId])&&(this.leagueAccomplishedAccumulator+=L[i.total]),this.isReceivedLeaguePlay(L[i.categoryId])&&(this.leagueReceivedAccumulator+=L[i.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*N)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*N)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(a,i,N){let L="-";for(const[u,g]of Object.entries(this.generalCategoriesIds))a===g&&(L=`${u==="accomplished"?"0":"1"}${L}`),i===g&&(L=`${L}${u==="accomplished"?"0":"1"}`);L.length===3&&(this.mentions[L]=N)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(a,i,N,L,u){!N||!u||a!==this.homeTeamType&&a!==this.visitingTeamType||(N.forEach(g=>{this.isAccomplishedPlay(g[L.categoryId])?this[a].increaseAccomplishedByOne(g[L.section],g[L.total]):this.isReceivedPlay(g[L.categoryId])&&this[a].increaseReceivedByOne(g[L.section],g[L.total])}),this[a].calculateAvg(u))}addLivePlay(a,i,N,L,u=!1,g=!1){(a===this.homeTeamType||a===this.visitingTeamType)&&N[L.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[a].increaseAccomplishedByOne(N[L.section],N[L.total],!0)}subtractLivePlay(a,i,N,L,u){(a===this.homeTeamType||a===this.visitingTeamType)&&(this.isAccomplishedPlay(N[L.categoryId])&&!u?this[a].decreaseAccomplishedLiveByOne(N[L.section],N[L.total]):this.isReceivedPlay(N[L.categoryId])&&u&&this[a].decreaseReceivedLiveByOne(N[L.section],N[L.total]))}isAccomplishedLeaguePlay(a){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(N=>a===N||`${a}_r`===N)}isReceivedLeaguePlay(a){return!!this.receivedCategoryIds.find(i=>a===i)}isAccomplishedPlay(a){return this.generalCategoriesIds.accomplished===a}isReceivedPlay(a){return this.generalCategoriesIds.received===a}calcRankingLeague(a,i,N,L,u,g=!1){this[this.homeTeamType].calculateRanking(a,i,N,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,u,g,this.homeTeamType),this[this.visitingTeamType].calculateRanking(a,i,L,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,u,g,this.visitingTeamType)}resetData(){this.homeTeam=new Z4,this.visitingTeam=new Z4,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(a){return this.generalCategoriesIds.accomplished===a||this.generalCategoriesIds.received===a}}const Nrn={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new oo([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new oo([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new oo([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new oo([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new oo([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new oo([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new oo([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new oo([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new oo([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new oo([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new oo([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new oo([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new oo([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new oo([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new oo([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new oo([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new oo([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new oo([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new oo([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new oo([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new oo([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new oo([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new oo([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new oo([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new oo([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new oo([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new oo([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new oo([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new oo([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new oo([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new oo([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new oo([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new oo([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new oo([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new oo([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new oo([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new oo([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new oo([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},Brn=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],Orn=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let hS=null;function zrn(){return hS||(hS=W1(Orn)),hS}const Lrn=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let pS=null;function Frn(){return pS||(pS=W1(Lrn)),pS}function J4(e,a,i){return[i.get(e[a.categoryId])||[],e[a.teamId],e[a.matchResult],e[a.playingAs],e[a.matchLapse],e[a.section],e[a.total]]}function bY(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function fS(e,a,i){let N=[...a];return e[i.categoryId]===2&&(N[0]=14),e[i.categoryId]===20&&(N[0]=15),[14,15].includes(N[0])?N:null}var mS={exports:{}},Drn=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Vrn=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],xY=function(a){var i=a,N=a.indexOf("["),L=a.indexOf("]");N!=-1&&L!=-1&&(a=a.substring(0,N)+a.substring(N,L).replace(/:/g,";")+a.substring(L,a.length));for(var u=Drn.exec(a||""),g={},n=14;n--;)g[Vrn[n]]=u[n]||"";return N!=-1&&L!=-1&&(g.source=i,g.host=g.host.substring(1,g.host.length-1).replace(/;/g,":"),g.authority=g.authority.replace("[","").replace("]","").replace(/;/g,":"),g.ipv6uri=!0),g.pathNames=Rrn(g,g.path),g.queryKey=$rn(g,g.query),g};function Rrn(e,a){var i=/\/{2,9}/g,N=a.replace(i,"/").split("/");return(a.substr(0,1)=="/"||a.length===0)&&N.splice(0,1),a.substr(a.length-1,1)=="/"&&N.splice(N.length-1,1),N}function $rn(e,a){var i={};return a.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(N,L,u){L&&(i[L]=u)}),i}var gS={exports:{}},yS={exports:{}},cv=1e3,dv=cv*60,uv=dv*60,hv=uv*24,jrn=hv*365.25,Urn=function(e,a){a=a||{};var i=typeof e;if(i==="string"&&e.length>0)return Hrn(e);if(i==="number"&&isNaN(e)===!1)return a.long?Wrn(e):Grn(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Hrn(e){if(e=String(e),!(e.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var i=parseFloat(a[1]),N=(a[2]||"ms").toLowerCase();switch(N){case"years":case"year":case"yrs":case"yr":case"y":return i*jrn;case"days":case"day":case"d":return i*hv;case"hours":case"hour":case"hrs":case"hr":case"h":return i*uv;case"minutes":case"minute":case"mins":case"min":case"m":return i*dv;case"seconds":case"second":case"secs":case"sec":case"s":return i*cv;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function Grn(e){return e>=hv?Math.round(e/hv)+"d":e>=uv?Math.round(e/uv)+"h":e>=dv?Math.round(e/dv)+"m":e>=cv?Math.round(e/cv)+"s":e+"ms"}function Wrn(e){return X4(e,hv,"day")||X4(e,uv,"hour")||X4(e,dv,"minute")||X4(e,cv,"second")||e+" ms"}function X4(e,a,i){if(!(e<a))return e<a*1.5?Math.floor(e/a)+" "+i:Math.ceil(e/a)+" "+i+"s"}(function(e,a){a=e.exports=N.debug=N.default=N,a.coerce=b,a.disable=g,a.enable=u,a.enabled=n,a.humanize=Urn,a.instances=[],a.names=[],a.skips=[],a.formatters={};function i(m){var r=0,v;for(v in m)r=(r<<5)-r+m.charCodeAt(v),r|=0;return a.colors[Math.abs(r)%a.colors.length]}function N(m){var r;function v(){if(v.enabled){var _=v,c=+new Date,s=c-(r||c);_.diff=s,_.prev=r,_.curr=c,r=c;for(var o=new Array(arguments.length),l=0;l<o.length;l++)o[l]=arguments[l];o[0]=a.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var d=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(p,f){if(p==="%%")return p;d++;var y=a.formatters[f];if(typeof y=="function"){var w=o[d];p=y.call(_,w),o.splice(d,1),d--}return p}),a.formatArgs.call(_,o);var h=v.log||a.log||console.log.bind(console);h.apply(_,o)}}return v.namespace=m,v.enabled=a.enabled(m),v.useColors=a.useColors(),v.color=i(m),v.destroy=L,typeof a.init=="function"&&a.init(v),a.instances.push(v),v}function L(){var m=a.instances.indexOf(this);return m!==-1?(a.instances.splice(m,1),!0):!1}function u(m){a.save(m),a.names=[],a.skips=[];var r,v=(typeof m=="string"?m:"").split(/[\s,]+/),_=v.length;for(r=0;r<_;r++)v[r]&&(m=v[r].replace(/\*/g,".*?"),m[0]==="-"?a.skips.push(new RegExp("^"+m.substr(1)+"$")):a.names.push(new RegExp("^"+m+"$")));for(r=0;r<a.instances.length;r++){var c=a.instances[r];c.enabled=a.enabled(c.namespace)}}function g(){a.enable("")}function n(m){if(m[m.length-1]==="*")return!0;var r,v;for(r=0,v=a.skips.length;r<v;r++)if(a.skips[r].test(m))return!1;for(r=0,v=a.names.length;r<v;r++)if(a.names[r].test(m))return!0;return!1}function b(m){return m instanceof Error?m.stack||m.message:m}})(yS,yS.exports);var qrn=yS.exports;(function(e,a){a=e.exports=qrn,a.log=L,a.formatArgs=N,a.save=u,a.load=g,a.useColors=i,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:n(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function i(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a.formatters.j=function(b){try{return JSON.stringify(b)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}};function N(b){var m=this.useColors;if(b[0]=(m?"%c":"")+this.namespace+(m?" %c":" ")+b[0]+(m?"%c ":" ")+"+"+a.humanize(this.diff),!!m){var r="color: "+this.color;b.splice(1,0,r,"color: inherit");var v=0,_=0;b[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(v++,c==="%c"&&(_=v))}),b.splice(_,0,r)}}function L(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function u(b){try{b==null?a.storage.removeItem("debug"):a.storage.debug=b}catch{}}function g(){var b;try{b=a.storage.debug}catch{}return!b&&typeof process<"u"&&"env"in process&&(b=process.env.DEBUG),b}a.enable(g());function n(){try{return window.localStorage}catch{}}})(gS,gS.exports);var K4=gS.exports,Yrn=xY,wY=K4("socket.io-client:url"),Zrn=Jrn;function Jrn(e,a){var i=e;a=a||typeof location<"u"&&location,e==null&&(e=a.protocol+"//"+a.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=a.protocol+e:e=a.host+e),/^(https?|wss?):\/\//.test(e)||(wY("protocol-less url %s",e),typeof a<"u"?e=a.protocol+"//"+e:e="https://"+e),wY("parse %s",e),i=Yrn(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";var N=i.host.indexOf(":")!==-1,L=N?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+L+":"+i.port,i.href=i.protocol+"://"+L+(a&&a.port===i.port?"":":"+i.port),i}var Q4={},vS={exports:{}},_S={exports:{}},pv=1e3,fv=pv*60,mv=fv*60,gv=mv*24,Xrn=gv*365.25,Krn=function(e,a){a=a||{};var i=typeof e;if(i==="string"&&e.length>0)return Qrn(e);if(i==="number"&&isNaN(e)===!1)return a.long?tin(e):ein(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Qrn(e){if(e=String(e),!(e.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var i=parseFloat(a[1]),N=(a[2]||"ms").toLowerCase();switch(N){case"years":case"year":case"yrs":case"yr":case"y":return i*Xrn;case"days":case"day":case"d":return i*gv;case"hours":case"hour":case"hrs":case"hr":case"h":return i*mv;case"minutes":case"minute":case"mins":case"min":case"m":return i*fv;case"seconds":case"second":case"secs":case"sec":case"s":return i*pv;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function ein(e){return e>=gv?Math.round(e/gv)+"d":e>=mv?Math.round(e/mv)+"h":e>=fv?Math.round(e/fv)+"m":e>=pv?Math.round(e/pv)+"s":e+"ms"}function tin(e){return e5(e,gv,"day")||e5(e,mv,"hour")||e5(e,fv,"minute")||e5(e,pv,"second")||e+" ms"}function e5(e,a,i){if(!(e<a))return e<a*1.5?Math.floor(e/a)+" "+i:Math.ceil(e/a)+" "+i+"s"}(function(e,a){a=e.exports=N.debug=N.default=N,a.coerce=b,a.disable=g,a.enable=u,a.enabled=n,a.humanize=Krn,a.instances=[],a.names=[],a.skips=[],a.formatters={};function i(m){var r=0,v;for(v in m)r=(r<<5)-r+m.charCodeAt(v),r|=0;return a.colors[Math.abs(r)%a.colors.length]}function N(m){var r;function v(){if(v.enabled){var _=v,c=+new Date,s=c-(r||c);_.diff=s,_.prev=r,_.curr=c,r=c;for(var o=new Array(arguments.length),l=0;l<o.length;l++)o[l]=arguments[l];o[0]=a.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var d=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(p,f){if(p==="%%")return p;d++;var y=a.formatters[f];if(typeof y=="function"){var w=o[d];p=y.call(_,w),o.splice(d,1),d--}return p}),a.formatArgs.call(_,o);var h=v.log||a.log||console.log.bind(console);h.apply(_,o)}}return v.namespace=m,v.enabled=a.enabled(m),v.useColors=a.useColors(),v.color=i(m),v.destroy=L,typeof a.init=="function"&&a.init(v),a.instances.push(v),v}function L(){var m=a.instances.indexOf(this);return m!==-1?(a.instances.splice(m,1),!0):!1}function u(m){a.save(m),a.names=[],a.skips=[];var r,v=(typeof m=="string"?m:"").split(/[\s,]+/),_=v.length;for(r=0;r<_;r++)v[r]&&(m=v[r].replace(/\*/g,".*?"),m[0]==="-"?a.skips.push(new RegExp("^"+m.substr(1)+"$")):a.names.push(new RegExp("^"+m+"$")));for(r=0;r<a.instances.length;r++){var c=a.instances[r];c.enabled=a.enabled(c.namespace)}}function g(){a.enable("")}function n(m){if(m[m.length-1]==="*")return!0;var r,v;for(r=0,v=a.skips.length;r<v;r++)if(a.skips[r].test(m))return!1;for(r=0,v=a.names.length;r<v;r++)if(a.names[r].test(m))return!0;return!1}function b(m){return m instanceof Error?m.stack||m.message:m}})(_S,_S.exports);var nin=_S.exports;(function(e,a){a=e.exports=nin,a.log=L,a.formatArgs=N,a.save=u,a.load=g,a.useColors=i,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:n(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function i(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a.formatters.j=function(b){try{return JSON.stringify(b)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}};function N(b){var m=this.useColors;if(b[0]=(m?"%c":"")+this.namespace+(m?" %c":" ")+b[0]+(m?"%c ":" ")+"+"+a.humanize(this.diff),!!m){var r="color: "+this.color;b.splice(1,0,r,"color: inherit");var v=0,_=0;b[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(v++,c==="%c"&&(_=v))}),b.splice(_,0,r)}}function L(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function u(b){try{b==null?a.storage.removeItem("debug"):a.storage.debug=b}catch{}}function g(){var b;try{b=a.storage.debug}catch{}return!b&&typeof process<"u"&&"env"in process&&(b=process.env.DEBUG),b}a.enable(g());function n(){try{return window.localStorage}catch{}}})(vS,vS.exports);var ain=vS.exports,kY={exports:{}};(function(e){e.exports=a;function a(N){if(N)return i(N)}function i(N){for(var L in a.prototype)N[L]=a.prototype[L];return N}a.prototype.on=a.prototype.addEventListener=function(N,L){return this._callbacks=this._callbacks||{},(this._callbacks["$"+N]=this._callbacks["$"+N]||[]).push(L),this},a.prototype.once=function(N,L){function u(){this.off(N,u),L.apply(this,arguments)}return u.fn=L,this.on(N,u),this},a.prototype.off=a.prototype.removeListener=a.prototype.removeAllListeners=a.prototype.removeEventListener=function(N,L){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var u=this._callbacks["$"+N];if(!u)return this;if(arguments.length==1)return delete this._callbacks["$"+N],this;for(var g,n=0;n<u.length;n++)if(g=u[n],g===L||g.fn===L){u.splice(n,1);break}return u.length===0&&delete this._callbacks["$"+N],this},a.prototype.emit=function(N){this._callbacks=this._callbacks||{};for(var L=new Array(arguments.length-1),u=this._callbacks["$"+N],g=1;g<arguments.length;g++)L[g-1]=arguments[g];if(u){u=u.slice(0);for(var g=0,n=u.length;g<n;++g)u[g].apply(this,L)}return this},a.prototype.listeners=function(N){return this._callbacks=this._callbacks||{},this._callbacks["$"+N]||[]},a.prototype.hasListeners=function(N){return!!this.listeners(N).length}})(kY);var O1=kY.exports,t5={},rin={}.toString,bS=Array.isArray||function(e){return rin.call(e)=="[object Array]"},CY=lin,iin=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",oin=typeof ArrayBuffer=="function",sin=function(e){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer};function lin(e){return iin&&Buffer.isBuffer(e)||oin&&(e instanceof ArrayBuffer||sin(e))}var xS=bS,TY=CY,SY=Object.prototype.toString,cin=typeof Blob=="function"||typeof Blob<"u"&&SY.call(Blob)==="[object BlobConstructor]",din=typeof File=="function"||typeof File<"u"&&SY.call(File)==="[object FileConstructor]";t5.deconstructPacket=function(e){var a=[],i=e.data,N=e;return N.data=wS(i,a),N.attachments=a.length,{packet:N,buffers:a}};function wS(e,a){if(!e)return e;if(TY(e)){var i={_placeholder:!0,num:a.length};return a.push(e),i}else if(xS(e)){for(var N=new Array(e.length),L=0;L<e.length;L++)N[L]=wS(e[L],a);return N}else if(typeof e=="object"&&!(e instanceof Date)){var N={};for(var u in e)N[u]=wS(e[u],a);return N}return e}t5.reconstructPacket=function(e,a){return e.data=kS(e.data,a),e.attachments=void 0,e};function kS(e,a){if(!e)return e;if(e&&e._placeholder===!0){var i=typeof e.num=="number"&&e.num>=0&&e.num<a.length;if(i)return a[e.num];throw new Error("illegal attachments")}else if(xS(e))for(var N=0;N<e.length;N++)e[N]=kS(e[N],a);else if(typeof e=="object")for(var L in e)e[L]=kS(e[L],a);return e}t5.removeBlobs=function(e,a){function i(u,g,n){if(!u)return u;if(cin&&u instanceof Blob||din&&u instanceof File){N++;var b=new FileReader;b.onload=function(){n?n[g]=this.result:L=this.result,--N||a(L)},b.readAsArrayBuffer(u)}else if(xS(u))for(var m=0;m<u.length;m++)i(u[m],m,u);else if(typeof u=="object"&&!TY(u))for(var r in u)i(u[r],r,u)}var N=0,L=e;i(L),N||a(L)},function(e){var a=ain("socket.io-parser"),i=O1,N=t5,L=bS,u=CY;e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=g,e.Decoder=v;function g(){}var n=e.ERROR+'"encode error"';g.prototype.encode=function(d,h){if(a("encoding packet %j",d),e.BINARY_EVENT===d.type||e.BINARY_ACK===d.type)r(d,h);else{var p=b(d);h([p])}};function b(d){var h=""+d.type;if((e.BINARY_EVENT===d.type||e.BINARY_ACK===d.type)&&(h+=d.attachments+"-"),d.nsp&&d.nsp!=="/"&&(h+=d.nsp+","),d.id!=null&&(h+=d.id),d.data!=null){var p=m(d.data);if(p!==!1)h+=p;else return n}return a("encoded %j as %s",d,h),h}function m(d){try{return JSON.stringify(d)}catch{return!1}}function r(d,h){function p(f){var y=N.deconstructPacket(f),w=b(y.packet),x=y.buffers;x.unshift(w),h(x)}N.removeBlobs(d,p)}function v(){this.reconstructor=null}i(v.prototype),v.prototype.add=function(d){var h;if(typeof d=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");h=c(d),e.BINARY_EVENT===h.type||e.BINARY_ACK===h.type?(this.reconstructor=new o(h),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",h)):this.emit("decoded",h)}else if(u(d)||d.base64)if(this.reconstructor)h=this.reconstructor.takeBinaryData(d),h&&(this.reconstructor=null,this.emit("decoded",h));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+d)};function _(d,h){switch(d){case 0:return typeof h=="object";case 1:return h===void 0;case 4:return typeof h=="string"||typeof h=="object";case 2:case 5:return L(h)&&(typeof h[0]=="string"||typeof h[0]=="number");case 3:case 6:return L(h)}}function c(d){var h=0,p={type:Number(d.charAt(0))};if(e.types[p.type]==null)return l("unknown packet type "+p.type);if(e.BINARY_EVENT===p.type||e.BINARY_ACK===p.type){for(var f=h+1;d.charAt(++h)!=="-"&&h!=d.length;);var y=d.substring(f,h);if(y!=Number(y)||d.charAt(h)!=="-")throw new Error("Illegal attachments");p.attachments=Number(y)}if(d.charAt(h+1)==="/"){for(var f=h+1;++h;){var w=d.charAt(h);if(w===","||h===d.length)break}p.nsp=d.substring(f,h)}else p.nsp="/";var x=d.charAt(h+1);if(x!==""&&Number(x)==x){for(var f=h+1;++h;){var w=d.charAt(h);if(w==null||Number(w)!=w){--h;break}if(h===d.length)break}p.id=Number(d.substring(f,h+1))}if(d.charAt(++h)){var M=s(d.substr(h));if(_(p.type,M))p.data=M;else throw new Error("invalid payload")}return a("decoded %s as %j",d,p),p}function s(d){try{return JSON.parse(d)}catch{return!1}}v.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function o(d){this.reconPack=d,this.buffers=[]}o.prototype.takeBinaryData=function(d){if(this.buffers.push(d),this.buffers.length===this.reconPack.attachments){var h=N.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),h}return null},o.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function l(d){return{type:e.ERROR,data:"parser error: "+d}}}(Q4);var CS={exports:{}},n5={},TS={exports:{}};try{TS.exports=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{TS.exports=!1}var uin=TS.exports,SS=function(){return typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),hin=uin,pin=SS,ES=function(e){var a=e.xdomain,i=e.xscheme,N=e.enablesXDR;try{if(typeof XMLHttpRequest<"u"&&(!a||hin))return new XMLHttpRequest}catch{}try{if(typeof XDomainRequest<"u"&&!i&&N)return new XDomainRequest}catch{}if(!a)try{return new pin[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}},AS={exports:{}},km={},fin=Object.keys||function(a){var i=[],N=Object.prototype.hasOwnProperty;for(var L in a)N.call(a,L)&&i.push(L);return i},min=bS,EY=Object.prototype.toString,gin=typeof Blob=="function"||typeof Blob<"u"&&EY.call(Blob)==="[object BlobConstructor]",yin=typeof File=="function"||typeof File<"u"&&EY.call(File)==="[object FileConstructor]",AY=a5;function a5(e){if(!e||typeof e!="object")return!1;if(min(e)){for(var a=0,i=e.length;a<i;a++)if(a5(e[a]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(e)||typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||gin&&e instanceof Blob||yin&&e instanceof File)return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return a5(e.toJSON(),!0);for(var N in e)if(Object.prototype.hasOwnProperty.call(e,N)&&a5(e[N]))return!0;return!1}var vin=function(e,a,i){var N=e.byteLength;if(a=a||0,i=i||N,e.slice)return e.slice(a,i);if(a<0&&(a+=N),i<0&&(i+=N),i>N&&(i=N),a>=N||a>=i||N===0)return new ArrayBuffer(0);for(var L=new Uint8Array(e),u=new Uint8Array(i-a),g=a,n=0;g<i;g++,n++)u[n]=L[g];return u.buffer},_in=bin;function bin(e,a,i){var N=!1;return i=i||xin,L.count=e,e===0?a():L;function L(u,g){if(L.count<=0)throw new Error("after called too many times");--L.count,u?(N=!0,a(u),a=i):L.count===0&&!N&&a(null,g)}}function xin(){}/*! https://mths.be/utf8js v2.1.2 by @mathias */var qf=String.fromCharCode;function MY(e){for(var a=[],i=0,N=e.length,L,u;i<N;)L=e.charCodeAt(i++),L>=55296&&L<=56319&&i<N?(u=e.charCodeAt(i++),(u&64512)==56320?a.push(((L&1023)<<10)+(u&1023)+65536):(a.push(L),i--)):a.push(L);return a}function win(e){for(var a=e.length,i=-1,N,L="";++i<a;)N=e[i],N>65535&&(N-=65536,L+=qf(N>>>10&1023|55296),N=56320|N&1023),L+=qf(N);return L}function IY(e,a){if(e>=55296&&e<=57343){if(a)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function MS(e,a){return qf(e>>a&63|128)}function kin(e,a){if(!(e&4294967168))return qf(e);var i="";return e&4294965248?e&4294901760?e&4292870144||(i=qf(e>>18&7|240),i+=MS(e,12),i+=MS(e,6)):(IY(e,a)||(e=65533),i=qf(e>>12&15|224),i+=MS(e,6)):i=qf(e>>6&31|192),i+=qf(e&63|128),i}function Cin(e,a){a=a||{};for(var i=a.strict!==!1,N=MY(e),L=N.length,u=-1,g,n="";++u<L;)g=N[u],n+=kin(g,i);return n}function z1(){if(Yf>=i5)throw Error("Invalid byte index");var e=r5[Yf]&255;if(Yf++,(e&192)==128)return e&63;throw Error("Invalid continuation byte")}function Tin(e){var a,i,N,L,u;if(Yf>i5)throw Error("Invalid byte index");if(Yf==i5)return!1;if(a=r5[Yf]&255,Yf++,!(a&128))return a;if((a&224)==192){if(i=z1(),u=(a&31)<<6|i,u>=128)return u;throw Error("Invalid continuation byte")}if((a&240)==224){if(i=z1(),N=z1(),u=(a&15)<<12|i<<6|N,u>=2048)return IY(u,e)?u:65533;throw Error("Invalid continuation byte")}if((a&248)==240&&(i=z1(),N=z1(),L=z1(),u=(a&7)<<18|i<<12|N<<6|L,u>=65536&&u<=1114111))return u;throw Error("Invalid UTF-8 detected")}var r5,i5,Yf;function Sin(e,a){a=a||{};var i=a.strict!==!1;r5=MY(e),i5=r5.length,Yf=0;for(var N=[],L;(L=Tin(i))!==!1;)N.push(L);return win(N)}var Ein={version:"2.1.2",encode:Cin,decode:Sin},o5={},PY;function Ain(){return PY||(PY=1,function(e){o5.encode=function(a){var i=new Uint8Array(a),N,L=i.length,u="";for(N=0;N<L;N+=3)u+=e[i[N]>>2],u+=e[(i[N]&3)<<4|i[N+1]>>4],u+=e[(i[N+1]&15)<<2|i[N+2]>>6],u+=e[i[N+2]&63];return L%3===2?u=u.substring(0,u.length-1)+"=":L%3===1&&(u=u.substring(0,u.length-2)+"=="),u},o5.decode=function(a){var i=a.length*.75,N=a.length,L,u=0,g,n,b,m;a[a.length-1]==="="&&(i--,a[a.length-2]==="="&&i--);var r=new ArrayBuffer(i),v=new Uint8Array(r);for(L=0;L<N;L+=4)g=e.indexOf(a[L]),n=e.indexOf(a[L+1]),b=e.indexOf(a[L+2]),m=e.indexOf(a[L+3]),v[u++]=g<<2|n>>4,v[u++]=(n&15)<<4|b>>2,v[u++]=(b&3)<<6|m&63;return r}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),o5}var IS,NY;function Min(){if(NY)return IS;NY=1;var e=typeof e<"u"?e:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:!1,a=function(){try{var n=new Blob(["hi"]);return n.size===2}catch{return!1}}(),i=a&&function(){try{var n=new Blob([new Uint8Array([1,2])]);return n.size===2}catch{return!1}}(),N=e&&e.prototype.append&&e.prototype.getBlob;function L(n){return n.map(function(b){if(b.buffer instanceof ArrayBuffer){var m=b.buffer;if(b.byteLength!==m.byteLength){var r=new Uint8Array(b.byteLength);r.set(new Uint8Array(m,b.byteOffset,b.byteLength)),m=r.buffer}return m}return b})}function u(n,b){b=b||{};var m=new e;return L(n).forEach(function(r){m.append(r)}),b.type?m.getBlob(b.type):m.getBlob()}function g(n,b){return new Blob(L(n),b||{})}return typeof Blob<"u"&&(u.prototype=Blob.prototype,g.prototype=Blob.prototype),IS=function(){return a?i?Blob:g:N?u:void 0}(),IS}(function(e){var a=fin,i=AY,N=vin,L=_in,u=Ein,g;typeof ArrayBuffer<"u"&&(g=Ain());var n=typeof navigator<"u"&&/Android/i.test(navigator.userAgent),b=typeof navigator<"u"&&/PhantomJS/i.test(navigator.userAgent),m=n||b;e.protocol=3;var r=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},v=a(r),_={type:"error",data:"parser error"},c=Min();e.encodePacket=function(f,y,w,x){typeof y=="function"&&(x=y,y=!1),typeof w=="function"&&(x=w,w=null);var M=f.data===void 0?void 0:f.data.buffer||f.data;if(typeof ArrayBuffer<"u"&&M instanceof ArrayBuffer)return o(f,y,x);if(typeof c<"u"&&M instanceof c)return d(f,y,x);if(M&&M.base64)return s(f,x);var k=r[f.type];return f.data!==void 0&&(k+=w?u.encode(String(f.data),{strict:!1}):String(f.data)),x(""+k)};function s(f,y){var w="b"+e.packets[f.type]+f.data.data;return y(w)}function o(f,y,w){if(!y)return e.encodeBase64Packet(f,w);var x=f.data,M=new Uint8Array(x),k=new Uint8Array(1+x.byteLength);k[0]=r[f.type];for(var T=0;T<M.length;T++)k[T+1]=M[T];return w(k.buffer)}function l(f,y,w){if(!y)return e.encodeBase64Packet(f,w);var x=new FileReader;return x.onload=function(){e.encodePacket({type:f.type,data:x.result},y,!0,w)},x.readAsArrayBuffer(f.data)}function d(f,y,w){if(!y)return e.encodeBase64Packet(f,w);if(m)return l(f,y,w);var x=new Uint8Array(1);x[0]=r[f.type];var M=new c([x.buffer,f.data]);return w(M)}e.encodeBase64Packet=function(f,y){var w="b"+e.packets[f.type];if(typeof c<"u"&&f.data instanceof c){var x=new FileReader;return x.onload=function(){var A=x.result.split(",")[1];y(w+A)},x.readAsDataURL(f.data)}var M;try{M=String.fromCharCode.apply(null,new Uint8Array(f.data))}catch{for(var k=new Uint8Array(f.data),T=new Array(k.length),S=0;S<k.length;S++)T[S]=k[S];M=String.fromCharCode.apply(null,T)}return w+=btoa(M),y(w)},e.decodePacket=function(f,y,w){if(f===void 0)return _;if(typeof f=="string"){if(f.charAt(0)==="b")return e.decodeBase64Packet(f.substr(1),y);if(w&&(f=h(f),f===!1))return _;var M=f.charAt(0);return Number(M)!=M||!v[M]?_:f.length>1?{type:v[M],data:f.substring(1)}:{type:v[M]}}var x=new Uint8Array(f),M=x[0],k=N(f,1);return c&&y==="blob"&&(k=new c([k])),{type:v[M],data:k}};function h(f){try{f=u.decode(f,{strict:!1})}catch{return!1}return f}e.decodeBase64Packet=function(f,y){var w=v[f.charAt(0)];if(!g)return{type:w,data:{base64:!0,data:f.substr(1)}};var x=g.decode(f.substr(1));return y==="blob"&&c&&(x=new c([x])),{type:w,data:x}},e.encodePayload=function(f,y,w){typeof y=="function"&&(w=y,y=null);var x=i(f);if(y&&x)return c&&!m?e.encodePayloadAsBlob(f,w):e.encodePayloadAsArrayBuffer(f,w);if(!f.length)return w("0:");function M(T){return T.length+":"+T}function k(T,S){e.encodePacket(T,x?y:!1,!1,function(A){S(null,M(A))})}p(f,k,function(T,S){return w(S.join(""))})};function p(f,y,w){for(var x=new Array(f.length),M=L(f.length,w),k=function(S,A,E){y(A,function(P,C){x[S]=C,E(P,x)})},T=0;T<f.length;T++)k(T,f[T],M)}e.decodePayload=function(f,y,w){if(typeof f!="string")return e.decodePayloadAsBinary(f,y,w);typeof y=="function"&&(w=y,y=null);var x;if(f==="")return w(_,0,1);for(var M="",k,T,S=0,A=f.length;S<A;S++){var E=f.charAt(S);if(E!==":"){M+=E;continue}if(M===""||M!=(k=Number(M))||(T=f.substr(S+1,k),M!=T.length))return w(_,0,1);if(T.length){if(x=e.decodePacket(T,y,!1),_.type===x.type&&_.data===x.data)return w(_,0,1);var P=w(x,S+k,A);if(P===!1)return}S+=k,M=""}if(M!=="")return w(_,0,1)},e.encodePayloadAsArrayBuffer=function(f,y){if(!f.length)return y(new ArrayBuffer(0));function w(x,M){e.encodePacket(x,!0,!0,function(k){return M(null,k)})}p(f,w,function(x,M){var k=M.reduce(function(A,E){var P;return typeof E=="string"?P=E.length:P=E.byteLength,A+P.toString().length+P+2},0),T=new Uint8Array(k),S=0;return M.forEach(function(A){var E=typeof A=="string",P=A;if(E){for(var I=new Uint8Array(A.length),C=0;C<A.length;C++)I[C]=A.charCodeAt(C);P=I.buffer}E?T[S++]=0:T[S++]=1;for(var z=P.byteLength.toString(),C=0;C<z.length;C++)T[S++]=parseInt(z[C]);T[S++]=255;for(var I=new Uint8Array(P),C=0;C<I.length;C++)T[S++]=I[C]}),y(T.buffer)})},e.encodePayloadAsBlob=function(f,y){function w(x,M){e.encodePacket(x,!0,!0,function(k){var T=new Uint8Array(1);if(T[0]=1,typeof k=="string"){for(var S=new Uint8Array(k.length),A=0;A<k.length;A++)S[A]=k.charCodeAt(A);k=S.buffer,T[0]=0}for(var E=k instanceof ArrayBuffer?k.byteLength:k.size,P=E.toString(),C=new Uint8Array(P.length+1),A=0;A<P.length;A++)C[A]=parseInt(P[A]);if(C[P.length]=255,c){var z=new c([T.buffer,C.buffer,k]);M(null,z)}})}p(f,w,function(x,M){return y(new c(M))})},e.decodePayloadAsBinary=function(f,y,w){typeof y=="function"&&(w=y,y=null);for(var x=f,M=[];x.byteLength>0;){for(var k=new Uint8Array(x),T=k[0]===0,S="",A=1;k[A]!==255;A++){if(S.length>310)return w(_,0,1);S+=k[A]}x=N(x,2+S.length),S=parseInt(S);var E=N(x,0,S);if(T)try{E=String.fromCharCode.apply(null,new Uint8Array(E))}catch{var P=new Uint8Array(E);E="";for(var A=0;A<P.length;A++)E+=String.fromCharCode(P[A])}M.push(E),x=N(x,S)}var C=M.length;M.forEach(function(z,I){w(e.decodePacket(z,y,!0),I,C)})}})(km);var PS,BY;function NS(){if(BY)return PS;BY=1;var e=km,a=O1;PS=i;function i(N){this.path=N.path,this.hostname=N.hostname,this.port=N.port,this.secure=N.secure,this.query=N.query,this.timestampParam=N.timestampParam,this.timestampRequests=N.timestampRequests,this.readyState="",this.agent=N.agent||!1,this.socket=N.socket,this.enablesXDR=N.enablesXDR,this.withCredentials=N.withCredentials,this.pfx=N.pfx,this.key=N.key,this.passphrase=N.passphrase,this.cert=N.cert,this.ca=N.ca,this.ciphers=N.ciphers,this.rejectUnauthorized=N.rejectUnauthorized,this.forceNode=N.forceNode,this.isReactNative=N.isReactNative,this.extraHeaders=N.extraHeaders,this.localAddress=N.localAddress}return a(i.prototype),i.prototype.onError=function(N,L){var u=new Error(N);return u.type="TransportError",u.description=L,this.emit("error",u),this},i.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this},i.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this},i.prototype.send=function(N){if(this.readyState==="open")this.write(N);else throw new Error("Transport not open")},i.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},i.prototype.onData=function(N){var L=e.decodePacket(N,this.socket.binaryType);this.onPacket(L)},i.prototype.onPacket=function(N){this.emit("packet",N)},i.prototype.onClose=function(){this.readyState="closed",this.emit("close")},PS}var L1={};L1.encode=function(e){var a="";for(var i in e)e.hasOwnProperty(i)&&(a.length&&(a+="&"),a+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return a},L1.decode=function(e){for(var a={},i=e.split("&"),N=0,L=i.length;N<L;N++){var u=i[N].split("=");a[decodeURIComponent(u[0])]=decodeURIComponent(u[1])}return a};var s5=function(e,a){var i=function(){};i.prototype=a.prototype,e.prototype=new i,e.prototype.constructor=e},OY="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),l5=64,zY={},LY=0,Zf=0,FY;function BS(e){var a="";do a=OY[e%l5]+a,e=Math.floor(e/l5);while(e>0);return a}function Iin(e){var a=0;for(Zf=0;Zf<e.length;Zf++)a=a*l5+zY[e.charAt(Zf)];return a}function OS(){var e=BS(+new Date);return e!==FY?(LY=0,FY=e):e+"."+BS(LY++)}for(;Zf<l5;Zf++)zY[OY[Zf]]=Zf;OS.encode=BS,OS.decode=Iin;var DY=OS,zS={exports:{}},LS={exports:{}},yv=1e3,vv=yv*60,_v=vv*60,bv=_v*24,Pin=bv*365.25,Nin=function(e,a){a=a||{};var i=typeof e;if(i==="string"&&e.length>0)return Bin(e);if(i==="number"&&isNaN(e)===!1)return a.long?zin(e):Oin(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Bin(e){if(e=String(e),!(e.length>100)){var a=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(a){var i=parseFloat(a[1]),N=(a[2]||"ms").toLowerCase();switch(N){case"years":case"year":case"yrs":case"yr":case"y":return i*Pin;case"days":case"day":case"d":return i*bv;case"hours":case"hour":case"hrs":case"hr":case"h":return i*_v;case"minutes":case"minute":case"mins":case"min":case"m":return i*vv;case"seconds":case"second":case"secs":case"sec":case"s":return i*yv;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function Oin(e){return e>=bv?Math.round(e/bv)+"d":e>=_v?Math.round(e/_v)+"h":e>=vv?Math.round(e/vv)+"m":e>=yv?Math.round(e/yv)+"s":e+"ms"}function zin(e){return c5(e,bv,"day")||c5(e,_v,"hour")||c5(e,vv,"minute")||c5(e,yv,"second")||e+" ms"}function c5(e,a,i){if(!(e<a))return e<a*1.5?Math.floor(e/a)+" "+i:Math.ceil(e/a)+" "+i+"s"}(function(e,a){a=e.exports=N.debug=N.default=N,a.coerce=b,a.disable=g,a.enable=u,a.enabled=n,a.humanize=Nin,a.instances=[],a.names=[],a.skips=[],a.formatters={};function i(m){var r=0,v;for(v in m)r=(r<<5)-r+m.charCodeAt(v),r|=0;return a.colors[Math.abs(r)%a.colors.length]}function N(m){var r;function v(){if(v.enabled){var _=v,c=+new Date,s=c-(r||c);_.diff=s,_.prev=r,_.curr=c,r=c;for(var o=new Array(arguments.length),l=0;l<o.length;l++)o[l]=arguments[l];o[0]=a.coerce(o[0]),typeof o[0]!="string"&&o.unshift("%O");var d=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,function(p,f){if(p==="%%")return p;d++;var y=a.formatters[f];if(typeof y=="function"){var w=o[d];p=y.call(_,w),o.splice(d,1),d--}return p}),a.formatArgs.call(_,o);var h=v.log||a.log||console.log.bind(console);h.apply(_,o)}}return v.namespace=m,v.enabled=a.enabled(m),v.useColors=a.useColors(),v.color=i(m),v.destroy=L,typeof a.init=="function"&&a.init(v),a.instances.push(v),v}function L(){var m=a.instances.indexOf(this);return m!==-1?(a.instances.splice(m,1),!0):!1}function u(m){a.save(m),a.names=[],a.skips=[];var r,v=(typeof m=="string"?m:"").split(/[\s,]+/),_=v.length;for(r=0;r<_;r++)v[r]&&(m=v[r].replace(/\*/g,".*?"),m[0]==="-"?a.skips.push(new RegExp("^"+m.substr(1)+"$")):a.names.push(new RegExp("^"+m+"$")));for(r=0;r<a.instances.length;r++){var c=a.instances[r];c.enabled=a.enabled(c.namespace)}}function g(){a.enable("")}function n(m){if(m[m.length-1]==="*")return!0;var r,v;for(r=0,v=a.skips.length;r<v;r++)if(a.skips[r].test(m))return!1;for(r=0,v=a.names.length;r<v;r++)if(a.names[r].test(m))return!0;return!1}function b(m){return m instanceof Error?m.stack||m.message:m}})(LS,LS.exports);var Lin=LS.exports;(function(e,a){a=e.exports=Lin,a.log=L,a.formatArgs=N,a.save=u,a.load=g,a.useColors=i,a.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:n(),a.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function i(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a.formatters.j=function(b){try{return JSON.stringify(b)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}};function N(b){var m=this.useColors;if(b[0]=(m?"%c":"")+this.namespace+(m?" %c":" ")+b[0]+(m?"%c ":" ")+"+"+a.humanize(this.diff),!!m){var r="color: "+this.color;b.splice(1,0,r,"color: inherit");var v=0,_=0;b[0].replace(/%[a-zA-Z%]/g,function(c){c!=="%%"&&(v++,c==="%c"&&(_=v))}),b.splice(_,0,r)}}function L(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function u(b){try{b==null?a.storage.removeItem("debug"):a.storage.debug=b}catch{}}function g(){var b;try{b=a.storage.debug}catch{}return!b&&typeof process<"u"&&"env"in process&&(b=process.env.DEBUG),b}a.enable(g());function n(){try{return window.localStorage}catch{}}})(zS,zS.exports);var d5=zS.exports,VY=NS(),Fin=L1,RY=km,Din=s5,Vin=DY,ah=d5("engine.io-client:polling"),$Y=lp,Rin=function(){var e=ES,a=new e({xdomain:!1});return a.responseType!=null}();function lp(e){var a=e&&e.forceBase64;(!Rin||a)&&(this.supportsBinary=!1),VY.call(this,e)}Din(lp,VY),lp.prototype.name="polling",lp.prototype.doOpen=function(){this.poll()},lp.prototype.pause=function(e){var a=this;this.readyState="pausing";function i(){ah("paused"),a.readyState="paused",e()}if(this.polling||!this.writable){var N=0;this.polling&&(ah("we are currently polling - waiting to pause"),N++,this.once("pollComplete",function(){ah("pre-pause polling complete"),--N||i()})),this.writable||(ah("we are currently writing - waiting to pause"),N++,this.once("drain",function(){ah("pre-pause writing complete"),--N||i()}))}else i()},lp.prototype.poll=function(){ah("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},lp.prototype.onData=function(e){var a=this;ah("polling got data %s",e);var i=function(N,L,u){if(a.readyState==="opening"&&N.type==="open"&&a.onOpen(),N.type==="close")return a.onClose(),!1;a.onPacket(N)};RY.decodePayload(e,this.socket.binaryType,i),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():ah('ignoring poll - transport state "%s"',this.readyState))},lp.prototype.doClose=function(){var e=this;function a(){ah("writing close packet"),e.write([{type:"close"}])}this.readyState==="open"?(ah("transport open - closing"),a()):(ah("transport not open - deferring close"),this.once("open",a))},lp.prototype.write=function(e){var a=this;this.writable=!1;var i=function(){a.writable=!0,a.emit("drain")};RY.encodePayload(e,this.supportsBinary,function(N){a.doWrite(N,i)})},lp.prototype.uri=function(){var e=this.query||{},a=this.secure?"https":"http",i="";this.timestampRequests!==!1&&(e[this.timestampParam]=Vin()),!this.supportsBinary&&!e.sid&&(e.b64=1),e=Fin.encode(e),this.port&&(a==="https"&&Number(this.port)!==443||a==="http"&&Number(this.port)!==80)&&(i=":"+this.port),e.length&&(e="?"+e);var N=this.hostname.indexOf(":")!==-1;return a+"://"+(N?"["+this.hostname+"]":this.hostname)+i+this.path+e};var $in=ES,jY=$Y,jin=O1,Uin=s5,FS=d5("engine.io-client:polling-xhr"),Hin=SS;AS.exports=F1,AS.exports.Request=Nc;function UY(){}function F1(e){if(jY.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,typeof location<"u"){var a=location.protocol==="https:",i=location.port;i||(i=a?443:80),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port,this.xs=e.secure!==a}}Uin(F1,jY),F1.prototype.supportsBinary=!0,F1.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new Nc(e)},F1.prototype.doWrite=function(e,a){var i=typeof e!="string"&&e!==void 0,N=this.request({method:"POST",data:e,isBinary:i}),L=this;N.on("success",a),N.on("error",function(u){L.onError("xhr post error",u)}),this.sendXhr=N},F1.prototype.doPoll=function(){FS("xhr poll");var e=this.request(),a=this;e.on("data",function(i){a.onData(i)}),e.on("error",function(i){a.onError("xhr poll error",i)}),this.pollXhr=e};function Nc(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=e.async!==!1,this.data=e.data!==void 0?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}if(jin(Nc.prototype),Nc.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var a=this.xhr=new $in(e),i=this;try{FS("xhr open %s: %s",this.method,this.uri),a.open(this.method,this.uri,this.async);try{if(this.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(var N in this.extraHeaders)this.extraHeaders.hasOwnProperty(N)&&a.setRequestHeader(N,this.extraHeaders[N])}}catch{}if(this.method==="POST")try{this.isBinary?a.setRequestHeader("Content-type","application/octet-stream"):a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in a&&(a.withCredentials=this.withCredentials),this.requestTimeout&&(a.timeout=this.requestTimeout),this.hasXDR()?(a.onload=function(){i.onLoad()},a.onerror=function(){i.onError(a.responseText)}):a.onreadystatechange=function(){if(a.readyState===2)try{var L=a.getResponseHeader("Content-Type");(i.supportsBinary&&L==="application/octet-stream"||L==="application/octet-stream; charset=UTF-8")&&(a.responseType="arraybuffer")}catch{}a.readyState===4&&(a.status===200||a.status===1223?i.onLoad():setTimeout(function(){i.onError(typeof a.status=="number"?a.status:0)},0))},FS("xhr data %s",this.data),a.send(this.data)}catch(L){setTimeout(function(){i.onError(L)},0);return}typeof document<"u"&&(this.index=Nc.requestsCount++,Nc.requests[this.index]=this)},Nc.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},Nc.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},Nc.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},Nc.prototype.cleanup=function(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=UY:this.xhr.onreadystatechange=UY,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Nc.requests[this.index],this.xhr=null}},Nc.prototype.onLoad=function(){var e;try{var a;try{a=this.xhr.getResponseHeader("Content-Type")}catch{}a==="application/octet-stream"||a==="application/octet-stream; charset=UTF-8"?e=this.xhr.response||this.xhr.responseText:e=this.xhr.responseText}catch(i){this.onError(i)}e!=null&&this.onData(e)},Nc.prototype.hasXDR=function(){return typeof XDomainRequest<"u"&&!this.xs&&this.enablesXDR},Nc.prototype.abort=function(){this.cleanup()},Nc.requestsCount=0,Nc.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",HY);else if(typeof addEventListener=="function"){var Gin="onpagehide"in Hin?"pagehide":"unload";addEventListener(Gin,HY,!1)}}function HY(){for(var e in Nc.requests)Nc.requests.hasOwnProperty(e)&&Nc.requests[e].abort()}var Win=AS.exports,DS=$Y,qin=s5,GY=SS,Yin=D1,Zin=/\n/g,Jin=/\\n/g,u5;function Xin(){}function D1(e){DS.call(this,e),this.query=this.query||{},u5||(u5=GY.___eio=GY.___eio||[]),this.index=u5.length;var a=this;u5.push(function(i){a.onData(i)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){a.script&&(a.script.onerror=Xin)},!1)}qin(D1,DS),D1.prototype.supportsBinary=!1,D1.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),DS.prototype.doClose.call(this)},D1.prototype.doPoll=function(){var e=this,a=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),a.async=!0,a.src=this.uri(),a.onerror=function(L){e.onError("jsonp poll error",L)};var i=document.getElementsByTagName("script")[0];i?i.parentNode.insertBefore(a,i):(document.head||document.body).appendChild(a),this.script=a;var N=typeof navigator<"u"&&/gecko/i.test(navigator.userAgent);N&&setTimeout(function(){var L=document.createElement("iframe");document.body.appendChild(L),document.body.removeChild(L)},100)},D1.prototype.doWrite=function(e,a){var i=this;if(!this.form){var N=document.createElement("form"),L=document.createElement("textarea"),u=this.iframeId="eio_iframe_"+this.index,g;N.className="socketio",N.style.position="absolute",N.style.top="-1000px",N.style.left="-1000px",N.target=u,N.method="POST",N.setAttribute("accept-charset","utf-8"),L.name="d",N.appendChild(L),document.body.appendChild(N),this.form=N,this.area=L}this.form.action=this.uri();function n(){b(),a()}function b(){if(i.iframe)try{i.form.removeChild(i.iframe)}catch(r){i.onError("jsonp polling iframe removal error",r)}try{var m='<iframe src="javascript:0" name="'+i.iframeId+'">';g=document.createElement(m)}catch{g=document.createElement("iframe"),g.name=i.iframeId,g.src="javascript:0"}g.id=i.iframeId,i.form.appendChild(g),i.iframe=g}b(),e=e.replace(Jin,`\\
7044
7044
  `),this.area.value=e.replace(Zin,"\\n");try{this.form.submit()}catch{}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){i.iframe.readyState==="complete"&&n()}:this.iframe.onload=n};const Kin=ayt(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var VS=NS(),Qin=km,eon=L1,ton=s5,non=DY,aon=d5("engine.io-client:websocket"),h5,RS;if(typeof WebSocket<"u"?h5=WebSocket:typeof self<"u"&&(h5=self.WebSocket||self.MozWebSocket),typeof window>"u")try{RS=Kin}catch{}var V1=h5||RS,ron=Lu;function Lu(e){var a=e&&e.forceBase64;a&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=h5&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(V1=RS),VS.call(this,e)}ton(Lu,VS),Lu.prototype.name="websocket",Lu.prototype.supportsBinary=!0,Lu.prototype.doOpen=function(){if(this.check()){var e=this.uri(),a=this.protocols,i={};this.isReactNative||(i.agent=this.agent,i.perMessageDeflate=this.perMessageDeflate,i.pfx=this.pfx,i.key=this.key,i.passphrase=this.passphrase,i.cert=this.cert,i.ca=this.ca,i.ciphers=this.ciphers,i.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(i.headers=this.extraHeaders),this.localAddress&&(i.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?a?new V1(e,a):new V1(e):new V1(e,a,i)}catch(N){return this.emit("error",N)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},Lu.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(a){e.onData(a.data)},this.ws.onerror=function(a){e.onError("websocket error",a)}},Lu.prototype.write=function(e){var a=this;this.writable=!1;for(var i=e.length,N=0,L=i;N<L;N++)(function(g){Qin.encodePacket(g,a.supportsBinary,function(n){if(!a.usingBrowserWebSocket){var b={};if(g.options&&(b.compress=g.options.compress),a.perMessageDeflate){var m=typeof n=="string"?Buffer.byteLength(n):n.length;m<a.perMessageDeflate.threshold&&(b.compress=!1)}}try{a.usingBrowserWebSocket?a.ws.send(n):a.ws.send(n,b)}catch{aon("websocket closed before onclose event")}--i||u()})})(e[N]);function u(){a.emit("flush"),setTimeout(function(){a.writable=!0,a.emit("drain")},0)}},Lu.prototype.onClose=function(){VS.prototype.onClose.call(this)},Lu.prototype.doClose=function(){typeof this.ws<"u"&&this.ws.close()},Lu.prototype.uri=function(){var e=this.query||{},a=this.secure?"wss":"ws",i="";this.port&&(a==="wss"&&Number(this.port)!==443||a==="ws"&&Number(this.port)!==80)&&(i=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=non()),this.supportsBinary||(e.b64=1),e=eon.encode(e),e.length&&(e="?"+e);var N=this.hostname.indexOf(":")!==-1;return a+"://"+(N?"["+this.hostname+"]":this.hostname)+i+this.path+e},Lu.prototype.check=function(){return!!V1&&!("__initialize"in V1&&this.name===Lu.prototype.name)};var ion=ES,oon=Win,son=Yin,lon=ron;n5.polling=con,n5.websocket=lon;function con(e){var a,i=!1,N=!1,L=e.jsonp!==!1;if(typeof location<"u"){var u=location.protocol==="https:",g=location.port;g||(g=u?443:80),i=e.hostname!==location.hostname||g!==e.port,N=e.secure!==u}if(e.xdomain=i,e.xscheme=N,a=new ion(e),"open"in a&&!e.forceJSONP)return new oon(e);if(!L)throw new Error("JSONP disabled");return new son(e)}var don=[].indexOf,WY=function(e,a){if(don)return e.indexOf(a);for(var i=0;i<e.length;++i)if(e[i]===a)return i;return-1},uon=n5,hon=O1,Ac=d5("engine.io-client:socket"),pon=WY,qY=km,YY=xY,fon=L1,mon=ko;function ko(e,a){if(!(this instanceof ko))return new ko(e,a);a=a||{},e&&typeof e=="object"&&(a=e,e=null),e?(e=YY(e),a.hostname=e.host,a.secure=e.protocol==="https"||e.protocol==="wss",a.port=e.port,e.query&&(a.query=e.query)):a.host&&(a.hostname=YY(a.host).host),this.secure=a.secure!=null?a.secure:typeof location<"u"&&location.protocol==="https:",a.hostname&&!a.port&&(a.port=this.secure?"443":"80"),this.agent=a.agent||!1,this.hostname=a.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=a.port||(typeof location<"u"&&location.port?location.port:this.secure?443:80),this.query=a.query||{},typeof this.query=="string"&&(this.query=fon.decode(this.query)),this.upgrade=a.upgrade!==!1,this.path=(a.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!a.forceJSONP,this.jsonp=a.jsonp!==!1,this.forceBase64=!!a.forceBase64,this.enablesXDR=!!a.enablesXDR,this.withCredentials=a.withCredentials!==!1,this.timestampParam=a.timestampParam||"t",this.timestampRequests=a.timestampRequests,this.transports=a.transports||["polling","websocket"],this.transportOptions=a.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=a.policyPort||843,this.rememberUpgrade=a.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=a.onlyBinaryUpgrades,this.perMessageDeflate=a.perMessageDeflate!==!1?a.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=a.pfx||void 0,this.key=a.key||void 0,this.passphrase=a.passphrase||void 0,this.cert=a.cert||void 0,this.ca=a.ca||void 0,this.ciphers=a.ciphers||void 0,this.rejectUnauthorized=a.rejectUnauthorized===void 0?!0:a.rejectUnauthorized,this.forceNode=!!a.forceNode,this.isReactNative=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self>"u"||this.isReactNative)&&(a.extraHeaders&&Object.keys(a.extraHeaders).length>0&&(this.extraHeaders=a.extraHeaders),a.localAddress&&(this.localAddress=a.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}ko.priorWebsocketSuccess=!1,hon(ko.prototype),ko.protocol=qY.protocol,ko.Socket=ko,ko.Transport=NS(),ko.transports=n5,ko.parser=km,ko.prototype.createTransport=function(e){Ac('creating transport "%s"',e);var a=gon(this.query);a.EIO=qY.protocol,a.transport=e;var i=this.transportOptions[e]||{};this.id&&(a.sid=this.id);var N=new uon[e]({query:a,socket:this,agent:i.agent||this.agent,hostname:i.hostname||this.hostname,port:i.port||this.port,secure:i.secure||this.secure,path:i.path||this.path,forceJSONP:i.forceJSONP||this.forceJSONP,jsonp:i.jsonp||this.jsonp,forceBase64:i.forceBase64||this.forceBase64,enablesXDR:i.enablesXDR||this.enablesXDR,withCredentials:i.withCredentials||this.withCredentials,timestampRequests:i.timestampRequests||this.timestampRequests,timestampParam:i.timestampParam||this.timestampParam,policyPort:i.policyPort||this.policyPort,pfx:i.pfx||this.pfx,key:i.key||this.key,passphrase:i.passphrase||this.passphrase,cert:i.cert||this.cert,ca:i.ca||this.ca,ciphers:i.ciphers||this.ciphers,rejectUnauthorized:i.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:i.perMessageDeflate||this.perMessageDeflate,extraHeaders:i.extraHeaders||this.extraHeaders,forceNode:i.forceNode||this.forceNode,localAddress:i.localAddress||this.localAddress,requestTimeout:i.requestTimeout||this.requestTimeout,protocols:i.protocols||void 0,isReactNative:this.isReactNative});return N};function gon(e){var a={};for(var i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);return a}ko.prototype.open=function(){var e;if(this.rememberUpgrade&&ko.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){var a=this;setTimeout(function(){a.emit("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)},ko.prototype.setTransport=function(e){Ac("setting transport %s",e.name);var a=this;this.transport&&(Ac("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){a.onDrain()}).on("packet",function(i){a.onPacket(i)}).on("error",function(i){a.onError(i)}).on("close",function(){a.onClose("transport close")})},ko.prototype.probe=function(e){Ac('probing transport "%s"',e);var a=this.createTransport(e,{probe:1}),i=!1,N=this;ko.priorWebsocketSuccess=!1;function L(){if(N.onlyBinaryUpgrades){var v=!this.supportsBinary&&N.transport.supportsBinary;i=i||v}i||(Ac('probe transport "%s" opened',e),a.send([{type:"ping",data:"probe"}]),a.once("packet",function(_){if(!i)if(_.type==="pong"&&_.data==="probe"){if(Ac('probe transport "%s" pong',e),N.upgrading=!0,N.emit("upgrading",a),!a)return;ko.priorWebsocketSuccess=a.name==="websocket",Ac('pausing current transport "%s"',N.transport.name),N.transport.pause(function(){i||N.readyState!=="closed"&&(Ac("changing transport and sending upgrade packet"),r(),N.setTransport(a),a.send([{type:"upgrade"}]),N.emit("upgrade",a),a=null,N.upgrading=!1,N.flush())})}else{Ac('probe transport "%s" failed',e);var c=new Error("probe error");c.transport=a.name,N.emit("upgradeError",c)}}))}function u(){i||(i=!0,r(),a.close(),a=null)}function g(v){var _=new Error("probe error: "+v);_.transport=a.name,u(),Ac('probe transport "%s" failed because of error: %s',e,v),N.emit("upgradeError",_)}function n(){g("transport closed")}function b(){g("socket closed")}function m(v){a&&v.name!==a.name&&(Ac('"%s" works - aborting "%s"',v.name,a.name),u())}function r(){a.removeListener("open",L),a.removeListener("error",g),a.removeListener("close",n),N.removeListener("close",b),N.removeListener("upgrading",m)}a.once("open",L),a.once("error",g),a.once("close",n),this.once("close",b),this.once("upgrading",m),a.open()},ko.prototype.onOpen=function(){if(Ac("socket open"),this.readyState="open",ko.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){Ac("starting upgrade probes");for(var e=0,a=this.upgrades.length;e<a;e++)this.probe(this.upgrades[e])}},ko.prototype.onPacket=function(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(Ac('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var a=new Error("server error");a.code=e.data,this.onError(a);break;case"message":this.emit("data",e.data),this.emit("message",e.data);break}else Ac('packet received with socket readyState "%s"',this.readyState)},ko.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},ko.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var a=this;a.pingTimeoutTimer=setTimeout(function(){a.readyState!=="closed"&&a.onClose("ping timeout")},e||a.pingInterval+a.pingTimeout)},ko.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){Ac("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},ko.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},ko.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()},ko.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(Ac("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},ko.prototype.write=ko.prototype.send=function(e,a,i){return this.sendPacket("message",e,a,i),this},ko.prototype.sendPacket=function(e,a,i,N){if(typeof a=="function"&&(N=a,a=void 0),typeof i=="function"&&(N=i,i=null),!(this.readyState==="closing"||this.readyState==="closed")){i=i||{},i.compress=i.compress!==!1;var L={type:e,data:a,options:i};this.emit("packetCreate",L),this.writeBuffer.push(L),N&&this.once("flush",N),this.flush()}},ko.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?N():a()}):this.upgrading?N():a()}function a(){e.onClose("forced close"),Ac("socket closing - telling transport to close"),e.transport.close()}function i(){e.removeListener("upgrade",i),e.removeListener("upgradeError",i),a()}function N(){e.once("upgrade",i),e.once("upgradeError",i)}return this},ko.prototype.onError=function(e){Ac("socket error %j",e),ko.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},ko.prototype.onClose=function(e,a){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){Ac('socket close with reason: "%s"',e);var i=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,a),i.writeBuffer=[],i.prevBufferLen=0}},ko.prototype.filterUpgrades=function(e){for(var a=[],i=0,N=e.length;i<N;i++)~pon(this.transports,e[i])&&a.push(e[i]);return a},CS.exports=mon,CS.exports.parser=km;var yon=CS.exports,ZY={exports:{}},von=_on;function _on(e,a){var i=[];a=a||0;for(var N=a||0;N<e.length;N++)i[N-a]=e[N];return i}var JY=bon;function bon(e,a,i){return e.on(a,i),{destroy:function(){e.removeListener(a,i)}}}var XY=[].slice,KY=function(e,a){if(typeof a=="string"&&(a=e[a]),typeof a!="function")throw new Error("bind() requires a function");var i=XY.call(arguments,2);return function(){return a.apply(e,i.concat(XY.call(arguments)))}};(function(e,a){var i=Q4,N=O1,L=von,u=JY,g=KY,n=K4("socket.io-client:socket"),b=L1,m=AY;e.exports=_;var r={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},v=N.prototype.emit;function _(c,s,o){this.io=c,this.nsp=s,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},o&&o.query&&(this.query=o.query),this.io.autoConnect&&this.open()}N(_.prototype),_.prototype.subEvents=function(){if(!this.subs){var c=this.io;this.subs=[u(c,"open",g(this,"onopen")),u(c,"packet",g(this,"onpacket")),u(c,"close",g(this,"onclose"))]}},_.prototype.open=_.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.reconnecting||this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit("connecting"),this)},_.prototype.send=function(){var c=L(arguments);return c.unshift("message"),this.emit.apply(this,c),this},_.prototype.emit=function(c){if(r.hasOwnProperty(c))return v.apply(this,arguments),this;var s=L(arguments),o={type:(this.flags.binary!==void 0?this.flags.binary:m(s))?i.BINARY_EVENT:i.EVENT,data:s};return o.options={},o.options.compress=!this.flags||this.flags.compress!==!1,typeof s[s.length-1]=="function"&&(n("emitting packet with ack id %d",this.ids),this.acks[this.ids]=s.pop(),o.id=this.ids++),this.connected?this.packet(o):this.sendBuffer.push(o),this.flags={},this},_.prototype.packet=function(c){c.nsp=this.nsp,this.io.packet(c)},_.prototype.onopen=function(){if(n("transport is open - connecting"),this.nsp!=="/")if(this.query){var c=typeof this.query=="object"?b.encode(this.query):this.query;n("sending connect packet with query %s",c),this.packet({type:i.CONNECT,query:c})}else this.packet({type:i.CONNECT})},_.prototype.onclose=function(c){n("close (%s)",c),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",c)},_.prototype.onpacket=function(c){var s=c.nsp===this.nsp,o=c.type===i.ERROR&&c.nsp==="/";if(!(!s&&!o))switch(c.type){case i.CONNECT:this.onconnect();break;case i.EVENT:this.onevent(c);break;case i.BINARY_EVENT:this.onevent(c);break;case i.ACK:this.onack(c);break;case i.BINARY_ACK:this.onack(c);break;case i.DISCONNECT:this.ondisconnect();break;case i.ERROR:this.emit("error",c.data);break}},_.prototype.onevent=function(c){var s=c.data||[];n("emitting event %j",s),c.id!=null&&(n("attaching ack callback to event"),s.push(this.ack(c.id))),this.connected?v.apply(this,s):this.receiveBuffer.push(s)},_.prototype.ack=function(c){var s=this,o=!1;return function(){if(!o){o=!0;var l=L(arguments);n("sending ack %j",l),s.packet({type:m(l)?i.BINARY_ACK:i.ACK,id:c,data:l})}}},_.prototype.onack=function(c){var s=this.acks[c.id];typeof s=="function"?(n("calling ack %s with %j",c.id,c.data),s.apply(this,c.data),delete this.acks[c.id]):n("bad ack %s",c.id)},_.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},_.prototype.emitBuffered=function(){var c;for(c=0;c<this.receiveBuffer.length;c++)v.apply(this,this.receiveBuffer[c]);for(this.receiveBuffer=[],c=0;c<this.sendBuffer.length;c++)this.packet(this.sendBuffer[c]);this.sendBuffer=[]},_.prototype.ondisconnect=function(){n("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},_.prototype.destroy=function(){if(this.subs){for(var c=0;c<this.subs.length;c++)this.subs[c].destroy();this.subs=null}this.io.destroy(this)},_.prototype.close=_.prototype.disconnect=function(){return this.connected&&(n("performing disconnect (%s)",this.nsp),this.packet({type:i.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},_.prototype.compress=function(c){return this.flags.compress=c,this},_.prototype.binary=function(c){return this.flags.binary=c,this}})(ZY);var QY=ZY.exports,xon=R1;function R1(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}R1.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var a=Math.random(),i=Math.floor(a*this.jitter*e);e=Math.floor(a*10)&1?e+i:e-i}return Math.min(e,this.max)|0},R1.prototype.reset=function(){this.attempts=0},R1.prototype.setMin=function(e){this.ms=e},R1.prototype.setMax=function(e){this.max=e},R1.prototype.setJitter=function(e){this.jitter=e};var won=yon,kon=QY,Con=O1,Ton=Q4,Jf=JY,$1=KY,fd=K4("socket.io-client:manager"),eZ=WY,Son=xon,tZ=Object.prototype.hasOwnProperty,nZ=us;function us(e,a){if(!(this instanceof us))return new us(e,a);e&&typeof e=="object"&&(a=e,e=void 0),a=a||{},a.path=a.path||"/socket.io",this.nsps={},this.subs=[],this.opts=a,this.reconnection(a.reconnection!==!1),this.reconnectionAttempts(a.reconnectionAttempts||1/0),this.reconnectionDelay(a.reconnectionDelay||1e3),this.reconnectionDelayMax(a.reconnectionDelayMax||5e3),this.randomizationFactor(a.randomizationFactor||.5),this.backoff=new Son({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(a.timeout==null?2e4:a.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var i=a.parser||Ton;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this.autoConnect=a.autoConnect!==!1,this.autoConnect&&this.open()}us.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var e in this.nsps)tZ.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},us.prototype.updateSocketIds=function(){for(var e in this.nsps)tZ.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},us.prototype.generateId=function(e){return(e==="/"?"":e+"#")+this.engine.id},Con(us.prototype),us.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},us.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},us.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},us.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},us.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},us.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},us.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()},us.prototype.open=us.prototype.connect=function(e,a){if(fd("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;fd("opening %s",this.uri),this.engine=won(this.uri,this.opts);var i=this.engine,N=this;this.readyState="opening",this.skipReconnect=!1;var L=Jf(i,"open",function(){N.onopen(),e&&e()}),u=Jf(i,"error",function(b){if(fd("connect_error"),N.cleanup(),N.readyState="closed",N.emitAll("connect_error",b),e){var m=new Error("Connection error");m.data=b,e(m)}else N.maybeReconnectOnOpen()});if(this._timeout!==!1){var g=this._timeout;fd("connect attempt will timeout after %d",g),g===0&&L.destroy();var n=setTimeout(function(){fd("connect attempt timed out after %d",g),L.destroy(),i.close(),i.emit("error","timeout"),N.emitAll("connect_timeout",g)},g);this.subs.push({destroy:function(){clearTimeout(n)}})}return this.subs.push(L),this.subs.push(u),this},us.prototype.onopen=function(){fd("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(Jf(e,"data",$1(this,"ondata"))),this.subs.push(Jf(e,"ping",$1(this,"onping"))),this.subs.push(Jf(e,"pong",$1(this,"onpong"))),this.subs.push(Jf(e,"error",$1(this,"onerror"))),this.subs.push(Jf(e,"close",$1(this,"onclose"))),this.subs.push(Jf(this.decoder,"decoded",$1(this,"ondecoded")))},us.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},us.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},us.prototype.ondata=function(e){this.decoder.add(e)},us.prototype.ondecoded=function(e){this.emit("packet",e)},us.prototype.onerror=function(e){fd("error",e),this.emitAll("error",e)},us.prototype.socket=function(e,a){var i=this.nsps[e];if(!i){i=new kon(this,e,a),this.nsps[e]=i;var N=this;i.on("connecting",L),i.on("connect",function(){i.id=N.generateId(e)}),this.autoConnect&&L()}function L(){~eZ(N.connecting,i)||N.connecting.push(i)}return i},us.prototype.destroy=function(e){var a=eZ(this.connecting,e);~a&&this.connecting.splice(a,1),!this.connecting.length&&this.close()},us.prototype.packet=function(e){fd("writing packet %j",e);var a=this;e.query&&e.type===0&&(e.nsp+="?"+e.query),a.encoding?a.packetBuffer.push(e):(a.encoding=!0,this.encoder.encode(e,function(i){for(var N=0;N<i.length;N++)a.engine.write(i[N],e.options);a.encoding=!1,a.processPacketQueue()}))},us.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},us.prototype.cleanup=function(){fd("cleanup");for(var e=this.subs.length,a=0;a<e;a++){var i=this.subs.shift();i.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},us.prototype.close=us.prototype.disconnect=function(){fd("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},us.prototype.onclose=function(e){fd("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},us.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)fd("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var a=this.backoff.duration();fd("will wait %dms before reconnect attempt",a),this.reconnecting=!0;var i=setTimeout(function(){e.skipReconnect||(fd("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),!e.skipReconnect&&e.open(function(N){N?(fd("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",N.data)):(fd("reconnect success"),e.onreconnect())}))},a);this.subs.push({destroy:function(){clearTimeout(i)}})}},us.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)},function(e,a){var i=Zrn,N=Q4,L=nZ,u=K4("socket.io-client");e.exports=a=n;var g=a.managers={};function n(b,m){typeof b=="object"&&(m=b,b=void 0),m=m||{};var r=i(b),v=r.source,_=r.id,c=r.path,s=g[_]&&c in g[_].nsps,o=m.forceNew||m["force new connection"]||m.multiplex===!1||s,l;return o?(u("ignoring socket cache for %s",v),l=L(v,m)):(g[_]||(u("new io instance for %s",v),g[_]=L(v,m)),l=g[_]),r.query&&!m.query&&(m.query=r.query),l.socket(r.path,m)}a.protocol=N.protocol,a.connect=n,a.Manager=nZ,a.Socket=QY}(mS,mS.exports);var Eon=mS.exports;const p5=j9(Eon)("https://golstats-live-server-sockets.azurewebsites.net",{autoConnect:!1,transports:["websocket"]});function Aon(){return p5}p5.on("connect",()=>{Pu.emit("socket-connected")}),p5.on("disconnect",()=>{Pu.emit("socket-disconnected")}),p5.on("reconnect",()=>{Pu.emit("socket-reconnected")});const $S=Aon(),Mon=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],Ion={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:vY(),indexesTSP:Prn(),indexesLS:zrn(),indexesTLP:Frn(),nextGamesDataStructure:Nrn,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!1,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(a=>a.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>(e.isLive=!!e.gameForAnalysis.is_live,e.isLive),showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return Brn.filter(a=>a.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return gY(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return gY(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(a=>a.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(a=>e.homeTeamFilter.playingAs.includes(a[0])).filter(a=>e.homeTeamFilter.matchResult.includes(a[1])).reduce((a,i)=>a+i[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(a=>e.visitingTeamFilter.playingAs.includes(a[0])).filter(a=>e.visitingTeamFilter.matchResult.includes(a[1])).reduce((a,i)=>a+i[2],0)},filledDataStructure(e,a){if(e.currentSeasonPlays)for(const i of Object.values(e.nextGamesDataStructure))for(const N of Object.values(i.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&N.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&N.visitingTeam.resetTotals(),N.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),N.addTeamPlays(N.homeTeamType,e.gameForAnalysis.home_team,a.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:a.totalFilteredHomeGames),N.addTeamPlays(N.visitingTeamType,e.gameForAnalysis.visiting_team,a.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:a.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,a){return Object.values(a.filledDataStructure).sort((i,N)=>i.priority-N.priority)},statisticData(e,a){for(const i of Object.values(a.filledDataStructure))if(i.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&i.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return i.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{setCurrentTournamentName(e,a){e.currentTournamentName=a},setBetSubcategoriesObjects(e,a){e.betSubcategoriesObjects=a},setRegularSeasonName(e,a){e.regularSeasonName=a},setBetSubcategories(e,a){e.betSubcategories=a},setBetDescription(e,a){e.betDescription=a},setSeasonId(e,a){e.seasonId=Number(a)},setHome(e,a){e.homeTeamInfo=a},setAway(e,a){e.awayTeamInfo=a},setMenuOptionActive(e,a){e.menuOptionActive=a},setPastSeasonId(e,a){e.pastSeasonId=a},setUsePastSeasonId(e,a){e.usePastSeasonId=a,a&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,a){e.showPostMatch=a},setHomeResultGame(e,a){e.homeResultGame=a},setAwayResultGame(e,a){e.awayResultGame=a},updateIsSocketConnected(e,a){e.isSocketConnected=a,a&&$S.emit("subscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`})},updateCurrentSeasonTeams(e,a){e.currentSeasonTeams=a,e.currentSeasonTeams.forEach(i=>{i.playedGames=e.currentSeasonGames.reduce((N,L)=>{if(L.game_status===1&&(L.home_team===i.team_id||L.visiting_team===i.team_id)){const u=L.score[0]-L.score[1],g=L.home_team===i.team_id;N.push({playingAs:g?1:2,matchResult:u===0?3:g?u>0?1:2:u<0?1:2})}return N},[])})},updateCurrentSeasonGames(e,a){e.currentSeasonGames=a},updateGameId(e,a){e.gameId=a},updateGameForAnalysis(e,a){e.gameForAnalysis=a,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team,e.gameForAnalysis.is_live===1&&e.isSocketConnected&&$S.client.emit("subscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`})},updateSelectedAnalysis(e,a){e.selectedAnalysis=a},updateShowLiveData(e,a){e.showLiveData=a},toggleShowLiveData(e){e.showLiveData=!e.showLiveData},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,a){e.idAssetSelected=a},updateStats(e,a){e.currentSeasonPlays=a},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:a,needsFormat:i=!1}){if(i){if(!a||!a.local||!a.local.statistics||!a.visit||!a.visit.statistics)return;e.homeTeamFilter=YM(e.homeTeamFilter,a.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=YM(e.visitingTeamFilter,a.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==a.local.statistics.block&&(e.selectedStatisticTypeBlock=a.local.statistics.block)}else e.homeTeamFilter={...a.homeTeamFilter,statistics:0},e.visitingTeamFilter={...a.visitingTeamFilter,statistics:0}},updateFinishedGames(e,a){e.totalSeasonFinishedGames=a},updateHomeTeamPlays(e,a){e.homeTeamPlays=a},updateVisitingTeamPlays(e,a){e.visitingTeamPlays=a},addSpecialMentions(e,a){const i=Object.values(e.nextGamesDataStructure);i.forEach(N=>{for(const L of Object.values(N.subcategories))L.resetMentions()}),i.forEach(N=>{for(const L of a)for(const u of Object.values(N.subcategories))u.addSpecialMention(L[0],L[1],L[2])})},setDefaultFilter(e,a){e.defaultFilter={homeTeamFilter:{...a.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...a.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,a){if(!e.livePlays.has(a[e.indexesTLP.playId])){e.livePlays.set(a[e.indexesTLP.playId],a);const N=J4(a,e.indexesTLP,e.categoriesMap);for(const L of Object.values(e.nextGamesDataStructure))for(const u of Object.values(L.subcategories))u.addLivePlay(e.gameForAnalysis.home_team===N[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",N[e.indexesTSP.teamId],N,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,a){const i=!!a[e.indexesTLP.length],N=e.livePlays.get(a[e.indexesTLP.playId]);if(Ane(N,a))return;let L="";const u=e.gameForAnalysis.home_team===a[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";N&&(L=e.gameForAnalysis.home_team===N[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const g=J4(N,e.indexesTLP,e.categoriesMap),n=fS(N,g,e.indexesTLP),b=J4(a,e.indexesTLP,e.categoriesMap),m=fS(a,b,e.indexesTLP);for(const r of Object.values(e.nextGamesDataStructure))for(const v of Object.values(r.subcategories))N&&(v.subtractLivePlay(L,g[e.indexesTSP.teamId],g,e.indexesTSP,i),n&&v.subtractLivePlay(L,n[e.indexesTSP.teamId],n,e.indexesTSP,i)),v.addLivePlay(u,b[e.indexesTSP.teamId],b,e.indexesTSP,e.isLive,i),m&&v.addLivePlay(u,m[e.indexesTSP.teamId],m,e.indexesTSP,e.isLive,i);e.livePlays.set(a[e.indexesTLP.playId],a)},deleteLiveGamePlay(e,a){const i=!!a[e.indexesTLP.length],N=e.livePlays.get(a[e.indexesTLP.playId]);let L="";if(N){L=e.gameForAnalysis.home_team===N[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(N[e.indexesTLP.playId]);const u=J4(N,e.indexesTLP,e.categoriesMap),g=fS(a,u,e.indexesTLP);for(const n of Object.values(e.nextGamesDataStructure))for(const b of Object.values(n.subcategories))b.subtractLivePlay(L,u[e.indexesTSP.teamId],u,e.indexesTSP,i),g&&b.subtractLivePlay(L,g[e.indexesTSP.teamId],g,e.indexesTSP,i)}},clearLiveTotals(e){for(const a of Object.values(e.nextGamesDataStructure))for(const i of Object.values(a.subcategories))i.homeTeam.resetTotalsLive(),i.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,a){e.statistics=a},updateOldSeasonId(e,a){e.oldSeasonId=a},addRankingInSubcategories(e,{getters:a,isPremiumAccount:i}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(u=>{u.homeTeamFilterGames=u.playedGames.filter(g=>e.homeTeamFilter.playingAs.includes(g.playingAs)&&e.homeTeamFilter.matchResult.includes(g.matchResult)).length,u.visitingTeamFilterGames=u.playedGames.filter(g=>e.visitingTeamFilter.playingAs.includes(g.playingAs)&&e.visitingTeamFilter.matchResult.includes(g.matchResult)).length});const N=[],L=new Map;for(const u of Object.values(e.nextGamesDataStructure))for(const g of Object.values(u.subcategories))N.push(g);a.rankingData.forEach(u=>{for(const g of N)if(g.isInGeneralCategory(u[e.indexesLS.categoryId])){L.has(g.id)?L.get(g.id).push(u):L.set(g.id,[u]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,a){e.homeGames=bY(a)},setVisitingGames(e,a){e.visitingGames=bY(a)},generateCategoriesMap(e){for(const a of Object.values(e.nextGamesDataStructure))for(const i of Object.values(a.subcategories))i.accomplishedCategoryIds.forEach(N=>{const L=e.categoriesMap.get(N);L?L.push(i.generalCategoriesIds.accomplished):e.categoriesMap.set(N,[i.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const a of Object.values(e.nextGamesDataStructure))for(const i of Object.values(a.subcategories))i.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:a},{command:i}){i==="on"?a("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):a("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},a){try{const g=await Ern({gameId:a.gameId});if(g){var i=[],N=[],L={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},u={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(g.data).length!==0&&(i=g.data.data.filter(n=>n[1]==a.homeTeam),N=g.data.data.filter(n=>n[1]==a.awayTeam),L=g.data.games,u=g.data.games),e("updateHomeTeamPlays",i),e("updateVisitingTeamPlays",N),e("setHomeGames",L),e("setVisitingGames",u)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(g){return Promise.reject(g)}},async fillStatisticDataPostMatch({commit:e,dispatch:a},i){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let N=[];e("updateGameForAnalysis",i.gameInfo),N.push(a("setAndGetStatsPostMatch",{gameId:i.game,homeTeam:i.homeTeam,awayTeam:i.awayTeam})),await Promise.all(N)}catch(N){throw new Error(N)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:a,commit:i},{gameId:N,isTeamsAnalysis:L,currentSeasonId:u,isLoginChanged:g=!1,defaultFilter:n=null,gameInfo:b=null,isCupGame:m=!1}){try{let r={},v=e.seasonId!==Number(u);const _=[];i("setIsSectionLoading",!0,{root:!0}),i("setUsePastSeasonId",!1),v&&i("setSeasonId",u),i("updateGameId",Number(N)),e.oldSeasonId!==e.seasonId&&i("resetNextGamesDataStructure");const c=await a("getCurrentSeasonGames",Number(N));if(i("leagueGeneral/updateCurrentSeasonGames",c,{root:!0}),r=c.find(s=>s.game_id===Number(N)),!r&&b&&(r=b),r&&i("updateGameForAnalysis",r),r.game_status!==1&&(m||await a("checkTeamsData",{gameId:N,isFromBet:!!n}),(g||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&_.push(a("getSeasonStatistics")),(g||e.categoriesMap.size===0)&&i("generateCategoriesMap")),e.usePastSeasonId){const s=await a("getCurrentSeasonGamesLast");i("leagueGeneral/updateCurrentSeasonGames",s,{root:!0})}(g||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(s=>r.home_team===s.team_id))&&_.push(a("getCurrentSeasonTeams")),i("setHomeResultGame",r.score[0]),i("setAwayResultGame",r.score[1]),L?r.game_status!==1?(await a("fillStatisticData",{gameId:N,gameinfo:r,promises:_,defaultFilter:n}),i("updateShowPostMatchData",!1)):(i("updateStats",[]),i("updateShowPostMatchData",!0),_.push(a("fillStatisticDataPostMatch",{game:N,homeTeam:r.home_team,awayTeam:r.visiting_team,gameInfo:r})),await Promise.all(_)):i("setIsSectionLoading",!1,{root:!0})}catch(r){return Promise.reject(r)}},async fillStatisticData({commit:e,dispatch:a,getters:i,rootGetters:N,state:L},{gameId:u,gameinfo:g,promises:n=[],defaultFilter:b=null}){let m=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",g),g.is_live&&n.push(a("getCurrentLiveGamePlays",u)),n.push(a("getSpecialMentionsByGame",u)),n.push(a("getHomeTeamPlays")),n.push(a("getVisitingTeamPlays")),n.push(a("getCurrentSeasonPlays")),b&&n.push(Mrn(b)),m=await Promise.all(n)}catch(r){throw new Error(r)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:i,isPremiumAccount:N["loginGeneral/getPremiumAccount"]}),b){const[r]=m.pop();r&&(e("setBetSubcategories",r.categories),e("setBetDescription",r.sectionDescription),e("setDefaultFilter",r.params),e("updateFilterAux"),e("updateFilters",{filters:L.defaultFilter,needsFormat:!1}),a("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:a,rootState:i,commit:N},{gameId:L,isFromBet:u}){try{const g=Number(L);if(i.general.tournaments&&i.general.tournaments.length){await a("general/fetchTournaments",null,{root:!0});const n=i.general.tournaments.find(b=>{for(const m of b.seasons)if(m.id===e.seasonId)return!0;return!1});N("general/setTournamentSelected",n||{},{root:!0})}if(e.pastSeasonId){N("nextGeneral/setPastSeasonId",e.pastSeasonId,{root:!0});const n=i.leagueGeneral.currentSeasonGames.find(b=>b.game_id===g);n&&N("updateGameForAnalysis",n),await Promise.all([a("getHomeTeamPlays"),a("getVisitingTeamPlays")]),N("setUsePastSeasonId",u||(!e.homeTeamPlays||e.homeTeamPlays.length===0)&&(!e.visitingTeamPlays||e.visitingTeamPlays.length===0))}else N("setUsePastSeasonId",!1)}catch(g){throw new Error(g)}},async getSpecialMentionsByGame({commit:e},a){try{const i=await krn({gameId:a});e("addSpecialMentions",i)}catch(i){return Promise.reject(i)}},async getCurrentSeasonGames({commit:e,state:a},i){try{const{teams:N,games:L,past_season_id:u,tournament_id:g}=await xrn({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,gameId:i}),n=Mon.find(b=>b.id===g);return n&&e("setCurrentTournamentName",n.name),e("setHome",N[0]),e("setAway",N[1]),a.usePastSeasonId||e("setPastSeasonId",u),await e("updateCurrentSeasonGames",L),L&&Array.isArray(L)&&e("updateFinishedGames",L.reduce((b,m)=>(m.game_status===1&&(b+=1),b),0)),L}catch(N){return Promise.reject(N)}},async getCurrentSeasonGamesLast({commit:e,state:a}){try{const{games:i,past_season_id:N}=await yY({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});return a.usePastSeasonId||e("setPastSeasonId",N),await e("updateCurrentSeasonGames",i),i&&Array.isArray(i)&&e("updateFinishedGames",i.reduce((L,u)=>(u.game_status===1&&(L+=1),L),0)),i}catch(i){return Promise.reject(i)}},async getCurrentSeasonTeams({commit:e,state:a}){try{const i=await Srn({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});e("updateCurrentSeasonTeams",i.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:a}){try{const i=a.usePastSeasonId?a.pastSeasonId:a.seasonId,N=await _rn({seasonId:i});e("updateSeasonStatistics",N),e("updateOldSeasonId",i)}catch(i){return Promise.reject(i)}},updateRankingInSubcategories({state:e,commit:a,getters:i,rootGetters:N}){e.currentSeasonGames.length>0&&a("addRankingInSubcategories",{getters:i,isPremiumAccount:N["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:a}){try{const i=await _Y({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,teamId:a.gameForAnalysis.home_team});i.data&&(e("updateHomeTeamPlays",i.data.data),e("setHomeGames",i.data.games))}catch(i){return Promise.reject(i)}},async getVisitingTeamPlays({commit:e,state:a}){try{const i=await _Y({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,teamId:a.gameForAnalysis.visiting_team});i.data&&(e("updateVisitingTeamPlays",i.data.data),e("setVisitingGames",i.data.games))}catch(i){return Promise.reject(i)}},async getCurrentSeasonPlays({commit:e,state:a}){try{const i=await vrn({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});e("updateStats",i)}catch(i){return Promise.reject(new Error(i))}},async getCurrentLiveGamePlays({state:e,commit:a},i){try{const N=await wrn({gameId:i});e.livePlays=new Map,N.forEach(L=>{e.gameForAnalysis.game_id===L[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===L[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===L[e.indexesTLP.teamId])&&a("addLiveGamePlay",L)})}catch(N){throw new Error(N)}},socket_new({state:e,commit:a},i){const N=i[1];(e.gameForAnalysis.home_team===N[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===N[e.indexesTLP.teamId])&&a("addLiveGamePlay",N)},socket_update({state:e,commit:a},i){const N=i[1];e.gameForAnalysis.game_id===N[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===N[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===N[e.indexesTLP.teamId])&&a("updateLiveGamePlay",N)},socket_delete({state:e,commit:a},i){const N=i[1];e.gameForAnalysis.game_id===N[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===N[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===N[e.indexesTLP.teamId])&&a("deleteLiveGamePlay",N)},exitChannel({state:e,getters:a,rootState:i,rootGetters:N,commit:L}){const u=N["loginGeneral/getPremiumAccount"];a.isLive&&u&&(L("updateShowLiveData",!1),L("clearLiveTotals"),e.livePlays.clear(),$S.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const i of Object.values(e.nextGamesDataStructure))for(const N of Object.values(i.subcategories))N.homeTeam.resetTotals(),N.visitingTeam.resetTotals(),N.homeTeam.resetTotalsLive(),N.visitingTeam.resetTotalsLive(),N.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(i=>{for(const N of Object.values(i.subcategories))N.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const i of Object.values(e.nextGamesDataStructure))for(const N of Object.values(i.subcategories))N.homeTeam.resetTotals(),N.visitingTeam.resetTotals(),N.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(i=>{for(const N of Object.values(i.subcategories))N.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function Pon(){try{const{data:e}=await md({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const Non={gameGlobal:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},tournamentType:0,sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getTournamentType:e=>e.tournamentType,getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,a){e.booleanIsStatisticModalOpen=a},setTournamentType(e,a){e.tournamentType=a},setSectionRef(e,a){e.sectionRef=a},setSectionAnalytics(e,a){e.sectionAnalytics=a},setSeccionBetsGolTipster(e,a){e.seccionBetsGolTipster=a},setPreviewSectionAnalytics(e,a){e.previewSectionAnalytics=a},setVideoSrc(e,a){e.videoSrc=a},setVideoModalVisibility(e,a){e.isVideoModalVisible=a},setSelectedTournament(e,a){e.selectedTournament=a},setTournaments(e,a){e.tournaments=a.map(i=>({...i.tournament,seasons:i.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,a){e.tournamentSelected=a}},actions:{async fetchTournaments({state:e,commit:a}){try{if(e.tournaments.length===0){const i=await Pon();a("setTournaments",i)}}catch(i){throw new Error(i)}}}}};async function Bon({seasonId:e,localTeamId:a,visitingTeamId:i}){try{const N=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${a}/${i}`;return(await md({url:N})).data}catch(N){return Promise.reject(N)}}async function Oon({seasonId:e,localTeamId:a,visitingTeamId:i}){try{const N=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${a}/${i}`;return(await md({url:N})).data}catch(N){return Promise.reject(N)}}const aZ=(e,a)=>{let i={};return e.forEach((N,L)=>{L==3&&(a[0]==35||a[0]==54)&&(a[L]==2?a[L]=1:a[L]=2),L==2&&(a[0]==35||a[0]==54)&&(a[L]==1?a[L]=2:a[L]==2&&(a[L]=1)),i[N]=a[L]}),i},rZ=(e,a)=>e.filter(N=>{const L=a.playingAs.includes(N.playing_as),u=a.matchResult.includes(N.match_result),g=a.sections.includes(N.section);return L&&u&&g}),iZ=[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#FF8000",points:[1,2,3],categories:[12,55,35,54,510]}];(function(){function e(a,i,N){return typeof N>"u"||+N==0?Math[a](i):(i=+i,N=+N,isNaN(i)||!(typeof N=="number"&&N%1===0)?NaN:(i=i.toString().split("e"),i=Math[a](+(i[0]+"e"+(i[1]?+i[1]-N:-N))),i=i.toString().split("e"),+(i[0]+"e"+(i[1]?+i[1]+N:N))))}Math.ceil10||(Math.ceil10=function(a,i){return e("ceil",a,i)})})();function oZ(e,a){let i=a*-1;return Math.ceil10(e,i)}const zon={...Non,...Arn,...Ion,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,a,i)=>{const N=e.xGLocalPlays,L="homeTeamFilter",u=i.nextGeneral[L];return rZ(N,u)},playsAway:(e,a,i)=>{const N=e.xGVisitingPlays,L="visitingTeamFilter",u=i.nextGeneral[L];return rZ(N,u)},goalsQtyLocal:(e,a)=>{const i=iZ.find(N=>N.name==="Goles");return a.playsLocal.filter(N=>i.categories.includes(N.category_id)).length},goalsQtyAway:(e,a)=>{const i=iZ.find(N=>N.name==="Goles");return a.playsAway.filter(N=>i.categories.includes(N.category_id)).length},shotsOnGoalQtyLocal:(e,a)=>a.playsLocal.filter(i=>i.category_id===510).length,shotsOnGoalQtyAway:(e,a)=>a.playsAway.filter(i=>i.category_id===510).length,xGLocal:(e,a)=>{const i=new Set;let N=a.playsLocal.reduce((L,u)=>(i.has(u.moment_of_play)||(i.add(u.moment_of_play),L+=u.xG2),L),0);return oZ(N,2)},xGAway:(e,a)=>{const i=new Set;let N=a.playsAway.reduce((L,u)=>(i.has(u.moment_of_play)||(i.add(u.moment_of_play),L+=u.xG2),L),0);return oZ(N,2)}},mutations:{setTeamSelected(e,a){e.teamSelected=a},setPlays(e,a){e.xGLocalPlays=a.local_team.map(i=>aZ(a.data_headers,i)),e.xGVisitingPlays=a.visiting_team.map(i=>aZ(a.data_headers,i))},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:a,localTeamId:i,visitingTeamId:N,postMatch:L=!1}){try{var u={};L?u=await Oon({seasonId:a,localTeamId:i,visitingTeamId:N}):u=await Bon({seasonId:a,localTeamId:i,visitingTeamId:N}),e("setPlays",u)}catch(g){return Promise.reject(g)}}}}}};function Lon(e){for(const[a,i]of Object.entries(zon))e.hasModule(a)||e.registerModule(a,i)}const Fon={class:"subcategory-group"},Don={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(a,i)=>(t.openBlock(),t.createElementBlock("div",Fon,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,N=>(t.openBlock(),t.createBlock(t.unref(ro),{key:N.id,modelValue:N.isSelected,"onUpdate:modelValue":L=>N.isSelected=L,label:N.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Von=xo(Don,[["__scopeId","data-v-ae6f3d72"]]),Ron={class:"filter-subcategories"},$on=Object.freeze(Object.defineProperty({__proto__:null,default:xo({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(a,i)=>(t.openBlock(),t.createElementBlock("div",Ron,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,N=>(t.openBlock(),t.createElementBlock("div",{key:N.id,class:"filter-subcategories__group"},[t.createVNode(Von,{subcategoryGroup:N},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),f5=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),jon={class:"details__header"},Uon=f5(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Hon={class:"details__header__checkbox"},Gon={class:"details__body"},Won={class:"details__body__playing-as"},qon=["onClick"],Yon={class:"details__header"},Zon=f5(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),Jon={class:"details__header__checkbox"},Xon={class:"details__body"},Kon=f5(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Qon={class:"details__body__game-section"},esn=["onClick"],tsn={class:"details__body"},nsn=f5(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),asn={class:"details__body__game-section"},rsn=["onClick"],isn=Object.freeze(Object.defineProperty({__proto__:null,default:xo({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const a=e;t.useCssVars(r=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const i=t.computed(()=>a.playingAs.every(r=>r.isSelected)),N=t.computed(()=>a.gameSections.every(r=>r.isSelected)),L=t.computed(()=>a.gameSections.reduce((r,v)=>(v.value<=3?r.firstHalf.push(v):r.secondHalf.push(v),r),{firstHalf:[],secondHalf:[]})),u=t.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function g(r){r?a.playingAs.forEach(v=>{v.isSelected=!0}):a.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function n(r){a.playingAs.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function b(r){a.gameSections.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function m(r){r?a.gameSections.forEach(v=>{v.isSelected=!0}):a.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(r,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(u.value)},[t.createElementVNode("div",jon,[Uon,t.createElementVNode("div",Hon,[t.createVNode(t.unref(ro),{label:"Todos","model-value":i.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",Gon,[t.createElementVNode("div",Won,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.playingAs,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>n(_)},t.toDisplayString(_.name),11,qon))),128))])]),t.createElementVNode("div",Yon,[Zon,t.createElementVNode("div",Jon,[t.createVNode(t.unref(ro),{label:"Todos","model-value":N.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",Xon,[Kon,t.createElementVNode("div",Qon,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.firstHalf,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>b(_)},t.toDisplayString(_.text),11,esn))),128))])]),t.createElementVNode("div",tsn,[nsn,t.createElementVNode("div",asn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.secondHalf,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>b(_)},t.toDisplayString(_.text),11,rsn))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),osn={class:"filter-field"},ssn=Object.freeze(Object.defineProperty({__proto__:null,default:xo({__name:"FilterField",setup(e){const a=t.ref(Array.from({length:16},(N,L)=>L+1));function i(){}return(N,L)=>(t.openBlock(),t.createElementBlock("div",osn,[t.createVNode(t.unref(Qj),{width:"100%","background-color":"#2E3B46",value:a.value,"onUpdate:modelValue":i},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),lsn={class:"subcategory-group"},csn={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(a,i)=>(t.openBlock(),t.createElementBlock("div",lsn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,N=>(t.openBlock(),t.createBlock(t.unref(io),{key:N.id,modelValue:N.isSelected,"onUpdate:modelValue":L=>N.isSelected=L,label:N.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},dsn=wo(csn,[["__scopeId","data-v-ae6f3d72"]]),usn={class:"filter-subcategories"},hsn=Object.freeze(Object.defineProperty({__proto__:null,default:wo({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(a,i)=>(t.openBlock(),t.createElementBlock("div",usn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,N=>(t.openBlock(),t.createElementBlock("div",{key:N.id,class:"filter-subcategories__group"},[t.createVNode(dsn,{subcategoryGroup:N},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),m5=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),psn={class:"details__header"},fsn=m5(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),msn={class:"details__header__checkbox"},gsn={class:"details__body"},ysn={class:"details__body__playing-as"},vsn=["onClick"],_sn={class:"details__header"},bsn=m5(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),xsn={class:"details__header__checkbox"},wsn={class:"details__body"},ksn=m5(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Csn={class:"details__body__game-section"},Tsn=["onClick"],Ssn={class:"details__body"},Esn=m5(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Asn={class:"details__body__game-section"},Msn=["onClick"],Isn=Object.freeze(Object.defineProperty({__proto__:null,default:wo({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const a=e;t.useCssVars(r=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const i=t.computed(()=>a.playingAs.every(r=>r.isSelected)),N=t.computed(()=>a.gameSections.every(r=>r.isSelected)),L=t.computed(()=>a.gameSections.reduce((r,v)=>(v.value<=3?r.firstHalf.push(v):r.secondHalf.push(v),r),{firstHalf:[],secondHalf:[]})),u=t.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function g(r){r?a.playingAs.forEach(v=>{v.isSelected=!0}):a.playingAs.forEach((v,_)=>{v.isSelected=_===0})}function n(r){a.playingAs.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function b(r){a.gameSections.filter(v=>v.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function m(r){r?a.gameSections.forEach(v=>{v.isSelected=!0}):a.gameSections.forEach((v,_)=>{v.isSelected=_===0})}return(r,v)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(u.value)},[t.createElementVNode("div",psn,[fsn,t.createElementVNode("div",msn,[t.createVNode(t.unref(io),{label:"Todos","model-value":i.value,"onUpdate:modelValue":g},null,8,["model-value"])])]),t.createElementVNode("div",gsn,[t.createElementVNode("div",ysn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.playingAs,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>n(_)},t.toDisplayString(_.name),11,vsn))),128))])]),t.createElementVNode("div",_sn,[bsn,t.createElementVNode("div",xsn,[t.createVNode(t.unref(io),{label:"Todos","model-value":N.value,"onUpdate:modelValue":m},null,8,["model-value"])])]),t.createElementVNode("div",wsn,[ksn,t.createElementVNode("div",Csn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.firstHalf,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>b(_)},t.toDisplayString(_.text),11,Tsn))),128))])]),t.createElementVNode("div",Ssn,[Esn,t.createElementVNode("div",Asn,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(L.value.secondHalf,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${c}`,class:t.normalizeClass(["details__body__button",{active:_.isSelected}]),onClick:s=>b(_)},t.toDisplayString(_.text),11,Msn))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),Psn={class:"filter-field"},Nsn=Object.freeze(Object.defineProperty({__proto__:null,default:wo({__name:"FilterField",setup(e){const a=t.ref(Array.from({length:16},(N,L)=>L+1));function i(){}return(N,L)=>(t.openBlock(),t.createElementBlock("div",Psn,[t.createVNode(t.unref($G),{width:"100%","background-color":"#2E3B46",value:a.value,"onUpdate:modelValue":i},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Nd.GSCGameData=yrn,Nd.registerStoreModules=Lon,Object.defineProperty(Nd,Symbol.toStringTag,{value:"Module"})});