@golstats/gsc-game-data 1.0.277 → 1.0.279

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.
@@ -11,7 +11,7 @@
11
11
  * Vue 3 Carousel 0.3.4
12
12
  * (c) 2024
13
13
  * @license MIT
14
- */const Kd={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"}},qI={itemsToShow:{default:Kd.itemsToShow,type:Number},itemsToScroll:{default:Kd.itemsToScroll,type:Number},wrapAround:{default:Kd.wrapAround,type:Boolean},throttle:{default:Kd.throttle,type:Number},snapAlign:{default:Kd.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Kd.transition,type:Number},breakpoints:{default:Kd.breakpoints,type:Object},autoplay:{default:Kd.autoplay,type:Number},pauseAutoplayOnHover:{default:Kd.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Kd.mouseDrag,type:Boolean},touchDrag:{default:Kd.touchDrag,type:Boolean},dir:{default:Kd.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Kd.i18n,type:Object},settings:{default(){return{}},type:Object}};function ote({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function ste({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function Q6({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function lte({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let m=r;switch(B){case"center":case"center-odd":m-=(c-1)/2;break;case"center-even":m-=(c-2)/2;break;case"end":m-=c-1;break}return D?m:Q6({val:m,max:i-c,min:0})}function YI(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,...YI(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function e8({val:e,max:r,min:i=0}){return e>r?e8({val:e-(r+1),max:r,min:i}):e<i?e8({val:e+(r+1),max:r,min:i}):e}function cte(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function dte(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function ute(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var hte=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Kd))),r=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"},ute(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),pte=t.defineComponent({name:"Carousel",props:qI,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),m=t.ref([]),a=t.ref(0),v=t.ref(0),f=t.reactive(Object.assign({},Kd));let n=Object.assign({},Kd),y;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let u,d;t.provide("config",f),t.provide("slidesCount",v),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){y=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function g(){if(!y||!Object.keys(y).length)return;const ae=Object.keys(y).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie);let ne=Object.assign({},n);ae.some(ie=>{const ue=window.matchMedia(`(min-width: ${ie}px)`).matches;return ue&&(ne=Object.assign(Object.assign({},ne),y[ie])),ue}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=dte(()=>{g(),S(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){v.value<=0||(l.value=Math.ceil((v.value-1)/2),o.value=ote({config:f,slidesCount:v.value}),s.value=ste({config:f,slidesCount:v.value}),f.wrapAround||(_.value=Q6({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),g(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{d&&clearTimeout(d),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let k=!1;const T={x:0,y:0},C={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(k=ae.type==="touchstart",k||ae.preventDefault(),!(!k&&ae.button!==0||U.value)&&(T.x=k?ae.touches[0].clientX:ae.clientX,T.y=k?ae.touches[0].clientY:ae.clientY,document.addEventListener(k?"touchmove":"mousemove",F,!0),document.addEventListener(k?"touchend":"mouseup",R,!0)))}const F=cte(ae=>{M.value=!0,C.x=k?ae.touches[0].clientX:ae.clientX,C.y=k?ae.touches[0].clientY:ae.clientY;const ne=C.x-T.x,ie=C.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!k){const ue=he=>{window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(k?"touchmove":"mousemove",F,!0),document.removeEventListener(k?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(u=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){u&&(clearInterval(u),u=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:Q6({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:v.value}),U.value=!0,p.value=_.value,_.value=ne,d=setTimeout(()=>{if(f.wrapAround){const ie=e8({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:v.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>lte({config:f,currentSlide:_.value,slidesCount:v.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${v.value*a.value}px`:"",width:"100%"}});function ee(){h(),g(),S(),x(),$()}Object.keys(qI).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(v,S),i("before-init"),h();const le={config:f,slidesCount:v,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:g,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=YI(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((_e,xe)=>t.cloneVNode(_e,{index:-ae.length+xe,isClone:!0,key:`clone-before-${xe}`})),me=ae.map((_e,xe)=>t.cloneVNode(_e,{index:ae.length+xe,isClone:!0,key:`clone-after-${xe}`}));ie=[...pe,...ae,...me]}m.value=ae,v.value=Math.max(ae.length,1);const ue=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},ue);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(hte)])}}}),t8;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(t8||(t8={}));const fte={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function mte(e){return e in t8}const a8=e=>{const r=t.inject("config",t.reactive(Object.assign({},Kd))),i=String(e.name),B=`icon${i.charAt(0).toUpperCase()+i.slice(1)}`;if(!i||typeof i!="string"||!mte(i))return;const D=fte[i],c=t.h("path",{d:D}),m=r.i18n[B]||e.title||i,a=t.h("title",m);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":m},[a,c])};a8.props={name:String,title:String};const gte=(e,{slots:r,attrs:i})=>{const{next:B,prev:D}=r||{},c=t.inject("config",t.reactive(Object.assign({},Kd))),m=t.inject("maxSlide",t.ref(1)),a=t.inject("minSlide",t.ref(1)),v=t.inject("currentSlide",t.ref(1)),f=t.inject("nav",{}),{dir:n,wrapAround:y,i18n:_}=c,p=n==="rtl",l=t.h("button",{type:"button",class:["carousel__prev",!y&&v.value<=a.value&&"carousel__prev--disabled",i==null?void 0:i.class],"aria-label":_.ariaPreviousSlide,onClick:f.prev},(D==null?void 0:D())||t.h(a8,{name:p?"arrowRight":"arrowLeft"})),o=t.h("button",{type:"button",class:["carousel__next",!y&&v.value>=m.value&&"carousel__next--disabled",i==null?void 0:i.class],"aria-label":_.ariaNextSlide,onClick:f.next},(B==null?void 0:B())||t.h(a8,{name:p?"arrowLeft":"arrowRight"}));return[l,o]};var yte=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},Kd))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),m=t.computed(()=>e.index===B.value),a=t.computed(()=>e.index===B.value-1),v=t.computed(()=>e.index===B.value+1),f=t.computed(()=>{const n=Math.floor(D.value),y=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=y});return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f.value,"carousel__slide--active":m.value,"carousel__slide--prev":a.value,"carousel__slide--next":v.value,"carousel__slide--sliding":c.value},"aria-hidden":!f.value},(n=r.default)===null||n===void 0?void 0:n.call(r,{isActive:m.value,isClone:e.isClone,isPrev:a.value,isNext:v.value,isSliding:c.value,isVisible:f.value}))}}});const Pp=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},XI=e=>(t.pushScopeId("data-v-d88e6c89"),e=e(),t.popScopeId(),e),vte={key:1,class:"match-day__live"},_te=XI(()=>t.createElementVNode("div",{class:"match-day__live__bullet"},null,-1)),bte=XI(()=>t.createElementVNode("div",{class:"match-day__live__text"},"LIVE",-1)),xte=[_te,bte],wte={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:r}){const i=e,B=t.computed(()=>{const a={"background-color":i.backgroundColor,height:i.height};return i.matchDay.key===i.matchDaySelected.key&&(a["border-bottom"]=`solid 1px ${i.bottomLineColor}`,a["background-color"]=i.selectedMatchDayBackgroundColor),i.isLandingMode||(a["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),a}),D=t.computed(()=>({color:i.numberColor,"font-family":i.numberFontFamily,"font-size":i.numberFontSize})),c=t.computed(()=>({color:i.textColor,"font-family":i.textFontFamily,"font-size":i.textFontSize}));function m(a){r("click-match-day",a)}return(a,v)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...B.value}),onClick:v[0]||(v[0]=f=>m(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(D.value)},t.toDisplayString(e.matchDay.valueText),5),!Number.isNaN(e.matchDay.value)&&!e.matchDay.liveGamesIds.size?(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",c.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5)):e.matchDay.liveGamesIds.size?(t.openBlock(),t.createElementBlock("div",vte,xte)):t.createCommentVNode("",!0)],4))}},kte=Pp(wte,[["__scopeId","data-v-d88e6c89"]]),Cte={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:r}){const i=e;t.useCssVars(f=>({"59858af6":c.value,"5987b976":m.value}));const B=t.ref(null),D=t.computed(()=>({itemsToShow:i.itemsToShow,itemsToScroll:i.itemsToScroll,snapAlign:"start"})),c=t.computed(()=>B.value.data.currentSlide.value==0?"none":"inline"),m=t.computed(()=>B.value.data.currentSlide.value==B.value.data.maxSlide.value?"none":"inline"),a=t.ref({});t.watch(()=>i.closestMatchDay,f=>{if(f){const n=i.matchDays.find(y=>y.key===f);v(n||i.matchDays[0],!0)}}),t.watch(()=>i.matchDays,f=>{if(!i.closestMatchDay&&f&&f.length){const n=f.find(y=>y.key===i.defaultMatchDayKey);a.value=n||f[0],r("change-match-day",a.value)}else i.closestMatchDay&&(a.value=f.find(n=>n.key===i.closestMatchDay)||{})},{immediate:!0});function v(f,n=!1){n&&B.value&&B.value.slideTo(f.index),a.value=f,r("change-match-day",a.value)}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day-picker",style:t.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[(t.openBlock(),t.createBlock(t.unref(pte),t.mergeProps(D.value,{modelValue:a.value.index,ref_key:"matchDayPickerCarousel",ref:B,key:a.value.index}),{addons:t.withCtx(()=>[t.createVNode(t.unref(gte))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,y=>(t.openBlock(),t.createBlock(t.unref(yte),{key:y.key},{default:t.withCtx(()=>[t.createVNode(kte,t.mergeProps(i,{"match-day":y,"match-day-selected":a.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:v}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16,["modelValue"]))],4))}},Ste=Pp(Cte,[["__scopeId","data-v-85216dc3"]]);function Sf(e,r=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${r}/${e}.png`}function ZI(e){if(typeof e=="string"){let r=e.replace("M","J ");return r=r.replace("PO1","CFI"),r=r.replace("PO2","CFV"),r=r.replace("PO3","SFI"),r=r.replace("PO4","SFV"),r=r.replace("PO5","FI"),r=r.replace("PO6","FV"),r}}function Tte(e){let r="";return e.game_status!=4&&(r+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(r+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),r}const Ete={class:"game-info__teams"},Ate={class:"game-info__teams__team__logo"},Mte=["src"],Ite={class:"game-info__teams__detail"},Pte={key:0,class:"game-info__teams__detail__pre-game"},Bte={class:"game-info__teams__team__logo away"},Nte=["src"],zte={key:0},Ote={key:0},Fte={key:1},Lte={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const r=e,i=t.computed(()=>{let f=r.game.schedule.split(":");return f.pop(),f=f.join(":"),f}),B=t.computed(()=>{let f="120px";return(r.isLandingMode||r.isAcronymVisible)&&(f="70px"),{"min-width":f}}),D=t.computed(()=>({"font-size":r.namesFontSize,"font-family":r.namesFontFamily,color:r.colorPrimary})),c=t.computed(()=>({"font-size":r.additionalInfoFontSize,"font-family":r.additionalInfoFontFamily,color:r.colorSecondary})),m=t.computed(()=>({"font-size":r.scoreFontSize,"font-family":r.scoreFontFamily,color:r.colorPrimary})),a=t.computed(()=>({"font-size":r.timeZoneFontSize,"font-family":r.namesFontFamily,color:r.colorPrimary})),v=t.computed(()=>({"font-size":r.timeFontSize,"font-family":r.namesFontFamily,color:r.colorPrimary}));return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",Ete,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(B.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(D.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",Ate,[t.createElementVNode("img",{src:t.unref(Sf)(e.game.home_team.team_id),alt:""},null,8,Mte)])],4),t.createElementVNode("div",Ite,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",Pte,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(v.value)},t.toDisplayString(i.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(a.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(m.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",{class:"game-info__teams__team away",style:t.normalizeStyle(B.value)},[t.createElementVNode("div",Bte,[t.createElementVNode("img",{src:t.unref(Sf)(e.game.visiting_team.team_id),alt:""},null,8,Nte)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(D.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle([c.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",zte,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",Ote,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",Fte,t.toDisplayString(t.unref(Tte)(e.game)),1))],4)],4))}},JI=Pp(Lte,[["__scopeId","data-v-87b8c34a"]]),KI=e=>(t.pushScopeId("data-v-8839c56d"),e=e(),t.popScopeId(),e),Dte={class:"game-status"},Rte={key:0,class:"game-status__day__live"},Vte=KI(()=>t.createElementVNode("span",null,"LIVE",-1)),$te=KI(()=>t.createElementVNode("span",{class:"dot"},null,-1)),jte=[Vte,$te],Ute={key:0,class:"game-status__round"},Gte={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const r=e,i=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],B=t.computed(()=>{let m="";if(r.dateTimeMillis){const a=new Date(r.dateTimeMillis);m=`${a.getDate()} ${i[a.getMonth()]}`}return m}),D=t.computed(()=>({"font-size":r.fontSize})),c=t.computed(()=>{let m=[];return r.isLive?m.push("live"):r.status!==1&&m.push("pre-match"),m});return(m,a)=>(t.openBlock(),t.createElementBlock("div",Dte,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",c.value]),style:t.normalizeStyle(D.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",Rte,jte)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(B.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Ute,t.toDisplayString(e.roundAbbreviation),1))]))}},QI=Pp(Gte,[["__scopeId","data-v-8839c56d"]]),Bp={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},Hte=e=>(t.pushScopeId("data-v-0d97b1a8"),e=e(),t.popScopeId(),e),Wte={class:"actions"},qte={class:"actions__row"},Yte=Hte(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),Xte=[Yte],Zte={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jte=["fill"],Kte={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qte=["fill"],eae={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({backgroundColor:i.iconBackgroundColor,borderColor:i.iconBorderColor}));function D(c){r("action",c)}return(c,m)=>(t.openBlock(),t.createElementBlock("div",Wte,[t.createElementVNode("div",qte,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:m[0]||(m[0]=a=>D(t.unref(Bp).STATISTICS))},Xte,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:m[1]||(m[1]=a=>D(t.unref(Bp).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Zte,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:i.iconColor},null,8,Jte)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:m[2]||(m[2]=a=>D(t.unref(Bp).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Kte,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:i.iconColor},null,8,Qte)]))])):t.createCommentVNode("",!0)])]))}},tae=Pp(eae,[["__scopeId","data-v-0d97b1a8"]]),n8=e=>(t.pushScopeId("data-v-7ec0f118"),e=e(),t.popScopeId(),e),aae={class:"actions"},nae={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rae=["fill"],iae={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oae=["fill"],sae=n8(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),lae=[sae],cae={key:0,class:"actions__videos"},dae={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uae=["fill"],hae={key:1,class:"actions__videos__thumbnails"},pae=n8(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),fae=n8(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),mae={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gae=["stroke"],yae={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},hasGoals:{type:Boolean,default:!0},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({backgroundColor:i.iconBackgroundColor,borderColor:i.iconBorderColor})),D=t.computed(()=>{const v=[];return i.componentWidth<540&&v.push("mobile"),v}),c=t.computed(()=>i.componentWidth>730),m=t.computed(()=>({color:i.thumbnailColor,fontFamily:i.thumbnailFontFamily,fontSize:i.thumbnailFontSize}));function a(v){r("action",v)}return(v,f)=>(t.openBlock(),t.createElementBlock("div",aae,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",D.value])},[e.gameStatus===4444&&!e.isLive&&!c.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:f[0]||(f[0]=n=>a(t.unref(Bp).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",nae,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:i.iconColor},null,8,rae)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!c.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:f[1]||(f[1]=n=>a(t.unref(Bp).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",iae,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:i.iconColor},null,8,oae)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:f[2]||(f[2]=n=>a(t.unref(Bp).STATISTICS))},lae,4)],2),c.value?(t.openBlock(),t.createElementBlock("div",cae,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:f[3]||(f[3]=n=>a(t.unref(Bp).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",dae,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:i.iconColor},null,8,uae)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",hae,[e.hasGoals?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__videos__thumbnails__thumbnail",onClick:f[4]||(f[4]=n=>a(t.unref(Bp).PLAY_GOALS))},[pae,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(m.value)}," Goles ",4)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:f[5]||(f[5]=n=>a(t.unref(Bp).PLAY_RESUME))},[fae,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(m.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:f[6]||(f[6]=n=>a(t.unref(Bp).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",mae,[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,gae)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},vae=Pp(yae,[["__scopeId","data-v-7ec0f118"]]),ex=e=>(t.pushScopeId("data-v-58b99b1d"),e=e(),t.popScopeId(),e),_ae={class:"row-landing__game-status"},bae={class:"row-landing__game-actions"},xae={class:"row-full__game-status"},wae={class:"row-full__game-info"},kae={key:0},Cae={class:"row-full__game-actions"},Sae={class:"game-events-container"},Tae=ex(()=>t.createElementVNode("div",{class:"separator"},null,-1)),Eae=ex(()=>t.createElementVNode("div",null,null,-1)),Aae={class:"game-events__data"},Mae={class:"game-events__data__team"},Iae=["src"],Pae={class:"game-events__data__team__event__text"},Bae={class:"game-events__data__team away"},Nae={class:"game-events__data__team__event__text"},zae=["src"],Oae=ex(()=>t.createElementVNode("div",null,null,-1)),Fae=ex(()=>t.createElementVNode("div",null,null,-1)),Lae={__name:"CalendarRow",props:{teamId:{type:Number,default:0},showVideos:{type:Number,default:0},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:r}){const i=e,B={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},D=t.ref(!1),c=t.ref(!1),m=t.computed(()=>{const s={homeTeam:[],awayTeam:[]};return i.game&&i.game.game_status!==4&&!i.game.is_live&&i.game.minutes&&(s.homeTeam.push(...l(i.game.minutes.home_goals_minutes,B.GOAL)),s.homeTeam.push(...l(i.game.minutes.home_red_cards_minutes,B.RED_CARD)),s.homeTeam.push(...l(i.game.minutes.home_yellow_cards_minutes,B.YELLOW_CARD)),s.awayTeam.push(...l(i.game.minutes.visiting_goals_minutes,B.GOAL)),s.awayTeam.push(...l(i.game.minutes.away_red_cards_minutes,B.RED_CARD)),s.awayTeam.push(...l(i.game.minutes.away_yellow_cards_minutes,B.YELLOW_CARD))),s}),a=t.computed(()=>{const s=m.value.homeTeam.length,u=m.value.awayTeam.length;return s+u>0}),v=t.computed(()=>{const s=i.game.score[0],u=i.game.score[1];return s>0||u>0}),f=t.computed(()=>({"background-color":i.backgroundColor})),n=t.computed(()=>({height:i.height})),y=t.computed(()=>{const s={game:[],events:[]};return i.componentWidth<500?(s.events.push("break-point-3"),s.game.push("break-point-2")):i.componentWidth<730?(s.game.push("break-point-2"),s.events.push("break-point-2")):i.componentWidth<910&&(s.game.push("break-point-1"),s.events.push("break-point-1")),s}),_=t.computed(()=>({isLandingMode:i.isLandingMode,game:i.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),p=t.computed(()=>({"font-size":i.televisionFontSize,"font-family":i.televisionFontFamily,color:i.televisionColor}));t.watch(()=>i.componentWidth,s=>{c.value=s<910});function l(s,u){return s.map(d=>({iconUrl:u,text:d}))}function o(s){s===Bp.SHOW_GAME_EVENTS?D.value=!D.value:r("action",{action:s,game:i.game})}return(s,u)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(f.value)},[t.createVNode(JI,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",_ae,[t.createVNode(QI,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(ZI)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",bae,[e.game.home_team?(t.openBlock(),t.createBlock(tae,{key:0,"is-live":!!e.game.is_live,"has-video":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?!!e.game.has_video:!1,"game-status":e.game.game_status,"show-play-button":!0,onAction:o},null,8,["is-live","has-video","game-status"])):t.createCommentVNode("",!0)])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(f.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",y.value.game]),style:t.normalizeStyle(n.value)},[t.createElementVNode("div",xae,[t.createVNode(QI,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(ZI)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",wae,[t.createVNode(JI,t.mergeProps(_.value,{"is-television-visible":c.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-full__television",style:t.normalizeStyle(p.value)},[!c.value&&(e.game.game_status===4||e.game.is_live)?(t.openBlock(),t.createElementBlock("span",kae,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Cae,[e.game.home_team?(t.openBlock(),t.createBlock(vae,{key:0,"is-live":!!e.game.is_live,"has-video":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?!!e.game.has_video:!1,"has-actions":a.value,"has-goals":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?v.value:!1,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":D.value,"component-width":e.componentWidth,onAction:o},null,8,["is-live","has-video","has-actions","has-goals","game-status","are-events-visible","component-width"])):t.createCommentVNode("",!0)])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Sae,[Tae,t.createElementVNode("div",{class:t.normalizeClass(["game-events",y.value.events])},[Eae,t.createElementVNode("div",Aae,[t.createElementVNode("div",Mae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.homeTeam,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:`h${h}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:d.iconUrl},null,8,Iae),t.createElementVNode("div",Pae,t.toDisplayString(d.text),1)]))),128))]),t.createElementVNode("div",Bae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.awayTeam,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:`a${h}`,class:"game-events__data__team__event"},[t.createElementVNode("div",Nae,t.toDisplayString(d.text),1),t.createElementVNode("img",{src:d.iconUrl},null,8,zae)]))),128))])]),Oae,Fae],2)],512),[[t.vShow,D.value]])]),_:1})],4))}},eP=Pp(Lae,[["__scopeId","data-v-58b99b1d"]]),Dae={class:"calendar-table"},Rae={__name:"CalendarTable",props:{teamId:{type:Number,default:0},showVideos:{type:Number,default:0},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:r}){const i=e;function B(c){return c%2===0?i.evenRowColor:i.oddRowColor}function D(c){r("action",c)}return(c,m)=>(t.openBlock(),t.createElementBlock("div",Dae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(a,v)=>(t.openBlock(),t.createBlock(eP,{key:a.game_id,game:a,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":B(v),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:D},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},Vae=Pp(Rae,[["__scopeId","data-v-ebabdc0c"]]),$ae={class:"calendar-by-team"},jae={class:"playing-as-picker"},Uae={class:"calendar-by-team__page"},Gae={__name:"CalendarTableByTeam",props:{showVideos:{type:Number,default:0},teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:r}){const i=e,B=t.ref(0),D=t.computed(()=>{let v=[];if(i.gamesPages.size>0){const f=Array.from(i.gamesPages.entries()).reduce((n,[y,_])=>{const p=Number(y),l=Number.isNaN(p)?y:`Jornada ${p<10?"0":""}${p}`,o=_.reduce((s,u)=>(s.push(...u),s),[]).filter(s=>B.value===0||B.value===1&&s.visiting_team.team_id===i.teamId?!0:B.value===2&&s.home_team.team_id===i.teamId);return o.length>0&&n.push({roundName:l,games:o}),n},[]);v.push(f)}return v});function c(v){r("action",v)}function m(v){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),B.value=v,document.querySelector("#opc"+v).classList.add("selected")}function a(v){let f=v;switch(v){case"PI1":f="Play In 1";break;case"PI2":f="Play In 2";break;case"R1":f="Repechaje";break;case"CFI":f="Cuartos de final - Ida";break;case"CFV":f="Cuartos de final - Vuelta";break;case"SFI":f="Semifinal - Ida";break;case"SFV":f="Semifinal - Vuelta";break;case"FI":f="Final - Ida";break;case"FV":f="Final - Vuelta";break}return f}return(v,f)=>(t.openBlock(),t.createElementBlock("div",$ae,[t.createElementVNode("div",jae,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:f[0]||(f[0]=n=>m(0))}," Todas "),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:f[1]||(f[1]=n=>m(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:f[2]||(f[2]=n=>m(2))},"Local")]),t.createVNode(t.unref(WI),{"is-pagination-visible":e.isPaginationVisible,items:D.value},{default:t.withCtx(({item:n})=>[t.createElementVNode("div",Uae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n,(y,_)=>(t.openBlock(),t.createElementBlock("div",{key:_,class:"calendar-by-team__page__round"},[t.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:t.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},t.toDisplayString(a(y.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.games,p=>(t.openBlock(),t.createBlock(eP,{key:p.game_id,game:p,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:c},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},Hae=Pp(Gae,[["__scopeId","data-v-d93dcb09"]]),Wae="_pccard_h7wuw_3",qae="_pcmobile_h7wuw_17",Yae="_headerinfomobile_h7wuw_25",Xae="_liveMinutes_h7wuw_31",Zae="_viewButtomEvent_h7wuw_39",Jae="_viewButtomEventMobile_h7wuw_67",Kae="_containerEvents_h7wuw_95",Qae="_sepEvents_h7wuw_107",ene="_goalsContainer_h7wuw_127",tne="_yellowContainer_h7wuw_145",ane="_redContainer_h7wuw_161",nne="_containerEventsGameHometeam_h7wuw_177",rne="_containerEventsGameAwayteam_h7wuw_203",ine="_image62Icon_h7wuw_229",one="_imgChivasIcon_h7wuw_247",sne="_nameDesktop_h7wuw_261",lne="_nameMobile_h7wuw_287",cne="_homeTeam_h7wuw_311",dne="_sbado16De_h7wuw_333",une="_gameDate_h7wuw_351",hne="_sab16092023_h7wuw_359",pne="_div_h7wuw_385",fne="_divscore_h7wuw_403",mne="_cst_h7wuw_423",gne="_hour_h7wuw_441",yne="_score_h7wuw_443",vne="_chivasTvCanal_h7wuw_465",_ne="_gameStatus_h7wuw_489",bne="_matchInfo_h7wuw_511",xne="_image62Icon1_h7wuw_539",wne="_name_h7wuw_261",kne="_imgAtlasIcon_h7wuw_583",Cne="_name1_h7wuw_597",Sne="_awayTeam_h7wuw_621",Tne="_matchCard_h7wuw_643",Ene="_headereventsmobile_h7wuw_987",Ane="_headereventsmobilecont_h7wuw_1005",Mne="_headereventsmobilecontlocal_h7wuw_1021",Ine="_icongoalheader_h7wuw_1033",Pne="_conttarjetasmobile_h7wuw_1043",Bne="_conttarjetasmobileyellow_h7wuw_1053",Nne="_iconmobileyellow_h7wuw_1065",zne="_txtmobileyellow_h7wuw_1081",One="_iconmobilered_h7wuw_1109",Fne="_txtmobilered_h7wuw_1125",Lne="_conttarjetasmobilered_h7wuw_1155",Dne="_itemmobilgoal_h7wuw_1167",Rne="_goalscontainermobile_h7wuw_1197",Vne="_headereventsmobileconttitle_h7wuw_1227",$ne="_headereventsmobilecontaway_h7wuw_1273",jne={pccard:Wae,pcmobile:qae,headerinfomobile:Yae,liveMinutes:Xae,viewButtomEvent:Zae,viewButtomEventMobile:Jae,containerEvents:Kae,sepEvents:Qae,goalsContainer:ene,yellowContainer:tne,redContainer:ane,containerEventsGameHometeam:nne,containerEventsGameAwayteam:rne,image62Icon:ine,imgChivasIcon:one,nameDesktop:sne,nameMobile:lne,homeTeam:cne,sbado16De:dne,gameDate:une,sab16092023:hne,div:pne,divscore:fne,cst:mne,hour:gne,score:yne,chivasTvCanal:vne,gameStatus:_ne,matchInfo:bne,image62Icon1:xne,name:wne,imgAtlasIcon:kne,name1:Cne,awayTeam:Sne,matchCard:Tne,headereventsmobile:Ene,headereventsmobilecont:Ane,headereventsmobilecontlocal:Mne,icongoalheader:Ine,conttarjetasmobile:Pne,conttarjetasmobileyellow:Bne,iconmobileyellow:Nne,txtmobileyellow:zne,iconmobilered:One,txtmobilered:Fne,conttarjetasmobilered:Lne,itemmobilgoal:Dne,goalscontainermobile:Rne,headereventsmobileconttitle:Vne,headereventsmobilecontaway:$ne},Une=["src"],Gne=["src"],Hne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),Wne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),qne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),Yne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),Xne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),Zne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),Jne=t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/point-indicador-live.png"},null,-1),Kne={key:0},Qne=t.createElementVNode("div",null,"ver desglose",-1),ere=t.createElementVNode("img",{width:"13",style:{"margin-top":"1px"},src:"http://golstatsimages.blob.core.windows.net/todoelfut/arrow-live-down.png"},null,-1),tre=["src"],are=["src"],nre={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},rre={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},ire={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},ore=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),sre=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),lre=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),cre=["src"],dre=["src"],ure=t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/point-indicador-live.png"},null,-1),hre={key:0},pre=["src"],fre=["src"],mre=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),gre=[mre],yre=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),vre=[yre],_re=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),bre=[_re],xre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),wre=[xre],kre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),Cre=[kre],Sre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),Tre=[Sre],Ere=t.createElementVNode("img",{style:{"margin-left":"6px"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-down.png"},null,-1),Are=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),Mre=[Are],Ire=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),Pre=[Ire],Bre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),Nre=[Bre],zre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),Ore=[zre],Fre=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),Lre=[Fre],Dre=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),Rre=[Dre],Vre={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}},playsLive:{type:Object,default:()=>{}},is_captured:{type:Number,default:1},infoLive:{type:Object,default:()=>{}}},emits:["open-modal-event"],setup(e,{emit:r}){const i=e,B=new Map([[1,45],[2,90],[3,105],[4,120]]),D=t.computed(()=>{const n=B.get(i.infoLive.recent_lapse);return n&&n<i.infoLive.minute?`${n}' + ${i.infoLive.minute-n}'`:`${i.infoLive.minute}'`}),c=t.computed(()=>{let n=0,y=0,_=!1;var p=!1;return Object.keys(i.infoLive).includes("score")&&(i.infoLive.score["own_"+i.game.home_team.team_id]!=null&&i.infoLive.score["own_"+i.game.home_team.team_id]!=0&&(p=!0),i.infoLive.score["own_"+i.game.visiting_team.team_id]!=null&&i.infoLive.score["own_"+i.game.visiting_team.team_id]!=0&&(_=!0),_?i.infoLive.score[i.game.home_team.team_id]!=null&&(n=parseInt(i.infoLive.score[i.game.home_team.team_id])+parseInt(i.infoLive.score["own_"+i.game.visiting_team.team_id])):i.infoLive.score[i.game.home_team.team_id]!=null&&(n=parseInt(i.infoLive.score[i.game.home_team.team_id])),p?i.infoLive.score[i.game.visiting_team.team_id]!=null&&(y=parseInt(i.infoLive.score[i.game.visiting_team.team_id])+parseInt(i.infoLive.score["own_"+i.game.home_team.team_id])):i.infoLive.score[i.game.visiting_team.team_id]!=null&&(y=parseInt(i.infoLive.score[i.game.visiting_team.team_id]))),n+" - "+y}),m=t.computed(()=>{const n={...i.game};return n.gameSchedule=i.game.schedule.split(":"),n.gameSchedule.pop(),n.gameSchedule=n.gameSchedule.join(":"),n});function a(n){let y=n.split(" "),_=y[y.length-2];return _.includes("+")?y[y.length-3]+"+"+y[y.length-1]:(_=y[y.length-1],_)}function v(n){r("open-modal-event",n)}function f(n,y){const _=new Date(n);if(y==1){const p=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],l=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${p[_.getDay()]} ${_.getDate()} de ${l[_.getMonth()]}`}else return`${_.getDate()}-${_.getMonth()+1}-${_.getFullYear()}`}return(n,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.pccard)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon),alt:"",src:t.unref(Sf)(m.value.home_team.team_id,150)},null,10,Une),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgChivasIcon),alt:"",src:t.unref(Sf)(m.value.home_team.team_id)},null,10,Gne),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.nameDesktop),id:"team-name"},t.toDisplayString(m.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.nameMobile),id:"team-name"},t.toDisplayString(m.value.home_team.acronym),3),m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.is_live==0&&m.value.game_status==1||Object.keys(m.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.containerEventsGameHometeam)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.containerEvents)},[m.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.goalsContainer)},[Hne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.home_goals_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_).replace("(AG)","")),1),p!=m.value.minutes.home_goals_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),m.value.minutes.home_red_cards_minutes.length>0&&m.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),m.value.minutes.home_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.$style.yellowContainer)},[Wne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.home_red_cards_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_)),1),p!=m.value.minutes.home_red_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),m.value.minutes.home_red_cards_minutes.length>0||m.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),m.value.minutes.home_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(n.$style.redContainer)},[qne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.home_yellow_cards_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_)),1),p!=m.value.minutes.home_yellow_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.containerEventsGameHometeam)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.containerEvents)},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.home_team.team_id]&&"goals"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.goalsContainer)},[Yne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].goals),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].goals[_].event.map(l=>`${l}'`).join(", ").replace("(AG)","")),1),p!=Object.keys(e.playsLive[e.game.home_team.team_id].goals).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.home_team.team_id]&&"red"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.playsLive[e.game.home_team.team_id].red).length>0&&Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.home_team.team_id].red).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.yellowContainer)},[Xne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].red),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].red[_].event.map(l=>`${l}'`).join(", ")),1),p!=Object.keys(e.playsLive[e.game.home_team.team_id].red).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.home_team.team_id]&&"yellow"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(e.playsLive[e.game.home_team.team_id].red).length>0||Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.home_team.team_id].yellow).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.redContainer)},[Zne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].yellow),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].yellow[_].event.map(l=>`${l}'`).join(", ")),1),p!=Object.keys(e.playsLive[e.game.home_team.team_id].yellow).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64))],2),m.value.game_status==4&&m.value.is_live==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.sbado16De)},t.toDisplayString(f(m.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.sab16092023)},t.toDisplayString(f(m.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.div)},t.toDisplayString(m.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.chivasTvCanal)},t.toDisplayString(m.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[m.value.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(f(m.value.date_time_utc,1)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:t.normalizeClass([n.$style.sbado16De,n.$style.gameDate])},t.toDisplayString(f(m.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([n.$style.sab16092023,n.$style.gameDate])},t.toDisplayString(f(m.value.date_time_utc,0)),3)],64)),m.value.is_live||m.value.game_status!=1&&m.value.game_status!=4?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.divscore)},t.toDisplayString(c.value),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(n.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.divscore)},t.toDisplayString(m.value.score.join(" - ")),3)],2)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.gameStatus)},[m.value.is_live?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.liveMinutes)},[Jne,t.createTextVNode(" LIVE - "+t.toDisplayString(D.value)+"' ",1)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Finalizado "),m.value.penalties_score_home_team!=0||m.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",Kne," - Penales "+t.toDisplayString(m.value.penalties_score_home_team)+" - "+t.toDisplayString(m.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],64))],2),e.is_captured==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[m.value.is_live==1||m.value.game_status==1||Object.keys(m.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.viewButtomEvent),onClick:y[0]||(y[0]=_=>v(m.value))},[Qne,t.createTextVNode("  "),ere],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon1),alt:"",src:t.unref(Sf)(m.value.visiting_team.team_id,150)},null,10,tre),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name),id:"team-name"},t.toDisplayString(m.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgAtlasIcon),alt:"",src:t.unref(Sf)(m.value.visiting_team.team_id)},null,10,are),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name1),id:"team-name"},t.toDisplayString(m.value.visiting_team.acronym),3),m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.is_live==0&&m.value.game_status==1||Object.keys(m.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.containerEventsGameAwayteam)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.containerEvents)},[m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.goalsContainer)},[m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("img",nre)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.visiting_goals_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_).replace("(AG)","")),1),p!=m.value.minutes.visiting_goals_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),m.value.minutes.away_red_cards_minutes.length>0&&m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),m.value.minutes.away_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.$style.yellowContainer)},[m.value.minutes.away_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("img",rre)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.away_red_cards_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_)),1),p!=m.value.minutes.away_red_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),m.value.minutes.away_red_cards_minutes.length>0||m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),m.value.minutes.away_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(n.$style.redContainer)},[m.value.minutes.away_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("img",ire)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.away_yellow_cards_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_))+"'",1),p!=m.value.minutes.away_yellow_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.containerEventsGameAwayteam)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.containerEvents)},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.visiting_team.team_id]&&"goals"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.goalsContainer)},[ore,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].goals),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].goals[_].event.map(l=>`${l}'`).join(", ").replace("(AG)","")),1),p!=Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.visiting_team.team_id]&&"red"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length>0&&Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.yellowContainer)},[sre,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].red),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].red[_].event.map(l=>`${l}'`).join(", ")),1),p!=Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.visiting_team.team_id]&&"yellow"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length>0||Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.redContainer)},[lre,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].yellow[_].event.map(l=>`${l}'`).join(", ")),1),p!=Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.pcmobile)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.headerinfomobile)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon),alt:"",src:t.unref(Sf)(m.value.home_team.team_id,150)},null,10,cre),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgChivasIcon),alt:"",src:t.unref(Sf)(m.value.home_team.team_id)},null,10,dre),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.nameDesktop),id:"team-name"},t.toDisplayString(m.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.nameMobile),id:"team-name"},t.toDisplayString(m.value.home_team.acronym),3)],2),m.value.game_status==4&&m.value.is_live==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.sbado16De)},t.toDisplayString(f(m.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.sab16092023)},t.toDisplayString(f(m.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.div)},t.toDisplayString(m.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.chivasTvCanal)},t.toDisplayString(m.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[m.value.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(f(m.value.date_time_utc,1)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:t.normalizeClass([n.$style.sbado16De,n.$style.gameDate])},t.toDisplayString(f(m.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([n.$style.sab16092023,n.$style.gameDate])},t.toDisplayString(f(m.value.date_time_utc,0)),3)],64)),m.value.is_live||m.value.game_status!=1&&m.value.game_status!=4?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.divscore)},t.toDisplayString(c.value),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(n.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.divscore)},t.toDisplayString(m.value.score.join(" - ")),3)],2)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.gameStatus)},[m.value.is_live?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.liveMinutes)},[ure,t.createTextVNode(" LIVE - "+t.toDisplayString(D.value)+"' ",1)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Finalizado "),m.value.penalties_score_home_team!=0||m.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",hre," - Penales "+t.toDisplayString(m.value.penalties_score_home_team)+" - "+t.toDisplayString(m.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],64))],2)],2)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon1),alt:"",src:t.unref(Sf)(m.value.visiting_team.team_id,150)},null,10,pre),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name),id:"team-name"},t.toDisplayString(m.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgAtlasIcon),alt:"",src:t.unref(Sf)(m.value.visiting_team.team_id)},null,10,fre),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name1),id:"team-name"},t.toDisplayString(m.value.visiting_team.acronym),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.headereventsmobile)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.headereventsmobilecont)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.headereventsmobilecontlocal)},[m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.icongoalheader)},gre,2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.icongoalheader)},vre,2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.goalscontainermobile),style:{"justify-content":"left !important"}},[m.value.game_status==1?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(m.value.minutes.home_goals_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:t.normalizeClass(n.$style.itemmobilgoal)},t.toDisplayString(a(_).replace("(AG)",""))+"’",3))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].goals),(_,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].goals[_].event.map(l=>`${l}'`).join(", ").replace("(AG)","")),1)],64))),128)):t.createCommentVNode("",!0)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobile)},[m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobileyellow)},bre,2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobileyellow)},t.toDisplayString(m.value.minutes.home_yellow_cards_minutes.length),3)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobilered)},wre,2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobilered)},t.toDisplayString(m.value.minutes.home_red_cards_minutes.length),3)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobileyellow)},Cre,2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobileyellow)},t.toDisplayString(Object.keys(e.playsLive[e.game.home_team.team_id].yellow).length),3)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobilered)},Tre,2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobilered)},t.toDisplayString(Object.keys(e.playsLive[e.game.home_team.team_id].red).length),3)],2)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.headereventsmobileconttitle)},[e.is_captured==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.is_live==1||m.value.game_status==1||Object.keys(m.value.minutes).length>0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(n.$style.viewButtomEventMobile),onClick:y[1]||(y[1]=_=>v(m.value))},[t.createTextVNode(" ver desglose "),Ere],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.headereventsmobilecontaway)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobile)},[m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobileyellow)},t.toDisplayString(m.value.minutes.away_yellow_cards_minutes.length),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobileyellow)},Mre,2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobilered)},t.toDisplayString(m.value.minutes.away_red_cards_minutes.length),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobilered)},Pre,2)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobileyellow)},t.toDisplayString(Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow).length),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobileyellow)},Nre,2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobilered)},t.toDisplayString(Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobilered)},Ore,2)],2)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.goalscontainermobile),style:{"justify-content":"right !important"}},[m.value.game_status==1?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(m.value.minutes.visiting_goals_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:t.normalizeClass(n.$style.itemmobilgoal)},t.toDisplayString(a(_).replace("(AG)",""))+"’",3))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].goals),(_,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].goals[_].event.map(l=>`${l}'`).join(", ").replace("(AG)","")),1)],64))),128)):t.createCommentVNode("",!0)],64))],2),m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.icongoalheader)},Lre,2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.icongoalheader)},Rre,2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2)],2)],2)],2)],2))}},$re={$style:jne},jre=Pp(Vre,[["__cssModules",$re]]),Ure={class:"calendar-by-game__carousel"},Gre="https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",Hre={__name:"GSC-CalendarByGame",props:{showVideos:{type:Number,default:0},playsLive:{type:Object,default:()=>{}},infoLive:{type:Object,default:()=>{}},height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},is_captured:{type:Number,default:1},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},userTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},isTeamGamePerPage:{type:Boolean,default:!1},onlyGamesTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},tournamentType:{type:Number,default:0},checkLiveGamesIntervalMinutes:{type:Number,default:2},gamesEventsIntervalMinutes:{type:Number,default:2},checkStartedLiveGamesMinutes:{type:Number,default:5}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action","change-games-by-client-privileges","open-modal-event"],setup(e,{emit:r}){const i=e;let B=null,D=null,c=null;const m=t.ref([]),a=t.ref({}),v=t.ref(0),f=t.ref(null),n=t.ref({}),y=t.ref(new Map),_=t.ref(!1),p=t.ref(null),l=t.ref(null),o=t.ref(null),s=t.ref([]),u=t.ref(new Map),d=t.ref(new Set),h=t.computed(()=>i.isCup),g=t.computed(()=>i.isCupLegacy),b=t.computed(()=>({height:i.height,width:i.width})),w=t.computed(()=>{if(i.games)return le(i.games,i.isTeamGamePerPage);{const pe=y.value.get(n.value.key);return pe&&i.isTeamGamePerPage&&i.onlyGamesTeamId?[pe[0].filter(me=>me.home_team.team_id===i.onlyGamesTeamId||me.visiting_team.team_id===i.onlyGamesTeamId)]:pe||[]}}),x=t.computed(()=>i.areGamesCarouselType?w.value[0]:w.value),S=t.ref([]),k=t.ref(new Map),T=t.ref([]),C=t.ref(0),A=t.ref(0),E=t.computed(()=>{const pe=I(a.value),me=S.value.find(_e=>_e.key===pe);return me&&_.value&&(M(!1),ce(me)),pe});t.watch(()=>i.seasons,pe=>{pe&&pe.length&&(M(!0),m.value=pe.map(me=>me.id),F(pe,!0))},{immediate:!0,deep:!0}),t.watch(y,pe=>{if(i.onlyGamesTeamId&&pe.size){const me=Array.from(pe.values()).reduce((_e,xe)=>(xe.forEach(we=>{const Ee=we.find(Pe=>Pe.home_team.team_id===i.onlyGamesTeamId||Pe.visiting_team.team_id===i.onlyGamesTeamId);Ee&&_e.push(Ee)}),_e),[]);r("change-games-by-client-privileges",me)}},{immediate:!0});function M(pe){_.value=pe}function I(pe){const me=new Date().valueOf(),_e=Object.entries(Object.entries(pe).reduce((we,[Ee,Pe])=>(we[Ee]=null,Pe.forEach($e=>{$e.games.forEach(Te=>{if([1,0].includes(Te.game_status)||Te.is_live){const Ce=me-Te.dateTimeMillis;(we[Ee]===null||Ce<we[Ee])&&(we[Ee]=Ce)}})}),we),{}));if(!_e.length)return"1";const xe=_e.reduce((we,[Ee,Pe])=>{if(Pe!==null){const $e=k.value.get(Ee);(we.shortestMillisToNow===null||Pe<we.shortestMillisToNow&&$e.index>=we.scheduleKey.index)&&(we.shortestMillisToNow=Pe,we.round=Ee,we.scheduleKey=$e)}return we},{round:"",shortestMillisToNow:null,scheduleKey:null});return xe.shortestMillisToNow!==null?xe.round:_e[_e.length-1][0]}t.watch(()=>i.teamId,()=>{ee()},{immediate:!0});async function N(pe,me,_e=""){let xe=_e;try{const we={};i.token&&(we.Authorization=i.token),xe||(xe="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",pe.forEach(($e,Te)=>{xe+=`${Te===0?"":"&"}seasons=${$e}`}));const{data:{data:Ee,teams:Pe}}=await Qb.get(xe,{headers:we});return{seasonsAndGames:Ee,seasonsAndTeams:Pe}}catch(we){if(me>0)return N(pe,me-1,xe);throw new Error(we)}}function z(pe){for(const me of pe)if(!m.value.includes(me.season_id))return!0;return!1}async function F(pe,me){try{a.value={},A.value=0,C.value=0;let _e=0;const{seasonsAndGames:xe,seasonsAndTeams:we}=await N(pe.map(Pe=>Pe.id),3);if(me&&z(xe))return;xe.forEach(Pe=>{const{type:$e}=pe.find(Te=>Te.id===Pe.season_id);Pe.type=$e,Pe.games.forEach(Te=>{A.value++,([1,0].includes(Te.game_status)||Te.is_live)&&C.value++,Te.season_id=Pe.season_id}),$e===0&&(_e=Pe.season_id)}),p.value={seasonsGames:xe};const{teams:Ee}=we.find(Pe=>Pe.season_id===_e);l.value=Ee,r("change-teams",Ee),ee(),d.value.size?$():await R()}catch(_e){throw new Error(_e)}}async function R(){try{const pe=await J(),me=new Set;if(s.value=pe.data.reduce((_e,xe)=>(xe.games.forEach(we=>{me.add(we.game_id),_e.push(we)}),_e),[]),s.value.length){D||await V();const _e=[];d.value.forEach(xe=>{const we=u.value.get(xe);we&&new Date().valueOf()>we.dateTimeMillis&&_e.push(xe)}),_e.length&&_e.every(xe=>u.value.get(xe).isLiveTracked)&&q()}}catch(pe){throw new Error(pe)}}async function V(){try{const pe=[];for(const _e of s.value){const xe=u.value.get(_e.game_id);xe&&(xe.is_live=1,xe.game_status=4,xe.scheduleKey&&xe.scheduleKey.liveGamesIds.add(_e.game_id)),xe.isLiveTracked=!0,pe.push(X(_e.game_id))}const me=await Promise.all(pe);for(const _e of me){const xe=u.value.get(_e.game_id);if(xe){const we=[Number(_e.score[xe.home_team.team_id.toString()])+Number(_e.score[`own_${xe.visiting_team.team_id.toString()}`]),Number(_e.score[xe.visiting_team.team_id.toString()])+Number(_e.score[`own_${xe.home_team.team_id.toString()}`])],Ee=we[0],Pe=we[1];xe.score=[Number.isNaN(Ee)?0:Ee,Number.isNaN(Pe)?0:Pe],Q(xe,_e.plays)}}D||Z()}catch(pe){throw new Error(pe)}}function $(){d.value.size&&d.value.forEach(pe=>{const me=u.value.get(pe);if(me){const _e=new Date().valueOf();if(60*1e3*30+me.dateTimeMillis-_e>0){const xe=me.dateTimeMillis-_e-3e5;setTimeout(()=>{U()},xe>0?xe:0)}}})}function U(){q(),c||(c=setInterval(()=>{R()},i.checkLiveGamesIntervalMinutes*60*1e3))}function Z(){W(),D=setInterval(()=>{V()},i.gamesEventsIntervalMinutes*60*1e3)}function q(){clearInterval(c),c=null}function W(){clearInterval(D),D=null}function Q(pe,me){for(const _e of me)if(_e.category_id===0&&_e.game_status_id===13){const xe=u.value.get(_e.game_id);s.value=s.value.filter(we=>we.game_id!==pe.game_id),xe.is_live=0,xe.game_status=0,xe.scheduleKey&&xe.scheduleKey.liveGamesIds.delete(pe.game_id)}}async function X(pe){try{return(await Qb.get(`${Gre}${pe}`,{headers:{Authorization:`${i.token}`}})).data}catch(me){throw new Error(me)}}async function J(){try{if(i.seasons.length===0)return[];const pe=i.seasons.reduce((xe,we)=>`${xe}seasons=${we.id}&`,""),me=Qb.create({headers:{Authorization:`${i.token}`}}),{data:_e}=await me.get(`https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/lives?${pe}`);return _e}catch(pe){throw new Error(pe)}}function ee(){if(q(),!l.value)return;u.value.clear(),d.value.clear(),T.value=[];const pe=p.value&&p.value.seasonsGames?p.value.seasonsGames.map(me=>{const _e=me.games.reduce((xe,we)=>{if(i.onlyGamesTeamId&&i.onlyGamesTeamId!==we.home_team&&i.onlyGamesTeamId!==we.visiting_team)return xe;const Ee={...we},Pe=new Date,[$e,Te,Ce]=Ee.date.split("-"),[ye,ge,Me]=Ee.schedule.split(":"),Se=new Date(Number($e),Number(Te)-1,Number(Ce),Number(ye),Number(ge),Number(Me));return Ee.dateTimeMillis=Se.valueOf(),Ee.home_team=l.value.find(ze=>ze.team_id===we.home_team),Ee.visiting_team=l.value.find(ze=>ze.team_id===we.visiting_team),Ee.game_status===4&&Pe.getFullYear()===Se.getFullYear()&&Pe.getMonth()===Se.getMonth()&&Pe.getDate()===Se.getDate()&&d.value.add(Ee.game_id),u.value.set(Ee.game_id,Ee),i.teamId&&Ee.home_team.team_id!==i.teamId&&Ee.visiting_team.team_id!==i.teamId||(xe[we.matchday_abbreviation]?xe[we.matchday_abbreviation][we.game_status===3?"canceled":we.date]?xe[we.matchday_abbreviation][we.game_status===3?"canceled":we.date].push(Ee):xe[we.matchday_abbreviation][we.game_status===3?"canceled":we.date]=[Ee]:xe[we.matchday_abbreviation]={[we.game_status===3?"canceled":we.date]:[Ee]},i.userTeamId&&([1,0].includes(Ee.game_status)||Ee.is_live)&&(Ee.home_team.team_id===i.userTeamId||Ee.visiting_team.team_id===i.userTeamId)&&T.value.push(Ee)),xe},{});for(let[xe,we]of Object.entries(_e))_e[xe]=Object.entries(we).map(([Ee,Pe])=>({date:Ee,games:Pe.sort(($e,Te)=>$e.dateTimeMillis-Te.dateTimeMillis)})),_e[xe].sort((Ee,Pe)=>Ee.date<Pe.date?-1:Ee.date>Pe.date?1:0);return{type:me.type,weight:me.type===0?0:me.type===2?1:2,schedule:_e}}):[];pe.sort((me,_e)=>me.weight-_e.weight),a.value=pe.reduce((me,_e)=>{for(const[xe,we]of Object.entries(_e.schedule))if(_e.type===0)if([1,2].includes(i.tournamentType)){const Ee=ite.get(i.tournamentType);if(Ee){const Pe=Ee.get(xe);Pe&&(me[Pe.matchDayAbbreviation]=we)}}else if(h.value){const Ee=xe.replace("M",""),Pe=Ee;g.value?me[rte[Ee]||Pe]=we:me[nte[xe]||Pe]=we}else me[Number(xe.replace("M","")).toString()]=we;else _e.type===2?xe.charAt(1)=="I"?me[`PI${Number(xe.replace("PI",""))}`]=we:me[`R${Number(xe.replace("PO",""))}`]=we:_e.type===1&&(me[ate[xe]]=we);return me},{}),y.value=new Map,k.value.clear(),S.value=Array.from(Object.entries(a.value).reduce((me,[_e,xe],we)=>{const Ee=Number(_e);let Pe="";Number.isNaN(Ee)?Pe=_e:Pe=Ee<10?`0${Ee}`:_e;const $e={key:_e,value:Ee,valueText:Pe,index:we,liveGamesIds:new Set};k.value.set(_e,$e),me.set(_e,$e);const Te=xe.reduce((ye,ge)=>(ge.games.forEach(Me=>{Me.game_id===i.defaultGameId&&(o.value=_e),Me.roundAbbreviation=Number.isNaN(Ee)?Ee:`J ${Ee}`,Me.scheduleKey=$e,Me.is_live&&$e.liveGamesIds.add(Me.game_id)}),ye=ye.concat(ge.games),ye),[]),Ce=le(Te);return y.value.set(_e,Ce),me},new Map).values())}function le(pe,me=!1){const _e=[];if(i.gamesPerMatchDay>0){let xe=[];pe.forEach((we,Ee)=>{xe.push(we),(Ee+1)%i.gamesPerMatchDay===0&&(_e.push([...xe]),xe=[])}),xe.length&&_e.push([...xe])}else _e.push(pe);return me&&i.isTeamGamePerPage&&i.defaultGameId?_e.filter(xe=>xe.game_id===i.defaultGameId||xe.gameId===i.defaultGameId):_e}async function oe(pe){try{const{data:me}=await Qb.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return me}catch(me){if(pe>0)return oe(pe-1);throw new Error(me)}}function se(){if(window.ResizeObserver)B=new ResizeObserver(()=>{v.value=f.value.clientWidth}),B.observe(f.value);else throw new Error("Resize observer not supported!")}function ce(pe){n.value.value!==pe.value&&(n.value=pe,r("change-round",pe))}function ae(pe){i.areGamesCarouselType&&r("change-game-carousel",pe.selectedItem)}function ne(pe){r("action",pe),ue(pe)}function ie(pe){r("open-modal-event",pe)}function ue(pe){const me="PLAY_RESUME",_e="PLAY_GOALS",xe=[607,608,12,55,54,35,14,52,15,53,466,477],we=[12,55,"35_r","54_r"],{game_id:Ee,season_id:Pe}=pe.game;let $e={seasonId:Pe,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIdsToFilter:[Ee],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};pe.action===me?($e.categoryIds=xe,$e.advancedFilter.playListTitle="Resumen",r("openmedia",$e)):pe.action===_e&&($e.categoryIds=we,$e.advancedFilter.playListTitle="Goles",r("openmedia",$e))}async function he(){try{if(!i.awaitForSeasons&&!i.games){const pe=(await oe(3)).find(xe=>xe._id===1),me=pe.seasons[0],_e=[{id:me.id,type:me.type}];pe&&pe.tournament&&r("tournament-selected",pe.tournament),me.related_seasons&&me.related_seasons.length&&_e.push(...me.related_seasons.map(xe=>({id:xe.id,type:xe.type}))),await F(_e,!1)}}catch(pe){throw new Error(pe)}}return t.onMounted(()=>{se()}),he(),(pe,me)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:f,class:"calendar-by-game",style:t.normalizeStyle(b.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(Hae,{key:0,"full-tournament-schedule":a.value,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":v.value,"games-pages":y.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:ne},null,8,["full-tournament-schedule","team-id","show-videos","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&S.value?(t.openBlock(),t.createBlock(Ste,{key:0,"match-days":S.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":v.value,"default-match-day-key":o.value,"closest-match-day":e.sortCalendar?E.value:"",onChangeMatchDay:ce},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):t.createCommentVNode("",!0),t.createElementVNode("div",Ure,[w.value?(t.openBlock(),t.createBlock(t.unref(WI),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:x.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType&&!e.isTeamGamePerPage,"items-to-show":e.areGamesCarouselType&&!e.isTeamGamePerPage?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType&&!e.isTeamGamePerPage,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:ae},{default:t.withCtx(({item:_e})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(jre,{key:0,is_captured:e.is_captured,game:_e,onOpenModalEvent:ie,"plays-live":e.playsLive,"info-live":e.infoLive},null,8,["is_captured","game","plays-live","info-live"])):(t.openBlock(),t.createBlock(Vae,{key:1,"team-id":e.teamId,"show-videos":e.showVideos,"games-per-page":_e,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":v.value,"is-round-mode":e.isRoundMode,onAction:ne},null,8,["team-id","show-videos","games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):t.createCommentVNode("",!0)])],64))],4))}},Wre=Pp(Hre,[["__scopeId","data-v-5fabec8f"]]);function qre(){return tP().__VUE_DEVTOOLS_GLOBAL_HOOK__}function tP(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Yre=typeof Proxy=="function",Xre="devtools-plugin:setup",Zre="plugin:settings:set";let Fg,r8;function Jre(){var e;return Fg!==void 0||(typeof window<"u"&&window.performance?(Fg=!0,r8=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Fg=!0,r8=globalThis.perf_hooks.performance):Fg=!1),Fg}function Kre(){return Jre()?r8.now():Date.now()}class Qre{constructor(r,i){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=r,this.hook=i;const B={};if(r.settings)for(const m in r.settings){const a=r.settings[m];B[m]=a.defaultValue}const D=`__vue-devtools-plugin-settings__${r.id}`;let c=Object.assign({},B);try{const m=localStorage.getItem(D),a=JSON.parse(m);Object.assign(c,a)}catch{}this.fallbacks={getSettings(){return c},setSettings(m){try{localStorage.setItem(D,JSON.stringify(m))}catch{}c=m},now(){return Kre()}},i&&i.on(Zre,(m,a)=>{m===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(m,a)=>this.target?this.target.on[a]:(...v)=>{this.onQueue.push({method:a,args:v})}}),this.proxiedTarget=new Proxy({},{get:(m,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...v)=>(this.targetQueue.push({method:a,args:v,resolve:()=>{}}),this.fallbacks[a](...v)):(...v)=>new Promise(f=>{this.targetQueue.push({method:a,args:v,resolve:f})})})}async setRealTarget(r){this.target=r;for(const i of this.onQueue)this.target.on[i.method](...i.args);for(const i of this.targetQueue)i.resolve(await this.target[i.method](...i.args))}}function eie(e,r){const i=e,B=tP(),D=qre(),c=Yre&&i.enableEarlyProxy;if(D&&(B.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!c))D.emit(Xre,e,r);else{const m=c?new Qre(i,D):null;(B.__VUE_DEVTOOLS_PLUGINS__=B.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:i,setupFn:r,proxy:m}),m&&r(m.proxiedTarget)}}/*!
14
+ */const Kd={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"}},qI={itemsToShow:{default:Kd.itemsToShow,type:Number},itemsToScroll:{default:Kd.itemsToScroll,type:Number},wrapAround:{default:Kd.wrapAround,type:Boolean},throttle:{default:Kd.throttle,type:Number},snapAlign:{default:Kd.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Kd.transition,type:Number},breakpoints:{default:Kd.breakpoints,type:Object},autoplay:{default:Kd.autoplay,type:Number},pauseAutoplayOnHover:{default:Kd.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Kd.mouseDrag,type:Boolean},touchDrag:{default:Kd.touchDrag,type:Boolean},dir:{default:Kd.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Kd.i18n,type:Object},settings:{default(){return{}},type:Object}};function ote({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function ste({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function Q6({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function lte({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let m=r;switch(B){case"center":case"center-odd":m-=(c-1)/2;break;case"center-even":m-=(c-2)/2;break;case"end":m-=c-1;break}return D?m:Q6({val:m,max:i-c,min:0})}function YI(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,...YI(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function e8({val:e,max:r,min:i=0}){return e>r?e8({val:e-(r+1),max:r,min:i}):e<i?e8({val:e+(r+1),max:r,min:i}):e}function cte(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function dte(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function ute(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var hte=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Kd))),r=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"},ute(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),pte=t.defineComponent({name:"Carousel",props:qI,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),m=t.ref([]),a=t.ref(0),v=t.ref(0),f=t.reactive(Object.assign({},Kd));let n=Object.assign({},Kd),y;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let u,d;t.provide("config",f),t.provide("slidesCount",v),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){y=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function g(){if(!y||!Object.keys(y).length)return;const ae=Object.keys(y).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie);let ne=Object.assign({},n);ae.some(ie=>{const ue=window.matchMedia(`(min-width: ${ie}px)`).matches;return ue&&(ne=Object.assign(Object.assign({},ne),y[ie])),ue}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=dte(()=>{g(),S(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){v.value<=0||(l.value=Math.ceil((v.value-1)/2),o.value=ote({config:f,slidesCount:v.value}),s.value=ste({config:f,slidesCount:v.value}),f.wrapAround||(_.value=Q6({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),g(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{d&&clearTimeout(d),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let k=!1;const T={x:0,y:0},C={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(k=ae.type==="touchstart",k||ae.preventDefault(),!(!k&&ae.button!==0||U.value)&&(T.x=k?ae.touches[0].clientX:ae.clientX,T.y=k?ae.touches[0].clientY:ae.clientY,document.addEventListener(k?"touchmove":"mousemove",F,!0),document.addEventListener(k?"touchend":"mouseup",R,!0)))}const F=cte(ae=>{M.value=!0,C.x=k?ae.touches[0].clientX:ae.clientX,C.y=k?ae.touches[0].clientY:ae.clientY;const ne=C.x-T.x,ie=C.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!k){const ue=he=>{window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(k?"touchmove":"mousemove",F,!0),document.removeEventListener(k?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(u=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){u&&(clearInterval(u),u=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:Q6({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:v.value}),U.value=!0,p.value=_.value,_.value=ne,d=setTimeout(()=>{if(f.wrapAround){const ie=e8({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:v.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>lte({config:f,currentSlide:_.value,slidesCount:v.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${v.value*a.value}px`:"",width:"100%"}});function ee(){h(),g(),S(),x(),$()}Object.keys(qI).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(v,S),i("before-init"),h();const le={config:f,slidesCount:v,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:g,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=YI(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((_e,xe)=>t.cloneVNode(_e,{index:-ae.length+xe,isClone:!0,key:`clone-before-${xe}`})),me=ae.map((_e,xe)=>t.cloneVNode(_e,{index:ae.length+xe,isClone:!0,key:`clone-after-${xe}`}));ie=[...pe,...ae,...me]}m.value=ae,v.value=Math.max(ae.length,1);const ue=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},ue);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(hte)])}}}),t8;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(t8||(t8={}));const fte={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function mte(e){return e in t8}const a8=e=>{const r=t.inject("config",t.reactive(Object.assign({},Kd))),i=String(e.name),B=`icon${i.charAt(0).toUpperCase()+i.slice(1)}`;if(!i||typeof i!="string"||!mte(i))return;const D=fte[i],c=t.h("path",{d:D}),m=r.i18n[B]||e.title||i,a=t.h("title",m);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":m},[a,c])};a8.props={name:String,title:String};const gte=(e,{slots:r,attrs:i})=>{const{next:B,prev:D}=r||{},c=t.inject("config",t.reactive(Object.assign({},Kd))),m=t.inject("maxSlide",t.ref(1)),a=t.inject("minSlide",t.ref(1)),v=t.inject("currentSlide",t.ref(1)),f=t.inject("nav",{}),{dir:n,wrapAround:y,i18n:_}=c,p=n==="rtl",l=t.h("button",{type:"button",class:["carousel__prev",!y&&v.value<=a.value&&"carousel__prev--disabled",i==null?void 0:i.class],"aria-label":_.ariaPreviousSlide,onClick:f.prev},(D==null?void 0:D())||t.h(a8,{name:p?"arrowRight":"arrowLeft"})),o=t.h("button",{type:"button",class:["carousel__next",!y&&v.value>=m.value&&"carousel__next--disabled",i==null?void 0:i.class],"aria-label":_.ariaNextSlide,onClick:f.next},(B==null?void 0:B())||t.h(a8,{name:p?"arrowLeft":"arrowRight"}));return[l,o]};var yte=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},Kd))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),m=t.computed(()=>e.index===B.value),a=t.computed(()=>e.index===B.value-1),v=t.computed(()=>e.index===B.value+1),f=t.computed(()=>{const n=Math.floor(D.value),y=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=y});return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f.value,"carousel__slide--active":m.value,"carousel__slide--prev":a.value,"carousel__slide--next":v.value,"carousel__slide--sliding":c.value},"aria-hidden":!f.value},(n=r.default)===null||n===void 0?void 0:n.call(r,{isActive:m.value,isClone:e.isClone,isPrev:a.value,isNext:v.value,isSliding:c.value,isVisible:f.value}))}}});const Pp=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},XI=e=>(t.pushScopeId("data-v-d88e6c89"),e=e(),t.popScopeId(),e),vte={key:1,class:"match-day__live"},_te=XI(()=>t.createElementVNode("div",{class:"match-day__live__bullet"},null,-1)),bte=XI(()=>t.createElementVNode("div",{class:"match-day__live__text"},"LIVE",-1)),xte=[_te,bte],wte={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:r}){const i=e,B=t.computed(()=>{const a={"background-color":i.backgroundColor,height:i.height};return i.matchDay.key===i.matchDaySelected.key&&(a["border-bottom"]=`solid 1px ${i.bottomLineColor}`,a["background-color"]=i.selectedMatchDayBackgroundColor),i.isLandingMode||(a["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),a}),D=t.computed(()=>({color:i.numberColor,"font-family":i.numberFontFamily,"font-size":i.numberFontSize})),c=t.computed(()=>({color:i.textColor,"font-family":i.textFontFamily,"font-size":i.textFontSize}));function m(a){r("click-match-day",a)}return(a,v)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...B.value}),onClick:v[0]||(v[0]=f=>m(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(D.value)},t.toDisplayString(e.matchDay.valueText),5),!Number.isNaN(e.matchDay.value)&&!e.matchDay.liveGamesIds.size?(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",c.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5)):e.matchDay.liveGamesIds.size?(t.openBlock(),t.createElementBlock("div",vte,xte)):t.createCommentVNode("",!0)],4))}},kte=Pp(wte,[["__scopeId","data-v-d88e6c89"]]),Cte={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:r}){const i=e;t.useCssVars(f=>({"59858af6":c.value,"5987b976":m.value}));const B=t.ref(null),D=t.computed(()=>({itemsToShow:i.itemsToShow,itemsToScroll:i.itemsToScroll,snapAlign:"start"})),c=t.computed(()=>B.value.data.currentSlide.value==0?"none":"inline"),m=t.computed(()=>B.value.data.currentSlide.value==B.value.data.maxSlide.value?"none":"inline"),a=t.ref({});t.watch(()=>i.closestMatchDay,f=>{if(f){const n=i.matchDays.find(y=>y.key===f);v(n||i.matchDays[0],!0)}}),t.watch(()=>i.matchDays,f=>{if(!i.closestMatchDay&&f&&f.length){const n=f.find(y=>y.key===i.defaultMatchDayKey);a.value=n||f[0],r("change-match-day",a.value)}else i.closestMatchDay&&(a.value=f.find(n=>n.key===i.closestMatchDay)||{})},{immediate:!0});function v(f,n=!1){n&&B.value&&B.value.slideTo(f.index),a.value=f,r("change-match-day",a.value)}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day-picker",style:t.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[(t.openBlock(),t.createBlock(t.unref(pte),t.mergeProps(D.value,{modelValue:a.value.index,ref_key:"matchDayPickerCarousel",ref:B,key:a.value.index}),{addons:t.withCtx(()=>[t.createVNode(t.unref(gte))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,y=>(t.openBlock(),t.createBlock(t.unref(yte),{key:y.key},{default:t.withCtx(()=>[t.createVNode(kte,t.mergeProps(i,{"match-day":y,"match-day-selected":a.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:v}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16,["modelValue"]))],4))}},Ste=Pp(Cte,[["__scopeId","data-v-85216dc3"]]);function Sf(e,r=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${r}/${e}.png`}function ZI(e){if(typeof e=="string"){let r=e.replace("M","J ");return r=r.replace("PO1","CFI"),r=r.replace("PO2","CFV"),r=r.replace("PO3","SFI"),r=r.replace("PO4","SFV"),r=r.replace("PO5","FI"),r=r.replace("PO6","FV"),r}}function Tte(e){let r="";return e.game_status!=4&&(r+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(r+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),r}const Ete={class:"game-info__teams"},Ate={class:"game-info__teams__team__logo"},Mte=["src"],Ite={class:"game-info__teams__detail"},Pte={key:0,class:"game-info__teams__detail__pre-game"},Bte={class:"game-info__teams__team__logo away"},Nte=["src"],zte={key:0},Ote={key:0},Fte={key:1},Lte={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const r=e,i=t.computed(()=>{let f=r.game.schedule.split(":");return f.pop(),f=f.join(":"),f}),B=t.computed(()=>{let f="120px";return(r.isLandingMode||r.isAcronymVisible)&&(f="70px"),{"min-width":f}}),D=t.computed(()=>({"font-size":r.namesFontSize,"font-family":r.namesFontFamily,color:r.colorPrimary})),c=t.computed(()=>({"font-size":r.additionalInfoFontSize,"font-family":r.additionalInfoFontFamily,color:r.colorSecondary})),m=t.computed(()=>({"font-size":r.scoreFontSize,"font-family":r.scoreFontFamily,color:r.colorPrimary})),a=t.computed(()=>({"font-size":r.timeZoneFontSize,"font-family":r.namesFontFamily,color:r.colorPrimary})),v=t.computed(()=>({"font-size":r.timeFontSize,"font-family":r.namesFontFamily,color:r.colorPrimary}));return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",Ete,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(B.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(D.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",Ate,[t.createElementVNode("img",{src:t.unref(Sf)(e.game.home_team.team_id),alt:""},null,8,Mte)])],4),t.createElementVNode("div",Ite,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",Pte,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(v.value)},t.toDisplayString(i.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(a.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(m.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",{class:"game-info__teams__team away",style:t.normalizeStyle(B.value)},[t.createElementVNode("div",Bte,[t.createElementVNode("img",{src:t.unref(Sf)(e.game.visiting_team.team_id),alt:""},null,8,Nte)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(D.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle([c.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",zte,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",Ote,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",Fte,t.toDisplayString(t.unref(Tte)(e.game)),1))],4)],4))}},JI=Pp(Lte,[["__scopeId","data-v-87b8c34a"]]),KI=e=>(t.pushScopeId("data-v-8839c56d"),e=e(),t.popScopeId(),e),Dte={class:"game-status"},Rte={key:0,class:"game-status__day__live"},Vte=KI(()=>t.createElementVNode("span",null,"LIVE",-1)),$te=KI(()=>t.createElementVNode("span",{class:"dot"},null,-1)),jte=[Vte,$te],Ute={key:0,class:"game-status__round"},Gte={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const r=e,i=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],B=t.computed(()=>{let m="";if(r.dateTimeMillis){const a=new Date(r.dateTimeMillis);m=`${a.getDate()} ${i[a.getMonth()]}`}return m}),D=t.computed(()=>({"font-size":r.fontSize})),c=t.computed(()=>{let m=[];return r.isLive?m.push("live"):r.status!==1&&m.push("pre-match"),m});return(m,a)=>(t.openBlock(),t.createElementBlock("div",Dte,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",c.value]),style:t.normalizeStyle(D.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",Rte,jte)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(B.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Ute,t.toDisplayString(e.roundAbbreviation),1))]))}},QI=Pp(Gte,[["__scopeId","data-v-8839c56d"]]),Bp={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},Hte=e=>(t.pushScopeId("data-v-0d97b1a8"),e=e(),t.popScopeId(),e),Wte={class:"actions"},qte={class:"actions__row"},Yte=Hte(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),Xte=[Yte],Zte={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jte=["fill"],Kte={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qte=["fill"],eae={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({backgroundColor:i.iconBackgroundColor,borderColor:i.iconBorderColor}));function D(c){r("action",c)}return(c,m)=>(t.openBlock(),t.createElementBlock("div",Wte,[t.createElementVNode("div",qte,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:m[0]||(m[0]=a=>D(t.unref(Bp).STATISTICS))},Xte,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:m[1]||(m[1]=a=>D(t.unref(Bp).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Zte,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:i.iconColor},null,8,Jte)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:m[2]||(m[2]=a=>D(t.unref(Bp).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Kte,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:i.iconColor},null,8,Qte)]))])):t.createCommentVNode("",!0)])]))}},tae=Pp(eae,[["__scopeId","data-v-0d97b1a8"]]),n8=e=>(t.pushScopeId("data-v-7ec0f118"),e=e(),t.popScopeId(),e),aae={class:"actions"},nae={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rae=["fill"],iae={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oae=["fill"],sae=n8(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),lae=[sae],cae={key:0,class:"actions__videos"},dae={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uae=["fill"],hae={key:1,class:"actions__videos__thumbnails"},pae=n8(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),fae=n8(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),mae={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gae=["stroke"],yae={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},hasGoals:{type:Boolean,default:!0},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({backgroundColor:i.iconBackgroundColor,borderColor:i.iconBorderColor})),D=t.computed(()=>{const v=[];return i.componentWidth<540&&v.push("mobile"),v}),c=t.computed(()=>i.componentWidth>730),m=t.computed(()=>({color:i.thumbnailColor,fontFamily:i.thumbnailFontFamily,fontSize:i.thumbnailFontSize}));function a(v){r("action",v)}return(v,f)=>(t.openBlock(),t.createElementBlock("div",aae,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",D.value])},[e.gameStatus===4444&&!e.isLive&&!c.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:f[0]||(f[0]=n=>a(t.unref(Bp).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",nae,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:i.iconColor},null,8,rae)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!c.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:f[1]||(f[1]=n=>a(t.unref(Bp).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",iae,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:i.iconColor},null,8,oae)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:f[2]||(f[2]=n=>a(t.unref(Bp).STATISTICS))},lae,4)],2),c.value?(t.openBlock(),t.createElementBlock("div",cae,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:f[3]||(f[3]=n=>a(t.unref(Bp).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",dae,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:i.iconColor},null,8,uae)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",hae,[e.hasGoals?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__videos__thumbnails__thumbnail",onClick:f[4]||(f[4]=n=>a(t.unref(Bp).PLAY_GOALS))},[pae,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(m.value)}," Goles ",4)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:f[5]||(f[5]=n=>a(t.unref(Bp).PLAY_RESUME))},[fae,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(m.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:f[6]||(f[6]=n=>a(t.unref(Bp).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",mae,[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,gae)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},vae=Pp(yae,[["__scopeId","data-v-7ec0f118"]]),ex=e=>(t.pushScopeId("data-v-58b99b1d"),e=e(),t.popScopeId(),e),_ae={class:"row-landing__game-status"},bae={class:"row-landing__game-actions"},xae={class:"row-full__game-status"},wae={class:"row-full__game-info"},kae={key:0},Cae={class:"row-full__game-actions"},Sae={class:"game-events-container"},Tae=ex(()=>t.createElementVNode("div",{class:"separator"},null,-1)),Eae=ex(()=>t.createElementVNode("div",null,null,-1)),Aae={class:"game-events__data"},Mae={class:"game-events__data__team"},Iae=["src"],Pae={class:"game-events__data__team__event__text"},Bae={class:"game-events__data__team away"},Nae={class:"game-events__data__team__event__text"},zae=["src"],Oae=ex(()=>t.createElementVNode("div",null,null,-1)),Fae=ex(()=>t.createElementVNode("div",null,null,-1)),Lae={__name:"CalendarRow",props:{teamId:{type:Number,default:0},showVideos:{type:Number,default:0},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:r}){const i=e,B={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},D=t.ref(!1),c=t.ref(!1),m=t.computed(()=>{const s={homeTeam:[],awayTeam:[]};return i.game&&i.game.game_status!==4&&!i.game.is_live&&i.game.minutes&&(s.homeTeam.push(...l(i.game.minutes.home_goals_minutes,B.GOAL)),s.homeTeam.push(...l(i.game.minutes.home_red_cards_minutes,B.RED_CARD)),s.homeTeam.push(...l(i.game.minutes.home_yellow_cards_minutes,B.YELLOW_CARD)),s.awayTeam.push(...l(i.game.minutes.visiting_goals_minutes,B.GOAL)),s.awayTeam.push(...l(i.game.minutes.away_red_cards_minutes,B.RED_CARD)),s.awayTeam.push(...l(i.game.minutes.away_yellow_cards_minutes,B.YELLOW_CARD))),s}),a=t.computed(()=>{const s=m.value.homeTeam.length,u=m.value.awayTeam.length;return s+u>0}),v=t.computed(()=>{const s=i.game.score[0],u=i.game.score[1];return s>0||u>0}),f=t.computed(()=>({"background-color":i.backgroundColor})),n=t.computed(()=>({height:i.height})),y=t.computed(()=>{const s={game:[],events:[]};return i.componentWidth<500?(s.events.push("break-point-3"),s.game.push("break-point-2")):i.componentWidth<730?(s.game.push("break-point-2"),s.events.push("break-point-2")):i.componentWidth<910&&(s.game.push("break-point-1"),s.events.push("break-point-1")),s}),_=t.computed(()=>({isLandingMode:i.isLandingMode,game:i.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),p=t.computed(()=>({"font-size":i.televisionFontSize,"font-family":i.televisionFontFamily,color:i.televisionColor}));t.watch(()=>i.componentWidth,s=>{c.value=s<910});function l(s,u){return s.map(d=>({iconUrl:u,text:d}))}function o(s){s===Bp.SHOW_GAME_EVENTS?D.value=!D.value:r("action",{action:s,game:i.game})}return(s,u)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(f.value)},[t.createVNode(JI,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",_ae,[t.createVNode(QI,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(ZI)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",bae,[e.game.home_team?(t.openBlock(),t.createBlock(tae,{key:0,"is-live":!!e.game.is_live,"has-video":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?!!e.game.has_video:!1,"game-status":e.game.game_status,"show-play-button":!0,onAction:o},null,8,["is-live","has-video","game-status"])):t.createCommentVNode("",!0)])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(f.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",y.value.game]),style:t.normalizeStyle(n.value)},[t.createElementVNode("div",xae,[t.createVNode(QI,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(ZI)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",wae,[t.createVNode(JI,t.mergeProps(_.value,{"is-television-visible":c.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-full__television",style:t.normalizeStyle(p.value)},[!c.value&&(e.game.game_status===4||e.game.is_live)?(t.openBlock(),t.createElementBlock("span",kae,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Cae,[e.game.home_team?(t.openBlock(),t.createBlock(vae,{key:0,"is-live":!!e.game.is_live,"has-video":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?!!e.game.has_video:!1,"has-actions":a.value,"has-goals":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?v.value:!1,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":D.value,"component-width":e.componentWidth,onAction:o},null,8,["is-live","has-video","has-actions","has-goals","game-status","are-events-visible","component-width"])):t.createCommentVNode("",!0)])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Sae,[Tae,t.createElementVNode("div",{class:t.normalizeClass(["game-events",y.value.events])},[Eae,t.createElementVNode("div",Aae,[t.createElementVNode("div",Mae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.homeTeam,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:`h${h}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:d.iconUrl},null,8,Iae),t.createElementVNode("div",Pae,t.toDisplayString(d.text),1)]))),128))]),t.createElementVNode("div",Bae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.awayTeam,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:`a${h}`,class:"game-events__data__team__event"},[t.createElementVNode("div",Nae,t.toDisplayString(d.text),1),t.createElementVNode("img",{src:d.iconUrl},null,8,zae)]))),128))])]),Oae,Fae],2)],512),[[t.vShow,D.value]])]),_:1})],4))}},eP=Pp(Lae,[["__scopeId","data-v-58b99b1d"]]),Dae={class:"calendar-table"},Rae={__name:"CalendarTable",props:{teamId:{type:Number,default:0},showVideos:{type:Number,default:0},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:r}){const i=e;function B(c){return c%2===0?i.evenRowColor:i.oddRowColor}function D(c){r("action",c)}return(c,m)=>(t.openBlock(),t.createElementBlock("div",Dae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(a,v)=>(t.openBlock(),t.createBlock(eP,{key:a.game_id,game:a,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":B(v),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:D},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},Vae=Pp(Rae,[["__scopeId","data-v-ebabdc0c"]]),$ae={class:"calendar-by-team"},jae={class:"playing-as-picker"},Uae={class:"calendar-by-team__page"},Gae={__name:"CalendarTableByTeam",props:{showVideos:{type:Number,default:0},teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:r}){const i=e,B=t.ref(0),D=t.computed(()=>{let v=[];if(i.gamesPages.size>0){const f=Array.from(i.gamesPages.entries()).reduce((n,[y,_])=>{const p=Number(y),l=Number.isNaN(p)?y:`Jornada ${p<10?"0":""}${p}`,o=_.reduce((s,u)=>(s.push(...u),s),[]).filter(s=>B.value===0||B.value===1&&s.visiting_team.team_id===i.teamId?!0:B.value===2&&s.home_team.team_id===i.teamId);return o.length>0&&n.push({roundName:l,games:o}),n},[]);v.push(f)}return v});function c(v){r("action",v)}function m(v){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),B.value=v,document.querySelector("#opc"+v).classList.add("selected")}function a(v){let f=v;switch(v){case"PI1":f="Play In 1";break;case"PI2":f="Play In 2";break;case"R1":f="Repechaje";break;case"CFI":f="Cuartos de final - Ida";break;case"CFV":f="Cuartos de final - Vuelta";break;case"SFI":f="Semifinal - Ida";break;case"SFV":f="Semifinal - Vuelta";break;case"FI":f="Final - Ida";break;case"FV":f="Final - Vuelta";break}return f}return(v,f)=>(t.openBlock(),t.createElementBlock("div",$ae,[t.createElementVNode("div",jae,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:f[0]||(f[0]=n=>m(0))}," Todas "),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:f[1]||(f[1]=n=>m(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:f[2]||(f[2]=n=>m(2))},"Local")]),t.createVNode(t.unref(WI),{"is-pagination-visible":e.isPaginationVisible,items:D.value},{default:t.withCtx(({item:n})=>[t.createElementVNode("div",Uae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n,(y,_)=>(t.openBlock(),t.createElementBlock("div",{key:_,class:"calendar-by-team__page__round"},[t.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:t.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},t.toDisplayString(a(y.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.games,p=>(t.openBlock(),t.createBlock(eP,{key:p.game_id,game:p,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:c},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},Hae=Pp(Gae,[["__scopeId","data-v-d93dcb09"]]),Wae="_pccard_h7wuw_3",qae="_pcmobile_h7wuw_17",Yae="_headerinfomobile_h7wuw_25",Xae="_liveMinutes_h7wuw_31",Zae="_viewButtomEvent_h7wuw_39",Jae="_viewButtomEventMobile_h7wuw_67",Kae="_containerEvents_h7wuw_95",Qae="_sepEvents_h7wuw_107",ene="_goalsContainer_h7wuw_127",tne="_yellowContainer_h7wuw_145",ane="_redContainer_h7wuw_161",nne="_containerEventsGameHometeam_h7wuw_177",rne="_containerEventsGameAwayteam_h7wuw_203",ine="_image62Icon_h7wuw_229",one="_imgChivasIcon_h7wuw_247",sne="_nameDesktop_h7wuw_261",lne="_nameMobile_h7wuw_287",cne="_homeTeam_h7wuw_311",dne="_sbado16De_h7wuw_333",une="_gameDate_h7wuw_351",hne="_sab16092023_h7wuw_359",pne="_div_h7wuw_385",fne="_divscore_h7wuw_403",mne="_cst_h7wuw_423",gne="_hour_h7wuw_441",yne="_score_h7wuw_443",vne="_chivasTvCanal_h7wuw_465",_ne="_gameStatus_h7wuw_489",bne="_matchInfo_h7wuw_511",xne="_image62Icon1_h7wuw_539",wne="_name_h7wuw_261",kne="_imgAtlasIcon_h7wuw_583",Cne="_name1_h7wuw_597",Sne="_awayTeam_h7wuw_621",Tne="_matchCard_h7wuw_643",Ene="_headereventsmobile_h7wuw_987",Ane="_headereventsmobilecont_h7wuw_1005",Mne="_headereventsmobilecontlocal_h7wuw_1021",Ine="_icongoalheader_h7wuw_1033",Pne="_conttarjetasmobile_h7wuw_1043",Bne="_conttarjetasmobileyellow_h7wuw_1053",Nne="_iconmobileyellow_h7wuw_1065",zne="_txtmobileyellow_h7wuw_1081",One="_iconmobilered_h7wuw_1109",Fne="_txtmobilered_h7wuw_1125",Lne="_conttarjetasmobilered_h7wuw_1155",Dne="_itemmobilgoal_h7wuw_1167",Rne="_goalscontainermobile_h7wuw_1197",Vne="_headereventsmobileconttitle_h7wuw_1227",$ne="_headereventsmobilecontaway_h7wuw_1273",jne={pccard:Wae,pcmobile:qae,headerinfomobile:Yae,liveMinutes:Xae,viewButtomEvent:Zae,viewButtomEventMobile:Jae,containerEvents:Kae,sepEvents:Qae,goalsContainer:ene,yellowContainer:tne,redContainer:ane,containerEventsGameHometeam:nne,containerEventsGameAwayteam:rne,image62Icon:ine,imgChivasIcon:one,nameDesktop:sne,nameMobile:lne,homeTeam:cne,sbado16De:dne,gameDate:une,sab16092023:hne,div:pne,divscore:fne,cst:mne,hour:gne,score:yne,chivasTvCanal:vne,gameStatus:_ne,matchInfo:bne,image62Icon1:xne,name:wne,imgAtlasIcon:kne,name1:Cne,awayTeam:Sne,matchCard:Tne,headereventsmobile:Ene,headereventsmobilecont:Ane,headereventsmobilecontlocal:Mne,icongoalheader:Ine,conttarjetasmobile:Pne,conttarjetasmobileyellow:Bne,iconmobileyellow:Nne,txtmobileyellow:zne,iconmobilered:One,txtmobilered:Fne,conttarjetasmobilered:Lne,itemmobilgoal:Dne,goalscontainermobile:Rne,headereventsmobileconttitle:Vne,headereventsmobilecontaway:$ne},Une=["src"],Gne=["src"],Hne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),Wne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),qne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),Yne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),Xne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),Zne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),Jne=t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/point-indicador-live.png"},null,-1),Kne={key:0},Qne=t.createElementVNode("div",null,"ver desglose",-1),ere=t.createElementVNode("img",{width:"13",style:{"margin-top":"1px"},src:"http://golstatsimages.blob.core.windows.net/todoelfut/arrow-live-down.png"},null,-1),tre=["src"],are=["src"],nre={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},rre={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},ire={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},ore=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),sre=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),lre=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),cre=["src"],dre=["src"],ure=t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/point-indicador-live.png"},null,-1),hre={key:0},pre=["src"],fre=["src"],mre=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),gre=[mre],yre=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),vre=[yre],_re=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),bre=[_re],xre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),wre=[xre],kre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),Cre=[kre],Sre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),Tre=[Sre],Ere=t.createElementVNode("img",{style:{"margin-left":"6px"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-down.png"},null,-1),Are=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),Mre=[Are],Ire=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),Pre=[Ire],Bre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),Nre=[Bre],zre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),Ore=[zre],Fre=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),Lre=[Fre],Dre=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),Rre=[Dre],Vre={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}},playsLive:{type:Object,default:()=>{}},is_captured:{type:Number,default:1},infoLive:{type:Object,default:()=>{}}},emits:["open-modal-event"],setup(e,{emit:r}){const i=e,B=new Map([[1,45],[2,90],[3,105],[4,120]]),D=t.computed(()=>{const n=B.get(i.infoLive.recent_lapse);return n&&n<i.infoLive.minute?`${n}' + ${i.infoLive.minute-n}'`:`${i.infoLive.minute}'`}),c=t.computed(()=>{let n=0,y=0,_=!1;var p=!1;return Object.keys(i.infoLive).includes("score")&&(i.infoLive.score["own_"+i.game.home_team.team_id]!=null&&i.infoLive.score["own_"+i.game.home_team.team_id]!=0&&(p=!0),i.infoLive.score["own_"+i.game.visiting_team.team_id]!=null&&i.infoLive.score["own_"+i.game.visiting_team.team_id]!=0&&(_=!0),_?i.infoLive.score[i.game.home_team.team_id]!=null&&(n=parseInt(i.infoLive.score[i.game.home_team.team_id])+parseInt(i.infoLive.score["own_"+i.game.visiting_team.team_id])):i.infoLive.score[i.game.home_team.team_id]!=null&&(n=parseInt(i.infoLive.score[i.game.home_team.team_id])),p?i.infoLive.score[i.game.visiting_team.team_id]!=null&&(y=parseInt(i.infoLive.score[i.game.visiting_team.team_id])+parseInt(i.infoLive.score["own_"+i.game.home_team.team_id])):i.infoLive.score[i.game.visiting_team.team_id]!=null&&(y=parseInt(i.infoLive.score[i.game.visiting_team.team_id]))),n+" - "+y}),m=t.computed(()=>{const n={...i.game};return n.gameSchedule=i.game.schedule.split(":"),n.gameSchedule.pop(),n.gameSchedule=n.gameSchedule.join(":"),n});function a(n){let y=n.split(" "),_=y[y.length-2];return _.includes("+")?y[y.length-3]+"+"+y[y.length-1]:(_=y[y.length-1],_)}function v(n){r("open-modal-event",n)}function f(n,y){const _=new Date(n);if(y==1){const p=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],l=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${p[_.getDay()]} ${_.getDate()} de ${l[_.getMonth()]}`}else return`${_.getDate()}-${_.getMonth()+1}-${_.getFullYear()}`}return(n,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.pccard)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon),alt:"",src:t.unref(Sf)(m.value.home_team.team_id,150)},null,10,Une),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgChivasIcon),alt:"",src:t.unref(Sf)(m.value.home_team.team_id)},null,10,Gne),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.nameDesktop),id:"team-name"},t.toDisplayString(m.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.nameMobile),id:"team-name"},t.toDisplayString(m.value.home_team.acronym),3),m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.is_live==0&&m.value.game_status==1||Object.keys(m.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.containerEventsGameHometeam)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.containerEvents)},[m.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.goalsContainer)},[Hne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.home_goals_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_).replace("(AG)","")),1),p!=m.value.minutes.home_goals_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),m.value.minutes.home_red_cards_minutes.length>0&&m.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),m.value.minutes.home_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.$style.yellowContainer)},[Wne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.home_red_cards_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_)),1),p!=m.value.minutes.home_red_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),m.value.minutes.home_red_cards_minutes.length>0||m.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),m.value.minutes.home_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(n.$style.redContainer)},[qne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.home_yellow_cards_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_)),1),p!=m.value.minutes.home_yellow_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.containerEventsGameHometeam)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.containerEvents)},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.home_team.team_id]&&"goals"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.goalsContainer)},[Yne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].goals),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].goals[_].event.map(l=>`${l}'`).join(", ").replace("(AG)","")),1),p!=Object.keys(e.playsLive[e.game.home_team.team_id].goals).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.home_team.team_id]&&"red"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.playsLive[e.game.home_team.team_id].red).length>0&&Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.home_team.team_id].red).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.yellowContainer)},[Xne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].red),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].red[_].event.map(l=>`${l}'`).join(", ")),1),p!=Object.keys(e.playsLive[e.game.home_team.team_id].red).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.home_team.team_id]&&"yellow"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(e.playsLive[e.game.home_team.team_id].red).length>0||Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.home_team.team_id].yellow).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.redContainer)},[Zne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].yellow),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].yellow[_].event.map(l=>`${l}'`).join(", ")),1),p!=Object.keys(e.playsLive[e.game.home_team.team_id].yellow).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64))],2),m.value.game_status==4&&m.value.is_live==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.sbado16De)},t.toDisplayString(f(m.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.sab16092023)},t.toDisplayString(f(m.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.div)},t.toDisplayString(m.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.chivasTvCanal)},t.toDisplayString(m.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[m.value.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(f(m.value.date_time_utc,1)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:t.normalizeClass([n.$style.sbado16De,n.$style.gameDate])},t.toDisplayString(f(m.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([n.$style.sab16092023,n.$style.gameDate])},t.toDisplayString(f(m.value.date_time_utc,0)),3)],64)),m.value.is_live||m.value.game_status!=1&&m.value.game_status!=4?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.divscore)},t.toDisplayString(c.value),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(n.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.divscore)},t.toDisplayString(m.value.score.join(" - ")),3)],2)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.gameStatus)},[m.value.is_live?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.liveMinutes)},[Jne,t.createTextVNode(" LIVE - "+t.toDisplayString(D.value)+"' ",1)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Finalizado "),m.value.penalties_score_home_team!=0||m.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",Kne," - Penales "+t.toDisplayString(m.value.penalties_score_home_team)+" - "+t.toDisplayString(m.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],64))],2),e.is_captured==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[m.value.is_live==1||m.value.game_status==1||Object.keys(m.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.viewButtomEvent),onClick:y[0]||(y[0]=_=>v(m.value))},[Qne,t.createTextVNode("  "),ere],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon1),alt:"",src:t.unref(Sf)(m.value.visiting_team.team_id,150)},null,10,tre),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name),id:"team-name"},t.toDisplayString(m.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgAtlasIcon),alt:"",src:t.unref(Sf)(m.value.visiting_team.team_id)},null,10,are),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name1),id:"team-name"},t.toDisplayString(m.value.visiting_team.acronym),3),m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.is_live==0&&m.value.game_status==1||Object.keys(m.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.containerEventsGameAwayteam)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.containerEvents)},[m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.goalsContainer)},[m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("img",nre)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.visiting_goals_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_).replace("(AG)","")),1),p!=m.value.minutes.visiting_goals_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),m.value.minutes.away_red_cards_minutes.length>0&&m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),m.value.minutes.away_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.$style.yellowContainer)},[m.value.minutes.away_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("img",rre)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.away_red_cards_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_)),1),p!=m.value.minutes.away_red_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),m.value.minutes.away_red_cards_minutes.length>0||m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),m.value.minutes.away_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(n.$style.redContainer)},[m.value.minutes.away_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("img",ire)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.away_yellow_cards_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_))+"'",1),p!=m.value.minutes.away_yellow_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.containerEventsGameAwayteam)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.containerEvents)},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.visiting_team.team_id]&&"goals"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.goalsContainer)},[ore,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].goals),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].goals[_].event.map(l=>`${l}'`).join(", ").replace("(AG)","")),1),p!=Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.visiting_team.team_id]&&"red"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length>0&&Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.yellowContainer)},[sre,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].red),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].red[_].event.map(l=>`${l}'`).join(", ")),1),p!=Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.visiting_team.team_id]&&"yellow"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length>0||Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.redContainer)},[lre,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].yellow[_].event.map(l=>`${l}'`).join(", ")),1),p!=Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.pcmobile)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.headerinfomobile)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon),alt:"",src:t.unref(Sf)(m.value.home_team.team_id,150)},null,10,cre),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgChivasIcon),alt:"",src:t.unref(Sf)(m.value.home_team.team_id)},null,10,dre),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.nameDesktop),id:"team-name"},t.toDisplayString(m.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.nameMobile),id:"team-name"},t.toDisplayString(m.value.home_team.acronym),3)],2),m.value.game_status==4&&m.value.is_live==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.sbado16De)},t.toDisplayString(f(m.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.sab16092023)},t.toDisplayString(f(m.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.div)},t.toDisplayString(m.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.chivasTvCanal)},t.toDisplayString(m.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[m.value.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(f(m.value.date_time_utc,1)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:t.normalizeClass([n.$style.sbado16De,n.$style.gameDate])},t.toDisplayString(f(m.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([n.$style.sab16092023,n.$style.gameDate])},t.toDisplayString(f(m.value.date_time_utc,0)),3)],64)),m.value.is_live||m.value.game_status!=1&&m.value.game_status!=4?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.divscore)},t.toDisplayString(c.value),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(n.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.divscore)},t.toDisplayString(m.value.score.join(" - ")),3)],2)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.gameStatus)},[m.value.is_live?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.liveMinutes)},[ure,t.createTextVNode(" LIVE - "+t.toDisplayString(D.value)+"' ",1)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Finalizado "),m.value.penalties_score_home_team!=0||m.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",hre," - Penales "+t.toDisplayString(m.value.penalties_score_home_team)+" - "+t.toDisplayString(m.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],64))],2)],2)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon1),alt:"",src:t.unref(Sf)(m.value.visiting_team.team_id,150)},null,10,pre),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name),id:"team-name"},t.toDisplayString(m.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgAtlasIcon),alt:"",src:t.unref(Sf)(m.value.visiting_team.team_id)},null,10,fre),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name1),id:"team-name"},t.toDisplayString(m.value.visiting_team.acronym),3)],2)],2),m.value.game_status!=4?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.headereventsmobile)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.headereventsmobilecont)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.headereventsmobilecontlocal)},[m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.icongoalheader)},gre,2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.icongoalheader)},vre,2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.goalscontainermobile),style:{"justify-content":"left !important"}},[m.value.game_status==1?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(m.value.minutes.home_goals_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:t.normalizeClass(n.$style.itemmobilgoal)},t.toDisplayString(a(_).replace("(AG)",""))+"’",3))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].goals),(_,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].goals[_].event.map(l=>`${l}'`).join(", ").replace("(AG)","")),1)],64))),128)):t.createCommentVNode("",!0)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobile)},[m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobileyellow)},bre,2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobileyellow)},t.toDisplayString(m.value.minutes.home_yellow_cards_minutes.length),3)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobilered)},wre,2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobilered)},t.toDisplayString(m.value.minutes.home_red_cards_minutes.length),3)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobileyellow)},Cre,2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobileyellow)},t.toDisplayString(Object.keys(e.playsLive[e.game.home_team.team_id].yellow).length),3)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobilered)},Tre,2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobilered)},t.toDisplayString(Object.keys(e.playsLive[e.game.home_team.team_id].red).length),3)],2)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.headereventsmobileconttitle)},[e.is_captured==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.is_live==1||m.value.game_status==1||Object.keys(m.value.minutes).length>0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(n.$style.viewButtomEventMobile),onClick:y[1]||(y[1]=_=>v(m.value))},[t.createTextVNode(" ver desglose "),Ere],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.headereventsmobilecontaway)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobile)},[m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobileyellow)},t.toDisplayString(m.value.minutes.away_yellow_cards_minutes.length),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobileyellow)},Mre,2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobilered)},t.toDisplayString(m.value.minutes.away_red_cards_minutes.length),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobilered)},Pre,2)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobileyellow)},t.toDisplayString(Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow).length),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobileyellow)},Nre,2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobilered)},t.toDisplayString(Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobilered)},Ore,2)],2)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.goalscontainermobile),style:{"justify-content":"right !important"}},[m.value.game_status==1?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(m.value.minutes.visiting_goals_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:t.normalizeClass(n.$style.itemmobilgoal)},t.toDisplayString(a(_).replace("(AG)",""))+"’",3))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].goals),(_,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].goals[_].event.map(l=>`${l}'`).join(", ").replace("(AG)","")),1)],64))),128)):t.createCommentVNode("",!0)],64))],2),m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.icongoalheader)},Lre,2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.icongoalheader)},Rre,2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2)],2)],2)):t.createCommentVNode("",!0)],2)],2))}},$re={$style:jne},jre=Pp(Vre,[["__cssModules",$re]]),Ure={class:"calendar-by-game__carousel"},Gre="https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",Hre={__name:"GSC-CalendarByGame",props:{showVideos:{type:Number,default:0},playsLive:{type:Object,default:()=>{}},infoLive:{type:Object,default:()=>{}},height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},is_captured:{type:Number,default:1},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},userTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},isTeamGamePerPage:{type:Boolean,default:!1},onlyGamesTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},tournamentType:{type:Number,default:0},checkLiveGamesIntervalMinutes:{type:Number,default:2},gamesEventsIntervalMinutes:{type:Number,default:2},checkStartedLiveGamesMinutes:{type:Number,default:5}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action","change-games-by-client-privileges","open-modal-event"],setup(e,{emit:r}){const i=e;let B=null,D=null,c=null;const m=t.ref([]),a=t.ref({}),v=t.ref(0),f=t.ref(null),n=t.ref({}),y=t.ref(new Map),_=t.ref(!1),p=t.ref(null),l=t.ref(null),o=t.ref(null),s=t.ref([]),u=t.ref(new Map),d=t.ref(new Set),h=t.computed(()=>i.isCup),g=t.computed(()=>i.isCupLegacy),b=t.computed(()=>({height:i.height,width:i.width})),w=t.computed(()=>{if(i.games)return le(i.games,i.isTeamGamePerPage);{const pe=y.value.get(n.value.key);return pe&&i.isTeamGamePerPage&&i.onlyGamesTeamId?[pe[0].filter(me=>me.home_team.team_id===i.onlyGamesTeamId||me.visiting_team.team_id===i.onlyGamesTeamId)]:pe||[]}}),x=t.computed(()=>i.areGamesCarouselType?w.value[0]:w.value),S=t.ref([]),k=t.ref(new Map),T=t.ref([]),C=t.ref(0),A=t.ref(0),E=t.computed(()=>{const pe=I(a.value),me=S.value.find(_e=>_e.key===pe);return me&&_.value&&(M(!1),ce(me)),pe});t.watch(()=>i.seasons,pe=>{pe&&pe.length&&(M(!0),m.value=pe.map(me=>me.id),F(pe,!0))},{immediate:!0,deep:!0}),t.watch(y,pe=>{if(i.onlyGamesTeamId&&pe.size){const me=Array.from(pe.values()).reduce((_e,xe)=>(xe.forEach(we=>{const Ee=we.find(Pe=>Pe.home_team.team_id===i.onlyGamesTeamId||Pe.visiting_team.team_id===i.onlyGamesTeamId);Ee&&_e.push(Ee)}),_e),[]);r("change-games-by-client-privileges",me)}},{immediate:!0});function M(pe){_.value=pe}function I(pe){const me=new Date().valueOf(),_e=Object.entries(Object.entries(pe).reduce((we,[Ee,Pe])=>(we[Ee]=null,Pe.forEach($e=>{$e.games.forEach(Te=>{if([1,0].includes(Te.game_status)||Te.is_live){const Ce=me-Te.dateTimeMillis;(we[Ee]===null||Ce<we[Ee])&&(we[Ee]=Ce)}})}),we),{}));if(!_e.length)return"1";const xe=_e.reduce((we,[Ee,Pe])=>{if(Pe!==null){const $e=k.value.get(Ee);(we.shortestMillisToNow===null||Pe<we.shortestMillisToNow&&$e.index>=we.scheduleKey.index)&&(we.shortestMillisToNow=Pe,we.round=Ee,we.scheduleKey=$e)}return we},{round:"",shortestMillisToNow:null,scheduleKey:null});return xe.shortestMillisToNow!==null?xe.round:_e[_e.length-1][0]}t.watch(()=>i.teamId,()=>{ee()},{immediate:!0});async function N(pe,me,_e=""){let xe=_e;try{const we={};i.token&&(we.Authorization=i.token),xe||(xe="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",pe.forEach(($e,Te)=>{xe+=`${Te===0?"":"&"}seasons=${$e}`}));const{data:{data:Ee,teams:Pe}}=await Qb.get(xe,{headers:we});return{seasonsAndGames:Ee,seasonsAndTeams:Pe}}catch(we){if(me>0)return N(pe,me-1,xe);throw new Error(we)}}function z(pe){for(const me of pe)if(!m.value.includes(me.season_id))return!0;return!1}async function F(pe,me){try{a.value={},A.value=0,C.value=0;let _e=0;const{seasonsAndGames:xe,seasonsAndTeams:we}=await N(pe.map(Pe=>Pe.id),3);if(me&&z(xe))return;xe.forEach(Pe=>{const{type:$e}=pe.find(Te=>Te.id===Pe.season_id);Pe.type=$e,Pe.games.forEach(Te=>{A.value++,([1,0].includes(Te.game_status)||Te.is_live)&&C.value++,Te.season_id=Pe.season_id}),$e===0&&(_e=Pe.season_id)}),p.value={seasonsGames:xe};const{teams:Ee}=we.find(Pe=>Pe.season_id===_e);l.value=Ee,r("change-teams",Ee),ee(),d.value.size?$():await R()}catch(_e){throw new Error(_e)}}async function R(){try{const pe=await J(),me=new Set;if(s.value=pe.data.reduce((_e,xe)=>(xe.games.forEach(we=>{me.add(we.game_id),_e.push(we)}),_e),[]),s.value.length){D||await V();const _e=[];d.value.forEach(xe=>{const we=u.value.get(xe);we&&new Date().valueOf()>we.dateTimeMillis&&_e.push(xe)}),_e.length&&_e.every(xe=>u.value.get(xe).isLiveTracked)&&q()}}catch(pe){throw new Error(pe)}}async function V(){try{const pe=[];for(const _e of s.value){const xe=u.value.get(_e.game_id);xe&&(xe.is_live=1,xe.game_status=4,xe.scheduleKey&&xe.scheduleKey.liveGamesIds.add(_e.game_id)),xe.isLiveTracked=!0,pe.push(X(_e.game_id))}const me=await Promise.all(pe);for(const _e of me){const xe=u.value.get(_e.game_id);if(xe){const we=[Number(_e.score[xe.home_team.team_id.toString()])+Number(_e.score[`own_${xe.visiting_team.team_id.toString()}`]),Number(_e.score[xe.visiting_team.team_id.toString()])+Number(_e.score[`own_${xe.home_team.team_id.toString()}`])],Ee=we[0],Pe=we[1];xe.score=[Number.isNaN(Ee)?0:Ee,Number.isNaN(Pe)?0:Pe],Q(xe,_e.plays)}}D||Z()}catch(pe){throw new Error(pe)}}function $(){d.value.size&&d.value.forEach(pe=>{const me=u.value.get(pe);if(me){const _e=new Date().valueOf();if(60*1e3*30+me.dateTimeMillis-_e>0){const xe=me.dateTimeMillis-_e-3e5;setTimeout(()=>{U()},xe>0?xe:0)}}})}function U(){q(),c||(c=setInterval(()=>{R()},i.checkLiveGamesIntervalMinutes*60*1e3))}function Z(){W(),D=setInterval(()=>{V()},i.gamesEventsIntervalMinutes*60*1e3)}function q(){clearInterval(c),c=null}function W(){clearInterval(D),D=null}function Q(pe,me){for(const _e of me)if(_e.category_id===0&&_e.game_status_id===13){const xe=u.value.get(_e.game_id);s.value=s.value.filter(we=>we.game_id!==pe.game_id),xe.is_live=0,xe.game_status=0,xe.scheduleKey&&xe.scheduleKey.liveGamesIds.delete(pe.game_id)}}async function X(pe){try{return(await Qb.get(`${Gre}${pe}`,{headers:{Authorization:`${i.token}`}})).data}catch(me){throw new Error(me)}}async function J(){try{if(i.seasons.length===0)return[];const pe=i.seasons.reduce((xe,we)=>`${xe}seasons=${we.id}&`,""),me=Qb.create({headers:{Authorization:`${i.token}`}}),{data:_e}=await me.get(`https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/lives?${pe}`);return _e}catch(pe){throw new Error(pe)}}function ee(){if(q(),!l.value)return;u.value.clear(),d.value.clear(),T.value=[];const pe=p.value&&p.value.seasonsGames?p.value.seasonsGames.map(me=>{const _e=me.games.reduce((xe,we)=>{if(i.onlyGamesTeamId&&i.onlyGamesTeamId!==we.home_team&&i.onlyGamesTeamId!==we.visiting_team)return xe;const Ee={...we},Pe=new Date,[$e,Te,Ce]=Ee.date.split("-"),[ye,ge,Me]=Ee.schedule.split(":"),Se=new Date(Number($e),Number(Te)-1,Number(Ce),Number(ye),Number(ge),Number(Me));return Ee.dateTimeMillis=Se.valueOf(),Ee.home_team=l.value.find(ze=>ze.team_id===we.home_team),Ee.visiting_team=l.value.find(ze=>ze.team_id===we.visiting_team),Ee.game_status===4&&Pe.getFullYear()===Se.getFullYear()&&Pe.getMonth()===Se.getMonth()&&Pe.getDate()===Se.getDate()&&d.value.add(Ee.game_id),u.value.set(Ee.game_id,Ee),i.teamId&&Ee.home_team.team_id!==i.teamId&&Ee.visiting_team.team_id!==i.teamId||(xe[we.matchday_abbreviation]?xe[we.matchday_abbreviation][we.game_status===3?"canceled":we.date]?xe[we.matchday_abbreviation][we.game_status===3?"canceled":we.date].push(Ee):xe[we.matchday_abbreviation][we.game_status===3?"canceled":we.date]=[Ee]:xe[we.matchday_abbreviation]={[we.game_status===3?"canceled":we.date]:[Ee]},i.userTeamId&&([1,0].includes(Ee.game_status)||Ee.is_live)&&(Ee.home_team.team_id===i.userTeamId||Ee.visiting_team.team_id===i.userTeamId)&&T.value.push(Ee)),xe},{});for(let[xe,we]of Object.entries(_e))_e[xe]=Object.entries(we).map(([Ee,Pe])=>({date:Ee,games:Pe.sort(($e,Te)=>$e.dateTimeMillis-Te.dateTimeMillis)})),_e[xe].sort((Ee,Pe)=>Ee.date<Pe.date?-1:Ee.date>Pe.date?1:0);return{type:me.type,weight:me.type===0?0:me.type===2?1:2,schedule:_e}}):[];pe.sort((me,_e)=>me.weight-_e.weight),a.value=pe.reduce((me,_e)=>{for(const[xe,we]of Object.entries(_e.schedule))if(_e.type===0)if([1,2].includes(i.tournamentType)){const Ee=ite.get(i.tournamentType);if(Ee){const Pe=Ee.get(xe);Pe&&(me[Pe.matchDayAbbreviation]=we)}}else if(h.value){const Ee=xe.replace("M",""),Pe=Ee;g.value?me[rte[Ee]||Pe]=we:me[nte[xe]||Pe]=we}else me[Number(xe.replace("M","")).toString()]=we;else _e.type===2?xe.charAt(1)=="I"?me[`PI${Number(xe.replace("PI",""))}`]=we:me[`R${Number(xe.replace("PO",""))}`]=we:_e.type===1&&(me[ate[xe]]=we);return me},{}),y.value=new Map,k.value.clear(),S.value=Array.from(Object.entries(a.value).reduce((me,[_e,xe],we)=>{const Ee=Number(_e);let Pe="";Number.isNaN(Ee)?Pe=_e:Pe=Ee<10?`0${Ee}`:_e;const $e={key:_e,value:Ee,valueText:Pe,index:we,liveGamesIds:new Set};k.value.set(_e,$e),me.set(_e,$e);const Te=xe.reduce((ye,ge)=>(ge.games.forEach(Me=>{Me.game_id===i.defaultGameId&&(o.value=_e),Me.roundAbbreviation=Number.isNaN(Ee)?Ee:`J ${Ee}`,Me.scheduleKey=$e,Me.is_live&&$e.liveGamesIds.add(Me.game_id)}),ye=ye.concat(ge.games),ye),[]),Ce=le(Te);return y.value.set(_e,Ce),me},new Map).values())}function le(pe,me=!1){const _e=[];if(i.gamesPerMatchDay>0){let xe=[];pe.forEach((we,Ee)=>{xe.push(we),(Ee+1)%i.gamesPerMatchDay===0&&(_e.push([...xe]),xe=[])}),xe.length&&_e.push([...xe])}else _e.push(pe);return me&&i.isTeamGamePerPage&&i.defaultGameId?_e.filter(xe=>xe.game_id===i.defaultGameId||xe.gameId===i.defaultGameId):_e}async function oe(pe){try{const{data:me}=await Qb.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return me}catch(me){if(pe>0)return oe(pe-1);throw new Error(me)}}function se(){if(window.ResizeObserver)B=new ResizeObserver(()=>{v.value=f.value.clientWidth}),B.observe(f.value);else throw new Error("Resize observer not supported!")}function ce(pe){n.value.value!==pe.value&&(n.value=pe,r("change-round",pe))}function ae(pe){i.areGamesCarouselType&&r("change-game-carousel",pe.selectedItem)}function ne(pe){r("action",pe),ue(pe)}function ie(pe){r("open-modal-event",pe)}function ue(pe){const me="PLAY_RESUME",_e="PLAY_GOALS",xe=[607,608,12,55,54,35,14,52,15,53,466,477],we=[12,55,"35_r","54_r"],{game_id:Ee,season_id:Pe}=pe.game;let $e={seasonId:Pe,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIdsToFilter:[Ee],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};pe.action===me?($e.categoryIds=xe,$e.advancedFilter.playListTitle="Resumen",r("openmedia",$e)):pe.action===_e&&($e.categoryIds=we,$e.advancedFilter.playListTitle="Goles",r("openmedia",$e))}async function he(){try{if(!i.awaitForSeasons&&!i.games){const pe=(await oe(3)).find(xe=>xe._id===1),me=pe.seasons[0],_e=[{id:me.id,type:me.type}];pe&&pe.tournament&&r("tournament-selected",pe.tournament),me.related_seasons&&me.related_seasons.length&&_e.push(...me.related_seasons.map(xe=>({id:xe.id,type:xe.type}))),await F(_e,!1)}}catch(pe){throw new Error(pe)}}return t.onMounted(()=>{se()}),he(),(pe,me)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:f,class:"calendar-by-game",style:t.normalizeStyle(b.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(Hae,{key:0,"full-tournament-schedule":a.value,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":v.value,"games-pages":y.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:ne},null,8,["full-tournament-schedule","team-id","show-videos","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&S.value?(t.openBlock(),t.createBlock(Ste,{key:0,"match-days":S.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":v.value,"default-match-day-key":o.value,"closest-match-day":e.sortCalendar?E.value:"",onChangeMatchDay:ce},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):t.createCommentVNode("",!0),t.createElementVNode("div",Ure,[w.value?(t.openBlock(),t.createBlock(t.unref(WI),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:x.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType&&!e.isTeamGamePerPage,"items-to-show":e.areGamesCarouselType&&!e.isTeamGamePerPage?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType&&!e.isTeamGamePerPage,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:ae},{default:t.withCtx(({item:_e})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(jre,{key:0,is_captured:e.is_captured,game:_e,onOpenModalEvent:ie,"plays-live":e.playsLive,"info-live":e.infoLive},null,8,["is_captured","game","plays-live","info-live"])):(t.openBlock(),t.createBlock(Vae,{key:1,"team-id":e.teamId,"show-videos":e.showVideos,"games-per-page":_e,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":v.value,"is-round-mode":e.isRoundMode,onAction:ne},null,8,["team-id","show-videos","games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):t.createCommentVNode("",!0)])],64))],4))}},Wre=Pp(Hre,[["__scopeId","data-v-5fabec8f"]]);function qre(){return tP().__VUE_DEVTOOLS_GLOBAL_HOOK__}function tP(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Yre=typeof Proxy=="function",Xre="devtools-plugin:setup",Zre="plugin:settings:set";let Fg,r8;function Jre(){var e;return Fg!==void 0||(typeof window<"u"&&window.performance?(Fg=!0,r8=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Fg=!0,r8=globalThis.perf_hooks.performance):Fg=!1),Fg}function Kre(){return Jre()?r8.now():Date.now()}class Qre{constructor(r,i){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=r,this.hook=i;const B={};if(r.settings)for(const m in r.settings){const a=r.settings[m];B[m]=a.defaultValue}const D=`__vue-devtools-plugin-settings__${r.id}`;let c=Object.assign({},B);try{const m=localStorage.getItem(D),a=JSON.parse(m);Object.assign(c,a)}catch{}this.fallbacks={getSettings(){return c},setSettings(m){try{localStorage.setItem(D,JSON.stringify(m))}catch{}c=m},now(){return Kre()}},i&&i.on(Zre,(m,a)=>{m===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(m,a)=>this.target?this.target.on[a]:(...v)=>{this.onQueue.push({method:a,args:v})}}),this.proxiedTarget=new Proxy({},{get:(m,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...v)=>(this.targetQueue.push({method:a,args:v,resolve:()=>{}}),this.fallbacks[a](...v)):(...v)=>new Promise(f=>{this.targetQueue.push({method:a,args:v,resolve:f})})})}async setRealTarget(r){this.target=r;for(const i of this.onQueue)this.target.on[i.method](...i.args);for(const i of this.targetQueue)i.resolve(await this.target[i.method](...i.args))}}function eie(e,r){const i=e,B=tP(),D=qre(),c=Yre&&i.enableEarlyProxy;if(D&&(B.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!c))D.emit(Xre,e,r);else{const m=c?new Qre(i,D):null;(B.__VUE_DEVTOOLS_PLUGINS__=B.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:i,setupFn:r,proxy:m}),m&&r(m.proxiedTarget)}}/*!
15
15
  * vuex v4.0.2
16
16
  * (c) 2021 Evan You
17
17
  * @license MIT
@@ -126,7 +126,7 @@
126
126
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...i){const B=new this(r);return i.forEach(D=>B.set(D)),B}static accessor(r){const i=(this[OW]=this[OW]={accessors:{}}).accessors,B=this.prototype;function D(c){const m=x_(c);i[m]||(tCt(B,c),i[m]=!0)}return Ir.isArray(r)?r.forEach(D):D(r),this}};C4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ir.reduceDescriptors(C4.prototype,({value:e},r)=>{let i=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(B){this[i]=B}}}),Ir.freezeMethods(C4);const rm=C4;function BE(e,r){const i=this||IE,B=r||i,D=rm.from(B.headers);let c=B.data;return Ir.forEach(e,function(m){c=m.call(i,c,D.normalize(),r?r.status:void 0)}),D.normalize(),c}function FW(e){return!!(e&&e.__CANCEL__)}function w_(e,r,i){Nl.call(this,e??"canceled",Nl.ERR_CANCELED,r,i),this.name="CanceledError"}Ir.inherits(w_,Nl,{__CANCEL__:!0});function aCt(e,r,i){const B=i.config.validateStatus;!i.status||!B||B(i.status)?e(i):r(new Nl("Request failed with status code "+i.status,[Nl.ERR_BAD_REQUEST,Nl.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}const nCt=Ff.hasStandardBrowserEnv?{write(e,r,i,B,D,c){const m=[e+"="+encodeURIComponent(r)];Ir.isNumber(i)&&m.push("expires="+new Date(i).toGMTString()),Ir.isString(B)&&m.push("path="+B),Ir.isString(D)&&m.push("domain="+D),c===!0&&m.push("secure"),document.cookie=m.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function rCt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function iCt(e,r){return r?e.replace(/\/?\/$/,"")+"/"+r.replace(/^\/+/,""):e}function LW(e,r){return e&&!rCt(r)?iCt(e,r):r}const oCt=Ff.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let i;function B(D){let c=D;return e&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=B(window.location.href),function(D){const c=Ir.isString(D)?B(D):D;return c.protocol===i.protocol&&c.host===i.host}}():function(){return function(){return!0}}();function sCt(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function lCt(e,r){e=e||10;const i=new Array(e),B=new Array(e);let D=0,c=0,m;return r=r!==void 0?r:1e3,function(a){const v=Date.now(),f=B[c];m||(m=v),i[D]=a,B[D]=v;let n=c,y=0;for(;n!==D;)y+=i[n++],n=n%e;if(D=(D+1)%e,D===c&&(c=(c+1)%e),v-m<r)return;const _=f&&v-f;return _?Math.round(y*1e3/_):void 0}}function DW(e,r){let i=0;const B=lCt(50,250);return D=>{const c=D.loaded,m=D.lengthComputable?D.total:void 0,a=c-i,v=B(a),f=c<=m;i=c;const n={loaded:c,total:m,progress:m?c/m:void 0,bytes:a,rate:v||void 0,estimated:v&&m&&f?(m-c)/v:void 0,event:D};n[r?"download":"upload"]=!0,e(n)}}const cCt=typeof XMLHttpRequest<"u",dCt=cCt&&function(e){return new Promise(function(r,i){let B=e.data;const D=rm.from(e.headers).normalize();let{responseType:c,withXSRFToken:m}=e,a;function v(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let f;if(Ir.isFormData(B)){if(Ff.hasStandardBrowserEnv||Ff.hasStandardBrowserWebWorkerEnv)D.setContentType(!1);else if((f=D.getContentType())!==!1){const[l,...o]=f?f.split(";").map(s=>s.trim()).filter(Boolean):[];D.setContentType([l||"multipart/form-data",...o].join("; "))}}let n=new XMLHttpRequest;if(e.auth){const l=e.auth.username||"",o=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";D.set("Authorization","Basic "+btoa(l+":"+o))}const y=LW(e.baseURL,e.url);n.open(e.method.toUpperCase(),IW(y,e.params,e.paramsSerializer),!0),n.timeout=e.timeout;function _(){if(!n)return;const l=rm.from("getAllResponseHeaders"in n&&n.getAllResponseHeaders()),o={data:!c||c==="text"||c==="json"?n.responseText:n.response,status:n.status,statusText:n.statusText,headers:l,config:e,request:n};aCt(function(s){r(s),v()},function(s){i(s),v()},o),n=null}if("onloadend"in n?n.onloadend=_:n.onreadystatechange=function(){!n||n.readyState!==4||n.status===0&&!(n.responseURL&&n.responseURL.indexOf("file:")===0)||setTimeout(_)},n.onabort=function(){n&&(i(new Nl("Request aborted",Nl.ECONNABORTED,e,n)),n=null)},n.onerror=function(){i(new Nl("Network Error",Nl.ERR_NETWORK,e,n)),n=null},n.ontimeout=function(){let l=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const o=e.transitional||BW;e.timeoutErrorMessage&&(l=e.timeoutErrorMessage),i(new Nl(l,o.clarifyTimeoutError?Nl.ETIMEDOUT:Nl.ECONNABORTED,e,n)),n=null},Ff.hasStandardBrowserEnv&&(m&&Ir.isFunction(m)&&(m=m(e)),m||m!==!1&&oCt(y))){const l=e.xsrfHeaderName&&e.xsrfCookieName&&nCt.read(e.xsrfCookieName);l&&D.set(e.xsrfHeaderName,l)}B===void 0&&D.setContentType(null),"setRequestHeader"in n&&Ir.forEach(D.toJSON(),function(l,o){n.setRequestHeader(o,l)}),Ir.isUndefined(e.withCredentials)||(n.withCredentials=!!e.withCredentials),c&&c!=="json"&&(n.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&n.addEventListener("progress",DW(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&n.upload&&n.upload.addEventListener("progress",DW(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=l=>{n&&(i(!l||l.type?new w_(null,e,n):l),n.abort(),n=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const p=sCt(y);if(p&&Ff.protocols.indexOf(p)===-1){i(new Nl("Unsupported protocol "+p+":",Nl.ERR_BAD_REQUEST,e));return}n.send(B||null)})},NE={http:O9t,xhr:dCt};Ir.forEach(NE,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const RW=e=>`- ${e}`,uCt=e=>Ir.isFunction(e)||e===null||e===!1,VW={getAdapter:e=>{e=Ir.isArray(e)?e:[e];const{length:r}=e;let i,B;const D={};for(let c=0;c<r;c++){i=e[c];let m;if(B=i,!uCt(i)&&(B=NE[(m=String(i)).toLowerCase()],B===void 0))throw new Nl(`Unknown adapter '${m}'`);if(B)break;D[m||"#"+c]=B}if(!B){const c=Object.entries(D).map(([a,v])=>`adapter ${a} `+(v===!1?"is not supported by the environment":"is not available in the build"));let m=r?c.length>1?`since :
127
127
  `+c.map(RW).join(`
128
128
  `):" "+RW(c[0]):"as no adapter specified";throw new Nl("There is no suitable adapter to dispatch the request "+m,"ERR_NOT_SUPPORT")}return B},adapters:NE};function zE(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new w_(null,e)}function $W(e){return zE(e),e.headers=rm.from(e.headers),e.data=BE.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),VW.getAdapter(e.adapter||IE.adapter)(e).then(function(r){return zE(e),r.data=BE.call(e,e.transformResponse,r),r.headers=rm.from(r.headers),r},function(r){return FW(r)||(zE(e),r&&r.response&&(r.response.data=BE.call(e,e.transformResponse,r.response),r.response.headers=rm.from(r.response.headers))),Promise.reject(r)})}const jW=e=>e instanceof rm?e.toJSON():e;function qy(e,r){r=r||{};const i={};function B(f,n,y){return Ir.isPlainObject(f)&&Ir.isPlainObject(n)?Ir.merge.call({caseless:y},f,n):Ir.isPlainObject(n)?Ir.merge({},n):Ir.isArray(n)?n.slice():n}function D(f,n,y){if(Ir.isUndefined(n)){if(!Ir.isUndefined(f))return B(void 0,f,y)}else return B(f,n,y)}function c(f,n){if(!Ir.isUndefined(n))return B(void 0,n)}function m(f,n){if(Ir.isUndefined(n)){if(!Ir.isUndefined(f))return B(void 0,f)}else return B(void 0,n)}function a(f,n,y){if(y in r)return B(f,n);if(y in e)return B(void 0,f)}const v={url:c,method:c,data:c,baseURL:m,transformRequest:m,transformResponse:m,paramsSerializer:m,timeout:m,timeoutMessage:m,withCredentials:m,withXSRFToken:m,adapter:m,responseType:m,xsrfCookieName:m,xsrfHeaderName:m,onUploadProgress:m,onDownloadProgress:m,decompress:m,maxContentLength:m,maxBodyLength:m,beforeRedirect:m,transport:m,httpAgent:m,httpsAgent:m,cancelToken:m,socketPath:m,responseEncoding:m,validateStatus:a,headers:(f,n)=>D(jW(f),jW(n),!0)};return Ir.forEach(Object.keys(Object.assign({},e,r)),function(f){const n=v[f]||D,y=n(e[f],r[f],f);Ir.isUndefined(y)&&n!==a||(i[f]=y)}),i}const UW="1.6.7",OE={};["object","boolean","number","function","string","symbol"].forEach((e,r)=>{OE[e]=function(i){return typeof i===e||"a"+(r<1?"n ":" ")+e}});const GW={};OE.transitional=function(e,r,i){function B(D,c){return"[Axios v"+UW+"] Transitional option '"+D+"'"+c+(i?". "+i:"")}return(D,c,m)=>{if(e===!1)throw new Nl(B(c," has been removed"+(r?" in "+r:"")),Nl.ERR_DEPRECATED);return r&&!GW[c]&&(GW[c]=!0,console.warn(B(c," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(D,c,m):!0}};function hCt(e,r,i){if(typeof e!="object")throw new Nl("options must be an object",Nl.ERR_BAD_OPTION_VALUE);const B=Object.keys(e);let D=B.length;for(;D-- >0;){const c=B[D],m=r[c];if(m){const a=e[c],v=a===void 0||m(a,c,e);if(v!==!0)throw new Nl("option "+c+" must be "+v,Nl.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new Nl("Unknown option "+c,Nl.ERR_BAD_OPTION)}}const FE={assertOptions:hCt,validators:OE},p0=FE.validators;let S4=class{constructor(r){this.defaults=r,this.interceptors={request:new PW,response:new PW}}async request(r,i){try{return await this._request(r,i)}catch(B){if(B instanceof Error){let D;Error.captureStackTrace?Error.captureStackTrace(D={}):D=new Error;const c=D.stack?D.stack.replace(/^.+\n/,""):"";B.stack?c&&!String(B.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(B.stack+=`
129
- `+c):B.stack=c}throw B}}_request(r,i){typeof r=="string"?(i=i||{},i.url=r):i=r||{},i=qy(this.defaults,i);const{transitional:B,paramsSerializer:D,headers:c}=i;B!==void 0&&FE.assertOptions(B,{silentJSONParsing:p0.transitional(p0.boolean),forcedJSONParsing:p0.transitional(p0.boolean),clarifyTimeoutError:p0.transitional(p0.boolean)},!1),D!=null&&(Ir.isFunction(D)?i.paramsSerializer={serialize:D}:FE.assertOptions(D,{encode:p0.function,serialize:p0.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();let m=c&&Ir.merge(c.common,c[i.method]);c&&Ir.forEach(["delete","get","head","post","put","patch","common"],l=>{delete c[l]}),i.headers=rm.concat(m,c);const a=[];let v=!0;this.interceptors.request.forEach(function(l){typeof l.runWhen=="function"&&l.runWhen(i)===!1||(v=v&&l.synchronous,a.unshift(l.fulfilled,l.rejected))});const f=[];this.interceptors.response.forEach(function(l){f.push(l.fulfilled,l.rejected)});let n,y=0,_;if(!v){const l=[$W.bind(this),void 0];for(l.unshift.apply(l,a),l.push.apply(l,f),_=l.length,n=Promise.resolve(i);y<_;)n=n.then(l[y++],l[y++]);return n}_=a.length;let p=i;for(y=0;y<_;){const l=a[y++],o=a[y++];try{p=l(p)}catch(s){o.call(this,s);break}}try{n=$W.call(this,p)}catch(l){return Promise.reject(l)}for(y=0,_=f.length;y<_;)n=n.then(f[y++],f[y++]);return n}getUri(r){r=qy(this.defaults,r);const i=LW(r.baseURL,r.url);return IW(i,r.params,r.paramsSerializer)}};Ir.forEach(["delete","get","head","options"],function(e){S4.prototype[e]=function(r,i){return this.request(qy(i||{},{method:e,url:r,data:(i||{}).data}))}}),Ir.forEach(["post","put","patch"],function(e){function r(i){return function(B,D,c){return this.request(qy(c||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:B,data:D}))}}S4.prototype[e]=r(),S4.prototype[e+"Form"]=r(!0)});const T4=S4;class LE{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(D){i=D});const B=this;this.promise.then(D=>{if(!B._listeners)return;let c=B._listeners.length;for(;c-- >0;)B._listeners[c](D);B._listeners=null}),this.promise.then=D=>{let c;const m=new Promise(a=>{B.subscribe(a),c=a}).then(D);return m.cancel=function(){B.unsubscribe(c)},m},r(function(D,c,m){B.reason||(B.reason=new w_(D,c,m),i(B.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}static source(){let r;return{token:new LE(function(i){r=i}),cancel:r}}}const pCt=LE;function fCt(e){return function(r){return e.apply(null,r)}}function mCt(e){return Ir.isObject(e)&&e.isAxiosError===!0}const DE={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(DE).forEach(([e,r])=>{DE[r]=e});const gCt=DE;function HW(e){const r=new T4(e),i=fW(T4.prototype.request,r);return Ir.extend(i,T4.prototype,r,{allOwnKeys:!0}),Ir.extend(i,r,null,{allOwnKeys:!0}),i.create=function(B){return HW(qy(e,B))},i}const Wd=HW(IE);Wd.Axios=T4,Wd.CanceledError=w_,Wd.CancelToken=pCt,Wd.isCancel=FW,Wd.VERSION=UW,Wd.toFormData=w4,Wd.AxiosError=Nl,Wd.Cancel=Wd.CanceledError,Wd.all=function(e){return Promise.all(e)},Wd.spread=fCt,Wd.isAxiosError=mCt,Wd.mergeConfig=qy,Wd.AxiosHeaders=rm,Wd.formToJSON=e=>zW(Ir.isHTMLForm(e)?new FormData(e):e),Wd.getAdapter=VW.getAdapter,Wd.HttpStatusCode=gCt,Wd.default=Wd;const k_=Wd,E4={isAgeByRange:!0,isAgeByYear:!1,minAge:14,maxAge:43,availableYears:Array.from({length:30},(e,r)=>1981+r).sort((e,r)=>r-e),nationalTeams:[{booleanIsSelected:!1,stringName:"Selección mexicana",setAvailablePlayersIds:{},numberId:392}],isEligibilitySelected:!1,eligibility:[{isSelected:!0,id:138,name:"Mexicana"}],nationalities:[{isSelected:!0,id:138,name:"Mexicana"},{isSelected:!0,id:10,name:"Argentina"},{isSelected:!0,id:29,name:"Brasileña"},{isSelected:!0,id:47,name:"Colombiana"},{isSelected:!0,id:62,name:"Ecuatoriana"},{isSelected:!0,id:223,name:"Uruguaya"},{isSelected:!0,id:198,name:"Española"},{isSelected:!0,id:74,name:"Francesa"},{isSelected:!0,id:43,name:"Chilena"},{isSelected:!0,id:222,name:"Americana"},{isSelected:!0,id:165,name:"Paraguaya"},{isSelected:!0,id:226,name:"Venezolana"},{isSelected:!0,id:52,name:"Marfileña"},{isSelected:!0,id:166,name:"Peruana"}],positions:[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},yCt={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},vCt={1:"Portero",2:"Defensa Central",3:"Lateral por izquierda",4:"Lateral por derecha",5:"Volante por izquierda",6:"Volante por derecha",7:"Volante defensivo",8:"Volante ofensivo",9:"Delantero",10:"Desconocida"};function A4(e){"@babel/helpers - typeof";return A4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},A4(e)}function im(e){if(e===null||e===!0||e===!1)return NaN;var r=Number(e);return isNaN(r)?r:r<0?Math.ceil(r):Math.floor(r)}function _d(e,r){if(r.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+r.length+" present")}function jc(e){_d(1,arguments);var r=Object.prototype.toString.call(e);return e instanceof Date||A4(e)==="object"&&r==="[object Date]"?new Date(e.getTime()):typeof e=="number"||r==="[object Number]"?new Date(e):((typeof e=="string"||r==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function _Ct(e,r){_d(2,arguments);var i=jc(e),B=im(r);return isNaN(B)?new Date(NaN):(B&&i.setDate(i.getDate()+B),i)}function bCt(e,r){_d(2,arguments);var i=jc(e),B=im(r);if(isNaN(B))return new Date(NaN);if(!B)return i;var D=i.getDate(),c=new Date(i.getTime());c.setMonth(i.getMonth()+B+1,0);var m=c.getDate();return D>=m?c:(i.setFullYear(c.getFullYear(),c.getMonth(),D),i)}function C_(e,r){if(_d(2,arguments),!r||A4(r)!=="object")return new Date(NaN);var i=r.years?im(r.years):0,B=r.months?im(r.months):0,D=r.weeks?im(r.weeks):0,c=r.days?im(r.days):0,m=r.hours?im(r.hours):0,a=r.minutes?im(r.minutes):0,v=r.seconds?im(r.seconds):0,f=jc(e),n=B||i?bCt(f,B+i*12):f,y=c||D?_Ct(n,c+D*7):n,_=a+m*60,p=v+_*60,l=p*1e3,o=new Date(y.getTime()+l);return o}function WW(e){var r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),e.getTime()-r.getTime()}function qW(e){_d(1,arguments);var r=jc(e);return r.setHours(0,0,0,0),r}var xCt=864e5;function wCt(e,r){_d(2,arguments);var i=qW(e),B=qW(r),D=i.getTime()-WW(i),c=B.getTime()-WW(B);return Math.round((D-c)/xCt)}function Yy(e,r){_d(2,arguments);var i=jc(e),B=jc(r),D=i.getTime()-B.getTime();return D<0?-1:D>0?1:D}var kCt=6e4,CCt=36e5;function SCt(e,r){_d(2,arguments);var i=jc(e),B=jc(r),D=i.getFullYear()-B.getFullYear(),c=i.getMonth()-B.getMonth();return D*12+c}function TCt(e,r){_d(2,arguments);var i=jc(e),B=jc(r);return i.getFullYear()-B.getFullYear()}function YW(e,r){var i=e.getFullYear()-r.getFullYear()||e.getMonth()-r.getMonth()||e.getDate()-r.getDate()||e.getHours()-r.getHours()||e.getMinutes()-r.getMinutes()||e.getSeconds()-r.getSeconds()||e.getMilliseconds()-r.getMilliseconds();return i<0?-1:i>0?1:i}function ECt(e,r){_d(2,arguments);var i=jc(e),B=jc(r),D=YW(i,B),c=Math.abs(wCt(i,B));i.setDate(i.getDate()-D*c);var m=+(YW(i,B)===-D),a=D*(c-m);return a===0?0:a}function RE(e,r){return _d(2,arguments),jc(e).getTime()-jc(r).getTime()}var XW={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},ACt="trunc";function VE(e){return e?XW[e]:XW[ACt]}function MCt(e,r,i){_d(2,arguments);var B=RE(e,r)/CCt;return VE(i==null?void 0:i.roundingMethod)(B)}function ICt(e,r,i){_d(2,arguments);var B=RE(e,r)/kCt;return VE(i==null?void 0:i.roundingMethod)(B)}function PCt(e){_d(1,arguments);var r=jc(e);return r.setHours(23,59,59,999),r}function BCt(e){_d(1,arguments);var r=jc(e),i=r.getMonth();return r.setFullYear(r.getFullYear(),i+1,0),r.setHours(23,59,59,999),r}function NCt(e){_d(1,arguments);var r=jc(e);return PCt(r).getTime()===BCt(r).getTime()}function zCt(e,r){_d(2,arguments);var i=jc(e),B=jc(r),D=Yy(i,B),c=Math.abs(SCt(i,B)),m;if(c<1)m=0;else{i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-D*c);var a=Yy(i,B)===-D;NCt(jc(e))&&c===1&&Yy(e,B)===1&&(a=!1),m=D*(c-Number(a))}return m===0?0:m}function OCt(e,r,i){_d(2,arguments);var B=RE(e,r)/1e3;return VE(i==null?void 0:i.roundingMethod)(B)}function FCt(e,r){_d(2,arguments);var i=jc(e),B=jc(r),D=Yy(i,B),c=Math.abs(TCt(i,B));i.setFullYear(1584),B.setFullYear(1584);var m=Yy(i,B)===-D,a=D*(c-Number(m));return a===0?0:a}function LCt(e){return _d(1,arguments),jc(e).getFullYear()}function DCt(e){_d(1,arguments);var r=jc(e.start),i=jc(e.end);if(isNaN(r.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(i.getTime()))throw new RangeError("End Date is invalid");var B={};B.years=Math.abs(FCt(i,r));var D=Yy(i,r),c=C_(r,{years:D*B.years});B.months=Math.abs(zCt(i,c));var m=C_(c,{months:D*B.months});B.days=Math.abs(ECt(i,m));var a=C_(m,{days:D*B.days});B.hours=Math.abs(MCt(i,a));var v=C_(a,{hours:D*B.hours});B.minutes=Math.abs(ICt(i,v));var f=C_(v,{minutes:D*B.minutes});return B.seconds=Math.abs(OCt(i,f)),B}const RCt={__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e,B=t.ref(null);t.watch(()=>i.modelValue,()=>{D()},{immediate:!0});function D(){B.value&&(B.value.checked=i.modelValue)}function c(m){r("update:modelValue",m.target.checked)}return t.onMounted(()=>{D()}),(m,a)=>(t.openBlock(),t.createElementBlock("input",{ref_key:"switchCustom",ref:B,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:c},null,544))}},S_=ml(RCt,[["__scopeId","data-v-e3a6ae4e"]]),C1=e=>(t.pushScopeId("data-v-6b78acb7"),e=e(),t.popScopeId(),e),VCt={class:"personal-data"},$Ct={class:"personal-data__age"},jCt={class:"personal-data__age__toggle"},UCt={class:"personal-data__age__range"},GCt={class:"personal-data__age__dropdown"},HCt=C1(()=>t.createElementVNode("div",{class:"label"},"Año",-1)),WCt={class:"selected-item"},qCt=C1(()=>t.createElementVNode("div",{class:"separator"},null,-1)),YCt={class:"personal-data__nationality-position"},XCt={key:0,class:"personal-data__nationality-position__switch"},ZCt=C1(()=>t.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),JCt=C1(()=>t.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),KCt={class:"personal-data__nationality-position__nationality"},QCt=C1(()=>t.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),eSt={class:"selected-item"},tSt=C1(()=>t.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),aSt={class:"selected-item"},nSt={class:"personal-data__nationality-position__position"},rSt=C1(()=>t.createElementVNode("div",{class:"label"},"Posición",-1)),iSt={class:"selected-item"},oSt="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",sSt={__name:"TemplatePersonalData",props:{isFemale:{type:Boolean,default:!1},season:{type:Object,default:()=>({})},isScouting:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:filters"],setup(e,{expose:r,emit:i}){const B=e,D=[1],c={id:0,name:"Todas las nacionalidades",isSelected:!1},m={id:0,name:"Todas las posiciones",isSelected:!1},a=t.ref({...E4}),v=t.ref(["Por edad","Por año"]),f=t.ref(0),n=t.ref({min:E4.minAge,max:E4.maxAge}),y=t.ref(v_),_=t.ref(""),p=t.ref(""),l=t.ref(0),o=t.ref(0),s=t.computed(()=>{const A=a.value.nationalities?[...a.value.nationalities]:[],E=A[0];return(!E||E.id!==0)&&A.unshift(c),A}),u=t.computed(()=>{let A=a.value.positions?[...a.value.positions]:[];const E=A[0];return(!E||E.id!==0)&&A.unshift(m),A.sort((M,I)=>M.id-I.id),A}),d=t.computed(()=>B.season&&B.season.tournamentId&&D.includes(B.season.tournamentId));t.watch(s,A=>{const E=A.reduce((M,I,N)=>(N!==0&&I.isSelected&&M++,M),0);E===s.value.length-1&&(A[0].isSelected=!0),A[0]&&A[0].isSelected?_.value="Todas las nacionalidades":_.value=`${E} seleccionadas`,k()},{immediate:!0,deep:!0}),t.watch(u,A=>{const E=A.reduce((M,I,N)=>(N!==0&&I.isSelected&&M++,M),0);E===u.value.length-1&&(A[0].isSelected=!0),A[0]&&A[0].isSelected?p.value="Todas las posiciones":p.value=`${E} seleccionadas`,k()},{immediate:!0,deep:!0}),t.watch(()=>a.value.isEligibilitySelected,()=>{k()}),t.watch(()=>B.season,A=>{A&&A.id!==o.value&&(o.value=A.id,h(A))},{immediate:!0,deep:!1});async function h(A){try{if(A&&A.id){const E=new Set,M=await b(A.id),I=new Date,N=[],z=new Map,F=new Map;M.forEach(R=>{const V=new Date(R.dob),$=LCt(V),U=DCt({start:V,end:I});z.has(R.nationality_id)||z.set(R.nationality_id,{id:R.nationality_id,isSelected:!0,name:yCt[`${R.nationality_id}`]}),F.has(R.position_id)||F.set(R.position_id,{id:R.position_id,isSelected:!0,name:vCt[`${R.position_id}`]}),E.add($),N.push(U.years)}),a.value.minAge=Math.min(...N),a.value.maxAge=Math.max(...N),a.value.availableYears=[...E].sort((R,V)=>V-R),l.value=a.value.availableYears[0],a.value.nationalities=[...z.values()],a.value.positions=[...F.values()],n.value.min=a.value.minAge,n.value.max=a.value.maxAge}}catch(E){throw new Error(E)}}function g(A=null){const E=!A||A===hd.All;(E||A===hd.NATIONALITY)&&s.value.forEach(M=>{M.isSelected=!0}),(E||A===hd.ELIGIBILITY)&&(a.value.isEligibilitySelected=!1),(E||A===hd.POSITION)&&u.value.forEach(M=>{M.isSelected=!0}),(E||A===hd.AGE_RANGE)&&(n.value.min=a.value.minAge,n.value.max=a.value.maxAge,f.value=0),(E||A===hd.YEAR)&&(l.value=a.value.availableYears[0],f.value=0),k()}async function b(A){try{const E={Authorization:localStorage.getItem("user_token")||B.token},M={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:oSt,I=await k_.get(M+A,{headers:E});return I.data?I.data.players:[]}catch(E){return Promise.reject(E)}}function w(A){f.value=A.index}function x(A){n.value.min=A.minValue,n.value.max=A.maxValue,k()}function S(A,E){E.id===0?s.value.forEach(M=>{M.isSelected=A}):(E.isSelected=A,s.value[0].isSelected=s.value.every((M,I)=>I===0?!0:M.isSelected))}function k(){const A=f.value===0,E={};A?(E.ageByRange=n.value,E.ageLimits={min:a.value.minAge,max:a.value.maxAge}):E.year=l.value,a.value.isEligibilitySelected?E.eligibility=[...a.value.eligibility]:E.nationalities=s.value.reduce((M,I,N)=>(N!==0&&M.push({...I}),M),[]),E.positions=u.value.reduce((M,I,N)=>(N!==0&&M.push({...I}),M),[]),i("update:filters",E)}function T(A,E){E.id===0?u.value.forEach(M=>{M.isSelected=A}):(E.isSelected=A,u.value[0].isSelected=u.value.every((M,I)=>I===0?!0:M.isSelected))}function C(A){l.value=A,k()}return r({onClearFilters:g}),(A,E)=>(t.openBlock(),t.createElementBlock("div",VCt,[t.createElementVNode("div",$Ct,[t.createElementVNode("div",jCt,[t.createVNode(e9t,{"selected-button-index":f.value,buttons:v.value,width:"220px",onChange:w},null,8,["selected-button-index","buttons"])]),t.withDirectives(t.createElementVNode("div",UCt,[t.createVNode(t.unref(oW),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"14px","font-size":"12px","border-width-indicador":"2px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":a.value.minAge,"max-limit":a.value.maxAge,"min-value":n.value.min,"max-value":n.value.max,onInput:x},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[t.vShow,f.value===0]]),t.withDirectives(t.createElementVNode("div",GCt,[HCt,t.createVNode(t.unref(h0),t.mergeProps({"model-value":l.value},y.value,{items:a.value.availableYears,onInput:C}),{default:t.withCtx(({selectedItem:M})=>[t.createElementVNode("div",WCt,t.toDisplayString(M),1)]),availableItem:t.withCtx(({item:M})=>[t.createElementVNode("div",null,t.toDisplayString(M),1)]),_:1},16,["model-value","items"])],512),[[t.vShow,f.value===1]])]),qCt,t.createElementVNode("div",YCt,[d.value?(t.openBlock(),t.createElementBlock("div",XCt,[ZCt,t.createVNode(S_,{modelValue:a.value.isEligibilitySelected,"onUpdate:modelValue":E[0]||(E[0]=M=>a.value.isEligibilitySelected=M)},null,8,["modelValue"]),JCt])):t.createCommentVNode("",!0),t.createElementVNode("div",KCt,[a.value.isEligibilitySelected?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[tSt,t.createVNode(t.unref(h0),t.mergeProps(y.value,{"is-multiple-option":"",items:a.value.eligibility,"is-disabled":""}),{default:t.withCtx(({selectedItem:M})=>[t.createElementVNode("div",aSt,t.toDisplayString(M.name),1)]),availableItem:t.withCtx(({item:M})=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":M.isSelected,label:M.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":""},null,8,["model-value","label","fontFamily"])])]),_:1},16,["items"])],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[QCt,t.createVNode(t.unref(h0),t.mergeProps(y.value,{"is-multiple-option":"",items:s.value}),{default:t.withCtx(()=>[t.createElementVNode("div",eSt,t.toDisplayString(_.value),1)]),availableItem:t.withCtx(({item:M})=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":M.isSelected,label:M.name,fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":I=>S(I,M)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),t.createElementVNode("div",nSt,[rSt,t.createVNode(t.unref(h0),t.mergeProps(y.value,{"is-multiple-option":"",items:u.value}),{default:t.withCtx(()=>[t.createElementVNode("div",iSt,[e.isFemale?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva")),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(p.value),1)],64))])]),availableItem:t.withCtx(({item:M})=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":M.isSelected,label:e.isFemale?M.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):M.name,fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":I=>T(I,M)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},lSt=ml(sSt,[["__scopeId","data-v-6b78acb7"]]),cSt={class:"plays"},dSt={class:"plays__body__offensive"},uSt={class:"plays__body__title"},hSt={class:"number-of-categories"},pSt={class:"plays__body__categories"},fSt={class:"plays__body__defensive-possession-offenses"},mSt={class:"plays__body__title"},gSt={class:"number-of-categories"},ySt={class:"plays__body__categories"},vSt={class:"plays__body__title"},_St={class:"number-of-categories"},bSt={class:"plays__body__categories"},xSt={class:"plays__body__title"},wSt={class:"number-of-categories"},kSt={class:"plays__body__categories"},CSt={__name:"TemplatePlays",props:{componentWidth:{type:Number,default:0},playsCategories:{type:Object,required:!0},isExpansionMode:{type:Boolean,default:!0},fontFamily:{type:String,default:"'Poppins-Regular'"}},setup(e){const r=e,i=t.ref(!1),B=t.ref(!1),D=t.ref(!1),c=t.ref(!1),m=t.computed(()=>({"--template-columns":r.isExpansionMode?"1fr":"1fr 1fr"})),a=t.computed(()=>r.playsCategories.offensive.categories.reduce((p,l)=>(l.isSelected&&p++,p),0)),v=t.computed(()=>r.playsCategories.defensive.categories.reduce((p,l)=>(l.isSelected&&p++,p),0)),f=t.computed(()=>r.playsCategories.possession.categories.reduce((p,l)=>(l.isSelected&&p++,p),0)),n=t.computed(()=>r.playsCategories.offenses.categories.reduce((p,l)=>(l.isSelected&&p++,p),0));function y(p,l){l.isSelected=p}function _(p){p==="offensive"?i.value=!i.value:p==="defensive"?B.value=!B.value:p==="possession"?D.value=!D.value:p==="offenses"&&(c.value=!c.value)}return(p,l)=>(t.openBlock(),t.createElementBlock("div",cSt,[t.createElementVNode("div",{class:"plays__body",style:t.normalizeStyle(m.value)},[t.createElementVNode("div",dSt,[t.createElementVNode("div",uSt,[t.createElementVNode("div",{class:"plays__body__title__info",onClick:l[0]||(l[0]=o=>_("offensive"))},[t.createElementVNode("span",null,t.toDisplayString(e.playsCategories.offensive.title),1),t.createElementVNode("span",hSt,"("+t.toDisplayString(a.value)+")",1)]),t.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:l[1]||(l[1]=o=>_("offensive"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":i.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",pSt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.playsCategories.offensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"plays__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,labelFontSize:"13px","model-value":o.isSelected,"box-value":o.priority||0,"onUpdate:modelValue":s=>y(s,o)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||i.value]])]),t.createElementVNode("div",fSt,[t.createElementVNode("div",mSt,[t.createElementVNode("div",{class:"plays__body__title__info",onClick:l[2]||(l[2]=o=>_("defensive"))},[t.createElementVNode("span",null,t.toDisplayString(e.playsCategories.defensive.title),1),t.createElementVNode("span",gSt,"("+t.toDisplayString(v.value)+")",1)]),t.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:l[3]||(l[3]=o=>_("defensive"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":B.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",ySt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.playsCategories.defensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"plays__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,labelFontSize:"13px","model-value":o.isSelected,"box-value":o.priority||0,"onUpdate:modelValue":s=>y(s,o)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||B.value]]),t.createElementVNode("div",vSt,[t.createElementVNode("div",{class:"plays__body__title__info",onClick:l[4]||(l[4]=o=>_("possession"))},[t.createElementVNode("span",null,t.toDisplayString(e.playsCategories.possession.title),1),t.createElementVNode("span",_St,"("+t.toDisplayString(f.value)+")",1)]),t.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:l[5]||(l[5]=o=>_("possession"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":D.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",bSt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.playsCategories.possession.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"plays__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,labelFontSize:"13px","model-value":o.isSelected,"box-value":o.priority||0,"onUpdate:modelValue":s=>y(s,o)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||D.value]]),t.createElementVNode("div",xSt,[t.createElementVNode("div",{class:"plays__body__title__info",onClick:l[6]||(l[6]=o=>_("offenses"))},[t.createElementVNode("span",null,t.toDisplayString(e.playsCategories.offenses.title),1),t.createElementVNode("span",wSt,"("+t.toDisplayString(n.value)+")",1)]),t.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:l[7]||(l[7]=o=>_("offenses"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":c.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",kSt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.playsCategories.offenses.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"plays__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,labelFontSize:"13px","model-value":o.isSelected,"box-value":o.priority||0,"onUpdate:modelValue":s=>y(s,o)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||c.value]])])],4)]))}},SSt=ml(CSt,[["__scopeId","data-v-364e6cae"]]),TSt={class:"template-results"},ESt={__name:"TemplateResults",props:{resultsFilters:{type:Object,default:()=>({results:[]})}},emits:["update:resultsFilters"],setup(e,{emit:r}){const i=e,B=t.computed(()=>i.resultsFilters.results.filter(D=>D.isSelected).length);return t.watch(()=>i.resultsFilters,D=>{r("update:resultsFilters",D)},{deep:!0,immediate:!0}),(D,c)=>(t.openBlock(),t.createElementBlock("div",TSt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.resultsFilters.results,(m,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:"template-results__result"},[t.createVNode(t.unref(Is),{modelValue:m.isSelected,"onUpdate:modelValue":v=>m.isSelected=v,label:m.name,"avoid-interaction":B.value===1&&m.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},ASt=ml(ESt,[["__scopeId","data-v-453e89c2"]]),MSt={__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--height":i.height,"--width":i.width,"--padding":i.padding,"--border-radius":i.borderRadius,"--border":`solid ${i.borderWidth} ${i.borderColor}`,"--background-color":i.backgroundColor,"--font-color":i.fontColor,"--font-size":i.fontSize,"--font-family":i.fontFamily,"--active-background-color":i.activeBackgroundColor||i.backgroundColor,"--active-border-color":i.activeBorderColor||i.borderColor,"--active-font-color":i.activeFontColor||i.fontColor}));function D(){r("click")}return(c,m)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(B.value),onClick:D},t.toDisplayString(e.text),7))}},T_=ml(MSt,[["__scopeId","data-v-9688933e"]]),ISt={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},ZW={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},PSt={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},BSt={4:"OF",5:"Cf",6:"S",7:"F"};function $E(e=""){return e?localStorage.getItem(e):localStorage.getItem("user_token")||localStorage.getItem("token")}const NSt={class:"dropdown"},zSt={class:"selected-item"},OSt={__name:"DropdownTextOnly",props:{items:{type:Array,default:()=>[]},itemTextKey:{type:String,default:""},isListSameWidth:{type:Boolean,default:!0}},emits:["input"],setup(e,{emit:r}){function i(B){r("input",B)}return(B,D)=>(t.openBlock(),t.createElementBlock("div",NSt,[t.createVNode(t.unref(h0),t.mergeProps(t.unref(v_),{"is-list-same-width":e.isListSameWidth,items:e.items,onInput:i}),{default:t.withCtx(({selectedItem:c})=>[t.createElementVNode("div",zSt,t.toDisplayString(e.itemTextKey?c[e.itemTextKey]:c),1)]),availableItem:t.withCtx(({item:c})=>[t.createElementVNode("div",null,t.toDisplayString(e.itemTextKey?c[e.itemTextKey]:c),1)]),_:1},16,["is-list-same-width","items"])]))}},lh=ml(OSt,[["__scopeId","data-v-064d5f86"]]),FSt={class:"dropdown"},LSt={class:"game-item"},DSt={key:0,class:"item-game"},RSt={class:"match-day"},VSt={class:"team-logo"},$St=["src"],jSt={class:"text"},USt={class:"text score"},GSt={class:"text"},HSt={class:"team-logo"},WSt=["src"],qSt={class:"item-game"},YSt={class:"team-logo"},XSt=["src"],ZSt={class:"text"},JSt={class:"text score"},KSt={class:"text"},QSt={class:"team-logo"},eTt=["src"],tTt={__name:"DropdownGame",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(e,{emit:r}){function i(B){r("input",B)}return(B,D)=>(t.openBlock(),t.createElementBlock("div",FSt,[t.createVNode(t.unref(h0),t.mergeProps(t.unref(v_),{items:e.items,onInput:i}),{default:t.withCtx(({selectedItem:c})=>[t.createElementVNode("div",LSt,[c.homeTeam?(t.openBlock(),t.createElementBlock("div",DSt,[t.createElementVNode("div",RSt,t.toDisplayString(c.roundAbbreviation),1),t.createElementVNode("div",VSt,[t.createElementVNode("img",{src:c.homeTeam.logo,alt:""},null,8,$St)]),t.createElementVNode("div",jSt,t.toDisplayString(c.homeTeam.acronym),1),t.createElementVNode("div",USt,t.toDisplayString(c.score[0])+" - "+t.toDisplayString(c.score[1]),1),t.createElementVNode("div",GSt,t.toDisplayString(c.awayTeam.acronym),1),t.createElementVNode("div",HSt,[t.createElementVNode("img",{src:c.awayTeam.logo,alt:""},null,8,WSt)])])):t.createCommentVNode("",!0)])]),availableItem:t.withCtx(({item:c})=>[t.createElementVNode("div",qSt,[t.createElementVNode("div",null,t.toDisplayString(c.roundAbbreviation),1),t.createElementVNode("div",YSt,[t.createElementVNode("img",{src:c.homeTeam.logo,alt:""},null,8,XSt)]),t.createElementVNode("div",ZSt,t.toDisplayString(c.homeTeam.acronym),1),t.createElementVNode("div",JSt,t.toDisplayString(c.score[0])+" - "+t.toDisplayString(c.score[1]),1),t.createElementVNode("div",KSt,t.toDisplayString(c.awayTeam.acronym),1),t.createElementVNode("div",QSt,[t.createElementVNode("img",{src:c.awayTeam.logo,alt:""},null,8,eTt)])])]),_:1},16,["items"])]))}},M4=ml(tTt,[["__scopeId","data-v-7883a91e"]]),I4=e=>(t.pushScopeId("data-v-b63e9c84"),e=e(),t.popScopeId(),e),aTt={class:"container"},nTt={class:"container__row"},rTt={class:"container__row__wrapper"},iTt=I4(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),oTt={class:"container__row__wrapper__input"},sTt={class:"container__row two-items"},lTt={class:"container__row__wrapper"},cTt=I4(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),dTt={key:0,class:"container__row__wrapper__input"},uTt={class:"container__row__wrapper"},hTt=I4(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),pTt={key:0,class:"container__row__wrapper__input"},fTt={class:"container__row"},mTt={class:"container__row__wrapper"},gTt=I4(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),yTt={key:0,class:"container__row__wrapper__input"},vTt={class:"container__action"},_Tt={__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(e,{emit:r}){const i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},B=t.ref(null),D=t.ref(null),c=t.ref(null),m=t.ref(null);function a(y){B.value=y,r("update:tournament",y)}function v(y){D.value=y,r("update:season",y)}function f(y){c.value=y}function n(y){m.value=y}return(y,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",aTt,[t.createElementVNode("div",nTt,[t.createElementVNode("div",rTt,[iTt,t.createElementVNode("div",oTt,[t.createVNode(lh,{items:e.tournaments,itemTextKey:"name",onInput:a},null,8,["items"])])])]),t.createElementVNode("div",sTt,[t.createElementVNode("div",lTt,[cTt,B.value&&B.value.seasons?(t.openBlock(),t.createElementBlock("div",dTt,[t.createVNode(lh,{items:B.value.seasons,itemTextKey:"name",onInput:v},null,8,["items"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",uTt,[hTt,D.value&&D.value.arrayMatchDays?(t.openBlock(),t.createElementBlock("div",pTt,[t.createVNode(lh,{items:D.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:f},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",fTt,[t.createElementVNode("div",mTt,[gTt,c.value&&c.value.arrayGames?(t.openBlock(),t.createElementBlock("div",yTt,[t.createVNode(M4,{items:c.value.arrayGames,onInput:n},null,8,["items"])])):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",vTt,[t.createVNode(T_,t.normalizeProps(t.guardReactiveProps(i)),null,16)])],64))}},bTt=ml(_Tt,[["__scopeId","data-v-b63e9c84"]]),xTt={class:"dropdown"},wTt={class:"item-team"},kTt={class:"team-logo"},CTt=["src"],STt={class:"team-acronym"},TTt={class:"item-team"},ETt={class:"team-logo"},ATt=["src"],MTt={class:"team-acronym"},ITt={__name:"DropdownTeam",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(e,{emit:r}){function i(B){r("input",B)}return(B,D)=>(t.openBlock(),t.createElementBlock("div",xTt,[t.createVNode(t.unref(h0),t.mergeProps(t.unref(v_),{items:e.items,onInput:i}),{default:t.withCtx(({selectedItem:c})=>[t.createElementVNode("div",wTt,[t.createElementVNode("div",kTt,[t.createElementVNode("img",{src:c.logo,alt:""},null,8,CTt)]),t.createElementVNode("div",STt,t.toDisplayString(c.acronym),1)])]),availableItem:t.withCtx(({item:c})=>[t.createElementVNode("div",TTt,[t.createElementVNode("div",ETt,[t.createElementVNode("img",{src:c.logo,alt:""},null,8,ATt)]),t.createElementVNode("div",MTt,t.toDisplayString(c.acronym),1)])]),_:1},16,["items"])]))}},JW=ml(ITt,[["__scopeId","data-v-afd2bee8"]]),PTt={class:"advanced-filters"},BTt={class:"advanced-filters__buttons"},NTt=["onClick"],zTt={class:"advanced-filters__filters"},OTt={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(e){const r=e,i=t.defineAsyncComponent(()=>Promise.resolve().then(()=>Nfa)),B=t.defineAsyncComponent(()=>Promise.resolve().then(()=>Jfa)),D=t.defineAsyncComponent(()=>Promise.resolve().then(()=>Qfa)),c=[{name:"Sub categorías",component:i},{name:"Cancha",component:D},{name:"Condiciones",component:B}],m=t.ref(c[0]),a=t.computed(()=>r.selectedCategory?r.selectedCategory.subcategoryGroups||[]:[]);function v(f){m.value=f}return(f,n)=>(t.openBlock(),t.createElementBlock("div",PTt,[t.createElementVNode("div",BTt,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(c,y=>t.createElementVNode("div",{key:y.name,role:"button",class:t.normalizeClass(["advanced-filters__buttons__button",{active:m.value.name===y.name}]),onClick:_=>v(y)},t.toDisplayString(y.name),11,NTt)),64))]),t.createElementVNode("div",zTt,[(t.openBlock(),t.createBlock(t.KeepAlive,null,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(m.value.component),{"subcategory-groups":a.value},null,8,["subcategory-groups"]))],1024))])]))}},jE=ml(OTt,[["__scopeId","data-v-c62c5b9c"]]),S1=e=>(t.pushScopeId("data-v-575b26b5"),e=e(),t.popScopeId(),e),FTt={class:"container"},LTt={class:"container__row"},DTt={class:"container__row__wrapper"},RTt=S1(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),VTt={class:"container__row__wrapper__input"},$Tt={class:"container__row two-items"},jTt={class:"container__row__wrapper"},UTt=S1(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),GTt={key:0,class:"container__row__wrapper__input"},HTt={class:"container__row__wrapper"},WTt=S1(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),qTt={key:0,class:"container__row__wrapper__input"},YTt={class:"container__row"},XTt={class:"container__row__wrapper"},ZTt=S1(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),JTt={key:0,class:"container__row__wrapper__input"},KTt={class:"container__row"},QTt={class:"container__row__wrapper"},eEt=S1(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),tEt={key:0,class:"container__row__wrapper__input"},aEt={class:"container__row type-and-advanced"},nEt={class:"container__row__wrapper"},rEt=S1(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),iEt={class:"container__row__wrapper__input"},oEt={class:"container__row__wrapper center"},sEt=S1(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),lEt={class:"container__row__wrapper__input"},cEt={class:"container__row"},dEt={class:"container__action"},uEt={__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(e,{emit:r}){const i=e,B={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},D=t.ref(null),c=t.ref(null);t.ref(null);const m=t.ref(null),a=t.ref(null),v=t.ref(null),f=t.ref(null),n=t.ref(!0),y=t.computed(()=>v.value?v.value.position_id===1?i.advancedFilterCategories.goalkeeper:i.advancedFilterCategories.player:[]);function _(d){D.value=d,r("update:tournament",d)}function p(d){c.value=d,r("update:season",d)}function l(d){a.value=d,r("update:team",d)}function o(d){v.value=d}function s(d){m.value=d}function u(d){f.value=d}return(d,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",FTt,[t.createElementVNode("div",LTt,[t.createElementVNode("div",DTt,[RTt,t.createElementVNode("div",VTt,[t.createVNode(lh,{items:e.tournaments,itemTextKey:"name",onInput:_},null,8,["items"])])])]),t.createElementVNode("div",$Tt,[t.createElementVNode("div",jTt,[UTt,D.value&&D.value.seasons?(t.openBlock(),t.createElementBlock("div",GTt,[t.createVNode(lh,{items:D.value.seasons,itemTextKey:"name",onInput:p},null,8,["items"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",HTt,[WTt,c.value&&c.value.arrayTeams?(t.openBlock(),t.createElementBlock("div",qTt,[t.createVNode(JW,{items:c.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:l},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",YTt,[t.createElementVNode("div",XTt,[ZTt,a.value&&a.value.arrayPlayers?(t.openBlock(),t.createElementBlock("div",JTt,[t.createVNode(lh,{items:a.value.arrayPlayers,itemTextKey:"player_name",onInput:o},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",KTt,[t.createElementVNode("div",QTt,[eEt,c.value&&c.value.mapGamesByTeam&&a.value?(t.openBlock(),t.createElementBlock("div",tEt,[t.createVNode(M4,{items:c.value.mapGamesByTeam.get(a.value.team_id),onInput:s},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",aEt,[t.createElementVNode("div",nEt,[rEt,t.createElementVNode("div",iEt,[t.createVNode(lh,{items:y.value,itemTextKey:"name","is-list-same-width":!1,onInput:u},null,8,["items"])])]),t.createElementVNode("div",oEt,[sEt,t.createElementVNode("div",lEt,[t.createVNode(S_,{modelValue:n.value,"onUpdate:modelValue":h[0]||(h[0]=g=>n.value=g)},null,8,["modelValue"])])])]),t.createElementVNode("div",cEt,[t.createVNode(jE,{"selected-category":f.value},null,8,["selected-category"])])]),t.createElementVNode("div",dEt,[t.createVNode(T_,t.normalizeProps(t.guardReactiveProps(B)),null,16)])],64))}},hEt=ml(uEt,[["__scopeId","data-v-575b26b5"]]),Xy=e=>(t.pushScopeId("data-v-6d73d5e6"),e=e(),t.popScopeId(),e),pEt={class:"container"},fEt={class:"container__row"},mEt={class:"container__row__wrapper"},gEt=Xy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),yEt={class:"container__row__wrapper__input"},vEt={class:"container__row two-items"},_Et={class:"container__row__wrapper"},bEt=Xy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),xEt={key:0,class:"container__row__wrapper__input"},wEt={class:"container__row__wrapper"},kEt=Xy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),CEt={key:0,class:"container__row__wrapper__input"},SEt={class:"container__row"},TEt={class:"container__row__wrapper"},EEt=Xy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),AEt={key:0,class:"container__row__wrapper__input"},MEt={class:"container__row type-and-advanced"},IEt={class:"container__row__wrapper"},PEt=Xy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),BEt={class:"container__row__wrapper__input"},NEt={class:"container__row__wrapper center"},zEt=Xy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),OEt={class:"container__row__wrapper__input"},FEt={class:"container__row"},LEt={class:"container__action"},DEt={__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(e,{emit:r}){const i=e,B={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},D=t.ref(null),c=t.ref(null);t.ref(null);const m=t.ref(null),a=t.ref(null),v=t.ref(null),f=t.ref(!0),n=t.computed(()=>i.advancedFilterCategories.team);function y(s){D.value=s,r("update:tournament",s)}function _(s){c.value=s,r("update:season",s)}function p(s){a.value=s,r("update:team",s)}function l(s){m.value=s}function o(s){v.value=s}return(s,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",pEt,[t.createElementVNode("div",fEt,[t.createElementVNode("div",mEt,[gEt,t.createElementVNode("div",yEt,[t.createVNode(lh,{items:e.tournaments,itemTextKey:"name",onInput:y},null,8,["items"])])])]),t.createElementVNode("div",vEt,[t.createElementVNode("div",_Et,[bEt,D.value&&D.value.seasons?(t.openBlock(),t.createElementBlock("div",xEt,[t.createVNode(lh,{items:D.value.seasons,itemTextKey:"name",onInput:_},null,8,["items"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",wEt,[kEt,c.value&&c.value.arrayTeams?(t.openBlock(),t.createElementBlock("div",CEt,[t.createVNode(JW,{items:c.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:p},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",SEt,[t.createElementVNode("div",TEt,[EEt,c.value&&c.value.mapGamesByTeam&&a.value?(t.openBlock(),t.createElementBlock("div",AEt,[t.createVNode(M4,{items:c.value.mapGamesByTeam.get(a.value.team_id),onInput:l},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",MEt,[t.createElementVNode("div",IEt,[PEt,t.createElementVNode("div",BEt,[t.createVNode(lh,{items:n.value,itemTextKey:"name","is-list-same-width":!1,onInput:o},null,8,["items"])])]),t.createElementVNode("div",NEt,[zEt,t.createElementVNode("div",OEt,[t.createVNode(S_,{modelValue:f.value,"onUpdate:modelValue":u[0]||(u[0]=d=>f.value=d)},null,8,["modelValue"])])])]),t.createElementVNode("div",FEt,[t.createVNode(jE,{"selected-category":v.value},null,8,["selected-category"])])]),t.createElementVNode("div",LEt,[t.createVNode(T_,t.normalizeProps(t.guardReactiveProps(B)),null,16)])],64))}},REt=ml(DEt,[["__scopeId","data-v-6d73d5e6"]]),Zy=e=>(t.pushScopeId("data-v-6e904db8"),e=e(),t.popScopeId(),e),VEt={class:"container"},$Et={class:"container__row"},jEt={class:"container__row__wrapper"},UEt=Zy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),GEt={class:"container__row__wrapper__input"},HEt={class:"container__row two-items"},WEt={class:"container__row__wrapper"},qEt=Zy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),YEt={key:0,class:"container__row__wrapper__input"},XEt={class:"container__row__wrapper"},ZEt=Zy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),JEt={key:0,class:"container__row__wrapper__input"},KEt={class:"container__row"},QEt={class:"container__row__wrapper"},eAt=Zy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),tAt={key:0,class:"container__row__wrapper__input"},aAt={class:"container__row type-and-advanced"},nAt={class:"container__row__wrapper"},rAt=Zy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),iAt={class:"container__row__wrapper__input"},oAt={class:"container__row__wrapper center"},sAt=Zy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),lAt={class:"container__row__wrapper__input",style:{width:"fit-content"}},cAt={class:"container__row"},dAt={class:"container__action"},uAt={__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(e,{emit:r}){const i=e,B={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},D=t.ref(null),c=t.ref(null),m=t.ref(null),a=t.ref(null),v=t.ref(null),f=t.ref(!0),n=t.computed(()=>i.advancedFilterCategories.games);function y(s){D.value=s,r("update:tournament",s)}function _(s){c.value=s,r("update:season",s)}function p(s){m.value=s}function l(s){a.value=s}function o(s){v.value=s}return(s,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",VEt,[t.createElementVNode("div",$Et,[t.createElementVNode("div",jEt,[UEt,t.createElementVNode("div",GEt,[t.createVNode(lh,{items:e.tournaments,itemTextKey:"name",onInput:y},null,8,["items"])])])]),t.createElementVNode("div",HEt,[t.createElementVNode("div",WEt,[qEt,D.value&&D.value.seasons?(t.openBlock(),t.createElementBlock("div",YEt,[t.createVNode(lh,{items:D.value.seasons,itemTextKey:"name",onInput:_},null,8,["items"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",XEt,[ZEt,c.value&&c.value.arrayMatchDays?(t.openBlock(),t.createElementBlock("div",JEt,[t.createVNode(lh,{items:c.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:p},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",KEt,[t.createElementVNode("div",QEt,[eAt,m.value&&m.value.arrayGames?(t.openBlock(),t.createElementBlock("div",tAt,[t.createVNode(M4,{items:m.value.arrayGames,onInput:l},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",aAt,[t.createElementVNode("div",nAt,[rAt,t.createElementVNode("div",iAt,[t.createVNode(lh,{items:n.value,itemTextKey:"name","is-list-same-width":!1,onInput:o},null,8,["items"])])]),t.createElementVNode("div",oAt,[sAt,t.createElementVNode("div",lAt,[t.createVNode(S_,{modelValue:f.value,"onUpdate:modelValue":u[0]||(u[0]=d=>f.value=d)},null,8,["modelValue"])])])]),t.createElementVNode("div",cAt,[t.createVNode(jE,{"selected-category":v.value},null,8,["selected-category"])])]),t.createElementVNode("div",dAt,[t.createVNode(T_,t.normalizeProps(t.guardReactiveProps(B)),null,16)])],64))}},hAt=ml(uAt,[["__scopeId","data-v-6e904db8"]]),pAt={class:"template-videos"},fAt={class:"template-videos__header"},mAt={class:"template-videos__body"},gAt=t.defineComponent({name:"TemplateVideos",components:{VideosGoals:bTt,VideosPlayer:hEt,VideosTeam:REt,VideosGame:hAt}}),yAt=Object.assign(gAt,{props:{gamesUrl:{type:String,default:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?"},tournamentsUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"},playersUrl:{type:String,default:"https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/"},token:{type:String,default:""}},emits:["loading-data"],setup(e,{emit:r}){const i=e,B={padding:"4px 18px",borderRadius:"160px",backgroundColor:"#3A4851",borderColor:"#3A4851",activeBorderColor:"#CBEE6B",fontSize:"11px",fontColor:"#FFFFFF"},D=[],c=["g-23","g-24","g-25"],m={games:[607,608,12,55,54,35,14,52,15,53,466,477],team:[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39],player:{regular:[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],goalkeeper:[55,324,323,608,39,774,802,52,53,40,54]}},a={player:1,team:2,goalkeeper:3},v=t.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),f=t.ref([]),n=t.ref(v.value[0]),y=t.ref({}),_=t.ref({}),p=t.ref({}),l=t.ref({}),o=t.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),s=t.ref([]);t.ref({});const u=t.ref(null);t.watch(y,F=>{_.value.numberSeasonSelectedIndex=_.value.seasons.findIndex(R=>R.id===F.id),F.arrayMatchDays?(l.value=F.arrayMatchDays[0]||{},p.value=F.arrayTeams[0]||{}):(w(F),x(F))}),t.watch(p,()=>{setTimeout(()=>{y.value.mapPlayersByTeam&&(!p.value.arrayPlayers||!p.value.arrayPlayers.length)&&(p.value.arrayPlayers=y.value.mapPlayersByTeam.get(p.value.team_id))},700)});async function d(){try{f.value=await h()}catch(F){throw new Error(F)}}async function h(){try{const F={Authorization:$E()||i.token},R={}.API_TOURNAMENTS||i.tournamentsUrl,V=await k_.get(R,{headers:F});return V.data?V.data.map($=>({...$.tournament,seasons:$.seasons})):[]}catch(F){return Promise.reject(F)}}async function g(F,R,V=""){r("loading-data");let $=V;try{$||($={}.API_CALENDAR_GAMES_BY_SEASON||i.gamesUrl,F.forEach((W,Q)=>{$+=`${Q===0?"":"&"}seasons=${W}`}));const U={Authorization:$E()||i.token},{data:{data:Z,teams:q}}=await k_.get($,{headers:U});return{seasonsAndGames:Z,seasonsAndTeams:q}}catch(U){if(R>0)return g(F,R-1,$);throw new Error(U)}finally{r("loading-data")}}async function b(F){try{const R={Authorization:$E()||i.token},V=` ${{}.API_PLAYERS_BY_SEASON||i.playersUrl}${F.seasonId}`,$=await k_.get(V,{headers:R});return $.data?$.data.players:[]}catch(R){return Promise.reject(R)}}async function w(F){try{const{seasonsAndGames:R,seasonsAndTeams:V}=await g([F.id,...F.related_seasons.map(q=>q.id)],3),$=V.find(q=>q._id===F.id);y.value.arrayTeams=[],y.value.mapTeams=new Map;const U=$.teams.reduce((q,W)=>(y.value.arrayTeams.push(W),y.value.mapTeams.set(W.team_id,{name:W.colloquial_name,acronym:W.acronym,logo:W.logo,id:W.team_id}),q.set(W.team_id,W),q),new Map);p.value=y.value.arrayTeams[0],y.value.mapGames=new Map,y.value.mapGamesByTeam=new Map;const Z=Array.from(R.reduce((q,W)=>(W.games.forEach(Q=>{if(Q.game_status===1&&Q.has_video){(!y.value.maxGameId||Q.game_id>y.value.maxGameId)&&(y.value.maxGameId=Q.game_id);let X=Q.matchday_abbreviation.replace("M","J"),J=Q.matchday_abbreviation.replace("M","Jornada ");const ee=Q.matchday_abbreviation.replace("M","");W.season_type===0?_.value.tournament_type===1&&(Q.seasonId===881?(X=BSt[ee]||X,J=PSt[ee]||J):(X=ZW[Q.matchday_abbreviation]?Q.matchday_abbreviation:X,J=ZW[Q.matchday_abbreviation]||J,X==="FINAL"&&(X="F"))):W.season_type===1?(X=ISt[Q.matchday_abbreviation],J=X):(X=Q.matchday_abbreviation.replace("PO","R"),J="Repechaje"),Q.roundAbbreviation=X,Q.roundName=J,y.value.mapGames.set(Q.game_id,{id:Q.game_id,date:Q.date,dateTimeMillis:new Date(Q.date_time_utc).valueOf(),homeTeam:y.value.mapTeams.get(Q.home_team),awayTeam:y.value.mapTeams.get(Q.visiting_team),roundAbbreviation:Q.roundAbbreviation,roundName:Q.roundName,score:Q.score,gameResult:Q.score[0]>Q.score[1]?1:Q.score[0]<Q.score[1]?2:3,seasonId:W.season_id});const le=q.get(Q.roundAbbreviation);Q.numberDateTimeMillis=new Date(Q.date_time_utc).getTime(),Q.homeTeam=U.get(Q.home_team),Q.awayTeam=U.get(Q.visiting_team);const oe=y.value.mapGamesByTeam.get(Q.home_team),se=y.value.mapGamesByTeam.get(Q.visiting_team);oe?oe.push(Q):y.value.mapGamesByTeam.set(Q.home_team,[Q]),se?se.push(Q):y.value.mapGamesByTeam.set(Q.visiting_team,[Q]),le?le.arrayGames.push(Q):q.set(Q.roundAbbreviation,{stringMatchDayAbbreviation:Q.roundAbbreviation,stringMatchDayName:Q.roundName,arrayGames:[Q]})}}),q),new Map).values());Z.reverse(),Z.forEach(q=>{q.arrayGames.sort((W,Q)=>W.numberDateTimeMillis-Q.numberDateTimeMillis)}),y.value.arrayMatchDays=Z,l.value=Z[0]||{}}catch(R){throw new Error(R)}}async function x(F){try{const R=await A(F.id);y.value.mapPlayers=new Map,y.value.mapPlayersByTeam=R.reduce((V,$)=>{y.value.mapPlayers.set($.player_id,{id:$.player_id,name:$.player_name,shortName:$.shortName,photo:$.player_photo,teamId:$.team_id,positionId:$.position_id});const U=V.get($.team_id);return U?U.push($):V.set($.team_id,[$]),V},new Map)}catch(R){throw new Error(R)}}async function S(){try{let F=[];o.value.isEmpty?(F=await E(),s.value={...F}):F=s.value;const R=[];if(F&&F.length){o.value=F.reduce((W,Q)=>{if(Q.group_id!=="g-55"){const X={idAux:Q.group_id,ids:[...Q.ids?Q.ids:[],...Q.rival_Ids?Q.rival_Ids:[]],type:Q.type,name:Q.name,coordinatePoint:Q.coordinate_point,requiresRivalTransform:c.includes(Q.group_id)};X.idsAux=[...X.ids],X.subcategoryGroups=Q.group_id==="g-12"?[]:k(Q,0,new Map,!1,{},X.idsAux),R.push(X),X.type.includes(a.player)&&W.player.push(X),X.type.includes(a.team)&&(X.idAux!=="g-2"&&W.games.push(X),W.team.push(X)),X.type.includes(a.goalkeeper)&&W.goalkeeper.push(X)}return W},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const V=new Map,$="Resumen",U="Todas sus jugadas",Z=o.value.player.reduce((W,Q)=>{const X=T(Q);return X.forEach(J=>{V.set(J,Q.name)}),W.push(...X),W},[]),q=o.value.goalkeeper.reduce((W,Q)=>{const X=T(Q);return X.forEach(J=>{V.set(J,Q.name)}),W.push(...X),W},[]);o.value.games.unshift({name:$,arrayCategoriesIds:m.games,booleanIsBestPlays:!0}),o.value.team.unshift({name:$,arrayCategoriesIds:m.team,booleanIsBestPlays:!0}),o.value.player.unshift({name:$,arrayCategoriesIds:m.player.regular,booleanIsBestPlays:!0},{name:U,arrayCategoriesIds:Z,booleanIsMinutesPlayed:!0}),o.value.goalkeeper.unshift({name:$,arrayCategoriesIds:m.player.goalkeeper,booleanIsBestPlays:!0},{name:U,arrayCategoriesIds:q,booleanIsMinutesPlayed:!0})}}catch(F){throw new Error(F)}}function k(F,R=0,V=new Map,$=!1,U={},Z=[]){if(!F.group_id)return;let q=V.get(R);const W=$?`${F.id_category}_r`:F.id_category;F.id_category&&Z.push(F.id_category);let Q={ids:[W],groupId:F.group_id,level:R,name:F.name,isSelected:!0,fatherCategories:R>0?[U]:[],idsByFatherCategory:{[F.category_father]:[W]}};if(R>0&&R===1&&(Q.id=F.id_category),q&&R!==0){const X=F.group_id.charAt(F.group_id.length-1),J=q.find(ee=>ee.groupId.endsWith(X));J&&!D.includes(Q.groupId)?(Q=J,J.ids.push(W),J.fatherCategories.push(U),J.fatherCategories.forEach(ee=>{ee.childCategories?ee.childCategories.find(le=>le.groupId===Q.groupId)||ee.childCategories.push(Q):ee.childCategories=[Q]}),J.idsByFatherCategory[F.category_father]?J.idsByFatherCategory[F.category_father].push(W):J.idsByFatherCategory[F.category_father]=[W]):(Q.fatherCategories.forEach(ee=>{ee.childCategories?ee.childCategories.find(le=>le.groupId===Q.groupId)||ee.childCategories.push(Q):ee.childCategories=[Q]}),q.push(Q))}else R!==0&&(U.childCategories?U.childCategories.push(Q):U.childCategories=[Q],q=[Q],V.set(R,q));if(F.categories&&F.categories.length?F.categories.forEach(X=>{k(X,R+1,V,$,Q,Z)}):F.rival_categories&&F.rival_categories.length&&F.rival_categories.forEach(X=>{k(X,R+1,V,!0,Q,Z)}),R===0)return Array.from(V.values())}function T(F){const R=F||F;if(R.booleanIsBestPlays)return R.arrayCategoriesIds;const V={total:[],toRemove:[]};if(R.subcategoryGroups&&R.subcategoryGroups.length?R.subcategoryGroups[0].forEach($=>{C($,null,V)}):(R.ids&&V.total.push(...R.ids),R.rival_ids&&R.rival_ids.forEach($=>{V.total.push(`${$}_r`)})),V.total=V.total.reduce(($,U)=>(V.toRemove.includes(U)||$.push(U),$),[]),!F){const $=R.name.toLowerCase().includes("recibid");u.value.isRivalSubject=$,u.value.avoidCategorySingleName=$,u.value.coordinatePoint=R.coordinatePoint,u.value.requiresRivalTransform=R.requiresRivalTransform}return V.total}function C(F,R=[],V={total:[],toRemove:[]}){F.isSelected?F.childCategories?F.childCategories.forEach($=>{const U=R?Object.entries(F.idsByFatherCategory).reduce((Z,[q,W])=>(R.includes(Number(q))&&W.forEach(Q=>{typeof Q=="string"&&Q.endsWith("_r")?Z.push(Number(Q.split("_")[0])):Z.push(Q)}),Z),[]):[F.id];C($,U,V)}):R?Object.entries(F.idsByFatherCategory).forEach(([$,U])=>{R.includes(Number($))&&U.forEach(Z=>{V.total.push(Z)})}):F.level===1?Object.entries(F.idsByFatherCategory).forEach(([$,U])=>{U.forEach(Z=>{V.total.push(Z)})}):V.total.push(F.id):F.childCategories||F.ids.forEach($=>{V.toRemove.push($)})}async function A(F){try{const R=await b({seasonId:F});return R.forEach(V=>{const[$,U]=V.player_name.split(","),Z=$.split(" ");let q="";for(const W of Z)if(q+=` ${W}`,W.length>3)break;V.shortName=U&&$?`${U.trim().charAt(0)}.${q}`:""}),R}catch(R){return Promise.reject(R)}}async function E(){try{const F={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await k_.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:F})).data||[]}catch(F){return Promise.reject(F)}}function M(F){n.value=F}function I(F){_.value=F,y.value=F.seasons[0]}function N(F){y.value=F}function z(F){p.value=F}return d(),S(),(F,R)=>(t.openBlock(),t.createElementBlock("div",pAt,[t.createElementVNode("div",fAt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v.value,V=>(t.openBlock(),t.createBlock(T_,t.mergeProps({key:V.name},B,{text:V.name,"is-active":n.value.componentName===V.componentName,tournaments:f.value,onClick:$=>M(V)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),t.createElementVNode("div",mAt,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.value.componentName),{tournaments:f.value,"advanced-filter-categories":o.value,"onUpdate:tournament":I,"onUpdate:season":N,"onUpdate:team":z},null,40,["tournaments","advanced-filter-categories"]))])]))}}),vAt=ml(yAt,[["__scopeId","data-v-d6f7aec8"]]),KW=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero "],[10,"Desconocida"]]),_At={class:"template-taken-corners"},bAt={class:"template-taken-corners__header"},xAt={class:"template-taken-corners__header__all"},wAt={class:"template-taken-corners__body"},kAt={class:"template-taken-corners__body__players"},CAt={class:"template-taken-corners__body__players__player__jersey"},SAt={class:"template-taken-corners__body__players__player__photo"},TAt={class:"template-taken-corners__body__players__player__photo__img"},EAt=["src"],AAt={class:"template-taken-corners__body__players__player__info"},MAt={class:"template-taken-corners__body__players__player__info__name"},IAt={class:"template-taken-corners__body__players__player__info__position"},PAt={class:"template-taken-corners__body__players__player__info__position__nationality"},BAt=["src"],NAt={class:"template-taken-corners__body__players__player__info__position__name"},zAt={class:"template-taken-corners__body__players__player__checkbox"},OAt={__name:"TemplateTakenCorners",props:{isFemale:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},takenCornersFilters:{type:Array,default:()=>[]}},emits:["change-filters-selected","update:filters"],setup(e,{expose:r,emit:i}){const B=e,D=t.ref(!1),c=t.ref([]),m=t.computed(()=>B.isExpansionMode?"Cobradores filtrados:":"Cobradores con los filtros seleccionados"),a=t.computed(()=>c.value.reduce((o,s)=>s.isSelected?o+1:o,0));t.watch(()=>B.takenCornersFilters,o=>{c.value=o.map(s=>{const u={...s};return(s.isSelected===void 0||s.isSelected===null)&&(u.isSelected=!0),u})},{immediate:!0,deep:!0}),t.watch(a,o=>{D.value=o===c.value.length,i("change-filters-selected",o),i("update:filters",c.value)},{immediate:!0});function v(o){return`https://az755631.vo.msecnd.net/flags/${o}.jpg`}function f(o){return`https://az755631.vo.msecnd.net/players-profile/${o}.png`}function n(o){let s=!1;return o.split(" ").reduce((u,d)=>(s||(d.length>3?(u=d,s=!0):u+=`${d} `),u),"").trim()}function y(o){return`${n(o.last_name)}, ${o.first_name.trim()}`}function _(o){return B.isFemale?KW.get(o.positions[0]).replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):KW.get(o.positions[0])}function p(o){o?c.value.forEach(s=>{s.isSelected=!0}):c.value.forEach((s,u)=>{s.isSelected=u===0})}function l(){c.value.forEach(o=>{o.isSelected=!0})}return r({clearFilters:l}),(o,s)=>(t.openBlock(),t.createElementBlock("div",_At,[t.createElementVNode("div",bAt,[t.createElementVNode("div",{class:"template-taken-corners__header__text",style:t.normalizeStyle({opacity:e.isExpansionMode?"0.6":1,"font-size":e.isExpansionMode?"12px":"14px"})},t.toDisplayString(m.value),5),t.createElementVNode("div",xAt,[t.createVNode(t.unref(Is),{"model-value":D.value,label:"Seleccionar todos","onUpdate:modelValue":p},null,8,["model-value"])])]),t.createElementVNode("div",wAt,[t.createElementVNode("div",kAt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,u=>(t.openBlock(),t.createElementBlock("div",{key:u.player_id,class:"template-taken-corners__body__players__player"},[t.createElementVNode("div",CAt,t.toDisplayString(u.jersey),1),t.createElementVNode("div",SAt,[t.createElementVNode("div",TAt,[t.createElementVNode("img",{src:f(u.player_id),alt:"player photo",width:"36",height:"36"},null,8,EAt)])]),t.createElementVNode("div",AAt,[t.createElementVNode("div",MAt,t.toDisplayString(y(u)),1),t.createElementVNode("div",IAt,[t.createElementVNode("div",PAt,[t.createElementVNode("img",{src:v(u.nationality_id),alt:"country flag"},null,8,BAt)]),t.createElementVNode("div",NAt,t.toDisplayString(_(u)),1)])]),t.createElementVNode("div",zAt,[t.createVNode(t.unref(Is),{modelValue:u.isSelected,"onUpdate:modelValue":d=>u.isSelected=d,"avoid-interaction":a.value===1&&u.isSelected},null,8,["modelValue","onUpdate:modelValue","avoid-interaction"])])]))),128))])])]))}},FAt=ml(OAt,[["__scopeId","data-v-2d59e1a2"]]),UE={cornerType:"left",left:[{title:"Comba hacia afuera",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-afuera-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[120]},{title:"Comba hacia adentro",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-adentro-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[126]},{title:"Raso al área",imgSrc:"https://golstatsimages.blob.core.windows.net/content/raz-area-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[327]},{title:"En corto",imgSrc:"https://golstatsimages.blob.core.windows.net/content/en-corto-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[133]}],right:[{title:"Comba hacia afuera",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-afuera-derecha.png",howMany:0,isSelected:!0,categoriesIds:[134]},{title:"Comba hacia adentro",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-adentro-derecha.png",howMany:0,isSelected:!0,categoriesIds:[140]},{title:"Raso al área",imgSrc:"https://golstatsimages.blob.core.windows.net/content/raz-area-derecha.png",howMany:0,isSelected:!0,categoriesIds:[146]},{title:"En corto",imgSrc:"https://golstatsimages.blob.core.windows.net/content/en-corto-derecha.png",howMany:0,isSelected:!0,categoriesIds:[147]}]},GE=e=>(t.pushScopeId("data-v-b7e3b8e0"),e=e(),t.popScopeId(),e),LAt={class:"template-how-was-corner"},DAt={class:"template-how-was-corner__header"},RAt=GE(()=>t.createElementVNode("div",{class:"template-how-was-corner__header__zone"},"ZONA:",-1)),VAt={class:"template-how-was-corner__header__radio-input"},$At={class:"template-how-was-corner__header__radio-input__radio"},jAt=GE(()=>t.createElementVNode("label",{for:"left"},"Por izquierda",-1)),UAt={class:"template-how-was-corner__header__radio-input"},GAt={class:"template-how-was-corner__header__radio-input__radio"},HAt=GE(()=>t.createElementVNode("label",{for:"right"},"Por derecha",-1)),WAt=["onClick"],qAt={class:"template-how-was-corner__content__corner-type__img"},YAt=["src","alt"],XAt={class:"template-how-was-corner__content__corner-type__info"},ZAt={class:"template-how-was-corner__content__corner-type__info__title"},JAt={__name:"TemplateHowWasCorner",props:{howWasCornerFilters:{type:Object,default:()=>UE},isExpansionMode:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(e,{emit:r}){const i=e,B=t.ref("left"),D=t.computed(()=>i.howWasCornerFilters[i.howWasCornerFilters.cornerType]),c=t.computed(()=>D.value.filter(a=>a.isSelected).length);t.watch(()=>B.value,a=>{i.howWasCornerFilters.cornerType=a}),t.watch(()=>i.howWasCornerFilters,a=>{r("change-filters-selected",i.howWasCornerFilters[a.cornerType].reduce((v,f)=>f.isSelected?v+1:v,0)),B.value=a.cornerType,r("update:filters",a)},{deep:!0,immediate:!0});function m(a){a.isSelected&&c.value===1||(a.isSelected=!a.isSelected)}return(a,v)=>(t.openBlock(),t.createElementBlock("div",LAt,[t.createElementVNode("div",DAt,[RAt,t.createElementVNode("div",VAt,[t.createElementVNode("div",$At,[t.withDirectives(t.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":v[0]||(v[0]=f=>B.value=f)},null,512),[[t.vModelRadio,B.value]]),jAt])]),t.createElementVNode("div",UAt,[t.createElementVNode("div",GAt,[t.withDirectives(t.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":v[1]||(v[1]=f=>B.value=f)},null,512),[[t.vModelRadio,B.value]]),HAt])])]),t.createElementVNode("div",{class:t.normalizeClass(["template-how-was-corner__content",{"is-expansion-mode":e.isExpansionMode}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,(f,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(["template-how-was-corner__content__corner-type",{"is-selected":f.isSelected}]),onClick:y=>m(f)},[t.createElementVNode("div",qAt,[t.createElementVNode("img",{src:f.imgSrc,alt:f.title},null,8,YAt)]),t.createElementVNode("div",XAt,[t.createElementVNode("div",ZAt,t.toDisplayString(f.title),1)])],10,WAt))),128))],2)]))}},KAt=ml(JAt,[["__scopeId","data-v-b7e3b8e0"]]),E_=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],f0=e=>(t.pushScopeId("data-v-378bf7e2"),e=e(),t.popScopeId(),e),QAt={class:"template-zone"},eMt={class:"controls-zone-container"},tMt={class:"controls-zone-container-title-checkcon"},aMt={class:"controls-zone-container-title-checkcon-check"},nMt={class:"gsc-field-img-container"},rMt={width:"100%",height:"177",viewBox:"0 0 380 177",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iMt=["fill"],oMt=["fill"],sMt=["fill"],lMt=["fill"],cMt=["fill"],dMt=["fill"],uMt=["fill"],hMt=["fill"],pMt=["fill"],fMt=["fill"],mMt=["fill"],gMt=["fill"],yMt=["fill"],vMt=["fill"],_Mt=["fill"],bMt=["fill"],xMt=["fill"],wMt=["fill"],kMt=["fill"],CMt=["fill"],SMt=["fill"],TMt=["fill"],EMt=["fill"],AMt=["fill"],MMt=["fill"],IMt=["fill"],PMt=["fill"],BMt=["fill"],NMt=["fill"],zMt=["fill"],OMt=["fill"],FMt=["fill"],LMt=["fill"],DMt=["fill"],RMt=["fill"],VMt=f0(()=>t.createElementVNode("rect",{x:"91.6",y:"0.6",width:"196.8",height:"87.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),$Mt=f0(()=>t.createElementVNode("rect",{x:"137.6",y:"0.782404",width:"104.8",height:"28.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),jMt=["id"],UMt=f0(()=>t.createElementVNode("rect",{width:"197.746",height:"24.6043",transform:"matrix(1 0 0 -1 91 113)",fill:"#D9D9D9"},null,-1)),GMt=[UMt],HMt=["mask"],WMt=f0(()=>t.createElementVNode("circle",{cx:"185.329",cy:"56.5046",r:"52.6152",stroke:"#DFE3E2","stroke-width":"1.38817"},null,-1)),qMt=[WMt],YMt=f0(()=>t.createElementVNode("circle",{cx:"190.278",cy:"66.2782",r:"2.27817",fill:"white"},null,-1)),XMt=f0(()=>t.createElementVNode("rect",{x:"0.7",y:"0.7",width:"378.6",height:"175.6",stroke:"#DFE3E2","stroke-width":"1.4"},null,-1)),ZMt={class:"template-zone__total-corners"},JMt=f0(()=>t.createElementVNode("div",{class:"template-zone__total-corners__text"}," Tiros de esquina cobrados a las zonas filtradas ",-1)),KMt=f0(()=>t.createElementVNode("div",{class:"template-zone__total-corners__value"},"10",-1)),QMt=[JMt,KMt],eIt={__name:"TemplateZone",props:{zoneFilters:{type:Array,default:()=>[...E_]},widthContainer:{type:Number,default:1280},show:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(e,{expose:r,emit:i}){const B=e,D=t.ref(!0),c=t.ref([]),m=t.computed(()=>new Date().getTime());t.watch(c,n=>{D.value=n.length===35}),t.watch(()=>B.zoneFilters,n=>{c.value=n},{immediate:!0,deep:!0}),t.watch(()=>c.value,n=>{i("update:filters",n),i("change-filters-selected",n.length)},{deep:!0});function a(n){n?(c.value=E_,D.value=!0):(c.value=[],D.value=!1)}function v(n){c.value.includes(n)?c.value=c.value.filter(y=>y!==n):c.value.push(n),D.value=c.value.length===35}function f(){c.value=[...E_]}return r({clearFilters:f}),(n,y)=>(t.openBlock(),t.createElementBlock("div",QAt,[t.createElementVNode("div",eMt,[t.createElementVNode("div",{class:"controls-zone-container-title",style:t.normalizeStyle(e.widthContainer<=440?"font-size: 11px;":"#2e3b46")}," ¿A donde fue el balón?: ",4),t.createElementVNode("div",tMt,[t.createElementVNode("div",{class:"controls-zone-container-title-checkcon-label",style:t.normalizeStyle(e.widthContainer<=440?"font-size: 12px;":"#2e3b46")}," Todas las zonas ",4),t.createElementVNode("div",aMt,[t.createVNode(t.unref(Is),{label:"",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":D.value,"onUpdate:modelValue":a},null,8,["model-value"])])])]),t.createElementVNode("div",nMt,[(t.openBlock(),t.createElementBlock("svg",rMt,[t.createElementVNode("rect",{onClick:y[0]||(y[0]=_=>v(1)),class:"sector-field",x:"0.347042",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(1)?"#FFFF0030":"#2e3b46"},null,8,iMt),t.createElementVNode("rect",{onClick:y[1]||(y[1]=_=>v(9)),class:"sector-field",x:"288.347",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(9)?"#FFFF0030":"#2e3b46"},null,8,oMt),t.createElementVNode("rect",{onClick:y[2]||(y[2]=_=>v(17)),class:"sector-field",x:"0.347042",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(17)?"#FFFF0030":"#2e3b46"},null,8,sMt),t.createElementVNode("rect",{onClick:y[3]||(y[3]=_=>v(25)),class:"sector-field",x:"288.347",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(25)?"#FFFF0030":"#2e3b46"},null,8,lMt),t.createElementVNode("rect",{onClick:y[4]||(y[4]=_=>v(26)),class:"sector-field",x:"0.347042",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(26)?"#FFFF0030":"#2e3b46"},null,8,cMt),t.createElementVNode("rect",{onClick:y[5]||(y[5]=_=>v(27)),class:"sector-field",x:"91.347",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(27)?"#FFFF0030":"#2e3b46"},null,8,dMt),t.createElementVNode("rect",{onClick:y[6]||(y[6]=_=>v(28)),class:"sector-field",x:"157.015",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(28)?"#FFFF0030":"#2e3b46"},null,8,uMt),t.createElementVNode("rect",{onClick:y[7]||(y[7]=_=>v(29)),class:"sector-field",x:"222.679",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(29)?"#FFFF0030":"#2e3b46"},null,8,hMt),t.createElementVNode("rect",{onClick:y[8]||(y[8]=_=>v(30)),class:"sector-field",x:"288.347",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(30)?"#FFFF0030":"#2e3b46"},null,8,pMt),t.createElementVNode("rect",{onClick:y[9]||(y[9]=_=>v(31)),class:"sector-field",x:"0.347042",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(31)?"#FFFF0030":"#2e3b46"},null,8,fMt),t.createElementVNode("rect",{onClick:y[10]||(y[10]=_=>v(32)),class:"sector-field",x:"91.347",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(32)?"#FFFF0030":"#2e3b46"},null,8,mMt),t.createElementVNode("rect",{onClick:y[11]||(y[11]=_=>v(33)),class:"sector-field",x:"157.015",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(33)?"#FFFF0030":"#2e3b46"},null,8,gMt),t.createElementVNode("rect",{onClick:y[12]||(y[12]=_=>v(34)),class:"sector-field",x:"222.679",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(34)?"#FFFF0030":"#2e3b46"},null,8,yMt),t.createElementVNode("rect",{onClick:y[13]||(y[13]=_=>v(35)),class:"sector-field",x:"288.347",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(35)?"#FFFF0030":"#2e3b46"},null,8,vMt),t.createElementVNode("rect",{onClick:y[14]||(y[14]=_=>v(2)),class:"sector-field",x:"91.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(2)?"#FFFF0030":"#2e3b46"},null,8,_Mt),t.createElementVNode("rect",{onClick:y[15]||(y[15]=_=>v(3)),class:"sector-field",x:"114.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(3)?"#FFFF0030":"#2e3b46"},null,8,bMt),t.createElementVNode("rect",{onClick:y[16]||(y[16]=_=>v(4)),class:"sector-field",x:"137.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(4)?"#FFFF0030":"#2e3b46"},null,8,xMt),t.createElementVNode("rect",{onClick:y[17]||(y[17]=_=>v(5)),class:"sector-field",x:"172.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(5)?"#FFFF0030":"#2e3b46"},null,8,wMt),t.createElementVNode("rect",{onClick:y[18]||(y[18]=_=>v(6)),class:"sector-field",x:"207.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(6)?"#FFFF0030":"#2e3b46"},null,8,kMt),t.createElementVNode("rect",{onClick:y[19]||(y[19]=_=>v(7)),class:"sector-field",x:"242.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(7)?"#FFFF0030":"#2e3b46"},null,8,CMt),t.createElementVNode("rect",{onClick:y[20]||(y[20]=_=>v(8)),class:"sector-field",x:"265.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(8)?"#FFFF0030":"#2e3b46"},null,8,SMt),t.createElementVNode("rect",{onClick:y[21]||(y[21]=_=>v(10)),class:"sector-field",x:"91.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(10)?"#FFFF0030":"#2e3b46"},null,8,TMt),t.createElementVNode("rect",{onClick:y[22]||(y[22]=_=>v(11)),class:"sector-field",x:"114.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(11)?"#FFFF0030":"#2e3b46"},null,8,EMt),t.createElementVNode("rect",{onClick:y[23]||(y[23]=_=>v(12)),class:"sector-field",x:"137.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(12)?"#FFFF0030":"#2e3b46"},null,8,AMt),t.createElementVNode("rect",{onClick:y[24]||(y[24]=_=>v(13)),class:"sector-field",x:"172.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(13)?"#FFFF0030":"#2e3b46"},null,8,MMt),t.createElementVNode("rect",{onClick:y[25]||(y[25]=_=>v(14)),class:"sector-field",x:"207.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(14)?"#FFFF0030":"#2e3b46"},null,8,IMt),t.createElementVNode("rect",{onClick:y[26]||(y[26]=_=>v(15)),class:"sector-field",x:"242.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(15)?"#FFFF0030":"#2e3b46"},null,8,PMt),t.createElementVNode("rect",{onClick:y[27]||(y[27]=_=>v(16)),class:"sector-field",x:"265.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(16)?"#FFFF0030":"#2e3b46"},null,8,BMt),t.createElementVNode("rect",{onClick:y[28]||(y[28]=_=>v(18)),class:"sector-field",x:"91.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(18)?"#FFFF0030":"#2e3b46"},null,8,NMt),t.createElementVNode("rect",{onClick:y[29]||(y[29]=_=>v(19)),class:"sector-field",x:"114.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(19)?"#FFFF0030":"#2e3b46"},null,8,zMt),t.createElementVNode("rect",{onClick:y[30]||(y[30]=_=>v(20)),class:"sector-field",x:"137.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(20)?"#FFFF0030":"#2e3b46"},null,8,OMt),t.createElementVNode("rect",{onClick:y[31]||(y[31]=_=>v(21)),class:"sector-field",x:"172.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(21)?"#FFFF0030":"#2e3b46"},null,8,FMt),t.createElementVNode("rect",{onClick:y[32]||(y[32]=_=>v(22)),class:"sector-field",x:"207.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(22)?"#FFFF0030":"#2e3b46"},null,8,LMt),t.createElementVNode("rect",{onClick:y[33]||(y[33]=_=>v(23)),class:"sector-field",x:"242.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(23)?"#FFFF0030":"#2e3b46"},null,8,DMt),t.createElementVNode("rect",{onClick:y[34]||(y[34]=_=>v(24)),class:"sector-field",x:"265.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(24)?"#FFFF0030":"#2e3b46"},null,8,RMt),VMt,$Mt,t.createElementVNode("mask",{id:m.value,style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"91",y:"88",width:"198",height:"25"},GMt,8,jMt),t.createElementVNode("g",{mask:`url(#${m.value})`},qMt,8,HMt),YMt,XMt]))]),t.withDirectives(t.createElementVNode("div",ZMt,QMt,512),[[t.vShow,!1]])]))}},tIt=ml(eIt,[["__scopeId","data-v-378bf7e2"]]),HE=[{text:"Rematado con destino a portería",isSelected:!0,child:[{text:"Fue gol",isSelected:!0,categoryIds:[583,585,587,589]},{text:"No fue gol",isSelected:!0,categoryIds:[584,586,588,590]}]},{text:"Rematado sin destino a portería",isSelected:!0,categoryIds:[122,128,136,142]},{text:"Ganados por portero rival",isSelected:!0,categoryIds:[123,129,137,143]},{text:"Ganados por jugador rival",isSelected:!0,categoryIds:[124,130,138,144]},{text:"Sin destino",isSelected:!0,categoryIds:[125,131,139,145]}],aIt={class:"what-happened"},nIt={class:"what-happened__all"},rIt={class:"what-happened__filters"},iIt={key:0,class:"what-happened__filters__filter__composed"},oIt={class:"what-happened__filters__filter__composed__main"},sIt={key:1,class:"what-happened__filters__filter__single"},lIt={__name:"TemplateWhatHappened",props:{isFemale:{type:Boolean,default:!1},whatHappenedFilters:{type:Array,default:()=>[...HE]}},emits:["change-filters-selected","update:filters"],setup(e,{expose:r,emit:i}){const B=e,D=t.computed(()=>B.whatHappenedFilters.reduce((p,l)=>(l.child?l.child.forEach(o=>{o.isSelected&&p++}):l.isSelected&&p++,p),0)),c=t.computed(()=>B.whatHappenedFilters.reduce((p,l)=>(l.child?p+=l.child.length:p++,p),0)),m=t.computed(()=>D.value===c.value),a=t.computed(()=>D.value===1);t.watch(()=>B.whatHappenedFilters,p=>{i("change-filters-selected",D.value),i("update:filters",p)},{deep:!0,immediate:!0});function v(p){B.whatHappenedFilters.forEach(l=>{p?(l.isSelected=p,l.child&&l.child.forEach(o=>{o.isSelected=p})):l.child?(l.isSelected=!0,l.child.forEach(o=>{o.isSelected=!0})):l.isSelected=!1})}function f(p,l){l.isSelected=p,l.child.forEach(o=>{o.isSelected=p})}function n(p,l,o){o.isSelected=p,l.isSelected=l.child.every(s=>s.isSelected)}function y(p,l){l.isSelected=p}function _(){B.whatHappenedFilters.forEach(p=>{p.child?p.child.forEach(l=>{l.isSelected=!0}):p.isSelected=!0})}return r({onResetFilters:_}),(p,l)=>(t.openBlock(),t.createElementBlock("div",aIt,[t.createElementVNode("div",nIt,[t.createVNode(t.unref(Is),{label:"Todos","model-value":m.value,"box-position":"right","onUpdate:modelValue":v},null,8,["model-value"])]),t.createElementVNode("div",rIt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.whatHappenedFilters,(o,s)=>(t.openBlock(),t.createElementBlock("div",{key:s,class:"what-happened__filters__filter"},[o.child?(t.openBlock(),t.createElementBlock("div",iIt,[t.createElementVNode("div",oIt,[t.createVNode(t.unref(Is),{"model-value":o.isSelected,label:e.isFemale?o.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):o.text,"avoid-interaction":a.value&&o.isSelected,"onUpdate:modelValue":u=>f(u,o)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.child,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:`c${d}`,class:"what-happened__filters__filter__composed__child"},[t.createVNode(t.unref(Is),{"model-value":u.isSelected,label:e.isFemale?u.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):u.text,"avoid-interaction":a.value&&u.isSelected,"onUpdate:modelValue":h=>n(h,o,u)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))),128))])):(t.openBlock(),t.createElementBlock("div",sIt,[t.createVNode(t.unref(Is),{"model-value":o.isSelected,label:e.isFemale?o.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):o.text,"avoid-interaction":a.value&&o.isSelected,"onUpdate:modelValue":u=>y(u,o)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))]))),128))])]))}},cIt=ml(lIt,[["__scopeId","data-v-8f375a1a"]]),WE={isMoment:!1,isMomentOnly:!1,results:{final:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}],moment:[{name:"Iba ganando",value:1,isSelected:!0},{name:"Iba perdiendo",value:2,isSelected:!0},{name:"Iba empatando",value:3,isSelected:!0}]}},QW=e=>(t.pushScopeId("data-v-ee3b28d3"),e=e(),t.popScopeId(),e),dIt={class:"template-results"},uIt={class:"template-results__type-switch"},hIt=QW(()=>t.createElementVNode("div",{class:"template-results__type-switch__label"},"Final",-1)),pIt=QW(()=>t.createElementVNode("div",{class:"template-results__type-switch__label"},"Al momento",-1)),fIt={class:"template-results__info"},mIt={key:0,class:"template-results__group"},gIt={key:1,class:"template-results__group"},yIt={__name:"TemplateResultsByTime",props:{resultsFilters:{type:Object,default:()=>({...WE})}},emits:["update:resultsFilters","change-filters-selected","update:filters"],setup(e,{expose:r,emit:i}){const B=e,D=t.ref(null),c=t.computed(()=>{const v=D.value.isMoment?D.value.results.moment.filter(f=>f.isSelected).length:D.value.results.final.filter(f=>f.isSelected).length;return i("change-filters-selected",v),v}),m=t.computed(()=>D.value.isMoment?"Resultado al momento del cobro":"Resultado al final del partido");t.watch(()=>B.resultsFilters,v=>{D.value===null&&(D.value={...v})},{deep:!0,immediate:!0}),t.watch(D,v=>{i("update:filters",v)},{deep:!0,immediate:!0});function a(){D.value.isMoment=!1,D.value.results.moment.forEach(v=>{v.isSelected=!0}),D.value.results.final.forEach(v=>{v.isSelected=!0})}return r({removeFilters:a}),(v,f)=>(t.openBlock(),t.createElementBlock("div",dIt,[t.withDirectives(t.createElementVNode("div",uIt,[hIt,t.createVNode(S_,{modelValue:D.value.isMoment,"onUpdate:modelValue":f[0]||(f[0]=n=>D.value.isMoment=n)},null,8,["modelValue"]),pIt],512),[[t.vShow,!D.value.isMomentOnly]]),t.createElementVNode("div",fIt,t.toDisplayString(m.value),1),D.value.isMoment?(t.openBlock(),t.createElementBlock("div",mIt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.results.moment,(n,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:"template-results__result"},[t.createVNode(t.unref(Is),{modelValue:n.isSelected,"onUpdate:modelValue":_=>n.isSelected=_,label:n.name,"avoid-interaction":c.value===1&&n.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))])):(t.openBlock(),t.createElementBlock("div",gIt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.results.final,(n,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:"template-results__result"},[t.createVNode(t.unref(Is),{modelValue:n.isSelected,"onUpdate:modelValue":_=>n.isSelected=_,label:n.name,"avoid-interaction":c.value===1&&n.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))]))}},vIt=ml(yIt,[["__scopeId","data-v-ee3b28d3"]]),_It={key:0,class:"productivity__header__text"},bIt={key:1,class:"productivity__header__checkbox"},xIt={class:"templates__body"},wIt={key:0,class:"templates-plays"},kIt={key:1,class:"templates-productivity"},CIt={key:2,class:"template-field"},SIt={key:3,class:"template-details"},TIt={key:4,class:"template-personal-data"},EIt={key:5,class:"template-leagues"},AIt={key:6,class:"template-plays"},MIt={key:7,class:"template-plays"},IIt={key:8,class:"template-universe"},PIt={key:9,class:"template-distance"},BIt={key:10,class:"template-results"},NIt={key:11,class:"template-results-by-type"},zIt={key:12,class:"template-games"},OIt={key:13,class:"template-taken-corners"},FIt={key:14,class:"template-videos"},LIt={key:15,class:"template-how-was-corner"},DIt={key:16,class:"template-zone"},RIt={key:17,class:"template-what-happened"},VIt={key:1,class:"templates__footer"},$It={class:"templates__footer__button"},jIt={class:"templates__footer__button"},UIt={__name:"GSC-FilterTemplates",props:{filterType:{type:String,default:""},width:{type:String,default:"100%"},maxWidth:{type:String,default:"100%"},productivityMaxCategories:{type:Number,default:5},productivityCategories:{type:[Object,null],default:()=>null},playsCategories:{type:[Object,null],default:()=>null},fieldAreas:{type:[Array,null],default:()=>[]},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},isPlayingAsHidden:{type:Boolean,default:!1},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}]},isFemale:{type:Boolean,default:!1},tournaments:{type:Array,default:()=>[]},playsGolstatsCategories:{type:Array,default:()=>[]},universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,r)=>r+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},zoneFilters:{type:Array,default:()=>[]},whatHappenedFilters:{type:Array,default:()=>[]},personalDataFilters:{type:Object,default:()=>({})},distanceFilters:{type:Object,default:()=>({minValue:5,maxValue:30,minLimit:5,maxLimit:30})},resultsFilters:{type:Object,default:()=>({})},resultsByTimeFilters:{type:Object,default:()=>({})},gamesFilters:{type:Array,default:()=>[]},takenCornersFilters:{type:Array,default:()=>[]},howWasCornerFilters:{type:Object,default:()=>({})},backgroundColor:{type:String,default:"#2E3B46"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0)"},borderWidth:{type:String,default:"1px"},boxShadow:{type:String,default:"0 14px 28px 0 rgba(0, 0, 0, 0.25)"},padding:{type:String,default:"20px"},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:String,default:"1px"},textColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"'Poppins-Regular'"},isExpansionMode:{type:Boolean,default:!0},isFooterVisible:{type:Boolean,default:!1},isFooterCancelOnly:{type:Boolean,default:!1},isScouting:{type:Boolean,default:!1},fieldComponentProps:{type:Object,default:()=>{}},season:{type:Object,default:()=>({})},token:{type:String,default:""},modalHeight:{type:String,default:"fit-content"}},emits:["change-categories-selected","change-filters-selected","change-universe-filters","change-field-areas","apply","click-cancel","update:filters","total-filters"],setup(e,{expose:r,emit:i}){const B=e,D=t.ref(null),c=t.ref(!1),m=t.ref({playingAs:B.playingAs,gameSections:B.gameSections}),a=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),v=t.ref(null),f=t.ref(null),n=t.ref(null),y=t.ref(null),_=t.ref(null),p=t.computed(()=>({"--width":B.width,"--max-width":B.maxWidth,"--background-color":B.backgroundColor,"--border-radius":B.borderRadius,"--border-color":B.borderColor,"--border-width":B.borderWidth,"--box-shadow":B.boxShadow,"--padding":B.filterType!==er.VIDEOS?B.isExpansionMode?"10px 0":B.padding:"0","--footer-border-color":B.footerBorderColor,"--footer-border-width":B.footerBorderWidth,"--text-color":B.textColor})),l=t.computed(()=>{const W=[];return B.productivityCategories&&Object.values(B.productivityCategories).forEach(Q=>{Q.categories&&Q.categories.forEach(X=>{W.push(X)})}),W}),o=t.computed(()=>{const W=[];return B.playsCategories&&Object.values(B.playsCategories).forEach(Q=>{Q.categories&&Q.categories.forEach(X=>{W.push(X)})}),W}),s=t.computed(()=>{const W=l.value.filter(Q=>Q.isSelected);return h(W),B.filterType===er.PRODUCTIVITY&&i("change-categories-selected",W.length),W.length}),u=t.computed(()=>s.value>=B.productivityMaxCategories),d=t.computed(()=>B.isPlayingAsHidden?B.gameSections:B.playingAs.concat(B.gameSections));t.watch(m,W=>{B.filterType===er.DETAILS&&i("update:filters",W)},{immediate:!0,deep:!0}),t.watch(()=>d.value,W=>{if(B.filterType===er.DETAILS){const Q=W.filter(X=>X.isSelected);i("change-filters-selected",Q.length)}},{immediate:!0,deep:!0}),t.watch(()=>B.playsGolstatsCategories,W=>{if(B.filterType===er.PLAYS_TYPES||B.filterType===er.GOLSTATS){const Q=W.filter(X=>X.isSelected);i("change-filters-selected",Q.length)}},{immediate:!0}),t.watch(()=>B.fieldAreas,W=>{B.filterType===er.FIELD&&i("change-filters-selected",W.length)}),t.watch(o,()=>{B.filterType===er.PLAYS&&A()},{immediate:!0,deep:!0}),t.watch(l,()=>{B.filterType===er.PRODUCTIVITY&&E()},{immediate:!0,deep:!0}),t.watch(()=>B.resultsFilters,W=>{B.filterType===er.RESULTS&&i("change-filters-selected",W.results.filter(Q=>Q.isSelected).length)},{immediate:!0,deep:!0});function h(W){setTimeout(()=>{W.sort((Q,X)=>Q.priority-X.priority),W.forEach((Q,X)=>{Q.priority=X+1})},10)}function g(W=null){b()}function b(){B.filterType===er.PRODUCTIVITY?l.value.forEach(W=>{W.isSelected=!1}):B.filterType===er.PLAYS?(o.value.forEach(W=>{W.isSelected=!0}),c.value=!0):B.filterType===er.FIELD?i("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):B.filterType===er.DETAILS?(B.playingAs.forEach(W=>{W.isSelected=!0}),B.gameSections.forEach(W=>{W.isSelected=!0})):B.filterType===er.TOURNAMENTS?(B.tournaments.forEach(W=>{W.isSelected=!0}),i("change-filters-selected",0)):B.filterType===er.PLAYS_TYPES?B.playsGolstatsCategories.forEach(W=>{W.isSelected=!0}):B.filterType===er.GOLSTATS?B.playsGolstatsCategories.forEach(W=>{W.isSelected=!1}):B.filterType===er.UNIVERSE?v.value&&v.value.resetFilters():B.filterType===er.PERSONAL_DATA?(D.value&&D.value.onClearFilters(hd.All),i("change-personal-data-filters",{})):B.filterType===er.DISTANCE?i("update:filters",{minValue:B.distanceFilters.minLimit,maxValue:B.distanceFilters.maxLimit}):B.filterType===er.RESULTS?i("update:filters",{results:B.resultsFilters.results.map(W=>(W.isSelected=!0,W))}):B.filterType===er.RESULTS_BY_TIME?_.value&&_.value.removeFilters():B.filterType===er.GAMES?B.gamesFilters.forEach(W=>{W.isSelected=!0}):B.filterType===er.TAKEN_CORNERS?f.value.clearFilters():B.filterType===er.HOW_WAS_CORNER?(B.howWasCornerFilters.left.forEach(W=>{W.isSelected=!0}),B.howWasCornerFilters.right.forEach(W=>{W.isSelected=!0})):B.filterType===er.ZONE?n.value&&n.value.clearFilters():B.filterType===er.WHAT_HAPPENED&&y.value&&y.value.onResetFilters()}function w(W){B.filterType===er.TOURNAMENTS&&i("change-filters-selected",W)}function x(W){B.filterType===er.UNIVERSE&&i("change-universe-filters",W)}function S(W){B.filterType===er.FIELD&&i("change-field-areas",W)}function k(W){B.filterType===er.GOLSTATS&&i("change-filters-selected",W)}function T(W){i("change-filters-selected",W)}function C(W){c.value=W,B.playsCategories.offensive.categories.forEach(Q=>{Q.isSelected=W}),B.playsCategories.defensive.categories.forEach(Q=>{Q.isSelected=W}),B.playsCategories.possession.categories.forEach(Q=>{Q.isSelected=W}),B.playsCategories.offenses.categories.forEach(Q=>{Q.isSelected=W})}function A(){let W=0;const Q={playsCategories:o.value.filter(X=>X.isSelected)};c.value=Q.playsCategories.length===o.value.length,W=Q.playsCategories.length,Object.values(a.value).forEach(X=>{X&&W++}),i("change-filters-selected",W),i("update:filters",Q)}function E(){let W=0;const Q={productivityFilters:l.value.filter(X=>X.isSelected),offensesConditions:a.value};W=Q.productivityFilters.length,Object.values(a.value).forEach(X=>{X&&W++}),i("change-filters-selected",W),i("update:filters",Q)}function M(){i("apply")}function I(){(B.filterType===er.PLAYS_TYPES||B.filterType===er.GOLSTATS)&&B.playsGolstatsCategories&&B.playsGolstatsCategories.forEach(W=>{W.isSelected=!1}),i("apply")}function N(W){i("update:filters",W)}function z(W){B.filterType===er.PERSONAL_DATA&&i("update:filters",W)}function F(W){B.filterType===er.TOURNAMENTS&&i("update:filters",W)}function R(W){(B.filterType===er.PLAYS_TYPES||B.filterType===er.GOLSTATS)&&i("update:filters",W)}function V(W){B.filterType===er.PRODUCTIVITY&&(a.value=W,E())}function $(W){B.filterType===er.DISTANCE&&i("update:filters",W)}function U(W){B.filterType===er.RESULTS&&i("update:filters",W)}function Z(W){B.filterType===er.GAMES&&(i("update:filters",W),i("change-filters-selected",W.filter(Q=>Q.isSelected).length))}const q=t.computed(()=>B.filterType===er.PLAYS?o.value.length:B.filterType===er.PRODUCTIVITY?l.value.length:B.filterType===er.FIELD?16:B.filterType===er.UNIVERSE?6:B.filterType===er.DETAILS?8:B.filterType===er.RESULTS||B.filterType===er.RESULTS_BY_TIME?3:B.filterType===er.GAMES?B.gamesFilters.length:0);return i("total-filters",q),r({clearFilters:g}),(W,Q)=>(t.openBlock(),t.createElementBlock("div",{class:"templates",style:t.normalizeStyle(p.value)},[e.filterType===t.unref(er).PRODUCTIVITY||e.filterType===t.unref(er).PLAYS?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.isExpansionMode?"productivity__header__expansion":"productivity__header")},[e.filterType===t.unref(er).PRODUCTIVITY?(t.openBlock(),t.createElementBlock("div",_It," Selecciona hasta 5 categorias en orden de importancia ")):e.filterType===t.unref(er).PLAYS?(t.openBlock(),t.createElementBlock("div",bIt,[t.createVNode(t.unref(Is),{label:"Todos los tipos de jugadas",fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":c.value,"label-color":e.textColor,"onUpdate:modelValue":C},null,8,["model-value","label-color"])])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),t.createElementVNode("div",xIt,[e.filterType===t.unref(er).PLAYS?(t.openBlock(),t.createElementBlock("div",wIt,[t.createVNode(SSt,{"plays-categories":e.playsCategories,"is-expansion-mode":e.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).PRODUCTIVITY?(t.openBlock(),t.createElementBlock("div",kIt,[t.createVNode(J6t,{"productivity-categories":e.productivityCategories,"number-of-categories-selected":s.value,"are-max-categories-reached":u.value,"is-expansion-mode":e.isExpansionMode,"onUpdate:offensesConditions":V},null,8,["productivity-categories","number-of-categories-selected","are-max-categories-reached","is-expansion-mode"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).FIELD?(t.openBlock(),t.createElementBlock("div",CIt,[t.createVNode(t.unref(pW),t.mergeProps(e.fieldComponentProps,{"background-color":e.backgroundColor,value:e.fieldAreas,"onUpdate:modelValue":S}),null,16,["background-color","value"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).DETAILS?(t.openBlock(),t.createElementBlock("div",SIt,[t.createVNode(g8t,{"is-playing-as-hidden":e.isPlayingAsHidden,"playing-as":e.playingAs,"game-sections":e.gameSections,fontFamily:e.fontFamily},null,8,["is-playing-as-hidden","playing-as","game-sections","fontFamily"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).PERSONAL_DATA?(t.openBlock(),t.createElementBlock("div",TIt,[t.createVNode(lSt,{"is-female":e.isFemale,ref_key:"templatePersonalData",ref:D,"personal-data-filters":e.personalDataFilters,season:e.season,"is-scouting":e.isScouting,token:e.token,"onUpdate:filters":z},null,8,["is-female","personal-data-filters","season","is-scouting","token"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).TOURNAMENTS?(t.openBlock(),t.createElementBlock("div",EIt,[t.createVNode(w8t,{tournaments:e.tournaments,onChangeFiltersSelected:w,"onUpdate:filters":F},null,8,["tournaments"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",AIt,[t.createVNode(ZH,{height:e.modalHeight,type:e.filterType,categories:e.playsGolstatsCategories,"onUpdate:filters":R},null,8,["height","type","categories"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).GOLSTATS?(t.openBlock(),t.createElementBlock("div",MIt,[t.createVNode(ZH,{height:e.modalHeight,type:e.filterType,categories:e.playsGolstatsCategories,onChangeFiltersSelected:k,"onUpdate:filters":R},null,8,["height","type","categories"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).UNIVERSE?(t.openBlock(),t.createElementBlock("div",IIt,[t.createVNode(mkt,{ref_key:"templateUniverse",ref:v,"universe-filters":e.universeFilters,"onUpdate:universeFilters":x},null,8,["universe-filters"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).DISTANCE?(t.openBlock(),t.createElementBlock("div",PIt,[t.createVNode(Fkt,{distance:e.distanceFilters,"onUpdate:distanceFilters":$},null,8,["distance"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).RESULTS?(t.openBlock(),t.createElementBlock("div",BIt,[t.createVNode(ASt,{ref_key:"templateResults",ref:_,"results-filters":e.resultsFilters,"onUpdate:resultsFilters":U},null,8,["results-filters"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).RESULTS_BY_TIME?(t.openBlock(),t.createElementBlock("div",NIt,[t.createVNode(vIt,{ref_key:"templateResults",ref:_,"results-filters":e.resultsByTimeFilters,onChangeFiltersSelected:T,"onUpdate:filters":N},null,8,["results-filters"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).GAMES?(t.openBlock(),t.createElementBlock("div",zIt,[t.createVNode(Ukt,{"games-filters":e.gamesFilters,"onUpdate:gamesFilters":Z},null,8,["games-filters"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).TAKEN_CORNERS?(t.openBlock(),t.createElementBlock("div",OIt,[t.createVNode(FAt,{"is-female":e.isFemale,ref_key:"templateTakenCorners",ref:f,"taken-corners-filters":e.takenCornersFilters,"is-expansion-mode":e.isExpansionMode,onChangeFiltersSelected:T,"onUpdate:filters":N},null,8,["is-female","taken-corners-filters","is-expansion-mode"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).VIDEOS?(t.openBlock(),t.createElementBlock("div",FIt,[t.createVNode(vAt,{token:e.token},null,8,["token"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).HOW_WAS_CORNER?(t.openBlock(),t.createElementBlock("div",LIt,[t.createVNode(KAt,{"how-was-corner-filters":e.howWasCornerFilters,"is-expansion-mode":e.isExpansionMode,onChangeFiltersSelected:T,"onUpdate:filters":N},null,8,["how-was-corner-filters","is-expansion-mode"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).ZONE?(t.openBlock(),t.createElementBlock("div",DIt,[t.createVNode(tIt,{ref_key:"templateZone",ref:n,"zone-filters":e.zoneFilters,onChangeFiltersSelected:T,"onUpdate:filters":N},null,8,["zone-filters"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).WHAT_HAPPENED?(t.openBlock(),t.createElementBlock("div",RIt,[t.createVNode(cIt,{"is-female":e.isFemale,ref_key:"templateWhatHappened",ref:y,"what-happened-filters":e.whatHappenedFilters,onChangeFiltersSelected:T,"onUpdate:filters":N},null,8,["is-female","what-happened-filters"])])):t.createCommentVNode("",!0)]),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",VIt,[e.isFooterCancelOnly?(t.openBlock(),t.createBlock(t.unref(xE),{key:0,"text-value":"Cancelar","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"white","background-color":"rgba(255, 255, 255, 0.06)",onClick:I})):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",$It,[t.createVNode(t.unref(xE),{"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:b})]),t.createElementVNode("div",jIt,[t.createVNode(t.unref(xE),{"text-value":"Listo","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"#cbee6b",onClick:M})])],64))])):t.createCommentVNode("",!0)],4))}},eq=ml(UIt,[["__scopeId","data-v-d28f61fa"]]),GIt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},HIt={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(e){return!Number.isNaN(e)}},modelValue:{type:Boolean,default:!1},width:{type:String,default:"fit-content"},menuWidth:{type:String,default:"fit-content"},zIndexOpen:{type:Number,default:3}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(p=>({"321b6381":e.width,"14b0f61d":v.value,"62e0e83c":e.menuWidth}));const B=t.ref(null),D=t.ref(!1),c=t.ref(null),m=t.ref({}),a=t.computed(()=>{const p={top:"0px"};if(B.value){const l=B.value.getBoundingClientRect();p.top=`${l.height+i.menuMarginTop}px`}return p}),v=t.computed(()=>D.value?i.zIndexOpen:1);t.watch(()=>i.modelValue,p=>{p!==D.value&&(D.value=p)},{immediate:!0}),t.watch(D,p=>{p||setTimeout(()=>{m.value["--translate-x"]="0px"},500)});function f(p){const l=window.innerWidth,o=p.boundingClientRect.x,s=p.boundingClientRect.x+p.boundingClientRect.width,u=o<=0?Math.abs(o)+4:s>=l?l-(s+10):0;m.value["--translate-x"]=`${u}px`}function n(){new IntersectionObserver(p=>{p[0].intersectionRatio>0&&f(p[0])}).observe(c.value)}function y(){D.value=!D.value,r("update:modelValue",D.value)}function _(){D.value=!1,r("update:modelValue",D.value)}return t.onMounted(()=>{t.nextTick(()=>{n()})}),(p,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[D.value?(t.openBlock(),t.createElementBlock("div",{key:0,id:"menu-overlay",onClick:_})):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"menu-container",style:t.normalizeStyle(m.value)},[t.createElementVNode("div",{ref_key:"trigger",ref:B,class:"menu-container__trigger",onClick:y},[t.renderSlot(p.$slots,"trigger",{},void 0,!0)],512),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref_key:"menu",ref:c,class:"menu-container__menu",style:t.normalizeStyle(a.value)},[t.renderSlot(p.$slots,"menu",{},void 0,!0)],4),[[t.vShow,D.value]])]),_:3})],4)],64))}},WIt=GIt(HIt,[["__scopeId","data-v-2f344053"]]),T1=e=>(t.pushScopeId("data-v-975b3874"),e=e(),t.popScopeId(),e),qIt={class:"button__icon"},YIt={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},XIt=["stroke"],ZIt=["stroke"],JIt=["stroke"],KIt={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},QIt=["stroke"],ePt=["stroke"],tPt=["fill"],aPt={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nPt=["fill"],rPt={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iPt=["stroke"],oPt=["stroke"],sPt=["stroke"],lPt=["stroke"],cPt=["stroke"],dPt={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uPt=T1(()=>t.createElementVNode("path",{d:"M1.85113 13.0897C1.9303 13.2137 2.01739 13.3404 2.10447 13.4617C2.30239 13.7361 2.51878 14 2.74837 14.2507C3.74589 15.3298 5.01785 16.1504 6.41385 16.5963C6.4719 16.6148 6.52996 16.6332 6.58802 16.6491C6.60385 16.6544 6.61704 16.657 6.63024 16.6623C6.70413 16.6834 6.77538 16.7045 6.84927 16.723C7.54859 16.9077 8.27429 17 9.00264 17C9.73098 17 10.4593 16.9077 11.1586 16.7256C11.3064 16.686 11.4542 16.6438 11.5967 16.5989C11.9187 16.496 12.2353 16.372 12.5414 16.2322C12.7895 16.1187 13.0296 15.9921 13.2645 15.8549C14.2963 15.2533 15.2041 14.438 15.9034 13.467C15.9668 13.3799 16.0301 13.2876 16.0908 13.1926C16.1119 13.1609 16.133 13.1293 16.1541 13.095C16.9432 11.8681 17.405 10.4486 17.4868 8.98945C17.4947 8.84169 17.5 8.69393 17.5 8.54618C17.5 8.53034 17.5 8.51715 17.5 8.50132C17.5 6.90765 17.0646 5.37995 16.2386 4.04222C16.1198 3.85224 15.9932 3.66491 15.8612 3.48021C15.8586 3.47493 15.8559 3.4723 15.8533 3.46702C15.8084 3.40633 15.7636 3.34565 15.7161 3.2876C15.6712 3.22955 15.6237 3.1715 15.5789 3.1161C14.6526 1.98417 13.4466 1.10818 12.0928 0.580475C11.9556 0.525066 11.8105 0.474934 11.668 0.42744C10.8103 0.145118 9.91307 0 9.00264 0C8.09221 0 7.19497 0.14248 6.33732 0.424802C6.19482 0.472295 6.04967 0.525066 5.91245 0.577836C4.55604 1.10554 3.35005 1.98417 2.42378 3.11346C2.37364 3.17678 2.32086 3.24011 2.27072 3.30607C2.2285 3.35884 2.18892 3.41161 2.14933 3.46702C2.14933 3.46702 2.14933 3.46966 2.14669 3.4723C2.14669 3.47493 2.14405 3.47757 2.14142 3.48021C1.43418 4.44591 0.94598 5.53034 0.69792 6.68074C0.660975 6.85224 0.626669 7.02639 0.600279 7.20053C0.571251 7.39578 0.547501 7.59103 0.531667 7.78892C0.521111 7.91293 0.513195 8.03694 0.507917 8.16095C0.502639 8.27441 0.5 8.38786 0.5 8.50132V8.61214C0.502639 8.73615 0.507917 8.8628 0.513195 8.98945C0.595002 10.4486 1.05681 11.8681 1.84586 13.0923L1.85113 13.0897ZM1.82738 7.64908C1.82738 7.63325 1.83002 7.62005 1.83266 7.60422C1.84322 7.52771 1.85377 7.45119 1.86433 7.37731C1.86433 7.36412 1.86697 7.35092 1.86961 7.33773C1.8828 7.25594 1.89863 7.1715 1.91447 7.08971C1.91711 7.07124 1.92238 7.05541 1.92502 7.03694C1.94086 6.95778 1.95933 6.87599 1.9778 6.79683V6.78628C1.99891 6.70449 2.02266 6.62269 2.04378 6.5409C2.04905 6.52243 2.05433 6.5066 2.05961 6.48813C2.08336 6.40897 2.10711 6.32718 2.1335 6.24802L2.14142 6.22164C2.16517 6.14776 2.19156 6.07652 2.21794 6.00264C2.22322 5.98681 2.23114 5.97098 2.23642 5.95515C2.26545 5.87863 2.29711 5.79947 2.32878 5.72559C2.33406 5.70976 2.34197 5.69657 2.34725 5.68338C2.37628 5.61478 2.40795 5.54617 2.43962 5.47757C2.44489 5.46702 2.45017 5.45383 2.45545 5.44063C2.48975 5.36676 2.5267 5.29024 2.56628 5.21636C2.5742 5.20053 2.58212 5.1847 2.59267 5.16887C2.63226 5.09499 2.6692 5.02375 2.71143 4.94987V4.94195H2.7167L3.2656 6.63061L1.82738 7.67546C1.82738 7.67546 1.82738 7.65699 1.83002 7.64908H1.82738ZM4.08367 7.6095L5.62745 8.31926L6.52204 11.0712L5.62481 12.1108H2.74309C2.23642 11.2348 1.92238 10.2612 1.81683 9.25594L4.08367 7.6095ZM7.58026 1.41161C7.65942 1.39578 7.74123 1.37995 7.8204 1.36675C7.84151 1.36412 7.86262 1.35884 7.88109 1.3562C7.96026 1.34301 8.03679 1.33245 8.11596 1.32454C8.13971 1.3219 8.16346 1.31926 8.18721 1.31662C8.24791 1.30871 8.30596 1.30343 8.36666 1.29815C8.39305 1.29815 8.42207 1.29288 8.44846 1.29024C8.52235 1.28496 8.59361 1.27968 8.6675 1.27705C8.69916 1.27705 8.73347 1.27441 8.76514 1.27177C8.82319 1.27177 8.88125 1.26913 8.94194 1.26913C8.98153 1.26913 9.01847 1.26913 9.05806 1.26913C9.11611 1.26913 9.17681 1.26913 9.23487 1.27177C9.26653 1.27177 9.30084 1.27177 9.33251 1.27705C9.4064 1.27968 9.48029 1.28496 9.55154 1.29024C9.58057 1.29024 9.60696 1.29551 9.63334 1.29815C9.69404 1.30343 9.75473 1.30871 9.81279 1.31662C9.83654 1.31926 9.86029 1.3219 9.88668 1.32454C9.96585 1.33509 10.045 1.34565 10.1215 1.3562L10.1849 1.36675C10.264 1.37995 10.3459 1.39314 10.425 1.41161C10.4277 1.41161 10.4303 1.41161 10.4356 1.41161H10.4382L9 2.45646L7.56178 1.41161H7.56442C7.56442 1.41161 7.5697 1.41161 7.57234 1.41161H7.58026ZM9.00528 6.56728L11.1138 8.10026L10.3089 10.5805H7.70165L6.89677 8.10026L9.00528 6.56728ZM15.3018 4.94459V4.94987C15.3466 5.02111 15.3862 5.09499 15.4232 5.16887L15.4469 5.21636C15.4839 5.29024 15.5208 5.36676 15.5577 5.44063C15.563 5.45119 15.5683 5.46438 15.5736 5.47493C15.6052 5.54354 15.6369 5.61214 15.6659 5.68338C15.6712 5.69657 15.6791 5.7124 15.6844 5.72559C15.7161 5.80211 15.7478 5.87863 15.7768 5.95778C15.7821 5.97361 15.79 5.98945 15.7953 6.00528C15.8216 6.07916 15.848 6.1504 15.8718 6.22428C15.8744 6.23219 15.8771 6.24011 15.8797 6.25066C15.9061 6.32982 15.9298 6.40897 15.9536 6.49077C15.9589 6.50923 15.9641 6.52771 15.9694 6.54618C15.9905 6.62797 16.0143 6.70976 16.0328 6.78892C16.0328 6.7942 16.0328 6.79683 16.0328 6.80211C16.0512 6.88127 16.0697 6.96042 16.0855 7.03958L16.0961 7.09235C16.1119 7.17414 16.1278 7.25594 16.141 7.33773C16.141 7.35092 16.1462 7.36412 16.1462 7.37731C16.1568 7.45119 16.1673 7.52771 16.1779 7.60422C16.1779 7.62005 16.1805 7.63325 16.1832 7.64908C16.1832 7.65699 16.1832 7.66755 16.1858 7.67546L14.7476 6.63061L15.2965 4.93931L15.3018 4.94459ZM13.9295 7.61214L16.1937 9.25858C16.0882 10.2639 15.7715 11.2401 15.2675 12.1135H12.3858L11.4912 11.0739L12.3858 8.3219L13.9295 7.61214ZM14.3306 13.3879C14.3306 13.3879 14.3254 13.3931 14.3227 13.3958C14.2673 13.4565 14.2093 13.5172 14.1512 13.5752C14.138 13.5884 14.1248 13.6016 14.1116 13.6148C14.0536 13.6728 13.9929 13.7309 13.9322 13.7889C13.9216 13.7995 13.9111 13.81 13.8979 13.8206C13.8424 13.8707 13.7844 13.9235 13.729 13.971C13.7184 13.9789 13.7079 13.9894 13.6973 14C13.634 14.0554 13.5706 14.1055 13.5047 14.1583C13.4888 14.1715 13.473 14.1821 13.4598 14.1953C13.3938 14.2454 13.3278 14.2955 13.2619 14.3456C13.2619 14.3456 13.2566 14.3483 13.2566 14.3509C13.188 14.4011 13.1194 14.4486 13.0481 14.496C13.0323 14.5066 13.0165 14.5172 12.998 14.5277C12.9294 14.5726 12.8581 14.6174 12.7895 14.6623C12.7763 14.6702 12.7658 14.6781 12.7526 14.6834C12.6892 14.723 12.6233 14.7599 12.5573 14.7968C12.5441 14.8048 12.5283 14.8127 12.5151 14.8206C12.4438 14.8602 12.3699 14.8997 12.296 14.9367C12.2802 14.9446 12.2617 14.9525 12.2459 14.9631C12.1746 15 12.1007 15.0343 12.0295 15.0686C12.0242 15.0686 12.0189 15.0739 12.0137 15.0765H12.0084L12.5573 13.3879H14.3306ZM6.00217 15.0765L5.98898 15.0712C5.91509 15.0369 5.8412 15 5.76731 14.9631C5.75147 14.9551 5.73564 14.9472 5.71981 14.9393C5.64592 14.9024 5.57203 14.8628 5.49814 14.8206C5.48494 14.8127 5.47175 14.8048 5.45855 14.7995C5.39258 14.7625 5.32661 14.723 5.26063 14.6834C5.25008 14.6781 5.23688 14.6702 5.22633 14.6623C5.15508 14.6201 5.08646 14.5726 5.01521 14.5277C4.99938 14.5172 4.98355 14.5066 4.96771 14.496C4.89646 14.4486 4.82785 14.4011 4.75924 14.3509H4.75396C4.68799 14.2982 4.61937 14.248 4.5534 14.1953C4.53757 14.1821 4.52437 14.1715 4.50854 14.1583C4.44256 14.1055 4.37923 14.0554 4.3159 14C4.30534 13.9894 4.29478 13.9815 4.28159 13.971C4.22353 13.9208 4.16812 13.8707 4.1127 13.8206C4.10214 13.81 4.08895 13.7995 4.07839 13.7889C4.0177 13.7335 3.957 13.6755 3.89894 13.6148C3.88575 13.6016 3.87256 13.5884 3.85936 13.5752C3.8013 13.5172 3.74589 13.4591 3.69047 13.3984C3.68783 13.3958 3.68519 13.3931 3.67991 13.3879H5.45328L6.00217 15.0765C6.00217 15.0765 5.99954 15.0765 5.9969 15.0765H6.00217ZM7.50636 15.5726L6.63552 12.8971L7.53012 11.8602H10.4804L11.375 12.8971L10.5042 15.5726C9.52251 15.7784 8.48805 15.781 7.50373 15.5726H7.50636ZM14.3755 3.66755L13.4809 6.41953L11.9371 7.12929L9.6439 5.46174V3.57784L11.9503 1.90237C12.8713 2.31135 13.6999 2.91557 14.3781 3.66755H14.3755ZM6.06287 1.90237L8.3693 3.57784V5.46174L6.07606 7.12929L4.53229 6.41953L3.63769 3.66755C4.3159 2.91557 5.14452 2.31398 6.06551 1.90237H6.06287Z",fill:"#979DA2"},null,-1)),hPt=[uPt],pPt={key:5,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fPt=T1(()=>t.createElementVNode("path",{d:"M17.182 5.9a.538.538 0 0 0-.13-.416L14.24 2.109a.558.558 0 0 0-.433-.203h-2.25c-.017 0-.034.012-.056.012a.557.557 0 0 0-.563.41 1.68 1.68 0 0 1-1.63 1.266 1.68 1.68 0 0 1-1.632-1.266.55.55 0 0 0-.563-.41c-.017 0-.033-.012-.056-.012h-2.25a.558.558 0 0 0-.433.203L1.561 5.484a.586.586 0 0 0-.129.416c.017.152.09.287.208.382l2.605 2.082v8.167c0 .31.253.563.562.563h9c.31 0 .563-.253.563-.563V8.364l2.604-2.082a.59.59 0 0 0 .208-.382zm-3.937 4.444H5.37V9.78h7.875v.563zM5.37 15.969v-4.5h7.875v4.5H5.37zm9-9.045v-.518a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v2.25H5.37v-2.25a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v.518L2.793 5.765l2.278-2.734h1.66A2.802 2.802 0 0 0 9.307 4.72a2.803 2.803 0 0 0 2.576-1.688h1.66l2.278 2.734-1.451 1.159z",fill:"#98A2B3"},null,-1)),mPt=[fPt],gPt={key:6,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yPt=T1(()=>t.createElementVNode("path",{d:"M15.426 3.353a2.384 2.384 0 0 0-2.381 2.381 2.384 2.384 0 0 0 2.381 2.382 2.384 2.384 0 0 0 2.381-2.382 2.384 2.384 0 0 0-2.381-2.38zm0 3.766a1.386 1.386 0 0 1-1.385-1.385c0-.763.622-1.384 1.385-1.384s1.385.621 1.385 1.384c0 .764-.622 1.385-1.385 1.385zM1.424 6.558a.497.497 0 0 0 .704 0l1.295-1.296L4.72 6.558a.497.497 0 0 0 .704 0 .498.498 0 0 0 0-.705L4.128 4.558l1.295-1.295a.498.498 0 0 0-.705-.705L3.423 3.853 2.128 2.558a.499.499 0 0 0-.704.705l1.295 1.295-1.295 1.295a.498.498 0 0 0 0 .705zM13.013 12.443a.498.498 0 0 0-.705 0l-1.295 1.295-1.295-1.295a.499.499 0 0 0-.704.704l1.295 1.295-1.295 1.295a.499.499 0 0 0 .704.705l1.295-1.295 1.295 1.295a.497.497 0 0 0 .705 0 .498.498 0 0 0 0-.705l-1.295-1.295 1.295-1.295a.498.498 0 0 0 0-.704zM12.052 5.455l-2.01-1.747a.498.498 0 0 0-.654.753l1.066.926c-3.145.411-5.008 2.055-6.043 3.444a9.569 9.569 0 0 0-1.501 3.012 2.384 2.384 0 0 0-2.103 2.364 2.384 2.384 0 0 0 2.381 2.381 2.384 2.384 0 0 0 2.381-2.381 2.385 2.385 0 0 0-1.647-2.265 8.674 8.674 0 0 1 1.312-2.547C6.53 7.674 8.33 6.66 10.594 6.372l-.992 1.142a.498.498 0 0 0 .752.654l1.747-2.01a.498.498 0 0 0-.05-.703zm-7.48 8.752c0 .763-.62 1.384-1.384 1.384a1.386 1.386 0 0 1-1.384-1.384c0-.764.62-1.385 1.384-1.385.763 0 1.385.622 1.385 1.385z",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":".3"},null,-1)),vPt=[yPt],_Pt={key:7,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},bPt=T1(()=>t.createElementVNode("rect",{x:".707",y:".9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),xPt=T1(()=>t.createElementVNode("rect",{x:"8.707",y:".9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),wPt=T1(()=>t.createElementVNode("rect",{x:".707",y:"8.9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),kPt=T1(()=>t.createElementVNode("rect",{x:"8.707",y:"8.9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),CPt=[bPt,xPt,wPt,kPt],SPt={key:8,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TPt=t.createStaticVNode('<g clip-path="url(#gpdeo9cu3a)" fill="#98A2B3" data-v-975b3874><path d="M9.307.5C4.505.5.598 4.407.598 9.209c0 2 .69 3.938 1.946 5.486l-.754 3.159a.524.524 0 0 0 .727.599l3.038-1.384a8.743 8.743 0 0 0 3.752.848c4.802 0 8.709-3.907 8.709-8.708C18.016 4.407 14.109.5 9.307.5zm0 16.368a7.574 7.574 0 0 1-3.502-.845.525.525 0 0 0-.457-.011l-2.289 1.042.566-2.372a.524.524 0 0 0-.113-.465A7.657 7.657 0 0 1 1.647 9.21c0-4.224 3.436-7.66 7.66-7.66s7.66 3.436 7.66 7.66c0 4.223-3.436 7.66-7.66 7.66z" data-v-975b3874></path><path d="M9.68 5.199c-1.094-.115-2.459.397-3.041 1.797a.524.524 0 0 0 .968.403c.375-.902 1.255-1.231 1.964-1.157.721.075 1.232.542 1.365 1.25.13.693-.136 1.097-1.097 1.662-1.042.613-1.372.874-1.372 2.27a.524.524 0 0 0 1.049 0c0-.479.033-.715.118-.843.094-.14.33-.283.737-.523.666-.392 1.905-1.12 1.596-2.76-.221-1.171-1.098-1.975-2.288-2.1zM9.145 12.673a.608.608 0 0 0-.506.17c-.13.13-.19.31-.17.505a.525.525 0 0 0 .939.263.523.523 0 0 0-.263-.938z" data-v-975b3874></path></g><defs data-v-975b3874><clipPath id="gpdeo9cu3a" data-v-975b3874><path fill="#fff" transform="translate(.307 .5)" d="M0 0h18v18H0z" data-v-975b3874></path></clipPath></defs>',2),EPt=[TPt],APt={class:"button__text"},MPt={key:1,style:{width:"20px"}},IPt={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},PPt=["fill"],BPt={__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},showBadgeOnFilterFull:{type:Boolean,default:!0},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},filtersTotal:{type:Number,default:0},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"}},setup(e){const r=e,i=t.computed(()=>({"--height":r.height,"--width":r.width,"--text-font-family":r.textFontFamily,"--text-font-size":r.textFontSize,"--background-color":r.backgroundColor,"--border-radius":r.borderRadius,"--border-color":r.isActive?r.borderColorActive:r.borderColor,"--border-width":r.borderWidth,"--padding":r.padding,"--font-color":r.fontColor})),B=t.computed(()=>({"--info-background-color":r.infoValue?r.infoBackgroundColor:"transparent","--info-border-color":r.infoValue?r.infoBorderColor:"transparent","--info-border-radius":r.infoBorderRadius,"--info-font-family":r.infoFontFamily,"--info-font-size":r.infoFontSize,"--info-font-color":r.infoFontColor,"--info-height":r.infoHeight,"--info-width":r.infoWidth})),D=t.computed(()=>[er.PLAYS_TYPES,er.GOLSTATS,er.TOURNAMENTS,er.PLAYS,er.RESULTS,er.RESULTS_BY_TIME].includes(r.iconType)),c=t.computed(()=>[er.FIELD,er.GAMES].includes(r.iconType)),m=t.computed(()=>[er.DETAILS,er.UNIVERSE].includes(r.iconType)),a=t.computed(()=>[er.PERSONAL_DATA].includes(r.iconType)),v=t.computed(()=>[er.PRODUCTIVITY].includes(r.iconType)),f=t.computed(()=>[er.HOW_WAS_CORNER].includes(r.iconType)),n=t.computed(()=>[er.TAKEN_CORNERS].includes(r.iconType)),y=t.computed(()=>[er.ZONE].includes(r.iconType)),_=t.computed(()=>[er.WHAT_HAPPENED].includes(r.iconType));return(p,l)=>(t.openBlock(),t.createElementBlock("div",{class:"button",style:t.normalizeStyle(i.value)},[t.createElementVNode("div",qIt,[a.value?(t.openBlock(),t.createElementBlock("svg",YIt,[t.createElementVNode("path",{d:"M12.6665 16.0001V14.3334C12.6665 13.4494 12.3153 12.6015 11.6902 11.9764C11.0651 11.3513 10.2173 11.0001 9.33323 11.0001H4.33329C3.44925 11.0001 2.60141 11.3513 1.9763 11.9764C1.35119 12.6015 1 13.4494 1 14.3334V16.0001",stroke:e.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,XIt),t.createElementVNode("path",{d:"M6.83329 7.66658C8.67422 7.66658 10.1666 6.17422 10.1666 4.33329C10.1666 2.49237 8.67422 1 6.83329 1C4.99237 1 3.5 2.49237 3.5 4.33329C3.5 6.17422 4.99237 7.66658 6.83329 7.66658Z",stroke:e.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,ZIt),t.createElementVNode("path",{d:"M15.164 5.16663V10.1666M17.664 7.66659H12.6641",stroke:e.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,JIt)])):t.createCommentVNode("",!0),D.value?(t.openBlock(),t.createElementBlock("svg",KIt,[t.createElementVNode("path",{d:"M11.3464 15.7091C13.2744 15.7091 14.8373 14.1462 14.8373 12.2182C14.8373 10.2902 13.2744 8.72729 11.3464 8.72729C9.4184 8.72729 7.85547 10.2902 7.85547 12.2182C7.85547 14.1462 9.4184 15.7091 11.3464 15.7091Z",stroke:e.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,QIt),t.createElementVNode("path",{d:"M15.9996 16.8727L14.8359 15.7091",stroke:e.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,ePt),t.createElementVNode("path",{d:"M1.74545 14.1136H5.57341C5.80365 14.6432 6.11192 15.1265 6.4797 15.5591H1.74545C0.85957 15.5591 0.15 14.8495 0.15 13.9636V1.74545C0.15 0.85957 0.85957 0.15 1.74545 0.15H13.9636C14.8495 0.15 15.5591 0.85957 15.5591 1.74545V8.27117C15.1619 7.74472 14.6701 7.28299 14.1136 6.90213V1.74545V1.59545H13.9636H1.74545H1.59545V1.74545V13.9636V14.1136H1.74545ZM3.64091 3.64091H12.0682V5.08636H3.64091V3.64091ZM3.64091 7.13182H7.39844C6.87199 7.52898 6.41026 8.02079 6.0294 8.57727H3.64091V7.13182ZM3.64091 10.6227H5.20065C5.12651 11.0081 5.08636 11.3945 5.08636 11.7818V12.0682H3.64091V10.6227Z",fill:e.iconColor,stroke:"#353F47","stroke-width":"0.3"},null,8,tPt)])):t.createCommentVNode("",!0),m.value?(t.openBlock(),t.createElementBlock("svg",aPt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.5 0C13.1944 0 17 3.80558 17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0ZM8.49751 1.54553C4.65662 1.54553 1.54297 4.65919 1.54297 8.50008C1.54297 12.341 4.65662 15.4546 8.49751 15.4546C12.3384 15.4546 15.4521 12.341 15.4521 8.50008C15.4521 4.65919 12.3384 1.54553 8.49751 1.54553ZM8.49929 3.09082C8.92605 3.09082 9.27202 3.43678 9.27202 3.86355V8.12198L12.451 10.5945C12.7878 10.8565 12.8485 11.342 12.5865 11.6789C12.3245 12.0157 11.839 12.0764 11.5022 11.8144L8.02488 9.10986C7.83666 8.96347 7.72656 8.73837 7.72656 8.49991V3.86355C7.72656 3.43678 8.07252 3.09082 8.49929 3.09082Z",fill:e.iconColor},null,8,nPt)])):t.createCommentVNode("",!0),c.value?(t.openBlock(),t.createElementBlock("svg",rPt,[t.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:e.iconColor},null,8,iPt),t.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:e.iconColor},null,8,oPt),t.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:e.iconColor},null,8,sPt),t.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:e.iconColor},null,8,lPt),t.createElementVNode("path",{d:"M13.5033 9.00032C13.5033 10.5651 12.2348 11.8337 10.67 11.8337C9.1052 11.8337 7.83667 10.5651 7.83667 9.00032C7.83667 7.43552 9.1052 6.16699 10.67 6.16699C12.2348 6.16699 13.5033 7.43552 13.5033 9.00032Z",stroke:e.iconColor},null,8,cPt)])):t.createCommentVNode("",!0),v.value?(t.openBlock(),t.createElementBlock("svg",dPt,hPt)):t.createCommentVNode("",!0),n.value?(t.openBlock(),t.createElementBlock("svg",pPt,mPt)):t.createCommentVNode("",!0),f.value?(t.openBlock(),t.createElementBlock("svg",gPt,vPt)):t.createCommentVNode("",!0),y.value?(t.openBlock(),t.createElementBlock("svg",_Pt,CPt)):t.createCommentVNode("",!0),_.value?(t.openBlock(),t.createElementBlock("svg",SPt,EPt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",APt,t.toDisplayString(e.text),1),e.showBadgeOnFilterFull?(t.openBlock(),t.createElementBlock("div",{key:0,class:"button__info",style:t.normalizeStyle(B.value)},[t.withDirectives(t.createElementVNode("span",null,t.toDisplayString(e.infoValue),513),[[t.vShow,e.infoValue]])],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.filtersTotal>0&&e.filtersTotal!=parseInt(e.infoValue)?(t.openBlock(),t.createElementBlock("div",{key:0,class:"button__info",style:t.normalizeStyle(B.value)},[t.withDirectives(t.createElementVNode("span",null,t.toDisplayString(e.infoValue),513),[[t.vShow,e.infoValue]])],4)):e.filtersTotal>0?(t.openBlock(),t.createElementBlock("div",MPt)):t.createCommentVNode("",!0)],64)),t.createElementVNode("div",{class:t.normalizeClass(["button__arrow",{"rotated-180":e.isActive}])},[(t.openBlock(),t.createElementBlock("svg",IPt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,PPt)]))],2)],4))}},NPt=ml(BPt,[["__scopeId","data-v-975b3874"]]),zPt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},OPt=e=>(t.pushScopeId("data-v-0ca35abc"),e=e(),t.popScopeId(),e),FPt={class:"panel__activator__icon"},LPt=["src"],DPt={class:"panel__activator__text"},RPt=["height","width"],VPt=["stroke"],$Pt={class:"panel__content"},jPt=OPt(()=>t.createElementVNode("div",{class:"panel__content__separator"},null,-1)),UPt={class:"panel__content__slot"},GPt={__name:"GSC-ExpansionPanel",props:{modelValue:{type:Boolean,default:!1},text:{type:String,default:""},textColor:{type:String,default:"white"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"12px"},icon:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#2E3A45"},borderRadius:{type:String,default:"4px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},arrowColor:{type:String,default:"white"},separatorWidth:{type:String,default:"100%"},separatorColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},panelPadding:{type:String,default:"0px 6px"}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e,B=t.ref(i.modelValue),D=t.computed(()=>({"--activator-height":i.height,"--activator-text-font-family":i.textFontFamily,"--activator-text-font-size":i.textFontSize,"--activator-text-color":i.textColor,"--background-color":i.backgroundColor,"--panel-width":i.width,"--panel-padding":i.panelPadding,"--panel-border-radius":i.borderRadius,"--panel-border-color":i.borderColor,"--panel-border-width":i.borderWidth,"--arrow-height":i.arrowHeight,"--arrow-width":i.arrowWidth,"--separator-width":i.separatorWidth,"--separator-color":i.separatorColor}));t.watch(()=>i.modelValue,m=>{B.value=m},{immediate:!0});function c(){B.value=!B.value,r("update:modelValue",B.value)}return(m,a)=>(t.openBlock(),t.createElementBlock("div",{class:"panel",style:t.normalizeStyle(D.value)},[t.createElementVNode("div",{class:"panel__activator",onClick:c},[t.createElementVNode("div",FPt,[i.icon?(t.openBlock(),t.createElementBlock("img",{key:0,src:i.icon,alt:""},null,8,LPt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",DPt,t.toDisplayString(e.text),1),t.createElementVNode("div",{class:t.normalizeClass(["panel__activator__arrow",{"rotated-180":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,VPt)],8,RPt))],2)]),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",$Pt,[jPt,t.createElementVNode("div",UPt,[t.renderSlot(m.$slots,"content",{},void 0,!0)])],512),[[t.vShow,B.value]])]),_:3})],4))}},HPt=zPt(GPt,[["__scopeId","data-v-0ca35abc"]]),Jy={isPlayingAsHidden:!1,playingAs:[{name:"Local",isSelected:!0,value:1},{name:"Visitante",isSelected:!0,value:2}],gameSections:[{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}]},WPt={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},qPt={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:2},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:21},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]}},YPt={minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,r)=>r+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},XPt=[{name:"Sub-20",logo:null,isSelected:!0,id:44,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Clausura 2023",related_seasons:[{type:1,id:1752}],id:1713,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1592}],id:1542,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1521}],id:1486,type:0}]},{name:"Sub-16",logo:null,isSelected:!0,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]},{name:"Tournoi Maurice Revello",logo:null,isSelected:!0,id:108,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Tournoi Maurice Revello 23",related_seasons:[],id:1770,type:0}]},{name:"Liga MX Femenil",logo:"https://az755631.vo.msecnd.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"FIFA World Cup",logo:null,isSelected:!0,id:33,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Copa del Mundo 2022",related_seasons:[],id:1512,type:0},{name:"Copa del Mundo 2018",related_seasons:[],id:881,type:0}]},{name:"Liga MX",logo:"https://az755631.vo.msecnd.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga Expansion MX",logo:"https://az755631.vo.msecnd.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Copa Oro",logo:null,isSelected:!0,id:29,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Copa Oro 2023",related_seasons:[],id:1741,type:0}]},{name:"Women Revelations Cup",logo:null,isSelected:!0,id:1137,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Women Revelations Cup 2023",related_seasons:[],id:1731,type:0}]},{name:"Leagues Cup",logo:null,isSelected:!0,id:1046,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Leagues Cup 2023",related_seasons:[],id:1784,type:0}]},{name:"Sub-18",logo:null,isSelected:!0,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]}],ZPt=[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Tiros a gol",isSelected:!1},{id:3,name:"Asistencias",isSelected:!1},{id:4,name:"Centros",isSelected:!1},{id:5,name:"Balones ganados en área propia",isSelected:!1},{id:6,name:"Participaciones en gol",isSelected:!1},{id:7,name:"Cabeceo area rival",isSelected:!1}],JPt=[{id:1,name:"Mas goles anotados",isSelected:!1,value:1},{id:2,name:"Mas goles durante los ultimos 15 min de 2do tiempo",isSelected:!1,value:7},{id:3,name:"Con mas goles como visitante",isSelected:!1,value:3},{id:4,name:"Con mas goles como local",isSelected:!1,value:3},{id:5,name:"Mas goles durante el 1er tiempo",isSelected:!1,value:3},{id:6,name:"Mas goles durante el 2do tiempo",isSelected:!1,value:3},{id:7,name:"Mas goles como local durante el 2do tiempo",isSelected:!1,value:7}],KPt={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},tq={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},QPt={class:"filters"},eBt={key:0,class:"filters__expansion"},tBt={class:"content"},aBt={key:1,class:"filters__menus"},nBt={__name:"GSC-Filters",props:{filterType:{type:String,default:""},isExpansionPanel:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},showBadgeOnFilterFull:{type:Boolean,default:!0},isScouting:{type:Boolean,default:!1},filters:{type:[Object,Array],default:()=>null},menuButtonText:{type:String,default:""},expansionPanelText:{type:String,default:""},buttonFilterProps:{type:Object,default:()=>{}},expansionPanelProps:{type:Object,default:()=>{}},templateProps:{type:Object,default:()=>{}},fieldComponentProps:{type:Object,default:()=>{}},tournament:{type:Object,default:()=>null},season:{type:Object,default:()=>({})},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},width:{type:String,default:"fit-content"},modalHeight:{type:String,default:"fit-content"}},emits:["update:filters","apply","close"],setup(e,{expose:r,emit:i}){const B=e;t.useCssVars(q=>({"14c83a50":e.width}));const D={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.PRODUCTIVITY,isFooterVisible:!0},c={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.PLAYS,isFooterVisible:!0},m={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.FIELD,isFooterVisible:!0},a={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.DETAILS,isFooterVisible:!0},v={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.TOURNAMENTS,isFooterVisible:!0},f={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.PERSONAL_DATA,isFooterVisible:!0},n={width:"310px",modalHeight:B.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},y={width:"380px",modalHeight:B.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},_={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.UNIVERSE,isFooterVisible:!0},p={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.DISTANCE,isFooterVisible:!0},l={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.RESULTS,padding:"0",isFooterVisible:!0},o={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.RESULTS_BY_TIME,padding:"0",isFooterVisible:!0},s={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.VIDEOS,isFooterVisible:!1},u={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.GAMES,isFooterVisible:!0},d={width:"520px",maxWidth:"520px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.TAKEN_CORNERS,isFooterVisible:!0},h={width:"670px",maxWidth:"670px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.HOW_WAS_CORNER,isFooterVisible:!0},g={width:"426px",maxWidth:"426px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.ZONE,isFooterVisible:!0},b={width:"285px",maxWidth:"285px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.WHAT_HAPPENED,isFooterVisible:!0},w=t.ref(!1),x=t.ref(!1),S=t.ref(0),k=t.ref(0),T=t.ref({}),C=t.ref(null),A=t.ref(null),E=t.computed(()=>B.menuButtonText||F()),M=t.computed(()=>B.expansionPanelText||F()),I=t.ref(null);t.watch(()=>B.filterType,q=>{q===er.PRODUCTIVITY?T.value={...D,...B.templateProps,productivityCategories:B.filters||WPt}:q===er.PLAYS?T.value={...c,...B.templateProps,fontFamily:B.buttonFilterProps?B.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:B.filters||qPt}:q===er.FIELD?T.value={...m,...B.templateProps,fieldComponentProps:B.fieldComponentProps,fieldAreas:B.filters||[]}:q===er.DETAILS?T.value={...a,...B.templateProps,isPlayingAsHidden:B.filters?B.filters.isPlayingAsHidden:Jy.isPlayingAsHidden,playingAs:B.filters&&B.filters.playingAs||Jy.playingAs,gameSections:B.filters&&B.filters.gameSections||Jy.gameSections}:q===er.TOURNAMENTS?T.value={...v,...B.templateProps,tournaments:B.filters||XPt}:q===er.PERSONAL_DATA?T.value={...f,...B.templateProps,token:B.token,personalDataFilters:B.filters||E4}:q===er.PLAYS_TYPES?T.value={...n,...B.templateProps,playsGolstatsCategories:B.filters||ZPt}:q===er.GOLSTATS?T.value={...y,...B.templateProps,playsGolstatsCategories:B.filters||JPt}:q===er.UNIVERSE?T.value={..._,...B.templateProps,universeFilters:B.filters||YPt}:q===er.DISTANCE?T.value={...p,...B.templateProps,distanceFilters:B.filters||KPt}:q===er.RESULTS?T.value={...l,...B.templateProps,resultsFilters:B.filters||tq}:q===er.RESULTS_BY_TIME?T.value={...o,...B.templateProps,resultsByTimeFilters:B.filters||WE}:q===er.GAMES?T.value={...u,...B.templateProps,gamesFilters:B.filters||[]}:q===er.VIDEOS?T.value={...s,...B.templateProps,token:B.token}:q===er.TAKEN_CORNERS?T.value={...d,...B.templateProps,takenCornersFilters:B.filters||[]}:q===er.HOW_WAS_CORNER?T.value={...h,...B.templateProps,howWasCornerFilters:B.filters||UE}:q===er.ZONE?T.value={...g,...B.templateProps,zoneFilters:B.filters||[...E_]}:q===er.WHAT_HAPPENED&&(T.value={...b,...B.templateProps,whatHappenedFilters:B.filters||[...HE]}),T.value.isExpansionMode=B.isExpansionPanel,B.isExpansionPanel&&(T.value.width="100%",T.value.maxWidth="100%")},{immediate:!0}),t.watch(()=>B.filters,()=>{B.filterType===er.PRODUCTIVITY?T.value={...D,...B.templateProps,productivityCategories:B.filters}:B.filterType===er.PLAYS?T.value={...c,...B.templateProps,playsCategories:B.filters}:B.filterType===er.FIELD?T.value={...m,...B.templateProps,fieldComponentProps:B.fieldComponentProps,fieldAreas:B.filters}:B.filterType===er.DETAILS?T.value={...a,...B.templateProps,isPlayingAsHidden:B.filters?B.filters.isPlayingAsHidden:Jy.isPlayingAsHidden,playingAs:B.filters?B.filters.playingAs:Jy.playingAs,gameSections:B.filters?B.filters.gameSections:Jy.gameSections}:B.filterType===er.TOURNAMENTS?T.value={...v,...B.templateProps,tournaments:B.filters}:B.filterType===er.PERSONAL_DATA?T.value={...f,...B.templateProps,token:B.token,personalDataFilters:B.filters}:B.filterType===er.PLAYS_TYPES?T.value={...n,...B.templateProps,playsGolstatsCategories:B.filters}:B.filterType===er.GOLSTATS?T.value={...y,...B.templateProps,playsGolstatsCategories:B.filters}:B.filterType===er.UNIVERSE?T.value={..._,...B.templateProps,universeFilters:B.filters}:B.filterType===er.DISTANCE?T.value={...p,...B.templateProps,distanceFilters:B.filters}:B.filterType===er.RESULTS?T.value={...l,...B.templateProps,resultsFilters:B.filters||tq}:B.filterType===er.RESULTS_BY_TIME?T.value={...o,...B.templateProps,resultsByTimeFilters:B.filters||WE}:B.filterType===er.GAMES?T.value={...u,...B.templateProps,gamesFilters:B.filters}:B.filterType===er.VIDEOS?T.value={...s,...B.templateProps,token:B.token}:B.filterType===er.TAKEN_CORNERS?T.value={...d,...B.templateProps,takenCornersFilters:B.filters||[]}:B.filterType===er.HOW_WAS_CORNER?T.value={...h,...B.templateProps,howWasCornerFilters:B.filters||UE}:B.filterType===er.ZONE?T.value={...g,...B.templateProps,zoneFilters:B.filters||[...E_]}:B.filterType===er.WHAT_HAPPENED&&(T.value={...b,...B.templateProps,whatHappenedFilters:B.filters||[...HE]}),T.value.isExpansionMode=B.isExpansionPanel,B.isExpansionPanel&&(T.value.width="100%",T.value.maxWidth="100%")}),t.watch(w,q=>{q||i("close",I.value)}),t.watch(x,q=>{q||i("close",I.value)});function N(q){S.value=q}function z(){B.isExpansionPanel?x.value=!1:w.value=!1,i("apply",I.value)}function F(){if(B.filterType===er.PRODUCTIVITY)return"Características de juego";if(B.filterType===er.PLAYS)return"Jugada(s)";if(B.filterType===er.FIELD)return"Zona de cancha";if(B.filterType===er.DETAILS)return"Detalles";if(B.filterType===er.TOURNAMENTS)return"Ligas";if(B.filterType===er.PERSONAL_DATA)return"Datos personales";if(B.filterType===er.PLAYS_TYPES)return"Tipos de jugada";if(B.filterType===er.GOLSTATS)return"Filtros Golstats";if(B.filterType===er.UNIVERSE)return"Universo";if(B.filterType===er.DISTANCE)return"Distancia";if([er.RESULTS,er.RESULTS_BY_TIME].includes(B.filterType))return"Resultados";if(B.filterType===er.GAMES)return"Partidos";if(B.filterType===er.VIDEOS)return"Videos";if(B.filterType===er.TAKEN_CORNERS)return"¿Quién cobró?";if(B.filterType===er.HOW_WAS_CORNER)return"¿Cómo fue cobrado?";if(B.filterType===er.ZONE)return"Zona";if(B.filterType===er.WHAT_HAPPENED)return"¿Qué sucedió?"}function R(q){T.value.fieldAreas=q,S.value=q.length,$(q)}function V(q){let W=0;q.value&&q.value.statistics&&(q.value.minutesPlayed&&W++,q.value.percentMinutesPlayed&&W++,q.value.lastMonths&&W++,q.value.statistics.totals&&W++,q.value.statistics.averagePerGame&&W++,q.value.statistics.averagePerMinute&&W++),T.value.universe=q.value,S.value=W,$(q.value)}function $(q){I.value=q,i("update:filters",q)}function U(q){k.value=q}function Z(q=null){C.value&&C.value.clearFilters(q),A.value&&A.value.clearFilters(q)}return r({clearFilters:Z}),(q,W)=>(t.openBlock(),t.createElementBlock("div",QPt,[e.isExpansionPanel?(t.openBlock(),t.createElementBlock("div",eBt,[t.createVNode(t.unref(HPt),t.mergeProps(e.expansionPanelProps,{modelValue:x.value,"onUpdate:modelValue":W[0]||(W[0]=Q=>x.value=Q),text:M.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+B.filterType+"-icon.png"}),{content:t.withCtx(()=>[t.createElementVNode("div",tBt,[t.createVNode(eq,t.mergeProps(T.value,{season:e.season,"is-female":e.isFemale,"is-expansion-mode":!0,ref_key:"filterTemplateExpansionPanel",ref:A,onChangeFieldAreas:R,onChangeCategoriesSelected:N,onChangeFiltersSelected:N,onChangeUniverseFilters:V,onApply:z,"onUpdate:filters":$,onTotalFilters:U}),null,16,["season","is-female"])])]),_:1},16,["modelValue","text","icon"])])):(t.openBlock(),t.createElementBlock("div",aBt,[t.createVNode(t.unref(WIt),{modelValue:w.value,"onUpdate:modelValue":W[1]||(W[1]=Q=>w.value=Q),width:e.width,"menu-margin-top":18},{trigger:t.withCtx(()=>[t.createVNode(NPt,t.mergeProps(e.buttonFilterProps,{text:E.value,"show-badge-on-filter-full":e.showBadgeOnFilterFull,"info-value":S.value,"filters-total":k.value.value,"is-active":w.value,"icon-type":e.filterType}),null,16,["text","show-badge-on-filter-full","info-value","filters-total","is-active","icon-type"])]),menu:t.withCtx(()=>[t.createVNode(eq,t.mergeProps(T.value,{season:e.season,"is-female":e.isFemale,"is-scouting":e.isScouting,ref_key:"filterTemplateMenu",ref:C,onChangeFieldAreas:R,onChangeCategoriesSelected:N,onChangeFiltersSelected:N,onChangeUniverseFilters:V,"onUpdate:filters":$,onTotalFilters:U,onApply:z}),null,16,["season","is-female","is-scouting"])]),_:1},8,["modelValue","width"])]))]))}},aq=ml(nBt,[["__scopeId","data-v-a68a1d5d"]]),W1a="",nq=e=>(t.pushScopeId("data-v-2a81f2f0"),e=e(),t.popScopeId(),e),rBt={class:"header-team__info"},iBt={class:"header-team__info__checkbox"},oBt={key:0,class:"header-team__info__logo"},sBt=["src"],lBt={class:"header-team__info__name"},cBt={class:"header-team__arrow"},dBt=nq(()=>t.createElementVNode("div",{class:"header-team__arrow__circle"},null,-1)),uBt=nq(()=>t.createElementVNode("div",{class:"header-team__arrow__line"},null,-1)),rq=$i({__name:"CategoriesHeaderTeam",props:{team:{type:Object,default:()=>{}},isHomeTeam:{type:Boolean,default:!0},teamsSelected:{type:Set,default:()=>new Set},isGamePreMatch:{type:Boolean,default:!1},isTeamForAnalysis:{type:Boolean,default:!1}},emits:["change-team"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--flex-direction-info":i.isHomeTeam?"flex":"row-reverse","--justify-content-info":i.isHomeTeam?"flex-start":"flex-end","--arrow-color":i.isHomeTeam?"#336dff":"#7ed321"})),D=t.computed(()=>i.team.colloquial_name||i.team.colloquialName||i.team.name||i.team.team_name||"");function c(m){r("change-team",{value:m,team:i.team})}return(m,a)=>(t.openBlock(),t.createElementBlock("div",{class:"header-team",style:t.normalizeStyle(B.value)},[t.createElementVNode("div",rBt,[t.createElementVNode("div",iBt,[t.createVNode(t.unref(Wg),{"model-value":e.team.isSelected,"avoid-interaction":e.teamsSelected.size===1&&e.team.isSelected,"onUpdate:modelValue":c},null,8,["model-value","avoid-interaction"])]),D.value!=="Rival"?(t.openBlock(),t.createElementBlock("div",oBt,[e.team.logo?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.team.logo,alt:"h-team"},null,8,sBt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",lBt,t.toDisplayString(D.value),1)]),t.createElementVNode("div",cBt,[dBt,uBt,t.createElementVNode("div",{class:t.normalizeClass(`header-team__arrow__triangle-${i.isHomeTeam?"right":"left"}`)},null,2)])],4))}},[["__scopeId","data-v-2a81f2f0"]]),Y1a="",iq=e=>(t.pushScopeId("data-v-bfb2c86b"),e=e(),t.popScopeId(),e),hBt={class:"list-events"},pBt=iq(()=>t.createElementVNode("div",{class:"list-events__title"},"Tipos de jugadas:",-1)),fBt={class:"list-events__list"},mBt=["onClick"],gBt=[iq(()=>t.createElementVNode("img",{src:mE,alt:""},null,-1))],yBt=$i({__name:"ListEvents",props:{listEventsToDisplay:{type:Array,default:()=>[]},awaitForListEvents:{type:Boolean,default:!1},lastEventTypeSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},totalEvents:{type:Number,default:0},isPrivilegesVrApplicable:{type:Boolean,default:!1},totalEventsPrivilegesVr:{type:Number,default:0}},emits:["change-event-type","click-play"],setup(e,{emit:r}){const i=e,B=[{categoriesIds:new Set([607,608]),name:"Oportunidad de gol",value:"0"},{categoriesIds:new Set([12,55,"54_r","35_r"]),name:"Goles",value:"1"},{categoriesIds:new Set([19]),name:"Tiros a gol",value:"2"},{categoriesIds:new Set([537,540,544,547]),name:"Tiros a gol (portería)",value:"3"},{categoriesIds:new Set([13,25]),name:"Centros totales",value:"5"},{categoriesIds:new Set([98,101,104,105,109,112,115,116]),name:"Centros acertados",value:"6"},{categoriesIds:new Set([11]),name:"Balones ganados en área rival",value:"7"},{categoriesIds:new Set([4]),name:"1vs1 exitosos ofensivos",value:"8"},{categoriesIds:new Set([208]),name:"1vs1 no exitosos ofensivos",value:"9"},{categoriesIds:new Set([5]),name:"1vs1 exitoso defensivo",value:"10"},{categoriesIds:new Set([31,32]),name:"Corners",value:"11"}],D=t.ref(i.awaitForListEvents?[]:B),c=t.ref(i.awaitForListEvents?new Map:D.value.reduce((v,f)=>(v.set(f.value,f),v),new Map)),m=t.ref(i.awaitForListEvents?"":D.value[0].value);t.watch(()=>i.listEventsToDisplay,v=>{if(v.length){c.value=new Map,D.value=v.map((n,y)=>{const _={name:n.name,singleName:n.single_name,categories:new Set(n.categories),categoriesIds:n.categories,post:n.post,prev:n.prev,value:y.toString()};return c.value.set(_.value,_),_});let f=null;i.lastEventTypeSelected&&i.lastEventTypeSelected.name&&(f=c.value.get(i.lastEventTypeSelected.value)),m.value=f?f.value:D.value[0].value}},{immediate:!0,deep:!0}),t.watch(()=>m.value,v=>{const f=c.value.get(v);f&&r("change-event-type",f)});function a(v,f){i.canPlayVideos&&f&&r("click-play",v.categoriesIds)}return(v,f)=>(t.openBlock(),t.createElementBlock("div",hBt,[pBt,t.createElementVNode("div",fBt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,n=>(t.openBlock(),t.createElementBlock("div",{key:n.value,class:"list-events__list__item"},[t.createVNode(t.unref(rB),{modelValue:m.value,"onUpdate:modelValue":f[0]||(f[0]=y=>m.value=y),value:n.value,label:n.name,name:"event-type","radio-position":"left",class:"list-events__list__item__radio"},null,8,["modelValue","value","label"]),t.createElementVNode("button",{class:t.normalizeClass(["list-events__list__item__btn-play",{disabled:!(e.canPlayVideos&&m.value===n.value&&(e.isPrivilegesVrApplicable?e.totalEventsPrivilegesVr:e.totalEvents)>0)}]),onClick:y=>a(n,e.canPlayVideos&&m.value===n.value&&(e.isPrivilegesVrApplicable?e.totalEventsPrivilegesVr:e.totalEvents)>0)},gBt,10,mBt)]))),128))])]))}},[["__scopeId","data-v-bfb2c86b"]]),vBt=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero"]]),J1a="",_Bt={class:"item-player__info"},bBt={class:"item-player__info__photo"},xBt={class:"item-player__info__photo__img"},wBt=["src"],kBt={class:"item-player__info__data"},CBt={class:"item-player__info__data__name"},SBt={class:"item-player__info__data__position"},TBt={class:"item-player__info__data__position__nationality"},EBt=["src"],ABt={class:"item-player__info__data__position__position"},MBt={class:"item-player__jersey-number"},IBt=$i({__name:"ItemPlayer",props:{isFemale:{type:Boolean,default:!1},player:{type:Object,default:()=>{}},selectedPlayers:{type:Set,default:()=>new Set}},emits:["change-player"],setup(e,{emit:r}){const i=e,B=t.computed(()=>vBt.get(i.player.position_id)||""),D=t.computed(()=>`https://az755631.vo.msecnd.net/flags/${i.player.nationality_id}.jpg`);function c(m){r("change-player",m)}return(m,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["item-player",{inactive:!e.player.isSelected}])},[t.createVNode(t.unref(Wg),{"model-value":e.player.isSelected,"avoid-interaction":e.selectedPlayers.size===1&&e.player.isSelected,"onUpdate:modelValue":c},null,8,["model-value","avoid-interaction"]),t.createElementVNode("div",_Bt,[t.createElementVNode("div",bBt,[t.createElementVNode("div",xBt,[t.createElementVNode("img",{src:e.player.photo,alt:"player-photo"},null,8,wBt)])]),t.createElementVNode("div",kBt,[t.createElementVNode("div",CBt,t.toDisplayString(e.player.player_lastname)+", "+t.toDisplayString(e.player.player_name),1),t.createElementVNode("div",SBt,[t.createElementVNode("div",TBt,[t.createElementVNode("img",{src:D.value},null,8,EBt)]),t.createElementVNode("div",ABt,t.toDisplayString(e.isFemale?B.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):B.value),1)])])]),t.createElementVNode("div",MBt,t.toDisplayString(e.player.jersey),1)],2))}},[["__scopeId","data-v-63dda574"]]),Q1a="",PBt={class:"list-players"},BBt={class:"list-players__header"},NBt=["src"],zBt={class:"list-players__header__team__name"},OBt=["src"],FBt={class:"list-players__header__team__name"},LBt={class:"list-players__body"},DBt=$i({__name:"ListPlayers",props:{isFemale:{type:Boolean,default:!1},homeTeam:{type:Object,default:()=>({})},awayTeam:{type:Object,default:()=>({})},availablePlayersByTeam:{type:Map,default:()=>new Map}},emits:["change-players"],setup(e,{emit:r}){const i=e,B=t.ref(0);t.watch(()=>i.homeTeam.team_id,v=>{v===void 0?i.awayTeam&&i.awayTeam.team_id&&(B.value=i.awayTeam.team_id):B.value=v},{immediate:!0});const D=t.computed(()=>i.availablePlayersByTeam.get(B.value)||[]),c=t.computed(()=>D.value.reduce((v,f)=>(f.isSelected&&v.add(f.player_id),v),new Set));t.watch(()=>c.value,v=>{r("change-players",v)},{immediate:!0});function m(v){B.value=v}function a(v,f){f.isSelected=v}return(v,f)=>(t.openBlock(),t.createElementBlock("div",PBt,[t.createElementVNode("div",BBt,[e.homeTeam.team_id!==void 0?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:t.normalizeClass(["list-players__header__team",{active:B.value===e.homeTeam.team_id}]),onClick:f[0]||(f[0]=n=>m(e.homeTeam.team_id))},[t.createElementVNode("img",{src:e.homeTeam.logo,alt:"team-logo"},null,8,NBt),t.createElementVNode("div",zBt,t.toDisplayString(e.homeTeam.colloquial_name),1)],2)):t.createCommentVNode("",!0),e.awayTeam.team_id!==void 0?(t.openBlock(),t.createElementBlock("div",{key:1,role:"button",class:t.normalizeClass(["list-players__header__team away",{active:B.value===e.awayTeam.team_id}]),onClick:f[1]||(f[1]=n=>m(e.awayTeam.team_id))},[t.createElementVNode("img",{src:e.awayTeam.logo,alt:"team-logo"},null,8,OBt),t.createElementVNode("div",FBt,t.toDisplayString(e.awayTeam.colloquial_name),1)],2)):t.createCommentVNode("",!0)]),t.createElementVNode("div",LBt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,n=>(t.openBlock(),t.createBlock(IBt,{key:n.player_id,"is-female":e.isFemale,player:n,"selected-players":c.value,onChangePlayer:y=>a(y,n)},null,8,["is-female","player","selected-players","onChangePlayer"]))),128))])]))}},[["__scopeId","data-v-a0fc063d"]]),tga="",RBt={class:"categories-list"},VBt={key:0,class:"categories-list__games"},$Bt={key:1,class:"categories-list__header"},jBt={class:"categories-list__switch"},UBt={class:"categories-list__lists"},GBt={key:0,class:"categories-list__lists__events"},HBt={key:1,class:"categories-list__lists__players"},WBt=$i({__name:"CategoriesList",props:{isFemale:{type:Boolean,default:!1},homeTeam:{type:Object,default:()=>({})},awayTeam:{type:Object,default:()=>({})},listEventsToDisplay:{type:Array,default:()=>[]},awaitForListEvents:{type:Boolean,default:!1},tournamentSelected:{type:Object,default:()=>({})},availablePlayersByTeam:{type:Map,default:()=>new Map},listType:{type:String,default:"events"},canPlayVideos:{type:Boolean,default:!0},isGamePreMatch:{type:Boolean,default:!1},selectedTeamData:{type:Object,default:()=>({})},rivalTeams:{type:Object,default:()=>({isSelected:!1,colloquialName:"Rival"})},teamSelected:{type:Object,default:()=>({teamId:0})},totalEvents:{type:Number,default:0},isPrivilegesVrApplicable:{type:Boolean,default:!1},totalEventsPrivilegesVr:{type:Number,default:0}},emits:["change-event-type","change-list-type","change-players","change-teams","change-games"],setup(e,{emit:r}){const i=e,B=t.ref(["Eventos",i.tournamentSelected.is_female==1?"Jugadoras":"Jugadores"]),D=t.ref(0),c=t.ref({}),m=t.ref({isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"100%"},buttonFilterProps:{width:"100%","background-color":"#293640",padding:"3px 8px","border-radius":"5px","border-color":"#293640","info-border-color":"#424D58"},fieldComponentProps:{width:"100%"},width:"100%"}),a=t.ref([]),v=t.ref({}),f=t.ref({}),n=t.ref(new Set),y=t.computed(()=>{const w=new Set,x=new Set;return i.isGamePreMatch?(i.selectedTeamData.isSelected&&(x.add(i.selectedTeamData.teamId),w.add(1)),i.rivalTeams.isSelected&&(w.add(2),a.value.forEach(S=>{x.add(S.rivalTeam.team_id===i.selectedTeamData.teamId?S.team.team_id:S.rivalTeam.team_id)})),o(w)):(i.homeTeam.isSelected&&x.add(i.homeTeam.team_id),i.awayTeam.isSelected&&x.add(i.awayTeam.team_id)),x}),_=t.computed(()=>i.homeTeam.team_id===i.teamSelected.teamId),p=t.computed(()=>i.awayTeam.team_id===i.teamSelected.teamId);t.watch(()=>D.value,w=>{r("change-list-type",w?"players":"events")},{immediate:!0}),t.watch(()=>y.value,w=>{r("change-teams",w)},{immediate:!0});const l=t.computed(()=>i.isGamePreMatch&&i.selectedTeamData.games&&i.selectedTeamData.games.length>0?i.selectedTeamData.games.map(w=>({...w,label:`${w.roundAbbreviation} ${w.team.acronym} vs ${w.rivalTeam.acronym}`,teamsIds:[w.team.team_id,w.rivalTeam.team_id]})):[]);function o(w){n.value=w}function s(w){D.value=w.index}function u(w){c.value=w,r("change-event-type",w)}function d(w){r("change-players",w)}function h({value:w,team:x}){x.isSelected=w}function g(w){r("click-play",w)}function b(w){const x=new Set;if(a.value=w.filter(S=>(S.isSelected&&x.add(S.game_id),S.isSelected)),a.value.length===1){const S=a.value[0];v.value=S.homeTeam,f.value=S.awayTeam}else v.value=i.teamSelected.isHomeTeam?i.homeTeam:{},f.value=i.teamSelected.isHomeTeam?{}:i.awayTeam,D.value=0;r("change-games",{gamesIds:x,availableTeamsIds:y.value,currentTeamGamesSelected:a.value})}return(w,x)=>(t.openBlock(),t.createElementBlock("div",RBt,[e.isGamePreMatch?(t.openBlock(),t.createElementBlock("div",VBt,[t.createVNode(t.unref(aq),t.mergeProps(m.value,{"filter-type":t.unref(er).GAMES,filters:l.value,"onUpdate:filters":b}),null,16,["filter-type","filters"])])):t.createCommentVNode("",!0),e.listType==="events"?(t.openBlock(),t.createElementBlock("div",$Bt,[t.createVNode(rq,{team:e.isGamePreMatch?_.value?e.selectedTeamData:e.rivalTeams:e.homeTeam,"teams-selected":e.isGamePreMatch?n.value:y.value,"is-game-pre-match":e.isGamePreMatch,"is-team-for-analysis":_.value,onChangeTeam:h},null,8,["team","teams-selected","is-game-pre-match","is-team-for-analysis"]),t.createVNode(rq,{team:e.isGamePreMatch?p.value?e.selectedTeamData:e.rivalTeams:e.awayTeam,"is-home-team":!1,"is-game-pre-match":e.isGamePreMatch,"teams-selected":e.isGamePreMatch?n.value:y.value,"is-team-for-analysis":p.value,onChangeTeam:h},null,8,["team","is-game-pre-match","teams-selected","is-team-for-analysis"])])):t.createCommentVNode("",!0),t.createElementVNode("div",jBt,[t.createVNode(g4,{"selected-button-index":D.value,buttons:B.value,width:"220px","border-radius":"16px",onChange:s},null,8,["selected-button-index","buttons"])]),t.createElementVNode("div",UBt,[D.value===0?(t.openBlock(),t.createElementBlock("div",GBt,[t.createVNode(yBt,{"list-events-to-display":e.isGamePreMatch?e.selectedTeamData.categories:e.listEventsToDisplay,"await-for-list-events":e.awaitForListEvents,"last-event-type-selected":c.value,"can-play-videos":e.canPlayVideos,"total-events":e.totalEvents,"total-events-privileges-vr":e.totalEventsPrivilegesVr,"is-privileges-vr-applicable":e.isPrivilegesVrApplicable,onChangeEventType:u,onClickPlay:g},null,8,["list-events-to-display","await-for-list-events","last-event-type-selected","can-play-videos","total-events","total-events-privileges-vr","is-privileges-vr-applicable"])])):(t.openBlock(),t.createElementBlock("div",HBt,[t.createVNode(DBt,{"is-female":e.isFemale,"available-players-by-team":e.availablePlayersByTeam,"home-team":e.isGamePreMatch?v.value:e.homeTeam,"away-team":e.isGamePreMatch?f.value:e.awayTeam,onChangeEventType:u,onChangePlayers:d},null,8,["is-female","available-players-by-team","home-team","away-team"])]))])]))}},[["__scopeId","data-v-86727bbf"]]),oq=["playId","playerId","teamId","gameId","categoryId","x1","y1","x2","y2","x3","y3","momentOfPlay","relatedPlayId","order","nationalityId","jersey"];let qE=null;function qBt(){return qE||(qE=qg(oq)),qE}const YBt=new Set([35,54]),sq=new Set(["35_r","54_r"]),P4={homeTeam:"#336dff",awayTeam:"#7ed321"},lq={homeTeam:"#fff",awayTeam:"#000"};class cq{constructor(r={},i=[],B=new Set,D=new Set,c=null,m=null){const a=YBt.has(r.categoryId);this.mainPlay=r,this.playEvents=i.sort((v,f)=>f.order-v.order),this.categoriesIds=B,this.playersIds=D,this.teamForAnalysis=m,this.mainCategoryId=a?`${r.categoryId}_r`:r.categoryId||0,this.mainPlay.isMainPlay=!0,this.playEvents.forEach(v=>{v.game=c})}setEventType(r){this.eventType=r,this.mainPlay.categoryName=r.singleName,this.playEvents.forEach(i=>{i.hasConnectionPath=this.eventType.prev!==0||this.eventType.post!==0})}getEventsConnectionsByEventType(){const r=this.playEvents.findIndex(i=>i.playId===this.mainPlay.playId);if(r>-1&&this.eventType){let i=r-this.eventType.post,B=r+this.eventType.prev;i<0&&(i=0),B>this.playEvents.length-1&&(B=this.playEvents.length-1);const D=this.playEvents.slice(i,B+1).reverse();return D.forEach((c,m)=>{m>0&&(c.previousEvent=D[m-1])}),D}return[]}hasMainCategory(r=new Set){return r.has(this.mainCategoryId)}hasCategories(r=new Set,i={homeTeamId:0,awayTeamId:0}){const B=[];return r.forEach(D=>{B.push(`${i.homeTeamId}-${D}`),B.push(`${i.awayTeamId}-${D}`)}),B.some(D=>this.teamEventsIndex.has(D))}hasPlayer(r=new Set){return r.has(this.mainPlay.playerId)}hasPlayers(r=new Set){return Array.from(r.values()).some(i=>this.playersIds.has(i))}hasTeam(r=new Set){return r.has(this.mainPlay.teamId)}getTeamColor(){let r=this.teamForAnalysis?this.teamForAnalysis.isHomeTeam?this.mainPlay.teamId===this.teamForAnalysis.teamId:this.mainPlay.teamId!==this.teamForAnalysis.teamId:this.mainPlay.team.isHomeTeam;return sq.has(this.mainPlay.categoryId)&&(r=!r),r?P4.homeTeam:P4.awayTeam}getEventColor(r){return(this.teamForAnalysis?this.teamForAnalysis.isHomeTeam?r.teamId===this.teamForAnalysis.teamId:r.teamId!==this.teamForAnalysis.teamId:r.team.isHomeTeam)?P4.homeTeam:P4.awayTeam}getTeamFontColor(){let r=this.teamForAnalysis?this.teamForAnalysis.isHomeTeam?this.mainPlay.teamId===this.teamForAnalysis.teamId:this.mainPlay.teamId!==this.teamForAnalysis.teamId:this.mainPlay.team.isHomeTeam;return sq.has(this.mainPlay.categoryId)&&(r=!r),r?lq.homeTeam:lq.awayTeam}getSingleName(r){return r.split(" ").reduce((B,D)=>{let c=D;return D.endsWith("minaron")?c=D.replace("minaron","minó"):D.endsWith("vocan")?c=D.replace("vocan","voca"):D.endsWith("lones")?c=D.replace("lones","lón"):D.endsWith("oles")?c=D.replace("oles","ol"):(D.endsWith("os")||D.endsWith("as")||D.endsWith("es"))&&(c=D.slice(0,D.length-1)),B.push(c),B},[]).join(" ")}}const XBt=new Map([[1,{matchDayId:1,matchDayName:"Jornada 1",matchDayAbbreviation:"J1",matchDayAbbreviation2:"JOR 1"}],[2,{matchDayId:2,matchDayName:"Jornada 2",matchDayAbbreviation:"J2",matchDayAbbreviation2:"JOR 2"}],[3,{matchDayId:3,matchDayName:"Jornada 3",matchDayAbbreviation:"J3",matchDayAbbreviation2:"JOR 3"}],[4,{matchDayId:4,matchDayName:"Jornada 4",matchDayAbbreviation:"J4",matchDayAbbreviation2:"JOR 4"}],[5,{matchDayId:5,matchDayName:"Jornada 5",matchDayAbbreviation:"J5",matchDayAbbreviation2:"JOR 5"}],[6,{matchDayId:6,matchDayName:"Jornada 6",matchDayAbbreviation:"J6",matchDayAbbreviation2:"JOR 6"}],[7,{matchDayId:7,matchDayName:"Jornada 7",matchDayAbbreviation:"J7",matchDayAbbreviation2:"JOR 7"}],[8,{matchDayId:8,matchDayName:"Jornada 8",matchDayAbbreviation:"J8",matchDayAbbreviation2:"JOR 8"}],[9,{matchDayId:9,matchDayName:"Jornada 9",matchDayAbbreviation:"J9",matchDayAbbreviation2:"JOR 9"}],[10,{matchDayId:10,matchDayName:"Jornada 10",matchDayAbbreviation:"J10",matchDayAbbreviation2:"JOR 10"}],[11,{matchDayId:11,matchDayName:"Jornada 11",matchDayAbbreviation:"J11",matchDayAbbreviation2:"JOR 11"}],[12,{matchDayId:12,matchDayName:"Jornada 12",matchDayAbbreviation:"J12",matchDayAbbreviation2:"JOR 12"}],[13,{matchDayId:13,matchDayName:"Jornada 13",matchDayAbbreviation:"J13",matchDayAbbreviation2:"JOR 13"}],[14,{matchDayId:14,matchDayName:"Jornada 14",matchDayAbbreviation:"J14",matchDayAbbreviation2:"JOR 14"}],[15,{matchDayId:15,matchDayName:"Jornada 15",matchDayAbbreviation:"J15",matchDayAbbreviation2:"JOR 15"}],[16,{matchDayId:16,matchDayName:"Jornada 16",matchDayAbbreviation:"J16",matchDayAbbreviation2:"JOR 16"}],[17,{matchDayId:17,matchDayName:"Jornada 17",matchDayAbbreviation:"J17",matchDayAbbreviation2:"JOR 17"}],[18,{matchDayId:18,matchDayName:"Cuartos de Final Ida",matchDayAbbreviation:"CFI",matchDayAbbreviation2:"CFI"}],[19,{matchDayId:19,matchDayName:"Cuartos de Final Vuelta",matchDayAbbreviation:"CFV",matchDayAbbreviation2:"CFV"}],[20,{matchDayId:20,matchDayName:"Semifinal Ida",matchDayAbbreviation:"SFI",matchDayAbbreviation2:"SFI"}],[21,{matchDayId:21,matchDayName:"Semifinal Vuelta",matchDayAbbreviation:"SFV",matchDayAbbreviation2:"SFV"}],[22,{matchDayId:22,matchDayName:"Final Ida",matchDayAbbreviation:"FI",matchDayAbbreviation2:"FI"}],[86,{matchDayId:86,matchDayName:"Final Vuelta",matchDayAbbreviation:"FV",matchDayAbbreviation2:"FV"}],[182,{matchDayId:182,matchDayName:"Play In 1",matchDayAbbreviation:"PI1",matchDayAbbreviation2:"PI1"}],[183,{matchDayId:183,matchDayName:"Play In 2",matchDayAbbreviation:"PI2",matchDayAbbreviation2:"PI2"}],[184,{matchDayId:184,matchDayName:"Repechaje",matchDayAbbreviation:"R",matchDayAbbreviation2:"R"}]]),ZBt=new Map([[1,{matchDayId:1,matchDayName:"Jornada 1",matchDayAbbreviation:"J1"}],[2,{matchDayId:2,matchDayName:"Jornada 2",matchDayAbbreviation:"J2"}],[3,{matchDayId:3,matchDayName:"Jornada 3",matchDayAbbreviation:"J3"}],[4,{matchDayId:4,matchDayName:"Jornada 4",matchDayAbbreviation:"J4"}],[5,{matchDayId:5,matchDayName:"Jornada 5",matchDayAbbreviation:"J5"}],[6,{matchDayId:6,matchDayName:"Jornada 6",matchDayAbbreviation:"J6"}],[181,{matchDayId:181,matchDayName:"16vos de Final",matchDayAbbreviation:"DF"}],[176,{matchDayId:176,matchDayName:"Octavos de Final",matchDayAbbreviation:"OF"}],[177,{matchDayId:177,matchDayName:"Cuartos de Final",matchDayAbbreviation:"CF"}],[178,{matchDayId:178,matchDayName:"Semifinales",matchDayAbbreviation:"SF"}],[179,{matchDayId:179,matchDayName:"Tercer lugar",matchDayAbbreviation:"3ER"}],[180,{matchDayId:180,matchDayName:"Final",matchDayAbbreviation:"FINAL"}]]),JBt=new Map([[1,{matchDayId:1,matchDayName:"16vos de Final Ida",matchDayAbbreviation:"DFI"}],[2,{matchDayId:2,matchDayName:"16vos de Final Vuelta",matchDayAbbreviation:"DFV"}],[3,{matchDayId:3,matchDayName:"Octavos de Final Ida",matchDayAbbreviation:"OFI"}],[4,{matchDayId:4,matchDayName:"Octavos de Final Vuelta",matchDayAbbreviation:"OFV"}],[5,{matchDayId:5,matchDayName:"Cuartos de Final Ida",matchDayAbbreviation:"CFI"}],[6,{matchDayId:6,matchDayName:"Cuartos de Final Vuelta",matchDayAbbreviation:"CFV"}],[7,{matchDayId:7,matchDayName:"Semifinales Ida",matchDayAbbreviation:"SFI"}],[8,{matchDayId:8,matchDayName:"Semifinales Vuelta",matchDayAbbreviation:"SFV"}],[10,{matchDayId:10,matchDayName:"Final",matchDayAbbreviation:"FINAL"}]]),KBt=new Map([[0,XBt],[1,ZBt],[2,JBt]]),nga="",E1=e=>(t.pushScopeId("data-v-f73a1d33"),e=e(),t.popScopeId(),e),QBt={class:"chalkboard-section-container"},eNt={key:0,class:"chalkboard-section-container__pre-match-header"},tNt={key:0,class:"container-info-text-pre-match"},aNt=E1(()=>t.createElementVNode("span",{class:"info-text-bold"},"IMPORTANTE:",-1)),nNt={key:1,class:"container-info-text-pre-match-mobile"},rNt=E1(()=>t.createElementVNode("span",{class:"info-text-bold"},"IMPORTANTE:",-1)),iNt=E1(()=>t.createElementVNode("br",null,null,-1)),oNt=E1(()=>t.createElementVNode("br",null,null,-1)),sNt={key:2,class:"container-info-text-pre-match-mobile"},lNt=E1(()=>t.createElementVNode("span",{class:"info-text-bold"},"IMPORTANTE:",-1)),cNt=E1(()=>t.createElementVNode("br",null,null,-1)),dNt=E1(()=>t.createElementVNode("br",null,null,-1)),uNt={class:"section-container"},hNt={class:"section-container__left-column"},pNt={class:"chalkboard-component"},fNt={class:"categories-time-line-component"},mNt={class:"total-events"},gNt={class:"section-container__right-column"},yNt=$i({__name:"ChalkboardSectionContainer",props:{isFemale:{type:Boolean,default:!1},game:{type:Object,default:()=>({})},seasonSelected:{type:Object,default:()=>({})},tournamentSelected:{type:Object,default:()=>({})},token:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0},widthSection:{type:Number,default:0},isGamePreMatch:{type:Boolean,default:!1},playVideosPrivileges:{type:Object,default:null},chalkboardIntervalMinutes:{type:Number,default:2}},emits:["open-media-player"],setup(e,{emit:r}){const i=e;let B=null;const D=qBt(),c=t.ref({teamId:0}),m=t.ref(0),a=t.ref({}),v=t.ref({}),f=t.ref([]),n=t.ref({value:""}),y=t.ref([]),_=t.ref([]),p=t.ref(new Map),l=t.ref(new Map),o=t.ref("events"),s=t.ref(new Set),u=t.ref(new Set),d=t.ref([]),h=new Map,g=t.ref({}),b=t.ref({isSelected:!0,colloquialName:"Rival"}),w=t.ref(new Set),x=t.ref(new Set),S=t.ref(new Set),k=t.ref(0),T=new Set,C=t.computed(()=>[{teamId:i.game.homeTeam.team_id,text:i.game.homeTeam.colloquial_name,img:i.game.homeTeam.logo,isHomeTeam:!0},{teamId:i.game.awayTeam.team_id,text:i.game.awayTeam.colloquial_name,img:i.game.awayTeam.logo,isHomeTeam:!1}]),A=t.computed(()=>y.value.reduce((ue,he)=>((o.value==="events"&&u.value.has(he.mainPlay.teamId)||o.value==="players"&&s.value.has(he.mainPlay.playerId))&&ue++,ue),0)),E=t.computed(()=>i.isGamePreMatch&&i.playVideosPrivileges),M=t.computed(()=>E.value?y.value.reduce((ue,he)=>((o.value==="events"&&u.value.has(he.mainPlay.teamId)||o.value==="players"&&s.value.has(he.mainPlay.playerId))&&x.value.has(he.mainPlay.gameId)&&ue++,ue),0):0),I=t.computed(()=>`${n.value.name}: ${A.value}`),N=t.computed(()=>i.isGamePreMatch?i.playVideosPrivileges?z():i.canPlayVideos:i.playVideosPrivileges?i.canPlayVideos&&u.value.has(i.playVideosPrivileges.seasonAndPrivileges.teamId):i.canPlayVideos);t.watch(()=>c.value.teamId,ue=>{if(i.isGamePreMatch&&ue){g.value&&!g.value.isSelected&&(g.value.isSelected=!0),b.value.isSelected=!0,g.value=h.get(ue);const he=new Set,pe=new Set;g.value&&(g.value.games.forEach(me=>{me.isSelected&&(he.add(me.id),pe.add(me.team.team_id),pe.add(me.rivalTeam.team_id))}),ae({gamesIds:he,availableTeamsIds:pe}))}},{immediate:!0}),t.watch(()=>i.game.gameId,ue=>{ue&&(a.value={...i.game.homeTeam,isSelected:!0},v.value={...i.game.awayTeam,isSelected:!0},S.value=new Set,V(),i.game.game_status===4&&!i.game.is_live?U():Z(ue,i.game.is_live&&i.game.game_status===4))},{immediate:!0}),t.watch(()=>C.value,()=>{m.value=0,c.value=C.value[m.value]},{immediate:!0,deep:!0}),t.watch(()=>n.value.value,()=>{i.isGamePreMatch?ee():(p.value=new Map([[i.game.homeTeam.team_id,[]],[i.game.awayTeam.team_id,[]]]),n.value.name&&R(_.value))},{immediate:!0,deep:!0});function z(){return d.value&&c.value&&i.playVideosPrivileges&&i.playVideosPrivileges.seasonAndPrivileges&&c.value.teamId===i.playVideosPrivileges.seasonAndPrivileges.teamId?d.value.reduce((he,pe)=>{if(pe.home_team===c.value.teamId||pe.visiting_team===c.value.teamId){const me=pe.home_team===c.value.teamId?1:2;i.playVideosPrivileges.seasonAndPrivileges.playingAs.has(me)&&he++}return he},0)>0&&u.value.has(c.value.teamId):!1}function F(){B=setInterval(()=>{Z(i.game.gameId)},1e3*60*i.chalkboardIntervalMinutes)}function R(ue){const he=new Set;y.value=[],ue.forEach(pe=>{pe.hasMainCategory(n.value.categories)&&(pe.setEventType(n.value),y.value.push(pe),he.add(pe.mainPlay.playerId))}),he.forEach(pe=>{const me=l.value.get(pe);me&&p.value.get(me.team_id).push({...me,isSelected:!0})})}function V(){B&&(clearInterval(B),B=null)}function $({isHomeTeam:ue,acronym:he,team_id:pe,team_name:me,colloquial_name:_e,logo:xe,categories:we,data:Ee,games:Pe,players:$e,teams:Te}){const Ce={logo:xe,acronym:he,categories:we,teamId:pe,name:me,colloquialName:_e,isSelected:!0,availablePlayersMap:new Map},ye=KBt.get(i.tournamentSelected.tournament_type),ge=Object.values(Te).reduce((De,Ue)=>(De.set(Ue.team_id,{...Ue,colloquial_name:Ue.colloquial_name||Ue.team_name}),De),new Map),Me=Object.values($e).reduce((De,Ue)=>{Ce.availablePlayersMap.set(Ue.player_id,{...Ue});const Ne=De.get(Ue.team_id);return Ne?Ne.set(Ue.player_id,{...Ue}):De.set(Ue.team_id,new Map([[Ue.player_id,{...Ue}]])),De},new Map),Se=Pe.reduce((De,Ue,Ne)=>{const ke=ye.get(Ue.matchday_id),Oe={...Ue,dateTimeMillis:new Date(Ue.date_time_utc).getTime(),id:Ue.game_id,roundAbbreviation:ke?ke.matchDayAbbreviation:"",playingAs:c.value.id===Ue.home_team?1:2,team:c.value.teamId===Ue.home_team?ge.get(Ue.home_team):ge.get(Ue.visiting_team),rivalTeam:c.value.teamId===Ue.home_team?ge.get(Ue.visiting_team):ge.get(Ue.home_team),homeTeam:ge.get(Ue.home_team),awayTeam:ge.get(Ue.visiting_team),playersSelected:new Set,eventsConnectionsBase:[],availablePlayersByTeamMap:new Map([[Ue.home_team,Me.get(Ue.home_team)],[Ue.visiting_team,Me.get(Ue.visiting_team)]]),availableTeamsByTeamMapSimple:new Map([[Ue.home_team,Array.from(Me.get(Ue.home_team).values())],[Ue.visiting_team,Array.from(Me.get(Ue.visiting_team).values())]]),teamsMap:new Map([[Ue.home_team,ge.get(Ue.home_team)],[Ue.visiting_team,ge.get(Ue.visiting_team)]]),isSelected:Ne<4};return De.set(Ue.game_id,Oe),De},new Map),ze=new Map([[C.value[0].teamId,C.value[0]],[C.value[1].teamId,C.value[1]]]),Fe=W(Ee,Se,ue);return Ce.games=Array.from(Se.values()).map(De=>{const Ue=[],Ne=Fe.get(De.id);return Ne&&Array.from(Ne.values()).forEach(ke=>{ke.mainPlay&&(ke.mainPlay.gameAux={homeTeam:De.homeTeam,awayTeam:De.awayTeam},Ue.push(new cq(ke.mainPlay,ke.events,ke.categoriesIds,ke.playersIds,{homeTeam:De.homeTeam,awayTeam:De.awayTeam,roundAbbreviation:De.roundAbbreviation},ze.get(pe))))}),{...De,eventsConnectionsBase:Ue}}),Ce}async function U(){try{(await X()).forEach((he,pe)=>{pe===0&&(he.isHomeTeam=!0),h.set(he.team_id,$(he))}),g.value&&!g.value.isSelected&&(g.value.isSelected=!0),b.value.isSelected=!0,g.value=h.get(c.value.teamId)}catch(ue){throw new Error(ue)}}async function Z(ue,he=!1){try{const pe=ue===k.value,{categories:me,data:_e,players:xe,teams:we}=await J(ue);let Ee=_e;const Pe=[];pe.value||(f.value=me,k.value=ue,_.value=[],T.clear()),Ee=_e.filter(Ce=>{const ye=`${Ce[D.relatedPlayId]}-${Ce[D.playId]}`,ge=T.has(ye);return ge||T.add(ye),!ge}),l.value=Object.values(xe).reduce((Ce,ye)=>(Ce.set(ye.player_id,{...ye}),Ce),new Map);const $e=Object.values(we).reduce((Ce,ye)=>(Ce.set(ye.team_id,{...ye,isHomeTeam:i.game.homeTeam.team_id===ye.team_id}),Ce),new Map),Te=Q(Ee,l.value,$e);Array.from(Te.values()).forEach(Ce=>{if(Ce.mainPlay){Ce.mainPlay.gameAux={homeTeam:$e.get(i.game.homeTeam.team_id),awayTeam:$e.get(i.game.awayTeam.team_id)};const ye=new cq(Ce.mainPlay,Ce.events,Ce.categoriesIds,Ce.playersIds);_.value.push(ye),Pe.push(ye)}}),Pe.length&&R(Pe),he&&F()}catch(pe){throw new Error(pe)}}function q(ue){return ue.reduce((he,pe,me)=>(he[oq[me]]=pe,he),{})}function W(ue,he,pe){return ue.reduce((_e,xe)=>{const we=q(xe),Ee=he.get(we.gameId);if(Ee){const Pe=we.relatedPlayId===we.playId,$e=_e.get(we.gameId),Te=Ee.availablePlayersByTeamMap.get(we.teamId);if(pe||(we.x1=1-we.x1,we.x2=1-we.x2,we.x3=1-we.x3,we.y1=1-we.y1,we.y2=1-we.y2,we.y3=1-we.y3),we.player=Te?Te.get(we.playerId):{},we.team=Ee.teamsMap.get(we.teamId)||{},$e){const Ce=$e.get(we.relatedPlayId);if(Ce)Pe&&(Ce.mainPlay=we),Ce.playsIds.has(we.playId)||(Ce.events.push(we),Ce.categoriesIds.add(we.categoryId),Ce.playersIds.add(we.playerId),Ce.playsIds.add(we.playId),Ce.players.push(we.player));else{const ye={events:[we],categoriesIds:new Set([we.categoryId]),playersIds:new Set([we.playerId]),playsIds:new Set([we.playId]),players:[we.player]};Pe&&(ye.mainPlay=we),$e.set(we.relatedPlayId,ye)}}else{const Ce=new Map,ye={events:[we],categoriesIds:new Set([we.categoryId]),playersIds:new Set([we.playerId]),playsIds:new Set([we.playId]),players:[we.player]};Pe&&(ye.mainPlay=we),Ce.set(we.relatedPlayId,ye),_e.set(we.gameId,Ce)}}return _e},new Map)}function Q(ue,he,pe){const me=ue.reduce((_e,xe)=>{const we=q(xe),Ee=_e.get(we.relatedPlayId),Pe=we.relatedPlayId===we.playId;if(we.player=he.get(we.playerId),we.team=pe.get(we.teamId),Ee)Pe&&(Ee.mainPlay=we),Ee.playsIds.has(we.playId)||(Ee.events.push(we),Ee.categoriesIds.add(we.categoryId),Ee.playersIds.add(we.playerId),Ee.playsIds.add(we.playId),Ee.players.push(we.player));else{const $e={events:[we],categoriesIds:new Set([we.categoryId]),playersIds:new Set([we.playerId]),playsIds:new Set([we.playId]),players:[we.player]};Pe&&($e.mainPlay=we),_e.set(we.relatedPlayId,$e)}return _e},new Map);return Array.from(me.values()).forEach(_e=>{_e.events.sort((xe,we)=>we.order-xe.order)}),me}async function X(){try{const ue={headers:{Authorization:""}},[he,pe]=await Promise.all([$c.get(`https://golstats-microservices.s3.us-west-2.amazonaws.com/chalkboard/chalkboard_${i.seasonSelected.id}_${i.game.homeTeam.team_id}.json`,ue),$c.get(`https://golstats-microservices.s3.us-west-2.amazonaws.com/chalkboard/chalkboard_${i.seasonSelected.id}_${i.game.awayTeam.team_id}.json`,ue)]);return[he.data,pe.data]}catch(ue){throw new Error(ue)}}async function J(ue){try{return(await $c.get(`https://df43gcr5d6.execute-api.us-east-2.amazonaws.com/prod/chalkboard/seasons/${i.seasonSelected.id}/games/${ue}`,{headers:{Authorization:i.token}})).data}catch(he){throw new Error(he)}}function ee(){if(g.value&&g.value.games&&g.value.games.length>0){const ue=new Set;p.value=new Map,y.value=[],g.value.games.forEach(he=>{w.value.has(he.id)&&he.eventsConnectionsBase.forEach(pe=>{pe.hasMainCategory(n.value.categories)&&(pe.setEventType(n.value),y.value.push(pe),ue.add(pe.mainPlay.playerId))})}),ue.forEach(he=>{const pe=g.value.availablePlayersMap.get(he);if(pe){const me=p.value.get(pe.team_id);me?me.find(_e=>_e.player_id===pe.player_id)||me.push({...pe,isSelected:!0}):p.value.set(pe.team_id,[{...pe,isSelected:!0}])}})}}function le(ue){n.value=ue}function oe(ue){o.value=ue,ue==="events"&&(a.value.isSelected=!0,v.value.isSelected=!0)}function se(ue){s.value=ue}function ce(ue){u.value=ue}function ae({gamesIds:ue,availableTeamsIds:he,currentTeamGamesSelected:pe}){w.value=ue,u.value=he,d.value=pe,i.isGamePreMatch&&(x.value.clear(),i.playVideosPrivileges&&i.playVideosPrivileges.seasonAndPrivileges?pe.forEach(me=>{const _e=me.home_team===i.playVideosPrivileges.seasonAndPrivileges.teamId?1:me.visiting_team===i.playVideosPrivileges.seasonAndPrivileges.teamId?2:0;i.playVideosPrivileges.seasonAndPrivileges.playingAs.has(_e)&&x.value.add(me.game_id)}):x.value=ue),ee()}function ne(ue){m.value=ue.index,c.value=ue.button}function ie(ue){const he={seasonId:i.seasonSelected.id,isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIdsToFilter:i.isGamePreMatch?Array.from(w.value.values()):[i.game.gameId],playerIds:[],teamIdsToFilter:Array.from(u.value.values()),categoryIds:ue,teamId:i.isGamePreMatch?null:u.value.size===1?Array.from(u.value)[0]:0,matchResult:[1,2,3],currentPlayIndex:0};r("open-media-player",he)}return(ue,he)=>(t.openBlock(),t.createElementBlock("div",QBt,[e.isGamePreMatch?(t.openBlock(),t.createElementBlock("div",eNt,[e.widthSection>590?(t.openBlock(),t.createElementBlock("div",tNt,[aNt,t.createTextVNode("  Es en base a las estadísticas de los partidos ya jugados en el torneo. ")])):t.createCommentVNode("",!0),e.widthSection>340&&e.widthSection<=590?(t.openBlock(),t.createElementBlock("div",nNt,[rNt,t.createTextVNode("  "),iNt,t.createTextVNode("Es en base a las estadísticas de los partidos ya "),oNt,t.createTextVNode(" jugados en el torneo. ")])):t.createCommentVNode("",!0),e.widthSection<=340?(t.openBlock(),t.createElementBlock("div",sNt,[lNt,t.createTextVNode("  "),cNt,t.createTextVNode("Es en base a las estadísticas de los "),dNt,t.createTextVNode("partidos ya jugados en el torneo. ")])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.widthSection>420?"container-switch-pre-match-teams":"container-switch-pre-match-teams-mobile")},[t.createVNode(g4,{"selected-button-index":m.value,buttons:C.value,width:"320px","border-radius":"16px",onChange:ne},null,8,["selected-button-index","buttons"])],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",uNt,[t.createElementVNode("div",hNt,[t.createElementVNode("div",pNt,[t.createVNode(K4t,{"events-connections":y.value,"list-type":o.value,"players-selected":s.value,"teams-selected":u.value,"is-game-pre-match":e.isGamePreMatch},null,8,["events-connections","list-type","players-selected","teams-selected","is-game-pre-match"])]),t.createElementVNode("div",fNt,[t.createVNode(s6t,{"events-connections":y.value,"list-type":o.value,"players-selected":s.value,"teams-selected":u.value,"is-game-pre-match":e.isGamePreMatch},null,8,["events-connections","list-type","players-selected","teams-selected","is-game-pre-match"])]),t.createElementVNode("div",mNt,t.toDisplayString(I.value),1)]),t.createElementVNode("div",gNt,[t.createVNode(WBt,{"is-female":e.isFemale,"home-team":a.value,"away-team":v.value,"tournament-selected":e.tournamentSelected,"list-events-to-display":f.value,"available-players-by-team":p.value,"list-type":o.value,"can-play-videos":N.value,"is-game-pre-match":e.isGamePreMatch,"selected-team-data":g.value,"rival-teams":b.value,"team-selected":c.value,"total-events":A.value,"total-events-privileges-vr":M.value,"is-privileges-vr-applicable":E.value,"await-for-list-events":"",onChangeEventType:le,onChangeListType:oe,onChangePlayers:se,onChangeTeams:ce,onChangeGames:ae,onClickPlay:ie},null,8,["is-female","home-team","away-team","tournament-selected","list-events-to-display","available-players-by-team","list-type","can-play-videos","is-game-pre-match","selected-team-data","rival-teams","team-selected","total-events","total-events-privileges-vr","is-privileges-vr-applicable"])])])]))}},[["__scopeId","data-v-f73a1d33"]]);var dq={exports:{}};(function(e,r){/*! For license information please see plotly.min.js.LICENSE.txt */(function(i,B){e.exports=B()})(self,function(){return function(){var i={6713:function(c,m,a){var v=a(34809),f={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var n in f){var y=n.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");v.addStyleRule(y,f[n])}},14187:function(c,m,a){c.exports=a(47908)},20273:function(c,m,a){c.exports=a(58218)},6457:function(c,m,a){c.exports=a(89362)},15849:function(c,m,a){c.exports=a(53794)},38847:function(c,m,a){c.exports=a(29698)},7659:function(c,m,a){c.exports=a(51252)},60089:function(c,m,a){c.exports=a(48050)},22084:function(c,m,a){c.exports=a(58075)},35892:function(c,m,a){c.exports=a(9419)},81204:function(c,m,a){c.exports=a(28128)},55857:function(c,m,a){c.exports=a(47050)},12862:function(c,m,a){c.exports=a(91405)},97629:function(c,m,a){c.exports=a(34406)},67549:function(c,m,a){c.exports=a(17430)},2660:function(c,m,a){c.exports=a(91995)},86071:function(c,m,a){c.exports=a(81264)},66200:function(c,m,a){c.exports=a(42849)},53446:function(c,m,a){c.exports=a(52213)},86899:function(c,m,a){c.exports=a(91132)},13430:function(c,m,a){c.exports=a(50453)},21548:function(c,m,a){c.exports=a(29251)},53939:function(c,m,a){c.exports=a(72892)},1902:function(c,m,a){c.exports=a(74461)},29096:function(c,m,a){c.exports=a(66143)},23820:function(c,m,a){c.exports=a(81955)},82017:function(c,m,a){c.exports=a(36858)},113:function(c,m,a){c.exports=a(92106)},20260:function(c,m,a){var v=a(67549);v.register([a(20273),a(15849),a(21548),a(1902),a(29096),a(23820),a(12862),a(1639),a(10067),a(53446),a(31014),a(113),a(78170),a(8202),a(92382),a(82017),a(86899),a(54357),a(66903),a(90594),a(71680),a(7412),a(55857),a(784),a(74221),a(22084),a(44001),a(97281),a(12345),a(53939),a(29117),a(5410),a(5057),a(81204),a(86071),a(14226),a(35892),a(2660),a(96599),a(28573),a(76832),a(60089),a(51469),a(97629),a(27700),a(7659),a(11780),a(27195),a(6457),a(84639),a(14187),a(66200),a(13430),a(90590),a(38847)]),c.exports=v},28573:function(c,m,a){c.exports=a(25638)},90594:function(c,m,a){c.exports=a(75297)},7412:function(c,m,a){c.exports=a(58859)},27700:function(c,m,a){c.exports=a(12683)},5410:function(c,m,a){c.exports=a(6305)},29117:function(c,m,a){c.exports=a(83910)},78170:function(c,m,a){c.exports=a(49913)},12345:function(c,m,a){c.exports=a(15186)},96599:function(c,m,a){c.exports=a(71760)},54357:function(c,m,a){c.exports=a(17822)},51469:function(c,m,a){c.exports=a(56534)},74221:function(c,m,a){c.exports=a(18070)},44001:function(c,m,a){c.exports=a(52378)},14226:function(c,m,a){c.exports=a(30929)},5057:function(c,m,a){c.exports=a(83866)},11780:function(c,m,a){c.exports=a(66939)},27195:function(c,m,a){c.exports=a(23748)},84639:function(c,m,a){c.exports=a(73304)},1639:function(c,m,a){c.exports=a(12864)},90590:function(c,m,a){c.exports=a(99855)},97281:function(c,m,a){c.exports=a(91450)},784:function(c,m,a){c.exports=a(51943)},8202:function(c,m,a){c.exports=a(80809)},66903:function(c,m,a){c.exports=a(95984)},76832:function(c,m,a){c.exports=a(51671)},92382:function(c,m,a){c.exports=a(47181)},10067:function(c,m,a){c.exports=a(37276)},71680:function(c,m,a){c.exports=a(75703)},31014:function(c,m,a){c.exports=a(38261)},11645:function(c){c.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50222:function(c,m,a){var v=a(11645),f=a(80337),n=a(54826),y=a(78032).templatedArray;a(35081),c.exports=y("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:v.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:v.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",n.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",n.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",n.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",n.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:f({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},60317:function(c,m,a){var v=a(34809),f=a(29714),n=a(3377).draw;function y(p){var l=p._fullLayout;v.filterVisible(l.annotations).forEach(function(o){var s=f.getFromId(p,o.xref),u=f.getFromId(p,o.yref),d=f.getRefType(o.xref),h=f.getRefType(o.yref);o._extremes={},d==="range"&&_(o,s),h==="range"&&_(o,u)})}function _(p,l){var o,s=l._id,u=s.charAt(0),d=p[u],h=p["a"+u],g=p[u+"ref"],b=p["a"+u+"ref"],w=p["_"+u+"padplus"],x=p["_"+u+"padminus"],S={x:1,y:-1}[u]*p[u+"shift"],k=3*p.arrowsize*p.arrowwidth||0,T=k+S,C=k-S,A=3*p.startarrowsize*p.arrowwidth||0,E=A+S,M=A-S;if(b===g){var I=f.findExtremes(l,[l.r2c(d)],{ppadplus:T,ppadminus:C}),N=f.findExtremes(l,[l.r2c(h)],{ppadplus:Math.max(w,E),ppadminus:Math.max(x,M)});o={min:[I.min[0],N.min[0]],max:[I.max[0],N.max[0]]}}else E=h?E+h:E,M=h?M-h:M,o=f.findExtremes(l,[l.r2c(d)],{ppadplus:Math.max(w,T,E),ppadminus:Math.max(x,C,M)});p._extremes[s]=o}c.exports=function(p){var l=p._fullLayout;if(v.filterVisible(l.annotations).length&&p._fullData.length)return v.syncOrAsync([n,y],p)}},6035:function(c,m,a){var v=a(34809),f=a(33626),n=a(78032).arrayEditor;function y(p,l){var o,s,u,d,h,g,b,w=p._fullLayout.annotations,x=[],S=[],k=[],T=(l||[]).length;for(o=0;o<w.length;o++)if(d=(u=w[o]).clicktoshow){for(s=0;s<T;s++)if(g=(h=l[s]).xaxis,b=h.yaxis,g._id===u.xref&&b._id===u.yref&&g.d2r(h.x)===_(u._xclick,g)&&b.d2r(h.y)===_(u._yclick,b)){(u.visible?d==="onout"?S:k:x).push(o);break}s===T&&u.visible&&d==="onout"&&S.push(o)}return{on:x,off:S,explicitOff:k}}function _(p,l){return l.type==="log"?l.l2r(p):l.d2r(p)}c.exports={hasClickToShow:function(p,l){var o=y(p,l);return o.on.length>0||o.explicitOff.length>0},onClick:function(p,l){var o,s,u=y(p,l),d=u.on,h=u.off.concat(u.explicitOff),g={},b=p._fullLayout.annotations;if(d.length||h.length){for(o=0;o<d.length;o++)(s=n(p.layout,"annotations",b[d[o]])).modifyItem("visible",!0),v.extendFlat(g,s.getUpdateObj());for(o=0;o<h.length;o++)(s=n(p.layout,"annotations",b[h[o]])).modifyItem("visible",!1),v.extendFlat(g,s.getUpdateObj());return f.call("update",p,{},g)}}}},53271:function(c,m,a){var v=a(34809),f=a(78766);c.exports=function(n,y,_,p){p("opacity");var l=p("bgcolor"),o=p("bordercolor"),s=f.opacity(o);p("borderpad");var u=p("borderwidth"),d=p("showarrow");if(p("text",d?" ":_._dfltTitle.annotation),p("textangle"),v.coerceFont(p,"font",_.font),p("width"),p("align"),p("height")&&p("valign"),d){var h,g,b=p("arrowside");b.indexOf("end")!==-1&&(h=p("arrowhead"),g=p("arrowsize")),b.indexOf("start")!==-1&&(p("startarrowhead",h),p("startarrowsize",g)),p("arrowcolor",s?y.bordercolor:f.defaultLine),p("arrowwidth",2*(s&&u||1)),p("standoff"),p("startstandoff")}var w=p("hovertext"),x=_.hoverlabel||{};if(w){var S=p("hoverlabel.bgcolor",x.bgcolor||(f.opacity(l)?f.rgb(l):f.defaultLine)),k=p("hoverlabel.bordercolor",x.bordercolor||f.contrast(S)),T=v.extendFlat({},x.font);T.color||(T.color=k),v.coerceFont(p,"hoverlabel.font",T)}p("captureevents",!!w)}},59741:function(c,m,a){var v=a(10721),f=a(8083);c.exports=function(n,y,_,p){y=y||{};var l=_==="log"&&y.type==="linear",o=_==="linear"&&y.type==="log";if(l||o)for(var s,u,d=n._fullLayout.annotations,h=y._id.charAt(0),g=0;g<d.length;g++)s=d[g],u="annotations["+g+"].",s[h+"ref"]===y._id&&b(h),s["a"+h+"ref"]===y._id&&b("a"+h);function b(w){var x=s[w],S=null;S=l?f(x,y.range):Math.pow(10,x),v(S)||(S=null),p(u+w,S)}}},63737:function(c,m,a){var v=a(34809),f=a(29714),n=a(59008),y=a(53271),_=a(50222);function p(l,o,s){function u(N,z){return v.coerce(l,o,_,N,z)}var d=u("visible"),h=u("clicktoshow");if(d||h){y(l,o,s,u);for(var g=o.showarrow,b=["x","y"],w=[-10,-30],x={_fullLayout:s},S=0;S<2;S++){var k=b[S],T=f.coerceRef(l,o,x,k,"","paper");if(T!=="paper"&&f.getFromId(x,T)._annIndices.push(o._index),f.coercePosition(o,x,u,T,k,.5),g){var C="a"+k,A=f.coerceRef(l,o,x,C,"pixel",["pixel","paper"]);A!=="pixel"&&A!==T&&(A=o[C]="pixel");var E=A==="pixel"?w[S]:.4;f.coercePosition(o,x,u,A,C,E)}u(k+"anchor"),u(k+"shift")}if(v.noneOrAll(l,o,["x","y"]),g&&v.noneOrAll(l,o,["ax","ay"]),h){var M=u("xclick"),I=u("yclick");o._xclick=M===void 0?o.x:f.cleanPosition(M,x,o.xref),o._yclick=I===void 0?o.y:f.cleanPosition(I,x,o.yref)}}}c.exports=function(l,o){n(l,o,{name:"annotations",handleItemDefaults:p})}},3377:function(c,m,a){var v=a(45568),f=a(33626),n=a(44122),y=a(34809),_=y.strTranslate,p=a(29714),l=a(78766),o=a(62203),s=a(32141),u=a(30635),d=a(27983),h=a(14751),g=a(78032).arrayEditor,b=a(23768);function w(k,T){var C=k._fullLayout.annotations[T]||{},A=p.getFromId(k,C.xref),E=p.getFromId(k,C.yref);A&&A.setScale(),E&&E.setScale(),S(k,C,T,!1,A,E)}function x(k,T,C,A,E){var M=E[C],I=E[C+"ref"],N=C.indexOf("y")!==-1,z=p.getRefType(I)==="domain",F=N?A.h:A.w;return k?z?M+(N?-T:T)/k._length:k.p2r(k.r2p(M)+T):M+(N?-T:T)/F}function S(k,T,C,A,E,M){var I,N,z=k._fullLayout,F=k._fullLayout._size,R=k._context.edits;A?(I="annotation-"+A,N=A+".annotations"):(I="annotation",N="annotations");var V=g(k.layout,N,T),$=V.modifyBase,U=V.modifyItem,Z=V.getUpdateObj;z._infolayer.selectAll("."+I+'[data-index="'+C+'"]').remove();var q="clip"+z._uid+"_ann"+C;if(T._input&&T.visible!==!1){var W={x:{},y:{}},Q=+T.textangle||0,X=z._infolayer.append("g").classed(I,!0).attr("data-index",String(C)).style("opacity",T.opacity),J=X.append("g").classed("annotation-text-g",!0),ee=R[T.showarrow?"annotationTail":"annotationPosition"],le=T.captureevents||R.annotationText||ee,oe=J.append("g").style("pointer-events",le?"all":null).call(d,"pointer").on("click",function(){k._dragging=!1,k.emit("plotly_clickannotation",_e(v.event))});T.hovertext&&oe.on("mouseover",function(){var Ee=T.hoverlabel,Pe=Ee.font,$e=this.getBoundingClientRect(),Te=k.getBoundingClientRect();s.loneHover({x0:$e.left-Te.left,x1:$e.right-Te.left,y:($e.top+$e.bottom)/2-Te.top,text:T.hovertext,color:Ee.bgcolor,borderColor:Ee.bordercolor,fontFamily:Pe.family,fontSize:Pe.size,fontColor:Pe.color,fontWeight:Pe.weight,fontStyle:Pe.style,fontVariant:Pe.variant,fontShadow:Pe.fontShadow,fontLineposition:Pe.fontLineposition,fontTextcase:Pe.fontTextcase},{container:z._hoverlayer.node(),outerContainer:z._paper.node(),gd:k})}).on("mouseout",function(){s.loneUnhover(z._hoverlayer.node())});var se=T.borderwidth,ce=T.borderpad,ae=se+ce,ne=oe.append("rect").attr("class","bg").style("stroke-width",se+"px").call(l.stroke,T.bordercolor).call(l.fill,T.bgcolor),ie=T.width||T.height,ue=z._topclips.selectAll("#"+q).data(ie?[0]:[]);ue.enter().append("clipPath").classed("annclip",!0).attr("id",q).append("rect"),ue.exit().remove();var he=T.font,pe=z._meta?y.templateString(T.text,z._meta):T.text,me=oe.append("text").classed("annotation-text",!0).text(pe);R.annotationText?me.call(u.makeEditable,{delegate:oe,gd:k}).call(xe).on("edit",function(Ee){T.text=Ee,this.call(xe),U("text",Ee),E&&E.autorange&&$(E._name+".autorange",!0),M&&M.autorange&&$(M._name+".autorange",!0),f.call("_guiRelayout",k,Z())}):me.call(xe)}else v.selectAll("#"+q).remove();function _e(Ee){var Pe={index:C,annotation:T._input,fullAnnotation:T,event:Ee};return A&&(Pe.subplotId=A),Pe}function xe(Ee){return Ee.call(o.font,he).attr({"text-anchor":{left:"start",right:"end"}[T.align]||"middle"}),u.convertToTspans(Ee,k,we),Ee}function we(){var Ee=me.selectAll("a");Ee.size()===1&&Ee.text()===me.text()&&oe.insert("a",":first-child").attr({"xlink:xlink:href":Ee.attr("xlink:href"),"xlink:xlink:show":Ee.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(ne.node());var Pe=oe.select(".annotation-text-math-group"),$e=!Pe.empty(),Te=o.bBox(($e?Pe:me).node()),Ce=Te.width,ye=Te.height,ge=T.width||Ce,Me=T.height||ye,Se=Math.round(ge+2*ae),ze=Math.round(Me+2*ae);function Fe(Ct,gt){return gt==="auto"&&(gt=Ct<.3333333333333333?"left":Ct>.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[gt]}for(var De=!1,Ue=["x","y"],Ne=0;Ne<Ue.length;Ne++){var ke,Oe,Re,je,Ze,Ye=Ue[Ne],it=T[Ye+"ref"]||Ye,dt=T["a"+Ye+"ref"],ut={x:E,y:M}[Ye],It=(Q+(Ye==="x"?0:-90))*Math.PI/180,Ot=Se*Math.cos(It),Ft=ze*Math.sin(It),ot=Math.abs(Ot)+Math.abs(Ft),tt=T[Ye+"anchor"],vt=T[Ye+"shift"]*(Ye==="x"?1:-1),At=W[Ye],Dt=p.getRefType(it);if(ut&&Dt!=="domain"){var Pt=ut.r2fraction(T[Ye]);(Pt<0||Pt>1)&&(dt===it?((Pt=ut.r2fraction(T["a"+Ye]))<0||Pt>1)&&(De=!0):De=!0),ke=ut._offset+ut.r2p(T[Ye]),je=.5}else{var et=Dt==="domain";Ye==="x"?(Re=T[Ye],ke=et?ut._offset+ut._length*Re:ke=F.l+F.w*Re):(Re=1-T[Ye],ke=et?ut._offset+ut._length*Re:ke=F.t+F.h*Re),je=T.showarrow?.5:Re}if(T.showarrow){At.head=ke;var rt=T["a"+Ye];if(Ze=Ot*Fe(.5,T.xanchor)-Ft*Fe(.5,T.yanchor),dt===it){var We=p.getRefType(dt);We==="domain"?(Ye==="y"&&(rt=1-rt),At.tail=ut._offset+ut._length*rt):We==="paper"?Ye==="y"?(rt=1-rt,At.tail=F.t+F.h*rt):At.tail=F.l+F.w*rt:At.tail=ut._offset+ut.r2p(rt),Oe=Ze}else At.tail=ke+rt,Oe=Ze+rt;At.text=At.tail+Ze;var nt=z[Ye==="x"?"width":"height"];if(it==="paper"&&(At.head=y.constrain(At.head,1,nt-1)),dt==="pixel"){var _t=-Math.max(At.tail-3,At.text),mt=Math.min(At.tail+3,At.text)-nt;_t>0?(At.tail+=_t,At.text+=_t):mt>0&&(At.tail-=mt,At.text-=mt)}At.tail+=vt,At.head+=vt}else Oe=Ze=ot*Fe(je,tt),At.text=ke+Ze;At.text+=vt,Ze+=vt,Oe+=vt,T["_"+Ye+"padplus"]=ot/2+Oe,T["_"+Ye+"padminus"]=ot/2-Oe,T["_"+Ye+"size"]=ot,T["_"+Ye+"shift"]=Ze}if(De)oe.remove();else{var St=0,Bt=0;if(T.align!=="left"&&(St=(ge-Ce)*(T.align==="center"?.5:1)),T.valign!=="top"&&(Bt=(Me-ye)*(T.valign==="middle"?.5:1)),$e)Pe.select("svg").attr({x:ae+St-1,y:ae+Bt}).call(o.setClipUrl,ie?q:null,k);else{var Je=ae+Bt-Te.top,Xe=ae+St-Te.left;me.call(u.positionText,Xe,Je).call(o.setClipUrl,ie?q:null,k)}ue.select("rect").call(o.setRect,ae,ae,ge,Me),ne.call(o.setRect,se/2,se/2,Se-se,ze-se),oe.call(o.setTranslate,Math.round(W.x.text-Se/2),Math.round(W.y.text-ze/2)),J.attr({transform:"rotate("+Q+","+W.x.text+","+W.y.text+")"});var yt,Et=function(Ct,gt){X.selectAll(".annotation-arrow-g").remove();var $t=W.x.head,Lt=W.y.head,jt=W.x.tail+Ct,Rt=W.y.tail+gt,Vt=W.x.text+Ct,Qt=W.y.text+gt,ta=y.rotationXYMatrix(Q,Vt,Qt),_a=y.apply2DTransform(ta),ka=y.apply2DTransform2(ta),va=+ne.attr("width"),ia=+ne.attr("height"),fa=Vt-.5*va,Da=fa+va,wa=Qt-.5*ia,da=wa+ia,Ea=[[fa,wa,fa,da],[fa,da,Da,da],[Da,da,Da,wa],[Da,wa,fa,wa]].map(ka);if(!Ea.reduce(function(hn,un){return hn^!!y.segmentsIntersect($t,Lt,$t+1e6,Lt+1e6,un[0],un[1],un[2],un[3])},!1)){Ea.forEach(function(hn){var un=y.segmentsIntersect(jt,Rt,$t,Lt,hn[0],hn[1],hn[2],hn[3]);un&&(jt=un.x,Rt=un.y)});var ua=T.arrowwidth,ba=T.arrowcolor,Ra=T.arrowside,Oa=X.append("g").style({opacity:l.opacity(ba)}).classed("annotation-arrow-g",!0),Ja=Oa.append("path").attr("d","M"+jt+","+Rt+"L"+$t+","+Lt).style("stroke-width",ua+"px").call(l.stroke,l.rgb(ba));if(b(Ja,Ra,T),R.annotationPosition&&Ja.node().parentNode&&!A){var Fa=$t,qa=Lt;if(T.standoff){var Ka=Math.sqrt(Math.pow($t-jt,2)+Math.pow(Lt-Rt,2));Fa+=T.standoff*(jt-$t)/Ka,qa+=T.standoff*(Rt-Lt)/Ka}var vn,zn,cn=Oa.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(jt-Fa)+","+(Rt-qa),transform:_(Fa,qa)}).style("stroke-width",ua+6+"px").call(l.stroke,"rgba(0,0,0,0)").call(l.fill,"rgba(0,0,0,0)");h.init({element:cn.node(),gd:k,prepFn:function(){var hn=o.getTranslate(oe);vn=hn.x,zn=hn.y,E&&E.autorange&&$(E._name+".autorange",!0),M&&M.autorange&&$(M._name+".autorange",!0)},moveFn:function(hn,un){var Bn=_a(vn,zn),ha=Bn[0]+hn,ma=Bn[1]+un;oe.call(o.setTranslate,ha,ma),U("x",x(E,hn,"x",F,T)),U("y",x(M,un,"y",F,T)),T.axref===T.xref&&U("ax",x(E,hn,"ax",F,T)),T.ayref===T.yref&&U("ay",x(M,un,"ay",F,T)),Oa.attr("transform",_(hn,un)),J.attr({transform:"rotate("+Q+","+ha+","+ma+")"})},doneFn:function(){f.call("_guiRelayout",k,Z());var hn=document.querySelector(".js-notes-box-panel");hn&&hn.redraw(hn.selectedObj)}})}}};T.showarrow&&Et(0,0),ee&&h.init({element:oe.node(),gd:k,prepFn:function(){yt=J.attr("transform")},moveFn:function(Ct,gt){var $t="pointer";if(T.showarrow)T.axref===T.xref?U("ax",x(E,Ct,"ax",F,T)):U("ax",T.ax+Ct),T.ayref===T.yref?U("ay",x(M,gt,"ay",F.w,T)):U("ay",T.ay+gt),Et(Ct,gt);else{if(A)return;var Lt,jt;if(E)Lt=x(E,Ct,"x",F,T);else{var Rt=T._xsize/F.w,Vt=T.x+(T._xshift-T.xshift)/F.w-Rt/2;Lt=h.align(Vt+Ct/F.w,Rt,0,1,T.xanchor)}if(M)jt=x(M,gt,"y",F,T);else{var Qt=T._ysize/F.h,ta=T.y-(T._yshift+T.yshift)/F.h-Qt/2;jt=h.align(ta-gt/F.h,Qt,0,1,T.yanchor)}U("x",Lt),U("y",jt),E&&M||($t=h.getCursor(E?.5:Lt,M?.5:jt,T.xanchor,T.yanchor))}J.attr({transform:_(Ct,gt)+yt}),d(oe,$t)},clickFn:function(Ct,gt){T.captureevents&&k.emit("plotly_clickannotation",_e(gt))},doneFn:function(){d(oe),f.call("_guiRelayout",k,Z());var Ct=document.querySelector(".js-notes-box-panel");Ct&&Ct.redraw(Ct.selectedObj)}})}}}c.exports={draw:function(k){var T=k._fullLayout;T._infolayer.selectAll(".annotation").remove();for(var C=0;C<T.annotations.length;C++)T.annotations[C].visible&&w(k,C);return n.previousPromises(k)},drawOne:w,drawRaw:S}},23768:function(c,m,a){var v=a(45568),f=a(78766),n=a(11645),y=a(34809),_=y.strScale,p=y.strRotate,l=y.strTranslate;c.exports=function(o,s,u){var d,h,g,b,w=o.node(),x=n[u.arrowhead||0],S=n[u.startarrowhead||0],k=(u.arrowwidth||1)*(u.arrowsize||1),T=(u.arrowwidth||1)*(u.startarrowsize||1),C=s.indexOf("start")>=0,A=s.indexOf("end")>=0,E=x.backoff*k+u.standoff,M=S.backoff*T+u.startstandoff;if(w.nodeName==="line"){d={x:+o.attr("x1"),y:+o.attr("y1")},h={x:+o.attr("x2"),y:+o.attr("y2")};var I=d.x-h.x,N=d.y-h.y;if(b=(g=Math.atan2(N,I))+Math.PI,E&&M&&E+M>Math.sqrt(I*I+N*N))return void X();if(E){if(E*E>I*I+N*N)return void X();var z=E*Math.cos(g),F=E*Math.sin(g);h.x+=z,h.y+=F,o.attr({x2:h.x,y2:h.y})}if(M){if(M*M>I*I+N*N)return void X();var R=M*Math.cos(g),V=M*Math.sin(g);d.x-=R,d.y-=V,o.attr({x1:d.x,y1:d.y})}}else if(w.nodeName==="path"){var $=w.getTotalLength(),U="";if($<E+M)return void X();var Z=w.getPointAtLength(0),q=w.getPointAtLength(.1);g=Math.atan2(Z.y-q.y,Z.x-q.x),d=w.getPointAtLength(Math.min(M,$)),U="0px,"+M+"px,";var W=w.getPointAtLength($),Q=w.getPointAtLength($-.1);b=Math.atan2(W.y-Q.y,W.x-Q.x),h=w.getPointAtLength(Math.max(0,$-E)),U+=$-(U?M+E:E)+"px,"+$+"px",o.style("stroke-dasharray",U)}function X(){o.style("stroke-dasharray","0px,100px")}function J(ee,le,oe,se){ee.path&&(ee.noRotate&&(oe=0),v.select(w.parentNode).append("path").attr({class:o.attr("class"),d:ee.path,transform:l(le.x,le.y)+p(180*oe/Math.PI)+_(se)}).style({fill:f.rgb(u.arrowcolor),"stroke-width":0}))}C&&J(S,d,g,T),A&&J(x,h,b,k)}},3599:function(c,m,a){var v=a(3377),f=a(6035);c.exports={moduleType:"component",name:"annotations",layoutAttributes:a(50222),supplyLayoutDefaults:a(63737),includeBasePlot:a(20706)("annotations"),calcAutorange:a(60317),draw:v.draw,drawOne:v.drawOne,drawRaw:v.drawRaw,hasClickToShow:f.hasClickToShow,onClick:f.onClick,convertCoords:a(59741)}},38239:function(c,m,a){var v=a(50222),f=a(13582).overrideAll,n=a(78032).templatedArray;c.exports=f(n("annotation",{visible:v.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:v.xanchor,xshift:v.xshift,yanchor:v.yanchor,yshift:v.yshift,text:v.text,textangle:v.textangle,font:v.font,width:v.width,height:v.height,opacity:v.opacity,align:v.align,valign:v.valign,bgcolor:v.bgcolor,bordercolor:v.bordercolor,borderpad:v.borderpad,borderwidth:v.borderwidth,showarrow:v.showarrow,arrowcolor:v.arrowcolor,arrowhead:v.arrowhead,startarrowhead:v.startarrowhead,arrowside:v.arrowside,arrowsize:v.arrowsize,startarrowsize:v.startarrowsize,arrowwidth:v.arrowwidth,standoff:v.standoff,startstandoff:v.startstandoff,hovertext:v.hovertext,hoverlabel:v.hoverlabel,captureevents:v.captureevents}),"calc","from-root")},47979:function(c,m,a){var v=a(34809),f=a(29714);function n(y,_){var p=_.fullSceneLayout.domain,l=_.fullLayout._size,o={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};y._xa={},v.extendFlat(y._xa,o),f.setConvert(y._xa),y._xa._offset=l.l+p.x[0]*l.w,y._xa.l2p=function(){return .5*(1+y._pdata[0]/y._pdata[3])*l.w*(p.x[1]-p.x[0])},y._ya={},v.extendFlat(y._ya,o),f.setConvert(y._ya),y._ya._offset=l.t+(1-p.y[1])*l.h,y._ya.l2p=function(){return .5*(1-y._pdata[1]/y._pdata[3])*l.h*(p.y[1]-p.y[0])}}c.exports=function(y){for(var _=y.fullSceneLayout.annotations,p=0;p<_.length;p++)n(_[p],y);y.fullLayout._infolayer.selectAll(".annotation-"+y.id).remove()}},34232:function(c,m,a){var v=a(34809),f=a(29714),n=a(59008),y=a(53271),_=a(38239);function p(l,o,s,u){function d(g,b){return v.coerce(l,o,_,g,b)}function h(g){var b=g+"axis",w={_fullLayout:{}};return w._fullLayout[b]=s[b],f.coercePosition(o,w,d,g,g,.5)}d("visible")&&(y(l,o,u.fullLayout,d),h("x"),h("y"),h("z"),v.noneOrAll(l,o,["x","y","z"]),o.xref="x",o.yref="y",o.zref="z",d("xanchor"),d("yanchor"),d("xshift"),d("yshift"),o.showarrow&&(o.axref="pixel",o.ayref="pixel",d("ax",-10),d("ay",-30),v.noneOrAll(l,o,["ax","ay"])))}c.exports=function(l,o,s){n(l,o,{name:"annotations",handleItemDefaults:p,fullLayout:s.fullLayout})}},9756:function(c,m,a){var v=a(3377).drawRaw,f=a(25802),n=["x","y","z"];c.exports=function(y){for(var _=y.fullSceneLayout,p=y.dataScale,l=_.annotations,o=0;o<l.length;o++){for(var s=l[o],u=!1,d=0;d<3;d++){var h=n[d],g=s[h],b=_[h+"axis"].r2fraction(g);if(b<0||b>1){u=!0;break}}u?y.fullLayout._infolayer.select(".annotation-"+y.id+'[data-index="'+o+'"]').remove():(s._pdata=f(y.glplot.cameraParams,[_.xaxis.r2l(s.x)*p[0],_.yaxis.r2l(s.y)*p[1],_.zaxis.r2l(s.z)*p[2]]),v(y.graphDiv,s,o,y.id,s._xa,s._ya))}}},83348:function(c,m,a){var v=a(33626),f=a(34809);c.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:a(38239)}}},layoutAttributes:a(38239),handleDefaults:a(34232),includeBasePlot:function(n,y){var _=v.subplotsRegistry.gl3d;if(_)for(var p=_.attrRegex,l=Object.keys(n),o=0;o<l.length;o++){var s=l[o];p.test(s)&&(n[s].annotations||[]).length&&(f.pushUnique(y._basePlotModules,_),f.pushUnique(y._subplots.gl3d,s))}},convert:a(47979),draw:a(9756)}},37177:function(c,m,a){c.exports=a(24453),a(23428),a(1401),a(72210),a(28569),a(81133),a(78295),a(25512),a(42645),a(62324),a(91662),a(66445),a(50506),a(84756),a(41858),a(57985)},29698:function(c,m,a){var v=a(37177),f=a(34809),n=a(63821),y=n.EPOCHJD,_=n.ONEDAY,p={valType:"enumerated",values:f.sortObjectKeys(v.calendars),editType:"calc",dflt:"gregorian"},l=function(k,T,C,A){var E={};return E[C]=p,f.coerce(k,T,E,C,A)},o="##",s={d:{0:"dd","-":"d"},e:{0:"d","-":"d"},a:{0:"D","-":"D"},A:{0:"DD","-":"DD"},j:{0:"oo","-":"o"},W:{0:"ww","-":"w"},m:{0:"mm","-":"m"},b:{0:"M","-":"M"},B:{0:"MM","-":"MM"},y:{0:"yy","-":"yy"},Y:{0:"yyyy","-":"yyyy"},U:o,w:o,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}},u={};function d(k){var T=u[k];return T||(u[k]=v.instance(k))}function h(k){return f.extendFlat({},p,{description:k})}function g(k){return"Sets the calendar system to use with `"+k+"` date data."}var b={xcalendar:h(g("x"))},w=f.extendFlat({},b,{ycalendar:h(g("y"))}),x=f.extendFlat({},w,{zcalendar:h(g("z"))}),S=h(["Sets the calendar system to use for `range` and `tick0`","if this is a date axis. This does not set the calendar for","interpreting data on this axis, that's specified in the trace","or via the global `layout.calendar`"].join(" "));c.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:w,bar:w,box:w,heatmap:w,contour:w,histogram:w,histogram2d:w,histogram2dcontour:w,scatter3d:x,surface:x,mesh3d:x,scattergl:w,ohlc:b,candlestick:b},layout:{calendar:h(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:S},yaxis:{calendar:S},scene:{xaxis:{calendar:S},yaxis:{calendar:S},zaxis:{calendar:S}},polar:{radialaxis:{calendar:S}}},transforms:{filter:{valuecalendar:h(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `value`, if it is a date."].join(" ")),targetcalendar:h(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `target`, if it is an","array of dates. If `target` is a string (eg *x*) we use the","corresponding trace attribute (eg `xcalendar`) if it exists,","even if `targetcalendar` is provided."].join(" "))}}},layoutAttributes:p,handleDefaults:l,handleTraceDefaults:function(k,T,C,A){for(var E=0;E<C.length;E++)l(k,T,C[E]+"calendar",A.calendar)},CANONICAL_SUNDAY:{chinese:"2000-01-02",coptic:"2000-01-03",discworld:"2000-01-03",ethiopian:"2000-01-05",hebrew:"5000-01-01",islamic:"1000-01-02",julian:"2000-01-03",mayan:"5000-01-01",nanakshahi:"1000-01-05",nepali:"2000-01-05",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-04",thai:"2000-01-04",ummalqura:"1400-01-06"},CANONICAL_TICK:{chinese:"2000-01-01",coptic:"2000-01-01",discworld:"2000-01-01",ethiopian:"2000-01-01",hebrew:"5000-01-01",islamic:"1000-01-01",julian:"2000-01-01",mayan:"5000-01-01",nanakshahi:"1000-01-01",nepali:"2000-01-01",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-01",thai:"2000-01-01",ummalqura:"1400-01-01"},DFLTRANGE:{chinese:["2000-01-01","2001-01-01"],coptic:["1700-01-01","1701-01-01"],discworld:["1800-01-01","1801-01-01"],ethiopian:["2000-01-01","2001-01-01"],hebrew:["5700-01-01","5701-01-01"],islamic:["1400-01-01","1401-01-01"],julian:["2000-01-01","2001-01-01"],mayan:["5200-01-01","5201-01-01"],nanakshahi:["0500-01-01","0501-01-01"],nepali:["2000-01-01","2001-01-01"],persian:["1400-01-01","1401-01-01"],jalali:["1400-01-01","1401-01-01"],taiwan:["0100-01-01","0101-01-01"],thai:["2500-01-01","2501-01-01"],ummalqura:["1400-01-01","1401-01-01"]},getCal:d,worldCalFmt:function(k,T,C){for(var A,E,M,I,N,z=Math.floor((T+.05)/_)+y,F=d(C).fromJD(z),R=0;(R=k.indexOf("%",R))!==-1;)(A=k.charAt(R+1))==="0"||A==="-"||A==="_"?(M=3,E=k.charAt(R+2),A==="_"&&(A="-")):(E=A,A="0",M=2),(I=s[E])?(N=I===o?o:F.formatDate(I[A]),k=k.substr(0,R)+N+k.substr(R+M),R+=N.length):R+=M;return k}}},10229:function(c,m){m.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],m.defaultLine="#444",m.lightLine="#eee",m.background="#fff",m.borderLine="#BEC8D9",m.lightFraction=90.9090909090909},78766:function(c,m,a){var v=a(65657),f=a(10721),n=a(87800).isTypedArray,y=c.exports={},_=a(10229);y.defaults=_.defaults;var p=y.defaultLine=_.defaultLine;y.lightLine=_.lightLine;var l=y.background=_.background;function o(s){if(f(s)||typeof s!="string")return s;var u=s.trim();if(u.substr(0,3)!=="rgb")return s;var d=u.match(/^rgba?\s*\(([^()]*)\)$/);if(!d)return s;var h=d[1].trim().split(/\s*[\s,]\s*/),g=u.charAt(3)==="a"&&h.length===4;if(!g&&h.length!==3)return s;for(var b=0;b<h.length;b++){if(!h[b].length||(h[b]=Number(h[b]),!(h[b]>=0)))return s;if(b===3)h[b]>1&&(h[b]=1);else if(h[b]>=1)return s}var w=Math.round(255*h[0])+", "+Math.round(255*h[1])+", "+Math.round(255*h[2]);return g?"rgba("+w+", "+h[3]+")":"rgb("+w+")"}y.tinyRGB=function(s){var u=s.toRgb();return"rgb("+Math.round(u.r)+", "+Math.round(u.g)+", "+Math.round(u.b)+")"},y.rgb=function(s){return y.tinyRGB(v(s))},y.opacity=function(s){return s?v(s).getAlpha():0},y.addOpacity=function(s,u){var d=v(s).toRgb();return"rgba("+Math.round(d.r)+", "+Math.round(d.g)+", "+Math.round(d.b)+", "+u+")"},y.combine=function(s,u){var d=v(s).toRgb();if(d.a===1)return v(s).toRgbString();var h=v(u||l).toRgb(),g=h.a===1?h:{r:255*(1-h.a)+h.r*h.a,g:255*(1-h.a)+h.g*h.a,b:255*(1-h.a)+h.b*h.a},b={r:g.r*(1-d.a)+d.r*d.a,g:g.g*(1-d.a)+d.g*d.a,b:g.b*(1-d.a)+d.b*d.a};return v(b).toRgbString()},y.interpolate=function(s,u,d){var h=v(s).toRgb(),g=v(u).toRgb(),b={r:d*h.r+(1-d)*g.r,g:d*h.g+(1-d)*g.g,b:d*h.b+(1-d)*g.b};return v(b).toRgbString()},y.contrast=function(s,u,d){var h=v(s);return h.getAlpha()!==1&&(h=v(y.combine(s,l))),(h.isDark()?u?h.lighten(u):l:d?h.darken(d):p).toString()},y.stroke=function(s,u){var d=v(u);s.style({stroke:y.tinyRGB(d),"stroke-opacity":d.getAlpha()})},y.fill=function(s,u){var d=v(u);s.style({fill:y.tinyRGB(d),"fill-opacity":d.getAlpha()})},y.clean=function(s){if(s&&typeof s=="object"){var u,d,h,g,b=Object.keys(s);for(u=0;u<b.length;u++)if(g=s[h=b[u]],h.substr(h.length-5)==="color")if(Array.isArray(g))for(d=0;d<g.length;d++)g[d]=o(g[d]);else s[h]=o(g);else if(h.substr(h.length-10)==="colorscale"&&Array.isArray(g))for(d=0;d<g.length;d++)Array.isArray(g[d])&&(g[d][1]=o(g[d][1]));else if(Array.isArray(g)){var w=g[0];if(!Array.isArray(w)&&w&&typeof w=="object")for(d=0;d<g.length;d++)y.clean(g[d])}else g&&typeof g=="object"&&!n(g)&&y.clean(g)}}},25158:function(c,m,a){var v=a(25829),f=a(80337),n=a(93049).extendFlat,y=a(13582).overrideAll;c.exports=y({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:v.linecolor,outlinewidth:v.linewidth,bordercolor:v.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:v.minor.tickmode,nticks:v.nticks,tick0:v.tick0,dtick:v.dtick,tickvals:v.tickvals,ticktext:v.ticktext,ticks:n({},v.ticks,{dflt:""}),ticklabeloverflow:n({},v.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:v.ticklen,tickwidth:v.tickwidth,tickcolor:v.tickcolor,ticklabelstep:v.ticklabelstep,showticklabels:v.showticklabels,labelalias:v.labelalias,tickfont:f({}),tickangle:v.tickangle,tickformat:v.tickformat,tickformatstops:v.tickformatstops,tickprefix:v.tickprefix,showtickprefix:v.showtickprefix,ticksuffix:v.ticksuffix,showticksuffix:v.showticksuffix,separatethousands:v.separatethousands,exponentformat:v.exponentformat,minexponent:v.minexponent,showexponent:v.showexponent,title:{text:{valType:"string"},font:f({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:f({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},34554:function(c){c.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},42097:function(c,m,a){var v=a(34809),f=a(78032),n=a(22777),y=a(87433),_=a(12036),p=a(54616),l=a(25158);c.exports=function(o,s,u){var d=f.newContainer(s,"colorbar"),h=o.colorbar||{};function g(U,Z){return v.coerce(h,d,l,U,Z)}var b=u.margin||{t:0,b:0,l:0,r:0},w=u.width-b.l-b.r,x=u.height-b.t-b.b,S=g("orientation")==="v",k=g("thicknessmode");g("thickness",k==="fraction"?30/(S?w:x):30);var T=g("lenmode");g("len",T==="fraction"?1:S?x:w);var C,A,E,M=g("yref")==="paper",I=g("xref")==="paper",N="left";S?(E="middle",N=I?"left":"right",C=I?1.02:1,A=.5):(E=M?"bottom":"top",N="center",C=.5,A=M?1.02:1),v.coerce(h,d,{x:{valType:"number",min:I?-2:0,max:I?3:1,dflt:C}},"x"),v.coerce(h,d,{y:{valType:"number",min:M?-2:0,max:M?3:1,dflt:A}},"y"),g("xanchor",N),g("xpad"),g("yanchor",E),g("ypad"),v.noneOrAll(h,d,["x","y"]),g("outlinecolor"),g("outlinewidth"),g("bordercolor"),g("borderwidth"),g("bgcolor");var z=v.coerce(h,d,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:S?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");g("ticklabeloverflow",z.indexOf("inside")!==-1?"hide past domain":"hide past div"),n(h,d,g,"linear");var F=u.font,R={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:F};z.indexOf("inside")!==-1&&(R.bgColor="black"),p(h,d,g,"linear",R),_(h,d,g,"linear",R),y(h,d,g,"linear",R),g("title.text",u._dfltTitle.colorbar);var V=d.showticklabels?d.tickfont:F,$=v.extendFlat({},F,{family:V.family,size:v.bigFont(V.size)});v.coerceFont(g,"title.font",$),g("title.side",S?"top":"right")}},5881:function(c,m,a){var v=a(45568),f=a(65657),n=a(44122),y=a(33626),_=a(29714),p=a(14751),l=a(34809),o=l.strTranslate,s=a(93049).extendFlat,u=a(27983),d=a(62203),h=a(78766),g=a(17240),b=a(30635),w=a(65477).flipScale,x=a(97655),S=a(40957),k=a(25829),T=a(4530),C=T.LINE_SPACING,A=T.FROM_TL,E=T.FROM_BR,M=a(34554).cn;c.exports={draw:function(I){var N=I._fullLayout._infolayer.selectAll("g."+M.colorbar).data(function(z){var F,R,V,$,U=z._fullLayout,Z=z.calcdata,q=[];function W(ie){return s(ie,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function Q(){typeof $.calc=="function"?$.calc(z,V,F):(F._fillgradient=R.reversescale?w(R.colorscale):R.colorscale,F._zrange=[R[$.min],R[$.max]])}for(var X=0;X<Z.length;X++){var J=Z[X];if((V=J[0].trace)._module){var ee=V._module.colorbar;if(V.visible===!0&&ee)for(var le=Array.isArray(ee),oe=le?ee:[ee],se=0;se<oe.length;se++){var ce=($=oe[se]).container;(R=ce?V[ce]:V)&&R.showscale&&((F=W(R.colorbar))._id="cb"+V.uid+(le&&ce?"-"+ce:""),F._traceIndex=V.index,F._propPrefix=(ce?ce+".":"")+"colorbar.",F._meta=V._meta,Q(),q.push(F))}}}for(var ae in U._colorAxes)if((R=U[ae]).showscale){var ne=U._colorAxes[ae];(F=W(R.colorbar))._id="cb"+ae,F._propPrefix=ae+".colorbar.",F._meta=U._meta,$={min:"cmin",max:"cmax"},ne[0]!=="heatmap"&&(V=ne[1],$.calc=V._module.colorbar.calc),Q(),q.push(F)}return q}(I),function(z){return z._id});N.enter().append("g").attr("class",function(z){return z._id}).classed(M.colorbar,!0),N.each(function(z){var F=v.select(this);l.ensureSingle(F,"rect",M.cbbg),l.ensureSingle(F,"g",M.cbfills),l.ensureSingle(F,"g",M.cblines),l.ensureSingle(F,"g",M.cbaxis,function(V){V.classed(M.crisp,!0)}),l.ensureSingle(F,"g",M.cbtitleunshift,function(V){V.append("g").classed(M.cbtitle,!0)}),l.ensureSingle(F,"rect",M.cboutline);var R=function(V,$,U){var Z=$.orientation==="v",q=$.len,W=$.lenmode,Q=$.thickness,X=$.thicknessmode,J=$.outlinewidth,ee=$.borderwidth,le=$.bgcolor,oe=$.xanchor,se=$.yanchor,ce=$.xpad,ae=$.ypad,ne=$.x,ie=Z?$.y:1-$.y,ue=$.yref==="paper",he=$.xref==="paper",pe=U._fullLayout,me=pe._size,_e=$._fillcolor,xe=$._line,we=$.title,Ee=we.side,Pe=$._zrange||v.extent((typeof _e=="function"?_e:xe.color).domain()),$e=typeof xe.color=="function"?xe.color:function(){return xe.color},Te=typeof _e=="function"?_e:function(){return _e},Ce=$._levels,ye=function(We,nt,_t){var mt,St,Bt=nt._levels,Je=[],Xe=[],yt=Bt.end+Bt.size/100,Et=Bt.size,Ct=1.001*_t[0]-.001*_t[1],gt=1.001*_t[1]-.001*_t[0];for(St=0;St<1e5&&(mt=Bt.start+St*Et,!(Et>0?mt>=yt:mt<=yt));St++)mt>Ct&&mt<gt&&Je.push(mt);if(nt._fillgradient)Xe=[0];else if(typeof nt._fillcolor=="function"){var $t=nt._filllevels;if($t)for(yt=$t.end+$t.size/100,Et=$t.size,St=0;St<1e5&&(mt=$t.start+St*Et,!(Et>0?mt>=yt:mt<=yt));St++)mt>_t[0]&&mt<_t[1]&&Xe.push(mt);else(Xe=Je.map(function(Lt){return Lt-Bt.size/2})).push(Xe[Xe.length-1]+Bt.size)}else nt._fillcolor&&typeof nt._fillcolor=="string"&&(Xe=[0]);return Bt.size<0&&(Je.reverse(),Xe.reverse()),{line:Je,fill:Xe}}(0,$,Pe),ge=ye.fill,Me=ye.line,Se=Math.round(Q*(X==="fraction"?Z?me.w:me.h:1)),ze=Se/(Z?me.w:me.h),Fe=Math.round(q*(W==="fraction"?Z?me.h:me.w:1)),De=Fe/(Z?me.h:me.w),Ue=he?me.w:U._fullLayout.width,Ne=ue?me.h:U._fullLayout.height,ke=Math.round(Z?ne*Ue+ce:ie*Ne+ae),Oe={center:.5,right:1}[oe]||0,Re={top:1,middle:.5}[se]||0,je=Z?ne-Oe*ze:ie-Re*ze,Ze=Z?ie-Re*De:ne-Oe*De,Ye=Math.round(Z?Ne*(1-Ze):Ue*Ze);$._lenFrac=De,$._thickFrac=ze,$._uFrac=je,$._vFrac=Ze;var it=$._axis=function(We,nt,_t){var mt=We._fullLayout,St=nt.orientation==="v",Bt={type:"linear",range:_t,tickmode:nt.tickmode,nticks:nt.nticks,tick0:nt.tick0,dtick:nt.dtick,tickvals:nt.tickvals,ticktext:nt.ticktext,ticks:nt.ticks,ticklen:nt.ticklen,tickwidth:nt.tickwidth,tickcolor:nt.tickcolor,showticklabels:nt.showticklabels,labelalias:nt.labelalias,ticklabelposition:nt.ticklabelposition,ticklabeloverflow:nt.ticklabeloverflow,ticklabelstep:nt.ticklabelstep,tickfont:nt.tickfont,tickangle:nt.tickangle,tickformat:nt.tickformat,exponentformat:nt.exponentformat,minexponent:nt.minexponent,separatethousands:nt.separatethousands,showexponent:nt.showexponent,showtickprefix:nt.showtickprefix,tickprefix:nt.tickprefix,showticksuffix:nt.showticksuffix,ticksuffix:nt.ticksuffix,title:nt.title,showline:!0,anchor:"free",side:St?"right":"bottom",position:1},Je=St?"y":"x",Xe={type:"linear",_id:Je+nt._id},yt={letter:Je,font:mt.font,noAutotickangles:Je==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:mt.calendar};function Et(Ct,gt){return l.coerce(Bt,Xe,k,Ct,gt)}return x(Bt,Xe,Et,yt,mt),S(Bt,Xe,Et,yt),Xe}(U,$,Pe);it.position=ze+(Z?ne+ce/me.w:ie+ae/me.h);var dt=["top","bottom"].indexOf(Ee)!==-1;if(Z&&dt&&(it.title.side=Ee,it.titlex=ne+ce/me.w,it.titley=Ze+(we.side==="top"?De-ae/me.h:ae/me.h)),Z||dt||(it.title.side=Ee,it.titley=ie+ae/me.h,it.titlex=Ze+ce/me.w),xe.color&&$.tickmode==="auto"){it.tickmode="linear",it.tick0=Ce.start;var ut=Ce.size,It=l.constrain(Fe/50,4,15)+1,Ot=(Pe[1]-Pe[0])/(($.nticks||It)*ut);if(Ot>1){var Ft=Math.pow(10,Math.floor(Math.log(Ot)/Math.LN10));ut*=Ft*l.roundUp(Ot/Ft,[2,5,10]),(Math.abs(Ce.start)/Ce.size+1e-6)%1<2e-6&&(it.tick0=0)}it.dtick=ut}it.domain=Z?[Ze+ae/me.h,Ze+De-ae/me.h]:[Ze+ce/me.w,Ze+De-ce/me.w],it.setScale(),V.attr("transform",o(Math.round(me.l),Math.round(me.t)));var ot,tt=V.select("."+M.cbtitleunshift).attr("transform",o(-Math.round(me.l),-Math.round(me.t))),vt=it.ticklabelposition,At=it.title.font.size,Dt=V.select("."+M.cbaxis),Pt=0,et=0;function rt(We,nt){var _t={propContainer:it,propName:$._propPrefix+"title",traceIndex:$._traceIndex,_meta:$._meta,placeholder:pe._dfltTitle.colorbar,containerGroup:V.select("."+M.cbtitle)},mt=We.charAt(0)==="h"?We.substr(1):"h"+We;V.selectAll("."+mt+",."+mt+"-math-group").remove(),g.draw(U,We,s(_t,nt||{}))}return l.syncOrAsync([n.previousPromises,function(){var We,nt;(Z&&dt||!Z&&!dt)&&(Ee==="top"&&(We=ce+me.l+Ue*ne,nt=ae+me.t+Ne*(1-Ze-De)+3+.75*At),Ee==="bottom"&&(We=ce+me.l+Ue*ne,nt=ae+me.t+Ne*(1-Ze)-3-.25*At),Ee==="right"&&(nt=ae+me.t+Ne*ie+3+.75*At,We=ce+me.l+Ue*Ze),rt(it._id+"title",{attributes:{x:We,y:nt,"text-anchor":Z?"start":"middle"}}))},function(){if(!Z&&!dt||Z&&dt){var We,nt=V.select("."+M.cbtitle),_t=nt.select("text"),mt=[-J/2,J/2],St=nt.select(".h"+it._id+"title-math-group").node(),Bt=15.6;if(_t.node()&&(Bt=parseInt(_t.node().style.fontSize,10)*C),St?(We=d.bBox(St),et=We.width,(Pt=We.height)>Bt&&(mt[1]-=(Pt-Bt)/2)):_t.node()&&!_t.classed(M.jsPlaceholder)&&(We=d.bBox(_t.node()),et=We.width,Pt=We.height),Z){if(Pt){if(Pt+=5,Ee==="top")it.domain[1]-=Pt/me.h,mt[1]*=-1;else{it.domain[0]+=Pt/me.h;var Je=b.lineCount(_t);mt[1]+=(1-Je)*Bt}nt.attr("transform",o(mt[0],mt[1])),it.setScale()}}else et&&(Ee==="right"&&(it.domain[0]+=(et+At/2)/me.w),nt.attr("transform",o(mt[0],mt[1])),it.setScale())}V.selectAll("."+M.cbfills+",."+M.cblines).attr("transform",Z?o(0,Math.round(me.h*(1-it.domain[1]))):o(Math.round(me.w*it.domain[0]),0)),Dt.attr("transform",Z?o(0,Math.round(-me.t)):o(Math.round(-me.l),0));var Xe=V.select("."+M.cbfills).selectAll("rect."+M.cbfill).attr("style","").data(ge);Xe.enter().append("rect").classed(M.cbfill,!0).attr("style",""),Xe.exit().remove();var yt=Pe.map(it.c2p).map(Math.round).sort(function(Lt,jt){return Lt-jt});Xe.each(function(Lt,jt){var Rt=[jt===0?Pe[0]:(ge[jt]+ge[jt-1])/2,jt===ge.length-1?Pe[1]:(ge[jt]+ge[jt+1])/2].map(it.c2p).map(Math.round);Z&&(Rt[1]=l.constrain(Rt[1]+(Rt[1]>Rt[0])?1:-1,yt[0],yt[1]));var Vt=v.select(this).attr(Z?"x":"y",ke).attr(Z?"y":"x",v.min(Rt)).attr(Z?"width":"height",Math.max(Se,2)).attr(Z?"height":"width",Math.max(v.max(Rt)-v.min(Rt),2));if($._fillgradient)d.gradient(Vt,U,$._id,Z?"vertical":"horizontalreversed",$._fillgradient,"fill");else{var Qt=Te(Lt).replace("e-","");Vt.attr("fill",f(Qt).toHexString())}});var Et=V.select("."+M.cblines).selectAll("path."+M.cbline).data(xe.color&&xe.width?Me:[]);Et.enter().append("path").classed(M.cbline,!0),Et.exit().remove(),Et.each(function(Lt){var jt=ke,Rt=Math.round(it.c2p(Lt))+xe.width/2%1;v.select(this).attr("d","M"+(Z?jt+","+Rt:Rt+","+jt)+(Z?"h":"v")+Se).call(d.lineGroupStyle,xe.width,$e(Lt),xe.dash)}),Dt.selectAll("g."+it._id+"tick,path").remove();var Ct=ke+Se+(J||0)/2-($.ticks==="outside"?1:0),gt=_.calcTicks(it),$t=_.getTickSigns(it)[2];return _.drawTicks(U,it,{vals:it.ticks==="inside"?_.clipEnds(it,gt):gt,layer:Dt,path:_.makeTickPath(it,Ct,$t),transFn:_.makeTransTickFn(it)}),_.drawLabels(U,it,{vals:gt,layer:Dt,transFn:_.makeTransTickLabelFn(it),labelFns:_.makeLabelFns(it,Ct)})},function(){if(Z&&!dt||!Z&&dt){var We,nt,_t=it.position||0,mt=it._offset+it._length/2;if(Ee==="right")nt=mt,We=me.l+Ue*_t+10+At*(it.showticklabels?1:.5);else if(We=mt,Ee==="bottom"&&(nt=me.t+Ne*_t+10+(vt.indexOf("inside")===-1?it.tickfont.size:0)+(it.ticks!=="intside"&&$.ticklen||0)),Ee==="top"){var St=we.text.split("<br>").length;nt=me.t+Ne*_t+10-Se-C*At*St}rt((Z?"h":"v")+it._id+"title",{avoid:{selection:v.select(U).selectAll("g."+it._id+"tick"),side:Ee,offsetTop:Z?0:me.t,offsetLeft:Z?me.l:0,maxShift:Z?pe.width:pe.height},attributes:{x:We,y:nt,"text-anchor":"middle"},transform:{rotate:Z?-90:0,offset:0}})}},n.previousPromises,function(){var We,nt=Se+J/2;vt.indexOf("inside")===-1&&(We=d.bBox(Dt.node()),nt+=Z?We.width:We.height),ot=tt.select("text");var _t=0,mt=Z&&Ee==="top",St=!Z&&Ee==="right",Bt=0;if(ot.node()&&!ot.classed(M.jsPlaceholder)){var Je,Xe=tt.select(".h"+it._id+"title-math-group").node();Xe&&(Z&&dt||!Z&&!dt)?(_t=(We=d.bBox(Xe)).width,Je=We.height):(_t=(We=d.bBox(tt.node())).right-me.l-(Z?ke:Ye),Je=We.bottom-me.t-(Z?Ye:ke),Z||Ee!=="top"||(nt+=We.height,Bt=We.height)),St&&(ot.attr("transform",o(_t/2+At/2,0)),_t*=2),nt=Math.max(nt,Z?_t:Je)}var yt=2*(Z?ce:ae)+nt+ee+J/2,Et=0;!Z&&we.text&&se==="bottom"&&ie<=0&&(yt+=Et=yt/2,Bt+=Et),pe._hColorbarMoveTitle=Et,pe._hColorbarMoveCBTitle=Bt;var Ct=ee+J,gt=(Z?ke:Ye)-Ct/2-(Z?ce:0),$t=(Z?Ye:ke)-(Z?Fe:ae+Bt-Et);V.select("."+M.cbbg).attr("x",gt).attr("y",$t).attr(Z?"width":"height",Math.max(yt-Et,2)).attr(Z?"height":"width",Math.max(Fe+Ct,2)).call(h.fill,le).call(h.stroke,$.bordercolor).style("stroke-width",ee);var Lt=St?Math.max(_t-10,0):0;V.selectAll("."+M.cboutline).attr("x",(Z?ke:Ye+ce)+Lt).attr("y",(Z?Ye+ae-Fe:ke)+(mt?Pt:0)).attr(Z?"width":"height",Math.max(Se,2)).attr(Z?"height":"width",Math.max(Fe-(Z?2*ae+Pt:2*ce+Lt),2)).call(h.stroke,$.outlinecolor).style({fill:"none","stroke-width":J});var jt=Z?Oe*yt:0,Rt=Z?0:(1-Re)*yt-Bt;if(jt=he?me.l-jt:-jt,Rt=ue?me.t-Rt:-Rt,V.attr("transform",o(jt,Rt)),!Z&&(ee||f(le).getAlpha()&&!f.equals(pe.paper_bgcolor,le))){var Vt=Dt.selectAll("text"),Qt=Vt[0].length,ta=V.select("."+M.cbbg).node(),_a=d.bBox(ta),ka=d.getTranslate(V);Vt.each(function(Ra,Oa){var Ja=Qt-1;if(Oa===0||Oa===Ja){var Fa,qa=d.bBox(this),Ka=d.getTranslate(this);if(Oa===Ja){var vn=qa.right+Ka.x;(Fa=_a.right+ka.x+Ye-ee-2+ne-vn)>0&&(Fa=0)}else if(Oa===0){var zn=qa.left+Ka.x;(Fa=_a.left+ka.x+Ye+ee+2-zn)<0&&(Fa=0)}Fa&&(Qt<3?this.setAttribute("transform","translate("+Fa+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var va={},ia=A[oe],fa=E[oe],Da=A[se],wa=E[se],da=yt-Se;Z?(W==="pixels"?(va.y=ie,va.t=Fe*Da,va.b=Fe*wa):(va.t=va.b=0,va.yt=ie+q*Da,va.yb=ie-q*wa),X==="pixels"?(va.x=ne,va.l=yt*ia,va.r=yt*fa):(va.l=da*ia,va.r=da*fa,va.xl=ne-Q*ia,va.xr=ne+Q*fa)):(W==="pixels"?(va.x=ne,va.l=Fe*ia,va.r=Fe*fa):(va.l=va.r=0,va.xl=ne+q*ia,va.xr=ne-q*fa),X==="pixels"?(va.y=1-ie,va.t=yt*Da,va.b=yt*wa):(va.t=da*Da,va.b=da*wa,va.yt=ie-Q*Da,va.yb=ie+Q*wa));var Ea=$.y<.5?"b":"t",ua=$.x<.5?"l":"r";U._fullLayout._reservedMargin[$._id]={};var ba={r:pe.width-gt-jt,l:gt+va.r,b:pe.height-$t-Rt,t:$t+va.b};he&&ue?n.autoMargin(U,$._id,va):he?U._fullLayout._reservedMargin[$._id][Ea]=ba[Ea]:ue||Z?U._fullLayout._reservedMargin[$._id][ua]=ba[ua]:U._fullLayout._reservedMargin[$._id][Ea]=ba[Ea]}],U)}(F,z,I);R&&R.then&&(I._promises||[]).push(R),I._context.edits.colorbarPosition&&function(V,$,U){var Z,q,W,Q=$.orientation==="v",X=U._fullLayout._size;p.init({element:V.node(),gd:U,prepFn:function(){Z=V.attr("transform"),u(V)},moveFn:function(J,ee){V.attr("transform",Z+o(J,ee)),q=p.align((Q?$._uFrac:$._vFrac)+J/X.w,Q?$._thickFrac:$._lenFrac,0,1,$.xanchor),W=p.align((Q?$._vFrac:1-$._uFrac)-ee/X.h,Q?$._lenFrac:$._thickFrac,0,1,$.yanchor);var le=p.getCursor(q,W,$.xanchor,$.yanchor);u(V,le)},doneFn:function(){if(u(V),q!==void 0&&W!==void 0){var J={};J[$._propPrefix+"x"]=q,J[$._propPrefix+"y"]=W,$._traceIndex!==void 0?y.call("_guiRestyle",U,J,$._traceIndex):y.call("_guiRelayout",U,J)}}})}(F,z,I)}),N.exit().each(function(z){n.autoMargin(I,z._id)}).remove(),N.order()}}},91362:function(c,m,a){var v=a(34809);c.exports=function(f){return v.isPlainObject(f.colorbar)}},96919:function(c,m,a){c.exports={moduleType:"component",name:"colorbar",attributes:a(25158),supplyDefaults:a(42097),draw:a(5881).draw,hasColorbar:a(91362)}},87163:function(c,m,a){var v=a(25158),f=a(90694).counter,n=a(62994),y=a(19017).scales;function _(p){return"`"+p+"`"}n(y),c.exports=function(p,l){p=p||"";var o,s=(l=l||{}).cLetter||"c",u=("onlyIfNumerical"in l&&l.onlyIfNumerical,"noScale"in l?l.noScale:p==="marker.line"),d="showScaleDflt"in l?l.showScaleDflt:s==="z",h=typeof l.colorscaleDflt=="string"?y[l.colorscaleDflt]:null,g=l.editTypeOverride||"",b=p?p+".":"";"colorAttr"in l?(o=l.colorAttr,l.colorAttr):_(b+(o={z:"z",c:"color"}[s]));var w=s+"auto",x=s+"min",S=s+"max",k=s+"mid",T={};T[x]=T[S]=void 0;var C={};C[w]=!1;var A={};return o==="color"&&(A.color={valType:"color",arrayOk:!0,editType:g||"style"},l.anim&&(A.color.anim=!0)),A[w]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},A[x]={valType:"number",dflt:null,editType:g||"plot",impliedEdits:C},A[S]={valType:"number",dflt:null,editType:g||"plot",impliedEdits:C},A[k]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},A.colorscale={valType:"colorscale",editType:"calc",dflt:h,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:l.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},u||(A.showscale={valType:"boolean",dflt:d,editType:"calc"},A.colorbar=v),l.noColorAxis||(A.coloraxis={valType:"subplotid",regex:f("coloraxis"),dflt:null,editType:"calc"}),A}},28379:function(c,m,a){var v=a(10721),f=a(34809),n=a(65477).extractOpts;c.exports=function(y,_,p){var l,o=y._fullLayout,s=p.vals,u=p.containerStr,d=u?f.nestedProperty(_,u).get():_,h=n(d),g=h.auto!==!1,b=h.min,w=h.max,x=h.mid,S=function(){return f.aggNums(Math.min,null,s)},k=function(){return f.aggNums(Math.max,null,s)};b===void 0?b=S():g&&(b=d._colorAx&&v(b)?Math.min(b,S()):S()),w===void 0?w=k():g&&(w=d._colorAx&&v(w)?Math.max(w,k()):k()),g&&x!==void 0&&(w-x>x-b?b=x-(w-x):w-x<x-b&&(w=x+(x-b))),b===w&&(b-=.5,w+=.5),h._sync("min",b),h._sync("max",w),h.autocolorscale&&(l=b*w<0?o.colorscale.diverging:b>=0?o.colorscale.sequential:o.colorscale.sequentialminus,h._sync("colorscale",l))}},67623:function(c,m,a){var v=a(34809),f=a(65477).hasColorscale,n=a(65477).extractOpts;c.exports=function(y,_){function p(g,b){var w=g["_"+b];w!==void 0&&(g[b]=w)}function l(g,b){var w=b.container?v.nestedProperty(g,b.container).get():g;if(w)if(w.coloraxis)w._colorAx=_[w.coloraxis];else{var x=n(w),S=x.auto;(S||x.min===void 0)&&p(w,b.min),(S||x.max===void 0)&&p(w,b.max),x.autocolorscale&&p(w,"colorscale")}}for(var o=0;o<y.length;o++){var s=y[o],u=s._module.colorbar;if(u)if(Array.isArray(u))for(var d=0;d<u.length;d++)l(s,u[d]);else l(s,u);f(s,"marker.line")&&l(s,{container:"marker.line",min:"cmin",max:"cmax"})}for(var h in _._colorAxes)l(_[h],{min:"cmin",max:"cmax"})}},39356:function(c,m,a){var v=a(10721),f=a(34809),n=a(91362),y=a(42097),_=a(19017).isValid,p=a(33626).traceIs;function l(o,s){var u=s.slice(0,s.length-1);return s?f.nestedProperty(o,u).get()||{}:o}c.exports=function o(s,u,d,h,g){var b=g.prefix,w=g.cLetter,x="_module"in u,S=l(s,b),k=l(u,b),T=l(u._template||{},b)||{},C=function(){return delete s.coloraxis,delete u.coloraxis,o(s,u,d,h,g)};if(x){var A=d._colorAxes||{},E=h(b+"coloraxis");if(E){var M=p(u,"contour")&&f.nestedProperty(u,"contours.coloring").get()||"heatmap",I=A[E];return void(I?(I[2].push(C),I[0]!==M&&(I[0]=!1,f.warn(["Ignoring coloraxis:",E,"setting","as it is linked to incompatible colorscales."].join(" ")))):A[E]=[M,u,[C]])}}var N=S[w+"min"],z=S[w+"max"],F=v(N)&&v(z)&&N<z;h(b+w+"auto",!F)?h(b+w+"mid"):(h(b+w+"min"),h(b+w+"max"));var R,V,$=S.colorscale,U=T.colorscale;$!==void 0&&(R=!_($)),U!==void 0&&(R=!_(U)),h(b+"autocolorscale",R),h(b+"colorscale"),h(b+"reversescale"),b!=="marker.line."&&(b&&x&&(V=n(S)),h(b+"showscale",V)&&(b&&T&&(k._template=T),y(S,k,d)))}},65477:function(c,m,a){var v=a(45568),f=a(65657),n=a(10721),y=a(34809),_=a(78766),p=a(19017).isValid,l=["showscale","autocolorscale","colorscale","reversescale","colorbar"],o=["min","max","mid","auto"];function s(b){var w,x,S,k=b._colorAx,T=k||b,C={};for(x=0;x<l.length;x++)C[S=l[x]]=T[S];if(k)for(w="c",x=0;x<o.length;x++)C[S=o[x]]=T["c"+S];else{var A;for(x=0;x<o.length;x++)((A="c"+(S=o[x]))in T||(A="z"+S)in T)&&(C[S]=T[A]);w=A.charAt(0)}return C._sync=function(E,M){var I=o.indexOf(E)!==-1?w+E:E;T[I]=T["_"+I]=M},C}function u(b){for(var w=s(b),x=w.min,S=w.max,k=w.reversescale?d(w.colorscale):w.colorscale,T=k.length,C=new Array(T),A=new Array(T),E=0;E<T;E++){var M=k[E];C[E]=x+M[0]*(S-x),A[E]=M[1]}return{domain:C,range:A}}function d(b){for(var w=b.length,x=new Array(w),S=w-1,k=0;S>=0;S--,k++){var T=b[S];x[k]=[1-T[0],T[1]]}return x}function h(b,w){w=w||{};for(var x=b.domain,S=b.range,k=S.length,T=new Array(k),C=0;C<k;C++){var A=f(S[C]).toRgb();T[C]=[A.r,A.g,A.b,A.a]}var E,M=v.scale.linear().domain(x).range(T).clamp(!0),I=w.noNumericCheck,N=w.returnArray;return(E=I&&N?M:I?function(z){return g(M(z))}:N?function(z){return n(z)?M(z):f(z).isValid()?z:_.defaultLine}:function(z){return n(z)?g(M(z)):f(z).isValid()?z:_.defaultLine}).domain=M.domain,E.range=function(){return S},E}function g(b){var w={r:b[0],g:b[1],b:b[2],a:b[3]};return f(w).toRgbString()}c.exports={hasColorscale:function(b,w,x){var S=w?y.nestedProperty(b,w).get()||{}:b,k=S[x||"color"];k&&k._inputArray&&(k=k._inputArray);var T=!1;if(y.isArrayOrTypedArray(k)){for(var C=0;C<k.length;C++)if(n(k[C])){T=!0;break}}return y.isPlainObject(S)&&(T||S.showscale===!0||n(S.cmin)&&n(S.cmax)||p(S.colorscale)||y.isPlainObject(S.colorbar))},extractOpts:s,extractScale:u,flipScale:d,makeColorScaleFunc:h,makeColorScaleFuncFromTrace:function(b,w){return h(u(b),w)}}},88856:function(c,m,a){var v=a(19017),f=a(65477);c.exports={moduleType:"component",name:"colorscale",attributes:a(87163),layoutAttributes:a(56978),supplyLayoutDefaults:a(64613),handleDefaults:a(39356),crossTraceDefaults:a(67623),calc:a(28379),scales:v.scales,defaultScale:v.defaultScale,getScale:v.get,isValidScale:v.isValid,hasColorscale:f.hasColorscale,extractOpts:f.extractOpts,extractScale:f.extractScale,flipScale:f.flipScale,makeColorScaleFunc:f.makeColorScaleFunc,makeColorScaleFuncFromTrace:f.makeColorScaleFuncFromTrace}},56978:function(c,m,a){var v=a(93049).extendFlat,f=a(87163),n=a(19017).scales;c.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:n.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:n.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:n.RdBu,editType:"calc"}},coloraxis:v({_isSubplotObj:!0,editType:"calc"},f("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},64613:function(c,m,a){var v=a(34809),f=a(78032),n=a(56978),y=a(39356);c.exports=function(_,p){function l(w,x){return v.coerce(_,p,n,w,x)}l("colorscale.sequential"),l("colorscale.sequentialminus"),l("colorscale.diverging");var o,s,u=p._colorAxes;function d(w,x){return v.coerce(o,s,n.coloraxis,w,x)}for(var h in u){var g=u[h];if(g[0])o=_[h]||{},(s=f.newContainer(p,h,"coloraxis"))._name=h,y(o,s,p,d,{prefix:"",cLetter:"c"});else{for(var b=0;b<g[2].length;b++)g[2][b]();delete p._colorAxes[h]}}}},19017:function(c,m,a){var v=a(65657),f={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},n=f.RdBu;function y(_){var p=0;if(!Array.isArray(_)||_.length<2||!_[0]||!_[_.length-1]||+_[0][0]!=0||+_[_.length-1][0]!=1)return!1;for(var l=0;l<_.length;l++){var o=_[l];if(o.length!==2||+o[0]<p||!v(o[1]).isValid())return!1;p=+o[0]}return!0}c.exports={scales:f,defaultScale:n,get:function(_,p){if(p||(p=n),!_)return p;function l(){try{_=f[_]||JSON.parse(_)}catch{_=p}}return typeof _=="string"&&(l(),typeof _=="string"&&l()),y(_)?_:p},isValid:function(_){return f[_]!==void 0||y(_)}}},53770:function(c){c.exports=function(m,a,v,f,n){var y=(m-v)/(f-v),_=y+a/(f-v),p=(y+_)/2;return n==="left"||n==="bottom"?y:n==="center"||n==="middle"?p:n==="right"||n==="top"?_:y<.6666666666666666-p?y:_>1.3333333333333333-p?_:p}},4001:function(c,m,a){var v=a(34809),f=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];c.exports=function(n,y,_,p){return n=_==="left"?0:_==="center"?1:_==="right"?2:v.constrain(Math.floor(3*n),0,2),y=p==="bottom"?0:p==="middle"?1:p==="top"?2:v.constrain(Math.floor(3*y),0,2),f[y][n]}},70414:function(c,m){m.selectMode=function(a){return a==="lasso"||a==="select"},m.drawMode=function(a){return a==="drawclosedpath"||a==="drawopenpath"||a==="drawline"||a==="drawrect"||a==="drawcircle"},m.openMode=function(a){return a==="drawline"||a==="drawopenpath"},m.rectMode=function(a){return a==="select"||a==="drawline"||a==="drawrect"||a==="drawcircle"},m.freeMode=function(a){return a==="lasso"||a==="drawclosedpath"||a==="drawopenpath"},m.selectingOrDrawing=function(a){return m.freeMode(a)||m.rectMode(a)}},14751:function(c,m,a){var v=a(44039),f=a(39784),n=a(74043),y=a(34809).removeElement,_=a(54826),p=c.exports={};p.align=a(53770),p.getCursor=a(4001);var l=a(60148);function o(){var u=document.createElement("div");u.className="dragcover";var d=u.style;return d.position="fixed",d.left=0,d.right=0,d.top=0,d.bottom=0,d.zIndex=999999999,d.background="none",document.body.appendChild(u),u}function s(u){return v(u.changedTouches?u.changedTouches[0]:u,document.body)}p.unhover=l.wrapped,p.unhoverRaw=l.raw,p.init=function(u){var d,h,g,b,w,x,S,k,T=u.gd,C=1,A=T._context.doubleClickDelay,E=u.element;T._mouseDownTime||(T._mouseDownTime=0),E.style.pointerEvents="all",E.onmousedown=I,n?(E._ontouchstart&&E.removeEventListener("touchstart",E._ontouchstart),E._ontouchstart=I,E.addEventListener("touchstart",I,{passive:!1})):E.ontouchstart=I;var M=u.clampFn||function(F,R,V){return Math.abs(F)<V&&(F=0),Math.abs(R)<V&&(R=0),[F,R]};function I(F){T._dragged=!1,T._dragging=!0;var R=s(F);d=R[0],h=R[1],S=F.target,x=F,k=F.buttons===2||F.ctrlKey,F.clientX===void 0&&F.clientY===void 0&&(F.clientX=d,F.clientY=h),(g=new Date().getTime())-T._mouseDownTime<A?C+=1:(C=1,T._mouseDownTime=g),u.prepFn&&u.prepFn(F,d,h),f&&!k?(w=o()).style.cursor=window.getComputedStyle(E).cursor:f||(w=document,b=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(E).cursor),document.addEventListener("mouseup",z),document.addEventListener("touchend",z),u.dragmode!==!1&&(F.preventDefault(),document.addEventListener("mousemove",N),document.addEventListener("touchmove",N,{passive:!1}))}function N(F){F.preventDefault();var R=s(F),V=u.minDrag||_.MINDRAG,$=M(R[0]-d,R[1]-h,V),U=$[0],Z=$[1];(U||Z)&&(T._dragged=!0,p.unhover(T,F)),T._dragged&&u.moveFn&&!k&&(T._dragdata={element:E,dx:U,dy:Z},u.moveFn(U,Z))}function z(F){if(delete T._dragdata,u.dragmode!==!1&&(F.preventDefault(),document.removeEventListener("mousemove",N),document.removeEventListener("touchmove",N)),document.removeEventListener("mouseup",z),document.removeEventListener("touchend",z),f?y(w):b&&(w.documentElement.style.cursor=b,b=null),T._dragging){if(T._dragging=!1,new Date().getTime()-T._mouseDownTime>A&&(C=Math.max(C-1,1)),T._dragged)u.doneFn&&u.doneFn();else if(u.clickFn&&u.clickFn(C,x),!k){var R;try{R=new MouseEvent("click",F)}catch{var V=s(F);(R=document.createEvent("MouseEvents")).initMouseEvent("click",F.bubbles,F.cancelable,F.view,F.detail,F.screenX,F.screenY,V[0],V[1],F.ctrlKey,F.altKey,F.shiftKey,F.metaKey,F.button,F.relatedTarget)}S.dispatchEvent(R)}T._dragging=!1,T._dragged=!1}else T._dragged=!1}},p.coverSlip=o},60148:function(c,m,a){var v=a(68596),f=a(64025),n=a(95425).getGraphDiv,y=a(85988),_=c.exports={};_.wrapped=function(p,l,o){(p=n(p))._fullLayout&&f.clear(p._fullLayout._uid+y.HOVERID),_.raw(p,l,o)},_.raw=function(p,l){var o=p._fullLayout,s=p._hoverdata;l||(l={}),l.target&&!p._dragged&&v.triggerHandler(p,"plotly_beforehover",l)===!1||(o._hoverlayer.selectAll("g").remove(),o._hoverlayer.selectAll("line").remove(),o._hoverlayer.selectAll("circle").remove(),p._hoverdata=void 0,l.target&&s&&p.emit("plotly_unhover",{event:l,points:s}))}},94850:function(c,m){m.T={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},m.k={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},62203:function(c,m,a){var v=a(45568),f=a(34809),n=f.numberFormat,y=a(10721),_=a(65657),p=a(33626),l=a(78766),o=a(88856),s=f.strTranslate,u=a(30635),d=a(62972),h=a(4530).LINE_SPACING,g=a(20438).DESELECTDIM,b=a(64726),w=a(92527),x=a(36040).appendArrayPointValue,S=c.exports={};function k(Te){return Te==="none"?void 0:Te}S.font=function(Te,Ce){var ye=Ce.variant,ge=Ce.style,Me=Ce.weight,Se=Ce.color,ze=Ce.size,Fe=Ce.family,De=Ce.shadow,Ue=Ce.lineposition,Ne=Ce.textcase;Fe&&Te.style("font-family",Fe),ze+1&&Te.style("font-size",ze+"px"),Se&&Te.call(l.fill,Se),Me&&Te.style("font-weight",Me),ge&&Te.style("font-style",ge),ye&&Te.style("font-variant",ye),Ne&&Te.style("text-transform",k(function(ke){return T[ke]}(Ne))),De&&Te.style("text-shadow",De==="auto"?u.makeTextShadow(l.contrast(Se)):k(De)),Ue&&Te.style("text-decoration-line",k(function(ke){return ke.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}(Ue)))};var T={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function C(Te,Ce,ye,ge){var Me=Ce.fillpattern,Se=Ce.fillgradient,ze=Me&&S.getPatternAttr(Me.shape,0,"");if(ze){var Fe=S.getPatternAttr(Me.bgcolor,0,null),De=S.getPatternAttr(Me.fgcolor,0,null),Ue=Me.fgopacity,Ne=S.getPatternAttr(Me.size,0,8),ke=S.getPatternAttr(Me.solidity,0,.3),Oe=Ce.uid;S.pattern(Te,"point",ye,Oe,ze,Ne,ke,void 0,Me.fillmode,Fe,De,Ue)}else if(Se&&Se.type!=="none"){var Re,je,Ze=Se.type,Ye="scatterfill-"+Ce.uid;ge&&(Ye="legendfill-"+Ce.uid),ge||Se.start===void 0&&Se.stop===void 0?(Ze==="horizontal"&&(Ze+="reversed"),Te.call(S.gradient,ye,Ye,Ze,Se.colorscale,"fill")):(Ze==="horizontal"?(Re={x:Se.start,y:0},je={x:Se.stop,y:0}):Ze==="vertical"&&(Re={x:0,y:Se.start},je={x:0,y:Se.stop}),Re.x=Ce._xA.c2p(Re.x===void 0?Ce._extremes.x.min[0].val:Re.x,!0),Re.y=Ce._yA.c2p(Re.y===void 0?Ce._extremes.y.min[0].val:Re.y,!0),je.x=Ce._xA.c2p(je.x===void 0?Ce._extremes.x.max[0].val:je.x,!0),je.y=Ce._yA.c2p(je.y===void 0?Ce._extremes.y.max[0].val:je.y,!0),Te.call(z,ye,Ye,"linear",Se.colorscale,"fill",Re,je,!0,!1))}else Ce.fillcolor&&Te.call(l.fill,Ce.fillcolor)}S.setPosition=function(Te,Ce,ye){Te.attr("x",Ce).attr("y",ye)},S.setSize=function(Te,Ce,ye){Te.attr("width",Ce).attr("height",ye)},S.setRect=function(Te,Ce,ye,ge,Me){Te.call(S.setPosition,Ce,ye).call(S.setSize,ge,Me)},S.translatePoint=function(Te,Ce,ye,ge){var Me=ye.c2p(Te.x),Se=ge.c2p(Te.y);return!!(y(Me)&&y(Se)&&Ce.node())&&(Ce.node().nodeName==="text"?Ce.attr("x",Me).attr("y",Se):Ce.attr("transform",s(Me,Se)),!0)},S.translatePoints=function(Te,Ce,ye){Te.each(function(ge){var Me=v.select(this);S.translatePoint(ge,Me,Ce,ye)})},S.hideOutsideRangePoint=function(Te,Ce,ye,ge,Me,Se){Ce.attr("display",ye.isPtWithinRange(Te,Me)&&ge.isPtWithinRange(Te,Se)?null:"none")},S.hideOutsideRangePoints=function(Te,Ce){if(Ce._hasClipOnAxisFalse){var ye=Ce.xaxis,ge=Ce.yaxis;Te.each(function(Me){var Se=Me[0].trace,ze=Se.xcalendar,Fe=Se.ycalendar,De=p.traceIs(Se,"bar-like")?".bartext":".point,.textpoint";Te.selectAll(De).each(function(Ue){S.hideOutsideRangePoint(Ue,v.select(this),ye,ge,ze,Fe)})})}},S.crispRound=function(Te,Ce,ye){return Ce&&y(Ce)?Te._context.staticPlot?Ce:Ce<1?1:Math.round(Ce):ye||0},S.singleLineStyle=function(Te,Ce,ye,ge,Me){Ce.style("fill","none");var Se=(((Te||[])[0]||{}).trace||{}).line||{},ze=ye||Se.width||0,Fe=Me||Se.dash||"";l.stroke(Ce,ge||Se.color),S.dashLine(Ce,Fe,ze)},S.lineGroupStyle=function(Te,Ce,ye,ge){Te.style("fill","none").each(function(Me){var Se=(((Me||[])[0]||{}).trace||{}).line||{},ze=Ce||Se.width||0,Fe=ge||Se.dash||"";v.select(this).call(l.stroke,ye||Se.color).call(S.dashLine,Fe,ze)})},S.dashLine=function(Te,Ce,ye){ye=+ye||0,Ce=S.dashStyle(Ce,ye),Te.style({"stroke-dasharray":Ce,"stroke-width":ye+"px"})},S.dashStyle=function(Te,Ce){Ce=+Ce||1;var ye=Math.max(Ce,3);return Te==="solid"?Te="":Te==="dot"?Te=ye+"px,"+ye+"px":Te==="dash"?Te=3*ye+"px,"+3*ye+"px":Te==="longdash"?Te=5*ye+"px,"+5*ye+"px":Te==="dashdot"?Te=3*ye+"px,"+ye+"px,"+ye+"px,"+ye+"px":Te==="longdashdot"&&(Te=5*ye+"px,"+2*ye+"px,"+ye+"px,"+2*ye+"px"),Te},S.singleFillStyle=function(Te,Ce){var ye=v.select(Te.node());C(Te,((ye.data()[0]||[])[0]||{}).trace||{},Ce,!1)},S.fillGroupStyle=function(Te,Ce,ye){Te.style("stroke-width",0).each(function(ge){var Me=v.select(this);ge[0].trace&&C(Me,ge[0].trace,Ce,ye)})};var A=a(38882);S.symbolNames=[],S.symbolFuncs=[],S.symbolBackOffs=[],S.symbolNeedLines={},S.symbolNoDot={},S.symbolNoFill={},S.symbolList=[],Object.keys(A).forEach(function(Te){var Ce=A[Te],ye=Ce.n;S.symbolList.push(ye,String(ye),Te,ye+100,String(ye+100),Te+"-open"),S.symbolNames[ye]=Te,S.symbolFuncs[ye]=Ce.f,S.symbolBackOffs[ye]=Ce.backoff||0,Ce.needLine&&(S.symbolNeedLines[ye]=!0),Ce.noDot?S.symbolNoDot[ye]=!0:S.symbolList.push(ye+200,String(ye+200),Te+"-dot",ye+300,String(ye+300),Te+"-open-dot"),Ce.noFill&&(S.symbolNoFill[ye]=!0)});var E=S.symbolNames.length;function M(Te,Ce,ye,ge){var Me=Te%100;return S.symbolFuncs[Me](Ce,ye,ge)+(Te>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}S.symbolNumber=function(Te){if(y(Te))Te=+Te;else if(typeof Te=="string"){var Ce=0;Te.indexOf("-open")>0&&(Ce=100,Te=Te.replace("-open","")),Te.indexOf("-dot")>0&&(Ce+=200,Te=Te.replace("-dot","")),(Te=S.symbolNames.indexOf(Te))>=0&&(Te+=Ce)}return Te%100>=E||Te>=400?0:Math.floor(Math.max(Te,0))};var I=n("~f"),N={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};function z(Te,Ce,ye,ge,Me,Se,ze,Fe,De,Ue){var Ne,ke=Me.length;ge==="linear"?Ne={node:"linearGradient",attrs:{x1:ze.x,y1:ze.y,x2:Fe.x,y2:Fe.y,gradientUnits:De?"userSpaceOnUse":"objectBoundingBox"},reversed:Ue}:ge==="radial"&&(Ne={node:"radialGradient",reversed:Ue});for(var Oe=new Array(ke),Re=0;Re<ke;Re++)Ne.reversed?Oe[ke-1-Re]=[I(100*(1-Me[Re][0])),Me[Re][1]]:Oe[Re]=[I(100*Me[Re][0]),Me[Re][1]];var je=Ce._fullLayout,Ze="g"+je._uid+"-"+ye,Ye=je._defs.select(".gradients").selectAll("#"+Ze).data([ge+Oe.join(";")],f.identity);Ye.exit().remove(),Ye.enter().append(Ne.node).each(function(){var it=v.select(this);Ne.attrs&&it.attr(Ne.attrs),it.attr("id",Ze);var dt=it.selectAll("stop").data(Oe);dt.exit().remove(),dt.enter().append("stop"),dt.each(function(ut){var It=_(ut[1]);v.select(this).attr({offset:ut[0]+"%","stop-color":l.tinyRGB(It),"stop-opacity":It.getAlpha()})})}),Te.style(Se,se(Ze,Ce)).style(Se+"-opacity",null),Te.classed("gradient_filled",!0)}S.gradient=function(Te,Ce,ye,ge,Me,Se){var ze=N[ge];return z(Te,Ce,ye,ze.type,Me,Se,ze.start,ze.stop,!1,ze.reversed)},S.pattern=function(Te,Ce,ye,ge,Me,Se,ze,Fe,De,Ue,Ne,ke){var Oe=Ce==="legend";Fe&&(De==="overlay"?(Ue=Fe,Ne=l.contrast(Ue)):(Ue=void 0,Ne=Fe));var Re,je,Ze,Ye,it,dt,ut,It,Ot,Ft=ye._fullLayout,ot="p"+Ft._uid+"-"+ge,tt={},vt=_(Ne),At=l.tinyRGB(vt),Dt=ke*vt.getAlpha();switch(Me){case"/":Re=Se*Math.sqrt(2),je=Se*Math.sqrt(2),dt="path",tt={d:Ze="M-"+Re/4+","+je/4+"l"+Re/2+",-"+je/2+"M0,"+je+"L"+Re+",0M"+Re/4*3+","+je/4*5+"l"+Re/2+",-"+je/2,opacity:Dt,stroke:At,"stroke-width":(Ye=ze*Se)+"px"};break;case"\\":Re=Se*Math.sqrt(2),je=Se*Math.sqrt(2),dt="path",tt={d:Ze="M"+Re/4*3+",-"+je/4+"l"+Re/2+","+je/2+"M0,0L"+Re+","+je+"M-"+Re/4+","+je/4*3+"l"+Re/2+","+je/2,opacity:Dt,stroke:At,"stroke-width":(Ye=ze*Se)+"px"};break;case"x":Re=Se*Math.sqrt(2),je=Se*Math.sqrt(2),Ze="M-"+Re/4+","+je/4+"l"+Re/2+",-"+je/2+"M0,"+je+"L"+Re+",0M"+Re/4*3+","+je/4*5+"l"+Re/2+",-"+je/2+"M"+Re/4*3+",-"+je/4+"l"+Re/2+","+je/2+"M0,0L"+Re+","+je+"M-"+Re/4+","+je/4*3+"l"+Re/2+","+je/2,Ye=Se-Se*Math.sqrt(1-ze),dt="path",tt={d:Ze,opacity:Dt,stroke:At,"stroke-width":Ye+"px"};break;case"|":dt="path",dt="path",tt={d:Ze="M"+(Re=Se)/2+",0L"+Re/2+","+(je=Se),opacity:Dt,stroke:At,"stroke-width":(Ye=ze*Se)+"px"};break;case"-":dt="path",dt="path",tt={d:Ze="M0,"+(je=Se)/2+"L"+(Re=Se)+","+je/2,opacity:Dt,stroke:At,"stroke-width":(Ye=ze*Se)+"px"};break;case"+":dt="path",Ze="M"+(Re=Se)/2+",0L"+Re/2+","+(je=Se)+"M0,"+je/2+"L"+Re+","+je/2,Ye=Se-Se*Math.sqrt(1-ze),dt="path",tt={d:Ze,opacity:Dt,stroke:At,"stroke-width":Ye+"px"};break;case".":Re=Se,je=Se,ze<Math.PI/4?it=Math.sqrt(ze*Se*Se/Math.PI):(ut=ze,It=Math.PI/4,it=(Ot=Se/2)+(Se/Math.sqrt(2)-Ot)*(ut-It)/(1-It)),dt="circle",tt={cx:Re/2,cy:je/2,r:it,opacity:Dt,fill:At}}var Pt=[Me||"noSh",Ue||"noBg",Ne||"noFg",Se,ze].join(";"),et=Ft._defs.select(".patterns").selectAll("#"+ot).data([Pt],f.identity);et.exit().remove(),et.enter().append("pattern").each(function(){var rt=v.select(this);if(rt.attr({id:ot,width:Re+"px",height:je+"px",patternUnits:"userSpaceOnUse",patternTransform:Oe?"scale(0.8)":""}),Ue){var We=_(Ue),nt=l.tinyRGB(We),_t=We.getAlpha(),mt=rt.selectAll("rect").data([0]);mt.exit().remove(),mt.enter().append("rect").attr({width:Re+"px",height:je+"px",fill:nt,"fill-opacity":_t})}var St=rt.selectAll(dt).data([0]);St.exit().remove(),St.enter().append(dt).attr(tt)}),Te.style("fill",se(ot,ye)).style("fill-opacity",null),Te.classed("pattern_filled",!0)},S.initGradients=function(Te){var Ce=Te._fullLayout;f.ensureSingle(Ce._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),v.select(Te).selectAll(".gradient_filled").classed("gradient_filled",!1)},S.initPatterns=function(Te){var Ce=Te._fullLayout;f.ensureSingle(Ce._defs,"g","patterns").selectAll("pattern").remove(),v.select(Te).selectAll(".pattern_filled").classed("pattern_filled",!1)},S.getPatternAttr=function(Te,Ce,ye){return Te&&f.isArrayOrTypedArray(Te)?Ce<Te.length?Te[Ce]:ye:Te},S.pointStyle=function(Te,Ce,ye,ge){if(Te.size()){var Me=S.makePointStyleFns(Ce);Te.each(function(Se){S.singlePointStyle(Se,v.select(this),Ce,Me,ye,ge)})}},S.singlePointStyle=function(Te,Ce,ye,ge,Me,Se){var ze=ye.marker,Fe=ze.line;if(Se&&Se.i>=0&&Te.i===void 0&&(Te.i=Se.i),Ce.style("opacity",ge.selectedOpacityFn?ge.selectedOpacityFn(Te):Te.mo===void 0?ze.opacity:Te.mo),ge.ms2mrc){var De;De=Te.ms==="various"||ze.size==="various"?3:ge.ms2mrc(Te.ms),Te.mrc=De,ge.selectedSizeFn&&(De=Te.mrc=ge.selectedSizeFn(Te));var Ue=S.symbolNumber(Te.mx||ze.symbol)||0;Te.om=Ue%200>=100;var Ne=$e(Te,ye),ke=ne(Te,ye);Ce.attr("d",M(Ue,De,Ne,ke))}var Oe,Re,je,Ze=!1;if(Te.so)je=Fe.outlierwidth,Re=Fe.outliercolor,Oe=ze.outliercolor;else{var Ye=(Fe||{}).width;je=(Te.mlw+1||Ye+1||(Te.trace?(Te.trace.marker.line||{}).width:0)+1)-1||0,Re="mlc"in Te?Te.mlcc=ge.lineScale(Te.mlc):f.isArrayOrTypedArray(Fe.color)?l.defaultLine:Fe.color,f.isArrayOrTypedArray(ze.color)&&(Oe=l.defaultLine,Ze=!0),Oe="mc"in Te?Te.mcc=ge.markerScale(Te.mc):ze.color||ze.colors||"rgba(0,0,0,0)",ge.selectedColorFn&&(Oe=ge.selectedColorFn(Te))}if(Te.om)Ce.call(l.stroke,Oe).style({"stroke-width":(je||1)+"px",fill:"none"});else{Ce.style("stroke-width",(Te.isBlank?0:je)+"px");var it=ze.gradient,dt=Te.mgt;dt?Ze=!0:dt=it&&it.type,f.isArrayOrTypedArray(dt)&&(dt=dt[0],N[dt]||(dt=0));var ut=ze.pattern,It=ut&&S.getPatternAttr(ut.shape,Te.i,"");if(dt&&dt!=="none"){var Ot=Te.mgc;Ot?Ze=!0:Ot=it.color;var Ft=ye.uid;Ze&&(Ft+="-"+Te.i),S.gradient(Ce,Me,Ft,dt,[[0,Ot],[1,Oe]],"fill")}else if(It){var ot=!1,tt=ut.fgcolor;!tt&&Se&&Se.color&&(tt=Se.color,ot=!0);var vt=S.getPatternAttr(tt,Te.i,Se&&Se.color||null),At=S.getPatternAttr(ut.bgcolor,Te.i,null),Dt=ut.fgopacity,Pt=S.getPatternAttr(ut.size,Te.i,8),et=S.getPatternAttr(ut.solidity,Te.i,.3);ot=ot||Te.mcc||f.isArrayOrTypedArray(ut.shape)||f.isArrayOrTypedArray(ut.bgcolor)||f.isArrayOrTypedArray(ut.fgcolor)||f.isArrayOrTypedArray(ut.size)||f.isArrayOrTypedArray(ut.solidity);var rt=ye.uid;ot&&(rt+="-"+Te.i),S.pattern(Ce,"point",Me,rt,It,Pt,et,Te.mcc,ut.fillmode,At,vt,Dt)}else f.isArrayOrTypedArray(Oe)?l.fill(Ce,Oe[Te.i]):l.fill(Ce,Oe);je&&l.stroke(Ce,Re)}},S.makePointStyleFns=function(Te){var Ce={},ye=Te.marker;return Ce.markerScale=S.tryColorscale(ye,""),Ce.lineScale=S.tryColorscale(ye,"line"),p.traceIs(Te,"symbols")&&(Ce.ms2mrc=b.isBubble(Te)?w(Te):function(){return(ye.size||6)/2}),Te.selectedpoints&&f.extendFlat(Ce,S.makeSelectedPointStyleFns(Te)),Ce},S.makeSelectedPointStyleFns=function(Te){var Ce={},ye=Te.selected||{},ge=Te.unselected||{},Me=Te.marker||{},Se=ye.marker||{},ze=ge.marker||{},Fe=Me.opacity,De=Se.opacity,Ue=ze.opacity,Ne=De!==void 0,ke=Ue!==void 0;(f.isArrayOrTypedArray(Fe)||Ne||ke)&&(Ce.selectedOpacityFn=function(It){var Ot=It.mo===void 0?Me.opacity:It.mo;return It.selected?Ne?De:Ot:ke?Ue:g*Ot});var Oe=Me.color,Re=Se.color,je=ze.color;(Re||je)&&(Ce.selectedColorFn=function(It){var Ot=It.mcc||Oe;return It.selected?Re||Ot:je||Ot});var Ze=Me.size,Ye=Se.size,it=ze.size,dt=Ye!==void 0,ut=it!==void 0;return p.traceIs(Te,"symbols")&&(dt||ut)&&(Ce.selectedSizeFn=function(It){var Ot=It.mrc||Ze/2;return It.selected?dt?Ye/2:Ot:ut?it/2:Ot}),Ce},S.makeSelectedTextStyleFns=function(Te){var Ce={},ye=Te.selected||{},ge=Te.unselected||{},Me=Te.textfont||{},Se=ye.textfont||{},ze=ge.textfont||{},Fe=Me.color,De=Se.color,Ue=ze.color;return Ce.selectedTextColorFn=function(Ne){var ke=Ne.tc||Fe;return Ne.selected?De||ke:Ue||(De?ke:l.addOpacity(ke,g))},Ce},S.selectedPointStyle=function(Te,Ce){if(Te.size()&&Ce.selectedpoints){var ye=S.makeSelectedPointStyleFns(Ce),ge=Ce.marker||{},Me=[];ye.selectedOpacityFn&&Me.push(function(Se,ze){Se.style("opacity",ye.selectedOpacityFn(ze))}),ye.selectedColorFn&&Me.push(function(Se,ze){l.fill(Se,ye.selectedColorFn(ze))}),ye.selectedSizeFn&&Me.push(function(Se,ze){var Fe=ze.mx||ge.symbol||0,De=ye.selectedSizeFn(ze);Se.attr("d",M(S.symbolNumber(Fe),De,$e(ze,Ce),ne(ze,Ce))),ze.mrc2=De}),Me.length&&Te.each(function(Se){for(var ze=v.select(this),Fe=0;Fe<Me.length;Fe++)Me[Fe](ze,Se)})}},S.tryColorscale=function(Te,Ce){var ye=Ce?f.nestedProperty(Te,Ce).get():Te;if(ye){var ge=ye.color;if((ye.colorscale||ye._colorAx)&&f.isArrayOrTypedArray(ge))return o.makeColorScaleFuncFromTrace(ye)}return f.identity};var F,R,V={start:1,end:-1,middle:0,bottom:1,top:-1};function $(Te,Ce,ye,ge,Me){var Se=v.select(Te.node().parentNode),ze=Ce.indexOf("top")!==-1?"top":Ce.indexOf("bottom")!==-1?"bottom":"middle",Fe=Ce.indexOf("left")!==-1?"end":Ce.indexOf("right")!==-1?"start":"middle",De=ge?ge/.8+1:0,Ue=(u.lineCount(Te)-1)*h+1,Ne=V[Fe]*De,ke=.75*ye+V[ze]*De+(V[ze]-1)*Ue*ye/2;Te.attr("text-anchor",Fe),Me||Se.attr("transform",s(Ne,ke))}function U(Te,Ce){var ye=Te.ts||Ce.textfont.size;return y(ye)&&ye>0?ye:0}function Z(Te,Ce,ye){return ye&&(Te=ee(Te)),Ce?W(Te[1]):q(Te[0])}function q(Te){var Ce=v.round(Te,2);return F=Ce,Ce}function W(Te){var Ce=v.round(Te,2);return R=Ce,Ce}function Q(Te,Ce,ye,ge){var Me=Te[0]-Ce[0],Se=Te[1]-Ce[1],ze=ye[0]-Ce[0],Fe=ye[1]-Ce[1],De=Math.pow(Me*Me+Se*Se,.25),Ue=Math.pow(ze*ze+Fe*Fe,.25),Ne=(Ue*Ue*Me-De*De*ze)*ge,ke=(Ue*Ue*Se-De*De*Fe)*ge,Oe=3*Ue*(De+Ue),Re=3*De*(De+Ue);return[[q(Ce[0]+(Oe&&Ne/Oe)),W(Ce[1]+(Oe&&ke/Oe))],[q(Ce[0]-(Re&&Ne/Re)),W(Ce[1]-(Re&&ke/Re))]]}S.textPointStyle=function(Te,Ce,ye){if(Te.size()){var ge;if(Ce.selectedpoints){var Me=S.makeSelectedTextStyleFns(Ce);ge=Me.selectedTextColorFn}var Se=Ce.texttemplate,ze=ye._fullLayout;Te.each(function(Fe){var De=v.select(this),Ue=Se?f.extractOption(Fe,Ce,"txt","texttemplate"):f.extractOption(Fe,Ce,"tx","text");if(Ue||Ue===0){if(Se){var Ne=Ce._module.formatLabels,ke=Ne?Ne(Fe,Ce,ze):{},Oe={};x(Oe,Ce,Fe.i);var Re=Ce._meta||{};Ue=f.texttemplateString(Ue,ke,ze._d3locale,Oe,Fe,Re)}var je=Fe.tp||Ce.textposition,Ze=U(Fe,Ce),Ye=ge?ge(Fe):Fe.tc||Ce.textfont.color;De.call(S.font,{family:Fe.tf||Ce.textfont.family,weight:Fe.tw||Ce.textfont.weight,style:Fe.ty||Ce.textfont.style,variant:Fe.tv||Ce.textfont.variant,textcase:Fe.tC||Ce.textfont.textcase,lineposition:Fe.tE||Ce.textfont.lineposition,shadow:Fe.tS||Ce.textfont.shadow,size:Ze,color:Ye}).text(Ue).call(u.convertToTspans,ye).call($,je,Ze,Fe.mrc)}else De.remove()})}},S.selectedTextStyle=function(Te,Ce){if(Te.size()&&Ce.selectedpoints){var ye=S.makeSelectedTextStyleFns(Ce);Te.each(function(ge){var Me=v.select(this),Se=ye.selectedTextColorFn(ge),ze=ge.tp||Ce.textposition,Fe=U(ge,Ce);l.fill(Me,Se);var De=p.traceIs(Ce,"bar-like");$(Me,ze,Fe,ge.mrc2||ge.mrc,De)})}},S.smoothopen=function(Te,Ce){if(Te.length<3)return"M"+Te.join("L");var ye,ge="M"+Te[0],Me=[];for(ye=1;ye<Te.length-1;ye++)Me.push(Q(Te[ye-1],Te[ye],Te[ye+1],Ce));for(ge+="Q"+Me[0][0]+" "+Te[1],ye=2;ye<Te.length-1;ye++)ge+="C"+Me[ye-2][1]+" "+Me[ye-1][0]+" "+Te[ye];return ge+"Q"+Me[Te.length-3][1]+" "+Te[Te.length-1]},S.smoothclosed=function(Te,Ce){if(Te.length<3)return"M"+Te.join("L")+"Z";var ye,ge="M"+Te[0],Me=Te.length-1,Se=[Q(Te[Me],Te[0],Te[1],Ce)];for(ye=1;ye<Me;ye++)Se.push(Q(Te[ye-1],Te[ye],Te[ye+1],Ce));for(Se.push(Q(Te[Me-1],Te[Me],Te[0],Ce)),ye=1;ye<=Me;ye++)ge+="C"+Se[ye-1][1]+" "+Se[ye][0]+" "+Te[ye];return ge+"C"+Se[Me][1]+" "+Se[0][0]+" "+Te[0]+"Z"};var X={hv:function(Te,Ce,ye){return"H"+q(Ce[0])+"V"+Z(Ce,1,ye)},vh:function(Te,Ce,ye){return"V"+W(Ce[1])+"H"+Z(Ce,0,ye)},hvh:function(Te,Ce,ye){return"H"+q((Te[0]+Ce[0])/2)+"V"+W(Ce[1])+"H"+Z(Ce,0,ye)},vhv:function(Te,Ce,ye){return"V"+W((Te[1]+Ce[1])/2)+"H"+q(Ce[0])+"V"+Z(Ce,1,ye)}},J=function(Te,Ce,ye){return"L"+Z(Ce,0,ye)+","+Z(Ce,1,ye)};function ee(Te,Ce){var ye=Te.backoff,ge=Te.trace,Me=Te.d,Se=Te.i;if(ye&&ge&&ge.marker&&ge.marker.angle%360==0&&ge.line&&ge.line.shape!=="spline"){var ze=f.isArrayOrTypedArray(ye),Fe=Te,De=Ce?Ce[0]:F||0,Ue=Ce?Ce[1]:R||0,Ne=Fe[0],ke=Fe[1],Oe=Ne-De,Re=ke-Ue,je=Math.atan2(Re,Oe),Ze=ze?ye[Se]:ye;if(Ze==="auto"){var Ye=Fe.i;ge.type==="scatter"&&Ye--;var it=Fe.marker,dt=it.symbol;f.isArrayOrTypedArray(dt)&&(dt=dt[Ye]);var ut=it.size;f.isArrayOrTypedArray(ut)&&(ut=ut[Ye]),Ze=it?S.symbolBackOffs[S.symbolNumber(dt)]*ut:0,Ze+=S.getMarkerStandoff(Me[Ye],ge)||0}var It=Ne-Ze*Math.cos(je),Ot=ke-Ze*Math.sin(je);(It<=Ne&&It>=De||It>=Ne&&It<=De)&&(Ot<=ke&&Ot>=Ue||Ot>=ke&&Ot<=Ue)&&(Te=[It,Ot])}return Te}S.steps=function(Te){var Ce=X[Te]||J;return function(ye){for(var ge="M"+q(ye[0][0])+","+W(ye[0][1]),Me=ye.length,Se=1;Se<Me;Se++)ge+=Ce(ye[Se-1],ye[Se],Se===Me-1);return ge}},S.applyBackoff=ee,S.makeTester=function(){var Te=f.ensureSingleById(v.select("body"),"svg","js-plotly-tester",function(ye){ye.attr(d.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),Ce=f.ensureSingle(Te,"path","js-reference-point",function(ye){ye.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});S.tester=Te,S.testref=Ce},S.savedBBoxes={};var le=0;function oe(Te){var Ce=Te.getAttribute("data-unformatted");if(Ce!==null)return Ce+Te.getAttribute("data-math")+Te.getAttribute("text-anchor")+Te.getAttribute("style")}function se(Te,Ce){if(!Te)return null;var ye=Ce._context,ge=ye._exportedPlot?"":ye._baseUrl||"";return ge?"url('"+ge+"#"+Te+"')":"url(#"+Te+")"}S.bBox=function(Te,Ce,ye){var ge,Me,Se;if(ye||(ye=oe(Te)),ye){if(ge=S.savedBBoxes[ye])return f.extendFlat({},ge)}else if(Te.childNodes.length===1){var ze=Te.childNodes[0];if(ye=oe(ze)){var Fe=+ze.getAttribute("x")||0,De=+ze.getAttribute("y")||0,Ue=ze.getAttribute("transform");if(!Ue){var Ne=S.bBox(ze,!1,ye);return Fe&&(Ne.left+=Fe,Ne.right+=Fe),De&&(Ne.top+=De,Ne.bottom+=De),Ne}if(ye+="~"+Fe+"~"+De+"~"+Ue,ge=S.savedBBoxes[ye])return f.extendFlat({},ge)}}Ce?Me=Te:(Se=S.tester.node(),Me=Te.cloneNode(!0),Se.appendChild(Me)),v.select(Me).attr("transform",null).call(u.positionText,0,0);var ke=Me.getBoundingClientRect(),Oe=S.testref.node().getBoundingClientRect();Ce||Se.removeChild(Me);var Re={height:ke.height,width:ke.width,left:ke.left-Oe.left,top:ke.top-Oe.top,right:ke.right-Oe.left,bottom:ke.bottom-Oe.top};return le>=1e4&&(S.savedBBoxes={},le=0),ye&&(S.savedBBoxes[ye]=Re),le++,f.extendFlat({},Re)},S.setClipUrl=function(Te,Ce,ye){Te.attr("clip-path",se(Ce,ye))},S.getTranslate=function(Te){var Ce=(Te[Te.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(ye,ge,Me){return[ge,Me].join(" ")}).split(" ");return{x:+Ce[0]||0,y:+Ce[1]||0}},S.setTranslate=function(Te,Ce,ye){var ge=Te.attr?"attr":"getAttribute",Me=Te.attr?"attr":"setAttribute",Se=Te[ge]("transform")||"";return Ce=Ce||0,ye=ye||0,Se=Se.replace(/(\btranslate\(.*?\);?)/,"").trim(),Se=(Se+=s(Ce,ye)).trim(),Te[Me]("transform",Se),Se},S.getScale=function(Te){var Ce=(Te[Te.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(ye,ge,Me){return[ge,Me].join(" ")}).split(" ");return{x:+Ce[0]||1,y:+Ce[1]||1}},S.setScale=function(Te,Ce,ye){var ge=Te.attr?"attr":"getAttribute",Me=Te.attr?"attr":"setAttribute",Se=Te[ge]("transform")||"";return Ce=Ce||1,ye=ye||1,Se=Se.replace(/(\bscale\(.*?\);?)/,"").trim(),Se=(Se+="scale("+Ce+","+ye+")").trim(),Te[Me]("transform",Se),Se};var ce=/\s*sc.*/;S.setPointGroupScale=function(Te,Ce,ye){if(Ce=Ce||1,ye=ye||1,Te){var ge=Ce===1&&ye===1?"":"scale("+Ce+","+ye+")";Te.each(function(){var Me=(this.getAttribute("transform")||"").replace(ce,"");Me=(Me+=ge).trim(),this.setAttribute("transform",Me)})}};var ae=/translate\([^)]*\)\s*$/;function ne(Te,Ce){var ye;return Te&&(ye=Te.mf),ye===void 0&&(ye=Ce.marker&&Ce.marker.standoff||0),Ce._geo||Ce._xA?ye:-ye}S.setTextPointsScale=function(Te,Ce,ye){Te&&Te.each(function(){var ge,Me=v.select(this),Se=Me.select("text");if(Se.node()){var ze=parseFloat(Se.attr("x")||0),Fe=parseFloat(Se.attr("y")||0),De=(Me.attr("transform")||"").match(ae);ge=Ce===1&&ye===1?[]:[s(ze,Fe),"scale("+Ce+","+ye+")",s(-ze,-Fe)],De&&ge.push(De),Me.attr("transform",ge.join(""))}})},S.getMarkerStandoff=ne;var ie,ue,he,pe,me,_e,xe=Math.atan2,we=Math.cos,Ee=Math.sin;function Pe(Te,Ce){var ye=Ce[0],ge=Ce[1];return[ye*we(Te)-ge*Ee(Te),ye*Ee(Te)+ge*we(Te)]}function $e(Te,Ce){var ye,ge,Me=Te.ma;Me===void 0&&((Me=Ce.marker.angle)&&!f.isArrayOrTypedArray(Me)||(Me=0));var Se=Ce.marker.angleref;if(Se==="previous"||Se==="north"){if(Ce._geo){var ze=Ce._geo.project(Te.lonlat);ye=ze[0],ge=ze[1]}else{var Fe=Ce._xA,De=Ce._yA;if(!Fe||!De)return 90;ye=Fe.c2p(Te.x),ge=De.c2p(Te.y)}if(Ce._geo){var Ue,Ne=Te.lonlat[0],ke=Te.lonlat[1],Oe=Ce._geo.project([Ne,ke+1e-5]),Re=Ce._geo.project([Ne+1e-5,ke]),je=xe(Re[1]-ge,Re[0]-ye),Ze=xe(Oe[1]-ge,Oe[0]-ye);if(Se==="north")Ue=Me/180*Math.PI;else if(Se==="previous"){var Ye=Ne/180*Math.PI,it=ke/180*Math.PI,dt=ie/180*Math.PI,ut=ue/180*Math.PI,It=dt-Ye,Ot=we(ut)*Ee(It),Ft=Ee(ut)*we(it)-we(ut)*Ee(it)*we(It);Ue=-xe(Ot,Ft)-Math.PI,ie=Ne,ue=ke}var ot=Pe(je,[we(Ue),0]),tt=Pe(Ze,[Ee(Ue),0]);Me=xe(ot[1]+tt[1],ot[0]+tt[0])/Math.PI*180,Se!=="previous"||_e===Ce.uid&&Te.i===me+1||(Me=null)}if(Se==="previous"&&!Ce._geo)if(_e===Ce.uid&&Te.i===me+1&&y(ye)&&y(ge)){var vt=ye-he,At=ge-pe,Dt=Ce.line&&Ce.line.shape||"",Pt=Dt.slice(Dt.length-1);Pt==="h"&&(At=0),Pt==="v"&&(vt=0),Me+=xe(At,vt)/Math.PI*180+90}else Me=null}return he=ye,pe=ge,me=Te.i,_e=Ce.uid,Me}S.getMarkerAngle=$e},38882:function(c,m,a){var v,f,n,y,_=a(26953),p=a(45568).round,l="M0,0Z",o=Math.sqrt(2),s=Math.sqrt(3),u=Math.PI,d=Math.cos,h=Math.sin;function g(w){return w===null}function b(w,x,S){if(!(w&&w%360!=0||x))return S;if(n===w&&y===x&&v===S)return f;function k(U,Z){var q=d(U),W=h(U),Q=Z[0],X=Z[1]+(x||0);return[Q*q-X*W,Q*W+X*q]}n=w,y=x,v=S;for(var T=w/180*u,C=0,A=0,E=_(S),M="",I=0;I<E.length;I++){var N=E[I],z=N[0],F=C,R=A;if(z==="M"||z==="L")C=+N[1],A=+N[2];else if(z==="m"||z==="l")C+=+N[1],A+=+N[2];else if(z==="H")C=+N[1];else if(z==="h")C+=+N[1];else if(z==="V")A=+N[1];else if(z==="v")A+=+N[1];else if(z==="A"){C=+N[1],A=+N[2];var V=k(T,[+N[6],+N[7]]);N[6]=V[0],N[7]=V[1],N[3]=+N[3]+w}z!=="H"&&z!=="V"||(z="L"),z!=="h"&&z!=="v"||(z="l"),z!=="m"&&z!=="l"||(C-=F,A-=R);var $=k(T,[C,A]);z!=="H"&&z!=="V"||(z="L"),z!=="M"&&z!=="L"&&z!=="m"&&z!=="l"||(N[1]=$[0],N[2]=$[1]),N[0]=z,M+=N[0]+N.slice(1).join(",")}return f=M,M}c.exports={circle:{n:0,f:function(w,x,S){if(g(x))return l;var k=p(w,2),T="M"+k+",0A"+k+","+k+" 0 1,1 0,-"+k+"A"+k+","+k+" 0 0,1 "+k+",0Z";return S?b(x,S,T):T}},square:{n:1,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M"+k+","+k+"H-"+k+"V-"+k+"H"+k+"Z")}},diamond:{n:2,f:function(w,x,S){if(g(x))return l;var k=p(1.3*w,2);return b(x,S,"M"+k+",0L0,"+k+"L-"+k+",0L0,-"+k+"Z")}},cross:{n:3,f:function(w,x,S){if(g(x))return l;var k=p(.4*w,2),T=p(1.2*w,2);return b(x,S,"M"+T+","+k+"H"+k+"V"+T+"H-"+k+"V"+k+"H-"+T+"V-"+k+"H-"+k+"V-"+T+"H"+k+"V-"+k+"H"+T+"Z")}},x:{n:4,f:function(w,x,S){if(g(x))return l;var k=p(.8*w/o,2),T="l"+k+","+k,C="l"+k+",-"+k,A="l-"+k+",-"+k,E="l-"+k+","+k;return b(x,S,"M0,"+k+T+C+A+C+A+E+A+E+T+E+T+"Z")}},"triangle-up":{n:5,f:function(w,x,S){if(g(x))return l;var k=p(2*w/s,2);return b(x,S,"M-"+k+","+p(w/2,2)+"H"+k+"L0,-"+p(w,2)+"Z")}},"triangle-down":{n:6,f:function(w,x,S){if(g(x))return l;var k=p(2*w/s,2);return b(x,S,"M-"+k+",-"+p(w/2,2)+"H"+k+"L0,"+p(w,2)+"Z")}},"triangle-left":{n:7,f:function(w,x,S){if(g(x))return l;var k=p(2*w/s,2);return b(x,S,"M"+p(w/2,2)+",-"+k+"V"+k+"L-"+p(w,2)+",0Z")}},"triangle-right":{n:8,f:function(w,x,S){if(g(x))return l;var k=p(2*w/s,2);return b(x,S,"M-"+p(w/2,2)+",-"+k+"V"+k+"L"+p(w,2)+",0Z")}},"triangle-ne":{n:9,f:function(w,x,S){if(g(x))return l;var k=p(.6*w,2),T=p(1.2*w,2);return b(x,S,"M-"+T+",-"+k+"H"+k+"V"+T+"Z")}},"triangle-se":{n:10,f:function(w,x,S){if(g(x))return l;var k=p(.6*w,2),T=p(1.2*w,2);return b(x,S,"M"+k+",-"+T+"V"+k+"H-"+T+"Z")}},"triangle-sw":{n:11,f:function(w,x,S){if(g(x))return l;var k=p(.6*w,2),T=p(1.2*w,2);return b(x,S,"M"+T+","+k+"H-"+k+"V-"+T+"Z")}},"triangle-nw":{n:12,f:function(w,x,S){if(g(x))return l;var k=p(.6*w,2),T=p(1.2*w,2);return b(x,S,"M-"+k+","+T+"V-"+k+"H"+T+"Z")}},pentagon:{n:13,f:function(w,x,S){if(g(x))return l;var k=p(.951*w,2),T=p(.588*w,2),C=p(-w,2),A=p(-.309*w,2);return b(x,S,"M"+k+","+A+"L"+T+","+p(.809*w,2)+"H-"+T+"L-"+k+","+A+"L0,"+C+"Z")}},hexagon:{n:14,f:function(w,x,S){if(g(x))return l;var k=p(w,2),T=p(w/2,2),C=p(w*s/2,2);return b(x,S,"M"+C+",-"+T+"V"+T+"L0,"+k+"L-"+C+","+T+"V-"+T+"L0,-"+k+"Z")}},hexagon2:{n:15,f:function(w,x,S){if(g(x))return l;var k=p(w,2),T=p(w/2,2),C=p(w*s/2,2);return b(x,S,"M-"+T+","+C+"H"+T+"L"+k+",0L"+T+",-"+C+"H-"+T+"L-"+k+",0Z")}},octagon:{n:16,f:function(w,x,S){if(g(x))return l;var k=p(.924*w,2),T=p(.383*w,2);return b(x,S,"M-"+T+",-"+k+"H"+T+"L"+k+",-"+T+"V"+T+"L"+T+","+k+"H-"+T+"L-"+k+","+T+"V-"+T+"Z")}},star:{n:17,f:function(w,x,S){if(g(x))return l;var k=1.4*w,T=p(.225*k,2),C=p(.951*k,2),A=p(.363*k,2),E=p(.588*k,2),M=p(-k,2),I=p(-.309*k,2),N=p(.118*k,2),z=p(.809*k,2);return b(x,S,"M"+T+","+I+"H"+C+"L"+A+","+N+"L"+E+","+z+"L0,"+p(.382*k,2)+"L-"+E+","+z+"L-"+A+","+N+"L-"+C+","+I+"H-"+T+"L0,"+M+"Z")}},hexagram:{n:18,f:function(w,x,S){if(g(x))return l;var k=p(.66*w,2),T=p(.38*w,2),C=p(.76*w,2);return b(x,S,"M-"+C+",0l-"+T+",-"+k+"h"+C+"l"+T+",-"+k+"l"+T+","+k+"h"+C+"l-"+T+","+k+"l"+T+","+k+"h-"+C+"l-"+T+","+k+"l-"+T+",-"+k+"h-"+C+"Z")}},"star-triangle-up":{n:19,f:function(w,x,S){if(g(x))return l;var k=p(w*s*.8,2),T=p(.8*w,2),C=p(1.6*w,2),A=p(4*w,2),E="A "+A+","+A+" 0 0 1 ";return b(x,S,"M-"+k+","+T+E+k+","+T+E+"0,-"+C+E+"-"+k+","+T+"Z")}},"star-triangle-down":{n:20,f:function(w,x,S){if(g(x))return l;var k=p(w*s*.8,2),T=p(.8*w,2),C=p(1.6*w,2),A=p(4*w,2),E="A "+A+","+A+" 0 0 1 ";return b(x,S,"M"+k+",-"+T+E+"-"+k+",-"+T+E+"0,"+C+E+k+",-"+T+"Z")}},"star-square":{n:21,f:function(w,x,S){if(g(x))return l;var k=p(1.1*w,2),T=p(2*w,2),C="A "+T+","+T+" 0 0 1 ";return b(x,S,"M-"+k+",-"+k+C+"-"+k+","+k+C+k+","+k+C+k+",-"+k+C+"-"+k+",-"+k+"Z")}},"star-diamond":{n:22,f:function(w,x,S){if(g(x))return l;var k=p(1.4*w,2),T=p(1.9*w,2),C="A "+T+","+T+" 0 0 1 ";return b(x,S,"M-"+k+",0"+C+"0,"+k+C+k+",0"+C+"0,-"+k+C+"-"+k+",0Z")}},"diamond-tall":{n:23,f:function(w,x,S){if(g(x))return l;var k=p(.7*w,2),T=p(1.4*w,2);return b(x,S,"M0,"+T+"L"+k+",0L0,-"+T+"L-"+k+",0Z")}},"diamond-wide":{n:24,f:function(w,x,S){if(g(x))return l;var k=p(1.4*w,2),T=p(.7*w,2);return b(x,S,"M0,"+T+"L"+k+",0L0,-"+T+"L-"+k+",0Z")}},hourglass:{n:25,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M"+k+","+k+"H-"+k+"L"+k+",-"+k+"H-"+k+"Z")},noDot:!0},bowtie:{n:26,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M"+k+","+k+"V-"+k+"L-"+k+","+k+"V-"+k+"Z")},noDot:!0},"circle-cross":{n:27,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M0,"+k+"V-"+k+"M"+k+",0H-"+k+"M"+k+",0A"+k+","+k+" 0 1,1 0,-"+k+"A"+k+","+k+" 0 0,1 "+k+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(w,x,S){if(g(x))return l;var k=p(w,2),T=p(w/o,2);return b(x,S,"M"+T+","+T+"L-"+T+",-"+T+"M"+T+",-"+T+"L-"+T+","+T+"M"+k+",0A"+k+","+k+" 0 1,1 0,-"+k+"A"+k+","+k+" 0 0,1 "+k+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M0,"+k+"V-"+k+"M"+k+",0H-"+k+"M"+k+","+k+"H-"+k+"V-"+k+"H"+k+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M"+k+","+k+"L-"+k+",-"+k+"M"+k+",-"+k+"L-"+k+","+k+"M"+k+","+k+"H-"+k+"V-"+k+"H"+k+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(w,x,S){if(g(x))return l;var k=p(1.3*w,2);return b(x,S,"M"+k+",0L0,"+k+"L-"+k+",0L0,-"+k+"ZM0,-"+k+"V"+k+"M-"+k+",0H"+k)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(w,x,S){if(g(x))return l;var k=p(1.3*w,2),T=p(.65*w,2);return b(x,S,"M"+k+",0L0,"+k+"L-"+k+",0L0,-"+k+"ZM-"+T+",-"+T+"L"+T+","+T+"M-"+T+","+T+"L"+T+",-"+T)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(w,x,S){if(g(x))return l;var k=p(1.4*w,2);return b(x,S,"M0,"+k+"V-"+k+"M"+k+",0H-"+k)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M"+k+","+k+"L-"+k+",-"+k+"M"+k+",-"+k+"L-"+k+","+k)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(w,x,S){if(g(x))return l;var k=p(1.2*w,2),T=p(.85*w,2);return b(x,S,"M0,"+k+"V-"+k+"M"+k+",0H-"+k+"M"+T+","+T+"L-"+T+",-"+T+"M"+T+",-"+T+"L-"+T+","+T)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(w,x,S){if(g(x))return l;var k=p(w/2,2),T=p(w,2);return b(x,S,"M"+k+","+T+"V-"+T+"M"+(k-T)+",-"+T+"V"+T+"M"+T+","+k+"H-"+T+"M-"+T+","+(k-T)+"H"+T)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(w,x,S){if(g(x))return l;var k=p(1.2*w,2),T=p(1.6*w,2),C=p(.8*w,2);return b(x,S,"M-"+k+","+C+"L0,0M"+k+","+C+"L0,0M0,-"+T+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(w,x,S){if(g(x))return l;var k=p(1.2*w,2),T=p(1.6*w,2),C=p(.8*w,2);return b(x,S,"M-"+k+",-"+C+"L0,0M"+k+",-"+C+"L0,0M0,"+T+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(w,x,S){if(g(x))return l;var k=p(1.2*w,2),T=p(1.6*w,2),C=p(.8*w,2);return b(x,S,"M"+C+","+k+"L0,0M"+C+",-"+k+"L0,0M-"+T+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(w,x,S){if(g(x))return l;var k=p(1.2*w,2),T=p(1.6*w,2),C=p(.8*w,2);return b(x,S,"M-"+C+","+k+"L0,0M-"+C+",-"+k+"L0,0M"+T+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(w,x,S){if(g(x))return l;var k=p(1.4*w,2);return b(x,S,"M"+k+",0H-"+k)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(w,x,S){if(g(x))return l;var k=p(1.4*w,2);return b(x,S,"M0,"+k+"V-"+k)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M"+k+",-"+k+"L-"+k+","+k)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M"+k+","+k+"L-"+k+",-"+k)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M0,0L-"+k+","+p(2*w,2)+"H"+k+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M0,0L-"+k+",-"+p(2*w,2)+"H"+k+"Z")},noDot:!0},"arrow-left":{n:47,f:function(w,x,S){if(g(x))return l;var k=p(2*w,2),T=p(w,2);return b(x,S,"M0,0L"+k+",-"+T+"V"+T+"Z")},noDot:!0},"arrow-right":{n:48,f:function(w,x,S){if(g(x))return l;var k=p(2*w,2),T=p(w,2);return b(x,S,"M0,0L-"+k+",-"+T+"V"+T+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M-"+k+",0H"+k+"M0,0L-"+k+","+p(2*w,2)+"H"+k+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M-"+k+",0H"+k+"M0,0L-"+k+",-"+p(2*w,2)+"H"+k+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(w,x,S){if(g(x))return l;var k=p(2*w,2),T=p(w,2);return b(x,S,"M0,-"+T+"V"+T+"M0,0L"+k+",-"+T+"V"+T+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(w,x,S){if(g(x))return l;var k=p(2*w,2),T=p(w,2);return b(x,S,"M0,-"+T+"V"+T+"M0,0L-"+k+",-"+T+"V"+T+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(w,x,S){if(g(x))return l;var k=u/2.5,T=2*w*d(k),C=2*w*h(k);return b(x,S,"M0,0L"+-T+","+C+"L"+T+","+C+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(w,x,S){if(g(x))return l;var k=u/4,T=2*w*d(k),C=2*w*h(k);return b(x,S,"M0,0L"+-T+","+C+"A "+2*w+","+2*w+" 0 0 1 "+T+","+C+"Z")},backoff:.4,noDot:!0}}},75568:function(c){c.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}},352:function(c,m,a){var v=a(10721),f=a(33626),n=a(29714),y=a(34809),_=a(25589);function p(l,o,s,u){var d=o["error_"+u]||{},h=[];if(d.visible&&["linear","log"].indexOf(s.type)!==-1){for(var g=_(d),b=0;b<l.length;b++){var w=l[b],x=w.i;if(x===void 0)x=b;else if(x===null)continue;var S=w[u];if(v(s.c2l(S))){var k=g(S,x);if(v(k[0])&&v(k[1])){var T=w[u+"s"]=S-k[0],C=w[u+"h"]=S+k[1];h.push(T,C)}}}var A=s._id,E=o._extremes[A],M=n.findExtremes(s,h,y.extendFlat({tozero:E.opts.tozero},{padded:!0}));E.min=E.min.concat(M.min),E.max=E.max.concat(M.max)}}c.exports=function(l){for(var o=l.calcdata,s=0;s<o.length;s++){var u=o[s],d=u[0].trace;if(d.visible===!0&&f.traceIs(d,"errorBarsOK")){var h=n.getFromId(l,d.xaxis),g=n.getFromId(l,d.yaxis);p(u,d,h,"x"),p(u,d,g,"y")}}}},25589:function(c){function m(a,v){return a==="percent"?function(f){return Math.abs(f*v/100)}:a==="constant"?function(){return Math.abs(v)}:a==="sqrt"?function(f){return Math.sqrt(Math.abs(f))}:void 0}c.exports=function(a){var v=a.type,f=a.symmetric;if(v==="data"){var n=a.array||[];if(f)return function(l,o){var s=+n[o];return[s,s]};var y=a.arrayminus||[];return function(l,o){var s=+n[o],u=+y[o];return isNaN(s)&&isNaN(u)?[NaN,NaN]:[u||0,s||0]}}var _=m(v,a.value),p=m(v,a.valueminus);return f||a.valueminus===void 0?function(l){var o=_(l);return[o,o]}:function(l){return[p(l),_(l)]}}},5543:function(c,m,a){var v=a(10721),f=a(33626),n=a(34809),y=a(78032),_=a(75568);c.exports=function(p,l,o,s){var u="error_"+s.axis,d=y.newContainer(l,u),h=p[u]||{};function g(S,k){return n.coerce(h,d,_,S,k)}if(g("visible",h.array!==void 0||h.value!==void 0||h.type==="sqrt")!==!1){var b=g("type","array"in h?"data":"percent"),w=!0;b!=="sqrt"&&(w=g("symmetric",!((b==="data"?"arrayminus":"valueminus")in h))),b==="data"?(g("array"),g("traceref"),w||(g("arrayminus"),g("tracerefminus"))):b!=="percent"&&b!=="constant"||(g("value"),w||g("valueminus"));var x="copy_"+s.inherit+"style";s.inherit&&(l["error_"+s.inherit]||{}).visible&&g(x,!(h.color||v(h.thickness)||v(h.width))),s.inherit&&d[x]||(g("color",o),g("thickness"),g("width",f.traceIs(l,"gl3d")?0:4))}}},77901:function(c,m,a){var v=a(34809),f=a(13582).overrideAll,n=a(75568),y={error_x:v.extendFlat({},n),error_y:v.extendFlat({},n)};delete y.error_x.copy_zstyle,delete y.error_y.copy_zstyle,delete y.error_y.copy_ystyle;var _={error_x:v.extendFlat({},n),error_y:v.extendFlat({},n),error_z:v.extendFlat({},n)};delete _.error_x.copy_ystyle,delete _.error_y.copy_ystyle,delete _.error_z.copy_ystyle,delete _.error_z.copy_zstyle,c.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:y,bar:y,histogram:y,scatter3d:f(_,"calc","nested"),scattergl:f(y,"calc","nested")}},supplyDefaults:a(5543),calc:a(352),makeComputeError:a(25589),plot:a(42130),style:a(22800),hoverInfo:function(p,l,o){(l.error_y||{}).visible&&(o.yerr=p.yh-p.y,l.error_y.symmetric||(o.yerrneg=p.y-p.ys)),(l.error_x||{}).visible&&(o.xerr=p.xh-p.x,l.error_x.symmetric||(o.xerrneg=p.x-p.xs))}}},42130:function(c,m,a){var v=a(45568),f=a(10721),n=a(62203),y=a(64726);c.exports=function(_,p,l,o){var s=l.xaxis,u=l.yaxis,d=o&&o.duration>0,h=_._context.staticPlot;p.each(function(g){var b,w=g[0].trace,x=w.error_x||{},S=w.error_y||{};w.ids&&(b=function(A){return A.id});var k=y.hasMarkers(w)&&w.marker.maxdisplayed>0;S.visible||x.visible||(g=[]);var T=v.select(this).selectAll("g.errorbar").data(g,b);if(T.exit().remove(),g.length){x.visible||T.selectAll("path.xerror").remove(),S.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var C=T.enter().append("g").classed("errorbar",!0);d&&C.style("opacity",0).transition().duration(o.duration).style("opacity",1),n.setClipUrl(T,l.layerClipId,_),T.each(function(A){var E=v.select(this),M=function(V,$,U){var Z={x:$.c2p(V.x),y:U.c2p(V.y)};return V.yh!==void 0&&(Z.yh=U.c2p(V.yh),Z.ys=U.c2p(V.ys),f(Z.ys)||(Z.noYS=!0,Z.ys=U.c2p(V.ys,!0))),V.xh!==void 0&&(Z.xh=$.c2p(V.xh),Z.xs=$.c2p(V.xs),f(Z.xs)||(Z.noXS=!0,Z.xs=$.c2p(V.xs,!0))),Z}(A,s,u);if(!k||A.vis){var I,N=E.select("path.yerror");if(S.visible&&f(M.x)&&f(M.yh)&&f(M.ys)){var z=S.width;I="M"+(M.x-z)+","+M.yh+"h"+2*z+"m-"+z+",0V"+M.ys,M.noYS||(I+="m-"+z+",0h"+2*z),N.size()?d&&(N=N.transition().duration(o.duration).ease(o.easing)):N=E.append("path").style("vector-effect",h?"none":"non-scaling-stroke").classed("yerror",!0),N.attr("d",I)}else N.remove();var F=E.select("path.xerror");if(x.visible&&f(M.y)&&f(M.xh)&&f(M.xs)){var R=(x.copy_ystyle?S:x).width;I="M"+M.xh+","+(M.y-R)+"v"+2*R+"m0,-"+R+"H"+M.xs,M.noXS||(I+="m0,-"+R+"v"+2*R),F.size()?d&&(F=F.transition().duration(o.duration).ease(o.easing)):F=E.append("path").style("vector-effect",h?"none":"non-scaling-stroke").classed("xerror",!0),F.attr("d",I)}else F.remove()}})}})}},22800:function(c,m,a){var v=a(45568),f=a(78766);c.exports=function(n){n.each(function(y){var _=y[0].trace,p=_.error_y||{},l=_.error_x||{},o=v.select(this);o.selectAll("path.yerror").style("stroke-width",p.thickness+"px").call(f.stroke,p.color),l.copy_ystyle&&(l=p),o.selectAll("path.xerror").style("stroke-width",l.thickness+"px").call(f.stroke,l.color)})}},70192:function(c,m,a){var v=a(80337),f=a(6811).hoverlabel,n=a(93049).extendFlat;c.exports={hoverlabel:{bgcolor:n({},f.bgcolor,{arrayOk:!0}),bordercolor:n({},f.bordercolor,{arrayOk:!0}),font:v({arrayOk:!0,editType:"none"}),align:n({},f.align,{arrayOk:!0}),namelength:n({},f.namelength,{arrayOk:!0}),editType:"none"}}},83552:function(c,m,a){var v=a(34809),f=a(33626);function n(y,_,p,l){l=l||v.identity,Array.isArray(y)&&(_[0][p]=l(y))}c.exports=function(y){var _=y.calcdata,p=y._fullLayout;function l(h){return function(g){return v.coerceHoverinfo({hoverinfo:g},{_module:h._module},p)}}for(var o=0;o<_.length;o++){var s=_[o],u=s[0].trace;if(!f.traceIs(u,"pie-like")){var d=f.traceIs(u,"2dMap")?n:v.fillArray;d(u.hoverinfo,s,"hi",l(u)),u.hovertemplate&&d(u.hovertemplate,s,"ht"),u.hoverlabel&&(d(u.hoverlabel.bgcolor,s,"hbg"),d(u.hoverlabel.bordercolor,s,"hbc"),d(u.hoverlabel.font.size,s,"hts"),d(u.hoverlabel.font.color,s,"htc"),d(u.hoverlabel.font.family,s,"htf"),d(u.hoverlabel.font.weight,s,"htw"),d(u.hoverlabel.font.style,s,"hty"),d(u.hoverlabel.font.variant,s,"htv"),d(u.hoverlabel.namelength,s,"hnl"),d(u.hoverlabel.align,s,"hta"))}}}},94225:function(c,m,a){var v=a(33626),f=a(38103).hover;c.exports=function(n,y,_){var p=v.getComponentMethod("annotations","onClick")(n,n._hoverdata);function l(){n.emit("plotly_click",{points:n._hoverdata,event:y})}_!==void 0&&f(n,y,_,!0),n._hoverdata&&y&&y.target&&(p&&p.then?p.then(l):l(),y.stopImmediatePropagation&&y.stopImmediatePropagation())}},85988:function(c){c.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},3239:function(c,m,a){var v=a(34809),f=a(70192),n=a(26430);c.exports=function(y,_,p,l){var o=v.extendFlat({},l.hoverlabel);_.hovertemplate&&(o.namelength=-1),n(y,_,function(s,u){return v.coerce(y,_,f,s,u)},o)}},36040:function(c,m,a){var v=a(34809);m.getSubplot=function(l){return l.subplot||l.xaxis+l.yaxis||l.geo},m.isTraceInSubplots=function(l,o){if(l.type==="splom"){for(var s=l.xaxes||[],u=l.yaxes||[],d=0;d<s.length;d++)for(var h=0;h<u.length;h++)if(o.indexOf(s[d]+u[h])!==-1)return!0;return!1}return o.indexOf(m.getSubplot(l))!==-1},m.flat=function(l,o){for(var s=new Array(l.length),u=0;u<l.length;u++)s[u]=o;return s},m.p2c=function(l,o){for(var s=new Array(l.length),u=0;u<l.length;u++)s[u]=l[u].p2c(o);return s},m.getDistanceFunction=function(l,o,s,u){return l==="closest"?u||m.quadrature(o,s):l.charAt(0)==="x"?o:s},m.getClosest=function(l,o,s){if(s.index!==!1)s.index>=0&&s.index<l.length?s.distance=0:s.index=!1;else for(var u=0;u<l.length;u++){var d=o(l[u]);d<=s.distance&&(s.index=u,s.distance=d)}return s},m.inbox=function(l,o,s){return l*o<0||l===0?s:1/0},m.quadrature=function(l,o){return function(s){var u=l(s),d=o(s);return Math.sqrt(u*u+d*d)}},m.makeEventData=function(l,o,s){var u="index"in l?l.index:l.pointNumber,d={data:o._input,fullData:o,curveNumber:o.index,pointNumber:u};if(o._indexToPoints){var h=o._indexToPoints[u];h.length===1?d.pointIndex=h[0]:d.pointIndices=h}else d.pointIndex=u;return o._module.eventData?d=o._module.eventData(d,l,o,s,u):("xVal"in l?d.x=l.xVal:"x"in l&&(d.x=l.x),"yVal"in l?d.y=l.yVal:"y"in l&&(d.y=l.y),l.xa&&(d.xaxis=l.xa),l.ya&&(d.yaxis=l.ya),l.zLabelVal!==void 0&&(d.z=l.zLabelVal)),m.appendArrayPointValue(d,o,u),d},m.appendArrayPointValue=function(l,o,s){var u=o._arrayAttrs;if(u)for(var d=0;d<u.length;d++){var h=u[d],g=n(h);if(l[g]===void 0){var b=y(v.nestedProperty(o,h).get(),s);b!==void 0&&(l[g]=b)}}},m.appendArrayMultiPointValues=function(l,o,s){var u=o._arrayAttrs;if(u)for(var d=0;d<u.length;d++){var h=u[d],g=n(h);if(l[g]===void 0){for(var b=v.nestedProperty(o,h).get(),w=new Array(s.length),x=0;x<s.length;x++)w[x]=y(b,s[x]);l[g]=w}}};var f={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function n(l){return f[l]||l}function y(l,o){return Array.isArray(o)?Array.isArray(l)&&Array.isArray(l[o[0]])?l[o[0]][o[1]]:void 0:l[o]}var _={x:!0,y:!0},p={"x unified":!0,"y unified":!0};m.isUnifiedHover=function(l){return typeof l=="string"&&!!p[l]},m.isXYhover=function(l){return typeof l=="string"&&!!_[l]}},38103:function(c,m,a){var v=a(45568),f=a(10721),n=a(65657),y=a(34809),_=y.pushUnique,p=y.strTranslate,l=y.strRotate,o=a(68596),s=a(30635),u=a(93134),d=a(62203),h=a(78766),g=a(14751),b=a(29714),w=a(54826).zindexSeparator,x=a(33626),S=a(36040),k=a(85988),T=a(73970),C=a(6134),A=k.YANGLE,E=Math.PI*A/180,M=1/Math.sin(E),I=Math.cos(E),N=Math.sin(E),z=k.HOVERARROWSIZE,F=k.HOVERTEXTPAD,R={box:!0,ohlc:!0,violin:!0,candlestick:!0},V={scatter:!0,scattergl:!0,splom:!0};function $(ie,ue){return ie.distance-ue.distance}function U(ie){return[ie.trace.index,ie.index,ie.x0,ie.y0,ie.name,ie.attr,ie.xa?ie.xa._id:"",ie.ya?ie.ya._id:""].join(",")}m.hover=function(ie,ue,he,pe){ie=y.getGraphDiv(ie);var me=ue.target;y.throttle(ie._fullLayout._uid+k.HOVERID,k.HOVERMINTIME,function(){(function(_e,xe,we,Ee,Pe){we||(we="xy"),typeof we=="string"&&(we=we.split(w)[0]);var $e,Te,Ce,ye=Array.isArray(we)?we:[we],ge=_e._fullLayout,Me=ge.hoversubplots,Se=ge._plots||[],ze=Se[we],Fe=ge._has("cartesian"),De=xe.hovermode||ge.hovermode,Ue=(De||"").charAt(0)==="x",Ne=(De||"").charAt(0)==="y";if(Fe&&(Ue||Ne)&&Me==="axis"){for(var ke=ye.length,Oe=0;Oe<ke;Oe++)if(Se[$e=ye[Oe]]){Te=b.getFromId(_e,$e,"x"),Ce=b.getFromId(_e,$e,"y");var Re=(Ue?Te:Ce)._subplotsWith;if(Re&&Re.length)for(var je=0;je<Re.length;je++)_(ye,Re[je])}}if(ze&&Me!=="single"){var Ze=ze.overlays.map(function(sa){return sa.id});ye=ye.concat(Ze)}for(var Ye=ye.length,it=new Array(Ye),dt=new Array(Ye),ut=!1,It=0;It<Ye;It++)if(Se[$e=ye[It]])ut=!0,it[It]=Se[$e].xaxis,dt[It]=Se[$e].yaxis;else{if(!ge[$e]||!ge[$e]._subplot)return void y.warn("Unrecognized subplot: "+$e);var Ot=ge[$e]._subplot;it[It]=Ot.xaxis,dt[It]=Ot.yaxis}if(De&&!ut&&(De="closest"),["x","y","closest","x unified","y unified"].indexOf(De)===-1||!_e.calcdata||_e.querySelector(".zoombox")||_e._dragging)return g.unhoverRaw(_e,xe);var Ft=ge.hoverdistance;Ft===-1&&(Ft=1/0);var ot=ge.spikedistance;ot===-1&&(ot=1/0);var tt,vt,At,Dt,Pt,et,rt,We,nt,_t,mt,St,Bt,Je=[],Xe=[],yt={hLinePoint:null,vLinePoint:null},Et=!1;if(Array.isArray(xe))for(De="array",At=0;At<xe.length;At++)(Pt=_e.calcdata[xe[At].curveNumber||0])&&(et=Pt[0].trace,Pt[0].trace.hoverinfo!=="skip"&&(Xe.push(Pt),et.orientation==="h"&&(Et=!0)));else{var Ct,gt,$t=_e.calcdata.slice();for($t.sort(function(sa,Ia){return(sa[0].trace.zorder||0)-(Ia[0].trace.zorder||0)}),Dt=0;Dt<$t.length;Dt++)Pt=$t[Dt],(et=Pt[0].trace).hoverinfo!=="skip"&&S.isTraceInSubplots(et,ye)&&(Xe.push(Pt),et.orientation==="h"&&(Et=!0));if(Pe){if(o.triggerHandler(_e,"plotly_beforehover",xe)===!1)return;var Lt=Pe.getBoundingClientRect();Ct=xe.clientX-Lt.left,gt=xe.clientY-Lt.top,ge._calcInverseTransform(_e);var jt=y.apply3DTransform(ge._invTransform)(Ct,gt);if(Ct=jt[0],gt=jt[1],Ct<0||Ct>it[0]._length||gt<0||gt>dt[0]._length)return g.unhoverRaw(_e,xe)}else Ct="xpx"in xe?xe.xpx:it[0]._length/2,gt="ypx"in xe?xe.ypx:dt[0]._length/2;if(xe.pointerX=Ct+it[0]._offset,xe.pointerY=gt+dt[0]._offset,tt="xval"in xe?S.flat(ye,xe.xval):S.p2c(it,Ct),vt="yval"in xe?S.flat(ye,xe.yval):S.p2c(dt,gt),!f(tt[0])||!f(vt[0]))return y.warn("Fx.hover failed",xe,_e),g.unhoverRaw(_e,xe)}var Rt=1/0;function Vt(sa,Ia){for(Dt=0;Dt<Xe.length;Dt++)if((Pt=Xe[Dt])&&Pt[0]&&Pt[0].trace&&(et=Pt[0].trace).visible===!0&&et._length!==0&&["carpet","contourcarpet"].indexOf(et._module.name)===-1){if(nt=De,S.isUnifiedHover(nt)&&(nt=nt.charAt(0)),et.type==="splom"?rt=ye[We=0]:(rt=S.getSubplot(et),We=ye.indexOf(rt)),St={cd:Pt,trace:et,xa:it[We],ya:dt[We],maxHoverDistance:Ft,maxSpikeDistance:ot,index:!1,distance:Math.min(Rt,Ft),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:h.defaultLine,name:et.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},ge[rt]&&(St.subplot=ge[rt]._subplot),ge._splomScenes&&ge._splomScenes[et.uid]&&(St.scene=ge._splomScenes[et.uid]),nt==="array"){var Ma=xe[Dt];"pointNumber"in Ma?(St.index=Ma.pointNumber,nt="closest"):(nt="","xval"in Ma&&(_t=Ma.xval,nt="x"),"yval"in Ma&&(mt=Ma.yval,nt=nt?"closest":"y"))}else sa!==void 0&&Ia!==void 0?(_t=sa,mt=Ia):(_t=tt[We],mt=vt[We]);if(Bt=Je.length,Ft!==0)if(et._module&&et._module.hoverPoints){var $a=et._module.hoverPoints(St,_t,mt,nt,{finiteRange:!0,hoverLayer:ge._hoverlayer,hoversubplots:Me,gd:_e});if($a)for(var Pa,Sa=0;Sa<$a.length;Sa++)Pa=$a[Sa],f(Pa.x0)&&f(Pa.y0)&&Je.push(J(Pa,De))}else y.log("Unrecognized trace type in hover:",et);if(De==="closest"&&Je.length>Bt&&(Je.splice(0,Bt),Rt=Je[0].distance),Fe&&ot!==0&&Je.length===0){St.distance=ot,St.index=!1;var na=et._module.hoverPoints(St,_t,mt,"closest",{hoverLayer:ge._hoverlayer});if(na&&(na=na.filter(function(an){return an.spikeDistance<=ot})),na&&na.length){var ea,ga=na.filter(function(an){return an.xa.showspikes&&an.xa.spikesnap!=="hovered data"});if(ga.length){var Va=ga[0];f(Va.x0)&&f(Va.y0)&&(ea=ta(Va),(!yt.vLinePoint||yt.vLinePoint.spikeDistance>ea.spikeDistance)&&(yt.vLinePoint=ea))}var en=na.filter(function(an){return an.ya.showspikes&&an.ya.spikesnap!=="hovered data"});if(en.length){var tn=en[0];f(tn.x0)&&f(tn.y0)&&(ea=ta(tn),(!yt.hLinePoint||yt.hLinePoint.spikeDistance>ea.spikeDistance)&&(yt.hLinePoint=ea))}}}}}function Qt(sa,Ia,Ma){for(var $a,Pa=null,Sa=1/0,na=0;na<sa.length;na++)Te&&Te._id!==sa[na].xa._id||Ce&&Ce._id!==sa[na].ya._id||($a=sa[na].spikeDistance,Ma&&na===0&&($a=-1/0),$a<=Sa&&$a<=Ia&&(Pa=sa[na],Sa=$a));return Pa}function ta(sa){return sa?{xa:sa.xa,ya:sa.ya,x:sa.xSpike!==void 0?sa.xSpike:(sa.x0+sa.x1)/2,y:sa.ySpike!==void 0?sa.ySpike:(sa.y0+sa.y1)/2,distance:sa.distance,spikeDistance:sa.spikeDistance,curveNumber:sa.trace.index,color:sa.color,pointNumber:sa.index}:null}Vt();var _a={fullLayout:ge,container:ge._hoverlayer,event:xe},ka=_e._spikepoints,va={vLinePoint:yt.vLinePoint,hLinePoint:yt.hLinePoint};_e._spikepoints=va;var ia=function(){var sa=Je.filter(function(Ma){return Te&&Te._id===Ma.xa._id&&Ce&&Ce._id===Ma.ya._id}),Ia=Je.filter(function(Ma){return!(Te&&Te._id===Ma.xa._id&&Ce&&Ce._id===Ma.ya._id)});sa.sort($),Ia.sort($),Je=function(Ma,$a){for(var Pa=$a.charAt(0),Sa=[],na=[],ea=[],ga=0;ga<Ma.length;ga++){var Va=Ma[ga];x.traceIs(Va.trace,"bar-like")||x.traceIs(Va.trace,"box-violin")?ea.push(Va):Va.trace[Pa+"period"]?na.push(Va):Sa.push(Va)}return Sa.concat(na).concat(ea)}(Je=sa.concat(Ia),De)};ia();var fa=De.charAt(0),Da=(fa==="x"||fa==="y")&&Je[0]&&V[Je[0].trace.type];if(Fe&&ot!==0&&Je.length!==0){var wa=Qt(Je.filter(function(sa){return sa.ya.showspikes}),ot,Da);yt.hLinePoint=ta(wa);var da=Qt(Je.filter(function(sa){return sa.xa.showspikes}),ot,Da);yt.vLinePoint=ta(da)}if(Je.length===0){var Ea=g.unhoverRaw(_e,xe);return!Fe||yt.hLinePoint===null&&yt.vLinePoint===null||le(ka)&&ee(_e,yt,_a),Ea}if(Fe&&le(ka)&&ee(_e,yt,_a),S.isXYhover(nt)&&Je[0].length!==0&&Je[0].trace.type!=="splom"){var ua=Je[0],ba=(Je=R[ua.trace.type]?Je.filter(function(sa){return sa.trace.index===ua.trace.index}):[ua]).length;Vt(se("x",ua,ge),se("y",ua,ge));var Ra,Oa=[],Ja={},Fa=0,qa=function(sa){var Ia=R[sa.trace.type]?U(sa):sa.trace.index;if(Ja[Ia]){var Ma=Ja[Ia]-1,$a=Oa[Ma];Ma>0&&Math.abs(sa.distance)<Math.abs($a.distance)&&(Oa[Ma]=sa)}else Fa++,Ja[Ia]=Fa,Oa.push(sa)};for(Ra=0;Ra<ba;Ra++)qa(Je[Ra]);for(Ra=Je.length-1;Ra>ba-1;Ra--)qa(Je[Ra]);Je=Oa,ia()}var Ka=_e._hoverdata,vn=[],zn=ce(_e),cn=ae(_e);for(At=0;At<Je.length;At++){var hn=Je[At],un=S.makeEventData(hn,hn.trace,hn.cd);if(hn.hovertemplate!==!1){var Bn=!1;hn.cd[hn.index]&&hn.cd[hn.index].ht&&(Bn=hn.cd[hn.index].ht),hn.hovertemplate=Bn||hn.trace.hovertemplate||!1}if(hn.xa&&hn.ya){var ha=hn.x0+hn.xa._offset,ma=hn.x1+hn.xa._offset,Ya=hn.y0+hn.ya._offset,Ba=hn.y1+hn.ya._offset,Xa=Math.min(ha,ma),dn=Math.max(ha,ma),ln=Math.min(Ya,Ba),Cn=Math.max(Ya,Ba);un.bbox={x0:Xa+cn,x1:dn+cn,y0:ln+zn,y1:Cn+zn}}hn.eventData=[un],vn.push(un)}_e._hoverdata=vn;var Rn=De==="y"&&(Xe.length>1||Je.length>1)||De==="closest"&&Et&&Je.length>1,la=h.combine(ge.plot_bgcolor||h.background,ge.paper_bgcolor),za=q(Je,{gd:_e,hovermode:De,rotateLabels:Rn,bgColor:la,container:ge._hoverlayer,outerContainer:ge._paper.node(),commonLabelOpts:ge.hoverlabel,hoverdistance:ge.hoverdistance}),qt=za.hoverLabels;if(S.isUnifiedHover(De)||(function(sa,Ia,Ma,$a){var Pa,Sa,na,ea,ga,Va,en,tn=Ia?"xa":"ya",an=Ia?"ya":"xa",_n=0,mn=1,wn=sa.size(),pn=new Array(wn),yn=0,Nn=$a.minX,qn=$a.maxX,Dn=$a.minY,En=$a.maxY,Vn=function(ei){return ei*Ma._invScaleX},Kn=function(ei){return ei*Ma._invScaleY};function wr(ei){var Co=ei[0],Ki=ei[ei.length-1];if(Sa=Co.pmin-Co.pos-Co.dp+Co.size,na=Ki.pos+Ki.dp+Ki.size-Co.pmax,Sa>.01){for(ga=ei.length-1;ga>=0;ga--)ei[ga].dp+=Sa;Pa=!1}if(!(na<.01)){if(Sa<-.01){for(ga=ei.length-1;ga>=0;ga--)ei[ga].dp-=na;Pa=!1}if(Pa){var bo=0;for(ea=0;ea<ei.length;ea++)(Va=ei[ea]).pos+Va.dp+Va.size>Co.pmax&&bo++;for(ea=ei.length-1;ea>=0&&!(bo<=0);ea--)(Va=ei[ea]).pos>Co.pmax-1&&(Va.del=!0,bo--);for(ea=0;ea<ei.length&&!(bo<=0);ea++)if((Va=ei[ea]).pos<Co.pmin+1)for(Va.del=!0,bo--,na=2*Va.size,ga=ei.length-1;ga>=0;ga--)ei[ga].dp-=na;for(ea=ei.length-1;ea>=0&&!(bo<=0);ea--)(Va=ei[ea]).pos+Va.dp+Va.size>Co.pmax&&(Va.del=!0,bo--)}}}for(sa.each(function(ei){var Co=ei[tn],Ki=ei[an],bo=Co._id.charAt(0)==="x",xs=Co.range;yn===0&&xs&&xs[0]>xs[1]!==bo&&(mn=-1);var lo=0,Ds=bo?Ma.width:Ma.height;if(Ma.hovermode==="x"||Ma.hovermode==="y"){var Rs,el,To=Q(ei,Ia),ws=ei.anchor,ls=ws==="end"?-1:1;if(ws==="middle")el=(Rs=ei.crossPos+(bo?Kn(To.y-ei.by/2):Vn(ei.bx/2+ei.tx2width/2)))+(bo?Kn(ei.by):Vn(ei.bx));else if(bo)el=(Rs=ei.crossPos+Kn(z+To.y)-Kn(ei.by/2-z))+Kn(ei.by);else{var pi=Vn(ls*z+To.x),Hi=pi+Vn(ls*ei.bx);Rs=ei.crossPos+Math.min(pi,Hi),el=ei.crossPos+Math.max(pi,Hi)}bo?Dn!==void 0&&En!==void 0&&Math.min(el,En)-Math.max(Rs,Dn)>1&&(Ki.side==="left"?(lo=Ki._mainLinePosition,Ds=Ma.width):Ds=Ki._mainLinePosition):Nn!==void 0&&qn!==void 0&&Math.min(el,qn)-Math.max(Rs,Nn)>1&&(Ki.side==="top"?(lo=Ki._mainLinePosition,Ds=Ma.height):Ds=Ki._mainLinePosition)}pn[yn++]=[{datum:ei,traceIndex:ei.trace.index,dp:0,pos:ei.pos,posref:ei.posref,size:ei.by*(bo?M:1)/2,pmin:lo,pmax:Ds}]}),pn.sort(function(ei,Co){return ei[0].posref-Co[0].posref||mn*(Co[0].traceIndex-ei[0].traceIndex)});!Pa&&_n<=wn;){for(_n++,Pa=!0,ea=0;ea<pn.length-1;){var li=pn[ea],Vr=pn[ea+1],qi=li[li.length-1],gi=Vr[0];if((Sa=qi.pos+qi.dp+qi.size-gi.pos-gi.dp+gi.size)>.01){for(ga=Vr.length-1;ga>=0;ga--)Vr[ga].dp+=Sa;for(li.push.apply(li,Vr),pn.splice(ea+1,1),en=0,ga=li.length-1;ga>=0;ga--)en+=li[ga].dp;for(na=en/li.length,ga=li.length-1;ga>=0;ga--)li[ga].dp-=na;Pa=!1}else ea++}pn.forEach(wr)}for(ea=pn.length-1;ea>=0;ea--){var Ni=pn[ea];for(ga=Ni.length-1;ga>=0;ga--){var mo=Ni[ga],Zr=mo.datum;Zr.offset=mo.dp,Zr.del=mo.del}}}(qt,Rn,ge,za.commonLabelBoundingBox),X(qt,Rn,ge._invScaleX,ge._invScaleY)),Pe&&Pe.tagName){var ra=x.getComponentMethod("annotations","hasClickToShow")(_e,vn);u(v.select(Pe),ra?"pointer":"")}Pe&&!Ee&&function(sa,Ia,Ma){if(!Ma||Ma.length!==sa._hoverdata.length)return!0;for(var $a=Ma.length-1;$a>=0;$a--){var Pa=Ma[$a],Sa=sa._hoverdata[$a];if(Pa.curveNumber!==Sa.curveNumber||String(Pa.pointNumber)!==String(Sa.pointNumber)||String(Pa.pointNumbers)!==String(Sa.pointNumbers))return!0}return!1}(_e,0,Ka)&&(Ka&&_e.emit("plotly_unhover",{event:xe,points:Ka}),_e.emit("plotly_hover",{event:xe,points:_e._hoverdata,xaxes:it,yaxes:dt,xvals:tt,yvals:vt}))})(ie,ue,he,pe,me)})},m.loneHover=function(ie,ue){var he=!0;Array.isArray(ie)||(he=!1,ie=[ie]);var pe=ue.gd,me=ce(pe),_e=ae(pe),xe=q(ie.map(function(Pe){var $e=Pe._x0||Pe.x0||Pe.x||0,Te=Pe._x1||Pe.x1||Pe.x||0,Ce=Pe._y0||Pe.y0||Pe.y||0,ye=Pe._y1||Pe.y1||Pe.y||0,ge=Pe.eventData;if(ge){var Me=Math.min($e,Te),Se=Math.max($e,Te),ze=Math.min(Ce,ye),Fe=Math.max(Ce,ye),De=Pe.trace;if(x.traceIs(De,"gl3d")){var Ue=pe._fullLayout[De.scene]._scene.container,Ne=Ue.offsetLeft,ke=Ue.offsetTop;Me+=Ne,Se+=Ne,ze+=ke,Fe+=ke}ge.bbox={x0:Me+_e,x1:Se+_e,y0:ze+me,y1:Fe+me},ue.inOut_bbox&&ue.inOut_bbox.push(ge.bbox)}else ge=!1;return{color:Pe.color||h.defaultLine,x0:Pe.x0||Pe.x||0,x1:Pe.x1||Pe.x||0,y0:Pe.y0||Pe.y||0,y1:Pe.y1||Pe.y||0,xLabel:Pe.xLabel,yLabel:Pe.yLabel,zLabel:Pe.zLabel,text:Pe.text,name:Pe.name,idealAlign:Pe.idealAlign,borderColor:Pe.borderColor,fontFamily:Pe.fontFamily,fontSize:Pe.fontSize,fontColor:Pe.fontColor,fontWeight:Pe.fontWeight,fontStyle:Pe.fontStyle,fontVariant:Pe.fontVariant,nameLength:Pe.nameLength,textAlign:Pe.textAlign,trace:Pe.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Pe.hovertemplate||!1,hovertemplateLabels:Pe.hovertemplateLabels||!1,eventData:ge}}),{gd:pe,hovermode:"closest",rotateLabels:!1,bgColor:ue.bgColor||h.background,container:v.select(ue.container),outerContainer:ue.outerContainer||ue.container}).hoverLabels,we=0,Ee=0;return xe.sort(function(Pe,$e){return Pe.y0-$e.y0}).each(function(Pe,$e){var Te=Pe.y0-Pe.by/2;Pe.offset=Te-5<we?we-Te+5:0,we=Te+Pe.by+Pe.offset,$e===ue.anchorIndex&&(Ee=Pe.offset)}).each(function(Pe){Pe.offset-=Ee}),X(xe,!1,pe._fullLayout._invScaleX,pe._fullLayout._invScaleY),he?xe:xe.node()};var Z=/<extra>([\s\S]*)<\/extra>/;function q(ie,ue){var he=ue.gd,pe=he._fullLayout,me=ue.hovermode,_e=ue.rotateLabels,xe=ue.bgColor,we=ue.container,Ee=ue.outerContainer,Pe=ue.commonLabelOpts||{};if(ie.length===0)return[[]];var $e=ue.fontFamily||k.HOVERFONT,Te=ue.fontSize||k.HOVERFONTSIZE,Ce=ue.fontWeight||pe.font.weight,ye=ue.fontStyle||pe.font.style,ge=ue.fontVariant||pe.font.variant,Me=ue.fontTextcase||pe.font.textcase,Se=ue.fontLineposition||pe.font.lineposition,ze=ue.fontShadow||pe.font.shadow,Fe=ie[0],De=Fe.xa,Ue=Fe.ya,Ne=me.charAt(0),ke=Ne+"Label",Oe=Fe[ke];if(Oe===void 0&&De.type==="multicategory")for(var Re=0;Re<ie.length&&(Oe=ie[Re][ke])===void 0;Re++);var je=ne(he,Ee),Ze=je.top,Ye=je.width,it=je.height,dt=Oe!==void 0&&Fe.distance<=ue.hoverdistance&&(me==="x"||me==="y");if(dt){var ut,It,Ot=!0;for(ut=0;ut<ie.length;ut++)if(Ot&&ie[ut].zLabel===void 0&&(Ot=!1),It=ie[ut].hoverinfo||ie[ut].trace.hoverinfo){var Ft=Array.isArray(It)?It:It.split("+");if(Ft.indexOf("all")===-1&&Ft.indexOf(me)===-1){dt=!1;break}}Ot&&(dt=!1)}var ot=we.selectAll("g.axistext").data(dt?[0]:[]);ot.enter().append("g").classed("axistext",!0),ot.exit().remove();var tt={minX:0,maxX:0,minY:0,maxY:0};if(ot.each(function(){var fa=v.select(this),Da=y.ensureSingle(fa,"path","",function(Xa){Xa.style({"stroke-width":"1px"})}),wa=y.ensureSingle(fa,"text","",function(Xa){Xa.attr("data-notex",1)}),da=Pe.bgcolor||h.defaultLine,Ea=Pe.bordercolor||h.contrast(da),ua=h.contrast(da),ba=Pe.font,Ra={weight:ba.weight||Ce,style:ba.style||ye,variant:ba.variant||ge,textcase:ba.textcase||Me,lineposition:ba.lineposition||Se,shadow:ba.shadow||ze,family:ba.family||$e,size:ba.size||Te,color:ba.color||ua};Da.style({fill:da,stroke:Ea}),wa.text(Oe).call(d.font,Ra).call(s.positionText,0,0).call(s.convertToTspans,he),fa.attr("transform","");var Oa,Ja,Fa=ne(he,wa.node());if(me==="x"){var qa=De.side==="top"?"-":"";wa.attr("text-anchor","middle").call(s.positionText,0,De.side==="top"?Ze-Fa.bottom-z-F:Ze-Fa.top+z+F),Oa=De._offset+(Fe.x0+Fe.x1)/2,Ja=Ue._offset+(De.side==="top"?0:Ue._length);var Ka=Fa.width/2+F,vn=Oa;Oa<Ka?vn=Ka:Oa>pe.width-Ka&&(vn=pe.width-Ka),Da.attr("d","M"+(Oa-vn)+",0L"+(Oa-vn+z)+","+qa+z+"H"+Ka+"v"+qa+(2*F+Fa.height)+"H"+-Ka+"V"+qa+z+"H"+(Oa-vn-z)+"Z"),Oa=vn,tt.minX=Oa-Ka,tt.maxX=Oa+Ka,De.side==="top"?(tt.minY=Ja-(2*F+Fa.height),tt.maxY=Ja-F):(tt.minY=Ja+F,tt.maxY=Ja+(2*F+Fa.height))}else{var zn,cn,hn;Ue.side==="right"?(zn="start",cn=1,hn="",Oa=De._offset+De._length):(zn="end",cn=-1,hn="-",Oa=De._offset),Ja=Ue._offset+(Fe.y0+Fe.y1)/2,wa.attr("text-anchor",zn),Da.attr("d","M0,0L"+hn+z+","+z+"V"+(F+Fa.height/2)+"h"+hn+(2*F+Fa.width)+"V-"+(F+Fa.height/2)+"H"+hn+z+"V-"+z+"Z"),tt.minY=Ja-(F+Fa.height/2),tt.maxY=Ja+(F+Fa.height/2),Ue.side==="right"?(tt.minX=Oa+z,tt.maxX=Oa+z+(2*F+Fa.width)):(tt.minX=Oa-z-(2*F+Fa.width),tt.maxX=Oa-z);var un,Bn=Fa.height/2,ha=Ze-Fa.top-Bn,ma="clip"+pe._uid+"commonlabel"+Ue._id;if(Oa<Fa.width+2*F+z){un="M-"+(z+F)+"-"+Bn+"h-"+(Fa.width-F)+"V"+Bn+"h"+(Fa.width-F)+"Z";var Ya=Fa.width-Oa+F;s.positionText(wa,Ya,ha),zn==="end"&&wa.selectAll("tspan").each(function(){var Xa=v.select(this),dn=d.tester.append("text").text(Xa.text()).call(d.font,Ra),ln=ne(he,dn.node());Math.round(ln.width)<Math.round(Fa.width)&&Xa.attr("x",Ya-ln.width),dn.remove()})}else s.positionText(wa,cn*(F+z),ha),un=null;var Ba=pe._topclips.selectAll("#"+ma).data(un?[0]:[]);Ba.enter().append("clipPath").attr("id",ma).append("path"),Ba.exit().remove(),Ba.select("path").attr("d",un),d.setClipUrl(wa,un?ma:null,he)}fa.attr("transform",p(Oa,Ja))}),S.isUnifiedHover(me)){we.selectAll("g.hovertext").remove();var vt=ie.filter(function(fa){return fa.hoverinfo!=="none"});if(vt.length===0)return[];var At=pe.hoverlabel,Dt=At.font,Pt={showlegend:!0,legend:{title:{text:Oe,font:Dt},font:Dt,bgcolor:At.bgcolor,bordercolor:At.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:pe.legend?pe.legend.traceorder:void 0,orientation:"v"}},et={font:Dt};T(Pt,et,he._fullData);var rt=et.legend;rt.entries=[];for(var We=0;We<vt.length;We++){var nt=vt[We];if(nt.hoverinfo!=="none"){var _t=W(nt,!0,me,pe,Oe),mt=_t[0],St=_t[1];nt.name=St,nt.text=St!==""?St+" : "+mt:mt;var Bt=nt.cd[nt.index];Bt&&(Bt.mc&&(nt.mc=Bt.mc),Bt.mcc&&(nt.mc=Bt.mcc),Bt.mlc&&(nt.mlc=Bt.mlc),Bt.mlcc&&(nt.mlc=Bt.mlcc),Bt.mlw&&(nt.mlw=Bt.mlw),Bt.mrc&&(nt.mrc=Bt.mrc),Bt.dir&&(nt.dir=Bt.dir)),nt._distinct=!0,rt.entries.push([nt])}}rt.entries.sort(function(fa,Da){return fa[0].trace.index-Da[0].trace.index}),rt.layer=we,rt._inHover=!0,rt._groupTitleFont=At.grouptitlefont,C(he,rt);var Je,Xe,yt,Et,Ct=we.select("g.legend"),gt=ne(he,Ct.node()),$t=gt.width+2*F,Lt=gt.height+2*F,jt=vt[0],Rt=(jt.x0+jt.x1)/2,Vt=(jt.y0+jt.y1)/2,Qt=!(x.traceIs(jt.trace,"bar-like")||x.traceIs(jt.trace,"box-violin"));Ne==="y"?Qt?(Xe=Vt-F,Je=Vt+F):(Xe=Math.min.apply(null,vt.map(function(fa){return Math.min(fa.y0,fa.y1)})),Je=Math.max.apply(null,vt.map(function(fa){return Math.max(fa.y0,fa.y1)}))):Xe=Je=y.mean(vt.map(function(fa){return(fa.y0+fa.y1)/2}))-Lt/2,Ne==="x"?Qt?(yt=Rt+F,Et=Rt-F):(yt=Math.max.apply(null,vt.map(function(fa){return Math.max(fa.x0,fa.x1)})),Et=Math.min.apply(null,vt.map(function(fa){return Math.min(fa.x0,fa.x1)}))):yt=Et=y.mean(vt.map(function(fa){return(fa.x0+fa.x1)/2}))-$t/2;var ta,_a,ka=De._offset,va=Ue._offset;return Et+=ka-$t,Xe+=va-Lt,ta=(yt+=ka)+$t<Ye&&yt>=0?yt:Et+$t<Ye&&Et>=0?Et:ka+$t<Ye?ka:yt-Rt<Rt-Et+$t?Ye-$t:0,ta+=F,_a=(Je+=va)+Lt<it&&Je>=0?Je:Xe+Lt<it&&Xe>=0?Xe:va+Lt<it?va:Je-Vt<Vt-Xe+Lt?it-Lt:0,_a+=F,Ct.attr("transform",p(ta-1,_a-1)),Ct}var ia=we.selectAll("g.hovertext").data(ie,function(fa){return U(fa)});return ia.enter().append("g").classed("hovertext",!0).each(function(){var fa=v.select(this);fa.append("rect").call(h.fill,h.addOpacity(xe,.8)),fa.append("text").classed("name",!0),fa.append("path").style("stroke-width","1px"),fa.append("text").classed("nums",!0).call(d.font,{weight:Ce,style:ye,variant:ge,textcase:Me,lineposition:Se,shadow:ze,family:$e,size:Te})}),ia.exit().remove(),ia.each(function(fa){var Da=v.select(this).attr("transform",""),wa=fa.color;Array.isArray(wa)&&(wa=wa[fa.eventData[0].pointNumber]);var da=fa.bgcolor||wa,Ea=h.combine(h.opacity(da)?da:h.defaultLine,xe),ua=h.combine(h.opacity(wa)?wa:h.defaultLine,xe),ba=fa.borderColor||h.contrast(Ea),Ra=W(fa,dt,me,pe,Oe,Da),Oa=Ra[0],Ja=Ra[1],Fa=Da.select("text.nums").call(d.font,{family:fa.fontFamily||$e,size:fa.fontSize||Te,color:fa.fontColor||ba,weight:fa.fontWeight||Ce,style:fa.fontStyle||ye,variant:fa.fontVariant||ge,textcase:fa.fontTextcase||Me,lineposition:fa.fontLineposition||Se,shadow:fa.fontShadow||ze}).text(Oa).attr("data-notex",1).call(s.positionText,0,0).call(s.convertToTspans,he),qa=Da.select("text.name"),Ka=0,vn=0;if(Ja&&Ja!==Oa){qa.call(d.font,{family:fa.fontFamily||$e,size:fa.fontSize||Te,color:ua,weight:fa.fontWeight||Ce,style:fa.fontStyle||ye,variant:fa.fontVariant||ge,textcase:fa.fontTextcase||Me,lineposition:fa.fontLineposition||Se,shadow:fa.fontShadow||ze}).text(Ja).attr("data-notex",1).call(s.positionText,0,0).call(s.convertToTspans,he);var zn=ne(he,qa.node());Ka=zn.width+2*F,vn=zn.height+2*F}else qa.remove(),Da.select("rect").remove();Da.select("path").style({fill:Ea,stroke:ba});var cn=fa.xa._offset+(fa.x0+fa.x1)/2,hn=fa.ya._offset+(fa.y0+fa.y1)/2,un=Math.abs(fa.x1-fa.x0),Bn=Math.abs(fa.y1-fa.y0),ha=ne(he,Fa.node()),ma=ha.width/pe._invScaleX,Ya=ha.height/pe._invScaleY;fa.ty0=(Ze-ha.top)/pe._invScaleY,fa.bx=ma+2*F,fa.by=Math.max(Ya+2*F,vn),fa.anchor="start",fa.txwidth=ma,fa.tx2width=Ka,fa.offset=0;var Ba,Xa,dn=(ma+z+F+Ka)*pe._invScaleX;if(_e)fa.pos=cn,Ba=hn+Bn/2+dn<=it,Xa=hn-Bn/2-dn>=0,fa.idealAlign!=="top"&&Ba||!Xa?Ba?(hn+=Bn/2,fa.anchor="start"):fa.anchor="middle":(hn-=Bn/2,fa.anchor="end"),fa.crossPos=hn;else{if(fa.pos=hn,Ba=cn+un/2+dn<=Ye,Xa=cn-un/2-dn>=0,fa.idealAlign!=="left"&&Ba||!Xa)if(Ba)cn+=un/2,fa.anchor="start";else{fa.anchor="middle";var ln=dn/2,Cn=cn+ln-Ye,Rn=cn-ln;Cn>0&&(cn-=Cn),Rn<0&&(cn+=-Rn)}else cn-=un/2,fa.anchor="end";fa.crossPos=cn}Fa.attr("text-anchor",fa.anchor),Ka&&qa.attr("text-anchor",fa.anchor),Da.attr("transform",p(cn,hn)+(_e?l(A):""))}),{hoverLabels:ia,commonLabelBoundingBox:tt}}function W(ie,ue,he,pe,me,_e){var xe="",we="";ie.nameOverride!==void 0&&(ie.name=ie.nameOverride),ie.name&&(ie.trace._meta&&(ie.name=y.templateString(ie.name,ie.trace._meta)),xe=oe(ie.name,ie.nameLength));var Ee=he.charAt(0),Pe=Ee==="x"?"y":"x";ie.zLabel!==void 0?(ie.xLabel!==void 0&&(we+="x: "+ie.xLabel+"<br>"),ie.yLabel!==void 0&&(we+="y: "+ie.yLabel+"<br>"),ie.trace.type!=="choropleth"&&ie.trace.type!=="choroplethmapbox"&&ie.trace.type!=="choroplethmap"&&(we+=(we?"z: ":"")+ie.zLabel)):ue&&ie[Ee+"Label"]===me?we=ie[Pe+"Label"]||"":ie.xLabel===void 0?ie.yLabel!==void 0&&ie.trace.type!=="scattercarpet"&&(we=ie.yLabel):we=ie.yLabel===void 0?ie.xLabel:"("+ie.xLabel+", "+ie.yLabel+")",!ie.text&&ie.text!==0||Array.isArray(ie.text)||(we+=(we?"<br>":"")+ie.text),ie.extraText!==void 0&&(we+=(we?"<br>":"")+ie.extraText),_e&&we===""&&!ie.hovertemplate&&(xe===""&&_e.remove(),we=xe);var $e=ie.hovertemplate||!1;if($e){var Te=ie.hovertemplateLabels||ie;ie[Ee+"Label"]!==me&&(Te[Ee+"other"]=Te[Ee+"Val"],Te[Ee+"otherLabel"]=Te[Ee+"Label"]),we=(we=y.hovertemplateString($e,Te,pe._d3locale,ie.eventData[0]||{},ie.trace._meta)).replace(Z,function(Ce,ye){return xe=oe(ye,ie.nameLength),""})}return[we,xe]}function Q(ie,ue){var he=0,pe=ie.offset;return ue&&(pe*=-N,he=ie.offset*I),{x:he,y:pe}}function X(ie,ue,he,pe){var me=function(xe){return xe*he},_e=function(xe){return xe*pe};ie.each(function(xe){var we=v.select(this);if(xe.del)return we.remove();var Ee,Pe,$e,Te,Ce=we.select("text.nums"),ye=xe.anchor,ge=ye==="end"?-1:1,Me=(Te=($e=(Pe={start:1,end:-1,middle:0}[(Ee=xe).anchor])*(z+F))+Pe*(Ee.txwidth+F),Ee.anchor==="middle"&&($e-=Ee.tx2width/2,Te+=Ee.txwidth/2+F),{alignShift:Pe,textShiftX:$e,text2ShiftX:Te}),Se=Q(xe,ue),ze=Se.x,Fe=Se.y,De=ye==="middle";we.select("path").attr("d",De?"M-"+me(xe.bx/2+xe.tx2width/2)+","+_e(Fe-xe.by/2)+"h"+me(xe.bx)+"v"+_e(xe.by)+"h-"+me(xe.bx)+"Z":"M0,0L"+me(ge*z+ze)+","+_e(z+Fe)+"v"+_e(xe.by/2-z)+"h"+me(ge*xe.bx)+"v-"+_e(xe.by)+"H"+me(ge*z+ze)+"V"+_e(Fe-z)+"Z");var Ue=ze+Me.textShiftX,Ne=Fe+xe.ty0-xe.by/2+F,ke=xe.textAlign||"auto";ke!=="auto"&&(ke==="left"&&ye!=="start"?(Ce.attr("text-anchor","start"),Ue=De?-xe.bx/2-xe.tx2width/2+F:-xe.bx-F):ke==="right"&&ye!=="end"&&(Ce.attr("text-anchor","end"),Ue=De?xe.bx/2-xe.tx2width/2-F:xe.bx+F)),Ce.call(s.positionText,me(Ue),_e(Ne)),xe.tx2width&&(we.select("text.name").call(s.positionText,me(Me.text2ShiftX+Me.alignShift*F+ze),_e(Fe+xe.ty0-xe.by/2+F)),we.select("rect").call(d.setRect,me(Me.text2ShiftX+(Me.alignShift-1)*xe.tx2width/2+ze),_e(Fe-xe.by/2-1),me(xe.tx2width),_e(xe.by+2)))})}function J(ie,ue){var he=ie.index,pe=ie.trace||{},me=ie.cd[0],_e=ie.cd[he]||{};function xe(Ce){return Ce||f(Ce)&&Ce===0}var we=Array.isArray(he)?function(Ce,ye){var ge=y.castOption(me,he,Ce);return xe(ge)?ge:y.extractOption({},pe,"",ye)}:function(Ce,ye){return y.extractOption(_e,pe,Ce,ye)};function Ee(Ce,ye,ge){var Me=we(ye,ge);xe(Me)&&(ie[Ce]=Me)}if(Ee("hoverinfo","hi","hoverinfo"),Ee("bgcolor","hbg","hoverlabel.bgcolor"),Ee("borderColor","hbc","hoverlabel.bordercolor"),Ee("fontFamily","htf","hoverlabel.font.family"),Ee("fontSize","hts","hoverlabel.font.size"),Ee("fontColor","htc","hoverlabel.font.color"),Ee("fontWeight","htw","hoverlabel.font.weight"),Ee("fontStyle","hty","hoverlabel.font.style"),Ee("fontVariant","htv","hoverlabel.font.variant"),Ee("nameLength","hnl","hoverlabel.namelength"),Ee("textAlign","hta","hoverlabel.align"),ie.posref=ue==="y"||ue==="closest"&&pe.orientation==="h"?ie.xa._offset+(ie.x0+ie.x1)/2:ie.ya._offset+(ie.y0+ie.y1)/2,ie.x0=y.constrain(ie.x0,0,ie.xa._length),ie.x1=y.constrain(ie.x1,0,ie.xa._length),ie.y0=y.constrain(ie.y0,0,ie.ya._length),ie.y1=y.constrain(ie.y1,0,ie.ya._length),ie.xLabelVal!==void 0&&(ie.xLabel="xLabel"in ie?ie.xLabel:b.hoverLabelText(ie.xa,ie.xLabelVal,pe.xhoverformat),ie.xVal=ie.xa.c2d(ie.xLabelVal)),ie.yLabelVal!==void 0&&(ie.yLabel="yLabel"in ie?ie.yLabel:b.hoverLabelText(ie.ya,ie.yLabelVal,pe.yhoverformat),ie.yVal=ie.ya.c2d(ie.yLabelVal)),ie.zLabelVal!==void 0&&ie.zLabel===void 0&&(ie.zLabel=String(ie.zLabelVal)),!(isNaN(ie.xerr)||ie.xa.type==="log"&&ie.xerr<=0)){var Pe=b.tickText(ie.xa,ie.xa.c2l(ie.xerr),"hover").text;ie.xerrneg!==void 0?ie.xLabel+=" +"+Pe+" / -"+b.tickText(ie.xa,ie.xa.c2l(ie.xerrneg),"hover").text:ie.xLabel+=" ± "+Pe,ue==="x"&&(ie.distance+=1)}if(!(isNaN(ie.yerr)||ie.ya.type==="log"&&ie.yerr<=0)){var $e=b.tickText(ie.ya,ie.ya.c2l(ie.yerr),"hover").text;ie.yerrneg!==void 0?ie.yLabel+=" +"+$e+" / -"+b.tickText(ie.ya,ie.ya.c2l(ie.yerrneg),"hover").text:ie.yLabel+=" ± "+$e,ue==="y"&&(ie.distance+=1)}var Te=ie.hoverinfo||ie.trace.hoverinfo;return Te&&Te!=="all"&&((Te=Array.isArray(Te)?Te:Te.split("+")).indexOf("x")===-1&&(ie.xLabel=void 0),Te.indexOf("y")===-1&&(ie.yLabel=void 0),Te.indexOf("z")===-1&&(ie.zLabel=void 0),Te.indexOf("text")===-1&&(ie.text=void 0),Te.indexOf("name")===-1&&(ie.name=void 0)),ie}function ee(ie,ue,he){var pe,me,_e=he.container,xe=he.fullLayout,we=xe._size,Ee=he.event,Pe=!!ue.hLinePoint,$e=!!ue.vLinePoint;if(_e.selectAll(".spikeline").remove(),$e||Pe){var Te=h.combine(xe.plot_bgcolor,xe.paper_bgcolor);if(Pe){var Ce,ye,ge=ue.hLinePoint;pe=ge&&ge.xa,(me=ge&&ge.ya).spikesnap==="cursor"?(Ce=Ee.pointerX,ye=Ee.pointerY):(Ce=pe._offset+ge.x,ye=me._offset+ge.y);var Me,Se,ze=n.readability(ge.color,Te)<1.5?h.contrast(Te):ge.color,Fe=me.spikemode,De=me.spikethickness,Ue=me.spikecolor||ze,Ne=b.getPxPosition(ie,me);if(Fe.indexOf("toaxis")!==-1||Fe.indexOf("across")!==-1){if(Fe.indexOf("toaxis")!==-1&&(Me=Ne,Se=Ce),Fe.indexOf("across")!==-1){var ke=me._counterDomainMin,Oe=me._counterDomainMax;me.anchor==="free"&&(ke=Math.min(ke,me.position),Oe=Math.max(Oe,me.position)),Me=we.l+ke*we.w,Se=we.l+Oe*we.w}_e.insert("line",":first-child").attr({x1:Me,x2:Se,y1:ye,y2:ye,"stroke-width":De,stroke:Ue,"stroke-dasharray":d.dashStyle(me.spikedash,De)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Me,x2:Se,y1:ye,y2:ye,"stroke-width":De+2,stroke:Te}).classed("spikeline",!0).classed("crisp",!0)}Fe.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Ne+(me.side!=="right"?De:-De),cy:ye,r:De,fill:Ue}).classed("spikeline",!0)}if($e){var Re,je,Ze=ue.vLinePoint;pe=Ze&&Ze.xa,me=Ze&&Ze.ya,pe.spikesnap==="cursor"?(Re=Ee.pointerX,je=Ee.pointerY):(Re=pe._offset+Ze.x,je=me._offset+Ze.y);var Ye,it,dt=n.readability(Ze.color,Te)<1.5?h.contrast(Te):Ze.color,ut=pe.spikemode,It=pe.spikethickness,Ot=pe.spikecolor||dt,Ft=b.getPxPosition(ie,pe);if(ut.indexOf("toaxis")!==-1||ut.indexOf("across")!==-1){if(ut.indexOf("toaxis")!==-1&&(Ye=Ft,it=je),ut.indexOf("across")!==-1){var ot=pe._counterDomainMin,tt=pe._counterDomainMax;pe.anchor==="free"&&(ot=Math.min(ot,pe.position),tt=Math.max(tt,pe.position)),Ye=we.t+(1-tt)*we.h,it=we.t+(1-ot)*we.h}_e.insert("line",":first-child").attr({x1:Re,x2:Re,y1:Ye,y2:it,"stroke-width":It,stroke:Ot,"stroke-dasharray":d.dashStyle(pe.spikedash,It)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Re,x2:Re,y1:Ye,y2:it,"stroke-width":It+2,stroke:Te}).classed("spikeline",!0).classed("crisp",!0)}ut.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Re,cy:Ft-(pe.side!=="top"?It:-It),r:It,fill:Ot}).classed("spikeline",!0)}}}function le(ie,ue){return!ue||ue.vLinePoint!==ie._spikepoints.vLinePoint||ue.hLinePoint!==ie._spikepoints.hLinePoint}function oe(ie,ue){return s.plainText(ie||"",{len:ue,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function se(ie,ue,he){var pe=ue[ie+"a"],me=ue[ie+"Val"],_e=ue.cd[0];if(pe.type==="category"||pe.type==="multicategory")me=pe._categoriesMap[me];else if(pe.type==="date"){var xe=ue.trace[ie+"periodalignment"];if(xe){var we=ue.cd[ue.index],Ee=we[ie+"Start"];Ee===void 0&&(Ee=we[ie]);var Pe=we[ie+"End"];Pe===void 0&&(Pe=we[ie]);var $e=Pe-Ee;xe==="end"?me+=$e:xe==="middle"&&(me+=$e/2)}me=pe.d2c(me)}return _e&&_e.t&&_e.t.posLetter===pe._id&&(he.boxmode!=="group"&&he.violinmode!=="group"||(me+=_e.t.dPos)),me}function ce(ie){return ie.offsetTop+ie.clientTop}function ae(ie){return ie.offsetLeft+ie.clientLeft}function ne(ie,ue){var he=ie._fullLayout,pe=ue.getBoundingClientRect(),me=pe.left,_e=pe.top,xe=me+pe.width,we=_e+pe.height,Ee=y.apply3DTransform(he._invTransform)(me,_e),Pe=y.apply3DTransform(he._invTransform)(xe,we),$e=Ee[0],Te=Ee[1],Ce=Pe[0],ye=Pe[1];return{x:$e,y:Te,width:Ce-$e,height:ye-Te,top:Math.min(Te,ye),left:Math.min($e,Ce),right:Math.max($e,Ce),bottom:Math.max(Te,ye)}}},26430:function(c,m,a){var v=a(34809),f=a(78766),n=a(36040).isUnifiedHover;c.exports=function(y,_,p,l){l=l||{};var o=_.legend;function s(u){l.font[u]||(l.font[u]=o?_.legend.font[u]:_.font[u])}_&&n(_.hovermode)&&(l.font||(l.font={}),s("size"),s("family"),s("color"),s("weight"),s("style"),s("variant"),o?(l.bgcolor||(l.bgcolor=f.combine(_.legend.bgcolor,_.paper_bgcolor)),l.bordercolor||(l.bordercolor=_.legend.bordercolor)):l.bgcolor||(l.bgcolor=_.paper_bgcolor)),p("hoverlabel.bgcolor",l.bgcolor),p("hoverlabel.bordercolor",l.bordercolor),p("hoverlabel.namelength",l.namelength),v.coerceFont(p,"hoverlabel.font",l.font),p("hoverlabel.align",l.align)}},45265:function(c,m,a){var v=a(34809),f=a(6811);c.exports=function(n,y){function _(p,l){return y[p]!==void 0?y[p]:v.coerce(n,y,f,p,l)}return _("clickmode"),_("hoversubplots"),_("hovermode")}},32141:function(c,m,a){var v=a(45568),f=a(34809),n=a(14751),y=a(36040),_=a(6811),p=a(38103);c.exports={moduleType:"component",name:"fx",constants:a(85988),schema:{layout:_},attributes:a(70192),layoutAttributes:_,supplyLayoutGlobalDefaults:a(5358),supplyDefaults:a(3239),supplyLayoutDefaults:a(8412),calc:a(83552),getDistanceFunction:y.getDistanceFunction,getClosest:y.getClosest,inbox:y.inbox,quadrature:y.quadrature,appendArrayPointValue:y.appendArrayPointValue,castHoverOption:function(l,o,s){return f.castOption(l,o,"hoverlabel."+s)},castHoverinfo:function(l,o,s){return f.castOption(l,s,"hoverinfo",function(u){return f.coerceHoverinfo({hoverinfo:u},{_module:l._module},o)})},hover:p.hover,unhover:n.unhover,loneHover:p.loneHover,loneUnhover:function(l){var o=f.isD3Selection(l)?l:v.select(l);o.selectAll("g.hovertext").remove(),o.selectAll(".spikeline").remove()},click:a(94225)}},6811:function(c,m,a){var v=a(85988),f=a(80337),n=f({editType:"none"});n.family.dflt=v.HOVERFONT,n.size.dflt=v.HOVERFONTSIZE,c.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:n,grouptitlefont:f({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},8412:function(c,m,a){var v=a(34809),f=a(6811),n=a(45265),y=a(26430);c.exports=function(_,p){function l(h,g){return v.coerce(_,p,f,h,g)}n(_,p)&&(l("hoverdistance"),l("spikedistance")),l("dragmode")==="select"&&l("selectdirection");var o=p._has("mapbox"),s=p._has("map"),u=p._has("geo"),d=p._basePlotModules.length;p.dragmode==="zoom"&&((o||s||u)&&d===1||(o||s)&&u&&d===2)&&(p.dragmode="pan"),y(_,p,l),v.coerceFont(l,"hoverlabel.grouptitlefont",p.hoverlabel.font)}},5358:function(c,m,a){var v=a(34809),f=a(26430),n=a(6811);c.exports=function(y,_){f(y,_,function(p,l){return v.coerce(y,_,n,p,l)})}},83595:function(c,m,a){var v=a(34809),f=a(90694).counter,n=a(13792).u,y=a(54826).idRegex,_=a(78032),p={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[f("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[y.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[y.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:n({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function l(u,d,h){var g=d[h+"axes"],b=Object.keys((u._splomAxes||{})[h]||{});return Array.isArray(g)?g:b.length?b:void 0}function o(u,d,h,g,b,w){var x=d(u+"gap",h),S=d("domain."+u);d(u+"side",g);for(var k=new Array(b),T=S[0],C=(S[1]-T)/(b-x),A=C*(1-x),E=0;E<b;E++){var M=T+C*E;k[w?b-1-E:E]=[M,M+A]}return k}function s(u,d,h,g,b){var w,x=new Array(h);function S(k,T){d.indexOf(T)!==-1&&g[T]===void 0?(x[k]=T,g[T]=k):x[k]=""}if(Array.isArray(u))for(w=0;w<h;w++)S(w,u[w]);else for(S(0,b),w=1;w<h;w++)S(w,b+(w+1));return x}c.exports={moduleType:"component",name:"grid",schema:{layout:{grid:p}},layoutAttributes:p,sizeDefaults:function(u,d){var h=u.grid||{},g=l(d,h,"x"),b=l(d,h,"y");if(u.grid||g||b){var w,x,S=Array.isArray(h.subplots)&&Array.isArray(h.subplots[0]),k=Array.isArray(g),T=Array.isArray(b),C=k&&g!==h.xaxes&&T&&b!==h.yaxes;S?(w=h.subplots.length,x=h.subplots[0].length):(T&&(w=b.length),k&&(x=g.length));var A=_.newContainer(d,"grid"),E=V("rows",w),M=V("columns",x);if(E*M>1){S||k||T||V("pattern")==="independent"&&(S=!0),A._hasSubplotGrid=S;var I,N,z=V("roworder")==="top to bottom",F=S?.2:.1,R=S?.3:.1;C&&d._splomGridDflt&&(I=d._splomGridDflt.xside,N=d._splomGridDflt.yside),A._domains={x:o("x",V,F,I,M),y:o("y",V,R,N,E,z)}}else delete d.grid}function V($,U){return v.coerce(h,A,p,$,U)}},contentDefaults:function(u,d){var h=d.grid;if(h&&h._domains){var g,b,w,x,S,k,T,C=u.grid||{},A=d._subplots,E=h._hasSubplotGrid,M=h.rows,I=h.columns,N=h.pattern==="independent",z=h._axisMap={};if(E){var F=C.subplots||[];k=h.subplots=new Array(M);var R=1;for(g=0;g<M;g++){var V=k[g]=new Array(I),$=F[g]||[];for(b=0;b<I;b++)if(N?(S=R===1?"xy":"x"+R+"y"+R,R++):S=$[b],V[b]="",A.cartesian.indexOf(S)!==-1){if(T=S.indexOf("y"),w=S.slice(0,T),x=S.slice(T),z[w]!==void 0&&z[w]!==b||z[x]!==void 0&&z[x]!==g)continue;V[b]=S,z[w]=b,z[x]=g}}}else{var U=l(d,C,"x"),Z=l(d,C,"y");h.xaxes=s(U,A.xaxis,I,z,"x"),h.yaxes=s(Z,A.yaxis,M,z,"y")}var q=h._anchors={},W=h.roworder==="top to bottom";for(var Q in z){var X,J,ee,le=Q.charAt(0),oe=h[le+"side"];if(oe.length<8)q[Q]="free";else if(le==="x"){if(oe.charAt(0)==="t"===W?(X=0,J=1,ee=M):(X=M-1,J=-1,ee=-1),E){var se=z[Q];for(g=X;g!==ee;g+=J)if((S=k[g][se])&&(T=S.indexOf("y"),S.slice(0,T)===Q)){q[Q]=S.slice(T);break}}else for(g=X;g!==ee;g+=J)if(x=h.yaxes[g],A.cartesian.indexOf(Q+x)!==-1){q[Q]=x;break}}else if(oe.charAt(0)==="l"?(X=0,J=1,ee=I):(X=I-1,J=-1,ee=-1),E){var ce=z[Q];for(g=X;g!==ee;g+=J)if((S=k[ce][g])&&(T=S.indexOf("y"),S.slice(T)===Q)){q[Q]=S.slice(0,T);break}}else for(g=X;g!==ee;g+=J)if(w=h.xaxes[g],A.cartesian.indexOf(w+Q)!==-1){q[Q]=w;break}}}}}},37260:function(c,m,a){var v=a(54826),f=a(78032).templatedArray;a(35081),c.exports=f("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",v.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",v.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})},89443:function(c,m,a){var v=a(10721),f=a(8083);c.exports=function(n,y,_,p){y=y||{};var l=_==="log"&&y.type==="linear",o=_==="linear"&&y.type==="log";if(l||o){for(var s,u,d=n._fullLayout.images,h=y._id.charAt(0),g=0;g<d.length;g++)if(u="images["+g+"].",(s=d[g])[h+"ref"]===y._id){var b=s[h],w=s["size"+h],x=null,S=null;if(l){x=f(b,y.range);var k=w/Math.pow(10,x)/2;S=2*Math.log(k+Math.sqrt(1+k*k))/Math.LN10}else S=(x=Math.pow(10,b))*(Math.pow(10,w/2)-Math.pow(10,-w/2));v(x)?v(S)||(S=null):(x=null,S=null),p(u+h,x),p(u+"size"+h,S)}}}},507:function(c,m,a){var v=a(34809),f=a(29714),n=a(59008),y=a(37260);function _(p,l,o){function s(x,S){return v.coerce(p,l,y,x,S)}var u=s("source");if(!s("visible",!!u))return l;s("layer"),s("xanchor"),s("yanchor"),s("sizex"),s("sizey"),s("sizing"),s("opacity");for(var d={_fullLayout:o},h=["x","y"],g=0;g<2;g++){var b=h[g],w=f.coerceRef(p,l,d,b,"paper",void 0);w!=="paper"&&f.getFromId(d,w)._imgIndices.push(l._index),f.coercePosition(l,d,s,w,b,0)}return l}c.exports=function(p,l){n(p,l,{name:"images",handleItemDefaults:_})}},32211:function(c,m,a){var v=a(45568),f=a(62203),n=a(29714),y=a(5975),_=a(62972);c.exports=function(p){var l,o,s=p._fullLayout,u=[],d={},h=[];for(o=0;o<s.images.length;o++){var g=s.images[o];if(g.visible)if(g.layer==="below"&&g.xref!=="paper"&&g.yref!=="paper"){l=y.ref2id(g.xref)+y.ref2id(g.yref);var b=s._plots[l];if(!b){h.push(g);continue}b.mainplot&&(l=b.mainplot.id),d[l]||(d[l]=[]),d[l].push(g)}else g.layer==="above"?u.push(g):h.push(g)}var w={left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-.5},right:{sizing:"xMax",offset:-1}},x={top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-.5},bottom:{sizing:"YMax",offset:-1}};function S(I){var N=v.select(this);if(this._imgSrc!==I.source)if(N.attr("xmlns",_.svg),I.source&&I.source.slice(0,5)==="data:")N.attr("xlink:href",I.source),this._imgSrc=I.source;else{var z=new Promise((function(F){var R=new Image;function V(){N.remove(),F()}this.img=R,R.setAttribute("crossOrigin","anonymous"),R.onerror=V,R.onload=function(){var $=document.createElement("canvas");$.width=this.width,$.height=this.height,$.getContext("2d",{willReadFrequently:!0}).drawImage(this,0,0);var U=$.toDataURL("image/png");N.attr("xlink:href",U),F()},N.on("error",V),R.src=I.source,this._imgSrc=I.source}).bind(this));p._promises.push(z)}}function k(I){var N,z,F=v.select(this),R=n.getFromId(p,I.xref),V=n.getFromId(p,I.yref),$=n.getRefType(I.xref)==="domain",U=n.getRefType(I.yref)==="domain",Z=s._size;N=R!==void 0?typeof I.xref=="string"&&$?R._length*I.sizex:Math.abs(R.l2p(I.sizex)-R.l2p(0)):I.sizex*Z.w,z=V!==void 0?typeof I.yref=="string"&&U?V._length*I.sizey:Math.abs(V.l2p(I.sizey)-V.l2p(0)):I.sizey*Z.h;var q,W,Q=N*w[I.xanchor].offset,X=z*x[I.yanchor].offset,J=w[I.xanchor].sizing+x[I.yanchor].sizing;switch(q=R!==void 0?typeof I.xref=="string"&&$?R._length*I.x+R._offset:R.r2p(I.x)+R._offset:I.x*Z.w+Z.l,q+=Q,W=V!==void 0?typeof I.yref=="string"&&U?V._length*(1-I.y)+V._offset:V.r2p(I.y)+V._offset:Z.h-I.y*Z.h+Z.t,W+=X,I.sizing){case"fill":J+=" slice";break;case"stretch":J="none"}F.attr({x:q,y:W,width:N,height:z,preserveAspectRatio:J,opacity:I.opacity});var ee=(R&&n.getRefType(I.xref)!=="domain"?R._id:"")+(V&&n.getRefType(I.yref)!=="domain"?V._id:"");f.setClipUrl(F,ee?"clip"+s._uid+ee:null,p)}var T=s._imageLowerLayer.selectAll("image").data(h),C=s._imageUpperLayer.selectAll("image").data(u);T.enter().append("image"),C.enter().append("image"),T.exit().remove(),C.exit().remove(),T.each(function(I){S.bind(this)(I),k.bind(this)(I)}),C.each(function(I){S.bind(this)(I),k.bind(this)(I)});var A=Object.keys(s._plots);for(o=0;o<A.length;o++){l=A[o];var E=s._plots[l];if(E.imagelayer){var M=E.imagelayer.selectAll("image").data(d[l]||[]);M.enter().append("image"),M.exit().remove(),M.each(function(I){S.bind(this)(I),k.bind(this)(I)})}}}},15553:function(c,m,a){c.exports={moduleType:"component",name:"images",layoutAttributes:a(37260),supplyLayoutDefaults:a(507),includeBasePlot:a(20706)("images"),draw:a(32211),convertCoords:a(89443)}},86405:function(c,m,a){var v=a(80337),f=a(10229);c.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:f.defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:v({editType:"legend"}),grouptitlefont:v({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:v({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}},72783:function(c){c.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},73970:function(c,m,a){var v=a(33626),f=a(34809),n=a(78032),y=a(9829),_=a(86405),p=a(6704),l=a(57599);function o(s,u,d,h){var g=u[s]||{},b=n.newContainer(d,s);function w(J,ee){return f.coerce(g,b,_,J,ee)}var x=f.coerceFont(w,"font",d.font);if(w("bgcolor",d.paper_bgcolor),w("bordercolor"),w("visible")){for(var S,k=function(J,ee){var le=S._input,oe=S;return f.coerce(le,oe,y,J,ee)},T=d.font||{},C=f.coerceFont(w,"grouptitlefont",T,{overrideDflt:{size:Math.round(1.1*T.size)}}),A=0,E=!1,M="normal",I=(d.shapes||[]).filter(function(J){return J.showlegend}),N=h.concat(I).filter(function(J){return s===(J.legend||"legend")}),z=0;z<N.length;z++)if((S=N[z]).visible){var F=S._isShape;(S.showlegend||S._dfltShowLegend&&!(S._module&&S._module.attributes&&S._module.attributes.showlegend&&S._module.attributes.showlegend.dflt===!1))&&(A++,S.showlegend&&(E=!0,(!F&&v.traceIs(S,"pie-like")||S._input.showlegend===!0)&&A++),f.coerceFont(k,"legendgrouptitle.font",C)),(!F&&v.traceIs(S,"bar")&&d.barmode==="stack"||["tonextx","tonexty"].indexOf(S.fill)!==-1)&&(M=l.isGrouped({traceorder:M})?"grouped+reversed":"reversed"),S.legendgroup!==void 0&&S.legendgroup!==""&&(M=l.isReversed({traceorder:M})?"reversed+grouped":"grouped")}var R=f.coerce(u,d,p,"showlegend",E&&A>(s==="legend"?1:0));if(R===!1&&(d[s]=void 0),(R!==!1||g.uirevision)&&(w("uirevision",d.uirevision),R!==!1)){w("borderwidth");var V,$,U,Z=w("orientation")==="h",q=w("yref")==="paper",W=w("xref")==="paper",Q="left";if(Z?(V=0,v.getComponentMethod("rangeslider","isVisible")(u.xaxis)?q?($=1.1,U="bottom"):($=1,U="top"):q?($=-.1,U="top"):($=0,U="bottom")):($=1,U="auto",W?V=1.02:(V=1,Q="right")),f.coerce(g,b,{x:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:V}},"x"),f.coerce(g,b,{y:{valType:"number",editType:"legend",min:q?-2:0,max:q?3:1,dflt:$}},"y"),w("traceorder",M),l.isGrouped(d[s])&&w("tracegroupgap"),w("entrywidth"),w("entrywidthmode"),w("indentation"),w("itemsizing"),w("itemwidth"),w("itemclick"),w("itemdoubleclick"),w("groupclick"),w("xanchor",Q),w("yanchor",U),w("valign"),f.noneOrAll(g,b,["x","y"]),w("title.text")){w("title.side",Z?"left":"top");var X=f.extendFlat({},x,{size:f.bigFont(x.size)});f.coerceFont(w,"title.font",X)}}}}c.exports=function(s,u,d){var h,g=d.slice(),b=u.shapes;if(b)for(h=0;h<b.length;h++){var w=b[h];if(w.showlegend){var x={_input:w._input,visible:w.visible,showlegend:w.showlegend,legend:w.legend};g.push(x)}}var S=["legend"];for(h=0;h<g.length;h++)f.pushUnique(S,g[h].legend);for(u._legends=[],h=0;h<S.length;h++){var k=S[h];o(k,s,u,g),u[k]&&u[k].visible&&(u[k]._id=k),u._legends.push(k)}}},6134:function(c,m,a){var v=a(45568),f=a(34809),n=a(44122),y=a(33626),_=a(68596),p=a(14751),l=a(62203),o=a(78766),s=a(30635),u=a(22165),d=a(72783),h=a(4530),g=h.LINE_SPACING,b=h.FROM_TL,w=h.FROM_BR,x=a(851),S=a(14375),k=a(57599),T=1,C=/^legend[0-9]*$/;function A(U,Z){var q,W,Q=Z||{},X=U._fullLayout,J=$(Q),ee=Q._inHover;if(ee?(W=Q.layer,q="hover"):(W=X._infolayer,q=J),W){var le;if(q+=X._uid,U._legendMouseDownTime||(U._legendMouseDownTime=0),ee){if(!Q.entries)return;le=x(Q.entries,Q)}else{for(var oe=(U.calcdata||[]).slice(),se=X.shapes,ce=0;ce<se.length;ce++){var ae=se[ce];if(ae.showlegend){var ne={_isShape:!0,_fullInput:ae,index:ae._index,name:ae.name||ae.label.text||"shape "+ae._index,legend:ae.legend,legendgroup:ae.legendgroup,legendgrouptitle:ae.legendgrouptitle,legendrank:ae.legendrank,legendwidth:ae.legendwidth,showlegend:ae.showlegend,visible:ae.visible,opacity:ae.opacity,mode:ae.type==="line"?"lines":"markers",line:ae.line,marker:{line:ae.line,color:ae.fillcolor,size:12,symbol:ae.type==="rect"?"square":ae.type==="circle"?"circle":"hexagon2"}};oe.push([{trace:ne}])}}le=X.showlegend&&x(oe,Q,X._legends.length>1)}var ie=X.hiddenlabels||[];if(!(ee||X.showlegend&&le.length))return W.selectAll("."+J).remove(),X._topdefs.select("#"+q).remove(),n.autoMargin(U,J);var ue=f.ensureSingle(W,"g",J,function($e){ee||$e.attr("pointer-events","all")}),he=f.ensureSingleById(X._topdefs,"clipPath",q,function($e){$e.append("rect")}),pe=f.ensureSingle(ue,"rect","bg",function($e){$e.attr("shape-rendering","crispEdges")});pe.call(o.stroke,Q.bordercolor).call(o.fill,Q.bgcolor).style("stroke-width",Q.borderwidth+"px");var me,_e=f.ensureSingle(ue,"g","scrollbox"),xe=Q.title;Q._titleWidth=0,Q._titleHeight=0,xe.text?((me=f.ensureSingle(_e,"text",J+"titletext")).attr("text-anchor","start").call(l.font,xe.font).text(xe.text),F(me,_e,U,Q,T)):_e.selectAll("."+J+"titletext").remove();var we=f.ensureSingle(ue,"rect","scrollbar",function($e){$e.attr(d.scrollBarEnterAttrs).call(o.fill,d.scrollBarColor)}),Ee=_e.selectAll("g.groups").data(le);Ee.enter().append("g").attr("class","groups"),Ee.exit().remove();var Pe=Ee.selectAll("g.traces").data(f.identity);Pe.enter().append("g").attr("class","traces"),Pe.exit().remove(),Pe.style("opacity",function($e){var Te=$e[0].trace;return y.traceIs(Te,"pie-like")?ie.indexOf($e[0].label)!==-1?.5:1:Te.visible==="legendonly"?.5:1}).each(function(){v.select(this).call(I,U,Q)}).call(S,U,Q).each(function(){ee||v.select(this).call(z,U,J)}),f.syncOrAsync([n.previousPromises,function(){return function($e,Te,Ce,ye){var ge=$e._fullLayout,Me=$(ye);ye||(ye=ge[Me]);var Se=ge._size,ze=k.isVertical(ye),Fe=k.isGrouped(ye),De=ye.entrywidthmode==="fraction",Ue=ye.borderwidth,Ne=2*Ue,ke=d.itemGap,Oe=ye.indentation+ye.itemwidth+2*ke,Re=2*(Ue+ke),je=V(ye),Ze=ye.y<0||ye.y===0&&je==="top",Ye=ye.y>1||ye.y===1&&je==="bottom",it=ye.tracegroupgap,dt={};ye._maxHeight=Math.max(Ze||Ye?ge.height/2:Se.h,30);var ut=0;ye._width=0,ye._height=0;var It=function(Et){var Ct=0,gt=0,$t=Et.title.side;return $t&&($t.indexOf("left")!==-1&&(Ct=Et._titleWidth),$t.indexOf("top")!==-1&&(gt=Et._titleHeight)),[Ct,gt]}(ye);if(ze)Ce.each(function(Et){var Ct=Et[0].height;l.setTranslate(this,Ue+It[0],Ue+It[1]+ye._height+Ct/2+ke),ye._height+=Ct,ye._width=Math.max(ye._width,Et[0].width)}),ut=Oe+ye._width,ye._width+=ke+Oe+Ne,ye._height+=Re,Fe&&(Te.each(function(Et,Ct){l.setTranslate(this,0,Ct*ye.tracegroupgap)}),ye._height+=(ye._lgroupsLength-1)*ye.tracegroupgap);else{var Ot=R(ye),Ft=ye.x<0||ye.x===0&&Ot==="right",ot=ye.x>1||ye.x===1&&Ot==="left",tt=Ye||Ze,vt=ge.width/2;ye._maxWidth=Math.max(Ft?tt&&Ot==="left"?Se.l+Se.w:vt:ot?tt&&Ot==="right"?Se.r+Se.w:vt:Se.w,2*Oe);var At=0,Dt=0;Ce.each(function(Et){var Ct=E(Et,ye,Oe);At=Math.max(At,Ct),Dt+=Ct}),ut=null;var Pt=0;if(Fe){var et=0,rt=0,We=0;Te.each(function(){var Et=0,Ct=0;v.select(this).selectAll("g.traces").each(function($t){var Lt=E($t,ye,Oe),jt=$t[0].height;l.setTranslate(this,It[0],It[1]+Ue+ke+jt/2+Ct),Ct+=jt,Et=Math.max(Et,Lt),dt[$t[0].trace.legendgroup]=Et});var gt=Et+ke;rt>0&&gt+Ue+rt>ye._maxWidth?(Pt=Math.max(Pt,rt),rt=0,We+=et+it,et=Ct):et=Math.max(et,Ct),l.setTranslate(this,rt,We),rt+=gt}),ye._width=Math.max(Pt,rt)+Ue,ye._height=We+et+Re}else{var nt=Ce.size(),_t=Dt+Ne+(nt-1)*ke<ye._maxWidth,mt=0,St=0,Bt=0,Je=0;Ce.each(function(Et){var Ct=Et[0].height,gt=E(Et,ye,Oe),$t=_t?gt:At;De||($t+=ke),$t+Ue+St-ke>=ye._maxWidth&&(Pt=Math.max(Pt,Je),St=0,Bt+=mt,ye._height+=mt,mt=0),l.setTranslate(this,It[0]+Ue+St,It[1]+Ue+Bt+Ct/2+ke),Je=St+gt+ke,St+=$t,mt=Math.max(mt,Ct)}),_t?(ye._width=St+Ne,ye._height=mt+Re):(ye._width=Math.max(Pt,Je)+Ne,ye._height+=mt+Re)}}ye._width=Math.ceil(Math.max(ye._width+It[0],ye._titleWidth+2*(Ue+d.titlePad))),ye._height=Math.ceil(Math.max(ye._height+It[1],ye._titleHeight+2*(Ue+d.itemGap))),ye._effHeight=Math.min(ye._height,ye._maxHeight);var Xe=$e._context.edits,yt=Xe.legendText||Xe.legendPosition;Ce.each(function(Et){var Ct=v.select(this).select("."+Me+"toggle"),gt=Et[0].height,$t=Et[0].trace.legendgroup,Lt=E(Et,ye,Oe);Fe&&$t!==""&&(Lt=dt[$t]);var jt=yt?Oe:ut||Lt;ze||De||(jt+=ke/2),l.setRect(Ct,0,-gt/2,jt,gt)})}(U,Ee,Pe,Q)},function(){var $e,Te,Ce,ye,ge=X._size,Me=Q.borderwidth,Se=Q.xref==="paper",ze=Q.yref==="paper";if(xe.text&&function(tt,vt,At){if(vt.title.side==="top center"||vt.title.side==="top right"){var Dt=vt.title.font.size*g,Pt=0,et=tt.node(),rt=l.bBox(et).width;vt.title.side==="top center"?Pt=.5*(vt._width-2*At-2*d.titlePad-rt):vt.title.side==="top right"&&(Pt=vt._width-2*At-2*d.titlePad-rt),s.positionText(tt,At+d.titlePad+Pt,At+Dt)}}(me,Q,Me),!ee){var Fe,De;Fe=Se?ge.l+ge.w*Q.x-b[R(Q)]*Q._width:X.width*Q.x-b[R(Q)]*Q._width,De=ze?ge.t+ge.h*(1-Q.y)-b[V(Q)]*Q._effHeight:X.height*(1-Q.y)-b[V(Q)]*Q._effHeight;var Ue=function(tt,vt,At,Dt){var Pt=tt._fullLayout,et=Pt[vt],rt=R(et),We=V(et),nt=et.xref==="paper",_t=et.yref==="paper";tt._fullLayout._reservedMargin[vt]={};var mt=et.y<.5?"b":"t",St=et.x<.5?"l":"r",Bt={r:Pt.width-At,l:At+et._width,b:Pt.height-Dt,t:Dt+et._effHeight};if(nt&&_t)return n.autoMargin(tt,vt,{x:et.x,y:et.y,l:et._width*b[rt],r:et._width*w[rt],b:et._effHeight*w[We],t:et._effHeight*b[We]});nt?tt._fullLayout._reservedMargin[vt][mt]=Bt[mt]:_t||et.orientation==="v"?tt._fullLayout._reservedMargin[vt][St]=Bt[St]:tt._fullLayout._reservedMargin[vt][mt]=Bt[mt]}(U,J,Fe,De);if(Ue)return;if(X.margin.autoexpand){var Ne=Fe,ke=De;Fe=Se?f.constrain(Fe,0,X.width-Q._width):Ne,De=ze?f.constrain(De,0,X.height-Q._effHeight):ke,Fe!==Ne&&f.log("Constrain "+J+".x to make legend fit inside graph"),De!==ke&&f.log("Constrain "+J+".y to make legend fit inside graph")}l.setTranslate(ue,Fe,De)}if(we.on(".drag",null),ue.on("wheel",null),ee||Q._height<=Q._maxHeight||U._context.staticPlot){var Oe=Q._effHeight;ee&&(Oe=Q._height),pe.attr({width:Q._width-Me,height:Oe-Me,x:Me/2,y:Me/2}),l.setTranslate(_e,0,0),he.select("rect").attr({width:Q._width-2*Me,height:Oe-2*Me,x:Me,y:Me}),l.setClipUrl(_e,q,U),l.setRect(we,0,0,0,0),delete Q._scrollY}else{var Re,je,Ze,Ye=Math.max(d.scrollBarMinHeight,Q._effHeight*Q._effHeight/Q._height),it=Q._effHeight-Ye-2*d.scrollBarMargin,dt=Q._height-Q._effHeight,ut=it/dt,It=Math.min(Q._scrollY||0,dt);pe.attr({width:Q._width-2*Me+d.scrollBarWidth+d.scrollBarMargin,height:Q._effHeight-Me,x:Me/2,y:Me/2}),he.select("rect").attr({width:Q._width-2*Me+d.scrollBarWidth+d.scrollBarMargin,height:Q._effHeight-2*Me,x:Me,y:Me+It}),l.setClipUrl(_e,q,U),ot(It,Ye,ut),ue.on("wheel",function(){ot(It=f.constrain(Q._scrollY+v.event.deltaY/it*dt,0,dt),Ye,ut),It!==0&&It!==dt&&v.event.preventDefault()});var Ot=v.behavior.drag().on("dragstart",function(){var tt=v.event.sourceEvent;Re=tt.type==="touchstart"?tt.changedTouches[0].clientY:tt.clientY,Ze=It}).on("drag",function(){var tt=v.event.sourceEvent;tt.buttons===2||tt.ctrlKey||(je=tt.type==="touchmove"?tt.changedTouches[0].clientY:tt.clientY,It=function(vt,At,Dt){var Pt=(Dt-At)/ut+vt;return f.constrain(Pt,0,dt)}(Ze,Re,je),ot(It,Ye,ut))});we.call(Ot);var Ft=v.behavior.drag().on("dragstart",function(){var tt=v.event.sourceEvent;tt.type==="touchstart"&&(Re=tt.changedTouches[0].clientY,Ze=It)}).on("drag",function(){var tt=v.event.sourceEvent;tt.type==="touchmove"&&(je=tt.changedTouches[0].clientY,It=function(vt,At,Dt){var Pt=(At-Dt)/ut+vt;return f.constrain(Pt,0,dt)}(Ze,Re,je),ot(It,Ye,ut))});_e.call(Ft)}function ot(tt,vt,At){Q._scrollY=U._fullLayout[J]._scrollY=tt,l.setTranslate(_e,0,-tt),l.setRect(we,Q._width,d.scrollBarMargin+tt*At,d.scrollBarWidth,vt),he.select("rect").attr("y",Me+tt)}U._context.edits.legendPosition&&(ue.classed("cursor-move",!0),p.init({element:ue.node(),gd:U,prepFn:function(tt){if(tt.target!==we.node()){var vt=l.getTranslate(ue);Ce=vt.x,ye=vt.y}},moveFn:function(tt,vt){if(Ce!==void 0&&ye!==void 0){var At=Ce+tt,Dt=ye+vt;l.setTranslate(ue,At,Dt),$e=p.align(At,Q._width,ge.l,ge.l+ge.w,Q.xanchor),Te=p.align(Dt+Q._height,-Q._height,ge.t+ge.h,ge.t,Q.yanchor)}},doneFn:function(){if($e!==void 0&&Te!==void 0){var tt={};tt[J+".x"]=$e,tt[J+".y"]=Te,y.call("_guiRelayout",U,tt)}},clickFn:function(tt,vt){var At=W.selectAll("g.traces").filter(function(){var Dt=this.getBoundingClientRect();return vt.clientX>=Dt.left&&vt.clientX<=Dt.right&&vt.clientY>=Dt.top&&vt.clientY<=Dt.bottom});At.size()>0&&M(U,ue,At,tt,vt)}}))}],U)}}function E(U,Z,q){var W=U[0],Q=W.width,X=Z.entrywidthmode,J=W.trace.legendwidth||Z.entrywidth;return X==="fraction"?Z._maxWidth*J:q+(J||Q)}function M(U,Z,q,W,Q){var X=q.data()[0][0].trace,J={event:Q,node:q.node(),curveNumber:X.index,expandedIndex:X._expandedIndex,data:U.data,layout:U.layout,frames:U._transitionData._frames,config:U._context,fullData:U._fullData,fullLayout:U._fullLayout};X._group&&(J.group=X._group),y.traceIs(X,"pie-like")&&(J.label=q.datum()[0].label);var ee=_.triggerHandler(U,"plotly_legendclick",J);if(W===1){if(ee===!1)return;Z._clickTimeout=setTimeout(function(){U._fullLayout&&u(q,U,W)},U._context.doubleClickDelay)}else W===2&&(Z._clickTimeout&&clearTimeout(Z._clickTimeout),U._legendMouseDownTime=0,_.triggerHandler(U,"plotly_legenddoubleclick",J)!==!1&&ee!==!1&&u(q,U,W))}function I(U,Z,q){var W,Q,X=$(q),J=U.data()[0][0],ee=J.trace,le=y.traceIs(ee,"pie-like"),oe=!q._inHover&&Z._context.edits.legendText&&!le,se=q._maxNameLength;J.groupTitle?(W=J.groupTitle.text,Q=J.groupTitle.font):(Q=q.font,q.entries?W=J.text:(W=le?J.label:ee.name,ee._meta&&(W=f.templateString(W,ee._meta))));var ce=f.ensureSingle(U,"text",X+"text");ce.attr("text-anchor","start").call(l.font,Q).text(oe?N(W,se):W);var ae=q.indentation+q.itemwidth+2*d.itemGap;s.positionText(ce,ae,0),oe?ce.call(s.makeEditable,{gd:Z,text:W}).call(F,U,Z,q).on("edit",function(ne){this.text(N(ne,se)).call(F,U,Z,q);var ie=J.trace._fullInput||{},ue={};if(y.hasTransform(ie,"groupby")){var he=y.getTransformIndices(ie,"groupby"),pe=he[he.length-1],me=f.keyedContainer(ie,"transforms["+pe+"].styles","target","value.name");me.set(J.trace._group,ne),ue=me.constructUpdate()}else ue.name=ne;return ie._isShape?y.call("_guiRelayout",Z,"shapes["+ee.index+"].name",ue.name):y.call("_guiRestyle",Z,ue,ee.index)}):F(ce,U,Z,q)}function N(U,Z){var q=Math.max(4,Z);if(U&&U.trim().length>=q/2)return U;for(var W=q-(U=U||"").length;W>0;W--)U+=" ";return U}function z(U,Z,q){var W,Q=Z._context.doubleClickDelay,X=1,J=f.ensureSingle(U,"rect",q+"toggle",function(ee){Z._context.staticPlot||ee.style("cursor","pointer").attr("pointer-events","all"),ee.call(o.fill,"rgba(0,0,0,0)")});Z._context.staticPlot||(J.on("mousedown",function(){(W=new Date().getTime())-Z._legendMouseDownTime<Q?X+=1:(X=1,Z._legendMouseDownTime=W)}),J.on("mouseup",function(){if(!Z._dragged&&!Z._editing){var ee=Z._fullLayout[q];new Date().getTime()-Z._legendMouseDownTime>Q&&(X=Math.max(X-1,1)),M(Z,ee,U,X,v.event)}}))}function F(U,Z,q,W,Q){W._inHover&&U.attr("data-notex",!0),s.convertToTspans(U,q,function(){(function(X,J,ee,le){var oe=X.data()[0][0];if(ee._inHover||!oe||oe.trace.showlegend){var se=X.select("g[class*=math-group]"),ce=se.node(),ae=$(ee);ee||(ee=J._fullLayout[ae]);var ne,ie,ue=ee.borderwidth,he=(le===T?ee.title.font:oe.groupTitle?oe.groupTitle.font:ee.font).size*g;if(ce){var pe=l.bBox(ce);ne=pe.height,ie=pe.width,le===T?l.setTranslate(se,ue,ue+.75*ne):l.setTranslate(se,0,.25*ne)}else{var me="."+ae+(le===T?"title":"")+"text",_e=X.select(me),xe=s.lineCount(_e),we=_e.node();if(ne=he*xe,ie=we?l.bBox(we).width:0,le===T)ee.title.side==="left"&&(ie+=2*d.itemGap),s.positionText(_e,ue+d.titlePad,ue+he);else{var Ee=2*d.itemGap+ee.indentation+ee.itemwidth;oe.groupTitle&&(Ee=d.itemGap,ie-=ee.indentation+ee.itemwidth),s.positionText(_e,Ee,-he*((xe-1)/2-.3))}}le===T?(ee._titleWidth=ie,ee._titleHeight=ne):(oe.lineHeight=he,oe.height=Math.max(ne,16)+3,oe.width=ie)}else X.remove()})(Z,q,W,Q)})}function R(U){return f.isRightAnchor(U)?"right":f.isCenterAnchor(U)?"center":"left"}function V(U){return f.isBottomAnchor(U)?"bottom":f.isMiddleAnchor(U)?"middle":"top"}function $(U){return U._id||"legend"}c.exports=function(U,Z){if(Z)A(U,Z);else{var q=U._fullLayout,W=q._legends;q._infolayer.selectAll('[class^="legend"]').each(function(){var J=v.select(this),ee=J.attr("class").split(" ")[0];ee.match(C)&&W.indexOf(ee)===-1&&J.remove()});for(var Q=0;Q<W.length;Q++){var X=W[Q];A(U,U._fullLayout[X])}}}},851:function(c,m,a){var v=a(33626),f=a(57599);c.exports=function(n,y,_){var p,l,o=y._inHover,s=f.isGrouped(y),u=f.isReversed(y),d={},h=[],g=!1,b={},w=0,x=0;function S(W,Q,X){if(y.visible!==!1&&(!_||W===y._id))if(Q!==""&&f.isGrouped(y))h.indexOf(Q)===-1?(h.push(Q),g=!0,d[Q]=[X]):d[Q].push(X);else{var J="~~i"+w;h.push(J),d[J]=[X],w++}}for(p=0;p<n.length;p++){var k=n[p],T=k[0],C=T.trace,A=C.legend,E=C.legendgroup;if(o||C.visible&&C.showlegend)if(v.traceIs(C,"pie-like"))for(b[E]||(b[E]={}),l=0;l<k.length;l++){var M=k[l].label;b[E][M]||(S(A,E,{label:M,color:k[l].color,i:k[l].i,trace:C,pts:k[l].pts}),b[E][M]=!0,x=Math.max(x,(M||"").length))}else S(A,E,T),x=Math.max(x,(C.name||"").length)}if(!h.length)return[];var I=!g||!s,N=[];for(p=0;p<h.length;p++){var z=d[h[p]];I?N.push(z[0]):N.push(z)}for(I&&(N=[N]),p=0;p<N.length;p++){var F=1/0;for(l=0;l<N[p].length;l++){var R=N[p][l].trace.legendrank;F>R&&(F=R)}N[p][0]._groupMinRank=F,N[p][0]._preGroupSort=p}var V=function(W,Q){return W.trace.legendrank-Q.trace.legendrank||W._preSort-Q._preSort};for(N.forEach(function(W,Q){W[0]._preGroupSort=Q}),N.sort(function(W,Q){return W[0]._groupMinRank-Q[0]._groupMinRank||W[0]._preGroupSort-Q[0]._preGroupSort}),p=0;p<N.length;p++){N[p].forEach(function(W,Q){W._preSort=Q}),N[p].sort(V);var $=N[p][0].trace,U=null;for(l=0;l<N[p].length;l++){var Z=N[p][l].trace.legendgrouptitle;if(Z&&Z.text){U=Z,o&&(Z.font=y._groupTitleFont);break}}if(u&&N[p].reverse(),U){var q=!1;for(l=0;l<N[p].length;l++)if(v.traceIs(N[p][l].trace,"pie-like")){q=!0;break}N[p].unshift({i:-1,groupTitle:U,noClick:q,trace:{showlegend:$.showlegend,legendgroup:$.legendgroup,visible:y.groupclick==="toggleitem"||$.visible}})}for(l=0;l<N[p].length;l++)N[p][l]=[N[p][l]]}return y._lgroupsLength=N.length,y._maxNameLength=x,N}},22165:function(c,m,a){var v=a(33626),f=a(34809),n=f.pushUnique,y=!0;c.exports=function(_,p,l){var o=p._fullLayout;if(!p._dragged&&!p._editing){var s,u=o.legend.itemclick,d=o.legend.itemdoubleclick,h=o.legend.groupclick;if(l===1&&u==="toggle"&&d==="toggleothers"&&y&&p.data&&p._context.showTips&&f.notifier(f._(p,"Double-click on legend to isolate one trace"),"long"),y=!1,l===1?s=u:l===2&&(s=d),s){var g=h==="togglegroup",b=o.hiddenlabels?o.hiddenlabels.slice():[],w=_.data()[0][0];if(!w.groupTitle||!w.noClick){var x=p._fullData,S=(o.shapes||[]).filter(function(Te){return Te.showlegend}),k=x.concat(S),T=w.trace;T._isShape&&(T=T._fullInput);var C,A,E,M,I,N=T.legendgroup,z={},F=[],R=[],V=[],$=(o.shapes||[]).map(function(Te){return Te._input}),U=!1,Z=T.legend,q=T._fullInput;if(q&&q._isShape||!v.traceIs(T,"pie-like")){var W,Q=N&&N.length,X=[];if(Q)for(C=0;C<k.length;C++)(W=k[C]).visible&&W.legendgroup===N&&X.push(C);if(s==="toggle"){var J;switch(T.visible){case!0:J="legendonly";break;case!1:J=!1;break;case"legendonly":J=!0}if(Q)if(g)for(C=0;C<k.length;C++){var ee=k[C];ee.visible!==!1&&ee.legendgroup===N&&$e(ee,J)}else $e(T,J);else $e(T,J)}else if(s==="toggleothers"){var le,oe,se,ce,ae=!0;for(C=0;C<k.length;C++)if(le=(ce=k[C])===T,oe=ce.showlegend!==!0,!(le||oe||Q&&ce.legendgroup===N||ce.legend!==Z||ce.visible!==!0||v.traceIs(ce,"notLegendIsolatable"))){ae=!1;break}for(C=0;C<k.length;C++)if((ce=k[C]).visible!==!1&&ce.legend===Z&&!v.traceIs(ce,"notLegendIsolatable"))switch(T.visible){case"legendonly":$e(ce,!0);break;case!0:se=!!ae||"legendonly",le=ce===T,oe=ce.showlegend!==!0&&!ce.legendgroup,$e(ce,!!(le||Q&&ce.legendgroup===N||oe)||se)}}for(C=0;C<R.length;C++)if(E=R[C]){var ne=E.constructUpdate(),ie=Object.keys(ne);for(A=0;A<ie.length;A++)M=ie[A],(z[M]=z[M]||[])[V[C]]=ne[M]}for(I=Object.keys(z),C=0;C<I.length;C++)for(M=I[C],A=0;A<F.length;A++)z[M].hasOwnProperty(A)||(z[M][A]=void 0);U?v.call("_guiUpdate",p,z,{shapes:$},F):v.call("_guiRestyle",p,z,F)}else{var ue=w.label,he=b.indexOf(ue);if(s==="toggle")he===-1?b.push(ue):b.splice(he,1);else if(s==="toggleothers"){var pe=he!==-1,me=[];for(C=0;C<p.calcdata.length;C++){var _e=p.calcdata[C];for(A=0;A<_e.length;A++){var xe=_e[A].label;Z===_e[0].trace.legend&&ue!==xe&&(b.indexOf(xe)===-1&&(pe=!0),n(b,xe),me.push(xe))}}if(!pe)for(var we=0;we<me.length;we++){var Ee=b.indexOf(me[we]);Ee!==-1&&b.splice(Ee,1)}}v.call("_guiRelayout",p,"hiddenlabels",b)}}}}function Pe(Te,Ce){var ye=F.indexOf(Te),ge=z.visible;return ge||(ge=z.visible=[]),F.indexOf(Te)===-1&&(F.push(Te),ye=F.length-1),ge[ye]=Ce,ye}function $e(Te,Ce){if(!w.groupTitle||g){var ye,ge=Te._fullInput||Te,Me=ge._isShape,Se=ge.index;if(Se===void 0&&(Se=ge._index),v.hasTransform(ge,"groupby")){var ze=R[Se];if(!ze){var Fe=v.getTransformIndices(ge,"groupby"),De=Fe[Fe.length-1];ze=f.keyedContainer(ge,"transforms["+De+"].styles","target","value.visible"),R[Se]=ze}var Ue=ze.get(Te._group);Ue===void 0&&(Ue=!0),Ue!==!1&&ze.set(Te._group,Ce),V[Se]=Pe(Se,ge.visible!==!1)}else{var Ne=ge.visible!==!1&&Ce;Me?(ye=Ne,$[Se].visible=ye,U=!0):Pe(Se,Ne)}}}}},57599:function(c,m){m.isGrouped=function(a){return(a.traceorder||"").indexOf("grouped")!==-1},m.isVertical=function(a){return a.orientation!=="h"},m.isReversed=function(a){return(a.traceorder||"").indexOf("reversed")!==-1}},82494:function(c,m,a){c.exports={moduleType:"component",name:"legend",layoutAttributes:a(86405),supplyLayoutDefaults:a(73970),draw:a(6134),style:a(14375)}},14375:function(c,m,a){var v=a(45568),f=a(33626),n=a(34809),y=n.strTranslate,_=a(62203),p=a(78766),l=a(65477).extractOpts,o=a(64726),s=a(32891),u=a(37252).castOption,d=a(72783);function h(w,x){return(x?"radial":"horizontal")+(w?"":"reversed")}function g(w){var x=w[0].trace,S=x.contours,k=o.hasLines(x),T=o.hasMarkers(x),C=x.visible&&x.fill&&x.fill!=="none",A=!1,E=!1;if(S){var M=S.coloring;M==="lines"?A=!0:k=M==="none"||M==="heatmap"||S.showlines,S.type==="constraint"?C=S._operation!=="=":M!=="fill"&&M!=="heatmap"||(E=!0)}return{showMarker:T,showLine:k,showFill:C,showGradientLine:A,showGradientFill:E,anyLine:k||A,anyFill:C||E}}function b(w,x,S){return w&&n.isArrayOrTypedArray(w)?x:w>S?S:w}c.exports=function(w,x,S){var k=x._fullLayout;S||(S=k.legend);var T=S.itemsizing==="constant",C=S.itemwidth,A=(C+2*d.itemGap)/2,E=y(A,0),M=function(z,F,R,V){var $;if(z+1)$=z;else{if(!(F&&F.width>0))return 0;$=F.width}return T?V:Math.min($,R)};function I(z,F,R){var V=z[0].trace,$=V.marker||{},U=$.line||{},Z=$.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",q=R?V.visible&&V.type===R:f.traceIs(V,"bar"),W=v.select(F).select("g.legendpoints").selectAll("path.legend"+R).data(q?[z]:[]);W.enter().append("path").classed("legend"+R,!0).attr("d",Z).attr("transform",E),W.exit().remove(),W.each(function(Q){var X=v.select(this),J=Q[0],ee=M(J.mlw,$.line,5,2);X.style("stroke-width",ee+"px");var le=J.mcc;if(!S._inHover&&"mc"in J){var oe=l($),se=oe.mid;se===void 0&&(se=(oe.max+oe.min)/2),le=_.tryColorscale($,"")(se)}var ce=le||J.mc||$.color,ae=$.pattern,ne=ae&&_.getPatternAttr(ae.shape,0,"");if(ne){var ie=_.getPatternAttr(ae.bgcolor,0,null),ue=_.getPatternAttr(ae.fgcolor,0,null),he=ae.fgopacity,pe=b(ae.size,8,10),me=b(ae.solidity,.5,1),_e="legend-"+V.uid;X.call(_.pattern,"legend",x,_e,ne,pe,me,le,ae.fillmode,ie,ue,he)}else X.call(p.fill,ce);ee&&p.stroke(X,J.mlc||U.color)})}function N(z,F,R){var V=z[0],$=V.trace,U=R?$.visible&&$.type===R:f.traceIs($,R),Z=v.select(F).select("g.legendpoints").selectAll("path.legend"+R).data(U?[z]:[]);if(Z.enter().append("path").classed("legend"+R,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",E),Z.exit().remove(),Z.size()){var q=$.marker||{},W=M(u(q.line.width,V.pts),q.line,5,2),Q="pieLike",X=n.minExtend($,{marker:{line:{width:W}}},Q),J=n.minExtend(V,{trace:X},Q);s(Z,J,X,x)}}w.each(function(z){var F=v.select(this),R=n.ensureSingle(F,"g","layers");R.style("opacity",z[0].trace.opacity);var V=S.indentation,$=S.valign,U=z[0].lineHeight,Z=z[0].height;if($==="middle"&&V===0||!U||!Z)R.attr("transform",null);else{var q={top:1,bottom:-1}[$]*(.5*(U-Z+3))||0,W=S.indentation;R.attr("transform",y(W,q))}R.selectAll("g.legendfill").data([z]).enter().append("g").classed("legendfill",!0),R.selectAll("g.legendlines").data([z]).enter().append("g").classed("legendlines",!0);var Q=R.selectAll("g.legendsymbols").data([z]);Q.enter().append("g").classed("legendsymbols",!0),Q.selectAll("g.legendpoints").data([z]).enter().append("g").classed("legendpoints",!0)}).each(function(z){var F,R=z[0].trace,V=[];if(R.visible)switch(R.type){case"histogram2d":case"heatmap":V=[["M-15,-2V4H15V-2Z"]],F=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":V=[["M-6,-6V6H6V-6Z"]],F=!0;break;case"densitymapbox":case"densitymap":V=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],F="radial";break;case"cone":V=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],F=!1;break;case"streamtube":V=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],F=!1;break;case"surface":V=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],F=!0;break;case"mesh3d":V=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!1;break;case"volume":V=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!0;break;case"isosurface":V=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],F=!1}var $=v.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(V);$.enter().append("path").classed("legend3dandfriends",!0).attr("transform",E).style("stroke-miterlimit",1),$.exit().remove(),$.each(function(U,Z){var q,W=v.select(this),Q=l(R),X=Q.colorscale,J=Q.reversescale;if(X){if(!F){var ee=X.length;q=Z===0?X[J?ee-1:0][1]:Z===1?X[J?0:ee-1][1]:X[Math.floor((ee-1)/2)][1]}}else{var le=R.vertexcolor||R.facecolor||R.color;q=n.isArrayOrTypedArray(le)?le[Z]||le[0]:le}W.attr("d",U[0]),q?W.call(p.fill,q):W.call(function(oe){if(oe.size()){var se="legendfill-"+R.uid;_.gradient(oe,x,se,h(J,F==="radial"),X,"fill")}})})}).each(function(z){var F=z[0].trace,R=F.type==="waterfall";if(z[0]._distinct&&R){var V=z[0].trace[z[0].dir].marker;return z[0].mc=V.color,z[0].mlw=V.line.width,z[0].mlc=V.line.color,I(z,this,"waterfall")}var $=[];F.visible&&R&&($=z[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var U=v.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data($);U.enter().append("path").classed("legendwaterfall",!0).attr("transform",E).style("stroke-miterlimit",1),U.exit().remove(),U.each(function(Z){var q=v.select(this),W=F[Z[0]].marker,Q=M(void 0,W.line,5,2);q.attr("d",Z[1]).style("stroke-width",Q+"px").call(p.fill,W.color),Q&&q.call(p.stroke,W.line.color)})}).each(function(z){I(z,this,"funnel")}).each(function(z){I(z,this)}).each(function(z){var F=z[0].trace,R=v.select(this).select("g.legendpoints").selectAll("path.legendbox").data(F.visible&&f.traceIs(F,"box-violin")?[z]:[]);R.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",E),R.exit().remove(),R.each(function(){var V=v.select(this);if(F.boxpoints!=="all"&&F.points!=="all"||p.opacity(F.fillcolor)!==0||p.opacity((F.line||{}).color)!==0){var $=M(void 0,F.line,5,2);V.style("stroke-width",$+"px").call(p.fill,F.fillcolor),$&&p.stroke(V,F.line.color)}else{var U=n.minExtend(F,{marker:{size:T?12:n.constrain(F.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});R.call(_.pointStyle,U,x)}})}).each(function(z){N(z,this,"funnelarea")}).each(function(z){N(z,this,"pie")}).each(function(z){var F,R,V=g(z),$=V.showFill,U=V.showLine,Z=V.showGradientLine,q=V.showGradientFill,W=V.anyFill,Q=V.anyLine,X=z[0],J=X.trace,ee=l(J),le=ee.colorscale,oe=ee.reversescale,se=o.hasMarkers(J)||!W?"M5,0":Q?"M5,-2":"M5,-3",ce=v.select(this),ae=ce.select(".legendfill").selectAll("path").data($||q?[z]:[]);if(ae.enter().append("path").classed("js-fill",!0),ae.exit().remove(),ae.attr("d",se+"h"+C+"v6h-"+C+"z").call(function(ue){if(ue.size())if($)_.fillGroupStyle(ue,x,!0);else{var he="legendfill-"+J.uid;_.gradient(ue,x,he,h(oe),le,"fill")}}),U||Z){var ne=M(void 0,J.line,10,5);R=n.minExtend(J,{line:{width:ne}}),F=[n.minExtend(X,{trace:R})]}var ie=ce.select(".legendlines").selectAll("path").data(U||Z?[F]:[]);ie.enter().append("path").classed("js-line",!0),ie.exit().remove(),ie.attr("d",se+(Z?"l"+C+",0.0001":"h"+C)).call(U?_.lineGroupStyle:function(ue){if(ue.size()){var he="legendline-"+J.uid;_.lineGroupStyle(ue),_.gradient(ue,x,he,h(oe),le,"stroke")}})}).each(function(z){var F,R,V=g(z),$=V.anyFill,U=V.anyLine,Z=V.showLine,q=V.showMarker,W=z[0],Q=W.trace,X=!q&&!U&&!$&&o.hasText(Q);function J(ie,ue,he,pe){var me=n.nestedProperty(Q,ie).get(),_e=n.isArrayOrTypedArray(me)&&ue?ue(me):me;if(T&&_e&&pe!==void 0&&(_e=pe),he){if(_e<he[0])return he[0];if(_e>he[1])return he[1]}return _e}function ee(ie){return W._distinct&&W.index&&ie[W.index]?ie[W.index]:ie[0]}if(q||X||Z){var le={},oe={};if(q){le.mc=J("marker.color",ee),le.mx=J("marker.symbol",ee),le.mo=J("marker.opacity",n.mean,[.2,1]),le.mlc=J("marker.line.color",ee),le.mlw=J("marker.line.width",n.mean,[0,5],2),oe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var se=J("marker.size",n.mean,[2,16],12);le.ms=se,oe.marker.size=se}Z&&(oe.line={width:J("line.width",ee,[0,10],5)}),X&&(le.tx="Aa",le.tp=J("textposition",ee),le.ts=10,le.tc=J("textfont.color",ee),le.tf=J("textfont.family",ee),le.tw=J("textfont.weight",ee),le.ty=J("textfont.style",ee),le.tv=J("textfont.variant",ee),le.tC=J("textfont.textcase",ee),le.tE=J("textfont.lineposition",ee),le.tS=J("textfont.shadow",ee)),F=[n.minExtend(W,le)],(R=n.minExtend(Q,oe)).selectedpoints=null,R.texttemplate=null}var ce=v.select(this).select("g.legendpoints"),ae=ce.selectAll("path.scatterpts").data(q?F:[]);ae.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",E),ae.exit().remove(),ae.call(_.pointStyle,R,x),q&&(F[0].mrc=3);var ne=ce.selectAll("g.pointtext").data(X?F:[]);ne.enter().append("g").classed("pointtext",!0).append("text").attr("transform",E),ne.exit().remove(),ne.selectAll("text").call(_.textPointStyle,R,x)}).each(function(z){var F=z[0].trace,R=v.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(F.visible&&F.type==="candlestick"?[z,z]:[]);R.enter().append("path").classed("legendcandle",!0).attr("d",function(V,$){return $?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",E).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(V,$){var U=v.select(this),Z=F[$?"increasing":"decreasing"],q=M(void 0,Z.line,5,2);U.style("stroke-width",q+"px").call(p.fill,Z.fillcolor),q&&p.stroke(U,Z.line.color)})}).each(function(z){var F=z[0].trace,R=v.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(F.visible&&F.type==="ohlc"?[z,z]:[]);R.enter().append("path").classed("legendohlc",!0).attr("d",function(V,$){return $?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",E).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(V,$){var U=v.select(this),Z=F[$?"increasing":"decreasing"],q=M(void 0,Z.line,5,2);U.style("fill","none").call(_.dashLine,Z.line.dash,q),q&&p.stroke(U,Z.line.color)})})}},50308:function(c,m,a){a(87632),c.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},5832:function(c,m,a){var v=a(33626),f=a(44122),n=a(5975),y=a(35188),_=a(28231).eraseActiveShape,p=a(34809),l=p._,o=c.exports={};function s(C,A){var E,M,I=A.currentTarget,N=I.getAttribute("data-attr"),z=I.getAttribute("data-val")||!0,F=C._fullLayout,R={},V=n.list(C,null,!0),$=F._cartesianSpikesEnabled;if(N==="zoom"){var U,Z=z==="in"?.5:2,q=(1+Z)/2,W=(1-Z)/2;for(M=0;M<V.length;M++)if(!(E=V[M]).fixedrange)if(U=E._name,z==="auto")R[U+".autorange"]=!0;else if(z==="reset")E._rangeInitial0===void 0&&E._rangeInitial1===void 0?R[U+".autorange"]=!0:E._rangeInitial0===void 0?(R[U+".autorange"]=E._autorangeInitial,R[U+".range"]=[null,E._rangeInitial1]):E._rangeInitial1===void 0?(R[U+".range"]=[E._rangeInitial0,null],R[U+".autorange"]=E._autorangeInitial):R[U+".range"]=[E._rangeInitial0,E._rangeInitial1],E._showSpikeInitial!==void 0&&(R[U+".showspikes"]=E._showSpikeInitial,$!=="on"||E._showSpikeInitial||($="off"));else{var Q=[E.r2l(E.range[0]),E.r2l(E.range[1])],X=[q*Q[0]+W*Q[1],q*Q[1]+W*Q[0]];R[U+".range[0]"]=E.l2r(X[0]),R[U+".range[1]"]=E.l2r(X[1])}}else N!=="hovermode"||z!=="x"&&z!=="y"||(z=F._isHoriz?"y":"x",I.setAttribute("data-val",z)),R[N]=z;F._cartesianSpikesEnabled=$,v.call("_guiRelayout",C,R)}function u(C,A){for(var E=A.currentTarget,M=E.getAttribute("data-attr"),I=E.getAttribute("data-val")||!0,N=C._fullLayout._subplots.gl3d||[],z={},F=M.split("."),R=0;R<N.length;R++)z[N[R]+"."+F[1]]=I;var V=I==="pan"?I:"zoom";z.dragmode=V,v.call("_guiRelayout",C,z)}function d(C,A){for(var E=A.currentTarget.getAttribute("data-attr"),M=E==="resetLastSave",I=E==="resetDefault",N=C._fullLayout,z=N._subplots.gl3d||[],F={},R=0;R<z.length;R++){var V,$=z[R],U=$+".camera",Z=$+".aspectratio",q=$+".aspectmode",W=N[$]._scene;M?(F[U+".up"]=W.viewInitial.up,F[U+".eye"]=W.viewInitial.eye,F[U+".center"]=W.viewInitial.center,V=!0):I&&(F[U+".up"]=null,F[U+".eye"]=null,F[U+".center"]=null,V=!0),V&&(F[Z+".x"]=W.viewInitial.aspectratio.x,F[Z+".y"]=W.viewInitial.aspectratio.y,F[Z+".z"]=W.viewInitial.aspectratio.z,F[q]=W.viewInitial.aspectmode)}v.call("_guiRelayout",C,F)}function h(C,A){var E=A.currentTarget,M=E._previousVal,I=C._fullLayout,N=I._subplots.gl3d||[],z=["xaxis","yaxis","zaxis"],F={},R={};if(M)R=M,E._previousVal=null;else{for(var V=0;V<N.length;V++){var $=N[V],U=I[$],Z=$+".hovermode";F[Z]=U.hovermode,R[Z]=!1;for(var q=0;q<3;q++){var W=z[q],Q=$+"."+W+".showspikes";R[Q]=!1,F[Q]=U[W].showspikes}}E._previousVal=F}return R}function g(C,A){for(var E=A.currentTarget,M=E.getAttribute("data-attr"),I=E.getAttribute("data-val")||!0,N=C._fullLayout,z=N._subplots.geo||[],F=0;F<z.length;F++){var R=z[F],V=N[R];if(M==="zoom"){var $=V.projection.scale,U=I==="in"?2*$:.5*$;v.call("_guiRelayout",C,R+".projection.scale",U)}}M==="reset"&&T(C,"geo")}function b(C){var A=C._fullLayout;return!A.hovermode&&(A._has("cartesian")?A._isHoriz?"y":"x":"closest")}function w(C){var A=b(C);v.call("_guiRelayout",C,"hovermode",A)}function x(C,A){k(C,A,"mapbox")}function S(C,A){k(C,A,"map")}function k(C,A,E){for(var M=A.currentTarget.getAttribute("data-val"),I=C._fullLayout,N=I._subplots[E]||[],z={},F=0;F<N.length;F++){var R=N[F],V=I[R].zoom,$=M==="in"?1.05*V:V/1.05;z[R+".zoom"]=$}v.call("_guiRelayout",C,z)}function T(C,A){for(var E=C._fullLayout,M=E._subplots[A]||[],I={},N=0;N<M.length;N++)for(var z=M[N],F=E[z]._subplot.viewInitial,R=Object.keys(F),V=0;V<R.length;V++){var $=R[V];I[z+"."+$]=F[$]}v.call("_guiRelayout",C,I)}o.toImage={name:"toImage",title:function(C){var A=(C._context.toImageButtonOptions||{}).format||"png";return l(C,A==="png"?"Download plot as a png":"Download plot")},icon:y.camera,click:function(C){var A=C._context.toImageButtonOptions,E={format:A.format||"png"};p.notifier(l(C,"Taking snapshot - this may take a few seconds"),"long"),E.format!=="svg"&&p.isIE()&&(p.notifier(l(C,"IE only supports svg. Changing format to svg."),"long"),E.format="svg"),["filename","width","height","scale"].forEach(function(M){M in A&&(E[M]=A[M])}),v.call("downloadImage",C,E).then(function(M){p.notifier(l(C,"Snapshot succeeded")+" - "+M,"long")}).catch(function(){p.notifier(l(C,"Sorry, there was a problem downloading your snapshot!"),"long")})}},o.sendDataToCloud={name:"sendDataToCloud",title:function(C){return l(C,"Edit in Chart Studio")},icon:y.disk,click:function(C){f.sendDataToCloud(C)}},o.editInChartStudio={name:"editInChartStudio",title:function(C){return l(C,"Edit in Chart Studio")},icon:y.pencil,click:function(C){f.sendDataToCloud(C)}},o.zoom2d={name:"zoom2d",_cat:"zoom",title:function(C){return l(C,"Zoom")},attr:"dragmode",val:"zoom",icon:y.zoombox,click:s},o.pan2d={name:"pan2d",_cat:"pan",title:function(C){return l(C,"Pan")},attr:"dragmode",val:"pan",icon:y.pan,click:s},o.select2d={name:"select2d",_cat:"select",title:function(C){return l(C,"Box Select")},attr:"dragmode",val:"select",icon:y.selectbox,click:s},o.lasso2d={name:"lasso2d",_cat:"lasso",title:function(C){return l(C,"Lasso Select")},attr:"dragmode",val:"lasso",icon:y.lasso,click:s},o.drawclosedpath={name:"drawclosedpath",title:function(C){return l(C,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:y.drawclosedpath,click:s},o.drawopenpath={name:"drawopenpath",title:function(C){return l(C,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:y.drawopenpath,click:s},o.drawline={name:"drawline",title:function(C){return l(C,"Draw line")},attr:"dragmode",val:"drawline",icon:y.drawline,click:s},o.drawrect={name:"drawrect",title:function(C){return l(C,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:y.drawrect,click:s},o.drawcircle={name:"drawcircle",title:function(C){return l(C,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:y.drawcircle,click:s},o.eraseshape={name:"eraseshape",title:function(C){return l(C,"Erase active shape")},icon:y.eraseshape,click:_},o.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(C){return l(C,"Zoom in")},attr:"zoom",val:"in",icon:y.zoom_plus,click:s},o.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(C){return l(C,"Zoom out")},attr:"zoom",val:"out",icon:y.zoom_minus,click:s},o.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(C){return l(C,"Autoscale")},attr:"zoom",val:"auto",icon:y.autoscale,click:s},o.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(C){return l(C,"Reset axes")},attr:"zoom",val:"reset",icon:y.home,click:s},o.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(C){return l(C,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:y.tooltip_basic,gravity:"ne",click:s},o.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(C){return l(C,"Compare data on hover")},attr:"hovermode",val:function(C){return C._fullLayout._isHoriz?"y":"x"},icon:y.tooltip_compare,gravity:"ne",click:s},o.zoom3d={name:"zoom3d",_cat:"zoom",title:function(C){return l(C,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:y.zoombox,click:u},o.pan3d={name:"pan3d",_cat:"pan",title:function(C){return l(C,"Pan")},attr:"scene.dragmode",val:"pan",icon:y.pan,click:u},o.orbitRotation={name:"orbitRotation",title:function(C){return l(C,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:y["3d_rotate"],click:u},o.tableRotation={name:"tableRotation",title:function(C){return l(C,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:y["z-axis"],click:u},o.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(C){return l(C,"Reset camera to default")},attr:"resetDefault",icon:y.home,click:d},o.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(C){return l(C,"Reset camera to last save")},attr:"resetLastSave",icon:y.movie,click:d},o.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(C){return l(C,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:y.tooltip_basic,gravity:"ne",click:function(C,A){var E=h(C,A);v.call("_guiRelayout",C,E)}},o.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(C){return l(C,"Zoom in")},attr:"zoom",val:"in",icon:y.zoom_plus,click:g},o.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(C){return l(C,"Zoom out")},attr:"zoom",val:"out",icon:y.zoom_minus,click:g},o.resetGeo={name:"resetGeo",_cat:"reset",title:function(C){return l(C,"Reset")},attr:"reset",val:null,icon:y.autoscale,click:g},o.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(C){return l(C,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:y.tooltip_basic,gravity:"ne",click:w},o.hoverClosestGl2d={name:"hoverClosestGl2d",_cat:"hoverclosest",title:function(C){return l(C,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:y.tooltip_basic,gravity:"ne",click:w},o.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(C){return l(C,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:y.tooltip_basic,gravity:"ne",click:w},o.resetViewSankey={name:"resetSankeyGroup",title:function(C){return l(C,"Reset view")},icon:y.home,click:function(C){for(var A={"node.groups":[],"node.x":[],"node.y":[]},E=0;E<C._fullData.length;E++){var M=C._fullData[E]._viewInitial;A["node.groups"].push(M.node.groups.slice()),A["node.x"].push(M.node.x.slice()),A["node.y"].push(M.node.y.slice())}v.call("restyle",C,A)}},o.toggleHover={name:"toggleHover",title:function(C){return l(C,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:y.tooltip_basic,gravity:"ne",click:function(C,A){var E=h(C,A);E.hovermode=b(C),v.call("_guiRelayout",C,E)}},o.resetViews={name:"resetViews",title:function(C){return l(C,"Reset views")},icon:y.home,click:function(C,A){var E=A.currentTarget;E.setAttribute("data-attr","zoom"),E.setAttribute("data-val","reset"),s(C,A),E.setAttribute("data-attr","resetLastSave"),d(C,A),T(C,"geo"),T(C,"mapbox"),T(C,"map")}},o.toggleSpikelines={name:"toggleSpikelines",title:function(C){return l(C,"Toggle Spike Lines")},icon:y.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(C){var A=C._fullLayout,E=A._cartesianSpikesEnabled;A._cartesianSpikesEnabled=E==="on"?"off":"on",v.call("_guiRelayout",C,function(M){for(var I=M._fullLayout._cartesianSpikesEnabled==="on",N=n.list(M,null,!0),z={},F=0;F<N.length;F++){var R=N[F];z[R._name+".showspikes"]=!!I||R._showSpikeInitial}return z}(C))}},o.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(C){return l(C,"Reset view")},attr:"reset",icon:y.home,click:function(C){T(C,"mapbox")}},o.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(C){return l(C,"Reset view")},attr:"reset",icon:y.home,click:function(C){T(C,"map")}},o.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(C){return l(C,"Zoom in")},attr:"zoom",val:"in",icon:y.zoom_plus,click:x},o.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(C){return l(C,"Zoom in")},attr:"zoom",val:"in",icon:y.zoom_plus,click:S},o.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(C){return l(C,"Zoom out")},attr:"zoom",val:"out",icon:y.zoom_minus,click:x},o.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(C){return l(C,"Zoom out")},attr:"zoom",val:"out",icon:y.zoom_minus,click:S}},87632:function(c,m,a){var v=a(5832),f=Object.keys(v),n=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],y=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(n),_=[];f.forEach(function(p){(function(l){if(y.indexOf(l._cat||l.name)===-1){var o=l.name,s=(l._cat||l.name).toLowerCase();_.indexOf(o)===-1&&_.push(o),_.indexOf(s)===-1&&_.push(s)}})(v[p])}),_.sort(),c.exports={DRAW_MODES:n,backButtons:y,foreButtons:_}},17683:function(c,m,a){var v=a(34809),f=a(78766),n=a(78032),y=a(50308);c.exports=function(_,p){var l=_.modebar||{},o=n.newContainer(p,"modebar");function s(d,h){return v.coerce(l,o,y,d,h)}s("orientation"),s("bgcolor",f.addOpacity(p.paper_bgcolor,.5));var u=f.contrast(f.rgb(p.modebar.bgcolor));s("color",f.addOpacity(u,.3)),s("activecolor",f.addOpacity(u,.7)),s("uirevision",p.uirevision),s("add"),s("remove")}},95433:function(c,m,a){c.exports={moduleType:"component",name:"modebar",layoutAttributes:a(50308),supplyLayoutDefaults:a(17683),manage:a(75442)}},75442:function(c,m,a){var v=a(5975),f=a(64726),n=a(33626),y=a(36040).isUnifiedHover,_=a(85393),p=a(5832),l=a(87632).DRAW_MODES,o=a(34809).extendDeep;c.exports=function(s){var u=s._fullLayout,d=s._context,h=u._modeBar;if(d.displayModeBar||d.watermark){if(!Array.isArray(d.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(d.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var g,b=d.modeBarButtons;g=Array.isArray(b)&&b.length?function(w){for(var x=o([],w),S=0;S<x.length;S++)for(var k=x[S],T=0;T<k.length;T++){var C=k[T];if(typeof C=="string"){if(p[C]===void 0)throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "));x[S][T]=p[C]}}return x}(b):!d.displayModeBar&&d.watermark?[]:function(w){var x=w._fullLayout,S=w._fullData,k=w._context;function T(_e,xe){if(typeof xe=="string"){if(xe.toLowerCase()===_e.toLowerCase())return!0}else{var we=xe.name,Ee=xe._cat||xe.name;if(we===_e||Ee===_e.toLowerCase())return!0}return!1}var C=x.modebar.add;typeof C=="string"&&(C=[C]);var A=x.modebar.remove;typeof A=="string"&&(A=[A]);var E=k.modeBarButtonsToAdd.concat(C.filter(function(_e){for(var xe=0;xe<k.modeBarButtonsToRemove.length;xe++)if(T(_e,k.modeBarButtonsToRemove[xe]))return!1;return!0})),M=k.modeBarButtonsToRemove.concat(A.filter(function(_e){for(var xe=0;xe<k.modeBarButtonsToAdd.length;xe++)if(T(_e,k.modeBarButtonsToAdd[xe]))return!1;return!0})),I=x._has("cartesian"),N=x._has("gl3d"),z=x._has("geo"),F=x._has("pie"),R=x._has("funnelarea"),V=x._has("gl2d"),$=x._has("ternary"),U=x._has("mapbox"),Z=x._has("map"),q=x._has("polar"),W=x._has("smith"),Q=x._has("sankey"),X=function(_e){for(var xe=v.list({_fullLayout:_e},null,!0),we=0;we<xe.length;we++)if(!xe[we].fixedrange)return!1;return!0}(x),J=y(x.hovermode),ee=[];function le(_e){if(_e.length){for(var xe=[],we=0;we<_e.length;we++){for(var Ee=_e[we],Pe=p[Ee],$e=Pe.name.toLowerCase(),Te=(Pe._cat||Pe.name).toLowerCase(),Ce=!1,ye=0;ye<M.length;ye++){var ge=M[ye].toLowerCase();if(ge===$e||ge===Te){Ce=!0;break}}Ce||xe.push(p[Ee])}ee.push(xe)}}var oe=["toImage"];k.showEditInChartStudio?oe.push("editInChartStudio"):k.showSendToCloud&&oe.push("sendDataToCloud"),le(oe);var se=[],ce=[],ae=[],ne=[];(I||V||F||R||$)+z+N+U+Z+q+W>1?(ce=["toggleHover"],ae=["resetViews"]):z?(se=["zoomInGeo","zoomOutGeo"],ce=["hoverClosestGeo"],ae=["resetGeo"]):N?(ce=["hoverClosest3d"],ae=["resetCameraDefault3d","resetCameraLastSave3d"]):U?(se=["zoomInMapbox","zoomOutMapbox"],ce=["toggleHover"],ae=["resetViewMapbox"]):Z?(se=["zoomInMap","zoomOutMap"],ce=["toggleHover"],ae=["resetViewMap"]):V?ce=["hoverClosestGl2d"]:F?ce=["hoverClosestPie"]:Q?(ce=["hoverClosestCartesian","hoverCompareCartesian"],ae=["resetViewSankey"]):ce=["toggleHover"],I&&ce.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(function(_e){for(var xe=0;xe<_e.length;xe++)if(!n.traceIs(_e[xe],"noHover"))return!1;return!0}(S)||J)&&(ce=[]),!I&&!V||X||(se=["zoomIn2d","zoomOut2d","autoScale2d"],ae[0]!=="resetViews"&&(ae=["resetScale2d"])),N?ne=["zoom3d","pan3d","orbitRotation","tableRotation"]:(I||V)&&!X||$?ne=["zoom2d","pan2d"]:U||Z||z?ne=["pan2d"]:q&&(ne=["zoom2d"]),function(_e){for(var xe=!1,we=0;we<_e.length&&!xe;we++){var Ee=_e[we];Ee._module&&Ee._module.selectPoints&&(n.traceIs(Ee,"scatter-like")?(f.hasMarkers(Ee)||f.hasText(Ee))&&(xe=!0):n.traceIs(Ee,"box-violin")&&Ee.boxpoints!=="all"&&Ee.points!=="all"||(xe=!0))}return xe}(S)&&ne.push("select2d","lasso2d");var ie=[],ue=function(_e){ie.indexOf(_e)===-1&&ce.indexOf(_e)!==-1&&ie.push(_e)};if(Array.isArray(E)){for(var he=[],pe=0;pe<E.length;pe++){var me=E[pe];typeof me=="string"?(me=me.toLowerCase(),l.indexOf(me)!==-1?(x._has("mapbox")||x._has("map")||x._has("cartesian"))&&ne.push(me):me==="togglespikelines"?ue("toggleSpikelines"):me==="togglehover"?ue("toggleHover"):me==="hovercompare"?ue("hoverCompareCartesian"):me==="hoverclosest"?(ue("hoverClosestCartesian"),ue("hoverClosestGeo"),ue("hoverClosest3d"),ue("hoverClosestGl2d"),ue("hoverClosestPie")):me==="v1hovermode"&&(ue("hoverClosestCartesian"),ue("hoverCompareCartesian"),ue("hoverClosestGeo"),ue("hoverClosest3d"),ue("hoverClosestGl2d"),ue("hoverClosestPie"))):he.push(me)}E=he}return le(ne),le(se.concat(ae)),le(ie),function(_e,xe){if(xe.length)if(Array.isArray(xe[0]))for(var we=0;we<xe.length;we++)_e.push(xe[we]);else _e.push(xe);return _e}(ee,E)}(s),h?h.update(s,g):u._modeBar=_(s,g)}else h&&(h.destroy(),delete u._modeBar)}},85393:function(c,m,a){var v=a(45568),f=a(10721),n=a(34809),y=a(35188),_=a(29697).version,p=new DOMParser;function l(s){this.container=s.container,this.element=document.createElement("div"),this.update(s.graphInfo,s.buttons),this.container.appendChild(this.element)}var o=l.prototype;o.update=function(s,u){this.graphInfo=s;var d=this.graphInfo._context,h=this.graphInfo._fullLayout,g="modebar-"+h._uid;this.element.setAttribute("id",g),this._uid=g,this.element.className="modebar",d.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),h.modebar.orientation==="v"&&(this.element.className+=" vertical",u=u.reverse());var b=h.modebar,w=d.displayModeBar==="hover"?".js-plotly-plot .plotly:hover ":"";n.deleteRelatedStyleRule(g),n.addRelatedStyleRule(g,w+"#"+g+" .modebar-group","background-color: "+b.bgcolor),n.addRelatedStyleRule(g,"#"+g+" .modebar-btn .icon path","fill: "+b.color),n.addRelatedStyleRule(g,"#"+g+" .modebar-btn:hover .icon path","fill: "+b.activecolor),n.addRelatedStyleRule(g,"#"+g+" .modebar-btn.active .icon path","fill: "+b.activecolor);var x=!this.hasButtons(u),S=this.hasLogo!==d.displaylogo,k=this.locale!==d.locale;if(this.locale=d.locale,(x||S||k)&&(this.removeAllButtons(),this.updateButtons(u),d.watermark||d.displaylogo)){var T=this.getLogo();d.watermark&&(T.className=T.className+" watermark"),h.modebar.orientation==="v"?this.element.insertBefore(T,this.element.childNodes[0]):this.element.appendChild(T),this.hasLogo=!0}this.updateActiveButton()},o.updateButtons=function(s){var u=this;this.buttons=s,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(d){var h=u.createGroup();d.forEach(function(g){var b=g.name;if(!b)throw new Error("must provide button 'name' in button config");if(u.buttonsNames.indexOf(b)!==-1)throw new Error("button name '"+b+"' is taken");u.buttonsNames.push(b);var w=u.createButton(g);u.buttonElements.push(w),h.appendChild(w)}),u.element.appendChild(h)})},o.createGroup=function(){var s=document.createElement("div");return s.className="modebar-group",s},o.createButton=function(s){var u=this,d=document.createElement("a");d.setAttribute("rel","tooltip"),d.className="modebar-btn";var h=s.title;h===void 0?h=s.name:typeof h=="function"&&(h=h(this.graphInfo)),(h||h===0)&&d.setAttribute("data-title",h),s.attr!==void 0&&d.setAttribute("data-attr",s.attr);var g=s.val;if(g!==void 0&&(typeof g=="function"&&(g=g(this.graphInfo)),d.setAttribute("data-val",g)),typeof s.click!="function")throw new Error("must provide button 'click' function in button config");d.addEventListener("click",function(w){s.click(u.graphInfo,w),u.updateActiveButton(w.currentTarget)}),d.setAttribute("data-toggle",s.toggle||!1),s.toggle&&v.select(d).classed("active",!0);var b=s.icon;return typeof b=="function"?d.appendChild(b()):d.appendChild(this.createIcon(b||y.question)),d.setAttribute("data-gravity",s.gravity||"n"),d},o.createIcon=function(s){var u,d=f(s.height)?Number(s.height):s.ascent-s.descent,h="http://www.w3.org/2000/svg";if(s.path){(u=document.createElementNS(h,"svg")).setAttribute("viewBox",[0,0,s.width,d].join(" ")),u.setAttribute("class","icon");var g=document.createElementNS(h,"path");g.setAttribute("d",s.path),s.transform?g.setAttribute("transform",s.transform):s.ascent!==void 0&&g.setAttribute("transform","matrix(1 0 0 -1 0 "+s.ascent+")"),u.appendChild(g)}return s.svg&&(u=p.parseFromString(s.svg,"application/xml").childNodes[0]),u.setAttribute("height","1em"),u.setAttribute("width","1em"),u},o.updateActiveButton=function(s){var u=this.graphInfo._fullLayout,d=s!==void 0?s.getAttribute("data-attr"):null;this.buttonElements.forEach(function(h){var g=h.getAttribute("data-val")||!0,b=h.getAttribute("data-attr"),w=h.getAttribute("data-toggle")==="true",x=v.select(h);if(w)b===d&&x.classed("active",!x.classed("active"));else{var S=b===null?b:n.nestedProperty(u,b).get();x.classed("active",S===g)}})},o.hasButtons=function(s){var u=this.buttons;if(!u||s.length!==u.length)return!1;for(var d=0;d<s.length;++d){if(s[d].length!==u[d].length)return!1;for(var h=0;h<s[d].length;h++)if(s[d][h].name!==u[d][h].name)return!1}return!0},o.getLogo=function(){var s=this.createGroup(),u=document.createElement("a");return u.href="https://plotly.com/",u.target="_blank",u.setAttribute("data-title",n._(this.graphInfo,"Produced with Plotly.js")+" (v"+_+")"),u.className="modebar-btn plotlyjsicon modebar-btn--logo",u.appendChild(this.createIcon(y.newplotlylogo)),s.appendChild(u),s},o.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},o.destroy=function(){n.removeElement(this.container.querySelector(".modebar")),n.deleteRelatedStyleRule(this._uid)},c.exports=function(s,u){var d=s._fullLayout,h=new l({graphInfo:s,container:d._modebardiv.node(),buttons:u});return d._privateplot&&v.select(h.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),h}},91032:function(c,m,a){var v=a(80337),f=a(10229),n=(0,a(78032).templatedArray)("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});c.exports={visible:{valType:"boolean",editType:"plot"},buttons:n,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:v({editType:"plot"}),bgcolor:{valType:"color",dflt:f.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:f.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}},68508:function(c){c.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},86255:function(c,m,a){var v=a(34809),f=a(78766),n=a(78032),y=a(59008),_=a(91032),p=a(68508);function l(o,s,u,d){var h=d.calendar;function g(w,x){return v.coerce(o,s,_.buttons,w,x)}if(g("visible")){var b=g("step");b!=="all"&&(!h||h==="gregorian"||b!=="month"&&b!=="year"?g("stepmode"):s.stepmode="backward",g("count")),g("label")}}c.exports=function(o,s,u,d,h){var g=o.rangeselector||{},b=n.newContainer(s,"rangeselector");function w(k,T){return v.coerce(g,b,_,k,T)}if(w("visible",y(g,b,{name:"buttons",handleItemDefaults:l,calendar:h}).length>0)){var x=function(k,T,C){for(var A=C.filter(function(N){return T[N].anchor===k._id}),E=0,M=0;M<A.length;M++){var I=T[A[M]].domain;I&&(E=Math.max(I[1],E))}return[k.domain[0],E+p.yPad]}(s,u,d);w("x",x[0]),w("y",x[1]),v.noneOrAll(o,s,["x","y"]),w("xanchor"),w("yanchor"),v.coerceFont(w,"font",u.font);var S=w("bgcolor");w("activecolor",f.contrast(S,p.lightAmount,p.darkAmount)),w("bordercolor"),w("borderwidth")}}},45431:function(c,m,a){var v=a(45568),f=a(33626),n=a(44122),y=a(78766),_=a(62203),p=a(34809),l=p.strTranslate,o=a(30635),s=a(5975),u=a(4530),d=u.LINE_SPACING,h=u.FROM_TL,g=u.FROM_BR,b=a(68508),w=a(16383);function x(T){return T._id}function S(T,C,A){var E=p.ensureSingle(T,"rect","selector-rect",function(M){M.attr("shape-rendering","crispEdges")});E.attr({rx:b.rx,ry:b.ry}),E.call(y.stroke,C.bordercolor).call(y.fill,function(M,I){return I._isActive||I._isHovered?M.activecolor:M.bgcolor}(C,A)).style("stroke-width",C.borderwidth+"px")}function k(T,C,A,E){var M,I;p.ensureSingle(T,"text","selector-text",function(N){N.attr("text-anchor","middle")}).call(_.font,C.font).text((M=A,I=E._fullLayout._meta,M.label?I?p.templateString(M.label,I):M.label:M.step==="all"?"all":M.count+M.step.charAt(0))).call(function(N){o.convertToTspans(N,E)})}c.exports=function(T){var C=T._fullLayout._infolayer.selectAll(".rangeselector").data(function(A){for(var E=s.list(A,"x",!0),M=[],I=0;I<E.length;I++){var N=E[I];N.rangeselector&&N.rangeselector.visible&&M.push(N)}return M}(T),x);C.enter().append("g").classed("rangeselector",!0),C.exit().remove(),C.style({cursor:"pointer","pointer-events":"all"}),C.each(function(A){var E=v.select(this),M=A,I=M.rangeselector,N=E.selectAll("g.button").data(p.filterVisible(I.buttons));N.enter().append("g").classed("button",!0),N.exit().remove(),N.each(function(z){var F=v.select(this),R=w(M,z);z._isActive=function(V,$,U){if($.step==="all")return V.autorange===!0;var Z=Object.keys(U);return V.range[0]===U[Z[0]]&&V.range[1]===U[Z[1]]}(M,z,R),F.call(S,I,z),F.call(k,I,z,T),F.on("click",function(){T._dragged||f.call("_guiRelayout",T,R)}),F.on("mouseover",function(){z._isHovered=!0,F.call(S,I,z)}),F.on("mouseout",function(){z._isHovered=!1,F.call(S,I,z)})}),function(z,F,R,V,$){var U=0,Z=0,q=R.borderwidth;F.each(function(){var le=v.select(this).select(".selector-text"),oe=R.font.size*d,se=Math.max(oe*o.lineCount(le),16)+3;Z=Math.max(Z,se)}),F.each(function(){var le=v.select(this),oe=le.select(".selector-rect"),se=le.select(".selector-text"),ce=se.node()&&_.bBox(se.node()).width,ae=R.font.size*d,ne=o.lineCount(se),ie=Math.max(ce+10,b.minButtonWidth);le.attr("transform",l(q+U,q)),oe.attr({x:0,y:0,width:ie,height:Z}),o.positionText(se,ie/2,Z/2-(ne-1)*ae/2+3),U+=ie+5});var W=z._fullLayout._size,Q=W.l+W.w*R.x,X=W.t+W.h*(1-R.y),J="left";p.isRightAnchor(R)&&(Q-=U,J="right"),p.isCenterAnchor(R)&&(Q-=U/2,J="center");var ee="top";p.isBottomAnchor(R)&&(X-=Z,ee="bottom"),p.isMiddleAnchor(R)&&(X-=Z/2,ee="middle"),U=Math.ceil(U),Z=Math.ceil(Z),Q=Math.round(Q),X=Math.round(X),n.autoMargin(z,V+"-range-selector",{x:R.x,y:R.y,l:U*h[J],r:U*g[J],b:Z*g[ee],t:Z*h[ee]}),$.attr("transform",l(Q,X))}(T,N,I,M._name,E)})}},16383:function(c,m,a){var v=a(50936),f=a(34809).titleCase;c.exports=function(n,y){var _=n._name,p={};if(y.step==="all")p[_+".autorange"]=!0;else{var l=function(o,s){var u,d=o.range,h=new Date(o.r2l(d[1])),g=s.step,b=v["utc"+f(g)],w=s.count;switch(s.stepmode){case"backward":u=o.l2r(+b.offset(h,-w));break;case"todate":var x=b.offset(h,-w);u=o.l2r(+b.ceil(x))}return[u,d[1]]}(n,y);p[_+".range[0]"]=l[0],p[_+".range[1]"]=l[1]}return p}},44453:function(c,m,a){c.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:a(91032)}}},layoutAttributes:a(91032),handleDefaults:a(86255),draw:a(45431)}},63608:function(c,m,a){var v=a(10229);c.exports={bgcolor:{valType:"color",dflt:v.background,editType:"plot"},bordercolor:{valType:"color",dflt:v.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}},46223:function(c,m,a){var v=a(5975).list,f=a(32919).getAutoRange,n=a(20604);c.exports=function(y){for(var _=v(y,"x",!0),p=0;p<_.length;p++){var l=_[p],o=l[n.name];o&&o.visible&&o.autorange&&(o._input.autorange=!0,o._input.range=o.range=f(y,l))}}},20604:function(c){c.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},41295:function(c,m,a){var v=a(34809),f=a(78032),n=a(5975),y=a(63608),_=a(66249);c.exports=function(p,l,o){var s=p[o],u=l[o];if(s.rangeslider||l._requestRangeslider[u._id]){v.isPlainObject(s.rangeslider)||(s.rangeslider={});var d,h,g=s.rangeslider,b=f.newContainer(u,"rangeslider");if(E("visible")){E("bgcolor",l.plot_bgcolor),E("bordercolor"),E("borderwidth"),E("thickness"),E("autorange",!u.isValidRange(g.range)),E("range");var w=l._subplots;if(w)for(var x=w.cartesian.filter(function(I){return I.substr(0,I.indexOf("y"))===n.name2id(o)}).map(function(I){return I.substr(I.indexOf("y"),I.length)}),S=v.simpleMap(x,n.id2name),k=0;k<S.length;k++){var T=S[k];d=g[T]||{},h=f.newContainer(b,T,"yaxis");var C,A=l[T];d.range&&A.isValidRange(d.range)&&(C="fixed"),M("rangemode",C)!=="match"&&M("range",A.range.slice())}b._input=g}}function E(I,N){return v.coerce(g,b,y,I,N)}function M(I,N){return v.coerce(d,h,_,I,N)}}},88887:function(c,m,a){var v=a(45568),f=a(33626),n=a(44122),y=a(34809),_=y.strTranslate,p=a(62203),l=a(78766),o=a(17240),s=a(37703),u=a(5975),d=a(14751),h=a(27983),g=a(20604);function b(A){return typeof A.clientX=="number"?A.clientX:A.touches&&A.touches.length>0?A.touches[0].clientX:0}function w(A,E,M,I){var N=y.ensureSingle(A,"rect",g.bgClassName,function(V){V.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),z=I.borderwidth%2==0?I.borderwidth:I.borderwidth-1,F=-I._offsetShift,R=p.crispRound(E,I.borderwidth);N.attr({width:I._width+z,height:I._height+z,transform:_(F,F),"stroke-width":R}).call(l.stroke,I.bordercolor).call(l.fill,I.bgcolor)}function x(A,E,M,I){var N=E._fullLayout;y.ensureSingleById(N._topdefs,"clipPath",I._clipId,function(z){z.append("rect").attr({x:0,y:0})}).select("rect").attr({width:I._width,height:I._height})}function S(A,E,M,I){var N,z=E.calcdata,F=A.selectAll("g."+g.rangePlotClassName).data(M._subplotsWith,y.identity);F.enter().append("g").attr("class",function(R){return g.rangePlotClassName+" "+R}).call(p.setClipUrl,I._clipId,E),F.order(),F.exit().remove(),F.each(function(R,V){var $=v.select(this),U=V===0,Z=u.getFromId(E,R,"y"),q=Z._name,W=I[q],Q={data:[],layout:{xaxis:{type:M.type,domain:[0,1],range:I.range.slice(),calendar:M.calendar},width:I._width,height:I._height,margin:{t:0,b:0,l:0,r:0}},_context:E._context};M.rangebreaks&&(Q.layout.xaxis.rangebreaks=M.rangebreaks),Q.layout[q]={type:Z.type,domain:[0,1],range:W.rangemode!=="match"?W.range.slice():Z.range.slice(),calendar:Z.calendar},Z.rangebreaks&&(Q.layout[q].rangebreaks=Z.rangebreaks),n.supplyDefaults(Q);var X=Q._fullLayout.xaxis,J=Q._fullLayout[q];X.clearCalc(),X.setScale(),J.clearCalc(),J.setScale();var ee={id:R,plotgroup:$,xaxis:X,yaxis:J,isRangePlot:!0};U?N=ee:(ee.mainplot="xy",ee.mainplotinfo=N),s.rangePlot(E,ee,function(le,oe){for(var se=[],ce=0;ce<le.length;ce++){var ae=le[ce],ne=ae[0].trace;ne.xaxis+ne.yaxis===oe&&se.push(ae)}return se}(z,R))})}function k(A,E,M,I,N){y.ensureSingle(A,"rect",g.maskMinClassName,function(z){z.attr({x:0,y:0,"shape-rendering":"crispEdges"})}).attr("height",I._height).call(l.fill,g.maskColor),y.ensureSingle(A,"rect",g.maskMaxClassName,function(z){z.attr({y:0,"shape-rendering":"crispEdges"})}).attr("height",I._height).call(l.fill,g.maskColor),N.rangemode!=="match"&&(y.ensureSingle(A,"rect",g.maskMinOppAxisClassName,function(z){z.attr({y:0,"shape-rendering":"crispEdges"})}).attr("width",I._width).call(l.fill,g.maskOppAxisColor),y.ensureSingle(A,"rect",g.maskMaxOppAxisClassName,function(z){z.attr({y:0,"shape-rendering":"crispEdges"})}).attr("width",I._width).style("border-top",g.maskOppBorder).call(l.fill,g.maskOppAxisColor))}function T(A,E,M,I){E._context.staticPlot||y.ensureSingle(A,"rect",g.slideBoxClassName,function(N){N.attr({y:0,cursor:g.slideBoxCursor,"shape-rendering":"crispEdges"})}).attr({height:I._height,fill:g.slideBoxFill})}function C(A,E,M,I){var N=y.ensureSingle(A,"g",g.grabberMinClassName),z=y.ensureSingle(A,"g",g.grabberMaxClassName),F={x:0,width:g.handleWidth,rx:g.handleRadius,fill:l.background,stroke:l.defaultLine,"stroke-width":g.handleStrokeWidth,"shape-rendering":"crispEdges"},R={y:Math.round(I._height/4),height:Math.round(I._height/2)};y.ensureSingle(N,"rect",g.handleMinClassName,function($){$.attr(F)}).attr(R),y.ensureSingle(z,"rect",g.handleMaxClassName,function($){$.attr(F)}).attr(R);var V={width:g.grabAreaWidth,x:0,y:0,fill:g.grabAreaFill,cursor:E._context.staticPlot?void 0:g.grabAreaCursor};y.ensureSingle(N,"rect",g.grabAreaMinClassName,function($){$.attr(V)}).attr("height",I._height),y.ensureSingle(z,"rect",g.grabAreaMaxClassName,function($){$.attr(V)}).attr("height",I._height)}c.exports=function(A){for(var E=A._fullLayout,M=E._rangeSliderData,I=0;I<M.length;I++){var N=M[I][g.name];N._clipId=N._id+"-"+E._uid}var z=E._infolayer.selectAll("g."+g.containerClassName).data(M,function(F){return F._name});z.exit().each(function(F){var R=F[g.name];E._topdefs.select("#"+R._clipId).remove()}).remove(),M.length!==0&&(z.enter().append("g").classed(g.containerClassName,!0).attr("pointer-events","all"),z.each(function(F){var R=v.select(this),V=F[g.name],$=E[u.id2name(F.anchor)],U=V[u.id2name(F.anchor)];if(V.range){var Z,q=y.simpleMap(V.range,F.r2l),W=y.simpleMap(F.range,F.r2l);Z=W[0]<W[1]?[Math.min(q[0],W[0]),Math.max(q[1],W[1])]:[Math.max(q[0],W[0]),Math.min(q[1],W[1])],V.range=V._input.range=y.simpleMap(Z,F.l2r)}F.cleanRange("rangeslider.range");var Q=E._size,X=F.domain;V._width=Q.w*(X[1]-X[0]);var J=Math.round(Q.l+Q.w*X[0]),ee=Math.round(Q.t+Q.h*(1-F._counterDomainMin)+(F.side==="bottom"?F._depth:0)+V._offsetShift+g.extraPad);R.attr("transform",_(J,ee)),V._rl=y.simpleMap(V.range,F.r2l);var le=V._rl[0],oe=V._rl[1],se=oe-le;if(V.p2d=function(_e){return _e/V._width*se+le},V.d2p=function(_e){return(_e-le)/se*V._width},F.rangebreaks){var ce=F.locateBreaks(le,oe);if(ce.length){var ae,ne,ie=0;for(ae=0;ae<ce.length;ae++)ie+=(ne=ce[ae]).max-ne.min;var ue=V._width/(oe-le-ie),he=[-ue*le];for(ae=0;ae<ce.length;ae++)ne=ce[ae],he.push(he[he.length-1]-ue*(ne.max-ne.min));for(V.d2p=function(_e){for(var xe=he[0],we=0;we<ce.length;we++){var Ee=ce[we];if(_e>=Ee.max)xe=he[we+1];else if(_e<Ee.min)break}return xe+ue*_e},ae=0;ae<ce.length;ae++)(ne=ce[ae]).pmin=V.d2p(ne.min),ne.pmax=V.d2p(ne.max);V.p2d=function(_e){for(var xe=he[0],we=0;we<ce.length;we++){var Ee=ce[we];if(_e>=Ee.pmax)xe=he[we+1];else if(_e<Ee.pmin)break}return(_e-xe)/ue}}}if(U.rangemode!=="match"){var pe=$.r2l(U.range[0]),me=$.r2l(U.range[1])-pe;V.d2pOppAxis=function(_e){return(_e-pe)/me*V._height}}R.call(w,A,F,V).call(x,A,F,V).call(S,A,F,V).call(k,A,F,V,U).call(T,A,F,V).call(C,A,F,V),function(_e,xe,we,Ee){if(!xe._context.staticPlot){var Pe=_e.select("rect."+g.slideBoxClassName).node(),$e=_e.select("rect."+g.grabAreaMinClassName).node(),Te=_e.select("rect."+g.grabAreaMaxClassName).node();_e.on("mousedown",Ce),_e.on("touchstart",Ce)}function Ce(){var ye=v.event,ge=ye.target,Me=b(ye),Se=Me-_e.node().getBoundingClientRect().left,ze=Ee.d2p(we._rl[0]),Fe=Ee.d2p(we._rl[1]),De=d.coverSlip();function Ue(ke){var Oe,Re,je,Ze=+b(ke)-Me;switch(ge){case Pe:if(je="ew-resize",ze+Ze>we._length||Fe+Ze<0)return;Oe=ze+Ze,Re=Fe+Ze;break;case $e:if(je="col-resize",ze+Ze>we._length)return;Oe=ze+Ze,Re=Fe;break;case Te:if(je="col-resize",Fe+Ze<0)return;Oe=ze,Re=Fe+Ze;break;default:je="ew-resize",Oe=Se,Re=Se+Ze}if(Re<Oe){var Ye=Re;Re=Oe,Oe=Ye}Ee._pixelMin=Oe,Ee._pixelMax=Re,h(v.select(De),je),function(it,dt,ut,It){function Ot(tt){return ut.l2r(y.constrain(tt,It._rl[0],It._rl[1]))}var Ft=Ot(It.p2d(It._pixelMin)),ot=Ot(It.p2d(It._pixelMax));window.requestAnimationFrame(function(){f.call("_guiRelayout",dt,ut._name+".range",[Ft,ot])})}(0,xe,we,Ee)}function Ne(){De.removeEventListener("mousemove",Ue),De.removeEventListener("mouseup",Ne),this.removeEventListener("touchmove",Ue),this.removeEventListener("touchend",Ne),y.removeElement(De)}this.addEventListener("touchmove",Ue),this.addEventListener("touchend",Ne),De.addEventListener("mousemove",Ue),De.addEventListener("mouseup",Ne)}}(R,A,F,V),function(_e,xe,we,Ee,Pe,$e){var Te=g.handleWidth/2;function Ce(ke){return y.constrain(ke,0,Ee._width)}function ye(ke){return y.constrain(ke,0,Ee._height)}function ge(ke){return y.constrain(ke,-Te,Ee._width+Te)}var Me=Ce(Ee.d2p(we._rl[0])),Se=Ce(Ee.d2p(we._rl[1]));if(_e.select("rect."+g.slideBoxClassName).attr("x",Me).attr("width",Se-Me),_e.select("rect."+g.maskMinClassName).attr("width",Me),_e.select("rect."+g.maskMaxClassName).attr("x",Se).attr("width",Ee._width-Se),$e.rangemode!=="match"){var ze=Ee._height-ye(Ee.d2pOppAxis(Pe._rl[1])),Fe=Ee._height-ye(Ee.d2pOppAxis(Pe._rl[0]));_e.select("rect."+g.maskMinOppAxisClassName).attr("x",Me).attr("height",ze).attr("width",Se-Me),_e.select("rect."+g.maskMaxOppAxisClassName).attr("x",Me).attr("y",Fe).attr("height",Ee._height-Fe).attr("width",Se-Me),_e.select("rect."+g.slideBoxClassName).attr("y",ze).attr("height",Fe-ze)}var De=.5,Ue=Math.round(ge(Me-Te))-De,Ne=Math.round(ge(Se-Te))+De;_e.select("g."+g.grabberMinClassName).attr("transform",_(Ue,De)),_e.select("g."+g.grabberMaxClassName).attr("transform",_(Ne,De))}(R,0,F,V,$,U),F.side==="bottom"&&o.draw(A,F._id+"title",{propContainer:F,propName:F._name+".title",placeholder:E._dfltTitle.x,attributes:{x:F._offset+F._length/2,y:ee+V._height+V._offsetShift+10+1.5*F.title.font.size,"text-anchor":"middle"}})}))}},80400:function(c,m,a){var v=a(5975),f=a(30635),n=a(20604),y=a(4530).LINE_SPACING,_=n.name;function p(l){var o=l&&l[_];return o&&o.visible}m.isVisible=p,m.makeData=function(l){var o=v.list({_fullLayout:l},"x",!0),s=l.margin,u=[];if(!l._has("gl2d"))for(var d=0;d<o.length;d++){var h=o[d];if(p(h)){u.push(h);var g=h[_];g._id=_+h._id,g._height=(l.height-s.b-s.t)*g.thickness,g._offsetShift=Math.floor(g.borderwidth/2)}}l._rangeSliderData=u},m.autoMarginOpts=function(l,o){var s=l._fullLayout,u=o[_],d=o._id.charAt(0),h=0,g=0;return o.side==="bottom"&&(h=o._depth,o.title.text!==s._dfltTitle[d]&&(g=1.5*o.title.font.size+10+u._offsetShift,g+=(o.title.text.match(f.BR_TAG_ALL)||[]).length*o.title.font.size*y)),{x:0,y:o._counterDomainMin,l:0,r:0,t:0,b:u._height+h+Math.max(s.margin.b,g),pad:n.extraPad+2*u._offsetShift}}},55429:function(c,m,a){var v=a(34809),f=a(63608),n=a(66249),y=a(80400);c.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:v.extendFlat({},f,{yaxis:n})}}},layoutAttributes:a(63608),handleDefaults:a(41295),calcAutorange:a(46223),draw:a(88887),isVisible:y.isVisible,makeData:y.makeData,autoMarginOpts:y.autoMarginOpts}},66249:function(c){c.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}},4327:function(c,m,a){var v=a(50222),f=a(36640).line,n=a(94850).T,y=a(93049).extendFlat,_=a(13582).overrideAll,p=a(78032).templatedArray;a(35081),c.exports=_(p("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:y({},v.xref,{}),yref:y({},v.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:f.color,width:y({},f.width,{min:1,dflt:1}),dash:y({},n,{dflt:"dot"})}}),"arraydraw","from-root")},78865:function(c){c.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}},2272:function(c,m,a){var v=a(34809),f=a(29714),n=a(59008),y=a(4327),_=a(49728);function p(l,o,s){function u(F,R){return v.coerce(l,o,y,F,R)}var d=u("path"),h=u("type",d?"path":"rect")!=="path";h&&delete o.path,u("opacity"),u("line.color"),u("line.width"),u("line.dash");for(var g=["x","y"],b=0;b<2;b++){var w,x,S,k=g[b],T={_fullLayout:s},C=f.coerceRef(l,o,T,k);if((w=f.getFromId(T,C))._selectionIndices.push(o._index),S=_.rangeToShapePosition(w),x=_.shapePositionToRange(w),h){var A=k+"0",E=k+"1",M=l[A],I=l[E];l[A]=x(l[A],!0),l[E]=x(l[E],!0),f.coercePosition(o,T,u,C,A),f.coercePosition(o,T,u,C,E);var N=o[A],z=o[E];N!==void 0&&z!==void 0&&(o[A]=S(N),o[E]=S(z),l[A]=M,l[E]=I)}}h&&v.noneOrAll(l,o,["x0","x1","y0","y1"])}c.exports=function(l,o){n(l,o,{name:"selections",handleItemDefaults:p});for(var s=o.selections,u=0;u<s.length;u++){var d=s[u];d&&d.path===void 0&&(d.x0!==void 0&&d.x1!==void 0&&d.y0!==void 0&&d.y1!==void 0||(o.selections[u]=null))}}},7028:function(c,m,a){var v=a(81055).readPaths,f=a(561),n=a(78534).clearOutlineControllers,y=a(78766),_=a(62203),p=a(78032).arrayEditor,l=a(49728),o=l.getPathString;function s(b){var w=b._fullLayout;for(var x in n(b),w._selectionLayer.selectAll("path").remove(),w._plots){var S=w._plots[x].selectionLayer;S&&S.selectAll("path").remove()}for(var k=0;k<w.selections.length;k++)d(b,k)}function u(b){return b._context.editSelection}function d(b,w){b._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+w+'"]').remove();var x=l.makeSelectionsOptionsAndPlotinfo(b,w),S=x.options,k=x.plotinfo;S._input&&function(T){var C=o(b,S),A={"data-index":w,"fill-rule":"evenodd",d:C},E=S.opacity,M="rgba(0,0,0,0)",I=S.line.color||y.contrast(b._fullLayout.plot_bgcolor),N=S.line.width,z=S.line.dash;N||(N=5,z="solid");var F=u(b)&&b._fullLayout._activeSelectionIndex===w;F&&(M=b._fullLayout.activeselection.fillcolor,E=b._fullLayout.activeselection.opacity);for(var R=[],V=1;V>=0;V--){var $=T.append("path").attr(A).style("opacity",V?.1:E).call(y.stroke,I).call(y.fill,M).call(_.dashLine,V?"solid":z,V?4+N:N);if(h($,b,S),F){var U=p(b.layout,"selections",S);$.style({cursor:"move"});var Z={element:$.node(),plotinfo:k,gd:b,editHelpers:U,isActiveSelection:!0},q=v(C,b);f(q,$,Z)}else $.style("pointer-events",V?"all":"none");R[V]=$}var W=R[0];R[1].node().addEventListener("click",function(){return function(Q,X){if(u(Q)){var J=+X.node().getAttribute("data-index");if(J>=0){if(J===Q._fullLayout._activeSelectionIndex)return void g(Q);Q._fullLayout._activeSelectionIndex=J,Q._fullLayout._deactivateSelection=g,s(Q)}}}(b,W)})}(b._fullLayout._selectionLayer)}function h(b,w,x){var S=x.xref+x.yref;_.setClipUrl(b,"clip"+w._fullLayout._uid+S,w)}function g(b){u(b)&&b._fullLayout._activeSelectionIndex>=0&&(n(b),delete b._fullLayout._activeSelectionIndex,s(b))}c.exports={draw:s,drawOne:d,activateLastSelection:function(b){if(u(b)){var w=b._fullLayout.selections.length-1;b._fullLayout._activeSelectionIndex=w,b._fullLayout._deactivateSelection=g,s(b)}}}},52307:function(c,m,a){var v=a(94850).T,f=a(93049).extendFlat;c.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:f({},v,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},43028:function(c){c.exports=function(m,a,v){v("newselection.mode"),v("newselection.line.width")&&(v("newselection.line.color"),v("newselection.line.dash")),v("activeselection.fillcolor"),v("activeselection.opacity")}},51817:function(c,m,a){var v=a(70414).selectMode,f=a(78534).clearOutline,n=a(81055),y=n.readPaths,_=n.writePaths,p=n.fixDatesForPaths;c.exports=function(l,o){if(l.length){var s=l[0][0];if(s){var u=s.getAttribute("d"),d=o.gd,h=d._fullLayout.newselection,g=o.plotinfo,b=g.xaxis,w=g.yaxis,x=o.isActiveSelection,S=o.dragmode,k=(d.layout||{}).selections||[];if(!v(S)&&x!==void 0){var T=d._fullLayout._activeSelectionIndex;if(T<k.length)switch(d._fullLayout.selections[T].type){case"rect":S="select";break;case"path":S="lasso"}}var C,A=y(u,d,g,x),E={xref:b._id,yref:w._id,opacity:h.opacity,line:{color:h.line.color,width:h.line.width,dash:h.line.dash}};A.length===1&&(C=A[0]),C&&C.length===5&&S==="select"?(E.type="rect",E.x0=C[0][1],E.y0=C[0][2],E.x1=C[2][1],E.y1=C[2][2]):(E.type="path",b&&w&&p(A,b,w),E.path=_(A),C=null),f(d);for(var M=o.editHelpers,I=(M||{}).modifyItem,N=[],z=0;z<k.length;z++){var F=d._fullLayout.selections[z];if(F){if(N[z]=F._input,x!==void 0&&z===d._fullLayout._activeSelectionIndex){var R=E;switch(F.type){case"rect":I("x0",R.x0),I("x1",R.x1),I("y0",R.y0),I("y1",R.y1);break;case"path":I("path",R.path)}}}else N[z]=F}return x===void 0?(N.push(E),N):M?M.getUpdateObj():{}}}}},49801:function(c,m,a){var v=a(34809).strTranslate;function f(n,y){switch(n.type){case"log":return n.p2d(y);case"date":return n.p2r(y,0,n.calendar);default:return n.p2r(y)}}c.exports={p2r:f,r2p:function(n,y){switch(n.type){case"log":return n.d2p(y);case"date":return n.r2p(y,0,n.calendar);default:return n.r2p(y)}},axValue:function(n){var y=n._id.charAt(0)==="y"?1:0;return function(_){return f(n,_[y])}},getTransform:function(n){return v(n.xaxis._offset,n.yaxis._offset)}}},44844:function(c,m,a){var v=a(7028),f=a(88666);c.exports={moduleType:"component",name:"selections",layoutAttributes:a(4327),supplyLayoutDefaults:a(2272),supplyDrawNewSelectionDefaults:a(43028),includeBasePlot:a(20706)("selections"),draw:v.draw,drawOne:v.drawOne,reselect:f.reselect,prepSelect:f.prepSelect,clearOutline:f.clearOutline,clearSelectionsCache:f.clearSelectionsCache,selectOnClick:f.selectOnClick}},88666:function(c,m,a){var v=a(11516),f=a(52773),n=a(33626),y=a(62203).dashStyle,_=a(78766),p=a(32141),l=a(36040).makeEventData,o=a(70414),s=o.freeMode,u=o.rectMode,d=o.drawMode,h=o.openMode,g=o.selectMode,b=a(49728),w=a(2956),x=a(561),S=a(78534).clearOutline,k=a(81055),T=k.handleEllipse,C=k.readPaths,A=a(87562).newShapes,E=a(51817),M=a(7028).activateLastSelection,I=a(34809),N=I.sorterAsc,z=a(80899),F=a(64025),R=a(5975).getFromId,V=a(34823),$=a(71817).redrawReglTraces,U=a(78865),Z=U.MINSELECT,q=z.filter,W=z.tester,Q=a(49801),X=Q.p2r,J=Q.axValue,ee=Q.getTransform;function le(Ue){return Ue.subplot!==void 0}function oe(Ue,Ne,ke,Oe,Re,je,Ze){var Ye,it,dt,ut,It,Ot,Ft,ot,tt,vt=Ne._hoverdata,At=Ne._fullLayout.clickmode.indexOf("event")>-1,Dt=[];if(function(nt){return nt&&Array.isArray(nt)&&nt[0].hoverOnBox!==!0}(vt)){ne(Ue,Ne,je);var Pt=function(nt,_t){var mt,St,Bt=nt[0],Je=-1,Xe=[];for(St=0;St<_t.length;St++)if(mt=_t[St],Bt.fullData._expandedIndex===mt.cd[0].trace._expandedIndex){if(Bt.hoverOnBox===!0)break;Bt.pointNumber!==void 0?Je=Bt.pointNumber:Bt.binNumber!==void 0&&(Je=Bt.binNumber,Xe=Bt.pointNumbers);break}return{pointNumber:Je,pointNumbers:Xe,searchInfo:mt}}(vt,Ye=he(Ne,ke,Oe,Re));if(Pt.pointNumbers.length>0?function(nt,_t){var mt,St,Bt,Je=[];for(Bt=0;Bt<nt.length;Bt++)(mt=nt[Bt]).cd[0].trace.selectedpoints&&mt.cd[0].trace.selectedpoints.length>0&&Je.push(mt);if(Je.length===1&&Je[0]===_t.searchInfo&&(St=_t.searchInfo.cd[0].trace).selectedpoints.length===_t.pointNumbers.length){for(Bt=0;Bt<_t.pointNumbers.length;Bt++)if(St.selectedpoints.indexOf(_t.pointNumbers[Bt])<0)return!1;return!0}return!1}(Ye,Pt):function(nt){var _t,mt,St=0;for(mt=0;mt<nt.length;mt++)if((_t=nt[mt].cd[0].trace).selectedpoints&&(_t.selectedpoints.length>1||(St+=_t.selectedpoints.length)>1))return!1;return St===1}(Ye)&&(Ot=me(Pt))){for(Ze&&Ze.remove(),tt=0;tt<Ye.length;tt++)(it=Ye[tt])._module.selectPoints(it,!1);_e(Ne,Ye),ie(je),At&&De(Ne)}else{for(Ft=Ue.shiftKey&&(Ot!==void 0?Ot:me(Pt)),dt=function(nt,_t,mt){return{pointNumber:nt,searchInfo:_t,subtract:!!mt}}(Pt.pointNumber,Pt.searchInfo,Ft),ut=ae(je.selectionDefs.concat([dt])),tt=0;tt<Ye.length;tt++)if(It=we(Ye[tt]._module.selectPoints(Ye[tt],ut),Ye[tt]),Dt.length)for(var et=0;et<It.length;et++)Dt.push(It[et]);else Dt=It;if(_e(Ne,Ye,ot={points:Dt}),dt&&je&&je.selectionDefs.push(dt),Ze){var rt=je.mergedPolygons,We=h(je.dragmode);x(Ee(rt,We),Ze,je)}At&&Fe(Ne,ot)}}}function se(Ue){return"pointNumber"in Ue&&"searchInfo"in Ue}function ce(Ue){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(Ne,ke,Oe,Re){var je=Ue.searchInfo.cd[0].trace._expandedIndex;return Re.cd[0].trace._expandedIndex===je&&Oe===Ue.pointNumber},isRect:!1,degenerate:!1,subtract:!!Ue.subtract}}function ae(Ue){if(Ue.length){for(var Ne=[],ke=se(Ue[0])?0:Ue[0][0][0],Oe=ke,Re=se(Ue[0])?0:Ue[0][0][1],je=Re,Ze=0;Ze<Ue.length;Ze++)if(se(Ue[Ze]))Ne.push(ce(Ue[Ze]));else{var Ye=W(Ue[Ze]);Ye.subtract=!!Ue[Ze].subtract,Ne.push(Ye),ke=Math.min(ke,Ye.xmin),Oe=Math.max(Oe,Ye.xmax),Re=Math.min(Re,Ye.ymin),je=Math.max(je,Ye.ymax)}return{xmin:ke,xmax:Oe,ymin:Re,ymax:je,pts:[],contains:function(it,dt,ut,It){for(var Ot=!1,Ft=0;Ft<Ne.length;Ft++)Ne[Ft].contains(it,dt,ut,It)&&(Ot=!Ne[Ft].subtract);return Ot},isRect:!1,degenerate:!1}}}function ne(Ue,Ne,ke){var Oe=Ne._fullLayout,Re=ke.plotinfo,je=ke.dragmode,Ze=Oe._lastSelectedSubplot&&Oe._lastSelectedSubplot===Re.id,Ye=(Ue.shiftKey||Ue.altKey)&&!(d(je)&&h(je));Ze&&Ye&&Re.selection&&Re.selection.selectionDefs&&!ke.selectionDefs?(ke.selectionDefs=Re.selection.selectionDefs,ke.mergedPolygons=Re.selection.mergedPolygons):Ye&&Re.selection||ie(ke),Ze||(S(Ne),Oe._lastSelectedSubplot=Re.id)}function ie(Ue,Ne){var ke=Ue.dragmode,Oe=Ue.plotinfo,Re=Ue.gd;(function(It){return It._fullLayout._activeShapeIndex>=0})(Re)&&Re._fullLayout._deactivateShape(Re),function(It){return It._fullLayout._activeSelectionIndex>=0}(Re)&&Re._fullLayout._deactivateSelection(Re);var je=Re._fullLayout._zoomlayer,Ze=d(ke),Ye=g(ke);if(Ze||Ye){var it,dt,ut=je.selectAll(".select-outline-"+Oe.id);ut&&Re._fullLayout._outlining&&(Ze&&(it=A(ut,Ue)),it&&n.call("_guiRelayout",Re,{shapes:it}),Ye&&!le(Ue)&&(dt=E(ut,Ue)),dt&&(Re._fullLayout._noEmitSelectedAtStart=!0,n.call("_guiRelayout",Re,{selections:dt}).then(function(){Ne&&M(Re)})),Re._fullLayout._outlining=!1)}Oe.selection={},Oe.selection.selectionDefs=Ue.selectionDefs=[],Oe.selection.mergedPolygons=Ue.mergedPolygons=[]}function ue(Ue){return Ue._id}function he(Ue,Ne,ke,Oe){if(!Ue.calcdata)return[];var Re,je,Ze,Ye=[],it=Ne.map(ue),dt=ke.map(ue);for(Ze=0;Ze<Ue.calcdata.length;Ze++)if((je=(Re=Ue.calcdata[Ze])[0].trace).visible===!0&&je._module&&je._module.selectPoints)if(!le({subplot:Oe})||je.subplot!==Oe&&je.geo!==Oe)if(je.type==="splom"){if(je._xaxes[it[0]]&&je._yaxes[dt[0]]){var ut=pe(je._module,Re,Ne[0],ke[0]);ut.scene=Ue._fullLayout._splomScenes[je.uid],Ye.push(ut)}}else if(je.type==="sankey"){var It=pe(je._module,Re,Ne[0],ke[0]);Ye.push(It)}else{if(!(it.indexOf(je.xaxis)!==-1||je._xA&&je._xA.overlaying)||!(dt.indexOf(je.yaxis)!==-1||je._yA&&je._yA.overlaying))continue;Ye.push(pe(je._module,Re,R(Ue,je.xaxis),R(Ue,je.yaxis)))}else Ye.push(pe(je._module,Re,Ne[0],ke[0]));return Ye}function pe(Ue,Ne,ke,Oe){return{_module:Ue,cd:Ne,xaxis:ke,yaxis:Oe}}function me(Ue){var Ne=Ue.searchInfo.cd[0].trace,ke=Ue.pointNumber,Oe=Ue.pointNumbers,Re=Oe.length>0?Oe[0]:ke;return!!Ne.selectedpoints&&Ne.selectedpoints.indexOf(Re)>-1}function _e(Ue,Ne,ke){var Oe,Re;for(Oe=0;Oe<Ne.length;Oe++){var je=Ne[Oe].cd[0].trace._fullInput,Ze=Ue._fullLayout._tracePreGUI[je.uid]||{};Ze.selectedpoints===void 0&&(Ze.selectedpoints=je._input.selectedpoints||null)}if(ke){var Ye=ke.points||[];for(Oe=0;Oe<Ne.length;Oe++)(Re=Ne[Oe].cd[0].trace)._input.selectedpoints=Re._fullInput.selectedpoints=[],Re._fullInput!==Re&&(Re.selectedpoints=[]);for(var it=0;it<Ye.length;it++){var dt=Ye[it],ut=dt.data,It=dt.fullData,Ot=dt.pointIndex,Ft=dt.pointIndices;Ft?([].push.apply(ut.selectedpoints,Ft),Re._fullInput!==Re&&[].push.apply(It.selectedpoints,Ft)):(ut.selectedpoints.push(Ot),Re._fullInput!==Re&&It.selectedpoints.push(Ot))}}else for(Oe=0;Oe<Ne.length;Oe++)delete(Re=Ne[Oe].cd[0].trace).selectedpoints,delete Re._input.selectedpoints,Re._fullInput!==Re&&delete Re._fullInput.selectedpoints;(function(ot,tt){for(var vt=!1,At=0;At<tt.length;At++){var Dt=tt[At],Pt=Dt.cd;n.traceIs(Pt[0].trace,"regl")&&(vt=!0);var et=Dt._module,rt=et.styleOnSelect||et.style;rt&&(rt(ot,Pt,Pt[0].node3),Pt[0].nodeRangePlot3&&rt(ot,Pt,Pt[0].nodeRangePlot3))}vt&&(V(ot),$(ot))})(Ue,Ne)}function xe(Ue,Ne,ke){for(var Oe=(ke?v.difference:v.union)({regions:Ue},{regions:[Ne]}).regions.reverse(),Re=0;Re<Oe.length;Re++){var je=Oe[Re];je.subtract=ge(je,Oe.slice(0,Re))}return Oe}function we(Ue,Ne){if(Array.isArray(Ue))for(var ke=Ne.cd,Oe=Ne.cd[0].trace,Re=0;Re<Ue.length;Re++)Ue[Re]=l(Ue[Re],Oe,ke);return Ue}function Ee(Ue,Ne){for(var ke=[],Oe=0;Oe<Ue.length;Oe++){ke[Oe]=[];for(var Re=0;Re<Ue[Oe].length;Re++){ke[Oe][Re]=[],ke[Oe][Re][0]=Re?"L":"M";for(var je=0;je<Ue[Oe][Re].length;je++)ke[Oe][Re].push(Ue[Oe][Re][je])}Ne||ke[Oe].push(["Z",ke[Oe][0][1],ke[Oe][0][2]])}return ke}function Pe(Ue,Ne){for(var ke,Oe,Re=[],je=[],Ze=0;Ze<Ne.length;Ze++){var Ye=Ne[Ze];Oe=Ye._module.selectPoints(Ye,Ue),je.push(Oe),ke=we(Oe,Ye),Re=Re.concat(ke)}return Re}function $e(Ue,Ne,ke,Oe,Re){var je,Ze,Ye,it=!!Oe;Re&&(je=Re.plotinfo,Ze=Re.xaxes[0]._id,Ye=Re.yaxes[0]._id);var dt=[],ut=[],It=ye(Ue),Ot=Ue._fullLayout;if(je){var Ft=Ot._zoomlayer,ot=Ot.dragmode,tt=d(ot),vt=g(ot);if(tt||vt){var At=R(Ue,Ze,"x"),Dt=R(Ue,Ye,"y");if(At&&Dt){var Pt=Ft.selectAll(".select-outline-"+je.id);if(Pt&&Ue._fullLayout._outlining&&Pt.length){for(var et=Pt[0][0].getAttribute("d"),rt=C(et,Ue,je),We=[],nt=0;nt<rt.length;nt++){for(var _t=rt[nt],mt=[],St=0;St<_t.length;St++)mt.push([Me(At,_t[St][1]),Me(Dt,_t[St][2])]);mt.xref=Ze,mt.yref=Ye,mt.subtract=ge(mt,We),We.push(mt)}It=It.concat(We)}}}}var Bt=Ze&&Ye?[Ze+Ye]:Ot._subplots.cartesian;(function(Ja){var Fa=Ja.calcdata;if(Fa)for(var qa=0;qa<Fa.length;qa++){var Ka=Fa[qa][0].trace,vn=Ja._fullLayout._splomScenes;if(vn){var zn=vn[Ka.uid];zn&&(zn.selectBatch=[])}}})(Ue);for(var Je={},Xe=0;Xe<Bt.length;Xe++){var yt=Bt[Xe],Et=yt.indexOf("y"),Ct=yt.slice(0,Et),gt=yt.slice(Et),$t=Ze&&Ye?ke:void 0;if($t=Ce(It,Ct,gt,$t)){var Lt=Oe;if(!it){var jt=R(Ue,Ct,"x"),Rt=R(Ue,gt,"y");Lt=he(Ue,[jt],[Rt],yt);for(var Vt=0;Vt<Lt.length;Vt++){var Qt=Lt[Vt],ta=Qt.cd[0],_a=ta.trace;if(Qt._module.name==="scattergl"&&!ta.t.xpx){var ka=_a.x,va=_a.y,ia=_a._length;ta.t.xpx=[],ta.t.ypx=[];for(var fa=0;fa<ia;fa++)ta.t.xpx[fa]=jt.c2p(ka[fa]),ta.t.ypx[fa]=Rt.c2p(va[fa])}Qt._module.name==="splom"&&(Je[_a.uid]||(Je[_a.uid]=!0))}}var Da=Pe($t,Lt);dt=dt.concat(Da),ut=ut.concat(Lt)}}var wa={points:dt};_e(Ue,ut,wa);var da=Ot.clickmode.indexOf("event")>-1&&Ne;if(!je&&Ne){var Ea=ye(Ue,!0);if(Ea.length){var ua=Ea[0].xref,ba=Ea[0].yref;if(ua&&ba){var Ra=Se(Ea);ze([R(Ue,ua,"x"),R(Ue,ba,"y")])(wa,Ra)}}Ue._fullLayout._noEmitSelectedAtStart?Ue._fullLayout._noEmitSelectedAtStart=!1:da&&Fe(Ue,wa),Ot._reselect=!1}if(!je&&Ot._deselect){var Oa=Ot._deselect;(function(Ja,Fa,qa){for(var Ka=0;Ka<qa.length;Ka++){var vn=qa[Ka];if(vn.xaxis&&vn.xaxis._id===Ja&&vn.yaxis&&vn.yaxis._id===Fa)return!0}return!1})(Ze=Oa.xref,Ye=Oa.yref,ut)||Te(Ue,Ze,Ye,Oe),da&&(wa.points.length?Fe(Ue,wa):De(Ue)),Ot._deselect=!1}return{eventData:wa,selectionTesters:ke}}function Te(Ue,Ne,ke,Oe){Oe=he(Ue,[R(Ue,Ne,"x")],[R(Ue,ke,"y")],Ne+ke);for(var Re=0;Re<Oe.length;Re++){var je=Oe[Re];je._module.selectPoints(je,!1)}_e(Ue,Oe)}function Ce(Ue,Ne,ke,Oe){for(var Re,je=0;je<Ue.length;je++){var Ze=Ue[je];Ne===Ze.xref&&ke===Ze.yref&&(Re?Oe=ae(Re=xe(Re,Ze,!!Ze.subtract)):(Re=[Ze],Oe=W(Ze)))}return Oe}function ye(Ue,Ne){for(var ke=[],Oe=Ue._fullLayout,Re=Oe.selections,je=Re.length,Ze=0;Ze<je;Ze++)if(!Ne||Ze===Oe._activeSelectionIndex){var Ye=Re[Ze];if(Ye){var it,dt,ut,It,Ot,Ft=Ye.xref,ot=Ye.yref,tt=R(Ue,Ft,"x"),vt=R(Ue,ot,"y");if(Ye.type==="rect"){Ot=[];var At=Me(tt,Ye.x0),Dt=Me(tt,Ye.x1),Pt=Me(vt,Ye.y0),et=Me(vt,Ye.y1);Ot=[[At,Pt],[At,et],[Dt,et],[Dt,Pt]],it=Math.min(At,Dt),dt=Math.max(At,Dt),ut=Math.min(Pt,et),It=Math.max(Pt,et),Ot.xmin=it,Ot.xmax=dt,Ot.ymin=ut,Ot.ymax=It,Ot.xref=Ft,Ot.yref=ot,Ot.subtract=!1,Ot.isRect=!0,ke.push(Ot)}else if(Ye.type==="path")for(var rt=Ye.path.split("Z"),We=[],nt=0;nt<rt.length;nt++){var _t=rt[nt];if(_t){_t+="Z";var mt=b.extractPathCoords(_t,w.paramIsX,"raw"),St=b.extractPathCoords(_t,w.paramIsY,"raw");it=1/0,dt=-1/0,ut=1/0,It=-1/0,Ot=[];for(var Bt=0;Bt<mt.length;Bt++){var Je=Me(tt,mt[Bt]),Xe=Me(vt,St[Bt]);Ot.push([Je,Xe]),it=Math.min(Je,it),dt=Math.max(Je,dt),ut=Math.min(Xe,ut),It=Math.max(Xe,It)}Ot.xmin=it,Ot.xmax=dt,Ot.ymin=ut,Ot.ymax=It,Ot.xref=Ft,Ot.yref=ot,Ot.subtract=ge(Ot,We),We.push(Ot),ke.push(Ot)}}}}return ke}function ge(Ue,Ne){for(var ke=!1,Oe=0;Oe<Ne.length;Oe++)for(var Re=Ne[Oe],je=0;je<Ue.length;je++)if(f(Ue[je],Re)){ke=!ke;break}return ke}function Me(Ue,Ne){return Ue.type==="date"&&(Ne=Ne.replace("_"," ")),Ue.type==="log"?Ue.c2p(Ne):Ue.r2p(Ne,null,Ue.calendar)}function Se(Ue){for(var Ne=Ue.length,ke=[],Oe=0;Oe<Ne;Oe++){var Re=Ue[Oe];ke=(ke=ke.concat(Re)).concat([Re[0]])}return(je=ke).isRect=je.length===5&&je[0][0]===je[4][0]&&je[0][1]===je[4][1]&&je[0][0]===je[1][0]&&je[2][0]===je[3][0]&&je[0][1]===je[3][1]&&je[1][1]===je[2][1]||je[0][1]===je[1][1]&&je[2][1]===je[3][1]&&je[0][0]===je[3][0]&&je[1][0]===je[2][0],je.isRect&&(je.xmin=Math.min(je[0][0],je[2][0]),je.xmax=Math.max(je[0][0],je[2][0]),je.ymin=Math.min(je[0][1],je[2][1]),je.ymax=Math.max(je[0][1],je[2][1])),je;var je}function ze(Ue){return function(Ne,ke){for(var Oe,Re,je=0;je<Ue.length;je++){var Ze=Ue[je],Ye=Ze._id,it=Ye.charAt(0);if(ke.isRect){Oe||(Oe={});var dt=ke[it+"min"],ut=ke[it+"max"];dt!==void 0&&ut!==void 0&&(Oe[Ye]=[X(Ze,dt),X(Ze,ut)].sort(N))}else Re||(Re={}),Re[Ye]=ke.map(J(Ze))}Oe&&(Ne.range=Oe),Re&&(Ne.lassoPoints=Re)}}function Fe(Ue,Ne){Ne&&(Ne.selections=(Ue.layout||{}).selections||[]),Ue.emit("plotly_selected",Ne)}function De(Ue){Ue.emit("plotly_deselect",null)}c.exports={reselect:$e,prepSelect:function(Ue,Ne,ke,Oe,Re){var je=!le(Oe),Ze=s(Re),Ye=u(Re),it=h(Re),dt=d(Re),ut=g(Re),It=Re==="drawcircle",Ot=Re==="drawline"||It,Ft=Oe.gd,ot=Ft._fullLayout,tt=ut&&ot.newselection.mode==="immediate"&&je,vt=ot._zoomlayer,At=Oe.element.getBoundingClientRect(),Dt=Oe.plotinfo,Pt=ee(Dt),et=Ne-At.left,rt=ke-At.top;ot._calcInverseTransform(Ft);var We=I.apply3DTransform(ot._invTransform)(et,rt);et=We[0],rt=We[1];var nt,_t,mt,St,Bt,Je,Xe,yt=ot._invScaleX,Et=ot._invScaleY,Ct=et,gt=rt,$t="M"+et+","+rt,Lt=Oe.xaxes[0],jt=Oe.yaxes[0],Rt=Lt._length,Vt=jt._length,Qt=Ue.altKey&&!(d(Re)&&it);ne(Ue,Ft,Oe),Ze&&(nt=q([[et,rt]],U.BENDPX));var ta=vt.selectAll("path.select-outline-"+Dt.id).data([1]),_a=dt?ot.newshape:ot.newselection;dt&&(Oe.hasText=_a.label.text||_a.label.texttemplate);var ka=dt&&!it?_a.fillcolor:"rgba(0,0,0,0)",va=_a.line.color||(je?_.contrast(Ft._fullLayout.plot_bgcolor):"#7f7f7f");ta.enter().append("path").attr("class","select-outline select-outline-"+Dt.id).style({opacity:dt?_a.opacity/2:1,"stroke-dasharray":y(_a.line.dash,_a.line.width),"stroke-width":_a.line.width+"px","shape-rendering":"crispEdges"}).call(_.stroke,va).call(_.fill,ka).attr("fill-rule","evenodd").classed("cursor-move",!!dt).attr("transform",Pt).attr("d",$t+"Z");var ia=vt.append("path").attr("class","zoombox-corners").style({fill:_.background,stroke:_.defaultLine,"stroke-width":1}).attr("transform",Pt).attr("d","M0,0Z");if(dt&&Oe.hasText){var fa=vt.select(".label-temp");fa.empty()&&(fa=vt.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Da=ot._uid+U.SELECTID,wa=[],da=he(Ft,Oe.xaxes,Oe.yaxes,Oe.subplot);tt&&!Ue.shiftKey&&(Oe._clearSubplotSelections=function(){if(je){var ua=Lt._id,ba=jt._id;Te(Ft,ua,ba,da);for(var Ra=(Ft.layout||{}).selections||[],Oa=[],Ja=!1,Fa=0;Fa<Ra.length;Fa++){var qa=ot.selections[Fa];qa.xref!==ua||qa.yref!==ba?Oa.push(Ra[Fa]):Ja=!0}Ja&&(Ft._fullLayout._noEmitSelectedAtStart=!0,n.call("_guiRelayout",Ft,{selections:Oa}))}});var Ea=function(ua){return ua.plotinfo.fillRangeItems||ze(ua.xaxes.concat(ua.yaxes))}(Oe);Oe.moveFn=function(ua,ba){Oe._clearSubplotSelections&&(Oe._clearSubplotSelections(),Oe._clearSubplotSelections=void 0),Ct=Math.max(0,Math.min(Rt,yt*ua+et)),gt=Math.max(0,Math.min(Vt,Et*ba+rt));var Ra=Math.abs(Ct-et),Oa=Math.abs(gt-rt);if(Ye){var Ja,Fa,qa;if(ut){var Ka=ot.selectdirection;switch(Ja=Ka==="any"?Oa<Math.min(.6*Ra,Z)?"h":Ra<Math.min(.6*Oa,Z)?"v":"d":Ka){case"h":Fa=It?Vt/2:0,qa=Vt;break;case"v":Fa=It?Rt/2:0,qa=Rt}}if(dt)switch(ot.newshape.drawdirection){case"vertical":Ja="h",Fa=It?Vt/2:0,qa=Vt;break;case"horizontal":Ja="v",Fa=It?Rt/2:0,qa=Rt;break;case"ortho":Ra<Oa?(Ja="h",Fa=rt,qa=gt):(Ja="v",Fa=et,qa=Ct);break;default:Ja="d"}Ja==="h"?((St=Ot?T(It,[Ct,Fa],[Ct,qa]):[[et,Fa],[et,qa],[Ct,qa],[Ct,Fa]]).xmin=Ot?Ct:Math.min(et,Ct),St.xmax=Ot?Ct:Math.max(et,Ct),St.ymin=Math.min(Fa,qa),St.ymax=Math.max(Fa,qa),ia.attr("d","M"+St.xmin+","+(rt-Z)+"h-4v"+2*Z+"h4ZM"+(St.xmax-1)+","+(rt-Z)+"h4v"+2*Z+"h-4Z")):Ja==="v"?((St=Ot?T(It,[Fa,gt],[qa,gt]):[[Fa,rt],[Fa,gt],[qa,gt],[qa,rt]]).xmin=Math.min(Fa,qa),St.xmax=Math.max(Fa,qa),St.ymin=Ot?gt:Math.min(rt,gt),St.ymax=Ot?gt:Math.max(rt,gt),ia.attr("d","M"+(et-Z)+","+St.ymin+"v-4h"+2*Z+"v4ZM"+(et-Z)+","+(St.ymax-1)+"v4h"+2*Z+"v-4Z")):Ja==="d"&&((St=Ot?T(It,[et,rt],[Ct,gt]):[[et,rt],[et,gt],[Ct,gt],[Ct,rt]]).xmin=Math.min(et,Ct),St.xmax=Math.max(et,Ct),St.ymin=Math.min(rt,gt),St.ymax=Math.max(rt,gt),ia.attr("d","M0,0Z"))}else Ze&&(nt.addPt([Ct,gt]),St=nt.filtered);if(Oe.selectionDefs&&Oe.selectionDefs.length?(mt=xe(Oe.mergedPolygons,St,Qt),St.subtract=Qt,_t=ae(Oe.selectionDefs.concat([St]))):(mt=[St],_t=W(St)),x(Ee(mt,it),ta,Oe),ut){var vn,zn=$e(Ft,!1),cn=zn.eventData?zn.eventData.points.slice():[];zn=$e(Ft,!1,_t,da,Oe),_t=zn.selectionTesters,Xe=zn.eventData,vn=nt?nt.filtered:Se(mt),F.throttle(Da,U.SELECTDELAY,function(){for(var hn=(wa=Pe(_t,da)).slice(),un=0;un<cn.length;un++){for(var Bn=cn[un],ha=!1,ma=0;ma<hn.length;ma++)if(hn[ma].curveNumber===Bn.curveNumber&&hn[ma].pointNumber===Bn.pointNumber){ha=!0;break}ha||hn.push(Bn)}hn.length&&(Xe||(Xe={}),Xe.points=hn),Ea(Xe,vn),function(Ya,Ba){Ya.emit("plotly_selecting",Ba)}(Ft,Xe)})}},Oe.clickFn=function(ua,ba){if(ia.remove(),Ft._fullLayout._activeShapeIndex>=0)Ft._fullLayout._deactivateShape(Ft);else if(!dt){var Ra=ot.clickmode;F.done(Da).then(function(){if(F.clear(Da),ua===2){for(ta.remove(),Bt=0;Bt<da.length;Bt++)(Je=da[Bt])._module.selectPoints(Je,!1);if(_e(Ft,da),ie(Oe),De(Ft),da.length){var Oa=da[0].xaxis,Ja=da[0].yaxis;if(Oa&&Ja){for(var Fa=[],qa=Ft._fullLayout.selections,Ka=0;Ka<qa.length;Ka++){var vn=qa[Ka];vn&&(vn.xref===Oa._id&&vn.yref===Ja._id||Fa.push(vn))}Fa.length<qa.length&&(Ft._fullLayout._noEmitSelectedAtStart=!0,n.call("_guiRelayout",Ft,{selections:Fa}))}}}else Ra.indexOf("select")>-1&&oe(ba,Ft,Oe.xaxes,Oe.yaxes,Oe.subplot,Oe,ta),Ra==="event"&&Fe(Ft,void 0);p.click(Ft,ba,Dt.id)}).catch(I.error)}},Oe.doneFn=function(){ia.remove(),F.done(Da).then(function(){F.clear(Da),!tt&&St&&Oe.selectionDefs&&(St.subtract=Qt,Oe.selectionDefs.push(St),Oe.mergedPolygons.length=0,[].push.apply(Oe.mergedPolygons,mt)),(tt||dt)&&ie(Oe,tt),Oe.doneFnCompleted&&Oe.doneFnCompleted(wa),ut&&Fe(Ft,Xe)}).catch(I.error)}},clearOutline:S,clearSelectionsCache:ie,selectOnClick:oe}},43144:function(c,m,a){var v=a(50222),f=a(80337),n=a(36640).line,y=a(94850).T,_=a(93049).extendFlat,p=a(78032).templatedArray,l=(a(35081),a(9829)),o=a(3208).LF,s=a(41235);c.exports=p("shape",{visible:_({},l.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:_({},l.legend,{editType:"calc+arraydraw"}),legendgroup:_({},l.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:_({},l.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:f({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:_({},l.legendrank,{editType:"calc+arraydraw"}),legendwidth:_({},l.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:_({},v.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:_({},v.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:_({},n.color,{editType:"arraydraw"}),width:_({},n.width,{editType:"calc+arraydraw"}),dash:_({},y,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:o({},{keys:Object.keys(s)}),font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},44959:function(c,m,a){var v=a(34809),f=a(29714),n=a(2956),y=a(49728);function _(s){return l(s.line.width,s.xsizemode,s.x0,s.x1,s.path,!1)}function p(s){return l(s.line.width,s.ysizemode,s.y0,s.y1,s.path,!0)}function l(s,u,d,h,g,b){var w=s/2,x=b;if(u==="pixel"){var S=g?y.extractPathCoords(g,b?n.paramIsY:n.paramIsX):[d,h],k=v.aggNums(Math.max,null,S),T=v.aggNums(Math.min,null,S),C=T<0?Math.abs(T)+w:w,A=k>0?k+w:w;return{ppad:w,ppadplus:x?C:A,ppadminus:x?A:C}}return{ppad:w}}function o(s,u,d){var h,g,b=s._id.charAt(0)==="x"?"x":"y",w=s.type==="category"||s.type==="multicategory",x=0,S=0,k=w?s.r2c:s.d2c;if(u[b+"sizemode"]==="scaled"?(h=u[b+"0"],g=u[b+"1"],w&&(x=u[b+"0shift"],S=u[b+"1shift"])):(h=u[b+"anchor"],g=u[b+"anchor"]),h!==void 0)return[k(h)+x,k(g)+S];if(u.path){var T,C,A,E,M=1/0,I=-1/0,N=u.path.match(n.segmentRE);for(s.type==="date"&&(k=y.decodeDate(k)),T=0;T<N.length;T++)(C=d[N[T].charAt(0)].drawn)!==void 0&&(!(A=N[T].substr(1).match(n.paramRE))||A.length<C||((E=k(A[C]))<M&&(M=E),E>I&&(I=E)));return I>=M?[M,I]:void 0}}c.exports=function(s){var u=s._fullLayout,d=v.filterVisible(u.shapes);if(d.length&&s._fullData.length)for(var h=0;h<d.length;h++){var g,b,w=d[h];w._extremes={};var x=f.getRefType(w.xref),S=f.getRefType(w.yref);w.xref!=="paper"&&x!=="domain"&&(b=o(g=f.getFromId(s,w.xref),w,n.paramIsX))&&(w._extremes[g._id]=f.findExtremes(g,b,_(w))),w.yref!=="paper"&&S!=="domain"&&(b=o(g=f.getFromId(s,w.yref),w,n.paramIsY))&&(w._extremes[g._id]=f.findExtremes(g,b,p(w)))}}},2956:function(c){c.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},74367:function(c,m,a){var v=a(34809),f=a(29714),n=a(59008),y=a(43144),_=a(49728);function p(l,o,s){function u(Q,X){return v.coerce(l,o,y,Q,X)}if(o._isShape=!0,u("visible")){u("showlegend")&&(u("legend"),u("legendwidth"),u("legendgroup"),u("legendgrouptitle.text"),v.coerceFont(u,"legendgrouptitle.font"),u("legendrank"));var d=u("path"),h=u("type",d?"path":"rect"),g=h!=="path";g&&delete o.path,u("editable"),u("layer"),u("opacity"),u("fillcolor"),u("fillrule"),u("line.width")&&(u("line.color"),u("line.dash"));for(var b=u("xsizemode"),w=u("ysizemode"),x=["x","y"],S=0;S<2;S++){var k,T,C,A=x[S],E=A+"anchor",M=A==="x"?b:w,I={_fullLayout:s},N=f.coerceRef(l,o,I,A,void 0,"paper");if(f.getRefType(N)==="range"?((k=f.getFromId(I,N))._shapeIndices.push(o._index),C=_.rangeToShapePosition(k),T=_.shapePositionToRange(k),k.type!=="category"&&k.type!=="multicategory"||(u(A+"0shift"),u(A+"1shift"))):T=C=v.identity,g){var z=A+"0",F=A+"1",R=l[z],V=l[F];l[z]=T(l[z],!0),l[F]=T(l[F],!0),M==="pixel"?(u(z,0),u(F,10)):(f.coercePosition(o,I,u,N,z,.25),f.coercePosition(o,I,u,N,F,.75)),o[z]=C(o[z]),o[F]=C(o[F]),l[z]=R,l[F]=V}if(M==="pixel"){var $=l[E];l[E]=T(l[E],!0),f.coercePosition(o,I,u,N,E,.25),o[E]=C(o[E]),l[E]=$}}g&&v.noneOrAll(l,o,["x0","x1","y0","y1"]);var U,Z,q=h==="line";if(g&&(U=u("label.texttemplate")),U||(Z=u("label.text")),Z||U){u("label.textangle");var W=u("label.textposition",q?"middle":"middle center");u("label.xanchor"),u("label.yanchor",function(Q,X){return Q?"bottom":X.indexOf("top")!==-1?"top":X.indexOf("bottom")!==-1?"bottom":"middle"}(q,W)),u("label.padding"),v.coerceFont(u,"label.font",s.font)}}}c.exports=function(l,o){n(l,o,{name:"shapes",handleItemDefaults:p})}},44433:function(c,m,a){var v=a(34809),f=a(29714),n=a(30635),y=a(62203),_=a(81055).readPaths,p=a(49728),l=p.getPathString,o=a(41235),s=a(4530).FROM_TL;c.exports=function(u,d,h,g){if(g.selectAll(".shape-label").remove(),h.label.text||h.label.texttemplate){var b;if(h.label.texttemplate){var w={};if(h.type!=="path"){var x=f.getFromId(u,h.xref),S=f.getFromId(u,h.yref);for(var k in o){var T=o[k](h,x,S);T!==void 0&&(w[k]=T)}}b=v.texttemplateStringForShapes(h.label.texttemplate,{},u._fullLayout._d3locale,w)}else b=h.label.text;var C,A,E,M,I={"data-index":d},N=h.label.font,z=g.append("g").attr(I).classed("shape-label",!0).append("text").attr({"data-notex":1}).classed("shape-label-text",!0).text(b);if(h.path){var F=l(u,h),R=_(F,u);C=1/0,E=1/0,A=-1/0,M=-1/0;for(var V=0;V<R.length;V++)for(var $=0;$<R[V].length;$++)for(var U=R[V][$],Z=1;Z<U.length;Z+=2){var q=U[Z],W=U[Z+1];C=Math.min(C,q),A=Math.max(A,q),E=Math.min(E,W),M=Math.max(M,W)}}else{var Q=f.getFromId(u,h.xref),X=h.x0shift,J=h.x1shift,ee=f.getRefType(h.xref),le=f.getFromId(u,h.yref),oe=h.y0shift,se=h.y1shift,ce=f.getRefType(h.yref),ae=function(_e,xe){return p.getDataToPixel(u,Q,xe,!1,ee)(_e)},ne=function(_e,xe){return p.getDataToPixel(u,le,xe,!0,ce)(_e)};C=ae(h.x0,X),A=ae(h.x1,J),E=ne(h.y0,oe),M=ne(h.y1,se)}var ie=h.label.textangle;ie==="auto"&&(ie=h.type==="line"?function(_e,xe,we,Ee){var Pe,$e;return $e=Math.abs(we-_e),Pe=we>=_e?xe-Ee:Ee-xe,-180/Math.PI*Math.atan2(Pe,$e)}(C,E,A,M):0),z.call(function(_e){return _e.call(y.font,N).attr({}),n.convertToTspans(_e,u),_e});var ue=function(_e,xe,we,Ee,Pe,$e,Te){var Ce,ye,ge,Me,Se=Pe.label.textposition,ze=Pe.label.textangle,Fe=Pe.label.padding,De=Pe.type,Ue=Math.PI/180*$e,Ne=Math.sin(Ue),ke=Math.cos(Ue),Oe=Pe.label.xanchor,Re=Pe.label.yanchor;if(De==="line"){Se==="start"?(Ce=_e,ye=xe):Se==="end"?(Ce=we,ye=Ee):(Ce=(_e+we)/2,ye=(xe+Ee)/2),Oe==="auto"&&(Oe=Se==="start"?ze==="auto"?we>_e?"left":we<_e?"right":"center":we>_e?"right":we<_e?"left":"center":Se==="end"?ze==="auto"?we>_e?"right":we<_e?"left":"center":we>_e?"left":we<_e?"right":"center":"center");var je={bottom:-1,middle:0,top:1};if(ze==="auto"){var Ze=je[Re];ge=-Fe*Ne*Ze,Me=Fe*ke*Ze}else ge=Fe*{left:1,center:0,right:-1}[Oe],Me=Fe*je[Re];Ce+=ge,ye+=Me}else ge=Fe+3,Se.indexOf("right")!==-1?(Ce=Math.max(_e,we)-ge,Oe==="auto"&&(Oe="right")):Se.indexOf("left")!==-1?(Ce=Math.min(_e,we)+ge,Oe==="auto"&&(Oe="left")):(Ce=(_e+we)/2,Oe==="auto"&&(Oe="center")),ye=Se.indexOf("top")!==-1?Math.min(xe,Ee):Se.indexOf("bottom")!==-1?Math.max(xe,Ee):(xe+Ee)/2,Me=Fe,Re==="bottom"?ye-=Me:Re==="top"&&(ye+=Me);var Ye=s[Re],it=Pe.label.font.size,dt=Te.height;return{textx:Ce+(dt*Ye-it)*Ne,texty:ye+-(dt*Ye-it)*ke,xanchor:Oe}}(C,E,A,M,h,ie,y.bBox(z.node())),he=ue.textx,pe=ue.texty,me=ue.xanchor;z.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[me],y:pe,x:he,transform:"rotate("+ie+","+he+","+pe+")"}).call(n.positionText,he,pe)}}},561:function(c,m,a){var v=a(34809).strTranslate,f=a(14751),n=a(70414),y=n.drawMode,_=n.selectMode,p=a(33626),l=a(78766),o=a(93391),s=o.i000,u=o.i090,d=o.i180,h=o.i270,g=a(78534).clearOutlineControllers,b=a(81055),w=b.pointsOnRectangle,x=b.pointsOnEllipse,S=b.writePaths,k=a(87562).newShapes,T=a(87562).createShapeObj,C=a(51817),A=a(44433);function E(M,I){var N,z,F,R=M[I][1],V=M[I][2],$=M.length;return z=M[N=(I+1)%$][1],F=M[N][2],z===R&&F===V&&(z=M[N=(I+2)%$][1],F=M[N][2]),[N,z,F]}c.exports=function M(I,N,z,F){F||(F=0);var R=z.gd;function V(){M(I,N,z,F++),(x(I[0])||z.hasText)&&$({redrawing:!0})}function $(_e){var xe={};z.isActiveShape!==void 0&&(z.isActiveShape=!1,xe=k(N,z)),z.isActiveSelection!==void 0&&(z.isActiveSelection=!1,xe=C(N,z),R._fullLayout._reselect=!0),Object.keys(xe).length&&p.call((_e||{}).redrawing?"relayout":"_guiRelayout",R,xe)}var U,Z,q,W,Q,X=R._fullLayout._zoomlayer,J=z.dragmode,ee=y(J),le=_(J);if((ee||le)&&(R._fullLayout._outlining=!0),g(R),N.attr("d",S(I)),F||!z.isActiveShape&&!z.isActiveSelection||(Q=function(_e,xe){for(var we=0;we<xe.length;we++){var Ee=xe[we];_e[we]=[];for(var Pe=0;Pe<Ee.length;Pe++){_e[we][Pe]=[];for(var $e=0;$e<Ee[Pe].length;$e++)_e[we][Pe][$e]=Ee[Pe][$e]}}return _e}([],I),function(_e){U=[];for(var xe=0;xe<I.length;xe++){var we=I[xe],Ee=w(we),Pe=!Ee&&x(we);U[xe]=[];for(var $e=we.length,Te=0;Te<$e;Te++)if(we[Te][0]!=="Z"&&(!Pe||Te===s||Te===u||Te===d||Te===h)){var Ce,ye=Ee&&z.isActiveSelection;ye&&(Ce=E(we,Te));var ge=we[Te][1],Me=we[Te][2],Se=_e.append(ye?"rect":"circle").attr("data-i",xe).attr("data-j",Te).style({fill:l.background,stroke:l.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(ye){var ze=Ce[1]-ge,Fe=Ce[2]-Me,De=Fe?5:Math.max(Math.min(25,Math.abs(ze)-5),5),Ue=ze?5:Math.max(Math.min(25,Math.abs(Fe)-5),5);Se.classed(Fe?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",De).attr("height",Ue).attr("x",ge-De/2).attr("y",Me-Ue/2).attr("transform",v(ze/2,Fe/2))}else Se.classed("cursor-grab",!0).attr("r",5).attr("cx",ge).attr("cy",Me);U[xe][Te]={element:Se.node(),gd:R,prepFn:ce,doneFn:ne,clickFn:ie},f.init(U[xe][Te])}}}(X.append("g").attr("class","outline-controllers")),function(){Z=[],I.length&&(Z[0]={element:N[0][0],gd:R,prepFn:he,doneFn:pe,clickFn:me},f.init(Z[0]))}()),ee&&z.hasText){var oe=X.select(".label-temp"),se=T(N,z,z.dragmode);A(R,"label-temp",se,oe)}function ce(_e){q=+_e.srcElement.getAttribute("data-i"),W=+_e.srcElement.getAttribute("data-j"),U[q][W].moveFn=ae}function ae(_e,xe){if(I.length){var we=Q[q][W][1],Ee=Q[q][W][2],Pe=I[q],$e=Pe.length;if(w(Pe)){var Te=_e,Ce=xe;z.isActiveSelection&&(E(Pe,W)[1]===Pe[W][1]?Ce=0:Te=0);for(var ye=0;ye<$e;ye++)if(ye!==W){var ge=Pe[ye];ge[1]===Pe[W][1]&&(ge[1]=we+Te),ge[2]===Pe[W][2]&&(ge[2]=Ee+Ce)}if(Pe[W][1]=we+Te,Pe[W][2]=Ee+Ce,!w(Pe))for(var Me=0;Me<$e;Me++)for(var Se=0;Se<Pe[Me].length;Se++)Pe[Me][Se]=Q[q][Me][Se]}else Pe[W][1]=we+_e,Pe[W][2]=Ee+xe;V()}}function ne(){$()}function ie(_e,xe){if(_e===2){q=+xe.srcElement.getAttribute("data-i"),W=+xe.srcElement.getAttribute("data-j");var we=I[q];w(we)||x(we)||function(){if(I.length&&I[q]&&I[q].length){for(var Ee=[],Pe=0;Pe<I[q].length;Pe++)Pe!==W&&Ee.push(I[q][Pe]);Ee.length>1&&(Ee.length!==2||Ee[1][0]!=="Z")&&(W===0&&(Ee[0][0]="M"),I[q]=Ee,V(),$())}}()}}function ue(_e,xe){(function(we,Ee){if(I.length)for(var Pe=0;Pe<I.length;Pe++)for(var $e=0;$e<I[Pe].length;$e++)for(var Te=0;Te+2<I[Pe][$e].length;Te+=2)I[Pe][$e][Te+1]=Q[Pe][$e][Te+1]+we,I[Pe][$e][Te+2]=Q[Pe][$e][Te+2]+Ee})(_e,xe),V()}function he(_e){(q=+_e.srcElement.getAttribute("data-i"))||(q=0),Z[q].moveFn=ue}function pe(){$()}function me(_e){_e===2&&function(xe){if(_(xe._fullLayout.dragmode)){g(xe);var we=xe._fullLayout._activeSelectionIndex,Ee=(xe.layout||{}).selections||[];if(we<Ee.length){for(var Pe=[],$e=0;$e<Ee.length;$e++)$e!==we&&Pe.push(Ee[$e]);delete xe._fullLayout._activeSelectionIndex;var Te=xe._fullLayout.selections[we];xe._fullLayout._deselect={xref:Te.xref,yref:Te.yref},p.call("_guiRelayout",xe,{selections:Pe})}}}(R)}}},28231:function(c,m,a){var v=a(45568),f=a(33626),n=a(34809),y=a(29714),_=a(81055).readPaths,p=a(561),l=a(44433),o=a(78534).clearOutlineControllers,s=a(78766),u=a(62203),d=a(78032).arrayEditor,h=a(14751),g=a(27983),b=a(2956),w=a(49728),x=w.getPathString;function S(I){var N=I._fullLayout;for(var z in N._shapeUpperLayer.selectAll("path").remove(),N._shapeLowerLayer.selectAll("path").remove(),N._shapeUpperLayer.selectAll("text").remove(),N._shapeLowerLayer.selectAll("text").remove(),N._plots){var F=N._plots[z].shapelayer;F&&(F.selectAll("path").remove(),F.selectAll("text").remove())}for(var R=0;R<N.shapes.length;R++)N.shapes[R].visible===!0&&C(I,R)}function k(I){return!!I._fullLayout._outlining}function T(I){return!I._context.edits.shapePosition}function C(I,N){I._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+N+'"]').remove();var z=w.makeShapesOptionsAndPlotinfo(I,N),F=z.options,R=z.plotinfo;function V($){var U=x(I,F),Z={"data-index":N,"fill-rule":F.fillrule,d:U},q=F.opacity,W=F.fillcolor,Q=F.line.width?F.line.color:"rgba(0,0,0,0)",X=F.line.width,J=F.line.dash;X||F.editable!==!0||(X=5,J="solid");var ee=U[U.length-1]!=="Z",le=T(I)&&F.editable&&I._fullLayout._activeShapeIndex===N;le&&(W=ee?"rgba(0,0,0,0)":I._fullLayout.activeshape.fillcolor,q=I._fullLayout.activeshape.opacity);var oe,se=$.append("g").classed("shape-group",!0).attr({"data-index":N}),ce=se.append("path").attr(Z).style("opacity",q).call(s.stroke,Q).call(s.fill,W).call(u.dashLine,J,X);if(A(se,I,F),l(I,N,F,se),(le||I._context.edits.shapePosition)&&(oe=d(I.layout,"shapes",F)),le){ce.style({cursor:"move"});var ae={element:ce.node(),plotinfo:R,gd:I,editHelpers:oe,hasText:F.label.text||F.label.texttemplate,isActiveShape:!0},ne=_(U,I);p(ne,ce,ae)}else I._context.edits.shapePosition?function(ie,ue,he,pe,me,_e){var xe,we,Ee,Pe,$e,Te,Ce,ye,ge,Me,Se,ze,Fe,De,Ue,Ne,ke=10,Oe=10,Re=he.xsizemode==="pixel",je=he.ysizemode==="pixel",Ze=he.type==="line",Ye=he.type==="path",it=_e.modifyItem,dt=v.select(ue.node().parentNode),ut=y.getFromId(ie,he.xref),It=y.getRefType(he.xref),Ot=y.getFromId(ie,he.yref),Ft=y.getRefType(he.yref),ot=he.x0shift,tt=he.x1shift,vt=he.y0shift,At=he.y1shift,Dt=function(Xe,yt){return w.getDataToPixel(ie,ut,yt,!1,It)(Xe)},Pt=function(Xe,yt){return w.getDataToPixel(ie,Ot,yt,!0,Ft)(Xe)},et=w.getPixelToData(ie,ut,!1,It),rt=w.getPixelToData(ie,Ot,!0,Ft),We=Ze?function(){var Xe=10,yt=Math.max(he.line.width,Xe),Et=me.append("g").attr("data-index",pe).attr("drag-helper",!0);Et.append("path").attr("d",ue.attr("d")).style({cursor:"move","stroke-width":yt,"stroke-opacity":"0"});var Ct={"fill-opacity":"0"},gt=Math.max(yt/2,Xe);return Et.append("circle").attr({"data-line-point":"start-point",cx:Re?Dt(he.xanchor)+he.x0:Dt(he.x0,ot),cy:je?Pt(he.yanchor)-he.y0:Pt(he.y0,vt),r:gt}).style(Ct).classed("cursor-grab",!0),Et.append("circle").attr({"data-line-point":"end-point",cx:Re?Dt(he.xanchor)+he.x1:Dt(he.x1,tt),cy:je?Pt(he.yanchor)-he.y1:Pt(he.y1,At),r:gt}).style(Ct).classed("cursor-grab",!0),Et}():ue,nt={element:We.node(),gd:ie,prepFn:function(Xe){k(ie)||(Re&&($e=Dt(he.xanchor)),je&&(Te=Pt(he.yanchor)),he.type==="path"?Ue=he.path:(xe=Re?he.x0:Dt(he.x0),we=je?he.y0:Pt(he.y0),Ee=Re?he.x1:Dt(he.x1),Pe=je?he.y1:Pt(he.y1)),xe<Ee?(ge=xe,Fe="x0",Me=Ee,De="x1"):(ge=Ee,Fe="x1",Me=xe,De="x0"),!je&&we<Pe||je&&we>Pe?(Ce=we,Se="y0",ye=Pe,ze="y1"):(Ce=Pe,Se="y1",ye=we,ze="y0"),_t(Xe),Bt(me,he),function(yt,Et,Ct){var gt=Et.xref,$t=Et.yref,Lt=y.getFromId(Ct,gt),jt=y.getFromId(Ct,$t),Rt="";gt==="paper"||Lt.autorange||(Rt+=gt),$t==="paper"||jt.autorange||(Rt+=$t),u.setClipUrl(yt,Rt?"clip"+Ct._fullLayout._uid+Rt:null,Ct)}(ue,he,ie),nt.moveFn=Ne==="move"?mt:St,nt.altKey=Xe.altKey)},doneFn:function(){k(ie)||(g(ue),Je(me),A(ue,ie,he),f.call("_guiRelayout",ie,_e.getUpdateObj()))},clickFn:function(){k(ie)||Je(me)}};function _t(Xe){if(k(ie))Ne=null;else if(Ze)Ne=Xe.target.tagName==="path"?"move":Xe.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var yt=nt.element.getBoundingClientRect(),Et=yt.right-yt.left,Ct=yt.bottom-yt.top,gt=Xe.clientX-yt.left,$t=Xe.clientY-yt.top,Lt=!Ye&&Et>ke&&Ct>Oe&&!Xe.shiftKey?h.getCursor(gt/Et,1-$t/Ct):"move";g(ue,Lt),Ne=Lt.split("-")[0]}}function mt(Xe,yt){if(he.type==="path"){var Et=function($t){return $t},Ct=Et,gt=Et;Re?it("xanchor",he.xanchor=et($e+Xe)):(Ct=function($t){return et(Dt($t)+Xe)},ut&&ut.type==="date"&&(Ct=w.encodeDate(Ct))),je?it("yanchor",he.yanchor=rt(Te+yt)):(gt=function($t){return rt(Pt($t)+yt)},Ot&&Ot.type==="date"&&(gt=w.encodeDate(gt))),it("path",he.path=E(Ue,Ct,gt))}else Re?it("xanchor",he.xanchor=et($e+Xe)):(it("x0",he.x0=et(xe+Xe)),it("x1",he.x1=et(Ee+Xe))),je?it("yanchor",he.yanchor=rt(Te+yt)):(it("y0",he.y0=rt(we+yt)),it("y1",he.y1=rt(Pe+yt)));ue.attr("d",x(ie,he)),Bt(me,he),l(ie,pe,he,dt)}function St(Xe,yt){if(Ye){var Et=function(wa){return wa},Ct=Et,gt=Et;Re?it("xanchor",he.xanchor=et($e+Xe)):(Ct=function(wa){return et(Dt(wa)+Xe)},ut&&ut.type==="date"&&(Ct=w.encodeDate(Ct))),je?it("yanchor",he.yanchor=rt(Te+yt)):(gt=function(wa){return rt(Pt(wa)+yt)},Ot&&Ot.type==="date"&&(gt=w.encodeDate(gt))),it("path",he.path=E(Ue,Ct,gt))}else if(Ze){if(Ne==="resize-over-start-point"){var $t=xe+Xe,Lt=je?we-yt:we+yt;it("x0",he.x0=Re?$t:et($t)),it("y0",he.y0=je?Lt:rt(Lt))}else if(Ne==="resize-over-end-point"){var jt=Ee+Xe,Rt=je?Pe-yt:Pe+yt;it("x1",he.x1=Re?jt:et(jt)),it("y1",he.y1=je?Rt:rt(Rt))}}else{var Vt=function(wa){return Ne.indexOf(wa)!==-1},Qt=Vt("n"),ta=Vt("s"),_a=Vt("w"),ka=Vt("e"),va=Qt?Ce+yt:Ce,ia=ta?ye+yt:ye,fa=_a?ge+Xe:ge,Da=ka?Me+Xe:Me;je&&(Qt&&(va=Ce-yt),ta&&(ia=ye-yt)),(!je&&ia-va>Oe||je&&va-ia>Oe)&&(it(Se,he[Se]=je?va:rt(va)),it(ze,he[ze]=je?ia:rt(ia))),Da-fa>ke&&(it(Fe,he[Fe]=Re?fa:et(fa)),it(De,he[De]=Re?Da:et(Da)))}ue.attr("d",x(ie,he)),Bt(me,he),l(ie,pe,he,dt)}function Bt(Xe,yt){(Re||je)&&function(){var Et=yt.type!=="path",Ct=Xe.selectAll(".visual-cue").data([0]);Ct.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var gt=Dt(Re?yt.xanchor:n.midRange(Et?[yt.x0,yt.x1]:w.extractPathCoords(yt.path,b.paramIsX))),$t=Pt(je?yt.yanchor:n.midRange(Et?[yt.y0,yt.y1]:w.extractPathCoords(yt.path,b.paramIsY)));if(gt=w.roundPositionForSharpStrokeRendering(gt,1),$t=w.roundPositionForSharpStrokeRendering($t,1),Re&&je){var Lt="M"+(gt-1-1)+","+($t-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ct.attr("d",Lt)}else if(Re){var jt="M"+(gt-1-1)+","+($t-9-1)+"v18 h2 v-18 Z";Ct.attr("d",jt)}else{var Rt="M"+(gt-9-1)+","+($t-1-1)+"h18 v2 h-18 Z";Ct.attr("d",Rt)}}()}function Je(Xe){Xe.selectAll(".visual-cue").remove()}h.init(nt),We.node().onmousemove=_t}(I,ce,F,N,$,oe):F.editable===!0&&ce.style("pointer-events",ee||s.opacity(W)*q<=.5?"stroke":"all");ce.node().addEventListener("click",function(){return function(ie,ue){if(T(ie)){var he=+ue.node().getAttribute("data-index");if(he>=0){if(he===ie._fullLayout._activeShapeIndex)return void M(ie);ie._fullLayout._activeShapeIndex=he,ie._fullLayout._deactivateShape=M,S(ie)}}}(I,ce)})}F._input&&F.visible===!0&&(F.layer==="above"?V(I._fullLayout._shapeUpperLayer):F.xref==="paper"||F.yref==="paper"?V(I._fullLayout._shapeLowerLayer):F.layer==="between"?V(R.shapelayerBetween):R._hadPlotinfo?V((R.mainplotinfo||R).shapelayer):V(I._fullLayout._shapeLowerLayer))}function A(I,N,z){var F=(z.xref+z.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");u.setClipUrl(I,F?"clip"+N._fullLayout._uid+F:null,N)}function E(I,N,z){return I.replace(b.segmentRE,function(F){var R=0,V=F.charAt(0),$=b.paramIsX[V],U=b.paramIsY[V],Z=b.numParams[V];return V+F.substr(1).replace(b.paramRE,function(q){return R>=Z||($[R]?q=N(q):U[R]&&(q=z(q)),R++),q})})}function M(I){T(I)&&I._fullLayout._activeShapeIndex>=0&&(o(I),delete I._fullLayout._activeShapeIndex,S(I))}c.exports={draw:S,drawOne:C,eraseActiveShape:function(I){if(T(I)){o(I);var N=I._fullLayout._activeShapeIndex,z=(I.layout||{}).shapes||[];if(N<z.length){for(var F=[],R=0;R<z.length;R++)R!==N&&F.push(z[R]);return delete I._fullLayout._activeShapeIndex,f.call("_guiRelayout",I,{shapes:F})}}},drawLabel:l}},64101:function(c,m,a){var v=a(13582).overrideAll,f=a(9829),n=a(80337),y=a(94850).T,_=a(93049).extendFlat,p=a(3208).LF,l=a(41235);c.exports=v({newshape:{visible:_({},f.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:_({},f.legend,{}),legendgroup:_({},f.legendgroup,{}),legendgrouptitle:{text:_({},f.legendgrouptitle.text,{}),font:n({})},legendrank:_({},f.legendrank,{}),legendwidth:_({},f.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:_({},y,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:_({},f.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:p({newshape:!0},{keys:Object.keys(l)}),font:n({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")},93391:function(c){c.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},85522:function(c,m,a){var v=a(78766),f=a(34809);c.exports=function(n,y,_){if(_("newshape.visible"),_("newshape.name"),_("newshape.showlegend"),_("newshape.legend"),_("newshape.legendwidth"),_("newshape.legendgroup"),_("newshape.legendgrouptitle.text"),f.coerceFont(_,"newshape.legendgrouptitle.font"),_("newshape.legendrank"),_("newshape.drawdirection"),_("newshape.layer"),_("newshape.fillcolor"),_("newshape.fillrule"),_("newshape.opacity"),_("newshape.line.width")){var p=(n||{}).plot_bgcolor||"#FFF";_("newshape.line.color",v.contrast(p)),_("newshape.line.dash")}var l=n.dragmode==="drawline",o=_("newshape.label.text"),s=_("newshape.label.texttemplate");if(o||s){_("newshape.label.textangle");var u=_("newshape.label.textposition",l?"middle":"middle center");_("newshape.label.xanchor"),_("newshape.label.yanchor",function(d,h){return d?"bottom":h.indexOf("top")!==-1?"top":h.indexOf("bottom")!==-1?"bottom":"middle"}(l,u)),_("newshape.label.padding"),f.coerceFont(_,"newshape.label.font",y.font)}_("activeshape.fillcolor"),_("activeshape.opacity")}},81055:function(c,m,a){var v=a(26953),f=a(93391),n=f.CIRCLE_SIDES,y=f.SQRT2,_=a(49801),p=_.p2r,l=_.r2p,o=[0,3,4,5,6,1,2],s=[0,3,4,1,2];function u(h,g){return Math.abs(h-g)<=1e-6}function d(h,g){var b=g[1]-h[1],w=g[2]-h[2];return Math.sqrt(b*b+w*w)}m.writePaths=function(h){var g=h.length;if(!g)return"M0,0Z";for(var b="",w=0;w<g;w++)for(var x=h[w].length,S=0;S<x;S++){var k=h[w][S][0];if(k==="Z")b+="Z";else for(var T=h[w][S].length,C=0;C<T;C++){var A=C;k==="Q"||k==="S"?A=s[C]:k==="C"&&(A=o[C]),b+=h[w][S][A],C>0&&C<T-1&&(b+=",")}}return b},m.readPaths=function(h,g,b,w){var x,S,k,T=v(h),C=[],A=-1,E=0,M=0,I=function(){S=E,k=M};I();for(var N=0;N<T.length;N++){var z,F,R,V,$=[],U=T[N][0],Z=U;switch(U){case"M":C[++A]=[],E=+T[N][1],M=+T[N][2],$.push([Z,E,M]),I();break;case"Q":case"S":z=+T[N][1],R=+T[N][2],E=+T[N][3],M=+T[N][4],$.push([Z,E,M,z,R]);break;case"C":z=+T[N][1],R=+T[N][2],F=+T[N][3],V=+T[N][4],E=+T[N][5],M=+T[N][6],$.push([Z,E,M,z,R,F,V]);break;case"T":case"L":E=+T[N][1],M=+T[N][2],$.push([Z,E,M]);break;case"H":Z="L",E=+T[N][1],$.push([Z,E,M]);break;case"V":Z="L",M=+T[N][1],$.push([Z,E,M]);break;case"A":Z="L";var q=+T[N][1],W=+T[N][2];+T[N][4]||(q=-q,W=-W);var Q=E-q,X=M;for(x=1;x<=n/2;x++){var J=2*Math.PI*x/n;$.push([Z,Q+q*Math.cos(J),X+W*Math.sin(J)])}break;case"Z":E===S&&M===k||(E=S,M=k,$.push([Z,E,M]))}for(var ee=(b||{}).domain,le=g._fullLayout._size,oe=b&&b.xsizemode==="pixel",se=b&&b.ysizemode==="pixel",ce=w===!1,ae=0;ae<$.length;ae++){for(x=0;x+2<7;x+=2){var ne=$[ae][x+1],ie=$[ae][x+2];ne!==void 0&&ie!==void 0&&(E=ne,M=ie,b&&(b.xaxis&&b.xaxis.p2r?(ce&&(ne-=b.xaxis._offset),ne=oe?l(b.xaxis,b.xanchor)+ne:p(b.xaxis,ne)):(ce&&(ne-=le.l),ee?ne=ee.x[0]+ne/le.w:ne/=le.w),b.yaxis&&b.yaxis.p2r?(ce&&(ie-=b.yaxis._offset),ie=se?l(b.yaxis,b.yanchor)-ie:p(b.yaxis,ie)):(ce&&(ie-=le.t),ie=ee?ee.y[1]-ie/le.h:1-ie/le.h)),$[ae][x+1]=ne,$[ae][x+2]=ie)}C[A].push($[ae].slice())}}return C},m.pointsOnRectangle=function(h){if(h.length!==5)return!1;for(var g=1;g<3;g++)if(!u(h[0][g]-h[1][g],h[3][g]-h[2][g])||!u(h[0][g]-h[3][g],h[1][g]-h[2][g]))return!1;return!(!u(h[0][1],h[1][1])&&!u(h[0][1],h[3][1])||!(d(h[0],h[1])*d(h[0],h[3])))},m.pointsOnEllipse=function(h){var g=h.length;if(g!==n+1)return!1;g=n;for(var b=0;b<g;b++){var w=(2*g-b)%g,x=(g/2+w)%g,S=(g/2+b)%g;if(!u(d(h[b],h[S]),d(h[w],h[x])))return!1}return!0},m.handleEllipse=function(h,g,b){if(!h)return[g,b];var w=m.ellipseOver({x0:g[0],y0:g[1],x1:b[0],y1:b[1]}),x=(w.x1+w.x0)/2,S=(w.y1+w.y0)/2,k=(w.x1-w.x0)/2,T=(w.y1-w.y0)/2;k||(k=T/=y),T||(T=k/=y);for(var C=[],A=0;A<n;A++){var E=2*A*Math.PI/n;C.push([x+k*Math.cos(E),S+T*Math.sin(E)])}return C},m.ellipseOver=function(h){var g=h.x0,b=h.y0,w=h.x1,x=h.y1,S=w-g,k=x-b,T=((g-=S)+w)/2,C=((b-=k)+x)/2;return{x0:T-(S*=y),y0:C-(k*=y),x1:T+S,y1:C+k}},m.fixDatesForPaths=function(h,g,b){var w=g.type==="date",x=b.type==="date";if(!w&&!x)return h;for(var S=0;S<h.length;S++)for(var k=0;k<h[S].length;k++)for(var T=0;T+2<h[S][k].length;T+=2)w&&(h[S][k][T+1]=h[S][k][T+1].replace(" ","_")),x&&(h[S][k][T+2]=h[S][k][T+2].replace(" ","_"));return h}},87562:function(c,m,a){var v=a(70414),f=v.drawMode,n=v.openMode,y=a(93391),_=y.i000,p=y.i090,l=y.i180,o=y.i270,s=y.cos45,u=y.sin45,d=a(49801),h=d.p2r,g=d.r2p,b=a(78534).clearOutline,w=a(81055),x=w.readPaths,S=w.writePaths,k=w.ellipseOver,T=w.fixDatesForPaths;function C(A,E,M){var I,N=A[0][0],z=E.gd,F=N.getAttribute("d"),R=z._fullLayout.newshape,V=E.plotinfo,$=E.isActiveShape,U=V.xaxis,Z=V.yaxis,q=!!V.domain||!V.xaxis,W=!!V.domain||!V.yaxis,Q=n(M),X=x(F,z,V,$),J={editable:!0,visible:R.visible,name:R.name,showlegend:R.showlegend,legend:R.legend,legendwidth:R.legendwidth,legendgroup:R.legendgroup,legendgrouptitle:{text:R.legendgrouptitle.text,font:R.legendgrouptitle.font},legendrank:R.legendrank,label:R.label,xref:q?"paper":U._id,yref:W?"paper":Z._id,layer:R.layer,opacity:R.opacity,line:{color:R.line.color,width:R.line.width,dash:R.line.dash}};if(Q||(J.fillcolor=R.fillcolor,J.fillrule=R.fillrule),X.length===1&&(I=X[0]),I&&I.length===5&&M==="drawrect")J.type="rect",J.x0=I[0][1],J.y0=I[0][2],J.x1=I[2][1],J.y1=I[2][2];else if(I&&M==="drawline")J.type="line",J.x0=I[0][1],J.y0=I[0][2],J.x1=I[1][1],J.y1=I[1][2];else if(I&&M==="drawcircle"){J.type="circle";var ee=I[_][1],le=I[p][1],oe=I[l][1],se=I[o][1],ce=I[_][2],ae=I[p][2],ne=I[l][2],ie=I[o][2],ue=V.xaxis&&(V.xaxis.type==="date"||V.xaxis.type==="log"),he=V.yaxis&&(V.yaxis.type==="date"||V.yaxis.type==="log");ue&&(ee=g(V.xaxis,ee),le=g(V.xaxis,le),oe=g(V.xaxis,oe),se=g(V.xaxis,se)),he&&(ce=g(V.yaxis,ce),ae=g(V.yaxis,ae),ne=g(V.yaxis,ne),ie=g(V.yaxis,ie));var pe=(le+se)/2,me=(ce+ne)/2,_e=k({x0:pe,y0:me,x1:pe+(se-le+oe-ee)/2*s,y1:me+(ie-ae+ne-ce)/2*u});ue&&(_e.x0=h(V.xaxis,_e.x0),_e.x1=h(V.xaxis,_e.x1)),he&&(_e.y0=h(V.yaxis,_e.y0),_e.y1=h(V.yaxis,_e.y1)),J.x0=_e.x0,J.y0=_e.y0,J.x1=_e.x1,J.y1=_e.y1}else J.type="path",U&&Z&&T(X,U,Z),J.path=S(X),I=null;return J}c.exports={newShapes:function(A,E){if(A.length&&A[0][0]){var M=E.gd,I=E.isActiveShape,N=E.dragmode,z=(M.layout||{}).shapes||[];if(!f(N)&&I!==void 0){var F=M._fullLayout._activeShapeIndex;if(F<z.length)switch(M._fullLayout.shapes[F].type){case"rect":N="drawrect";break;case"circle":N="drawcircle";break;case"line":N="drawline";break;case"path":var R=z[F].path||"";N=R[R.length-1]==="Z"?"drawclosedpath":"drawopenpath"}}var V=C(A,E,N);b(M);for(var $=E.editHelpers,U=($||{}).modifyItem,Z=[],q=0;q<z.length;q++){var W=M._fullLayout.shapes[q];if(Z[q]=W._input,I!==void 0&&q===M._fullLayout._activeShapeIndex){var Q=V;switch(W.type){case"line":case"rect":case"circle":U("x0",Q.x0-(W.x0shift||0)),U("x1",Q.x1-(W.x1shift||0)),U("y0",Q.y0-(W.y0shift||0)),U("y1",Q.y1-(W.y1shift||0));break;case"path":U("path",Q.path)}}}return I===void 0?(Z.push(V),Z):$?$.getUpdateObj():{}}},createShapeObj:C}},78534:function(c){c.exports={clearOutlineControllers:function(m){var a=m._fullLayout._zoomlayer;a&&a.selectAll(".outline-controllers").remove()},clearOutline:function(m){var a=m._fullLayout._zoomlayer;a&&a.selectAll(".select-outline").remove(),m._fullLayout._outlining=!1}}},49728:function(c,m,a){var v=a(2956),f=a(34809),n=a(29714);function y(_,p){var l=0;return(p=p||0)&&_&&(_.type==="category"||_.type==="multicategory")&&(l=(_.r2p(1)-_.r2p(0))*p),l}m.rangeToShapePosition=function(_){return _.type==="log"?_.r2d:function(p){return p}},m.shapePositionToRange=function(_){return _.type==="log"?_.d2r:function(p){return p}},m.decodeDate=function(_){return function(p){return p.replace&&(p=p.replace("_"," ")),_(p)}},m.encodeDate=function(_){return function(p){return _(p).replace(" ","_")}},m.extractPathCoords=function(_,p,l){var o=[];return _.match(v.segmentRE).forEach(function(s){var u=p[s.charAt(0)].drawn;if(u!==void 0){var d=s.substr(1).match(v.paramRE);if(d&&!(d.length<u)){var h=d[u],g=l?h:f.cleanNumber(h);o.push(g)}}}),o},m.getDataToPixel=function(_,p,l,o,s){var u,d=_._fullLayout._size;if(p)if(s==="domain")u=function(g){return p._length*(o?1-g:g)+p._offset};else{var h=m.shapePositionToRange(p);u=function(g){var b=y(p,l);return p._offset+p.r2p(h(g,!0))+b},p.type==="date"&&(u=m.decodeDate(u))}else u=o?function(g){return d.t+d.h*(1-g)}:function(g){return d.l+d.w*g};return u},m.getPixelToData=function(_,p,l,o){var s,u=_._fullLayout._size;if(p)if(o==="domain")s=function(h){var g=(h-p._offset)/p._length;return l?1-g:g};else{var d=m.rangeToShapePosition(p);s=function(h){return d(p.p2r(h-p._offset))}}else s=l?function(h){return 1-(h-u.t)/u.h}:function(h){return(h-u.l)/u.w};return s},m.roundPositionForSharpStrokeRendering=function(_,p){var l=Math.round(p%2)===1,o=Math.round(_);return l?o+.5:o},m.makeShapesOptionsAndPlotinfo=function(_,p){var l=_._fullLayout.shapes[p]||{},o=_._fullLayout._plots[l.xref+l.yref];return o?o._hadPlotinfo=!0:(o={},l.xref&&l.xref!=="paper"&&(o.xaxis=_._fullLayout[l.xref+"axis"]),l.yref&&l.yref!=="paper"&&(o.yaxis=_._fullLayout[l.yref+"axis"])),o.xsizemode=l.xsizemode,o.ysizemode=l.ysizemode,o.xanchor=l.xanchor,o.yanchor=l.yanchor,{options:l,plotinfo:o}},m.makeSelectionsOptionsAndPlotinfo=function(_,p){var l=_._fullLayout.selections[p]||{},o=_._fullLayout._plots[l.xref+l.yref];return o?o._hadPlotinfo=!0:(o={},l.xref&&(o.xaxis=_._fullLayout[l.xref+"axis"]),l.yref&&(o.yaxis=_._fullLayout[l.yref+"axis"])),{options:l,plotinfo:o}},m.getPathString=function(_,p){var l,o,s,u,d,h,g,b,w=p.type,x=n.getRefType(p.xref),S=n.getRefType(p.yref),k=n.getFromId(_,p.xref),T=n.getFromId(_,p.yref),C=_._fullLayout._size,A=y(k,p.x0shift),E=y(k,p.x1shift),M=y(T,p.y0shift),I=y(T,p.y1shift);if(k?x==="domain"?o=function(q){return k._offset+k._length*q}:(l=m.shapePositionToRange(k),o=function(q){return k._offset+k.r2p(l(q,!0))}):o=function(q){return C.l+C.w*q},T?S==="domain"?u=function(q){return T._offset+T._length*(1-q)}:(s=m.shapePositionToRange(T),u=function(q){return T._offset+T.r2p(s(q,!0))}):u=function(q){return C.t+C.h*(1-q)},w==="path")return k&&k.type==="date"&&(o=m.decodeDate(o)),T&&T.type==="date"&&(u=m.decodeDate(u)),function(q,W,Q){var X=q.path,J=q.xsizemode,ee=q.ysizemode,le=q.xanchor,oe=q.yanchor;return X.replace(v.segmentRE,function(se){var ce=0,ae=se.charAt(0),ne=v.paramIsX[ae],ie=v.paramIsY[ae],ue=v.numParams[ae],he=se.substr(1).replace(v.paramRE,function(pe){return ne[ce]?pe=J==="pixel"?W(le)+Number(pe):W(pe):ie[ce]&&(pe=ee==="pixel"?Q(oe)-Number(pe):Q(pe)),++ce>ue&&(pe="X"),pe});return ce>ue&&(he=he.replace(/[\s,]*X.*/,""),f.log("Ignoring extra params in segment "+se)),ae+he})}(p,o,u);if(p.xsizemode==="pixel"){var N=o(p.xanchor);d=N+p.x0+A,h=N+p.x1+E}else d=o(p.x0)+A,h=o(p.x1)+E;if(p.ysizemode==="pixel"){var z=u(p.yanchor);g=z-p.y0+M,b=z-p.y1+I}else g=u(p.y0)+M,b=u(p.y1)+I;if(w==="line")return"M"+d+","+g+"L"+h+","+b;if(w==="rect")return"M"+d+","+g+"H"+h+"V"+b+"H"+d+"Z";var F=(d+h)/2,R=(g+b)/2,V=Math.abs(F-d),$=Math.abs(R-g),U="A"+V+","+$,Z=F+V+","+R;return"M"+Z+U+" 0 1,1 "+F+","+(R-$)+U+" 0 0,1 "+Z+"Z"}},43701:function(c,m,a){var v=a(28231);c.exports={moduleType:"component",name:"shapes",layoutAttributes:a(43144),supplyLayoutDefaults:a(74367),supplyDrawNewShapeDefaults:a(85522),includeBasePlot:a(20706)("shapes"),calcAutorange:a(44959),draw:v.draw,drawOne:v.drawOne}},41235:function(c){function m(l,o){return o?o.d2l(l):l}function a(l,o){return o?o.l2d(l):l}function v(l){return l.x0shift||0}function f(l){return l.x1shift||0}function n(l){return l.y0shift||0}function y(l){return l.y1shift||0}function _(l,o){return m(l.x1,o)+f(l)-m(l.x0,o)-v(l)}function p(l,o,s){return m(l.y1,s)+y(l)-m(l.y0,s)-n(l)}c.exports={x0:function(l){return l.x0},x1:function(l){return l.x1},y0:function(l){return l.y0},y1:function(l){return l.y1},slope:function(l,o,s){return l.type!=="line"?void 0:p(l,0,s)/_(l,o)},dx:_,dy:p,width:function(l,o){return Math.abs(_(l,o))},height:function(l,o,s){return Math.abs(p(l,0,s))},length:function(l,o,s){return l.type!=="line"?void 0:Math.sqrt(Math.pow(_(l,o),2)+Math.pow(p(l,0,s),2))},xcenter:function(l,o){return a((m(l.x1,o)+f(l)+m(l.x0,o)+v(l))/2,o)},ycenter:function(l,o,s){return a((m(l.y1,s)+y(l)+m(l.y0,s)+n(l))/2,s)}}},8606:function(c,m,a){var v=a(80337),f=a(57891),n=a(93049).extendDeepAll,y=a(13582).overrideAll,_=a(49722),p=a(78032).templatedArray,l=a(64194),o=p("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});c.exports=y(p("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:o,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:n(f({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:_.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:v({})},font:v({}),activebgcolor:{valType:"color",dflt:l.gripBgActiveColor},bgcolor:{valType:"color",dflt:l.railBgColor},bordercolor:{valType:"color",dflt:l.railBorderColor},borderwidth:{valType:"number",min:0,dflt:l.railBorderWidth},ticklen:{valType:"number",min:0,dflt:l.tickLength},tickcolor:{valType:"color",dflt:l.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:l.minorTickLength}}),"arraydraw","from-root")},64194:function(c){c.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},74537:function(c,m,a){var v=a(34809),f=a(59008),n=a(8606),y=a(64194).name,_=n.steps;function p(o,s,u){function d(x,S){return v.coerce(o,s,n,x,S)}for(var h=f(o,s,{name:"steps",handleItemDefaults:l}),g=0,b=0;b<h.length;b++)h[b].visible&&g++;if(g<2?s.visible=!1:d("visible")){s._stepCount=g;var w=s._visibleSteps=v.filterVisible(h);(h[d("active")]||{}).visible||(s.active=w[0]._index),d("x"),d("y"),v.noneOrAll(o,s,["x","y"]),d("xanchor"),d("yanchor"),d("len"),d("lenmode"),d("pad.t"),d("pad.r"),d("pad.b"),d("pad.l"),v.coerceFont(d,"font",u.font),d("currentvalue.visible")&&(d("currentvalue.xanchor"),d("currentvalue.prefix"),d("currentvalue.suffix"),d("currentvalue.offset"),v.coerceFont(d,"currentvalue.font",s.font)),d("transition.duration"),d("transition.easing"),d("bgcolor"),d("activebgcolor"),d("bordercolor"),d("borderwidth"),d("ticklen"),d("tickwidth"),d("tickcolor"),d("minorticklen")}}function l(o,s){function u(h,g){return v.coerce(o,s,_,h,g)}if(o.method==="skip"||Array.isArray(o.args)?u("visible"):s.visible=!1){u("method"),u("args");var d=u("label","step-"+s._index);u("value",d),u("execute")}}c.exports=function(o,s){f(o,s,{name:y,handleItemDefaults:p})}},44097:function(c,m,a){var v=a(45568),f=a(44122),n=a(78766),y=a(62203),_=a(34809),p=_.strTranslate,l=a(30635),o=a(78032).arrayEditor,s=a(64194),u=a(4530),d=u.LINE_SPACING,h=u.FROM_TL,g=u.FROM_BR;function b($){return s.autoMarginIdRoot+$._index}function w($){return $._index}function x($,U){var Z=y.tester.selectAll("g."+s.labelGroupClass).data(U._visibleSteps);Z.enter().append("g").classed(s.labelGroupClass,!0);var q=0,W=0;Z.each(function(ae){var ne=T(v.select(this),{step:ae},U).node();if(ne){var ie=y.bBox(ne);W=Math.max(W,ie.height),q=Math.max(q,ie.width)}}),Z.remove();var Q=U._dims={};Q.inputAreaWidth=Math.max(s.railWidth,s.gripHeight);var X=$._fullLayout._size;Q.lx=X.l+X.w*U.x,Q.ly=X.t+X.h*(1-U.y),U.lenmode==="fraction"?Q.outerLength=Math.round(X.w*U.len):Q.outerLength=U.len,Q.inputAreaStart=0,Q.inputAreaLength=Math.round(Q.outerLength-U.pad.l-U.pad.r);var J=(Q.inputAreaLength-2*s.stepInset)/(U._stepCount-1),ee=q+s.labelPadding;if(Q.labelStride=Math.max(1,Math.ceil(ee/J)),Q.labelHeight=W,Q.currentValueMaxWidth=0,Q.currentValueHeight=0,Q.currentValueTotalHeight=0,Q.currentValueMaxLines=1,U.currentvalue.visible){var le=y.tester.append("g");Z.each(function(ae){var ne=S(le,U,ae.label),ie=ne.node()&&y.bBox(ne.node())||{width:0,height:0},ue=l.lineCount(ne);Q.currentValueMaxWidth=Math.max(Q.currentValueMaxWidth,Math.ceil(ie.width)),Q.currentValueHeight=Math.max(Q.currentValueHeight,Math.ceil(ie.height)),Q.currentValueMaxLines=Math.max(Q.currentValueMaxLines,ue)}),Q.currentValueTotalHeight=Q.currentValueHeight+U.currentvalue.offset,le.remove()}Q.height=Q.currentValueTotalHeight+s.tickOffset+U.ticklen+s.labelOffset+Q.labelHeight+U.pad.t+U.pad.b;var oe="left";_.isRightAnchor(U)&&(Q.lx-=Q.outerLength,oe="right"),_.isCenterAnchor(U)&&(Q.lx-=Q.outerLength/2,oe="center");var se="top";_.isBottomAnchor(U)&&(Q.ly-=Q.height,se="bottom"),_.isMiddleAnchor(U)&&(Q.ly-=Q.height/2,se="middle"),Q.outerLength=Math.ceil(Q.outerLength),Q.height=Math.ceil(Q.height),Q.lx=Math.round(Q.lx),Q.ly=Math.round(Q.ly);var ce={y:U.y,b:Q.height*g[se],t:Q.height*h[se]};U.lenmode==="fraction"?(ce.l=0,ce.xl=U.x-U.len*h[oe],ce.r=0,ce.xr=U.x+U.len*g[oe]):(ce.x=U.x,ce.l=Q.outerLength*h[oe],ce.r=Q.outerLength*g[oe]),f.autoMargin($,b(U),ce)}function S($,U,Z){if(U.currentvalue.visible){var q,W,Q=U._dims;switch(U.currentvalue.xanchor){case"right":q=Q.inputAreaLength-s.currentValueInset-Q.currentValueMaxWidth,W="left";break;case"center":q=.5*Q.inputAreaLength,W="middle";break;default:q=s.currentValueInset,W="left"}var X=_.ensureSingle($,"text",s.labelClass,function(ce){ce.attr({"text-anchor":W,"data-notex":1})}),J=U.currentvalue.prefix?U.currentvalue.prefix:"";if(typeof Z=="string")J+=Z;else{var ee=U.steps[U.active].label,le=U._gd._fullLayout._meta;le&&(ee=_.templateString(ee,le)),J+=ee}U.currentvalue.suffix&&(J+=U.currentvalue.suffix),X.call(y.font,U.currentvalue.font).text(J).call(l.convertToTspans,U._gd);var oe=l.lineCount(X),se=(Q.currentValueMaxLines+1-oe)*U.currentvalue.font.size*d;return l.positionText(X,q,se),X}}function k($,U,Z){_.ensureSingle($,"rect",s.gripRectClass,function(q){q.call(M,U,$,Z).style("pointer-events","all")}).attr({width:s.gripWidth,height:s.gripHeight,rx:s.gripRadius,ry:s.gripRadius}).call(n.stroke,Z.bordercolor).call(n.fill,Z.bgcolor).style("stroke-width",Z.borderwidth+"px")}function T($,U,Z){var q=_.ensureSingle($,"text",s.labelClass,function(X){X.attr({"text-anchor":"middle","data-notex":1})}),W=U.step.label,Q=Z._gd._fullLayout._meta;return Q&&(W=_.templateString(W,Q)),q.call(y.font,Z.font).text(W).call(l.convertToTspans,Z._gd),q}function C($,U){var Z=_.ensureSingle($,"g",s.labelsClass),q=U._dims,W=Z.selectAll("g."+s.labelGroupClass).data(q.labelSteps);W.enter().append("g").classed(s.labelGroupClass,!0),W.exit().remove(),W.each(function(Q){var X=v.select(this);X.call(T,Q,U),y.setTranslate(X,z(U,Q.fraction),s.tickOffset+U.ticklen+U.font.size*d+s.labelOffset+q.currentValueTotalHeight)})}function A($,U,Z,q,W){var Q=Math.round(q*(Z._stepCount-1)),X=Z._visibleSteps[Q]._index;X!==Z.active&&E($,U,Z,X,!0,W)}function E($,U,Z,q,W,Q){var X=Z.active;Z.active=q,o($.layout,s.name,Z).applyUpdate("active",q);var J=Z.steps[Z.active];U.call(N,Z,Q),U.call(S,Z),$.emit("plotly_sliderchange",{slider:Z,step:Z.steps[Z.active],interaction:W,previousActive:X}),J&&J.method&&W&&(U._nextMethod?(U._nextMethod.step=J,U._nextMethod.doCallback=W,U._nextMethod.doTransition=Q):(U._nextMethod={step:J,doCallback:W,doTransition:Q},U._nextMethodRaf=window.requestAnimationFrame(function(){var ee=U._nextMethod.step;ee.method&&(ee.execute&&f.executeAPICommand($,ee.method,ee.args),U._nextMethod=null,U._nextMethodRaf=null)})))}function M($,U,Z){if(!U._context.staticPlot){var q=Z.node(),W=v.select(U);$.on("mousedown",X),$.on("touchstart",X)}function Q(){return Z.data()[0]}function X(){var J=Q();U.emit("plotly_sliderstart",{slider:J});var ee=Z.select("."+s.gripRectClass);v.event.stopPropagation(),v.event.preventDefault(),ee.call(n.fill,J.activebgcolor);var le=F(J,v.mouse(q)[0]);function oe(){var ce=Q(),ae=F(ce,v.mouse(q)[0]);A(U,Z,ce,ae,!1)}function se(){var ce=Q();ce._dragging=!1,ee.call(n.fill,ce.bgcolor),W.on("mouseup",null),W.on("mousemove",null),W.on("touchend",null),W.on("touchmove",null),U.emit("plotly_sliderend",{slider:ce,step:ce.steps[ce.active]})}A(U,Z,J,le,!0),J._dragging=!0,W.on("mousemove",oe),W.on("touchmove",oe),W.on("mouseup",se),W.on("touchend",se)}}function I($,U){var Z=$.selectAll("rect."+s.tickRectClass).data(U._visibleSteps),q=U._dims;Z.enter().append("rect").classed(s.tickRectClass,!0),Z.exit().remove(),Z.attr({width:U.tickwidth+"px","shape-rendering":"crispEdges"}),Z.each(function(W,Q){var X=Q%q.labelStride==0,J=v.select(this);J.attr({height:X?U.ticklen:U.minorticklen}).call(n.fill,U.tickcolor),y.setTranslate(J,z(U,Q/(U._stepCount-1))-.5*U.tickwidth,(X?s.tickOffset:s.minorTickOffset)+q.currentValueTotalHeight)})}function N($,U,Z){for(var q=$.select("rect."+s.gripRectClass),W=0,Q=0;Q<U._stepCount;Q++)if(U._visibleSteps[Q]._index===U.active){W=Q;break}var X=z(U,W/(U._stepCount-1));if(!U._invokingCommand){var J=q;Z&&U.transition.duration>0&&(J=J.transition().duration(U.transition.duration).ease(U.transition.easing)),J.attr("transform",p(X-.5*s.gripWidth,U._dims.currentValueTotalHeight))}}function z($,U){var Z=$._dims;return Z.inputAreaStart+s.stepInset+(Z.inputAreaLength-2*s.stepInset)*Math.min(1,Math.max(0,U))}function F($,U){var Z=$._dims;return Math.min(1,Math.max(0,(U-s.stepInset-Z.inputAreaStart)/(Z.inputAreaLength-2*s.stepInset-2*Z.inputAreaStart)))}function R($,U,Z){var q=Z._dims,W=_.ensureSingle($,"rect",s.railTouchRectClass,function(Q){Q.call(M,U,$,Z).style("pointer-events","all")});W.attr({width:q.inputAreaLength,height:Math.max(q.inputAreaWidth,s.tickOffset+Z.ticklen+q.labelHeight)}).call(n.fill,Z.bgcolor).attr("opacity",0),y.setTranslate(W,0,q.currentValueTotalHeight)}function V($,U){var Z=U._dims,q=Z.inputAreaLength-2*s.railInset,W=_.ensureSingle($,"rect",s.railRectClass);W.attr({width:q,height:s.railWidth,rx:s.railRadius,ry:s.railRadius,"shape-rendering":"crispEdges"}).call(n.stroke,U.bordercolor).call(n.fill,U.bgcolor).style("stroke-width",U.borderwidth+"px"),y.setTranslate(W,s.railInset,.5*(Z.inputAreaWidth-s.railWidth)+Z.currentValueTotalHeight)}c.exports=function($){var U=$._context.staticPlot,Z=$._fullLayout,q=function(le,oe){for(var se=le[s.name],ce=[],ae=0;ae<se.length;ae++){var ne=se[ae];ne.visible&&(ne._gd=oe,ce.push(ne))}return ce}(Z,$),W=Z._infolayer.selectAll("g."+s.containerClassName).data(q.length>0?[0]:[]);function Q(le){le._commandObserver&&(le._commandObserver.remove(),delete le._commandObserver),f.autoMargin($,b(le))}if(W.enter().append("g").classed(s.containerClassName,!0).style("cursor",U?null:"ew-resize"),W.exit().each(function(){v.select(this).selectAll("g."+s.groupClassName).each(Q)}).remove(),q.length!==0){var X=W.selectAll("g."+s.groupClassName).data(q,w);X.enter().append("g").classed(s.groupClassName,!0),X.exit().each(Q).remove();for(var J=0;J<q.length;J++){var ee=q[J];x($,ee)}X.each(function(le){var oe=v.select(this);(function(se){var ce=se._dims;ce.labelSteps=[];for(var ae=se._stepCount,ne=0;ne<ae;ne+=ce.labelStride)ce.labelSteps.push({fraction:ne/(ae-1),step:se._visibleSteps[ne]})})(le),f.manageCommandObserver($,le,le._visibleSteps,function(se){var ce=oe.data()[0];ce.active!==se.index&&(ce._dragging||E($,oe,ce,se.index,!1,!0))}),function(se,ce,ae){(ae.steps[ae.active]||{}).visible||(ae.active=ae._visibleSteps[0]._index),ce.call(S,ae).call(V,ae).call(C,ae).call(I,ae).call(R,se,ae).call(k,se,ae);var ne=ae._dims;y.setTranslate(ce,ne.lx+ae.pad.l,ne.ly+ae.pad.t),ce.call(N,ae,!1),ce.call(S,ae)}($,v.select(this),le)})}}},15359:function(c,m,a){var v=a(64194);c.exports={moduleType:"component",name:v.name,layoutAttributes:a(8606),supplyLayoutDefaults:a(74537),draw:a(44097)}},17240:function(c,m,a){var v=a(45568),f=a(10721),n=a(44122),y=a(33626),_=a(34809),p=_.strTranslate,l=a(62203),o=a(78766),s=a(30635),u=a(20438),d=a(4530).OPPOSITE_SIDE,h=/ [XY][0-9]* /;c.exports={draw:function(g,b,w){var x,S=g._fullLayout,k=w.propContainer,T=w.propName,C=w.placeholder,A=w.traceIndex,E=w.avoid||{},M=w.attributes,I=w.transform,N=w.containerGroup,z=1,F=k.title,R=(F&&F.text?F.text:"").trim(),V=!1,$=F&&F.font?F.font:{},U=$.family,Z=$.size,q=$.color,W=$.weight,Q=$.style,X=$.variant,J=$.textcase,ee=$.lineposition,le=$.shadow,oe=!!w.subtitlePropName,se=w.subtitlePlaceholder,ce=(k.title||{}).subtitle||{text:"",font:{}},ae=ce.text.trim(),ne=!1,ie=1,ue=ce.font,he=ue.family,pe=ue.size,me=ue.color,_e=ue.weight,xe=ue.style,we=ue.variant,Ee=ue.textcase,Pe=ue.lineposition,$e=ue.shadow;T==="title.text"?x="titleText":T.indexOf("axis")!==-1?x="axisTitleText":T.indexOf(!0)&&(x="colorbarTitleText");var Te=g._context.edits[x];function Ce(je,Ze){return je!==void 0&&Ze!==void 0&&je.replace(h," % ")===Ze.replace(h," % ")}R===""?z=0:Ce(R,C)&&(Te||(R=""),z=.2,V=!0),oe&&(ae===""?ie=0:Ce(ae,se)&&(Te||(ae=""),ie=.2,ne=!0)),w._meta?R=_.templateString(R,w._meta):S._meta&&(R=_.templateString(R,S._meta));var ye,ge=R||ae||Te;N||(N=_.ensureSingle(S._infolayer,"g","g-"+b),ye=S._hColorbarMoveTitle);var Me=N.selectAll("text."+b).data(ge?[0]:[]);Me.enter().append("text"),Me.text(R).attr("class",b),Me.exit().remove();var Se=null,ze=b+"-subtitle",Fe=ae||Te;if(oe&&Fe&&((Se=N.selectAll("text."+ze).data(Fe?[0]:[])).enter().append("text"),Se.text(ae).attr("class",ze),Se.exit().remove()),!ge)return N;function De(je,Ze){_.syncOrAsync([Ue,Ne],{title:je,subtitle:Ze})}function Ue(je){var Ze,Ye=je.title,it=je.subtitle;if(!I&&ye&&(I={}),I?(Ze="",I.rotate&&(Ze+="rotate("+[I.rotate,M.x,M.y]+")"),(I.offset||ye)&&(Ze+=p(0,(I.offset||0)-(ye||0)))):Ze=null,Ye.attr("transform",Ze),Ye.style("opacity",z*o.opacity(q)).call(l.font,{color:o.rgb(q),size:v.round(Z,2),family:U,weight:W,style:Q,variant:X,textcase:J,shadow:le,lineposition:ee}).attr(M).call(s.convertToTspans,g,function(ot){if(ot){var tt=v.select(ot.node().parentNode).select("."+ze);if(!tt.empty()){var vt=ot.node().getBBox();if(vt.height){var At=vt.y+vt.height+1.6*pe;tt.attr("y",At)}}}}),it){var dt=N.select("."+b+"-math-group"),ut=Ye.node().getBBox(),It=dt.node()?dt.node().getBBox():void 0,Ot=It?It.y+It.height+1.6*pe:ut.y+ut.height+1.6*pe,Ft=_.extendFlat({},M,{y:Ot});it.attr("transform",Ze),it.style("opacity",ie*o.opacity(me)).call(l.font,{color:o.rgb(me),size:v.round(pe,2),family:he,weight:_e,style:xe,variant:we,textcase:Ee,shadow:$e,lineposition:Pe}).attr(Ft).call(s.convertToTspans,g)}return n.previousPromises(g)}function Ne(je){var Ze=je.title,Ye=v.select(Ze.node().parentNode);if(E&&E.selection&&E.side&&R){Ye.attr("transform",null);var it=d[E.side],dt=E.side==="left"||E.side==="top"?-1:1,ut=f(E.pad)?E.pad:2,It=l.bBox(Ye.node()),Ot={t:0,b:0,l:0,r:0},Ft=g._fullLayout._reservedMargin;for(var ot in Ft)for(var tt in Ft[ot]){var vt=Ft[ot][tt];Ot[tt]=Math.max(Ot[tt],vt)}var At={left:Ot.l,top:Ot.t,right:S.width-Ot.r,bottom:S.height-Ot.b},Dt=E.maxShift||dt*(At[E.side]-It[E.side]),Pt=0;if(Dt<0)Pt=Dt;else{var et=E.offsetLeft||0,rt=E.offsetTop||0;It.left-=et,It.right-=et,It.top-=rt,It.bottom-=rt,E.selection.each(function(){var nt=l.bBox(this);_.bBoxIntersect(It,nt,ut)&&(Pt=Math.max(Pt,dt*(nt[E.side]-It[it])+ut))}),Pt=Math.min(Dt,Pt),k._titleScoot=Math.abs(Pt)}if(Pt>0||Dt<0){var We={left:[-Pt,0],right:[Pt,0],top:[0,-Pt],bottom:[0,Pt]}[E.side];Ye.attr("transform",p(We[0],We[1]))}}}function ke(je,Ze){je.text(Ze).on("mouseover.opacity",function(){v.select(this).transition().duration(u.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){v.select(this).transition().duration(u.HIDE_PLACEHOLDER).style("opacity",0)})}if(Me.call(De,Se),Te&&(R?Me.on(".opacity",null):(ke(Me,C),V=!0),Me.call(s.makeEditable,{gd:g}).on("edit",function(je){A!==void 0?y.call("_guiRestyle",g,T,je,A):y.call("_guiRelayout",g,T,je)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(De)}).on("input",function(je){this.text(je||" ").call(s.positionText,M.x,M.y)}),oe)){if(oe&&!R){var Oe=Me.node().getBBox(),Re=Oe.y+Oe.height+1.6*pe;Se.attr("y",Re)}ae?Se.on(".opacity",null):(ke(Se,se),ne=!0),Se.call(s.makeEditable,{gd:g}).on("edit",function(je){y.call("_guiRelayout",g,"title.subtitle.text",je)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(De)}).on("input",function(je){this.text(je||" ").call(s.positionText,Se.attr("x"),Se.attr("y"))})}return Me.classed("js-placeholder",V),Se&&Se.classed("js-placeholder",ne),N},SUBTITLE_PADDING_EM:1.6,SUBTITLE_PADDING_MATHJAX_EM:1.6}},85389:function(c,m,a){var v=a(80337),f=a(10229),n=a(93049).extendFlat,y=a(13582).overrideAll,_=a(57891),p=a(78032).templatedArray,l=p("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});c.exports=y(p("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:l,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:n(_({editType:"arraydraw"}),{}),font:v({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:f.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},71559:function(c){c.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},42746:function(c,m,a){var v=a(34809),f=a(59008),n=a(85389),y=a(71559).name,_=n.buttons;function p(o,s,u){function d(h,g){return v.coerce(o,s,n,h,g)}d("visible",f(o,s,{name:"buttons",handleItemDefaults:l}).length>0)&&(d("active"),d("direction"),d("type"),d("showactive"),d("x"),d("y"),v.noneOrAll(o,s,["x","y"]),d("xanchor"),d("yanchor"),d("pad.t"),d("pad.r"),d("pad.b"),d("pad.l"),v.coerceFont(d,"font",u.font),d("bgcolor",u.paper_bgcolor),d("bordercolor"),d("borderwidth"))}function l(o,s){function u(d,h){return v.coerce(o,s,_,d,h)}u("visible",o.method==="skip"||Array.isArray(o.args))&&(u("method"),u("args"),u("args2"),u("label"),u("execute"))}c.exports=function(o,s){f(o,s,{name:y,handleItemDefaults:p})}},40974:function(c,m,a){var v=a(45568),f=a(44122),n=a(78766),y=a(62203),_=a(34809),p=a(30635),l=a(78032).arrayEditor,o=a(4530).LINE_SPACING,s=a(71559),u=a(21736);function d(z){return z._index}function h(z,F){return+z.attr(s.menuIndexAttrName)===F._index}function g(z,F,R,V,$,U,Z,q){F.active=Z,l(z.layout,s.name,F).applyUpdate("active",Z),F.type==="buttons"?w(z,V,null,null,F):F.type==="dropdown"&&($.attr(s.menuIndexAttrName,"-1"),b(z,V,$,U,F),q||w(z,V,$,U,F))}function b(z,F,R,V,$){var U=_.ensureSingle(F,"g",s.headerClassName,function(J){J.style("pointer-events","all")}),Z=$._dims,q=$.active,W=$.buttons[q]||s.blankHeaderOpts,Q={y:$.pad.t,yPad:0,x:$.pad.l,xPad:0,index:0},X={width:Z.headerWidth,height:Z.headerHeight};U.call(x,$,W,z).call(I,$,Q,X),_.ensureSingle(F,"text",s.headerArrowClassName,function(J){J.attr("text-anchor","end").call(y.font,$.font).text(s.arrowSymbol[$.direction])}).attr({x:Z.headerWidth-s.arrowOffsetX+$.pad.l,y:Z.headerHeight/2+s.textOffsetY+$.pad.t}),U.on("click",function(){R.call(N,String(h(R,$)?-1:$._index)),w(z,F,R,V,$)}),U.on("mouseover",function(){U.call(C)}),U.on("mouseout",function(){U.call(A,$)}),y.setTranslate(F,Z.lx,Z.ly)}function w(z,F,R,V,$){R||(R=F).attr("pointer-events","all");var U=function(ce){return+ce.attr(s.menuIndexAttrName)==-1}(R)&&$.type!=="buttons"?[]:$.buttons,Z=$.type==="dropdown"?s.dropdownButtonClassName:s.buttonClassName,q=R.selectAll("g."+Z).data(_.filterVisible(U)),W=q.enter().append("g").classed(Z,!0),Q=q.exit();$.type==="dropdown"?(W.attr("opacity","0").transition().attr("opacity","1"),Q.transition().attr("opacity","0").remove()):Q.remove();var X=0,J=0,ee=$._dims,le=["up","down"].indexOf($.direction)!==-1;$.type==="dropdown"&&(le?J=ee.headerHeight+s.gapButtonHeader:X=ee.headerWidth+s.gapButtonHeader),$.type==="dropdown"&&$.direction==="up"&&(J=-s.gapButtonHeader+s.gapButton-ee.openHeight),$.type==="dropdown"&&$.direction==="left"&&(X=-s.gapButtonHeader+s.gapButton-ee.openWidth);var oe={x:ee.lx+X+$.pad.l,y:ee.ly+J+$.pad.t,yPad:s.gapButton,xPad:s.gapButton,index:0},se={l:oe.x+$.borderwidth,t:oe.y+$.borderwidth};q.each(function(ce,ae){var ne=v.select(this);ne.call(x,$,ce,z).call(I,$,oe),ne.on("click",function(){v.event.defaultPrevented||(ce.execute&&(ce.args2&&$.active===ae?(g(z,$,0,F,R,V,-1),f.executeAPICommand(z,ce.method,ce.args2)):(g(z,$,0,F,R,V,ae),f.executeAPICommand(z,ce.method,ce.args))),z.emit("plotly_buttonclicked",{menu:$,button:ce,active:$.active}))}),ne.on("mouseover",function(){ne.call(C)}),ne.on("mouseout",function(){ne.call(A,$),q.call(T,$)})}),q.call(T,$),le?(se.w=Math.max(ee.openWidth,ee.headerWidth),se.h=oe.y-se.t):(se.w=oe.x-se.l,se.h=Math.max(ee.openHeight,ee.headerHeight)),se.direction=$.direction,V&&(q.size()?function(ce,ae,ne,ie,ue,he){var pe,me,_e,xe=ue.direction,we=xe==="up"||xe==="down",Ee=ue._dims,Pe=ue.active;if(we)for(me=0,_e=0;_e<Pe;_e++)me+=Ee.heights[_e]+s.gapButton;else for(pe=0,_e=0;_e<Pe;_e++)pe+=Ee.widths[_e]+s.gapButton;ie.enable(he,pe,me),ie.hbar&&ie.hbar.attr("opacity","0").transition().attr("opacity","1"),ie.vbar&&ie.vbar.attr("opacity","0").transition().attr("opacity","1")}(0,0,0,V,$,se):function(ce){var ae=!!ce.hbar,ne=!!ce.vbar;ae&&ce.hbar.transition().attr("opacity","0").each("end",function(){ae=!1,ne||ce.disable()}),ne&&ce.vbar.transition().attr("opacity","0").each("end",function(){ne=!1,ae||ce.disable()})}(V))}function x(z,F,R,V){z.call(S,F).call(k,F,R,V)}function S(z,F){_.ensureSingle(z,"rect",s.itemRectClassName,function(R){R.attr({rx:s.rx,ry:s.ry,"shape-rendering":"crispEdges"})}).call(n.stroke,F.bordercolor).call(n.fill,F.bgcolor).style("stroke-width",F.borderwidth+"px")}function k(z,F,R,V){var $=_.ensureSingle(z,"text",s.itemTextClassName,function(q){q.attr({"text-anchor":"start","data-notex":1})}),U=R.label,Z=V._fullLayout._meta;Z&&(U=_.templateString(U,Z)),$.call(y.font,F.font).text(U).call(p.convertToTspans,V)}function T(z,F){var R=F.active;z.each(function(V,$){var U=v.select(this);$===R&&F.showactive&&U.select("rect."+s.itemRectClassName).call(n.fill,s.activeColor)})}function C(z){z.select("rect."+s.itemRectClassName).call(n.fill,s.hoverColor)}function A(z,F){z.select("rect."+s.itemRectClassName).call(n.fill,F.bgcolor)}function E(z,F){var R=F._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},V=y.tester.selectAll("g."+s.dropdownButtonClassName).data(_.filterVisible(F.buttons));V.enter().append("g").classed(s.dropdownButtonClassName,!0);var $=["up","down"].indexOf(F.direction)!==-1;V.each(function(X,J){var ee=v.select(this);ee.call(x,F,X,z);var le=ee.select("."+s.itemTextClassName),oe=le.node()&&y.bBox(le.node()).width,se=Math.max(oe+s.textPadX,s.minWidth),ce=F.font.size*o,ae=p.lineCount(le),ne=Math.max(ce*ae,s.minHeight)+s.textOffsetY;ne=Math.ceil(ne),se=Math.ceil(se),R.widths[J]=se,R.heights[J]=ne,R.height1=Math.max(R.height1,ne),R.width1=Math.max(R.width1,se),$?(R.totalWidth=Math.max(R.totalWidth,se),R.openWidth=R.totalWidth,R.totalHeight+=ne+s.gapButton,R.openHeight+=ne+s.gapButton):(R.totalWidth+=se+s.gapButton,R.openWidth+=se+s.gapButton,R.totalHeight=Math.max(R.totalHeight,ne),R.openHeight=R.totalHeight)}),$?R.totalHeight-=s.gapButton:R.totalWidth-=s.gapButton,R.headerWidth=R.width1+s.arrowPadX,R.headerHeight=R.height1,F.type==="dropdown"&&($?(R.width1+=s.arrowPadX,R.totalHeight=R.height1):R.totalWidth=R.width1,R.totalWidth+=s.arrowPadX),V.remove();var U=R.totalWidth+F.pad.l+F.pad.r,Z=R.totalHeight+F.pad.t+F.pad.b,q=z._fullLayout._size;R.lx=q.l+q.w*F.x,R.ly=q.t+q.h*(1-F.y);var W="left";_.isRightAnchor(F)&&(R.lx-=U,W="right"),_.isCenterAnchor(F)&&(R.lx-=U/2,W="center");var Q="top";_.isBottomAnchor(F)&&(R.ly-=Z,Q="bottom"),_.isMiddleAnchor(F)&&(R.ly-=Z/2,Q="middle"),R.totalWidth=Math.ceil(R.totalWidth),R.totalHeight=Math.ceil(R.totalHeight),R.lx=Math.round(R.lx),R.ly=Math.round(R.ly),f.autoMargin(z,M(F),{x:F.x,y:F.y,l:U*({right:1,center:.5}[W]||0),r:U*({left:1,center:.5}[W]||0),b:Z*({top:1,middle:.5}[Q]||0),t:Z*({bottom:1,middle:.5}[Q]||0)})}function M(z){return s.autoMarginIdRoot+z._index}function I(z,F,R,V){V=V||{};var $=z.select("."+s.itemRectClassName),U=z.select("."+s.itemTextClassName),Z=F.borderwidth,q=R.index,W=F._dims;y.setTranslate(z,Z+R.x,Z+R.y);var Q=["up","down"].indexOf(F.direction)!==-1,X=V.height||(Q?W.heights[q]:W.height1);$.attr({x:0,y:0,width:V.width||(Q?W.width1:W.widths[q]),height:X});var J=F.font.size*o,ee=(p.lineCount(U)-1)*J/2;p.positionText(U,s.textOffsetX,X/2-ee+s.textOffsetY),Q?R.y+=W.heights[q]+R.yPad:R.x+=W.widths[q]+R.xPad,R.index++}function N(z,F){z.attr(s.menuIndexAttrName,F||"-1").selectAll("g."+s.dropdownButtonClassName).remove()}c.exports=function(z){var F=z._fullLayout,R=_.filterVisible(F[s.name]);function V(J){f.autoMargin(z,M(J))}var $=F._menulayer.selectAll("g."+s.containerClassName).data(R.length>0?[0]:[]);if($.enter().append("g").classed(s.containerClassName,!0).style("cursor","pointer"),$.exit().each(function(){v.select(this).selectAll("g."+s.headerGroupClassName).each(V)}).remove(),R.length!==0){var U=$.selectAll("g."+s.headerGroupClassName).data(R,d);U.enter().append("g").classed(s.headerGroupClassName,!0);for(var Z=_.ensureSingle($,"g",s.dropdownButtonGroupClassName,function(J){J.style("pointer-events","all")}),q=0;q<R.length;q++){var W=R[q];E(z,W)}var Q="updatemenus"+F._uid,X=new u(z,Z,Q);U.enter().size()&&(Z.node().parentNode.appendChild(Z.node()),Z.call(N)),U.exit().each(function(J){Z.call(N),V(J)}).remove(),U.each(function(J){var ee=v.select(this),le=J.type==="dropdown"?Z:null;f.manageCommandObserver(z,J,J.buttons,function(oe){g(z,J,J.buttons[oe.index],ee,le,X,oe.index,!0)}),J.type==="dropdown"?(b(z,ee,Z,X,J),h(Z,J)&&w(z,ee,Z,X,J)):w(z,ee,null,null,J)})}}},46230:function(c,m,a){var v=a(71559);c.exports={moduleType:"component",name:v.name,layoutAttributes:a(85389),supplyLayoutDefaults:a(42746),draw:a(40974)}},21736:function(c,m,a){c.exports=_;var v=a(45568),f=a(78766),n=a(62203),y=a(34809);function _(p,l,o){this.gd=p,this.container=l,this.id=o,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}_.barWidth=2,_.barLength=20,_.barRadius=2,_.barPad=1,_.barColor="#808BA4",_.prototype.enable=function(p,l,o){var s=this.gd._fullLayout,u=s.width,d=s.height;this.position=p;var h,g,b,w,x=this.position.l,S=this.position.w,k=this.position.t,T=this.position.h,C=this.position.direction,A=C==="down",E=C==="left",M=C==="up",I=S,N=T;A||E||C==="right"||M||(this.position.direction="down",A=!0),A||M?(g=(h=x)+I,A?(b=k,N=(w=Math.min(b+N,d))-b):N=(w=k+N)-(b=Math.max(w-N,0))):(w=(b=k)+N,E?I=(g=x+I)-(h=Math.max(g-I,0)):(h=x,I=(g=Math.min(h+I,u))-h)),this._box={l:h,t:b,w:I,h:N};var z=S>I,F=_.barLength+2*_.barPad,R=_.barWidth+2*_.barPad,V=x,$=k+T;$+R>d&&($=d-R);var U=this.container.selectAll("rect.scrollbar-horizontal").data(z?[0]:[]);U.exit().on(".drag",null).remove(),U.enter().append("rect").classed("scrollbar-horizontal",!0).call(f.fill,_.barColor),z?(this.hbar=U.attr({rx:_.barRadius,ry:_.barRadius,x:V,y:$,width:F,height:R}),this._hbarXMin=V+F/2,this._hbarTranslateMax=I-F):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var Z=T>N,q=_.barWidth+2*_.barPad,W=_.barLength+2*_.barPad,Q=x+S,X=k;Q+q>u&&(Q=u-q);var J=this.container.selectAll("rect.scrollbar-vertical").data(Z?[0]:[]);J.exit().on(".drag",null).remove(),J.enter().append("rect").classed("scrollbar-vertical",!0).call(f.fill,_.barColor),Z?(this.vbar=J.attr({rx:_.barRadius,ry:_.barRadius,x:Q,y:X,width:q,height:W}),this._vbarYMin=X+W/2,this._vbarTranslateMax=N-W):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ee=this.id,le=h-.5,oe=Z?g+q+.5:g+.5,se=b-.5,ce=z?w+R+.5:w+.5,ae=s._topdefs.selectAll("#"+ee).data(z||Z?[0]:[]);if(ae.exit().remove(),ae.enter().append("clipPath").attr("id",ee).append("rect"),z||Z?(this._clipRect=ae.select("rect").attr({x:Math.floor(le),y:Math.floor(se),width:Math.ceil(oe)-Math.floor(le),height:Math.ceil(ce)-Math.floor(se)}),this.container.call(n.setClipUrl,ee,this.gd),this.bg.attr({x,y:k,width:S,height:T})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(n.setClipUrl,null),delete this._clipRect),z||Z){var ne=v.behavior.drag().on("dragstart",function(){v.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ne);var ie=v.behavior.drag().on("dragstart",function(){v.event.sourceEvent.preventDefault(),v.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));z&&this.hbar.on(".drag",null).call(ie),Z&&this.vbar.on(".drag",null).call(ie)}this.setTranslate(l,o)},_.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(n.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},_.prototype._onBoxDrag=function(){var p=this.translateX,l=this.translateY;this.hbar&&(p-=v.event.dx),this.vbar&&(l-=v.event.dy),this.setTranslate(p,l)},_.prototype._onBoxWheel=function(){var p=this.translateX,l=this.translateY;this.hbar&&(p+=v.event.deltaY),this.vbar&&(l+=v.event.deltaY),this.setTranslate(p,l)},_.prototype._onBarDrag=function(){var p=this.translateX,l=this.translateY;if(this.hbar){var o=p+this._hbarXMin,s=o+this._hbarTranslateMax;p=(y.constrain(v.event.x,o,s)-o)/(s-o)*(this.position.w-this._box.w)}if(this.vbar){var u=l+this._vbarYMin,d=u+this._vbarTranslateMax;l=(y.constrain(v.event.y,u,d)-u)/(d-u)*(this.position.h-this._box.h)}this.setTranslate(p,l)},_.prototype.setTranslate=function(p,l){var o=this.position.w-this._box.w,s=this.position.h-this._box.h;if(p=y.constrain(p||0,0,o),l=y.constrain(l||0,0,s),this.translateX=p,this.translateY=l,this.container.call(n.setTranslate,this._box.l-this.position.l-p,this._box.t-this.position.t-l),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+p-.5),y:Math.floor(this.position.t+l-.5)}),this.hbar){var u=p/o;this.hbar.call(n.setTranslate,p+u*this._hbarTranslateMax,l)}if(this.vbar){var d=l/s;this.vbar.call(n.setTranslate,p,l+d*this._vbarTranslateMax)}}},4530:function(c){c.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},35081:function(c){c.exports={axisRefDescription:function(m,a,v){return["If set to a",m,"axis id (e.g. *"+m+"* or","*"+m+"2*), the `"+m+"` position refers to a",m,"coordinate. If set to *paper*, the `"+m+"`","position refers to the distance from the",a,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",a,"("+v+"). If set to a",m,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",a,"of the domain of that axis: e.g.,","*"+m+"2 domain* refers to the domain of the second",m," axis and a",m,"position of 0.5 refers to the","point between the",a,"and the",v,"of the domain of the","second",m,"axis."].join(" ")}}},20909:function(c){c.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},87296:function(c){c.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},20726:function(c){c.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},84770:function(c){c.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},49467:function(c){c.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},20438:function(c){c.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},63821:function(c){c.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},1837:function(c,m){m.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],m.STYLE=m.CSS_DECLARATIONS.map(function(a){return a.join(": ")+"; "}).join("")},62972:function(c,m){m.xmlns="http://www.w3.org/2000/xmlns/",m.svg="http://www.w3.org/2000/svg",m.xlink="http://www.w3.org/1999/xlink",m.svgAttrs={xmlns:m.svg,"xmlns:xlink":m.xlink}},17430:function(c,m,a){m.version=a(29697).version,a(71116),a(6713);for(var v=a(33626),f=m.register=v.register,n=a(90742),y=Object.keys(n),_=0;_<y.length;_++){var p=y[_];p.charAt(0)!=="_"&&(m[p]=n[p]),f({moduleType:"apiMethod",name:p,fn:n[p]})}f(a(69693)),f([a(3599),a(83348),a(44844),a(43701),a(15553),a(46230),a(15359),a(55429),a(44453),a(83595),a(77901),a(88856),a(96919),a(82494),a(32141),a(95433)]),f([a(30227),a(44611)]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(f(window.PlotlyLocales),delete window.PlotlyLocales),m.Icons=a(35188);var l=a(32141),o=a(44122);m.Plots={resize:o.resize,graphJson:o.graphJson,sendDataToCloud:o.sendDataToCloud},m.Fx={hover:l.hover,unhover:l.unhover,loneHover:l.loneHover,loneUnhover:l.loneUnhover},m.Snapshot=a(6170),m.PlotSchema=a(57297)},35188:function(c){c.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:["<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'>","<defs>"," <style>"," .cls-0{fill:#000;}"," .cls-1{fill:#FFF;}"," .cls-2{fill:#F26;}"," .cls-3{fill:#D69;}"," .cls-4{fill:#BAC;}"," .cls-5{fill:#9EF;}"," </style>","</defs>"," <title>plotly-logomark</title>"," <g id='symbol'>"," <rect class='cls-0' x='0' y='0' width='132' height='132' rx='18' ry='18'/>"," <circle class='cls-5' cx='102' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='54' r='6'/>"," <circle class='cls-3' cx='54' cy='30' r='6'/>"," <circle class='cls-2' cx='30' cy='30' r='6'/>"," <circle class='cls-2' cx='30' cy='54' r='6'/>"," <path class='cls-1' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/>"," <path class='cls-1' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/>"," <path class='cls-1' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/>"," <path class='cls-1' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/>"," </g>","</svg>"].join("")}}},32546:function(c,m){m.isLeftAnchor=function(a){return a.xanchor==="left"||a.xanchor==="auto"&&a.x<=.3333333333333333},m.isCenterAnchor=function(a){return a.xanchor==="center"||a.xanchor==="auto"&&a.x>.3333333333333333&&a.x<.6666666666666666},m.isRightAnchor=function(a){return a.xanchor==="right"||a.xanchor==="auto"&&a.x>=.6666666666666666},m.isTopAnchor=function(a){return a.yanchor==="top"||a.yanchor==="auto"&&a.y>=.6666666666666666},m.isMiddleAnchor=function(a){return a.yanchor==="middle"||a.yanchor==="auto"&&a.y>.3333333333333333&&a.y<.6666666666666666},m.isBottomAnchor=function(a){return a.yanchor==="bottom"||a.yanchor==="auto"&&a.y<=.3333333333333333}},44313:function(c,m,a){var v=a(98953),f=v.mod,n=v.modHalf,y=Math.PI,_=2*y;function p(u){return Math.abs(u[1]-u[0])>_-1e-14}function l(u,d){return n(d-u,_)}function o(u,d){if(p(d))return!0;var h,g;d[0]<d[1]?(h=d[0],g=d[1]):(h=d[1],g=d[0]),(h=f(h,_))>(g=f(g,_))&&(g+=_);var b=f(u,_),w=b+_;return b>=h&&b<=g||w>=h&&w<=g}function s(u,d,h,g,b,w,x){b=b||0,w=w||0;var S,k,T,C,A,E=p([h,g]);function M(F,R){return[F*Math.cos(R)+b,w-F*Math.sin(R)]}E?(S=0,k=y,T=_):h<g?(S=h,T=g):(S=g,T=h),u<d?(C=u,A=d):(C=d,A=u);var I,N=Math.abs(T-S)<=y?0:1;function z(F,R,V){return"A"+[F,F]+" "+[0,N,V]+" "+M(F,R)}return E?I=C===null?"M"+M(A,S)+z(A,k,0)+z(A,T,0)+"Z":"M"+M(C,S)+z(C,k,0)+z(C,T,0)+"ZM"+M(A,S)+z(A,k,1)+z(A,T,1)+"Z":C===null?(I="M"+M(A,S)+z(A,T,0),x&&(I+="L0,0Z")):I="M"+M(C,S)+"L"+M(A,S)+z(A,T,0)+"L"+M(C,T)+z(C,S,1)+"Z",I}c.exports={deg2rad:function(u){return u/180*y},rad2deg:function(u){return u/y*180},angleDelta:l,angleDist:function(u,d){return Math.abs(l(u,d))},isFullCircle:p,isAngleInsideSector:o,isPtInsideSector:function(u,d,h,g){return!!o(d,g)&&(h[0]<h[1]?(b=h[0],w=h[1]):(b=h[1],w=h[0]),u>=b&&u<=w);var b,w},pathArc:function(u,d,h,g,b){return s(null,u,d,h,g,b,0)},pathSector:function(u,d,h,g,b){return s(null,u,d,h,g,b,1)},pathAnnulus:function(u,d,h,g,b,w){return s(u,d,h,g,b,w,1)}}},87800:function(c,m,a){var v=a(93229).decode,f=a(56174),n=Array.isArray,y=ArrayBuffer,_=DataView;function p(d){return y.isView(d)&&!(d instanceof _)}function l(d){return n(d)||p(d)}m.isTypedArray=p,m.isArrayOrTypedArray=l,m.isArray1D=function(d){return!l(d[0])},m.ensureArray=function(d,h){return n(d)||(d=[]),d.length=h,d};var o={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};function s(d){return d.constructor===ArrayBuffer}function u(d,h,g){if(l(d)){if(l(d[0])){for(var b=g,w=0;w<d.length;w++)b=h(b,d[w].length);return b}return d.length}return 0}o.uint8c=o.u1c,o.uint8=o.u1,o.int8=o.i1,o.uint16=o.u2,o.int16=o.i2,o.uint32=o.u4,o.int32=o.i4,o.float32=o.f4,o.float64=o.f8,m.isArrayBuffer=s,m.decodeTypedArraySpec=function(d){var h=[],g=function(F){return{bdata:F.bdata,dtype:F.dtype,shape:F.shape}}(d),b=g.dtype,w=o[b];if(!w)throw new Error('Error in dtype: "'+b+'"');var x=w.BYTES_PER_ELEMENT,S=g.bdata;s(S)||(S=v(S));var k=g.shape===void 0?[S.byteLength/x]:(""+g.shape).split(",");k.reverse();var T,C,A=k.length,E=+k[0],M=x*E,I=0;if(A===1)h=new w(S);else if(A===2)for(T=+k[1],C=0;C<T;C++)h[C]=new w(S,I,E),I+=M;else{if(A!==3)throw new Error("ndim: "+A+'is not supported with the shape:"'+g.shape+'"');T=+k[1];for(var N=+k[2],z=0;z<N;z++)for(h[z]=[],C=0;C<T;C++)h[z][C]=new w(S,I,E),I+=M}return h.bdata=g.bdata,h.dtype=g.dtype,h.shape=k.reverse().join(","),d._inputArray=h,h},m.isTypedArraySpec=function(d){return f(d)&&d.hasOwnProperty("dtype")&&typeof d.dtype=="string"&&d.hasOwnProperty("bdata")&&(typeof d.bdata=="string"||s(d.bdata))&&(d.shape===void 0||d.hasOwnProperty("shape")&&(typeof d.shape=="string"||typeof d.shape=="number"))},m.concat=function(){var d,h,g,b,w,x,S,k,T=[],C=!0,A=0;for(g=0;g<arguments.length;g++)(x=(b=arguments[g]).length)&&(h?T.push(b):(h=b,w=x),n(b)?d=!1:(C=!1,A?d!==b.constructor&&(d=!1):d=b.constructor),A+=x);if(!A)return[];if(!T.length)return h;if(C)return h.concat.apply(h,T);if(d){for((S=new d(A)).set(h),g=0;g<T.length;g++)b=T[g],S.set(b,w),w+=b.length;return S}for(S=new Array(A),k=0;k<h.length;k++)S[k]=h[k];for(g=0;g<T.length;g++){for(b=T[g],k=0;k<b.length;k++)S[w+k]=b[k];w+=k}return S},m.maxRowLength=function(d){return u(d,Math.max,0)},m.minRowLength=function(d){return u(d,Math.min,1/0)}},44498:function(c,m,a){var v=a(10721),f=a(63821).BADNUM,n=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;c.exports=function(y){return typeof y=="string"&&(y=y.replace(n,"")),v(y)?Number(y):f}},34823:function(c){c.exports=function(m){var a=m._fullLayout;a._glcanvas&&a._glcanvas.size()&&a._glcanvas.each(function(v){v.regl&&v.regl.clear({color:!0,depth:!0})})}},23493:function(c){c.exports=function(m){m._responsiveChartHandler&&(window.removeEventListener("resize",m._responsiveChartHandler),delete m._responsiveChartHandler)}},34220:function(c,m,a){var v=a(10721),f=a(65657),n=a(93049).extendFlat,y=a(9829),_=a(19017),p=a(78766),l=a(20438).DESELECTDIM,o=a(35632),s=a(90694).counter,u=a(98953).modHalf,d=a(87800).isArrayOrTypedArray,h=a(87800).isTypedArraySpec,g=a(87800).decodeTypedArraySpec;function b(w,x){var S=m.valObjectMeta[x.valType];if(x.arrayOk&&d(w))return!0;if(S.validateFunction)return S.validateFunction(w,x);var k={},T=k,C={set:function(A){T=A}};return S.coerceFunction(w,C,k,x),T!==k}m.valObjectMeta={data_array:{coerceFunction:function(w,x,S){x.set(d(w)?w:h(w)?g(w):S)}},enumerated:{coerceFunction:function(w,x,S,k){k.coerceNumber&&(w=+w),k.values.indexOf(w)===-1?x.set(S):x.set(w)},validateFunction:function(w,x){x.coerceNumber&&(w=+w);for(var S=x.values,k=0;k<S.length;k++){var T=String(S[k]);if(T.charAt(0)==="/"&&T.charAt(T.length-1)==="/"){if(new RegExp(T.substr(1,T.length-2)).test(w))return!0}else if(w===S[k])return!0}return!1}},boolean:{coerceFunction:function(w,x,S){w===!0||w===!1?x.set(w):x.set(S)}},number:{coerceFunction:function(w,x,S,k){h(w)&&(w=g(w)),!v(w)||k.min!==void 0&&w<k.min||k.max!==void 0&&w>k.max?x.set(S):x.set(+w)}},integer:{coerceFunction:function(w,x,S,k){(k.extras||[]).indexOf(w)===-1?(h(w)&&(w=g(w)),w%1||!v(w)||k.min!==void 0&&w<k.min||k.max!==void 0&&w>k.max?x.set(S):x.set(+w)):x.set(w)}},string:{coerceFunction:function(w,x,S,k){if(typeof w!="string"){var T=typeof w=="number";k.strict!==!0&&T?x.set(String(w)):x.set(S)}else k.noBlank&&!w?x.set(S):x.set(w)}},color:{coerceFunction:function(w,x,S){h(w)&&(w=g(w)),f(w).isValid()?x.set(w):x.set(S)}},colorlist:{coerceFunction:function(w,x,S){Array.isArray(w)&&w.length&&w.every(function(k){return f(k).isValid()})?x.set(w):x.set(S)}},colorscale:{coerceFunction:function(w,x,S){x.set(_.get(w,S))}},angle:{coerceFunction:function(w,x,S){h(w)&&(w=g(w)),w==="auto"?x.set("auto"):v(w)?x.set(u(+w,360)):x.set(S)}},subplotid:{coerceFunction:function(w,x,S,k){var T=k.regex||s(S);typeof w=="string"&&T.test(w)?x.set(w):x.set(S)},validateFunction:function(w,x){var S=x.dflt;return w===S||typeof w=="string"&&!!s(S).test(w)}},flaglist:{coerceFunction:function(w,x,S,k){if((k.extras||[]).indexOf(w)===-1)if(typeof w=="string"){for(var T=w.split("+"),C=0;C<T.length;){var A=T[C];k.flags.indexOf(A)===-1||T.indexOf(A)<C?T.splice(C,1):C++}T.length?x.set(T.join("+")):x.set(S)}else x.set(S);else x.set(w)}},any:{coerceFunction:function(w,x,S){w===void 0?x.set(S):x.set(h(w)?g(w):w)}},info_array:{coerceFunction:function(w,x,S,k){function T(q,W,Q){var X,J={set:function(ee){X=ee}};return Q===void 0&&(Q=W.dflt),m.valObjectMeta[W.valType].coerceFunction(q,J,Q,W),X}if(h(w)&&(w=g(w)),d(w)){var C,A,E,M,I,N,z=k.dimensions===2||k.dimensions==="1-2"&&Array.isArray(w)&&d(w[0]),F=k.items,R=[],V=Array.isArray(F),$=V&&z&&d(F[0]),U=z&&V&&!$,Z=V&&!U?F.length:w.length;if(S=Array.isArray(S)?S:[],z)for(C=0;C<Z;C++)for(R[C]=[],E=d(w[C])?w[C]:[],I=U?F.length:V?F[C].length:E.length,A=0;A<I;A++)M=U?F[A]:V?F[C][A]:F,(N=T(E[A],M,(S[C]||[])[A]))!==void 0&&(R[C][A]=N);else for(C=0;C<Z;C++)(N=T(w[C],V?F[C]:F,S[C]))!==void 0&&(R[C]=N);x.set(R)}else x.set(S)},validateFunction:function(w,x){if(!d(w))return!1;var S=x.items,k=Array.isArray(S),T=x.dimensions===2;if(!x.freeLength&&w.length!==S.length)return!1;for(var C=0;C<w.length;C++)if(T){if(!d(w[C])||!x.freeLength&&w[C].length!==S[C].length)return!1;for(var A=0;A<w[C].length;A++)if(!b(w[C][A],k?S[C][A]:S))return!1}else if(!b(w[C],k?S[C]:S))return!1;return!0}}},m.coerce=function(w,x,S,k,T){var C=o(S,k).get(),A=o(w,k),E=o(x,k),M=A.get(),I=x._template;if(M===void 0&&I&&(M=o(I,k).get(),I=0),T===void 0&&(T=C.dflt),C.arrayOk){if(d(M))return E.set(M),M;if(h(M))return M=g(M),E.set(M),M}var N=m.valObjectMeta[C.valType].coerceFunction;N(M,E,T,C);var z=E.get();return I&&z===T&&!b(M,C)&&(N(M=o(I,k).get(),E,T,C),z=E.get()),z},m.coerce2=function(w,x,S,k,T){var C=o(w,k),A=m.coerce(w,x,S,k,T);return C.get()!=null&&A},m.coerceFont=function(w,x,S,k){k||(k={}),S=n({},S);var T={family:w(x+".family",(S=n(S,k.overrideDflt||{})).family),size:w(x+".size",S.size),color:w(x+".color",S.color),weight:w(x+".weight",S.weight),style:w(x+".style",S.style)};if(k.noFontVariant||(T.variant=w(x+".variant",S.variant)),k.noFontLineposition||(T.lineposition=w(x+".lineposition",S.lineposition)),k.noFontTextcase||(T.textcase=w(x+".textcase",S.textcase)),!k.noFontShadow){var C=S.shadow;C==="none"&&k.autoShadowDflt&&(C="auto"),T.shadow=w(x+".shadow",C)}return T},m.coercePattern=function(w,x,S,k){if(w(x+".shape")){w(x+".solidity"),w(x+".size");var T=w(x+".fillmode")==="overlay";if(!k){var C=w(x+".bgcolor",T?S:void 0);w(x+".fgcolor",T?p.contrast(C):S)}w(x+".fgopacity",T?.5:1)}},m.coerceHoverinfo=function(w,x,S){var k,T=x._module.attributes,C=T.hoverinfo?T:y,A=C.hoverinfo;if(S._dataLength===1){var E=A.dflt==="all"?A.flags.slice():A.dflt.split("+");E.splice(E.indexOf("name"),1),k=E.join("+")}return m.coerce(w,x,C,"hoverinfo",k)},m.coerceSelectionMarkerOpacity=function(w,x){if(w.marker){var S,k,T=w.marker.opacity;T!==void 0&&(d(T)||w.selected||w.unselected||(S=T,k=l*T),x("selected.marker.opacity",S),x("unselected.marker.opacity",k))}},m.validate=b},92596:function(c,m,a){var v,f,n=a(42696).DC,y=a(10721),_=a(48636),p=a(98953).mod,l=a(63821),o=l.BADNUM,s=l.ONEDAY,u=l.ONEHOUR,d=l.ONEMIN,h=l.ONESEC,g=l.EPOCHJD,b=a(33626),w=a(42696).aL,x=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,S=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,k=new Date().getFullYear()-70;function T(U){return U&&b.componentsRegistry.calendars&&typeof U=="string"&&U!=="gregorian"}function C(U,Z){return String(U+Math.pow(10,Z)).substr(1)}m.dateTick0=function(U,Z){var q=function(Q,X){return T(Q)?X?b.getComponentMethod("calendars","CANONICAL_SUNDAY")[Q]:b.getComponentMethod("calendars","CANONICAL_TICK")[Q]:X?"2000-01-02":"2000-01-01"}(U,!!Z);if(Z<2)return q;var W=m.dateTime2ms(q,U);return W+=s*(Z-1),m.ms2DateTime(W,0,U)},m.dfltRange=function(U){return T(U)?b.getComponentMethod("calendars","DFLTRANGE")[U]:["2000-01-01","2001-01-01"]},m.isJSDate=function(U){return typeof U=="object"&&U!==null&&typeof U.getTime=="function"},m.dateTime2ms=function(U,Z){if(m.isJSDate(U)){var q=U.getTimezoneOffset()*d,W=(U.getUTCMinutes()-U.getMinutes())*d+(U.getUTCSeconds()-U.getSeconds())*h+(U.getUTCMilliseconds()-U.getMilliseconds());if(W){var Q=3*d;q=q-Q/2+p(W-q+Q/2,Q)}return(U=Number(U)-q)>=v&&U<=f?U:o}if(typeof U!="string"&&typeof U!="number")return o;U=String(U);var X=T(Z),J=U.charAt(0);!X||J!=="G"&&J!=="g"||(U=U.substr(1),Z="");var ee=X&&Z.substr(0,7)==="chinese",le=U.match(ee?S:x);if(!le)return o;var oe=le[1],se=le[3]||"1",ce=Number(le[5]||1),ae=Number(le[7]||0),ne=Number(le[9]||0),ie=Number(le[11]||0);if(X){if(oe.length===2)return o;var ue;oe=Number(oe);try{var he=b.getComponentMethod("calendars","getCal")(Z);if(ee){var pe=se.charAt(se.length-1)==="i";se=parseInt(se,10),ue=he.newDate(oe,he.toMonthIndex(oe,se,pe),ce)}else ue=he.newDate(oe,Number(se),ce)}catch{return o}return ue?(ue.toJD()-g)*s+ae*u+ne*d+ie*h:o}oe=oe.length===2?(Number(oe)+2e3-k)%100+k:Number(oe),se-=1;var me=new Date(Date.UTC(2e3,se,ce,ae,ne));return me.setUTCFullYear(oe),me.getUTCMonth()!==se||me.getUTCDate()!==ce?o:me.getTime()+ie*h},v=m.MIN_MS=m.dateTime2ms("-9999"),f=m.MAX_MS=m.dateTime2ms("9999-12-31 23:59:59.9999"),m.isDateTime=function(U,Z){return m.dateTime2ms(U,Z)!==o};var A=90*s,E=3*u,M=5*d;function I(U,Z,q,W,Q){if((Z||q||W||Q)&&(U+=" "+C(Z,2)+":"+C(q,2),(W||Q)&&(U+=":"+C(W,2),Q))){for(var X=4;Q%10==0;)X-=1,Q/=10;U+="."+C(Q,X)}return U}m.ms2DateTime=function(U,Z,q){if(typeof U!="number"||!(U>=v&&U<=f))return o;Z||(Z=0);var W,Q,X,J,ee,le,oe=Math.floor(10*p(U+.05,1)),se=Math.round(U-oe/10);if(T(q)){var ce=Math.floor(se/s)+g,ae=Math.floor(p(U,s));try{W=b.getComponentMethod("calendars","getCal")(q).fromJD(ce).formatDate("yyyy-mm-dd")}catch{W=w("G%Y-%m-%d")(new Date(se))}if(W.charAt(0)==="-")for(;W.length<11;)W="-0"+W.substr(1);else for(;W.length<10;)W="0"+W;Q=Z<A?Math.floor(ae/u):0,X=Z<A?Math.floor(ae%u/d):0,J=Z<E?Math.floor(ae%d/h):0,ee=Z<M?ae%h*10+oe:0}else le=new Date(se),W=w("%Y-%m-%d")(le),Q=Z<A?le.getUTCHours():0,X=Z<A?le.getUTCMinutes():0,J=Z<E?le.getUTCSeconds():0,ee=Z<M?10*le.getUTCMilliseconds()+oe:0;return I(W,Q,X,J,ee)},m.ms2DateTimeLocal=function(U){if(!(U>=v+s&&U<=f-s))return o;var Z=Math.floor(10*p(U+.05,1)),q=new Date(Math.round(U-Z/10));return I(n("%Y-%m-%d")(q),q.getHours(),q.getMinutes(),q.getSeconds(),10*q.getUTCMilliseconds()+Z)},m.cleanDate=function(U,Z,q){if(U===o)return Z;if(m.isJSDate(U)||typeof U=="number"&&isFinite(U)){if(T(q))return _.error("JS Dates and milliseconds are incompatible with world calendars",U),Z;if(!(U=m.ms2DateTimeLocal(+U))&&Z!==void 0)return Z}else if(!m.isDateTime(U,q))return _.error("unrecognized date",U),Z;return U};var N=/%\d?f/g,z=/%h/g,F={1:"1",2:"1",3:"2",4:"2"};function R(U,Z,q,W){U=U.replace(N,function(X){var J=Math.min(+X.charAt(1)||6,6);return(Z/1e3%1+2).toFixed(J).substr(2).replace(/0+$/,"")||"0"});var Q=new Date(Math.floor(Z+.05));if(U=U.replace(z,function(){return F[q("%q")(Q)]}),T(W))try{U=b.getComponentMethod("calendars","worldCalFmt")(U,Z,W)}catch{return"Invalid"}return q(U)(Q)}var V=[59,59.9,59.99,59.999,59.9999];m.formatDate=function(U,Z,q,W,Q,X){if(Q=T(Q)&&Q,!Z)if(q==="y")Z=X.year;else if(q==="m")Z=X.month;else{if(q!=="d")return function(J,ee){var le=p(J+.05,s),oe=C(Math.floor(le/u),2)+":"+C(p(Math.floor(le/d),60),2);if(ee!=="M"){y(ee)||(ee=0);var se=(100+Math.min(p(J/h,60),V[ee])).toFixed(ee).substr(1);ee>0&&(se=se.replace(/0+$/,"").replace(/[\.]$/,"")),oe+=":"+se}return oe}(U,q)+`
129
+ `+c):B.stack=c}throw B}}_request(r,i){typeof r=="string"?(i=i||{},i.url=r):i=r||{},i=qy(this.defaults,i);const{transitional:B,paramsSerializer:D,headers:c}=i;B!==void 0&&FE.assertOptions(B,{silentJSONParsing:p0.transitional(p0.boolean),forcedJSONParsing:p0.transitional(p0.boolean),clarifyTimeoutError:p0.transitional(p0.boolean)},!1),D!=null&&(Ir.isFunction(D)?i.paramsSerializer={serialize:D}:FE.assertOptions(D,{encode:p0.function,serialize:p0.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();let m=c&&Ir.merge(c.common,c[i.method]);c&&Ir.forEach(["delete","get","head","post","put","patch","common"],l=>{delete c[l]}),i.headers=rm.concat(m,c);const a=[];let v=!0;this.interceptors.request.forEach(function(l){typeof l.runWhen=="function"&&l.runWhen(i)===!1||(v=v&&l.synchronous,a.unshift(l.fulfilled,l.rejected))});const f=[];this.interceptors.response.forEach(function(l){f.push(l.fulfilled,l.rejected)});let n,y=0,_;if(!v){const l=[$W.bind(this),void 0];for(l.unshift.apply(l,a),l.push.apply(l,f),_=l.length,n=Promise.resolve(i);y<_;)n=n.then(l[y++],l[y++]);return n}_=a.length;let p=i;for(y=0;y<_;){const l=a[y++],o=a[y++];try{p=l(p)}catch(s){o.call(this,s);break}}try{n=$W.call(this,p)}catch(l){return Promise.reject(l)}for(y=0,_=f.length;y<_;)n=n.then(f[y++],f[y++]);return n}getUri(r){r=qy(this.defaults,r);const i=LW(r.baseURL,r.url);return IW(i,r.params,r.paramsSerializer)}};Ir.forEach(["delete","get","head","options"],function(e){S4.prototype[e]=function(r,i){return this.request(qy(i||{},{method:e,url:r,data:(i||{}).data}))}}),Ir.forEach(["post","put","patch"],function(e){function r(i){return function(B,D,c){return this.request(qy(c||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:B,data:D}))}}S4.prototype[e]=r(),S4.prototype[e+"Form"]=r(!0)});const T4=S4;class LE{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(D){i=D});const B=this;this.promise.then(D=>{if(!B._listeners)return;let c=B._listeners.length;for(;c-- >0;)B._listeners[c](D);B._listeners=null}),this.promise.then=D=>{let c;const m=new Promise(a=>{B.subscribe(a),c=a}).then(D);return m.cancel=function(){B.unsubscribe(c)},m},r(function(D,c,m){B.reason||(B.reason=new w_(D,c,m),i(B.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}static source(){let r;return{token:new LE(function(i){r=i}),cancel:r}}}const pCt=LE;function fCt(e){return function(r){return e.apply(null,r)}}function mCt(e){return Ir.isObject(e)&&e.isAxiosError===!0}const DE={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(DE).forEach(([e,r])=>{DE[r]=e});const gCt=DE;function HW(e){const r=new T4(e),i=fW(T4.prototype.request,r);return Ir.extend(i,T4.prototype,r,{allOwnKeys:!0}),Ir.extend(i,r,null,{allOwnKeys:!0}),i.create=function(B){return HW(qy(e,B))},i}const Wd=HW(IE);Wd.Axios=T4,Wd.CanceledError=w_,Wd.CancelToken=pCt,Wd.isCancel=FW,Wd.VERSION=UW,Wd.toFormData=w4,Wd.AxiosError=Nl,Wd.Cancel=Wd.CanceledError,Wd.all=function(e){return Promise.all(e)},Wd.spread=fCt,Wd.isAxiosError=mCt,Wd.mergeConfig=qy,Wd.AxiosHeaders=rm,Wd.formToJSON=e=>zW(Ir.isHTMLForm(e)?new FormData(e):e),Wd.getAdapter=VW.getAdapter,Wd.HttpStatusCode=gCt,Wd.default=Wd;const k_=Wd,E4={isAgeByRange:!0,isAgeByYear:!1,minAge:14,maxAge:43,availableYears:Array.from({length:30},(e,r)=>1981+r).sort((e,r)=>r-e),nationalTeams:[{booleanIsSelected:!1,stringName:"Selección mexicana",setAvailablePlayersIds:{},numberId:392}],isEligibilitySelected:!1,eligibility:[{isSelected:!0,id:138,name:"Mexicana"}],nationalities:[{isSelected:!0,id:138,name:"Mexicana"},{isSelected:!0,id:10,name:"Argentina"},{isSelected:!0,id:29,name:"Brasileña"},{isSelected:!0,id:47,name:"Colombiana"},{isSelected:!0,id:62,name:"Ecuatoriana"},{isSelected:!0,id:223,name:"Uruguaya"},{isSelected:!0,id:198,name:"Española"},{isSelected:!0,id:74,name:"Francesa"},{isSelected:!0,id:43,name:"Chilena"},{isSelected:!0,id:222,name:"Americana"},{isSelected:!0,id:165,name:"Paraguaya"},{isSelected:!0,id:226,name:"Venezolana"},{isSelected:!0,id:52,name:"Marfileña"},{isSelected:!0,id:166,name:"Peruana"}],positions:[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},yCt={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},vCt={1:"Portero",2:"Defensa Central",3:"Lateral por izquierda",4:"Lateral por derecha",5:"Volante por izquierda",6:"Volante por derecha",7:"Volante defensivo",8:"Volante ofensivo",9:"Delantero",10:"Desconocida"};function A4(e){"@babel/helpers - typeof";return A4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},A4(e)}function im(e){if(e===null||e===!0||e===!1)return NaN;var r=Number(e);return isNaN(r)?r:r<0?Math.ceil(r):Math.floor(r)}function _d(e,r){if(r.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+r.length+" present")}function jc(e){_d(1,arguments);var r=Object.prototype.toString.call(e);return e instanceof Date||A4(e)==="object"&&r==="[object Date]"?new Date(e.getTime()):typeof e=="number"||r==="[object Number]"?new Date(e):((typeof e=="string"||r==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function _Ct(e,r){_d(2,arguments);var i=jc(e),B=im(r);return isNaN(B)?new Date(NaN):(B&&i.setDate(i.getDate()+B),i)}function bCt(e,r){_d(2,arguments);var i=jc(e),B=im(r);if(isNaN(B))return new Date(NaN);if(!B)return i;var D=i.getDate(),c=new Date(i.getTime());c.setMonth(i.getMonth()+B+1,0);var m=c.getDate();return D>=m?c:(i.setFullYear(c.getFullYear(),c.getMonth(),D),i)}function C_(e,r){if(_d(2,arguments),!r||A4(r)!=="object")return new Date(NaN);var i=r.years?im(r.years):0,B=r.months?im(r.months):0,D=r.weeks?im(r.weeks):0,c=r.days?im(r.days):0,m=r.hours?im(r.hours):0,a=r.minutes?im(r.minutes):0,v=r.seconds?im(r.seconds):0,f=jc(e),n=B||i?bCt(f,B+i*12):f,y=c||D?_Ct(n,c+D*7):n,_=a+m*60,p=v+_*60,l=p*1e3,o=new Date(y.getTime()+l);return o}function WW(e){var r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return r.setUTCFullYear(e.getFullYear()),e.getTime()-r.getTime()}function qW(e){_d(1,arguments);var r=jc(e);return r.setHours(0,0,0,0),r}var xCt=864e5;function wCt(e,r){_d(2,arguments);var i=qW(e),B=qW(r),D=i.getTime()-WW(i),c=B.getTime()-WW(B);return Math.round((D-c)/xCt)}function Yy(e,r){_d(2,arguments);var i=jc(e),B=jc(r),D=i.getTime()-B.getTime();return D<0?-1:D>0?1:D}var kCt=6e4,CCt=36e5;function SCt(e,r){_d(2,arguments);var i=jc(e),B=jc(r),D=i.getFullYear()-B.getFullYear(),c=i.getMonth()-B.getMonth();return D*12+c}function TCt(e,r){_d(2,arguments);var i=jc(e),B=jc(r);return i.getFullYear()-B.getFullYear()}function YW(e,r){var i=e.getFullYear()-r.getFullYear()||e.getMonth()-r.getMonth()||e.getDate()-r.getDate()||e.getHours()-r.getHours()||e.getMinutes()-r.getMinutes()||e.getSeconds()-r.getSeconds()||e.getMilliseconds()-r.getMilliseconds();return i<0?-1:i>0?1:i}function ECt(e,r){_d(2,arguments);var i=jc(e),B=jc(r),D=YW(i,B),c=Math.abs(wCt(i,B));i.setDate(i.getDate()-D*c);var m=+(YW(i,B)===-D),a=D*(c-m);return a===0?0:a}function RE(e,r){return _d(2,arguments),jc(e).getTime()-jc(r).getTime()}var XW={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},ACt="trunc";function VE(e){return e?XW[e]:XW[ACt]}function MCt(e,r,i){_d(2,arguments);var B=RE(e,r)/CCt;return VE(i==null?void 0:i.roundingMethod)(B)}function ICt(e,r,i){_d(2,arguments);var B=RE(e,r)/kCt;return VE(i==null?void 0:i.roundingMethod)(B)}function PCt(e){_d(1,arguments);var r=jc(e);return r.setHours(23,59,59,999),r}function BCt(e){_d(1,arguments);var r=jc(e),i=r.getMonth();return r.setFullYear(r.getFullYear(),i+1,0),r.setHours(23,59,59,999),r}function NCt(e){_d(1,arguments);var r=jc(e);return PCt(r).getTime()===BCt(r).getTime()}function zCt(e,r){_d(2,arguments);var i=jc(e),B=jc(r),D=Yy(i,B),c=Math.abs(SCt(i,B)),m;if(c<1)m=0;else{i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-D*c);var a=Yy(i,B)===-D;NCt(jc(e))&&c===1&&Yy(e,B)===1&&(a=!1),m=D*(c-Number(a))}return m===0?0:m}function OCt(e,r,i){_d(2,arguments);var B=RE(e,r)/1e3;return VE(i==null?void 0:i.roundingMethod)(B)}function FCt(e,r){_d(2,arguments);var i=jc(e),B=jc(r),D=Yy(i,B),c=Math.abs(TCt(i,B));i.setFullYear(1584),B.setFullYear(1584);var m=Yy(i,B)===-D,a=D*(c-Number(m));return a===0?0:a}function LCt(e){return _d(1,arguments),jc(e).getFullYear()}function DCt(e){_d(1,arguments);var r=jc(e.start),i=jc(e.end);if(isNaN(r.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(i.getTime()))throw new RangeError("End Date is invalid");var B={};B.years=Math.abs(FCt(i,r));var D=Yy(i,r),c=C_(r,{years:D*B.years});B.months=Math.abs(zCt(i,c));var m=C_(c,{months:D*B.months});B.days=Math.abs(ECt(i,m));var a=C_(m,{days:D*B.days});B.hours=Math.abs(MCt(i,a));var v=C_(a,{hours:D*B.hours});B.minutes=Math.abs(ICt(i,v));var f=C_(v,{minutes:D*B.minutes});return B.seconds=Math.abs(OCt(i,f)),B}const RCt={__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e,B=t.ref(null);t.watch(()=>i.modelValue,()=>{D()},{immediate:!0});function D(){B.value&&(B.value.checked=i.modelValue)}function c(m){r("update:modelValue",m.target.checked)}return t.onMounted(()=>{D()}),(m,a)=>(t.openBlock(),t.createElementBlock("input",{ref_key:"switchCustom",ref:B,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:c},null,544))}},S_=ml(RCt,[["__scopeId","data-v-e3a6ae4e"]]),C1=e=>(t.pushScopeId("data-v-6b78acb7"),e=e(),t.popScopeId(),e),VCt={class:"personal-data"},$Ct={class:"personal-data__age"},jCt={class:"personal-data__age__toggle"},UCt={class:"personal-data__age__range"},GCt={class:"personal-data__age__dropdown"},HCt=C1(()=>t.createElementVNode("div",{class:"label"},"Año",-1)),WCt={class:"selected-item"},qCt=C1(()=>t.createElementVNode("div",{class:"separator"},null,-1)),YCt={class:"personal-data__nationality-position"},XCt={key:0,class:"personal-data__nationality-position__switch"},ZCt=C1(()=>t.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),JCt=C1(()=>t.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),KCt={class:"personal-data__nationality-position__nationality"},QCt=C1(()=>t.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),eSt={class:"selected-item"},tSt=C1(()=>t.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),aSt={class:"selected-item"},nSt={class:"personal-data__nationality-position__position"},rSt=C1(()=>t.createElementVNode("div",{class:"label"},"Posición",-1)),iSt={class:"selected-item"},oSt="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",sSt={__name:"TemplatePersonalData",props:{isFemale:{type:Boolean,default:!1},season:{type:Object,default:()=>({})},isScouting:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:filters"],setup(e,{expose:r,emit:i}){const B=e,D=[1],c={id:0,name:"Todas las nacionalidades",isSelected:!1},m={id:0,name:"Todas las posiciones",isSelected:!1},a=t.ref({...E4}),v=t.ref(["Por edad","Por año"]),f=t.ref(0),n=t.ref({min:E4.minAge,max:E4.maxAge}),y=t.ref(v_),_=t.ref(""),p=t.ref(""),l=t.ref(0),o=t.ref(0),s=t.computed(()=>{const A=a.value.nationalities?[...a.value.nationalities]:[],E=A[0];return(!E||E.id!==0)&&A.unshift(c),A}),u=t.computed(()=>{let A=a.value.positions?[...a.value.positions]:[];const E=A[0];return(!E||E.id!==0)&&A.unshift(m),A.sort((M,I)=>M.id-I.id),A}),d=t.computed(()=>B.season&&B.season.tournamentId&&D.includes(B.season.tournamentId));t.watch(s,A=>{const E=A.reduce((M,I,N)=>(N!==0&&I.isSelected&&M++,M),0);E===s.value.length-1&&(A[0].isSelected=!0),A[0]&&A[0].isSelected?_.value="Todas las nacionalidades":_.value=`${E} seleccionadas`,k()},{immediate:!0,deep:!0}),t.watch(u,A=>{const E=A.reduce((M,I,N)=>(N!==0&&I.isSelected&&M++,M),0);E===u.value.length-1&&(A[0].isSelected=!0),A[0]&&A[0].isSelected?p.value="Todas las posiciones":p.value=`${E} seleccionadas`,k()},{immediate:!0,deep:!0}),t.watch(()=>a.value.isEligibilitySelected,()=>{k()}),t.watch(()=>B.season,A=>{A&&A.id!==o.value&&(o.value=A.id,h(A))},{immediate:!0,deep:!1});async function h(A){try{if(A&&A.id){const E=new Set,M=await b(A.id),I=new Date,N=[],z=new Map,F=new Map;M.forEach(R=>{const V=new Date(R.dob),$=LCt(V),U=DCt({start:V,end:I});z.has(R.nationality_id)||z.set(R.nationality_id,{id:R.nationality_id,isSelected:!0,name:yCt[`${R.nationality_id}`]}),F.has(R.position_id)||F.set(R.position_id,{id:R.position_id,isSelected:!0,name:vCt[`${R.position_id}`]}),E.add($),N.push(U.years)}),a.value.minAge=Math.min(...N),a.value.maxAge=Math.max(...N),a.value.availableYears=[...E].sort((R,V)=>V-R),l.value=a.value.availableYears[0],a.value.nationalities=[...z.values()],a.value.positions=[...F.values()],n.value.min=a.value.minAge,n.value.max=a.value.maxAge}}catch(E){throw new Error(E)}}function g(A=null){const E=!A||A===hd.All;(E||A===hd.NATIONALITY)&&s.value.forEach(M=>{M.isSelected=!0}),(E||A===hd.ELIGIBILITY)&&(a.value.isEligibilitySelected=!1),(E||A===hd.POSITION)&&u.value.forEach(M=>{M.isSelected=!0}),(E||A===hd.AGE_RANGE)&&(n.value.min=a.value.minAge,n.value.max=a.value.maxAge,f.value=0),(E||A===hd.YEAR)&&(l.value=a.value.availableYears[0],f.value=0),k()}async function b(A){try{const E={Authorization:localStorage.getItem("user_token")||B.token},M={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:oSt,I=await k_.get(M+A,{headers:E});return I.data?I.data.players:[]}catch(E){return Promise.reject(E)}}function w(A){f.value=A.index}function x(A){n.value.min=A.minValue,n.value.max=A.maxValue,k()}function S(A,E){E.id===0?s.value.forEach(M=>{M.isSelected=A}):(E.isSelected=A,s.value[0].isSelected=s.value.every((M,I)=>I===0?!0:M.isSelected))}function k(){const A=f.value===0,E={};A?(E.ageByRange=n.value,E.ageLimits={min:a.value.minAge,max:a.value.maxAge}):E.year=l.value,a.value.isEligibilitySelected?E.eligibility=[...a.value.eligibility]:E.nationalities=s.value.reduce((M,I,N)=>(N!==0&&M.push({...I}),M),[]),E.positions=u.value.reduce((M,I,N)=>(N!==0&&M.push({...I}),M),[]),i("update:filters",E)}function T(A,E){E.id===0?u.value.forEach(M=>{M.isSelected=A}):(E.isSelected=A,u.value[0].isSelected=u.value.every((M,I)=>I===0?!0:M.isSelected))}function C(A){l.value=A,k()}return r({onClearFilters:g}),(A,E)=>(t.openBlock(),t.createElementBlock("div",VCt,[t.createElementVNode("div",$Ct,[t.createElementVNode("div",jCt,[t.createVNode(e9t,{"selected-button-index":f.value,buttons:v.value,width:"220px",onChange:w},null,8,["selected-button-index","buttons"])]),t.withDirectives(t.createElementVNode("div",UCt,[t.createVNode(t.unref(oW),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"14px","font-size":"12px","border-width-indicador":"2px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":a.value.minAge,"max-limit":a.value.maxAge,"min-value":n.value.min,"max-value":n.value.max,onInput:x},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[t.vShow,f.value===0]]),t.withDirectives(t.createElementVNode("div",GCt,[HCt,t.createVNode(t.unref(h0),t.mergeProps({"model-value":l.value},y.value,{items:a.value.availableYears,onInput:C}),{default:t.withCtx(({selectedItem:M})=>[t.createElementVNode("div",WCt,t.toDisplayString(M),1)]),availableItem:t.withCtx(({item:M})=>[t.createElementVNode("div",null,t.toDisplayString(M),1)]),_:1},16,["model-value","items"])],512),[[t.vShow,f.value===1]])]),qCt,t.createElementVNode("div",YCt,[d.value?(t.openBlock(),t.createElementBlock("div",XCt,[ZCt,t.createVNode(S_,{modelValue:a.value.isEligibilitySelected,"onUpdate:modelValue":E[0]||(E[0]=M=>a.value.isEligibilitySelected=M)},null,8,["modelValue"]),JCt])):t.createCommentVNode("",!0),t.createElementVNode("div",KCt,[a.value.isEligibilitySelected?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[tSt,t.createVNode(t.unref(h0),t.mergeProps(y.value,{"is-multiple-option":"",items:a.value.eligibility,"is-disabled":""}),{default:t.withCtx(({selectedItem:M})=>[t.createElementVNode("div",aSt,t.toDisplayString(M.name),1)]),availableItem:t.withCtx(({item:M})=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":M.isSelected,label:M.name,fontFamily:e.fontFamily,width:"100%","avoid-interaction":""},null,8,["model-value","label","fontFamily"])])]),_:1},16,["items"])],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[QCt,t.createVNode(t.unref(h0),t.mergeProps(y.value,{"is-multiple-option":"",items:s.value}),{default:t.withCtx(()=>[t.createElementVNode("div",eSt,t.toDisplayString(_.value),1)]),availableItem:t.withCtx(({item:M})=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":M.isSelected,label:M.name,fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":I=>S(I,M)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),t.createElementVNode("div",nSt,[rSt,t.createVNode(t.unref(h0),t.mergeProps(y.value,{"is-multiple-option":"",items:u.value}),{default:t.withCtx(()=>[t.createElementVNode("div",iSt,[e.isFemale?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva")),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(p.value),1)],64))])]),availableItem:t.withCtx(({item:M})=>[t.createElementVNode("div",null,[t.createVNode(t.unref(Is),{"model-value":M.isSelected,label:e.isFemale?M.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):M.name,fontFamily:e.fontFamily,width:"100%","onUpdate:modelValue":I=>T(I,M)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},lSt=ml(sSt,[["__scopeId","data-v-6b78acb7"]]),cSt={class:"plays"},dSt={class:"plays__body__offensive"},uSt={class:"plays__body__title"},hSt={class:"number-of-categories"},pSt={class:"plays__body__categories"},fSt={class:"plays__body__defensive-possession-offenses"},mSt={class:"plays__body__title"},gSt={class:"number-of-categories"},ySt={class:"plays__body__categories"},vSt={class:"plays__body__title"},_St={class:"number-of-categories"},bSt={class:"plays__body__categories"},xSt={class:"plays__body__title"},wSt={class:"number-of-categories"},kSt={class:"plays__body__categories"},CSt={__name:"TemplatePlays",props:{componentWidth:{type:Number,default:0},playsCategories:{type:Object,required:!0},isExpansionMode:{type:Boolean,default:!0},fontFamily:{type:String,default:"'Poppins-Regular'"}},setup(e){const r=e,i=t.ref(!1),B=t.ref(!1),D=t.ref(!1),c=t.ref(!1),m=t.computed(()=>({"--template-columns":r.isExpansionMode?"1fr":"1fr 1fr"})),a=t.computed(()=>r.playsCategories.offensive.categories.reduce((p,l)=>(l.isSelected&&p++,p),0)),v=t.computed(()=>r.playsCategories.defensive.categories.reduce((p,l)=>(l.isSelected&&p++,p),0)),f=t.computed(()=>r.playsCategories.possession.categories.reduce((p,l)=>(l.isSelected&&p++,p),0)),n=t.computed(()=>r.playsCategories.offenses.categories.reduce((p,l)=>(l.isSelected&&p++,p),0));function y(p,l){l.isSelected=p}function _(p){p==="offensive"?i.value=!i.value:p==="defensive"?B.value=!B.value:p==="possession"?D.value=!D.value:p==="offenses"&&(c.value=!c.value)}return(p,l)=>(t.openBlock(),t.createElementBlock("div",cSt,[t.createElementVNode("div",{class:"plays__body",style:t.normalizeStyle(m.value)},[t.createElementVNode("div",dSt,[t.createElementVNode("div",uSt,[t.createElementVNode("div",{class:"plays__body__title__info",onClick:l[0]||(l[0]=o=>_("offensive"))},[t.createElementVNode("span",null,t.toDisplayString(e.playsCategories.offensive.title),1),t.createElementVNode("span",hSt,"("+t.toDisplayString(a.value)+")",1)]),t.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:l[1]||(l[1]=o=>_("offensive"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":i.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",pSt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.playsCategories.offensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"plays__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,labelFontSize:"13px","model-value":o.isSelected,"box-value":o.priority||0,"onUpdate:modelValue":s=>y(s,o)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||i.value]])]),t.createElementVNode("div",fSt,[t.createElementVNode("div",mSt,[t.createElementVNode("div",{class:"plays__body__title__info",onClick:l[2]||(l[2]=o=>_("defensive"))},[t.createElementVNode("span",null,t.toDisplayString(e.playsCategories.defensive.title),1),t.createElementVNode("span",gSt,"("+t.toDisplayString(v.value)+")",1)]),t.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:l[3]||(l[3]=o=>_("defensive"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":B.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",ySt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.playsCategories.defensive.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"plays__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,labelFontSize:"13px","model-value":o.isSelected,"box-value":o.priority||0,"onUpdate:modelValue":s=>y(s,o)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||B.value]]),t.createElementVNode("div",vSt,[t.createElementVNode("div",{class:"plays__body__title__info",onClick:l[4]||(l[4]=o=>_("possession"))},[t.createElementVNode("span",null,t.toDisplayString(e.playsCategories.possession.title),1),t.createElementVNode("span",_St,"("+t.toDisplayString(f.value)+")",1)]),t.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:l[5]||(l[5]=o=>_("possession"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":D.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",bSt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.playsCategories.possession.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"plays__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,labelFontSize:"13px","model-value":o.isSelected,"box-value":o.priority||0,"onUpdate:modelValue":s=>y(s,o)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||D.value]]),t.createElementVNode("div",xSt,[t.createElementVNode("div",{class:"plays__body__title__info",onClick:l[6]||(l[6]=o=>_("offenses"))},[t.createElementVNode("span",null,t.toDisplayString(e.playsCategories.offenses.title),1),t.createElementVNode("span",wSt,"("+t.toDisplayString(n.value)+")",1)]),t.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:l[7]||(l[7]=o=>_("offenses"))},[t.withDirectives(t.createVNode(k1,{"is-expanded":c.value},null,8,["is-expanded"]),[[t.vShow,e.isExpansionMode]])])]),t.withDirectives(t.createElementVNode("div",kSt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.playsCategories.offenses.categories,o=>(t.openBlock(),t.createElementBlock("div",{key:o.id,class:"plays__checkbox"},[t.createVNode(t.unref(Is),{label:o.name,fontFamily:e.fontFamily,labelFontSize:"13px","model-value":o.isSelected,"box-value":o.priority||0,"onUpdate:modelValue":s=>y(s,o)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[t.vShow,!e.isExpansionMode||c.value]])])],4)]))}},SSt=ml(CSt,[["__scopeId","data-v-364e6cae"]]),TSt={class:"template-results"},ESt={__name:"TemplateResults",props:{resultsFilters:{type:Object,default:()=>({results:[]})}},emits:["update:resultsFilters"],setup(e,{emit:r}){const i=e,B=t.computed(()=>i.resultsFilters.results.filter(D=>D.isSelected).length);return t.watch(()=>i.resultsFilters,D=>{r("update:resultsFilters",D)},{deep:!0,immediate:!0}),(D,c)=>(t.openBlock(),t.createElementBlock("div",TSt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.resultsFilters.results,(m,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:"template-results__result"},[t.createVNode(t.unref(Is),{modelValue:m.isSelected,"onUpdate:modelValue":v=>m.isSelected=v,label:m.name,"avoid-interaction":B.value===1&&m.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},ASt=ml(ESt,[["__scopeId","data-v-453e89c2"]]),MSt={__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--height":i.height,"--width":i.width,"--padding":i.padding,"--border-radius":i.borderRadius,"--border":`solid ${i.borderWidth} ${i.borderColor}`,"--background-color":i.backgroundColor,"--font-color":i.fontColor,"--font-size":i.fontSize,"--font-family":i.fontFamily,"--active-background-color":i.activeBackgroundColor||i.backgroundColor,"--active-border-color":i.activeBorderColor||i.borderColor,"--active-font-color":i.activeFontColor||i.fontColor}));function D(){r("click")}return(c,m)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(B.value),onClick:D},t.toDisplayString(e.text),7))}},T_=ml(MSt,[["__scopeId","data-v-9688933e"]]),ISt={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},ZW={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},PSt={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},BSt={4:"OF",5:"Cf",6:"S",7:"F"};function $E(e=""){return e?localStorage.getItem(e):localStorage.getItem("user_token")||localStorage.getItem("token")}const NSt={class:"dropdown"},zSt={class:"selected-item"},OSt={__name:"DropdownTextOnly",props:{items:{type:Array,default:()=>[]},itemTextKey:{type:String,default:""},isListSameWidth:{type:Boolean,default:!0}},emits:["input"],setup(e,{emit:r}){function i(B){r("input",B)}return(B,D)=>(t.openBlock(),t.createElementBlock("div",NSt,[t.createVNode(t.unref(h0),t.mergeProps(t.unref(v_),{"is-list-same-width":e.isListSameWidth,items:e.items,onInput:i}),{default:t.withCtx(({selectedItem:c})=>[t.createElementVNode("div",zSt,t.toDisplayString(e.itemTextKey?c[e.itemTextKey]:c),1)]),availableItem:t.withCtx(({item:c})=>[t.createElementVNode("div",null,t.toDisplayString(e.itemTextKey?c[e.itemTextKey]:c),1)]),_:1},16,["is-list-same-width","items"])]))}},lh=ml(OSt,[["__scopeId","data-v-064d5f86"]]),FSt={class:"dropdown"},LSt={class:"game-item"},DSt={key:0,class:"item-game"},RSt={class:"match-day"},VSt={class:"team-logo"},$St=["src"],jSt={class:"text"},USt={class:"text score"},GSt={class:"text"},HSt={class:"team-logo"},WSt=["src"],qSt={class:"item-game"},YSt={class:"team-logo"},XSt=["src"],ZSt={class:"text"},JSt={class:"text score"},KSt={class:"text"},QSt={class:"team-logo"},eTt=["src"],tTt={__name:"DropdownGame",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(e,{emit:r}){function i(B){r("input",B)}return(B,D)=>(t.openBlock(),t.createElementBlock("div",FSt,[t.createVNode(t.unref(h0),t.mergeProps(t.unref(v_),{items:e.items,onInput:i}),{default:t.withCtx(({selectedItem:c})=>[t.createElementVNode("div",LSt,[c.homeTeam?(t.openBlock(),t.createElementBlock("div",DSt,[t.createElementVNode("div",RSt,t.toDisplayString(c.roundAbbreviation),1),t.createElementVNode("div",VSt,[t.createElementVNode("img",{src:c.homeTeam.logo,alt:""},null,8,$St)]),t.createElementVNode("div",jSt,t.toDisplayString(c.homeTeam.acronym),1),t.createElementVNode("div",USt,t.toDisplayString(c.score[0])+" - "+t.toDisplayString(c.score[1]),1),t.createElementVNode("div",GSt,t.toDisplayString(c.awayTeam.acronym),1),t.createElementVNode("div",HSt,[t.createElementVNode("img",{src:c.awayTeam.logo,alt:""},null,8,WSt)])])):t.createCommentVNode("",!0)])]),availableItem:t.withCtx(({item:c})=>[t.createElementVNode("div",qSt,[t.createElementVNode("div",null,t.toDisplayString(c.roundAbbreviation),1),t.createElementVNode("div",YSt,[t.createElementVNode("img",{src:c.homeTeam.logo,alt:""},null,8,XSt)]),t.createElementVNode("div",ZSt,t.toDisplayString(c.homeTeam.acronym),1),t.createElementVNode("div",JSt,t.toDisplayString(c.score[0])+" - "+t.toDisplayString(c.score[1]),1),t.createElementVNode("div",KSt,t.toDisplayString(c.awayTeam.acronym),1),t.createElementVNode("div",QSt,[t.createElementVNode("img",{src:c.awayTeam.logo,alt:""},null,8,eTt)])])]),_:1},16,["items"])]))}},M4=ml(tTt,[["__scopeId","data-v-7883a91e"]]),I4=e=>(t.pushScopeId("data-v-b63e9c84"),e=e(),t.popScopeId(),e),aTt={class:"container"},nTt={class:"container__row"},rTt={class:"container__row__wrapper"},iTt=I4(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),oTt={class:"container__row__wrapper__input"},sTt={class:"container__row two-items"},lTt={class:"container__row__wrapper"},cTt=I4(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),dTt={key:0,class:"container__row__wrapper__input"},uTt={class:"container__row__wrapper"},hTt=I4(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),pTt={key:0,class:"container__row__wrapper__input"},fTt={class:"container__row"},mTt={class:"container__row__wrapper"},gTt=I4(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),yTt={key:0,class:"container__row__wrapper__input"},vTt={class:"container__action"},_Tt={__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(e,{emit:r}){const i={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},B=t.ref(null),D=t.ref(null),c=t.ref(null),m=t.ref(null);function a(y){B.value=y,r("update:tournament",y)}function v(y){D.value=y,r("update:season",y)}function f(y){c.value=y}function n(y){m.value=y}return(y,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",aTt,[t.createElementVNode("div",nTt,[t.createElementVNode("div",rTt,[iTt,t.createElementVNode("div",oTt,[t.createVNode(lh,{items:e.tournaments,itemTextKey:"name",onInput:a},null,8,["items"])])])]),t.createElementVNode("div",sTt,[t.createElementVNode("div",lTt,[cTt,B.value&&B.value.seasons?(t.openBlock(),t.createElementBlock("div",dTt,[t.createVNode(lh,{items:B.value.seasons,itemTextKey:"name",onInput:v},null,8,["items"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",uTt,[hTt,D.value&&D.value.arrayMatchDays?(t.openBlock(),t.createElementBlock("div",pTt,[t.createVNode(lh,{items:D.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:f},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",fTt,[t.createElementVNode("div",mTt,[gTt,c.value&&c.value.arrayGames?(t.openBlock(),t.createElementBlock("div",yTt,[t.createVNode(M4,{items:c.value.arrayGames,onInput:n},null,8,["items"])])):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",vTt,[t.createVNode(T_,t.normalizeProps(t.guardReactiveProps(i)),null,16)])],64))}},bTt=ml(_Tt,[["__scopeId","data-v-b63e9c84"]]),xTt={class:"dropdown"},wTt={class:"item-team"},kTt={class:"team-logo"},CTt=["src"],STt={class:"team-acronym"},TTt={class:"item-team"},ETt={class:"team-logo"},ATt=["src"],MTt={class:"team-acronym"},ITt={__name:"DropdownTeam",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(e,{emit:r}){function i(B){r("input",B)}return(B,D)=>(t.openBlock(),t.createElementBlock("div",xTt,[t.createVNode(t.unref(h0),t.mergeProps(t.unref(v_),{items:e.items,onInput:i}),{default:t.withCtx(({selectedItem:c})=>[t.createElementVNode("div",wTt,[t.createElementVNode("div",kTt,[t.createElementVNode("img",{src:c.logo,alt:""},null,8,CTt)]),t.createElementVNode("div",STt,t.toDisplayString(c.acronym),1)])]),availableItem:t.withCtx(({item:c})=>[t.createElementVNode("div",TTt,[t.createElementVNode("div",ETt,[t.createElementVNode("img",{src:c.logo,alt:""},null,8,ATt)]),t.createElementVNode("div",MTt,t.toDisplayString(c.acronym),1)])]),_:1},16,["items"])]))}},JW=ml(ITt,[["__scopeId","data-v-afd2bee8"]]),PTt={class:"advanced-filters"},BTt={class:"advanced-filters__buttons"},NTt=["onClick"],zTt={class:"advanced-filters__filters"},OTt={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(e){const r=e,i=t.defineAsyncComponent(()=>Promise.resolve().then(()=>Nfa)),B=t.defineAsyncComponent(()=>Promise.resolve().then(()=>Jfa)),D=t.defineAsyncComponent(()=>Promise.resolve().then(()=>Qfa)),c=[{name:"Sub categorías",component:i},{name:"Cancha",component:D},{name:"Condiciones",component:B}],m=t.ref(c[0]),a=t.computed(()=>r.selectedCategory?r.selectedCategory.subcategoryGroups||[]:[]);function v(f){m.value=f}return(f,n)=>(t.openBlock(),t.createElementBlock("div",PTt,[t.createElementVNode("div",BTt,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(c,y=>t.createElementVNode("div",{key:y.name,role:"button",class:t.normalizeClass(["advanced-filters__buttons__button",{active:m.value.name===y.name}]),onClick:_=>v(y)},t.toDisplayString(y.name),11,NTt)),64))]),t.createElementVNode("div",zTt,[(t.openBlock(),t.createBlock(t.KeepAlive,null,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(m.value.component),{"subcategory-groups":a.value},null,8,["subcategory-groups"]))],1024))])]))}},jE=ml(OTt,[["__scopeId","data-v-c62c5b9c"]]),S1=e=>(t.pushScopeId("data-v-575b26b5"),e=e(),t.popScopeId(),e),FTt={class:"container"},LTt={class:"container__row"},DTt={class:"container__row__wrapper"},RTt=S1(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),VTt={class:"container__row__wrapper__input"},$Tt={class:"container__row two-items"},jTt={class:"container__row__wrapper"},UTt=S1(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),GTt={key:0,class:"container__row__wrapper__input"},HTt={class:"container__row__wrapper"},WTt=S1(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),qTt={key:0,class:"container__row__wrapper__input"},YTt={class:"container__row"},XTt={class:"container__row__wrapper"},ZTt=S1(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),JTt={key:0,class:"container__row__wrapper__input"},KTt={class:"container__row"},QTt={class:"container__row__wrapper"},eEt=S1(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),tEt={key:0,class:"container__row__wrapper__input"},aEt={class:"container__row type-and-advanced"},nEt={class:"container__row__wrapper"},rEt=S1(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),iEt={class:"container__row__wrapper__input"},oEt={class:"container__row__wrapper center"},sEt=S1(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),lEt={class:"container__row__wrapper__input"},cEt={class:"container__row"},dEt={class:"container__action"},uEt={__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(e,{emit:r}){const i=e,B={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},D=t.ref(null),c=t.ref(null);t.ref(null);const m=t.ref(null),a=t.ref(null),v=t.ref(null),f=t.ref(null),n=t.ref(!0),y=t.computed(()=>v.value?v.value.position_id===1?i.advancedFilterCategories.goalkeeper:i.advancedFilterCategories.player:[]);function _(d){D.value=d,r("update:tournament",d)}function p(d){c.value=d,r("update:season",d)}function l(d){a.value=d,r("update:team",d)}function o(d){v.value=d}function s(d){m.value=d}function u(d){f.value=d}return(d,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",FTt,[t.createElementVNode("div",LTt,[t.createElementVNode("div",DTt,[RTt,t.createElementVNode("div",VTt,[t.createVNode(lh,{items:e.tournaments,itemTextKey:"name",onInput:_},null,8,["items"])])])]),t.createElementVNode("div",$Tt,[t.createElementVNode("div",jTt,[UTt,D.value&&D.value.seasons?(t.openBlock(),t.createElementBlock("div",GTt,[t.createVNode(lh,{items:D.value.seasons,itemTextKey:"name",onInput:p},null,8,["items"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",HTt,[WTt,c.value&&c.value.arrayTeams?(t.openBlock(),t.createElementBlock("div",qTt,[t.createVNode(JW,{items:c.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:l},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",YTt,[t.createElementVNode("div",XTt,[ZTt,a.value&&a.value.arrayPlayers?(t.openBlock(),t.createElementBlock("div",JTt,[t.createVNode(lh,{items:a.value.arrayPlayers,itemTextKey:"player_name",onInput:o},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",KTt,[t.createElementVNode("div",QTt,[eEt,c.value&&c.value.mapGamesByTeam&&a.value?(t.openBlock(),t.createElementBlock("div",tEt,[t.createVNode(M4,{items:c.value.mapGamesByTeam.get(a.value.team_id),onInput:s},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",aEt,[t.createElementVNode("div",nEt,[rEt,t.createElementVNode("div",iEt,[t.createVNode(lh,{items:y.value,itemTextKey:"name","is-list-same-width":!1,onInput:u},null,8,["items"])])]),t.createElementVNode("div",oEt,[sEt,t.createElementVNode("div",lEt,[t.createVNode(S_,{modelValue:n.value,"onUpdate:modelValue":h[0]||(h[0]=g=>n.value=g)},null,8,["modelValue"])])])]),t.createElementVNode("div",cEt,[t.createVNode(jE,{"selected-category":f.value},null,8,["selected-category"])])]),t.createElementVNode("div",dEt,[t.createVNode(T_,t.normalizeProps(t.guardReactiveProps(B)),null,16)])],64))}},hEt=ml(uEt,[["__scopeId","data-v-575b26b5"]]),Xy=e=>(t.pushScopeId("data-v-6d73d5e6"),e=e(),t.popScopeId(),e),pEt={class:"container"},fEt={class:"container__row"},mEt={class:"container__row__wrapper"},gEt=Xy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),yEt={class:"container__row__wrapper__input"},vEt={class:"container__row two-items"},_Et={class:"container__row__wrapper"},bEt=Xy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),xEt={key:0,class:"container__row__wrapper__input"},wEt={class:"container__row__wrapper"},kEt=Xy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),CEt={key:0,class:"container__row__wrapper__input"},SEt={class:"container__row"},TEt={class:"container__row__wrapper"},EEt=Xy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),AEt={key:0,class:"container__row__wrapper__input"},MEt={class:"container__row type-and-advanced"},IEt={class:"container__row__wrapper"},PEt=Xy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),BEt={class:"container__row__wrapper__input"},NEt={class:"container__row__wrapper center"},zEt=Xy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),OEt={class:"container__row__wrapper__input"},FEt={class:"container__row"},LEt={class:"container__action"},DEt={__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(e,{emit:r}){const i=e,B={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},D=t.ref(null),c=t.ref(null);t.ref(null);const m=t.ref(null),a=t.ref(null),v=t.ref(null),f=t.ref(!0),n=t.computed(()=>i.advancedFilterCategories.team);function y(s){D.value=s,r("update:tournament",s)}function _(s){c.value=s,r("update:season",s)}function p(s){a.value=s,r("update:team",s)}function l(s){m.value=s}function o(s){v.value=s}return(s,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",pEt,[t.createElementVNode("div",fEt,[t.createElementVNode("div",mEt,[gEt,t.createElementVNode("div",yEt,[t.createVNode(lh,{items:e.tournaments,itemTextKey:"name",onInput:y},null,8,["items"])])])]),t.createElementVNode("div",vEt,[t.createElementVNode("div",_Et,[bEt,D.value&&D.value.seasons?(t.openBlock(),t.createElementBlock("div",xEt,[t.createVNode(lh,{items:D.value.seasons,itemTextKey:"name",onInput:_},null,8,["items"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",wEt,[kEt,c.value&&c.value.arrayTeams?(t.openBlock(),t.createElementBlock("div",CEt,[t.createVNode(JW,{items:c.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:p},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",SEt,[t.createElementVNode("div",TEt,[EEt,c.value&&c.value.mapGamesByTeam&&a.value?(t.openBlock(),t.createElementBlock("div",AEt,[t.createVNode(M4,{items:c.value.mapGamesByTeam.get(a.value.team_id),onInput:l},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",MEt,[t.createElementVNode("div",IEt,[PEt,t.createElementVNode("div",BEt,[t.createVNode(lh,{items:n.value,itemTextKey:"name","is-list-same-width":!1,onInput:o},null,8,["items"])])]),t.createElementVNode("div",NEt,[zEt,t.createElementVNode("div",OEt,[t.createVNode(S_,{modelValue:f.value,"onUpdate:modelValue":u[0]||(u[0]=d=>f.value=d)},null,8,["modelValue"])])])]),t.createElementVNode("div",FEt,[t.createVNode(jE,{"selected-category":v.value},null,8,["selected-category"])])]),t.createElementVNode("div",LEt,[t.createVNode(T_,t.normalizeProps(t.guardReactiveProps(B)),null,16)])],64))}},REt=ml(DEt,[["__scopeId","data-v-6d73d5e6"]]),Zy=e=>(t.pushScopeId("data-v-6e904db8"),e=e(),t.popScopeId(),e),VEt={class:"container"},$Et={class:"container__row"},jEt={class:"container__row__wrapper"},UEt=Zy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),GEt={class:"container__row__wrapper__input"},HEt={class:"container__row two-items"},WEt={class:"container__row__wrapper"},qEt=Zy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),YEt={key:0,class:"container__row__wrapper__input"},XEt={class:"container__row__wrapper"},ZEt=Zy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),JEt={key:0,class:"container__row__wrapper__input"},KEt={class:"container__row"},QEt={class:"container__row__wrapper"},eAt=Zy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),tAt={key:0,class:"container__row__wrapper__input"},aAt={class:"container__row type-and-advanced"},nAt={class:"container__row__wrapper"},rAt=Zy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),iAt={class:"container__row__wrapper__input"},oAt={class:"container__row__wrapper center"},sAt=Zy(()=>t.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),lAt={class:"container__row__wrapper__input",style:{width:"fit-content"}},cAt={class:"container__row"},dAt={class:"container__action"},uAt={__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(e,{emit:r}){const i=e,B={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},D=t.ref(null),c=t.ref(null),m=t.ref(null),a=t.ref(null),v=t.ref(null),f=t.ref(!0),n=t.computed(()=>i.advancedFilterCategories.games);function y(s){D.value=s,r("update:tournament",s)}function _(s){c.value=s,r("update:season",s)}function p(s){m.value=s}function l(s){a.value=s}function o(s){v.value=s}return(s,u)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",VEt,[t.createElementVNode("div",$Et,[t.createElementVNode("div",jEt,[UEt,t.createElementVNode("div",GEt,[t.createVNode(lh,{items:e.tournaments,itemTextKey:"name",onInput:y},null,8,["items"])])])]),t.createElementVNode("div",HEt,[t.createElementVNode("div",WEt,[qEt,D.value&&D.value.seasons?(t.openBlock(),t.createElementBlock("div",YEt,[t.createVNode(lh,{items:D.value.seasons,itemTextKey:"name",onInput:_},null,8,["items"])])):t.createCommentVNode("",!0)]),t.createElementVNode("div",XEt,[ZEt,c.value&&c.value.arrayMatchDays?(t.openBlock(),t.createElementBlock("div",JEt,[t.createVNode(lh,{items:c.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:p},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",KEt,[t.createElementVNode("div",QEt,[eAt,m.value&&m.value.arrayGames?(t.openBlock(),t.createElementBlock("div",tAt,[t.createVNode(M4,{items:m.value.arrayGames,onInput:l},null,8,["items"])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",aAt,[t.createElementVNode("div",nAt,[rAt,t.createElementVNode("div",iAt,[t.createVNode(lh,{items:n.value,itemTextKey:"name","is-list-same-width":!1,onInput:o},null,8,["items"])])]),t.createElementVNode("div",oAt,[sAt,t.createElementVNode("div",lAt,[t.createVNode(S_,{modelValue:f.value,"onUpdate:modelValue":u[0]||(u[0]=d=>f.value=d)},null,8,["modelValue"])])])]),t.createElementVNode("div",cAt,[t.createVNode(jE,{"selected-category":v.value},null,8,["selected-category"])])]),t.createElementVNode("div",dAt,[t.createVNode(T_,t.normalizeProps(t.guardReactiveProps(B)),null,16)])],64))}},hAt=ml(uAt,[["__scopeId","data-v-6e904db8"]]),pAt={class:"template-videos"},fAt={class:"template-videos__header"},mAt={class:"template-videos__body"},gAt=t.defineComponent({name:"TemplateVideos",components:{VideosGoals:bTt,VideosPlayer:hEt,VideosTeam:REt,VideosGame:hAt}}),yAt=Object.assign(gAt,{props:{gamesUrl:{type:String,default:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?"},tournamentsUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"},playersUrl:{type:String,default:"https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/"},token:{type:String,default:""}},emits:["loading-data"],setup(e,{emit:r}){const i=e,B={padding:"4px 18px",borderRadius:"160px",backgroundColor:"#3A4851",borderColor:"#3A4851",activeBorderColor:"#CBEE6B",fontSize:"11px",fontColor:"#FFFFFF"},D=[],c=["g-23","g-24","g-25"],m={games:[607,608,12,55,54,35,14,52,15,53,466,477],team:[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39],player:{regular:[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],goalkeeper:[55,324,323,608,39,774,802,52,53,40,54]}},a={player:1,team:2,goalkeeper:3},v=t.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),f=t.ref([]),n=t.ref(v.value[0]),y=t.ref({}),_=t.ref({}),p=t.ref({}),l=t.ref({}),o=t.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),s=t.ref([]);t.ref({});const u=t.ref(null);t.watch(y,F=>{_.value.numberSeasonSelectedIndex=_.value.seasons.findIndex(R=>R.id===F.id),F.arrayMatchDays?(l.value=F.arrayMatchDays[0]||{},p.value=F.arrayTeams[0]||{}):(w(F),x(F))}),t.watch(p,()=>{setTimeout(()=>{y.value.mapPlayersByTeam&&(!p.value.arrayPlayers||!p.value.arrayPlayers.length)&&(p.value.arrayPlayers=y.value.mapPlayersByTeam.get(p.value.team_id))},700)});async function d(){try{f.value=await h()}catch(F){throw new Error(F)}}async function h(){try{const F={Authorization:$E()||i.token},R={}.API_TOURNAMENTS||i.tournamentsUrl,V=await k_.get(R,{headers:F});return V.data?V.data.map($=>({...$.tournament,seasons:$.seasons})):[]}catch(F){return Promise.reject(F)}}async function g(F,R,V=""){r("loading-data");let $=V;try{$||($={}.API_CALENDAR_GAMES_BY_SEASON||i.gamesUrl,F.forEach((W,Q)=>{$+=`${Q===0?"":"&"}seasons=${W}`}));const U={Authorization:$E()||i.token},{data:{data:Z,teams:q}}=await k_.get($,{headers:U});return{seasonsAndGames:Z,seasonsAndTeams:q}}catch(U){if(R>0)return g(F,R-1,$);throw new Error(U)}finally{r("loading-data")}}async function b(F){try{const R={Authorization:$E()||i.token},V=` ${{}.API_PLAYERS_BY_SEASON||i.playersUrl}${F.seasonId}`,$=await k_.get(V,{headers:R});return $.data?$.data.players:[]}catch(R){return Promise.reject(R)}}async function w(F){try{const{seasonsAndGames:R,seasonsAndTeams:V}=await g([F.id,...F.related_seasons.map(q=>q.id)],3),$=V.find(q=>q._id===F.id);y.value.arrayTeams=[],y.value.mapTeams=new Map;const U=$.teams.reduce((q,W)=>(y.value.arrayTeams.push(W),y.value.mapTeams.set(W.team_id,{name:W.colloquial_name,acronym:W.acronym,logo:W.logo,id:W.team_id}),q.set(W.team_id,W),q),new Map);p.value=y.value.arrayTeams[0],y.value.mapGames=new Map,y.value.mapGamesByTeam=new Map;const Z=Array.from(R.reduce((q,W)=>(W.games.forEach(Q=>{if(Q.game_status===1&&Q.has_video){(!y.value.maxGameId||Q.game_id>y.value.maxGameId)&&(y.value.maxGameId=Q.game_id);let X=Q.matchday_abbreviation.replace("M","J"),J=Q.matchday_abbreviation.replace("M","Jornada ");const ee=Q.matchday_abbreviation.replace("M","");W.season_type===0?_.value.tournament_type===1&&(Q.seasonId===881?(X=BSt[ee]||X,J=PSt[ee]||J):(X=ZW[Q.matchday_abbreviation]?Q.matchday_abbreviation:X,J=ZW[Q.matchday_abbreviation]||J,X==="FINAL"&&(X="F"))):W.season_type===1?(X=ISt[Q.matchday_abbreviation],J=X):(X=Q.matchday_abbreviation.replace("PO","R"),J="Repechaje"),Q.roundAbbreviation=X,Q.roundName=J,y.value.mapGames.set(Q.game_id,{id:Q.game_id,date:Q.date,dateTimeMillis:new Date(Q.date_time_utc).valueOf(),homeTeam:y.value.mapTeams.get(Q.home_team),awayTeam:y.value.mapTeams.get(Q.visiting_team),roundAbbreviation:Q.roundAbbreviation,roundName:Q.roundName,score:Q.score,gameResult:Q.score[0]>Q.score[1]?1:Q.score[0]<Q.score[1]?2:3,seasonId:W.season_id});const le=q.get(Q.roundAbbreviation);Q.numberDateTimeMillis=new Date(Q.date_time_utc).getTime(),Q.homeTeam=U.get(Q.home_team),Q.awayTeam=U.get(Q.visiting_team);const oe=y.value.mapGamesByTeam.get(Q.home_team),se=y.value.mapGamesByTeam.get(Q.visiting_team);oe?oe.push(Q):y.value.mapGamesByTeam.set(Q.home_team,[Q]),se?se.push(Q):y.value.mapGamesByTeam.set(Q.visiting_team,[Q]),le?le.arrayGames.push(Q):q.set(Q.roundAbbreviation,{stringMatchDayAbbreviation:Q.roundAbbreviation,stringMatchDayName:Q.roundName,arrayGames:[Q]})}}),q),new Map).values());Z.reverse(),Z.forEach(q=>{q.arrayGames.sort((W,Q)=>W.numberDateTimeMillis-Q.numberDateTimeMillis)}),y.value.arrayMatchDays=Z,l.value=Z[0]||{}}catch(R){throw new Error(R)}}async function x(F){try{const R=await A(F.id);y.value.mapPlayers=new Map,y.value.mapPlayersByTeam=R.reduce((V,$)=>{y.value.mapPlayers.set($.player_id,{id:$.player_id,name:$.player_name,shortName:$.shortName,photo:$.player_photo,teamId:$.team_id,positionId:$.position_id});const U=V.get($.team_id);return U?U.push($):V.set($.team_id,[$]),V},new Map)}catch(R){throw new Error(R)}}async function S(){try{let F=[];o.value.isEmpty?(F=await E(),s.value={...F}):F=s.value;const R=[];if(F&&F.length){o.value=F.reduce((W,Q)=>{if(Q.group_id!=="g-55"){const X={idAux:Q.group_id,ids:[...Q.ids?Q.ids:[],...Q.rival_Ids?Q.rival_Ids:[]],type:Q.type,name:Q.name,coordinatePoint:Q.coordinate_point,requiresRivalTransform:c.includes(Q.group_id)};X.idsAux=[...X.ids],X.subcategoryGroups=Q.group_id==="g-12"?[]:k(Q,0,new Map,!1,{},X.idsAux),R.push(X),X.type.includes(a.player)&&W.player.push(X),X.type.includes(a.team)&&(X.idAux!=="g-2"&&W.games.push(X),W.team.push(X)),X.type.includes(a.goalkeeper)&&W.goalkeeper.push(X)}return W},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const V=new Map,$="Resumen",U="Todas sus jugadas",Z=o.value.player.reduce((W,Q)=>{const X=T(Q);return X.forEach(J=>{V.set(J,Q.name)}),W.push(...X),W},[]),q=o.value.goalkeeper.reduce((W,Q)=>{const X=T(Q);return X.forEach(J=>{V.set(J,Q.name)}),W.push(...X),W},[]);o.value.games.unshift({name:$,arrayCategoriesIds:m.games,booleanIsBestPlays:!0}),o.value.team.unshift({name:$,arrayCategoriesIds:m.team,booleanIsBestPlays:!0}),o.value.player.unshift({name:$,arrayCategoriesIds:m.player.regular,booleanIsBestPlays:!0},{name:U,arrayCategoriesIds:Z,booleanIsMinutesPlayed:!0}),o.value.goalkeeper.unshift({name:$,arrayCategoriesIds:m.player.goalkeeper,booleanIsBestPlays:!0},{name:U,arrayCategoriesIds:q,booleanIsMinutesPlayed:!0})}}catch(F){throw new Error(F)}}function k(F,R=0,V=new Map,$=!1,U={},Z=[]){if(!F.group_id)return;let q=V.get(R);const W=$?`${F.id_category}_r`:F.id_category;F.id_category&&Z.push(F.id_category);let Q={ids:[W],groupId:F.group_id,level:R,name:F.name,isSelected:!0,fatherCategories:R>0?[U]:[],idsByFatherCategory:{[F.category_father]:[W]}};if(R>0&&R===1&&(Q.id=F.id_category),q&&R!==0){const X=F.group_id.charAt(F.group_id.length-1),J=q.find(ee=>ee.groupId.endsWith(X));J&&!D.includes(Q.groupId)?(Q=J,J.ids.push(W),J.fatherCategories.push(U),J.fatherCategories.forEach(ee=>{ee.childCategories?ee.childCategories.find(le=>le.groupId===Q.groupId)||ee.childCategories.push(Q):ee.childCategories=[Q]}),J.idsByFatherCategory[F.category_father]?J.idsByFatherCategory[F.category_father].push(W):J.idsByFatherCategory[F.category_father]=[W]):(Q.fatherCategories.forEach(ee=>{ee.childCategories?ee.childCategories.find(le=>le.groupId===Q.groupId)||ee.childCategories.push(Q):ee.childCategories=[Q]}),q.push(Q))}else R!==0&&(U.childCategories?U.childCategories.push(Q):U.childCategories=[Q],q=[Q],V.set(R,q));if(F.categories&&F.categories.length?F.categories.forEach(X=>{k(X,R+1,V,$,Q,Z)}):F.rival_categories&&F.rival_categories.length&&F.rival_categories.forEach(X=>{k(X,R+1,V,!0,Q,Z)}),R===0)return Array.from(V.values())}function T(F){const R=F||F;if(R.booleanIsBestPlays)return R.arrayCategoriesIds;const V={total:[],toRemove:[]};if(R.subcategoryGroups&&R.subcategoryGroups.length?R.subcategoryGroups[0].forEach($=>{C($,null,V)}):(R.ids&&V.total.push(...R.ids),R.rival_ids&&R.rival_ids.forEach($=>{V.total.push(`${$}_r`)})),V.total=V.total.reduce(($,U)=>(V.toRemove.includes(U)||$.push(U),$),[]),!F){const $=R.name.toLowerCase().includes("recibid");u.value.isRivalSubject=$,u.value.avoidCategorySingleName=$,u.value.coordinatePoint=R.coordinatePoint,u.value.requiresRivalTransform=R.requiresRivalTransform}return V.total}function C(F,R=[],V={total:[],toRemove:[]}){F.isSelected?F.childCategories?F.childCategories.forEach($=>{const U=R?Object.entries(F.idsByFatherCategory).reduce((Z,[q,W])=>(R.includes(Number(q))&&W.forEach(Q=>{typeof Q=="string"&&Q.endsWith("_r")?Z.push(Number(Q.split("_")[0])):Z.push(Q)}),Z),[]):[F.id];C($,U,V)}):R?Object.entries(F.idsByFatherCategory).forEach(([$,U])=>{R.includes(Number($))&&U.forEach(Z=>{V.total.push(Z)})}):F.level===1?Object.entries(F.idsByFatherCategory).forEach(([$,U])=>{U.forEach(Z=>{V.total.push(Z)})}):V.total.push(F.id):F.childCategories||F.ids.forEach($=>{V.toRemove.push($)})}async function A(F){try{const R=await b({seasonId:F});return R.forEach(V=>{const[$,U]=V.player_name.split(","),Z=$.split(" ");let q="";for(const W of Z)if(q+=` ${W}`,W.length>3)break;V.shortName=U&&$?`${U.trim().charAt(0)}.${q}`:""}),R}catch(R){return Promise.reject(R)}}async function E(){try{const F={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await k_.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:F})).data||[]}catch(F){return Promise.reject(F)}}function M(F){n.value=F}function I(F){_.value=F,y.value=F.seasons[0]}function N(F){y.value=F}function z(F){p.value=F}return d(),S(),(F,R)=>(t.openBlock(),t.createElementBlock("div",pAt,[t.createElementVNode("div",fAt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v.value,V=>(t.openBlock(),t.createBlock(T_,t.mergeProps({key:V.name},B,{text:V.name,"is-active":n.value.componentName===V.componentName,tournaments:f.value,onClick:$=>M(V)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),t.createElementVNode("div",mAt,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.value.componentName),{tournaments:f.value,"advanced-filter-categories":o.value,"onUpdate:tournament":I,"onUpdate:season":N,"onUpdate:team":z},null,40,["tournaments","advanced-filter-categories"]))])]))}}),vAt=ml(yAt,[["__scopeId","data-v-d6f7aec8"]]),KW=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero "],[10,"Desconocida"]]),_At={class:"template-taken-corners"},bAt={class:"template-taken-corners__header"},xAt={class:"template-taken-corners__header__all"},wAt={class:"template-taken-corners__body"},kAt={class:"template-taken-corners__body__players"},CAt={class:"template-taken-corners__body__players__player__jersey"},SAt={class:"template-taken-corners__body__players__player__photo"},TAt={class:"template-taken-corners__body__players__player__photo__img"},EAt=["src"],AAt={class:"template-taken-corners__body__players__player__info"},MAt={class:"template-taken-corners__body__players__player__info__name"},IAt={class:"template-taken-corners__body__players__player__info__position"},PAt={class:"template-taken-corners__body__players__player__info__position__nationality"},BAt=["src"],NAt={class:"template-taken-corners__body__players__player__info__position__name"},zAt={class:"template-taken-corners__body__players__player__checkbox"},OAt={__name:"TemplateTakenCorners",props:{isFemale:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},takenCornersFilters:{type:Array,default:()=>[]}},emits:["change-filters-selected","update:filters"],setup(e,{expose:r,emit:i}){const B=e,D=t.ref(!1),c=t.ref([]),m=t.computed(()=>B.isExpansionMode?"Cobradores filtrados:":"Cobradores con los filtros seleccionados"),a=t.computed(()=>c.value.reduce((o,s)=>s.isSelected?o+1:o,0));t.watch(()=>B.takenCornersFilters,o=>{c.value=o.map(s=>{const u={...s};return(s.isSelected===void 0||s.isSelected===null)&&(u.isSelected=!0),u})},{immediate:!0,deep:!0}),t.watch(a,o=>{D.value=o===c.value.length,i("change-filters-selected",o),i("update:filters",c.value)},{immediate:!0});function v(o){return`https://az755631.vo.msecnd.net/flags/${o}.jpg`}function f(o){return`https://az755631.vo.msecnd.net/players-profile/${o}.png`}function n(o){let s=!1;return o.split(" ").reduce((u,d)=>(s||(d.length>3?(u=d,s=!0):u+=`${d} `),u),"").trim()}function y(o){return`${n(o.last_name)}, ${o.first_name.trim()}`}function _(o){return B.isFemale?KW.get(o.positions[0]).replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):KW.get(o.positions[0])}function p(o){o?c.value.forEach(s=>{s.isSelected=!0}):c.value.forEach((s,u)=>{s.isSelected=u===0})}function l(){c.value.forEach(o=>{o.isSelected=!0})}return r({clearFilters:l}),(o,s)=>(t.openBlock(),t.createElementBlock("div",_At,[t.createElementVNode("div",bAt,[t.createElementVNode("div",{class:"template-taken-corners__header__text",style:t.normalizeStyle({opacity:e.isExpansionMode?"0.6":1,"font-size":e.isExpansionMode?"12px":"14px"})},t.toDisplayString(m.value),5),t.createElementVNode("div",xAt,[t.createVNode(t.unref(Is),{"model-value":D.value,label:"Seleccionar todos","onUpdate:modelValue":p},null,8,["model-value"])])]),t.createElementVNode("div",wAt,[t.createElementVNode("div",kAt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,u=>(t.openBlock(),t.createElementBlock("div",{key:u.player_id,class:"template-taken-corners__body__players__player"},[t.createElementVNode("div",CAt,t.toDisplayString(u.jersey),1),t.createElementVNode("div",SAt,[t.createElementVNode("div",TAt,[t.createElementVNode("img",{src:f(u.player_id),alt:"player photo",width:"36",height:"36"},null,8,EAt)])]),t.createElementVNode("div",AAt,[t.createElementVNode("div",MAt,t.toDisplayString(y(u)),1),t.createElementVNode("div",IAt,[t.createElementVNode("div",PAt,[t.createElementVNode("img",{src:v(u.nationality_id),alt:"country flag"},null,8,BAt)]),t.createElementVNode("div",NAt,t.toDisplayString(_(u)),1)])]),t.createElementVNode("div",zAt,[t.createVNode(t.unref(Is),{modelValue:u.isSelected,"onUpdate:modelValue":d=>u.isSelected=d,"avoid-interaction":a.value===1&&u.isSelected},null,8,["modelValue","onUpdate:modelValue","avoid-interaction"])])]))),128))])])]))}},FAt=ml(OAt,[["__scopeId","data-v-2d59e1a2"]]),UE={cornerType:"left",left:[{title:"Comba hacia afuera",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-afuera-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[120]},{title:"Comba hacia adentro",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-adentro-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[126]},{title:"Raso al área",imgSrc:"https://golstatsimages.blob.core.windows.net/content/raz-area-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[327]},{title:"En corto",imgSrc:"https://golstatsimages.blob.core.windows.net/content/en-corto-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[133]}],right:[{title:"Comba hacia afuera",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-afuera-derecha.png",howMany:0,isSelected:!0,categoriesIds:[134]},{title:"Comba hacia adentro",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-adentro-derecha.png",howMany:0,isSelected:!0,categoriesIds:[140]},{title:"Raso al área",imgSrc:"https://golstatsimages.blob.core.windows.net/content/raz-area-derecha.png",howMany:0,isSelected:!0,categoriesIds:[146]},{title:"En corto",imgSrc:"https://golstatsimages.blob.core.windows.net/content/en-corto-derecha.png",howMany:0,isSelected:!0,categoriesIds:[147]}]},GE=e=>(t.pushScopeId("data-v-b7e3b8e0"),e=e(),t.popScopeId(),e),LAt={class:"template-how-was-corner"},DAt={class:"template-how-was-corner__header"},RAt=GE(()=>t.createElementVNode("div",{class:"template-how-was-corner__header__zone"},"ZONA:",-1)),VAt={class:"template-how-was-corner__header__radio-input"},$At={class:"template-how-was-corner__header__radio-input__radio"},jAt=GE(()=>t.createElementVNode("label",{for:"left"},"Por izquierda",-1)),UAt={class:"template-how-was-corner__header__radio-input"},GAt={class:"template-how-was-corner__header__radio-input__radio"},HAt=GE(()=>t.createElementVNode("label",{for:"right"},"Por derecha",-1)),WAt=["onClick"],qAt={class:"template-how-was-corner__content__corner-type__img"},YAt=["src","alt"],XAt={class:"template-how-was-corner__content__corner-type__info"},ZAt={class:"template-how-was-corner__content__corner-type__info__title"},JAt={__name:"TemplateHowWasCorner",props:{howWasCornerFilters:{type:Object,default:()=>UE},isExpansionMode:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(e,{emit:r}){const i=e,B=t.ref("left"),D=t.computed(()=>i.howWasCornerFilters[i.howWasCornerFilters.cornerType]),c=t.computed(()=>D.value.filter(a=>a.isSelected).length);t.watch(()=>B.value,a=>{i.howWasCornerFilters.cornerType=a}),t.watch(()=>i.howWasCornerFilters,a=>{r("change-filters-selected",i.howWasCornerFilters[a.cornerType].reduce((v,f)=>f.isSelected?v+1:v,0)),B.value=a.cornerType,r("update:filters",a)},{deep:!0,immediate:!0});function m(a){a.isSelected&&c.value===1||(a.isSelected=!a.isSelected)}return(a,v)=>(t.openBlock(),t.createElementBlock("div",LAt,[t.createElementVNode("div",DAt,[RAt,t.createElementVNode("div",VAt,[t.createElementVNode("div",$At,[t.withDirectives(t.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":v[0]||(v[0]=f=>B.value=f)},null,512),[[t.vModelRadio,B.value]]),jAt])]),t.createElementVNode("div",UAt,[t.createElementVNode("div",GAt,[t.withDirectives(t.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":v[1]||(v[1]=f=>B.value=f)},null,512),[[t.vModelRadio,B.value]]),HAt])])]),t.createElementVNode("div",{class:t.normalizeClass(["template-how-was-corner__content",{"is-expansion-mode":e.isExpansionMode}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,(f,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(["template-how-was-corner__content__corner-type",{"is-selected":f.isSelected}]),onClick:y=>m(f)},[t.createElementVNode("div",qAt,[t.createElementVNode("img",{src:f.imgSrc,alt:f.title},null,8,YAt)]),t.createElementVNode("div",XAt,[t.createElementVNode("div",ZAt,t.toDisplayString(f.title),1)])],10,WAt))),128))],2)]))}},KAt=ml(JAt,[["__scopeId","data-v-b7e3b8e0"]]),E_=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],f0=e=>(t.pushScopeId("data-v-378bf7e2"),e=e(),t.popScopeId(),e),QAt={class:"template-zone"},eMt={class:"controls-zone-container"},tMt={class:"controls-zone-container-title-checkcon"},aMt={class:"controls-zone-container-title-checkcon-check"},nMt={class:"gsc-field-img-container"},rMt={width:"100%",height:"177",viewBox:"0 0 380 177",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iMt=["fill"],oMt=["fill"],sMt=["fill"],lMt=["fill"],cMt=["fill"],dMt=["fill"],uMt=["fill"],hMt=["fill"],pMt=["fill"],fMt=["fill"],mMt=["fill"],gMt=["fill"],yMt=["fill"],vMt=["fill"],_Mt=["fill"],bMt=["fill"],xMt=["fill"],wMt=["fill"],kMt=["fill"],CMt=["fill"],SMt=["fill"],TMt=["fill"],EMt=["fill"],AMt=["fill"],MMt=["fill"],IMt=["fill"],PMt=["fill"],BMt=["fill"],NMt=["fill"],zMt=["fill"],OMt=["fill"],FMt=["fill"],LMt=["fill"],DMt=["fill"],RMt=["fill"],VMt=f0(()=>t.createElementVNode("rect",{x:"91.6",y:"0.6",width:"196.8",height:"87.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),$Mt=f0(()=>t.createElementVNode("rect",{x:"137.6",y:"0.782404",width:"104.8",height:"28.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),jMt=["id"],UMt=f0(()=>t.createElementVNode("rect",{width:"197.746",height:"24.6043",transform:"matrix(1 0 0 -1 91 113)",fill:"#D9D9D9"},null,-1)),GMt=[UMt],HMt=["mask"],WMt=f0(()=>t.createElementVNode("circle",{cx:"185.329",cy:"56.5046",r:"52.6152",stroke:"#DFE3E2","stroke-width":"1.38817"},null,-1)),qMt=[WMt],YMt=f0(()=>t.createElementVNode("circle",{cx:"190.278",cy:"66.2782",r:"2.27817",fill:"white"},null,-1)),XMt=f0(()=>t.createElementVNode("rect",{x:"0.7",y:"0.7",width:"378.6",height:"175.6",stroke:"#DFE3E2","stroke-width":"1.4"},null,-1)),ZMt={class:"template-zone__total-corners"},JMt=f0(()=>t.createElementVNode("div",{class:"template-zone__total-corners__text"}," Tiros de esquina cobrados a las zonas filtradas ",-1)),KMt=f0(()=>t.createElementVNode("div",{class:"template-zone__total-corners__value"},"10",-1)),QMt=[JMt,KMt],eIt={__name:"TemplateZone",props:{zoneFilters:{type:Array,default:()=>[...E_]},widthContainer:{type:Number,default:1280},show:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(e,{expose:r,emit:i}){const B=e,D=t.ref(!0),c=t.ref([]),m=t.computed(()=>new Date().getTime());t.watch(c,n=>{D.value=n.length===35}),t.watch(()=>B.zoneFilters,n=>{c.value=n},{immediate:!0,deep:!0}),t.watch(()=>c.value,n=>{i("update:filters",n),i("change-filters-selected",n.length)},{deep:!0});function a(n){n?(c.value=E_,D.value=!0):(c.value=[],D.value=!1)}function v(n){c.value.includes(n)?c.value=c.value.filter(y=>y!==n):c.value.push(n),D.value=c.value.length===35}function f(){c.value=[...E_]}return r({clearFilters:f}),(n,y)=>(t.openBlock(),t.createElementBlock("div",QAt,[t.createElementVNode("div",eMt,[t.createElementVNode("div",{class:"controls-zone-container-title",style:t.normalizeStyle(e.widthContainer<=440?"font-size: 11px;":"#2e3b46")}," ¿A donde fue el balón?: ",4),t.createElementVNode("div",tMt,[t.createElementVNode("div",{class:"controls-zone-container-title-checkcon-label",style:t.normalizeStyle(e.widthContainer<=440?"font-size: 12px;":"#2e3b46")}," Todas las zonas ",4),t.createElementVNode("div",aMt,[t.createVNode(t.unref(Is),{label:"",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":D.value,"onUpdate:modelValue":a},null,8,["model-value"])])])]),t.createElementVNode("div",nMt,[(t.openBlock(),t.createElementBlock("svg",rMt,[t.createElementVNode("rect",{onClick:y[0]||(y[0]=_=>v(1)),class:"sector-field",x:"0.347042",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(1)?"#FFFF0030":"#2e3b46"},null,8,iMt),t.createElementVNode("rect",{onClick:y[1]||(y[1]=_=>v(9)),class:"sector-field",x:"288.347",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(9)?"#FFFF0030":"#2e3b46"},null,8,oMt),t.createElementVNode("rect",{onClick:y[2]||(y[2]=_=>v(17)),class:"sector-field",x:"0.347042",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(17)?"#FFFF0030":"#2e3b46"},null,8,sMt),t.createElementVNode("rect",{onClick:y[3]||(y[3]=_=>v(25)),class:"sector-field",x:"288.347",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(25)?"#FFFF0030":"#2e3b46"},null,8,lMt),t.createElementVNode("rect",{onClick:y[4]||(y[4]=_=>v(26)),class:"sector-field",x:"0.347042",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(26)?"#FFFF0030":"#2e3b46"},null,8,cMt),t.createElementVNode("rect",{onClick:y[5]||(y[5]=_=>v(27)),class:"sector-field",x:"91.347",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(27)?"#FFFF0030":"#2e3b46"},null,8,dMt),t.createElementVNode("rect",{onClick:y[6]||(y[6]=_=>v(28)),class:"sector-field",x:"157.015",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(28)?"#FFFF0030":"#2e3b46"},null,8,uMt),t.createElementVNode("rect",{onClick:y[7]||(y[7]=_=>v(29)),class:"sector-field",x:"222.679",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(29)?"#FFFF0030":"#2e3b46"},null,8,hMt),t.createElementVNode("rect",{onClick:y[8]||(y[8]=_=>v(30)),class:"sector-field",x:"288.347",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(30)?"#FFFF0030":"#2e3b46"},null,8,pMt),t.createElementVNode("rect",{onClick:y[9]||(y[9]=_=>v(31)),class:"sector-field",x:"0.347042",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(31)?"#FFFF0030":"#2e3b46"},null,8,fMt),t.createElementVNode("rect",{onClick:y[10]||(y[10]=_=>v(32)),class:"sector-field",x:"91.347",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(32)?"#FFFF0030":"#2e3b46"},null,8,mMt),t.createElementVNode("rect",{onClick:y[11]||(y[11]=_=>v(33)),class:"sector-field",x:"157.015",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(33)?"#FFFF0030":"#2e3b46"},null,8,gMt),t.createElementVNode("rect",{onClick:y[12]||(y[12]=_=>v(34)),class:"sector-field",x:"222.679",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(34)?"#FFFF0030":"#2e3b46"},null,8,yMt),t.createElementVNode("rect",{onClick:y[13]||(y[13]=_=>v(35)),class:"sector-field",x:"288.347",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(35)?"#FFFF0030":"#2e3b46"},null,8,vMt),t.createElementVNode("rect",{onClick:y[14]||(y[14]=_=>v(2)),class:"sector-field",x:"91.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(2)?"#FFFF0030":"#2e3b46"},null,8,_Mt),t.createElementVNode("rect",{onClick:y[15]||(y[15]=_=>v(3)),class:"sector-field",x:"114.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(3)?"#FFFF0030":"#2e3b46"},null,8,bMt),t.createElementVNode("rect",{onClick:y[16]||(y[16]=_=>v(4)),class:"sector-field",x:"137.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(4)?"#FFFF0030":"#2e3b46"},null,8,xMt),t.createElementVNode("rect",{onClick:y[17]||(y[17]=_=>v(5)),class:"sector-field",x:"172.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(5)?"#FFFF0030":"#2e3b46"},null,8,wMt),t.createElementVNode("rect",{onClick:y[18]||(y[18]=_=>v(6)),class:"sector-field",x:"207.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(6)?"#FFFF0030":"#2e3b46"},null,8,kMt),t.createElementVNode("rect",{onClick:y[19]||(y[19]=_=>v(7)),class:"sector-field",x:"242.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(7)?"#FFFF0030":"#2e3b46"},null,8,CMt),t.createElementVNode("rect",{onClick:y[20]||(y[20]=_=>v(8)),class:"sector-field",x:"265.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(8)?"#FFFF0030":"#2e3b46"},null,8,SMt),t.createElementVNode("rect",{onClick:y[21]||(y[21]=_=>v(10)),class:"sector-field",x:"91.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(10)?"#FFFF0030":"#2e3b46"},null,8,TMt),t.createElementVNode("rect",{onClick:y[22]||(y[22]=_=>v(11)),class:"sector-field",x:"114.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(11)?"#FFFF0030":"#2e3b46"},null,8,EMt),t.createElementVNode("rect",{onClick:y[23]||(y[23]=_=>v(12)),class:"sector-field",x:"137.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(12)?"#FFFF0030":"#2e3b46"},null,8,AMt),t.createElementVNode("rect",{onClick:y[24]||(y[24]=_=>v(13)),class:"sector-field",x:"172.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(13)?"#FFFF0030":"#2e3b46"},null,8,MMt),t.createElementVNode("rect",{onClick:y[25]||(y[25]=_=>v(14)),class:"sector-field",x:"207.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(14)?"#FFFF0030":"#2e3b46"},null,8,IMt),t.createElementVNode("rect",{onClick:y[26]||(y[26]=_=>v(15)),class:"sector-field",x:"242.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(15)?"#FFFF0030":"#2e3b46"},null,8,PMt),t.createElementVNode("rect",{onClick:y[27]||(y[27]=_=>v(16)),class:"sector-field",x:"265.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(16)?"#FFFF0030":"#2e3b46"},null,8,BMt),t.createElementVNode("rect",{onClick:y[28]||(y[28]=_=>v(18)),class:"sector-field",x:"91.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(18)?"#FFFF0030":"#2e3b46"},null,8,NMt),t.createElementVNode("rect",{onClick:y[29]||(y[29]=_=>v(19)),class:"sector-field",x:"114.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(19)?"#FFFF0030":"#2e3b46"},null,8,zMt),t.createElementVNode("rect",{onClick:y[30]||(y[30]=_=>v(20)),class:"sector-field",x:"137.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(20)?"#FFFF0030":"#2e3b46"},null,8,OMt),t.createElementVNode("rect",{onClick:y[31]||(y[31]=_=>v(21)),class:"sector-field",x:"172.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(21)?"#FFFF0030":"#2e3b46"},null,8,FMt),t.createElementVNode("rect",{onClick:y[32]||(y[32]=_=>v(22)),class:"sector-field",x:"207.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(22)?"#FFFF0030":"#2e3b46"},null,8,LMt),t.createElementVNode("rect",{onClick:y[33]||(y[33]=_=>v(23)),class:"sector-field",x:"242.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(23)?"#FFFF0030":"#2e3b46"},null,8,DMt),t.createElementVNode("rect",{onClick:y[34]||(y[34]=_=>v(24)),class:"sector-field",x:"265.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:c.value.includes(24)?"#FFFF0030":"#2e3b46"},null,8,RMt),VMt,$Mt,t.createElementVNode("mask",{id:m.value,style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"91",y:"88",width:"198",height:"25"},GMt,8,jMt),t.createElementVNode("g",{mask:`url(#${m.value})`},qMt,8,HMt),YMt,XMt]))]),t.withDirectives(t.createElementVNode("div",ZMt,QMt,512),[[t.vShow,!1]])]))}},tIt=ml(eIt,[["__scopeId","data-v-378bf7e2"]]),HE=[{text:"Rematado con destino a portería",isSelected:!0,child:[{text:"Fue gol",isSelected:!0,categoryIds:[583,585,587,589]},{text:"No fue gol",isSelected:!0,categoryIds:[584,586,588,590]}]},{text:"Rematado sin destino a portería",isSelected:!0,categoryIds:[122,128,136,142]},{text:"Ganados por portero rival",isSelected:!0,categoryIds:[123,129,137,143]},{text:"Ganados por jugador rival",isSelected:!0,categoryIds:[124,130,138,144]},{text:"Sin destino",isSelected:!0,categoryIds:[125,131,139,145]}],aIt={class:"what-happened"},nIt={class:"what-happened__all"},rIt={class:"what-happened__filters"},iIt={key:0,class:"what-happened__filters__filter__composed"},oIt={class:"what-happened__filters__filter__composed__main"},sIt={key:1,class:"what-happened__filters__filter__single"},lIt={__name:"TemplateWhatHappened",props:{isFemale:{type:Boolean,default:!1},whatHappenedFilters:{type:Array,default:()=>[...HE]}},emits:["change-filters-selected","update:filters"],setup(e,{expose:r,emit:i}){const B=e,D=t.computed(()=>B.whatHappenedFilters.reduce((p,l)=>(l.child?l.child.forEach(o=>{o.isSelected&&p++}):l.isSelected&&p++,p),0)),c=t.computed(()=>B.whatHappenedFilters.reduce((p,l)=>(l.child?p+=l.child.length:p++,p),0)),m=t.computed(()=>D.value===c.value),a=t.computed(()=>D.value===1);t.watch(()=>B.whatHappenedFilters,p=>{i("change-filters-selected",D.value),i("update:filters",p)},{deep:!0,immediate:!0});function v(p){B.whatHappenedFilters.forEach(l=>{p?(l.isSelected=p,l.child&&l.child.forEach(o=>{o.isSelected=p})):l.child?(l.isSelected=!0,l.child.forEach(o=>{o.isSelected=!0})):l.isSelected=!1})}function f(p,l){l.isSelected=p,l.child.forEach(o=>{o.isSelected=p})}function n(p,l,o){o.isSelected=p,l.isSelected=l.child.every(s=>s.isSelected)}function y(p,l){l.isSelected=p}function _(){B.whatHappenedFilters.forEach(p=>{p.child?p.child.forEach(l=>{l.isSelected=!0}):p.isSelected=!0})}return r({onResetFilters:_}),(p,l)=>(t.openBlock(),t.createElementBlock("div",aIt,[t.createElementVNode("div",nIt,[t.createVNode(t.unref(Is),{label:"Todos","model-value":m.value,"box-position":"right","onUpdate:modelValue":v},null,8,["model-value"])]),t.createElementVNode("div",rIt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.whatHappenedFilters,(o,s)=>(t.openBlock(),t.createElementBlock("div",{key:s,class:"what-happened__filters__filter"},[o.child?(t.openBlock(),t.createElementBlock("div",iIt,[t.createElementVNode("div",oIt,[t.createVNode(t.unref(Is),{"model-value":o.isSelected,label:e.isFemale?o.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):o.text,"avoid-interaction":a.value&&o.isSelected,"onUpdate:modelValue":u=>f(u,o)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.child,(u,d)=>(t.openBlock(),t.createElementBlock("div",{key:`c${d}`,class:"what-happened__filters__filter__composed__child"},[t.createVNode(t.unref(Is),{"model-value":u.isSelected,label:e.isFemale?u.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):u.text,"avoid-interaction":a.value&&u.isSelected,"onUpdate:modelValue":h=>n(h,o,u)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))),128))])):(t.openBlock(),t.createElementBlock("div",sIt,[t.createVNode(t.unref(Is),{"model-value":o.isSelected,label:e.isFemale?o.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):o.text,"avoid-interaction":a.value&&o.isSelected,"onUpdate:modelValue":u=>y(u,o)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))]))),128))])]))}},cIt=ml(lIt,[["__scopeId","data-v-8f375a1a"]]),WE={isMoment:!1,isMomentOnly:!1,results:{final:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}],moment:[{name:"Iba ganando",value:1,isSelected:!0},{name:"Iba perdiendo",value:2,isSelected:!0},{name:"Iba empatando",value:3,isSelected:!0}]}},QW=e=>(t.pushScopeId("data-v-ee3b28d3"),e=e(),t.popScopeId(),e),dIt={class:"template-results"},uIt={class:"template-results__type-switch"},hIt=QW(()=>t.createElementVNode("div",{class:"template-results__type-switch__label"},"Final",-1)),pIt=QW(()=>t.createElementVNode("div",{class:"template-results__type-switch__label"},"Al momento",-1)),fIt={class:"template-results__info"},mIt={key:0,class:"template-results__group"},gIt={key:1,class:"template-results__group"},yIt={__name:"TemplateResultsByTime",props:{resultsFilters:{type:Object,default:()=>({...WE})}},emits:["update:resultsFilters","change-filters-selected","update:filters"],setup(e,{expose:r,emit:i}){const B=e,D=t.ref(null),c=t.computed(()=>{const v=D.value.isMoment?D.value.results.moment.filter(f=>f.isSelected).length:D.value.results.final.filter(f=>f.isSelected).length;return i("change-filters-selected",v),v}),m=t.computed(()=>D.value.isMoment?"Resultado al momento del cobro":"Resultado al final del partido");t.watch(()=>B.resultsFilters,v=>{D.value===null&&(D.value={...v})},{deep:!0,immediate:!0}),t.watch(D,v=>{i("update:filters",v)},{deep:!0,immediate:!0});function a(){D.value.isMoment=!1,D.value.results.moment.forEach(v=>{v.isSelected=!0}),D.value.results.final.forEach(v=>{v.isSelected=!0})}return r({removeFilters:a}),(v,f)=>(t.openBlock(),t.createElementBlock("div",dIt,[t.withDirectives(t.createElementVNode("div",uIt,[hIt,t.createVNode(S_,{modelValue:D.value.isMoment,"onUpdate:modelValue":f[0]||(f[0]=n=>D.value.isMoment=n)},null,8,["modelValue"]),pIt],512),[[t.vShow,!D.value.isMomentOnly]]),t.createElementVNode("div",fIt,t.toDisplayString(m.value),1),D.value.isMoment?(t.openBlock(),t.createElementBlock("div",mIt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.results.moment,(n,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:"template-results__result"},[t.createVNode(t.unref(Is),{modelValue:n.isSelected,"onUpdate:modelValue":_=>n.isSelected=_,label:n.name,"avoid-interaction":c.value===1&&n.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))])):(t.openBlock(),t.createElementBlock("div",gIt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value.results.final,(n,y)=>(t.openBlock(),t.createElementBlock("div",{key:y,class:"template-results__result"},[t.createVNode(t.unref(Is),{modelValue:n.isSelected,"onUpdate:modelValue":_=>n.isSelected=_,label:n.name,"avoid-interaction":c.value===1&&n.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))]))}},vIt=ml(yIt,[["__scopeId","data-v-ee3b28d3"]]),_It={key:0,class:"productivity__header__text"},bIt={key:1,class:"productivity__header__checkbox"},xIt={class:"templates__body"},wIt={key:0,class:"templates-plays"},kIt={key:1,class:"templates-productivity"},CIt={key:2,class:"template-field"},SIt={key:3,class:"template-details"},TIt={key:4,class:"template-personal-data"},EIt={key:5,class:"template-leagues"},AIt={key:6,class:"template-plays"},MIt={key:7,class:"template-plays"},IIt={key:8,class:"template-universe"},PIt={key:9,class:"template-distance"},BIt={key:10,class:"template-results"},NIt={key:11,class:"template-results-by-type"},zIt={key:12,class:"template-games"},OIt={key:13,class:"template-taken-corners"},FIt={key:14,class:"template-videos"},LIt={key:15,class:"template-how-was-corner"},DIt={key:16,class:"template-zone"},RIt={key:17,class:"template-what-happened"},VIt={key:1,class:"templates__footer"},$It={class:"templates__footer__button"},jIt={class:"templates__footer__button"},UIt={__name:"GSC-FilterTemplates",props:{filterType:{type:String,default:""},width:{type:String,default:"100%"},maxWidth:{type:String,default:"100%"},productivityMaxCategories:{type:Number,default:5},productivityCategories:{type:[Object,null],default:()=>null},playsCategories:{type:[Object,null],default:()=>null},fieldAreas:{type:[Array,null],default:()=>[]},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},isPlayingAsHidden:{type:Boolean,default:!1},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}]},isFemale:{type:Boolean,default:!1},tournaments:{type:Array,default:()=>[]},playsGolstatsCategories:{type:Array,default:()=>[]},universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,r)=>r+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},zoneFilters:{type:Array,default:()=>[]},whatHappenedFilters:{type:Array,default:()=>[]},personalDataFilters:{type:Object,default:()=>({})},distanceFilters:{type:Object,default:()=>({minValue:5,maxValue:30,minLimit:5,maxLimit:30})},resultsFilters:{type:Object,default:()=>({})},resultsByTimeFilters:{type:Object,default:()=>({})},gamesFilters:{type:Array,default:()=>[]},takenCornersFilters:{type:Array,default:()=>[]},howWasCornerFilters:{type:Object,default:()=>({})},backgroundColor:{type:String,default:"#2E3B46"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0)"},borderWidth:{type:String,default:"1px"},boxShadow:{type:String,default:"0 14px 28px 0 rgba(0, 0, 0, 0.25)"},padding:{type:String,default:"20px"},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:String,default:"1px"},textColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"'Poppins-Regular'"},isExpansionMode:{type:Boolean,default:!0},isFooterVisible:{type:Boolean,default:!1},isFooterCancelOnly:{type:Boolean,default:!1},isScouting:{type:Boolean,default:!1},fieldComponentProps:{type:Object,default:()=>{}},season:{type:Object,default:()=>({})},token:{type:String,default:""},modalHeight:{type:String,default:"fit-content"}},emits:["change-categories-selected","change-filters-selected","change-universe-filters","change-field-areas","apply","click-cancel","update:filters","total-filters"],setup(e,{expose:r,emit:i}){const B=e,D=t.ref(null),c=t.ref(!1),m=t.ref({playingAs:B.playingAs,gameSections:B.gameSections}),a=t.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),v=t.ref(null),f=t.ref(null),n=t.ref(null),y=t.ref(null),_=t.ref(null),p=t.computed(()=>({"--width":B.width,"--max-width":B.maxWidth,"--background-color":B.backgroundColor,"--border-radius":B.borderRadius,"--border-color":B.borderColor,"--border-width":B.borderWidth,"--box-shadow":B.boxShadow,"--padding":B.filterType!==er.VIDEOS?B.isExpansionMode?"10px 0":B.padding:"0","--footer-border-color":B.footerBorderColor,"--footer-border-width":B.footerBorderWidth,"--text-color":B.textColor})),l=t.computed(()=>{const W=[];return B.productivityCategories&&Object.values(B.productivityCategories).forEach(Q=>{Q.categories&&Q.categories.forEach(X=>{W.push(X)})}),W}),o=t.computed(()=>{const W=[];return B.playsCategories&&Object.values(B.playsCategories).forEach(Q=>{Q.categories&&Q.categories.forEach(X=>{W.push(X)})}),W}),s=t.computed(()=>{const W=l.value.filter(Q=>Q.isSelected);return h(W),B.filterType===er.PRODUCTIVITY&&i("change-categories-selected",W.length),W.length}),u=t.computed(()=>s.value>=B.productivityMaxCategories),d=t.computed(()=>B.isPlayingAsHidden?B.gameSections:B.playingAs.concat(B.gameSections));t.watch(m,W=>{B.filterType===er.DETAILS&&i("update:filters",W)},{immediate:!0,deep:!0}),t.watch(()=>d.value,W=>{if(B.filterType===er.DETAILS){const Q=W.filter(X=>X.isSelected);i("change-filters-selected",Q.length)}},{immediate:!0,deep:!0}),t.watch(()=>B.playsGolstatsCategories,W=>{if(B.filterType===er.PLAYS_TYPES||B.filterType===er.GOLSTATS){const Q=W.filter(X=>X.isSelected);i("change-filters-selected",Q.length)}},{immediate:!0}),t.watch(()=>B.fieldAreas,W=>{B.filterType===er.FIELD&&i("change-filters-selected",W.length)}),t.watch(o,()=>{B.filterType===er.PLAYS&&A()},{immediate:!0,deep:!0}),t.watch(l,()=>{B.filterType===er.PRODUCTIVITY&&E()},{immediate:!0,deep:!0}),t.watch(()=>B.resultsFilters,W=>{B.filterType===er.RESULTS&&i("change-filters-selected",W.results.filter(Q=>Q.isSelected).length)},{immediate:!0,deep:!0});function h(W){setTimeout(()=>{W.sort((Q,X)=>Q.priority-X.priority),W.forEach((Q,X)=>{Q.priority=X+1})},10)}function g(W=null){b()}function b(){B.filterType===er.PRODUCTIVITY?l.value.forEach(W=>{W.isSelected=!1}):B.filterType===er.PLAYS?(o.value.forEach(W=>{W.isSelected=!0}),c.value=!0):B.filterType===er.FIELD?i("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):B.filterType===er.DETAILS?(B.playingAs.forEach(W=>{W.isSelected=!0}),B.gameSections.forEach(W=>{W.isSelected=!0})):B.filterType===er.TOURNAMENTS?(B.tournaments.forEach(W=>{W.isSelected=!0}),i("change-filters-selected",0)):B.filterType===er.PLAYS_TYPES?B.playsGolstatsCategories.forEach(W=>{W.isSelected=!0}):B.filterType===er.GOLSTATS?B.playsGolstatsCategories.forEach(W=>{W.isSelected=!1}):B.filterType===er.UNIVERSE?v.value&&v.value.resetFilters():B.filterType===er.PERSONAL_DATA?(D.value&&D.value.onClearFilters(hd.All),i("change-personal-data-filters",{})):B.filterType===er.DISTANCE?i("update:filters",{minValue:B.distanceFilters.minLimit,maxValue:B.distanceFilters.maxLimit}):B.filterType===er.RESULTS?i("update:filters",{results:B.resultsFilters.results.map(W=>(W.isSelected=!0,W))}):B.filterType===er.RESULTS_BY_TIME?_.value&&_.value.removeFilters():B.filterType===er.GAMES?B.gamesFilters.forEach(W=>{W.isSelected=!0}):B.filterType===er.TAKEN_CORNERS?f.value.clearFilters():B.filterType===er.HOW_WAS_CORNER?(B.howWasCornerFilters.left.forEach(W=>{W.isSelected=!0}),B.howWasCornerFilters.right.forEach(W=>{W.isSelected=!0})):B.filterType===er.ZONE?n.value&&n.value.clearFilters():B.filterType===er.WHAT_HAPPENED&&y.value&&y.value.onResetFilters()}function w(W){B.filterType===er.TOURNAMENTS&&i("change-filters-selected",W)}function x(W){B.filterType===er.UNIVERSE&&i("change-universe-filters",W)}function S(W){B.filterType===er.FIELD&&i("change-field-areas",W)}function k(W){B.filterType===er.GOLSTATS&&i("change-filters-selected",W)}function T(W){i("change-filters-selected",W)}function C(W){c.value=W,B.playsCategories.offensive.categories.forEach(Q=>{Q.isSelected=W}),B.playsCategories.defensive.categories.forEach(Q=>{Q.isSelected=W}),B.playsCategories.possession.categories.forEach(Q=>{Q.isSelected=W}),B.playsCategories.offenses.categories.forEach(Q=>{Q.isSelected=W})}function A(){let W=0;const Q={playsCategories:o.value.filter(X=>X.isSelected)};c.value=Q.playsCategories.length===o.value.length,W=Q.playsCategories.length,Object.values(a.value).forEach(X=>{X&&W++}),i("change-filters-selected",W),i("update:filters",Q)}function E(){let W=0;const Q={productivityFilters:l.value.filter(X=>X.isSelected),offensesConditions:a.value};W=Q.productivityFilters.length,Object.values(a.value).forEach(X=>{X&&W++}),i("change-filters-selected",W),i("update:filters",Q)}function M(){i("apply")}function I(){(B.filterType===er.PLAYS_TYPES||B.filterType===er.GOLSTATS)&&B.playsGolstatsCategories&&B.playsGolstatsCategories.forEach(W=>{W.isSelected=!1}),i("apply")}function N(W){i("update:filters",W)}function z(W){B.filterType===er.PERSONAL_DATA&&i("update:filters",W)}function F(W){B.filterType===er.TOURNAMENTS&&i("update:filters",W)}function R(W){(B.filterType===er.PLAYS_TYPES||B.filterType===er.GOLSTATS)&&i("update:filters",W)}function V(W){B.filterType===er.PRODUCTIVITY&&(a.value=W,E())}function $(W){B.filterType===er.DISTANCE&&i("update:filters",W)}function U(W){B.filterType===er.RESULTS&&i("update:filters",W)}function Z(W){B.filterType===er.GAMES&&(i("update:filters",W),i("change-filters-selected",W.filter(Q=>Q.isSelected).length))}const q=t.computed(()=>B.filterType===er.PLAYS?o.value.length:B.filterType===er.PRODUCTIVITY?l.value.length:B.filterType===er.FIELD?16:B.filterType===er.UNIVERSE?6:B.filterType===er.DETAILS?8:B.filterType===er.RESULTS||B.filterType===er.RESULTS_BY_TIME?3:B.filterType===er.GAMES?B.gamesFilters.length:0);return i("total-filters",q),r({clearFilters:g}),(W,Q)=>(t.openBlock(),t.createElementBlock("div",{class:"templates",style:t.normalizeStyle(p.value)},[e.filterType===t.unref(er).PRODUCTIVITY||e.filterType===t.unref(er).PLAYS?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.isExpansionMode?"productivity__header__expansion":"productivity__header")},[e.filterType===t.unref(er).PRODUCTIVITY?(t.openBlock(),t.createElementBlock("div",_It," Selecciona hasta 5 categorias en orden de importancia ")):e.filterType===t.unref(er).PLAYS?(t.openBlock(),t.createElementBlock("div",bIt,[t.createVNode(t.unref(Is),{label:"Todos los tipos de jugadas",fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":c.value,"label-color":e.textColor,"onUpdate:modelValue":C},null,8,["model-value","label-color"])])):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),t.createElementVNode("div",xIt,[e.filterType===t.unref(er).PLAYS?(t.openBlock(),t.createElementBlock("div",wIt,[t.createVNode(SSt,{"plays-categories":e.playsCategories,"is-expansion-mode":e.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).PRODUCTIVITY?(t.openBlock(),t.createElementBlock("div",kIt,[t.createVNode(J6t,{"productivity-categories":e.productivityCategories,"number-of-categories-selected":s.value,"are-max-categories-reached":u.value,"is-expansion-mode":e.isExpansionMode,"onUpdate:offensesConditions":V},null,8,["productivity-categories","number-of-categories-selected","are-max-categories-reached","is-expansion-mode"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).FIELD?(t.openBlock(),t.createElementBlock("div",CIt,[t.createVNode(t.unref(pW),t.mergeProps(e.fieldComponentProps,{"background-color":e.backgroundColor,value:e.fieldAreas,"onUpdate:modelValue":S}),null,16,["background-color","value"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).DETAILS?(t.openBlock(),t.createElementBlock("div",SIt,[t.createVNode(g8t,{"is-playing-as-hidden":e.isPlayingAsHidden,"playing-as":e.playingAs,"game-sections":e.gameSections,fontFamily:e.fontFamily},null,8,["is-playing-as-hidden","playing-as","game-sections","fontFamily"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).PERSONAL_DATA?(t.openBlock(),t.createElementBlock("div",TIt,[t.createVNode(lSt,{"is-female":e.isFemale,ref_key:"templatePersonalData",ref:D,"personal-data-filters":e.personalDataFilters,season:e.season,"is-scouting":e.isScouting,token:e.token,"onUpdate:filters":z},null,8,["is-female","personal-data-filters","season","is-scouting","token"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).TOURNAMENTS?(t.openBlock(),t.createElementBlock("div",EIt,[t.createVNode(w8t,{tournaments:e.tournaments,onChangeFiltersSelected:w,"onUpdate:filters":F},null,8,["tournaments"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).PLAYS_TYPES?(t.openBlock(),t.createElementBlock("div",AIt,[t.createVNode(ZH,{height:e.modalHeight,type:e.filterType,categories:e.playsGolstatsCategories,"onUpdate:filters":R},null,8,["height","type","categories"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).GOLSTATS?(t.openBlock(),t.createElementBlock("div",MIt,[t.createVNode(ZH,{height:e.modalHeight,type:e.filterType,categories:e.playsGolstatsCategories,onChangeFiltersSelected:k,"onUpdate:filters":R},null,8,["height","type","categories"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).UNIVERSE?(t.openBlock(),t.createElementBlock("div",IIt,[t.createVNode(mkt,{ref_key:"templateUniverse",ref:v,"universe-filters":e.universeFilters,"onUpdate:universeFilters":x},null,8,["universe-filters"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).DISTANCE?(t.openBlock(),t.createElementBlock("div",PIt,[t.createVNode(Fkt,{distance:e.distanceFilters,"onUpdate:distanceFilters":$},null,8,["distance"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).RESULTS?(t.openBlock(),t.createElementBlock("div",BIt,[t.createVNode(ASt,{ref_key:"templateResults",ref:_,"results-filters":e.resultsFilters,"onUpdate:resultsFilters":U},null,8,["results-filters"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).RESULTS_BY_TIME?(t.openBlock(),t.createElementBlock("div",NIt,[t.createVNode(vIt,{ref_key:"templateResults",ref:_,"results-filters":e.resultsByTimeFilters,onChangeFiltersSelected:T,"onUpdate:filters":N},null,8,["results-filters"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).GAMES?(t.openBlock(),t.createElementBlock("div",zIt,[t.createVNode(Ukt,{"games-filters":e.gamesFilters,"onUpdate:gamesFilters":Z},null,8,["games-filters"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).TAKEN_CORNERS?(t.openBlock(),t.createElementBlock("div",OIt,[t.createVNode(FAt,{"is-female":e.isFemale,ref_key:"templateTakenCorners",ref:f,"taken-corners-filters":e.takenCornersFilters,"is-expansion-mode":e.isExpansionMode,onChangeFiltersSelected:T,"onUpdate:filters":N},null,8,["is-female","taken-corners-filters","is-expansion-mode"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).VIDEOS?(t.openBlock(),t.createElementBlock("div",FIt,[t.createVNode(vAt,{token:e.token},null,8,["token"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).HOW_WAS_CORNER?(t.openBlock(),t.createElementBlock("div",LIt,[t.createVNode(KAt,{"how-was-corner-filters":e.howWasCornerFilters,"is-expansion-mode":e.isExpansionMode,onChangeFiltersSelected:T,"onUpdate:filters":N},null,8,["how-was-corner-filters","is-expansion-mode"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).ZONE?(t.openBlock(),t.createElementBlock("div",DIt,[t.createVNode(tIt,{ref_key:"templateZone",ref:n,"zone-filters":e.zoneFilters,onChangeFiltersSelected:T,"onUpdate:filters":N},null,8,["zone-filters"])])):t.createCommentVNode("",!0),e.filterType===t.unref(er).WHAT_HAPPENED?(t.openBlock(),t.createElementBlock("div",RIt,[t.createVNode(cIt,{"is-female":e.isFemale,ref_key:"templateWhatHappened",ref:y,"what-happened-filters":e.whatHappenedFilters,onChangeFiltersSelected:T,"onUpdate:filters":N},null,8,["is-female","what-happened-filters"])])):t.createCommentVNode("",!0)]),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",VIt,[e.isFooterCancelOnly?(t.openBlock(),t.createBlock(t.unref(xE),{key:0,"text-value":"Cancelar","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"white","background-color":"rgba(255, 255, 255, 0.06)",onClick:I})):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",$It,[t.createVNode(t.unref(xE),{"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:b})]),t.createElementVNode("div",jIt,[t.createVNode(t.unref(xE),{"text-value":"Listo","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"#cbee6b",onClick:M})])],64))])):t.createCommentVNode("",!0)],4))}},eq=ml(UIt,[["__scopeId","data-v-d28f61fa"]]),GIt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},HIt={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(e){return!Number.isNaN(e)}},modelValue:{type:Boolean,default:!1},width:{type:String,default:"fit-content"},menuWidth:{type:String,default:"fit-content"},zIndexOpen:{type:Number,default:3}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e;t.useCssVars(p=>({"321b6381":e.width,"14b0f61d":v.value,"62e0e83c":e.menuWidth}));const B=t.ref(null),D=t.ref(!1),c=t.ref(null),m=t.ref({}),a=t.computed(()=>{const p={top:"0px"};if(B.value){const l=B.value.getBoundingClientRect();p.top=`${l.height+i.menuMarginTop}px`}return p}),v=t.computed(()=>D.value?i.zIndexOpen:1);t.watch(()=>i.modelValue,p=>{p!==D.value&&(D.value=p)},{immediate:!0}),t.watch(D,p=>{p||setTimeout(()=>{m.value["--translate-x"]="0px"},500)});function f(p){const l=window.innerWidth,o=p.boundingClientRect.x,s=p.boundingClientRect.x+p.boundingClientRect.width,u=o<=0?Math.abs(o)+4:s>=l?l-(s+10):0;m.value["--translate-x"]=`${u}px`}function n(){new IntersectionObserver(p=>{p[0].intersectionRatio>0&&f(p[0])}).observe(c.value)}function y(){D.value=!D.value,r("update:modelValue",D.value)}function _(){D.value=!1,r("update:modelValue",D.value)}return t.onMounted(()=>{t.nextTick(()=>{n()})}),(p,l)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[D.value?(t.openBlock(),t.createElementBlock("div",{key:0,id:"menu-overlay",onClick:_})):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"menu-container",style:t.normalizeStyle(m.value)},[t.createElementVNode("div",{ref_key:"trigger",ref:B,class:"menu-container__trigger",onClick:y},[t.renderSlot(p.$slots,"trigger",{},void 0,!0)],512),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref_key:"menu",ref:c,class:"menu-container__menu",style:t.normalizeStyle(a.value)},[t.renderSlot(p.$slots,"menu",{},void 0,!0)],4),[[t.vShow,D.value]])]),_:3})],4)],64))}},WIt=GIt(HIt,[["__scopeId","data-v-2f344053"]]),T1=e=>(t.pushScopeId("data-v-975b3874"),e=e(),t.popScopeId(),e),qIt={class:"button__icon"},YIt={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},XIt=["stroke"],ZIt=["stroke"],JIt=["stroke"],KIt={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},QIt=["stroke"],ePt=["stroke"],tPt=["fill"],aPt={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nPt=["fill"],rPt={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},iPt=["stroke"],oPt=["stroke"],sPt=["stroke"],lPt=["stroke"],cPt=["stroke"],dPt={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uPt=T1(()=>t.createElementVNode("path",{d:"M1.85113 13.0897C1.9303 13.2137 2.01739 13.3404 2.10447 13.4617C2.30239 13.7361 2.51878 14 2.74837 14.2507C3.74589 15.3298 5.01785 16.1504 6.41385 16.5963C6.4719 16.6148 6.52996 16.6332 6.58802 16.6491C6.60385 16.6544 6.61704 16.657 6.63024 16.6623C6.70413 16.6834 6.77538 16.7045 6.84927 16.723C7.54859 16.9077 8.27429 17 9.00264 17C9.73098 17 10.4593 16.9077 11.1586 16.7256C11.3064 16.686 11.4542 16.6438 11.5967 16.5989C11.9187 16.496 12.2353 16.372 12.5414 16.2322C12.7895 16.1187 13.0296 15.9921 13.2645 15.8549C14.2963 15.2533 15.2041 14.438 15.9034 13.467C15.9668 13.3799 16.0301 13.2876 16.0908 13.1926C16.1119 13.1609 16.133 13.1293 16.1541 13.095C16.9432 11.8681 17.405 10.4486 17.4868 8.98945C17.4947 8.84169 17.5 8.69393 17.5 8.54618C17.5 8.53034 17.5 8.51715 17.5 8.50132C17.5 6.90765 17.0646 5.37995 16.2386 4.04222C16.1198 3.85224 15.9932 3.66491 15.8612 3.48021C15.8586 3.47493 15.8559 3.4723 15.8533 3.46702C15.8084 3.40633 15.7636 3.34565 15.7161 3.2876C15.6712 3.22955 15.6237 3.1715 15.5789 3.1161C14.6526 1.98417 13.4466 1.10818 12.0928 0.580475C11.9556 0.525066 11.8105 0.474934 11.668 0.42744C10.8103 0.145118 9.91307 0 9.00264 0C8.09221 0 7.19497 0.14248 6.33732 0.424802C6.19482 0.472295 6.04967 0.525066 5.91245 0.577836C4.55604 1.10554 3.35005 1.98417 2.42378 3.11346C2.37364 3.17678 2.32086 3.24011 2.27072 3.30607C2.2285 3.35884 2.18892 3.41161 2.14933 3.46702C2.14933 3.46702 2.14933 3.46966 2.14669 3.4723C2.14669 3.47493 2.14405 3.47757 2.14142 3.48021C1.43418 4.44591 0.94598 5.53034 0.69792 6.68074C0.660975 6.85224 0.626669 7.02639 0.600279 7.20053C0.571251 7.39578 0.547501 7.59103 0.531667 7.78892C0.521111 7.91293 0.513195 8.03694 0.507917 8.16095C0.502639 8.27441 0.5 8.38786 0.5 8.50132V8.61214C0.502639 8.73615 0.507917 8.8628 0.513195 8.98945C0.595002 10.4486 1.05681 11.8681 1.84586 13.0923L1.85113 13.0897ZM1.82738 7.64908C1.82738 7.63325 1.83002 7.62005 1.83266 7.60422C1.84322 7.52771 1.85377 7.45119 1.86433 7.37731C1.86433 7.36412 1.86697 7.35092 1.86961 7.33773C1.8828 7.25594 1.89863 7.1715 1.91447 7.08971C1.91711 7.07124 1.92238 7.05541 1.92502 7.03694C1.94086 6.95778 1.95933 6.87599 1.9778 6.79683V6.78628C1.99891 6.70449 2.02266 6.62269 2.04378 6.5409C2.04905 6.52243 2.05433 6.5066 2.05961 6.48813C2.08336 6.40897 2.10711 6.32718 2.1335 6.24802L2.14142 6.22164C2.16517 6.14776 2.19156 6.07652 2.21794 6.00264C2.22322 5.98681 2.23114 5.97098 2.23642 5.95515C2.26545 5.87863 2.29711 5.79947 2.32878 5.72559C2.33406 5.70976 2.34197 5.69657 2.34725 5.68338C2.37628 5.61478 2.40795 5.54617 2.43962 5.47757C2.44489 5.46702 2.45017 5.45383 2.45545 5.44063C2.48975 5.36676 2.5267 5.29024 2.56628 5.21636C2.5742 5.20053 2.58212 5.1847 2.59267 5.16887C2.63226 5.09499 2.6692 5.02375 2.71143 4.94987V4.94195H2.7167L3.2656 6.63061L1.82738 7.67546C1.82738 7.67546 1.82738 7.65699 1.83002 7.64908H1.82738ZM4.08367 7.6095L5.62745 8.31926L6.52204 11.0712L5.62481 12.1108H2.74309C2.23642 11.2348 1.92238 10.2612 1.81683 9.25594L4.08367 7.6095ZM7.58026 1.41161C7.65942 1.39578 7.74123 1.37995 7.8204 1.36675C7.84151 1.36412 7.86262 1.35884 7.88109 1.3562C7.96026 1.34301 8.03679 1.33245 8.11596 1.32454C8.13971 1.3219 8.16346 1.31926 8.18721 1.31662C8.24791 1.30871 8.30596 1.30343 8.36666 1.29815C8.39305 1.29815 8.42207 1.29288 8.44846 1.29024C8.52235 1.28496 8.59361 1.27968 8.6675 1.27705C8.69916 1.27705 8.73347 1.27441 8.76514 1.27177C8.82319 1.27177 8.88125 1.26913 8.94194 1.26913C8.98153 1.26913 9.01847 1.26913 9.05806 1.26913C9.11611 1.26913 9.17681 1.26913 9.23487 1.27177C9.26653 1.27177 9.30084 1.27177 9.33251 1.27705C9.4064 1.27968 9.48029 1.28496 9.55154 1.29024C9.58057 1.29024 9.60696 1.29551 9.63334 1.29815C9.69404 1.30343 9.75473 1.30871 9.81279 1.31662C9.83654 1.31926 9.86029 1.3219 9.88668 1.32454C9.96585 1.33509 10.045 1.34565 10.1215 1.3562L10.1849 1.36675C10.264 1.37995 10.3459 1.39314 10.425 1.41161C10.4277 1.41161 10.4303 1.41161 10.4356 1.41161H10.4382L9 2.45646L7.56178 1.41161H7.56442C7.56442 1.41161 7.5697 1.41161 7.57234 1.41161H7.58026ZM9.00528 6.56728L11.1138 8.10026L10.3089 10.5805H7.70165L6.89677 8.10026L9.00528 6.56728ZM15.3018 4.94459V4.94987C15.3466 5.02111 15.3862 5.09499 15.4232 5.16887L15.4469 5.21636C15.4839 5.29024 15.5208 5.36676 15.5577 5.44063C15.563 5.45119 15.5683 5.46438 15.5736 5.47493C15.6052 5.54354 15.6369 5.61214 15.6659 5.68338C15.6712 5.69657 15.6791 5.7124 15.6844 5.72559C15.7161 5.80211 15.7478 5.87863 15.7768 5.95778C15.7821 5.97361 15.79 5.98945 15.7953 6.00528C15.8216 6.07916 15.848 6.1504 15.8718 6.22428C15.8744 6.23219 15.8771 6.24011 15.8797 6.25066C15.9061 6.32982 15.9298 6.40897 15.9536 6.49077C15.9589 6.50923 15.9641 6.52771 15.9694 6.54618C15.9905 6.62797 16.0143 6.70976 16.0328 6.78892C16.0328 6.7942 16.0328 6.79683 16.0328 6.80211C16.0512 6.88127 16.0697 6.96042 16.0855 7.03958L16.0961 7.09235C16.1119 7.17414 16.1278 7.25594 16.141 7.33773C16.141 7.35092 16.1462 7.36412 16.1462 7.37731C16.1568 7.45119 16.1673 7.52771 16.1779 7.60422C16.1779 7.62005 16.1805 7.63325 16.1832 7.64908C16.1832 7.65699 16.1832 7.66755 16.1858 7.67546L14.7476 6.63061L15.2965 4.93931L15.3018 4.94459ZM13.9295 7.61214L16.1937 9.25858C16.0882 10.2639 15.7715 11.2401 15.2675 12.1135H12.3858L11.4912 11.0739L12.3858 8.3219L13.9295 7.61214ZM14.3306 13.3879C14.3306 13.3879 14.3254 13.3931 14.3227 13.3958C14.2673 13.4565 14.2093 13.5172 14.1512 13.5752C14.138 13.5884 14.1248 13.6016 14.1116 13.6148C14.0536 13.6728 13.9929 13.7309 13.9322 13.7889C13.9216 13.7995 13.9111 13.81 13.8979 13.8206C13.8424 13.8707 13.7844 13.9235 13.729 13.971C13.7184 13.9789 13.7079 13.9894 13.6973 14C13.634 14.0554 13.5706 14.1055 13.5047 14.1583C13.4888 14.1715 13.473 14.1821 13.4598 14.1953C13.3938 14.2454 13.3278 14.2955 13.2619 14.3456C13.2619 14.3456 13.2566 14.3483 13.2566 14.3509C13.188 14.4011 13.1194 14.4486 13.0481 14.496C13.0323 14.5066 13.0165 14.5172 12.998 14.5277C12.9294 14.5726 12.8581 14.6174 12.7895 14.6623C12.7763 14.6702 12.7658 14.6781 12.7526 14.6834C12.6892 14.723 12.6233 14.7599 12.5573 14.7968C12.5441 14.8048 12.5283 14.8127 12.5151 14.8206C12.4438 14.8602 12.3699 14.8997 12.296 14.9367C12.2802 14.9446 12.2617 14.9525 12.2459 14.9631C12.1746 15 12.1007 15.0343 12.0295 15.0686C12.0242 15.0686 12.0189 15.0739 12.0137 15.0765H12.0084L12.5573 13.3879H14.3306ZM6.00217 15.0765L5.98898 15.0712C5.91509 15.0369 5.8412 15 5.76731 14.9631C5.75147 14.9551 5.73564 14.9472 5.71981 14.9393C5.64592 14.9024 5.57203 14.8628 5.49814 14.8206C5.48494 14.8127 5.47175 14.8048 5.45855 14.7995C5.39258 14.7625 5.32661 14.723 5.26063 14.6834C5.25008 14.6781 5.23688 14.6702 5.22633 14.6623C5.15508 14.6201 5.08646 14.5726 5.01521 14.5277C4.99938 14.5172 4.98355 14.5066 4.96771 14.496C4.89646 14.4486 4.82785 14.4011 4.75924 14.3509H4.75396C4.68799 14.2982 4.61937 14.248 4.5534 14.1953C4.53757 14.1821 4.52437 14.1715 4.50854 14.1583C4.44256 14.1055 4.37923 14.0554 4.3159 14C4.30534 13.9894 4.29478 13.9815 4.28159 13.971C4.22353 13.9208 4.16812 13.8707 4.1127 13.8206C4.10214 13.81 4.08895 13.7995 4.07839 13.7889C4.0177 13.7335 3.957 13.6755 3.89894 13.6148C3.88575 13.6016 3.87256 13.5884 3.85936 13.5752C3.8013 13.5172 3.74589 13.4591 3.69047 13.3984C3.68783 13.3958 3.68519 13.3931 3.67991 13.3879H5.45328L6.00217 15.0765C6.00217 15.0765 5.99954 15.0765 5.9969 15.0765H6.00217ZM7.50636 15.5726L6.63552 12.8971L7.53012 11.8602H10.4804L11.375 12.8971L10.5042 15.5726C9.52251 15.7784 8.48805 15.781 7.50373 15.5726H7.50636ZM14.3755 3.66755L13.4809 6.41953L11.9371 7.12929L9.6439 5.46174V3.57784L11.9503 1.90237C12.8713 2.31135 13.6999 2.91557 14.3781 3.66755H14.3755ZM6.06287 1.90237L8.3693 3.57784V5.46174L6.07606 7.12929L4.53229 6.41953L3.63769 3.66755C4.3159 2.91557 5.14452 2.31398 6.06551 1.90237H6.06287Z",fill:"#979DA2"},null,-1)),hPt=[uPt],pPt={key:5,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fPt=T1(()=>t.createElementVNode("path",{d:"M17.182 5.9a.538.538 0 0 0-.13-.416L14.24 2.109a.558.558 0 0 0-.433-.203h-2.25c-.017 0-.034.012-.056.012a.557.557 0 0 0-.563.41 1.68 1.68 0 0 1-1.63 1.266 1.68 1.68 0 0 1-1.632-1.266.55.55 0 0 0-.563-.41c-.017 0-.033-.012-.056-.012h-2.25a.558.558 0 0 0-.433.203L1.561 5.484a.586.586 0 0 0-.129.416c.017.152.09.287.208.382l2.605 2.082v8.167c0 .31.253.563.562.563h9c.31 0 .563-.253.563-.563V8.364l2.604-2.082a.59.59 0 0 0 .208-.382zm-3.937 4.444H5.37V9.78h7.875v.563zM5.37 15.969v-4.5h7.875v4.5H5.37zm9-9.045v-.518a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v2.25H5.37v-2.25a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v.518L2.793 5.765l2.278-2.734h1.66A2.802 2.802 0 0 0 9.307 4.72a2.803 2.803 0 0 0 2.576-1.688h1.66l2.278 2.734-1.451 1.159z",fill:"#98A2B3"},null,-1)),mPt=[fPt],gPt={key:6,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yPt=T1(()=>t.createElementVNode("path",{d:"M15.426 3.353a2.384 2.384 0 0 0-2.381 2.381 2.384 2.384 0 0 0 2.381 2.382 2.384 2.384 0 0 0 2.381-2.382 2.384 2.384 0 0 0-2.381-2.38zm0 3.766a1.386 1.386 0 0 1-1.385-1.385c0-.763.622-1.384 1.385-1.384s1.385.621 1.385 1.384c0 .764-.622 1.385-1.385 1.385zM1.424 6.558a.497.497 0 0 0 .704 0l1.295-1.296L4.72 6.558a.497.497 0 0 0 .704 0 .498.498 0 0 0 0-.705L4.128 4.558l1.295-1.295a.498.498 0 0 0-.705-.705L3.423 3.853 2.128 2.558a.499.499 0 0 0-.704.705l1.295 1.295-1.295 1.295a.498.498 0 0 0 0 .705zM13.013 12.443a.498.498 0 0 0-.705 0l-1.295 1.295-1.295-1.295a.499.499 0 0 0-.704.704l1.295 1.295-1.295 1.295a.499.499 0 0 0 .704.705l1.295-1.295 1.295 1.295a.497.497 0 0 0 .705 0 .498.498 0 0 0 0-.705l-1.295-1.295 1.295-1.295a.498.498 0 0 0 0-.704zM12.052 5.455l-2.01-1.747a.498.498 0 0 0-.654.753l1.066.926c-3.145.411-5.008 2.055-6.043 3.444a9.569 9.569 0 0 0-1.501 3.012 2.384 2.384 0 0 0-2.103 2.364 2.384 2.384 0 0 0 2.381 2.381 2.384 2.384 0 0 0 2.381-2.381 2.385 2.385 0 0 0-1.647-2.265 8.674 8.674 0 0 1 1.312-2.547C6.53 7.674 8.33 6.66 10.594 6.372l-.992 1.142a.498.498 0 0 0 .752.654l1.747-2.01a.498.498 0 0 0-.05-.703zm-7.48 8.752c0 .763-.62 1.384-1.384 1.384a1.386 1.386 0 0 1-1.384-1.384c0-.764.62-1.385 1.384-1.385.763 0 1.385.622 1.385 1.385z",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":".3"},null,-1)),vPt=[yPt],_Pt={key:7,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},bPt=T1(()=>t.createElementVNode("rect",{x:".707",y:".9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),xPt=T1(()=>t.createElementVNode("rect",{x:"8.707",y:".9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),wPt=T1(()=>t.createElementVNode("rect",{x:".707",y:"8.9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),kPt=T1(()=>t.createElementVNode("rect",{x:"8.707",y:"8.9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),CPt=[bPt,xPt,wPt,kPt],SPt={key:8,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TPt=t.createStaticVNode('<g clip-path="url(#gpdeo9cu3a)" fill="#98A2B3" data-v-975b3874><path d="M9.307.5C4.505.5.598 4.407.598 9.209c0 2 .69 3.938 1.946 5.486l-.754 3.159a.524.524 0 0 0 .727.599l3.038-1.384a8.743 8.743 0 0 0 3.752.848c4.802 0 8.709-3.907 8.709-8.708C18.016 4.407 14.109.5 9.307.5zm0 16.368a7.574 7.574 0 0 1-3.502-.845.525.525 0 0 0-.457-.011l-2.289 1.042.566-2.372a.524.524 0 0 0-.113-.465A7.657 7.657 0 0 1 1.647 9.21c0-4.224 3.436-7.66 7.66-7.66s7.66 3.436 7.66 7.66c0 4.223-3.436 7.66-7.66 7.66z" data-v-975b3874></path><path d="M9.68 5.199c-1.094-.115-2.459.397-3.041 1.797a.524.524 0 0 0 .968.403c.375-.902 1.255-1.231 1.964-1.157.721.075 1.232.542 1.365 1.25.13.693-.136 1.097-1.097 1.662-1.042.613-1.372.874-1.372 2.27a.524.524 0 0 0 1.049 0c0-.479.033-.715.118-.843.094-.14.33-.283.737-.523.666-.392 1.905-1.12 1.596-2.76-.221-1.171-1.098-1.975-2.288-2.1zM9.145 12.673a.608.608 0 0 0-.506.17c-.13.13-.19.31-.17.505a.525.525 0 0 0 .939.263.523.523 0 0 0-.263-.938z" data-v-975b3874></path></g><defs data-v-975b3874><clipPath id="gpdeo9cu3a" data-v-975b3874><path fill="#fff" transform="translate(.307 .5)" d="M0 0h18v18H0z" data-v-975b3874></path></clipPath></defs>',2),EPt=[TPt],APt={class:"button__text"},MPt={key:1,style:{width:"20px"}},IPt={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},PPt=["fill"],BPt={__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},showBadgeOnFilterFull:{type:Boolean,default:!0},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},filtersTotal:{type:Number,default:0},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"}},setup(e){const r=e,i=t.computed(()=>({"--height":r.height,"--width":r.width,"--text-font-family":r.textFontFamily,"--text-font-size":r.textFontSize,"--background-color":r.backgroundColor,"--border-radius":r.borderRadius,"--border-color":r.isActive?r.borderColorActive:r.borderColor,"--border-width":r.borderWidth,"--padding":r.padding,"--font-color":r.fontColor})),B=t.computed(()=>({"--info-background-color":r.infoValue?r.infoBackgroundColor:"transparent","--info-border-color":r.infoValue?r.infoBorderColor:"transparent","--info-border-radius":r.infoBorderRadius,"--info-font-family":r.infoFontFamily,"--info-font-size":r.infoFontSize,"--info-font-color":r.infoFontColor,"--info-height":r.infoHeight,"--info-width":r.infoWidth})),D=t.computed(()=>[er.PLAYS_TYPES,er.GOLSTATS,er.TOURNAMENTS,er.PLAYS,er.RESULTS,er.RESULTS_BY_TIME].includes(r.iconType)),c=t.computed(()=>[er.FIELD,er.GAMES].includes(r.iconType)),m=t.computed(()=>[er.DETAILS,er.UNIVERSE].includes(r.iconType)),a=t.computed(()=>[er.PERSONAL_DATA].includes(r.iconType)),v=t.computed(()=>[er.PRODUCTIVITY].includes(r.iconType)),f=t.computed(()=>[er.HOW_WAS_CORNER].includes(r.iconType)),n=t.computed(()=>[er.TAKEN_CORNERS].includes(r.iconType)),y=t.computed(()=>[er.ZONE].includes(r.iconType)),_=t.computed(()=>[er.WHAT_HAPPENED].includes(r.iconType));return(p,l)=>(t.openBlock(),t.createElementBlock("div",{class:"button",style:t.normalizeStyle(i.value)},[t.createElementVNode("div",qIt,[a.value?(t.openBlock(),t.createElementBlock("svg",YIt,[t.createElementVNode("path",{d:"M12.6665 16.0001V14.3334C12.6665 13.4494 12.3153 12.6015 11.6902 11.9764C11.0651 11.3513 10.2173 11.0001 9.33323 11.0001H4.33329C3.44925 11.0001 2.60141 11.3513 1.9763 11.9764C1.35119 12.6015 1 13.4494 1 14.3334V16.0001",stroke:e.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,XIt),t.createElementVNode("path",{d:"M6.83329 7.66658C8.67422 7.66658 10.1666 6.17422 10.1666 4.33329C10.1666 2.49237 8.67422 1 6.83329 1C4.99237 1 3.5 2.49237 3.5 4.33329C3.5 6.17422 4.99237 7.66658 6.83329 7.66658Z",stroke:e.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,ZIt),t.createElementVNode("path",{d:"M15.164 5.16663V10.1666M17.664 7.66659H12.6641",stroke:e.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,JIt)])):t.createCommentVNode("",!0),D.value?(t.openBlock(),t.createElementBlock("svg",KIt,[t.createElementVNode("path",{d:"M11.3464 15.7091C13.2744 15.7091 14.8373 14.1462 14.8373 12.2182C14.8373 10.2902 13.2744 8.72729 11.3464 8.72729C9.4184 8.72729 7.85547 10.2902 7.85547 12.2182C7.85547 14.1462 9.4184 15.7091 11.3464 15.7091Z",stroke:e.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,QIt),t.createElementVNode("path",{d:"M15.9996 16.8727L14.8359 15.7091",stroke:e.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,ePt),t.createElementVNode("path",{d:"M1.74545 14.1136H5.57341C5.80365 14.6432 6.11192 15.1265 6.4797 15.5591H1.74545C0.85957 15.5591 0.15 14.8495 0.15 13.9636V1.74545C0.15 0.85957 0.85957 0.15 1.74545 0.15H13.9636C14.8495 0.15 15.5591 0.85957 15.5591 1.74545V8.27117C15.1619 7.74472 14.6701 7.28299 14.1136 6.90213V1.74545V1.59545H13.9636H1.74545H1.59545V1.74545V13.9636V14.1136H1.74545ZM3.64091 3.64091H12.0682V5.08636H3.64091V3.64091ZM3.64091 7.13182H7.39844C6.87199 7.52898 6.41026 8.02079 6.0294 8.57727H3.64091V7.13182ZM3.64091 10.6227H5.20065C5.12651 11.0081 5.08636 11.3945 5.08636 11.7818V12.0682H3.64091V10.6227Z",fill:e.iconColor,stroke:"#353F47","stroke-width":"0.3"},null,8,tPt)])):t.createCommentVNode("",!0),m.value?(t.openBlock(),t.createElementBlock("svg",aPt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.5 0C13.1944 0 17 3.80558 17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0ZM8.49751 1.54553C4.65662 1.54553 1.54297 4.65919 1.54297 8.50008C1.54297 12.341 4.65662 15.4546 8.49751 15.4546C12.3384 15.4546 15.4521 12.341 15.4521 8.50008C15.4521 4.65919 12.3384 1.54553 8.49751 1.54553ZM8.49929 3.09082C8.92605 3.09082 9.27202 3.43678 9.27202 3.86355V8.12198L12.451 10.5945C12.7878 10.8565 12.8485 11.342 12.5865 11.6789C12.3245 12.0157 11.839 12.0764 11.5022 11.8144L8.02488 9.10986C7.83666 8.96347 7.72656 8.73837 7.72656 8.49991V3.86355C7.72656 3.43678 8.07252 3.09082 8.49929 3.09082Z",fill:e.iconColor},null,8,nPt)])):t.createCommentVNode("",!0),c.value?(t.openBlock(),t.createElementBlock("svg",rPt,[t.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:e.iconColor},null,8,iPt),t.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:e.iconColor},null,8,oPt),t.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:e.iconColor},null,8,sPt),t.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:e.iconColor},null,8,lPt),t.createElementVNode("path",{d:"M13.5033 9.00032C13.5033 10.5651 12.2348 11.8337 10.67 11.8337C9.1052 11.8337 7.83667 10.5651 7.83667 9.00032C7.83667 7.43552 9.1052 6.16699 10.67 6.16699C12.2348 6.16699 13.5033 7.43552 13.5033 9.00032Z",stroke:e.iconColor},null,8,cPt)])):t.createCommentVNode("",!0),v.value?(t.openBlock(),t.createElementBlock("svg",dPt,hPt)):t.createCommentVNode("",!0),n.value?(t.openBlock(),t.createElementBlock("svg",pPt,mPt)):t.createCommentVNode("",!0),f.value?(t.openBlock(),t.createElementBlock("svg",gPt,vPt)):t.createCommentVNode("",!0),y.value?(t.openBlock(),t.createElementBlock("svg",_Pt,CPt)):t.createCommentVNode("",!0),_.value?(t.openBlock(),t.createElementBlock("svg",SPt,EPt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",APt,t.toDisplayString(e.text),1),e.showBadgeOnFilterFull?(t.openBlock(),t.createElementBlock("div",{key:0,class:"button__info",style:t.normalizeStyle(B.value)},[t.withDirectives(t.createElementVNode("span",null,t.toDisplayString(e.infoValue),513),[[t.vShow,e.infoValue]])],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.filtersTotal>0&&e.filtersTotal!=parseInt(e.infoValue)?(t.openBlock(),t.createElementBlock("div",{key:0,class:"button__info",style:t.normalizeStyle(B.value)},[t.withDirectives(t.createElementVNode("span",null,t.toDisplayString(e.infoValue),513),[[t.vShow,e.infoValue]])],4)):e.filtersTotal>0?(t.openBlock(),t.createElementBlock("div",MPt)):t.createCommentVNode("",!0)],64)),t.createElementVNode("div",{class:t.normalizeClass(["button__arrow",{"rotated-180":e.isActive}])},[(t.openBlock(),t.createElementBlock("svg",IPt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,PPt)]))],2)],4))}},NPt=ml(BPt,[["__scopeId","data-v-975b3874"]]),zPt=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},OPt=e=>(t.pushScopeId("data-v-0ca35abc"),e=e(),t.popScopeId(),e),FPt={class:"panel__activator__icon"},LPt=["src"],DPt={class:"panel__activator__text"},RPt=["height","width"],VPt=["stroke"],$Pt={class:"panel__content"},jPt=OPt(()=>t.createElementVNode("div",{class:"panel__content__separator"},null,-1)),UPt={class:"panel__content__slot"},GPt={__name:"GSC-ExpansionPanel",props:{modelValue:{type:Boolean,default:!1},text:{type:String,default:""},textColor:{type:String,default:"white"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"12px"},icon:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#2E3A45"},borderRadius:{type:String,default:"4px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},arrowColor:{type:String,default:"white"},separatorWidth:{type:String,default:"100%"},separatorColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},panelPadding:{type:String,default:"0px 6px"}},emits:["update:modelValue"],setup(e,{emit:r}){const i=e,B=t.ref(i.modelValue),D=t.computed(()=>({"--activator-height":i.height,"--activator-text-font-family":i.textFontFamily,"--activator-text-font-size":i.textFontSize,"--activator-text-color":i.textColor,"--background-color":i.backgroundColor,"--panel-width":i.width,"--panel-padding":i.panelPadding,"--panel-border-radius":i.borderRadius,"--panel-border-color":i.borderColor,"--panel-border-width":i.borderWidth,"--arrow-height":i.arrowHeight,"--arrow-width":i.arrowWidth,"--separator-width":i.separatorWidth,"--separator-color":i.separatorColor}));t.watch(()=>i.modelValue,m=>{B.value=m},{immediate:!0});function c(){B.value=!B.value,r("update:modelValue",B.value)}return(m,a)=>(t.openBlock(),t.createElementBlock("div",{class:"panel",style:t.normalizeStyle(D.value)},[t.createElementVNode("div",{class:"panel__activator",onClick:c},[t.createElementVNode("div",FPt,[i.icon?(t.openBlock(),t.createElementBlock("img",{key:0,src:i.icon,alt:""},null,8,LPt)):t.createCommentVNode("",!0)]),t.createElementVNode("div",DPt,t.toDisplayString(e.text),1),t.createElementVNode("div",{class:t.normalizeClass(["panel__activator__arrow",{"rotated-180":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,VPt)],8,RPt))],2)]),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",$Pt,[jPt,t.createElementVNode("div",UPt,[t.renderSlot(m.$slots,"content",{},void 0,!0)])],512),[[t.vShow,B.value]])]),_:3})],4))}},HPt=zPt(GPt,[["__scopeId","data-v-0ca35abc"]]),Jy={isPlayingAsHidden:!1,playingAs:[{name:"Local",isSelected:!0,value:1},{name:"Visitante",isSelected:!0,value:2}],gameSections:[{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}]},WPt={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},qPt={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:2},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:21},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]}},YPt={minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,r)=>r+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},XPt=[{name:"Sub-20",logo:null,isSelected:!0,id:44,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Clausura 2023",related_seasons:[{type:1,id:1752}],id:1713,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1592}],id:1542,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1521}],id:1486,type:0}]},{name:"Sub-16",logo:null,isSelected:!0,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]},{name:"Tournoi Maurice Revello",logo:null,isSelected:!0,id:108,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Tournoi Maurice Revello 23",related_seasons:[],id:1770,type:0}]},{name:"Liga MX Femenil",logo:"https://az755631.vo.msecnd.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"FIFA World Cup",logo:null,isSelected:!0,id:33,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Copa del Mundo 2022",related_seasons:[],id:1512,type:0},{name:"Copa del Mundo 2018",related_seasons:[],id:881,type:0}]},{name:"Liga MX",logo:"https://az755631.vo.msecnd.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga Expansion MX",logo:"https://az755631.vo.msecnd.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Copa Oro",logo:null,isSelected:!0,id:29,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Copa Oro 2023",related_seasons:[],id:1741,type:0}]},{name:"Women Revelations Cup",logo:null,isSelected:!0,id:1137,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Women Revelations Cup 2023",related_seasons:[],id:1731,type:0}]},{name:"Leagues Cup",logo:null,isSelected:!0,id:1046,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Leagues Cup 2023",related_seasons:[],id:1784,type:0}]},{name:"Sub-18",logo:null,isSelected:!0,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]}],ZPt=[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Tiros a gol",isSelected:!1},{id:3,name:"Asistencias",isSelected:!1},{id:4,name:"Centros",isSelected:!1},{id:5,name:"Balones ganados en área propia",isSelected:!1},{id:6,name:"Participaciones en gol",isSelected:!1},{id:7,name:"Cabeceo area rival",isSelected:!1}],JPt=[{id:1,name:"Mas goles anotados",isSelected:!1,value:1},{id:2,name:"Mas goles durante los ultimos 15 min de 2do tiempo",isSelected:!1,value:7},{id:3,name:"Con mas goles como visitante",isSelected:!1,value:3},{id:4,name:"Con mas goles como local",isSelected:!1,value:3},{id:5,name:"Mas goles durante el 1er tiempo",isSelected:!1,value:3},{id:6,name:"Mas goles durante el 2do tiempo",isSelected:!1,value:3},{id:7,name:"Mas goles como local durante el 2do tiempo",isSelected:!1,value:7}],KPt={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},tq={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},QPt={class:"filters"},eBt={key:0,class:"filters__expansion"},tBt={class:"content"},aBt={key:1,class:"filters__menus"},nBt={__name:"GSC-Filters",props:{filterType:{type:String,default:""},isExpansionPanel:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},showBadgeOnFilterFull:{type:Boolean,default:!0},isScouting:{type:Boolean,default:!1},filters:{type:[Object,Array],default:()=>null},menuButtonText:{type:String,default:""},expansionPanelText:{type:String,default:""},buttonFilterProps:{type:Object,default:()=>{}},expansionPanelProps:{type:Object,default:()=>{}},templateProps:{type:Object,default:()=>{}},fieldComponentProps:{type:Object,default:()=>{}},tournament:{type:Object,default:()=>null},season:{type:Object,default:()=>({})},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},width:{type:String,default:"fit-content"},modalHeight:{type:String,default:"fit-content"}},emits:["update:filters","apply","close"],setup(e,{expose:r,emit:i}){const B=e;t.useCssVars(q=>({"14c83a50":e.width}));const D={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.PRODUCTIVITY,isFooterVisible:!0},c={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.PLAYS,isFooterVisible:!0},m={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.FIELD,isFooterVisible:!0},a={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.DETAILS,isFooterVisible:!0},v={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.TOURNAMENTS,isFooterVisible:!0},f={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.PERSONAL_DATA,isFooterVisible:!0},n={width:"310px",modalHeight:B.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},y={width:"380px",modalHeight:B.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},_={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.UNIVERSE,isFooterVisible:!0},p={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.DISTANCE,isFooterVisible:!0},l={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.RESULTS,padding:"0",isFooterVisible:!0},o={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.RESULTS_BY_TIME,padding:"0",isFooterVisible:!0},s={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.VIDEOS,isFooterVisible:!1},u={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.GAMES,isFooterVisible:!0},d={width:"520px",maxWidth:"520px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.TAKEN_CORNERS,isFooterVisible:!0},h={width:"670px",maxWidth:"670px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.HOW_WAS_CORNER,isFooterVisible:!0},g={width:"426px",maxWidth:"426px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.ZONE,isFooterVisible:!0},b={width:"285px",maxWidth:"285px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:er.WHAT_HAPPENED,isFooterVisible:!0},w=t.ref(!1),x=t.ref(!1),S=t.ref(0),k=t.ref(0),T=t.ref({}),C=t.ref(null),A=t.ref(null),E=t.computed(()=>B.menuButtonText||F()),M=t.computed(()=>B.expansionPanelText||F()),I=t.ref(null);t.watch(()=>B.filterType,q=>{q===er.PRODUCTIVITY?T.value={...D,...B.templateProps,productivityCategories:B.filters||WPt}:q===er.PLAYS?T.value={...c,...B.templateProps,fontFamily:B.buttonFilterProps?B.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:B.filters||qPt}:q===er.FIELD?T.value={...m,...B.templateProps,fieldComponentProps:B.fieldComponentProps,fieldAreas:B.filters||[]}:q===er.DETAILS?T.value={...a,...B.templateProps,isPlayingAsHidden:B.filters?B.filters.isPlayingAsHidden:Jy.isPlayingAsHidden,playingAs:B.filters&&B.filters.playingAs||Jy.playingAs,gameSections:B.filters&&B.filters.gameSections||Jy.gameSections}:q===er.TOURNAMENTS?T.value={...v,...B.templateProps,tournaments:B.filters||XPt}:q===er.PERSONAL_DATA?T.value={...f,...B.templateProps,token:B.token,personalDataFilters:B.filters||E4}:q===er.PLAYS_TYPES?T.value={...n,...B.templateProps,playsGolstatsCategories:B.filters||ZPt}:q===er.GOLSTATS?T.value={...y,...B.templateProps,playsGolstatsCategories:B.filters||JPt}:q===er.UNIVERSE?T.value={..._,...B.templateProps,universeFilters:B.filters||YPt}:q===er.DISTANCE?T.value={...p,...B.templateProps,distanceFilters:B.filters||KPt}:q===er.RESULTS?T.value={...l,...B.templateProps,resultsFilters:B.filters||tq}:q===er.RESULTS_BY_TIME?T.value={...o,...B.templateProps,resultsByTimeFilters:B.filters||WE}:q===er.GAMES?T.value={...u,...B.templateProps,gamesFilters:B.filters||[]}:q===er.VIDEOS?T.value={...s,...B.templateProps,token:B.token}:q===er.TAKEN_CORNERS?T.value={...d,...B.templateProps,takenCornersFilters:B.filters||[]}:q===er.HOW_WAS_CORNER?T.value={...h,...B.templateProps,howWasCornerFilters:B.filters||UE}:q===er.ZONE?T.value={...g,...B.templateProps,zoneFilters:B.filters||[...E_]}:q===er.WHAT_HAPPENED&&(T.value={...b,...B.templateProps,whatHappenedFilters:B.filters||[...HE]}),T.value.isExpansionMode=B.isExpansionPanel,B.isExpansionPanel&&(T.value.width="100%",T.value.maxWidth="100%")},{immediate:!0}),t.watch(()=>B.filters,()=>{B.filterType===er.PRODUCTIVITY?T.value={...D,...B.templateProps,productivityCategories:B.filters}:B.filterType===er.PLAYS?T.value={...c,...B.templateProps,playsCategories:B.filters}:B.filterType===er.FIELD?T.value={...m,...B.templateProps,fieldComponentProps:B.fieldComponentProps,fieldAreas:B.filters}:B.filterType===er.DETAILS?T.value={...a,...B.templateProps,isPlayingAsHidden:B.filters?B.filters.isPlayingAsHidden:Jy.isPlayingAsHidden,playingAs:B.filters?B.filters.playingAs:Jy.playingAs,gameSections:B.filters?B.filters.gameSections:Jy.gameSections}:B.filterType===er.TOURNAMENTS?T.value={...v,...B.templateProps,tournaments:B.filters}:B.filterType===er.PERSONAL_DATA?T.value={...f,...B.templateProps,token:B.token,personalDataFilters:B.filters}:B.filterType===er.PLAYS_TYPES?T.value={...n,...B.templateProps,playsGolstatsCategories:B.filters}:B.filterType===er.GOLSTATS?T.value={...y,...B.templateProps,playsGolstatsCategories:B.filters}:B.filterType===er.UNIVERSE?T.value={..._,...B.templateProps,universeFilters:B.filters}:B.filterType===er.DISTANCE?T.value={...p,...B.templateProps,distanceFilters:B.filters}:B.filterType===er.RESULTS?T.value={...l,...B.templateProps,resultsFilters:B.filters||tq}:B.filterType===er.RESULTS_BY_TIME?T.value={...o,...B.templateProps,resultsByTimeFilters:B.filters||WE}:B.filterType===er.GAMES?T.value={...u,...B.templateProps,gamesFilters:B.filters}:B.filterType===er.VIDEOS?T.value={...s,...B.templateProps,token:B.token}:B.filterType===er.TAKEN_CORNERS?T.value={...d,...B.templateProps,takenCornersFilters:B.filters||[]}:B.filterType===er.HOW_WAS_CORNER?T.value={...h,...B.templateProps,howWasCornerFilters:B.filters||UE}:B.filterType===er.ZONE?T.value={...g,...B.templateProps,zoneFilters:B.filters||[...E_]}:B.filterType===er.WHAT_HAPPENED&&(T.value={...b,...B.templateProps,whatHappenedFilters:B.filters||[...HE]}),T.value.isExpansionMode=B.isExpansionPanel,B.isExpansionPanel&&(T.value.width="100%",T.value.maxWidth="100%")}),t.watch(w,q=>{q||i("close",I.value)}),t.watch(x,q=>{q||i("close",I.value)});function N(q){S.value=q}function z(){B.isExpansionPanel?x.value=!1:w.value=!1,i("apply",I.value)}function F(){if(B.filterType===er.PRODUCTIVITY)return"Características de juego";if(B.filterType===er.PLAYS)return"Jugada(s)";if(B.filterType===er.FIELD)return"Zona de cancha";if(B.filterType===er.DETAILS)return"Detalles";if(B.filterType===er.TOURNAMENTS)return"Ligas";if(B.filterType===er.PERSONAL_DATA)return"Datos personales";if(B.filterType===er.PLAYS_TYPES)return"Tipos de jugada";if(B.filterType===er.GOLSTATS)return"Filtros Golstats";if(B.filterType===er.UNIVERSE)return"Universo";if(B.filterType===er.DISTANCE)return"Distancia";if([er.RESULTS,er.RESULTS_BY_TIME].includes(B.filterType))return"Resultados";if(B.filterType===er.GAMES)return"Partidos";if(B.filterType===er.VIDEOS)return"Videos";if(B.filterType===er.TAKEN_CORNERS)return"¿Quién cobró?";if(B.filterType===er.HOW_WAS_CORNER)return"¿Cómo fue cobrado?";if(B.filterType===er.ZONE)return"Zona";if(B.filterType===er.WHAT_HAPPENED)return"¿Qué sucedió?"}function R(q){T.value.fieldAreas=q,S.value=q.length,$(q)}function V(q){let W=0;q.value&&q.value.statistics&&(q.value.minutesPlayed&&W++,q.value.percentMinutesPlayed&&W++,q.value.lastMonths&&W++,q.value.statistics.totals&&W++,q.value.statistics.averagePerGame&&W++,q.value.statistics.averagePerMinute&&W++),T.value.universe=q.value,S.value=W,$(q.value)}function $(q){I.value=q,i("update:filters",q)}function U(q){k.value=q}function Z(q=null){C.value&&C.value.clearFilters(q),A.value&&A.value.clearFilters(q)}return r({clearFilters:Z}),(q,W)=>(t.openBlock(),t.createElementBlock("div",QPt,[e.isExpansionPanel?(t.openBlock(),t.createElementBlock("div",eBt,[t.createVNode(t.unref(HPt),t.mergeProps(e.expansionPanelProps,{modelValue:x.value,"onUpdate:modelValue":W[0]||(W[0]=Q=>x.value=Q),text:M.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+B.filterType+"-icon.png"}),{content:t.withCtx(()=>[t.createElementVNode("div",tBt,[t.createVNode(eq,t.mergeProps(T.value,{season:e.season,"is-female":e.isFemale,"is-expansion-mode":!0,ref_key:"filterTemplateExpansionPanel",ref:A,onChangeFieldAreas:R,onChangeCategoriesSelected:N,onChangeFiltersSelected:N,onChangeUniverseFilters:V,onApply:z,"onUpdate:filters":$,onTotalFilters:U}),null,16,["season","is-female"])])]),_:1},16,["modelValue","text","icon"])])):(t.openBlock(),t.createElementBlock("div",aBt,[t.createVNode(t.unref(WIt),{modelValue:w.value,"onUpdate:modelValue":W[1]||(W[1]=Q=>w.value=Q),width:e.width,"menu-margin-top":18},{trigger:t.withCtx(()=>[t.createVNode(NPt,t.mergeProps(e.buttonFilterProps,{text:E.value,"show-badge-on-filter-full":e.showBadgeOnFilterFull,"info-value":S.value,"filters-total":k.value.value,"is-active":w.value,"icon-type":e.filterType}),null,16,["text","show-badge-on-filter-full","info-value","filters-total","is-active","icon-type"])]),menu:t.withCtx(()=>[t.createVNode(eq,t.mergeProps(T.value,{season:e.season,"is-female":e.isFemale,"is-scouting":e.isScouting,ref_key:"filterTemplateMenu",ref:C,onChangeFieldAreas:R,onChangeCategoriesSelected:N,onChangeFiltersSelected:N,onChangeUniverseFilters:V,"onUpdate:filters":$,onTotalFilters:U,onApply:z}),null,16,["season","is-female","is-scouting"])]),_:1},8,["modelValue","width"])]))]))}},aq=ml(nBt,[["__scopeId","data-v-a68a1d5d"]]),W1a="",nq=e=>(t.pushScopeId("data-v-2a81f2f0"),e=e(),t.popScopeId(),e),rBt={class:"header-team__info"},iBt={class:"header-team__info__checkbox"},oBt={key:0,class:"header-team__info__logo"},sBt=["src"],lBt={class:"header-team__info__name"},cBt={class:"header-team__arrow"},dBt=nq(()=>t.createElementVNode("div",{class:"header-team__arrow__circle"},null,-1)),uBt=nq(()=>t.createElementVNode("div",{class:"header-team__arrow__line"},null,-1)),rq=$i({__name:"CategoriesHeaderTeam",props:{team:{type:Object,default:()=>{}},isHomeTeam:{type:Boolean,default:!0},teamsSelected:{type:Set,default:()=>new Set},isGamePreMatch:{type:Boolean,default:!1},isTeamForAnalysis:{type:Boolean,default:!1}},emits:["change-team"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({"--flex-direction-info":i.isHomeTeam?"flex":"row-reverse","--justify-content-info":i.isHomeTeam?"flex-start":"flex-end","--arrow-color":i.isHomeTeam?"#336dff":"#7ed321"})),D=t.computed(()=>i.team.colloquial_name||i.team.colloquialName||i.team.name||i.team.team_name||"");function c(m){r("change-team",{value:m,team:i.team})}return(m,a)=>(t.openBlock(),t.createElementBlock("div",{class:"header-team",style:t.normalizeStyle(B.value)},[t.createElementVNode("div",rBt,[t.createElementVNode("div",iBt,[t.createVNode(t.unref(Wg),{"model-value":e.team.isSelected,"avoid-interaction":e.teamsSelected.size===1&&e.team.isSelected,"onUpdate:modelValue":c},null,8,["model-value","avoid-interaction"])]),D.value!=="Rival"?(t.openBlock(),t.createElementBlock("div",oBt,[e.team.logo?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.team.logo,alt:"h-team"},null,8,sBt)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",lBt,t.toDisplayString(D.value),1)]),t.createElementVNode("div",cBt,[dBt,uBt,t.createElementVNode("div",{class:t.normalizeClass(`header-team__arrow__triangle-${i.isHomeTeam?"right":"left"}`)},null,2)])],4))}},[["__scopeId","data-v-2a81f2f0"]]),Y1a="",iq=e=>(t.pushScopeId("data-v-bfb2c86b"),e=e(),t.popScopeId(),e),hBt={class:"list-events"},pBt=iq(()=>t.createElementVNode("div",{class:"list-events__title"},"Tipos de jugadas:",-1)),fBt={class:"list-events__list"},mBt=["onClick"],gBt=[iq(()=>t.createElementVNode("img",{src:mE,alt:""},null,-1))],yBt=$i({__name:"ListEvents",props:{listEventsToDisplay:{type:Array,default:()=>[]},awaitForListEvents:{type:Boolean,default:!1},lastEventTypeSelected:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},totalEvents:{type:Number,default:0},isPrivilegesVrApplicable:{type:Boolean,default:!1},totalEventsPrivilegesVr:{type:Number,default:0}},emits:["change-event-type","click-play"],setup(e,{emit:r}){const i=e,B=[{categoriesIds:new Set([607,608]),name:"Oportunidad de gol",value:"0"},{categoriesIds:new Set([12,55,"54_r","35_r"]),name:"Goles",value:"1"},{categoriesIds:new Set([19]),name:"Tiros a gol",value:"2"},{categoriesIds:new Set([537,540,544,547]),name:"Tiros a gol (portería)",value:"3"},{categoriesIds:new Set([13,25]),name:"Centros totales",value:"5"},{categoriesIds:new Set([98,101,104,105,109,112,115,116]),name:"Centros acertados",value:"6"},{categoriesIds:new Set([11]),name:"Balones ganados en área rival",value:"7"},{categoriesIds:new Set([4]),name:"1vs1 exitosos ofensivos",value:"8"},{categoriesIds:new Set([208]),name:"1vs1 no exitosos ofensivos",value:"9"},{categoriesIds:new Set([5]),name:"1vs1 exitoso defensivo",value:"10"},{categoriesIds:new Set([31,32]),name:"Corners",value:"11"}],D=t.ref(i.awaitForListEvents?[]:B),c=t.ref(i.awaitForListEvents?new Map:D.value.reduce((v,f)=>(v.set(f.value,f),v),new Map)),m=t.ref(i.awaitForListEvents?"":D.value[0].value);t.watch(()=>i.listEventsToDisplay,v=>{if(v.length){c.value=new Map,D.value=v.map((n,y)=>{const _={name:n.name,singleName:n.single_name,categories:new Set(n.categories),categoriesIds:n.categories,post:n.post,prev:n.prev,value:y.toString()};return c.value.set(_.value,_),_});let f=null;i.lastEventTypeSelected&&i.lastEventTypeSelected.name&&(f=c.value.get(i.lastEventTypeSelected.value)),m.value=f?f.value:D.value[0].value}},{immediate:!0,deep:!0}),t.watch(()=>m.value,v=>{const f=c.value.get(v);f&&r("change-event-type",f)});function a(v,f){i.canPlayVideos&&f&&r("click-play",v.categoriesIds)}return(v,f)=>(t.openBlock(),t.createElementBlock("div",hBt,[pBt,t.createElementVNode("div",fBt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,n=>(t.openBlock(),t.createElementBlock("div",{key:n.value,class:"list-events__list__item"},[t.createVNode(t.unref(rB),{modelValue:m.value,"onUpdate:modelValue":f[0]||(f[0]=y=>m.value=y),value:n.value,label:n.name,name:"event-type","radio-position":"left",class:"list-events__list__item__radio"},null,8,["modelValue","value","label"]),t.createElementVNode("button",{class:t.normalizeClass(["list-events__list__item__btn-play",{disabled:!(e.canPlayVideos&&m.value===n.value&&(e.isPrivilegesVrApplicable?e.totalEventsPrivilegesVr:e.totalEvents)>0)}]),onClick:y=>a(n,e.canPlayVideos&&m.value===n.value&&(e.isPrivilegesVrApplicable?e.totalEventsPrivilegesVr:e.totalEvents)>0)},gBt,10,mBt)]))),128))])]))}},[["__scopeId","data-v-bfb2c86b"]]),vBt=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero"]]),J1a="",_Bt={class:"item-player__info"},bBt={class:"item-player__info__photo"},xBt={class:"item-player__info__photo__img"},wBt=["src"],kBt={class:"item-player__info__data"},CBt={class:"item-player__info__data__name"},SBt={class:"item-player__info__data__position"},TBt={class:"item-player__info__data__position__nationality"},EBt=["src"],ABt={class:"item-player__info__data__position__position"},MBt={class:"item-player__jersey-number"},IBt=$i({__name:"ItemPlayer",props:{isFemale:{type:Boolean,default:!1},player:{type:Object,default:()=>{}},selectedPlayers:{type:Set,default:()=>new Set}},emits:["change-player"],setup(e,{emit:r}){const i=e,B=t.computed(()=>vBt.get(i.player.position_id)||""),D=t.computed(()=>`https://az755631.vo.msecnd.net/flags/${i.player.nationality_id}.jpg`);function c(m){r("change-player",m)}return(m,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["item-player",{inactive:!e.player.isSelected}])},[t.createVNode(t.unref(Wg),{"model-value":e.player.isSelected,"avoid-interaction":e.selectedPlayers.size===1&&e.player.isSelected,"onUpdate:modelValue":c},null,8,["model-value","avoid-interaction"]),t.createElementVNode("div",_Bt,[t.createElementVNode("div",bBt,[t.createElementVNode("div",xBt,[t.createElementVNode("img",{src:e.player.photo,alt:"player-photo"},null,8,wBt)])]),t.createElementVNode("div",kBt,[t.createElementVNode("div",CBt,t.toDisplayString(e.player.player_lastname)+", "+t.toDisplayString(e.player.player_name),1),t.createElementVNode("div",SBt,[t.createElementVNode("div",TBt,[t.createElementVNode("img",{src:D.value},null,8,EBt)]),t.createElementVNode("div",ABt,t.toDisplayString(e.isFemale?B.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):B.value),1)])])]),t.createElementVNode("div",MBt,t.toDisplayString(e.player.jersey),1)],2))}},[["__scopeId","data-v-63dda574"]]),Q1a="",PBt={class:"list-players"},BBt={class:"list-players__header"},NBt=["src"],zBt={class:"list-players__header__team__name"},OBt=["src"],FBt={class:"list-players__header__team__name"},LBt={class:"list-players__body"},DBt=$i({__name:"ListPlayers",props:{isFemale:{type:Boolean,default:!1},homeTeam:{type:Object,default:()=>({})},awayTeam:{type:Object,default:()=>({})},availablePlayersByTeam:{type:Map,default:()=>new Map}},emits:["change-players"],setup(e,{emit:r}){const i=e,B=t.ref(0);t.watch(()=>i.homeTeam.team_id,v=>{v===void 0?i.awayTeam&&i.awayTeam.team_id&&(B.value=i.awayTeam.team_id):B.value=v},{immediate:!0});const D=t.computed(()=>i.availablePlayersByTeam.get(B.value)||[]),c=t.computed(()=>D.value.reduce((v,f)=>(f.isSelected&&v.add(f.player_id),v),new Set));t.watch(()=>c.value,v=>{r("change-players",v)},{immediate:!0});function m(v){B.value=v}function a(v,f){f.isSelected=v}return(v,f)=>(t.openBlock(),t.createElementBlock("div",PBt,[t.createElementVNode("div",BBt,[e.homeTeam.team_id!==void 0?(t.openBlock(),t.createElementBlock("div",{key:0,role:"button",class:t.normalizeClass(["list-players__header__team",{active:B.value===e.homeTeam.team_id}]),onClick:f[0]||(f[0]=n=>m(e.homeTeam.team_id))},[t.createElementVNode("img",{src:e.homeTeam.logo,alt:"team-logo"},null,8,NBt),t.createElementVNode("div",zBt,t.toDisplayString(e.homeTeam.colloquial_name),1)],2)):t.createCommentVNode("",!0),e.awayTeam.team_id!==void 0?(t.openBlock(),t.createElementBlock("div",{key:1,role:"button",class:t.normalizeClass(["list-players__header__team away",{active:B.value===e.awayTeam.team_id}]),onClick:f[1]||(f[1]=n=>m(e.awayTeam.team_id))},[t.createElementVNode("img",{src:e.awayTeam.logo,alt:"team-logo"},null,8,OBt),t.createElementVNode("div",FBt,t.toDisplayString(e.awayTeam.colloquial_name),1)],2)):t.createCommentVNode("",!0)]),t.createElementVNode("div",LBt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(D.value,n=>(t.openBlock(),t.createBlock(IBt,{key:n.player_id,"is-female":e.isFemale,player:n,"selected-players":c.value,onChangePlayer:y=>a(y,n)},null,8,["is-female","player","selected-players","onChangePlayer"]))),128))])]))}},[["__scopeId","data-v-a0fc063d"]]),tga="",RBt={class:"categories-list"},VBt={key:0,class:"categories-list__games"},$Bt={key:1,class:"categories-list__header"},jBt={class:"categories-list__switch"},UBt={class:"categories-list__lists"},GBt={key:0,class:"categories-list__lists__events"},HBt={key:1,class:"categories-list__lists__players"},WBt=$i({__name:"CategoriesList",props:{isFemale:{type:Boolean,default:!1},homeTeam:{type:Object,default:()=>({})},awayTeam:{type:Object,default:()=>({})},listEventsToDisplay:{type:Array,default:()=>[]},awaitForListEvents:{type:Boolean,default:!1},tournamentSelected:{type:Object,default:()=>({})},availablePlayersByTeam:{type:Map,default:()=>new Map},listType:{type:String,default:"events"},canPlayVideos:{type:Boolean,default:!0},isGamePreMatch:{type:Boolean,default:!1},selectedTeamData:{type:Object,default:()=>({})},rivalTeams:{type:Object,default:()=>({isSelected:!1,colloquialName:"Rival"})},teamSelected:{type:Object,default:()=>({teamId:0})},totalEvents:{type:Number,default:0},isPrivilegesVrApplicable:{type:Boolean,default:!1},totalEventsPrivilegesVr:{type:Number,default:0}},emits:["change-event-type","change-list-type","change-players","change-teams","change-games"],setup(e,{emit:r}){const i=e,B=t.ref(["Eventos",i.tournamentSelected.is_female==1?"Jugadoras":"Jugadores"]),D=t.ref(0),c=t.ref({}),m=t.ref({isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"100%"},buttonFilterProps:{width:"100%","background-color":"#293640",padding:"3px 8px","border-radius":"5px","border-color":"#293640","info-border-color":"#424D58"},fieldComponentProps:{width:"100%"},width:"100%"}),a=t.ref([]),v=t.ref({}),f=t.ref({}),n=t.ref(new Set),y=t.computed(()=>{const w=new Set,x=new Set;return i.isGamePreMatch?(i.selectedTeamData.isSelected&&(x.add(i.selectedTeamData.teamId),w.add(1)),i.rivalTeams.isSelected&&(w.add(2),a.value.forEach(S=>{x.add(S.rivalTeam.team_id===i.selectedTeamData.teamId?S.team.team_id:S.rivalTeam.team_id)})),o(w)):(i.homeTeam.isSelected&&x.add(i.homeTeam.team_id),i.awayTeam.isSelected&&x.add(i.awayTeam.team_id)),x}),_=t.computed(()=>i.homeTeam.team_id===i.teamSelected.teamId),p=t.computed(()=>i.awayTeam.team_id===i.teamSelected.teamId);t.watch(()=>D.value,w=>{r("change-list-type",w?"players":"events")},{immediate:!0}),t.watch(()=>y.value,w=>{r("change-teams",w)},{immediate:!0});const l=t.computed(()=>i.isGamePreMatch&&i.selectedTeamData.games&&i.selectedTeamData.games.length>0?i.selectedTeamData.games.map(w=>({...w,label:`${w.roundAbbreviation} ${w.team.acronym} vs ${w.rivalTeam.acronym}`,teamsIds:[w.team.team_id,w.rivalTeam.team_id]})):[]);function o(w){n.value=w}function s(w){D.value=w.index}function u(w){c.value=w,r("change-event-type",w)}function d(w){r("change-players",w)}function h({value:w,team:x}){x.isSelected=w}function g(w){r("click-play",w)}function b(w){const x=new Set;if(a.value=w.filter(S=>(S.isSelected&&x.add(S.game_id),S.isSelected)),a.value.length===1){const S=a.value[0];v.value=S.homeTeam,f.value=S.awayTeam}else v.value=i.teamSelected.isHomeTeam?i.homeTeam:{},f.value=i.teamSelected.isHomeTeam?{}:i.awayTeam,D.value=0;r("change-games",{gamesIds:x,availableTeamsIds:y.value,currentTeamGamesSelected:a.value})}return(w,x)=>(t.openBlock(),t.createElementBlock("div",RBt,[e.isGamePreMatch?(t.openBlock(),t.createElementBlock("div",VBt,[t.createVNode(t.unref(aq),t.mergeProps(m.value,{"filter-type":t.unref(er).GAMES,filters:l.value,"onUpdate:filters":b}),null,16,["filter-type","filters"])])):t.createCommentVNode("",!0),e.listType==="events"?(t.openBlock(),t.createElementBlock("div",$Bt,[t.createVNode(rq,{team:e.isGamePreMatch?_.value?e.selectedTeamData:e.rivalTeams:e.homeTeam,"teams-selected":e.isGamePreMatch?n.value:y.value,"is-game-pre-match":e.isGamePreMatch,"is-team-for-analysis":_.value,onChangeTeam:h},null,8,["team","teams-selected","is-game-pre-match","is-team-for-analysis"]),t.createVNode(rq,{team:e.isGamePreMatch?p.value?e.selectedTeamData:e.rivalTeams:e.awayTeam,"is-home-team":!1,"is-game-pre-match":e.isGamePreMatch,"teams-selected":e.isGamePreMatch?n.value:y.value,"is-team-for-analysis":p.value,onChangeTeam:h},null,8,["team","is-game-pre-match","teams-selected","is-team-for-analysis"])])):t.createCommentVNode("",!0),t.createElementVNode("div",jBt,[t.createVNode(g4,{"selected-button-index":D.value,buttons:B.value,width:"220px","border-radius":"16px",onChange:s},null,8,["selected-button-index","buttons"])]),t.createElementVNode("div",UBt,[D.value===0?(t.openBlock(),t.createElementBlock("div",GBt,[t.createVNode(yBt,{"list-events-to-display":e.isGamePreMatch?e.selectedTeamData.categories:e.listEventsToDisplay,"await-for-list-events":e.awaitForListEvents,"last-event-type-selected":c.value,"can-play-videos":e.canPlayVideos,"total-events":e.totalEvents,"total-events-privileges-vr":e.totalEventsPrivilegesVr,"is-privileges-vr-applicable":e.isPrivilegesVrApplicable,onChangeEventType:u,onClickPlay:g},null,8,["list-events-to-display","await-for-list-events","last-event-type-selected","can-play-videos","total-events","total-events-privileges-vr","is-privileges-vr-applicable"])])):(t.openBlock(),t.createElementBlock("div",HBt,[t.createVNode(DBt,{"is-female":e.isFemale,"available-players-by-team":e.availablePlayersByTeam,"home-team":e.isGamePreMatch?v.value:e.homeTeam,"away-team":e.isGamePreMatch?f.value:e.awayTeam,onChangeEventType:u,onChangePlayers:d},null,8,["is-female","available-players-by-team","home-team","away-team"])]))])]))}},[["__scopeId","data-v-86727bbf"]]),oq=["playId","playerId","teamId","gameId","categoryId","x1","y1","x2","y2","x3","y3","momentOfPlay","relatedPlayId","order","nationalityId","jersey"];let qE=null;function qBt(){return qE||(qE=qg(oq)),qE}const YBt=new Set([35,54]),sq=new Set(["35_r","54_r"]),P4={homeTeam:"#336dff",awayTeam:"#7ed321"},lq={homeTeam:"#fff",awayTeam:"#000"};class cq{constructor(r={},i=[],B=new Set,D=new Set,c=null,m=null){const a=YBt.has(r.categoryId);this.mainPlay=r,this.playEvents=i.sort((v,f)=>f.order-v.order),this.categoriesIds=B,this.playersIds=D,this.teamForAnalysis=m,this.mainCategoryId=a?`${r.categoryId}_r`:r.categoryId||0,this.mainPlay.isMainPlay=!0,this.playEvents.forEach(v=>{v.game=c})}setEventType(r){this.eventType=r,this.mainPlay.categoryName=r.singleName,this.playEvents.forEach(i=>{i.hasConnectionPath=this.eventType.prev!==0||this.eventType.post!==0})}getEventsConnectionsByEventType(){const r=this.playEvents.findIndex(i=>i.playId===this.mainPlay.playId);if(r>-1&&this.eventType){let i=r-this.eventType.post,B=r+this.eventType.prev;i<0&&(i=0),B>this.playEvents.length-1&&(B=this.playEvents.length-1);const D=this.playEvents.slice(i,B+1).reverse();return D.forEach((c,m)=>{m>0&&(c.previousEvent=D[m-1])}),D}return[]}hasMainCategory(r=new Set){return r.has(this.mainCategoryId)}hasCategories(r=new Set,i={homeTeamId:0,awayTeamId:0}){const B=[];return r.forEach(D=>{B.push(`${i.homeTeamId}-${D}`),B.push(`${i.awayTeamId}-${D}`)}),B.some(D=>this.teamEventsIndex.has(D))}hasPlayer(r=new Set){return r.has(this.mainPlay.playerId)}hasPlayers(r=new Set){return Array.from(r.values()).some(i=>this.playersIds.has(i))}hasTeam(r=new Set){return r.has(this.mainPlay.teamId)}getTeamColor(){let r=this.teamForAnalysis?this.teamForAnalysis.isHomeTeam?this.mainPlay.teamId===this.teamForAnalysis.teamId:this.mainPlay.teamId!==this.teamForAnalysis.teamId:this.mainPlay.team.isHomeTeam;return sq.has(this.mainPlay.categoryId)&&(r=!r),r?P4.homeTeam:P4.awayTeam}getEventColor(r){return(this.teamForAnalysis?this.teamForAnalysis.isHomeTeam?r.teamId===this.teamForAnalysis.teamId:r.teamId!==this.teamForAnalysis.teamId:r.team.isHomeTeam)?P4.homeTeam:P4.awayTeam}getTeamFontColor(){let r=this.teamForAnalysis?this.teamForAnalysis.isHomeTeam?this.mainPlay.teamId===this.teamForAnalysis.teamId:this.mainPlay.teamId!==this.teamForAnalysis.teamId:this.mainPlay.team.isHomeTeam;return sq.has(this.mainPlay.categoryId)&&(r=!r),r?lq.homeTeam:lq.awayTeam}getSingleName(r){return r.split(" ").reduce((B,D)=>{let c=D;return D.endsWith("minaron")?c=D.replace("minaron","minó"):D.endsWith("vocan")?c=D.replace("vocan","voca"):D.endsWith("lones")?c=D.replace("lones","lón"):D.endsWith("oles")?c=D.replace("oles","ol"):(D.endsWith("os")||D.endsWith("as")||D.endsWith("es"))&&(c=D.slice(0,D.length-1)),B.push(c),B},[]).join(" ")}}const XBt=new Map([[1,{matchDayId:1,matchDayName:"Jornada 1",matchDayAbbreviation:"J1",matchDayAbbreviation2:"JOR 1"}],[2,{matchDayId:2,matchDayName:"Jornada 2",matchDayAbbreviation:"J2",matchDayAbbreviation2:"JOR 2"}],[3,{matchDayId:3,matchDayName:"Jornada 3",matchDayAbbreviation:"J3",matchDayAbbreviation2:"JOR 3"}],[4,{matchDayId:4,matchDayName:"Jornada 4",matchDayAbbreviation:"J4",matchDayAbbreviation2:"JOR 4"}],[5,{matchDayId:5,matchDayName:"Jornada 5",matchDayAbbreviation:"J5",matchDayAbbreviation2:"JOR 5"}],[6,{matchDayId:6,matchDayName:"Jornada 6",matchDayAbbreviation:"J6",matchDayAbbreviation2:"JOR 6"}],[7,{matchDayId:7,matchDayName:"Jornada 7",matchDayAbbreviation:"J7",matchDayAbbreviation2:"JOR 7"}],[8,{matchDayId:8,matchDayName:"Jornada 8",matchDayAbbreviation:"J8",matchDayAbbreviation2:"JOR 8"}],[9,{matchDayId:9,matchDayName:"Jornada 9",matchDayAbbreviation:"J9",matchDayAbbreviation2:"JOR 9"}],[10,{matchDayId:10,matchDayName:"Jornada 10",matchDayAbbreviation:"J10",matchDayAbbreviation2:"JOR 10"}],[11,{matchDayId:11,matchDayName:"Jornada 11",matchDayAbbreviation:"J11",matchDayAbbreviation2:"JOR 11"}],[12,{matchDayId:12,matchDayName:"Jornada 12",matchDayAbbreviation:"J12",matchDayAbbreviation2:"JOR 12"}],[13,{matchDayId:13,matchDayName:"Jornada 13",matchDayAbbreviation:"J13",matchDayAbbreviation2:"JOR 13"}],[14,{matchDayId:14,matchDayName:"Jornada 14",matchDayAbbreviation:"J14",matchDayAbbreviation2:"JOR 14"}],[15,{matchDayId:15,matchDayName:"Jornada 15",matchDayAbbreviation:"J15",matchDayAbbreviation2:"JOR 15"}],[16,{matchDayId:16,matchDayName:"Jornada 16",matchDayAbbreviation:"J16",matchDayAbbreviation2:"JOR 16"}],[17,{matchDayId:17,matchDayName:"Jornada 17",matchDayAbbreviation:"J17",matchDayAbbreviation2:"JOR 17"}],[18,{matchDayId:18,matchDayName:"Cuartos de Final Ida",matchDayAbbreviation:"CFI",matchDayAbbreviation2:"CFI"}],[19,{matchDayId:19,matchDayName:"Cuartos de Final Vuelta",matchDayAbbreviation:"CFV",matchDayAbbreviation2:"CFV"}],[20,{matchDayId:20,matchDayName:"Semifinal Ida",matchDayAbbreviation:"SFI",matchDayAbbreviation2:"SFI"}],[21,{matchDayId:21,matchDayName:"Semifinal Vuelta",matchDayAbbreviation:"SFV",matchDayAbbreviation2:"SFV"}],[22,{matchDayId:22,matchDayName:"Final Ida",matchDayAbbreviation:"FI",matchDayAbbreviation2:"FI"}],[86,{matchDayId:86,matchDayName:"Final Vuelta",matchDayAbbreviation:"FV",matchDayAbbreviation2:"FV"}],[182,{matchDayId:182,matchDayName:"Play In 1",matchDayAbbreviation:"PI1",matchDayAbbreviation2:"PI1"}],[183,{matchDayId:183,matchDayName:"Play In 2",matchDayAbbreviation:"PI2",matchDayAbbreviation2:"PI2"}],[184,{matchDayId:184,matchDayName:"Repechaje",matchDayAbbreviation:"R",matchDayAbbreviation2:"R"}]]),ZBt=new Map([[1,{matchDayId:1,matchDayName:"Jornada 1",matchDayAbbreviation:"J1"}],[2,{matchDayId:2,matchDayName:"Jornada 2",matchDayAbbreviation:"J2"}],[3,{matchDayId:3,matchDayName:"Jornada 3",matchDayAbbreviation:"J3"}],[4,{matchDayId:4,matchDayName:"Jornada 4",matchDayAbbreviation:"J4"}],[5,{matchDayId:5,matchDayName:"Jornada 5",matchDayAbbreviation:"J5"}],[6,{matchDayId:6,matchDayName:"Jornada 6",matchDayAbbreviation:"J6"}],[181,{matchDayId:181,matchDayName:"16vos de Final",matchDayAbbreviation:"DF"}],[176,{matchDayId:176,matchDayName:"Octavos de Final",matchDayAbbreviation:"OF"}],[177,{matchDayId:177,matchDayName:"Cuartos de Final",matchDayAbbreviation:"CF"}],[178,{matchDayId:178,matchDayName:"Semifinales",matchDayAbbreviation:"SF"}],[179,{matchDayId:179,matchDayName:"Tercer lugar",matchDayAbbreviation:"3ER"}],[180,{matchDayId:180,matchDayName:"Final",matchDayAbbreviation:"FINAL"}]]),JBt=new Map([[1,{matchDayId:1,matchDayName:"16vos de Final Ida",matchDayAbbreviation:"DFI"}],[2,{matchDayId:2,matchDayName:"16vos de Final Vuelta",matchDayAbbreviation:"DFV"}],[3,{matchDayId:3,matchDayName:"Octavos de Final Ida",matchDayAbbreviation:"OFI"}],[4,{matchDayId:4,matchDayName:"Octavos de Final Vuelta",matchDayAbbreviation:"OFV"}],[5,{matchDayId:5,matchDayName:"Cuartos de Final Ida",matchDayAbbreviation:"CFI"}],[6,{matchDayId:6,matchDayName:"Cuartos de Final Vuelta",matchDayAbbreviation:"CFV"}],[7,{matchDayId:7,matchDayName:"Semifinales Ida",matchDayAbbreviation:"SFI"}],[8,{matchDayId:8,matchDayName:"Semifinales Vuelta",matchDayAbbreviation:"SFV"}],[10,{matchDayId:10,matchDayName:"Final",matchDayAbbreviation:"FINAL"}]]),KBt=new Map([[0,XBt],[1,ZBt],[2,JBt]]),nga="",E1=e=>(t.pushScopeId("data-v-69fcd881"),e=e(),t.popScopeId(),e),QBt={class:"chalkboard-section-container"},eNt={key:0,class:"chalkboard-section-container__pre-match-header"},tNt={key:0,class:"container-info-text-pre-match"},aNt=E1(()=>t.createElementVNode("span",{class:"info-text-bold"},"IMPORTANTE:",-1)),nNt={key:1,class:"container-info-text-pre-match-mobile"},rNt=E1(()=>t.createElementVNode("span",{class:"info-text-bold"},"IMPORTANTE:",-1)),iNt=E1(()=>t.createElementVNode("br",null,null,-1)),oNt=E1(()=>t.createElementVNode("br",null,null,-1)),sNt={key:2,class:"container-info-text-pre-match-mobile"},lNt=E1(()=>t.createElementVNode("span",{class:"info-text-bold"},"IMPORTANTE:",-1)),cNt=E1(()=>t.createElementVNode("br",null,null,-1)),dNt=E1(()=>t.createElementVNode("br",null,null,-1)),uNt={class:"section-container"},hNt={class:"section-container__left-column"},pNt={class:"chalkboard-component"},fNt={class:"categories-time-line-component"},mNt={class:"total-events"},gNt={class:"section-container__right-column"},yNt=$i({__name:"ChalkboardSectionContainer",props:{isFemale:{type:Boolean,default:!1},game:{type:Object,default:()=>({})},seasonSelected:{type:Object,default:()=>({})},tournamentSelected:{type:Object,default:()=>({})},token:{type:String,default:""},canPlayVideos:{type:Boolean,default:!0},widthSection:{type:Number,default:0},isGamePreMatch:{type:Boolean,default:!1},playVideosPrivileges:{type:Object,default:null},chalkboardIntervalMinutes:{type:Number,default:2}},emits:["open-media-player"],setup(e,{emit:r}){const i=e;let B=null;const D=qBt(),c=t.ref({teamId:0}),m=t.ref(0),a=t.ref({}),v=t.ref({}),f=t.ref([]),n=t.ref({value:""}),y=t.ref([]),_=t.ref([]),p=t.ref(new Map),l=t.ref(new Map),o=t.ref("events"),s=t.ref(new Set),u=t.ref(new Set),d=t.ref([]),h=new Map,g=t.ref({}),b=t.ref({isSelected:!0,colloquialName:"Rival"}),w=t.ref(new Set),x=t.ref(new Set),S=t.ref(new Set),k=t.ref(0),T=new Set,C=t.computed(()=>[{teamId:i.game.homeTeam.team_id,text:i.game.homeTeam.colloquial_name,img:i.game.homeTeam.logo,isHomeTeam:!0},{teamId:i.game.awayTeam.team_id,text:i.game.awayTeam.colloquial_name,img:i.game.awayTeam.logo,isHomeTeam:!1}]),A=t.computed(()=>y.value.reduce((ue,he)=>((o.value==="events"&&u.value.has(he.mainPlay.teamId)||o.value==="players"&&s.value.has(he.mainPlay.playerId))&&ue++,ue),0)),E=t.computed(()=>i.isGamePreMatch&&i.playVideosPrivileges),M=t.computed(()=>E.value?y.value.reduce((ue,he)=>((o.value==="events"&&u.value.has(he.mainPlay.teamId)||o.value==="players"&&s.value.has(he.mainPlay.playerId))&&x.value.has(he.mainPlay.gameId)&&ue++,ue),0):0),I=t.computed(()=>`${n.value.name}: ${A.value}`),N=t.computed(()=>i.isGamePreMatch?i.playVideosPrivileges?z():i.canPlayVideos:i.playVideosPrivileges?i.canPlayVideos&&u.value.has(i.playVideosPrivileges.seasonAndPrivileges.teamId):i.canPlayVideos);t.watch(()=>c.value.teamId,ue=>{if(i.isGamePreMatch&&ue){g.value&&!g.value.isSelected&&(g.value.isSelected=!0),b.value.isSelected=!0,g.value=h.get(ue);const he=new Set,pe=new Set;g.value&&(g.value.games.forEach(me=>{me.isSelected&&(he.add(me.id),pe.add(me.team.team_id),pe.add(me.rivalTeam.team_id))}),ae({gamesIds:he,availableTeamsIds:pe}))}},{immediate:!0}),t.watch(()=>i.game.gameId,ue=>{ue&&(a.value={...i.game.homeTeam,isSelected:!0},v.value={...i.game.awayTeam,isSelected:!0},S.value=new Set,V(),i.game.game_status===4&&!i.game.is_live?U():Z(ue,i.game.is_live&&i.game.game_status===4))},{immediate:!0}),t.watch(()=>C.value,()=>{m.value=0,c.value=C.value[m.value]},{immediate:!0,deep:!0}),t.watch(()=>n.value.value,()=>{i.isGamePreMatch?ee():(p.value=new Map([[i.game.homeTeam.team_id,[]],[i.game.awayTeam.team_id,[]]]),n.value.name&&R(_.value))},{immediate:!0,deep:!0});function z(){return d.value&&c.value&&i.playVideosPrivileges&&i.playVideosPrivileges.seasonAndPrivileges&&c.value.teamId===i.playVideosPrivileges.seasonAndPrivileges.teamId?d.value.reduce((he,pe)=>{if(pe.home_team===c.value.teamId||pe.visiting_team===c.value.teamId){const me=pe.home_team===c.value.teamId?1:2;i.playVideosPrivileges.seasonAndPrivileges.playingAs.has(me)&&he++}return he},0)>0&&u.value.has(c.value.teamId):!1}function F(){B=setInterval(()=>{Z(i.game.gameId)},1e3*60*i.chalkboardIntervalMinutes)}function R(ue){const he=new Set;y.value=[],ue.forEach(pe=>{pe.hasMainCategory(n.value.categories)&&(pe.setEventType(n.value),y.value.push(pe),he.add(pe.mainPlay.playerId))}),he.forEach(pe=>{const me=l.value.get(pe);if(me){const _e=p.value.get(me.team_id);_e.find(we=>we.player_id===me.player_id)||_e.push({...me,isSelected:!0})}})}function V(){B&&(clearInterval(B),B=null)}function $({isHomeTeam:ue,acronym:he,team_id:pe,team_name:me,colloquial_name:_e,logo:xe,categories:we,data:Ee,games:Pe,players:$e,teams:Te}){const Ce={logo:xe,acronym:he,categories:we,teamId:pe,name:me,colloquialName:_e,isSelected:!0,availablePlayersMap:new Map},ye=KBt.get(i.tournamentSelected.tournament_type),ge=Object.values(Te).reduce((De,Ue)=>(De.set(Ue.team_id,{...Ue,colloquial_name:Ue.colloquial_name||Ue.team_name}),De),new Map),Me=Object.values($e).reduce((De,Ue)=>{Ce.availablePlayersMap.set(Ue.player_id,{...Ue});const Ne=De.get(Ue.team_id);return Ne?Ne.set(Ue.player_id,{...Ue}):De.set(Ue.team_id,new Map([[Ue.player_id,{...Ue}]])),De},new Map),Se=Pe.reduce((De,Ue,Ne)=>{const ke=ye.get(Ue.matchday_id),Oe={...Ue,dateTimeMillis:new Date(Ue.date_time_utc).getTime(),id:Ue.game_id,roundAbbreviation:ke?ke.matchDayAbbreviation:"",playingAs:c.value.id===Ue.home_team?1:2,team:c.value.teamId===Ue.home_team?ge.get(Ue.home_team):ge.get(Ue.visiting_team),rivalTeam:c.value.teamId===Ue.home_team?ge.get(Ue.visiting_team):ge.get(Ue.home_team),homeTeam:ge.get(Ue.home_team),awayTeam:ge.get(Ue.visiting_team),playersSelected:new Set,eventsConnectionsBase:[],availablePlayersByTeamMap:new Map([[Ue.home_team,Me.get(Ue.home_team)],[Ue.visiting_team,Me.get(Ue.visiting_team)]]),availableTeamsByTeamMapSimple:new Map([[Ue.home_team,Array.from(Me.get(Ue.home_team).values())],[Ue.visiting_team,Array.from(Me.get(Ue.visiting_team).values())]]),teamsMap:new Map([[Ue.home_team,ge.get(Ue.home_team)],[Ue.visiting_team,ge.get(Ue.visiting_team)]]),isSelected:Ne<4};return De.set(Ue.game_id,Oe),De},new Map),ze=new Map([[C.value[0].teamId,C.value[0]],[C.value[1].teamId,C.value[1]]]),Fe=W(Ee,Se,ue);return Ce.games=Array.from(Se.values()).map(De=>{const Ue=[],Ne=Fe.get(De.id);return Ne&&Array.from(Ne.values()).forEach(ke=>{ke.mainPlay&&(ke.mainPlay.gameAux={homeTeam:De.homeTeam,awayTeam:De.awayTeam},Ue.push(new cq(ke.mainPlay,ke.events,ke.categoriesIds,ke.playersIds,{homeTeam:De.homeTeam,awayTeam:De.awayTeam,roundAbbreviation:De.roundAbbreviation},ze.get(pe))))}),{...De,eventsConnectionsBase:Ue}}),Ce}async function U(){try{(await X()).forEach((he,pe)=>{pe===0&&(he.isHomeTeam=!0),h.set(he.team_id,$(he))}),g.value&&!g.value.isSelected&&(g.value.isSelected=!0),b.value.isSelected=!0,g.value=h.get(c.value.teamId)}catch(ue){throw new Error(ue)}}async function Z(ue,he=!1){try{const pe=ue===k.value,{categories:me,data:_e,players:xe,teams:we}=await J(ue);let Ee=_e;const Pe=[];pe.value||(f.value=me,k.value=ue,_.value=[],T.clear()),Ee=_e.filter(Ce=>{const ye=`${Ce[D.relatedPlayId]}-${Ce[D.playId]}`,ge=T.has(ye);return ge||T.add(ye),!ge}),l.value=Object.values(xe).reduce((Ce,ye)=>(Ce.set(ye.player_id,{...ye}),Ce),new Map);const $e=Object.values(we).reduce((Ce,ye)=>(Ce.set(ye.team_id,{...ye,isHomeTeam:i.game.homeTeam.team_id===ye.team_id}),Ce),new Map),Te=Q(Ee,l.value,$e);Array.from(Te.values()).forEach(Ce=>{if(Ce.mainPlay){Ce.mainPlay.gameAux={homeTeam:$e.get(i.game.homeTeam.team_id),awayTeam:$e.get(i.game.awayTeam.team_id)};const ye=new cq(Ce.mainPlay,Ce.events,Ce.categoriesIds,Ce.playersIds);_.value.push(ye),Pe.push(ye)}}),Pe.length&&R(Pe),he&&F()}catch(pe){throw new Error(pe)}}function q(ue){return ue.reduce((he,pe,me)=>(he[oq[me]]=pe,he),{})}function W(ue,he,pe){return ue.reduce((_e,xe)=>{const we=q(xe),Ee=he.get(we.gameId);if(Ee){const Pe=we.relatedPlayId===we.playId,$e=_e.get(we.gameId),Te=Ee.availablePlayersByTeamMap.get(we.teamId);if(pe||(we.x1=1-we.x1,we.x2=1-we.x2,we.x3=1-we.x3,we.y1=1-we.y1,we.y2=1-we.y2,we.y3=1-we.y3),we.player=Te?Te.get(we.playerId):{},we.team=Ee.teamsMap.get(we.teamId)||{},$e){const Ce=$e.get(we.relatedPlayId);if(Ce)Pe&&(Ce.mainPlay=we),Ce.playsIds.has(we.playId)||(Ce.events.push(we),Ce.categoriesIds.add(we.categoryId),Ce.playersIds.add(we.playerId),Ce.playsIds.add(we.playId),Ce.players.push(we.player));else{const ye={events:[we],categoriesIds:new Set([we.categoryId]),playersIds:new Set([we.playerId]),playsIds:new Set([we.playId]),players:[we.player]};Pe&&(ye.mainPlay=we),$e.set(we.relatedPlayId,ye)}}else{const Ce=new Map,ye={events:[we],categoriesIds:new Set([we.categoryId]),playersIds:new Set([we.playerId]),playsIds:new Set([we.playId]),players:[we.player]};Pe&&(ye.mainPlay=we),Ce.set(we.relatedPlayId,ye),_e.set(we.gameId,Ce)}}return _e},new Map)}function Q(ue,he,pe){const me=ue.reduce((_e,xe)=>{const we=q(xe),Ee=_e.get(we.relatedPlayId),Pe=we.relatedPlayId===we.playId;if(we.player=he.get(we.playerId),we.team=pe.get(we.teamId),Ee)Pe&&(Ee.mainPlay=we),Ee.playsIds.has(we.playId)||(Ee.events.push(we),Ee.categoriesIds.add(we.categoryId),Ee.playersIds.add(we.playerId),Ee.playsIds.add(we.playId),Ee.players.push(we.player));else{const $e={events:[we],categoriesIds:new Set([we.categoryId]),playersIds:new Set([we.playerId]),playsIds:new Set([we.playId]),players:[we.player]};Pe&&($e.mainPlay=we),_e.set(we.relatedPlayId,$e)}return _e},new Map);return Array.from(me.values()).forEach(_e=>{_e.events.sort((xe,we)=>we.order-xe.order)}),me}async function X(){try{const ue={headers:{Authorization:""}},[he,pe]=await Promise.all([$c.get(`https://golstats-microservices.s3.us-west-2.amazonaws.com/chalkboard/chalkboard_${i.seasonSelected.id}_${i.game.homeTeam.team_id}.json`,ue),$c.get(`https://golstats-microservices.s3.us-west-2.amazonaws.com/chalkboard/chalkboard_${i.seasonSelected.id}_${i.game.awayTeam.team_id}.json`,ue)]);return[he.data,pe.data]}catch(ue){throw new Error(ue)}}async function J(ue){try{return(await $c.get(`https://df43gcr5d6.execute-api.us-east-2.amazonaws.com/prod/chalkboard/seasons/${i.seasonSelected.id}/games/${ue}`,{headers:{Authorization:i.token}})).data}catch(he){throw new Error(he)}}function ee(){if(g.value&&g.value.games&&g.value.games.length>0){const ue=new Set;p.value=new Map,y.value=[],g.value.games.forEach(he=>{w.value.has(he.id)&&he.eventsConnectionsBase.forEach(pe=>{pe.hasMainCategory(n.value.categories)&&(pe.setEventType(n.value),y.value.push(pe),ue.add(pe.mainPlay.playerId))})}),ue.forEach(he=>{const pe=g.value.availablePlayersMap.get(he);if(pe){const me=p.value.get(pe.team_id);me?me.find(_e=>_e.player_id===pe.player_id)||me.push({...pe,isSelected:!0}):p.value.set(pe.team_id,[{...pe,isSelected:!0}])}})}}function le(ue){n.value=ue}function oe(ue){o.value=ue,ue==="events"&&(a.value.isSelected=!0,v.value.isSelected=!0)}function se(ue){s.value=ue}function ce(ue){u.value=ue}function ae({gamesIds:ue,availableTeamsIds:he,currentTeamGamesSelected:pe}){w.value=ue,u.value=he,d.value=pe,i.isGamePreMatch&&(x.value.clear(),i.playVideosPrivileges&&i.playVideosPrivileges.seasonAndPrivileges?pe.forEach(me=>{const _e=me.home_team===i.playVideosPrivileges.seasonAndPrivileges.teamId?1:me.visiting_team===i.playVideosPrivileges.seasonAndPrivileges.teamId?2:0;i.playVideosPrivileges.seasonAndPrivileges.playingAs.has(_e)&&x.value.add(me.game_id)}):x.value=ue),ee()}function ne(ue){m.value=ue.index,c.value=ue.button}function ie(ue){const he={seasonId:i.seasonSelected.id,isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIdsToFilter:i.isGamePreMatch?Array.from(w.value.values()):[i.game.gameId],playerIds:[],teamIdsToFilter:Array.from(u.value.values()),categoryIds:ue,teamId:i.isGamePreMatch?null:u.value.size===1?Array.from(u.value)[0]:0,matchResult:[1,2,3],currentPlayIndex:0};r("open-media-player",he)}return(ue,he)=>(t.openBlock(),t.createElementBlock("div",QBt,[e.isGamePreMatch?(t.openBlock(),t.createElementBlock("div",eNt,[e.widthSection>590?(t.openBlock(),t.createElementBlock("div",tNt,[aNt,t.createTextVNode("  Es en base a las estadísticas de los partidos ya jugados en el torneo. ")])):t.createCommentVNode("",!0),e.widthSection>340&&e.widthSection<=590?(t.openBlock(),t.createElementBlock("div",nNt,[rNt,t.createTextVNode("  "),iNt,t.createTextVNode("Es en base a las estadísticas de los partidos ya "),oNt,t.createTextVNode(" jugados en el torneo. ")])):t.createCommentVNode("",!0),e.widthSection<=340?(t.openBlock(),t.createElementBlock("div",sNt,[lNt,t.createTextVNode("  "),cNt,t.createTextVNode("Es en base a las estadísticas de los "),dNt,t.createTextVNode("partidos ya jugados en el torneo. ")])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.widthSection>420?"container-switch-pre-match-teams":"container-switch-pre-match-teams-mobile")},[t.createVNode(g4,{"selected-button-index":m.value,buttons:C.value,width:"320px","border-radius":"16px",onChange:ne},null,8,["selected-button-index","buttons"])],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",uNt,[t.createElementVNode("div",hNt,[t.createElementVNode("div",pNt,[t.createVNode(K4t,{"events-connections":y.value,"list-type":o.value,"players-selected":s.value,"teams-selected":u.value,"is-game-pre-match":e.isGamePreMatch},null,8,["events-connections","list-type","players-selected","teams-selected","is-game-pre-match"])]),t.createElementVNode("div",fNt,[t.createVNode(s6t,{"events-connections":y.value,"list-type":o.value,"players-selected":s.value,"teams-selected":u.value,"is-game-pre-match":e.isGamePreMatch},null,8,["events-connections","list-type","players-selected","teams-selected","is-game-pre-match"])]),t.createElementVNode("div",mNt,t.toDisplayString(I.value),1)]),t.createElementVNode("div",gNt,[t.createVNode(WBt,{"is-female":e.isFemale,"home-team":a.value,"away-team":v.value,"tournament-selected":e.tournamentSelected,"list-events-to-display":f.value,"available-players-by-team":p.value,"list-type":o.value,"can-play-videos":N.value,"is-game-pre-match":e.isGamePreMatch,"selected-team-data":g.value,"rival-teams":b.value,"team-selected":c.value,"total-events":A.value,"total-events-privileges-vr":M.value,"is-privileges-vr-applicable":E.value,"await-for-list-events":"",onChangeEventType:le,onChangeListType:oe,onChangePlayers:se,onChangeTeams:ce,onChangeGames:ae,onClickPlay:ie},null,8,["is-female","home-team","away-team","tournament-selected","list-events-to-display","available-players-by-team","list-type","can-play-videos","is-game-pre-match","selected-team-data","rival-teams","team-selected","total-events","total-events-privileges-vr","is-privileges-vr-applicable"])])])]))}},[["__scopeId","data-v-69fcd881"]]);var dq={exports:{}};(function(e,r){/*! For license information please see plotly.min.js.LICENSE.txt */(function(i,B){e.exports=B()})(self,function(){return function(){var i={6713:function(c,m,a){var v=a(34809),f={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;',"X input,X button":'font-family:"Open Sans",verdana,arial,sans-serif;',"X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":'content:"";position:absolute;background:rgba(0,0,0,0);border:6px solid rgba(0,0,0,0);z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',"X [data-title]:after":"content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px;",Y:'font-family:"Open Sans",verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',"Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var n in f){var y=n.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");v.addStyleRule(y,f[n])}},14187:function(c,m,a){c.exports=a(47908)},20273:function(c,m,a){c.exports=a(58218)},6457:function(c,m,a){c.exports=a(89362)},15849:function(c,m,a){c.exports=a(53794)},38847:function(c,m,a){c.exports=a(29698)},7659:function(c,m,a){c.exports=a(51252)},60089:function(c,m,a){c.exports=a(48050)},22084:function(c,m,a){c.exports=a(58075)},35892:function(c,m,a){c.exports=a(9419)},81204:function(c,m,a){c.exports=a(28128)},55857:function(c,m,a){c.exports=a(47050)},12862:function(c,m,a){c.exports=a(91405)},97629:function(c,m,a){c.exports=a(34406)},67549:function(c,m,a){c.exports=a(17430)},2660:function(c,m,a){c.exports=a(91995)},86071:function(c,m,a){c.exports=a(81264)},66200:function(c,m,a){c.exports=a(42849)},53446:function(c,m,a){c.exports=a(52213)},86899:function(c,m,a){c.exports=a(91132)},13430:function(c,m,a){c.exports=a(50453)},21548:function(c,m,a){c.exports=a(29251)},53939:function(c,m,a){c.exports=a(72892)},1902:function(c,m,a){c.exports=a(74461)},29096:function(c,m,a){c.exports=a(66143)},23820:function(c,m,a){c.exports=a(81955)},82017:function(c,m,a){c.exports=a(36858)},113:function(c,m,a){c.exports=a(92106)},20260:function(c,m,a){var v=a(67549);v.register([a(20273),a(15849),a(21548),a(1902),a(29096),a(23820),a(12862),a(1639),a(10067),a(53446),a(31014),a(113),a(78170),a(8202),a(92382),a(82017),a(86899),a(54357),a(66903),a(90594),a(71680),a(7412),a(55857),a(784),a(74221),a(22084),a(44001),a(97281),a(12345),a(53939),a(29117),a(5410),a(5057),a(81204),a(86071),a(14226),a(35892),a(2660),a(96599),a(28573),a(76832),a(60089),a(51469),a(97629),a(27700),a(7659),a(11780),a(27195),a(6457),a(84639),a(14187),a(66200),a(13430),a(90590),a(38847)]),c.exports=v},28573:function(c,m,a){c.exports=a(25638)},90594:function(c,m,a){c.exports=a(75297)},7412:function(c,m,a){c.exports=a(58859)},27700:function(c,m,a){c.exports=a(12683)},5410:function(c,m,a){c.exports=a(6305)},29117:function(c,m,a){c.exports=a(83910)},78170:function(c,m,a){c.exports=a(49913)},12345:function(c,m,a){c.exports=a(15186)},96599:function(c,m,a){c.exports=a(71760)},54357:function(c,m,a){c.exports=a(17822)},51469:function(c,m,a){c.exports=a(56534)},74221:function(c,m,a){c.exports=a(18070)},44001:function(c,m,a){c.exports=a(52378)},14226:function(c,m,a){c.exports=a(30929)},5057:function(c,m,a){c.exports=a(83866)},11780:function(c,m,a){c.exports=a(66939)},27195:function(c,m,a){c.exports=a(23748)},84639:function(c,m,a){c.exports=a(73304)},1639:function(c,m,a){c.exports=a(12864)},90590:function(c,m,a){c.exports=a(99855)},97281:function(c,m,a){c.exports=a(91450)},784:function(c,m,a){c.exports=a(51943)},8202:function(c,m,a){c.exports=a(80809)},66903:function(c,m,a){c.exports=a(95984)},76832:function(c,m,a){c.exports=a(51671)},92382:function(c,m,a){c.exports=a(47181)},10067:function(c,m,a){c.exports=a(37276)},71680:function(c,m,a){c.exports=a(75703)},31014:function(c,m,a){c.exports=a(38261)},11645:function(c){c.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},50222:function(c,m,a){var v=a(11645),f=a(80337),n=a(54826),y=a(78032).templatedArray;a(35081),c.exports=y("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:v.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:v.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",n.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",n.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",n.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",n.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:f({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},60317:function(c,m,a){var v=a(34809),f=a(29714),n=a(3377).draw;function y(p){var l=p._fullLayout;v.filterVisible(l.annotations).forEach(function(o){var s=f.getFromId(p,o.xref),u=f.getFromId(p,o.yref),d=f.getRefType(o.xref),h=f.getRefType(o.yref);o._extremes={},d==="range"&&_(o,s),h==="range"&&_(o,u)})}function _(p,l){var o,s=l._id,u=s.charAt(0),d=p[u],h=p["a"+u],g=p[u+"ref"],b=p["a"+u+"ref"],w=p["_"+u+"padplus"],x=p["_"+u+"padminus"],S={x:1,y:-1}[u]*p[u+"shift"],k=3*p.arrowsize*p.arrowwidth||0,T=k+S,C=k-S,A=3*p.startarrowsize*p.arrowwidth||0,E=A+S,M=A-S;if(b===g){var I=f.findExtremes(l,[l.r2c(d)],{ppadplus:T,ppadminus:C}),N=f.findExtremes(l,[l.r2c(h)],{ppadplus:Math.max(w,E),ppadminus:Math.max(x,M)});o={min:[I.min[0],N.min[0]],max:[I.max[0],N.max[0]]}}else E=h?E+h:E,M=h?M-h:M,o=f.findExtremes(l,[l.r2c(d)],{ppadplus:Math.max(w,T,E),ppadminus:Math.max(x,C,M)});p._extremes[s]=o}c.exports=function(p){var l=p._fullLayout;if(v.filterVisible(l.annotations).length&&p._fullData.length)return v.syncOrAsync([n,y],p)}},6035:function(c,m,a){var v=a(34809),f=a(33626),n=a(78032).arrayEditor;function y(p,l){var o,s,u,d,h,g,b,w=p._fullLayout.annotations,x=[],S=[],k=[],T=(l||[]).length;for(o=0;o<w.length;o++)if(d=(u=w[o]).clicktoshow){for(s=0;s<T;s++)if(g=(h=l[s]).xaxis,b=h.yaxis,g._id===u.xref&&b._id===u.yref&&g.d2r(h.x)===_(u._xclick,g)&&b.d2r(h.y)===_(u._yclick,b)){(u.visible?d==="onout"?S:k:x).push(o);break}s===T&&u.visible&&d==="onout"&&S.push(o)}return{on:x,off:S,explicitOff:k}}function _(p,l){return l.type==="log"?l.l2r(p):l.d2r(p)}c.exports={hasClickToShow:function(p,l){var o=y(p,l);return o.on.length>0||o.explicitOff.length>0},onClick:function(p,l){var o,s,u=y(p,l),d=u.on,h=u.off.concat(u.explicitOff),g={},b=p._fullLayout.annotations;if(d.length||h.length){for(o=0;o<d.length;o++)(s=n(p.layout,"annotations",b[d[o]])).modifyItem("visible",!0),v.extendFlat(g,s.getUpdateObj());for(o=0;o<h.length;o++)(s=n(p.layout,"annotations",b[h[o]])).modifyItem("visible",!1),v.extendFlat(g,s.getUpdateObj());return f.call("update",p,{},g)}}}},53271:function(c,m,a){var v=a(34809),f=a(78766);c.exports=function(n,y,_,p){p("opacity");var l=p("bgcolor"),o=p("bordercolor"),s=f.opacity(o);p("borderpad");var u=p("borderwidth"),d=p("showarrow");if(p("text",d?" ":_._dfltTitle.annotation),p("textangle"),v.coerceFont(p,"font",_.font),p("width"),p("align"),p("height")&&p("valign"),d){var h,g,b=p("arrowside");b.indexOf("end")!==-1&&(h=p("arrowhead"),g=p("arrowsize")),b.indexOf("start")!==-1&&(p("startarrowhead",h),p("startarrowsize",g)),p("arrowcolor",s?y.bordercolor:f.defaultLine),p("arrowwidth",2*(s&&u||1)),p("standoff"),p("startstandoff")}var w=p("hovertext"),x=_.hoverlabel||{};if(w){var S=p("hoverlabel.bgcolor",x.bgcolor||(f.opacity(l)?f.rgb(l):f.defaultLine)),k=p("hoverlabel.bordercolor",x.bordercolor||f.contrast(S)),T=v.extendFlat({},x.font);T.color||(T.color=k),v.coerceFont(p,"hoverlabel.font",T)}p("captureevents",!!w)}},59741:function(c,m,a){var v=a(10721),f=a(8083);c.exports=function(n,y,_,p){y=y||{};var l=_==="log"&&y.type==="linear",o=_==="linear"&&y.type==="log";if(l||o)for(var s,u,d=n._fullLayout.annotations,h=y._id.charAt(0),g=0;g<d.length;g++)s=d[g],u="annotations["+g+"].",s[h+"ref"]===y._id&&b(h),s["a"+h+"ref"]===y._id&&b("a"+h);function b(w){var x=s[w],S=null;S=l?f(x,y.range):Math.pow(10,x),v(S)||(S=null),p(u+w,S)}}},63737:function(c,m,a){var v=a(34809),f=a(29714),n=a(59008),y=a(53271),_=a(50222);function p(l,o,s){function u(N,z){return v.coerce(l,o,_,N,z)}var d=u("visible"),h=u("clicktoshow");if(d||h){y(l,o,s,u);for(var g=o.showarrow,b=["x","y"],w=[-10,-30],x={_fullLayout:s},S=0;S<2;S++){var k=b[S],T=f.coerceRef(l,o,x,k,"","paper");if(T!=="paper"&&f.getFromId(x,T)._annIndices.push(o._index),f.coercePosition(o,x,u,T,k,.5),g){var C="a"+k,A=f.coerceRef(l,o,x,C,"pixel",["pixel","paper"]);A!=="pixel"&&A!==T&&(A=o[C]="pixel");var E=A==="pixel"?w[S]:.4;f.coercePosition(o,x,u,A,C,E)}u(k+"anchor"),u(k+"shift")}if(v.noneOrAll(l,o,["x","y"]),g&&v.noneOrAll(l,o,["ax","ay"]),h){var M=u("xclick"),I=u("yclick");o._xclick=M===void 0?o.x:f.cleanPosition(M,x,o.xref),o._yclick=I===void 0?o.y:f.cleanPosition(I,x,o.yref)}}}c.exports=function(l,o){n(l,o,{name:"annotations",handleItemDefaults:p})}},3377:function(c,m,a){var v=a(45568),f=a(33626),n=a(44122),y=a(34809),_=y.strTranslate,p=a(29714),l=a(78766),o=a(62203),s=a(32141),u=a(30635),d=a(27983),h=a(14751),g=a(78032).arrayEditor,b=a(23768);function w(k,T){var C=k._fullLayout.annotations[T]||{},A=p.getFromId(k,C.xref),E=p.getFromId(k,C.yref);A&&A.setScale(),E&&E.setScale(),S(k,C,T,!1,A,E)}function x(k,T,C,A,E){var M=E[C],I=E[C+"ref"],N=C.indexOf("y")!==-1,z=p.getRefType(I)==="domain",F=N?A.h:A.w;return k?z?M+(N?-T:T)/k._length:k.p2r(k.r2p(M)+T):M+(N?-T:T)/F}function S(k,T,C,A,E,M){var I,N,z=k._fullLayout,F=k._fullLayout._size,R=k._context.edits;A?(I="annotation-"+A,N=A+".annotations"):(I="annotation",N="annotations");var V=g(k.layout,N,T),$=V.modifyBase,U=V.modifyItem,Z=V.getUpdateObj;z._infolayer.selectAll("."+I+'[data-index="'+C+'"]').remove();var q="clip"+z._uid+"_ann"+C;if(T._input&&T.visible!==!1){var W={x:{},y:{}},Q=+T.textangle||0,X=z._infolayer.append("g").classed(I,!0).attr("data-index",String(C)).style("opacity",T.opacity),J=X.append("g").classed("annotation-text-g",!0),ee=R[T.showarrow?"annotationTail":"annotationPosition"],le=T.captureevents||R.annotationText||ee,oe=J.append("g").style("pointer-events",le?"all":null).call(d,"pointer").on("click",function(){k._dragging=!1,k.emit("plotly_clickannotation",_e(v.event))});T.hovertext&&oe.on("mouseover",function(){var Ee=T.hoverlabel,Pe=Ee.font,$e=this.getBoundingClientRect(),Te=k.getBoundingClientRect();s.loneHover({x0:$e.left-Te.left,x1:$e.right-Te.left,y:($e.top+$e.bottom)/2-Te.top,text:T.hovertext,color:Ee.bgcolor,borderColor:Ee.bordercolor,fontFamily:Pe.family,fontSize:Pe.size,fontColor:Pe.color,fontWeight:Pe.weight,fontStyle:Pe.style,fontVariant:Pe.variant,fontShadow:Pe.fontShadow,fontLineposition:Pe.fontLineposition,fontTextcase:Pe.fontTextcase},{container:z._hoverlayer.node(),outerContainer:z._paper.node(),gd:k})}).on("mouseout",function(){s.loneUnhover(z._hoverlayer.node())});var se=T.borderwidth,ce=T.borderpad,ae=se+ce,ne=oe.append("rect").attr("class","bg").style("stroke-width",se+"px").call(l.stroke,T.bordercolor).call(l.fill,T.bgcolor),ie=T.width||T.height,ue=z._topclips.selectAll("#"+q).data(ie?[0]:[]);ue.enter().append("clipPath").classed("annclip",!0).attr("id",q).append("rect"),ue.exit().remove();var he=T.font,pe=z._meta?y.templateString(T.text,z._meta):T.text,me=oe.append("text").classed("annotation-text",!0).text(pe);R.annotationText?me.call(u.makeEditable,{delegate:oe,gd:k}).call(xe).on("edit",function(Ee){T.text=Ee,this.call(xe),U("text",Ee),E&&E.autorange&&$(E._name+".autorange",!0),M&&M.autorange&&$(M._name+".autorange",!0),f.call("_guiRelayout",k,Z())}):me.call(xe)}else v.selectAll("#"+q).remove();function _e(Ee){var Pe={index:C,annotation:T._input,fullAnnotation:T,event:Ee};return A&&(Pe.subplotId=A),Pe}function xe(Ee){return Ee.call(o.font,he).attr({"text-anchor":{left:"start",right:"end"}[T.align]||"middle"}),u.convertToTspans(Ee,k,we),Ee}function we(){var Ee=me.selectAll("a");Ee.size()===1&&Ee.text()===me.text()&&oe.insert("a",":first-child").attr({"xlink:xlink:href":Ee.attr("xlink:href"),"xlink:xlink:show":Ee.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(ne.node());var Pe=oe.select(".annotation-text-math-group"),$e=!Pe.empty(),Te=o.bBox(($e?Pe:me).node()),Ce=Te.width,ye=Te.height,ge=T.width||Ce,Me=T.height||ye,Se=Math.round(ge+2*ae),ze=Math.round(Me+2*ae);function Fe(Ct,gt){return gt==="auto"&&(gt=Ct<.3333333333333333?"left":Ct>.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[gt]}for(var De=!1,Ue=["x","y"],Ne=0;Ne<Ue.length;Ne++){var ke,Oe,Re,je,Ze,Ye=Ue[Ne],it=T[Ye+"ref"]||Ye,dt=T["a"+Ye+"ref"],ut={x:E,y:M}[Ye],It=(Q+(Ye==="x"?0:-90))*Math.PI/180,Ot=Se*Math.cos(It),Ft=ze*Math.sin(It),ot=Math.abs(Ot)+Math.abs(Ft),tt=T[Ye+"anchor"],vt=T[Ye+"shift"]*(Ye==="x"?1:-1),At=W[Ye],Dt=p.getRefType(it);if(ut&&Dt!=="domain"){var Pt=ut.r2fraction(T[Ye]);(Pt<0||Pt>1)&&(dt===it?((Pt=ut.r2fraction(T["a"+Ye]))<0||Pt>1)&&(De=!0):De=!0),ke=ut._offset+ut.r2p(T[Ye]),je=.5}else{var et=Dt==="domain";Ye==="x"?(Re=T[Ye],ke=et?ut._offset+ut._length*Re:ke=F.l+F.w*Re):(Re=1-T[Ye],ke=et?ut._offset+ut._length*Re:ke=F.t+F.h*Re),je=T.showarrow?.5:Re}if(T.showarrow){At.head=ke;var rt=T["a"+Ye];if(Ze=Ot*Fe(.5,T.xanchor)-Ft*Fe(.5,T.yanchor),dt===it){var We=p.getRefType(dt);We==="domain"?(Ye==="y"&&(rt=1-rt),At.tail=ut._offset+ut._length*rt):We==="paper"?Ye==="y"?(rt=1-rt,At.tail=F.t+F.h*rt):At.tail=F.l+F.w*rt:At.tail=ut._offset+ut.r2p(rt),Oe=Ze}else At.tail=ke+rt,Oe=Ze+rt;At.text=At.tail+Ze;var nt=z[Ye==="x"?"width":"height"];if(it==="paper"&&(At.head=y.constrain(At.head,1,nt-1)),dt==="pixel"){var _t=-Math.max(At.tail-3,At.text),mt=Math.min(At.tail+3,At.text)-nt;_t>0?(At.tail+=_t,At.text+=_t):mt>0&&(At.tail-=mt,At.text-=mt)}At.tail+=vt,At.head+=vt}else Oe=Ze=ot*Fe(je,tt),At.text=ke+Ze;At.text+=vt,Ze+=vt,Oe+=vt,T["_"+Ye+"padplus"]=ot/2+Oe,T["_"+Ye+"padminus"]=ot/2-Oe,T["_"+Ye+"size"]=ot,T["_"+Ye+"shift"]=Ze}if(De)oe.remove();else{var St=0,Bt=0;if(T.align!=="left"&&(St=(ge-Ce)*(T.align==="center"?.5:1)),T.valign!=="top"&&(Bt=(Me-ye)*(T.valign==="middle"?.5:1)),$e)Pe.select("svg").attr({x:ae+St-1,y:ae+Bt}).call(o.setClipUrl,ie?q:null,k);else{var Je=ae+Bt-Te.top,Xe=ae+St-Te.left;me.call(u.positionText,Xe,Je).call(o.setClipUrl,ie?q:null,k)}ue.select("rect").call(o.setRect,ae,ae,ge,Me),ne.call(o.setRect,se/2,se/2,Se-se,ze-se),oe.call(o.setTranslate,Math.round(W.x.text-Se/2),Math.round(W.y.text-ze/2)),J.attr({transform:"rotate("+Q+","+W.x.text+","+W.y.text+")"});var yt,Et=function(Ct,gt){X.selectAll(".annotation-arrow-g").remove();var $t=W.x.head,Lt=W.y.head,jt=W.x.tail+Ct,Rt=W.y.tail+gt,Vt=W.x.text+Ct,Qt=W.y.text+gt,ta=y.rotationXYMatrix(Q,Vt,Qt),_a=y.apply2DTransform(ta),ka=y.apply2DTransform2(ta),va=+ne.attr("width"),ia=+ne.attr("height"),fa=Vt-.5*va,Da=fa+va,wa=Qt-.5*ia,da=wa+ia,Ea=[[fa,wa,fa,da],[fa,da,Da,da],[Da,da,Da,wa],[Da,wa,fa,wa]].map(ka);if(!Ea.reduce(function(hn,un){return hn^!!y.segmentsIntersect($t,Lt,$t+1e6,Lt+1e6,un[0],un[1],un[2],un[3])},!1)){Ea.forEach(function(hn){var un=y.segmentsIntersect(jt,Rt,$t,Lt,hn[0],hn[1],hn[2],hn[3]);un&&(jt=un.x,Rt=un.y)});var ua=T.arrowwidth,ba=T.arrowcolor,Ra=T.arrowside,Oa=X.append("g").style({opacity:l.opacity(ba)}).classed("annotation-arrow-g",!0),Ja=Oa.append("path").attr("d","M"+jt+","+Rt+"L"+$t+","+Lt).style("stroke-width",ua+"px").call(l.stroke,l.rgb(ba));if(b(Ja,Ra,T),R.annotationPosition&&Ja.node().parentNode&&!A){var Fa=$t,qa=Lt;if(T.standoff){var Ka=Math.sqrt(Math.pow($t-jt,2)+Math.pow(Lt-Rt,2));Fa+=T.standoff*(jt-$t)/Ka,qa+=T.standoff*(Rt-Lt)/Ka}var vn,zn,cn=Oa.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(jt-Fa)+","+(Rt-qa),transform:_(Fa,qa)}).style("stroke-width",ua+6+"px").call(l.stroke,"rgba(0,0,0,0)").call(l.fill,"rgba(0,0,0,0)");h.init({element:cn.node(),gd:k,prepFn:function(){var hn=o.getTranslate(oe);vn=hn.x,zn=hn.y,E&&E.autorange&&$(E._name+".autorange",!0),M&&M.autorange&&$(M._name+".autorange",!0)},moveFn:function(hn,un){var Bn=_a(vn,zn),ha=Bn[0]+hn,ma=Bn[1]+un;oe.call(o.setTranslate,ha,ma),U("x",x(E,hn,"x",F,T)),U("y",x(M,un,"y",F,T)),T.axref===T.xref&&U("ax",x(E,hn,"ax",F,T)),T.ayref===T.yref&&U("ay",x(M,un,"ay",F,T)),Oa.attr("transform",_(hn,un)),J.attr({transform:"rotate("+Q+","+ha+","+ma+")"})},doneFn:function(){f.call("_guiRelayout",k,Z());var hn=document.querySelector(".js-notes-box-panel");hn&&hn.redraw(hn.selectedObj)}})}}};T.showarrow&&Et(0,0),ee&&h.init({element:oe.node(),gd:k,prepFn:function(){yt=J.attr("transform")},moveFn:function(Ct,gt){var $t="pointer";if(T.showarrow)T.axref===T.xref?U("ax",x(E,Ct,"ax",F,T)):U("ax",T.ax+Ct),T.ayref===T.yref?U("ay",x(M,gt,"ay",F.w,T)):U("ay",T.ay+gt),Et(Ct,gt);else{if(A)return;var Lt,jt;if(E)Lt=x(E,Ct,"x",F,T);else{var Rt=T._xsize/F.w,Vt=T.x+(T._xshift-T.xshift)/F.w-Rt/2;Lt=h.align(Vt+Ct/F.w,Rt,0,1,T.xanchor)}if(M)jt=x(M,gt,"y",F,T);else{var Qt=T._ysize/F.h,ta=T.y-(T._yshift+T.yshift)/F.h-Qt/2;jt=h.align(ta-gt/F.h,Qt,0,1,T.yanchor)}U("x",Lt),U("y",jt),E&&M||($t=h.getCursor(E?.5:Lt,M?.5:jt,T.xanchor,T.yanchor))}J.attr({transform:_(Ct,gt)+yt}),d(oe,$t)},clickFn:function(Ct,gt){T.captureevents&&k.emit("plotly_clickannotation",_e(gt))},doneFn:function(){d(oe),f.call("_guiRelayout",k,Z());var Ct=document.querySelector(".js-notes-box-panel");Ct&&Ct.redraw(Ct.selectedObj)}})}}}c.exports={draw:function(k){var T=k._fullLayout;T._infolayer.selectAll(".annotation").remove();for(var C=0;C<T.annotations.length;C++)T.annotations[C].visible&&w(k,C);return n.previousPromises(k)},drawOne:w,drawRaw:S}},23768:function(c,m,a){var v=a(45568),f=a(78766),n=a(11645),y=a(34809),_=y.strScale,p=y.strRotate,l=y.strTranslate;c.exports=function(o,s,u){var d,h,g,b,w=o.node(),x=n[u.arrowhead||0],S=n[u.startarrowhead||0],k=(u.arrowwidth||1)*(u.arrowsize||1),T=(u.arrowwidth||1)*(u.startarrowsize||1),C=s.indexOf("start")>=0,A=s.indexOf("end")>=0,E=x.backoff*k+u.standoff,M=S.backoff*T+u.startstandoff;if(w.nodeName==="line"){d={x:+o.attr("x1"),y:+o.attr("y1")},h={x:+o.attr("x2"),y:+o.attr("y2")};var I=d.x-h.x,N=d.y-h.y;if(b=(g=Math.atan2(N,I))+Math.PI,E&&M&&E+M>Math.sqrt(I*I+N*N))return void X();if(E){if(E*E>I*I+N*N)return void X();var z=E*Math.cos(g),F=E*Math.sin(g);h.x+=z,h.y+=F,o.attr({x2:h.x,y2:h.y})}if(M){if(M*M>I*I+N*N)return void X();var R=M*Math.cos(g),V=M*Math.sin(g);d.x-=R,d.y-=V,o.attr({x1:d.x,y1:d.y})}}else if(w.nodeName==="path"){var $=w.getTotalLength(),U="";if($<E+M)return void X();var Z=w.getPointAtLength(0),q=w.getPointAtLength(.1);g=Math.atan2(Z.y-q.y,Z.x-q.x),d=w.getPointAtLength(Math.min(M,$)),U="0px,"+M+"px,";var W=w.getPointAtLength($),Q=w.getPointAtLength($-.1);b=Math.atan2(W.y-Q.y,W.x-Q.x),h=w.getPointAtLength(Math.max(0,$-E)),U+=$-(U?M+E:E)+"px,"+$+"px",o.style("stroke-dasharray",U)}function X(){o.style("stroke-dasharray","0px,100px")}function J(ee,le,oe,se){ee.path&&(ee.noRotate&&(oe=0),v.select(w.parentNode).append("path").attr({class:o.attr("class"),d:ee.path,transform:l(le.x,le.y)+p(180*oe/Math.PI)+_(se)}).style({fill:f.rgb(u.arrowcolor),"stroke-width":0}))}C&&J(S,d,g,T),A&&J(x,h,b,k)}},3599:function(c,m,a){var v=a(3377),f=a(6035);c.exports={moduleType:"component",name:"annotations",layoutAttributes:a(50222),supplyLayoutDefaults:a(63737),includeBasePlot:a(20706)("annotations"),calcAutorange:a(60317),draw:v.draw,drawOne:v.drawOne,drawRaw:v.drawRaw,hasClickToShow:f.hasClickToShow,onClick:f.onClick,convertCoords:a(59741)}},38239:function(c,m,a){var v=a(50222),f=a(13582).overrideAll,n=a(78032).templatedArray;c.exports=f(n("annotation",{visible:v.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:v.xanchor,xshift:v.xshift,yanchor:v.yanchor,yshift:v.yshift,text:v.text,textangle:v.textangle,font:v.font,width:v.width,height:v.height,opacity:v.opacity,align:v.align,valign:v.valign,bgcolor:v.bgcolor,bordercolor:v.bordercolor,borderpad:v.borderpad,borderwidth:v.borderwidth,showarrow:v.showarrow,arrowcolor:v.arrowcolor,arrowhead:v.arrowhead,startarrowhead:v.startarrowhead,arrowside:v.arrowside,arrowsize:v.arrowsize,startarrowsize:v.startarrowsize,arrowwidth:v.arrowwidth,standoff:v.standoff,startstandoff:v.startstandoff,hovertext:v.hovertext,hoverlabel:v.hoverlabel,captureevents:v.captureevents}),"calc","from-root")},47979:function(c,m,a){var v=a(34809),f=a(29714);function n(y,_){var p=_.fullSceneLayout.domain,l=_.fullLayout._size,o={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};y._xa={},v.extendFlat(y._xa,o),f.setConvert(y._xa),y._xa._offset=l.l+p.x[0]*l.w,y._xa.l2p=function(){return .5*(1+y._pdata[0]/y._pdata[3])*l.w*(p.x[1]-p.x[0])},y._ya={},v.extendFlat(y._ya,o),f.setConvert(y._ya),y._ya._offset=l.t+(1-p.y[1])*l.h,y._ya.l2p=function(){return .5*(1-y._pdata[1]/y._pdata[3])*l.h*(p.y[1]-p.y[0])}}c.exports=function(y){for(var _=y.fullSceneLayout.annotations,p=0;p<_.length;p++)n(_[p],y);y.fullLayout._infolayer.selectAll(".annotation-"+y.id).remove()}},34232:function(c,m,a){var v=a(34809),f=a(29714),n=a(59008),y=a(53271),_=a(38239);function p(l,o,s,u){function d(g,b){return v.coerce(l,o,_,g,b)}function h(g){var b=g+"axis",w={_fullLayout:{}};return w._fullLayout[b]=s[b],f.coercePosition(o,w,d,g,g,.5)}d("visible")&&(y(l,o,u.fullLayout,d),h("x"),h("y"),h("z"),v.noneOrAll(l,o,["x","y","z"]),o.xref="x",o.yref="y",o.zref="z",d("xanchor"),d("yanchor"),d("xshift"),d("yshift"),o.showarrow&&(o.axref="pixel",o.ayref="pixel",d("ax",-10),d("ay",-30),v.noneOrAll(l,o,["ax","ay"])))}c.exports=function(l,o,s){n(l,o,{name:"annotations",handleItemDefaults:p,fullLayout:s.fullLayout})}},9756:function(c,m,a){var v=a(3377).drawRaw,f=a(25802),n=["x","y","z"];c.exports=function(y){for(var _=y.fullSceneLayout,p=y.dataScale,l=_.annotations,o=0;o<l.length;o++){for(var s=l[o],u=!1,d=0;d<3;d++){var h=n[d],g=s[h],b=_[h+"axis"].r2fraction(g);if(b<0||b>1){u=!0;break}}u?y.fullLayout._infolayer.select(".annotation-"+y.id+'[data-index="'+o+'"]').remove():(s._pdata=f(y.glplot.cameraParams,[_.xaxis.r2l(s.x)*p[0],_.yaxis.r2l(s.y)*p[1],_.zaxis.r2l(s.z)*p[2]]),v(y.graphDiv,s,o,y.id,s._xa,s._ya))}}},83348:function(c,m,a){var v=a(33626),f=a(34809);c.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:a(38239)}}},layoutAttributes:a(38239),handleDefaults:a(34232),includeBasePlot:function(n,y){var _=v.subplotsRegistry.gl3d;if(_)for(var p=_.attrRegex,l=Object.keys(n),o=0;o<l.length;o++){var s=l[o];p.test(s)&&(n[s].annotations||[]).length&&(f.pushUnique(y._basePlotModules,_),f.pushUnique(y._subplots.gl3d,s))}},convert:a(47979),draw:a(9756)}},37177:function(c,m,a){c.exports=a(24453),a(23428),a(1401),a(72210),a(28569),a(81133),a(78295),a(25512),a(42645),a(62324),a(91662),a(66445),a(50506),a(84756),a(41858),a(57985)},29698:function(c,m,a){var v=a(37177),f=a(34809),n=a(63821),y=n.EPOCHJD,_=n.ONEDAY,p={valType:"enumerated",values:f.sortObjectKeys(v.calendars),editType:"calc",dflt:"gregorian"},l=function(k,T,C,A){var E={};return E[C]=p,f.coerce(k,T,E,C,A)},o="##",s={d:{0:"dd","-":"d"},e:{0:"d","-":"d"},a:{0:"D","-":"D"},A:{0:"DD","-":"DD"},j:{0:"oo","-":"o"},W:{0:"ww","-":"w"},m:{0:"mm","-":"m"},b:{0:"M","-":"M"},B:{0:"MM","-":"MM"},y:{0:"yy","-":"yy"},Y:{0:"yyyy","-":"yyyy"},U:o,w:o,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}},u={};function d(k){var T=u[k];return T||(u[k]=v.instance(k))}function h(k){return f.extendFlat({},p,{description:k})}function g(k){return"Sets the calendar system to use with `"+k+"` date data."}var b={xcalendar:h(g("x"))},w=f.extendFlat({},b,{ycalendar:h(g("y"))}),x=f.extendFlat({},w,{zcalendar:h(g("z"))}),S=h(["Sets the calendar system to use for `range` and `tick0`","if this is a date axis. This does not set the calendar for","interpreting data on this axis, that's specified in the trace","or via the global `layout.calendar`"].join(" "));c.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:w,bar:w,box:w,heatmap:w,contour:w,histogram:w,histogram2d:w,histogram2dcontour:w,scatter3d:x,surface:x,mesh3d:x,scattergl:w,ohlc:b,candlestick:b},layout:{calendar:h(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:S},yaxis:{calendar:S},scene:{xaxis:{calendar:S},yaxis:{calendar:S},zaxis:{calendar:S}},polar:{radialaxis:{calendar:S}}},transforms:{filter:{valuecalendar:h(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `value`, if it is a date."].join(" ")),targetcalendar:h(["WARNING: All transforms are deprecated and may be removed from the API in next major version.","Sets the calendar system to use for `target`, if it is an","array of dates. If `target` is a string (eg *x*) we use the","corresponding trace attribute (eg `xcalendar`) if it exists,","even if `targetcalendar` is provided."].join(" "))}}},layoutAttributes:p,handleDefaults:l,handleTraceDefaults:function(k,T,C,A){for(var E=0;E<C.length;E++)l(k,T,C[E]+"calendar",A.calendar)},CANONICAL_SUNDAY:{chinese:"2000-01-02",coptic:"2000-01-03",discworld:"2000-01-03",ethiopian:"2000-01-05",hebrew:"5000-01-01",islamic:"1000-01-02",julian:"2000-01-03",mayan:"5000-01-01",nanakshahi:"1000-01-05",nepali:"2000-01-05",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-04",thai:"2000-01-04",ummalqura:"1400-01-06"},CANONICAL_TICK:{chinese:"2000-01-01",coptic:"2000-01-01",discworld:"2000-01-01",ethiopian:"2000-01-01",hebrew:"5000-01-01",islamic:"1000-01-01",julian:"2000-01-01",mayan:"5000-01-01",nanakshahi:"1000-01-01",nepali:"2000-01-01",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-01",thai:"2000-01-01",ummalqura:"1400-01-01"},DFLTRANGE:{chinese:["2000-01-01","2001-01-01"],coptic:["1700-01-01","1701-01-01"],discworld:["1800-01-01","1801-01-01"],ethiopian:["2000-01-01","2001-01-01"],hebrew:["5700-01-01","5701-01-01"],islamic:["1400-01-01","1401-01-01"],julian:["2000-01-01","2001-01-01"],mayan:["5200-01-01","5201-01-01"],nanakshahi:["0500-01-01","0501-01-01"],nepali:["2000-01-01","2001-01-01"],persian:["1400-01-01","1401-01-01"],jalali:["1400-01-01","1401-01-01"],taiwan:["0100-01-01","0101-01-01"],thai:["2500-01-01","2501-01-01"],ummalqura:["1400-01-01","1401-01-01"]},getCal:d,worldCalFmt:function(k,T,C){for(var A,E,M,I,N,z=Math.floor((T+.05)/_)+y,F=d(C).fromJD(z),R=0;(R=k.indexOf("%",R))!==-1;)(A=k.charAt(R+1))==="0"||A==="-"||A==="_"?(M=3,E=k.charAt(R+2),A==="_"&&(A="-")):(E=A,A="0",M=2),(I=s[E])?(N=I===o?o:F.formatDate(I[A]),k=k.substr(0,R)+N+k.substr(R+M),R+=N.length):R+=M;return k}}},10229:function(c,m){m.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],m.defaultLine="#444",m.lightLine="#eee",m.background="#fff",m.borderLine="#BEC8D9",m.lightFraction=90.9090909090909},78766:function(c,m,a){var v=a(65657),f=a(10721),n=a(87800).isTypedArray,y=c.exports={},_=a(10229);y.defaults=_.defaults;var p=y.defaultLine=_.defaultLine;y.lightLine=_.lightLine;var l=y.background=_.background;function o(s){if(f(s)||typeof s!="string")return s;var u=s.trim();if(u.substr(0,3)!=="rgb")return s;var d=u.match(/^rgba?\s*\(([^()]*)\)$/);if(!d)return s;var h=d[1].trim().split(/\s*[\s,]\s*/),g=u.charAt(3)==="a"&&h.length===4;if(!g&&h.length!==3)return s;for(var b=0;b<h.length;b++){if(!h[b].length||(h[b]=Number(h[b]),!(h[b]>=0)))return s;if(b===3)h[b]>1&&(h[b]=1);else if(h[b]>=1)return s}var w=Math.round(255*h[0])+", "+Math.round(255*h[1])+", "+Math.round(255*h[2]);return g?"rgba("+w+", "+h[3]+")":"rgb("+w+")"}y.tinyRGB=function(s){var u=s.toRgb();return"rgb("+Math.round(u.r)+", "+Math.round(u.g)+", "+Math.round(u.b)+")"},y.rgb=function(s){return y.tinyRGB(v(s))},y.opacity=function(s){return s?v(s).getAlpha():0},y.addOpacity=function(s,u){var d=v(s).toRgb();return"rgba("+Math.round(d.r)+", "+Math.round(d.g)+", "+Math.round(d.b)+", "+u+")"},y.combine=function(s,u){var d=v(s).toRgb();if(d.a===1)return v(s).toRgbString();var h=v(u||l).toRgb(),g=h.a===1?h:{r:255*(1-h.a)+h.r*h.a,g:255*(1-h.a)+h.g*h.a,b:255*(1-h.a)+h.b*h.a},b={r:g.r*(1-d.a)+d.r*d.a,g:g.g*(1-d.a)+d.g*d.a,b:g.b*(1-d.a)+d.b*d.a};return v(b).toRgbString()},y.interpolate=function(s,u,d){var h=v(s).toRgb(),g=v(u).toRgb(),b={r:d*h.r+(1-d)*g.r,g:d*h.g+(1-d)*g.g,b:d*h.b+(1-d)*g.b};return v(b).toRgbString()},y.contrast=function(s,u,d){var h=v(s);return h.getAlpha()!==1&&(h=v(y.combine(s,l))),(h.isDark()?u?h.lighten(u):l:d?h.darken(d):p).toString()},y.stroke=function(s,u){var d=v(u);s.style({stroke:y.tinyRGB(d),"stroke-opacity":d.getAlpha()})},y.fill=function(s,u){var d=v(u);s.style({fill:y.tinyRGB(d),"fill-opacity":d.getAlpha()})},y.clean=function(s){if(s&&typeof s=="object"){var u,d,h,g,b=Object.keys(s);for(u=0;u<b.length;u++)if(g=s[h=b[u]],h.substr(h.length-5)==="color")if(Array.isArray(g))for(d=0;d<g.length;d++)g[d]=o(g[d]);else s[h]=o(g);else if(h.substr(h.length-10)==="colorscale"&&Array.isArray(g))for(d=0;d<g.length;d++)Array.isArray(g[d])&&(g[d][1]=o(g[d][1]));else if(Array.isArray(g)){var w=g[0];if(!Array.isArray(w)&&w&&typeof w=="object")for(d=0;d<g.length;d++)y.clean(g[d])}else g&&typeof g=="object"&&!n(g)&&y.clean(g)}}},25158:function(c,m,a){var v=a(25829),f=a(80337),n=a(93049).extendFlat,y=a(13582).overrideAll;c.exports=y({orientation:{valType:"enumerated",values:["h","v"],dflt:"v"},thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["left","center","right"]},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},ypad:{valType:"number",min:0,dflt:10},outlinecolor:v.linecolor,outlinewidth:v.linewidth,bordercolor:v.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:v.minor.tickmode,nticks:v.nticks,tick0:v.tick0,dtick:v.dtick,tickvals:v.tickvals,ticktext:v.ticktext,ticks:n({},v.ticks,{dflt:""}),ticklabeloverflow:n({},v.ticklabeloverflow,{}),ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside"},ticklen:v.ticklen,tickwidth:v.tickwidth,tickcolor:v.tickcolor,ticklabelstep:v.ticklabelstep,showticklabels:v.showticklabels,labelalias:v.labelalias,tickfont:f({}),tickangle:v.tickangle,tickformat:v.tickformat,tickformatstops:v.tickformatstops,tickprefix:v.tickprefix,showtickprefix:v.showtickprefix,ticksuffix:v.ticksuffix,showticksuffix:v.showticksuffix,separatethousands:v.separatethousands,exponentformat:v.exponentformat,minexponent:v.minexponent,showexponent:v.showexponent,title:{text:{valType:"string"},font:f({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:f({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},34554:function(c){c.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},42097:function(c,m,a){var v=a(34809),f=a(78032),n=a(22777),y=a(87433),_=a(12036),p=a(54616),l=a(25158);c.exports=function(o,s,u){var d=f.newContainer(s,"colorbar"),h=o.colorbar||{};function g(U,Z){return v.coerce(h,d,l,U,Z)}var b=u.margin||{t:0,b:0,l:0,r:0},w=u.width-b.l-b.r,x=u.height-b.t-b.b,S=g("orientation")==="v",k=g("thicknessmode");g("thickness",k==="fraction"?30/(S?w:x):30);var T=g("lenmode");g("len",T==="fraction"?1:S?x:w);var C,A,E,M=g("yref")==="paper",I=g("xref")==="paper",N="left";S?(E="middle",N=I?"left":"right",C=I?1.02:1,A=.5):(E=M?"bottom":"top",N="center",C=.5,A=M?1.02:1),v.coerce(h,d,{x:{valType:"number",min:I?-2:0,max:I?3:1,dflt:C}},"x"),v.coerce(h,d,{y:{valType:"number",min:M?-2:0,max:M?3:1,dflt:A}},"y"),g("xanchor",N),g("xpad"),g("yanchor",E),g("ypad"),v.noneOrAll(h,d,["x","y"]),g("outlinecolor"),g("outlinewidth"),g("bordercolor"),g("borderwidth"),g("bgcolor");var z=v.coerce(h,d,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:S?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");g("ticklabeloverflow",z.indexOf("inside")!==-1?"hide past domain":"hide past div"),n(h,d,g,"linear");var F=u.font,R={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:F};z.indexOf("inside")!==-1&&(R.bgColor="black"),p(h,d,g,"linear",R),_(h,d,g,"linear",R),y(h,d,g,"linear",R),g("title.text",u._dfltTitle.colorbar);var V=d.showticklabels?d.tickfont:F,$=v.extendFlat({},F,{family:V.family,size:v.bigFont(V.size)});v.coerceFont(g,"title.font",$),g("title.side",S?"top":"right")}},5881:function(c,m,a){var v=a(45568),f=a(65657),n=a(44122),y=a(33626),_=a(29714),p=a(14751),l=a(34809),o=l.strTranslate,s=a(93049).extendFlat,u=a(27983),d=a(62203),h=a(78766),g=a(17240),b=a(30635),w=a(65477).flipScale,x=a(97655),S=a(40957),k=a(25829),T=a(4530),C=T.LINE_SPACING,A=T.FROM_TL,E=T.FROM_BR,M=a(34554).cn;c.exports={draw:function(I){var N=I._fullLayout._infolayer.selectAll("g."+M.colorbar).data(function(z){var F,R,V,$,U=z._fullLayout,Z=z.calcdata,q=[];function W(ie){return s(ie,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function Q(){typeof $.calc=="function"?$.calc(z,V,F):(F._fillgradient=R.reversescale?w(R.colorscale):R.colorscale,F._zrange=[R[$.min],R[$.max]])}for(var X=0;X<Z.length;X++){var J=Z[X];if((V=J[0].trace)._module){var ee=V._module.colorbar;if(V.visible===!0&&ee)for(var le=Array.isArray(ee),oe=le?ee:[ee],se=0;se<oe.length;se++){var ce=($=oe[se]).container;(R=ce?V[ce]:V)&&R.showscale&&((F=W(R.colorbar))._id="cb"+V.uid+(le&&ce?"-"+ce:""),F._traceIndex=V.index,F._propPrefix=(ce?ce+".":"")+"colorbar.",F._meta=V._meta,Q(),q.push(F))}}}for(var ae in U._colorAxes)if((R=U[ae]).showscale){var ne=U._colorAxes[ae];(F=W(R.colorbar))._id="cb"+ae,F._propPrefix=ae+".colorbar.",F._meta=U._meta,$={min:"cmin",max:"cmax"},ne[0]!=="heatmap"&&(V=ne[1],$.calc=V._module.colorbar.calc),Q(),q.push(F)}return q}(I),function(z){return z._id});N.enter().append("g").attr("class",function(z){return z._id}).classed(M.colorbar,!0),N.each(function(z){var F=v.select(this);l.ensureSingle(F,"rect",M.cbbg),l.ensureSingle(F,"g",M.cbfills),l.ensureSingle(F,"g",M.cblines),l.ensureSingle(F,"g",M.cbaxis,function(V){V.classed(M.crisp,!0)}),l.ensureSingle(F,"g",M.cbtitleunshift,function(V){V.append("g").classed(M.cbtitle,!0)}),l.ensureSingle(F,"rect",M.cboutline);var R=function(V,$,U){var Z=$.orientation==="v",q=$.len,W=$.lenmode,Q=$.thickness,X=$.thicknessmode,J=$.outlinewidth,ee=$.borderwidth,le=$.bgcolor,oe=$.xanchor,se=$.yanchor,ce=$.xpad,ae=$.ypad,ne=$.x,ie=Z?$.y:1-$.y,ue=$.yref==="paper",he=$.xref==="paper",pe=U._fullLayout,me=pe._size,_e=$._fillcolor,xe=$._line,we=$.title,Ee=we.side,Pe=$._zrange||v.extent((typeof _e=="function"?_e:xe.color).domain()),$e=typeof xe.color=="function"?xe.color:function(){return xe.color},Te=typeof _e=="function"?_e:function(){return _e},Ce=$._levels,ye=function(We,nt,_t){var mt,St,Bt=nt._levels,Je=[],Xe=[],yt=Bt.end+Bt.size/100,Et=Bt.size,Ct=1.001*_t[0]-.001*_t[1],gt=1.001*_t[1]-.001*_t[0];for(St=0;St<1e5&&(mt=Bt.start+St*Et,!(Et>0?mt>=yt:mt<=yt));St++)mt>Ct&&mt<gt&&Je.push(mt);if(nt._fillgradient)Xe=[0];else if(typeof nt._fillcolor=="function"){var $t=nt._filllevels;if($t)for(yt=$t.end+$t.size/100,Et=$t.size,St=0;St<1e5&&(mt=$t.start+St*Et,!(Et>0?mt>=yt:mt<=yt));St++)mt>_t[0]&&mt<_t[1]&&Xe.push(mt);else(Xe=Je.map(function(Lt){return Lt-Bt.size/2})).push(Xe[Xe.length-1]+Bt.size)}else nt._fillcolor&&typeof nt._fillcolor=="string"&&(Xe=[0]);return Bt.size<0&&(Je.reverse(),Xe.reverse()),{line:Je,fill:Xe}}(0,$,Pe),ge=ye.fill,Me=ye.line,Se=Math.round(Q*(X==="fraction"?Z?me.w:me.h:1)),ze=Se/(Z?me.w:me.h),Fe=Math.round(q*(W==="fraction"?Z?me.h:me.w:1)),De=Fe/(Z?me.h:me.w),Ue=he?me.w:U._fullLayout.width,Ne=ue?me.h:U._fullLayout.height,ke=Math.round(Z?ne*Ue+ce:ie*Ne+ae),Oe={center:.5,right:1}[oe]||0,Re={top:1,middle:.5}[se]||0,je=Z?ne-Oe*ze:ie-Re*ze,Ze=Z?ie-Re*De:ne-Oe*De,Ye=Math.round(Z?Ne*(1-Ze):Ue*Ze);$._lenFrac=De,$._thickFrac=ze,$._uFrac=je,$._vFrac=Ze;var it=$._axis=function(We,nt,_t){var mt=We._fullLayout,St=nt.orientation==="v",Bt={type:"linear",range:_t,tickmode:nt.tickmode,nticks:nt.nticks,tick0:nt.tick0,dtick:nt.dtick,tickvals:nt.tickvals,ticktext:nt.ticktext,ticks:nt.ticks,ticklen:nt.ticklen,tickwidth:nt.tickwidth,tickcolor:nt.tickcolor,showticklabels:nt.showticklabels,labelalias:nt.labelalias,ticklabelposition:nt.ticklabelposition,ticklabeloverflow:nt.ticklabeloverflow,ticklabelstep:nt.ticklabelstep,tickfont:nt.tickfont,tickangle:nt.tickangle,tickformat:nt.tickformat,exponentformat:nt.exponentformat,minexponent:nt.minexponent,separatethousands:nt.separatethousands,showexponent:nt.showexponent,showtickprefix:nt.showtickprefix,tickprefix:nt.tickprefix,showticksuffix:nt.showticksuffix,ticksuffix:nt.ticksuffix,title:nt.title,showline:!0,anchor:"free",side:St?"right":"bottom",position:1},Je=St?"y":"x",Xe={type:"linear",_id:Je+nt._id},yt={letter:Je,font:mt.font,noAutotickangles:Je==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:mt.calendar};function Et(Ct,gt){return l.coerce(Bt,Xe,k,Ct,gt)}return x(Bt,Xe,Et,yt,mt),S(Bt,Xe,Et,yt),Xe}(U,$,Pe);it.position=ze+(Z?ne+ce/me.w:ie+ae/me.h);var dt=["top","bottom"].indexOf(Ee)!==-1;if(Z&&dt&&(it.title.side=Ee,it.titlex=ne+ce/me.w,it.titley=Ze+(we.side==="top"?De-ae/me.h:ae/me.h)),Z||dt||(it.title.side=Ee,it.titley=ie+ae/me.h,it.titlex=Ze+ce/me.w),xe.color&&$.tickmode==="auto"){it.tickmode="linear",it.tick0=Ce.start;var ut=Ce.size,It=l.constrain(Fe/50,4,15)+1,Ot=(Pe[1]-Pe[0])/(($.nticks||It)*ut);if(Ot>1){var Ft=Math.pow(10,Math.floor(Math.log(Ot)/Math.LN10));ut*=Ft*l.roundUp(Ot/Ft,[2,5,10]),(Math.abs(Ce.start)/Ce.size+1e-6)%1<2e-6&&(it.tick0=0)}it.dtick=ut}it.domain=Z?[Ze+ae/me.h,Ze+De-ae/me.h]:[Ze+ce/me.w,Ze+De-ce/me.w],it.setScale(),V.attr("transform",o(Math.round(me.l),Math.round(me.t)));var ot,tt=V.select("."+M.cbtitleunshift).attr("transform",o(-Math.round(me.l),-Math.round(me.t))),vt=it.ticklabelposition,At=it.title.font.size,Dt=V.select("."+M.cbaxis),Pt=0,et=0;function rt(We,nt){var _t={propContainer:it,propName:$._propPrefix+"title",traceIndex:$._traceIndex,_meta:$._meta,placeholder:pe._dfltTitle.colorbar,containerGroup:V.select("."+M.cbtitle)},mt=We.charAt(0)==="h"?We.substr(1):"h"+We;V.selectAll("."+mt+",."+mt+"-math-group").remove(),g.draw(U,We,s(_t,nt||{}))}return l.syncOrAsync([n.previousPromises,function(){var We,nt;(Z&&dt||!Z&&!dt)&&(Ee==="top"&&(We=ce+me.l+Ue*ne,nt=ae+me.t+Ne*(1-Ze-De)+3+.75*At),Ee==="bottom"&&(We=ce+me.l+Ue*ne,nt=ae+me.t+Ne*(1-Ze)-3-.25*At),Ee==="right"&&(nt=ae+me.t+Ne*ie+3+.75*At,We=ce+me.l+Ue*Ze),rt(it._id+"title",{attributes:{x:We,y:nt,"text-anchor":Z?"start":"middle"}}))},function(){if(!Z&&!dt||Z&&dt){var We,nt=V.select("."+M.cbtitle),_t=nt.select("text"),mt=[-J/2,J/2],St=nt.select(".h"+it._id+"title-math-group").node(),Bt=15.6;if(_t.node()&&(Bt=parseInt(_t.node().style.fontSize,10)*C),St?(We=d.bBox(St),et=We.width,(Pt=We.height)>Bt&&(mt[1]-=(Pt-Bt)/2)):_t.node()&&!_t.classed(M.jsPlaceholder)&&(We=d.bBox(_t.node()),et=We.width,Pt=We.height),Z){if(Pt){if(Pt+=5,Ee==="top")it.domain[1]-=Pt/me.h,mt[1]*=-1;else{it.domain[0]+=Pt/me.h;var Je=b.lineCount(_t);mt[1]+=(1-Je)*Bt}nt.attr("transform",o(mt[0],mt[1])),it.setScale()}}else et&&(Ee==="right"&&(it.domain[0]+=(et+At/2)/me.w),nt.attr("transform",o(mt[0],mt[1])),it.setScale())}V.selectAll("."+M.cbfills+",."+M.cblines).attr("transform",Z?o(0,Math.round(me.h*(1-it.domain[1]))):o(Math.round(me.w*it.domain[0]),0)),Dt.attr("transform",Z?o(0,Math.round(-me.t)):o(Math.round(-me.l),0));var Xe=V.select("."+M.cbfills).selectAll("rect."+M.cbfill).attr("style","").data(ge);Xe.enter().append("rect").classed(M.cbfill,!0).attr("style",""),Xe.exit().remove();var yt=Pe.map(it.c2p).map(Math.round).sort(function(Lt,jt){return Lt-jt});Xe.each(function(Lt,jt){var Rt=[jt===0?Pe[0]:(ge[jt]+ge[jt-1])/2,jt===ge.length-1?Pe[1]:(ge[jt]+ge[jt+1])/2].map(it.c2p).map(Math.round);Z&&(Rt[1]=l.constrain(Rt[1]+(Rt[1]>Rt[0])?1:-1,yt[0],yt[1]));var Vt=v.select(this).attr(Z?"x":"y",ke).attr(Z?"y":"x",v.min(Rt)).attr(Z?"width":"height",Math.max(Se,2)).attr(Z?"height":"width",Math.max(v.max(Rt)-v.min(Rt),2));if($._fillgradient)d.gradient(Vt,U,$._id,Z?"vertical":"horizontalreversed",$._fillgradient,"fill");else{var Qt=Te(Lt).replace("e-","");Vt.attr("fill",f(Qt).toHexString())}});var Et=V.select("."+M.cblines).selectAll("path."+M.cbline).data(xe.color&&xe.width?Me:[]);Et.enter().append("path").classed(M.cbline,!0),Et.exit().remove(),Et.each(function(Lt){var jt=ke,Rt=Math.round(it.c2p(Lt))+xe.width/2%1;v.select(this).attr("d","M"+(Z?jt+","+Rt:Rt+","+jt)+(Z?"h":"v")+Se).call(d.lineGroupStyle,xe.width,$e(Lt),xe.dash)}),Dt.selectAll("g."+it._id+"tick,path").remove();var Ct=ke+Se+(J||0)/2-($.ticks==="outside"?1:0),gt=_.calcTicks(it),$t=_.getTickSigns(it)[2];return _.drawTicks(U,it,{vals:it.ticks==="inside"?_.clipEnds(it,gt):gt,layer:Dt,path:_.makeTickPath(it,Ct,$t),transFn:_.makeTransTickFn(it)}),_.drawLabels(U,it,{vals:gt,layer:Dt,transFn:_.makeTransTickLabelFn(it),labelFns:_.makeLabelFns(it,Ct)})},function(){if(Z&&!dt||!Z&&dt){var We,nt,_t=it.position||0,mt=it._offset+it._length/2;if(Ee==="right")nt=mt,We=me.l+Ue*_t+10+At*(it.showticklabels?1:.5);else if(We=mt,Ee==="bottom"&&(nt=me.t+Ne*_t+10+(vt.indexOf("inside")===-1?it.tickfont.size:0)+(it.ticks!=="intside"&&$.ticklen||0)),Ee==="top"){var St=we.text.split("<br>").length;nt=me.t+Ne*_t+10-Se-C*At*St}rt((Z?"h":"v")+it._id+"title",{avoid:{selection:v.select(U).selectAll("g."+it._id+"tick"),side:Ee,offsetTop:Z?0:me.t,offsetLeft:Z?me.l:0,maxShift:Z?pe.width:pe.height},attributes:{x:We,y:nt,"text-anchor":"middle"},transform:{rotate:Z?-90:0,offset:0}})}},n.previousPromises,function(){var We,nt=Se+J/2;vt.indexOf("inside")===-1&&(We=d.bBox(Dt.node()),nt+=Z?We.width:We.height),ot=tt.select("text");var _t=0,mt=Z&&Ee==="top",St=!Z&&Ee==="right",Bt=0;if(ot.node()&&!ot.classed(M.jsPlaceholder)){var Je,Xe=tt.select(".h"+it._id+"title-math-group").node();Xe&&(Z&&dt||!Z&&!dt)?(_t=(We=d.bBox(Xe)).width,Je=We.height):(_t=(We=d.bBox(tt.node())).right-me.l-(Z?ke:Ye),Je=We.bottom-me.t-(Z?Ye:ke),Z||Ee!=="top"||(nt+=We.height,Bt=We.height)),St&&(ot.attr("transform",o(_t/2+At/2,0)),_t*=2),nt=Math.max(nt,Z?_t:Je)}var yt=2*(Z?ce:ae)+nt+ee+J/2,Et=0;!Z&&we.text&&se==="bottom"&&ie<=0&&(yt+=Et=yt/2,Bt+=Et),pe._hColorbarMoveTitle=Et,pe._hColorbarMoveCBTitle=Bt;var Ct=ee+J,gt=(Z?ke:Ye)-Ct/2-(Z?ce:0),$t=(Z?Ye:ke)-(Z?Fe:ae+Bt-Et);V.select("."+M.cbbg).attr("x",gt).attr("y",$t).attr(Z?"width":"height",Math.max(yt-Et,2)).attr(Z?"height":"width",Math.max(Fe+Ct,2)).call(h.fill,le).call(h.stroke,$.bordercolor).style("stroke-width",ee);var Lt=St?Math.max(_t-10,0):0;V.selectAll("."+M.cboutline).attr("x",(Z?ke:Ye+ce)+Lt).attr("y",(Z?Ye+ae-Fe:ke)+(mt?Pt:0)).attr(Z?"width":"height",Math.max(Se,2)).attr(Z?"height":"width",Math.max(Fe-(Z?2*ae+Pt:2*ce+Lt),2)).call(h.stroke,$.outlinecolor).style({fill:"none","stroke-width":J});var jt=Z?Oe*yt:0,Rt=Z?0:(1-Re)*yt-Bt;if(jt=he?me.l-jt:-jt,Rt=ue?me.t-Rt:-Rt,V.attr("transform",o(jt,Rt)),!Z&&(ee||f(le).getAlpha()&&!f.equals(pe.paper_bgcolor,le))){var Vt=Dt.selectAll("text"),Qt=Vt[0].length,ta=V.select("."+M.cbbg).node(),_a=d.bBox(ta),ka=d.getTranslate(V);Vt.each(function(Ra,Oa){var Ja=Qt-1;if(Oa===0||Oa===Ja){var Fa,qa=d.bBox(this),Ka=d.getTranslate(this);if(Oa===Ja){var vn=qa.right+Ka.x;(Fa=_a.right+ka.x+Ye-ee-2+ne-vn)>0&&(Fa=0)}else if(Oa===0){var zn=qa.left+Ka.x;(Fa=_a.left+ka.x+Ye+ee+2-zn)<0&&(Fa=0)}Fa&&(Qt<3?this.setAttribute("transform","translate("+Fa+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var va={},ia=A[oe],fa=E[oe],Da=A[se],wa=E[se],da=yt-Se;Z?(W==="pixels"?(va.y=ie,va.t=Fe*Da,va.b=Fe*wa):(va.t=va.b=0,va.yt=ie+q*Da,va.yb=ie-q*wa),X==="pixels"?(va.x=ne,va.l=yt*ia,va.r=yt*fa):(va.l=da*ia,va.r=da*fa,va.xl=ne-Q*ia,va.xr=ne+Q*fa)):(W==="pixels"?(va.x=ne,va.l=Fe*ia,va.r=Fe*fa):(va.l=va.r=0,va.xl=ne+q*ia,va.xr=ne-q*fa),X==="pixels"?(va.y=1-ie,va.t=yt*Da,va.b=yt*wa):(va.t=da*Da,va.b=da*wa,va.yt=ie-Q*Da,va.yb=ie+Q*wa));var Ea=$.y<.5?"b":"t",ua=$.x<.5?"l":"r";U._fullLayout._reservedMargin[$._id]={};var ba={r:pe.width-gt-jt,l:gt+va.r,b:pe.height-$t-Rt,t:$t+va.b};he&&ue?n.autoMargin(U,$._id,va):he?U._fullLayout._reservedMargin[$._id][Ea]=ba[Ea]:ue||Z?U._fullLayout._reservedMargin[$._id][ua]=ba[ua]:U._fullLayout._reservedMargin[$._id][Ea]=ba[Ea]}],U)}(F,z,I);R&&R.then&&(I._promises||[]).push(R),I._context.edits.colorbarPosition&&function(V,$,U){var Z,q,W,Q=$.orientation==="v",X=U._fullLayout._size;p.init({element:V.node(),gd:U,prepFn:function(){Z=V.attr("transform"),u(V)},moveFn:function(J,ee){V.attr("transform",Z+o(J,ee)),q=p.align((Q?$._uFrac:$._vFrac)+J/X.w,Q?$._thickFrac:$._lenFrac,0,1,$.xanchor),W=p.align((Q?$._vFrac:1-$._uFrac)-ee/X.h,Q?$._lenFrac:$._thickFrac,0,1,$.yanchor);var le=p.getCursor(q,W,$.xanchor,$.yanchor);u(V,le)},doneFn:function(){if(u(V),q!==void 0&&W!==void 0){var J={};J[$._propPrefix+"x"]=q,J[$._propPrefix+"y"]=W,$._traceIndex!==void 0?y.call("_guiRestyle",U,J,$._traceIndex):y.call("_guiRelayout",U,J)}}})}(F,z,I)}),N.exit().each(function(z){n.autoMargin(I,z._id)}).remove(),N.order()}}},91362:function(c,m,a){var v=a(34809);c.exports=function(f){return v.isPlainObject(f.colorbar)}},96919:function(c,m,a){c.exports={moduleType:"component",name:"colorbar",attributes:a(25158),supplyDefaults:a(42097),draw:a(5881).draw,hasColorbar:a(91362)}},87163:function(c,m,a){var v=a(25158),f=a(90694).counter,n=a(62994),y=a(19017).scales;function _(p){return"`"+p+"`"}n(y),c.exports=function(p,l){p=p||"";var o,s=(l=l||{}).cLetter||"c",u=("onlyIfNumerical"in l&&l.onlyIfNumerical,"noScale"in l?l.noScale:p==="marker.line"),d="showScaleDflt"in l?l.showScaleDflt:s==="z",h=typeof l.colorscaleDflt=="string"?y[l.colorscaleDflt]:null,g=l.editTypeOverride||"",b=p?p+".":"";"colorAttr"in l?(o=l.colorAttr,l.colorAttr):_(b+(o={z:"z",c:"color"}[s]));var w=s+"auto",x=s+"min",S=s+"max",k=s+"mid",T={};T[x]=T[S]=void 0;var C={};C[w]=!1;var A={};return o==="color"&&(A.color={valType:"color",arrayOk:!0,editType:g||"style"},l.anim&&(A.color.anim=!0)),A[w]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:T},A[x]={valType:"number",dflt:null,editType:g||"plot",impliedEdits:C},A[S]={valType:"number",dflt:null,editType:g||"plot",impliedEdits:C},A[k]={valType:"number",dflt:null,editType:"calc",impliedEdits:T},A.colorscale={valType:"colorscale",editType:"calc",dflt:h,impliedEdits:{autocolorscale:!1}},A.autocolorscale={valType:"boolean",dflt:l.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},A.reversescale={valType:"boolean",dflt:!1,editType:"plot"},u||(A.showscale={valType:"boolean",dflt:d,editType:"calc"},A.colorbar=v),l.noColorAxis||(A.coloraxis={valType:"subplotid",regex:f("coloraxis"),dflt:null,editType:"calc"}),A}},28379:function(c,m,a){var v=a(10721),f=a(34809),n=a(65477).extractOpts;c.exports=function(y,_,p){var l,o=y._fullLayout,s=p.vals,u=p.containerStr,d=u?f.nestedProperty(_,u).get():_,h=n(d),g=h.auto!==!1,b=h.min,w=h.max,x=h.mid,S=function(){return f.aggNums(Math.min,null,s)},k=function(){return f.aggNums(Math.max,null,s)};b===void 0?b=S():g&&(b=d._colorAx&&v(b)?Math.min(b,S()):S()),w===void 0?w=k():g&&(w=d._colorAx&&v(w)?Math.max(w,k()):k()),g&&x!==void 0&&(w-x>x-b?b=x-(w-x):w-x<x-b&&(w=x+(x-b))),b===w&&(b-=.5,w+=.5),h._sync("min",b),h._sync("max",w),h.autocolorscale&&(l=b*w<0?o.colorscale.diverging:b>=0?o.colorscale.sequential:o.colorscale.sequentialminus,h._sync("colorscale",l))}},67623:function(c,m,a){var v=a(34809),f=a(65477).hasColorscale,n=a(65477).extractOpts;c.exports=function(y,_){function p(g,b){var w=g["_"+b];w!==void 0&&(g[b]=w)}function l(g,b){var w=b.container?v.nestedProperty(g,b.container).get():g;if(w)if(w.coloraxis)w._colorAx=_[w.coloraxis];else{var x=n(w),S=x.auto;(S||x.min===void 0)&&p(w,b.min),(S||x.max===void 0)&&p(w,b.max),x.autocolorscale&&p(w,"colorscale")}}for(var o=0;o<y.length;o++){var s=y[o],u=s._module.colorbar;if(u)if(Array.isArray(u))for(var d=0;d<u.length;d++)l(s,u[d]);else l(s,u);f(s,"marker.line")&&l(s,{container:"marker.line",min:"cmin",max:"cmax"})}for(var h in _._colorAxes)l(_[h],{min:"cmin",max:"cmax"})}},39356:function(c,m,a){var v=a(10721),f=a(34809),n=a(91362),y=a(42097),_=a(19017).isValid,p=a(33626).traceIs;function l(o,s){var u=s.slice(0,s.length-1);return s?f.nestedProperty(o,u).get()||{}:o}c.exports=function o(s,u,d,h,g){var b=g.prefix,w=g.cLetter,x="_module"in u,S=l(s,b),k=l(u,b),T=l(u._template||{},b)||{},C=function(){return delete s.coloraxis,delete u.coloraxis,o(s,u,d,h,g)};if(x){var A=d._colorAxes||{},E=h(b+"coloraxis");if(E){var M=p(u,"contour")&&f.nestedProperty(u,"contours.coloring").get()||"heatmap",I=A[E];return void(I?(I[2].push(C),I[0]!==M&&(I[0]=!1,f.warn(["Ignoring coloraxis:",E,"setting","as it is linked to incompatible colorscales."].join(" ")))):A[E]=[M,u,[C]])}}var N=S[w+"min"],z=S[w+"max"],F=v(N)&&v(z)&&N<z;h(b+w+"auto",!F)?h(b+w+"mid"):(h(b+w+"min"),h(b+w+"max"));var R,V,$=S.colorscale,U=T.colorscale;$!==void 0&&(R=!_($)),U!==void 0&&(R=!_(U)),h(b+"autocolorscale",R),h(b+"colorscale"),h(b+"reversescale"),b!=="marker.line."&&(b&&x&&(V=n(S)),h(b+"showscale",V)&&(b&&T&&(k._template=T),y(S,k,d)))}},65477:function(c,m,a){var v=a(45568),f=a(65657),n=a(10721),y=a(34809),_=a(78766),p=a(19017).isValid,l=["showscale","autocolorscale","colorscale","reversescale","colorbar"],o=["min","max","mid","auto"];function s(b){var w,x,S,k=b._colorAx,T=k||b,C={};for(x=0;x<l.length;x++)C[S=l[x]]=T[S];if(k)for(w="c",x=0;x<o.length;x++)C[S=o[x]]=T["c"+S];else{var A;for(x=0;x<o.length;x++)((A="c"+(S=o[x]))in T||(A="z"+S)in T)&&(C[S]=T[A]);w=A.charAt(0)}return C._sync=function(E,M){var I=o.indexOf(E)!==-1?w+E:E;T[I]=T["_"+I]=M},C}function u(b){for(var w=s(b),x=w.min,S=w.max,k=w.reversescale?d(w.colorscale):w.colorscale,T=k.length,C=new Array(T),A=new Array(T),E=0;E<T;E++){var M=k[E];C[E]=x+M[0]*(S-x),A[E]=M[1]}return{domain:C,range:A}}function d(b){for(var w=b.length,x=new Array(w),S=w-1,k=0;S>=0;S--,k++){var T=b[S];x[k]=[1-T[0],T[1]]}return x}function h(b,w){w=w||{};for(var x=b.domain,S=b.range,k=S.length,T=new Array(k),C=0;C<k;C++){var A=f(S[C]).toRgb();T[C]=[A.r,A.g,A.b,A.a]}var E,M=v.scale.linear().domain(x).range(T).clamp(!0),I=w.noNumericCheck,N=w.returnArray;return(E=I&&N?M:I?function(z){return g(M(z))}:N?function(z){return n(z)?M(z):f(z).isValid()?z:_.defaultLine}:function(z){return n(z)?g(M(z)):f(z).isValid()?z:_.defaultLine}).domain=M.domain,E.range=function(){return S},E}function g(b){var w={r:b[0],g:b[1],b:b[2],a:b[3]};return f(w).toRgbString()}c.exports={hasColorscale:function(b,w,x){var S=w?y.nestedProperty(b,w).get()||{}:b,k=S[x||"color"];k&&k._inputArray&&(k=k._inputArray);var T=!1;if(y.isArrayOrTypedArray(k)){for(var C=0;C<k.length;C++)if(n(k[C])){T=!0;break}}return y.isPlainObject(S)&&(T||S.showscale===!0||n(S.cmin)&&n(S.cmax)||p(S.colorscale)||y.isPlainObject(S.colorbar))},extractOpts:s,extractScale:u,flipScale:d,makeColorScaleFunc:h,makeColorScaleFuncFromTrace:function(b,w){return h(u(b),w)}}},88856:function(c,m,a){var v=a(19017),f=a(65477);c.exports={moduleType:"component",name:"colorscale",attributes:a(87163),layoutAttributes:a(56978),supplyLayoutDefaults:a(64613),handleDefaults:a(39356),crossTraceDefaults:a(67623),calc:a(28379),scales:v.scales,defaultScale:v.defaultScale,getScale:v.get,isValidScale:v.isValid,hasColorscale:f.hasColorscale,extractOpts:f.extractOpts,extractScale:f.extractScale,flipScale:f.flipScale,makeColorScaleFunc:f.makeColorScaleFunc,makeColorScaleFuncFromTrace:f.makeColorScaleFuncFromTrace}},56978:function(c,m,a){var v=a(93049).extendFlat,f=a(87163),n=a(19017).scales;c.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:n.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:n.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:n.RdBu,editType:"calc"}},coloraxis:v({_isSubplotObj:!0,editType:"calc"},f("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},64613:function(c,m,a){var v=a(34809),f=a(78032),n=a(56978),y=a(39356);c.exports=function(_,p){function l(w,x){return v.coerce(_,p,n,w,x)}l("colorscale.sequential"),l("colorscale.sequentialminus"),l("colorscale.diverging");var o,s,u=p._colorAxes;function d(w,x){return v.coerce(o,s,n.coloraxis,w,x)}for(var h in u){var g=u[h];if(g[0])o=_[h]||{},(s=f.newContainer(p,h,"coloraxis"))._name=h,y(o,s,p,d,{prefix:"",cLetter:"c"});else{for(var b=0;b<g[2].length;b++)g[2][b]();delete p._colorAxes[h]}}}},19017:function(c,m,a){var v=a(65657),f={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},n=f.RdBu;function y(_){var p=0;if(!Array.isArray(_)||_.length<2||!_[0]||!_[_.length-1]||+_[0][0]!=0||+_[_.length-1][0]!=1)return!1;for(var l=0;l<_.length;l++){var o=_[l];if(o.length!==2||+o[0]<p||!v(o[1]).isValid())return!1;p=+o[0]}return!0}c.exports={scales:f,defaultScale:n,get:function(_,p){if(p||(p=n),!_)return p;function l(){try{_=f[_]||JSON.parse(_)}catch{_=p}}return typeof _=="string"&&(l(),typeof _=="string"&&l()),y(_)?_:p},isValid:function(_){return f[_]!==void 0||y(_)}}},53770:function(c){c.exports=function(m,a,v,f,n){var y=(m-v)/(f-v),_=y+a/(f-v),p=(y+_)/2;return n==="left"||n==="bottom"?y:n==="center"||n==="middle"?p:n==="right"||n==="top"?_:y<.6666666666666666-p?y:_>1.3333333333333333-p?_:p}},4001:function(c,m,a){var v=a(34809),f=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];c.exports=function(n,y,_,p){return n=_==="left"?0:_==="center"?1:_==="right"?2:v.constrain(Math.floor(3*n),0,2),y=p==="bottom"?0:p==="middle"?1:p==="top"?2:v.constrain(Math.floor(3*y),0,2),f[y][n]}},70414:function(c,m){m.selectMode=function(a){return a==="lasso"||a==="select"},m.drawMode=function(a){return a==="drawclosedpath"||a==="drawopenpath"||a==="drawline"||a==="drawrect"||a==="drawcircle"},m.openMode=function(a){return a==="drawline"||a==="drawopenpath"},m.rectMode=function(a){return a==="select"||a==="drawline"||a==="drawrect"||a==="drawcircle"},m.freeMode=function(a){return a==="lasso"||a==="drawclosedpath"||a==="drawopenpath"},m.selectingOrDrawing=function(a){return m.freeMode(a)||m.rectMode(a)}},14751:function(c,m,a){var v=a(44039),f=a(39784),n=a(74043),y=a(34809).removeElement,_=a(54826),p=c.exports={};p.align=a(53770),p.getCursor=a(4001);var l=a(60148);function o(){var u=document.createElement("div");u.className="dragcover";var d=u.style;return d.position="fixed",d.left=0,d.right=0,d.top=0,d.bottom=0,d.zIndex=999999999,d.background="none",document.body.appendChild(u),u}function s(u){return v(u.changedTouches?u.changedTouches[0]:u,document.body)}p.unhover=l.wrapped,p.unhoverRaw=l.raw,p.init=function(u){var d,h,g,b,w,x,S,k,T=u.gd,C=1,A=T._context.doubleClickDelay,E=u.element;T._mouseDownTime||(T._mouseDownTime=0),E.style.pointerEvents="all",E.onmousedown=I,n?(E._ontouchstart&&E.removeEventListener("touchstart",E._ontouchstart),E._ontouchstart=I,E.addEventListener("touchstart",I,{passive:!1})):E.ontouchstart=I;var M=u.clampFn||function(F,R,V){return Math.abs(F)<V&&(F=0),Math.abs(R)<V&&(R=0),[F,R]};function I(F){T._dragged=!1,T._dragging=!0;var R=s(F);d=R[0],h=R[1],S=F.target,x=F,k=F.buttons===2||F.ctrlKey,F.clientX===void 0&&F.clientY===void 0&&(F.clientX=d,F.clientY=h),(g=new Date().getTime())-T._mouseDownTime<A?C+=1:(C=1,T._mouseDownTime=g),u.prepFn&&u.prepFn(F,d,h),f&&!k?(w=o()).style.cursor=window.getComputedStyle(E).cursor:f||(w=document,b=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(E).cursor),document.addEventListener("mouseup",z),document.addEventListener("touchend",z),u.dragmode!==!1&&(F.preventDefault(),document.addEventListener("mousemove",N),document.addEventListener("touchmove",N,{passive:!1}))}function N(F){F.preventDefault();var R=s(F),V=u.minDrag||_.MINDRAG,$=M(R[0]-d,R[1]-h,V),U=$[0],Z=$[1];(U||Z)&&(T._dragged=!0,p.unhover(T,F)),T._dragged&&u.moveFn&&!k&&(T._dragdata={element:E,dx:U,dy:Z},u.moveFn(U,Z))}function z(F){if(delete T._dragdata,u.dragmode!==!1&&(F.preventDefault(),document.removeEventListener("mousemove",N),document.removeEventListener("touchmove",N)),document.removeEventListener("mouseup",z),document.removeEventListener("touchend",z),f?y(w):b&&(w.documentElement.style.cursor=b,b=null),T._dragging){if(T._dragging=!1,new Date().getTime()-T._mouseDownTime>A&&(C=Math.max(C-1,1)),T._dragged)u.doneFn&&u.doneFn();else if(u.clickFn&&u.clickFn(C,x),!k){var R;try{R=new MouseEvent("click",F)}catch{var V=s(F);(R=document.createEvent("MouseEvents")).initMouseEvent("click",F.bubbles,F.cancelable,F.view,F.detail,F.screenX,F.screenY,V[0],V[1],F.ctrlKey,F.altKey,F.shiftKey,F.metaKey,F.button,F.relatedTarget)}S.dispatchEvent(R)}T._dragging=!1,T._dragged=!1}else T._dragged=!1}},p.coverSlip=o},60148:function(c,m,a){var v=a(68596),f=a(64025),n=a(95425).getGraphDiv,y=a(85988),_=c.exports={};_.wrapped=function(p,l,o){(p=n(p))._fullLayout&&f.clear(p._fullLayout._uid+y.HOVERID),_.raw(p,l,o)},_.raw=function(p,l){var o=p._fullLayout,s=p._hoverdata;l||(l={}),l.target&&!p._dragged&&v.triggerHandler(p,"plotly_beforehover",l)===!1||(o._hoverlayer.selectAll("g").remove(),o._hoverlayer.selectAll("line").remove(),o._hoverlayer.selectAll("circle").remove(),p._hoverdata=void 0,l.target&&s&&p.emit("plotly_unhover",{event:l,points:s}))}},94850:function(c,m){m.T={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},m.k={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},fillmode:{valType:"enumerated",values:["replace","overlay"],dflt:"replace",editType:"style"},bgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgcolor:{valType:"color",arrayOk:!0,editType:"style"},fgopacity:{valType:"number",editType:"style",min:0,max:1},size:{valType:"number",min:0,dflt:8,arrayOk:!0,editType:"style"},solidity:{valType:"number",min:0,max:1,dflt:.3,arrayOk:!0,editType:"style"},editType:"style"}},62203:function(c,m,a){var v=a(45568),f=a(34809),n=f.numberFormat,y=a(10721),_=a(65657),p=a(33626),l=a(78766),o=a(88856),s=f.strTranslate,u=a(30635),d=a(62972),h=a(4530).LINE_SPACING,g=a(20438).DESELECTDIM,b=a(64726),w=a(92527),x=a(36040).appendArrayPointValue,S=c.exports={};function k(Te){return Te==="none"?void 0:Te}S.font=function(Te,Ce){var ye=Ce.variant,ge=Ce.style,Me=Ce.weight,Se=Ce.color,ze=Ce.size,Fe=Ce.family,De=Ce.shadow,Ue=Ce.lineposition,Ne=Ce.textcase;Fe&&Te.style("font-family",Fe),ze+1&&Te.style("font-size",ze+"px"),Se&&Te.call(l.fill,Se),Me&&Te.style("font-weight",Me),ge&&Te.style("font-style",ge),ye&&Te.style("font-variant",ye),Ne&&Te.style("text-transform",k(function(ke){return T[ke]}(Ne))),De&&Te.style("text-shadow",De==="auto"?u.makeTextShadow(l.contrast(Se)):k(De)),Ue&&Te.style("text-decoration-line",k(function(ke){return ke.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}(Ue)))};var T={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function C(Te,Ce,ye,ge){var Me=Ce.fillpattern,Se=Ce.fillgradient,ze=Me&&S.getPatternAttr(Me.shape,0,"");if(ze){var Fe=S.getPatternAttr(Me.bgcolor,0,null),De=S.getPatternAttr(Me.fgcolor,0,null),Ue=Me.fgopacity,Ne=S.getPatternAttr(Me.size,0,8),ke=S.getPatternAttr(Me.solidity,0,.3),Oe=Ce.uid;S.pattern(Te,"point",ye,Oe,ze,Ne,ke,void 0,Me.fillmode,Fe,De,Ue)}else if(Se&&Se.type!=="none"){var Re,je,Ze=Se.type,Ye="scatterfill-"+Ce.uid;ge&&(Ye="legendfill-"+Ce.uid),ge||Se.start===void 0&&Se.stop===void 0?(Ze==="horizontal"&&(Ze+="reversed"),Te.call(S.gradient,ye,Ye,Ze,Se.colorscale,"fill")):(Ze==="horizontal"?(Re={x:Se.start,y:0},je={x:Se.stop,y:0}):Ze==="vertical"&&(Re={x:0,y:Se.start},je={x:0,y:Se.stop}),Re.x=Ce._xA.c2p(Re.x===void 0?Ce._extremes.x.min[0].val:Re.x,!0),Re.y=Ce._yA.c2p(Re.y===void 0?Ce._extremes.y.min[0].val:Re.y,!0),je.x=Ce._xA.c2p(je.x===void 0?Ce._extremes.x.max[0].val:je.x,!0),je.y=Ce._yA.c2p(je.y===void 0?Ce._extremes.y.max[0].val:je.y,!0),Te.call(z,ye,Ye,"linear",Se.colorscale,"fill",Re,je,!0,!1))}else Ce.fillcolor&&Te.call(l.fill,Ce.fillcolor)}S.setPosition=function(Te,Ce,ye){Te.attr("x",Ce).attr("y",ye)},S.setSize=function(Te,Ce,ye){Te.attr("width",Ce).attr("height",ye)},S.setRect=function(Te,Ce,ye,ge,Me){Te.call(S.setPosition,Ce,ye).call(S.setSize,ge,Me)},S.translatePoint=function(Te,Ce,ye,ge){var Me=ye.c2p(Te.x),Se=ge.c2p(Te.y);return!!(y(Me)&&y(Se)&&Ce.node())&&(Ce.node().nodeName==="text"?Ce.attr("x",Me).attr("y",Se):Ce.attr("transform",s(Me,Se)),!0)},S.translatePoints=function(Te,Ce,ye){Te.each(function(ge){var Me=v.select(this);S.translatePoint(ge,Me,Ce,ye)})},S.hideOutsideRangePoint=function(Te,Ce,ye,ge,Me,Se){Ce.attr("display",ye.isPtWithinRange(Te,Me)&&ge.isPtWithinRange(Te,Se)?null:"none")},S.hideOutsideRangePoints=function(Te,Ce){if(Ce._hasClipOnAxisFalse){var ye=Ce.xaxis,ge=Ce.yaxis;Te.each(function(Me){var Se=Me[0].trace,ze=Se.xcalendar,Fe=Se.ycalendar,De=p.traceIs(Se,"bar-like")?".bartext":".point,.textpoint";Te.selectAll(De).each(function(Ue){S.hideOutsideRangePoint(Ue,v.select(this),ye,ge,ze,Fe)})})}},S.crispRound=function(Te,Ce,ye){return Ce&&y(Ce)?Te._context.staticPlot?Ce:Ce<1?1:Math.round(Ce):ye||0},S.singleLineStyle=function(Te,Ce,ye,ge,Me){Ce.style("fill","none");var Se=(((Te||[])[0]||{}).trace||{}).line||{},ze=ye||Se.width||0,Fe=Me||Se.dash||"";l.stroke(Ce,ge||Se.color),S.dashLine(Ce,Fe,ze)},S.lineGroupStyle=function(Te,Ce,ye,ge){Te.style("fill","none").each(function(Me){var Se=(((Me||[])[0]||{}).trace||{}).line||{},ze=Ce||Se.width||0,Fe=ge||Se.dash||"";v.select(this).call(l.stroke,ye||Se.color).call(S.dashLine,Fe,ze)})},S.dashLine=function(Te,Ce,ye){ye=+ye||0,Ce=S.dashStyle(Ce,ye),Te.style({"stroke-dasharray":Ce,"stroke-width":ye+"px"})},S.dashStyle=function(Te,Ce){Ce=+Ce||1;var ye=Math.max(Ce,3);return Te==="solid"?Te="":Te==="dot"?Te=ye+"px,"+ye+"px":Te==="dash"?Te=3*ye+"px,"+3*ye+"px":Te==="longdash"?Te=5*ye+"px,"+5*ye+"px":Te==="dashdot"?Te=3*ye+"px,"+ye+"px,"+ye+"px,"+ye+"px":Te==="longdashdot"&&(Te=5*ye+"px,"+2*ye+"px,"+ye+"px,"+2*ye+"px"),Te},S.singleFillStyle=function(Te,Ce){var ye=v.select(Te.node());C(Te,((ye.data()[0]||[])[0]||{}).trace||{},Ce,!1)},S.fillGroupStyle=function(Te,Ce,ye){Te.style("stroke-width",0).each(function(ge){var Me=v.select(this);ge[0].trace&&C(Me,ge[0].trace,Ce,ye)})};var A=a(38882);S.symbolNames=[],S.symbolFuncs=[],S.symbolBackOffs=[],S.symbolNeedLines={},S.symbolNoDot={},S.symbolNoFill={},S.symbolList=[],Object.keys(A).forEach(function(Te){var Ce=A[Te],ye=Ce.n;S.symbolList.push(ye,String(ye),Te,ye+100,String(ye+100),Te+"-open"),S.symbolNames[ye]=Te,S.symbolFuncs[ye]=Ce.f,S.symbolBackOffs[ye]=Ce.backoff||0,Ce.needLine&&(S.symbolNeedLines[ye]=!0),Ce.noDot?S.symbolNoDot[ye]=!0:S.symbolList.push(ye+200,String(ye+200),Te+"-dot",ye+300,String(ye+300),Te+"-open-dot"),Ce.noFill&&(S.symbolNoFill[ye]=!0)});var E=S.symbolNames.length;function M(Te,Ce,ye,ge){var Me=Te%100;return S.symbolFuncs[Me](Ce,ye,ge)+(Te>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}S.symbolNumber=function(Te){if(y(Te))Te=+Te;else if(typeof Te=="string"){var Ce=0;Te.indexOf("-open")>0&&(Ce=100,Te=Te.replace("-open","")),Te.indexOf("-dot")>0&&(Ce+=200,Te=Te.replace("-dot","")),(Te=S.symbolNames.indexOf(Te))>=0&&(Te+=Ce)}return Te%100>=E||Te>=400?0:Math.floor(Math.max(Te,0))};var I=n("~f"),N={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};function z(Te,Ce,ye,ge,Me,Se,ze,Fe,De,Ue){var Ne,ke=Me.length;ge==="linear"?Ne={node:"linearGradient",attrs:{x1:ze.x,y1:ze.y,x2:Fe.x,y2:Fe.y,gradientUnits:De?"userSpaceOnUse":"objectBoundingBox"},reversed:Ue}:ge==="radial"&&(Ne={node:"radialGradient",reversed:Ue});for(var Oe=new Array(ke),Re=0;Re<ke;Re++)Ne.reversed?Oe[ke-1-Re]=[I(100*(1-Me[Re][0])),Me[Re][1]]:Oe[Re]=[I(100*Me[Re][0]),Me[Re][1]];var je=Ce._fullLayout,Ze="g"+je._uid+"-"+ye,Ye=je._defs.select(".gradients").selectAll("#"+Ze).data([ge+Oe.join(";")],f.identity);Ye.exit().remove(),Ye.enter().append(Ne.node).each(function(){var it=v.select(this);Ne.attrs&&it.attr(Ne.attrs),it.attr("id",Ze);var dt=it.selectAll("stop").data(Oe);dt.exit().remove(),dt.enter().append("stop"),dt.each(function(ut){var It=_(ut[1]);v.select(this).attr({offset:ut[0]+"%","stop-color":l.tinyRGB(It),"stop-opacity":It.getAlpha()})})}),Te.style(Se,se(Ze,Ce)).style(Se+"-opacity",null),Te.classed("gradient_filled",!0)}S.gradient=function(Te,Ce,ye,ge,Me,Se){var ze=N[ge];return z(Te,Ce,ye,ze.type,Me,Se,ze.start,ze.stop,!1,ze.reversed)},S.pattern=function(Te,Ce,ye,ge,Me,Se,ze,Fe,De,Ue,Ne,ke){var Oe=Ce==="legend";Fe&&(De==="overlay"?(Ue=Fe,Ne=l.contrast(Ue)):(Ue=void 0,Ne=Fe));var Re,je,Ze,Ye,it,dt,ut,It,Ot,Ft=ye._fullLayout,ot="p"+Ft._uid+"-"+ge,tt={},vt=_(Ne),At=l.tinyRGB(vt),Dt=ke*vt.getAlpha();switch(Me){case"/":Re=Se*Math.sqrt(2),je=Se*Math.sqrt(2),dt="path",tt={d:Ze="M-"+Re/4+","+je/4+"l"+Re/2+",-"+je/2+"M0,"+je+"L"+Re+",0M"+Re/4*3+","+je/4*5+"l"+Re/2+",-"+je/2,opacity:Dt,stroke:At,"stroke-width":(Ye=ze*Se)+"px"};break;case"\\":Re=Se*Math.sqrt(2),je=Se*Math.sqrt(2),dt="path",tt={d:Ze="M"+Re/4*3+",-"+je/4+"l"+Re/2+","+je/2+"M0,0L"+Re+","+je+"M-"+Re/4+","+je/4*3+"l"+Re/2+","+je/2,opacity:Dt,stroke:At,"stroke-width":(Ye=ze*Se)+"px"};break;case"x":Re=Se*Math.sqrt(2),je=Se*Math.sqrt(2),Ze="M-"+Re/4+","+je/4+"l"+Re/2+",-"+je/2+"M0,"+je+"L"+Re+",0M"+Re/4*3+","+je/4*5+"l"+Re/2+",-"+je/2+"M"+Re/4*3+",-"+je/4+"l"+Re/2+","+je/2+"M0,0L"+Re+","+je+"M-"+Re/4+","+je/4*3+"l"+Re/2+","+je/2,Ye=Se-Se*Math.sqrt(1-ze),dt="path",tt={d:Ze,opacity:Dt,stroke:At,"stroke-width":Ye+"px"};break;case"|":dt="path",dt="path",tt={d:Ze="M"+(Re=Se)/2+",0L"+Re/2+","+(je=Se),opacity:Dt,stroke:At,"stroke-width":(Ye=ze*Se)+"px"};break;case"-":dt="path",dt="path",tt={d:Ze="M0,"+(je=Se)/2+"L"+(Re=Se)+","+je/2,opacity:Dt,stroke:At,"stroke-width":(Ye=ze*Se)+"px"};break;case"+":dt="path",Ze="M"+(Re=Se)/2+",0L"+Re/2+","+(je=Se)+"M0,"+je/2+"L"+Re+","+je/2,Ye=Se-Se*Math.sqrt(1-ze),dt="path",tt={d:Ze,opacity:Dt,stroke:At,"stroke-width":Ye+"px"};break;case".":Re=Se,je=Se,ze<Math.PI/4?it=Math.sqrt(ze*Se*Se/Math.PI):(ut=ze,It=Math.PI/4,it=(Ot=Se/2)+(Se/Math.sqrt(2)-Ot)*(ut-It)/(1-It)),dt="circle",tt={cx:Re/2,cy:je/2,r:it,opacity:Dt,fill:At}}var Pt=[Me||"noSh",Ue||"noBg",Ne||"noFg",Se,ze].join(";"),et=Ft._defs.select(".patterns").selectAll("#"+ot).data([Pt],f.identity);et.exit().remove(),et.enter().append("pattern").each(function(){var rt=v.select(this);if(rt.attr({id:ot,width:Re+"px",height:je+"px",patternUnits:"userSpaceOnUse",patternTransform:Oe?"scale(0.8)":""}),Ue){var We=_(Ue),nt=l.tinyRGB(We),_t=We.getAlpha(),mt=rt.selectAll("rect").data([0]);mt.exit().remove(),mt.enter().append("rect").attr({width:Re+"px",height:je+"px",fill:nt,"fill-opacity":_t})}var St=rt.selectAll(dt).data([0]);St.exit().remove(),St.enter().append(dt).attr(tt)}),Te.style("fill",se(ot,ye)).style("fill-opacity",null),Te.classed("pattern_filled",!0)},S.initGradients=function(Te){var Ce=Te._fullLayout;f.ensureSingle(Ce._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),v.select(Te).selectAll(".gradient_filled").classed("gradient_filled",!1)},S.initPatterns=function(Te){var Ce=Te._fullLayout;f.ensureSingle(Ce._defs,"g","patterns").selectAll("pattern").remove(),v.select(Te).selectAll(".pattern_filled").classed("pattern_filled",!1)},S.getPatternAttr=function(Te,Ce,ye){return Te&&f.isArrayOrTypedArray(Te)?Ce<Te.length?Te[Ce]:ye:Te},S.pointStyle=function(Te,Ce,ye,ge){if(Te.size()){var Me=S.makePointStyleFns(Ce);Te.each(function(Se){S.singlePointStyle(Se,v.select(this),Ce,Me,ye,ge)})}},S.singlePointStyle=function(Te,Ce,ye,ge,Me,Se){var ze=ye.marker,Fe=ze.line;if(Se&&Se.i>=0&&Te.i===void 0&&(Te.i=Se.i),Ce.style("opacity",ge.selectedOpacityFn?ge.selectedOpacityFn(Te):Te.mo===void 0?ze.opacity:Te.mo),ge.ms2mrc){var De;De=Te.ms==="various"||ze.size==="various"?3:ge.ms2mrc(Te.ms),Te.mrc=De,ge.selectedSizeFn&&(De=Te.mrc=ge.selectedSizeFn(Te));var Ue=S.symbolNumber(Te.mx||ze.symbol)||0;Te.om=Ue%200>=100;var Ne=$e(Te,ye),ke=ne(Te,ye);Ce.attr("d",M(Ue,De,Ne,ke))}var Oe,Re,je,Ze=!1;if(Te.so)je=Fe.outlierwidth,Re=Fe.outliercolor,Oe=ze.outliercolor;else{var Ye=(Fe||{}).width;je=(Te.mlw+1||Ye+1||(Te.trace?(Te.trace.marker.line||{}).width:0)+1)-1||0,Re="mlc"in Te?Te.mlcc=ge.lineScale(Te.mlc):f.isArrayOrTypedArray(Fe.color)?l.defaultLine:Fe.color,f.isArrayOrTypedArray(ze.color)&&(Oe=l.defaultLine,Ze=!0),Oe="mc"in Te?Te.mcc=ge.markerScale(Te.mc):ze.color||ze.colors||"rgba(0,0,0,0)",ge.selectedColorFn&&(Oe=ge.selectedColorFn(Te))}if(Te.om)Ce.call(l.stroke,Oe).style({"stroke-width":(je||1)+"px",fill:"none"});else{Ce.style("stroke-width",(Te.isBlank?0:je)+"px");var it=ze.gradient,dt=Te.mgt;dt?Ze=!0:dt=it&&it.type,f.isArrayOrTypedArray(dt)&&(dt=dt[0],N[dt]||(dt=0));var ut=ze.pattern,It=ut&&S.getPatternAttr(ut.shape,Te.i,"");if(dt&&dt!=="none"){var Ot=Te.mgc;Ot?Ze=!0:Ot=it.color;var Ft=ye.uid;Ze&&(Ft+="-"+Te.i),S.gradient(Ce,Me,Ft,dt,[[0,Ot],[1,Oe]],"fill")}else if(It){var ot=!1,tt=ut.fgcolor;!tt&&Se&&Se.color&&(tt=Se.color,ot=!0);var vt=S.getPatternAttr(tt,Te.i,Se&&Se.color||null),At=S.getPatternAttr(ut.bgcolor,Te.i,null),Dt=ut.fgopacity,Pt=S.getPatternAttr(ut.size,Te.i,8),et=S.getPatternAttr(ut.solidity,Te.i,.3);ot=ot||Te.mcc||f.isArrayOrTypedArray(ut.shape)||f.isArrayOrTypedArray(ut.bgcolor)||f.isArrayOrTypedArray(ut.fgcolor)||f.isArrayOrTypedArray(ut.size)||f.isArrayOrTypedArray(ut.solidity);var rt=ye.uid;ot&&(rt+="-"+Te.i),S.pattern(Ce,"point",Me,rt,It,Pt,et,Te.mcc,ut.fillmode,At,vt,Dt)}else f.isArrayOrTypedArray(Oe)?l.fill(Ce,Oe[Te.i]):l.fill(Ce,Oe);je&&l.stroke(Ce,Re)}},S.makePointStyleFns=function(Te){var Ce={},ye=Te.marker;return Ce.markerScale=S.tryColorscale(ye,""),Ce.lineScale=S.tryColorscale(ye,"line"),p.traceIs(Te,"symbols")&&(Ce.ms2mrc=b.isBubble(Te)?w(Te):function(){return(ye.size||6)/2}),Te.selectedpoints&&f.extendFlat(Ce,S.makeSelectedPointStyleFns(Te)),Ce},S.makeSelectedPointStyleFns=function(Te){var Ce={},ye=Te.selected||{},ge=Te.unselected||{},Me=Te.marker||{},Se=ye.marker||{},ze=ge.marker||{},Fe=Me.opacity,De=Se.opacity,Ue=ze.opacity,Ne=De!==void 0,ke=Ue!==void 0;(f.isArrayOrTypedArray(Fe)||Ne||ke)&&(Ce.selectedOpacityFn=function(It){var Ot=It.mo===void 0?Me.opacity:It.mo;return It.selected?Ne?De:Ot:ke?Ue:g*Ot});var Oe=Me.color,Re=Se.color,je=ze.color;(Re||je)&&(Ce.selectedColorFn=function(It){var Ot=It.mcc||Oe;return It.selected?Re||Ot:je||Ot});var Ze=Me.size,Ye=Se.size,it=ze.size,dt=Ye!==void 0,ut=it!==void 0;return p.traceIs(Te,"symbols")&&(dt||ut)&&(Ce.selectedSizeFn=function(It){var Ot=It.mrc||Ze/2;return It.selected?dt?Ye/2:Ot:ut?it/2:Ot}),Ce},S.makeSelectedTextStyleFns=function(Te){var Ce={},ye=Te.selected||{},ge=Te.unselected||{},Me=Te.textfont||{},Se=ye.textfont||{},ze=ge.textfont||{},Fe=Me.color,De=Se.color,Ue=ze.color;return Ce.selectedTextColorFn=function(Ne){var ke=Ne.tc||Fe;return Ne.selected?De||ke:Ue||(De?ke:l.addOpacity(ke,g))},Ce},S.selectedPointStyle=function(Te,Ce){if(Te.size()&&Ce.selectedpoints){var ye=S.makeSelectedPointStyleFns(Ce),ge=Ce.marker||{},Me=[];ye.selectedOpacityFn&&Me.push(function(Se,ze){Se.style("opacity",ye.selectedOpacityFn(ze))}),ye.selectedColorFn&&Me.push(function(Se,ze){l.fill(Se,ye.selectedColorFn(ze))}),ye.selectedSizeFn&&Me.push(function(Se,ze){var Fe=ze.mx||ge.symbol||0,De=ye.selectedSizeFn(ze);Se.attr("d",M(S.symbolNumber(Fe),De,$e(ze,Ce),ne(ze,Ce))),ze.mrc2=De}),Me.length&&Te.each(function(Se){for(var ze=v.select(this),Fe=0;Fe<Me.length;Fe++)Me[Fe](ze,Se)})}},S.tryColorscale=function(Te,Ce){var ye=Ce?f.nestedProperty(Te,Ce).get():Te;if(ye){var ge=ye.color;if((ye.colorscale||ye._colorAx)&&f.isArrayOrTypedArray(ge))return o.makeColorScaleFuncFromTrace(ye)}return f.identity};var F,R,V={start:1,end:-1,middle:0,bottom:1,top:-1};function $(Te,Ce,ye,ge,Me){var Se=v.select(Te.node().parentNode),ze=Ce.indexOf("top")!==-1?"top":Ce.indexOf("bottom")!==-1?"bottom":"middle",Fe=Ce.indexOf("left")!==-1?"end":Ce.indexOf("right")!==-1?"start":"middle",De=ge?ge/.8+1:0,Ue=(u.lineCount(Te)-1)*h+1,Ne=V[Fe]*De,ke=.75*ye+V[ze]*De+(V[ze]-1)*Ue*ye/2;Te.attr("text-anchor",Fe),Me||Se.attr("transform",s(Ne,ke))}function U(Te,Ce){var ye=Te.ts||Ce.textfont.size;return y(ye)&&ye>0?ye:0}function Z(Te,Ce,ye){return ye&&(Te=ee(Te)),Ce?W(Te[1]):q(Te[0])}function q(Te){var Ce=v.round(Te,2);return F=Ce,Ce}function W(Te){var Ce=v.round(Te,2);return R=Ce,Ce}function Q(Te,Ce,ye,ge){var Me=Te[0]-Ce[0],Se=Te[1]-Ce[1],ze=ye[0]-Ce[0],Fe=ye[1]-Ce[1],De=Math.pow(Me*Me+Se*Se,.25),Ue=Math.pow(ze*ze+Fe*Fe,.25),Ne=(Ue*Ue*Me-De*De*ze)*ge,ke=(Ue*Ue*Se-De*De*Fe)*ge,Oe=3*Ue*(De+Ue),Re=3*De*(De+Ue);return[[q(Ce[0]+(Oe&&Ne/Oe)),W(Ce[1]+(Oe&&ke/Oe))],[q(Ce[0]-(Re&&Ne/Re)),W(Ce[1]-(Re&&ke/Re))]]}S.textPointStyle=function(Te,Ce,ye){if(Te.size()){var ge;if(Ce.selectedpoints){var Me=S.makeSelectedTextStyleFns(Ce);ge=Me.selectedTextColorFn}var Se=Ce.texttemplate,ze=ye._fullLayout;Te.each(function(Fe){var De=v.select(this),Ue=Se?f.extractOption(Fe,Ce,"txt","texttemplate"):f.extractOption(Fe,Ce,"tx","text");if(Ue||Ue===0){if(Se){var Ne=Ce._module.formatLabels,ke=Ne?Ne(Fe,Ce,ze):{},Oe={};x(Oe,Ce,Fe.i);var Re=Ce._meta||{};Ue=f.texttemplateString(Ue,ke,ze._d3locale,Oe,Fe,Re)}var je=Fe.tp||Ce.textposition,Ze=U(Fe,Ce),Ye=ge?ge(Fe):Fe.tc||Ce.textfont.color;De.call(S.font,{family:Fe.tf||Ce.textfont.family,weight:Fe.tw||Ce.textfont.weight,style:Fe.ty||Ce.textfont.style,variant:Fe.tv||Ce.textfont.variant,textcase:Fe.tC||Ce.textfont.textcase,lineposition:Fe.tE||Ce.textfont.lineposition,shadow:Fe.tS||Ce.textfont.shadow,size:Ze,color:Ye}).text(Ue).call(u.convertToTspans,ye).call($,je,Ze,Fe.mrc)}else De.remove()})}},S.selectedTextStyle=function(Te,Ce){if(Te.size()&&Ce.selectedpoints){var ye=S.makeSelectedTextStyleFns(Ce);Te.each(function(ge){var Me=v.select(this),Se=ye.selectedTextColorFn(ge),ze=ge.tp||Ce.textposition,Fe=U(ge,Ce);l.fill(Me,Se);var De=p.traceIs(Ce,"bar-like");$(Me,ze,Fe,ge.mrc2||ge.mrc,De)})}},S.smoothopen=function(Te,Ce){if(Te.length<3)return"M"+Te.join("L");var ye,ge="M"+Te[0],Me=[];for(ye=1;ye<Te.length-1;ye++)Me.push(Q(Te[ye-1],Te[ye],Te[ye+1],Ce));for(ge+="Q"+Me[0][0]+" "+Te[1],ye=2;ye<Te.length-1;ye++)ge+="C"+Me[ye-2][1]+" "+Me[ye-1][0]+" "+Te[ye];return ge+"Q"+Me[Te.length-3][1]+" "+Te[Te.length-1]},S.smoothclosed=function(Te,Ce){if(Te.length<3)return"M"+Te.join("L")+"Z";var ye,ge="M"+Te[0],Me=Te.length-1,Se=[Q(Te[Me],Te[0],Te[1],Ce)];for(ye=1;ye<Me;ye++)Se.push(Q(Te[ye-1],Te[ye],Te[ye+1],Ce));for(Se.push(Q(Te[Me-1],Te[Me],Te[0],Ce)),ye=1;ye<=Me;ye++)ge+="C"+Se[ye-1][1]+" "+Se[ye][0]+" "+Te[ye];return ge+"C"+Se[Me][1]+" "+Se[0][0]+" "+Te[0]+"Z"};var X={hv:function(Te,Ce,ye){return"H"+q(Ce[0])+"V"+Z(Ce,1,ye)},vh:function(Te,Ce,ye){return"V"+W(Ce[1])+"H"+Z(Ce,0,ye)},hvh:function(Te,Ce,ye){return"H"+q((Te[0]+Ce[0])/2)+"V"+W(Ce[1])+"H"+Z(Ce,0,ye)},vhv:function(Te,Ce,ye){return"V"+W((Te[1]+Ce[1])/2)+"H"+q(Ce[0])+"V"+Z(Ce,1,ye)}},J=function(Te,Ce,ye){return"L"+Z(Ce,0,ye)+","+Z(Ce,1,ye)};function ee(Te,Ce){var ye=Te.backoff,ge=Te.trace,Me=Te.d,Se=Te.i;if(ye&&ge&&ge.marker&&ge.marker.angle%360==0&&ge.line&&ge.line.shape!=="spline"){var ze=f.isArrayOrTypedArray(ye),Fe=Te,De=Ce?Ce[0]:F||0,Ue=Ce?Ce[1]:R||0,Ne=Fe[0],ke=Fe[1],Oe=Ne-De,Re=ke-Ue,je=Math.atan2(Re,Oe),Ze=ze?ye[Se]:ye;if(Ze==="auto"){var Ye=Fe.i;ge.type==="scatter"&&Ye--;var it=Fe.marker,dt=it.symbol;f.isArrayOrTypedArray(dt)&&(dt=dt[Ye]);var ut=it.size;f.isArrayOrTypedArray(ut)&&(ut=ut[Ye]),Ze=it?S.symbolBackOffs[S.symbolNumber(dt)]*ut:0,Ze+=S.getMarkerStandoff(Me[Ye],ge)||0}var It=Ne-Ze*Math.cos(je),Ot=ke-Ze*Math.sin(je);(It<=Ne&&It>=De||It>=Ne&&It<=De)&&(Ot<=ke&&Ot>=Ue||Ot>=ke&&Ot<=Ue)&&(Te=[It,Ot])}return Te}S.steps=function(Te){var Ce=X[Te]||J;return function(ye){for(var ge="M"+q(ye[0][0])+","+W(ye[0][1]),Me=ye.length,Se=1;Se<Me;Se++)ge+=Ce(ye[Se-1],ye[Se],Se===Me-1);return ge}},S.applyBackoff=ee,S.makeTester=function(){var Te=f.ensureSingleById(v.select("body"),"svg","js-plotly-tester",function(ye){ye.attr(d.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),Ce=f.ensureSingle(Te,"path","js-reference-point",function(ye){ye.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});S.tester=Te,S.testref=Ce},S.savedBBoxes={};var le=0;function oe(Te){var Ce=Te.getAttribute("data-unformatted");if(Ce!==null)return Ce+Te.getAttribute("data-math")+Te.getAttribute("text-anchor")+Te.getAttribute("style")}function se(Te,Ce){if(!Te)return null;var ye=Ce._context,ge=ye._exportedPlot?"":ye._baseUrl||"";return ge?"url('"+ge+"#"+Te+"')":"url(#"+Te+")"}S.bBox=function(Te,Ce,ye){var ge,Me,Se;if(ye||(ye=oe(Te)),ye){if(ge=S.savedBBoxes[ye])return f.extendFlat({},ge)}else if(Te.childNodes.length===1){var ze=Te.childNodes[0];if(ye=oe(ze)){var Fe=+ze.getAttribute("x")||0,De=+ze.getAttribute("y")||0,Ue=ze.getAttribute("transform");if(!Ue){var Ne=S.bBox(ze,!1,ye);return Fe&&(Ne.left+=Fe,Ne.right+=Fe),De&&(Ne.top+=De,Ne.bottom+=De),Ne}if(ye+="~"+Fe+"~"+De+"~"+Ue,ge=S.savedBBoxes[ye])return f.extendFlat({},ge)}}Ce?Me=Te:(Se=S.tester.node(),Me=Te.cloneNode(!0),Se.appendChild(Me)),v.select(Me).attr("transform",null).call(u.positionText,0,0);var ke=Me.getBoundingClientRect(),Oe=S.testref.node().getBoundingClientRect();Ce||Se.removeChild(Me);var Re={height:ke.height,width:ke.width,left:ke.left-Oe.left,top:ke.top-Oe.top,right:ke.right-Oe.left,bottom:ke.bottom-Oe.top};return le>=1e4&&(S.savedBBoxes={},le=0),ye&&(S.savedBBoxes[ye]=Re),le++,f.extendFlat({},Re)},S.setClipUrl=function(Te,Ce,ye){Te.attr("clip-path",se(Ce,ye))},S.getTranslate=function(Te){var Ce=(Te[Te.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(ye,ge,Me){return[ge,Me].join(" ")}).split(" ");return{x:+Ce[0]||0,y:+Ce[1]||0}},S.setTranslate=function(Te,Ce,ye){var ge=Te.attr?"attr":"getAttribute",Me=Te.attr?"attr":"setAttribute",Se=Te[ge]("transform")||"";return Ce=Ce||0,ye=ye||0,Se=Se.replace(/(\btranslate\(.*?\);?)/,"").trim(),Se=(Se+=s(Ce,ye)).trim(),Te[Me]("transform",Se),Se},S.getScale=function(Te){var Ce=(Te[Te.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(ye,ge,Me){return[ge,Me].join(" ")}).split(" ");return{x:+Ce[0]||1,y:+Ce[1]||1}},S.setScale=function(Te,Ce,ye){var ge=Te.attr?"attr":"getAttribute",Me=Te.attr?"attr":"setAttribute",Se=Te[ge]("transform")||"";return Ce=Ce||1,ye=ye||1,Se=Se.replace(/(\bscale\(.*?\);?)/,"").trim(),Se=(Se+="scale("+Ce+","+ye+")").trim(),Te[Me]("transform",Se),Se};var ce=/\s*sc.*/;S.setPointGroupScale=function(Te,Ce,ye){if(Ce=Ce||1,ye=ye||1,Te){var ge=Ce===1&&ye===1?"":"scale("+Ce+","+ye+")";Te.each(function(){var Me=(this.getAttribute("transform")||"").replace(ce,"");Me=(Me+=ge).trim(),this.setAttribute("transform",Me)})}};var ae=/translate\([^)]*\)\s*$/;function ne(Te,Ce){var ye;return Te&&(ye=Te.mf),ye===void 0&&(ye=Ce.marker&&Ce.marker.standoff||0),Ce._geo||Ce._xA?ye:-ye}S.setTextPointsScale=function(Te,Ce,ye){Te&&Te.each(function(){var ge,Me=v.select(this),Se=Me.select("text");if(Se.node()){var ze=parseFloat(Se.attr("x")||0),Fe=parseFloat(Se.attr("y")||0),De=(Me.attr("transform")||"").match(ae);ge=Ce===1&&ye===1?[]:[s(ze,Fe),"scale("+Ce+","+ye+")",s(-ze,-Fe)],De&&ge.push(De),Me.attr("transform",ge.join(""))}})},S.getMarkerStandoff=ne;var ie,ue,he,pe,me,_e,xe=Math.atan2,we=Math.cos,Ee=Math.sin;function Pe(Te,Ce){var ye=Ce[0],ge=Ce[1];return[ye*we(Te)-ge*Ee(Te),ye*Ee(Te)+ge*we(Te)]}function $e(Te,Ce){var ye,ge,Me=Te.ma;Me===void 0&&((Me=Ce.marker.angle)&&!f.isArrayOrTypedArray(Me)||(Me=0));var Se=Ce.marker.angleref;if(Se==="previous"||Se==="north"){if(Ce._geo){var ze=Ce._geo.project(Te.lonlat);ye=ze[0],ge=ze[1]}else{var Fe=Ce._xA,De=Ce._yA;if(!Fe||!De)return 90;ye=Fe.c2p(Te.x),ge=De.c2p(Te.y)}if(Ce._geo){var Ue,Ne=Te.lonlat[0],ke=Te.lonlat[1],Oe=Ce._geo.project([Ne,ke+1e-5]),Re=Ce._geo.project([Ne+1e-5,ke]),je=xe(Re[1]-ge,Re[0]-ye),Ze=xe(Oe[1]-ge,Oe[0]-ye);if(Se==="north")Ue=Me/180*Math.PI;else if(Se==="previous"){var Ye=Ne/180*Math.PI,it=ke/180*Math.PI,dt=ie/180*Math.PI,ut=ue/180*Math.PI,It=dt-Ye,Ot=we(ut)*Ee(It),Ft=Ee(ut)*we(it)-we(ut)*Ee(it)*we(It);Ue=-xe(Ot,Ft)-Math.PI,ie=Ne,ue=ke}var ot=Pe(je,[we(Ue),0]),tt=Pe(Ze,[Ee(Ue),0]);Me=xe(ot[1]+tt[1],ot[0]+tt[0])/Math.PI*180,Se!=="previous"||_e===Ce.uid&&Te.i===me+1||(Me=null)}if(Se==="previous"&&!Ce._geo)if(_e===Ce.uid&&Te.i===me+1&&y(ye)&&y(ge)){var vt=ye-he,At=ge-pe,Dt=Ce.line&&Ce.line.shape||"",Pt=Dt.slice(Dt.length-1);Pt==="h"&&(At=0),Pt==="v"&&(vt=0),Me+=xe(At,vt)/Math.PI*180+90}else Me=null}return he=ye,pe=ge,me=Te.i,_e=Ce.uid,Me}S.getMarkerAngle=$e},38882:function(c,m,a){var v,f,n,y,_=a(26953),p=a(45568).round,l="M0,0Z",o=Math.sqrt(2),s=Math.sqrt(3),u=Math.PI,d=Math.cos,h=Math.sin;function g(w){return w===null}function b(w,x,S){if(!(w&&w%360!=0||x))return S;if(n===w&&y===x&&v===S)return f;function k(U,Z){var q=d(U),W=h(U),Q=Z[0],X=Z[1]+(x||0);return[Q*q-X*W,Q*W+X*q]}n=w,y=x,v=S;for(var T=w/180*u,C=0,A=0,E=_(S),M="",I=0;I<E.length;I++){var N=E[I],z=N[0],F=C,R=A;if(z==="M"||z==="L")C=+N[1],A=+N[2];else if(z==="m"||z==="l")C+=+N[1],A+=+N[2];else if(z==="H")C=+N[1];else if(z==="h")C+=+N[1];else if(z==="V")A=+N[1];else if(z==="v")A+=+N[1];else if(z==="A"){C=+N[1],A=+N[2];var V=k(T,[+N[6],+N[7]]);N[6]=V[0],N[7]=V[1],N[3]=+N[3]+w}z!=="H"&&z!=="V"||(z="L"),z!=="h"&&z!=="v"||(z="l"),z!=="m"&&z!=="l"||(C-=F,A-=R);var $=k(T,[C,A]);z!=="H"&&z!=="V"||(z="L"),z!=="M"&&z!=="L"&&z!=="m"&&z!=="l"||(N[1]=$[0],N[2]=$[1]),N[0]=z,M+=N[0]+N.slice(1).join(",")}return f=M,M}c.exports={circle:{n:0,f:function(w,x,S){if(g(x))return l;var k=p(w,2),T="M"+k+",0A"+k+","+k+" 0 1,1 0,-"+k+"A"+k+","+k+" 0 0,1 "+k+",0Z";return S?b(x,S,T):T}},square:{n:1,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M"+k+","+k+"H-"+k+"V-"+k+"H"+k+"Z")}},diamond:{n:2,f:function(w,x,S){if(g(x))return l;var k=p(1.3*w,2);return b(x,S,"M"+k+",0L0,"+k+"L-"+k+",0L0,-"+k+"Z")}},cross:{n:3,f:function(w,x,S){if(g(x))return l;var k=p(.4*w,2),T=p(1.2*w,2);return b(x,S,"M"+T+","+k+"H"+k+"V"+T+"H-"+k+"V"+k+"H-"+T+"V-"+k+"H-"+k+"V-"+T+"H"+k+"V-"+k+"H"+T+"Z")}},x:{n:4,f:function(w,x,S){if(g(x))return l;var k=p(.8*w/o,2),T="l"+k+","+k,C="l"+k+",-"+k,A="l-"+k+",-"+k,E="l-"+k+","+k;return b(x,S,"M0,"+k+T+C+A+C+A+E+A+E+T+E+T+"Z")}},"triangle-up":{n:5,f:function(w,x,S){if(g(x))return l;var k=p(2*w/s,2);return b(x,S,"M-"+k+","+p(w/2,2)+"H"+k+"L0,-"+p(w,2)+"Z")}},"triangle-down":{n:6,f:function(w,x,S){if(g(x))return l;var k=p(2*w/s,2);return b(x,S,"M-"+k+",-"+p(w/2,2)+"H"+k+"L0,"+p(w,2)+"Z")}},"triangle-left":{n:7,f:function(w,x,S){if(g(x))return l;var k=p(2*w/s,2);return b(x,S,"M"+p(w/2,2)+",-"+k+"V"+k+"L-"+p(w,2)+",0Z")}},"triangle-right":{n:8,f:function(w,x,S){if(g(x))return l;var k=p(2*w/s,2);return b(x,S,"M-"+p(w/2,2)+",-"+k+"V"+k+"L"+p(w,2)+",0Z")}},"triangle-ne":{n:9,f:function(w,x,S){if(g(x))return l;var k=p(.6*w,2),T=p(1.2*w,2);return b(x,S,"M-"+T+",-"+k+"H"+k+"V"+T+"Z")}},"triangle-se":{n:10,f:function(w,x,S){if(g(x))return l;var k=p(.6*w,2),T=p(1.2*w,2);return b(x,S,"M"+k+",-"+T+"V"+k+"H-"+T+"Z")}},"triangle-sw":{n:11,f:function(w,x,S){if(g(x))return l;var k=p(.6*w,2),T=p(1.2*w,2);return b(x,S,"M"+T+","+k+"H-"+k+"V-"+T+"Z")}},"triangle-nw":{n:12,f:function(w,x,S){if(g(x))return l;var k=p(.6*w,2),T=p(1.2*w,2);return b(x,S,"M-"+k+","+T+"V-"+k+"H"+T+"Z")}},pentagon:{n:13,f:function(w,x,S){if(g(x))return l;var k=p(.951*w,2),T=p(.588*w,2),C=p(-w,2),A=p(-.309*w,2);return b(x,S,"M"+k+","+A+"L"+T+","+p(.809*w,2)+"H-"+T+"L-"+k+","+A+"L0,"+C+"Z")}},hexagon:{n:14,f:function(w,x,S){if(g(x))return l;var k=p(w,2),T=p(w/2,2),C=p(w*s/2,2);return b(x,S,"M"+C+",-"+T+"V"+T+"L0,"+k+"L-"+C+","+T+"V-"+T+"L0,-"+k+"Z")}},hexagon2:{n:15,f:function(w,x,S){if(g(x))return l;var k=p(w,2),T=p(w/2,2),C=p(w*s/2,2);return b(x,S,"M-"+T+","+C+"H"+T+"L"+k+",0L"+T+",-"+C+"H-"+T+"L-"+k+",0Z")}},octagon:{n:16,f:function(w,x,S){if(g(x))return l;var k=p(.924*w,2),T=p(.383*w,2);return b(x,S,"M-"+T+",-"+k+"H"+T+"L"+k+",-"+T+"V"+T+"L"+T+","+k+"H-"+T+"L-"+k+","+T+"V-"+T+"Z")}},star:{n:17,f:function(w,x,S){if(g(x))return l;var k=1.4*w,T=p(.225*k,2),C=p(.951*k,2),A=p(.363*k,2),E=p(.588*k,2),M=p(-k,2),I=p(-.309*k,2),N=p(.118*k,2),z=p(.809*k,2);return b(x,S,"M"+T+","+I+"H"+C+"L"+A+","+N+"L"+E+","+z+"L0,"+p(.382*k,2)+"L-"+E+","+z+"L-"+A+","+N+"L-"+C+","+I+"H-"+T+"L0,"+M+"Z")}},hexagram:{n:18,f:function(w,x,S){if(g(x))return l;var k=p(.66*w,2),T=p(.38*w,2),C=p(.76*w,2);return b(x,S,"M-"+C+",0l-"+T+",-"+k+"h"+C+"l"+T+",-"+k+"l"+T+","+k+"h"+C+"l-"+T+","+k+"l"+T+","+k+"h-"+C+"l-"+T+","+k+"l-"+T+",-"+k+"h-"+C+"Z")}},"star-triangle-up":{n:19,f:function(w,x,S){if(g(x))return l;var k=p(w*s*.8,2),T=p(.8*w,2),C=p(1.6*w,2),A=p(4*w,2),E="A "+A+","+A+" 0 0 1 ";return b(x,S,"M-"+k+","+T+E+k+","+T+E+"0,-"+C+E+"-"+k+","+T+"Z")}},"star-triangle-down":{n:20,f:function(w,x,S){if(g(x))return l;var k=p(w*s*.8,2),T=p(.8*w,2),C=p(1.6*w,2),A=p(4*w,2),E="A "+A+","+A+" 0 0 1 ";return b(x,S,"M"+k+",-"+T+E+"-"+k+",-"+T+E+"0,"+C+E+k+",-"+T+"Z")}},"star-square":{n:21,f:function(w,x,S){if(g(x))return l;var k=p(1.1*w,2),T=p(2*w,2),C="A "+T+","+T+" 0 0 1 ";return b(x,S,"M-"+k+",-"+k+C+"-"+k+","+k+C+k+","+k+C+k+",-"+k+C+"-"+k+",-"+k+"Z")}},"star-diamond":{n:22,f:function(w,x,S){if(g(x))return l;var k=p(1.4*w,2),T=p(1.9*w,2),C="A "+T+","+T+" 0 0 1 ";return b(x,S,"M-"+k+",0"+C+"0,"+k+C+k+",0"+C+"0,-"+k+C+"-"+k+",0Z")}},"diamond-tall":{n:23,f:function(w,x,S){if(g(x))return l;var k=p(.7*w,2),T=p(1.4*w,2);return b(x,S,"M0,"+T+"L"+k+",0L0,-"+T+"L-"+k+",0Z")}},"diamond-wide":{n:24,f:function(w,x,S){if(g(x))return l;var k=p(1.4*w,2),T=p(.7*w,2);return b(x,S,"M0,"+T+"L"+k+",0L0,-"+T+"L-"+k+",0Z")}},hourglass:{n:25,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M"+k+","+k+"H-"+k+"L"+k+",-"+k+"H-"+k+"Z")},noDot:!0},bowtie:{n:26,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M"+k+","+k+"V-"+k+"L-"+k+","+k+"V-"+k+"Z")},noDot:!0},"circle-cross":{n:27,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M0,"+k+"V-"+k+"M"+k+",0H-"+k+"M"+k+",0A"+k+","+k+" 0 1,1 0,-"+k+"A"+k+","+k+" 0 0,1 "+k+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(w,x,S){if(g(x))return l;var k=p(w,2),T=p(w/o,2);return b(x,S,"M"+T+","+T+"L-"+T+",-"+T+"M"+T+",-"+T+"L-"+T+","+T+"M"+k+",0A"+k+","+k+" 0 1,1 0,-"+k+"A"+k+","+k+" 0 0,1 "+k+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M0,"+k+"V-"+k+"M"+k+",0H-"+k+"M"+k+","+k+"H-"+k+"V-"+k+"H"+k+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M"+k+","+k+"L-"+k+",-"+k+"M"+k+",-"+k+"L-"+k+","+k+"M"+k+","+k+"H-"+k+"V-"+k+"H"+k+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(w,x,S){if(g(x))return l;var k=p(1.3*w,2);return b(x,S,"M"+k+",0L0,"+k+"L-"+k+",0L0,-"+k+"ZM0,-"+k+"V"+k+"M-"+k+",0H"+k)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(w,x,S){if(g(x))return l;var k=p(1.3*w,2),T=p(.65*w,2);return b(x,S,"M"+k+",0L0,"+k+"L-"+k+",0L0,-"+k+"ZM-"+T+",-"+T+"L"+T+","+T+"M-"+T+","+T+"L"+T+",-"+T)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(w,x,S){if(g(x))return l;var k=p(1.4*w,2);return b(x,S,"M0,"+k+"V-"+k+"M"+k+",0H-"+k)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M"+k+","+k+"L-"+k+",-"+k+"M"+k+",-"+k+"L-"+k+","+k)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(w,x,S){if(g(x))return l;var k=p(1.2*w,2),T=p(.85*w,2);return b(x,S,"M0,"+k+"V-"+k+"M"+k+",0H-"+k+"M"+T+","+T+"L-"+T+",-"+T+"M"+T+",-"+T+"L-"+T+","+T)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(w,x,S){if(g(x))return l;var k=p(w/2,2),T=p(w,2);return b(x,S,"M"+k+","+T+"V-"+T+"M"+(k-T)+",-"+T+"V"+T+"M"+T+","+k+"H-"+T+"M-"+T+","+(k-T)+"H"+T)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(w,x,S){if(g(x))return l;var k=p(1.2*w,2),T=p(1.6*w,2),C=p(.8*w,2);return b(x,S,"M-"+k+","+C+"L0,0M"+k+","+C+"L0,0M0,-"+T+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(w,x,S){if(g(x))return l;var k=p(1.2*w,2),T=p(1.6*w,2),C=p(.8*w,2);return b(x,S,"M-"+k+",-"+C+"L0,0M"+k+",-"+C+"L0,0M0,"+T+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(w,x,S){if(g(x))return l;var k=p(1.2*w,2),T=p(1.6*w,2),C=p(.8*w,2);return b(x,S,"M"+C+","+k+"L0,0M"+C+",-"+k+"L0,0M-"+T+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(w,x,S){if(g(x))return l;var k=p(1.2*w,2),T=p(1.6*w,2),C=p(.8*w,2);return b(x,S,"M-"+C+","+k+"L0,0M-"+C+",-"+k+"L0,0M"+T+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(w,x,S){if(g(x))return l;var k=p(1.4*w,2);return b(x,S,"M"+k+",0H-"+k)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(w,x,S){if(g(x))return l;var k=p(1.4*w,2);return b(x,S,"M0,"+k+"V-"+k)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M"+k+",-"+k+"L-"+k+","+k)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M"+k+","+k+"L-"+k+",-"+k)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M0,0L-"+k+","+p(2*w,2)+"H"+k+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M0,0L-"+k+",-"+p(2*w,2)+"H"+k+"Z")},noDot:!0},"arrow-left":{n:47,f:function(w,x,S){if(g(x))return l;var k=p(2*w,2),T=p(w,2);return b(x,S,"M0,0L"+k+",-"+T+"V"+T+"Z")},noDot:!0},"arrow-right":{n:48,f:function(w,x,S){if(g(x))return l;var k=p(2*w,2),T=p(w,2);return b(x,S,"M0,0L-"+k+",-"+T+"V"+T+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M-"+k+",0H"+k+"M0,0L-"+k+","+p(2*w,2)+"H"+k+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(w,x,S){if(g(x))return l;var k=p(w,2);return b(x,S,"M-"+k+",0H"+k+"M0,0L-"+k+",-"+p(2*w,2)+"H"+k+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(w,x,S){if(g(x))return l;var k=p(2*w,2),T=p(w,2);return b(x,S,"M0,-"+T+"V"+T+"M0,0L"+k+",-"+T+"V"+T+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(w,x,S){if(g(x))return l;var k=p(2*w,2),T=p(w,2);return b(x,S,"M0,-"+T+"V"+T+"M0,0L-"+k+",-"+T+"V"+T+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(w,x,S){if(g(x))return l;var k=u/2.5,T=2*w*d(k),C=2*w*h(k);return b(x,S,"M0,0L"+-T+","+C+"L"+T+","+C+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(w,x,S){if(g(x))return l;var k=u/4,T=2*w*d(k),C=2*w*h(k);return b(x,S,"M0,0L"+-T+","+C+"A "+2*w+","+2*w+" 0 0 1 "+T+","+C+"Z")},backoff:.4,noDot:!0}}},75568:function(c){c.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}},352:function(c,m,a){var v=a(10721),f=a(33626),n=a(29714),y=a(34809),_=a(25589);function p(l,o,s,u){var d=o["error_"+u]||{},h=[];if(d.visible&&["linear","log"].indexOf(s.type)!==-1){for(var g=_(d),b=0;b<l.length;b++){var w=l[b],x=w.i;if(x===void 0)x=b;else if(x===null)continue;var S=w[u];if(v(s.c2l(S))){var k=g(S,x);if(v(k[0])&&v(k[1])){var T=w[u+"s"]=S-k[0],C=w[u+"h"]=S+k[1];h.push(T,C)}}}var A=s._id,E=o._extremes[A],M=n.findExtremes(s,h,y.extendFlat({tozero:E.opts.tozero},{padded:!0}));E.min=E.min.concat(M.min),E.max=E.max.concat(M.max)}}c.exports=function(l){for(var o=l.calcdata,s=0;s<o.length;s++){var u=o[s],d=u[0].trace;if(d.visible===!0&&f.traceIs(d,"errorBarsOK")){var h=n.getFromId(l,d.xaxis),g=n.getFromId(l,d.yaxis);p(u,d,h,"x"),p(u,d,g,"y")}}}},25589:function(c){function m(a,v){return a==="percent"?function(f){return Math.abs(f*v/100)}:a==="constant"?function(){return Math.abs(v)}:a==="sqrt"?function(f){return Math.sqrt(Math.abs(f))}:void 0}c.exports=function(a){var v=a.type,f=a.symmetric;if(v==="data"){var n=a.array||[];if(f)return function(l,o){var s=+n[o];return[s,s]};var y=a.arrayminus||[];return function(l,o){var s=+n[o],u=+y[o];return isNaN(s)&&isNaN(u)?[NaN,NaN]:[u||0,s||0]}}var _=m(v,a.value),p=m(v,a.valueminus);return f||a.valueminus===void 0?function(l){var o=_(l);return[o,o]}:function(l){return[p(l),_(l)]}}},5543:function(c,m,a){var v=a(10721),f=a(33626),n=a(34809),y=a(78032),_=a(75568);c.exports=function(p,l,o,s){var u="error_"+s.axis,d=y.newContainer(l,u),h=p[u]||{};function g(S,k){return n.coerce(h,d,_,S,k)}if(g("visible",h.array!==void 0||h.value!==void 0||h.type==="sqrt")!==!1){var b=g("type","array"in h?"data":"percent"),w=!0;b!=="sqrt"&&(w=g("symmetric",!((b==="data"?"arrayminus":"valueminus")in h))),b==="data"?(g("array"),g("traceref"),w||(g("arrayminus"),g("tracerefminus"))):b!=="percent"&&b!=="constant"||(g("value"),w||g("valueminus"));var x="copy_"+s.inherit+"style";s.inherit&&(l["error_"+s.inherit]||{}).visible&&g(x,!(h.color||v(h.thickness)||v(h.width))),s.inherit&&d[x]||(g("color",o),g("thickness"),g("width",f.traceIs(l,"gl3d")?0:4))}}},77901:function(c,m,a){var v=a(34809),f=a(13582).overrideAll,n=a(75568),y={error_x:v.extendFlat({},n),error_y:v.extendFlat({},n)};delete y.error_x.copy_zstyle,delete y.error_y.copy_zstyle,delete y.error_y.copy_ystyle;var _={error_x:v.extendFlat({},n),error_y:v.extendFlat({},n),error_z:v.extendFlat({},n)};delete _.error_x.copy_ystyle,delete _.error_y.copy_ystyle,delete _.error_z.copy_ystyle,delete _.error_z.copy_zstyle,c.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:y,bar:y,histogram:y,scatter3d:f(_,"calc","nested"),scattergl:f(y,"calc","nested")}},supplyDefaults:a(5543),calc:a(352),makeComputeError:a(25589),plot:a(42130),style:a(22800),hoverInfo:function(p,l,o){(l.error_y||{}).visible&&(o.yerr=p.yh-p.y,l.error_y.symmetric||(o.yerrneg=p.y-p.ys)),(l.error_x||{}).visible&&(o.xerr=p.xh-p.x,l.error_x.symmetric||(o.xerrneg=p.x-p.xs))}}},42130:function(c,m,a){var v=a(45568),f=a(10721),n=a(62203),y=a(64726);c.exports=function(_,p,l,o){var s=l.xaxis,u=l.yaxis,d=o&&o.duration>0,h=_._context.staticPlot;p.each(function(g){var b,w=g[0].trace,x=w.error_x||{},S=w.error_y||{};w.ids&&(b=function(A){return A.id});var k=y.hasMarkers(w)&&w.marker.maxdisplayed>0;S.visible||x.visible||(g=[]);var T=v.select(this).selectAll("g.errorbar").data(g,b);if(T.exit().remove(),g.length){x.visible||T.selectAll("path.xerror").remove(),S.visible||T.selectAll("path.yerror").remove(),T.style("opacity",1);var C=T.enter().append("g").classed("errorbar",!0);d&&C.style("opacity",0).transition().duration(o.duration).style("opacity",1),n.setClipUrl(T,l.layerClipId,_),T.each(function(A){var E=v.select(this),M=function(V,$,U){var Z={x:$.c2p(V.x),y:U.c2p(V.y)};return V.yh!==void 0&&(Z.yh=U.c2p(V.yh),Z.ys=U.c2p(V.ys),f(Z.ys)||(Z.noYS=!0,Z.ys=U.c2p(V.ys,!0))),V.xh!==void 0&&(Z.xh=$.c2p(V.xh),Z.xs=$.c2p(V.xs),f(Z.xs)||(Z.noXS=!0,Z.xs=$.c2p(V.xs,!0))),Z}(A,s,u);if(!k||A.vis){var I,N=E.select("path.yerror");if(S.visible&&f(M.x)&&f(M.yh)&&f(M.ys)){var z=S.width;I="M"+(M.x-z)+","+M.yh+"h"+2*z+"m-"+z+",0V"+M.ys,M.noYS||(I+="m-"+z+",0h"+2*z),N.size()?d&&(N=N.transition().duration(o.duration).ease(o.easing)):N=E.append("path").style("vector-effect",h?"none":"non-scaling-stroke").classed("yerror",!0),N.attr("d",I)}else N.remove();var F=E.select("path.xerror");if(x.visible&&f(M.y)&&f(M.xh)&&f(M.xs)){var R=(x.copy_ystyle?S:x).width;I="M"+M.xh+","+(M.y-R)+"v"+2*R+"m0,-"+R+"H"+M.xs,M.noXS||(I+="m0,-"+R+"v"+2*R),F.size()?d&&(F=F.transition().duration(o.duration).ease(o.easing)):F=E.append("path").style("vector-effect",h?"none":"non-scaling-stroke").classed("xerror",!0),F.attr("d",I)}else F.remove()}})}})}},22800:function(c,m,a){var v=a(45568),f=a(78766);c.exports=function(n){n.each(function(y){var _=y[0].trace,p=_.error_y||{},l=_.error_x||{},o=v.select(this);o.selectAll("path.yerror").style("stroke-width",p.thickness+"px").call(f.stroke,p.color),l.copy_ystyle&&(l=p),o.selectAll("path.xerror").style("stroke-width",l.thickness+"px").call(f.stroke,l.color)})}},70192:function(c,m,a){var v=a(80337),f=a(6811).hoverlabel,n=a(93049).extendFlat;c.exports={hoverlabel:{bgcolor:n({},f.bgcolor,{arrayOk:!0}),bordercolor:n({},f.bordercolor,{arrayOk:!0}),font:v({arrayOk:!0,editType:"none"}),align:n({},f.align,{arrayOk:!0}),namelength:n({},f.namelength,{arrayOk:!0}),editType:"none"}}},83552:function(c,m,a){var v=a(34809),f=a(33626);function n(y,_,p,l){l=l||v.identity,Array.isArray(y)&&(_[0][p]=l(y))}c.exports=function(y){var _=y.calcdata,p=y._fullLayout;function l(h){return function(g){return v.coerceHoverinfo({hoverinfo:g},{_module:h._module},p)}}for(var o=0;o<_.length;o++){var s=_[o],u=s[0].trace;if(!f.traceIs(u,"pie-like")){var d=f.traceIs(u,"2dMap")?n:v.fillArray;d(u.hoverinfo,s,"hi",l(u)),u.hovertemplate&&d(u.hovertemplate,s,"ht"),u.hoverlabel&&(d(u.hoverlabel.bgcolor,s,"hbg"),d(u.hoverlabel.bordercolor,s,"hbc"),d(u.hoverlabel.font.size,s,"hts"),d(u.hoverlabel.font.color,s,"htc"),d(u.hoverlabel.font.family,s,"htf"),d(u.hoverlabel.font.weight,s,"htw"),d(u.hoverlabel.font.style,s,"hty"),d(u.hoverlabel.font.variant,s,"htv"),d(u.hoverlabel.namelength,s,"hnl"),d(u.hoverlabel.align,s,"hta"))}}}},94225:function(c,m,a){var v=a(33626),f=a(38103).hover;c.exports=function(n,y,_){var p=v.getComponentMethod("annotations","onClick")(n,n._hoverdata);function l(){n.emit("plotly_click",{points:n._hoverdata,event:y})}_!==void 0&&f(n,y,_,!0),n._hoverdata&&y&&y.target&&(p&&p.then?p.then(l):l(),y.stopImmediatePropagation&&y.stopImmediatePropagation())}},85988:function(c){c.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},3239:function(c,m,a){var v=a(34809),f=a(70192),n=a(26430);c.exports=function(y,_,p,l){var o=v.extendFlat({},l.hoverlabel);_.hovertemplate&&(o.namelength=-1),n(y,_,function(s,u){return v.coerce(y,_,f,s,u)},o)}},36040:function(c,m,a){var v=a(34809);m.getSubplot=function(l){return l.subplot||l.xaxis+l.yaxis||l.geo},m.isTraceInSubplots=function(l,o){if(l.type==="splom"){for(var s=l.xaxes||[],u=l.yaxes||[],d=0;d<s.length;d++)for(var h=0;h<u.length;h++)if(o.indexOf(s[d]+u[h])!==-1)return!0;return!1}return o.indexOf(m.getSubplot(l))!==-1},m.flat=function(l,o){for(var s=new Array(l.length),u=0;u<l.length;u++)s[u]=o;return s},m.p2c=function(l,o){for(var s=new Array(l.length),u=0;u<l.length;u++)s[u]=l[u].p2c(o);return s},m.getDistanceFunction=function(l,o,s,u){return l==="closest"?u||m.quadrature(o,s):l.charAt(0)==="x"?o:s},m.getClosest=function(l,o,s){if(s.index!==!1)s.index>=0&&s.index<l.length?s.distance=0:s.index=!1;else for(var u=0;u<l.length;u++){var d=o(l[u]);d<=s.distance&&(s.index=u,s.distance=d)}return s},m.inbox=function(l,o,s){return l*o<0||l===0?s:1/0},m.quadrature=function(l,o){return function(s){var u=l(s),d=o(s);return Math.sqrt(u*u+d*d)}},m.makeEventData=function(l,o,s){var u="index"in l?l.index:l.pointNumber,d={data:o._input,fullData:o,curveNumber:o.index,pointNumber:u};if(o._indexToPoints){var h=o._indexToPoints[u];h.length===1?d.pointIndex=h[0]:d.pointIndices=h}else d.pointIndex=u;return o._module.eventData?d=o._module.eventData(d,l,o,s,u):("xVal"in l?d.x=l.xVal:"x"in l&&(d.x=l.x),"yVal"in l?d.y=l.yVal:"y"in l&&(d.y=l.y),l.xa&&(d.xaxis=l.xa),l.ya&&(d.yaxis=l.ya),l.zLabelVal!==void 0&&(d.z=l.zLabelVal)),m.appendArrayPointValue(d,o,u),d},m.appendArrayPointValue=function(l,o,s){var u=o._arrayAttrs;if(u)for(var d=0;d<u.length;d++){var h=u[d],g=n(h);if(l[g]===void 0){var b=y(v.nestedProperty(o,h).get(),s);b!==void 0&&(l[g]=b)}}},m.appendArrayMultiPointValues=function(l,o,s){var u=o._arrayAttrs;if(u)for(var d=0;d<u.length;d++){var h=u[d],g=n(h);if(l[g]===void 0){for(var b=v.nestedProperty(o,h).get(),w=new Array(s.length),x=0;x<s.length;x++)w[x]=y(b,s[x]);l[g]=w}}};var f={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function n(l){return f[l]||l}function y(l,o){return Array.isArray(o)?Array.isArray(l)&&Array.isArray(l[o[0]])?l[o[0]][o[1]]:void 0:l[o]}var _={x:!0,y:!0},p={"x unified":!0,"y unified":!0};m.isUnifiedHover=function(l){return typeof l=="string"&&!!p[l]},m.isXYhover=function(l){return typeof l=="string"&&!!_[l]}},38103:function(c,m,a){var v=a(45568),f=a(10721),n=a(65657),y=a(34809),_=y.pushUnique,p=y.strTranslate,l=y.strRotate,o=a(68596),s=a(30635),u=a(93134),d=a(62203),h=a(78766),g=a(14751),b=a(29714),w=a(54826).zindexSeparator,x=a(33626),S=a(36040),k=a(85988),T=a(73970),C=a(6134),A=k.YANGLE,E=Math.PI*A/180,M=1/Math.sin(E),I=Math.cos(E),N=Math.sin(E),z=k.HOVERARROWSIZE,F=k.HOVERTEXTPAD,R={box:!0,ohlc:!0,violin:!0,candlestick:!0},V={scatter:!0,scattergl:!0,splom:!0};function $(ie,ue){return ie.distance-ue.distance}function U(ie){return[ie.trace.index,ie.index,ie.x0,ie.y0,ie.name,ie.attr,ie.xa?ie.xa._id:"",ie.ya?ie.ya._id:""].join(",")}m.hover=function(ie,ue,he,pe){ie=y.getGraphDiv(ie);var me=ue.target;y.throttle(ie._fullLayout._uid+k.HOVERID,k.HOVERMINTIME,function(){(function(_e,xe,we,Ee,Pe){we||(we="xy"),typeof we=="string"&&(we=we.split(w)[0]);var $e,Te,Ce,ye=Array.isArray(we)?we:[we],ge=_e._fullLayout,Me=ge.hoversubplots,Se=ge._plots||[],ze=Se[we],Fe=ge._has("cartesian"),De=xe.hovermode||ge.hovermode,Ue=(De||"").charAt(0)==="x",Ne=(De||"").charAt(0)==="y";if(Fe&&(Ue||Ne)&&Me==="axis"){for(var ke=ye.length,Oe=0;Oe<ke;Oe++)if(Se[$e=ye[Oe]]){Te=b.getFromId(_e,$e,"x"),Ce=b.getFromId(_e,$e,"y");var Re=(Ue?Te:Ce)._subplotsWith;if(Re&&Re.length)for(var je=0;je<Re.length;je++)_(ye,Re[je])}}if(ze&&Me!=="single"){var Ze=ze.overlays.map(function(sa){return sa.id});ye=ye.concat(Ze)}for(var Ye=ye.length,it=new Array(Ye),dt=new Array(Ye),ut=!1,It=0;It<Ye;It++)if(Se[$e=ye[It]])ut=!0,it[It]=Se[$e].xaxis,dt[It]=Se[$e].yaxis;else{if(!ge[$e]||!ge[$e]._subplot)return void y.warn("Unrecognized subplot: "+$e);var Ot=ge[$e]._subplot;it[It]=Ot.xaxis,dt[It]=Ot.yaxis}if(De&&!ut&&(De="closest"),["x","y","closest","x unified","y unified"].indexOf(De)===-1||!_e.calcdata||_e.querySelector(".zoombox")||_e._dragging)return g.unhoverRaw(_e,xe);var Ft=ge.hoverdistance;Ft===-1&&(Ft=1/0);var ot=ge.spikedistance;ot===-1&&(ot=1/0);var tt,vt,At,Dt,Pt,et,rt,We,nt,_t,mt,St,Bt,Je=[],Xe=[],yt={hLinePoint:null,vLinePoint:null},Et=!1;if(Array.isArray(xe))for(De="array",At=0;At<xe.length;At++)(Pt=_e.calcdata[xe[At].curveNumber||0])&&(et=Pt[0].trace,Pt[0].trace.hoverinfo!=="skip"&&(Xe.push(Pt),et.orientation==="h"&&(Et=!0)));else{var Ct,gt,$t=_e.calcdata.slice();for($t.sort(function(sa,Ia){return(sa[0].trace.zorder||0)-(Ia[0].trace.zorder||0)}),Dt=0;Dt<$t.length;Dt++)Pt=$t[Dt],(et=Pt[0].trace).hoverinfo!=="skip"&&S.isTraceInSubplots(et,ye)&&(Xe.push(Pt),et.orientation==="h"&&(Et=!0));if(Pe){if(o.triggerHandler(_e,"plotly_beforehover",xe)===!1)return;var Lt=Pe.getBoundingClientRect();Ct=xe.clientX-Lt.left,gt=xe.clientY-Lt.top,ge._calcInverseTransform(_e);var jt=y.apply3DTransform(ge._invTransform)(Ct,gt);if(Ct=jt[0],gt=jt[1],Ct<0||Ct>it[0]._length||gt<0||gt>dt[0]._length)return g.unhoverRaw(_e,xe)}else Ct="xpx"in xe?xe.xpx:it[0]._length/2,gt="ypx"in xe?xe.ypx:dt[0]._length/2;if(xe.pointerX=Ct+it[0]._offset,xe.pointerY=gt+dt[0]._offset,tt="xval"in xe?S.flat(ye,xe.xval):S.p2c(it,Ct),vt="yval"in xe?S.flat(ye,xe.yval):S.p2c(dt,gt),!f(tt[0])||!f(vt[0]))return y.warn("Fx.hover failed",xe,_e),g.unhoverRaw(_e,xe)}var Rt=1/0;function Vt(sa,Ia){for(Dt=0;Dt<Xe.length;Dt++)if((Pt=Xe[Dt])&&Pt[0]&&Pt[0].trace&&(et=Pt[0].trace).visible===!0&&et._length!==0&&["carpet","contourcarpet"].indexOf(et._module.name)===-1){if(nt=De,S.isUnifiedHover(nt)&&(nt=nt.charAt(0)),et.type==="splom"?rt=ye[We=0]:(rt=S.getSubplot(et),We=ye.indexOf(rt)),St={cd:Pt,trace:et,xa:it[We],ya:dt[We],maxHoverDistance:Ft,maxSpikeDistance:ot,index:!1,distance:Math.min(Rt,Ft),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:h.defaultLine,name:et.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},ge[rt]&&(St.subplot=ge[rt]._subplot),ge._splomScenes&&ge._splomScenes[et.uid]&&(St.scene=ge._splomScenes[et.uid]),nt==="array"){var Ma=xe[Dt];"pointNumber"in Ma?(St.index=Ma.pointNumber,nt="closest"):(nt="","xval"in Ma&&(_t=Ma.xval,nt="x"),"yval"in Ma&&(mt=Ma.yval,nt=nt?"closest":"y"))}else sa!==void 0&&Ia!==void 0?(_t=sa,mt=Ia):(_t=tt[We],mt=vt[We]);if(Bt=Je.length,Ft!==0)if(et._module&&et._module.hoverPoints){var $a=et._module.hoverPoints(St,_t,mt,nt,{finiteRange:!0,hoverLayer:ge._hoverlayer,hoversubplots:Me,gd:_e});if($a)for(var Pa,Sa=0;Sa<$a.length;Sa++)Pa=$a[Sa],f(Pa.x0)&&f(Pa.y0)&&Je.push(J(Pa,De))}else y.log("Unrecognized trace type in hover:",et);if(De==="closest"&&Je.length>Bt&&(Je.splice(0,Bt),Rt=Je[0].distance),Fe&&ot!==0&&Je.length===0){St.distance=ot,St.index=!1;var na=et._module.hoverPoints(St,_t,mt,"closest",{hoverLayer:ge._hoverlayer});if(na&&(na=na.filter(function(an){return an.spikeDistance<=ot})),na&&na.length){var ea,ga=na.filter(function(an){return an.xa.showspikes&&an.xa.spikesnap!=="hovered data"});if(ga.length){var Va=ga[0];f(Va.x0)&&f(Va.y0)&&(ea=ta(Va),(!yt.vLinePoint||yt.vLinePoint.spikeDistance>ea.spikeDistance)&&(yt.vLinePoint=ea))}var en=na.filter(function(an){return an.ya.showspikes&&an.ya.spikesnap!=="hovered data"});if(en.length){var tn=en[0];f(tn.x0)&&f(tn.y0)&&(ea=ta(tn),(!yt.hLinePoint||yt.hLinePoint.spikeDistance>ea.spikeDistance)&&(yt.hLinePoint=ea))}}}}}function Qt(sa,Ia,Ma){for(var $a,Pa=null,Sa=1/0,na=0;na<sa.length;na++)Te&&Te._id!==sa[na].xa._id||Ce&&Ce._id!==sa[na].ya._id||($a=sa[na].spikeDistance,Ma&&na===0&&($a=-1/0),$a<=Sa&&$a<=Ia&&(Pa=sa[na],Sa=$a));return Pa}function ta(sa){return sa?{xa:sa.xa,ya:sa.ya,x:sa.xSpike!==void 0?sa.xSpike:(sa.x0+sa.x1)/2,y:sa.ySpike!==void 0?sa.ySpike:(sa.y0+sa.y1)/2,distance:sa.distance,spikeDistance:sa.spikeDistance,curveNumber:sa.trace.index,color:sa.color,pointNumber:sa.index}:null}Vt();var _a={fullLayout:ge,container:ge._hoverlayer,event:xe},ka=_e._spikepoints,va={vLinePoint:yt.vLinePoint,hLinePoint:yt.hLinePoint};_e._spikepoints=va;var ia=function(){var sa=Je.filter(function(Ma){return Te&&Te._id===Ma.xa._id&&Ce&&Ce._id===Ma.ya._id}),Ia=Je.filter(function(Ma){return!(Te&&Te._id===Ma.xa._id&&Ce&&Ce._id===Ma.ya._id)});sa.sort($),Ia.sort($),Je=function(Ma,$a){for(var Pa=$a.charAt(0),Sa=[],na=[],ea=[],ga=0;ga<Ma.length;ga++){var Va=Ma[ga];x.traceIs(Va.trace,"bar-like")||x.traceIs(Va.trace,"box-violin")?ea.push(Va):Va.trace[Pa+"period"]?na.push(Va):Sa.push(Va)}return Sa.concat(na).concat(ea)}(Je=sa.concat(Ia),De)};ia();var fa=De.charAt(0),Da=(fa==="x"||fa==="y")&&Je[0]&&V[Je[0].trace.type];if(Fe&&ot!==0&&Je.length!==0){var wa=Qt(Je.filter(function(sa){return sa.ya.showspikes}),ot,Da);yt.hLinePoint=ta(wa);var da=Qt(Je.filter(function(sa){return sa.xa.showspikes}),ot,Da);yt.vLinePoint=ta(da)}if(Je.length===0){var Ea=g.unhoverRaw(_e,xe);return!Fe||yt.hLinePoint===null&&yt.vLinePoint===null||le(ka)&&ee(_e,yt,_a),Ea}if(Fe&&le(ka)&&ee(_e,yt,_a),S.isXYhover(nt)&&Je[0].length!==0&&Je[0].trace.type!=="splom"){var ua=Je[0],ba=(Je=R[ua.trace.type]?Je.filter(function(sa){return sa.trace.index===ua.trace.index}):[ua]).length;Vt(se("x",ua,ge),se("y",ua,ge));var Ra,Oa=[],Ja={},Fa=0,qa=function(sa){var Ia=R[sa.trace.type]?U(sa):sa.trace.index;if(Ja[Ia]){var Ma=Ja[Ia]-1,$a=Oa[Ma];Ma>0&&Math.abs(sa.distance)<Math.abs($a.distance)&&(Oa[Ma]=sa)}else Fa++,Ja[Ia]=Fa,Oa.push(sa)};for(Ra=0;Ra<ba;Ra++)qa(Je[Ra]);for(Ra=Je.length-1;Ra>ba-1;Ra--)qa(Je[Ra]);Je=Oa,ia()}var Ka=_e._hoverdata,vn=[],zn=ce(_e),cn=ae(_e);for(At=0;At<Je.length;At++){var hn=Je[At],un=S.makeEventData(hn,hn.trace,hn.cd);if(hn.hovertemplate!==!1){var Bn=!1;hn.cd[hn.index]&&hn.cd[hn.index].ht&&(Bn=hn.cd[hn.index].ht),hn.hovertemplate=Bn||hn.trace.hovertemplate||!1}if(hn.xa&&hn.ya){var ha=hn.x0+hn.xa._offset,ma=hn.x1+hn.xa._offset,Ya=hn.y0+hn.ya._offset,Ba=hn.y1+hn.ya._offset,Xa=Math.min(ha,ma),dn=Math.max(ha,ma),ln=Math.min(Ya,Ba),Cn=Math.max(Ya,Ba);un.bbox={x0:Xa+cn,x1:dn+cn,y0:ln+zn,y1:Cn+zn}}hn.eventData=[un],vn.push(un)}_e._hoverdata=vn;var Rn=De==="y"&&(Xe.length>1||Je.length>1)||De==="closest"&&Et&&Je.length>1,la=h.combine(ge.plot_bgcolor||h.background,ge.paper_bgcolor),za=q(Je,{gd:_e,hovermode:De,rotateLabels:Rn,bgColor:la,container:ge._hoverlayer,outerContainer:ge._paper.node(),commonLabelOpts:ge.hoverlabel,hoverdistance:ge.hoverdistance}),qt=za.hoverLabels;if(S.isUnifiedHover(De)||(function(sa,Ia,Ma,$a){var Pa,Sa,na,ea,ga,Va,en,tn=Ia?"xa":"ya",an=Ia?"ya":"xa",_n=0,mn=1,wn=sa.size(),pn=new Array(wn),yn=0,Nn=$a.minX,qn=$a.maxX,Dn=$a.minY,En=$a.maxY,Vn=function(ei){return ei*Ma._invScaleX},Kn=function(ei){return ei*Ma._invScaleY};function wr(ei){var Co=ei[0],Ki=ei[ei.length-1];if(Sa=Co.pmin-Co.pos-Co.dp+Co.size,na=Ki.pos+Ki.dp+Ki.size-Co.pmax,Sa>.01){for(ga=ei.length-1;ga>=0;ga--)ei[ga].dp+=Sa;Pa=!1}if(!(na<.01)){if(Sa<-.01){for(ga=ei.length-1;ga>=0;ga--)ei[ga].dp-=na;Pa=!1}if(Pa){var bo=0;for(ea=0;ea<ei.length;ea++)(Va=ei[ea]).pos+Va.dp+Va.size>Co.pmax&&bo++;for(ea=ei.length-1;ea>=0&&!(bo<=0);ea--)(Va=ei[ea]).pos>Co.pmax-1&&(Va.del=!0,bo--);for(ea=0;ea<ei.length&&!(bo<=0);ea++)if((Va=ei[ea]).pos<Co.pmin+1)for(Va.del=!0,bo--,na=2*Va.size,ga=ei.length-1;ga>=0;ga--)ei[ga].dp-=na;for(ea=ei.length-1;ea>=0&&!(bo<=0);ea--)(Va=ei[ea]).pos+Va.dp+Va.size>Co.pmax&&(Va.del=!0,bo--)}}}for(sa.each(function(ei){var Co=ei[tn],Ki=ei[an],bo=Co._id.charAt(0)==="x",xs=Co.range;yn===0&&xs&&xs[0]>xs[1]!==bo&&(mn=-1);var lo=0,Ds=bo?Ma.width:Ma.height;if(Ma.hovermode==="x"||Ma.hovermode==="y"){var Rs,el,To=Q(ei,Ia),ws=ei.anchor,ls=ws==="end"?-1:1;if(ws==="middle")el=(Rs=ei.crossPos+(bo?Kn(To.y-ei.by/2):Vn(ei.bx/2+ei.tx2width/2)))+(bo?Kn(ei.by):Vn(ei.bx));else if(bo)el=(Rs=ei.crossPos+Kn(z+To.y)-Kn(ei.by/2-z))+Kn(ei.by);else{var pi=Vn(ls*z+To.x),Hi=pi+Vn(ls*ei.bx);Rs=ei.crossPos+Math.min(pi,Hi),el=ei.crossPos+Math.max(pi,Hi)}bo?Dn!==void 0&&En!==void 0&&Math.min(el,En)-Math.max(Rs,Dn)>1&&(Ki.side==="left"?(lo=Ki._mainLinePosition,Ds=Ma.width):Ds=Ki._mainLinePosition):Nn!==void 0&&qn!==void 0&&Math.min(el,qn)-Math.max(Rs,Nn)>1&&(Ki.side==="top"?(lo=Ki._mainLinePosition,Ds=Ma.height):Ds=Ki._mainLinePosition)}pn[yn++]=[{datum:ei,traceIndex:ei.trace.index,dp:0,pos:ei.pos,posref:ei.posref,size:ei.by*(bo?M:1)/2,pmin:lo,pmax:Ds}]}),pn.sort(function(ei,Co){return ei[0].posref-Co[0].posref||mn*(Co[0].traceIndex-ei[0].traceIndex)});!Pa&&_n<=wn;){for(_n++,Pa=!0,ea=0;ea<pn.length-1;){var li=pn[ea],Vr=pn[ea+1],qi=li[li.length-1],gi=Vr[0];if((Sa=qi.pos+qi.dp+qi.size-gi.pos-gi.dp+gi.size)>.01){for(ga=Vr.length-1;ga>=0;ga--)Vr[ga].dp+=Sa;for(li.push.apply(li,Vr),pn.splice(ea+1,1),en=0,ga=li.length-1;ga>=0;ga--)en+=li[ga].dp;for(na=en/li.length,ga=li.length-1;ga>=0;ga--)li[ga].dp-=na;Pa=!1}else ea++}pn.forEach(wr)}for(ea=pn.length-1;ea>=0;ea--){var Ni=pn[ea];for(ga=Ni.length-1;ga>=0;ga--){var mo=Ni[ga],Zr=mo.datum;Zr.offset=mo.dp,Zr.del=mo.del}}}(qt,Rn,ge,za.commonLabelBoundingBox),X(qt,Rn,ge._invScaleX,ge._invScaleY)),Pe&&Pe.tagName){var ra=x.getComponentMethod("annotations","hasClickToShow")(_e,vn);u(v.select(Pe),ra?"pointer":"")}Pe&&!Ee&&function(sa,Ia,Ma){if(!Ma||Ma.length!==sa._hoverdata.length)return!0;for(var $a=Ma.length-1;$a>=0;$a--){var Pa=Ma[$a],Sa=sa._hoverdata[$a];if(Pa.curveNumber!==Sa.curveNumber||String(Pa.pointNumber)!==String(Sa.pointNumber)||String(Pa.pointNumbers)!==String(Sa.pointNumbers))return!0}return!1}(_e,0,Ka)&&(Ka&&_e.emit("plotly_unhover",{event:xe,points:Ka}),_e.emit("plotly_hover",{event:xe,points:_e._hoverdata,xaxes:it,yaxes:dt,xvals:tt,yvals:vt}))})(ie,ue,he,pe,me)})},m.loneHover=function(ie,ue){var he=!0;Array.isArray(ie)||(he=!1,ie=[ie]);var pe=ue.gd,me=ce(pe),_e=ae(pe),xe=q(ie.map(function(Pe){var $e=Pe._x0||Pe.x0||Pe.x||0,Te=Pe._x1||Pe.x1||Pe.x||0,Ce=Pe._y0||Pe.y0||Pe.y||0,ye=Pe._y1||Pe.y1||Pe.y||0,ge=Pe.eventData;if(ge){var Me=Math.min($e,Te),Se=Math.max($e,Te),ze=Math.min(Ce,ye),Fe=Math.max(Ce,ye),De=Pe.trace;if(x.traceIs(De,"gl3d")){var Ue=pe._fullLayout[De.scene]._scene.container,Ne=Ue.offsetLeft,ke=Ue.offsetTop;Me+=Ne,Se+=Ne,ze+=ke,Fe+=ke}ge.bbox={x0:Me+_e,x1:Se+_e,y0:ze+me,y1:Fe+me},ue.inOut_bbox&&ue.inOut_bbox.push(ge.bbox)}else ge=!1;return{color:Pe.color||h.defaultLine,x0:Pe.x0||Pe.x||0,x1:Pe.x1||Pe.x||0,y0:Pe.y0||Pe.y||0,y1:Pe.y1||Pe.y||0,xLabel:Pe.xLabel,yLabel:Pe.yLabel,zLabel:Pe.zLabel,text:Pe.text,name:Pe.name,idealAlign:Pe.idealAlign,borderColor:Pe.borderColor,fontFamily:Pe.fontFamily,fontSize:Pe.fontSize,fontColor:Pe.fontColor,fontWeight:Pe.fontWeight,fontStyle:Pe.fontStyle,fontVariant:Pe.fontVariant,nameLength:Pe.nameLength,textAlign:Pe.textAlign,trace:Pe.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Pe.hovertemplate||!1,hovertemplateLabels:Pe.hovertemplateLabels||!1,eventData:ge}}),{gd:pe,hovermode:"closest",rotateLabels:!1,bgColor:ue.bgColor||h.background,container:v.select(ue.container),outerContainer:ue.outerContainer||ue.container}).hoverLabels,we=0,Ee=0;return xe.sort(function(Pe,$e){return Pe.y0-$e.y0}).each(function(Pe,$e){var Te=Pe.y0-Pe.by/2;Pe.offset=Te-5<we?we-Te+5:0,we=Te+Pe.by+Pe.offset,$e===ue.anchorIndex&&(Ee=Pe.offset)}).each(function(Pe){Pe.offset-=Ee}),X(xe,!1,pe._fullLayout._invScaleX,pe._fullLayout._invScaleY),he?xe:xe.node()};var Z=/<extra>([\s\S]*)<\/extra>/;function q(ie,ue){var he=ue.gd,pe=he._fullLayout,me=ue.hovermode,_e=ue.rotateLabels,xe=ue.bgColor,we=ue.container,Ee=ue.outerContainer,Pe=ue.commonLabelOpts||{};if(ie.length===0)return[[]];var $e=ue.fontFamily||k.HOVERFONT,Te=ue.fontSize||k.HOVERFONTSIZE,Ce=ue.fontWeight||pe.font.weight,ye=ue.fontStyle||pe.font.style,ge=ue.fontVariant||pe.font.variant,Me=ue.fontTextcase||pe.font.textcase,Se=ue.fontLineposition||pe.font.lineposition,ze=ue.fontShadow||pe.font.shadow,Fe=ie[0],De=Fe.xa,Ue=Fe.ya,Ne=me.charAt(0),ke=Ne+"Label",Oe=Fe[ke];if(Oe===void 0&&De.type==="multicategory")for(var Re=0;Re<ie.length&&(Oe=ie[Re][ke])===void 0;Re++);var je=ne(he,Ee),Ze=je.top,Ye=je.width,it=je.height,dt=Oe!==void 0&&Fe.distance<=ue.hoverdistance&&(me==="x"||me==="y");if(dt){var ut,It,Ot=!0;for(ut=0;ut<ie.length;ut++)if(Ot&&ie[ut].zLabel===void 0&&(Ot=!1),It=ie[ut].hoverinfo||ie[ut].trace.hoverinfo){var Ft=Array.isArray(It)?It:It.split("+");if(Ft.indexOf("all")===-1&&Ft.indexOf(me)===-1){dt=!1;break}}Ot&&(dt=!1)}var ot=we.selectAll("g.axistext").data(dt?[0]:[]);ot.enter().append("g").classed("axistext",!0),ot.exit().remove();var tt={minX:0,maxX:0,minY:0,maxY:0};if(ot.each(function(){var fa=v.select(this),Da=y.ensureSingle(fa,"path","",function(Xa){Xa.style({"stroke-width":"1px"})}),wa=y.ensureSingle(fa,"text","",function(Xa){Xa.attr("data-notex",1)}),da=Pe.bgcolor||h.defaultLine,Ea=Pe.bordercolor||h.contrast(da),ua=h.contrast(da),ba=Pe.font,Ra={weight:ba.weight||Ce,style:ba.style||ye,variant:ba.variant||ge,textcase:ba.textcase||Me,lineposition:ba.lineposition||Se,shadow:ba.shadow||ze,family:ba.family||$e,size:ba.size||Te,color:ba.color||ua};Da.style({fill:da,stroke:Ea}),wa.text(Oe).call(d.font,Ra).call(s.positionText,0,0).call(s.convertToTspans,he),fa.attr("transform","");var Oa,Ja,Fa=ne(he,wa.node());if(me==="x"){var qa=De.side==="top"?"-":"";wa.attr("text-anchor","middle").call(s.positionText,0,De.side==="top"?Ze-Fa.bottom-z-F:Ze-Fa.top+z+F),Oa=De._offset+(Fe.x0+Fe.x1)/2,Ja=Ue._offset+(De.side==="top"?0:Ue._length);var Ka=Fa.width/2+F,vn=Oa;Oa<Ka?vn=Ka:Oa>pe.width-Ka&&(vn=pe.width-Ka),Da.attr("d","M"+(Oa-vn)+",0L"+(Oa-vn+z)+","+qa+z+"H"+Ka+"v"+qa+(2*F+Fa.height)+"H"+-Ka+"V"+qa+z+"H"+(Oa-vn-z)+"Z"),Oa=vn,tt.minX=Oa-Ka,tt.maxX=Oa+Ka,De.side==="top"?(tt.minY=Ja-(2*F+Fa.height),tt.maxY=Ja-F):(tt.minY=Ja+F,tt.maxY=Ja+(2*F+Fa.height))}else{var zn,cn,hn;Ue.side==="right"?(zn="start",cn=1,hn="",Oa=De._offset+De._length):(zn="end",cn=-1,hn="-",Oa=De._offset),Ja=Ue._offset+(Fe.y0+Fe.y1)/2,wa.attr("text-anchor",zn),Da.attr("d","M0,0L"+hn+z+","+z+"V"+(F+Fa.height/2)+"h"+hn+(2*F+Fa.width)+"V-"+(F+Fa.height/2)+"H"+hn+z+"V-"+z+"Z"),tt.minY=Ja-(F+Fa.height/2),tt.maxY=Ja+(F+Fa.height/2),Ue.side==="right"?(tt.minX=Oa+z,tt.maxX=Oa+z+(2*F+Fa.width)):(tt.minX=Oa-z-(2*F+Fa.width),tt.maxX=Oa-z);var un,Bn=Fa.height/2,ha=Ze-Fa.top-Bn,ma="clip"+pe._uid+"commonlabel"+Ue._id;if(Oa<Fa.width+2*F+z){un="M-"+(z+F)+"-"+Bn+"h-"+(Fa.width-F)+"V"+Bn+"h"+(Fa.width-F)+"Z";var Ya=Fa.width-Oa+F;s.positionText(wa,Ya,ha),zn==="end"&&wa.selectAll("tspan").each(function(){var Xa=v.select(this),dn=d.tester.append("text").text(Xa.text()).call(d.font,Ra),ln=ne(he,dn.node());Math.round(ln.width)<Math.round(Fa.width)&&Xa.attr("x",Ya-ln.width),dn.remove()})}else s.positionText(wa,cn*(F+z),ha),un=null;var Ba=pe._topclips.selectAll("#"+ma).data(un?[0]:[]);Ba.enter().append("clipPath").attr("id",ma).append("path"),Ba.exit().remove(),Ba.select("path").attr("d",un),d.setClipUrl(wa,un?ma:null,he)}fa.attr("transform",p(Oa,Ja))}),S.isUnifiedHover(me)){we.selectAll("g.hovertext").remove();var vt=ie.filter(function(fa){return fa.hoverinfo!=="none"});if(vt.length===0)return[];var At=pe.hoverlabel,Dt=At.font,Pt={showlegend:!0,legend:{title:{text:Oe,font:Dt},font:Dt,bgcolor:At.bgcolor,bordercolor:At.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:pe.legend?pe.legend.traceorder:void 0,orientation:"v"}},et={font:Dt};T(Pt,et,he._fullData);var rt=et.legend;rt.entries=[];for(var We=0;We<vt.length;We++){var nt=vt[We];if(nt.hoverinfo!=="none"){var _t=W(nt,!0,me,pe,Oe),mt=_t[0],St=_t[1];nt.name=St,nt.text=St!==""?St+" : "+mt:mt;var Bt=nt.cd[nt.index];Bt&&(Bt.mc&&(nt.mc=Bt.mc),Bt.mcc&&(nt.mc=Bt.mcc),Bt.mlc&&(nt.mlc=Bt.mlc),Bt.mlcc&&(nt.mlc=Bt.mlcc),Bt.mlw&&(nt.mlw=Bt.mlw),Bt.mrc&&(nt.mrc=Bt.mrc),Bt.dir&&(nt.dir=Bt.dir)),nt._distinct=!0,rt.entries.push([nt])}}rt.entries.sort(function(fa,Da){return fa[0].trace.index-Da[0].trace.index}),rt.layer=we,rt._inHover=!0,rt._groupTitleFont=At.grouptitlefont,C(he,rt);var Je,Xe,yt,Et,Ct=we.select("g.legend"),gt=ne(he,Ct.node()),$t=gt.width+2*F,Lt=gt.height+2*F,jt=vt[0],Rt=(jt.x0+jt.x1)/2,Vt=(jt.y0+jt.y1)/2,Qt=!(x.traceIs(jt.trace,"bar-like")||x.traceIs(jt.trace,"box-violin"));Ne==="y"?Qt?(Xe=Vt-F,Je=Vt+F):(Xe=Math.min.apply(null,vt.map(function(fa){return Math.min(fa.y0,fa.y1)})),Je=Math.max.apply(null,vt.map(function(fa){return Math.max(fa.y0,fa.y1)}))):Xe=Je=y.mean(vt.map(function(fa){return(fa.y0+fa.y1)/2}))-Lt/2,Ne==="x"?Qt?(yt=Rt+F,Et=Rt-F):(yt=Math.max.apply(null,vt.map(function(fa){return Math.max(fa.x0,fa.x1)})),Et=Math.min.apply(null,vt.map(function(fa){return Math.min(fa.x0,fa.x1)}))):yt=Et=y.mean(vt.map(function(fa){return(fa.x0+fa.x1)/2}))-$t/2;var ta,_a,ka=De._offset,va=Ue._offset;return Et+=ka-$t,Xe+=va-Lt,ta=(yt+=ka)+$t<Ye&&yt>=0?yt:Et+$t<Ye&&Et>=0?Et:ka+$t<Ye?ka:yt-Rt<Rt-Et+$t?Ye-$t:0,ta+=F,_a=(Je+=va)+Lt<it&&Je>=0?Je:Xe+Lt<it&&Xe>=0?Xe:va+Lt<it?va:Je-Vt<Vt-Xe+Lt?it-Lt:0,_a+=F,Ct.attr("transform",p(ta-1,_a-1)),Ct}var ia=we.selectAll("g.hovertext").data(ie,function(fa){return U(fa)});return ia.enter().append("g").classed("hovertext",!0).each(function(){var fa=v.select(this);fa.append("rect").call(h.fill,h.addOpacity(xe,.8)),fa.append("text").classed("name",!0),fa.append("path").style("stroke-width","1px"),fa.append("text").classed("nums",!0).call(d.font,{weight:Ce,style:ye,variant:ge,textcase:Me,lineposition:Se,shadow:ze,family:$e,size:Te})}),ia.exit().remove(),ia.each(function(fa){var Da=v.select(this).attr("transform",""),wa=fa.color;Array.isArray(wa)&&(wa=wa[fa.eventData[0].pointNumber]);var da=fa.bgcolor||wa,Ea=h.combine(h.opacity(da)?da:h.defaultLine,xe),ua=h.combine(h.opacity(wa)?wa:h.defaultLine,xe),ba=fa.borderColor||h.contrast(Ea),Ra=W(fa,dt,me,pe,Oe,Da),Oa=Ra[0],Ja=Ra[1],Fa=Da.select("text.nums").call(d.font,{family:fa.fontFamily||$e,size:fa.fontSize||Te,color:fa.fontColor||ba,weight:fa.fontWeight||Ce,style:fa.fontStyle||ye,variant:fa.fontVariant||ge,textcase:fa.fontTextcase||Me,lineposition:fa.fontLineposition||Se,shadow:fa.fontShadow||ze}).text(Oa).attr("data-notex",1).call(s.positionText,0,0).call(s.convertToTspans,he),qa=Da.select("text.name"),Ka=0,vn=0;if(Ja&&Ja!==Oa){qa.call(d.font,{family:fa.fontFamily||$e,size:fa.fontSize||Te,color:ua,weight:fa.fontWeight||Ce,style:fa.fontStyle||ye,variant:fa.fontVariant||ge,textcase:fa.fontTextcase||Me,lineposition:fa.fontLineposition||Se,shadow:fa.fontShadow||ze}).text(Ja).attr("data-notex",1).call(s.positionText,0,0).call(s.convertToTspans,he);var zn=ne(he,qa.node());Ka=zn.width+2*F,vn=zn.height+2*F}else qa.remove(),Da.select("rect").remove();Da.select("path").style({fill:Ea,stroke:ba});var cn=fa.xa._offset+(fa.x0+fa.x1)/2,hn=fa.ya._offset+(fa.y0+fa.y1)/2,un=Math.abs(fa.x1-fa.x0),Bn=Math.abs(fa.y1-fa.y0),ha=ne(he,Fa.node()),ma=ha.width/pe._invScaleX,Ya=ha.height/pe._invScaleY;fa.ty0=(Ze-ha.top)/pe._invScaleY,fa.bx=ma+2*F,fa.by=Math.max(Ya+2*F,vn),fa.anchor="start",fa.txwidth=ma,fa.tx2width=Ka,fa.offset=0;var Ba,Xa,dn=(ma+z+F+Ka)*pe._invScaleX;if(_e)fa.pos=cn,Ba=hn+Bn/2+dn<=it,Xa=hn-Bn/2-dn>=0,fa.idealAlign!=="top"&&Ba||!Xa?Ba?(hn+=Bn/2,fa.anchor="start"):fa.anchor="middle":(hn-=Bn/2,fa.anchor="end"),fa.crossPos=hn;else{if(fa.pos=hn,Ba=cn+un/2+dn<=Ye,Xa=cn-un/2-dn>=0,fa.idealAlign!=="left"&&Ba||!Xa)if(Ba)cn+=un/2,fa.anchor="start";else{fa.anchor="middle";var ln=dn/2,Cn=cn+ln-Ye,Rn=cn-ln;Cn>0&&(cn-=Cn),Rn<0&&(cn+=-Rn)}else cn-=un/2,fa.anchor="end";fa.crossPos=cn}Fa.attr("text-anchor",fa.anchor),Ka&&qa.attr("text-anchor",fa.anchor),Da.attr("transform",p(cn,hn)+(_e?l(A):""))}),{hoverLabels:ia,commonLabelBoundingBox:tt}}function W(ie,ue,he,pe,me,_e){var xe="",we="";ie.nameOverride!==void 0&&(ie.name=ie.nameOverride),ie.name&&(ie.trace._meta&&(ie.name=y.templateString(ie.name,ie.trace._meta)),xe=oe(ie.name,ie.nameLength));var Ee=he.charAt(0),Pe=Ee==="x"?"y":"x";ie.zLabel!==void 0?(ie.xLabel!==void 0&&(we+="x: "+ie.xLabel+"<br>"),ie.yLabel!==void 0&&(we+="y: "+ie.yLabel+"<br>"),ie.trace.type!=="choropleth"&&ie.trace.type!=="choroplethmapbox"&&ie.trace.type!=="choroplethmap"&&(we+=(we?"z: ":"")+ie.zLabel)):ue&&ie[Ee+"Label"]===me?we=ie[Pe+"Label"]||"":ie.xLabel===void 0?ie.yLabel!==void 0&&ie.trace.type!=="scattercarpet"&&(we=ie.yLabel):we=ie.yLabel===void 0?ie.xLabel:"("+ie.xLabel+", "+ie.yLabel+")",!ie.text&&ie.text!==0||Array.isArray(ie.text)||(we+=(we?"<br>":"")+ie.text),ie.extraText!==void 0&&(we+=(we?"<br>":"")+ie.extraText),_e&&we===""&&!ie.hovertemplate&&(xe===""&&_e.remove(),we=xe);var $e=ie.hovertemplate||!1;if($e){var Te=ie.hovertemplateLabels||ie;ie[Ee+"Label"]!==me&&(Te[Ee+"other"]=Te[Ee+"Val"],Te[Ee+"otherLabel"]=Te[Ee+"Label"]),we=(we=y.hovertemplateString($e,Te,pe._d3locale,ie.eventData[0]||{},ie.trace._meta)).replace(Z,function(Ce,ye){return xe=oe(ye,ie.nameLength),""})}return[we,xe]}function Q(ie,ue){var he=0,pe=ie.offset;return ue&&(pe*=-N,he=ie.offset*I),{x:he,y:pe}}function X(ie,ue,he,pe){var me=function(xe){return xe*he},_e=function(xe){return xe*pe};ie.each(function(xe){var we=v.select(this);if(xe.del)return we.remove();var Ee,Pe,$e,Te,Ce=we.select("text.nums"),ye=xe.anchor,ge=ye==="end"?-1:1,Me=(Te=($e=(Pe={start:1,end:-1,middle:0}[(Ee=xe).anchor])*(z+F))+Pe*(Ee.txwidth+F),Ee.anchor==="middle"&&($e-=Ee.tx2width/2,Te+=Ee.txwidth/2+F),{alignShift:Pe,textShiftX:$e,text2ShiftX:Te}),Se=Q(xe,ue),ze=Se.x,Fe=Se.y,De=ye==="middle";we.select("path").attr("d",De?"M-"+me(xe.bx/2+xe.tx2width/2)+","+_e(Fe-xe.by/2)+"h"+me(xe.bx)+"v"+_e(xe.by)+"h-"+me(xe.bx)+"Z":"M0,0L"+me(ge*z+ze)+","+_e(z+Fe)+"v"+_e(xe.by/2-z)+"h"+me(ge*xe.bx)+"v-"+_e(xe.by)+"H"+me(ge*z+ze)+"V"+_e(Fe-z)+"Z");var Ue=ze+Me.textShiftX,Ne=Fe+xe.ty0-xe.by/2+F,ke=xe.textAlign||"auto";ke!=="auto"&&(ke==="left"&&ye!=="start"?(Ce.attr("text-anchor","start"),Ue=De?-xe.bx/2-xe.tx2width/2+F:-xe.bx-F):ke==="right"&&ye!=="end"&&(Ce.attr("text-anchor","end"),Ue=De?xe.bx/2-xe.tx2width/2-F:xe.bx+F)),Ce.call(s.positionText,me(Ue),_e(Ne)),xe.tx2width&&(we.select("text.name").call(s.positionText,me(Me.text2ShiftX+Me.alignShift*F+ze),_e(Fe+xe.ty0-xe.by/2+F)),we.select("rect").call(d.setRect,me(Me.text2ShiftX+(Me.alignShift-1)*xe.tx2width/2+ze),_e(Fe-xe.by/2-1),me(xe.tx2width),_e(xe.by+2)))})}function J(ie,ue){var he=ie.index,pe=ie.trace||{},me=ie.cd[0],_e=ie.cd[he]||{};function xe(Ce){return Ce||f(Ce)&&Ce===0}var we=Array.isArray(he)?function(Ce,ye){var ge=y.castOption(me,he,Ce);return xe(ge)?ge:y.extractOption({},pe,"",ye)}:function(Ce,ye){return y.extractOption(_e,pe,Ce,ye)};function Ee(Ce,ye,ge){var Me=we(ye,ge);xe(Me)&&(ie[Ce]=Me)}if(Ee("hoverinfo","hi","hoverinfo"),Ee("bgcolor","hbg","hoverlabel.bgcolor"),Ee("borderColor","hbc","hoverlabel.bordercolor"),Ee("fontFamily","htf","hoverlabel.font.family"),Ee("fontSize","hts","hoverlabel.font.size"),Ee("fontColor","htc","hoverlabel.font.color"),Ee("fontWeight","htw","hoverlabel.font.weight"),Ee("fontStyle","hty","hoverlabel.font.style"),Ee("fontVariant","htv","hoverlabel.font.variant"),Ee("nameLength","hnl","hoverlabel.namelength"),Ee("textAlign","hta","hoverlabel.align"),ie.posref=ue==="y"||ue==="closest"&&pe.orientation==="h"?ie.xa._offset+(ie.x0+ie.x1)/2:ie.ya._offset+(ie.y0+ie.y1)/2,ie.x0=y.constrain(ie.x0,0,ie.xa._length),ie.x1=y.constrain(ie.x1,0,ie.xa._length),ie.y0=y.constrain(ie.y0,0,ie.ya._length),ie.y1=y.constrain(ie.y1,0,ie.ya._length),ie.xLabelVal!==void 0&&(ie.xLabel="xLabel"in ie?ie.xLabel:b.hoverLabelText(ie.xa,ie.xLabelVal,pe.xhoverformat),ie.xVal=ie.xa.c2d(ie.xLabelVal)),ie.yLabelVal!==void 0&&(ie.yLabel="yLabel"in ie?ie.yLabel:b.hoverLabelText(ie.ya,ie.yLabelVal,pe.yhoverformat),ie.yVal=ie.ya.c2d(ie.yLabelVal)),ie.zLabelVal!==void 0&&ie.zLabel===void 0&&(ie.zLabel=String(ie.zLabelVal)),!(isNaN(ie.xerr)||ie.xa.type==="log"&&ie.xerr<=0)){var Pe=b.tickText(ie.xa,ie.xa.c2l(ie.xerr),"hover").text;ie.xerrneg!==void 0?ie.xLabel+=" +"+Pe+" / -"+b.tickText(ie.xa,ie.xa.c2l(ie.xerrneg),"hover").text:ie.xLabel+=" ± "+Pe,ue==="x"&&(ie.distance+=1)}if(!(isNaN(ie.yerr)||ie.ya.type==="log"&&ie.yerr<=0)){var $e=b.tickText(ie.ya,ie.ya.c2l(ie.yerr),"hover").text;ie.yerrneg!==void 0?ie.yLabel+=" +"+$e+" / -"+b.tickText(ie.ya,ie.ya.c2l(ie.yerrneg),"hover").text:ie.yLabel+=" ± "+$e,ue==="y"&&(ie.distance+=1)}var Te=ie.hoverinfo||ie.trace.hoverinfo;return Te&&Te!=="all"&&((Te=Array.isArray(Te)?Te:Te.split("+")).indexOf("x")===-1&&(ie.xLabel=void 0),Te.indexOf("y")===-1&&(ie.yLabel=void 0),Te.indexOf("z")===-1&&(ie.zLabel=void 0),Te.indexOf("text")===-1&&(ie.text=void 0),Te.indexOf("name")===-1&&(ie.name=void 0)),ie}function ee(ie,ue,he){var pe,me,_e=he.container,xe=he.fullLayout,we=xe._size,Ee=he.event,Pe=!!ue.hLinePoint,$e=!!ue.vLinePoint;if(_e.selectAll(".spikeline").remove(),$e||Pe){var Te=h.combine(xe.plot_bgcolor,xe.paper_bgcolor);if(Pe){var Ce,ye,ge=ue.hLinePoint;pe=ge&&ge.xa,(me=ge&&ge.ya).spikesnap==="cursor"?(Ce=Ee.pointerX,ye=Ee.pointerY):(Ce=pe._offset+ge.x,ye=me._offset+ge.y);var Me,Se,ze=n.readability(ge.color,Te)<1.5?h.contrast(Te):ge.color,Fe=me.spikemode,De=me.spikethickness,Ue=me.spikecolor||ze,Ne=b.getPxPosition(ie,me);if(Fe.indexOf("toaxis")!==-1||Fe.indexOf("across")!==-1){if(Fe.indexOf("toaxis")!==-1&&(Me=Ne,Se=Ce),Fe.indexOf("across")!==-1){var ke=me._counterDomainMin,Oe=me._counterDomainMax;me.anchor==="free"&&(ke=Math.min(ke,me.position),Oe=Math.max(Oe,me.position)),Me=we.l+ke*we.w,Se=we.l+Oe*we.w}_e.insert("line",":first-child").attr({x1:Me,x2:Se,y1:ye,y2:ye,"stroke-width":De,stroke:Ue,"stroke-dasharray":d.dashStyle(me.spikedash,De)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Me,x2:Se,y1:ye,y2:ye,"stroke-width":De+2,stroke:Te}).classed("spikeline",!0).classed("crisp",!0)}Fe.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Ne+(me.side!=="right"?De:-De),cy:ye,r:De,fill:Ue}).classed("spikeline",!0)}if($e){var Re,je,Ze=ue.vLinePoint;pe=Ze&&Ze.xa,me=Ze&&Ze.ya,pe.spikesnap==="cursor"?(Re=Ee.pointerX,je=Ee.pointerY):(Re=pe._offset+Ze.x,je=me._offset+Ze.y);var Ye,it,dt=n.readability(Ze.color,Te)<1.5?h.contrast(Te):Ze.color,ut=pe.spikemode,It=pe.spikethickness,Ot=pe.spikecolor||dt,Ft=b.getPxPosition(ie,pe);if(ut.indexOf("toaxis")!==-1||ut.indexOf("across")!==-1){if(ut.indexOf("toaxis")!==-1&&(Ye=Ft,it=je),ut.indexOf("across")!==-1){var ot=pe._counterDomainMin,tt=pe._counterDomainMax;pe.anchor==="free"&&(ot=Math.min(ot,pe.position),tt=Math.max(tt,pe.position)),Ye=we.t+(1-tt)*we.h,it=we.t+(1-ot)*we.h}_e.insert("line",":first-child").attr({x1:Re,x2:Re,y1:Ye,y2:it,"stroke-width":It,stroke:Ot,"stroke-dasharray":d.dashStyle(pe.spikedash,It)}).classed("spikeline",!0).classed("crisp",!0),_e.insert("line",":first-child").attr({x1:Re,x2:Re,y1:Ye,y2:it,"stroke-width":It+2,stroke:Te}).classed("spikeline",!0).classed("crisp",!0)}ut.indexOf("marker")!==-1&&_e.insert("circle",":first-child").attr({cx:Re,cy:Ft-(pe.side!=="top"?It:-It),r:It,fill:Ot}).classed("spikeline",!0)}}}function le(ie,ue){return!ue||ue.vLinePoint!==ie._spikepoints.vLinePoint||ue.hLinePoint!==ie._spikepoints.hLinePoint}function oe(ie,ue){return s.plainText(ie||"",{len:ue,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function se(ie,ue,he){var pe=ue[ie+"a"],me=ue[ie+"Val"],_e=ue.cd[0];if(pe.type==="category"||pe.type==="multicategory")me=pe._categoriesMap[me];else if(pe.type==="date"){var xe=ue.trace[ie+"periodalignment"];if(xe){var we=ue.cd[ue.index],Ee=we[ie+"Start"];Ee===void 0&&(Ee=we[ie]);var Pe=we[ie+"End"];Pe===void 0&&(Pe=we[ie]);var $e=Pe-Ee;xe==="end"?me+=$e:xe==="middle"&&(me+=$e/2)}me=pe.d2c(me)}return _e&&_e.t&&_e.t.posLetter===pe._id&&(he.boxmode!=="group"&&he.violinmode!=="group"||(me+=_e.t.dPos)),me}function ce(ie){return ie.offsetTop+ie.clientTop}function ae(ie){return ie.offsetLeft+ie.clientLeft}function ne(ie,ue){var he=ie._fullLayout,pe=ue.getBoundingClientRect(),me=pe.left,_e=pe.top,xe=me+pe.width,we=_e+pe.height,Ee=y.apply3DTransform(he._invTransform)(me,_e),Pe=y.apply3DTransform(he._invTransform)(xe,we),$e=Ee[0],Te=Ee[1],Ce=Pe[0],ye=Pe[1];return{x:$e,y:Te,width:Ce-$e,height:ye-Te,top:Math.min(Te,ye),left:Math.min($e,Ce),right:Math.max($e,Ce),bottom:Math.max(Te,ye)}}},26430:function(c,m,a){var v=a(34809),f=a(78766),n=a(36040).isUnifiedHover;c.exports=function(y,_,p,l){l=l||{};var o=_.legend;function s(u){l.font[u]||(l.font[u]=o?_.legend.font[u]:_.font[u])}_&&n(_.hovermode)&&(l.font||(l.font={}),s("size"),s("family"),s("color"),s("weight"),s("style"),s("variant"),o?(l.bgcolor||(l.bgcolor=f.combine(_.legend.bgcolor,_.paper_bgcolor)),l.bordercolor||(l.bordercolor=_.legend.bordercolor)):l.bgcolor||(l.bgcolor=_.paper_bgcolor)),p("hoverlabel.bgcolor",l.bgcolor),p("hoverlabel.bordercolor",l.bordercolor),p("hoverlabel.namelength",l.namelength),v.coerceFont(p,"hoverlabel.font",l.font),p("hoverlabel.align",l.align)}},45265:function(c,m,a){var v=a(34809),f=a(6811);c.exports=function(n,y){function _(p,l){return y[p]!==void 0?y[p]:v.coerce(n,y,f,p,l)}return _("clickmode"),_("hoversubplots"),_("hovermode")}},32141:function(c,m,a){var v=a(45568),f=a(34809),n=a(14751),y=a(36040),_=a(6811),p=a(38103);c.exports={moduleType:"component",name:"fx",constants:a(85988),schema:{layout:_},attributes:a(70192),layoutAttributes:_,supplyLayoutGlobalDefaults:a(5358),supplyDefaults:a(3239),supplyLayoutDefaults:a(8412),calc:a(83552),getDistanceFunction:y.getDistanceFunction,getClosest:y.getClosest,inbox:y.inbox,quadrature:y.quadrature,appendArrayPointValue:y.appendArrayPointValue,castHoverOption:function(l,o,s){return f.castOption(l,o,"hoverlabel."+s)},castHoverinfo:function(l,o,s){return f.castOption(l,s,"hoverinfo",function(u){return f.coerceHoverinfo({hoverinfo:u},{_module:l._module},o)})},hover:p.hover,unhover:n.unhover,loneHover:p.loneHover,loneUnhover:function(l){var o=f.isD3Selection(l)?l:v.select(l);o.selectAll("g.hovertext").remove(),o.selectAll(".spikeline").remove()},click:a(94225)}},6811:function(c,m,a){var v=a(85988),f=a(80337),n=f({editType:"none"});n.family.dflt=v.HOVERFONT,n.size.dflt=v.HOVERFONTSIZE,c.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:n,grouptitlefont:f({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},8412:function(c,m,a){var v=a(34809),f=a(6811),n=a(45265),y=a(26430);c.exports=function(_,p){function l(h,g){return v.coerce(_,p,f,h,g)}n(_,p)&&(l("hoverdistance"),l("spikedistance")),l("dragmode")==="select"&&l("selectdirection");var o=p._has("mapbox"),s=p._has("map"),u=p._has("geo"),d=p._basePlotModules.length;p.dragmode==="zoom"&&((o||s||u)&&d===1||(o||s)&&u&&d===2)&&(p.dragmode="pan"),y(_,p,l),v.coerceFont(l,"hoverlabel.grouptitlefont",p.hoverlabel.font)}},5358:function(c,m,a){var v=a(34809),f=a(26430),n=a(6811);c.exports=function(y,_){f(y,_,function(p,l){return v.coerce(y,_,n,p,l)})}},83595:function(c,m,a){var v=a(34809),f=a(90694).counter,n=a(13792).u,y=a(54826).idRegex,_=a(78032),p={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[f("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[y.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[y.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:n({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function l(u,d,h){var g=d[h+"axes"],b=Object.keys((u._splomAxes||{})[h]||{});return Array.isArray(g)?g:b.length?b:void 0}function o(u,d,h,g,b,w){var x=d(u+"gap",h),S=d("domain."+u);d(u+"side",g);for(var k=new Array(b),T=S[0],C=(S[1]-T)/(b-x),A=C*(1-x),E=0;E<b;E++){var M=T+C*E;k[w?b-1-E:E]=[M,M+A]}return k}function s(u,d,h,g,b){var w,x=new Array(h);function S(k,T){d.indexOf(T)!==-1&&g[T]===void 0?(x[k]=T,g[T]=k):x[k]=""}if(Array.isArray(u))for(w=0;w<h;w++)S(w,u[w]);else for(S(0,b),w=1;w<h;w++)S(w,b+(w+1));return x}c.exports={moduleType:"component",name:"grid",schema:{layout:{grid:p}},layoutAttributes:p,sizeDefaults:function(u,d){var h=u.grid||{},g=l(d,h,"x"),b=l(d,h,"y");if(u.grid||g||b){var w,x,S=Array.isArray(h.subplots)&&Array.isArray(h.subplots[0]),k=Array.isArray(g),T=Array.isArray(b),C=k&&g!==h.xaxes&&T&&b!==h.yaxes;S?(w=h.subplots.length,x=h.subplots[0].length):(T&&(w=b.length),k&&(x=g.length));var A=_.newContainer(d,"grid"),E=V("rows",w),M=V("columns",x);if(E*M>1){S||k||T||V("pattern")==="independent"&&(S=!0),A._hasSubplotGrid=S;var I,N,z=V("roworder")==="top to bottom",F=S?.2:.1,R=S?.3:.1;C&&d._splomGridDflt&&(I=d._splomGridDflt.xside,N=d._splomGridDflt.yside),A._domains={x:o("x",V,F,I,M),y:o("y",V,R,N,E,z)}}else delete d.grid}function V($,U){return v.coerce(h,A,p,$,U)}},contentDefaults:function(u,d){var h=d.grid;if(h&&h._domains){var g,b,w,x,S,k,T,C=u.grid||{},A=d._subplots,E=h._hasSubplotGrid,M=h.rows,I=h.columns,N=h.pattern==="independent",z=h._axisMap={};if(E){var F=C.subplots||[];k=h.subplots=new Array(M);var R=1;for(g=0;g<M;g++){var V=k[g]=new Array(I),$=F[g]||[];for(b=0;b<I;b++)if(N?(S=R===1?"xy":"x"+R+"y"+R,R++):S=$[b],V[b]="",A.cartesian.indexOf(S)!==-1){if(T=S.indexOf("y"),w=S.slice(0,T),x=S.slice(T),z[w]!==void 0&&z[w]!==b||z[x]!==void 0&&z[x]!==g)continue;V[b]=S,z[w]=b,z[x]=g}}}else{var U=l(d,C,"x"),Z=l(d,C,"y");h.xaxes=s(U,A.xaxis,I,z,"x"),h.yaxes=s(Z,A.yaxis,M,z,"y")}var q=h._anchors={},W=h.roworder==="top to bottom";for(var Q in z){var X,J,ee,le=Q.charAt(0),oe=h[le+"side"];if(oe.length<8)q[Q]="free";else if(le==="x"){if(oe.charAt(0)==="t"===W?(X=0,J=1,ee=M):(X=M-1,J=-1,ee=-1),E){var se=z[Q];for(g=X;g!==ee;g+=J)if((S=k[g][se])&&(T=S.indexOf("y"),S.slice(0,T)===Q)){q[Q]=S.slice(T);break}}else for(g=X;g!==ee;g+=J)if(x=h.yaxes[g],A.cartesian.indexOf(Q+x)!==-1){q[Q]=x;break}}else if(oe.charAt(0)==="l"?(X=0,J=1,ee=I):(X=I-1,J=-1,ee=-1),E){var ce=z[Q];for(g=X;g!==ee;g+=J)if((S=k[ce][g])&&(T=S.indexOf("y"),S.slice(T)===Q)){q[Q]=S.slice(0,T);break}}else for(g=X;g!==ee;g+=J)if(w=h.xaxes[g],A.cartesian.indexOf(w+Q)!==-1){q[Q]=w;break}}}}}},37260:function(c,m,a){var v=a(54826),f=a(78032).templatedArray;a(35081),c.exports=f("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",v.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",v.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})},89443:function(c,m,a){var v=a(10721),f=a(8083);c.exports=function(n,y,_,p){y=y||{};var l=_==="log"&&y.type==="linear",o=_==="linear"&&y.type==="log";if(l||o){for(var s,u,d=n._fullLayout.images,h=y._id.charAt(0),g=0;g<d.length;g++)if(u="images["+g+"].",(s=d[g])[h+"ref"]===y._id){var b=s[h],w=s["size"+h],x=null,S=null;if(l){x=f(b,y.range);var k=w/Math.pow(10,x)/2;S=2*Math.log(k+Math.sqrt(1+k*k))/Math.LN10}else S=(x=Math.pow(10,b))*(Math.pow(10,w/2)-Math.pow(10,-w/2));v(x)?v(S)||(S=null):(x=null,S=null),p(u+h,x),p(u+"size"+h,S)}}}},507:function(c,m,a){var v=a(34809),f=a(29714),n=a(59008),y=a(37260);function _(p,l,o){function s(x,S){return v.coerce(p,l,y,x,S)}var u=s("source");if(!s("visible",!!u))return l;s("layer"),s("xanchor"),s("yanchor"),s("sizex"),s("sizey"),s("sizing"),s("opacity");for(var d={_fullLayout:o},h=["x","y"],g=0;g<2;g++){var b=h[g],w=f.coerceRef(p,l,d,b,"paper",void 0);w!=="paper"&&f.getFromId(d,w)._imgIndices.push(l._index),f.coercePosition(l,d,s,w,b,0)}return l}c.exports=function(p,l){n(p,l,{name:"images",handleItemDefaults:_})}},32211:function(c,m,a){var v=a(45568),f=a(62203),n=a(29714),y=a(5975),_=a(62972);c.exports=function(p){var l,o,s=p._fullLayout,u=[],d={},h=[];for(o=0;o<s.images.length;o++){var g=s.images[o];if(g.visible)if(g.layer==="below"&&g.xref!=="paper"&&g.yref!=="paper"){l=y.ref2id(g.xref)+y.ref2id(g.yref);var b=s._plots[l];if(!b){h.push(g);continue}b.mainplot&&(l=b.mainplot.id),d[l]||(d[l]=[]),d[l].push(g)}else g.layer==="above"?u.push(g):h.push(g)}var w={left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-.5},right:{sizing:"xMax",offset:-1}},x={top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-.5},bottom:{sizing:"YMax",offset:-1}};function S(I){var N=v.select(this);if(this._imgSrc!==I.source)if(N.attr("xmlns",_.svg),I.source&&I.source.slice(0,5)==="data:")N.attr("xlink:href",I.source),this._imgSrc=I.source;else{var z=new Promise((function(F){var R=new Image;function V(){N.remove(),F()}this.img=R,R.setAttribute("crossOrigin","anonymous"),R.onerror=V,R.onload=function(){var $=document.createElement("canvas");$.width=this.width,$.height=this.height,$.getContext("2d",{willReadFrequently:!0}).drawImage(this,0,0);var U=$.toDataURL("image/png");N.attr("xlink:href",U),F()},N.on("error",V),R.src=I.source,this._imgSrc=I.source}).bind(this));p._promises.push(z)}}function k(I){var N,z,F=v.select(this),R=n.getFromId(p,I.xref),V=n.getFromId(p,I.yref),$=n.getRefType(I.xref)==="domain",U=n.getRefType(I.yref)==="domain",Z=s._size;N=R!==void 0?typeof I.xref=="string"&&$?R._length*I.sizex:Math.abs(R.l2p(I.sizex)-R.l2p(0)):I.sizex*Z.w,z=V!==void 0?typeof I.yref=="string"&&U?V._length*I.sizey:Math.abs(V.l2p(I.sizey)-V.l2p(0)):I.sizey*Z.h;var q,W,Q=N*w[I.xanchor].offset,X=z*x[I.yanchor].offset,J=w[I.xanchor].sizing+x[I.yanchor].sizing;switch(q=R!==void 0?typeof I.xref=="string"&&$?R._length*I.x+R._offset:R.r2p(I.x)+R._offset:I.x*Z.w+Z.l,q+=Q,W=V!==void 0?typeof I.yref=="string"&&U?V._length*(1-I.y)+V._offset:V.r2p(I.y)+V._offset:Z.h-I.y*Z.h+Z.t,W+=X,I.sizing){case"fill":J+=" slice";break;case"stretch":J="none"}F.attr({x:q,y:W,width:N,height:z,preserveAspectRatio:J,opacity:I.opacity});var ee=(R&&n.getRefType(I.xref)!=="domain"?R._id:"")+(V&&n.getRefType(I.yref)!=="domain"?V._id:"");f.setClipUrl(F,ee?"clip"+s._uid+ee:null,p)}var T=s._imageLowerLayer.selectAll("image").data(h),C=s._imageUpperLayer.selectAll("image").data(u);T.enter().append("image"),C.enter().append("image"),T.exit().remove(),C.exit().remove(),T.each(function(I){S.bind(this)(I),k.bind(this)(I)}),C.each(function(I){S.bind(this)(I),k.bind(this)(I)});var A=Object.keys(s._plots);for(o=0;o<A.length;o++){l=A[o];var E=s._plots[l];if(E.imagelayer){var M=E.imagelayer.selectAll("image").data(d[l]||[]);M.enter().append("image"),M.exit().remove(),M.each(function(I){S.bind(this)(I),k.bind(this)(I)})}}}},15553:function(c,m,a){c.exports={moduleType:"component",name:"images",layoutAttributes:a(37260),supplyLayoutDefaults:a(507),includeBasePlot:a(20706)("images"),draw:a(32211),convertCoords:a(89443)}},86405:function(c,m,a){var v=a(80337),f=a(10229);c.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:f.defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:v({editType:"legend"}),grouptitlefont:v({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},x:{valType:"number",editType:"legend"},xref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",editType:"legend"},yref:{valType:"enumerated",dflt:"paper",values:["container","paper"],editType:"layoutstyle"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:v({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}},72783:function(c){c.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},73970:function(c,m,a){var v=a(33626),f=a(34809),n=a(78032),y=a(9829),_=a(86405),p=a(6704),l=a(57599);function o(s,u,d,h){var g=u[s]||{},b=n.newContainer(d,s);function w(J,ee){return f.coerce(g,b,_,J,ee)}var x=f.coerceFont(w,"font",d.font);if(w("bgcolor",d.paper_bgcolor),w("bordercolor"),w("visible")){for(var S,k=function(J,ee){var le=S._input,oe=S;return f.coerce(le,oe,y,J,ee)},T=d.font||{},C=f.coerceFont(w,"grouptitlefont",T,{overrideDflt:{size:Math.round(1.1*T.size)}}),A=0,E=!1,M="normal",I=(d.shapes||[]).filter(function(J){return J.showlegend}),N=h.concat(I).filter(function(J){return s===(J.legend||"legend")}),z=0;z<N.length;z++)if((S=N[z]).visible){var F=S._isShape;(S.showlegend||S._dfltShowLegend&&!(S._module&&S._module.attributes&&S._module.attributes.showlegend&&S._module.attributes.showlegend.dflt===!1))&&(A++,S.showlegend&&(E=!0,(!F&&v.traceIs(S,"pie-like")||S._input.showlegend===!0)&&A++),f.coerceFont(k,"legendgrouptitle.font",C)),(!F&&v.traceIs(S,"bar")&&d.barmode==="stack"||["tonextx","tonexty"].indexOf(S.fill)!==-1)&&(M=l.isGrouped({traceorder:M})?"grouped+reversed":"reversed"),S.legendgroup!==void 0&&S.legendgroup!==""&&(M=l.isReversed({traceorder:M})?"reversed+grouped":"grouped")}var R=f.coerce(u,d,p,"showlegend",E&&A>(s==="legend"?1:0));if(R===!1&&(d[s]=void 0),(R!==!1||g.uirevision)&&(w("uirevision",d.uirevision),R!==!1)){w("borderwidth");var V,$,U,Z=w("orientation")==="h",q=w("yref")==="paper",W=w("xref")==="paper",Q="left";if(Z?(V=0,v.getComponentMethod("rangeslider","isVisible")(u.xaxis)?q?($=1.1,U="bottom"):($=1,U="top"):q?($=-.1,U="top"):($=0,U="bottom")):($=1,U="auto",W?V=1.02:(V=1,Q="right")),f.coerce(g,b,{x:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:V}},"x"),f.coerce(g,b,{y:{valType:"number",editType:"legend",min:q?-2:0,max:q?3:1,dflt:$}},"y"),w("traceorder",M),l.isGrouped(d[s])&&w("tracegroupgap"),w("entrywidth"),w("entrywidthmode"),w("indentation"),w("itemsizing"),w("itemwidth"),w("itemclick"),w("itemdoubleclick"),w("groupclick"),w("xanchor",Q),w("yanchor",U),w("valign"),f.noneOrAll(g,b,["x","y"]),w("title.text")){w("title.side",Z?"left":"top");var X=f.extendFlat({},x,{size:f.bigFont(x.size)});f.coerceFont(w,"title.font",X)}}}}c.exports=function(s,u,d){var h,g=d.slice(),b=u.shapes;if(b)for(h=0;h<b.length;h++){var w=b[h];if(w.showlegend){var x={_input:w._input,visible:w.visible,showlegend:w.showlegend,legend:w.legend};g.push(x)}}var S=["legend"];for(h=0;h<g.length;h++)f.pushUnique(S,g[h].legend);for(u._legends=[],h=0;h<S.length;h++){var k=S[h];o(k,s,u,g),u[k]&&u[k].visible&&(u[k]._id=k),u._legends.push(k)}}},6134:function(c,m,a){var v=a(45568),f=a(34809),n=a(44122),y=a(33626),_=a(68596),p=a(14751),l=a(62203),o=a(78766),s=a(30635),u=a(22165),d=a(72783),h=a(4530),g=h.LINE_SPACING,b=h.FROM_TL,w=h.FROM_BR,x=a(851),S=a(14375),k=a(57599),T=1,C=/^legend[0-9]*$/;function A(U,Z){var q,W,Q=Z||{},X=U._fullLayout,J=$(Q),ee=Q._inHover;if(ee?(W=Q.layer,q="hover"):(W=X._infolayer,q=J),W){var le;if(q+=X._uid,U._legendMouseDownTime||(U._legendMouseDownTime=0),ee){if(!Q.entries)return;le=x(Q.entries,Q)}else{for(var oe=(U.calcdata||[]).slice(),se=X.shapes,ce=0;ce<se.length;ce++){var ae=se[ce];if(ae.showlegend){var ne={_isShape:!0,_fullInput:ae,index:ae._index,name:ae.name||ae.label.text||"shape "+ae._index,legend:ae.legend,legendgroup:ae.legendgroup,legendgrouptitle:ae.legendgrouptitle,legendrank:ae.legendrank,legendwidth:ae.legendwidth,showlegend:ae.showlegend,visible:ae.visible,opacity:ae.opacity,mode:ae.type==="line"?"lines":"markers",line:ae.line,marker:{line:ae.line,color:ae.fillcolor,size:12,symbol:ae.type==="rect"?"square":ae.type==="circle"?"circle":"hexagon2"}};oe.push([{trace:ne}])}}le=X.showlegend&&x(oe,Q,X._legends.length>1)}var ie=X.hiddenlabels||[];if(!(ee||X.showlegend&&le.length))return W.selectAll("."+J).remove(),X._topdefs.select("#"+q).remove(),n.autoMargin(U,J);var ue=f.ensureSingle(W,"g",J,function($e){ee||$e.attr("pointer-events","all")}),he=f.ensureSingleById(X._topdefs,"clipPath",q,function($e){$e.append("rect")}),pe=f.ensureSingle(ue,"rect","bg",function($e){$e.attr("shape-rendering","crispEdges")});pe.call(o.stroke,Q.bordercolor).call(o.fill,Q.bgcolor).style("stroke-width",Q.borderwidth+"px");var me,_e=f.ensureSingle(ue,"g","scrollbox"),xe=Q.title;Q._titleWidth=0,Q._titleHeight=0,xe.text?((me=f.ensureSingle(_e,"text",J+"titletext")).attr("text-anchor","start").call(l.font,xe.font).text(xe.text),F(me,_e,U,Q,T)):_e.selectAll("."+J+"titletext").remove();var we=f.ensureSingle(ue,"rect","scrollbar",function($e){$e.attr(d.scrollBarEnterAttrs).call(o.fill,d.scrollBarColor)}),Ee=_e.selectAll("g.groups").data(le);Ee.enter().append("g").attr("class","groups"),Ee.exit().remove();var Pe=Ee.selectAll("g.traces").data(f.identity);Pe.enter().append("g").attr("class","traces"),Pe.exit().remove(),Pe.style("opacity",function($e){var Te=$e[0].trace;return y.traceIs(Te,"pie-like")?ie.indexOf($e[0].label)!==-1?.5:1:Te.visible==="legendonly"?.5:1}).each(function(){v.select(this).call(I,U,Q)}).call(S,U,Q).each(function(){ee||v.select(this).call(z,U,J)}),f.syncOrAsync([n.previousPromises,function(){return function($e,Te,Ce,ye){var ge=$e._fullLayout,Me=$(ye);ye||(ye=ge[Me]);var Se=ge._size,ze=k.isVertical(ye),Fe=k.isGrouped(ye),De=ye.entrywidthmode==="fraction",Ue=ye.borderwidth,Ne=2*Ue,ke=d.itemGap,Oe=ye.indentation+ye.itemwidth+2*ke,Re=2*(Ue+ke),je=V(ye),Ze=ye.y<0||ye.y===0&&je==="top",Ye=ye.y>1||ye.y===1&&je==="bottom",it=ye.tracegroupgap,dt={};ye._maxHeight=Math.max(Ze||Ye?ge.height/2:Se.h,30);var ut=0;ye._width=0,ye._height=0;var It=function(Et){var Ct=0,gt=0,$t=Et.title.side;return $t&&($t.indexOf("left")!==-1&&(Ct=Et._titleWidth),$t.indexOf("top")!==-1&&(gt=Et._titleHeight)),[Ct,gt]}(ye);if(ze)Ce.each(function(Et){var Ct=Et[0].height;l.setTranslate(this,Ue+It[0],Ue+It[1]+ye._height+Ct/2+ke),ye._height+=Ct,ye._width=Math.max(ye._width,Et[0].width)}),ut=Oe+ye._width,ye._width+=ke+Oe+Ne,ye._height+=Re,Fe&&(Te.each(function(Et,Ct){l.setTranslate(this,0,Ct*ye.tracegroupgap)}),ye._height+=(ye._lgroupsLength-1)*ye.tracegroupgap);else{var Ot=R(ye),Ft=ye.x<0||ye.x===0&&Ot==="right",ot=ye.x>1||ye.x===1&&Ot==="left",tt=Ye||Ze,vt=ge.width/2;ye._maxWidth=Math.max(Ft?tt&&Ot==="left"?Se.l+Se.w:vt:ot?tt&&Ot==="right"?Se.r+Se.w:vt:Se.w,2*Oe);var At=0,Dt=0;Ce.each(function(Et){var Ct=E(Et,ye,Oe);At=Math.max(At,Ct),Dt+=Ct}),ut=null;var Pt=0;if(Fe){var et=0,rt=0,We=0;Te.each(function(){var Et=0,Ct=0;v.select(this).selectAll("g.traces").each(function($t){var Lt=E($t,ye,Oe),jt=$t[0].height;l.setTranslate(this,It[0],It[1]+Ue+ke+jt/2+Ct),Ct+=jt,Et=Math.max(Et,Lt),dt[$t[0].trace.legendgroup]=Et});var gt=Et+ke;rt>0&&gt+Ue+rt>ye._maxWidth?(Pt=Math.max(Pt,rt),rt=0,We+=et+it,et=Ct):et=Math.max(et,Ct),l.setTranslate(this,rt,We),rt+=gt}),ye._width=Math.max(Pt,rt)+Ue,ye._height=We+et+Re}else{var nt=Ce.size(),_t=Dt+Ne+(nt-1)*ke<ye._maxWidth,mt=0,St=0,Bt=0,Je=0;Ce.each(function(Et){var Ct=Et[0].height,gt=E(Et,ye,Oe),$t=_t?gt:At;De||($t+=ke),$t+Ue+St-ke>=ye._maxWidth&&(Pt=Math.max(Pt,Je),St=0,Bt+=mt,ye._height+=mt,mt=0),l.setTranslate(this,It[0]+Ue+St,It[1]+Ue+Bt+Ct/2+ke),Je=St+gt+ke,St+=$t,mt=Math.max(mt,Ct)}),_t?(ye._width=St+Ne,ye._height=mt+Re):(ye._width=Math.max(Pt,Je)+Ne,ye._height+=mt+Re)}}ye._width=Math.ceil(Math.max(ye._width+It[0],ye._titleWidth+2*(Ue+d.titlePad))),ye._height=Math.ceil(Math.max(ye._height+It[1],ye._titleHeight+2*(Ue+d.itemGap))),ye._effHeight=Math.min(ye._height,ye._maxHeight);var Xe=$e._context.edits,yt=Xe.legendText||Xe.legendPosition;Ce.each(function(Et){var Ct=v.select(this).select("."+Me+"toggle"),gt=Et[0].height,$t=Et[0].trace.legendgroup,Lt=E(Et,ye,Oe);Fe&&$t!==""&&(Lt=dt[$t]);var jt=yt?Oe:ut||Lt;ze||De||(jt+=ke/2),l.setRect(Ct,0,-gt/2,jt,gt)})}(U,Ee,Pe,Q)},function(){var $e,Te,Ce,ye,ge=X._size,Me=Q.borderwidth,Se=Q.xref==="paper",ze=Q.yref==="paper";if(xe.text&&function(tt,vt,At){if(vt.title.side==="top center"||vt.title.side==="top right"){var Dt=vt.title.font.size*g,Pt=0,et=tt.node(),rt=l.bBox(et).width;vt.title.side==="top center"?Pt=.5*(vt._width-2*At-2*d.titlePad-rt):vt.title.side==="top right"&&(Pt=vt._width-2*At-2*d.titlePad-rt),s.positionText(tt,At+d.titlePad+Pt,At+Dt)}}(me,Q,Me),!ee){var Fe,De;Fe=Se?ge.l+ge.w*Q.x-b[R(Q)]*Q._width:X.width*Q.x-b[R(Q)]*Q._width,De=ze?ge.t+ge.h*(1-Q.y)-b[V(Q)]*Q._effHeight:X.height*(1-Q.y)-b[V(Q)]*Q._effHeight;var Ue=function(tt,vt,At,Dt){var Pt=tt._fullLayout,et=Pt[vt],rt=R(et),We=V(et),nt=et.xref==="paper",_t=et.yref==="paper";tt._fullLayout._reservedMargin[vt]={};var mt=et.y<.5?"b":"t",St=et.x<.5?"l":"r",Bt={r:Pt.width-At,l:At+et._width,b:Pt.height-Dt,t:Dt+et._effHeight};if(nt&&_t)return n.autoMargin(tt,vt,{x:et.x,y:et.y,l:et._width*b[rt],r:et._width*w[rt],b:et._effHeight*w[We],t:et._effHeight*b[We]});nt?tt._fullLayout._reservedMargin[vt][mt]=Bt[mt]:_t||et.orientation==="v"?tt._fullLayout._reservedMargin[vt][St]=Bt[St]:tt._fullLayout._reservedMargin[vt][mt]=Bt[mt]}(U,J,Fe,De);if(Ue)return;if(X.margin.autoexpand){var Ne=Fe,ke=De;Fe=Se?f.constrain(Fe,0,X.width-Q._width):Ne,De=ze?f.constrain(De,0,X.height-Q._effHeight):ke,Fe!==Ne&&f.log("Constrain "+J+".x to make legend fit inside graph"),De!==ke&&f.log("Constrain "+J+".y to make legend fit inside graph")}l.setTranslate(ue,Fe,De)}if(we.on(".drag",null),ue.on("wheel",null),ee||Q._height<=Q._maxHeight||U._context.staticPlot){var Oe=Q._effHeight;ee&&(Oe=Q._height),pe.attr({width:Q._width-Me,height:Oe-Me,x:Me/2,y:Me/2}),l.setTranslate(_e,0,0),he.select("rect").attr({width:Q._width-2*Me,height:Oe-2*Me,x:Me,y:Me}),l.setClipUrl(_e,q,U),l.setRect(we,0,0,0,0),delete Q._scrollY}else{var Re,je,Ze,Ye=Math.max(d.scrollBarMinHeight,Q._effHeight*Q._effHeight/Q._height),it=Q._effHeight-Ye-2*d.scrollBarMargin,dt=Q._height-Q._effHeight,ut=it/dt,It=Math.min(Q._scrollY||0,dt);pe.attr({width:Q._width-2*Me+d.scrollBarWidth+d.scrollBarMargin,height:Q._effHeight-Me,x:Me/2,y:Me/2}),he.select("rect").attr({width:Q._width-2*Me+d.scrollBarWidth+d.scrollBarMargin,height:Q._effHeight-2*Me,x:Me,y:Me+It}),l.setClipUrl(_e,q,U),ot(It,Ye,ut),ue.on("wheel",function(){ot(It=f.constrain(Q._scrollY+v.event.deltaY/it*dt,0,dt),Ye,ut),It!==0&&It!==dt&&v.event.preventDefault()});var Ot=v.behavior.drag().on("dragstart",function(){var tt=v.event.sourceEvent;Re=tt.type==="touchstart"?tt.changedTouches[0].clientY:tt.clientY,Ze=It}).on("drag",function(){var tt=v.event.sourceEvent;tt.buttons===2||tt.ctrlKey||(je=tt.type==="touchmove"?tt.changedTouches[0].clientY:tt.clientY,It=function(vt,At,Dt){var Pt=(Dt-At)/ut+vt;return f.constrain(Pt,0,dt)}(Ze,Re,je),ot(It,Ye,ut))});we.call(Ot);var Ft=v.behavior.drag().on("dragstart",function(){var tt=v.event.sourceEvent;tt.type==="touchstart"&&(Re=tt.changedTouches[0].clientY,Ze=It)}).on("drag",function(){var tt=v.event.sourceEvent;tt.type==="touchmove"&&(je=tt.changedTouches[0].clientY,It=function(vt,At,Dt){var Pt=(At-Dt)/ut+vt;return f.constrain(Pt,0,dt)}(Ze,Re,je),ot(It,Ye,ut))});_e.call(Ft)}function ot(tt,vt,At){Q._scrollY=U._fullLayout[J]._scrollY=tt,l.setTranslate(_e,0,-tt),l.setRect(we,Q._width,d.scrollBarMargin+tt*At,d.scrollBarWidth,vt),he.select("rect").attr("y",Me+tt)}U._context.edits.legendPosition&&(ue.classed("cursor-move",!0),p.init({element:ue.node(),gd:U,prepFn:function(tt){if(tt.target!==we.node()){var vt=l.getTranslate(ue);Ce=vt.x,ye=vt.y}},moveFn:function(tt,vt){if(Ce!==void 0&&ye!==void 0){var At=Ce+tt,Dt=ye+vt;l.setTranslate(ue,At,Dt),$e=p.align(At,Q._width,ge.l,ge.l+ge.w,Q.xanchor),Te=p.align(Dt+Q._height,-Q._height,ge.t+ge.h,ge.t,Q.yanchor)}},doneFn:function(){if($e!==void 0&&Te!==void 0){var tt={};tt[J+".x"]=$e,tt[J+".y"]=Te,y.call("_guiRelayout",U,tt)}},clickFn:function(tt,vt){var At=W.selectAll("g.traces").filter(function(){var Dt=this.getBoundingClientRect();return vt.clientX>=Dt.left&&vt.clientX<=Dt.right&&vt.clientY>=Dt.top&&vt.clientY<=Dt.bottom});At.size()>0&&M(U,ue,At,tt,vt)}}))}],U)}}function E(U,Z,q){var W=U[0],Q=W.width,X=Z.entrywidthmode,J=W.trace.legendwidth||Z.entrywidth;return X==="fraction"?Z._maxWidth*J:q+(J||Q)}function M(U,Z,q,W,Q){var X=q.data()[0][0].trace,J={event:Q,node:q.node(),curveNumber:X.index,expandedIndex:X._expandedIndex,data:U.data,layout:U.layout,frames:U._transitionData._frames,config:U._context,fullData:U._fullData,fullLayout:U._fullLayout};X._group&&(J.group=X._group),y.traceIs(X,"pie-like")&&(J.label=q.datum()[0].label);var ee=_.triggerHandler(U,"plotly_legendclick",J);if(W===1){if(ee===!1)return;Z._clickTimeout=setTimeout(function(){U._fullLayout&&u(q,U,W)},U._context.doubleClickDelay)}else W===2&&(Z._clickTimeout&&clearTimeout(Z._clickTimeout),U._legendMouseDownTime=0,_.triggerHandler(U,"plotly_legenddoubleclick",J)!==!1&&ee!==!1&&u(q,U,W))}function I(U,Z,q){var W,Q,X=$(q),J=U.data()[0][0],ee=J.trace,le=y.traceIs(ee,"pie-like"),oe=!q._inHover&&Z._context.edits.legendText&&!le,se=q._maxNameLength;J.groupTitle?(W=J.groupTitle.text,Q=J.groupTitle.font):(Q=q.font,q.entries?W=J.text:(W=le?J.label:ee.name,ee._meta&&(W=f.templateString(W,ee._meta))));var ce=f.ensureSingle(U,"text",X+"text");ce.attr("text-anchor","start").call(l.font,Q).text(oe?N(W,se):W);var ae=q.indentation+q.itemwidth+2*d.itemGap;s.positionText(ce,ae,0),oe?ce.call(s.makeEditable,{gd:Z,text:W}).call(F,U,Z,q).on("edit",function(ne){this.text(N(ne,se)).call(F,U,Z,q);var ie=J.trace._fullInput||{},ue={};if(y.hasTransform(ie,"groupby")){var he=y.getTransformIndices(ie,"groupby"),pe=he[he.length-1],me=f.keyedContainer(ie,"transforms["+pe+"].styles","target","value.name");me.set(J.trace._group,ne),ue=me.constructUpdate()}else ue.name=ne;return ie._isShape?y.call("_guiRelayout",Z,"shapes["+ee.index+"].name",ue.name):y.call("_guiRestyle",Z,ue,ee.index)}):F(ce,U,Z,q)}function N(U,Z){var q=Math.max(4,Z);if(U&&U.trim().length>=q/2)return U;for(var W=q-(U=U||"").length;W>0;W--)U+=" ";return U}function z(U,Z,q){var W,Q=Z._context.doubleClickDelay,X=1,J=f.ensureSingle(U,"rect",q+"toggle",function(ee){Z._context.staticPlot||ee.style("cursor","pointer").attr("pointer-events","all"),ee.call(o.fill,"rgba(0,0,0,0)")});Z._context.staticPlot||(J.on("mousedown",function(){(W=new Date().getTime())-Z._legendMouseDownTime<Q?X+=1:(X=1,Z._legendMouseDownTime=W)}),J.on("mouseup",function(){if(!Z._dragged&&!Z._editing){var ee=Z._fullLayout[q];new Date().getTime()-Z._legendMouseDownTime>Q&&(X=Math.max(X-1,1)),M(Z,ee,U,X,v.event)}}))}function F(U,Z,q,W,Q){W._inHover&&U.attr("data-notex",!0),s.convertToTspans(U,q,function(){(function(X,J,ee,le){var oe=X.data()[0][0];if(ee._inHover||!oe||oe.trace.showlegend){var se=X.select("g[class*=math-group]"),ce=se.node(),ae=$(ee);ee||(ee=J._fullLayout[ae]);var ne,ie,ue=ee.borderwidth,he=(le===T?ee.title.font:oe.groupTitle?oe.groupTitle.font:ee.font).size*g;if(ce){var pe=l.bBox(ce);ne=pe.height,ie=pe.width,le===T?l.setTranslate(se,ue,ue+.75*ne):l.setTranslate(se,0,.25*ne)}else{var me="."+ae+(le===T?"title":"")+"text",_e=X.select(me),xe=s.lineCount(_e),we=_e.node();if(ne=he*xe,ie=we?l.bBox(we).width:0,le===T)ee.title.side==="left"&&(ie+=2*d.itemGap),s.positionText(_e,ue+d.titlePad,ue+he);else{var Ee=2*d.itemGap+ee.indentation+ee.itemwidth;oe.groupTitle&&(Ee=d.itemGap,ie-=ee.indentation+ee.itemwidth),s.positionText(_e,Ee,-he*((xe-1)/2-.3))}}le===T?(ee._titleWidth=ie,ee._titleHeight=ne):(oe.lineHeight=he,oe.height=Math.max(ne,16)+3,oe.width=ie)}else X.remove()})(Z,q,W,Q)})}function R(U){return f.isRightAnchor(U)?"right":f.isCenterAnchor(U)?"center":"left"}function V(U){return f.isBottomAnchor(U)?"bottom":f.isMiddleAnchor(U)?"middle":"top"}function $(U){return U._id||"legend"}c.exports=function(U,Z){if(Z)A(U,Z);else{var q=U._fullLayout,W=q._legends;q._infolayer.selectAll('[class^="legend"]').each(function(){var J=v.select(this),ee=J.attr("class").split(" ")[0];ee.match(C)&&W.indexOf(ee)===-1&&J.remove()});for(var Q=0;Q<W.length;Q++){var X=W[Q];A(U,U._fullLayout[X])}}}},851:function(c,m,a){var v=a(33626),f=a(57599);c.exports=function(n,y,_){var p,l,o=y._inHover,s=f.isGrouped(y),u=f.isReversed(y),d={},h=[],g=!1,b={},w=0,x=0;function S(W,Q,X){if(y.visible!==!1&&(!_||W===y._id))if(Q!==""&&f.isGrouped(y))h.indexOf(Q)===-1?(h.push(Q),g=!0,d[Q]=[X]):d[Q].push(X);else{var J="~~i"+w;h.push(J),d[J]=[X],w++}}for(p=0;p<n.length;p++){var k=n[p],T=k[0],C=T.trace,A=C.legend,E=C.legendgroup;if(o||C.visible&&C.showlegend)if(v.traceIs(C,"pie-like"))for(b[E]||(b[E]={}),l=0;l<k.length;l++){var M=k[l].label;b[E][M]||(S(A,E,{label:M,color:k[l].color,i:k[l].i,trace:C,pts:k[l].pts}),b[E][M]=!0,x=Math.max(x,(M||"").length))}else S(A,E,T),x=Math.max(x,(C.name||"").length)}if(!h.length)return[];var I=!g||!s,N=[];for(p=0;p<h.length;p++){var z=d[h[p]];I?N.push(z[0]):N.push(z)}for(I&&(N=[N]),p=0;p<N.length;p++){var F=1/0;for(l=0;l<N[p].length;l++){var R=N[p][l].trace.legendrank;F>R&&(F=R)}N[p][0]._groupMinRank=F,N[p][0]._preGroupSort=p}var V=function(W,Q){return W.trace.legendrank-Q.trace.legendrank||W._preSort-Q._preSort};for(N.forEach(function(W,Q){W[0]._preGroupSort=Q}),N.sort(function(W,Q){return W[0]._groupMinRank-Q[0]._groupMinRank||W[0]._preGroupSort-Q[0]._preGroupSort}),p=0;p<N.length;p++){N[p].forEach(function(W,Q){W._preSort=Q}),N[p].sort(V);var $=N[p][0].trace,U=null;for(l=0;l<N[p].length;l++){var Z=N[p][l].trace.legendgrouptitle;if(Z&&Z.text){U=Z,o&&(Z.font=y._groupTitleFont);break}}if(u&&N[p].reverse(),U){var q=!1;for(l=0;l<N[p].length;l++)if(v.traceIs(N[p][l].trace,"pie-like")){q=!0;break}N[p].unshift({i:-1,groupTitle:U,noClick:q,trace:{showlegend:$.showlegend,legendgroup:$.legendgroup,visible:y.groupclick==="toggleitem"||$.visible}})}for(l=0;l<N[p].length;l++)N[p][l]=[N[p][l]]}return y._lgroupsLength=N.length,y._maxNameLength=x,N}},22165:function(c,m,a){var v=a(33626),f=a(34809),n=f.pushUnique,y=!0;c.exports=function(_,p,l){var o=p._fullLayout;if(!p._dragged&&!p._editing){var s,u=o.legend.itemclick,d=o.legend.itemdoubleclick,h=o.legend.groupclick;if(l===1&&u==="toggle"&&d==="toggleothers"&&y&&p.data&&p._context.showTips&&f.notifier(f._(p,"Double-click on legend to isolate one trace"),"long"),y=!1,l===1?s=u:l===2&&(s=d),s){var g=h==="togglegroup",b=o.hiddenlabels?o.hiddenlabels.slice():[],w=_.data()[0][0];if(!w.groupTitle||!w.noClick){var x=p._fullData,S=(o.shapes||[]).filter(function(Te){return Te.showlegend}),k=x.concat(S),T=w.trace;T._isShape&&(T=T._fullInput);var C,A,E,M,I,N=T.legendgroup,z={},F=[],R=[],V=[],$=(o.shapes||[]).map(function(Te){return Te._input}),U=!1,Z=T.legend,q=T._fullInput;if(q&&q._isShape||!v.traceIs(T,"pie-like")){var W,Q=N&&N.length,X=[];if(Q)for(C=0;C<k.length;C++)(W=k[C]).visible&&W.legendgroup===N&&X.push(C);if(s==="toggle"){var J;switch(T.visible){case!0:J="legendonly";break;case!1:J=!1;break;case"legendonly":J=!0}if(Q)if(g)for(C=0;C<k.length;C++){var ee=k[C];ee.visible!==!1&&ee.legendgroup===N&&$e(ee,J)}else $e(T,J);else $e(T,J)}else if(s==="toggleothers"){var le,oe,se,ce,ae=!0;for(C=0;C<k.length;C++)if(le=(ce=k[C])===T,oe=ce.showlegend!==!0,!(le||oe||Q&&ce.legendgroup===N||ce.legend!==Z||ce.visible!==!0||v.traceIs(ce,"notLegendIsolatable"))){ae=!1;break}for(C=0;C<k.length;C++)if((ce=k[C]).visible!==!1&&ce.legend===Z&&!v.traceIs(ce,"notLegendIsolatable"))switch(T.visible){case"legendonly":$e(ce,!0);break;case!0:se=!!ae||"legendonly",le=ce===T,oe=ce.showlegend!==!0&&!ce.legendgroup,$e(ce,!!(le||Q&&ce.legendgroup===N||oe)||se)}}for(C=0;C<R.length;C++)if(E=R[C]){var ne=E.constructUpdate(),ie=Object.keys(ne);for(A=0;A<ie.length;A++)M=ie[A],(z[M]=z[M]||[])[V[C]]=ne[M]}for(I=Object.keys(z),C=0;C<I.length;C++)for(M=I[C],A=0;A<F.length;A++)z[M].hasOwnProperty(A)||(z[M][A]=void 0);U?v.call("_guiUpdate",p,z,{shapes:$},F):v.call("_guiRestyle",p,z,F)}else{var ue=w.label,he=b.indexOf(ue);if(s==="toggle")he===-1?b.push(ue):b.splice(he,1);else if(s==="toggleothers"){var pe=he!==-1,me=[];for(C=0;C<p.calcdata.length;C++){var _e=p.calcdata[C];for(A=0;A<_e.length;A++){var xe=_e[A].label;Z===_e[0].trace.legend&&ue!==xe&&(b.indexOf(xe)===-1&&(pe=!0),n(b,xe),me.push(xe))}}if(!pe)for(var we=0;we<me.length;we++){var Ee=b.indexOf(me[we]);Ee!==-1&&b.splice(Ee,1)}}v.call("_guiRelayout",p,"hiddenlabels",b)}}}}function Pe(Te,Ce){var ye=F.indexOf(Te),ge=z.visible;return ge||(ge=z.visible=[]),F.indexOf(Te)===-1&&(F.push(Te),ye=F.length-1),ge[ye]=Ce,ye}function $e(Te,Ce){if(!w.groupTitle||g){var ye,ge=Te._fullInput||Te,Me=ge._isShape,Se=ge.index;if(Se===void 0&&(Se=ge._index),v.hasTransform(ge,"groupby")){var ze=R[Se];if(!ze){var Fe=v.getTransformIndices(ge,"groupby"),De=Fe[Fe.length-1];ze=f.keyedContainer(ge,"transforms["+De+"].styles","target","value.visible"),R[Se]=ze}var Ue=ze.get(Te._group);Ue===void 0&&(Ue=!0),Ue!==!1&&ze.set(Te._group,Ce),V[Se]=Pe(Se,ge.visible!==!1)}else{var Ne=ge.visible!==!1&&Ce;Me?(ye=Ne,$[Se].visible=ye,U=!0):Pe(Se,Ne)}}}}},57599:function(c,m){m.isGrouped=function(a){return(a.traceorder||"").indexOf("grouped")!==-1},m.isVertical=function(a){return a.orientation!=="h"},m.isReversed=function(a){return(a.traceorder||"").indexOf("reversed")!==-1}},82494:function(c,m,a){c.exports={moduleType:"component",name:"legend",layoutAttributes:a(86405),supplyLayoutDefaults:a(73970),draw:a(6134),style:a(14375)}},14375:function(c,m,a){var v=a(45568),f=a(33626),n=a(34809),y=n.strTranslate,_=a(62203),p=a(78766),l=a(65477).extractOpts,o=a(64726),s=a(32891),u=a(37252).castOption,d=a(72783);function h(w,x){return(x?"radial":"horizontal")+(w?"":"reversed")}function g(w){var x=w[0].trace,S=x.contours,k=o.hasLines(x),T=o.hasMarkers(x),C=x.visible&&x.fill&&x.fill!=="none",A=!1,E=!1;if(S){var M=S.coloring;M==="lines"?A=!0:k=M==="none"||M==="heatmap"||S.showlines,S.type==="constraint"?C=S._operation!=="=":M!=="fill"&&M!=="heatmap"||(E=!0)}return{showMarker:T,showLine:k,showFill:C,showGradientLine:A,showGradientFill:E,anyLine:k||A,anyFill:C||E}}function b(w,x,S){return w&&n.isArrayOrTypedArray(w)?x:w>S?S:w}c.exports=function(w,x,S){var k=x._fullLayout;S||(S=k.legend);var T=S.itemsizing==="constant",C=S.itemwidth,A=(C+2*d.itemGap)/2,E=y(A,0),M=function(z,F,R,V){var $;if(z+1)$=z;else{if(!(F&&F.width>0))return 0;$=F.width}return T?V:Math.min($,R)};function I(z,F,R){var V=z[0].trace,$=V.marker||{},U=$.line||{},Z=$.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",q=R?V.visible&&V.type===R:f.traceIs(V,"bar"),W=v.select(F).select("g.legendpoints").selectAll("path.legend"+R).data(q?[z]:[]);W.enter().append("path").classed("legend"+R,!0).attr("d",Z).attr("transform",E),W.exit().remove(),W.each(function(Q){var X=v.select(this),J=Q[0],ee=M(J.mlw,$.line,5,2);X.style("stroke-width",ee+"px");var le=J.mcc;if(!S._inHover&&"mc"in J){var oe=l($),se=oe.mid;se===void 0&&(se=(oe.max+oe.min)/2),le=_.tryColorscale($,"")(se)}var ce=le||J.mc||$.color,ae=$.pattern,ne=ae&&_.getPatternAttr(ae.shape,0,"");if(ne){var ie=_.getPatternAttr(ae.bgcolor,0,null),ue=_.getPatternAttr(ae.fgcolor,0,null),he=ae.fgopacity,pe=b(ae.size,8,10),me=b(ae.solidity,.5,1),_e="legend-"+V.uid;X.call(_.pattern,"legend",x,_e,ne,pe,me,le,ae.fillmode,ie,ue,he)}else X.call(p.fill,ce);ee&&p.stroke(X,J.mlc||U.color)})}function N(z,F,R){var V=z[0],$=V.trace,U=R?$.visible&&$.type===R:f.traceIs($,R),Z=v.select(F).select("g.legendpoints").selectAll("path.legend"+R).data(U?[z]:[]);if(Z.enter().append("path").classed("legend"+R,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",E),Z.exit().remove(),Z.size()){var q=$.marker||{},W=M(u(q.line.width,V.pts),q.line,5,2),Q="pieLike",X=n.minExtend($,{marker:{line:{width:W}}},Q),J=n.minExtend(V,{trace:X},Q);s(Z,J,X,x)}}w.each(function(z){var F=v.select(this),R=n.ensureSingle(F,"g","layers");R.style("opacity",z[0].trace.opacity);var V=S.indentation,$=S.valign,U=z[0].lineHeight,Z=z[0].height;if($==="middle"&&V===0||!U||!Z)R.attr("transform",null);else{var q={top:1,bottom:-1}[$]*(.5*(U-Z+3))||0,W=S.indentation;R.attr("transform",y(W,q))}R.selectAll("g.legendfill").data([z]).enter().append("g").classed("legendfill",!0),R.selectAll("g.legendlines").data([z]).enter().append("g").classed("legendlines",!0);var Q=R.selectAll("g.legendsymbols").data([z]);Q.enter().append("g").classed("legendsymbols",!0),Q.selectAll("g.legendpoints").data([z]).enter().append("g").classed("legendpoints",!0)}).each(function(z){var F,R=z[0].trace,V=[];if(R.visible)switch(R.type){case"histogram2d":case"heatmap":V=[["M-15,-2V4H15V-2Z"]],F=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":V=[["M-6,-6V6H6V-6Z"]],F=!0;break;case"densitymapbox":case"densitymap":V=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],F="radial";break;case"cone":V=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],F=!1;break;case"streamtube":V=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],F=!1;break;case"surface":V=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],F=!0;break;case"mesh3d":V=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!1;break;case"volume":V=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],F=!0;break;case"isosurface":V=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],F=!1}var $=v.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(V);$.enter().append("path").classed("legend3dandfriends",!0).attr("transform",E).style("stroke-miterlimit",1),$.exit().remove(),$.each(function(U,Z){var q,W=v.select(this),Q=l(R),X=Q.colorscale,J=Q.reversescale;if(X){if(!F){var ee=X.length;q=Z===0?X[J?ee-1:0][1]:Z===1?X[J?0:ee-1][1]:X[Math.floor((ee-1)/2)][1]}}else{var le=R.vertexcolor||R.facecolor||R.color;q=n.isArrayOrTypedArray(le)?le[Z]||le[0]:le}W.attr("d",U[0]),q?W.call(p.fill,q):W.call(function(oe){if(oe.size()){var se="legendfill-"+R.uid;_.gradient(oe,x,se,h(J,F==="radial"),X,"fill")}})})}).each(function(z){var F=z[0].trace,R=F.type==="waterfall";if(z[0]._distinct&&R){var V=z[0].trace[z[0].dir].marker;return z[0].mc=V.color,z[0].mlw=V.line.width,z[0].mlc=V.line.color,I(z,this,"waterfall")}var $=[];F.visible&&R&&($=z[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var U=v.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data($);U.enter().append("path").classed("legendwaterfall",!0).attr("transform",E).style("stroke-miterlimit",1),U.exit().remove(),U.each(function(Z){var q=v.select(this),W=F[Z[0]].marker,Q=M(void 0,W.line,5,2);q.attr("d",Z[1]).style("stroke-width",Q+"px").call(p.fill,W.color),Q&&q.call(p.stroke,W.line.color)})}).each(function(z){I(z,this,"funnel")}).each(function(z){I(z,this)}).each(function(z){var F=z[0].trace,R=v.select(this).select("g.legendpoints").selectAll("path.legendbox").data(F.visible&&f.traceIs(F,"box-violin")?[z]:[]);R.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",E),R.exit().remove(),R.each(function(){var V=v.select(this);if(F.boxpoints!=="all"&&F.points!=="all"||p.opacity(F.fillcolor)!==0||p.opacity((F.line||{}).color)!==0){var $=M(void 0,F.line,5,2);V.style("stroke-width",$+"px").call(p.fill,F.fillcolor),$&&p.stroke(V,F.line.color)}else{var U=n.minExtend(F,{marker:{size:T?12:n.constrain(F.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});R.call(_.pointStyle,U,x)}})}).each(function(z){N(z,this,"funnelarea")}).each(function(z){N(z,this,"pie")}).each(function(z){var F,R,V=g(z),$=V.showFill,U=V.showLine,Z=V.showGradientLine,q=V.showGradientFill,W=V.anyFill,Q=V.anyLine,X=z[0],J=X.trace,ee=l(J),le=ee.colorscale,oe=ee.reversescale,se=o.hasMarkers(J)||!W?"M5,0":Q?"M5,-2":"M5,-3",ce=v.select(this),ae=ce.select(".legendfill").selectAll("path").data($||q?[z]:[]);if(ae.enter().append("path").classed("js-fill",!0),ae.exit().remove(),ae.attr("d",se+"h"+C+"v6h-"+C+"z").call(function(ue){if(ue.size())if($)_.fillGroupStyle(ue,x,!0);else{var he="legendfill-"+J.uid;_.gradient(ue,x,he,h(oe),le,"fill")}}),U||Z){var ne=M(void 0,J.line,10,5);R=n.minExtend(J,{line:{width:ne}}),F=[n.minExtend(X,{trace:R})]}var ie=ce.select(".legendlines").selectAll("path").data(U||Z?[F]:[]);ie.enter().append("path").classed("js-line",!0),ie.exit().remove(),ie.attr("d",se+(Z?"l"+C+",0.0001":"h"+C)).call(U?_.lineGroupStyle:function(ue){if(ue.size()){var he="legendline-"+J.uid;_.lineGroupStyle(ue),_.gradient(ue,x,he,h(oe),le,"stroke")}})}).each(function(z){var F,R,V=g(z),$=V.anyFill,U=V.anyLine,Z=V.showLine,q=V.showMarker,W=z[0],Q=W.trace,X=!q&&!U&&!$&&o.hasText(Q);function J(ie,ue,he,pe){var me=n.nestedProperty(Q,ie).get(),_e=n.isArrayOrTypedArray(me)&&ue?ue(me):me;if(T&&_e&&pe!==void 0&&(_e=pe),he){if(_e<he[0])return he[0];if(_e>he[1])return he[1]}return _e}function ee(ie){return W._distinct&&W.index&&ie[W.index]?ie[W.index]:ie[0]}if(q||X||Z){var le={},oe={};if(q){le.mc=J("marker.color",ee),le.mx=J("marker.symbol",ee),le.mo=J("marker.opacity",n.mean,[.2,1]),le.mlc=J("marker.line.color",ee),le.mlw=J("marker.line.width",n.mean,[0,5],2),oe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var se=J("marker.size",n.mean,[2,16],12);le.ms=se,oe.marker.size=se}Z&&(oe.line={width:J("line.width",ee,[0,10],5)}),X&&(le.tx="Aa",le.tp=J("textposition",ee),le.ts=10,le.tc=J("textfont.color",ee),le.tf=J("textfont.family",ee),le.tw=J("textfont.weight",ee),le.ty=J("textfont.style",ee),le.tv=J("textfont.variant",ee),le.tC=J("textfont.textcase",ee),le.tE=J("textfont.lineposition",ee),le.tS=J("textfont.shadow",ee)),F=[n.minExtend(W,le)],(R=n.minExtend(Q,oe)).selectedpoints=null,R.texttemplate=null}var ce=v.select(this).select("g.legendpoints"),ae=ce.selectAll("path.scatterpts").data(q?F:[]);ae.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",E),ae.exit().remove(),ae.call(_.pointStyle,R,x),q&&(F[0].mrc=3);var ne=ce.selectAll("g.pointtext").data(X?F:[]);ne.enter().append("g").classed("pointtext",!0).append("text").attr("transform",E),ne.exit().remove(),ne.selectAll("text").call(_.textPointStyle,R,x)}).each(function(z){var F=z[0].trace,R=v.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(F.visible&&F.type==="candlestick"?[z,z]:[]);R.enter().append("path").classed("legendcandle",!0).attr("d",function(V,$){return $?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",E).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(V,$){var U=v.select(this),Z=F[$?"increasing":"decreasing"],q=M(void 0,Z.line,5,2);U.style("stroke-width",q+"px").call(p.fill,Z.fillcolor),q&&p.stroke(U,Z.line.color)})}).each(function(z){var F=z[0].trace,R=v.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(F.visible&&F.type==="ohlc"?[z,z]:[]);R.enter().append("path").classed("legendohlc",!0).attr("d",function(V,$){return $?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",E).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(V,$){var U=v.select(this),Z=F[$?"increasing":"decreasing"],q=M(void 0,Z.line,5,2);U.style("fill","none").call(_.dashLine,Z.line.dash,q),q&&p.stroke(U,Z.line.color)})})}},50308:function(c,m,a){a(87632),c.exports={editType:"modebar",orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},add:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"},remove:{valType:"string",arrayOk:!0,dflt:"",editType:"modebar"}}},5832:function(c,m,a){var v=a(33626),f=a(44122),n=a(5975),y=a(35188),_=a(28231).eraseActiveShape,p=a(34809),l=p._,o=c.exports={};function s(C,A){var E,M,I=A.currentTarget,N=I.getAttribute("data-attr"),z=I.getAttribute("data-val")||!0,F=C._fullLayout,R={},V=n.list(C,null,!0),$=F._cartesianSpikesEnabled;if(N==="zoom"){var U,Z=z==="in"?.5:2,q=(1+Z)/2,W=(1-Z)/2;for(M=0;M<V.length;M++)if(!(E=V[M]).fixedrange)if(U=E._name,z==="auto")R[U+".autorange"]=!0;else if(z==="reset")E._rangeInitial0===void 0&&E._rangeInitial1===void 0?R[U+".autorange"]=!0:E._rangeInitial0===void 0?(R[U+".autorange"]=E._autorangeInitial,R[U+".range"]=[null,E._rangeInitial1]):E._rangeInitial1===void 0?(R[U+".range"]=[E._rangeInitial0,null],R[U+".autorange"]=E._autorangeInitial):R[U+".range"]=[E._rangeInitial0,E._rangeInitial1],E._showSpikeInitial!==void 0&&(R[U+".showspikes"]=E._showSpikeInitial,$!=="on"||E._showSpikeInitial||($="off"));else{var Q=[E.r2l(E.range[0]),E.r2l(E.range[1])],X=[q*Q[0]+W*Q[1],q*Q[1]+W*Q[0]];R[U+".range[0]"]=E.l2r(X[0]),R[U+".range[1]"]=E.l2r(X[1])}}else N!=="hovermode"||z!=="x"&&z!=="y"||(z=F._isHoriz?"y":"x",I.setAttribute("data-val",z)),R[N]=z;F._cartesianSpikesEnabled=$,v.call("_guiRelayout",C,R)}function u(C,A){for(var E=A.currentTarget,M=E.getAttribute("data-attr"),I=E.getAttribute("data-val")||!0,N=C._fullLayout._subplots.gl3d||[],z={},F=M.split("."),R=0;R<N.length;R++)z[N[R]+"."+F[1]]=I;var V=I==="pan"?I:"zoom";z.dragmode=V,v.call("_guiRelayout",C,z)}function d(C,A){for(var E=A.currentTarget.getAttribute("data-attr"),M=E==="resetLastSave",I=E==="resetDefault",N=C._fullLayout,z=N._subplots.gl3d||[],F={},R=0;R<z.length;R++){var V,$=z[R],U=$+".camera",Z=$+".aspectratio",q=$+".aspectmode",W=N[$]._scene;M?(F[U+".up"]=W.viewInitial.up,F[U+".eye"]=W.viewInitial.eye,F[U+".center"]=W.viewInitial.center,V=!0):I&&(F[U+".up"]=null,F[U+".eye"]=null,F[U+".center"]=null,V=!0),V&&(F[Z+".x"]=W.viewInitial.aspectratio.x,F[Z+".y"]=W.viewInitial.aspectratio.y,F[Z+".z"]=W.viewInitial.aspectratio.z,F[q]=W.viewInitial.aspectmode)}v.call("_guiRelayout",C,F)}function h(C,A){var E=A.currentTarget,M=E._previousVal,I=C._fullLayout,N=I._subplots.gl3d||[],z=["xaxis","yaxis","zaxis"],F={},R={};if(M)R=M,E._previousVal=null;else{for(var V=0;V<N.length;V++){var $=N[V],U=I[$],Z=$+".hovermode";F[Z]=U.hovermode,R[Z]=!1;for(var q=0;q<3;q++){var W=z[q],Q=$+"."+W+".showspikes";R[Q]=!1,F[Q]=U[W].showspikes}}E._previousVal=F}return R}function g(C,A){for(var E=A.currentTarget,M=E.getAttribute("data-attr"),I=E.getAttribute("data-val")||!0,N=C._fullLayout,z=N._subplots.geo||[],F=0;F<z.length;F++){var R=z[F],V=N[R];if(M==="zoom"){var $=V.projection.scale,U=I==="in"?2*$:.5*$;v.call("_guiRelayout",C,R+".projection.scale",U)}}M==="reset"&&T(C,"geo")}function b(C){var A=C._fullLayout;return!A.hovermode&&(A._has("cartesian")?A._isHoriz?"y":"x":"closest")}function w(C){var A=b(C);v.call("_guiRelayout",C,"hovermode",A)}function x(C,A){k(C,A,"mapbox")}function S(C,A){k(C,A,"map")}function k(C,A,E){for(var M=A.currentTarget.getAttribute("data-val"),I=C._fullLayout,N=I._subplots[E]||[],z={},F=0;F<N.length;F++){var R=N[F],V=I[R].zoom,$=M==="in"?1.05*V:V/1.05;z[R+".zoom"]=$}v.call("_guiRelayout",C,z)}function T(C,A){for(var E=C._fullLayout,M=E._subplots[A]||[],I={},N=0;N<M.length;N++)for(var z=M[N],F=E[z]._subplot.viewInitial,R=Object.keys(F),V=0;V<R.length;V++){var $=R[V];I[z+"."+$]=F[$]}v.call("_guiRelayout",C,I)}o.toImage={name:"toImage",title:function(C){var A=(C._context.toImageButtonOptions||{}).format||"png";return l(C,A==="png"?"Download plot as a png":"Download plot")},icon:y.camera,click:function(C){var A=C._context.toImageButtonOptions,E={format:A.format||"png"};p.notifier(l(C,"Taking snapshot - this may take a few seconds"),"long"),E.format!=="svg"&&p.isIE()&&(p.notifier(l(C,"IE only supports svg. Changing format to svg."),"long"),E.format="svg"),["filename","width","height","scale"].forEach(function(M){M in A&&(E[M]=A[M])}),v.call("downloadImage",C,E).then(function(M){p.notifier(l(C,"Snapshot succeeded")+" - "+M,"long")}).catch(function(){p.notifier(l(C,"Sorry, there was a problem downloading your snapshot!"),"long")})}},o.sendDataToCloud={name:"sendDataToCloud",title:function(C){return l(C,"Edit in Chart Studio")},icon:y.disk,click:function(C){f.sendDataToCloud(C)}},o.editInChartStudio={name:"editInChartStudio",title:function(C){return l(C,"Edit in Chart Studio")},icon:y.pencil,click:function(C){f.sendDataToCloud(C)}},o.zoom2d={name:"zoom2d",_cat:"zoom",title:function(C){return l(C,"Zoom")},attr:"dragmode",val:"zoom",icon:y.zoombox,click:s},o.pan2d={name:"pan2d",_cat:"pan",title:function(C){return l(C,"Pan")},attr:"dragmode",val:"pan",icon:y.pan,click:s},o.select2d={name:"select2d",_cat:"select",title:function(C){return l(C,"Box Select")},attr:"dragmode",val:"select",icon:y.selectbox,click:s},o.lasso2d={name:"lasso2d",_cat:"lasso",title:function(C){return l(C,"Lasso Select")},attr:"dragmode",val:"lasso",icon:y.lasso,click:s},o.drawclosedpath={name:"drawclosedpath",title:function(C){return l(C,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:y.drawclosedpath,click:s},o.drawopenpath={name:"drawopenpath",title:function(C){return l(C,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:y.drawopenpath,click:s},o.drawline={name:"drawline",title:function(C){return l(C,"Draw line")},attr:"dragmode",val:"drawline",icon:y.drawline,click:s},o.drawrect={name:"drawrect",title:function(C){return l(C,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:y.drawrect,click:s},o.drawcircle={name:"drawcircle",title:function(C){return l(C,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:y.drawcircle,click:s},o.eraseshape={name:"eraseshape",title:function(C){return l(C,"Erase active shape")},icon:y.eraseshape,click:_},o.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(C){return l(C,"Zoom in")},attr:"zoom",val:"in",icon:y.zoom_plus,click:s},o.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(C){return l(C,"Zoom out")},attr:"zoom",val:"out",icon:y.zoom_minus,click:s},o.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(C){return l(C,"Autoscale")},attr:"zoom",val:"auto",icon:y.autoscale,click:s},o.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(C){return l(C,"Reset axes")},attr:"zoom",val:"reset",icon:y.home,click:s},o.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(C){return l(C,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:y.tooltip_basic,gravity:"ne",click:s},o.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(C){return l(C,"Compare data on hover")},attr:"hovermode",val:function(C){return C._fullLayout._isHoriz?"y":"x"},icon:y.tooltip_compare,gravity:"ne",click:s},o.zoom3d={name:"zoom3d",_cat:"zoom",title:function(C){return l(C,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:y.zoombox,click:u},o.pan3d={name:"pan3d",_cat:"pan",title:function(C){return l(C,"Pan")},attr:"scene.dragmode",val:"pan",icon:y.pan,click:u},o.orbitRotation={name:"orbitRotation",title:function(C){return l(C,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:y["3d_rotate"],click:u},o.tableRotation={name:"tableRotation",title:function(C){return l(C,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:y["z-axis"],click:u},o.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(C){return l(C,"Reset camera to default")},attr:"resetDefault",icon:y.home,click:d},o.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(C){return l(C,"Reset camera to last save")},attr:"resetLastSave",icon:y.movie,click:d},o.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(C){return l(C,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:y.tooltip_basic,gravity:"ne",click:function(C,A){var E=h(C,A);v.call("_guiRelayout",C,E)}},o.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(C){return l(C,"Zoom in")},attr:"zoom",val:"in",icon:y.zoom_plus,click:g},o.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(C){return l(C,"Zoom out")},attr:"zoom",val:"out",icon:y.zoom_minus,click:g},o.resetGeo={name:"resetGeo",_cat:"reset",title:function(C){return l(C,"Reset")},attr:"reset",val:null,icon:y.autoscale,click:g},o.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(C){return l(C,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:y.tooltip_basic,gravity:"ne",click:w},o.hoverClosestGl2d={name:"hoverClosestGl2d",_cat:"hoverclosest",title:function(C){return l(C,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:y.tooltip_basic,gravity:"ne",click:w},o.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(C){return l(C,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:y.tooltip_basic,gravity:"ne",click:w},o.resetViewSankey={name:"resetSankeyGroup",title:function(C){return l(C,"Reset view")},icon:y.home,click:function(C){for(var A={"node.groups":[],"node.x":[],"node.y":[]},E=0;E<C._fullData.length;E++){var M=C._fullData[E]._viewInitial;A["node.groups"].push(M.node.groups.slice()),A["node.x"].push(M.node.x.slice()),A["node.y"].push(M.node.y.slice())}v.call("restyle",C,A)}},o.toggleHover={name:"toggleHover",title:function(C){return l(C,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:y.tooltip_basic,gravity:"ne",click:function(C,A){var E=h(C,A);E.hovermode=b(C),v.call("_guiRelayout",C,E)}},o.resetViews={name:"resetViews",title:function(C){return l(C,"Reset views")},icon:y.home,click:function(C,A){var E=A.currentTarget;E.setAttribute("data-attr","zoom"),E.setAttribute("data-val","reset"),s(C,A),E.setAttribute("data-attr","resetLastSave"),d(C,A),T(C,"geo"),T(C,"mapbox"),T(C,"map")}},o.toggleSpikelines={name:"toggleSpikelines",title:function(C){return l(C,"Toggle Spike Lines")},icon:y.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(C){var A=C._fullLayout,E=A._cartesianSpikesEnabled;A._cartesianSpikesEnabled=E==="on"?"off":"on",v.call("_guiRelayout",C,function(M){for(var I=M._fullLayout._cartesianSpikesEnabled==="on",N=n.list(M,null,!0),z={},F=0;F<N.length;F++){var R=N[F];z[R._name+".showspikes"]=!!I||R._showSpikeInitial}return z}(C))}},o.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(C){return l(C,"Reset view")},attr:"reset",icon:y.home,click:function(C){T(C,"mapbox")}},o.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(C){return l(C,"Reset view")},attr:"reset",icon:y.home,click:function(C){T(C,"map")}},o.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(C){return l(C,"Zoom in")},attr:"zoom",val:"in",icon:y.zoom_plus,click:x},o.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(C){return l(C,"Zoom in")},attr:"zoom",val:"in",icon:y.zoom_plus,click:S},o.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(C){return l(C,"Zoom out")},attr:"zoom",val:"out",icon:y.zoom_minus,click:x},o.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(C){return l(C,"Zoom out")},attr:"zoom",val:"out",icon:y.zoom_minus,click:S}},87632:function(c,m,a){var v=a(5832),f=Object.keys(v),n=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],y=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(n),_=[];f.forEach(function(p){(function(l){if(y.indexOf(l._cat||l.name)===-1){var o=l.name,s=(l._cat||l.name).toLowerCase();_.indexOf(o)===-1&&_.push(o),_.indexOf(s)===-1&&_.push(s)}})(v[p])}),_.sort(),c.exports={DRAW_MODES:n,backButtons:y,foreButtons:_}},17683:function(c,m,a){var v=a(34809),f=a(78766),n=a(78032),y=a(50308);c.exports=function(_,p){var l=_.modebar||{},o=n.newContainer(p,"modebar");function s(d,h){return v.coerce(l,o,y,d,h)}s("orientation"),s("bgcolor",f.addOpacity(p.paper_bgcolor,.5));var u=f.contrast(f.rgb(p.modebar.bgcolor));s("color",f.addOpacity(u,.3)),s("activecolor",f.addOpacity(u,.7)),s("uirevision",p.uirevision),s("add"),s("remove")}},95433:function(c,m,a){c.exports={moduleType:"component",name:"modebar",layoutAttributes:a(50308),supplyLayoutDefaults:a(17683),manage:a(75442)}},75442:function(c,m,a){var v=a(5975),f=a(64726),n=a(33626),y=a(36040).isUnifiedHover,_=a(85393),p=a(5832),l=a(87632).DRAW_MODES,o=a(34809).extendDeep;c.exports=function(s){var u=s._fullLayout,d=s._context,h=u._modeBar;if(d.displayModeBar||d.watermark){if(!Array.isArray(d.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(d.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var g,b=d.modeBarButtons;g=Array.isArray(b)&&b.length?function(w){for(var x=o([],w),S=0;S<x.length;S++)for(var k=x[S],T=0;T<k.length;T++){var C=k[T];if(typeof C=="string"){if(p[C]===void 0)throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "));x[S][T]=p[C]}}return x}(b):!d.displayModeBar&&d.watermark?[]:function(w){var x=w._fullLayout,S=w._fullData,k=w._context;function T(_e,xe){if(typeof xe=="string"){if(xe.toLowerCase()===_e.toLowerCase())return!0}else{var we=xe.name,Ee=xe._cat||xe.name;if(we===_e||Ee===_e.toLowerCase())return!0}return!1}var C=x.modebar.add;typeof C=="string"&&(C=[C]);var A=x.modebar.remove;typeof A=="string"&&(A=[A]);var E=k.modeBarButtonsToAdd.concat(C.filter(function(_e){for(var xe=0;xe<k.modeBarButtonsToRemove.length;xe++)if(T(_e,k.modeBarButtonsToRemove[xe]))return!1;return!0})),M=k.modeBarButtonsToRemove.concat(A.filter(function(_e){for(var xe=0;xe<k.modeBarButtonsToAdd.length;xe++)if(T(_e,k.modeBarButtonsToAdd[xe]))return!1;return!0})),I=x._has("cartesian"),N=x._has("gl3d"),z=x._has("geo"),F=x._has("pie"),R=x._has("funnelarea"),V=x._has("gl2d"),$=x._has("ternary"),U=x._has("mapbox"),Z=x._has("map"),q=x._has("polar"),W=x._has("smith"),Q=x._has("sankey"),X=function(_e){for(var xe=v.list({_fullLayout:_e},null,!0),we=0;we<xe.length;we++)if(!xe[we].fixedrange)return!1;return!0}(x),J=y(x.hovermode),ee=[];function le(_e){if(_e.length){for(var xe=[],we=0;we<_e.length;we++){for(var Ee=_e[we],Pe=p[Ee],$e=Pe.name.toLowerCase(),Te=(Pe._cat||Pe.name).toLowerCase(),Ce=!1,ye=0;ye<M.length;ye++){var ge=M[ye].toLowerCase();if(ge===$e||ge===Te){Ce=!0;break}}Ce||xe.push(p[Ee])}ee.push(xe)}}var oe=["toImage"];k.showEditInChartStudio?oe.push("editInChartStudio"):k.showSendToCloud&&oe.push("sendDataToCloud"),le(oe);var se=[],ce=[],ae=[],ne=[];(I||V||F||R||$)+z+N+U+Z+q+W>1?(ce=["toggleHover"],ae=["resetViews"]):z?(se=["zoomInGeo","zoomOutGeo"],ce=["hoverClosestGeo"],ae=["resetGeo"]):N?(ce=["hoverClosest3d"],ae=["resetCameraDefault3d","resetCameraLastSave3d"]):U?(se=["zoomInMapbox","zoomOutMapbox"],ce=["toggleHover"],ae=["resetViewMapbox"]):Z?(se=["zoomInMap","zoomOutMap"],ce=["toggleHover"],ae=["resetViewMap"]):V?ce=["hoverClosestGl2d"]:F?ce=["hoverClosestPie"]:Q?(ce=["hoverClosestCartesian","hoverCompareCartesian"],ae=["resetViewSankey"]):ce=["toggleHover"],I&&ce.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(function(_e){for(var xe=0;xe<_e.length;xe++)if(!n.traceIs(_e[xe],"noHover"))return!1;return!0}(S)||J)&&(ce=[]),!I&&!V||X||(se=["zoomIn2d","zoomOut2d","autoScale2d"],ae[0]!=="resetViews"&&(ae=["resetScale2d"])),N?ne=["zoom3d","pan3d","orbitRotation","tableRotation"]:(I||V)&&!X||$?ne=["zoom2d","pan2d"]:U||Z||z?ne=["pan2d"]:q&&(ne=["zoom2d"]),function(_e){for(var xe=!1,we=0;we<_e.length&&!xe;we++){var Ee=_e[we];Ee._module&&Ee._module.selectPoints&&(n.traceIs(Ee,"scatter-like")?(f.hasMarkers(Ee)||f.hasText(Ee))&&(xe=!0):n.traceIs(Ee,"box-violin")&&Ee.boxpoints!=="all"&&Ee.points!=="all"||(xe=!0))}return xe}(S)&&ne.push("select2d","lasso2d");var ie=[],ue=function(_e){ie.indexOf(_e)===-1&&ce.indexOf(_e)!==-1&&ie.push(_e)};if(Array.isArray(E)){for(var he=[],pe=0;pe<E.length;pe++){var me=E[pe];typeof me=="string"?(me=me.toLowerCase(),l.indexOf(me)!==-1?(x._has("mapbox")||x._has("map")||x._has("cartesian"))&&ne.push(me):me==="togglespikelines"?ue("toggleSpikelines"):me==="togglehover"?ue("toggleHover"):me==="hovercompare"?ue("hoverCompareCartesian"):me==="hoverclosest"?(ue("hoverClosestCartesian"),ue("hoverClosestGeo"),ue("hoverClosest3d"),ue("hoverClosestGl2d"),ue("hoverClosestPie")):me==="v1hovermode"&&(ue("hoverClosestCartesian"),ue("hoverCompareCartesian"),ue("hoverClosestGeo"),ue("hoverClosest3d"),ue("hoverClosestGl2d"),ue("hoverClosestPie"))):he.push(me)}E=he}return le(ne),le(se.concat(ae)),le(ie),function(_e,xe){if(xe.length)if(Array.isArray(xe[0]))for(var we=0;we<xe.length;we++)_e.push(xe[we]);else _e.push(xe);return _e}(ee,E)}(s),h?h.update(s,g):u._modeBar=_(s,g)}else h&&(h.destroy(),delete u._modeBar)}},85393:function(c,m,a){var v=a(45568),f=a(10721),n=a(34809),y=a(35188),_=a(29697).version,p=new DOMParser;function l(s){this.container=s.container,this.element=document.createElement("div"),this.update(s.graphInfo,s.buttons),this.container.appendChild(this.element)}var o=l.prototype;o.update=function(s,u){this.graphInfo=s;var d=this.graphInfo._context,h=this.graphInfo._fullLayout,g="modebar-"+h._uid;this.element.setAttribute("id",g),this._uid=g,this.element.className="modebar",d.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),h.modebar.orientation==="v"&&(this.element.className+=" vertical",u=u.reverse());var b=h.modebar,w=d.displayModeBar==="hover"?".js-plotly-plot .plotly:hover ":"";n.deleteRelatedStyleRule(g),n.addRelatedStyleRule(g,w+"#"+g+" .modebar-group","background-color: "+b.bgcolor),n.addRelatedStyleRule(g,"#"+g+" .modebar-btn .icon path","fill: "+b.color),n.addRelatedStyleRule(g,"#"+g+" .modebar-btn:hover .icon path","fill: "+b.activecolor),n.addRelatedStyleRule(g,"#"+g+" .modebar-btn.active .icon path","fill: "+b.activecolor);var x=!this.hasButtons(u),S=this.hasLogo!==d.displaylogo,k=this.locale!==d.locale;if(this.locale=d.locale,(x||S||k)&&(this.removeAllButtons(),this.updateButtons(u),d.watermark||d.displaylogo)){var T=this.getLogo();d.watermark&&(T.className=T.className+" watermark"),h.modebar.orientation==="v"?this.element.insertBefore(T,this.element.childNodes[0]):this.element.appendChild(T),this.hasLogo=!0}this.updateActiveButton()},o.updateButtons=function(s){var u=this;this.buttons=s,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(d){var h=u.createGroup();d.forEach(function(g){var b=g.name;if(!b)throw new Error("must provide button 'name' in button config");if(u.buttonsNames.indexOf(b)!==-1)throw new Error("button name '"+b+"' is taken");u.buttonsNames.push(b);var w=u.createButton(g);u.buttonElements.push(w),h.appendChild(w)}),u.element.appendChild(h)})},o.createGroup=function(){var s=document.createElement("div");return s.className="modebar-group",s},o.createButton=function(s){var u=this,d=document.createElement("a");d.setAttribute("rel","tooltip"),d.className="modebar-btn";var h=s.title;h===void 0?h=s.name:typeof h=="function"&&(h=h(this.graphInfo)),(h||h===0)&&d.setAttribute("data-title",h),s.attr!==void 0&&d.setAttribute("data-attr",s.attr);var g=s.val;if(g!==void 0&&(typeof g=="function"&&(g=g(this.graphInfo)),d.setAttribute("data-val",g)),typeof s.click!="function")throw new Error("must provide button 'click' function in button config");d.addEventListener("click",function(w){s.click(u.graphInfo,w),u.updateActiveButton(w.currentTarget)}),d.setAttribute("data-toggle",s.toggle||!1),s.toggle&&v.select(d).classed("active",!0);var b=s.icon;return typeof b=="function"?d.appendChild(b()):d.appendChild(this.createIcon(b||y.question)),d.setAttribute("data-gravity",s.gravity||"n"),d},o.createIcon=function(s){var u,d=f(s.height)?Number(s.height):s.ascent-s.descent,h="http://www.w3.org/2000/svg";if(s.path){(u=document.createElementNS(h,"svg")).setAttribute("viewBox",[0,0,s.width,d].join(" ")),u.setAttribute("class","icon");var g=document.createElementNS(h,"path");g.setAttribute("d",s.path),s.transform?g.setAttribute("transform",s.transform):s.ascent!==void 0&&g.setAttribute("transform","matrix(1 0 0 -1 0 "+s.ascent+")"),u.appendChild(g)}return s.svg&&(u=p.parseFromString(s.svg,"application/xml").childNodes[0]),u.setAttribute("height","1em"),u.setAttribute("width","1em"),u},o.updateActiveButton=function(s){var u=this.graphInfo._fullLayout,d=s!==void 0?s.getAttribute("data-attr"):null;this.buttonElements.forEach(function(h){var g=h.getAttribute("data-val")||!0,b=h.getAttribute("data-attr"),w=h.getAttribute("data-toggle")==="true",x=v.select(h);if(w)b===d&&x.classed("active",!x.classed("active"));else{var S=b===null?b:n.nestedProperty(u,b).get();x.classed("active",S===g)}})},o.hasButtons=function(s){var u=this.buttons;if(!u||s.length!==u.length)return!1;for(var d=0;d<s.length;++d){if(s[d].length!==u[d].length)return!1;for(var h=0;h<s[d].length;h++)if(s[d][h].name!==u[d][h].name)return!1}return!0},o.getLogo=function(){var s=this.createGroup(),u=document.createElement("a");return u.href="https://plotly.com/",u.target="_blank",u.setAttribute("data-title",n._(this.graphInfo,"Produced with Plotly.js")+" (v"+_+")"),u.className="modebar-btn plotlyjsicon modebar-btn--logo",u.appendChild(this.createIcon(y.newplotlylogo)),s.appendChild(u),s},o.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},o.destroy=function(){n.removeElement(this.container.querySelector(".modebar")),n.deleteRelatedStyleRule(this._uid)},c.exports=function(s,u){var d=s._fullLayout,h=new l({graphInfo:s,container:d._modebardiv.node(),buttons:u});return d._privateplot&&v.select(h.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),h}},91032:function(c,m,a){var v=a(80337),f=a(10229),n=(0,a(78032).templatedArray)("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});c.exports={visible:{valType:"boolean",editType:"plot"},buttons:n,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:v({editType:"plot"}),bgcolor:{valType:"color",dflt:f.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:f.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}},68508:function(c){c.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},86255:function(c,m,a){var v=a(34809),f=a(78766),n=a(78032),y=a(59008),_=a(91032),p=a(68508);function l(o,s,u,d){var h=d.calendar;function g(w,x){return v.coerce(o,s,_.buttons,w,x)}if(g("visible")){var b=g("step");b!=="all"&&(!h||h==="gregorian"||b!=="month"&&b!=="year"?g("stepmode"):s.stepmode="backward",g("count")),g("label")}}c.exports=function(o,s,u,d,h){var g=o.rangeselector||{},b=n.newContainer(s,"rangeselector");function w(k,T){return v.coerce(g,b,_,k,T)}if(w("visible",y(g,b,{name:"buttons",handleItemDefaults:l,calendar:h}).length>0)){var x=function(k,T,C){for(var A=C.filter(function(N){return T[N].anchor===k._id}),E=0,M=0;M<A.length;M++){var I=T[A[M]].domain;I&&(E=Math.max(I[1],E))}return[k.domain[0],E+p.yPad]}(s,u,d);w("x",x[0]),w("y",x[1]),v.noneOrAll(o,s,["x","y"]),w("xanchor"),w("yanchor"),v.coerceFont(w,"font",u.font);var S=w("bgcolor");w("activecolor",f.contrast(S,p.lightAmount,p.darkAmount)),w("bordercolor"),w("borderwidth")}}},45431:function(c,m,a){var v=a(45568),f=a(33626),n=a(44122),y=a(78766),_=a(62203),p=a(34809),l=p.strTranslate,o=a(30635),s=a(5975),u=a(4530),d=u.LINE_SPACING,h=u.FROM_TL,g=u.FROM_BR,b=a(68508),w=a(16383);function x(T){return T._id}function S(T,C,A){var E=p.ensureSingle(T,"rect","selector-rect",function(M){M.attr("shape-rendering","crispEdges")});E.attr({rx:b.rx,ry:b.ry}),E.call(y.stroke,C.bordercolor).call(y.fill,function(M,I){return I._isActive||I._isHovered?M.activecolor:M.bgcolor}(C,A)).style("stroke-width",C.borderwidth+"px")}function k(T,C,A,E){var M,I;p.ensureSingle(T,"text","selector-text",function(N){N.attr("text-anchor","middle")}).call(_.font,C.font).text((M=A,I=E._fullLayout._meta,M.label?I?p.templateString(M.label,I):M.label:M.step==="all"?"all":M.count+M.step.charAt(0))).call(function(N){o.convertToTspans(N,E)})}c.exports=function(T){var C=T._fullLayout._infolayer.selectAll(".rangeselector").data(function(A){for(var E=s.list(A,"x",!0),M=[],I=0;I<E.length;I++){var N=E[I];N.rangeselector&&N.rangeselector.visible&&M.push(N)}return M}(T),x);C.enter().append("g").classed("rangeselector",!0),C.exit().remove(),C.style({cursor:"pointer","pointer-events":"all"}),C.each(function(A){var E=v.select(this),M=A,I=M.rangeselector,N=E.selectAll("g.button").data(p.filterVisible(I.buttons));N.enter().append("g").classed("button",!0),N.exit().remove(),N.each(function(z){var F=v.select(this),R=w(M,z);z._isActive=function(V,$,U){if($.step==="all")return V.autorange===!0;var Z=Object.keys(U);return V.range[0]===U[Z[0]]&&V.range[1]===U[Z[1]]}(M,z,R),F.call(S,I,z),F.call(k,I,z,T),F.on("click",function(){T._dragged||f.call("_guiRelayout",T,R)}),F.on("mouseover",function(){z._isHovered=!0,F.call(S,I,z)}),F.on("mouseout",function(){z._isHovered=!1,F.call(S,I,z)})}),function(z,F,R,V,$){var U=0,Z=0,q=R.borderwidth;F.each(function(){var le=v.select(this).select(".selector-text"),oe=R.font.size*d,se=Math.max(oe*o.lineCount(le),16)+3;Z=Math.max(Z,se)}),F.each(function(){var le=v.select(this),oe=le.select(".selector-rect"),se=le.select(".selector-text"),ce=se.node()&&_.bBox(se.node()).width,ae=R.font.size*d,ne=o.lineCount(se),ie=Math.max(ce+10,b.minButtonWidth);le.attr("transform",l(q+U,q)),oe.attr({x:0,y:0,width:ie,height:Z}),o.positionText(se,ie/2,Z/2-(ne-1)*ae/2+3),U+=ie+5});var W=z._fullLayout._size,Q=W.l+W.w*R.x,X=W.t+W.h*(1-R.y),J="left";p.isRightAnchor(R)&&(Q-=U,J="right"),p.isCenterAnchor(R)&&(Q-=U/2,J="center");var ee="top";p.isBottomAnchor(R)&&(X-=Z,ee="bottom"),p.isMiddleAnchor(R)&&(X-=Z/2,ee="middle"),U=Math.ceil(U),Z=Math.ceil(Z),Q=Math.round(Q),X=Math.round(X),n.autoMargin(z,V+"-range-selector",{x:R.x,y:R.y,l:U*h[J],r:U*g[J],b:Z*g[ee],t:Z*h[ee]}),$.attr("transform",l(Q,X))}(T,N,I,M._name,E)})}},16383:function(c,m,a){var v=a(50936),f=a(34809).titleCase;c.exports=function(n,y){var _=n._name,p={};if(y.step==="all")p[_+".autorange"]=!0;else{var l=function(o,s){var u,d=o.range,h=new Date(o.r2l(d[1])),g=s.step,b=v["utc"+f(g)],w=s.count;switch(s.stepmode){case"backward":u=o.l2r(+b.offset(h,-w));break;case"todate":var x=b.offset(h,-w);u=o.l2r(+b.ceil(x))}return[u,d[1]]}(n,y);p[_+".range[0]"]=l[0],p[_+".range[1]"]=l[1]}return p}},44453:function(c,m,a){c.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:a(91032)}}},layoutAttributes:a(91032),handleDefaults:a(86255),draw:a(45431)}},63608:function(c,m,a){var v=a(10229);c.exports={bgcolor:{valType:"color",dflt:v.background,editType:"plot"},bordercolor:{valType:"color",dflt:v.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}},46223:function(c,m,a){var v=a(5975).list,f=a(32919).getAutoRange,n=a(20604);c.exports=function(y){for(var _=v(y,"x",!0),p=0;p<_.length;p++){var l=_[p],o=l[n.name];o&&o.visible&&o.autorange&&(o._input.autorange=!0,o._input.range=o.range=f(y,l))}}},20604:function(c){c.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},41295:function(c,m,a){var v=a(34809),f=a(78032),n=a(5975),y=a(63608),_=a(66249);c.exports=function(p,l,o){var s=p[o],u=l[o];if(s.rangeslider||l._requestRangeslider[u._id]){v.isPlainObject(s.rangeslider)||(s.rangeslider={});var d,h,g=s.rangeslider,b=f.newContainer(u,"rangeslider");if(E("visible")){E("bgcolor",l.plot_bgcolor),E("bordercolor"),E("borderwidth"),E("thickness"),E("autorange",!u.isValidRange(g.range)),E("range");var w=l._subplots;if(w)for(var x=w.cartesian.filter(function(I){return I.substr(0,I.indexOf("y"))===n.name2id(o)}).map(function(I){return I.substr(I.indexOf("y"),I.length)}),S=v.simpleMap(x,n.id2name),k=0;k<S.length;k++){var T=S[k];d=g[T]||{},h=f.newContainer(b,T,"yaxis");var C,A=l[T];d.range&&A.isValidRange(d.range)&&(C="fixed"),M("rangemode",C)!=="match"&&M("range",A.range.slice())}b._input=g}}function E(I,N){return v.coerce(g,b,y,I,N)}function M(I,N){return v.coerce(d,h,_,I,N)}}},88887:function(c,m,a){var v=a(45568),f=a(33626),n=a(44122),y=a(34809),_=y.strTranslate,p=a(62203),l=a(78766),o=a(17240),s=a(37703),u=a(5975),d=a(14751),h=a(27983),g=a(20604);function b(A){return typeof A.clientX=="number"?A.clientX:A.touches&&A.touches.length>0?A.touches[0].clientX:0}function w(A,E,M,I){var N=y.ensureSingle(A,"rect",g.bgClassName,function(V){V.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),z=I.borderwidth%2==0?I.borderwidth:I.borderwidth-1,F=-I._offsetShift,R=p.crispRound(E,I.borderwidth);N.attr({width:I._width+z,height:I._height+z,transform:_(F,F),"stroke-width":R}).call(l.stroke,I.bordercolor).call(l.fill,I.bgcolor)}function x(A,E,M,I){var N=E._fullLayout;y.ensureSingleById(N._topdefs,"clipPath",I._clipId,function(z){z.append("rect").attr({x:0,y:0})}).select("rect").attr({width:I._width,height:I._height})}function S(A,E,M,I){var N,z=E.calcdata,F=A.selectAll("g."+g.rangePlotClassName).data(M._subplotsWith,y.identity);F.enter().append("g").attr("class",function(R){return g.rangePlotClassName+" "+R}).call(p.setClipUrl,I._clipId,E),F.order(),F.exit().remove(),F.each(function(R,V){var $=v.select(this),U=V===0,Z=u.getFromId(E,R,"y"),q=Z._name,W=I[q],Q={data:[],layout:{xaxis:{type:M.type,domain:[0,1],range:I.range.slice(),calendar:M.calendar},width:I._width,height:I._height,margin:{t:0,b:0,l:0,r:0}},_context:E._context};M.rangebreaks&&(Q.layout.xaxis.rangebreaks=M.rangebreaks),Q.layout[q]={type:Z.type,domain:[0,1],range:W.rangemode!=="match"?W.range.slice():Z.range.slice(),calendar:Z.calendar},Z.rangebreaks&&(Q.layout[q].rangebreaks=Z.rangebreaks),n.supplyDefaults(Q);var X=Q._fullLayout.xaxis,J=Q._fullLayout[q];X.clearCalc(),X.setScale(),J.clearCalc(),J.setScale();var ee={id:R,plotgroup:$,xaxis:X,yaxis:J,isRangePlot:!0};U?N=ee:(ee.mainplot="xy",ee.mainplotinfo=N),s.rangePlot(E,ee,function(le,oe){for(var se=[],ce=0;ce<le.length;ce++){var ae=le[ce],ne=ae[0].trace;ne.xaxis+ne.yaxis===oe&&se.push(ae)}return se}(z,R))})}function k(A,E,M,I,N){y.ensureSingle(A,"rect",g.maskMinClassName,function(z){z.attr({x:0,y:0,"shape-rendering":"crispEdges"})}).attr("height",I._height).call(l.fill,g.maskColor),y.ensureSingle(A,"rect",g.maskMaxClassName,function(z){z.attr({y:0,"shape-rendering":"crispEdges"})}).attr("height",I._height).call(l.fill,g.maskColor),N.rangemode!=="match"&&(y.ensureSingle(A,"rect",g.maskMinOppAxisClassName,function(z){z.attr({y:0,"shape-rendering":"crispEdges"})}).attr("width",I._width).call(l.fill,g.maskOppAxisColor),y.ensureSingle(A,"rect",g.maskMaxOppAxisClassName,function(z){z.attr({y:0,"shape-rendering":"crispEdges"})}).attr("width",I._width).style("border-top",g.maskOppBorder).call(l.fill,g.maskOppAxisColor))}function T(A,E,M,I){E._context.staticPlot||y.ensureSingle(A,"rect",g.slideBoxClassName,function(N){N.attr({y:0,cursor:g.slideBoxCursor,"shape-rendering":"crispEdges"})}).attr({height:I._height,fill:g.slideBoxFill})}function C(A,E,M,I){var N=y.ensureSingle(A,"g",g.grabberMinClassName),z=y.ensureSingle(A,"g",g.grabberMaxClassName),F={x:0,width:g.handleWidth,rx:g.handleRadius,fill:l.background,stroke:l.defaultLine,"stroke-width":g.handleStrokeWidth,"shape-rendering":"crispEdges"},R={y:Math.round(I._height/4),height:Math.round(I._height/2)};y.ensureSingle(N,"rect",g.handleMinClassName,function($){$.attr(F)}).attr(R),y.ensureSingle(z,"rect",g.handleMaxClassName,function($){$.attr(F)}).attr(R);var V={width:g.grabAreaWidth,x:0,y:0,fill:g.grabAreaFill,cursor:E._context.staticPlot?void 0:g.grabAreaCursor};y.ensureSingle(N,"rect",g.grabAreaMinClassName,function($){$.attr(V)}).attr("height",I._height),y.ensureSingle(z,"rect",g.grabAreaMaxClassName,function($){$.attr(V)}).attr("height",I._height)}c.exports=function(A){for(var E=A._fullLayout,M=E._rangeSliderData,I=0;I<M.length;I++){var N=M[I][g.name];N._clipId=N._id+"-"+E._uid}var z=E._infolayer.selectAll("g."+g.containerClassName).data(M,function(F){return F._name});z.exit().each(function(F){var R=F[g.name];E._topdefs.select("#"+R._clipId).remove()}).remove(),M.length!==0&&(z.enter().append("g").classed(g.containerClassName,!0).attr("pointer-events","all"),z.each(function(F){var R=v.select(this),V=F[g.name],$=E[u.id2name(F.anchor)],U=V[u.id2name(F.anchor)];if(V.range){var Z,q=y.simpleMap(V.range,F.r2l),W=y.simpleMap(F.range,F.r2l);Z=W[0]<W[1]?[Math.min(q[0],W[0]),Math.max(q[1],W[1])]:[Math.max(q[0],W[0]),Math.min(q[1],W[1])],V.range=V._input.range=y.simpleMap(Z,F.l2r)}F.cleanRange("rangeslider.range");var Q=E._size,X=F.domain;V._width=Q.w*(X[1]-X[0]);var J=Math.round(Q.l+Q.w*X[0]),ee=Math.round(Q.t+Q.h*(1-F._counterDomainMin)+(F.side==="bottom"?F._depth:0)+V._offsetShift+g.extraPad);R.attr("transform",_(J,ee)),V._rl=y.simpleMap(V.range,F.r2l);var le=V._rl[0],oe=V._rl[1],se=oe-le;if(V.p2d=function(_e){return _e/V._width*se+le},V.d2p=function(_e){return(_e-le)/se*V._width},F.rangebreaks){var ce=F.locateBreaks(le,oe);if(ce.length){var ae,ne,ie=0;for(ae=0;ae<ce.length;ae++)ie+=(ne=ce[ae]).max-ne.min;var ue=V._width/(oe-le-ie),he=[-ue*le];for(ae=0;ae<ce.length;ae++)ne=ce[ae],he.push(he[he.length-1]-ue*(ne.max-ne.min));for(V.d2p=function(_e){for(var xe=he[0],we=0;we<ce.length;we++){var Ee=ce[we];if(_e>=Ee.max)xe=he[we+1];else if(_e<Ee.min)break}return xe+ue*_e},ae=0;ae<ce.length;ae++)(ne=ce[ae]).pmin=V.d2p(ne.min),ne.pmax=V.d2p(ne.max);V.p2d=function(_e){for(var xe=he[0],we=0;we<ce.length;we++){var Ee=ce[we];if(_e>=Ee.pmax)xe=he[we+1];else if(_e<Ee.pmin)break}return(_e-xe)/ue}}}if(U.rangemode!=="match"){var pe=$.r2l(U.range[0]),me=$.r2l(U.range[1])-pe;V.d2pOppAxis=function(_e){return(_e-pe)/me*V._height}}R.call(w,A,F,V).call(x,A,F,V).call(S,A,F,V).call(k,A,F,V,U).call(T,A,F,V).call(C,A,F,V),function(_e,xe,we,Ee){if(!xe._context.staticPlot){var Pe=_e.select("rect."+g.slideBoxClassName).node(),$e=_e.select("rect."+g.grabAreaMinClassName).node(),Te=_e.select("rect."+g.grabAreaMaxClassName).node();_e.on("mousedown",Ce),_e.on("touchstart",Ce)}function Ce(){var ye=v.event,ge=ye.target,Me=b(ye),Se=Me-_e.node().getBoundingClientRect().left,ze=Ee.d2p(we._rl[0]),Fe=Ee.d2p(we._rl[1]),De=d.coverSlip();function Ue(ke){var Oe,Re,je,Ze=+b(ke)-Me;switch(ge){case Pe:if(je="ew-resize",ze+Ze>we._length||Fe+Ze<0)return;Oe=ze+Ze,Re=Fe+Ze;break;case $e:if(je="col-resize",ze+Ze>we._length)return;Oe=ze+Ze,Re=Fe;break;case Te:if(je="col-resize",Fe+Ze<0)return;Oe=ze,Re=Fe+Ze;break;default:je="ew-resize",Oe=Se,Re=Se+Ze}if(Re<Oe){var Ye=Re;Re=Oe,Oe=Ye}Ee._pixelMin=Oe,Ee._pixelMax=Re,h(v.select(De),je),function(it,dt,ut,It){function Ot(tt){return ut.l2r(y.constrain(tt,It._rl[0],It._rl[1]))}var Ft=Ot(It.p2d(It._pixelMin)),ot=Ot(It.p2d(It._pixelMax));window.requestAnimationFrame(function(){f.call("_guiRelayout",dt,ut._name+".range",[Ft,ot])})}(0,xe,we,Ee)}function Ne(){De.removeEventListener("mousemove",Ue),De.removeEventListener("mouseup",Ne),this.removeEventListener("touchmove",Ue),this.removeEventListener("touchend",Ne),y.removeElement(De)}this.addEventListener("touchmove",Ue),this.addEventListener("touchend",Ne),De.addEventListener("mousemove",Ue),De.addEventListener("mouseup",Ne)}}(R,A,F,V),function(_e,xe,we,Ee,Pe,$e){var Te=g.handleWidth/2;function Ce(ke){return y.constrain(ke,0,Ee._width)}function ye(ke){return y.constrain(ke,0,Ee._height)}function ge(ke){return y.constrain(ke,-Te,Ee._width+Te)}var Me=Ce(Ee.d2p(we._rl[0])),Se=Ce(Ee.d2p(we._rl[1]));if(_e.select("rect."+g.slideBoxClassName).attr("x",Me).attr("width",Se-Me),_e.select("rect."+g.maskMinClassName).attr("width",Me),_e.select("rect."+g.maskMaxClassName).attr("x",Se).attr("width",Ee._width-Se),$e.rangemode!=="match"){var ze=Ee._height-ye(Ee.d2pOppAxis(Pe._rl[1])),Fe=Ee._height-ye(Ee.d2pOppAxis(Pe._rl[0]));_e.select("rect."+g.maskMinOppAxisClassName).attr("x",Me).attr("height",ze).attr("width",Se-Me),_e.select("rect."+g.maskMaxOppAxisClassName).attr("x",Me).attr("y",Fe).attr("height",Ee._height-Fe).attr("width",Se-Me),_e.select("rect."+g.slideBoxClassName).attr("y",ze).attr("height",Fe-ze)}var De=.5,Ue=Math.round(ge(Me-Te))-De,Ne=Math.round(ge(Se-Te))+De;_e.select("g."+g.grabberMinClassName).attr("transform",_(Ue,De)),_e.select("g."+g.grabberMaxClassName).attr("transform",_(Ne,De))}(R,0,F,V,$,U),F.side==="bottom"&&o.draw(A,F._id+"title",{propContainer:F,propName:F._name+".title",placeholder:E._dfltTitle.x,attributes:{x:F._offset+F._length/2,y:ee+V._height+V._offsetShift+10+1.5*F.title.font.size,"text-anchor":"middle"}})}))}},80400:function(c,m,a){var v=a(5975),f=a(30635),n=a(20604),y=a(4530).LINE_SPACING,_=n.name;function p(l){var o=l&&l[_];return o&&o.visible}m.isVisible=p,m.makeData=function(l){var o=v.list({_fullLayout:l},"x",!0),s=l.margin,u=[];if(!l._has("gl2d"))for(var d=0;d<o.length;d++){var h=o[d];if(p(h)){u.push(h);var g=h[_];g._id=_+h._id,g._height=(l.height-s.b-s.t)*g.thickness,g._offsetShift=Math.floor(g.borderwidth/2)}}l._rangeSliderData=u},m.autoMarginOpts=function(l,o){var s=l._fullLayout,u=o[_],d=o._id.charAt(0),h=0,g=0;return o.side==="bottom"&&(h=o._depth,o.title.text!==s._dfltTitle[d]&&(g=1.5*o.title.font.size+10+u._offsetShift,g+=(o.title.text.match(f.BR_TAG_ALL)||[]).length*o.title.font.size*y)),{x:0,y:o._counterDomainMin,l:0,r:0,t:0,b:u._height+h+Math.max(s.margin.b,g),pad:n.extraPad+2*u._offsetShift}}},55429:function(c,m,a){var v=a(34809),f=a(63608),n=a(66249),y=a(80400);c.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:v.extendFlat({},f,{yaxis:n})}}},layoutAttributes:a(63608),handleDefaults:a(41295),calcAutorange:a(46223),draw:a(88887),isVisible:y.isVisible,makeData:y.makeData,autoMarginOpts:y.autoMarginOpts}},66249:function(c){c.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}},4327:function(c,m,a){var v=a(50222),f=a(36640).line,n=a(94850).T,y=a(93049).extendFlat,_=a(13582).overrideAll,p=a(78032).templatedArray;a(35081),c.exports=_(p("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:y({},v.xref,{}),yref:y({},v.yref,{}),x0:{valType:"any"},x1:{valType:"any"},y0:{valType:"any"},y1:{valType:"any"},path:{valType:"string",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:.7,editType:"arraydraw"},line:{color:f.color,width:y({},f.width,{min:1,dflt:1}),dash:y({},n,{dflt:"dot"})}}),"arraydraw","from-root")},78865:function(c){c.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}},2272:function(c,m,a){var v=a(34809),f=a(29714),n=a(59008),y=a(4327),_=a(49728);function p(l,o,s){function u(F,R){return v.coerce(l,o,y,F,R)}var d=u("path"),h=u("type",d?"path":"rect")!=="path";h&&delete o.path,u("opacity"),u("line.color"),u("line.width"),u("line.dash");for(var g=["x","y"],b=0;b<2;b++){var w,x,S,k=g[b],T={_fullLayout:s},C=f.coerceRef(l,o,T,k);if((w=f.getFromId(T,C))._selectionIndices.push(o._index),S=_.rangeToShapePosition(w),x=_.shapePositionToRange(w),h){var A=k+"0",E=k+"1",M=l[A],I=l[E];l[A]=x(l[A],!0),l[E]=x(l[E],!0),f.coercePosition(o,T,u,C,A),f.coercePosition(o,T,u,C,E);var N=o[A],z=o[E];N!==void 0&&z!==void 0&&(o[A]=S(N),o[E]=S(z),l[A]=M,l[E]=I)}}h&&v.noneOrAll(l,o,["x0","x1","y0","y1"])}c.exports=function(l,o){n(l,o,{name:"selections",handleItemDefaults:p});for(var s=o.selections,u=0;u<s.length;u++){var d=s[u];d&&d.path===void 0&&(d.x0!==void 0&&d.x1!==void 0&&d.y0!==void 0&&d.y1!==void 0||(o.selections[u]=null))}}},7028:function(c,m,a){var v=a(81055).readPaths,f=a(561),n=a(78534).clearOutlineControllers,y=a(78766),_=a(62203),p=a(78032).arrayEditor,l=a(49728),o=l.getPathString;function s(b){var w=b._fullLayout;for(var x in n(b),w._selectionLayer.selectAll("path").remove(),w._plots){var S=w._plots[x].selectionLayer;S&&S.selectAll("path").remove()}for(var k=0;k<w.selections.length;k++)d(b,k)}function u(b){return b._context.editSelection}function d(b,w){b._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+w+'"]').remove();var x=l.makeSelectionsOptionsAndPlotinfo(b,w),S=x.options,k=x.plotinfo;S._input&&function(T){var C=o(b,S),A={"data-index":w,"fill-rule":"evenodd",d:C},E=S.opacity,M="rgba(0,0,0,0)",I=S.line.color||y.contrast(b._fullLayout.plot_bgcolor),N=S.line.width,z=S.line.dash;N||(N=5,z="solid");var F=u(b)&&b._fullLayout._activeSelectionIndex===w;F&&(M=b._fullLayout.activeselection.fillcolor,E=b._fullLayout.activeselection.opacity);for(var R=[],V=1;V>=0;V--){var $=T.append("path").attr(A).style("opacity",V?.1:E).call(y.stroke,I).call(y.fill,M).call(_.dashLine,V?"solid":z,V?4+N:N);if(h($,b,S),F){var U=p(b.layout,"selections",S);$.style({cursor:"move"});var Z={element:$.node(),plotinfo:k,gd:b,editHelpers:U,isActiveSelection:!0},q=v(C,b);f(q,$,Z)}else $.style("pointer-events",V?"all":"none");R[V]=$}var W=R[0];R[1].node().addEventListener("click",function(){return function(Q,X){if(u(Q)){var J=+X.node().getAttribute("data-index");if(J>=0){if(J===Q._fullLayout._activeSelectionIndex)return void g(Q);Q._fullLayout._activeSelectionIndex=J,Q._fullLayout._deactivateSelection=g,s(Q)}}}(b,W)})}(b._fullLayout._selectionLayer)}function h(b,w,x){var S=x.xref+x.yref;_.setClipUrl(b,"clip"+w._fullLayout._uid+S,w)}function g(b){u(b)&&b._fullLayout._activeSelectionIndex>=0&&(n(b),delete b._fullLayout._activeSelectionIndex,s(b))}c.exports={draw:s,drawOne:d,activateLastSelection:function(b){if(u(b)){var w=b._fullLayout.selections.length-1;b._fullLayout._activeSelectionIndex=w,b._fullLayout._deactivateSelection=g,s(b)}}}},52307:function(c,m,a){var v=a(94850).T,f=a(93049).extendFlat;c.exports={newselection:{mode:{valType:"enumerated",values:["immediate","gradual"],dflt:"immediate",editType:"none"},line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:1,dflt:1,editType:"none"},dash:f({},v,{dflt:"dot",editType:"none"}),editType:"none"},editType:"none"},activeselection:{fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},43028:function(c){c.exports=function(m,a,v){v("newselection.mode"),v("newselection.line.width")&&(v("newselection.line.color"),v("newselection.line.dash")),v("activeselection.fillcolor"),v("activeselection.opacity")}},51817:function(c,m,a){var v=a(70414).selectMode,f=a(78534).clearOutline,n=a(81055),y=n.readPaths,_=n.writePaths,p=n.fixDatesForPaths;c.exports=function(l,o){if(l.length){var s=l[0][0];if(s){var u=s.getAttribute("d"),d=o.gd,h=d._fullLayout.newselection,g=o.plotinfo,b=g.xaxis,w=g.yaxis,x=o.isActiveSelection,S=o.dragmode,k=(d.layout||{}).selections||[];if(!v(S)&&x!==void 0){var T=d._fullLayout._activeSelectionIndex;if(T<k.length)switch(d._fullLayout.selections[T].type){case"rect":S="select";break;case"path":S="lasso"}}var C,A=y(u,d,g,x),E={xref:b._id,yref:w._id,opacity:h.opacity,line:{color:h.line.color,width:h.line.width,dash:h.line.dash}};A.length===1&&(C=A[0]),C&&C.length===5&&S==="select"?(E.type="rect",E.x0=C[0][1],E.y0=C[0][2],E.x1=C[2][1],E.y1=C[2][2]):(E.type="path",b&&w&&p(A,b,w),E.path=_(A),C=null),f(d);for(var M=o.editHelpers,I=(M||{}).modifyItem,N=[],z=0;z<k.length;z++){var F=d._fullLayout.selections[z];if(F){if(N[z]=F._input,x!==void 0&&z===d._fullLayout._activeSelectionIndex){var R=E;switch(F.type){case"rect":I("x0",R.x0),I("x1",R.x1),I("y0",R.y0),I("y1",R.y1);break;case"path":I("path",R.path)}}}else N[z]=F}return x===void 0?(N.push(E),N):M?M.getUpdateObj():{}}}}},49801:function(c,m,a){var v=a(34809).strTranslate;function f(n,y){switch(n.type){case"log":return n.p2d(y);case"date":return n.p2r(y,0,n.calendar);default:return n.p2r(y)}}c.exports={p2r:f,r2p:function(n,y){switch(n.type){case"log":return n.d2p(y);case"date":return n.r2p(y,0,n.calendar);default:return n.r2p(y)}},axValue:function(n){var y=n._id.charAt(0)==="y"?1:0;return function(_){return f(n,_[y])}},getTransform:function(n){return v(n.xaxis._offset,n.yaxis._offset)}}},44844:function(c,m,a){var v=a(7028),f=a(88666);c.exports={moduleType:"component",name:"selections",layoutAttributes:a(4327),supplyLayoutDefaults:a(2272),supplyDrawNewSelectionDefaults:a(43028),includeBasePlot:a(20706)("selections"),draw:v.draw,drawOne:v.drawOne,reselect:f.reselect,prepSelect:f.prepSelect,clearOutline:f.clearOutline,clearSelectionsCache:f.clearSelectionsCache,selectOnClick:f.selectOnClick}},88666:function(c,m,a){var v=a(11516),f=a(52773),n=a(33626),y=a(62203).dashStyle,_=a(78766),p=a(32141),l=a(36040).makeEventData,o=a(70414),s=o.freeMode,u=o.rectMode,d=o.drawMode,h=o.openMode,g=o.selectMode,b=a(49728),w=a(2956),x=a(561),S=a(78534).clearOutline,k=a(81055),T=k.handleEllipse,C=k.readPaths,A=a(87562).newShapes,E=a(51817),M=a(7028).activateLastSelection,I=a(34809),N=I.sorterAsc,z=a(80899),F=a(64025),R=a(5975).getFromId,V=a(34823),$=a(71817).redrawReglTraces,U=a(78865),Z=U.MINSELECT,q=z.filter,W=z.tester,Q=a(49801),X=Q.p2r,J=Q.axValue,ee=Q.getTransform;function le(Ue){return Ue.subplot!==void 0}function oe(Ue,Ne,ke,Oe,Re,je,Ze){var Ye,it,dt,ut,It,Ot,Ft,ot,tt,vt=Ne._hoverdata,At=Ne._fullLayout.clickmode.indexOf("event")>-1,Dt=[];if(function(nt){return nt&&Array.isArray(nt)&&nt[0].hoverOnBox!==!0}(vt)){ne(Ue,Ne,je);var Pt=function(nt,_t){var mt,St,Bt=nt[0],Je=-1,Xe=[];for(St=0;St<_t.length;St++)if(mt=_t[St],Bt.fullData._expandedIndex===mt.cd[0].trace._expandedIndex){if(Bt.hoverOnBox===!0)break;Bt.pointNumber!==void 0?Je=Bt.pointNumber:Bt.binNumber!==void 0&&(Je=Bt.binNumber,Xe=Bt.pointNumbers);break}return{pointNumber:Je,pointNumbers:Xe,searchInfo:mt}}(vt,Ye=he(Ne,ke,Oe,Re));if(Pt.pointNumbers.length>0?function(nt,_t){var mt,St,Bt,Je=[];for(Bt=0;Bt<nt.length;Bt++)(mt=nt[Bt]).cd[0].trace.selectedpoints&&mt.cd[0].trace.selectedpoints.length>0&&Je.push(mt);if(Je.length===1&&Je[0]===_t.searchInfo&&(St=_t.searchInfo.cd[0].trace).selectedpoints.length===_t.pointNumbers.length){for(Bt=0;Bt<_t.pointNumbers.length;Bt++)if(St.selectedpoints.indexOf(_t.pointNumbers[Bt])<0)return!1;return!0}return!1}(Ye,Pt):function(nt){var _t,mt,St=0;for(mt=0;mt<nt.length;mt++)if((_t=nt[mt].cd[0].trace).selectedpoints&&(_t.selectedpoints.length>1||(St+=_t.selectedpoints.length)>1))return!1;return St===1}(Ye)&&(Ot=me(Pt))){for(Ze&&Ze.remove(),tt=0;tt<Ye.length;tt++)(it=Ye[tt])._module.selectPoints(it,!1);_e(Ne,Ye),ie(je),At&&De(Ne)}else{for(Ft=Ue.shiftKey&&(Ot!==void 0?Ot:me(Pt)),dt=function(nt,_t,mt){return{pointNumber:nt,searchInfo:_t,subtract:!!mt}}(Pt.pointNumber,Pt.searchInfo,Ft),ut=ae(je.selectionDefs.concat([dt])),tt=0;tt<Ye.length;tt++)if(It=we(Ye[tt]._module.selectPoints(Ye[tt],ut),Ye[tt]),Dt.length)for(var et=0;et<It.length;et++)Dt.push(It[et]);else Dt=It;if(_e(Ne,Ye,ot={points:Dt}),dt&&je&&je.selectionDefs.push(dt),Ze){var rt=je.mergedPolygons,We=h(je.dragmode);x(Ee(rt,We),Ze,je)}At&&Fe(Ne,ot)}}}function se(Ue){return"pointNumber"in Ue&&"searchInfo"in Ue}function ce(Ue){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(Ne,ke,Oe,Re){var je=Ue.searchInfo.cd[0].trace._expandedIndex;return Re.cd[0].trace._expandedIndex===je&&Oe===Ue.pointNumber},isRect:!1,degenerate:!1,subtract:!!Ue.subtract}}function ae(Ue){if(Ue.length){for(var Ne=[],ke=se(Ue[0])?0:Ue[0][0][0],Oe=ke,Re=se(Ue[0])?0:Ue[0][0][1],je=Re,Ze=0;Ze<Ue.length;Ze++)if(se(Ue[Ze]))Ne.push(ce(Ue[Ze]));else{var Ye=W(Ue[Ze]);Ye.subtract=!!Ue[Ze].subtract,Ne.push(Ye),ke=Math.min(ke,Ye.xmin),Oe=Math.max(Oe,Ye.xmax),Re=Math.min(Re,Ye.ymin),je=Math.max(je,Ye.ymax)}return{xmin:ke,xmax:Oe,ymin:Re,ymax:je,pts:[],contains:function(it,dt,ut,It){for(var Ot=!1,Ft=0;Ft<Ne.length;Ft++)Ne[Ft].contains(it,dt,ut,It)&&(Ot=!Ne[Ft].subtract);return Ot},isRect:!1,degenerate:!1}}}function ne(Ue,Ne,ke){var Oe=Ne._fullLayout,Re=ke.plotinfo,je=ke.dragmode,Ze=Oe._lastSelectedSubplot&&Oe._lastSelectedSubplot===Re.id,Ye=(Ue.shiftKey||Ue.altKey)&&!(d(je)&&h(je));Ze&&Ye&&Re.selection&&Re.selection.selectionDefs&&!ke.selectionDefs?(ke.selectionDefs=Re.selection.selectionDefs,ke.mergedPolygons=Re.selection.mergedPolygons):Ye&&Re.selection||ie(ke),Ze||(S(Ne),Oe._lastSelectedSubplot=Re.id)}function ie(Ue,Ne){var ke=Ue.dragmode,Oe=Ue.plotinfo,Re=Ue.gd;(function(It){return It._fullLayout._activeShapeIndex>=0})(Re)&&Re._fullLayout._deactivateShape(Re),function(It){return It._fullLayout._activeSelectionIndex>=0}(Re)&&Re._fullLayout._deactivateSelection(Re);var je=Re._fullLayout._zoomlayer,Ze=d(ke),Ye=g(ke);if(Ze||Ye){var it,dt,ut=je.selectAll(".select-outline-"+Oe.id);ut&&Re._fullLayout._outlining&&(Ze&&(it=A(ut,Ue)),it&&n.call("_guiRelayout",Re,{shapes:it}),Ye&&!le(Ue)&&(dt=E(ut,Ue)),dt&&(Re._fullLayout._noEmitSelectedAtStart=!0,n.call("_guiRelayout",Re,{selections:dt}).then(function(){Ne&&M(Re)})),Re._fullLayout._outlining=!1)}Oe.selection={},Oe.selection.selectionDefs=Ue.selectionDefs=[],Oe.selection.mergedPolygons=Ue.mergedPolygons=[]}function ue(Ue){return Ue._id}function he(Ue,Ne,ke,Oe){if(!Ue.calcdata)return[];var Re,je,Ze,Ye=[],it=Ne.map(ue),dt=ke.map(ue);for(Ze=0;Ze<Ue.calcdata.length;Ze++)if((je=(Re=Ue.calcdata[Ze])[0].trace).visible===!0&&je._module&&je._module.selectPoints)if(!le({subplot:Oe})||je.subplot!==Oe&&je.geo!==Oe)if(je.type==="splom"){if(je._xaxes[it[0]]&&je._yaxes[dt[0]]){var ut=pe(je._module,Re,Ne[0],ke[0]);ut.scene=Ue._fullLayout._splomScenes[je.uid],Ye.push(ut)}}else if(je.type==="sankey"){var It=pe(je._module,Re,Ne[0],ke[0]);Ye.push(It)}else{if(!(it.indexOf(je.xaxis)!==-1||je._xA&&je._xA.overlaying)||!(dt.indexOf(je.yaxis)!==-1||je._yA&&je._yA.overlaying))continue;Ye.push(pe(je._module,Re,R(Ue,je.xaxis),R(Ue,je.yaxis)))}else Ye.push(pe(je._module,Re,Ne[0],ke[0]));return Ye}function pe(Ue,Ne,ke,Oe){return{_module:Ue,cd:Ne,xaxis:ke,yaxis:Oe}}function me(Ue){var Ne=Ue.searchInfo.cd[0].trace,ke=Ue.pointNumber,Oe=Ue.pointNumbers,Re=Oe.length>0?Oe[0]:ke;return!!Ne.selectedpoints&&Ne.selectedpoints.indexOf(Re)>-1}function _e(Ue,Ne,ke){var Oe,Re;for(Oe=0;Oe<Ne.length;Oe++){var je=Ne[Oe].cd[0].trace._fullInput,Ze=Ue._fullLayout._tracePreGUI[je.uid]||{};Ze.selectedpoints===void 0&&(Ze.selectedpoints=je._input.selectedpoints||null)}if(ke){var Ye=ke.points||[];for(Oe=0;Oe<Ne.length;Oe++)(Re=Ne[Oe].cd[0].trace)._input.selectedpoints=Re._fullInput.selectedpoints=[],Re._fullInput!==Re&&(Re.selectedpoints=[]);for(var it=0;it<Ye.length;it++){var dt=Ye[it],ut=dt.data,It=dt.fullData,Ot=dt.pointIndex,Ft=dt.pointIndices;Ft?([].push.apply(ut.selectedpoints,Ft),Re._fullInput!==Re&&[].push.apply(It.selectedpoints,Ft)):(ut.selectedpoints.push(Ot),Re._fullInput!==Re&&It.selectedpoints.push(Ot))}}else for(Oe=0;Oe<Ne.length;Oe++)delete(Re=Ne[Oe].cd[0].trace).selectedpoints,delete Re._input.selectedpoints,Re._fullInput!==Re&&delete Re._fullInput.selectedpoints;(function(ot,tt){for(var vt=!1,At=0;At<tt.length;At++){var Dt=tt[At],Pt=Dt.cd;n.traceIs(Pt[0].trace,"regl")&&(vt=!0);var et=Dt._module,rt=et.styleOnSelect||et.style;rt&&(rt(ot,Pt,Pt[0].node3),Pt[0].nodeRangePlot3&&rt(ot,Pt,Pt[0].nodeRangePlot3))}vt&&(V(ot),$(ot))})(Ue,Ne)}function xe(Ue,Ne,ke){for(var Oe=(ke?v.difference:v.union)({regions:Ue},{regions:[Ne]}).regions.reverse(),Re=0;Re<Oe.length;Re++){var je=Oe[Re];je.subtract=ge(je,Oe.slice(0,Re))}return Oe}function we(Ue,Ne){if(Array.isArray(Ue))for(var ke=Ne.cd,Oe=Ne.cd[0].trace,Re=0;Re<Ue.length;Re++)Ue[Re]=l(Ue[Re],Oe,ke);return Ue}function Ee(Ue,Ne){for(var ke=[],Oe=0;Oe<Ue.length;Oe++){ke[Oe]=[];for(var Re=0;Re<Ue[Oe].length;Re++){ke[Oe][Re]=[],ke[Oe][Re][0]=Re?"L":"M";for(var je=0;je<Ue[Oe][Re].length;je++)ke[Oe][Re].push(Ue[Oe][Re][je])}Ne||ke[Oe].push(["Z",ke[Oe][0][1],ke[Oe][0][2]])}return ke}function Pe(Ue,Ne){for(var ke,Oe,Re=[],je=[],Ze=0;Ze<Ne.length;Ze++){var Ye=Ne[Ze];Oe=Ye._module.selectPoints(Ye,Ue),je.push(Oe),ke=we(Oe,Ye),Re=Re.concat(ke)}return Re}function $e(Ue,Ne,ke,Oe,Re){var je,Ze,Ye,it=!!Oe;Re&&(je=Re.plotinfo,Ze=Re.xaxes[0]._id,Ye=Re.yaxes[0]._id);var dt=[],ut=[],It=ye(Ue),Ot=Ue._fullLayout;if(je){var Ft=Ot._zoomlayer,ot=Ot.dragmode,tt=d(ot),vt=g(ot);if(tt||vt){var At=R(Ue,Ze,"x"),Dt=R(Ue,Ye,"y");if(At&&Dt){var Pt=Ft.selectAll(".select-outline-"+je.id);if(Pt&&Ue._fullLayout._outlining&&Pt.length){for(var et=Pt[0][0].getAttribute("d"),rt=C(et,Ue,je),We=[],nt=0;nt<rt.length;nt++){for(var _t=rt[nt],mt=[],St=0;St<_t.length;St++)mt.push([Me(At,_t[St][1]),Me(Dt,_t[St][2])]);mt.xref=Ze,mt.yref=Ye,mt.subtract=ge(mt,We),We.push(mt)}It=It.concat(We)}}}}var Bt=Ze&&Ye?[Ze+Ye]:Ot._subplots.cartesian;(function(Ja){var Fa=Ja.calcdata;if(Fa)for(var qa=0;qa<Fa.length;qa++){var Ka=Fa[qa][0].trace,vn=Ja._fullLayout._splomScenes;if(vn){var zn=vn[Ka.uid];zn&&(zn.selectBatch=[])}}})(Ue);for(var Je={},Xe=0;Xe<Bt.length;Xe++){var yt=Bt[Xe],Et=yt.indexOf("y"),Ct=yt.slice(0,Et),gt=yt.slice(Et),$t=Ze&&Ye?ke:void 0;if($t=Ce(It,Ct,gt,$t)){var Lt=Oe;if(!it){var jt=R(Ue,Ct,"x"),Rt=R(Ue,gt,"y");Lt=he(Ue,[jt],[Rt],yt);for(var Vt=0;Vt<Lt.length;Vt++){var Qt=Lt[Vt],ta=Qt.cd[0],_a=ta.trace;if(Qt._module.name==="scattergl"&&!ta.t.xpx){var ka=_a.x,va=_a.y,ia=_a._length;ta.t.xpx=[],ta.t.ypx=[];for(var fa=0;fa<ia;fa++)ta.t.xpx[fa]=jt.c2p(ka[fa]),ta.t.ypx[fa]=Rt.c2p(va[fa])}Qt._module.name==="splom"&&(Je[_a.uid]||(Je[_a.uid]=!0))}}var Da=Pe($t,Lt);dt=dt.concat(Da),ut=ut.concat(Lt)}}var wa={points:dt};_e(Ue,ut,wa);var da=Ot.clickmode.indexOf("event")>-1&&Ne;if(!je&&Ne){var Ea=ye(Ue,!0);if(Ea.length){var ua=Ea[0].xref,ba=Ea[0].yref;if(ua&&ba){var Ra=Se(Ea);ze([R(Ue,ua,"x"),R(Ue,ba,"y")])(wa,Ra)}}Ue._fullLayout._noEmitSelectedAtStart?Ue._fullLayout._noEmitSelectedAtStart=!1:da&&Fe(Ue,wa),Ot._reselect=!1}if(!je&&Ot._deselect){var Oa=Ot._deselect;(function(Ja,Fa,qa){for(var Ka=0;Ka<qa.length;Ka++){var vn=qa[Ka];if(vn.xaxis&&vn.xaxis._id===Ja&&vn.yaxis&&vn.yaxis._id===Fa)return!0}return!1})(Ze=Oa.xref,Ye=Oa.yref,ut)||Te(Ue,Ze,Ye,Oe),da&&(wa.points.length?Fe(Ue,wa):De(Ue)),Ot._deselect=!1}return{eventData:wa,selectionTesters:ke}}function Te(Ue,Ne,ke,Oe){Oe=he(Ue,[R(Ue,Ne,"x")],[R(Ue,ke,"y")],Ne+ke);for(var Re=0;Re<Oe.length;Re++){var je=Oe[Re];je._module.selectPoints(je,!1)}_e(Ue,Oe)}function Ce(Ue,Ne,ke,Oe){for(var Re,je=0;je<Ue.length;je++){var Ze=Ue[je];Ne===Ze.xref&&ke===Ze.yref&&(Re?Oe=ae(Re=xe(Re,Ze,!!Ze.subtract)):(Re=[Ze],Oe=W(Ze)))}return Oe}function ye(Ue,Ne){for(var ke=[],Oe=Ue._fullLayout,Re=Oe.selections,je=Re.length,Ze=0;Ze<je;Ze++)if(!Ne||Ze===Oe._activeSelectionIndex){var Ye=Re[Ze];if(Ye){var it,dt,ut,It,Ot,Ft=Ye.xref,ot=Ye.yref,tt=R(Ue,Ft,"x"),vt=R(Ue,ot,"y");if(Ye.type==="rect"){Ot=[];var At=Me(tt,Ye.x0),Dt=Me(tt,Ye.x1),Pt=Me(vt,Ye.y0),et=Me(vt,Ye.y1);Ot=[[At,Pt],[At,et],[Dt,et],[Dt,Pt]],it=Math.min(At,Dt),dt=Math.max(At,Dt),ut=Math.min(Pt,et),It=Math.max(Pt,et),Ot.xmin=it,Ot.xmax=dt,Ot.ymin=ut,Ot.ymax=It,Ot.xref=Ft,Ot.yref=ot,Ot.subtract=!1,Ot.isRect=!0,ke.push(Ot)}else if(Ye.type==="path")for(var rt=Ye.path.split("Z"),We=[],nt=0;nt<rt.length;nt++){var _t=rt[nt];if(_t){_t+="Z";var mt=b.extractPathCoords(_t,w.paramIsX,"raw"),St=b.extractPathCoords(_t,w.paramIsY,"raw");it=1/0,dt=-1/0,ut=1/0,It=-1/0,Ot=[];for(var Bt=0;Bt<mt.length;Bt++){var Je=Me(tt,mt[Bt]),Xe=Me(vt,St[Bt]);Ot.push([Je,Xe]),it=Math.min(Je,it),dt=Math.max(Je,dt),ut=Math.min(Xe,ut),It=Math.max(Xe,It)}Ot.xmin=it,Ot.xmax=dt,Ot.ymin=ut,Ot.ymax=It,Ot.xref=Ft,Ot.yref=ot,Ot.subtract=ge(Ot,We),We.push(Ot),ke.push(Ot)}}}}return ke}function ge(Ue,Ne){for(var ke=!1,Oe=0;Oe<Ne.length;Oe++)for(var Re=Ne[Oe],je=0;je<Ue.length;je++)if(f(Ue[je],Re)){ke=!ke;break}return ke}function Me(Ue,Ne){return Ue.type==="date"&&(Ne=Ne.replace("_"," ")),Ue.type==="log"?Ue.c2p(Ne):Ue.r2p(Ne,null,Ue.calendar)}function Se(Ue){for(var Ne=Ue.length,ke=[],Oe=0;Oe<Ne;Oe++){var Re=Ue[Oe];ke=(ke=ke.concat(Re)).concat([Re[0]])}return(je=ke).isRect=je.length===5&&je[0][0]===je[4][0]&&je[0][1]===je[4][1]&&je[0][0]===je[1][0]&&je[2][0]===je[3][0]&&je[0][1]===je[3][1]&&je[1][1]===je[2][1]||je[0][1]===je[1][1]&&je[2][1]===je[3][1]&&je[0][0]===je[3][0]&&je[1][0]===je[2][0],je.isRect&&(je.xmin=Math.min(je[0][0],je[2][0]),je.xmax=Math.max(je[0][0],je[2][0]),je.ymin=Math.min(je[0][1],je[2][1]),je.ymax=Math.max(je[0][1],je[2][1])),je;var je}function ze(Ue){return function(Ne,ke){for(var Oe,Re,je=0;je<Ue.length;je++){var Ze=Ue[je],Ye=Ze._id,it=Ye.charAt(0);if(ke.isRect){Oe||(Oe={});var dt=ke[it+"min"],ut=ke[it+"max"];dt!==void 0&&ut!==void 0&&(Oe[Ye]=[X(Ze,dt),X(Ze,ut)].sort(N))}else Re||(Re={}),Re[Ye]=ke.map(J(Ze))}Oe&&(Ne.range=Oe),Re&&(Ne.lassoPoints=Re)}}function Fe(Ue,Ne){Ne&&(Ne.selections=(Ue.layout||{}).selections||[]),Ue.emit("plotly_selected",Ne)}function De(Ue){Ue.emit("plotly_deselect",null)}c.exports={reselect:$e,prepSelect:function(Ue,Ne,ke,Oe,Re){var je=!le(Oe),Ze=s(Re),Ye=u(Re),it=h(Re),dt=d(Re),ut=g(Re),It=Re==="drawcircle",Ot=Re==="drawline"||It,Ft=Oe.gd,ot=Ft._fullLayout,tt=ut&&ot.newselection.mode==="immediate"&&je,vt=ot._zoomlayer,At=Oe.element.getBoundingClientRect(),Dt=Oe.plotinfo,Pt=ee(Dt),et=Ne-At.left,rt=ke-At.top;ot._calcInverseTransform(Ft);var We=I.apply3DTransform(ot._invTransform)(et,rt);et=We[0],rt=We[1];var nt,_t,mt,St,Bt,Je,Xe,yt=ot._invScaleX,Et=ot._invScaleY,Ct=et,gt=rt,$t="M"+et+","+rt,Lt=Oe.xaxes[0],jt=Oe.yaxes[0],Rt=Lt._length,Vt=jt._length,Qt=Ue.altKey&&!(d(Re)&&it);ne(Ue,Ft,Oe),Ze&&(nt=q([[et,rt]],U.BENDPX));var ta=vt.selectAll("path.select-outline-"+Dt.id).data([1]),_a=dt?ot.newshape:ot.newselection;dt&&(Oe.hasText=_a.label.text||_a.label.texttemplate);var ka=dt&&!it?_a.fillcolor:"rgba(0,0,0,0)",va=_a.line.color||(je?_.contrast(Ft._fullLayout.plot_bgcolor):"#7f7f7f");ta.enter().append("path").attr("class","select-outline select-outline-"+Dt.id).style({opacity:dt?_a.opacity/2:1,"stroke-dasharray":y(_a.line.dash,_a.line.width),"stroke-width":_a.line.width+"px","shape-rendering":"crispEdges"}).call(_.stroke,va).call(_.fill,ka).attr("fill-rule","evenodd").classed("cursor-move",!!dt).attr("transform",Pt).attr("d",$t+"Z");var ia=vt.append("path").attr("class","zoombox-corners").style({fill:_.background,stroke:_.defaultLine,"stroke-width":1}).attr("transform",Pt).attr("d","M0,0Z");if(dt&&Oe.hasText){var fa=vt.select(".label-temp");fa.empty()&&(fa=vt.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Da=ot._uid+U.SELECTID,wa=[],da=he(Ft,Oe.xaxes,Oe.yaxes,Oe.subplot);tt&&!Ue.shiftKey&&(Oe._clearSubplotSelections=function(){if(je){var ua=Lt._id,ba=jt._id;Te(Ft,ua,ba,da);for(var Ra=(Ft.layout||{}).selections||[],Oa=[],Ja=!1,Fa=0;Fa<Ra.length;Fa++){var qa=ot.selections[Fa];qa.xref!==ua||qa.yref!==ba?Oa.push(Ra[Fa]):Ja=!0}Ja&&(Ft._fullLayout._noEmitSelectedAtStart=!0,n.call("_guiRelayout",Ft,{selections:Oa}))}});var Ea=function(ua){return ua.plotinfo.fillRangeItems||ze(ua.xaxes.concat(ua.yaxes))}(Oe);Oe.moveFn=function(ua,ba){Oe._clearSubplotSelections&&(Oe._clearSubplotSelections(),Oe._clearSubplotSelections=void 0),Ct=Math.max(0,Math.min(Rt,yt*ua+et)),gt=Math.max(0,Math.min(Vt,Et*ba+rt));var Ra=Math.abs(Ct-et),Oa=Math.abs(gt-rt);if(Ye){var Ja,Fa,qa;if(ut){var Ka=ot.selectdirection;switch(Ja=Ka==="any"?Oa<Math.min(.6*Ra,Z)?"h":Ra<Math.min(.6*Oa,Z)?"v":"d":Ka){case"h":Fa=It?Vt/2:0,qa=Vt;break;case"v":Fa=It?Rt/2:0,qa=Rt}}if(dt)switch(ot.newshape.drawdirection){case"vertical":Ja="h",Fa=It?Vt/2:0,qa=Vt;break;case"horizontal":Ja="v",Fa=It?Rt/2:0,qa=Rt;break;case"ortho":Ra<Oa?(Ja="h",Fa=rt,qa=gt):(Ja="v",Fa=et,qa=Ct);break;default:Ja="d"}Ja==="h"?((St=Ot?T(It,[Ct,Fa],[Ct,qa]):[[et,Fa],[et,qa],[Ct,qa],[Ct,Fa]]).xmin=Ot?Ct:Math.min(et,Ct),St.xmax=Ot?Ct:Math.max(et,Ct),St.ymin=Math.min(Fa,qa),St.ymax=Math.max(Fa,qa),ia.attr("d","M"+St.xmin+","+(rt-Z)+"h-4v"+2*Z+"h4ZM"+(St.xmax-1)+","+(rt-Z)+"h4v"+2*Z+"h-4Z")):Ja==="v"?((St=Ot?T(It,[Fa,gt],[qa,gt]):[[Fa,rt],[Fa,gt],[qa,gt],[qa,rt]]).xmin=Math.min(Fa,qa),St.xmax=Math.max(Fa,qa),St.ymin=Ot?gt:Math.min(rt,gt),St.ymax=Ot?gt:Math.max(rt,gt),ia.attr("d","M"+(et-Z)+","+St.ymin+"v-4h"+2*Z+"v4ZM"+(et-Z)+","+(St.ymax-1)+"v4h"+2*Z+"v-4Z")):Ja==="d"&&((St=Ot?T(It,[et,rt],[Ct,gt]):[[et,rt],[et,gt],[Ct,gt],[Ct,rt]]).xmin=Math.min(et,Ct),St.xmax=Math.max(et,Ct),St.ymin=Math.min(rt,gt),St.ymax=Math.max(rt,gt),ia.attr("d","M0,0Z"))}else Ze&&(nt.addPt([Ct,gt]),St=nt.filtered);if(Oe.selectionDefs&&Oe.selectionDefs.length?(mt=xe(Oe.mergedPolygons,St,Qt),St.subtract=Qt,_t=ae(Oe.selectionDefs.concat([St]))):(mt=[St],_t=W(St)),x(Ee(mt,it),ta,Oe),ut){var vn,zn=$e(Ft,!1),cn=zn.eventData?zn.eventData.points.slice():[];zn=$e(Ft,!1,_t,da,Oe),_t=zn.selectionTesters,Xe=zn.eventData,vn=nt?nt.filtered:Se(mt),F.throttle(Da,U.SELECTDELAY,function(){for(var hn=(wa=Pe(_t,da)).slice(),un=0;un<cn.length;un++){for(var Bn=cn[un],ha=!1,ma=0;ma<hn.length;ma++)if(hn[ma].curveNumber===Bn.curveNumber&&hn[ma].pointNumber===Bn.pointNumber){ha=!0;break}ha||hn.push(Bn)}hn.length&&(Xe||(Xe={}),Xe.points=hn),Ea(Xe,vn),function(Ya,Ba){Ya.emit("plotly_selecting",Ba)}(Ft,Xe)})}},Oe.clickFn=function(ua,ba){if(ia.remove(),Ft._fullLayout._activeShapeIndex>=0)Ft._fullLayout._deactivateShape(Ft);else if(!dt){var Ra=ot.clickmode;F.done(Da).then(function(){if(F.clear(Da),ua===2){for(ta.remove(),Bt=0;Bt<da.length;Bt++)(Je=da[Bt])._module.selectPoints(Je,!1);if(_e(Ft,da),ie(Oe),De(Ft),da.length){var Oa=da[0].xaxis,Ja=da[0].yaxis;if(Oa&&Ja){for(var Fa=[],qa=Ft._fullLayout.selections,Ka=0;Ka<qa.length;Ka++){var vn=qa[Ka];vn&&(vn.xref===Oa._id&&vn.yref===Ja._id||Fa.push(vn))}Fa.length<qa.length&&(Ft._fullLayout._noEmitSelectedAtStart=!0,n.call("_guiRelayout",Ft,{selections:Fa}))}}}else Ra.indexOf("select")>-1&&oe(ba,Ft,Oe.xaxes,Oe.yaxes,Oe.subplot,Oe,ta),Ra==="event"&&Fe(Ft,void 0);p.click(Ft,ba,Dt.id)}).catch(I.error)}},Oe.doneFn=function(){ia.remove(),F.done(Da).then(function(){F.clear(Da),!tt&&St&&Oe.selectionDefs&&(St.subtract=Qt,Oe.selectionDefs.push(St),Oe.mergedPolygons.length=0,[].push.apply(Oe.mergedPolygons,mt)),(tt||dt)&&ie(Oe,tt),Oe.doneFnCompleted&&Oe.doneFnCompleted(wa),ut&&Fe(Ft,Xe)}).catch(I.error)}},clearOutline:S,clearSelectionsCache:ie,selectOnClick:oe}},43144:function(c,m,a){var v=a(50222),f=a(80337),n=a(36640).line,y=a(94850).T,_=a(93049).extendFlat,p=a(78032).templatedArray,l=(a(35081),a(9829)),o=a(3208).LF,s=a(41235);c.exports=p("shape",{visible:_({},l.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:_({},l.legend,{editType:"calc+arraydraw"}),legendgroup:_({},l.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:_({},l.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:f({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:_({},l.legendrank,{editType:"calc+arraydraw"}),legendwidth:_({},l.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:_({},v.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:_({},v.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:_({},n.color,{editType:"arraydraw"}),width:_({},n.width,{editType:"calc+arraydraw"}),dash:_({},y,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},label:{text:{valType:"string",dflt:"",editType:"arraydraw"},texttemplate:o({},{keys:Object.keys(s)}),font:f({editType:"calc+arraydraw",colorEditType:"arraydraw"}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"],editType:"arraydraw"},textangle:{valType:"angle",dflt:"auto",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],editType:"calc+arraydraw"},padding:{valType:"number",dflt:3,min:0,editType:"arraydraw"},editType:"arraydraw"},editType:"arraydraw"})},44959:function(c,m,a){var v=a(34809),f=a(29714),n=a(2956),y=a(49728);function _(s){return l(s.line.width,s.xsizemode,s.x0,s.x1,s.path,!1)}function p(s){return l(s.line.width,s.ysizemode,s.y0,s.y1,s.path,!0)}function l(s,u,d,h,g,b){var w=s/2,x=b;if(u==="pixel"){var S=g?y.extractPathCoords(g,b?n.paramIsY:n.paramIsX):[d,h],k=v.aggNums(Math.max,null,S),T=v.aggNums(Math.min,null,S),C=T<0?Math.abs(T)+w:w,A=k>0?k+w:w;return{ppad:w,ppadplus:x?C:A,ppadminus:x?A:C}}return{ppad:w}}function o(s,u,d){var h,g,b=s._id.charAt(0)==="x"?"x":"y",w=s.type==="category"||s.type==="multicategory",x=0,S=0,k=w?s.r2c:s.d2c;if(u[b+"sizemode"]==="scaled"?(h=u[b+"0"],g=u[b+"1"],w&&(x=u[b+"0shift"],S=u[b+"1shift"])):(h=u[b+"anchor"],g=u[b+"anchor"]),h!==void 0)return[k(h)+x,k(g)+S];if(u.path){var T,C,A,E,M=1/0,I=-1/0,N=u.path.match(n.segmentRE);for(s.type==="date"&&(k=y.decodeDate(k)),T=0;T<N.length;T++)(C=d[N[T].charAt(0)].drawn)!==void 0&&(!(A=N[T].substr(1).match(n.paramRE))||A.length<C||((E=k(A[C]))<M&&(M=E),E>I&&(I=E)));return I>=M?[M,I]:void 0}}c.exports=function(s){var u=s._fullLayout,d=v.filterVisible(u.shapes);if(d.length&&s._fullData.length)for(var h=0;h<d.length;h++){var g,b,w=d[h];w._extremes={};var x=f.getRefType(w.xref),S=f.getRefType(w.yref);w.xref!=="paper"&&x!=="domain"&&(b=o(g=f.getFromId(s,w.xref),w,n.paramIsX))&&(w._extremes[g._id]=f.findExtremes(g,b,_(w))),w.yref!=="paper"&&S!=="domain"&&(b=o(g=f.getFromId(s,w.yref),w,n.paramIsY))&&(w._extremes[g._id]=f.findExtremes(g,b,p(w)))}}},2956:function(c){c.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},74367:function(c,m,a){var v=a(34809),f=a(29714),n=a(59008),y=a(43144),_=a(49728);function p(l,o,s){function u(Q,X){return v.coerce(l,o,y,Q,X)}if(o._isShape=!0,u("visible")){u("showlegend")&&(u("legend"),u("legendwidth"),u("legendgroup"),u("legendgrouptitle.text"),v.coerceFont(u,"legendgrouptitle.font"),u("legendrank"));var d=u("path"),h=u("type",d?"path":"rect"),g=h!=="path";g&&delete o.path,u("editable"),u("layer"),u("opacity"),u("fillcolor"),u("fillrule"),u("line.width")&&(u("line.color"),u("line.dash"));for(var b=u("xsizemode"),w=u("ysizemode"),x=["x","y"],S=0;S<2;S++){var k,T,C,A=x[S],E=A+"anchor",M=A==="x"?b:w,I={_fullLayout:s},N=f.coerceRef(l,o,I,A,void 0,"paper");if(f.getRefType(N)==="range"?((k=f.getFromId(I,N))._shapeIndices.push(o._index),C=_.rangeToShapePosition(k),T=_.shapePositionToRange(k),k.type!=="category"&&k.type!=="multicategory"||(u(A+"0shift"),u(A+"1shift"))):T=C=v.identity,g){var z=A+"0",F=A+"1",R=l[z],V=l[F];l[z]=T(l[z],!0),l[F]=T(l[F],!0),M==="pixel"?(u(z,0),u(F,10)):(f.coercePosition(o,I,u,N,z,.25),f.coercePosition(o,I,u,N,F,.75)),o[z]=C(o[z]),o[F]=C(o[F]),l[z]=R,l[F]=V}if(M==="pixel"){var $=l[E];l[E]=T(l[E],!0),f.coercePosition(o,I,u,N,E,.25),o[E]=C(o[E]),l[E]=$}}g&&v.noneOrAll(l,o,["x0","x1","y0","y1"]);var U,Z,q=h==="line";if(g&&(U=u("label.texttemplate")),U||(Z=u("label.text")),Z||U){u("label.textangle");var W=u("label.textposition",q?"middle":"middle center");u("label.xanchor"),u("label.yanchor",function(Q,X){return Q?"bottom":X.indexOf("top")!==-1?"top":X.indexOf("bottom")!==-1?"bottom":"middle"}(q,W)),u("label.padding"),v.coerceFont(u,"label.font",s.font)}}}c.exports=function(l,o){n(l,o,{name:"shapes",handleItemDefaults:p})}},44433:function(c,m,a){var v=a(34809),f=a(29714),n=a(30635),y=a(62203),_=a(81055).readPaths,p=a(49728),l=p.getPathString,o=a(41235),s=a(4530).FROM_TL;c.exports=function(u,d,h,g){if(g.selectAll(".shape-label").remove(),h.label.text||h.label.texttemplate){var b;if(h.label.texttemplate){var w={};if(h.type!=="path"){var x=f.getFromId(u,h.xref),S=f.getFromId(u,h.yref);for(var k in o){var T=o[k](h,x,S);T!==void 0&&(w[k]=T)}}b=v.texttemplateStringForShapes(h.label.texttemplate,{},u._fullLayout._d3locale,w)}else b=h.label.text;var C,A,E,M,I={"data-index":d},N=h.label.font,z=g.append("g").attr(I).classed("shape-label",!0).append("text").attr({"data-notex":1}).classed("shape-label-text",!0).text(b);if(h.path){var F=l(u,h),R=_(F,u);C=1/0,E=1/0,A=-1/0,M=-1/0;for(var V=0;V<R.length;V++)for(var $=0;$<R[V].length;$++)for(var U=R[V][$],Z=1;Z<U.length;Z+=2){var q=U[Z],W=U[Z+1];C=Math.min(C,q),A=Math.max(A,q),E=Math.min(E,W),M=Math.max(M,W)}}else{var Q=f.getFromId(u,h.xref),X=h.x0shift,J=h.x1shift,ee=f.getRefType(h.xref),le=f.getFromId(u,h.yref),oe=h.y0shift,se=h.y1shift,ce=f.getRefType(h.yref),ae=function(_e,xe){return p.getDataToPixel(u,Q,xe,!1,ee)(_e)},ne=function(_e,xe){return p.getDataToPixel(u,le,xe,!0,ce)(_e)};C=ae(h.x0,X),A=ae(h.x1,J),E=ne(h.y0,oe),M=ne(h.y1,se)}var ie=h.label.textangle;ie==="auto"&&(ie=h.type==="line"?function(_e,xe,we,Ee){var Pe,$e;return $e=Math.abs(we-_e),Pe=we>=_e?xe-Ee:Ee-xe,-180/Math.PI*Math.atan2(Pe,$e)}(C,E,A,M):0),z.call(function(_e){return _e.call(y.font,N).attr({}),n.convertToTspans(_e,u),_e});var ue=function(_e,xe,we,Ee,Pe,$e,Te){var Ce,ye,ge,Me,Se=Pe.label.textposition,ze=Pe.label.textangle,Fe=Pe.label.padding,De=Pe.type,Ue=Math.PI/180*$e,Ne=Math.sin(Ue),ke=Math.cos(Ue),Oe=Pe.label.xanchor,Re=Pe.label.yanchor;if(De==="line"){Se==="start"?(Ce=_e,ye=xe):Se==="end"?(Ce=we,ye=Ee):(Ce=(_e+we)/2,ye=(xe+Ee)/2),Oe==="auto"&&(Oe=Se==="start"?ze==="auto"?we>_e?"left":we<_e?"right":"center":we>_e?"right":we<_e?"left":"center":Se==="end"?ze==="auto"?we>_e?"right":we<_e?"left":"center":we>_e?"left":we<_e?"right":"center":"center");var je={bottom:-1,middle:0,top:1};if(ze==="auto"){var Ze=je[Re];ge=-Fe*Ne*Ze,Me=Fe*ke*Ze}else ge=Fe*{left:1,center:0,right:-1}[Oe],Me=Fe*je[Re];Ce+=ge,ye+=Me}else ge=Fe+3,Se.indexOf("right")!==-1?(Ce=Math.max(_e,we)-ge,Oe==="auto"&&(Oe="right")):Se.indexOf("left")!==-1?(Ce=Math.min(_e,we)+ge,Oe==="auto"&&(Oe="left")):(Ce=(_e+we)/2,Oe==="auto"&&(Oe="center")),ye=Se.indexOf("top")!==-1?Math.min(xe,Ee):Se.indexOf("bottom")!==-1?Math.max(xe,Ee):(xe+Ee)/2,Me=Fe,Re==="bottom"?ye-=Me:Re==="top"&&(ye+=Me);var Ye=s[Re],it=Pe.label.font.size,dt=Te.height;return{textx:Ce+(dt*Ye-it)*Ne,texty:ye+-(dt*Ye-it)*ke,xanchor:Oe}}(C,E,A,M,h,ie,y.bBox(z.node())),he=ue.textx,pe=ue.texty,me=ue.xanchor;z.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[me],y:pe,x:he,transform:"rotate("+ie+","+he+","+pe+")"}).call(n.positionText,he,pe)}}},561:function(c,m,a){var v=a(34809).strTranslate,f=a(14751),n=a(70414),y=n.drawMode,_=n.selectMode,p=a(33626),l=a(78766),o=a(93391),s=o.i000,u=o.i090,d=o.i180,h=o.i270,g=a(78534).clearOutlineControllers,b=a(81055),w=b.pointsOnRectangle,x=b.pointsOnEllipse,S=b.writePaths,k=a(87562).newShapes,T=a(87562).createShapeObj,C=a(51817),A=a(44433);function E(M,I){var N,z,F,R=M[I][1],V=M[I][2],$=M.length;return z=M[N=(I+1)%$][1],F=M[N][2],z===R&&F===V&&(z=M[N=(I+2)%$][1],F=M[N][2]),[N,z,F]}c.exports=function M(I,N,z,F){F||(F=0);var R=z.gd;function V(){M(I,N,z,F++),(x(I[0])||z.hasText)&&$({redrawing:!0})}function $(_e){var xe={};z.isActiveShape!==void 0&&(z.isActiveShape=!1,xe=k(N,z)),z.isActiveSelection!==void 0&&(z.isActiveSelection=!1,xe=C(N,z),R._fullLayout._reselect=!0),Object.keys(xe).length&&p.call((_e||{}).redrawing?"relayout":"_guiRelayout",R,xe)}var U,Z,q,W,Q,X=R._fullLayout._zoomlayer,J=z.dragmode,ee=y(J),le=_(J);if((ee||le)&&(R._fullLayout._outlining=!0),g(R),N.attr("d",S(I)),F||!z.isActiveShape&&!z.isActiveSelection||(Q=function(_e,xe){for(var we=0;we<xe.length;we++){var Ee=xe[we];_e[we]=[];for(var Pe=0;Pe<Ee.length;Pe++){_e[we][Pe]=[];for(var $e=0;$e<Ee[Pe].length;$e++)_e[we][Pe][$e]=Ee[Pe][$e]}}return _e}([],I),function(_e){U=[];for(var xe=0;xe<I.length;xe++){var we=I[xe],Ee=w(we),Pe=!Ee&&x(we);U[xe]=[];for(var $e=we.length,Te=0;Te<$e;Te++)if(we[Te][0]!=="Z"&&(!Pe||Te===s||Te===u||Te===d||Te===h)){var Ce,ye=Ee&&z.isActiveSelection;ye&&(Ce=E(we,Te));var ge=we[Te][1],Me=we[Te][2],Se=_e.append(ye?"rect":"circle").attr("data-i",xe).attr("data-j",Te).style({fill:l.background,stroke:l.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(ye){var ze=Ce[1]-ge,Fe=Ce[2]-Me,De=Fe?5:Math.max(Math.min(25,Math.abs(ze)-5),5),Ue=ze?5:Math.max(Math.min(25,Math.abs(Fe)-5),5);Se.classed(Fe?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",De).attr("height",Ue).attr("x",ge-De/2).attr("y",Me-Ue/2).attr("transform",v(ze/2,Fe/2))}else Se.classed("cursor-grab",!0).attr("r",5).attr("cx",ge).attr("cy",Me);U[xe][Te]={element:Se.node(),gd:R,prepFn:ce,doneFn:ne,clickFn:ie},f.init(U[xe][Te])}}}(X.append("g").attr("class","outline-controllers")),function(){Z=[],I.length&&(Z[0]={element:N[0][0],gd:R,prepFn:he,doneFn:pe,clickFn:me},f.init(Z[0]))}()),ee&&z.hasText){var oe=X.select(".label-temp"),se=T(N,z,z.dragmode);A(R,"label-temp",se,oe)}function ce(_e){q=+_e.srcElement.getAttribute("data-i"),W=+_e.srcElement.getAttribute("data-j"),U[q][W].moveFn=ae}function ae(_e,xe){if(I.length){var we=Q[q][W][1],Ee=Q[q][W][2],Pe=I[q],$e=Pe.length;if(w(Pe)){var Te=_e,Ce=xe;z.isActiveSelection&&(E(Pe,W)[1]===Pe[W][1]?Ce=0:Te=0);for(var ye=0;ye<$e;ye++)if(ye!==W){var ge=Pe[ye];ge[1]===Pe[W][1]&&(ge[1]=we+Te),ge[2]===Pe[W][2]&&(ge[2]=Ee+Ce)}if(Pe[W][1]=we+Te,Pe[W][2]=Ee+Ce,!w(Pe))for(var Me=0;Me<$e;Me++)for(var Se=0;Se<Pe[Me].length;Se++)Pe[Me][Se]=Q[q][Me][Se]}else Pe[W][1]=we+_e,Pe[W][2]=Ee+xe;V()}}function ne(){$()}function ie(_e,xe){if(_e===2){q=+xe.srcElement.getAttribute("data-i"),W=+xe.srcElement.getAttribute("data-j");var we=I[q];w(we)||x(we)||function(){if(I.length&&I[q]&&I[q].length){for(var Ee=[],Pe=0;Pe<I[q].length;Pe++)Pe!==W&&Ee.push(I[q][Pe]);Ee.length>1&&(Ee.length!==2||Ee[1][0]!=="Z")&&(W===0&&(Ee[0][0]="M"),I[q]=Ee,V(),$())}}()}}function ue(_e,xe){(function(we,Ee){if(I.length)for(var Pe=0;Pe<I.length;Pe++)for(var $e=0;$e<I[Pe].length;$e++)for(var Te=0;Te+2<I[Pe][$e].length;Te+=2)I[Pe][$e][Te+1]=Q[Pe][$e][Te+1]+we,I[Pe][$e][Te+2]=Q[Pe][$e][Te+2]+Ee})(_e,xe),V()}function he(_e){(q=+_e.srcElement.getAttribute("data-i"))||(q=0),Z[q].moveFn=ue}function pe(){$()}function me(_e){_e===2&&function(xe){if(_(xe._fullLayout.dragmode)){g(xe);var we=xe._fullLayout._activeSelectionIndex,Ee=(xe.layout||{}).selections||[];if(we<Ee.length){for(var Pe=[],$e=0;$e<Ee.length;$e++)$e!==we&&Pe.push(Ee[$e]);delete xe._fullLayout._activeSelectionIndex;var Te=xe._fullLayout.selections[we];xe._fullLayout._deselect={xref:Te.xref,yref:Te.yref},p.call("_guiRelayout",xe,{selections:Pe})}}}(R)}}},28231:function(c,m,a){var v=a(45568),f=a(33626),n=a(34809),y=a(29714),_=a(81055).readPaths,p=a(561),l=a(44433),o=a(78534).clearOutlineControllers,s=a(78766),u=a(62203),d=a(78032).arrayEditor,h=a(14751),g=a(27983),b=a(2956),w=a(49728),x=w.getPathString;function S(I){var N=I._fullLayout;for(var z in N._shapeUpperLayer.selectAll("path").remove(),N._shapeLowerLayer.selectAll("path").remove(),N._shapeUpperLayer.selectAll("text").remove(),N._shapeLowerLayer.selectAll("text").remove(),N._plots){var F=N._plots[z].shapelayer;F&&(F.selectAll("path").remove(),F.selectAll("text").remove())}for(var R=0;R<N.shapes.length;R++)N.shapes[R].visible===!0&&C(I,R)}function k(I){return!!I._fullLayout._outlining}function T(I){return!I._context.edits.shapePosition}function C(I,N){I._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+N+'"]').remove();var z=w.makeShapesOptionsAndPlotinfo(I,N),F=z.options,R=z.plotinfo;function V($){var U=x(I,F),Z={"data-index":N,"fill-rule":F.fillrule,d:U},q=F.opacity,W=F.fillcolor,Q=F.line.width?F.line.color:"rgba(0,0,0,0)",X=F.line.width,J=F.line.dash;X||F.editable!==!0||(X=5,J="solid");var ee=U[U.length-1]!=="Z",le=T(I)&&F.editable&&I._fullLayout._activeShapeIndex===N;le&&(W=ee?"rgba(0,0,0,0)":I._fullLayout.activeshape.fillcolor,q=I._fullLayout.activeshape.opacity);var oe,se=$.append("g").classed("shape-group",!0).attr({"data-index":N}),ce=se.append("path").attr(Z).style("opacity",q).call(s.stroke,Q).call(s.fill,W).call(u.dashLine,J,X);if(A(se,I,F),l(I,N,F,se),(le||I._context.edits.shapePosition)&&(oe=d(I.layout,"shapes",F)),le){ce.style({cursor:"move"});var ae={element:ce.node(),plotinfo:R,gd:I,editHelpers:oe,hasText:F.label.text||F.label.texttemplate,isActiveShape:!0},ne=_(U,I);p(ne,ce,ae)}else I._context.edits.shapePosition?function(ie,ue,he,pe,me,_e){var xe,we,Ee,Pe,$e,Te,Ce,ye,ge,Me,Se,ze,Fe,De,Ue,Ne,ke=10,Oe=10,Re=he.xsizemode==="pixel",je=he.ysizemode==="pixel",Ze=he.type==="line",Ye=he.type==="path",it=_e.modifyItem,dt=v.select(ue.node().parentNode),ut=y.getFromId(ie,he.xref),It=y.getRefType(he.xref),Ot=y.getFromId(ie,he.yref),Ft=y.getRefType(he.yref),ot=he.x0shift,tt=he.x1shift,vt=he.y0shift,At=he.y1shift,Dt=function(Xe,yt){return w.getDataToPixel(ie,ut,yt,!1,It)(Xe)},Pt=function(Xe,yt){return w.getDataToPixel(ie,Ot,yt,!0,Ft)(Xe)},et=w.getPixelToData(ie,ut,!1,It),rt=w.getPixelToData(ie,Ot,!0,Ft),We=Ze?function(){var Xe=10,yt=Math.max(he.line.width,Xe),Et=me.append("g").attr("data-index",pe).attr("drag-helper",!0);Et.append("path").attr("d",ue.attr("d")).style({cursor:"move","stroke-width":yt,"stroke-opacity":"0"});var Ct={"fill-opacity":"0"},gt=Math.max(yt/2,Xe);return Et.append("circle").attr({"data-line-point":"start-point",cx:Re?Dt(he.xanchor)+he.x0:Dt(he.x0,ot),cy:je?Pt(he.yanchor)-he.y0:Pt(he.y0,vt),r:gt}).style(Ct).classed("cursor-grab",!0),Et.append("circle").attr({"data-line-point":"end-point",cx:Re?Dt(he.xanchor)+he.x1:Dt(he.x1,tt),cy:je?Pt(he.yanchor)-he.y1:Pt(he.y1,At),r:gt}).style(Ct).classed("cursor-grab",!0),Et}():ue,nt={element:We.node(),gd:ie,prepFn:function(Xe){k(ie)||(Re&&($e=Dt(he.xanchor)),je&&(Te=Pt(he.yanchor)),he.type==="path"?Ue=he.path:(xe=Re?he.x0:Dt(he.x0),we=je?he.y0:Pt(he.y0),Ee=Re?he.x1:Dt(he.x1),Pe=je?he.y1:Pt(he.y1)),xe<Ee?(ge=xe,Fe="x0",Me=Ee,De="x1"):(ge=Ee,Fe="x1",Me=xe,De="x0"),!je&&we<Pe||je&&we>Pe?(Ce=we,Se="y0",ye=Pe,ze="y1"):(Ce=Pe,Se="y1",ye=we,ze="y0"),_t(Xe),Bt(me,he),function(yt,Et,Ct){var gt=Et.xref,$t=Et.yref,Lt=y.getFromId(Ct,gt),jt=y.getFromId(Ct,$t),Rt="";gt==="paper"||Lt.autorange||(Rt+=gt),$t==="paper"||jt.autorange||(Rt+=$t),u.setClipUrl(yt,Rt?"clip"+Ct._fullLayout._uid+Rt:null,Ct)}(ue,he,ie),nt.moveFn=Ne==="move"?mt:St,nt.altKey=Xe.altKey)},doneFn:function(){k(ie)||(g(ue),Je(me),A(ue,ie,he),f.call("_guiRelayout",ie,_e.getUpdateObj()))},clickFn:function(){k(ie)||Je(me)}};function _t(Xe){if(k(ie))Ne=null;else if(Ze)Ne=Xe.target.tagName==="path"?"move":Xe.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var yt=nt.element.getBoundingClientRect(),Et=yt.right-yt.left,Ct=yt.bottom-yt.top,gt=Xe.clientX-yt.left,$t=Xe.clientY-yt.top,Lt=!Ye&&Et>ke&&Ct>Oe&&!Xe.shiftKey?h.getCursor(gt/Et,1-$t/Ct):"move";g(ue,Lt),Ne=Lt.split("-")[0]}}function mt(Xe,yt){if(he.type==="path"){var Et=function($t){return $t},Ct=Et,gt=Et;Re?it("xanchor",he.xanchor=et($e+Xe)):(Ct=function($t){return et(Dt($t)+Xe)},ut&&ut.type==="date"&&(Ct=w.encodeDate(Ct))),je?it("yanchor",he.yanchor=rt(Te+yt)):(gt=function($t){return rt(Pt($t)+yt)},Ot&&Ot.type==="date"&&(gt=w.encodeDate(gt))),it("path",he.path=E(Ue,Ct,gt))}else Re?it("xanchor",he.xanchor=et($e+Xe)):(it("x0",he.x0=et(xe+Xe)),it("x1",he.x1=et(Ee+Xe))),je?it("yanchor",he.yanchor=rt(Te+yt)):(it("y0",he.y0=rt(we+yt)),it("y1",he.y1=rt(Pe+yt)));ue.attr("d",x(ie,he)),Bt(me,he),l(ie,pe,he,dt)}function St(Xe,yt){if(Ye){var Et=function(wa){return wa},Ct=Et,gt=Et;Re?it("xanchor",he.xanchor=et($e+Xe)):(Ct=function(wa){return et(Dt(wa)+Xe)},ut&&ut.type==="date"&&(Ct=w.encodeDate(Ct))),je?it("yanchor",he.yanchor=rt(Te+yt)):(gt=function(wa){return rt(Pt(wa)+yt)},Ot&&Ot.type==="date"&&(gt=w.encodeDate(gt))),it("path",he.path=E(Ue,Ct,gt))}else if(Ze){if(Ne==="resize-over-start-point"){var $t=xe+Xe,Lt=je?we-yt:we+yt;it("x0",he.x0=Re?$t:et($t)),it("y0",he.y0=je?Lt:rt(Lt))}else if(Ne==="resize-over-end-point"){var jt=Ee+Xe,Rt=je?Pe-yt:Pe+yt;it("x1",he.x1=Re?jt:et(jt)),it("y1",he.y1=je?Rt:rt(Rt))}}else{var Vt=function(wa){return Ne.indexOf(wa)!==-1},Qt=Vt("n"),ta=Vt("s"),_a=Vt("w"),ka=Vt("e"),va=Qt?Ce+yt:Ce,ia=ta?ye+yt:ye,fa=_a?ge+Xe:ge,Da=ka?Me+Xe:Me;je&&(Qt&&(va=Ce-yt),ta&&(ia=ye-yt)),(!je&&ia-va>Oe||je&&va-ia>Oe)&&(it(Se,he[Se]=je?va:rt(va)),it(ze,he[ze]=je?ia:rt(ia))),Da-fa>ke&&(it(Fe,he[Fe]=Re?fa:et(fa)),it(De,he[De]=Re?Da:et(Da)))}ue.attr("d",x(ie,he)),Bt(me,he),l(ie,pe,he,dt)}function Bt(Xe,yt){(Re||je)&&function(){var Et=yt.type!=="path",Ct=Xe.selectAll(".visual-cue").data([0]);Ct.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var gt=Dt(Re?yt.xanchor:n.midRange(Et?[yt.x0,yt.x1]:w.extractPathCoords(yt.path,b.paramIsX))),$t=Pt(je?yt.yanchor:n.midRange(Et?[yt.y0,yt.y1]:w.extractPathCoords(yt.path,b.paramIsY)));if(gt=w.roundPositionForSharpStrokeRendering(gt,1),$t=w.roundPositionForSharpStrokeRendering($t,1),Re&&je){var Lt="M"+(gt-1-1)+","+($t-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";Ct.attr("d",Lt)}else if(Re){var jt="M"+(gt-1-1)+","+($t-9-1)+"v18 h2 v-18 Z";Ct.attr("d",jt)}else{var Rt="M"+(gt-9-1)+","+($t-1-1)+"h18 v2 h-18 Z";Ct.attr("d",Rt)}}()}function Je(Xe){Xe.selectAll(".visual-cue").remove()}h.init(nt),We.node().onmousemove=_t}(I,ce,F,N,$,oe):F.editable===!0&&ce.style("pointer-events",ee||s.opacity(W)*q<=.5?"stroke":"all");ce.node().addEventListener("click",function(){return function(ie,ue){if(T(ie)){var he=+ue.node().getAttribute("data-index");if(he>=0){if(he===ie._fullLayout._activeShapeIndex)return void M(ie);ie._fullLayout._activeShapeIndex=he,ie._fullLayout._deactivateShape=M,S(ie)}}}(I,ce)})}F._input&&F.visible===!0&&(F.layer==="above"?V(I._fullLayout._shapeUpperLayer):F.xref==="paper"||F.yref==="paper"?V(I._fullLayout._shapeLowerLayer):F.layer==="between"?V(R.shapelayerBetween):R._hadPlotinfo?V((R.mainplotinfo||R).shapelayer):V(I._fullLayout._shapeLowerLayer))}function A(I,N,z){var F=(z.xref+z.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");u.setClipUrl(I,F?"clip"+N._fullLayout._uid+F:null,N)}function E(I,N,z){return I.replace(b.segmentRE,function(F){var R=0,V=F.charAt(0),$=b.paramIsX[V],U=b.paramIsY[V],Z=b.numParams[V];return V+F.substr(1).replace(b.paramRE,function(q){return R>=Z||($[R]?q=N(q):U[R]&&(q=z(q)),R++),q})})}function M(I){T(I)&&I._fullLayout._activeShapeIndex>=0&&(o(I),delete I._fullLayout._activeShapeIndex,S(I))}c.exports={draw:S,drawOne:C,eraseActiveShape:function(I){if(T(I)){o(I);var N=I._fullLayout._activeShapeIndex,z=(I.layout||{}).shapes||[];if(N<z.length){for(var F=[],R=0;R<z.length;R++)R!==N&&F.push(z[R]);return delete I._fullLayout._activeShapeIndex,f.call("_guiRelayout",I,{shapes:F})}}},drawLabel:l}},64101:function(c,m,a){var v=a(13582).overrideAll,f=a(9829),n=a(80337),y=a(94850).T,_=a(93049).extendFlat,p=a(3208).LF,l=a(41235);c.exports=v({newshape:{visible:_({},f.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:_({},f.legend,{}),legendgroup:_({},f.legendgroup,{}),legendgrouptitle:{text:_({},f.legendgrouptitle.text,{}),font:n({})},legendrank:_({},f.legendrank,{}),legendwidth:_({},f.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:_({},y,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:_({},f.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:p({newshape:!0},{keys:Object.keys(l)}),font:n({}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right","start","middle","end"]},textangle:{valType:"angle",dflt:"auto"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto"},yanchor:{valType:"enumerated",values:["top","middle","bottom"]},padding:{valType:"number",dflt:3,min:0}}},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)"},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")},93391:function(c){c.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},85522:function(c,m,a){var v=a(78766),f=a(34809);c.exports=function(n,y,_){if(_("newshape.visible"),_("newshape.name"),_("newshape.showlegend"),_("newshape.legend"),_("newshape.legendwidth"),_("newshape.legendgroup"),_("newshape.legendgrouptitle.text"),f.coerceFont(_,"newshape.legendgrouptitle.font"),_("newshape.legendrank"),_("newshape.drawdirection"),_("newshape.layer"),_("newshape.fillcolor"),_("newshape.fillrule"),_("newshape.opacity"),_("newshape.line.width")){var p=(n||{}).plot_bgcolor||"#FFF";_("newshape.line.color",v.contrast(p)),_("newshape.line.dash")}var l=n.dragmode==="drawline",o=_("newshape.label.text"),s=_("newshape.label.texttemplate");if(o||s){_("newshape.label.textangle");var u=_("newshape.label.textposition",l?"middle":"middle center");_("newshape.label.xanchor"),_("newshape.label.yanchor",function(d,h){return d?"bottom":h.indexOf("top")!==-1?"top":h.indexOf("bottom")!==-1?"bottom":"middle"}(l,u)),_("newshape.label.padding"),f.coerceFont(_,"newshape.label.font",y.font)}_("activeshape.fillcolor"),_("activeshape.opacity")}},81055:function(c,m,a){var v=a(26953),f=a(93391),n=f.CIRCLE_SIDES,y=f.SQRT2,_=a(49801),p=_.p2r,l=_.r2p,o=[0,3,4,5,6,1,2],s=[0,3,4,1,2];function u(h,g){return Math.abs(h-g)<=1e-6}function d(h,g){var b=g[1]-h[1],w=g[2]-h[2];return Math.sqrt(b*b+w*w)}m.writePaths=function(h){var g=h.length;if(!g)return"M0,0Z";for(var b="",w=0;w<g;w++)for(var x=h[w].length,S=0;S<x;S++){var k=h[w][S][0];if(k==="Z")b+="Z";else for(var T=h[w][S].length,C=0;C<T;C++){var A=C;k==="Q"||k==="S"?A=s[C]:k==="C"&&(A=o[C]),b+=h[w][S][A],C>0&&C<T-1&&(b+=",")}}return b},m.readPaths=function(h,g,b,w){var x,S,k,T=v(h),C=[],A=-1,E=0,M=0,I=function(){S=E,k=M};I();for(var N=0;N<T.length;N++){var z,F,R,V,$=[],U=T[N][0],Z=U;switch(U){case"M":C[++A]=[],E=+T[N][1],M=+T[N][2],$.push([Z,E,M]),I();break;case"Q":case"S":z=+T[N][1],R=+T[N][2],E=+T[N][3],M=+T[N][4],$.push([Z,E,M,z,R]);break;case"C":z=+T[N][1],R=+T[N][2],F=+T[N][3],V=+T[N][4],E=+T[N][5],M=+T[N][6],$.push([Z,E,M,z,R,F,V]);break;case"T":case"L":E=+T[N][1],M=+T[N][2],$.push([Z,E,M]);break;case"H":Z="L",E=+T[N][1],$.push([Z,E,M]);break;case"V":Z="L",M=+T[N][1],$.push([Z,E,M]);break;case"A":Z="L";var q=+T[N][1],W=+T[N][2];+T[N][4]||(q=-q,W=-W);var Q=E-q,X=M;for(x=1;x<=n/2;x++){var J=2*Math.PI*x/n;$.push([Z,Q+q*Math.cos(J),X+W*Math.sin(J)])}break;case"Z":E===S&&M===k||(E=S,M=k,$.push([Z,E,M]))}for(var ee=(b||{}).domain,le=g._fullLayout._size,oe=b&&b.xsizemode==="pixel",se=b&&b.ysizemode==="pixel",ce=w===!1,ae=0;ae<$.length;ae++){for(x=0;x+2<7;x+=2){var ne=$[ae][x+1],ie=$[ae][x+2];ne!==void 0&&ie!==void 0&&(E=ne,M=ie,b&&(b.xaxis&&b.xaxis.p2r?(ce&&(ne-=b.xaxis._offset),ne=oe?l(b.xaxis,b.xanchor)+ne:p(b.xaxis,ne)):(ce&&(ne-=le.l),ee?ne=ee.x[0]+ne/le.w:ne/=le.w),b.yaxis&&b.yaxis.p2r?(ce&&(ie-=b.yaxis._offset),ie=se?l(b.yaxis,b.yanchor)-ie:p(b.yaxis,ie)):(ce&&(ie-=le.t),ie=ee?ee.y[1]-ie/le.h:1-ie/le.h)),$[ae][x+1]=ne,$[ae][x+2]=ie)}C[A].push($[ae].slice())}}return C},m.pointsOnRectangle=function(h){if(h.length!==5)return!1;for(var g=1;g<3;g++)if(!u(h[0][g]-h[1][g],h[3][g]-h[2][g])||!u(h[0][g]-h[3][g],h[1][g]-h[2][g]))return!1;return!(!u(h[0][1],h[1][1])&&!u(h[0][1],h[3][1])||!(d(h[0],h[1])*d(h[0],h[3])))},m.pointsOnEllipse=function(h){var g=h.length;if(g!==n+1)return!1;g=n;for(var b=0;b<g;b++){var w=(2*g-b)%g,x=(g/2+w)%g,S=(g/2+b)%g;if(!u(d(h[b],h[S]),d(h[w],h[x])))return!1}return!0},m.handleEllipse=function(h,g,b){if(!h)return[g,b];var w=m.ellipseOver({x0:g[0],y0:g[1],x1:b[0],y1:b[1]}),x=(w.x1+w.x0)/2,S=(w.y1+w.y0)/2,k=(w.x1-w.x0)/2,T=(w.y1-w.y0)/2;k||(k=T/=y),T||(T=k/=y);for(var C=[],A=0;A<n;A++){var E=2*A*Math.PI/n;C.push([x+k*Math.cos(E),S+T*Math.sin(E)])}return C},m.ellipseOver=function(h){var g=h.x0,b=h.y0,w=h.x1,x=h.y1,S=w-g,k=x-b,T=((g-=S)+w)/2,C=((b-=k)+x)/2;return{x0:T-(S*=y),y0:C-(k*=y),x1:T+S,y1:C+k}},m.fixDatesForPaths=function(h,g,b){var w=g.type==="date",x=b.type==="date";if(!w&&!x)return h;for(var S=0;S<h.length;S++)for(var k=0;k<h[S].length;k++)for(var T=0;T+2<h[S][k].length;T+=2)w&&(h[S][k][T+1]=h[S][k][T+1].replace(" ","_")),x&&(h[S][k][T+2]=h[S][k][T+2].replace(" ","_"));return h}},87562:function(c,m,a){var v=a(70414),f=v.drawMode,n=v.openMode,y=a(93391),_=y.i000,p=y.i090,l=y.i180,o=y.i270,s=y.cos45,u=y.sin45,d=a(49801),h=d.p2r,g=d.r2p,b=a(78534).clearOutline,w=a(81055),x=w.readPaths,S=w.writePaths,k=w.ellipseOver,T=w.fixDatesForPaths;function C(A,E,M){var I,N=A[0][0],z=E.gd,F=N.getAttribute("d"),R=z._fullLayout.newshape,V=E.plotinfo,$=E.isActiveShape,U=V.xaxis,Z=V.yaxis,q=!!V.domain||!V.xaxis,W=!!V.domain||!V.yaxis,Q=n(M),X=x(F,z,V,$),J={editable:!0,visible:R.visible,name:R.name,showlegend:R.showlegend,legend:R.legend,legendwidth:R.legendwidth,legendgroup:R.legendgroup,legendgrouptitle:{text:R.legendgrouptitle.text,font:R.legendgrouptitle.font},legendrank:R.legendrank,label:R.label,xref:q?"paper":U._id,yref:W?"paper":Z._id,layer:R.layer,opacity:R.opacity,line:{color:R.line.color,width:R.line.width,dash:R.line.dash}};if(Q||(J.fillcolor=R.fillcolor,J.fillrule=R.fillrule),X.length===1&&(I=X[0]),I&&I.length===5&&M==="drawrect")J.type="rect",J.x0=I[0][1],J.y0=I[0][2],J.x1=I[2][1],J.y1=I[2][2];else if(I&&M==="drawline")J.type="line",J.x0=I[0][1],J.y0=I[0][2],J.x1=I[1][1],J.y1=I[1][2];else if(I&&M==="drawcircle"){J.type="circle";var ee=I[_][1],le=I[p][1],oe=I[l][1],se=I[o][1],ce=I[_][2],ae=I[p][2],ne=I[l][2],ie=I[o][2],ue=V.xaxis&&(V.xaxis.type==="date"||V.xaxis.type==="log"),he=V.yaxis&&(V.yaxis.type==="date"||V.yaxis.type==="log");ue&&(ee=g(V.xaxis,ee),le=g(V.xaxis,le),oe=g(V.xaxis,oe),se=g(V.xaxis,se)),he&&(ce=g(V.yaxis,ce),ae=g(V.yaxis,ae),ne=g(V.yaxis,ne),ie=g(V.yaxis,ie));var pe=(le+se)/2,me=(ce+ne)/2,_e=k({x0:pe,y0:me,x1:pe+(se-le+oe-ee)/2*s,y1:me+(ie-ae+ne-ce)/2*u});ue&&(_e.x0=h(V.xaxis,_e.x0),_e.x1=h(V.xaxis,_e.x1)),he&&(_e.y0=h(V.yaxis,_e.y0),_e.y1=h(V.yaxis,_e.y1)),J.x0=_e.x0,J.y0=_e.y0,J.x1=_e.x1,J.y1=_e.y1}else J.type="path",U&&Z&&T(X,U,Z),J.path=S(X),I=null;return J}c.exports={newShapes:function(A,E){if(A.length&&A[0][0]){var M=E.gd,I=E.isActiveShape,N=E.dragmode,z=(M.layout||{}).shapes||[];if(!f(N)&&I!==void 0){var F=M._fullLayout._activeShapeIndex;if(F<z.length)switch(M._fullLayout.shapes[F].type){case"rect":N="drawrect";break;case"circle":N="drawcircle";break;case"line":N="drawline";break;case"path":var R=z[F].path||"";N=R[R.length-1]==="Z"?"drawclosedpath":"drawopenpath"}}var V=C(A,E,N);b(M);for(var $=E.editHelpers,U=($||{}).modifyItem,Z=[],q=0;q<z.length;q++){var W=M._fullLayout.shapes[q];if(Z[q]=W._input,I!==void 0&&q===M._fullLayout._activeShapeIndex){var Q=V;switch(W.type){case"line":case"rect":case"circle":U("x0",Q.x0-(W.x0shift||0)),U("x1",Q.x1-(W.x1shift||0)),U("y0",Q.y0-(W.y0shift||0)),U("y1",Q.y1-(W.y1shift||0));break;case"path":U("path",Q.path)}}}return I===void 0?(Z.push(V),Z):$?$.getUpdateObj():{}}},createShapeObj:C}},78534:function(c){c.exports={clearOutlineControllers:function(m){var a=m._fullLayout._zoomlayer;a&&a.selectAll(".outline-controllers").remove()},clearOutline:function(m){var a=m._fullLayout._zoomlayer;a&&a.selectAll(".select-outline").remove(),m._fullLayout._outlining=!1}}},49728:function(c,m,a){var v=a(2956),f=a(34809),n=a(29714);function y(_,p){var l=0;return(p=p||0)&&_&&(_.type==="category"||_.type==="multicategory")&&(l=(_.r2p(1)-_.r2p(0))*p),l}m.rangeToShapePosition=function(_){return _.type==="log"?_.r2d:function(p){return p}},m.shapePositionToRange=function(_){return _.type==="log"?_.d2r:function(p){return p}},m.decodeDate=function(_){return function(p){return p.replace&&(p=p.replace("_"," ")),_(p)}},m.encodeDate=function(_){return function(p){return _(p).replace(" ","_")}},m.extractPathCoords=function(_,p,l){var o=[];return _.match(v.segmentRE).forEach(function(s){var u=p[s.charAt(0)].drawn;if(u!==void 0){var d=s.substr(1).match(v.paramRE);if(d&&!(d.length<u)){var h=d[u],g=l?h:f.cleanNumber(h);o.push(g)}}}),o},m.getDataToPixel=function(_,p,l,o,s){var u,d=_._fullLayout._size;if(p)if(s==="domain")u=function(g){return p._length*(o?1-g:g)+p._offset};else{var h=m.shapePositionToRange(p);u=function(g){var b=y(p,l);return p._offset+p.r2p(h(g,!0))+b},p.type==="date"&&(u=m.decodeDate(u))}else u=o?function(g){return d.t+d.h*(1-g)}:function(g){return d.l+d.w*g};return u},m.getPixelToData=function(_,p,l,o){var s,u=_._fullLayout._size;if(p)if(o==="domain")s=function(h){var g=(h-p._offset)/p._length;return l?1-g:g};else{var d=m.rangeToShapePosition(p);s=function(h){return d(p.p2r(h-p._offset))}}else s=l?function(h){return 1-(h-u.t)/u.h}:function(h){return(h-u.l)/u.w};return s},m.roundPositionForSharpStrokeRendering=function(_,p){var l=Math.round(p%2)===1,o=Math.round(_);return l?o+.5:o},m.makeShapesOptionsAndPlotinfo=function(_,p){var l=_._fullLayout.shapes[p]||{},o=_._fullLayout._plots[l.xref+l.yref];return o?o._hadPlotinfo=!0:(o={},l.xref&&l.xref!=="paper"&&(o.xaxis=_._fullLayout[l.xref+"axis"]),l.yref&&l.yref!=="paper"&&(o.yaxis=_._fullLayout[l.yref+"axis"])),o.xsizemode=l.xsizemode,o.ysizemode=l.ysizemode,o.xanchor=l.xanchor,o.yanchor=l.yanchor,{options:l,plotinfo:o}},m.makeSelectionsOptionsAndPlotinfo=function(_,p){var l=_._fullLayout.selections[p]||{},o=_._fullLayout._plots[l.xref+l.yref];return o?o._hadPlotinfo=!0:(o={},l.xref&&(o.xaxis=_._fullLayout[l.xref+"axis"]),l.yref&&(o.yaxis=_._fullLayout[l.yref+"axis"])),{options:l,plotinfo:o}},m.getPathString=function(_,p){var l,o,s,u,d,h,g,b,w=p.type,x=n.getRefType(p.xref),S=n.getRefType(p.yref),k=n.getFromId(_,p.xref),T=n.getFromId(_,p.yref),C=_._fullLayout._size,A=y(k,p.x0shift),E=y(k,p.x1shift),M=y(T,p.y0shift),I=y(T,p.y1shift);if(k?x==="domain"?o=function(q){return k._offset+k._length*q}:(l=m.shapePositionToRange(k),o=function(q){return k._offset+k.r2p(l(q,!0))}):o=function(q){return C.l+C.w*q},T?S==="domain"?u=function(q){return T._offset+T._length*(1-q)}:(s=m.shapePositionToRange(T),u=function(q){return T._offset+T.r2p(s(q,!0))}):u=function(q){return C.t+C.h*(1-q)},w==="path")return k&&k.type==="date"&&(o=m.decodeDate(o)),T&&T.type==="date"&&(u=m.decodeDate(u)),function(q,W,Q){var X=q.path,J=q.xsizemode,ee=q.ysizemode,le=q.xanchor,oe=q.yanchor;return X.replace(v.segmentRE,function(se){var ce=0,ae=se.charAt(0),ne=v.paramIsX[ae],ie=v.paramIsY[ae],ue=v.numParams[ae],he=se.substr(1).replace(v.paramRE,function(pe){return ne[ce]?pe=J==="pixel"?W(le)+Number(pe):W(pe):ie[ce]&&(pe=ee==="pixel"?Q(oe)-Number(pe):Q(pe)),++ce>ue&&(pe="X"),pe});return ce>ue&&(he=he.replace(/[\s,]*X.*/,""),f.log("Ignoring extra params in segment "+se)),ae+he})}(p,o,u);if(p.xsizemode==="pixel"){var N=o(p.xanchor);d=N+p.x0+A,h=N+p.x1+E}else d=o(p.x0)+A,h=o(p.x1)+E;if(p.ysizemode==="pixel"){var z=u(p.yanchor);g=z-p.y0+M,b=z-p.y1+I}else g=u(p.y0)+M,b=u(p.y1)+I;if(w==="line")return"M"+d+","+g+"L"+h+","+b;if(w==="rect")return"M"+d+","+g+"H"+h+"V"+b+"H"+d+"Z";var F=(d+h)/2,R=(g+b)/2,V=Math.abs(F-d),$=Math.abs(R-g),U="A"+V+","+$,Z=F+V+","+R;return"M"+Z+U+" 0 1,1 "+F+","+(R-$)+U+" 0 0,1 "+Z+"Z"}},43701:function(c,m,a){var v=a(28231);c.exports={moduleType:"component",name:"shapes",layoutAttributes:a(43144),supplyLayoutDefaults:a(74367),supplyDrawNewShapeDefaults:a(85522),includeBasePlot:a(20706)("shapes"),calcAutorange:a(44959),draw:v.draw,drawOne:v.drawOne}},41235:function(c){function m(l,o){return o?o.d2l(l):l}function a(l,o){return o?o.l2d(l):l}function v(l){return l.x0shift||0}function f(l){return l.x1shift||0}function n(l){return l.y0shift||0}function y(l){return l.y1shift||0}function _(l,o){return m(l.x1,o)+f(l)-m(l.x0,o)-v(l)}function p(l,o,s){return m(l.y1,s)+y(l)-m(l.y0,s)-n(l)}c.exports={x0:function(l){return l.x0},x1:function(l){return l.x1},y0:function(l){return l.y0},y1:function(l){return l.y1},slope:function(l,o,s){return l.type!=="line"?void 0:p(l,0,s)/_(l,o)},dx:_,dy:p,width:function(l,o){return Math.abs(_(l,o))},height:function(l,o,s){return Math.abs(p(l,0,s))},length:function(l,o,s){return l.type!=="line"?void 0:Math.sqrt(Math.pow(_(l,o),2)+Math.pow(p(l,0,s),2))},xcenter:function(l,o){return a((m(l.x1,o)+f(l)+m(l.x0,o)+v(l))/2,o)},ycenter:function(l,o,s){return a((m(l.y1,s)+y(l)+m(l.y0,s)+n(l))/2,s)}}},8606:function(c,m,a){var v=a(80337),f=a(57891),n=a(93049).extendDeepAll,y=a(13582).overrideAll,_=a(49722),p=a(78032).templatedArray,l=a(64194),o=p("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});c.exports=y(p("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:o,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:n(f({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:_.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:v({})},font:v({}),activebgcolor:{valType:"color",dflt:l.gripBgActiveColor},bgcolor:{valType:"color",dflt:l.railBgColor},bordercolor:{valType:"color",dflt:l.railBorderColor},borderwidth:{valType:"number",min:0,dflt:l.railBorderWidth},ticklen:{valType:"number",min:0,dflt:l.tickLength},tickcolor:{valType:"color",dflt:l.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:l.minorTickLength}}),"arraydraw","from-root")},64194:function(c){c.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},74537:function(c,m,a){var v=a(34809),f=a(59008),n=a(8606),y=a(64194).name,_=n.steps;function p(o,s,u){function d(x,S){return v.coerce(o,s,n,x,S)}for(var h=f(o,s,{name:"steps",handleItemDefaults:l}),g=0,b=0;b<h.length;b++)h[b].visible&&g++;if(g<2?s.visible=!1:d("visible")){s._stepCount=g;var w=s._visibleSteps=v.filterVisible(h);(h[d("active")]||{}).visible||(s.active=w[0]._index),d("x"),d("y"),v.noneOrAll(o,s,["x","y"]),d("xanchor"),d("yanchor"),d("len"),d("lenmode"),d("pad.t"),d("pad.r"),d("pad.b"),d("pad.l"),v.coerceFont(d,"font",u.font),d("currentvalue.visible")&&(d("currentvalue.xanchor"),d("currentvalue.prefix"),d("currentvalue.suffix"),d("currentvalue.offset"),v.coerceFont(d,"currentvalue.font",s.font)),d("transition.duration"),d("transition.easing"),d("bgcolor"),d("activebgcolor"),d("bordercolor"),d("borderwidth"),d("ticklen"),d("tickwidth"),d("tickcolor"),d("minorticklen")}}function l(o,s){function u(h,g){return v.coerce(o,s,_,h,g)}if(o.method==="skip"||Array.isArray(o.args)?u("visible"):s.visible=!1){u("method"),u("args");var d=u("label","step-"+s._index);u("value",d),u("execute")}}c.exports=function(o,s){f(o,s,{name:y,handleItemDefaults:p})}},44097:function(c,m,a){var v=a(45568),f=a(44122),n=a(78766),y=a(62203),_=a(34809),p=_.strTranslate,l=a(30635),o=a(78032).arrayEditor,s=a(64194),u=a(4530),d=u.LINE_SPACING,h=u.FROM_TL,g=u.FROM_BR;function b($){return s.autoMarginIdRoot+$._index}function w($){return $._index}function x($,U){var Z=y.tester.selectAll("g."+s.labelGroupClass).data(U._visibleSteps);Z.enter().append("g").classed(s.labelGroupClass,!0);var q=0,W=0;Z.each(function(ae){var ne=T(v.select(this),{step:ae},U).node();if(ne){var ie=y.bBox(ne);W=Math.max(W,ie.height),q=Math.max(q,ie.width)}}),Z.remove();var Q=U._dims={};Q.inputAreaWidth=Math.max(s.railWidth,s.gripHeight);var X=$._fullLayout._size;Q.lx=X.l+X.w*U.x,Q.ly=X.t+X.h*(1-U.y),U.lenmode==="fraction"?Q.outerLength=Math.round(X.w*U.len):Q.outerLength=U.len,Q.inputAreaStart=0,Q.inputAreaLength=Math.round(Q.outerLength-U.pad.l-U.pad.r);var J=(Q.inputAreaLength-2*s.stepInset)/(U._stepCount-1),ee=q+s.labelPadding;if(Q.labelStride=Math.max(1,Math.ceil(ee/J)),Q.labelHeight=W,Q.currentValueMaxWidth=0,Q.currentValueHeight=0,Q.currentValueTotalHeight=0,Q.currentValueMaxLines=1,U.currentvalue.visible){var le=y.tester.append("g");Z.each(function(ae){var ne=S(le,U,ae.label),ie=ne.node()&&y.bBox(ne.node())||{width:0,height:0},ue=l.lineCount(ne);Q.currentValueMaxWidth=Math.max(Q.currentValueMaxWidth,Math.ceil(ie.width)),Q.currentValueHeight=Math.max(Q.currentValueHeight,Math.ceil(ie.height)),Q.currentValueMaxLines=Math.max(Q.currentValueMaxLines,ue)}),Q.currentValueTotalHeight=Q.currentValueHeight+U.currentvalue.offset,le.remove()}Q.height=Q.currentValueTotalHeight+s.tickOffset+U.ticklen+s.labelOffset+Q.labelHeight+U.pad.t+U.pad.b;var oe="left";_.isRightAnchor(U)&&(Q.lx-=Q.outerLength,oe="right"),_.isCenterAnchor(U)&&(Q.lx-=Q.outerLength/2,oe="center");var se="top";_.isBottomAnchor(U)&&(Q.ly-=Q.height,se="bottom"),_.isMiddleAnchor(U)&&(Q.ly-=Q.height/2,se="middle"),Q.outerLength=Math.ceil(Q.outerLength),Q.height=Math.ceil(Q.height),Q.lx=Math.round(Q.lx),Q.ly=Math.round(Q.ly);var ce={y:U.y,b:Q.height*g[se],t:Q.height*h[se]};U.lenmode==="fraction"?(ce.l=0,ce.xl=U.x-U.len*h[oe],ce.r=0,ce.xr=U.x+U.len*g[oe]):(ce.x=U.x,ce.l=Q.outerLength*h[oe],ce.r=Q.outerLength*g[oe]),f.autoMargin($,b(U),ce)}function S($,U,Z){if(U.currentvalue.visible){var q,W,Q=U._dims;switch(U.currentvalue.xanchor){case"right":q=Q.inputAreaLength-s.currentValueInset-Q.currentValueMaxWidth,W="left";break;case"center":q=.5*Q.inputAreaLength,W="middle";break;default:q=s.currentValueInset,W="left"}var X=_.ensureSingle($,"text",s.labelClass,function(ce){ce.attr({"text-anchor":W,"data-notex":1})}),J=U.currentvalue.prefix?U.currentvalue.prefix:"";if(typeof Z=="string")J+=Z;else{var ee=U.steps[U.active].label,le=U._gd._fullLayout._meta;le&&(ee=_.templateString(ee,le)),J+=ee}U.currentvalue.suffix&&(J+=U.currentvalue.suffix),X.call(y.font,U.currentvalue.font).text(J).call(l.convertToTspans,U._gd);var oe=l.lineCount(X),se=(Q.currentValueMaxLines+1-oe)*U.currentvalue.font.size*d;return l.positionText(X,q,se),X}}function k($,U,Z){_.ensureSingle($,"rect",s.gripRectClass,function(q){q.call(M,U,$,Z).style("pointer-events","all")}).attr({width:s.gripWidth,height:s.gripHeight,rx:s.gripRadius,ry:s.gripRadius}).call(n.stroke,Z.bordercolor).call(n.fill,Z.bgcolor).style("stroke-width",Z.borderwidth+"px")}function T($,U,Z){var q=_.ensureSingle($,"text",s.labelClass,function(X){X.attr({"text-anchor":"middle","data-notex":1})}),W=U.step.label,Q=Z._gd._fullLayout._meta;return Q&&(W=_.templateString(W,Q)),q.call(y.font,Z.font).text(W).call(l.convertToTspans,Z._gd),q}function C($,U){var Z=_.ensureSingle($,"g",s.labelsClass),q=U._dims,W=Z.selectAll("g."+s.labelGroupClass).data(q.labelSteps);W.enter().append("g").classed(s.labelGroupClass,!0),W.exit().remove(),W.each(function(Q){var X=v.select(this);X.call(T,Q,U),y.setTranslate(X,z(U,Q.fraction),s.tickOffset+U.ticklen+U.font.size*d+s.labelOffset+q.currentValueTotalHeight)})}function A($,U,Z,q,W){var Q=Math.round(q*(Z._stepCount-1)),X=Z._visibleSteps[Q]._index;X!==Z.active&&E($,U,Z,X,!0,W)}function E($,U,Z,q,W,Q){var X=Z.active;Z.active=q,o($.layout,s.name,Z).applyUpdate("active",q);var J=Z.steps[Z.active];U.call(N,Z,Q),U.call(S,Z),$.emit("plotly_sliderchange",{slider:Z,step:Z.steps[Z.active],interaction:W,previousActive:X}),J&&J.method&&W&&(U._nextMethod?(U._nextMethod.step=J,U._nextMethod.doCallback=W,U._nextMethod.doTransition=Q):(U._nextMethod={step:J,doCallback:W,doTransition:Q},U._nextMethodRaf=window.requestAnimationFrame(function(){var ee=U._nextMethod.step;ee.method&&(ee.execute&&f.executeAPICommand($,ee.method,ee.args),U._nextMethod=null,U._nextMethodRaf=null)})))}function M($,U,Z){if(!U._context.staticPlot){var q=Z.node(),W=v.select(U);$.on("mousedown",X),$.on("touchstart",X)}function Q(){return Z.data()[0]}function X(){var J=Q();U.emit("plotly_sliderstart",{slider:J});var ee=Z.select("."+s.gripRectClass);v.event.stopPropagation(),v.event.preventDefault(),ee.call(n.fill,J.activebgcolor);var le=F(J,v.mouse(q)[0]);function oe(){var ce=Q(),ae=F(ce,v.mouse(q)[0]);A(U,Z,ce,ae,!1)}function se(){var ce=Q();ce._dragging=!1,ee.call(n.fill,ce.bgcolor),W.on("mouseup",null),W.on("mousemove",null),W.on("touchend",null),W.on("touchmove",null),U.emit("plotly_sliderend",{slider:ce,step:ce.steps[ce.active]})}A(U,Z,J,le,!0),J._dragging=!0,W.on("mousemove",oe),W.on("touchmove",oe),W.on("mouseup",se),W.on("touchend",se)}}function I($,U){var Z=$.selectAll("rect."+s.tickRectClass).data(U._visibleSteps),q=U._dims;Z.enter().append("rect").classed(s.tickRectClass,!0),Z.exit().remove(),Z.attr({width:U.tickwidth+"px","shape-rendering":"crispEdges"}),Z.each(function(W,Q){var X=Q%q.labelStride==0,J=v.select(this);J.attr({height:X?U.ticklen:U.minorticklen}).call(n.fill,U.tickcolor),y.setTranslate(J,z(U,Q/(U._stepCount-1))-.5*U.tickwidth,(X?s.tickOffset:s.minorTickOffset)+q.currentValueTotalHeight)})}function N($,U,Z){for(var q=$.select("rect."+s.gripRectClass),W=0,Q=0;Q<U._stepCount;Q++)if(U._visibleSteps[Q]._index===U.active){W=Q;break}var X=z(U,W/(U._stepCount-1));if(!U._invokingCommand){var J=q;Z&&U.transition.duration>0&&(J=J.transition().duration(U.transition.duration).ease(U.transition.easing)),J.attr("transform",p(X-.5*s.gripWidth,U._dims.currentValueTotalHeight))}}function z($,U){var Z=$._dims;return Z.inputAreaStart+s.stepInset+(Z.inputAreaLength-2*s.stepInset)*Math.min(1,Math.max(0,U))}function F($,U){var Z=$._dims;return Math.min(1,Math.max(0,(U-s.stepInset-Z.inputAreaStart)/(Z.inputAreaLength-2*s.stepInset-2*Z.inputAreaStart)))}function R($,U,Z){var q=Z._dims,W=_.ensureSingle($,"rect",s.railTouchRectClass,function(Q){Q.call(M,U,$,Z).style("pointer-events","all")});W.attr({width:q.inputAreaLength,height:Math.max(q.inputAreaWidth,s.tickOffset+Z.ticklen+q.labelHeight)}).call(n.fill,Z.bgcolor).attr("opacity",0),y.setTranslate(W,0,q.currentValueTotalHeight)}function V($,U){var Z=U._dims,q=Z.inputAreaLength-2*s.railInset,W=_.ensureSingle($,"rect",s.railRectClass);W.attr({width:q,height:s.railWidth,rx:s.railRadius,ry:s.railRadius,"shape-rendering":"crispEdges"}).call(n.stroke,U.bordercolor).call(n.fill,U.bgcolor).style("stroke-width",U.borderwidth+"px"),y.setTranslate(W,s.railInset,.5*(Z.inputAreaWidth-s.railWidth)+Z.currentValueTotalHeight)}c.exports=function($){var U=$._context.staticPlot,Z=$._fullLayout,q=function(le,oe){for(var se=le[s.name],ce=[],ae=0;ae<se.length;ae++){var ne=se[ae];ne.visible&&(ne._gd=oe,ce.push(ne))}return ce}(Z,$),W=Z._infolayer.selectAll("g."+s.containerClassName).data(q.length>0?[0]:[]);function Q(le){le._commandObserver&&(le._commandObserver.remove(),delete le._commandObserver),f.autoMargin($,b(le))}if(W.enter().append("g").classed(s.containerClassName,!0).style("cursor",U?null:"ew-resize"),W.exit().each(function(){v.select(this).selectAll("g."+s.groupClassName).each(Q)}).remove(),q.length!==0){var X=W.selectAll("g."+s.groupClassName).data(q,w);X.enter().append("g").classed(s.groupClassName,!0),X.exit().each(Q).remove();for(var J=0;J<q.length;J++){var ee=q[J];x($,ee)}X.each(function(le){var oe=v.select(this);(function(se){var ce=se._dims;ce.labelSteps=[];for(var ae=se._stepCount,ne=0;ne<ae;ne+=ce.labelStride)ce.labelSteps.push({fraction:ne/(ae-1),step:se._visibleSteps[ne]})})(le),f.manageCommandObserver($,le,le._visibleSteps,function(se){var ce=oe.data()[0];ce.active!==se.index&&(ce._dragging||E($,oe,ce,se.index,!1,!0))}),function(se,ce,ae){(ae.steps[ae.active]||{}).visible||(ae.active=ae._visibleSteps[0]._index),ce.call(S,ae).call(V,ae).call(C,ae).call(I,ae).call(R,se,ae).call(k,se,ae);var ne=ae._dims;y.setTranslate(ce,ne.lx+ae.pad.l,ne.ly+ae.pad.t),ce.call(N,ae,!1),ce.call(S,ae)}($,v.select(this),le)})}}},15359:function(c,m,a){var v=a(64194);c.exports={moduleType:"component",name:v.name,layoutAttributes:a(8606),supplyLayoutDefaults:a(74537),draw:a(44097)}},17240:function(c,m,a){var v=a(45568),f=a(10721),n=a(44122),y=a(33626),_=a(34809),p=_.strTranslate,l=a(62203),o=a(78766),s=a(30635),u=a(20438),d=a(4530).OPPOSITE_SIDE,h=/ [XY][0-9]* /;c.exports={draw:function(g,b,w){var x,S=g._fullLayout,k=w.propContainer,T=w.propName,C=w.placeholder,A=w.traceIndex,E=w.avoid||{},M=w.attributes,I=w.transform,N=w.containerGroup,z=1,F=k.title,R=(F&&F.text?F.text:"").trim(),V=!1,$=F&&F.font?F.font:{},U=$.family,Z=$.size,q=$.color,W=$.weight,Q=$.style,X=$.variant,J=$.textcase,ee=$.lineposition,le=$.shadow,oe=!!w.subtitlePropName,se=w.subtitlePlaceholder,ce=(k.title||{}).subtitle||{text:"",font:{}},ae=ce.text.trim(),ne=!1,ie=1,ue=ce.font,he=ue.family,pe=ue.size,me=ue.color,_e=ue.weight,xe=ue.style,we=ue.variant,Ee=ue.textcase,Pe=ue.lineposition,$e=ue.shadow;T==="title.text"?x="titleText":T.indexOf("axis")!==-1?x="axisTitleText":T.indexOf(!0)&&(x="colorbarTitleText");var Te=g._context.edits[x];function Ce(je,Ze){return je!==void 0&&Ze!==void 0&&je.replace(h," % ")===Ze.replace(h," % ")}R===""?z=0:Ce(R,C)&&(Te||(R=""),z=.2,V=!0),oe&&(ae===""?ie=0:Ce(ae,se)&&(Te||(ae=""),ie=.2,ne=!0)),w._meta?R=_.templateString(R,w._meta):S._meta&&(R=_.templateString(R,S._meta));var ye,ge=R||ae||Te;N||(N=_.ensureSingle(S._infolayer,"g","g-"+b),ye=S._hColorbarMoveTitle);var Me=N.selectAll("text."+b).data(ge?[0]:[]);Me.enter().append("text"),Me.text(R).attr("class",b),Me.exit().remove();var Se=null,ze=b+"-subtitle",Fe=ae||Te;if(oe&&Fe&&((Se=N.selectAll("text."+ze).data(Fe?[0]:[])).enter().append("text"),Se.text(ae).attr("class",ze),Se.exit().remove()),!ge)return N;function De(je,Ze){_.syncOrAsync([Ue,Ne],{title:je,subtitle:Ze})}function Ue(je){var Ze,Ye=je.title,it=je.subtitle;if(!I&&ye&&(I={}),I?(Ze="",I.rotate&&(Ze+="rotate("+[I.rotate,M.x,M.y]+")"),(I.offset||ye)&&(Ze+=p(0,(I.offset||0)-(ye||0)))):Ze=null,Ye.attr("transform",Ze),Ye.style("opacity",z*o.opacity(q)).call(l.font,{color:o.rgb(q),size:v.round(Z,2),family:U,weight:W,style:Q,variant:X,textcase:J,shadow:le,lineposition:ee}).attr(M).call(s.convertToTspans,g,function(ot){if(ot){var tt=v.select(ot.node().parentNode).select("."+ze);if(!tt.empty()){var vt=ot.node().getBBox();if(vt.height){var At=vt.y+vt.height+1.6*pe;tt.attr("y",At)}}}}),it){var dt=N.select("."+b+"-math-group"),ut=Ye.node().getBBox(),It=dt.node()?dt.node().getBBox():void 0,Ot=It?It.y+It.height+1.6*pe:ut.y+ut.height+1.6*pe,Ft=_.extendFlat({},M,{y:Ot});it.attr("transform",Ze),it.style("opacity",ie*o.opacity(me)).call(l.font,{color:o.rgb(me),size:v.round(pe,2),family:he,weight:_e,style:xe,variant:we,textcase:Ee,shadow:$e,lineposition:Pe}).attr(Ft).call(s.convertToTspans,g)}return n.previousPromises(g)}function Ne(je){var Ze=je.title,Ye=v.select(Ze.node().parentNode);if(E&&E.selection&&E.side&&R){Ye.attr("transform",null);var it=d[E.side],dt=E.side==="left"||E.side==="top"?-1:1,ut=f(E.pad)?E.pad:2,It=l.bBox(Ye.node()),Ot={t:0,b:0,l:0,r:0},Ft=g._fullLayout._reservedMargin;for(var ot in Ft)for(var tt in Ft[ot]){var vt=Ft[ot][tt];Ot[tt]=Math.max(Ot[tt],vt)}var At={left:Ot.l,top:Ot.t,right:S.width-Ot.r,bottom:S.height-Ot.b},Dt=E.maxShift||dt*(At[E.side]-It[E.side]),Pt=0;if(Dt<0)Pt=Dt;else{var et=E.offsetLeft||0,rt=E.offsetTop||0;It.left-=et,It.right-=et,It.top-=rt,It.bottom-=rt,E.selection.each(function(){var nt=l.bBox(this);_.bBoxIntersect(It,nt,ut)&&(Pt=Math.max(Pt,dt*(nt[E.side]-It[it])+ut))}),Pt=Math.min(Dt,Pt),k._titleScoot=Math.abs(Pt)}if(Pt>0||Dt<0){var We={left:[-Pt,0],right:[Pt,0],top:[0,-Pt],bottom:[0,Pt]}[E.side];Ye.attr("transform",p(We[0],We[1]))}}}function ke(je,Ze){je.text(Ze).on("mouseover.opacity",function(){v.select(this).transition().duration(u.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){v.select(this).transition().duration(u.HIDE_PLACEHOLDER).style("opacity",0)})}if(Me.call(De,Se),Te&&(R?Me.on(".opacity",null):(ke(Me,C),V=!0),Me.call(s.makeEditable,{gd:g}).on("edit",function(je){A!==void 0?y.call("_guiRestyle",g,T,je,A):y.call("_guiRelayout",g,T,je)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(De)}).on("input",function(je){this.text(je||" ").call(s.positionText,M.x,M.y)}),oe)){if(oe&&!R){var Oe=Me.node().getBBox(),Re=Oe.y+Oe.height+1.6*pe;Se.attr("y",Re)}ae?Se.on(".opacity",null):(ke(Se,se),ne=!0),Se.call(s.makeEditable,{gd:g}).on("edit",function(je){y.call("_guiRelayout",g,"title.subtitle.text",je)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(De)}).on("input",function(je){this.text(je||" ").call(s.positionText,Se.attr("x"),Se.attr("y"))})}return Me.classed("js-placeholder",V),Se&&Se.classed("js-placeholder",ne),N},SUBTITLE_PADDING_EM:1.6,SUBTITLE_PADDING_MATHJAX_EM:1.6}},85389:function(c,m,a){var v=a(80337),f=a(10229),n=a(93049).extendFlat,y=a(13582).overrideAll,_=a(57891),p=a(78032).templatedArray,l=p("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});c.exports=y(p("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:l,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:n(_({editType:"arraydraw"}),{}),font:v({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:f.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},71559:function(c){c.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},42746:function(c,m,a){var v=a(34809),f=a(59008),n=a(85389),y=a(71559).name,_=n.buttons;function p(o,s,u){function d(h,g){return v.coerce(o,s,n,h,g)}d("visible",f(o,s,{name:"buttons",handleItemDefaults:l}).length>0)&&(d("active"),d("direction"),d("type"),d("showactive"),d("x"),d("y"),v.noneOrAll(o,s,["x","y"]),d("xanchor"),d("yanchor"),d("pad.t"),d("pad.r"),d("pad.b"),d("pad.l"),v.coerceFont(d,"font",u.font),d("bgcolor",u.paper_bgcolor),d("bordercolor"),d("borderwidth"))}function l(o,s){function u(d,h){return v.coerce(o,s,_,d,h)}u("visible",o.method==="skip"||Array.isArray(o.args))&&(u("method"),u("args"),u("args2"),u("label"),u("execute"))}c.exports=function(o,s){f(o,s,{name:y,handleItemDefaults:p})}},40974:function(c,m,a){var v=a(45568),f=a(44122),n=a(78766),y=a(62203),_=a(34809),p=a(30635),l=a(78032).arrayEditor,o=a(4530).LINE_SPACING,s=a(71559),u=a(21736);function d(z){return z._index}function h(z,F){return+z.attr(s.menuIndexAttrName)===F._index}function g(z,F,R,V,$,U,Z,q){F.active=Z,l(z.layout,s.name,F).applyUpdate("active",Z),F.type==="buttons"?w(z,V,null,null,F):F.type==="dropdown"&&($.attr(s.menuIndexAttrName,"-1"),b(z,V,$,U,F),q||w(z,V,$,U,F))}function b(z,F,R,V,$){var U=_.ensureSingle(F,"g",s.headerClassName,function(J){J.style("pointer-events","all")}),Z=$._dims,q=$.active,W=$.buttons[q]||s.blankHeaderOpts,Q={y:$.pad.t,yPad:0,x:$.pad.l,xPad:0,index:0},X={width:Z.headerWidth,height:Z.headerHeight};U.call(x,$,W,z).call(I,$,Q,X),_.ensureSingle(F,"text",s.headerArrowClassName,function(J){J.attr("text-anchor","end").call(y.font,$.font).text(s.arrowSymbol[$.direction])}).attr({x:Z.headerWidth-s.arrowOffsetX+$.pad.l,y:Z.headerHeight/2+s.textOffsetY+$.pad.t}),U.on("click",function(){R.call(N,String(h(R,$)?-1:$._index)),w(z,F,R,V,$)}),U.on("mouseover",function(){U.call(C)}),U.on("mouseout",function(){U.call(A,$)}),y.setTranslate(F,Z.lx,Z.ly)}function w(z,F,R,V,$){R||(R=F).attr("pointer-events","all");var U=function(ce){return+ce.attr(s.menuIndexAttrName)==-1}(R)&&$.type!=="buttons"?[]:$.buttons,Z=$.type==="dropdown"?s.dropdownButtonClassName:s.buttonClassName,q=R.selectAll("g."+Z).data(_.filterVisible(U)),W=q.enter().append("g").classed(Z,!0),Q=q.exit();$.type==="dropdown"?(W.attr("opacity","0").transition().attr("opacity","1"),Q.transition().attr("opacity","0").remove()):Q.remove();var X=0,J=0,ee=$._dims,le=["up","down"].indexOf($.direction)!==-1;$.type==="dropdown"&&(le?J=ee.headerHeight+s.gapButtonHeader:X=ee.headerWidth+s.gapButtonHeader),$.type==="dropdown"&&$.direction==="up"&&(J=-s.gapButtonHeader+s.gapButton-ee.openHeight),$.type==="dropdown"&&$.direction==="left"&&(X=-s.gapButtonHeader+s.gapButton-ee.openWidth);var oe={x:ee.lx+X+$.pad.l,y:ee.ly+J+$.pad.t,yPad:s.gapButton,xPad:s.gapButton,index:0},se={l:oe.x+$.borderwidth,t:oe.y+$.borderwidth};q.each(function(ce,ae){var ne=v.select(this);ne.call(x,$,ce,z).call(I,$,oe),ne.on("click",function(){v.event.defaultPrevented||(ce.execute&&(ce.args2&&$.active===ae?(g(z,$,0,F,R,V,-1),f.executeAPICommand(z,ce.method,ce.args2)):(g(z,$,0,F,R,V,ae),f.executeAPICommand(z,ce.method,ce.args))),z.emit("plotly_buttonclicked",{menu:$,button:ce,active:$.active}))}),ne.on("mouseover",function(){ne.call(C)}),ne.on("mouseout",function(){ne.call(A,$),q.call(T,$)})}),q.call(T,$),le?(se.w=Math.max(ee.openWidth,ee.headerWidth),se.h=oe.y-se.t):(se.w=oe.x-se.l,se.h=Math.max(ee.openHeight,ee.headerHeight)),se.direction=$.direction,V&&(q.size()?function(ce,ae,ne,ie,ue,he){var pe,me,_e,xe=ue.direction,we=xe==="up"||xe==="down",Ee=ue._dims,Pe=ue.active;if(we)for(me=0,_e=0;_e<Pe;_e++)me+=Ee.heights[_e]+s.gapButton;else for(pe=0,_e=0;_e<Pe;_e++)pe+=Ee.widths[_e]+s.gapButton;ie.enable(he,pe,me),ie.hbar&&ie.hbar.attr("opacity","0").transition().attr("opacity","1"),ie.vbar&&ie.vbar.attr("opacity","0").transition().attr("opacity","1")}(0,0,0,V,$,se):function(ce){var ae=!!ce.hbar,ne=!!ce.vbar;ae&&ce.hbar.transition().attr("opacity","0").each("end",function(){ae=!1,ne||ce.disable()}),ne&&ce.vbar.transition().attr("opacity","0").each("end",function(){ne=!1,ae||ce.disable()})}(V))}function x(z,F,R,V){z.call(S,F).call(k,F,R,V)}function S(z,F){_.ensureSingle(z,"rect",s.itemRectClassName,function(R){R.attr({rx:s.rx,ry:s.ry,"shape-rendering":"crispEdges"})}).call(n.stroke,F.bordercolor).call(n.fill,F.bgcolor).style("stroke-width",F.borderwidth+"px")}function k(z,F,R,V){var $=_.ensureSingle(z,"text",s.itemTextClassName,function(q){q.attr({"text-anchor":"start","data-notex":1})}),U=R.label,Z=V._fullLayout._meta;Z&&(U=_.templateString(U,Z)),$.call(y.font,F.font).text(U).call(p.convertToTspans,V)}function T(z,F){var R=F.active;z.each(function(V,$){var U=v.select(this);$===R&&F.showactive&&U.select("rect."+s.itemRectClassName).call(n.fill,s.activeColor)})}function C(z){z.select("rect."+s.itemRectClassName).call(n.fill,s.hoverColor)}function A(z,F){z.select("rect."+s.itemRectClassName).call(n.fill,F.bgcolor)}function E(z,F){var R=F._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},V=y.tester.selectAll("g."+s.dropdownButtonClassName).data(_.filterVisible(F.buttons));V.enter().append("g").classed(s.dropdownButtonClassName,!0);var $=["up","down"].indexOf(F.direction)!==-1;V.each(function(X,J){var ee=v.select(this);ee.call(x,F,X,z);var le=ee.select("."+s.itemTextClassName),oe=le.node()&&y.bBox(le.node()).width,se=Math.max(oe+s.textPadX,s.minWidth),ce=F.font.size*o,ae=p.lineCount(le),ne=Math.max(ce*ae,s.minHeight)+s.textOffsetY;ne=Math.ceil(ne),se=Math.ceil(se),R.widths[J]=se,R.heights[J]=ne,R.height1=Math.max(R.height1,ne),R.width1=Math.max(R.width1,se),$?(R.totalWidth=Math.max(R.totalWidth,se),R.openWidth=R.totalWidth,R.totalHeight+=ne+s.gapButton,R.openHeight+=ne+s.gapButton):(R.totalWidth+=se+s.gapButton,R.openWidth+=se+s.gapButton,R.totalHeight=Math.max(R.totalHeight,ne),R.openHeight=R.totalHeight)}),$?R.totalHeight-=s.gapButton:R.totalWidth-=s.gapButton,R.headerWidth=R.width1+s.arrowPadX,R.headerHeight=R.height1,F.type==="dropdown"&&($?(R.width1+=s.arrowPadX,R.totalHeight=R.height1):R.totalWidth=R.width1,R.totalWidth+=s.arrowPadX),V.remove();var U=R.totalWidth+F.pad.l+F.pad.r,Z=R.totalHeight+F.pad.t+F.pad.b,q=z._fullLayout._size;R.lx=q.l+q.w*F.x,R.ly=q.t+q.h*(1-F.y);var W="left";_.isRightAnchor(F)&&(R.lx-=U,W="right"),_.isCenterAnchor(F)&&(R.lx-=U/2,W="center");var Q="top";_.isBottomAnchor(F)&&(R.ly-=Z,Q="bottom"),_.isMiddleAnchor(F)&&(R.ly-=Z/2,Q="middle"),R.totalWidth=Math.ceil(R.totalWidth),R.totalHeight=Math.ceil(R.totalHeight),R.lx=Math.round(R.lx),R.ly=Math.round(R.ly),f.autoMargin(z,M(F),{x:F.x,y:F.y,l:U*({right:1,center:.5}[W]||0),r:U*({left:1,center:.5}[W]||0),b:Z*({top:1,middle:.5}[Q]||0),t:Z*({bottom:1,middle:.5}[Q]||0)})}function M(z){return s.autoMarginIdRoot+z._index}function I(z,F,R,V){V=V||{};var $=z.select("."+s.itemRectClassName),U=z.select("."+s.itemTextClassName),Z=F.borderwidth,q=R.index,W=F._dims;y.setTranslate(z,Z+R.x,Z+R.y);var Q=["up","down"].indexOf(F.direction)!==-1,X=V.height||(Q?W.heights[q]:W.height1);$.attr({x:0,y:0,width:V.width||(Q?W.width1:W.widths[q]),height:X});var J=F.font.size*o,ee=(p.lineCount(U)-1)*J/2;p.positionText(U,s.textOffsetX,X/2-ee+s.textOffsetY),Q?R.y+=W.heights[q]+R.yPad:R.x+=W.widths[q]+R.xPad,R.index++}function N(z,F){z.attr(s.menuIndexAttrName,F||"-1").selectAll("g."+s.dropdownButtonClassName).remove()}c.exports=function(z){var F=z._fullLayout,R=_.filterVisible(F[s.name]);function V(J){f.autoMargin(z,M(J))}var $=F._menulayer.selectAll("g."+s.containerClassName).data(R.length>0?[0]:[]);if($.enter().append("g").classed(s.containerClassName,!0).style("cursor","pointer"),$.exit().each(function(){v.select(this).selectAll("g."+s.headerGroupClassName).each(V)}).remove(),R.length!==0){var U=$.selectAll("g."+s.headerGroupClassName).data(R,d);U.enter().append("g").classed(s.headerGroupClassName,!0);for(var Z=_.ensureSingle($,"g",s.dropdownButtonGroupClassName,function(J){J.style("pointer-events","all")}),q=0;q<R.length;q++){var W=R[q];E(z,W)}var Q="updatemenus"+F._uid,X=new u(z,Z,Q);U.enter().size()&&(Z.node().parentNode.appendChild(Z.node()),Z.call(N)),U.exit().each(function(J){Z.call(N),V(J)}).remove(),U.each(function(J){var ee=v.select(this),le=J.type==="dropdown"?Z:null;f.manageCommandObserver(z,J,J.buttons,function(oe){g(z,J,J.buttons[oe.index],ee,le,X,oe.index,!0)}),J.type==="dropdown"?(b(z,ee,Z,X,J),h(Z,J)&&w(z,ee,Z,X,J)):w(z,ee,null,null,J)})}}},46230:function(c,m,a){var v=a(71559);c.exports={moduleType:"component",name:v.name,layoutAttributes:a(85389),supplyLayoutDefaults:a(42746),draw:a(40974)}},21736:function(c,m,a){c.exports=_;var v=a(45568),f=a(78766),n=a(62203),y=a(34809);function _(p,l,o){this.gd=p,this.container=l,this.id=o,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}_.barWidth=2,_.barLength=20,_.barRadius=2,_.barPad=1,_.barColor="#808BA4",_.prototype.enable=function(p,l,o){var s=this.gd._fullLayout,u=s.width,d=s.height;this.position=p;var h,g,b,w,x=this.position.l,S=this.position.w,k=this.position.t,T=this.position.h,C=this.position.direction,A=C==="down",E=C==="left",M=C==="up",I=S,N=T;A||E||C==="right"||M||(this.position.direction="down",A=!0),A||M?(g=(h=x)+I,A?(b=k,N=(w=Math.min(b+N,d))-b):N=(w=k+N)-(b=Math.max(w-N,0))):(w=(b=k)+N,E?I=(g=x+I)-(h=Math.max(g-I,0)):(h=x,I=(g=Math.min(h+I,u))-h)),this._box={l:h,t:b,w:I,h:N};var z=S>I,F=_.barLength+2*_.barPad,R=_.barWidth+2*_.barPad,V=x,$=k+T;$+R>d&&($=d-R);var U=this.container.selectAll("rect.scrollbar-horizontal").data(z?[0]:[]);U.exit().on(".drag",null).remove(),U.enter().append("rect").classed("scrollbar-horizontal",!0).call(f.fill,_.barColor),z?(this.hbar=U.attr({rx:_.barRadius,ry:_.barRadius,x:V,y:$,width:F,height:R}),this._hbarXMin=V+F/2,this._hbarTranslateMax=I-F):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var Z=T>N,q=_.barWidth+2*_.barPad,W=_.barLength+2*_.barPad,Q=x+S,X=k;Q+q>u&&(Q=u-q);var J=this.container.selectAll("rect.scrollbar-vertical").data(Z?[0]:[]);J.exit().on(".drag",null).remove(),J.enter().append("rect").classed("scrollbar-vertical",!0).call(f.fill,_.barColor),Z?(this.vbar=J.attr({rx:_.barRadius,ry:_.barRadius,x:Q,y:X,width:q,height:W}),this._vbarYMin=X+W/2,this._vbarTranslateMax=N-W):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var ee=this.id,le=h-.5,oe=Z?g+q+.5:g+.5,se=b-.5,ce=z?w+R+.5:w+.5,ae=s._topdefs.selectAll("#"+ee).data(z||Z?[0]:[]);if(ae.exit().remove(),ae.enter().append("clipPath").attr("id",ee).append("rect"),z||Z?(this._clipRect=ae.select("rect").attr({x:Math.floor(le),y:Math.floor(se),width:Math.ceil(oe)-Math.floor(le),height:Math.ceil(ce)-Math.floor(se)}),this.container.call(n.setClipUrl,ee,this.gd),this.bg.attr({x,y:k,width:S,height:T})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(n.setClipUrl,null),delete this._clipRect),z||Z){var ne=v.behavior.drag().on("dragstart",function(){v.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ne);var ie=v.behavior.drag().on("dragstart",function(){v.event.sourceEvent.preventDefault(),v.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));z&&this.hbar.on(".drag",null).call(ie),Z&&this.vbar.on(".drag",null).call(ie)}this.setTranslate(l,o)},_.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(n.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},_.prototype._onBoxDrag=function(){var p=this.translateX,l=this.translateY;this.hbar&&(p-=v.event.dx),this.vbar&&(l-=v.event.dy),this.setTranslate(p,l)},_.prototype._onBoxWheel=function(){var p=this.translateX,l=this.translateY;this.hbar&&(p+=v.event.deltaY),this.vbar&&(l+=v.event.deltaY),this.setTranslate(p,l)},_.prototype._onBarDrag=function(){var p=this.translateX,l=this.translateY;if(this.hbar){var o=p+this._hbarXMin,s=o+this._hbarTranslateMax;p=(y.constrain(v.event.x,o,s)-o)/(s-o)*(this.position.w-this._box.w)}if(this.vbar){var u=l+this._vbarYMin,d=u+this._vbarTranslateMax;l=(y.constrain(v.event.y,u,d)-u)/(d-u)*(this.position.h-this._box.h)}this.setTranslate(p,l)},_.prototype.setTranslate=function(p,l){var o=this.position.w-this._box.w,s=this.position.h-this._box.h;if(p=y.constrain(p||0,0,o),l=y.constrain(l||0,0,s),this.translateX=p,this.translateY=l,this.container.call(n.setTranslate,this._box.l-this.position.l-p,this._box.t-this.position.t-l),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+p-.5),y:Math.floor(this.position.t+l-.5)}),this.hbar){var u=p/o;this.hbar.call(n.setTranslate,p+u*this._hbarTranslateMax,l)}if(this.vbar){var d=l/s;this.vbar.call(n.setTranslate,p,l+d*this._vbarTranslateMax)}}},4530:function(c){c.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},35081:function(c){c.exports={axisRefDescription:function(m,a,v){return["If set to a",m,"axis id (e.g. *"+m+"* or","*"+m+"2*), the `"+m+"` position refers to a",m,"coordinate. If set to *paper*, the `"+m+"`","position refers to the distance from the",a,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",a,"("+v+"). If set to a",m,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",a,"of the domain of that axis: e.g.,","*"+m+"2 domain* refers to the domain of the second",m," axis and a",m,"position of 0.5 refers to the","point between the",a,"and the",v,"of the domain of the","second",m,"axis."].join(" ")}}},20909:function(c){c.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},87296:function(c){c.exports={FORMAT_LINK:"https://github.com/d3/d3-format/tree/v1.4.5#d3-format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format"}},20726:function(c){c.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},84770:function(c){c.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},49467:function(c){c.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},20438:function(c){c.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},63821:function(c){c.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},1837:function(c,m){m.CSS_DECLARATIONS=[["image-rendering","optimizeSpeed"],["image-rendering","-moz-crisp-edges"],["image-rendering","-o-crisp-edges"],["image-rendering","-webkit-optimize-contrast"],["image-rendering","optimize-contrast"],["image-rendering","crisp-edges"],["image-rendering","pixelated"]],m.STYLE=m.CSS_DECLARATIONS.map(function(a){return a.join(": ")+"; "}).join("")},62972:function(c,m){m.xmlns="http://www.w3.org/2000/xmlns/",m.svg="http://www.w3.org/2000/svg",m.xlink="http://www.w3.org/1999/xlink",m.svgAttrs={xmlns:m.svg,"xmlns:xlink":m.xlink}},17430:function(c,m,a){m.version=a(29697).version,a(71116),a(6713);for(var v=a(33626),f=m.register=v.register,n=a(90742),y=Object.keys(n),_=0;_<y.length;_++){var p=y[_];p.charAt(0)!=="_"&&(m[p]=n[p]),f({moduleType:"apiMethod",name:p,fn:n[p]})}f(a(69693)),f([a(3599),a(83348),a(44844),a(43701),a(15553),a(46230),a(15359),a(55429),a(44453),a(83595),a(77901),a(88856),a(96919),a(82494),a(32141),a(95433)]),f([a(30227),a(44611)]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(f(window.PlotlyLocales),delete window.PlotlyLocales),m.Icons=a(35188);var l=a(32141),o=a(44122);m.Plots={resize:o.resize,graphJson:o.graphJson,sendDataToCloud:o.sendDataToCloud},m.Fx={hover:l.hover,unhover:l.unhover,loneHover:l.loneHover,loneUnhover:l.loneUnhover},m.Snapshot=a(6170),m.PlotSchema=a(57297)},35188:function(c){c.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:["<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'>","<defs>"," <style>"," .cls-0{fill:#000;}"," .cls-1{fill:#FFF;}"," .cls-2{fill:#F26;}"," .cls-3{fill:#D69;}"," .cls-4{fill:#BAC;}"," .cls-5{fill:#9EF;}"," </style>","</defs>"," <title>plotly-logomark</title>"," <g id='symbol'>"," <rect class='cls-0' x='0' y='0' width='132' height='132' rx='18' ry='18'/>"," <circle class='cls-5' cx='102' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='30' r='6'/>"," <circle class='cls-4' cx='78' cy='54' r='6'/>"," <circle class='cls-3' cx='54' cy='30' r='6'/>"," <circle class='cls-2' cx='30' cy='30' r='6'/>"," <circle class='cls-2' cx='30' cy='54' r='6'/>"," <path class='cls-1' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/>"," <path class='cls-1' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/>"," <path class='cls-1' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/>"," <path class='cls-1' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/>"," </g>","</svg>"].join("")}}},32546:function(c,m){m.isLeftAnchor=function(a){return a.xanchor==="left"||a.xanchor==="auto"&&a.x<=.3333333333333333},m.isCenterAnchor=function(a){return a.xanchor==="center"||a.xanchor==="auto"&&a.x>.3333333333333333&&a.x<.6666666666666666},m.isRightAnchor=function(a){return a.xanchor==="right"||a.xanchor==="auto"&&a.x>=.6666666666666666},m.isTopAnchor=function(a){return a.yanchor==="top"||a.yanchor==="auto"&&a.y>=.6666666666666666},m.isMiddleAnchor=function(a){return a.yanchor==="middle"||a.yanchor==="auto"&&a.y>.3333333333333333&&a.y<.6666666666666666},m.isBottomAnchor=function(a){return a.yanchor==="bottom"||a.yanchor==="auto"&&a.y<=.3333333333333333}},44313:function(c,m,a){var v=a(98953),f=v.mod,n=v.modHalf,y=Math.PI,_=2*y;function p(u){return Math.abs(u[1]-u[0])>_-1e-14}function l(u,d){return n(d-u,_)}function o(u,d){if(p(d))return!0;var h,g;d[0]<d[1]?(h=d[0],g=d[1]):(h=d[1],g=d[0]),(h=f(h,_))>(g=f(g,_))&&(g+=_);var b=f(u,_),w=b+_;return b>=h&&b<=g||w>=h&&w<=g}function s(u,d,h,g,b,w,x){b=b||0,w=w||0;var S,k,T,C,A,E=p([h,g]);function M(F,R){return[F*Math.cos(R)+b,w-F*Math.sin(R)]}E?(S=0,k=y,T=_):h<g?(S=h,T=g):(S=g,T=h),u<d?(C=u,A=d):(C=d,A=u);var I,N=Math.abs(T-S)<=y?0:1;function z(F,R,V){return"A"+[F,F]+" "+[0,N,V]+" "+M(F,R)}return E?I=C===null?"M"+M(A,S)+z(A,k,0)+z(A,T,0)+"Z":"M"+M(C,S)+z(C,k,0)+z(C,T,0)+"ZM"+M(A,S)+z(A,k,1)+z(A,T,1)+"Z":C===null?(I="M"+M(A,S)+z(A,T,0),x&&(I+="L0,0Z")):I="M"+M(C,S)+"L"+M(A,S)+z(A,T,0)+"L"+M(C,T)+z(C,S,1)+"Z",I}c.exports={deg2rad:function(u){return u/180*y},rad2deg:function(u){return u/y*180},angleDelta:l,angleDist:function(u,d){return Math.abs(l(u,d))},isFullCircle:p,isAngleInsideSector:o,isPtInsideSector:function(u,d,h,g){return!!o(d,g)&&(h[0]<h[1]?(b=h[0],w=h[1]):(b=h[1],w=h[0]),u>=b&&u<=w);var b,w},pathArc:function(u,d,h,g,b){return s(null,u,d,h,g,b,0)},pathSector:function(u,d,h,g,b){return s(null,u,d,h,g,b,1)},pathAnnulus:function(u,d,h,g,b,w){return s(u,d,h,g,b,w,1)}}},87800:function(c,m,a){var v=a(93229).decode,f=a(56174),n=Array.isArray,y=ArrayBuffer,_=DataView;function p(d){return y.isView(d)&&!(d instanceof _)}function l(d){return n(d)||p(d)}m.isTypedArray=p,m.isArrayOrTypedArray=l,m.isArray1D=function(d){return!l(d[0])},m.ensureArray=function(d,h){return n(d)||(d=[]),d.length=h,d};var o={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};function s(d){return d.constructor===ArrayBuffer}function u(d,h,g){if(l(d)){if(l(d[0])){for(var b=g,w=0;w<d.length;w++)b=h(b,d[w].length);return b}return d.length}return 0}o.uint8c=o.u1c,o.uint8=o.u1,o.int8=o.i1,o.uint16=o.u2,o.int16=o.i2,o.uint32=o.u4,o.int32=o.i4,o.float32=o.f4,o.float64=o.f8,m.isArrayBuffer=s,m.decodeTypedArraySpec=function(d){var h=[],g=function(F){return{bdata:F.bdata,dtype:F.dtype,shape:F.shape}}(d),b=g.dtype,w=o[b];if(!w)throw new Error('Error in dtype: "'+b+'"');var x=w.BYTES_PER_ELEMENT,S=g.bdata;s(S)||(S=v(S));var k=g.shape===void 0?[S.byteLength/x]:(""+g.shape).split(",");k.reverse();var T,C,A=k.length,E=+k[0],M=x*E,I=0;if(A===1)h=new w(S);else if(A===2)for(T=+k[1],C=0;C<T;C++)h[C]=new w(S,I,E),I+=M;else{if(A!==3)throw new Error("ndim: "+A+'is not supported with the shape:"'+g.shape+'"');T=+k[1];for(var N=+k[2],z=0;z<N;z++)for(h[z]=[],C=0;C<T;C++)h[z][C]=new w(S,I,E),I+=M}return h.bdata=g.bdata,h.dtype=g.dtype,h.shape=k.reverse().join(","),d._inputArray=h,h},m.isTypedArraySpec=function(d){return f(d)&&d.hasOwnProperty("dtype")&&typeof d.dtype=="string"&&d.hasOwnProperty("bdata")&&(typeof d.bdata=="string"||s(d.bdata))&&(d.shape===void 0||d.hasOwnProperty("shape")&&(typeof d.shape=="string"||typeof d.shape=="number"))},m.concat=function(){var d,h,g,b,w,x,S,k,T=[],C=!0,A=0;for(g=0;g<arguments.length;g++)(x=(b=arguments[g]).length)&&(h?T.push(b):(h=b,w=x),n(b)?d=!1:(C=!1,A?d!==b.constructor&&(d=!1):d=b.constructor),A+=x);if(!A)return[];if(!T.length)return h;if(C)return h.concat.apply(h,T);if(d){for((S=new d(A)).set(h),g=0;g<T.length;g++)b=T[g],S.set(b,w),w+=b.length;return S}for(S=new Array(A),k=0;k<h.length;k++)S[k]=h[k];for(g=0;g<T.length;g++){for(b=T[g],k=0;k<b.length;k++)S[w+k]=b[k];w+=k}return S},m.maxRowLength=function(d){return u(d,Math.max,0)},m.minRowLength=function(d){return u(d,Math.min,1/0)}},44498:function(c,m,a){var v=a(10721),f=a(63821).BADNUM,n=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;c.exports=function(y){return typeof y=="string"&&(y=y.replace(n,"")),v(y)?Number(y):f}},34823:function(c){c.exports=function(m){var a=m._fullLayout;a._glcanvas&&a._glcanvas.size()&&a._glcanvas.each(function(v){v.regl&&v.regl.clear({color:!0,depth:!0})})}},23493:function(c){c.exports=function(m){m._responsiveChartHandler&&(window.removeEventListener("resize",m._responsiveChartHandler),delete m._responsiveChartHandler)}},34220:function(c,m,a){var v=a(10721),f=a(65657),n=a(93049).extendFlat,y=a(9829),_=a(19017),p=a(78766),l=a(20438).DESELECTDIM,o=a(35632),s=a(90694).counter,u=a(98953).modHalf,d=a(87800).isArrayOrTypedArray,h=a(87800).isTypedArraySpec,g=a(87800).decodeTypedArraySpec;function b(w,x){var S=m.valObjectMeta[x.valType];if(x.arrayOk&&d(w))return!0;if(S.validateFunction)return S.validateFunction(w,x);var k={},T=k,C={set:function(A){T=A}};return S.coerceFunction(w,C,k,x),T!==k}m.valObjectMeta={data_array:{coerceFunction:function(w,x,S){x.set(d(w)?w:h(w)?g(w):S)}},enumerated:{coerceFunction:function(w,x,S,k){k.coerceNumber&&(w=+w),k.values.indexOf(w)===-1?x.set(S):x.set(w)},validateFunction:function(w,x){x.coerceNumber&&(w=+w);for(var S=x.values,k=0;k<S.length;k++){var T=String(S[k]);if(T.charAt(0)==="/"&&T.charAt(T.length-1)==="/"){if(new RegExp(T.substr(1,T.length-2)).test(w))return!0}else if(w===S[k])return!0}return!1}},boolean:{coerceFunction:function(w,x,S){w===!0||w===!1?x.set(w):x.set(S)}},number:{coerceFunction:function(w,x,S,k){h(w)&&(w=g(w)),!v(w)||k.min!==void 0&&w<k.min||k.max!==void 0&&w>k.max?x.set(S):x.set(+w)}},integer:{coerceFunction:function(w,x,S,k){(k.extras||[]).indexOf(w)===-1?(h(w)&&(w=g(w)),w%1||!v(w)||k.min!==void 0&&w<k.min||k.max!==void 0&&w>k.max?x.set(S):x.set(+w)):x.set(w)}},string:{coerceFunction:function(w,x,S,k){if(typeof w!="string"){var T=typeof w=="number";k.strict!==!0&&T?x.set(String(w)):x.set(S)}else k.noBlank&&!w?x.set(S):x.set(w)}},color:{coerceFunction:function(w,x,S){h(w)&&(w=g(w)),f(w).isValid()?x.set(w):x.set(S)}},colorlist:{coerceFunction:function(w,x,S){Array.isArray(w)&&w.length&&w.every(function(k){return f(k).isValid()})?x.set(w):x.set(S)}},colorscale:{coerceFunction:function(w,x,S){x.set(_.get(w,S))}},angle:{coerceFunction:function(w,x,S){h(w)&&(w=g(w)),w==="auto"?x.set("auto"):v(w)?x.set(u(+w,360)):x.set(S)}},subplotid:{coerceFunction:function(w,x,S,k){var T=k.regex||s(S);typeof w=="string"&&T.test(w)?x.set(w):x.set(S)},validateFunction:function(w,x){var S=x.dflt;return w===S||typeof w=="string"&&!!s(S).test(w)}},flaglist:{coerceFunction:function(w,x,S,k){if((k.extras||[]).indexOf(w)===-1)if(typeof w=="string"){for(var T=w.split("+"),C=0;C<T.length;){var A=T[C];k.flags.indexOf(A)===-1||T.indexOf(A)<C?T.splice(C,1):C++}T.length?x.set(T.join("+")):x.set(S)}else x.set(S);else x.set(w)}},any:{coerceFunction:function(w,x,S){w===void 0?x.set(S):x.set(h(w)?g(w):w)}},info_array:{coerceFunction:function(w,x,S,k){function T(q,W,Q){var X,J={set:function(ee){X=ee}};return Q===void 0&&(Q=W.dflt),m.valObjectMeta[W.valType].coerceFunction(q,J,Q,W),X}if(h(w)&&(w=g(w)),d(w)){var C,A,E,M,I,N,z=k.dimensions===2||k.dimensions==="1-2"&&Array.isArray(w)&&d(w[0]),F=k.items,R=[],V=Array.isArray(F),$=V&&z&&d(F[0]),U=z&&V&&!$,Z=V&&!U?F.length:w.length;if(S=Array.isArray(S)?S:[],z)for(C=0;C<Z;C++)for(R[C]=[],E=d(w[C])?w[C]:[],I=U?F.length:V?F[C].length:E.length,A=0;A<I;A++)M=U?F[A]:V?F[C][A]:F,(N=T(E[A],M,(S[C]||[])[A]))!==void 0&&(R[C][A]=N);else for(C=0;C<Z;C++)(N=T(w[C],V?F[C]:F,S[C]))!==void 0&&(R[C]=N);x.set(R)}else x.set(S)},validateFunction:function(w,x){if(!d(w))return!1;var S=x.items,k=Array.isArray(S),T=x.dimensions===2;if(!x.freeLength&&w.length!==S.length)return!1;for(var C=0;C<w.length;C++)if(T){if(!d(w[C])||!x.freeLength&&w[C].length!==S[C].length)return!1;for(var A=0;A<w[C].length;A++)if(!b(w[C][A],k?S[C][A]:S))return!1}else if(!b(w[C],k?S[C]:S))return!1;return!0}}},m.coerce=function(w,x,S,k,T){var C=o(S,k).get(),A=o(w,k),E=o(x,k),M=A.get(),I=x._template;if(M===void 0&&I&&(M=o(I,k).get(),I=0),T===void 0&&(T=C.dflt),C.arrayOk){if(d(M))return E.set(M),M;if(h(M))return M=g(M),E.set(M),M}var N=m.valObjectMeta[C.valType].coerceFunction;N(M,E,T,C);var z=E.get();return I&&z===T&&!b(M,C)&&(N(M=o(I,k).get(),E,T,C),z=E.get()),z},m.coerce2=function(w,x,S,k,T){var C=o(w,k),A=m.coerce(w,x,S,k,T);return C.get()!=null&&A},m.coerceFont=function(w,x,S,k){k||(k={}),S=n({},S);var T={family:w(x+".family",(S=n(S,k.overrideDflt||{})).family),size:w(x+".size",S.size),color:w(x+".color",S.color),weight:w(x+".weight",S.weight),style:w(x+".style",S.style)};if(k.noFontVariant||(T.variant=w(x+".variant",S.variant)),k.noFontLineposition||(T.lineposition=w(x+".lineposition",S.lineposition)),k.noFontTextcase||(T.textcase=w(x+".textcase",S.textcase)),!k.noFontShadow){var C=S.shadow;C==="none"&&k.autoShadowDflt&&(C="auto"),T.shadow=w(x+".shadow",C)}return T},m.coercePattern=function(w,x,S,k){if(w(x+".shape")){w(x+".solidity"),w(x+".size");var T=w(x+".fillmode")==="overlay";if(!k){var C=w(x+".bgcolor",T?S:void 0);w(x+".fgcolor",T?p.contrast(C):S)}w(x+".fgopacity",T?.5:1)}},m.coerceHoverinfo=function(w,x,S){var k,T=x._module.attributes,C=T.hoverinfo?T:y,A=C.hoverinfo;if(S._dataLength===1){var E=A.dflt==="all"?A.flags.slice():A.dflt.split("+");E.splice(E.indexOf("name"),1),k=E.join("+")}return m.coerce(w,x,C,"hoverinfo",k)},m.coerceSelectionMarkerOpacity=function(w,x){if(w.marker){var S,k,T=w.marker.opacity;T!==void 0&&(d(T)||w.selected||w.unselected||(S=T,k=l*T),x("selected.marker.opacity",S),x("unselected.marker.opacity",k))}},m.validate=b},92596:function(c,m,a){var v,f,n=a(42696).DC,y=a(10721),_=a(48636),p=a(98953).mod,l=a(63821),o=l.BADNUM,s=l.ONEDAY,u=l.ONEHOUR,d=l.ONEMIN,h=l.ONESEC,g=l.EPOCHJD,b=a(33626),w=a(42696).aL,x=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,S=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,k=new Date().getFullYear()-70;function T(U){return U&&b.componentsRegistry.calendars&&typeof U=="string"&&U!=="gregorian"}function C(U,Z){return String(U+Math.pow(10,Z)).substr(1)}m.dateTick0=function(U,Z){var q=function(Q,X){return T(Q)?X?b.getComponentMethod("calendars","CANONICAL_SUNDAY")[Q]:b.getComponentMethod("calendars","CANONICAL_TICK")[Q]:X?"2000-01-02":"2000-01-01"}(U,!!Z);if(Z<2)return q;var W=m.dateTime2ms(q,U);return W+=s*(Z-1),m.ms2DateTime(W,0,U)},m.dfltRange=function(U){return T(U)?b.getComponentMethod("calendars","DFLTRANGE")[U]:["2000-01-01","2001-01-01"]},m.isJSDate=function(U){return typeof U=="object"&&U!==null&&typeof U.getTime=="function"},m.dateTime2ms=function(U,Z){if(m.isJSDate(U)){var q=U.getTimezoneOffset()*d,W=(U.getUTCMinutes()-U.getMinutes())*d+(U.getUTCSeconds()-U.getSeconds())*h+(U.getUTCMilliseconds()-U.getMilliseconds());if(W){var Q=3*d;q=q-Q/2+p(W-q+Q/2,Q)}return(U=Number(U)-q)>=v&&U<=f?U:o}if(typeof U!="string"&&typeof U!="number")return o;U=String(U);var X=T(Z),J=U.charAt(0);!X||J!=="G"&&J!=="g"||(U=U.substr(1),Z="");var ee=X&&Z.substr(0,7)==="chinese",le=U.match(ee?S:x);if(!le)return o;var oe=le[1],se=le[3]||"1",ce=Number(le[5]||1),ae=Number(le[7]||0),ne=Number(le[9]||0),ie=Number(le[11]||0);if(X){if(oe.length===2)return o;var ue;oe=Number(oe);try{var he=b.getComponentMethod("calendars","getCal")(Z);if(ee){var pe=se.charAt(se.length-1)==="i";se=parseInt(se,10),ue=he.newDate(oe,he.toMonthIndex(oe,se,pe),ce)}else ue=he.newDate(oe,Number(se),ce)}catch{return o}return ue?(ue.toJD()-g)*s+ae*u+ne*d+ie*h:o}oe=oe.length===2?(Number(oe)+2e3-k)%100+k:Number(oe),se-=1;var me=new Date(Date.UTC(2e3,se,ce,ae,ne));return me.setUTCFullYear(oe),me.getUTCMonth()!==se||me.getUTCDate()!==ce?o:me.getTime()+ie*h},v=m.MIN_MS=m.dateTime2ms("-9999"),f=m.MAX_MS=m.dateTime2ms("9999-12-31 23:59:59.9999"),m.isDateTime=function(U,Z){return m.dateTime2ms(U,Z)!==o};var A=90*s,E=3*u,M=5*d;function I(U,Z,q,W,Q){if((Z||q||W||Q)&&(U+=" "+C(Z,2)+":"+C(q,2),(W||Q)&&(U+=":"+C(W,2),Q))){for(var X=4;Q%10==0;)X-=1,Q/=10;U+="."+C(Q,X)}return U}m.ms2DateTime=function(U,Z,q){if(typeof U!="number"||!(U>=v&&U<=f))return o;Z||(Z=0);var W,Q,X,J,ee,le,oe=Math.floor(10*p(U+.05,1)),se=Math.round(U-oe/10);if(T(q)){var ce=Math.floor(se/s)+g,ae=Math.floor(p(U,s));try{W=b.getComponentMethod("calendars","getCal")(q).fromJD(ce).formatDate("yyyy-mm-dd")}catch{W=w("G%Y-%m-%d")(new Date(se))}if(W.charAt(0)==="-")for(;W.length<11;)W="-0"+W.substr(1);else for(;W.length<10;)W="0"+W;Q=Z<A?Math.floor(ae/u):0,X=Z<A?Math.floor(ae%u/d):0,J=Z<E?Math.floor(ae%d/h):0,ee=Z<M?ae%h*10+oe:0}else le=new Date(se),W=w("%Y-%m-%d")(le),Q=Z<A?le.getUTCHours():0,X=Z<A?le.getUTCMinutes():0,J=Z<E?le.getUTCSeconds():0,ee=Z<M?10*le.getUTCMilliseconds()+oe:0;return I(W,Q,X,J,ee)},m.ms2DateTimeLocal=function(U){if(!(U>=v+s&&U<=f-s))return o;var Z=Math.floor(10*p(U+.05,1)),q=new Date(Math.round(U-Z/10));return I(n("%Y-%m-%d")(q),q.getHours(),q.getMinutes(),q.getSeconds(),10*q.getUTCMilliseconds()+Z)},m.cleanDate=function(U,Z,q){if(U===o)return Z;if(m.isJSDate(U)||typeof U=="number"&&isFinite(U)){if(T(q))return _.error("JS Dates and milliseconds are incompatible with world calendars",U),Z;if(!(U=m.ms2DateTimeLocal(+U))&&Z!==void 0)return Z}else if(!m.isDateTime(U,q))return _.error("unrecognized date",U),Z;return U};var N=/%\d?f/g,z=/%h/g,F={1:"1",2:"1",3:"2",4:"2"};function R(U,Z,q,W){U=U.replace(N,function(X){var J=Math.min(+X.charAt(1)||6,6);return(Z/1e3%1+2).toFixed(J).substr(2).replace(/0+$/,"")||"0"});var Q=new Date(Math.floor(Z+.05));if(U=U.replace(z,function(){return F[q("%q")(Q)]}),T(W))try{U=b.getComponentMethod("calendars","worldCalFmt")(U,Z,W)}catch{return"Invalid"}return q(U)(Q)}var V=[59,59.9,59.99,59.999,59.9999];m.formatDate=function(U,Z,q,W,Q,X){if(Q=T(Q)&&Q,!Z)if(q==="y")Z=X.year;else if(q==="m")Z=X.month;else{if(q!=="d")return function(J,ee){var le=p(J+.05,s),oe=C(Math.floor(le/u),2)+":"+C(p(Math.floor(le/d),60),2);if(ee!=="M"){y(ee)||(ee=0);var se=(100+Math.min(p(J/h,60),V[ee])).toFixed(ee).substr(1);ee>0&&(se=se.replace(/0+$/,"").replace(/[\.]$/,"")),oe+=":"+se}return oe}(U,q)+`
130
130
  `+R(X.dayMonthYear,U,W,Q);Z=X.dayMonth+`
131
131
  `+X.year}return R(Z,U,W,Q)};var $=3*s;m.incrementMonth=function(U,Z,q){q=T(q)&&q;var W=p(U,s);if(U=Math.round(U-W),q)try{var Q=Math.round(U/s)+g,X=b.getComponentMethod("calendars","getCal")(q),J=X.fromJD(Q);return Z%12?X.add(J,Z,"m"):X.add(J,Z/12,"y"),(J.toJD()-g)*s+W}catch{_.error("invalid ms "+U+" in calendar "+q)}var ee=new Date(U+$);return ee.setUTCMonth(ee.getUTCMonth()+Z)+W-$},m.findExactDates=function(U,Z){for(var q,W,Q=0,X=0,J=0,ee=0,le=T(Z)&&b.getComponentMethod("calendars","getCal")(Z),oe=0;oe<U.length;oe++)if(W=U[oe],y(W)){if(!(W%s))if(le)try{(q=le.fromJD(W/s+g)).day()===1?q.month()===1?Q++:X++:J++}catch{}else(q=new Date(W)).getUTCDate()===1?q.getUTCMonth()===0?Q++:X++:J++}else ee++;J+=X+=Q;var se=U.length-ee;return{exactYears:Q/se,exactMonths:X/se,exactDays:J/se}}},95425:function(c,m,a){var v=a(45568),f=a(48636),n=a(15236),y=a(11191);function _(u){var d=u&&u.parentNode;d&&d.removeChild(u)}function p(u,d,h){var g="plotly.js-style-"+u,b=document.getElementById(g);b||((b=document.createElement("style")).setAttribute("id",g),b.appendChild(document.createTextNode("")),document.head.appendChild(b));var w=b.sheet;w.insertRule?w.insertRule(d+"{"+h+"}",0):w.addRule?w.addRule(d,h,0):f.warn("addStyleRule failed")}function l(u){var d=window.getComputedStyle(u,null),h=d.getPropertyValue("-webkit-transform")||d.getPropertyValue("-moz-transform")||d.getPropertyValue("-ms-transform")||d.getPropertyValue("-o-transform")||d.getPropertyValue("transform");return h==="none"?null:h.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(g){return+g})}function o(u){for(var d=[];s(u);)d.push(u),u=u.parentNode,typeof ShadowRoot=="function"&&u instanceof ShadowRoot&&(u=u.host);return d}function s(u){return u&&(u instanceof Element||u instanceof HTMLElement)}c.exports={getGraphDiv:function(u){var d;if(typeof u=="string"){if((d=document.getElementById(u))===null)throw new Error("No DOM element with id '"+u+"' exists on the page.");return d}if(u==null)throw new Error("DOM element provided is null or undefined");return u},isPlotDiv:function(u){var d=v.select(u);return d.node()instanceof HTMLElement&&d.size()&&d.classed("js-plotly-plot")},removeElement:_,addStyleRule:function(u,d){p("global",u,d)},addRelatedStyleRule:p,deleteRelatedStyleRule:function(u){var d="plotly.js-style-"+u,h=document.getElementById(d);h&&_(h)},getFullTransformMatrix:function(u){var d=o(u),h=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return d.forEach(function(g){var b=l(g);if(b){var w=n.convertCssMatrix(b);h=y.multiply(h,h,w)}}),h},getElementTransformMatrix:l,getElementAndAncestors:o,equalDomRects:function(u,d){return u&&d&&u.top===d.top&&u.left===d.left&&u.right===d.right&&u.bottom===d.bottom}}},68596:function(c,m,a){var v=a(7683).EventEmitter,f={init:function(n){if(n._ev instanceof v)return n;var y=new v,_=new v;return n._ev=y,n._internalEv=_,n.on=y.on.bind(y),n.once=y.once.bind(y),n.removeListener=y.removeListener.bind(y),n.removeAllListeners=y.removeAllListeners.bind(y),n._internalOn=_.on.bind(_),n._internalOnce=_.once.bind(_),n._removeInternalListener=_.removeListener.bind(_),n._removeAllInternalListeners=_.removeAllListeners.bind(_),n.emit=function(p,l){typeof jQuery<"u"&&jQuery(n).trigger(p,l),y.emit(p,l),_.emit(p,l)},n},triggerHandler:function(n,y,_){var p,l;typeof jQuery<"u"&&(p=jQuery(n).triggerHandler(y,_));var o=n._ev;if(!o)return p;var s,u=o._events[y];if(!u)return p;function d(h){return h.listener?(o.removeListener(y,h.listener),h.fired?void 0:(h.fired=!0,h.listener.apply(o,[_]))):h.apply(o,[_])}for(u=Array.isArray(u)?u:[u],s=0;s<u.length-1;s++)d(u[s]);return l=d(u[s]),p!==void 0?p:l},purge:function(n){return delete n._ev,delete n.on,delete n.once,delete n.removeListener,delete n.removeAllListeners,delete n.emit,delete n._ev,delete n._internalEv,delete n._internalOn,delete n._internalOnce,delete n._removeInternalListener,delete n._removeAllInternalListeners,n}};c.exports=f},93049:function(c,m,a){var v=a(56174),f=Array.isArray;function n(y,_,p,l){var o,s,u,d,h,g,b,w=y[0],x=y.length;if(x===2&&f(w)&&f(y[1])&&w.length===0){if(b=function(k,T){var C,A;for(C=0;C<k.length;C++){if((A=k[C])!==null&&typeof A=="object")return!1;A!==void 0&&(T[C]=A)}return!0}(y[1],w),b)return w;w.splice(0,w.length)}for(var S=1;S<x;S++)for(s in o=y[S])u=w[s],d=o[s],l&&f(d)?w[s]=d:_&&d&&(v(d)||(h=f(d)))?(h?(h=!1,g=u&&f(u)?u:[]):g=u&&v(u)?u:{},w[s]=n([g,d],_,p,l)):(d!==void 0||p)&&(w[s]=d);return w}m.extendFlat=function(){return n(arguments,!1,!1,!1)},m.extendDeep=function(){return n(arguments,!0,!1,!1)},m.extendDeepAll=function(){return n(arguments,!0,!0,!1)},m.extendDeepNoArrays=function(){return n(arguments,!0,!1,!0)}},48965:function(c){c.exports=function(m){for(var a={},v=[],f=0,n=0;n<m.length;n++){var y=m[n];a[y]!==1&&(a[y]=1,v[f++]=y)}return v}},78926:function(c){function m(v){return v.visible===!0}function a(v){var f=v[0].trace;return f.visible===!0&&f._length!==0}c.exports=function(v){for(var f,n=(f=v,Array.isArray(f)&&Array.isArray(f[0])&&f[0][0]&&f[0][0].trace?a:m),y=[],_=0;_<v.length;_++){var p=v[_];n(p)&&y.push(p)}return y}},3994:function(c,m,a){var v=a(45568),f=a(78171),{area:n}=a(61990),{centroid:y}=a(30035),{bbox:_}=a(25368),p=a(29527),l=a(48636),o=a(56174),s=a(35632),u=a(80899),d=Object.keys(f),h={"ISO-3":p,"USA-states":p,"country names":function(b){for(var w=0;w<d.length;w++){var x=d[w];if(new RegExp(f[x]).test(b.trim().toLowerCase()))return x}return l.log("Unrecognized country name: "+b+"."),!1}};function g(b){var w=b.geojson,x=window.PlotlyGeoAssets||{},S=typeof w=="string"?x[w]:w;return o(S)?S:(l.error("Oops ... something went wrong when fetching "+w),!1)}c.exports={locationToFeature:function(b,w,x){if(!w||typeof w!="string")return!1;var S,k,T,C=h[b](w);if(C){if(b==="USA-states")for(S=[],T=0;T<x.length;T++)(k=x[T]).properties&&k.properties.gu&&k.properties.gu==="USA"&&S.push(k);else S=x;for(T=0;T<S.length;T++)if((k=S[T]).id===C)return k;l.log(["Location with id",C,"does not have a matching topojson feature at this resolution."].join(" "))}return!1},feature2polygons:function(b){var w,x,S,k,T=b.geometry,C=T.coordinates,A=b.id,E=[];function M(I){for(var N=0;N<I.length-1;N++)if(I[N][0]>0&&I[N+1][0]<0)return N;return null}switch(w=A==="RUS"||A==="FJI"?function(I){var N;if(M(I)===null)N=I;else for(N=new Array(I.length),k=0;k<I.length;k++)N[k]=[I[k][0]<0?I[k][0]+360:I[k][0],I[k][1]];E.push(u.tester(N))}:A==="ATA"?function(I){var N=M(I);if(N===null)return E.push(u.tester(I));var z=new Array(I.length+1),F=0;for(k=0;k<I.length;k++)k>N?z[F++]=[I[k][0]+360,I[k][1]]:k===N?(z[F++]=I[k],z[F++]=[I[k][0],-90]):z[F++]=I[k];var R=u.tester(z);R.pts.pop(),E.push(R)}:function(I){E.push(u.tester(I))},T.type){case"MultiPolygon":for(x=0;x<C.length;x++)for(S=0;S<C[x].length;S++)w(C[x][S]);break;case"Polygon":for(x=0;x<C.length;x++)w(C[x])}return E},getTraceGeojson:g,extractTraceFeature:function(b){var w=b[0].trace,x=g(w);if(!x)return!1;var S,k={},T=[];for(S=0;S<w._length;S++){var C=b[S];(C.loc||C.loc===0)&&(k[C.loc]=C)}function A(I){var N=s(I,w.featureidkey||"id").get(),z=k[N];if(z){var F=I.geometry;if(F.type==="Polygon"||F.type==="MultiPolygon"){var R={type:"Feature",id:N,geometry:F,properties:{}};R.geometry.coordinates.length>0?R.properties.ct=function(V){var $,U=V.geometry;if(U.type==="MultiPolygon")for(var Z=U.coordinates,q=0,W=0;W<Z.length;W++){var Q={type:"Polygon",coordinates:Z[W]},X=n(Q);X>q&&(q=X,$=Q)}else $=U;return y($).geometry.coordinates}(R):R.properties.ct=[NaN,NaN],z.fIn=I,z.fOut=R,T.push(R)}else l.log(["Location",z.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete k[N]}switch(x.type){case"FeatureCollection":var E=x.features;for(S=0;S<E.length;S++)A(E[S]);break;case"Feature":A(x);break;default:return l.warn(["Invalid GeoJSON type",(x.type||"none")+".","Traces with locationmode *geojson-id* only support","*FeatureCollection* and *Feature* types."].join(" ")),!1}for(var M in k)l.log(["Location *"+M+"*","does not have a matching feature with id-key","*"+w.featureidkey+"*."].join(" "));return T},fetchTraceGeoData:function(b){var w=window.PlotlyGeoAssets||{},x=[];function S(A){return new Promise(function(E,M){v.json(A,function(I,N){if(I){delete w[A];var z=I.status===404?'GeoJSON at URL "'+A+'" does not exist.':"Unexpected error while fetching from "+A;return M(new Error(z))}return w[A]=N,E(N)})})}function k(A){return new Promise(function(E,M){var I=0,N=setInterval(function(){return w[A]&&w[A]!=="pending"?(clearInterval(N),E(w[A])):I>100?(clearInterval(N),M("Unexpected error while fetching from "+A)):void I++},50)})}for(var T=0;T<b.length;T++){var C=b[T][0].trace.geojson;typeof C=="string"&&(w[C]?w[C]==="pending"&&x.push(k(C)):(w[C]="pending",x.push(S(C))))}return x},computeBbox:function(b){return _(b)}}},39532:function(c,m,a){var v=a(63821).BADNUM;m.calcTraceToLineCoords=function(f){for(var n=f[0].trace.connectgaps,y=[],_=[],p=0;p<f.length;p++){var l=f[p].lonlat;l[0]!==v?_.push(l):!n&&_.length>0&&(y.push(_),_=[])}return _.length>0&&y.push(_),y},m.makeLine=function(f){return f.length===1?{type:"LineString",coordinates:f[0]}:{type:"MultiLineString",coordinates:f}},m.makePolygon=function(f){if(f.length===1)return{type:"Polygon",coordinates:f};for(var n=new Array(f.length),y=0;y<f.length;y++)n[y]=[f[y]];return{type:"MultiPolygon",coordinates:n}},m.makeBlank=function(){return{type:"Point",coordinates:[]}}},3447:function(c,m,a){var v,f,n,y=a(98953).mod;function _(l,o,s,u,d,h,g,b){var w=s-l,x=d-l,S=g-d,k=u-o,T=h-o,C=b-h,A=w*C-S*k;if(A===0)return null;var E=(x*C-S*T)/A,M=(x*k-w*T)/A;return M<0||M>1||E<0||E>1?null:{x:l+w*E,y:o+k*E}}function p(l,o,s,u,d){var h=u*l+d*o;if(h<0)return u*u+d*d;if(h>s){var g=u-l,b=d-o;return g*g+b*b}var w=u*o-d*l;return w*w/s}m.segmentsIntersect=_,m.segmentDistance=function(l,o,s,u,d,h,g,b){if(_(l,o,s,u,d,h,g,b))return 0;var w=s-l,x=u-o,S=g-d,k=b-h,T=w*w+x*x,C=S*S+k*k,A=Math.min(p(w,x,T,d-l,h-o),p(w,x,T,g-l,b-o),p(S,k,C,l-d,o-h),p(S,k,C,s-d,u-h));return Math.sqrt(A)},m.getTextLocation=function(l,o,s,u){if(l===f&&u===n||(v={},f=l,n=u),v[s])return v[s];var d=l.getPointAtLength(y(s-u/2,o)),h=l.getPointAtLength(y(s+u/2,o)),g=Math.atan((h.y-d.y)/(h.x-d.x)),b=l.getPointAtLength(y(s,o)),w={x:(4*b.x+d.x+h.x)/6,y:(4*b.y+d.y+h.y)/6,theta:g};return v[s]=w,w},m.clearLocationCache=function(){f=null},m.getVisibleSegment=function(l,o,s){var u,d,h=o.left,g=o.right,b=o.top,w=o.bottom,x=0,S=l.getTotalLength(),k=S;function T(A){var E=l.getPointAtLength(A);A===0?u=E:A===S&&(d=E);var M=E.x<h?h-E.x:E.x>g?E.x-g:0,I=E.y<b?b-E.y:E.y>w?E.y-w:0;return Math.sqrt(M*M+I*I)}for(var C=T(x);C;){if((x+=C+s)>k)return;C=T(x)}for(C=T(k);C;){if(x>(k-=C+s))return;C=T(k)}return{min:x,max:k,len:k-x,total:S,isClosed:x===0&&k===S&&Math.abs(u.x-d.x)<.1&&Math.abs(u.y-d.y)<.1}},m.findPointOnPath=function(l,o,s,u){for(var d,h,g,b=(u=u||{}).pathLength||l.getTotalLength(),w=u.tolerance||.001,x=u.iterationLimit||30,S=l.getPointAtLength(0)[s]>l.getPointAtLength(b)[s]?-1:1,k=0,T=0,C=b;k<x;){if(d=(T+C)/2,g=(h=l.getPointAtLength(d))[s]-o,Math.abs(g)<w)return h;S*g>0?C=d:T=d,k++}return h}},46998:function(c,m,a){var v=a(10721),f=a(65657),n=a(162),y=a(88856),_=a(10229).defaultLine,p=a(87800).isArrayOrTypedArray,l=n(_);function o(d,h){var g=d;return g[3]*=h,g}function s(d){if(v(d))return l;var h=n(d);return h.length?h:l}function u(d){return v(d)?d:1}c.exports={formatColor:function(d,h,g){var b=d.color;b&&b._inputArray&&(b=b._inputArray);var w,x,S,k,T,C=p(b),A=p(h),E=y.extractOpts(d),M=[];if(w=E.colorscale!==void 0?y.makeColorScaleFuncFromTrace(d):s,x=C?function(N,z){return N[z]===void 0?l:n(w(N[z]))}:s,S=A?function(N,z){return N[z]===void 0?1:u(N[z])}:u,C||A)for(var I=0;I<g;I++)k=x(b,I),T=S(h,I),M[I]=o(k,T);else M=o(n(b),h);return M},parseColorScale:function(d){var h=y.extractOpts(d),g=h.colorscale;return h.reversescale&&(g=y.flipScale(h.colorscale)),g.map(function(b){var w=b[0],x=f(b[1]).toRgb();return{index:w,rgb:[x.r,x.g,x.b,x.a]}})}}},71293:function(c,m,a){var v=a(29527);function f(n){return[n]}c.exports={keyFun:function(n){return n.key},repeat:f,descend:v,wrap:f,unwrap:function(n){return n[0]}}},29527:function(c){c.exports=function(m){return m}},10688:function(c){c.exports=function(m,a){if(!a)return m;var v=1/Math.abs(a),f=v>1?(v*m+v*a)/v:m+a,n=String(f).length;if(n>16){var y=String(a).length;if(n>=String(m).length+y){var _=parseFloat(f).toPrecision(12);_.indexOf("e+")===-1&&(f=+_)}}return f}},34809:function(c,m,a){var v=a(45568),f=a(42696).aL,n=a(36464).GP,y=a(10721),_=a(63821),p=_.FP_SAFE,l=-p,o=_.BADNUM,s=c.exports={};s.adjustFormat=function(ae){return!ae||/^\d[.]\df/.test(ae)||/[.]\d%/.test(ae)?ae:ae==="0.f"?"~f":/^\d%/.test(ae)?"~%":/^\ds/.test(ae)?"~s":!/^[~,.0$]/.test(ae)&&/[&fps]/.test(ae)?"~"+ae:ae};var u={};s.warnBadFormat=function(ae){var ne=String(ae);u[ne]||(u[ne]=1,s.warn('encountered bad format: "'+ne+'"'))},s.noFormat=function(ae){return String(ae)},s.numberFormat=function(ae){var ne;try{ne=n(s.adjustFormat(ae))}catch{return s.warnBadFormat(ae),s.noFormat}return ne},s.nestedProperty=a(35632),s.keyedContainer=a(34967),s.relativeAttr=a(82047),s.isPlainObject=a(56174),s.toLogRange=a(8083),s.relinkPrivateKeys=a(80428);var d=a(87800);s.isArrayBuffer=d.isArrayBuffer,s.isTypedArray=d.isTypedArray,s.isArrayOrTypedArray=d.isArrayOrTypedArray,s.isArray1D=d.isArray1D,s.ensureArray=d.ensureArray,s.concat=d.concat,s.maxRowLength=d.maxRowLength,s.minRowLength=d.minRowLength;var h=a(98953);s.mod=h.mod,s.modHalf=h.modHalf;var g=a(34220);s.valObjectMeta=g.valObjectMeta,s.coerce=g.coerce,s.coerce2=g.coerce2,s.coerceFont=g.coerceFont,s.coercePattern=g.coercePattern,s.coerceHoverinfo=g.coerceHoverinfo,s.coerceSelectionMarkerOpacity=g.coerceSelectionMarkerOpacity,s.validate=g.validate;var b=a(92596);s.dateTime2ms=b.dateTime2ms,s.isDateTime=b.isDateTime,s.ms2DateTime=b.ms2DateTime,s.ms2DateTimeLocal=b.ms2DateTimeLocal,s.cleanDate=b.cleanDate,s.isJSDate=b.isJSDate,s.formatDate=b.formatDate,s.incrementMonth=b.incrementMonth,s.dateTick0=b.dateTick0,s.dfltRange=b.dfltRange,s.findExactDates=b.findExactDates,s.MIN_MS=b.MIN_MS,s.MAX_MS=b.MAX_MS;var w=a(98813);s.findBin=w.findBin,s.sorterAsc=w.sorterAsc,s.sorterDes=w.sorterDes,s.distinctVals=w.distinctVals,s.roundUp=w.roundUp,s.sort=w.sort,s.findIndexOfMin=w.findIndexOfMin,s.sortObjectKeys=a(62994);var x=a(89258);s.aggNums=x.aggNums,s.len=x.len,s.mean=x.mean,s.geometricMean=x.geometricMean,s.median=x.median,s.midRange=x.midRange,s.variance=x.variance,s.stdev=x.stdev,s.interp=x.interp;var S=a(15236);s.init2dArray=S.init2dArray,s.transposeRagged=S.transposeRagged,s.dot=S.dot,s.translationMatrix=S.translationMatrix,s.rotationMatrix=S.rotationMatrix,s.rotationXYMatrix=S.rotationXYMatrix,s.apply3DTransform=S.apply3DTransform,s.apply2DTransform=S.apply2DTransform,s.apply2DTransform2=S.apply2DTransform2,s.convertCssMatrix=S.convertCssMatrix,s.inverseTransformMatrix=S.inverseTransformMatrix;var k=a(44313);s.deg2rad=k.deg2rad,s.rad2deg=k.rad2deg,s.angleDelta=k.angleDelta,s.angleDist=k.angleDist,s.isFullCircle=k.isFullCircle,s.isAngleInsideSector=k.isAngleInsideSector,s.isPtInsideSector=k.isPtInsideSector,s.pathArc=k.pathArc,s.pathSector=k.pathSector,s.pathAnnulus=k.pathAnnulus;var T=a(32546);s.isLeftAnchor=T.isLeftAnchor,s.isCenterAnchor=T.isCenterAnchor,s.isRightAnchor=T.isRightAnchor,s.isTopAnchor=T.isTopAnchor,s.isMiddleAnchor=T.isMiddleAnchor,s.isBottomAnchor=T.isBottomAnchor;var C=a(3447);s.segmentsIntersect=C.segmentsIntersect,s.segmentDistance=C.segmentDistance,s.getTextLocation=C.getTextLocation,s.clearLocationCache=C.clearLocationCache,s.getVisibleSegment=C.getVisibleSegment,s.findPointOnPath=C.findPointOnPath;var A=a(93049);s.extendFlat=A.extendFlat,s.extendDeep=A.extendDeep,s.extendDeepAll=A.extendDeepAll,s.extendDeepNoArrays=A.extendDeepNoArrays;var E=a(48636);s.log=E.log,s.warn=E.warn,s.error=E.error;var M=a(90694);s.counterRegex=M.counter;var I=a(64025);s.throttle=I.throttle,s.throttleDone=I.done,s.clearThrottle=I.clear;var N=a(95425);function z(ae){var ne={};for(var ie in ae)for(var ue=ae[ie],he=0;he<ue.length;he++)ne[ue[he]]=+ie;return ne}s.getGraphDiv=N.getGraphDiv,s.isPlotDiv=N.isPlotDiv,s.removeElement=N.removeElement,s.addStyleRule=N.addStyleRule,s.addRelatedStyleRule=N.addRelatedStyleRule,s.deleteRelatedStyleRule=N.deleteRelatedStyleRule,s.getFullTransformMatrix=N.getFullTransformMatrix,s.getElementTransformMatrix=N.getElementTransformMatrix,s.getElementAndAncestors=N.getElementAndAncestors,s.equalDomRects=N.equalDomRects,s.clearResponsive=a(23493),s.preserveDrawingBuffer=a(32521),s.makeTraceGroups=a(75944),s._=a(38514),s.notifier=a(87355),s.filterUnique=a(48965),s.filterVisible=a(78926),s.pushUnique=a(36539),s.increment=a(10688),s.cleanNumber=a(44498),s.ensureNumber=function(ae){return y(ae)?(ae=Number(ae))>p||ae<l?o:ae:o},s.isIndex=function(ae,ne){return!(ne!==void 0&&ae>=ne)&&y(ae)&&ae>=0&&ae%1==0},s.noop=a(4969),s.identity=a(29527),s.repeat=function(ae,ne){for(var ie=new Array(ne),ue=0;ue<ne;ue++)ie[ue]=ae;return ie},s.swapAttrs=function(ae,ne,ie,ue){ie||(ie="x"),ue||(ue="y");for(var he=0;he<ne.length;he++){var pe=ne[he],me=s.nestedProperty(ae,pe.replace("?",ie)),_e=s.nestedProperty(ae,pe.replace("?",ue)),xe=me.get();me.set(_e.get()),_e.set(xe)}},s.raiseToTop=function(ae){ae.parentNode.appendChild(ae)},s.cancelTransition=function(ae){return ae.transition().duration(0)},s.constrain=function(ae,ne,ie){return ne>ie?Math.max(ie,Math.min(ne,ae)):Math.max(ne,Math.min(ie,ae))},s.bBoxIntersect=function(ae,ne,ie){return ie=ie||0,ae.left<=ne.right+ie&&ne.left<=ae.right+ie&&ae.top<=ne.bottom+ie&&ne.top<=ae.bottom+ie},s.simpleMap=function(ae,ne,ie,ue,he){for(var pe=ae.length,me=new Array(pe),_e=0;_e<pe;_e++)me[_e]=ne(ae[_e],ie,ue,he);return me},s.randstr=function ae(ne,ie,ue,he){if(ue||(ue=16),ie===void 0&&(ie=24),ie<=0)return"0";var pe,me,_e=Math.log(Math.pow(2,ie))/Math.log(ue),xe="";for(pe=2;_e===1/0;pe*=2)_e=Math.log(Math.pow(2,ie/pe))/Math.log(ue)*pe;var we=_e-Math.floor(_e);for(pe=0;pe<Math.floor(_e);pe++)xe=Math.floor(Math.random()*ue).toString(ue)+xe;we&&(me=Math.pow(ue,we),xe=Math.floor(Math.random()*me).toString(ue)+xe);var Ee=parseInt(xe,ue);return ne&&ne[xe]||Ee!==1/0&&Ee>=Math.pow(2,ie)?he>10?(s.warn("randstr failed uniqueness"),xe):ae(ne,ie,ue,(he||0)+1):xe},s.OptionControl=function(ae,ne){ae||(ae={}),ne||(ne="opt");var ie={optionList:[],_newoption:function(ue){ue[ne]=ae,ie[ue.name]=ue,ie.optionList.push(ue)}};return ie["_"+ne]=ae,ie},s.smooth=function(ae,ne){if((ne=Math.round(ne)||0)<2)return ae;var ie,ue,he,pe,me=ae.length,_e=2*me,xe=2*ne-1,we=new Array(xe),Ee=new Array(me);for(ie=0;ie<xe;ie++)we[ie]=(1-Math.cos(Math.PI*(ie+1)/ne))/(2*ne);for(ie=0;ie<me;ie++){for(pe=0,ue=0;ue<xe;ue++)(he=ie+ue+1-ne)<-me?he-=_e*Math.round(he/_e):he>=_e&&(he-=_e*Math.floor(he/_e)),he<0?he=-1-he:he>=me&&(he=_e-1-he),pe+=ae[he]*we[ue];Ee[ie]=pe}return Ee},s.syncOrAsync=function(ae,ne,ie){var ue;function he(){return s.syncOrAsync(ae,ne,ie)}for(;ae.length;)if((ue=(0,ae.splice(0,1)[0])(ne))&&ue.then)return ue.then(he);return ie&&ie(ne)},s.stripTrailingSlash=function(ae){return ae.substr(-1)==="/"?ae.substr(0,ae.length-1):ae},s.noneOrAll=function(ae,ne,ie){if(ae){var ue,he=!1,pe=!0;for(ue=0;ue<ie.length;ue++)ae[ie[ue]]!=null?he=!0:pe=!1;if(he&&!pe)for(ue=0;ue<ie.length;ue++)ae[ie[ue]]=ne[ie[ue]]}},s.mergeArray=function(ae,ne,ie,ue){var he=typeof ue=="function";if(s.isArrayOrTypedArray(ae))for(var pe=Math.min(ae.length,ne.length),me=0;me<pe;me++){var _e=ae[me];ne[me][ie]=he?ue(_e):_e}},s.mergeArrayCastPositive=function(ae,ne,ie){return s.mergeArray(ae,ne,ie,function(ue){var he=+ue;return isFinite(he)&&he>0?he:0})},s.fillArray=function(ae,ne,ie,ue){if(ue=ue||s.identity,s.isArrayOrTypedArray(ae))for(var he=0;he<ne.length;he++)ne[he][ie]=ue(ae[he])},s.castOption=function(ae,ne,ie,ue){ue=ue||s.identity;var he=s.nestedProperty(ae,ie).get();return s.isArrayOrTypedArray(he)?Array.isArray(ne)&&s.isArrayOrTypedArray(he[ne[0]])?ue(he[ne[0]][ne[1]]):ue(he[ne]):he},s.extractOption=function(ae,ne,ie,ue){if(ie in ae)return ae[ie];var he=s.nestedProperty(ne,ue).get();return Array.isArray(he)?void 0:he},s.tagSelected=function(ae,ne,ie){var ue,he,pe=ne.selectedpoints,me=ne._indexToPoints;me&&(ue=z(me));for(var _e=0;_e<pe.length;_e++){var xe=pe[_e];if(s.isIndex(xe)||s.isArrayOrTypedArray(xe)&&s.isIndex(xe[0])&&s.isIndex(xe[1])){var we=ue?ue[xe]:xe,Ee=ie?ie[we]:we;(he=Ee)!==void 0&&he<ae.length&&(ae[Ee].selected=1)}}},s.selIndices2selPoints=function(ae){var ne=ae.selectedpoints,ie=ae._indexToPoints;if(ie){for(var ue=z(ie),he=[],pe=0;pe<ne.length;pe++){var me=ne[pe];if(s.isIndex(me)){var _e=ue[me];s.isIndex(_e)&&he.push(_e)}}return he}return ne},s.getTargetArray=function(ae,ne){var ie=ne.target;if(typeof ie=="string"&&ie){var ue=s.nestedProperty(ae,ie).get();return!!s.isArrayOrTypedArray(ue)&&ue}return!!s.isArrayOrTypedArray(ie)&&ie},s.minExtend=function ae(ne,ie,ue){var he={};typeof ie!="object"&&(ie={});var pe,me,_e,xe=ue==="pieLike"?-1:3,we=Object.keys(ne);for(pe=0;pe<we.length;pe++)_e=ne[me=we[pe]],me.charAt(0)!=="_"&&typeof _e!="function"&&(me==="module"?he[me]=_e:Array.isArray(_e)?he[me]=me==="colorscale"||xe===-1?_e.slice():_e.slice(0,xe):s.isTypedArray(_e)?he[me]=xe===-1?_e.subarray():_e.subarray(0,xe):he[me]=_e&&typeof _e=="object"?ae(ne[me],ie[me],ue):_e);for(we=Object.keys(ie),pe=0;pe<we.length;pe++)typeof(_e=ie[me=we[pe]])=="object"&&me in he&&typeof he[me]=="object"||(he[me]=_e);return he},s.titleCase=function(ae){return ae.charAt(0).toUpperCase()+ae.substr(1)},s.containsAny=function(ae,ne){for(var ie=0;ie<ne.length;ie++)if(ae.indexOf(ne[ie])!==-1)return!0;return!1},s.isIE=function(){return window.navigator.msSaveBlob!==void 0};var F=/Version\/[\d\.]+.*Safari/;s.isSafari=function(){return F.test(window.navigator.userAgent)};var R=/iPad|iPhone|iPod/;s.isIOS=function(){return R.test(window.navigator.userAgent)};var V=/Firefox\/(\d+)\.\d+/;s.getFirefoxVersion=function(){var ae=V.exec(window.navigator.userAgent);if(ae&&ae.length===2){var ne=parseInt(ae[1]);if(!isNaN(ne))return ne}return null},s.isD3Selection=function(ae){return ae instanceof v.selection},s.ensureSingle=function(ae,ne,ie,ue){var he=ae.select(ne+(ie?"."+ie:""));if(he.size())return he;var pe=ae.append(ne);return ie&&pe.classed(ie,!0),ue&&pe.call(ue),pe},s.ensureSingleById=function(ae,ne,ie,ue){var he=ae.select(ne+"#"+ie);if(he.size())return he;var pe=ae.append(ne).attr("id",ie);return ue&&pe.call(ue),pe},s.objectFromPath=function(ae,ne){for(var ie,ue=ae.split("."),he=ie={},pe=0;pe<ue.length;pe++){var me=ue[pe],_e=null,xe=ue[pe].match(/(.*)\[([0-9]+)\]/);xe?(me=xe[1],_e=xe[2],ie=ie[me]=[],pe===ue.length-1?ie[_e]=ne:ie[_e]={},ie=ie[_e]):(pe===ue.length-1?ie[me]=ne:ie[me]={},ie=ie[me])}return he};var $=/^([^\[\.]+)\.(.+)?/,U=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function Z(ae){return ae.slice(0,2)==="__"}s.expandObjectPaths=function(ae){var ne,ie,ue,he,pe,me,_e;if(typeof ae=="object"&&!Array.isArray(ae)){for(ie in ae)if(ae.hasOwnProperty(ie))if(ne=ie.match($)){if(he=ae[ie],Z(ue=ne[1]))continue;delete ae[ie],ae[ue]=s.extendDeepNoArrays(ae[ue]||{},s.objectFromPath(ie,s.expandObjectPaths(he))[ue])}else if(ne=ie.match(U)){if(he=ae[ie],Z(ue=ne[1]))continue;if(pe=parseInt(ne[2]),delete ae[ie],ae[ue]=ae[ue]||[],ne[3]===".")_e=ne[4],me=ae[ue][pe]=ae[ue][pe]||{},s.extendDeepNoArrays(me,s.objectFromPath(_e,s.expandObjectPaths(he)));else{if(Z(ue))continue;ae[ue][pe]=s.expandObjectPaths(he)}}else{if(Z(ie))continue;ae[ie]=s.expandObjectPaths(ae[ie])}}return ae},s.numSeparate=function(ae,ne,ie){if(ie||(ie=!1),typeof ne!="string"||ne.length===0)throw new Error("Separator string required for formatting!");typeof ae=="number"&&(ae=String(ae));var ue=/(\d+)(\d{3})/,he=ne.charAt(0),pe=ne.charAt(1),me=ae.split("."),_e=me[0],xe=me.length>1?he+me[1]:"";if(pe&&(me.length>1||_e.length>4||ie))for(;ue.test(_e);)_e=_e.replace(ue,"$1"+pe+"$2");return _e+xe},s.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var q=/^\w*$/;s.templateString=function(ae,ne){var ie={};return ae.replace(s.TEMPLATE_STRING_REGEX,function(ue,he){var pe;return q.test(he)?pe=ne[he]:(ie[he]=ie[he]||s.nestedProperty(ne,he).get,pe=ie[he]()),s.isValidTextValue(pe)?pe:""})};var W={max:10,count:0,name:"hovertemplate"};s.hovertemplateString=function(){return le.apply(W,arguments)};var Q={max:10,count:0,name:"texttemplate"};s.texttemplateString=function(){return le.apply(Q,arguments)};var X=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,J={max:10,count:0,name:"texttemplate",parseMultDiv:!0};s.texttemplateStringForShapes=function(){return le.apply(J,arguments)};var ee=/^[:|\|]/;function le(ae,ne,ie){var ue=this,he=arguments;ne||(ne={});var pe={};return ae.replace(s.TEMPLATE_STRING_REGEX,function(me,_e,xe){var we=_e==="_xother"||_e==="_yother",Ee=_e==="_xother_"||_e==="_yother_",Pe=_e==="xother_"||_e==="yother_",$e=_e==="xother"||_e==="yother"||we||Pe||Ee,Te=_e;(we||Ee)&&(Te=Te.substring(1)),(Pe||Ee)&&(Te=Te.substring(0,Te.length-1));var Ce,ye,ge,Me=null,Se=null;if(ue.parseMultDiv){var ze=function(Ne){var ke=Ne.match(X);return ke?{key:ke[1],op:ke[2],number:Number(ke[3])}:{key:Ne,op:null,number:null}}(Te);Te=ze.key,Me=ze.op,Se=ze.number}if($e){if((Ce=ne[Te])===void 0)return""}else for(ge=3;ge<he.length;ge++)if(ye=he[ge]){if(ye.hasOwnProperty(Te)){Ce=ye[Te];break}if(q.test(Te)||(Ce=s.nestedProperty(ye,Te).get(),(Ce=pe[Te]||s.nestedProperty(ye,Te).get())&&(pe[Te]=Ce)),Ce!==void 0)break}if(Ce!==void 0&&(Me==="*"&&(Ce*=Se),Me==="/"&&(Ce/=Se)),Ce===void 0&&ue)return ue.count<ue.max&&(s.warn("Variable '"+Te+"' in "+ue.name+" could not be found!"),Ce=me),ue.count===ue.max&&s.warn("Too many "+ue.name+" warnings - additional warnings will be suppressed"),ue.count++,me;if(xe){var Fe;if(xe[0]===":"&&(Fe=ie?ie.numberFormat:s.numberFormat,Ce!==""&&(Ce=Fe(xe.replace(ee,""))(Ce))),xe[0]==="|"){Fe=ie?ie.timeFormat:f;var De=s.dateTime2ms(Ce);Ce=s.formatDate(De,xe.replace(ee,""),!1,Fe)}}else{var Ue=Te+"Label";ne.hasOwnProperty(Ue)&&(Ce=ne[Ue])}return $e&&(Ce="("+Ce+")",(we||Ee)&&(Ce=" "+Ce),(Pe||Ee)&&(Ce+=" ")),Ce})}s.subplotSort=function(ae,ne){for(var ie=Math.min(ae.length,ne.length)+1,ue=0,he=0,pe=0;pe<ie;pe++){var me=ae.charCodeAt(pe)||0,_e=ne.charCodeAt(pe)||0,xe=me>=48&&me<=57,we=_e>=48&&_e<=57;if(xe&&(ue=10*ue+me-48),we&&(he=10*he+_e-48),!xe||!we){if(ue!==he)return ue-he;if(me!==_e)return me-_e}}return he-ue};var oe=2e9;s.seedPseudoRandom=function(){oe=2e9},s.pseudoRandom=function(){var ae=oe;return oe=(69069*oe+1)%4294967296,Math.abs(oe-ae)<429496729?s.pseudoRandom():oe/4294967296},s.fillText=function(ae,ne,ie){var ue=Array.isArray(ie)?function(me){ie.push(me)}:function(me){ie.text=me},he=s.extractOption(ae,ne,"htx","hovertext");if(s.isValidTextValue(he))return ue(he);var pe=s.extractOption(ae,ne,"tx","text");return s.isValidTextValue(pe)?ue(pe):void 0},s.isValidTextValue=function(ae){return ae||ae===0},s.formatPercent=function(ae,ne){ne=ne||0;for(var ie=(Math.round(100*ae*Math.pow(10,ne))*Math.pow(.1,ne)).toFixed(ne)+"%",ue=0;ue<ne;ue++)ie.indexOf(".")!==-1&&(ie=(ie=ie.replace("0%","%")).replace(".%","%"));return ie},s.isHidden=function(ae){var ne=window.getComputedStyle(ae).display;return!ne||ne==="none"},s.strTranslate=function(ae,ne){return ae||ne?"translate("+ae+","+ne+")":""},s.strRotate=function(ae){return ae?"rotate("+ae+")":""},s.strScale=function(ae){return ae!==1?"scale("+ae+")":""},s.getTextTransform=function(ae){var ne=ae.noCenter,ie=ae.textX,ue=ae.textY,he=ae.targetX,pe=ae.targetY,me=ae.anchorX||0,_e=ae.anchorY||0,xe=ae.rotate,we=ae.scale;return we?we>1&&(we=1):we=0,s.strTranslate(he-we*(ie+me),pe-we*(ue+_e))+s.strScale(we)+(xe?"rotate("+xe+(ne?"":" "+ie+" "+ue)+")":"")},s.setTransormAndDisplay=function(ae,ne){ae.attr("transform",s.getTextTransform(ne)),ae.style("display",ne.scale?null:"none")},s.ensureUniformFontSize=function(ae,ne){var ie=s.extendFlat({},ne);return ie.size=Math.max(ne.size,ae._fullLayout.uniformtext.minsize||0),ie},s.join2=function(ae,ne,ie){var ue=ae.length;return ue>1?ae.slice(0,-1).join(ne)+ie+ae[ue-1]:ae.join(ne)},s.bigFont=function(ae){return Math.round(1.2*ae)};var se=s.getFirefoxVersion(),ce=se!==null&&se<86;s.getPositionFromD3Event=function(){return ce?[v.event.layerX,v.event.layerY]:[v.event.offsetX,v.event.offsetY]}},56174:function(c){c.exports=function(m){return window&&window.process&&window.process.versions?Object.prototype.toString.call(m)==="[object Object]":Object.prototype.toString.call(m)==="[object Object]"&&Object.getPrototypeOf(m).hasOwnProperty("hasOwnProperty")}},34967:function(c,m,a){var v=a(35632),f=/^\w*$/;c.exports=function(n,y,_,p){var l,o,s;_=_||"name",p=p||"value";var u={};y&&y.length?(s=v(n,y),o=s.get()):o=n,y=y||"";var d={};if(o)for(l=0;l<o.length;l++)d[o[l][_]]=l;var h=f.test(p),g={set:function(b,w){var x=w===null?4:0;if(!o){if(!s||x===4)return;o=[],s.set(o)}var S=d[b];if(S===void 0){if(x===4)return;x|=3,S=o.length,d[b]=S}else w!==(h?o[S][p]:v(o[S],p).get())&&(x|=2);var k=o[S]=o[S]||{};return k[_]=b,h?k[p]=w:v(k,p).set(w),w!==null&&(x&=-5),u[S]=u[S]|x,g},get:function(b){if(o){var w=d[b];return w===void 0?void 0:h?o[w][p]:v(o[w],p).get()}},rename:function(b,w){var x=d[b];return x===void 0||(u[x]=1|u[x],d[w]=x,delete d[b],o[x][_]=w),g},remove:function(b){var w=d[b];if(w===void 0)return g;var x=o[w];if(Object.keys(x).length>2)return u[w]=2|u[w],g.set(b,null);if(h){for(l=w;l<o.length;l++)u[l]=3|u[l];for(l=w;l<o.length;l++)d[o[l][_]]--;o.splice(w,1),delete d[b]}else v(x,p).set(null),u[w]=6|u[w];return g},constructUpdate:function(){for(var b,w,x={},S=Object.keys(u),k=0;k<S.length;k++)w=S[k],b=y+"["+w+"]",o[w]?(1&u[w]&&(x[b+"."+_]=o[w][_]),2&u[w]&&(x[b+"."+p]=h?4&u[w]?null:o[w][p]:4&u[w]?null:v(o[w],p).get())):x[b]=null;return x}};return g}},38514:function(c,m,a){var v=a(33626);c.exports=function(f,n){for(var y=f._context.locale,_=0;_<2;_++){for(var p=f._context.locales,l=0;l<2;l++){var o=(p[y]||{}).dictionary;if(o){var s=o[n];if(s)return s}p=v.localeRegistry}var u=y.split("-")[0];if(u===y)break;y=u}return n}},48636:function(c,m,a){var v=a(24452).dfltConfig,f=a(87355),n=c.exports={};n.log=function(){var y;if(v.logging>1){var _=["LOG:"];for(y=0;y<arguments.length;y++)_.push(arguments[y]);console.trace.apply(console,_)}if(v.notifyOnLogging>1){var p=[];for(y=0;y<arguments.length;y++)p.push(arguments[y]);f(p.join("<br>"),"long")}},n.warn=function(){var y;if(v.logging>0){var _=["WARN:"];for(y=0;y<arguments.length;y++)_.push(arguments[y]);console.trace.apply(console,_)}if(v.notifyOnLogging>0){var p=[];for(y=0;y<arguments.length;y++)p.push(arguments[y]);f(p.join("<br>"),"stick")}},n.error=function(){var y;if(v.logging>0){var _=["ERROR:"];for(y=0;y<arguments.length;y++)_.push(arguments[y]);console.error.apply(console,_)}if(v.notifyOnLogging>0){var p=[];for(y=0;y<arguments.length;y++)p.push(arguments[y]);f(p.join("<br>"),"stick")}}},75944:function(c,m,a){var v=a(45568);c.exports=function(f,n,y){var _=f.selectAll("g."+y.replace(/\s/g,".")).data(n,function(l){return l[0].trace.uid});_.exit().remove(),_.enter().append("g").attr("class",y),_.order();var p=f.classed("rangeplot")?"nodeRangePlot3":"node3";return _.each(function(l){l[0][p]=v.select(this)}),_}},15236:function(c,m,a){var v=a(11191);m.init2dArray=function(f,n){for(var y=new Array(f),_=0;_<f;_++)y[_]=new Array(n);return y},m.transposeRagged=function(f){var n,y,_=0,p=f.length;for(n=0;n<p;n++)_=Math.max(_,f[n].length);var l=new Array(_);for(n=0;n<_;n++)for(l[n]=new Array(p),y=0;y<p;y++)l[n][y]=f[y][n];return l},m.dot=function(f,n){if(!f.length||!n.length||f.length!==n.length)return null;var y,_,p=f.length;if(f[0].length)for(y=new Array(p),_=0;_<p;_++)y[_]=m.dot(f[_],n);else if(n[0].length){var l=m.transposeRagged(n);for(y=new Array(l.length),_=0;_<l.length;_++)y[_]=m.dot(f,l[_])}else for(y=0,_=0;_<p;_++)y+=f[_]*n[_];return y},m.translationMatrix=function(f,n){return[[1,0,f],[0,1,n],[0,0,1]]},m.rotationMatrix=function(f){var n=f*Math.PI/180;return[[Math.cos(n),-Math.sin(n),0],[Math.sin(n),Math.cos(n),0],[0,0,1]]},m.rotationXYMatrix=function(f,n,y){return m.dot(m.dot(m.translationMatrix(n,y),m.rotationMatrix(f)),m.translationMatrix(-n,-y))},m.apply3DTransform=function(f){return function(){var n=arguments,y=arguments.length===1?n[0]:[n[0],n[1],n[2]||0];return m.dot(f,[y[0],y[1],y[2],1]).slice(0,3)}},m.apply2DTransform=function(f){return function(){var n=arguments;n.length===3&&(n=n[0]);var y=arguments.length===1?n[0]:[n[0],n[1]];return m.dot(f,[y[0],y[1],1]).slice(0,2)}},m.apply2DTransform2=function(f){var n=m.apply2DTransform(f);return function(y){return n(y.slice(0,2)).concat(n(y.slice(2,4)))}},m.convertCssMatrix=function(f){if(f){var n=f.length;if(n===16)return f;if(n===6)return[f[0],f[1],0,0,f[2],f[3],0,0,0,0,1,0,f[4],f[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},m.inverseTransformMatrix=function(f){var n=[];return v.invert(n,f),[[n[0],n[1],n[2],n[3]],[n[4],n[5],n[6],n[7]],[n[8],n[9],n[10],n[11]],[n[12],n[13],n[14],n[15]]]}},98953:function(c){c.exports={mod:function(m,a){var v=m%a;return v<0?v+a:v},modHalf:function(m,a){return Math.abs(m)>a/2?m-Math.round(m/a)*a:m}}},35632:function(c,m,a){var v=a(10721),f=a(87800).isArrayOrTypedArray;function n(u,d){return function(){var h,g,b,w,x,S=u;for(w=0;w<d.length-1;w++){if((h=d[w])===-1){for(g=!0,b=[],x=0;x<S.length;x++)b[x]=n(S[x],d.slice(w+1))(),b[x]!==b[0]&&(g=!1);return g?b[0]:b}if(typeof h=="number"&&!f(S)||typeof(S=S[h])!="object"||S===null)return}if(typeof S=="object"&&S!==null&&(b=S[d[w]])!==null)return b}}c.exports=function(u,d){if(v(d))d=String(d);else if(typeof d!="string"||d.substr(d.length-4)==="[-1]")throw"bad property string";var h,g,b,w,x=d.split(".");for(w=0;w<x.length;w++)if(String(x[w]).slice(0,2)==="__")throw"bad property string";for(w=0;w<x.length;){if(h=String(x[w]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(h[1])x[w]=h[1];else{if(w!==0)throw"bad property string";x.splice(0,1)}for(g=h[2].substr(1,h[2].length-2).split("]["),b=0;b<g.length;b++)w++,x.splice(w,0,Number(g[b]))}w++}return typeof u!="object"?function(S,k,T){return{set:function(){throw"bad container"},get:function(){},astr:k,parts:T,obj:S}}(u,d,x):{set:p(u,x,d),get:n(u,x),astr:d,parts:x,obj:u}};var y=/(^|\.)args\[/;function _(u,d){return u===void 0||u===null&&!d.match(y)}function p(u,d,h){return function(g){var b,w,x=u,S="",k=_(g,h);for(w=0;w<d.length-1;w++){if(typeof(b=d[w])=="number"&&!f(x))throw"array index but container is not an array";if(b===-1){if(k=!o(x,d.slice(w+1),g,h))break;return}if(!s(x,b,d[w+1],k))break;if(typeof(x=x[b])!="object"||x===null)throw"container is not an object";S=l(S,b)}if(k){if(w===d.length-1&&(delete x[d[w]],Array.isArray(x)&&+d[w]==x.length-1))for(;x.length&&x[x.length-1]===void 0;)x.pop()}else x[d[w]]=g}}function l(u,d){var h=d;return v(d)?h="["+d+"]":u&&(h="."+d),u+h}function o(u,d,h,g){var b,w=f(h),x=!0,S=h,k=g.replace("-1",0),T=!w&&_(h,k),C=d[0];for(b=0;b<u.length;b++)k=g.replace("-1",b),w&&(T=_(S=h[b%h.length],k)),T&&(x=!1),s(u,b,C,T)&&p(u[b],d,g.replace("-1",b))(S);return x}function s(u,d,h,g){if(u[d]===void 0){if(g)return!1;u[d]=typeof h=="number"?[]:{}}return!0}},4969:function(c){c.exports=function(){}},87355:function(c,m,a){var v=a(45568),f=a(10721),n=[];c.exports=function(y,_){if(n.indexOf(y)===-1){n.push(y);var p=1e3;f(_)?p=_:_==="long"&&(p=3e3);var l=v.select("body").selectAll(".plotly-notifier").data([0]);l.enter().append("div").classed("plotly-notifier",!0),l.selectAll(".notifier-note").data(n).enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(s){var u=v.select(this);u.append("button").classed("notifier-close",!0).html("&times;").on("click",function(){u.transition().call(o)});for(var d=u.append("p"),h=s.split(/<br\s*\/?>/g),g=0;g<h.length;g++)g&&d.append("br"),d.append("span").text(h[g]);_==="stick"?u.transition().duration(350).style("opacity",1):u.transition().duration(700).style("opacity",1).transition().delay(p).call(o)})}function o(s){s.duration(700).style("opacity",0).each("end",function(u){var d=n.indexOf(u);d!==-1&&n.splice(d,1),v.select(this).remove()})}}},93134:function(c,m,a){var v=a(27983),f="data-savedcursor";c.exports=function(n,y){var _=n.attr(f);if(y){if(!_){for(var p=(n.attr("class")||"").split(" "),l=0;l<p.length;l++){var o=p[l];o.indexOf("cursor-")===0&&n.attr(f,o.substr(7)).classed(o,!1)}n.attr(f)||n.attr(f,"!!")}v(n,y)}else _&&(n.attr(f,null),_==="!!"?v(n):v(n,_))}},80899:function(c,m,a){var v=a(15236).dot,f=a(63821).BADNUM,n=c.exports={};n.tester=function(y){var _,p=y.slice(),l=p[0][0],o=l,s=p[0][1],u=s;for(p[p.length-1][0]===p[0][0]&&p[p.length-1][1]===p[0][1]||p.push(p[0]),_=1;_<p.length;_++)l=Math.min(l,p[_][0]),o=Math.max(o,p[_][0]),s=Math.min(s,p[_][1]),u=Math.max(u,p[_][1]);var d,h=!1;p.length===5&&(p[0][0]===p[1][0]?p[2][0]===p[3][0]&&p[0][1]===p[3][1]&&p[1][1]===p[2][1]&&(h=!0,d=function(w){return w[0]===p[0][0]}):p[0][1]===p[1][1]&&p[2][1]===p[3][1]&&p[0][0]===p[3][0]&&p[1][0]===p[2][0]&&(h=!0,d=function(w){return w[1]===p[0][1]}));var g=!0,b=p[0];for(_=1;_<p.length;_++)if(b[0]!==p[_][0]||b[1]!==p[_][1]){g=!1;break}return{xmin:l,xmax:o,ymin:s,ymax:u,pts:p,contains:h?function(w,x){var S=w[0],k=w[1];return!(S===f||S<l||S>o||k===f||k<s||k>u||x&&d(w))}:function(w,x){var S=w[0],k=w[1];if(S===f||S<l||S>o||k===f||k<s||k>u)return!1;var T,C,A,E,M,I=p.length,N=p[0][0],z=p[0][1],F=0;for(T=1;T<I;T++)if(C=N,A=z,N=p[T][0],z=p[T][1],!(S<(E=Math.min(C,N))||S>Math.max(C,N)||k>Math.max(A,z)))if(k<Math.min(A,z))S!==E&&F++;else{if(k===(M=N===C?k:A+(S-C)*(z-A)/(N-C)))return T!==1||!x;k<=M&&S!==E&&F++}return F%2==1},isRect:h,degenerate:g}},n.isSegmentBent=function(y,_,p,l){var o,s,u,d=y[_],h=[y[p][0]-d[0],y[p][1]-d[1]],g=v(h,h),b=Math.sqrt(g),w=[-h[1]/b,h[0]/b];for(o=_+1;o<p;o++)if(s=[y[o][0]-d[0],y[o][1]-d[1]],(u=v(s,h))<0||u>g||Math.abs(v(s,w))>l)return!0;return!1},n.filter=function(y,_){var p=[y[0]],l=0,o=0;function s(u){y.push(u);var d=p.length,h=l;p.splice(o+1);for(var g=h+1;g<y.length;g++)(g===y.length-1||n.isSegmentBent(y,h,g+1,_))&&(p.push(y[g]),p.length<d-2&&(l=g,o=p.length-1),h=g)}return y.length>1&&s(y.pop()),{addPt:s,raw:y,filtered:p}}},22459:function(c,m,a){var v=a(97464),f=a(81330);c.exports=function(n,y,_){var p=n._fullLayout,l=!0;return p._glcanvas.each(function(o){if(o.regl)o.regl.preloadCachedCode(_);else if(!o.pick||p._has("parcoords")){try{o.regl=f({canvas:this,attributes:{antialias:!o.pick,preserveDrawingBuffer:!0},pixelRatio:n._context.plotGlPixelRatio||a.g.devicePixelRatio,extensions:y||[],cachedCode:_||{}})}catch{l=!1}o.regl||(l=!1),l&&this.addEventListener("webglcontextlost",function(s){n&&n.emit&&n.emit("plotly_webglcontextlost",{event:s,layer:o.key})},!1)}}),l||v({container:p._glcontainer.node()}),l}},32521:function(c,m,a){var v=a(10721),f=a(13087);c.exports=function(n){var y;if(typeof(y=n&&n.hasOwnProperty("userAgent")?n.userAgent:function(){var d;return typeof navigator<"u"&&(d=navigator.userAgent),d&&d.headers&&typeof d.headers["user-agent"]=="string"&&(d=d.headers["user-agent"]),d}())!="string")return!0;var _=f({ua:{headers:{"user-agent":y}},tablet:!0,featureDetect:!1});if(!_){for(var p=y.split(" "),l=1;l<p.length;l++)if(p[l].indexOf("Safari")!==-1)for(var o=l-1;o>-1;o--){var s=p[o];if(s.substr(0,8)==="Version/"){var u=s.substr(8).split(".")[0];if(v(u)&&(u=+u),u>=13)return!0}}}return _}},36539:function(c){c.exports=function(m,a){if(a instanceof RegExp){for(var v=a.toString(),f=0;f<m.length;f++)if(m[f]instanceof RegExp&&m[f].toString()===v)return m;m.push(a)}else!a&&a!==0||m.indexOf(a)!==-1||m.push(a);return m}},40486:function(c,m,a){var v=a(34809),f=a(24452).dfltConfig,n={add:function(y,_,p,l,o){var s,u;y.undoQueue=y.undoQueue||{index:0,queue:[],sequence:!1},u=y.undoQueue.index,y.autoplay?y.undoQueue.inSequence||(y.autoplay=!1):(!y.undoQueue.sequence||y.undoQueue.beginSequence?(s={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},y.undoQueue.queue.splice(u,y.undoQueue.queue.length-u,s),y.undoQueue.index+=1):s=y.undoQueue.queue[u-1],y.undoQueue.beginSequence=!1,s&&(s.undo.calls.unshift(_),s.undo.args.unshift(p),s.redo.calls.push(l),s.redo.args.push(o)),y.undoQueue.queue.length>f.queueLength&&(y.undoQueue.queue.shift(),y.undoQueue.index--))},startSequence:function(y){y.undoQueue=y.undoQueue||{index:0,queue:[],sequence:!1},y.undoQueue.sequence=!0,y.undoQueue.beginSequence=!0},stopSequence:function(y){y.undoQueue=y.undoQueue||{index:0,queue:[],sequence:!1},y.undoQueue.sequence=!1,y.undoQueue.beginSequence=!1},undo:function(y){var _,p;if(!(y.undoQueue===void 0||isNaN(y.undoQueue.index)||y.undoQueue.index<=0)){for(y.undoQueue.index--,_=y.undoQueue.queue[y.undoQueue.index],y.undoQueue.inSequence=!0,p=0;p<_.undo.calls.length;p++)n.plotDo(y,_.undo.calls[p],_.undo.args[p]);y.undoQueue.inSequence=!1,y.autoplay=!1}},redo:function(y){var _,p;if(!(y.undoQueue===void 0||isNaN(y.undoQueue.index)||y.undoQueue.index>=y.undoQueue.queue.length)){for(_=y.undoQueue.queue[y.undoQueue.index],y.undoQueue.inSequence=!0,p=0;p<_.redo.calls.length;p++)n.plotDo(y,_.redo.calls[p],_.redo.args[p]);y.undoQueue.inSequence=!1,y.autoplay=!1,y.undoQueue.index++}},plotDo:function(y,_,p){y.autoplay=!0,p=function(l,o){for(var s,u=[],d=0;d<o.length;d++)s=o[d],u[d]=s===l?s:typeof s=="object"?Array.isArray(s)?v.extendDeep([],s):v.extendDeepAll({},s):s;return u}(y,p),_.apply(null,p)}};c.exports=n},90694:function(c,m){m.counter=function(a,v,f,n){var y=(v||"")+(f?"":"$"),_=n===!1?"":"^";return a==="xy"?new RegExp(_+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+y):new RegExp(_+a+"([2-9]|[1-9][0-9]+)?"+y)}},82047:function(c){var m=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,a=/^[^\.\[\]]+$/;c.exports=function(v,f){for(;f;){var n=v.match(m);if(n)v=n[1];else{if(!v.match(a))throw new Error("bad relativeAttr call:"+[v,f]);v=""}if(f.charAt(0)!=="^")break;f=f.slice(1)}return v&&f.charAt(0)!=="["?v+"."+f:v+f}},80428:function(c,m,a){var v=a(87800).isArrayOrTypedArray,f=a(56174);c.exports=function n(y,_){for(var p in _){var l=_[p],o=y[p];if(o!==l)if(p.charAt(0)==="_"||typeof l=="function"){if(p in y)continue;y[p]=l}else if(v(l)&&v(o)&&f(l[0])){if(p==="customdata"||p==="ids")continue;for(var s=Math.min(l.length,o.length),u=0;u<s;u++)o[u]!==l[u]&&f(l[u])&&f(o[u])&&n(o[u],l[u])}else f(l)&&f(o)&&(n(o,l),Object.keys(o).length||delete y[p])}}},98813:function(c,m,a){var v=a(10721),f=a(48636),n=a(29527),y=a(63821).BADNUM,_=1e-9;function p(u,d){return u<d}function l(u,d){return u<=d}function o(u,d){return u>d}function s(u,d){return u>=d}m.findBin=function(u,d,h){if(v(d.start))return h?Math.ceil((u-d.start)/d.size-_)-1:Math.floor((u-d.start)/d.size+_);var g,b,w=0,x=d.length,S=0,k=x>1?(d[x-1]-d[0])/(x-1):1;for(b=k>=0?h?p:l:h?s:o,u+=k*_*(h?-1:1)*(k>=0?1:-1);w<x&&S++<100;)b(d[g=Math.floor((w+x)/2)],u)?w=g+1:x=g;return S>90&&f.log("Long binary search..."),w-1},m.sorterAsc=function(u,d){return u-d},m.sorterDes=function(u,d){return d-u},m.distinctVals=function(u){var d,h=u.slice();for(h.sort(m.sorterAsc),d=h.length-1;d>-1&&h[d]===y;d--);for(var g,b=h[d]-h[0]||1,w=b/(d||1)/1e4,x=[],S=0;S<=d;S++){var k=h[S],T=k-g;g===void 0?(x.push(k),g=k):T>w&&(b=Math.min(b,T),x.push(k),g=k)}return{vals:x,minDiff:b}},m.roundUp=function(u,d,h){for(var g,b=0,w=d.length-1,x=0,S=h?0:1,k=h?1:0,T=h?Math.ceil:Math.floor;b<w&&x++<100;)d[g=T((b+w)/2)]<=u?b=g+S:w=g-k;return d[b]},m.sort=function(u,d){for(var h=0,g=0,b=1;b<u.length;b++){var w=d(u[b],u[b-1]);if(w<0?h=1:w>0&&(g=1),h&&g)return u.sort(d)}return g?u:u.reverse()},m.findIndexOfMin=function(u,d){d=d||n;for(var h,g=1/0,b=0;b<u.length;b++){var w=d(u[b]);w<g&&(g=w,h=b)}return h}},27983:function(c){c.exports=function(m,a){(m.attr("class")||"").split(" ").forEach(function(v){v.indexOf("cursor-")===0&&m.classed(v,!1)}),a&&m.classed("cursor-"+a,!0)}},97464:function(c,m,a){var v=a(78766),f=function(){};c.exports=function(n){for(var y in n)typeof n[y]=="function"&&(n[y]=f);n.destroy=function(){n.container.parentNode.removeChild(n.container)};var _=document.createElement("div");_.className="no-webgl",_.style.cursor="pointer",_.style.fontSize="24px",_.style.color=v.defaults[0],_.style.position="absolute",_.style.left=_.style.top="0px",_.style.width=_.style.height="100%",_.style["background-color"]=v.lightLine,_.style["z-index"]=30;var p=document.createElement("p");return p.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",p.style.position="relative",p.style.top="50%",p.style.left="50%",p.style.height="30%",p.style.width="50%",p.style.margin="-15% 0 0 -25%",_.appendChild(p),n.container.appendChild(_),n.container.style.background="#FFFFFF",n.container.onclick=function(){window.open("https://get.webgl.org")},!1}},62994:function(c){c.exports=function(m){return Object.keys(m).sort()}},89258:function(c,m,a){var v=a(10721),f=a(87800).isArrayOrTypedArray;m.aggNums=function(n,y,_,p){var l,o;if((!p||p>_.length)&&(p=_.length),v(y)||(y=!1),f(_[0])){for(o=new Array(p),l=0;l<p;l++)o[l]=m.aggNums(n,y,_[l]);_=o}for(l=0;l<p;l++)v(y)?v(_[l])&&(y=n(+y,+_[l])):y=_[l];return y},m.len=function(n){return m.aggNums(function(y){return y+1},0,n)},m.mean=function(n,y){return y||(y=m.len(n)),m.aggNums(function(_,p){return _+p},0,n)/y},m.geometricMean=function(n,y){return y||(y=m.len(n)),Math.pow(m.aggNums(function(_,p){return _*p},1,n),1/y)},m.midRange=function(n){if(n!==void 0&&n.length!==0)return(m.aggNums(Math.max,null,n)+m.aggNums(Math.min,null,n))/2},m.variance=function(n,y,_){return y||(y=m.len(n)),v(_)||(_=m.mean(n,y)),m.aggNums(function(p,l){return p+Math.pow(l-_,2)},0,n)/y},m.stdev=function(n,y,_){return Math.sqrt(m.variance(n,y,_))},m.median=function(n){var y=n.slice().sort();return m.interp(y,.5)},m.interp=function(n,y){if(!v(y))throw"n should be a finite number";if((y=y*n.length-.5)<0)return n[0];if(y>n.length-1)return n[n.length-1];var _=y%1;return _*n[Math.ceil(y)]+(1-_)*n[Math.floor(y)]}},55010:function(c,m,a){var v=a(162);c.exports=function(f){return f?v(f):[0,0,0,1]}},95544:function(c,m,a){var v=a(1837),f=a(62203),n=a(34809),y=null;c.exports=function(){if(y!==null)return y;y=!1;var _=n.isIE()||n.isSafari()||n.isIOS();if(window.navigator.userAgent&&!_){var p=Array.from(v.CSS_DECLARATIONS).reverse(),l=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof l=="function")y=p.some(function(u){return l.apply(null,u)});else{var o=f.tester.append("image").attr("style",v.STYLE),s=window.getComputedStyle(o.node()).imageRendering;y=p.some(function(u){var d=u[1];return s===d||s===d.toLowerCase()}),o.remove()}}return y}},30635:function(c,m,a){var v=a(45568),f=a(34809),n=f.strTranslate,y=a(62972),_=a(4530).LINE_SPACING,p=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;m.convertToTspans=function(U,Z,q){var W=U.text(),Q=!U.attr("data-notex")&&Z&&Z._context.typesetMath&&typeof MathJax<"u"&&W.match(p),X=v.select(U.node().parentNode);if(!X.empty()){var J=U.attr("class")?U.attr("class").split(" ")[0]:"text";return J+="-math",X.selectAll("svg."+J).remove(),X.selectAll("g."+J+"-group").remove(),U.style("display",null).attr({"data-unformatted":W,"data-math":"N"}),Q?(Z&&Z._promises||[]).push(new Promise(function(le){U.style("display","none");var oe=parseInt(U.node().style.fontSize,10),se={fontSize:oe};(function(ce,ae,ne){var ie,ue,he,pe,me=parseInt((MathJax.version||"").split(".")[0]);if(me===2||me===3){var _e=function(){var we="math-output-"+f.randstr({},64),Ee=(pe=v.select("body").append("div").attr({id:we}).style({visibility:"hidden",position:"absolute","font-size":ae.fontSize+"px"}).text(ce.replace(l,"\\lt ").replace(o,"\\gt "))).node();return me===2?MathJax.Hub.Typeset(Ee):MathJax.typeset([Ee])},xe=function(){var we=pe.select(me===2?".MathJax_SVG":".MathJax"),Ee=!we.empty()&&pe.select("svg").node();if(Ee){var Pe,$e=Ee.getBoundingClientRect();Pe=me===2?v.select("body").select("#MathJax_SVG_glyphs"):we.select("defs"),ne(we,Pe,$e)}else f.log("There was an error in the tex syntax.",ce),ne();pe.remove()};me===2?MathJax.Hub.Queue(function(){return ue=f.extendDeepAll({},MathJax.Hub.config),he=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:s},displayAlign:"left"})},function(){if((ie=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},_e,xe,function(){if(ie!=="SVG")return MathJax.Hub.setRenderer(ie)},function(){return he!==void 0&&(MathJax.Hub.processSectionDelay=he),MathJax.Hub.Config(ue)}):me===3&&(ue=f.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=s,(ie=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){_e(),xe(),ie!=="svg"&&(MathJax.config.startup.output=ie),MathJax.config=ue}))}else f.warn("No MathJax version:",MathJax.version)})(Q[2],se,function(ce,ae,ne){X.selectAll("svg."+J).remove(),X.selectAll("g."+J+"-group").remove();var ie=ce&&ce.select("svg");if(!ie||!ie.node())return ee(),void le();var ue=X.append("g").classed(J+"-group",!0).attr({"pointer-events":"none","data-unformatted":W,"data-math":"Y"});ue.node().appendChild(ie.node()),ae&&ae.node()&&ie.node().insertBefore(ae.node().cloneNode(!0),ie.node().firstChild);var he=ne.width,pe=ne.height;ie.attr({class:J,height:pe,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var me=U.node().style.fill||"black",_e=ie.select("g");_e.attr({fill:me,stroke:me});var xe=_e.node().getBoundingClientRect(),we=xe.width,Ee=xe.height;(we>he||Ee>pe)&&(ie.style("overflow","hidden"),we=(xe=ie.node().getBoundingClientRect()).width,Ee=xe.height);var Pe=+U.attr("x"),$e=+U.attr("y"),Te=-(oe||U.node().getBoundingClientRect().height)/4;if(J[0]==="y")ue.attr({transform:"rotate("+[-90,Pe,$e]+")"+n(-we/2,Te-Ee/2)});else if(J[0]==="l")$e=Te-Ee/2;else if(J[0]==="a"&&J.indexOf("atitle")!==0)Pe=0,$e=Te;else{var Ce=U.attr("text-anchor");Pe-=we*(Ce==="middle"?.5:Ce==="end"?1:0),$e=$e+Te-Ee/2}ie.attr({x:Pe,y:$e}),q&&q.call(U,ue),le(ue)})})):ee(),U}function ee(){X.empty()||(J=U.attr("class")+"-math",X.select("svg."+J).remove()),U.text("").style("white-space","pre");var le=function(oe,se){se=se.replace(w," ");var ce,ae=!1,ne=[],ie=-1;function ue(){ie++;var Se=document.createElementNS(y.svg,"tspan");v.select(Se).attr({class:"line",dy:ie*_+"em"}),oe.appendChild(Se),ce=Se;var ze=ne;if(ne=[{node:Se}],ze.length>1)for(var Fe=1;Fe<ze.length;Fe++)he(ze[Fe])}function he(Se){var ze,Fe=Se.type,De={};if(Fe==="a"){ze="a";var Ue=Se.target,Ne=Se.href,ke=Se.popup;Ne&&(De={"xlink:xlink:show":Ue==="_blank"||Ue.charAt(0)!=="_"?"new":"replace",target:Ue,"xlink:xlink:href":Ne},ke&&(De.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+ke+'");return false;'))}else ze="tspan";Se.style&&(De.style=Se.style);var Oe=document.createElementNS(y.svg,ze);if(Fe==="sup"||Fe==="sub"){pe(ce,g),ce.appendChild(Oe);var Re=document.createElementNS(y.svg,"tspan");pe(Re,g),v.select(Re).attr("dy",h[Fe]),De.dy=d[Fe],ce.appendChild(Oe),ce.appendChild(Re)}else ce.appendChild(Oe);v.select(Oe).attr(De),ce=Se.node=Oe,ne.push(Se)}function pe(Se,ze){Se.appendChild(document.createTextNode(ze))}function me(Se){if(ne.length!==1){var ze=ne.pop();Se!==ze.type&&f.log("Start tag <"+ze.type+"> doesnt match end tag <"+Se+">. Pretending it did match.",se),ce=ne[ne.length-1].node}else f.log("Ignoring unexpected end tag </"+Se+">.",se)}k.test(se)?ue():(ce=oe,ne=[{node:oe}]);for(var _e=se.split(x),xe=0;xe<_e.length;xe++){var we=_e[xe],Ee=we.match(S),Pe=Ee&&Ee[2].toLowerCase(),$e=u[Pe];if(Pe==="br")ue();else if($e===void 0)pe(ce,F(we));else if(Ee[1])me(Pe);else{var Te=Ee[4],Ce={type:Pe},ye=M(Te,T);if(ye?(ye=ye.replace(I,"$1 fill:"),$e&&(ye+=";"+$e)):$e&&(ye=$e),ye&&(Ce.style=ye),Pe==="a"){ae=!0;var ge=M(Te,C);if(ge){var Me=R(ge);Me&&(Ce.href=Me,Ce.target=M(Te,A)||"_blank",Ce.popup=M(Te,E))}}he(Ce)}}return ae}(U.node(),W);le&&U.style("pointer-events","all"),m.positionText(U),q&&q.call(U)}};var l=/(<|&lt;|&#60;)/g,o=/(>|&gt;|&#62;)/g,s=[["$","$"],["\\(","\\)"]],u={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},d={sub:"0.3em",sup:"-0.6em"},h={sub:"-0.21em",sup:"0.42em"},g="​",b=["http:","https:","mailto:","",void 0,":"],w=m.NEWLINES=/(\r\n?|\n)/g,x=/(<[^<>]*>)/,S=/<(\/?)([^ >]*)(\s+(.*))?>/i,k=/<br(\s+.*)?>/i;m.BR_TAG_ALL=/<br(\s+.*)?>/gi;var T=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,C=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,A=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,E=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function M(U,Z){if(!U)return null;var q=U.match(Z),W=q&&(q[3]||q[4]);return W&&F(W)}var I=/(^|;)\s*color:/;m.plainText=function(U,Z){for(var q=(Z=Z||{}).len!==void 0&&Z.len!==-1?Z.len:1/0,W=Z.allowedTags!==void 0?Z.allowedTags:["br"],Q=U.split(x),X=[],J="",ee=0,le=0;le<Q.length;le++){var oe=Q[le],se=oe.match(S),ce=se&&se[2].toLowerCase();if(ce)W.indexOf(ce)!==-1&&(X.push(oe),J=ce);else{var ae=oe.length;if(ee+ae<q)X.push(oe),ee+=ae;else if(ee<q){var ne=q-ee;J&&(J!=="br"||ne<=3||ae<=3)&&X.pop(),q>3?X.push(oe.substr(0,ne-3)+"..."):X.push(oe.substr(0,ne));break}J=""}}return X.join("")};var N={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},z=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function F(U){return U.replace(z,function(Z,q){return(q.charAt(0)==="#"?function(W){if(!(W>1114111)){var Q=String.fromCodePoint;if(Q)return Q(W);var X=String.fromCharCode;return W<=65535?X(W):X(55232+(W>>10),W%1024+56320)}}(q.charAt(1)==="x"?parseInt(q.substr(2),16):parseInt(q.substr(1),10)):N[q])||Z})}function R(U){var Z=encodeURI(decodeURI(U)),q=document.createElement("a"),W=document.createElement("a");q.href=U,W.href=Z;var Q=q.protocol,X=W.protocol;return b.indexOf(Q)!==-1&&b.indexOf(X)!==-1?Z:""}function V(U,Z,q){var W,Q,X,J=q.horizontalAlign,ee=q.verticalAlign||"top",le=U.node().getBoundingClientRect(),oe=Z.node().getBoundingClientRect();return Q=ee==="bottom"?function(){return le.bottom-W.height}:ee==="middle"?function(){return le.top+(le.height-W.height)/2}:function(){return le.top},X=J==="right"?function(){return le.right-W.width}:J==="center"?function(){return le.left+(le.width-W.width)/2}:function(){return le.left},function(){W=this.node().getBoundingClientRect();var se=X()-oe.left,ce=Q()-oe.top,ae=q.gd||{};if(q.gd){ae._fullLayout._calcInverseTransform(ae);var ne=f.apply3DTransform(ae._fullLayout._invTransform)(se,ce);se=ne[0],ce=ne[1]}return this.style({top:ce+"px",left:se+"px","z-index":1e3}),this}}m.convertEntities=F,m.sanitizeHTML=function(U){U=U.replace(w," ");for(var Z=document.createElement("p"),q=Z,W=[],Q=U.split(x),X=0;X<Q.length;X++){var J=Q[X],ee=J.match(S),le=ee&&ee[2].toLowerCase();if(le in u)if(ee[1])W.length&&(q=W.pop());else{var oe=ee[4],se=M(oe,T),ce=se?{style:se}:{};if(le==="a"){var ae=M(oe,C);if(ae){var ne=R(ae);if(ne){ce.href=ne;var ie=M(oe,A);ie&&(ce.target=ie)}}}var ue=document.createElement(le);q.appendChild(ue),v.select(ue).attr(ce),q=ue,W.push(ue)}else q.appendChild(document.createTextNode(F(J)))}return Z.innerHTML},m.lineCount=function(U){return U.selectAll("tspan.line").size()||1},m.positionText=function(U,Z,q){return U.each(function(){var W=v.select(this);function Q(ee,le){return le===void 0?(le=W.attr(ee))===null&&(W.attr(ee,0),le=0):W.attr(ee,le),le}var X=Q("x",Z),J=Q("y",q);this.nodeName==="text"&&W.selectAll("tspan.line").attr({x:X,y:J})})};var $="1px ";m.makeTextShadow=function(U){return $+$+$+U+", -"+$+"-"+$+$+U+", "+$+"-"+$+$+U+", -"+$+$+$+U},m.makeEditable=function(U,Z){var q=Z.gd,W=Z.delegate,Q=v.dispatch("edit","input","cancel"),X=W||U;if(U.style({"pointer-events":W?"none":"all"}),U.size()!==1)throw new Error("boo");function J(){var le,oe,se,ce,ae;le=v.select(q).select(".svg-container"),oe=le.append("div"),se=U.node().style,ce=parseFloat(se.fontSize||12),(ae=Z.text)===void 0&&(ae=U.attr("data-unformatted")),oe.classed("plugin-editable editable",!0).style({position:"absolute","font-family":se.fontFamily||"Arial","font-size":ce,color:Z.fill||se.fill||"black",opacity:1,"background-color":Z.background||"transparent",outline:"#ffffff33 1px solid",margin:[-ce/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(ae).call(V(U,le,Z)).on("blur",function(){q._editing=!1,U.text(this.textContent).style({opacity:1});var ue,he=v.select(this).attr("class");(ue=he?"."+he.split(" ")[0]+"-math-group":"[class*=-math-group]")&&v.select(U.node().parentNode).select(ue).style({opacity:0});var pe=this.textContent;v.select(this).transition().duration(0).remove(),v.select(document).on("mouseup",null),Q.edit.call(U,pe)}).on("focus",function(){var ue=this;q._editing=!0,v.select(document).on("mouseup",function(){if(v.event.target===ue)return!1;document.activeElement===oe.node()&&oe.node().blur()})}).on("keyup",function(){v.event.which===27?(q._editing=!1,U.style({opacity:1}),v.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),Q.cancel.call(U,this.textContent)):(Q.input.call(U,this.textContent),v.select(this).call(V(U,le,Z)))}).on("keydown",function(){v.event.which===13&&this.blur()}).call(ee),U.style({opacity:0});var ne,ie=X.attr("class");(ne=ie?"."+ie.split(" ")[0]+"-math-group":"[class*=-math-group]")&&v.select(U.node().parentNode).select(ne).style({opacity:0})}function ee(le){var oe=le.node(),se=document.createRange();se.selectNodeContents(oe);var ce=window.getSelection();ce.removeAllRanges(),ce.addRange(se),oe.focus()}return Z.immediate?J():X.on("click",J),v.rebind(U,Q,"on")}},64025:function(c,m){var a={};function v(f){f&&f.timer!==null&&(clearTimeout(f.timer),f.timer=null)}m.throttle=function(f,n,y){var _=a[f],p=Date.now();if(!_){for(var l in a)a[l].ts<p-6e4&&delete a[l];_=a[f]={ts:0,timer:null}}function o(){y(),_.ts=Date.now(),_.onDone&&(_.onDone(),_.onDone=null)}v(_),p>_.ts+n?o():_.timer=setTimeout(function(){o(),_.timer=null},n)},m.done=function(f){var n=a[f];return n&&n.timer?new Promise(function(y){var _=n.onDone;n.onDone=function(){_&&_(),y(),n.onDone=null}}):Promise.resolve()},m.clear=function(f){if(f)v(a[f]),delete a[f];else for(var n in a)m.clear(n)}},8083:function(c,m,a){var v=a(10721);c.exports=function(f,n){if(f>0)return Math.log(f)/Math.LN10;var y=Math.log(Math.min(n[0],n[1]))/Math.LN10;return v(y)||(y=Math.log(Math.max(n[0],n[1]))/Math.LN10-6),y}},11577:function(c,m,a){var v=c.exports={},f=a(74285).locationmodeToLayer,n=a(48640).N4;v.getTopojsonName=function(y){return[y.scope.replace(/ /g,"-"),"_",y.resolution.toString(),"m"].join("")},v.getTopojsonPath=function(y,_){return y+_+".json"},v.getTopojsonFeatures=function(y,_){var p=f[y.locationmode],l=_.objects[p];return n(_,l).features}},44611:function(c){c.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},30227:function(c){c.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},56037:function(c,m,a){var v=a(33626);c.exports=function(f){for(var n,y,_=v.layoutArrayContainers,p=v.layoutArrayRegexes,l=f.split("[")[0],o=0;o<p.length;o++)if((y=f.match(p[o]))&&y.index===0){n=y[0];break}if(n||(n=_[_.indexOf(l)]),!n)return!1;var s=f.substr(n.length);return s?!!(y=s.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&&{array:n,index:Number(y[1]),property:y[3]||""}:{array:n,index:"",property:""}}},13582:function(c,m,a){var v=a(93049).extendFlat,f=a(56174),n={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},y={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},_=n.flags.slice().concat(["fullReplot"]),p=y.flags.slice().concat("layoutReplot");function l(u){for(var d={},h=0;h<u.length;h++)d[u[h]]=!1;return d}function o(u,d,h){var g=v({},u);for(var b in g){var w=g[b];f(w)&&(g[b]=s(w,d,0,b))}return h==="from-root"&&(g.editType=d),g}function s(u,d,h,g){if(u.valType){var b=v({},u);if(b.editType=d,Array.isArray(u.items)){b.items=new Array(u.items.length);for(var w=0;w<u.items.length;w++)b.items[w]=s(u.items[w],d)}return b}return o(u,d,g.charAt(0)==="_"?"nested":"from-root")}c.exports={traces:n,layout:y,traceFlags:function(){return l(_)},layoutFlags:function(){return l(p)},update:function(u,d){var h=d.editType;if(h&&h!=="none")for(var g=h.split("+"),b=0;b<g.length;b++)u[g[b]]=!0},overrideAll:o}},10887:function(c,m,a){var v=a(10721),f=a(36472),n=a(33626),y=a(34809),_=a(44122),p=a(5975),l=a(78766),o=p.cleanId,s=p.getFromTrace,u=n.traceIs;function d(C,A){var E=C[A],M=A.charAt(0);E&&E!=="paper"&&(C[A]=o(E,M,!0))}function h(C){function A(E,M){var I=C[E],N=C.title&&C.title[M];I&&!N&&(C.title||(C.title={}),C.title[M]=C[E],delete C[E])}C&&(typeof C.title!="string"&&typeof C.title!="number"||(C.title={text:C.title}),A("titlefont","font"),A("titleposition","position"),A("titleside","side"),A("titleoffset","offset"))}function g(C){if(!y.isPlainObject(C))return!1;var A=C.name;return delete C.name,delete C.showlegend,(typeof A=="string"||typeof A=="number")&&String(A)}function b(C,A,E,M){if(E&&!M)return C;if(M&&!E||!C.trim())return A;if(!A.trim())return C;var I,N=Math.min(C.length,A.length);for(I=0;I<N&&C.charAt(I)===A.charAt(I);I++);return C.substr(0,I).trim()}function w(C){var A="middle",E="center";return typeof C=="string"&&(C.indexOf("top")!==-1?A="top":C.indexOf("bottom")!==-1&&(A="bottom"),C.indexOf("left")!==-1?E="left":C.indexOf("right")!==-1&&(E="right")),A+" "+E}function x(C,A){return A in C&&typeof C[A]=="object"&&Object.keys(C[A]).length===0}m.clearPromiseQueue=function(C){Array.isArray(C._promises)&&C._promises.length>0&&y.log("Clearing previous rejected promises from queue."),C._promises=[]},m.cleanLayout=function(C){var A,E;C||(C={}),C.xaxis1&&(C.xaxis||(C.xaxis=C.xaxis1),delete C.xaxis1),C.yaxis1&&(C.yaxis||(C.yaxis=C.yaxis1),delete C.yaxis1),C.scene1&&(C.scene||(C.scene=C.scene1),delete C.scene1);var M=(_.subplotsRegistry.cartesian||{}).attrRegex,I=(_.subplotsRegistry.polar||{}).attrRegex,N=(_.subplotsRegistry.ternary||{}).attrRegex,z=(_.subplotsRegistry.gl3d||{}).attrRegex,F=Object.keys(C);for(A=0;A<F.length;A++){var R=F[A];if(M&&M.test(R)){var V=C[R];V.anchor&&V.anchor!=="free"&&(V.anchor=o(V.anchor)),V.overlaying&&(V.overlaying=o(V.overlaying)),V.type||(V.isdate?V.type="date":V.islog?V.type="log":V.isdate===!1&&V.islog===!1&&(V.type="linear")),V.autorange!=="withzero"&&V.autorange!=="tozero"||(V.autorange=!0,V.rangemode="tozero"),V.insiderange&&delete V.range,delete V.islog,delete V.isdate,delete V.categories,x(V,"domain")&&delete V.domain,V.autotick!==void 0&&(V.tickmode===void 0&&(V.tickmode=V.autotick?"auto":"linear"),delete V.autotick),h(V)}else if(I&&I.test(R))h(C[R].radialaxis);else if(N&&N.test(R)){var $=C[R];h($.aaxis),h($.baxis),h($.caxis)}else if(z&&z.test(R)){var U=C[R],Z=U.cameraposition;if(Array.isArray(Z)&&Z[0].length===4){var q=Z[0],W=Z[1],Q=Z[2],X=f([],q),J=[];for(E=0;E<3;++E)J[E]=W[E]+Q*X[2+4*E];U.camera={eye:{x:J[0],y:J[1],z:J[2]},center:{x:W[0],y:W[1],z:W[2]},up:{x:0,y:0,z:1}},delete U.cameraposition}h(U.xaxis),h(U.yaxis),h(U.zaxis)}}var ee=Array.isArray(C.annotations)?C.annotations.length:0;for(A=0;A<ee;A++){var le=C.annotations[A];y.isPlainObject(le)&&(le.ref&&(le.ref==="paper"?(le.xref="paper",le.yref="paper"):le.ref==="data"&&(le.xref="x",le.yref="y"),delete le.ref),d(le,"xref"),d(le,"yref"))}var oe=Array.isArray(C.shapes)?C.shapes.length:0;for(A=0;A<oe;A++){var se=C.shapes[A];y.isPlainObject(se)&&(d(se,"xref"),d(se,"yref"))}var ce=Array.isArray(C.images)?C.images.length:0;for(A=0;A<ce;A++){var ae=C.images[A];y.isPlainObject(ae)&&(d(ae,"xref"),d(ae,"yref"))}var ne=C.legend;return ne&&(ne.x>3?(ne.x=1.02,ne.xanchor="left"):ne.x<-2&&(ne.x=-.02,ne.xanchor="right"),ne.y>3?(ne.y=1.02,ne.yanchor="bottom"):ne.y<-2&&(ne.y=-.02,ne.yanchor="top")),h(C),C.dragmode==="rotate"&&(C.dragmode="orbit"),l.clean(C),C.template&&C.template.layout&&m.cleanLayout(C.template.layout),C},m.cleanData=function(C){for(var A=0;A<C.length;A++){var E,M=C[A];if(M.type==="histogramy"&&"xbins"in M&&!("ybins"in M)&&(M.ybins=M.xbins,delete M.xbins),M.error_y&&"opacity"in M.error_y){var I=l.defaults,N=M.error_y.color||(u(M,"bar")?l.defaultLine:I[A%I.length]);M.error_y.color=l.addOpacity(l.rgb(N),l.opacity(N)*M.error_y.opacity),delete M.error_y.opacity}if("bardir"in M&&(M.bardir!=="h"||!u(M,"bar")&&M.type.substr(0,9)!=="histogram"||(M.orientation="h",m.swapXYData(M)),delete M.bardir),M.type==="histogramy"&&m.swapXYData(M),M.type!=="histogramx"&&M.type!=="histogramy"||(M.type="histogram"),"scl"in M&&!("colorscale"in M)&&(M.colorscale=M.scl,delete M.scl),"reversescl"in M&&!("reversescale"in M)&&(M.reversescale=M.reversescl,delete M.reversescl),M.xaxis&&(M.xaxis=o(M.xaxis,"x")),M.yaxis&&(M.yaxis=o(M.yaxis,"y")),u(M,"gl3d")&&M.scene&&(M.scene=_.subplotsRegistry.gl3d.cleanId(M.scene)),!u(M,"pie-like")&&!u(M,"bar-like"))if(Array.isArray(M.textposition))for(E=0;E<M.textposition.length;E++)M.textposition[E]=w(M.textposition[E]);else M.textposition&&(M.textposition=w(M.textposition));var z=n.getModule(M);if(z&&z.colorbar){var F=z.colorbar.container,R=F?M[F]:M;R&&R.colorscale&&(R.colorscale==="YIGnBu"&&(R.colorscale="YlGnBu"),R.colorscale==="YIOrRd"&&(R.colorscale="YlOrRd"))}if(M.type==="surface"&&y.isPlainObject(M.contours)){var V=["x","y","z"];for(E=0;E<V.length;E++){var $=M.contours[V[E]];y.isPlainObject($)&&($.highlightColor&&($.highlightcolor=$.highlightColor,delete $.highlightColor),$.highlightWidth&&($.highlightwidth=$.highlightWidth,delete $.highlightWidth))}}if(M.type==="candlestick"||M.type==="ohlc"){var U=(M.increasing||{}).showlegend!==!1,Z=(M.decreasing||{}).showlegend!==!1,q=g(M.increasing),W=g(M.decreasing);if(q!==!1&&W!==!1){var Q=b(q,W,U,Z);Q&&(M.name=Q)}else!q&&!W||M.name||(M.name=q||W)}if(Array.isArray(M.transforms)){var X=M.transforms;for(E=0;E<X.length;E++){var J=X[E];if(y.isPlainObject(J))switch(J.type){case"filter":J.filtersrc&&(J.target=J.filtersrc,delete J.filtersrc),J.calendar&&(J.valuecalendar||(J.valuecalendar=J.calendar),delete J.calendar);break;case"groupby":if(J.styles=J.styles||J.style,J.styles&&!Array.isArray(J.styles)){var ee=J.styles,le=Object.keys(ee);J.styles=[];for(var oe=0;oe<le.length;oe++)J.styles.push({target:le[oe],value:ee[le[oe]]})}}}}x(M,"line")&&delete M.line,"marker"in M&&(x(M.marker,"line")&&delete M.marker.line,x(M,"marker")&&delete M.marker),l.clean(M),M.autobinx&&(delete M.autobinx,delete M.xbins),M.autobiny&&(delete M.autobiny,delete M.ybins),h(M),M.colorbar&&h(M.colorbar),M.marker&&M.marker.colorbar&&h(M.marker.colorbar),M.line&&M.line.colorbar&&h(M.line.colorbar),M.aaxis&&h(M.aaxis),M.baxis&&h(M.baxis)}},m.swapXYData=function(C){var A;if(y.swapAttrs(C,["?","?0","d?","?bins","nbins?","autobin?","?src","error_?"]),Array.isArray(C.z)&&Array.isArray(C.z[0])&&(C.transpose?delete C.transpose:C.transpose=!0),C.error_x&&C.error_y){var E=C.error_y,M="copy_ystyle"in E?E.copy_ystyle:!(E.color||E.thickness||E.width);y.swapAttrs(C,["error_?.copy_ystyle"]),M&&y.swapAttrs(C,["error_?.color","error_?.thickness","error_?.width"])}if(typeof C.hoverinfo=="string"){var I=C.hoverinfo.split("+");for(A=0;A<I.length;A++)I[A]==="x"?I[A]="y":I[A]==="y"&&(I[A]="x");C.hoverinfo=I.join("+")}},m.coerceTraceIndices=function(C,A){if(v(A))return[A];if(!Array.isArray(A)||!A.length)return C.data.map(function(I,N){return N});if(Array.isArray(A)){for(var E=[],M=0;M<A.length;M++)y.isIndex(A[M],C.data.length)?E.push(A[M]):y.warn("trace index (",A[M],") is not a number or is out of bounds");return E}return A},m.manageArrayContainers=function(C,A,E){var M=C.obj,I=C.parts,N=I.length,z=I[N-1],F=v(z);if(F&&A===null){var R=I.slice(0,N-1).join(".");y.nestedProperty(M,R).get().splice(z,1)}else F&&C.get()===void 0&&C.get()===void 0&&(E[C.astr]=null),C.set(A)};var S=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function k(C){var A=C.search(S);if(A>0)return C.substr(0,A)}m.hasParent=function(C,A){for(var E=k(A);E;){if(E in C)return!0;E=k(E)}return!1};var T=["x","y","z"];m.clearAxisTypes=function(C,A,E){for(var M=0;M<A.length;M++)for(var I=C._fullData[M],N=0;N<3;N++){var z=s(C,I,T[N]);if(z&&z.type!=="log"){var F=z._name,R=z._id.substr(1);if(R.substr(0,5)==="scene"){if(E[R]!==void 0)continue;F=R+"."+F}var V=F+".type";E[F]===void 0&&E[V]===void 0&&y.nestedProperty(C.layout,V).set(null)}}}},90742:function(c,m,a){var v=a(31420);m._doPlot=v._doPlot,m.newPlot=v.newPlot,m.restyle=v.restyle,m.relayout=v.relayout,m.redraw=v.redraw,m.update=v.update,m._guiRestyle=v._guiRestyle,m._guiRelayout=v._guiRelayout,m._guiUpdate=v._guiUpdate,m._storeDirectGUIEdit=v._storeDirectGUIEdit,m.react=v.react,m.extendTraces=v.extendTraces,m.prependTraces=v.prependTraces,m.addTraces=v.addTraces,m.deleteTraces=v.deleteTraces,m.moveTraces=v.moveTraces,m.purge=v.purge,m.addFrames=v.addFrames,m.deleteFrames=v.deleteFrames,m.animate=v.animate,m.setPlotConfig=v.setPlotConfig;var f=a(95425).getGraphDiv,n=a(28231).eraseActiveShape;m.deleteActiveShape=function(_){return n(f(_))},m.toImage=a(80491),m.validate=a(2466),m.downloadImage=a(26452);var y=a(53853);m.makeTemplate=y.makeTemplate,m.validateTemplate=y.validateTemplate},85844:function(c,m,a){var v=a(56174),f=a(4969),n=a(48636),y=a(98813).sorterAsc,_=a(33626);m.containerArrayMatch=a(56037);var p=m.isAddVal=function(o){return o==="add"||v(o)},l=m.isRemoveVal=function(o){return o===null||o==="remove"};m.applyContainerArrayChanges=function(o,s,u,d,h){var g=s.astr,b=_.getComponentMethod(g,"supplyLayoutDefaults"),w=_.getComponentMethod(g,"draw"),x=_.getComponentMethod(g,"drawOne"),S=d.replot||d.recalc||b===f||w===f,k=o.layout,T=o._fullLayout;if(u[""]){Object.keys(u).length>1&&n.warn("Full array edits are incompatible with other edits",g);var C=u[""][""];if(l(C))s.set(null);else{if(!Array.isArray(C))return n.warn("Unrecognized full array edit value",g,C),!0;s.set(C)}return!S&&(b(k,T),w(o),!0)}var A,E,M,I,N,z,F,R,V=Object.keys(u).map(Number).sort(y),$=s.get(),U=$||[],Z=h(T,g).get(),q=[],W=-1,Q=U.length;for(A=0;A<V.length;A++)if(I=u[M=V[A]],N=Object.keys(I),z=I[""],F=p(z),M<0||M>U.length-(F?0:1))n.warn("index out of range",g,M);else if(z!==void 0)N.length>1&&n.warn("Insertion & removal are incompatible with edits to the same index.",g,M),l(z)?q.push(M):F?(z==="add"&&(z={}),U.splice(M,0,z),Z&&Z.splice(M,0,{})):n.warn("Unrecognized full object edit value",g,M,z),W===-1&&(W=M);else for(E=0;E<N.length;E++)R=g+"["+M+"].",h(U[M],N[E],R).set(I[N[E]]);for(A=q.length-1;A>=0;A--)U.splice(q[A],1),Z&&Z.splice(q[A],1);if(U.length?$||s.set(U):s.set(null),S)return!1;if(b(k,T),x!==f){var X;if(W===-1)X=V;else{for(Q=Math.max(U.length,Q),X=[],A=0;A<V.length&&!((M=V[A])>=W);A++)X.push(M);for(A=W;A<Q;A++)X.push(A)}for(A=0;A<X.length;A++)x(o,X[A])}else w(o);return!0}},31420:function(c,m,a){var v=a(45568),f=a(10721),n=a(39784),y=a(34809),_=y.nestedProperty,p=a(68596),l=a(40486),o=a(33626),s=a(57297),u=a(44122),d=a(29714),h=a(90259),g=a(25829),b=a(62203),w=a(78766),x=a(95284).initInteractions,S=a(62972),k=a(44844).clearOutline,T=a(24452).dfltConfig,C=a(85844),A=a(10887),E=a(71817),M=a(13582),I=a(54826).AX_NAME_PATTERN,N=0;function z(Se){var ze=Se._fullLayout;ze._redrawFromAutoMarginCount?ze._redrawFromAutoMarginCount--:Se.emit("plotly_afterplot")}function F(Se,ze){try{Se._fullLayout._paper.style("background",ze)}catch(Fe){y.error(Fe)}}function R(Se,ze){F(Se,w.combine(ze,"white"))}function V(Se,ze){if(!Se._context){Se._context=y.extendDeep({},T);var Fe=v.select("base");Se._context._baseUrl=Fe.size()&&Fe.attr("href")?window.location.href.split("#")[0]:""}var De,Ue,Ne,ke=Se._context;if(ze){for(Ue=Object.keys(ze),De=0;De<Ue.length;De++)(Ne=Ue[De])!=="editable"&&Ne!=="edits"&&Ne in ke&&(Ne==="setBackground"&&ze[Ne]==="opaque"?ke[Ne]=R:ke[Ne]=ze[Ne]);ze.plot3dPixelRatio&&!ke.plotGlPixelRatio&&(ke.plotGlPixelRatio=ke.plot3dPixelRatio);var Oe=ze.editable;if(Oe!==void 0)for(ke.editable=Oe,Ue=Object.keys(ke.edits),De=0;De<Ue.length;De++)ke.edits[Ue[De]]=Oe;if(ze.edits)for(Ue=Object.keys(ze.edits),De=0;De<Ue.length;De++)(Ne=Ue[De])in ke.edits&&(ke.edits[Ne]=ze.edits[Ne]);ke._exportedPlot=ze._exportedPlot}ke.staticPlot&&(ke.editable=!1,ke.edits={},ke.autosizable=!1,ke.scrollZoom=!1,ke.doubleClick=!1,ke.showTips=!1,ke.showLink=!1,ke.displayModeBar=!1),ke.displayModeBar!=="hover"||n||(ke.displayModeBar=!0),ke.setBackground!=="transparent"&&typeof ke.setBackground=="function"||(ke.setBackground=F),ke._hasZeroHeight=ke._hasZeroHeight||Se.clientHeight===0,ke._hasZeroWidth=ke._hasZeroWidth||Se.clientWidth===0;var Re=ke.scrollZoom,je=ke._scrollZoom={};if(Re===!0)je.cartesian=1,je.gl3d=1,je.geo=1,je.mapbox=1,je.map=1;else if(typeof Re=="string"){var Ze=Re.split("+");for(De=0;De<Ze.length;De++)je[Ze[De]]=1}else Re!==!1&&(je.gl3d=1,je.geo=1,je.mapbox=1,je.map=1)}function $(Se,ze){var Fe,De,Ue=ze+1,Ne=[];for(Fe=0;Fe<Se.length;Fe++)(De=Se[Fe])<0?Ne.push(Ue+De):Ne.push(De);return Ne}function U(Se,ze,Fe){var De,Ue;for(De=0;De<ze.length;De++){if((Ue=ze[De])!==parseInt(Ue,10))throw new Error("all values in "+Fe+" must be integers");if(Ue>=Se.data.length||Ue<-Se.data.length)throw new Error(Fe+" must be valid indices for gd.data.");if(ze.indexOf(Ue,De+1)>-1||Ue>=0&&ze.indexOf(-Se.data.length+Ue)>-1||Ue<0&&ze.indexOf(Se.data.length+Ue)>-1)throw new Error("each index in "+Fe+" must be unique.")}}function Z(Se,ze,Fe){if(!Array.isArray(Se.data))throw new Error("gd.data must be an array.");if(ze===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(ze)||(ze=[ze]),U(Se,ze,"currentIndices"),Fe===void 0||Array.isArray(Fe)||(Fe=[Fe]),Fe!==void 0&&U(Se,Fe,"newIndices"),Fe!==void 0&&ze.length!==Fe.length)throw new Error("current and new indices must be of equal length.")}function q(Se,ze,Fe,De,Ue){(function(it,dt,ut,It){var Ot=y.isPlainObject(It);if(!Array.isArray(it.data))throw new Error("gd.data must be an array");if(!y.isPlainObject(dt))throw new Error("update must be a key:value object");if(ut===void 0)throw new Error("indices must be an integer or array of integers");for(var Ft in U(it,ut,"indices"),dt){if(!Array.isArray(dt[Ft])||dt[Ft].length!==ut.length)throw new Error("attribute "+Ft+" must be an array of length equal to indices array length");if(Ot&&(!(Ft in It)||!Array.isArray(It[Ft])||It[Ft].length!==dt[Ft].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}})(Se,ze,Fe,De);for(var Ne=function(it,dt,ut,It){var Ot,Ft,ot,tt,vt,At=y.isPlainObject(It),Dt=[];for(var Pt in Array.isArray(ut)||(ut=[ut]),ut=$(ut,it.data.length-1),dt)for(var et=0;et<ut.length;et++){if(Ot=it.data[ut[et]],Ft=(ot=_(Ot,Pt)).get(),tt=dt[Pt][et],!y.isArrayOrTypedArray(tt))throw new Error("attribute: "+Pt+" index: "+et+" must be an array");if(!y.isArrayOrTypedArray(Ft))throw new Error("cannot extend missing or non-array attribute: "+Pt);if(Ft.constructor!==tt.constructor)throw new Error("cannot extend array with an array of a different type: "+Pt);vt=At?It[Pt][et]:It,f(vt)||(vt=-1),Dt.push({prop:ot,target:Ft,insert:tt,maxp:Math.floor(vt)})}return Dt}(Se,ze,Fe,De),ke={},Oe={},Re=0;Re<Ne.length;Re++){var je=Ne[Re].prop,Ze=Ne[Re].maxp,Ye=Ue(Ne[Re].target,Ne[Re].insert,Ze);je.set(Ye[0]),Array.isArray(ke[je.astr])||(ke[je.astr]=[]),ke[je.astr].push(Ye[1]),Array.isArray(Oe[je.astr])||(Oe[je.astr]=[]),Oe[je.astr].push(Ne[Re].target.length)}return{update:ke,maxPoints:Oe}}function W(Se,ze){var Fe=new Se.constructor(Se.length+ze.length);return Fe.set(Se),Fe.set(ze,Se.length),Fe}function Q(Se,ze,Fe,De){Se=y.getGraphDiv(Se),A.clearPromiseQueue(Se);var Ue={};if(typeof ze=="string")Ue[ze]=Fe;else{if(!y.isPlainObject(ze))return y.warn("Restyle fail.",ze,Fe,De),Promise.reject();Ue=y.extendFlat({},ze),De===void 0&&(De=Fe)}Object.keys(Ue).length&&(Se.changed=!0);var Ne=A.coerceTraceIndices(Se,De),ke=le(Se,Ue,Ne),Oe=ke.flags;Oe.calc&&(Se.calcdata=void 0),Oe.clearAxisTypes&&A.clearAxisTypes(Se,Ne,{});var Re=[];Oe.fullReplot?Re.push(m._doPlot):(Re.push(u.previousPromises),u.supplyDefaults(Se),Oe.markerSize&&(u.doCalcdata(Se),ae(Re)),Oe.style&&Re.push(E.doTraceStyle),Oe.colorbars&&Re.push(E.doColorBars),Re.push(z)),Re.push(u.rehover,u.redrag,u.reselect),l.add(Se,Q,[Se,ke.undoit,ke.traces],Q,[Se,ke.redoit,ke.traces]);var je=y.syncOrAsync(Re,Se);return je&&je.then||(je=Promise.resolve()),je.then(function(){return Se.emit("plotly_restyle",ke.eventData),Se})}function X(Se){return Se===void 0?null:Se}function J(Se,ze){return ze?function(Fe,De,Ue){var Ne=_(Fe,De),ke=Ne.set;return Ne.set=function(Oe){ee((Ue||"")+De,Ne.get(),Oe,Se),ke(Oe)},Ne}:_}function ee(Se,ze,Fe,De){if(Array.isArray(ze)||Array.isArray(Fe))for(var Ue=Array.isArray(ze)?ze:[],Ne=Array.isArray(Fe)?Fe:[],ke=Math.max(Ue.length,Ne.length),Oe=0;Oe<ke;Oe++)ee(Se+"["+Oe+"]",Ue[Oe],Ne[Oe],De);else if(y.isPlainObject(ze)||y.isPlainObject(Fe)){var Re=y.isPlainObject(ze)?ze:{},je=y.isPlainObject(Fe)?Fe:{},Ze=y.extendFlat({},Re,je);for(var Ye in Ze)ee(Se+"."+Ye,Re[Ye],je[Ye],De)}else De[Se]===void 0&&(De[Se]=X(ze))}function le(Se,ze,Fe){var De,Ue=Se._fullLayout,Ne=Se._fullData,ke=Se.data,Oe=Ue._guiEditing,Re=J(Ue._preGUI,Oe),je=y.extendDeepAll({},ze);oe(ze);var Ze,Ye=M.traceFlags(),it={},dt={};function ut(){return Fe.map(function(){})}function It(ka){var va=d.id2name(ka);Ze.indexOf(va)===-1&&Ze.push(va)}function Ot(ka){return"LAYOUT"+ka+".autorange"}function Ft(ka){return"LAYOUT"+ka+".range"}function ot(ka){for(var va=ka;va<Ne.length;va++)if(Ne[va]._input===ke[ka])return Ne[va]}function tt(ka,va,ia){if(Array.isArray(ka))ka.forEach(function(wa){tt(wa,va,ia)});else if(!(ka in ze)&&!A.hasParent(ze,ka)){var fa;if(ka.substr(0,6)==="LAYOUT")fa=Re(Se.layout,ka.replace("LAYOUT",""));else{var Da=Fe[ia];fa=J(Ue._tracePreGUI[ot(Da)._fullInput.uid],Oe)(ke[Da],ka)}ka in dt||(dt[ka]=ut()),dt[ka][ia]===void 0&&(dt[ka][ia]=X(fa.get())),va!==void 0&&fa.set(va)}}function vt(ka){return function(va){return Ne[va][ka]}}function At(ka){return function(va,ia){return va===!1?Ne[Fe[ia]][ka]:null}}for(var Dt in ze){if(A.hasParent(ze,Dt))throw new Error("cannot set "+Dt+" and a parent attribute simultaneously");var Pt,et,rt,We,nt,_t,mt=ze[Dt];if(Dt!=="autobinx"&&Dt!=="autobiny"||(Dt=Dt.charAt(Dt.length-1)+"bins",mt=Array.isArray(mt)?mt.map(At(Dt)):mt===!1?Fe.map(vt(Dt)):null),it[Dt]=mt,Dt.substr(0,6)!=="LAYOUT"){for(dt[Dt]=ut(),De=0;De<Fe.length;De++)if(Pt=ke[Fe[De]],et=ot(Fe[De]),We=(rt=J(Ue._tracePreGUI[et._fullInput.uid],Oe)(Pt,Dt)).get(),(nt=Array.isArray(mt)?mt[De%mt.length]:mt)!==void 0){var St=rt.parts[rt.parts.length-1],Bt=Dt.substr(0,Dt.length-St.length-1),Je=Bt?Bt+".":"",Xe=Bt?_(et,Bt).get():et;if((_t=s.getTraceValObject(et,rt.parts))&&_t.impliedEdits&&nt!==null)for(var yt in _t.impliedEdits)tt(y.relativeAttr(Dt,yt),_t.impliedEdits[yt],De);else if(St!=="thicknessmode"&&St!=="lenmode"||We===nt||nt!=="fraction"&&nt!=="pixels"||!Xe){if(Dt==="type"&&(nt==="pie"!=(We==="pie")||nt==="funnelarea"!=(We==="funnelarea"))){var Et="x",Ct="y";nt!=="bar"&&We!=="bar"||Pt.orientation!=="h"||(Et="y",Ct="x"),y.swapAttrs(Pt,["?","?src"],"labels",Et),y.swapAttrs(Pt,["d?","?0"],"label",Et),y.swapAttrs(Pt,["?","?src"],"values",Ct),We==="pie"||We==="funnelarea"?(_(Pt,"marker.color").set(_(Pt,"marker.colors").get()),Ue._pielayer.selectAll("g.trace").remove()):o.traceIs(Pt,"cartesian")&&_(Pt,"marker.colors").set(_(Pt,"marker.color").get())}}else{var gt=Ue._size,$t=Xe.orient,Lt=$t==="top"||$t==="bottom";if(St==="thicknessmode"){var jt=Lt?gt.h:gt.w;tt(Je+"thickness",Xe.thickness*(nt==="fraction"?1/jt:jt),De)}else{var Rt=Lt?gt.w:gt.h;tt(Je+"len",Xe.len*(nt==="fraction"?1/Rt:Rt),De)}}if(dt[Dt][De]=X(We),["swapxy","swapxyaxes","orientation","orientationaxes"].indexOf(Dt)!==-1){if(Dt==="orientation"){rt.set(nt);var Vt=Pt.x&&!Pt.y?"h":"v";if((rt.get()||Vt)===et.orientation)continue}else Dt==="orientationaxes"&&(Pt.orientation={v:"h",h:"v"}[et.orientation]);A.swapXYData(Pt),Ye.calc=Ye.clearAxisTypes=!0}else u.dataArrayContainers.indexOf(rt.parts[0])!==-1?(A.manageArrayContainers(rt,nt,dt),Ye.calc=!0):(_t?_t.arrayOk&&!o.traceIs(et,"regl")&&(y.isArrayOrTypedArray(nt)||y.isArrayOrTypedArray(We))?Ye.calc=!0:M.update(Ye,_t):Ye.calc=!0,rt.set(nt))}if(["swapxyaxes","orientationaxes"].indexOf(Dt)!==-1&&d.swap(Se,Fe),Dt==="orientationaxes"){var Qt=_(Se.layout,"hovermode"),ta=Qt.get();ta==="x"?Qt.set("y"):ta==="y"?Qt.set("x"):ta==="x unified"?Qt.set("y unified"):ta==="y unified"&&Qt.set("x unified")}if(["orientation","type"].indexOf(Dt)!==-1){for(Ze=[],De=0;De<Fe.length;De++){var _a=ke[Fe[De]];o.traceIs(_a,"cartesian")&&(It(_a.xaxis||"x"),It(_a.yaxis||"y"))}tt(Ze.map(Ot),!0,0),tt(Ze.map(Ft),[0,1],0)}}else rt=Re(Se.layout,Dt.replace("LAYOUT","")),dt[Dt]=[X(rt.get())],rt.set(Array.isArray(mt)?mt[0]:mt),Ye.calc=!0}return(Ye.calc||Ye.plot)&&(Ye.fullReplot=!0),{flags:Ye,undoit:dt,redoit:it,traces:Fe,eventData:y.extendDeepNoArrays([],[je,Fe])}}function oe(Se){var ze,Fe,De,Ue=y.counterRegex("axis",".title",!1,!1),Ne=/colorbar\.title$/,ke=Object.keys(Se);for(ze=0;ze<ke.length;ze++)Fe=ke[ze],De=Se[Fe],Fe!=="title"&&!Ue.test(Fe)&&!Ne.test(Fe)||typeof De!="string"&&typeof De!="number"?Fe.indexOf("titlefont")>-1&&Fe.indexOf("grouptitlefont")===-1?Oe(Fe,Fe.replace("titlefont","title.font")):Fe.indexOf("titleposition")>-1?Oe(Fe,Fe.replace("titleposition","title.position")):Fe.indexOf("titleside")>-1?Oe(Fe,Fe.replace("titleside","title.side")):Fe.indexOf("titleoffset")>-1&&Oe(Fe,Fe.replace("titleoffset","title.offset")):Oe(Fe,Fe.replace("title","title.text"));function Oe(Re,je){Se[je]=Se[Re],delete Se[Re]}}function se(Se,ze,Fe){Se=y.getGraphDiv(Se),A.clearPromiseQueue(Se);var De={};if(typeof ze=="string")De[ze]=Fe;else{if(!y.isPlainObject(ze))return y.warn("Relayout fail.",ze,Fe),Promise.reject();De=y.extendFlat({},ze)}Object.keys(De).length&&(Se.changed=!0);var Ue=he(Se,De),Ne=Ue.flags;Ne.calc&&(Se.calcdata=void 0);var ke=[u.previousPromises];Ne.layoutReplot?ke.push(E.layoutReplot):Object.keys(De).length&&(ce(Se,Ne,Ue)||u.supplyDefaults(Se),Ne.legend&&ke.push(E.doLegend),Ne.layoutstyle&&ke.push(E.layoutStyles),Ne.axrange&&ae(ke,Ue.rangesAltered),Ne.ticks&&ke.push(E.doTicksRelayout),Ne.modebar&&ke.push(E.doModeBar),Ne.camera&&ke.push(E.doCamera),Ne.colorbars&&ke.push(E.doColorBars),ke.push(z)),ke.push(u.rehover,u.redrag,u.reselect),l.add(Se,se,[Se,Ue.undoit],se,[Se,Ue.redoit]);var Oe=y.syncOrAsync(ke,Se);return Oe&&Oe.then||(Oe=Promise.resolve(Se)),Oe.then(function(){return Se.emit("plotly_relayout",Ue.eventData),Se})}function ce(Se,ze,Fe){var De,Ue,Ne=Se._fullLayout;if(!ze.axrange)return!1;for(var ke in ze)if(ke!=="axrange"&&ze[ke])return!1;var Oe=function(dt,ut){return y.coerce(De,Ue,g,dt,ut)},Re={};for(var je in Fe.rangesAltered){var Ze=d.id2name(je);if(De=Se.layout[Ze],Ue=Ne[Ze],h(De,Ue,Oe,Re),Ue._matchGroup){for(var Ye in Ue._matchGroup)if(Ye!==je){var it=Ne[d.id2name(Ye)];it.autorange=Ue.autorange,it.range=Ue.range.slice(),it._input.range=Ue.range.slice()}}}return!0}function ae(Se,ze){var Fe=ze?function(De){var Ue=[];for(var Ne in ze){var ke=d.getFromId(De,Ne);if(Ue.push(Ne),(ke.ticklabelposition||"").indexOf("inside")!==-1&&ke._anchorAxis&&Ue.push(ke._anchorAxis._id),ke._matchGroup)for(var Oe in ke._matchGroup)ze[Oe]||Ue.push(Oe)}return d.draw(De,Ue,{skipTitle:!0})}:function(De){return d.draw(De,"redraw")};Se.push(k,E.doAutoRangeAndConstraints,Fe,E.drawData,E.finalDraw)}var ne=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,ie=/^[xyz]axis[0-9]*\.autorange$/,ue=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function he(Se,ze){var Fe,De,Ue,Ne=Se.layout,ke=Se._fullLayout,Oe=ke._guiEditing,Re=J(ke._preGUI,Oe),je=Object.keys(ze),Ze=d.list(Se),Ye=y.extendDeepAll({},ze),it={};for(oe(ze),je=Object.keys(ze),De=0;De<je.length;De++)if(je[De].indexOf("allaxes")===0){for(Ue=0;Ue<Ze.length;Ue++){var dt=Ze[Ue]._id.substr(1),ut=dt.indexOf("scene")!==-1?dt+".":"",It=je[De].replace("allaxes",ut+Ze[Ue]._name);ze[It]||(ze[It]=ze[je[De]])}delete ze[je[De]]}var Ot=M.layoutFlags(),Ft={},ot={};function tt(wa,da){if(Array.isArray(wa))wa.forEach(function(ua){tt(ua,da)});else if(!(wa in ze)&&!A.hasParent(ze,wa)){var Ea=Re(Ne,wa);wa in ot||(ot[wa]=X(Ea.get())),da!==void 0&&Ea.set(da)}}var vt,At={};function Dt(wa){var da=d.name2id(wa.split(".")[0]);return At[da]=1,da}for(var Pt in ze){if(A.hasParent(ze,Pt))throw new Error("cannot set "+Pt+" and a parent attribute simultaneously");for(var et=Re(Ne,Pt),rt=ze[Pt],We=et.parts.length-1;We>0&&typeof et.parts[We]!="string";)We--;var nt=et.parts[We],_t=et.parts[We-1]+"."+nt,mt=et.parts.slice(0,We).join("."),St=_(Se.layout,mt).get(),Bt=_(ke,mt).get(),Je=et.get();if(rt!==void 0){Ft[Pt]=rt,ot[Pt]=nt==="reverse"?rt:X(Je);var Xe=s.getLayoutValObject(ke,et.parts);if(Xe&&Xe.impliedEdits&&rt!==null)for(var yt in Xe.impliedEdits)tt(y.relativeAttr(Pt,yt),Xe.impliedEdits[yt]);if(["width","height"].indexOf(Pt)!==-1)if(rt){tt("autosize",null);var Et=Pt==="height"?"width":"height";tt(Et,ke[Et])}else ke[Pt]=Se._initialAutoSize[Pt];else if(Pt==="autosize")tt("width",rt?null:ke.width),tt("height",rt?null:ke.height);else if(_t.match(ne))Dt(_t),_(ke,mt+"._inputRange").set(null);else if(_t.match(ie)){Dt(_t),_(ke,mt+"._inputRange").set(null);var Ct=_(ke,mt).get();Ct._inputDomain&&(Ct._input.domain=Ct._inputDomain.slice())}else _t.match(ue)&&_(ke,mt+"._inputDomain").set(null);if(nt==="type"){vt=St;var gt=Bt.type==="linear"&&rt==="log",$t=Bt.type==="log"&&rt==="linear";if(gt||$t){if(vt&&vt.range)if(Bt.autorange)gt&&(vt.range=vt.range[1]>vt.range[0]?[1,2]:[2,1]);else{var Lt=vt.range[0],jt=vt.range[1];gt?(Lt<=0&&jt<=0&&tt(mt+".autorange",!0),Lt<=0?Lt=jt/1e6:jt<=0&&(jt=Lt/1e6),tt(mt+".range[0]",Math.log(Lt)/Math.LN10),tt(mt+".range[1]",Math.log(jt)/Math.LN10)):(tt(mt+".range[0]",Math.pow(10,Lt)),tt(mt+".range[1]",Math.pow(10,jt)))}else tt(mt+".autorange",!0);Array.isArray(ke._subplots.polar)&&ke._subplots.polar.length&&ke[et.parts[0]]&&et.parts[1]==="radialaxis"&&delete ke[et.parts[0]]._subplot.viewInitial["radialaxis.range"],o.getComponentMethod("annotations","convertCoords")(Se,Bt,rt,tt),o.getComponentMethod("images","convertCoords")(Se,Bt,rt,tt)}else tt(mt+".autorange",!0),tt(mt+".range",null);_(ke,mt+"._inputRange").set(null)}else if(nt.match(I)){var Rt=_(ke,Pt).get(),Vt=(rt||{}).type;Vt&&Vt!=="-"||(Vt="linear"),o.getComponentMethod("annotations","convertCoords")(Se,Rt,Vt,tt),o.getComponentMethod("images","convertCoords")(Se,Rt,Vt,tt)}var Qt=C.containerArrayMatch(Pt);if(Qt){Fe=Qt.array,De=Qt.index;var ta=Qt.property,_a=Xe||{editType:"calc"};De!==""&&ta===""&&(C.isAddVal(rt)?ot[Pt]=null:C.isRemoveVal(rt)?ot[Pt]=(_(Ne,Fe).get()||[])[De]:y.warn("unrecognized full object value",ze)),M.update(Ot,_a),it[Fe]||(it[Fe]={});var ka=it[Fe][De];ka||(ka=it[Fe][De]={}),ka[ta]=rt,delete ze[Pt]}else nt==="reverse"?(St.range?St.range.reverse():(tt(mt+".autorange",!0),St.range=[1,0]),Bt.autorange?Ot.calc=!0:Ot.plot=!0):(Pt==="dragmode"&&(rt===!1&&Je!==!1||rt!==!1&&Je===!1)||ke._has("scatter-like")&&ke._has("regl")&&Pt==="dragmode"&&(rt==="lasso"||rt==="select")&&Je!=="lasso"&&Je!=="select"||ke._has("gl2d")?Ot.plot=!0:Xe?M.update(Ot,Xe):Ot.calc=!0,et.set(rt))}}for(Fe in it)C.applyContainerArrayChanges(Se,Re(Ne,Fe),it[Fe],Ot,Re)||(Ot.plot=!0);for(var va in At){var ia=(vt=d.getFromId(Se,va))&&vt._constraintGroup;if(ia)for(var fa in Ot.calc=!0,ia)At[fa]||(d.getFromId(Se,fa)._constraintShrinkable=!0)}(pe(Se)||ze.height||ze.width)&&(Ot.plot=!0);var Da=ke.shapes;for(De=0;De<Da.length;De++)if(Da[De].showlegend){Ot.calc=!0;break}return(Ot.plot||Ot.calc)&&(Ot.layoutReplot=!0),{flags:Ot,rangesAltered:At,undoit:ot,redoit:Ft,eventData:Ye}}function pe(Se){var ze=Se._fullLayout,Fe=ze.width,De=ze.height;return Se.layout.autosize&&u.plotAutoSize(Se,Se.layout,ze),ze.width!==Fe||ze.height!==De}function me(Se,ze,Fe,De){Se=y.getGraphDiv(Se),A.clearPromiseQueue(Se),y.isPlainObject(ze)||(ze={}),y.isPlainObject(Fe)||(Fe={}),Object.keys(ze).length&&(Se.changed=!0),Object.keys(Fe).length&&(Se.changed=!0);var Ue=A.coerceTraceIndices(Se,De),Ne=le(Se,y.extendFlat({},ze),Ue),ke=Ne.flags,Oe=he(Se,y.extendFlat({},Fe)),Re=Oe.flags;(ke.calc||Re.calc)&&(Se.calcdata=void 0),ke.clearAxisTypes&&A.clearAxisTypes(Se,Ue,Fe);var je=[];Re.layoutReplot?je.push(E.layoutReplot):ke.fullReplot?je.push(m._doPlot):(je.push(u.previousPromises),ce(Se,Re,Oe)||u.supplyDefaults(Se),ke.style&&je.push(E.doTraceStyle),(ke.colorbars||Re.colorbars)&&je.push(E.doColorBars),Re.legend&&je.push(E.doLegend),Re.layoutstyle&&je.push(E.layoutStyles),Re.axrange&&ae(je,Oe.rangesAltered),Re.ticks&&je.push(E.doTicksRelayout),Re.modebar&&je.push(E.doModeBar),Re.camera&&je.push(E.doCamera),je.push(z)),je.push(u.rehover,u.redrag,u.reselect),l.add(Se,me,[Se,Ne.undoit,Oe.undoit,Ne.traces],me,[Se,Ne.redoit,Oe.redoit,Ne.traces]);var Ze=y.syncOrAsync(je,Se);return Ze&&Ze.then||(Ze=Promise.resolve(Se)),Ze.then(function(){return Se.emit("plotly_update",{data:Ne.eventData,layout:Oe.eventData}),Se})}function _e(Se){return function(ze){ze._fullLayout._guiEditing=!0;var Fe=Se.apply(null,arguments);return ze._fullLayout._guiEditing=!1,Fe}}var xe=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^(map\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],we=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function Ee(Se,ze){for(var Fe=0;Fe<ze.length;Fe++){var De=ze[Fe],Ue=Se.match(De.pattern);if(Ue){var Ne=Ue[1]||"";return{head:Ne,tail:Se.substr(Ne.length+1),attr:De.attr}}}}function Pe(Se,ze){var Fe=_(ze,Se).get();if(Fe!==void 0)return Fe;var De=Se.split(".");for(De.pop();De.length>1;)if(De.pop(),(Fe=_(ze,De.join(".")+".uirevision").get())!==void 0)return Fe;return ze.uirevision}function $e(Se,ze){for(var Fe=0;Fe<ze.length;Fe++)if(ze[Fe]._fullInput.uid===Se)return Fe;return-1}function Te(Se,ze,Fe){for(var De=0;De<ze.length;De++)if(ze[De].uid===Se)return De;return!ze[Fe]||ze[Fe].uid?-1:Fe}function Ce(Se,ze){var Fe=y.isPlainObject(Se),De=Array.isArray(Se);return Fe||De?(Fe&&y.isPlainObject(ze)||De&&Array.isArray(ze))&&JSON.stringify(Se)===JSON.stringify(ze):Se===ze}function ye(Se,ze,Fe,De){var Ue,Ne,ke,Oe=De.getValObject,Re=De.flags,je=De.immutable,Ze=De.inArray,Ye=De.arrayIndex;function it(){var St=Ue.editType;Ze&&St.indexOf("arraydraw")!==-1?y.pushUnique(Re.arrays[Ze],Ye):(M.update(Re,Ue),St!=="none"&&Re.nChanges++,De.transition&&Ue.anim&&Re.nChangesAnim++,(ne.test(ke)||ie.test(ke))&&(Re.rangesAltered[Fe[0]]=1),ue.test(ke)&&_(ze,"_inputDomain").set(null),Ne==="datarevision"&&(Re.newDataRevision=1))}function dt(St){return St.valType==="data_array"||St.arrayOk}for(Ne in Se){if(Re.calc&&!De.transition)return;var ut=Se[Ne],It=ze[Ne],Ot=Fe.concat(Ne);if(ke=Ot.join("."),Ne.charAt(0)!=="_"&&typeof ut!="function"&&ut!==It){if((Ne==="tick0"||Ne==="dtick")&&Fe[0]!=="geo"){var Ft=ze.tickmode;if(Ft==="auto"||Ft==="array"||!Ft)continue}if((Ne!=="range"||!ze.autorange)&&(Ne!=="zmin"&&Ne!=="zmax"||ze.type!=="contourcarpet")&&(Ue=Oe(Ot))&&(!Ue._compareAsJSON||JSON.stringify(ut)!==JSON.stringify(It))){var ot,tt=Ue.valType,vt=dt(Ue),At=Array.isArray(ut),Dt=Array.isArray(It);if(At&&Dt){var Pt="_input_"+Ne,et=Se[Pt],rt=ze[Pt];if(Array.isArray(et)&&et===rt)continue}if(It===void 0)vt&&At?Re.calc=!0:it();else if(Ue._isLinkedToArray){var We=[],nt=!1;Ze||(Re.arrays[Ne]=We);var _t=Math.min(ut.length,It.length),mt=Math.max(ut.length,It.length);if(_t!==mt){if(Ue.editType!=="arraydraw"){it();continue}nt=!0}for(ot=0;ot<_t;ot++)ye(ut[ot],It[ot],Ot.concat(ot),y.extendFlat({inArray:Ne,arrayIndex:ot},De));if(nt)for(ot=_t;ot<mt;ot++)We.push(ot)}else!tt&&y.isPlainObject(ut)?ye(ut,It,Ot,De):vt?At&&Dt?(je&&(Re.calc=!0),(je||De.newDataRevision)&&it()):At!==Dt?Re.calc=!0:it():At&&Dt&&ut.length===It.length&&String(ut)===String(It)||it()}}}for(Ne in ze)if(!(Ne in Se)&&Ne.charAt(0)!=="_"&&typeof ze[Ne]!="function"){if(dt(Ue=Oe(Fe.concat(Ne)))&&Array.isArray(ze[Ne]))return void(Re.calc=!0);it()}}function ge(Se,ze){var Fe;for(Fe in Se)if(Fe.charAt(0)!=="_"){var De=Se[Fe],Ue=ze[Fe];if(De!==Ue)if(y.isPlainObject(De)&&y.isPlainObject(Ue)){if(ge(De,Ue))return!0}else{if(!Array.isArray(De)||!Array.isArray(Ue)||De.length!==Ue.length)return!0;for(var Ne=0;Ne<De.length;Ne++)if(De[Ne]!==Ue[Ne]&&(!y.isPlainObject(De[Ne])||!y.isPlainObject(Ue[Ne])||ge(De[Ne],Ue[Ne])))return!0}}}function Me(Se){var ze=Se._fullLayout,Fe=Se.getBoundingClientRect();if(!y.equalDomRects(Fe,ze._lastBBox)){var De=ze._invTransform=y.inverseTransformMatrix(y.getFullTransformMatrix(Se));ze._invScaleX=Math.sqrt(De[0][0]*De[0][0]+De[0][1]*De[0][1]+De[0][2]*De[0][2]),ze._invScaleY=Math.sqrt(De[1][0]*De[1][0]+De[1][1]*De[1][1]+De[1][2]*De[1][2]),ze._lastBBox=Fe}}m.animate=function(Se,ze,Fe){if(Se=y.getGraphDiv(Se),!y.isPlotDiv(Se))throw new Error("This element is not a Plotly plot: "+Se+". It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/");var De=Se._transitionData;De._frameQueue||(De._frameQueue=[]);var Ue=(Fe=u.supplyAnimationDefaults(Fe)).transition,Ne=Fe.frame;function ke(je){return Array.isArray(Ue)?je>=Ue.length?Ue[0]:Ue[je]:Ue}function Oe(je){return Array.isArray(Ne)?je>=Ne.length?Ne[0]:Ne[je]:Ne}function Re(je,Ze){var Ye=0;return function(){if(je&&++Ye===Ze)return je()}}return De._frameWaitingCnt===void 0&&(De._frameWaitingCnt=0),new Promise(function(je,Ze){function Ye(){Se.emit("plotly_animating"),De._lastFrameAt=-1/0,De._timeToNext=0,De._runningTransitions=0,De._currentFrame=null;var Pt=function(){De._animationRaf=window.requestAnimationFrame(Pt),Date.now()-De._lastFrameAt>De._timeToNext&&function(){De._currentFrame&&De._currentFrame.onComplete&&De._currentFrame.onComplete();var et=De._currentFrame=De._frameQueue.shift();if(et){var rt=et.name?et.name.toString():null;Se._fullLayout._currentFrame=rt,De._lastFrameAt=Date.now(),De._timeToNext=et.frameOpts.duration,u.transition(Se,et.frame.data,et.frame.layout,A.coerceTraceIndices(Se,et.frame.traces),et.frameOpts,et.transitionOpts).then(function(){et.onComplete&&et.onComplete()}),Se.emit("plotly_animatingframe",{name:rt,frame:et.frame,animation:{frame:et.frameOpts,transition:et.transitionOpts}})}else Se.emit("plotly_animated"),window.cancelAnimationFrame(De._animationRaf),De._animationRaf=null}()};Pt()}var it,dt,ut=0;function It(Pt){return Array.isArray(Ue)?ut>=Ue.length?Pt.transitionOpts=Ue[ut]:Pt.transitionOpts=Ue[0]:Pt.transitionOpts=Ue,ut++,Pt}var Ot=[],Ft=ze==null,ot=Array.isArray(ze);if(Ft||ot||!y.isPlainObject(ze)){if(Ft||["string","number"].indexOf(typeof ze)!==-1)for(it=0;it<De._frames.length;it++)(dt=De._frames[it])&&(Ft||String(dt.group)===String(ze))&&Ot.push({type:"byname",name:String(dt.name),data:It({name:dt.name})});else if(ot)for(it=0;it<ze.length;it++){var tt=ze[it];["number","string"].indexOf(typeof tt)!==-1?(tt=String(tt),Ot.push({type:"byname",name:tt,data:It({name:tt})})):y.isPlainObject(tt)&&Ot.push({type:"object",data:It(y.extendFlat({},tt))})}}else Ot.push({type:"object",data:It(y.extendFlat({},ze))});for(it=0;it<Ot.length;it++)if((dt=Ot[it]).type==="byname"&&!De._frameHash[dt.data.name])return y.warn('animate failure: frame not found: "'+dt.data.name+'"'),void Ze();["next","immediate"].indexOf(Fe.mode)!==-1&&function(){if(De._frameQueue.length!==0){for(;De._frameQueue.length;){var Pt=De._frameQueue.pop();Pt.onInterrupt&&Pt.onInterrupt()}Se.emit("plotly_animationinterrupted",[])}}(),Fe.direction==="reverse"&&Ot.reverse();var vt=Se._fullLayout._currentFrame;if(vt&&Fe.fromcurrent){var At=-1;for(it=0;it<Ot.length;it++)if((dt=Ot[it]).type==="byname"&&dt.name===vt){At=it;break}if(At>0&&At<Ot.length-1){var Dt=[];for(it=0;it<Ot.length;it++)dt=Ot[it],(Ot[it].type!=="byname"||it>At)&&Dt.push(dt);Ot=Dt}}Ot.length>0?function(Pt){if(Pt.length!==0){for(var et=0;et<Pt.length;et++){var rt;rt=Pt[et].type==="byname"?u.computeFrame(Se,Pt[et].name):Pt[et].data;var We=Oe(et),nt=ke(et);nt.duration=Math.min(nt.duration,We.duration);var _t={frame:rt,name:Pt[et].name,frameOpts:We,transitionOpts:nt};et===Pt.length-1&&(_t.onComplete=Re(je,2),_t.onInterrupt=Ze),De._frameQueue.push(_t)}Fe.mode==="immediate"&&(De._lastFrameAt=-1/0),De._animationRaf||Ye()}}(Ot):(Se.emit("plotly_animated"),je())})},m.addFrames=function(Se,ze,Fe){if(Se=y.getGraphDiv(Se),ze==null)return Promise.resolve();if(!y.isPlotDiv(Se))throw new Error("This element is not a Plotly plot: "+Se+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var De,Ue,Ne,ke,Oe=Se._transitionData._frames,Re=Se._transitionData._frameHash;if(!Array.isArray(ze))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+ze);var je=Oe.length+2*ze.length,Ze=[],Ye={};for(De=ze.length-1;De>=0;De--)if(y.isPlainObject(ze[De])){var it=ze[De].name,dt=(Re[it]||Ye[it]||{}).name,ut=ze[De].name,It=Re[dt]||Ye[dt];dt&&ut&&typeof ut=="number"&&It&&N<5&&(N++,y.warn('addFrames: overwriting frame "'+(Re[dt]||Ye[dt]).name+'" with a frame whose name of type "number" also equates to "'+dt+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),N===5&&y.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),Ye[it]={name:it},Ze.push({frame:u.supplyFrameDefaults(ze[De]),index:Fe&&Fe[De]!==void 0&&Fe[De]!==null?Fe[De]:je+De})}Ze.sort(function(Pt,et){return Pt.index>et.index?-1:Pt.index<et.index?1:0});var Ot=[],Ft=[],ot=Oe.length;for(De=Ze.length-1;De>=0;De--){if(typeof(Ue=Ze[De].frame).name=="number"&&y.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Ue.name)for(;Re[Ue.name="frame "+Se._transitionData._counter++];);if(Re[Ue.name]){for(Ne=0;Ne<Oe.length&&(Oe[Ne]||{}).name!==Ue.name;Ne++);Ot.push({type:"replace",index:Ne,value:Ue}),Ft.unshift({type:"replace",index:Ne,value:Oe[Ne]})}else ke=Math.max(0,Math.min(Ze[De].index,ot)),Ot.push({type:"insert",index:ke,value:Ue}),Ft.unshift({type:"delete",index:ke}),ot++}var tt=u.modifyFrames,vt=u.modifyFrames,At=[Se,Ft],Dt=[Se,Ot];return l&&l.add(Se,tt,At,vt,Dt),u.modifyFrames(Se,Ot)},m.deleteFrames=function(Se,ze){if(Se=y.getGraphDiv(Se),!y.isPlotDiv(Se))throw new Error("This element is not a Plotly plot: "+Se);var Fe,De,Ue=Se._transitionData._frames,Ne=[],ke=[];if(!ze)for(ze=[],Fe=0;Fe<Ue.length;Fe++)ze.push(Fe);for((ze=ze.slice()).sort(),Fe=ze.length-1;Fe>=0;Fe--)De=ze[Fe],Ne.push({type:"delete",index:De}),ke.unshift({type:"insert",index:De,value:Ue[De]});var Oe=u.modifyFrames,Re=u.modifyFrames,je=[Se,ke],Ze=[Se,Ne];return l&&l.add(Se,Oe,je,Re,Ze),u.modifyFrames(Se,Ne)},m.addTraces=function Se(ze,Fe,De){ze=y.getGraphDiv(ze);var Ue,Ne,ke=[],Oe=m.deleteTraces,Re=Se,je=[ze,ke],Ze=[ze,Fe];for(function(Ye,it,dt){var ut,It;if(!Array.isArray(Ye.data))throw new Error("gd.data must be an array.");if(it===void 0)throw new Error("traces must be defined.");for(Array.isArray(it)||(it=[it]),ut=0;ut<it.length;ut++)if(typeof(It=it[ut])!="object"||Array.isArray(It)||It===null)throw new Error("all values in traces array must be non-array objects");if(dt===void 0||Array.isArray(dt)||(dt=[dt]),dt!==void 0&&dt.length!==it.length)throw new Error("if indices is specified, traces.length must equal indices.length")}(ze,Fe,De),Array.isArray(Fe)||(Fe=[Fe]),Fe=Fe.map(function(Ye){return y.extendFlat({},Ye)}),A.cleanData(Fe),Ue=0;Ue<Fe.length;Ue++)ze.data.push(Fe[Ue]);for(Ue=0;Ue<Fe.length;Ue++)ke.push(-Fe.length+Ue);if(De===void 0)return Ne=m.redraw(ze),l.add(ze,Oe,je,Re,Ze),Ne;Array.isArray(De)||(De=[De]);try{Z(ze,ke,De)}catch(Ye){throw ze.data.splice(ze.data.length-Fe.length,Fe.length),Ye}return l.startSequence(ze),l.add(ze,Oe,je,Re,Ze),Ne=m.moveTraces(ze,ke,De),l.stopSequence(ze),Ne},m.deleteTraces=function Se(ze,Fe){ze=y.getGraphDiv(ze);var De,Ue,Ne=[],ke=m.addTraces,Oe=Se,Re=[ze,Ne,Fe],je=[ze,Fe];if(Fe===void 0)throw new Error("indices must be an integer or array of integers.");for(Array.isArray(Fe)||(Fe=[Fe]),U(ze,Fe,"indices"),(Fe=$(Fe,ze.data.length-1)).sort(y.sorterDes),De=0;De<Fe.length;De+=1)Ue=ze.data.splice(Fe[De],1)[0],Ne.push(Ue);var Ze=m.redraw(ze);return l.add(ze,ke,Re,Oe,je),Ze},m.extendTraces=function Se(ze,Fe,De,Ue){var Ne=q(ze=y.getGraphDiv(ze),Fe,De,Ue,function(Re,je,Ze){var Ye,it;if(y.isTypedArray(Re))if(Ze<0){var dt=new Re.constructor(0),ut=W(Re,je);Ze<0?(Ye=ut,it=dt):(Ye=dt,it=ut)}else if(Ye=new Re.constructor(Ze),it=new Re.constructor(Re.length+je.length-Ze),Ze===je.length)Ye.set(je),it.set(Re);else if(Ze<je.length){var It=je.length-Ze;Ye.set(je.subarray(It)),it.set(Re),it.set(je.subarray(0,It),Re.length)}else{var Ot=Ze-je.length,Ft=Re.length-Ot;Ye.set(Re.subarray(Ft)),Ye.set(je,Ot),it.set(Re.subarray(0,Ft))}else Ye=Re.concat(je),it=Ze>=0&&Ze<Ye.length?Ye.splice(0,Ye.length-Ze):[];return[Ye,it]}),ke=m.redraw(ze),Oe=[ze,Ne.update,De,Ne.maxPoints];return l.add(ze,m.prependTraces,Oe,Se,arguments),ke},m.moveTraces=function Se(ze,Fe,De){var Ue,Ne=[],ke=[],Oe=Se,Re=Se,je=[ze=y.getGraphDiv(ze),De,Fe],Ze=[ze,Fe,De];if(Z(ze,Fe,De),Fe=Array.isArray(Fe)?Fe:[Fe],De===void 0)for(De=[],Ue=0;Ue<Fe.length;Ue++)De.push(-Fe.length+Ue);for(De=Array.isArray(De)?De:[De],Fe=$(Fe,ze.data.length-1),De=$(De,ze.data.length-1),Ue=0;Ue<ze.data.length;Ue++)Fe.indexOf(Ue)===-1&&Ne.push(ze.data[Ue]);for(Ue=0;Ue<Fe.length;Ue++)ke.push({newIndex:De[Ue],trace:ze.data[Fe[Ue]]});for(ke.sort(function(it,dt){return it.newIndex-dt.newIndex}),Ue=0;Ue<ke.length;Ue+=1)Ne.splice(ke[Ue].newIndex,0,ke[Ue].trace);ze.data=Ne;var Ye=m.redraw(ze);return l.add(ze,Oe,je,Re,Ze),Ye},m.prependTraces=function Se(ze,Fe,De,Ue){var Ne=q(ze=y.getGraphDiv(ze),Fe,De,Ue,function(Re,je,Ze){var Ye,it;if(y.isTypedArray(Re))if(Ze<=0){var dt=new Re.constructor(0),ut=W(je,Re);Ze<0?(Ye=ut,it=dt):(Ye=dt,it=ut)}else if(Ye=new Re.constructor(Ze),it=new Re.constructor(Re.length+je.length-Ze),Ze===je.length)Ye.set(je),it.set(Re);else if(Ze<je.length){var It=je.length-Ze;Ye.set(je.subarray(0,It)),it.set(je.subarray(It)),it.set(Re,It)}else{var Ot=Ze-je.length;Ye.set(je),Ye.set(Re.subarray(0,Ot),je.length),it.set(Re.subarray(Ot))}else Ye=je.concat(Re),it=Ze>=0&&Ze<Ye.length?Ye.splice(Ze,Ye.length):[];return[Ye,it]}),ke=m.redraw(ze),Oe=[ze,Ne.update,De,Ne.maxPoints];return l.add(ze,m.extendTraces,Oe,Se,arguments),ke},m.newPlot=function(Se,ze,Fe,De){return Se=y.getGraphDiv(Se),u.cleanPlot([],{},Se._fullData||[],Se._fullLayout||{}),u.purge(Se),m._doPlot(Se,ze,Fe,De)},m._doPlot=function(Se,ze,Fe,De){var Ue;if(Se=y.getGraphDiv(Se),p.init(Se),y.isPlainObject(ze)){var Ne=ze;ze=Ne.data,Fe=Ne.layout,De=Ne.config,Ue=Ne.frames}if(p.triggerHandler(Se,"plotly_beforeplot",[ze,Fe,De])===!1)return Promise.reject();ze||Fe||y.isPlotDiv(Se)||y.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",Se),V(Se,De),Fe||(Fe={}),v.select(Se).classed("js-plotly-plot",!0),b.makeTester(),Array.isArray(Se._promises)||(Se._promises=[]);var ke=(Se.data||[]).length===0&&Array.isArray(ze);Array.isArray(ze)&&(A.cleanData(ze),ke?Se.data=ze:Se.data.push.apply(Se.data,ze),Se.empty=!1),Se.layout&&!ke||(Se.layout=A.cleanLayout(Fe)),u.supplyDefaults(Se);var Oe=Se._fullLayout,Re=Oe._has("cartesian");Oe._replotting=!0,(ke||Oe._shouldCreateBgLayer)&&(function(Ft){var ot=v.select(Ft),tt=Ft._fullLayout;if(tt._calcInverseTransform=Me,tt._calcInverseTransform(Ft),tt._container=ot.selectAll(".plot-container").data([0]),tt._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),tt._paperdiv=tt._container.selectAll(".svg-container").data([0]),tt._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),tt._glcontainer=tt._paperdiv.selectAll(".gl-container").data([{}]),tt._glcontainer.enter().append("div").classed("gl-container",!0),tt._paperdiv.selectAll(".main-svg").remove(),tt._paperdiv.select(".modebar-container").remove(),tt._paper=tt._paperdiv.insert("svg",":first-child").classed("main-svg",!0),tt._toppaper=tt._paperdiv.append("svg").classed("main-svg",!0),tt._modebardiv=tt._paperdiv.append("div"),delete tt._modeBar,tt._hoverpaper=tt._paperdiv.append("svg").classed("main-svg",!0),!tt._uid){var vt={};v.selectAll("defs").each(function(){this.id&&(vt[this.id.split("-")[1]]=1)}),tt._uid=y.randstr(vt)}tt._paperdiv.selectAll(".main-svg").attr(S.svgAttrs),tt._defs=tt._paper.append("defs").attr("id","defs-"+tt._uid),tt._clips=tt._defs.append("g").classed("clips",!0),tt._topdefs=tt._toppaper.append("defs").attr("id","topdefs-"+tt._uid),tt._topclips=tt._topdefs.append("g").classed("clips",!0),tt._bgLayer=tt._paper.append("g").classed("bglayer",!0),tt._draggers=tt._paper.append("g").classed("draglayer",!0);var At=tt._paper.append("g").classed("layer-below",!0);tt._imageLowerLayer=At.append("g").classed("imagelayer",!0),tt._shapeLowerLayer=At.append("g").classed("shapelayer",!0),tt._cartesianlayer=tt._paper.append("g").classed("cartesianlayer",!0),tt._polarlayer=tt._paper.append("g").classed("polarlayer",!0),tt._smithlayer=tt._paper.append("g").classed("smithlayer",!0),tt._ternarylayer=tt._paper.append("g").classed("ternarylayer",!0),tt._geolayer=tt._paper.append("g").classed("geolayer",!0),tt._funnelarealayer=tt._paper.append("g").classed("funnelarealayer",!0),tt._pielayer=tt._paper.append("g").classed("pielayer",!0),tt._iciclelayer=tt._paper.append("g").classed("iciclelayer",!0),tt._treemaplayer=tt._paper.append("g").classed("treemaplayer",!0),tt._sunburstlayer=tt._paper.append("g").classed("sunburstlayer",!0),tt._indicatorlayer=tt._toppaper.append("g").classed("indicatorlayer",!0),tt._glimages=tt._paper.append("g").classed("glimages",!0);var Dt=tt._toppaper.append("g").classed("layer-above",!0);tt._imageUpperLayer=Dt.append("g").classed("imagelayer",!0),tt._shapeUpperLayer=Dt.append("g").classed("shapelayer",!0),tt._selectionLayer=tt._toppaper.append("g").classed("selectionlayer",!0),tt._infolayer=tt._toppaper.append("g").classed("infolayer",!0),tt._menulayer=tt._toppaper.append("g").classed("menulayer",!0),tt._zoomlayer=tt._toppaper.append("g").classed("zoomlayer",!0),tt._hoverlayer=tt._hoverpaper.append("g").classed("hoverlayer",!0),tt._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),Ft.emit("plotly_framework")}(Se),Oe._shouldCreateBgLayer&&delete Oe._shouldCreateBgLayer),b.initGradients(Se),b.initPatterns(Se),ke&&d.saveShowSpikeInitial(Se);var je=!Se.calcdata||Se.calcdata.length!==(Se._fullData||[]).length;je&&u.doCalcdata(Se);for(var Ze=0;Ze<Se.calcdata.length;Ze++)Se.calcdata[Ze][0].trace=Se._fullData[Ze];Se._context.responsive?Se._responsiveChartHandler||(Se._responsiveChartHandler=function(){y.isHidden(Se)||u.resize(Se)},window.addEventListener("resize",Se._responsiveChartHandler)):y.clearResponsive(Se);var Ye=y.extendFlat({},Oe._size),it=0;function dt(){if(u.clearAutoMarginIds(Se),E.drawMarginPushers(Se),d.allowAutoMargin(Se),Se._fullLayout.title.text&&Se._fullLayout.title.automargin&&u.allowAutoMargin(Se,"title.automargin"),Oe._has("pie"))for(var Ft=Se._fullData,ot=0;ot<Ft.length;ot++){var tt=Ft[ot];tt.type==="pie"&&tt.automargin&&u.allowAutoMargin(Se,"pie."+tt.uid+".automargin")}return u.doAutoMargin(Se),u.previousPromises(Se)}function ut(){Se._transitioning||(E.doAutoRangeAndConstraints(Se),ke&&d.saveRangeInitial(Se),o.getComponentMethod("rangeslider","calcAutorange")(Se))}var It=[u.previousPromises,function(){if(Ue)return m.addFrames(Se,Ue)},function Ft(){for(var ot=Oe._basePlotModules,tt=0;tt<ot.length;tt++)ot[tt].drawFramework&&ot[tt].drawFramework(Se);!Oe._glcanvas&&Oe._has("gl")&&(Oe._glcanvas=Oe._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],function(Pt){return Pt.key}),Oe._glcanvas.enter().append("canvas").attr("class",function(Pt){return"gl-canvas gl-canvas-"+Pt.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var vt=Se._context.plotGlPixelRatio;if(Oe._glcanvas){Oe._glcanvas.attr("width",Oe.width*vt).attr("height",Oe.height*vt).style("width",Oe.width+"px").style("height",Oe.height+"px");var At=Oe._glcanvas.data()[0].regl;if(At&&(Math.floor(Oe.width*vt)!==At._gl.drawingBufferWidth||Math.floor(Oe.height*vt)!==At._gl.drawingBufferHeight)){var Dt="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(!it)return y.log(Dt+" Clearing graph and plotting again."),u.cleanPlot([],{},Se._fullData,Oe),u.supplyDefaults(Se),Oe=Se._fullLayout,u.doCalcdata(Se),it++,Ft();y.error(Dt)}}return Oe.modebar.orientation==="h"?Oe._modebardiv.style("height",null).style("width","100%"):Oe._modebardiv.style("width",null).style("height",Oe.height+"px"),u.previousPromises(Se)},dt,function(){if(u.didMarginChange(Ye,Oe._size))return y.syncOrAsync([dt,E.layoutStyles],Se)}];Re&&It.push(function(){if(je)return y.syncOrAsync([o.getComponentMethod("shapes","calcAutorange"),o.getComponentMethod("annotations","calcAutorange"),ut],Se);ut()}),It.push(E.layoutStyles),Re&&It.push(function(){return d.draw(Se,ke?"":"redraw")},function(Ft){var ot=Ft._fullLayout._insideTickLabelsUpdaterange;if(ot)return Ft._fullLayout._insideTickLabelsUpdaterange=void 0,se(Ft,ot).then(function(){d.saveRangeInitial(Ft,!0)})}),It.push(E.drawData,E.finalDraw,x,u.addLinks,u.rehover,u.redrag,u.reselect,u.doAutoMargin,u.previousPromises);var Ot=y.syncOrAsync(It,Se);return Ot&&Ot.then||(Ot=Promise.resolve()),Ot.then(function(){return z(Se),Se})},m.purge=function(Se){var ze=(Se=y.getGraphDiv(Se))._fullLayout||{},Fe=Se._fullData||[];return u.cleanPlot([],{},Fe,ze),u.purge(Se),p.purge(Se),ze._container&&ze._container.remove(),delete Se._context,Se},m.react=function(Se,ze,Fe,De){var Ue,Ne;Se=y.getGraphDiv(Se),A.clearPromiseQueue(Se);var ke=Se._fullData,Oe=Se._fullLayout;if(y.isPlotDiv(Se)&&ke&&Oe){if(y.isPlainObject(ze)){var Re=ze;ze=Re.data,Fe=Re.layout,De=Re.config,Ue=Re.frames}var je=!1;if(De){var Ze=y.extendDeep({},Se._context);Se._context=void 0,V(Se,De),je=ge(Ze,Se._context)}Se.data=ze||[],A.cleanData(Se.data),Se.layout=Fe||{},A.cleanLayout(Se.layout),function(mt,St,Bt,Je){var Xe,yt,Et,Ct,gt,$t,Lt,jt,Rt,Vt,Qt=Je._preGUI,ta=[],_a={},ka={};for(Xe in Qt){if(gt=Ee(Xe,xe)){if(Rt=gt.head,Vt=gt.tail,yt=gt.attr||Rt+".uirevision",(Ct=(Et=_(Je,yt).get())&&Pe(yt,St))&&Ct===Et){if(($t=Qt[Xe])===null&&($t=void 0),Ce(jt=(Lt=_(St,Xe)).get(),$t)){jt===void 0&&Vt==="autorange"&&ta.push(Rt),Lt.set(X(_(Je,Xe).get()));continue}if(Vt==="autorange"||Vt.substr(0,6)==="range["){var va=Qt[Rt+".range[0]"],ia=Qt[Rt+".range[1]"],fa=Qt[Rt+".autorange"];if(fa||fa===null&&va===null&&ia===null){if(!(Rt in _a)){var Da=_(St,Rt).get();_a[Rt]=Da&&(Da.autorange||Da.autorange!==!1&&(!Da.range||Da.range.length!==2))}if(_a[Rt]){Lt.set(X(_(Je,Xe).get()));continue}}}}}else y.warn("unrecognized GUI edit: "+Xe);delete Qt[Xe],gt&&gt.tail.substr(0,6)==="range["&&(ka[gt.head]=1)}for(var wa=0;wa<ta.length;wa++){var da=ta[wa];if(ka[da]){var Ea=_(St,da).get();Ea&&delete Ea.autorange}}var ua=Je._tracePreGUI;for(var ba in ua){var Ra,Oa=ua[ba],Ja=null;for(Xe in Oa){if(!Ja){var Fa=$e(ba,Bt);if(Fa<0){delete ua[ba];break}var qa=Te(ba,mt,(Ra=Bt[Fa]._fullInput).index);if(qa<0){delete ua[ba];break}Ja=mt[qa]}if(gt=Ee(Xe,we)){if(gt.attr?Ct=(Et=_(Je,gt.attr).get())&&Pe(gt.attr,St):(Et=Ra.uirevision,(Ct=Ja.uirevision)===void 0&&(Ct=St.uirevision)),Ct&&Ct===Et&&(($t=Oa[Xe])===null&&($t=void 0),Ce(jt=(Lt=_(Ja,Xe)).get(),$t))){Lt.set(X(_(Ra,Xe).get()));continue}}else y.warn("unrecognized GUI edit: "+Xe+" in trace uid "+ba);delete Oa[Xe]}}}(Se.data,Se.layout,ke,Oe),u.supplyDefaults(Se,{skipUpdateCalc:!0});var Ye=Se._fullData,it=Se._fullLayout,dt=it.datarevision===void 0,ut=it.transition,It=function(mt,St,Bt,Je,Xe){var yt=M.layoutFlags();return yt.arrays={},yt.rangesAltered={},yt.nChanges=0,yt.nChangesAnim=0,ye(St,Bt,[],{getValObject:function(Et){return s.getLayoutValObject(Bt,Et)},flags:yt,immutable:Je,transition:Xe,gd:mt}),(yt.plot||yt.calc)&&(yt.layoutReplot=!0),Xe&&yt.nChanges&&yt.nChangesAnim&&(yt.anim=yt.nChanges===yt.nChangesAnim?"all":"some"),yt}(Se,Oe,it,dt,ut),Ot=It.newDataRevision,Ft=function(mt,St,Bt,Je,Xe,yt){var Et=St.length===Bt.length;if(!Xe&&!Et)return{fullReplot:!0,calc:!0};var Ct,gt,$t=M.traceFlags();$t.arrays={},$t.nChanges=0,$t.nChangesAnim=0;var Lt={getValObject:function(Rt){var Vt=s.getTraceValObject(gt,Rt);return!gt._module.animatable&&Vt.anim&&(Vt.anim=!1),Vt},flags:$t,immutable:Je,transition:Xe,newDataRevision:yt,gd:mt},jt={};for(Ct=0;Ct<St.length;Ct++)if(Bt[Ct]){if(gt=Bt[Ct]._fullInput,u.hasMakesDataTransform(gt)&&(gt=Bt[Ct]),jt[gt.uid])continue;jt[gt.uid]=1,ye(St[Ct]._fullInput,gt,[],Lt)}return($t.calc||$t.plot)&&($t.fullReplot=!0),Xe&&$t.nChanges&&$t.nChangesAnim&&($t.anim=$t.nChanges===$t.nChangesAnim&&Et?"all":"some"),$t}(Se,ke,Ye,dt,ut,Ot);if(pe(Se)&&(It.layoutReplot=!0),Ft.calc||It.calc){Se.calcdata=void 0;for(var ot=Object.getOwnPropertyNames(it),tt=0;tt<ot.length;tt++){var vt=ot[tt],At=vt.substring(0,5);if(At==="xaxis"||At==="yaxis"){var Dt=it[vt]._emptyCategories;Dt&&Dt()}}}else u.supplyDefaultsUpdateCalc(Se.calcdata,Ye);var Pt=[];if(Ue&&(Se._transitionData={},u.createTransitionData(Se),Pt.push(function(){return m.addFrames(Se,Ue)})),it.transition&&!je&&(Ft.anim||It.anim))It.ticks&&Pt.push(E.doTicksRelayout),u.doCalcdata(Se),E.doAutoRangeAndConstraints(Se),Pt.push(function(){return u.transitionFromReact(Se,Ft,It,Oe)});else if(Ft.fullReplot||It.layoutReplot||je)Se._fullLayout._skipDefaults=!0,Pt.push(m._doPlot);else{for(var et in It.arrays){var rt=It.arrays[et];if(rt.length){var We=o.getComponentMethod(et,"drawOne");if(We!==y.noop)for(var nt=0;nt<rt.length;nt++)We(Se,rt[nt]);else{var _t=o.getComponentMethod(et,"draw");if(_t===y.noop)throw new Error("cannot draw components: "+et);_t(Se)}}}Pt.push(u.previousPromises),Ft.style&&Pt.push(E.doTraceStyle),(Ft.colorbars||It.colorbars)&&Pt.push(E.doColorBars),It.legend&&Pt.push(E.doLegend),It.layoutstyle&&Pt.push(E.layoutStyles),It.axrange&&ae(Pt),It.ticks&&Pt.push(E.doTicksRelayout),It.modebar&&Pt.push(E.doModeBar),It.camera&&Pt.push(E.doCamera),Pt.push(z)}Pt.push(u.rehover,u.redrag,u.reselect),(Ne=y.syncOrAsync(Pt,Se))&&Ne.then||(Ne=Promise.resolve(Se))}else Ne=m.newPlot(Se,ze,Fe,De);return Ne.then(function(){return Se.emit("plotly_react",{data:ze,layout:Fe}),Se})},m.redraw=function(Se){if(Se=y.getGraphDiv(Se),!y.isPlotDiv(Se))throw new Error("This element is not a Plotly plot: "+Se);return A.cleanData(Se.data),A.cleanLayout(Se.layout),Se.calcdata=void 0,m._doPlot(Se).then(function(){return Se.emit("plotly_redraw"),Se})},m.relayout=se,m.restyle=Q,m.setPlotConfig=function(Se){return y.extendFlat(T,Se)},m.update=me,m._guiRelayout=_e(se),m._guiRestyle=_e(Q),m._guiUpdate=_e(me),m._storeDirectGUIEdit=function(Se,ze,Fe){for(var De in Fe)ee(De,_(Se,De).get(),Fe[De],ze)}},24452:function(c){var m={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},a={};(function v(f,n){for(var y in f){var _=f[y];_.valType?n[y]=_.dflt:(n[y]||(n[y]={}),v(_,n[y]))}})(m,a),c.exports={configAttributes:m,dfltConfig:a}},57297:function(c,m,a){var v=a(33626),f=a(34809),n=a(9829),y=a(6704),_=a(58935),p=a(49722),l=a(24452).configAttributes,o=a(13582),s=f.extendDeepAll,u=f.isPlainObject,d=f.isArrayOrTypedArray,h=f.nestedProperty,g=f.valObjectMeta,b="_isSubplotObj",w="_isLinkedToArray",x="_deprecated",S=[b,w,"_arrayAttrRegexps",x];function k(I,N,z){if(!I)return!1;if(I._isLinkedToArray){if(T(N[z]))z++;else if(z<N.length)return!1}for(;z<N.length;z++){var F=I[N[z]];if(!u(F)||(I=F,z===N.length-1))break;if(I._isLinkedToArray){if(!T(N[++z]))return!1}else if(I.valType==="info_array"){var R=N[++z];if(!T(R))return!1;var V=I.items;if(Array.isArray(V)){if(R>=V.length)return!1;if(I.dimensions===2){if(z++,N.length===z)return I;var $=N[z];if(!T($))return!1;I=V[R][$]}else I=V[R]}else I=V}}return I}function T(I){return I===Math.round(I)&&I>=0}function C(){var I,N,z={};for(I in s(z,y),v.subplotsRegistry)if((N=v.subplotsRegistry[I]).layoutAttributes)if(Array.isArray(N.attr))for(var F=0;F<N.attr.length;F++)E(z,N,N.attr[F]);else E(z,N,N.attr==="subplot"?N.name:N.attr);for(I in v.componentsRegistry){var R=(N=v.componentsRegistry[I]).schema;if(R&&(R.subplots||R.layout)){var V=R.subplots;if(V&&V.xaxis&&!V.yaxis)for(var $ in V.xaxis)delete z.yaxis[$];delete z.xaxis.shift,delete z.xaxis.autoshift}else N.name==="colorscale"?s(z,N.layoutAttributes):N.layoutAttributes&&M(z,N.layoutAttributes,N.name)}return{layoutAttributes:A(z)}}function A(I){return function(N){m.crawl(N,function(z,F,R){m.isValObject(z)?z.arrayOk!==!0&&z.valType!=="data_array"||(R[F+"src"]={valType:"string",editType:"none"}):u(z)&&(z.role="object")})}(I),function(N){m.crawl(N,function(z,F,R){if(z){var V=z[w];V&&(delete z[w],R[F]={items:{}},R[F].items[V]=z,R[F].role="object")}})}(I),function(N){(function z(F){for(var R in F)if(u(F[R]))z(F[R]);else if(Array.isArray(F[R]))for(var V=0;V<F[R].length;V++)z(F[R][V]);else F[R]instanceof RegExp&&(F[R]=F[R].toString())})(N)}(I),I}function E(I,N,z){var F=h(I,z),R=s({},N.layoutAttributes);R[b]=!0,F.set(R)}function M(I,N,z){var F=h(I,z);F.set(s(F.get()||{},N))}m.IS_SUBPLOT_OBJ=b,m.IS_LINKED_TO_ARRAY=w,m.DEPRECATED=x,m.UNDERSCORE_ATTRS=S,m.get=function(){var I={};v.allTypes.forEach(function(F){I[F]=function(R){var V,$;$=(V=v.modules[R]._module).basePlotModule;var U={type:null},Z=s({},n),q=s({},V.attributes);m.crawl(q,function(X,J,ee,le,oe){h(Z,oe).set(void 0),X===void 0&&h(q,oe).set(void 0)}),s(U,Z),v.traceIs(R,"noOpacity")&&delete U.opacity,v.traceIs(R,"showLegend")||(delete U.showlegend,delete U.legendgroup),v.traceIs(R,"noHover")&&(delete U.hoverinfo,delete U.hoverlabel),V.selectPoints||delete U.selectedpoints,s(U,q),$.attributes&&s(U,$.attributes),U.type=R;var W={meta:V.meta||{},categories:V.categories||{},animatable:!!V.animatable,type:R,attributes:A(U)};if(V.layoutAttributes){var Q={};s(Q,V.layoutAttributes),W.layoutAttributes=A(Q)}return V.animatable||m.crawl(W,function(X){m.isValObject(X)&&"anim"in X&&delete X.anim}),W}(F)});var N,z={};return Object.keys(v.transformsRegistry).forEach(function(F){z[F]=function(R){var V=v.transformsRegistry[R],$=s({},V.attributes);return Object.keys(v.componentsRegistry).forEach(function(U){var Z=v.componentsRegistry[U];Z.schema&&Z.schema.transforms&&Z.schema.transforms[R]&&Object.keys(Z.schema.transforms[R]).forEach(function(q){M($,Z.schema.transforms[R][q],q)})}),{attributes:A($)}}(F)}),{defs:{valObjects:g,metaKeys:S.concat(["description","role","editType","impliedEdits"]),editType:{traces:o.traces,layout:o.layout},impliedEdits:{}},traces:I,layout:C(),transforms:z,frames:(N={frames:s({},_)},A(N),N.frames),animation:A(p),config:A(l)}},m.crawl=function(I,N,z,F){var R=z||0;F=F||"",Object.keys(I).forEach(function(V){var $=I[V];if(S.indexOf(V)===-1){var U=(F?F+".":"")+V;N($,V,I,R,U),m.isValObject($)||u($)&&V!=="impliedEdits"&&m.crawl($,N,R+1,U)}})},m.isValObject=function(I){return I&&I.valType!==void 0},m.findArrayAttributes=function(I){var N,z,F=[],R=[],V=[];function $(X,J,ee,le){R=R.slice(0,le).concat([J]),V=V.slice(0,le).concat([X&&X._isLinkedToArray]),X&&(X.valType==="data_array"||X.arrayOk===!0)&&(R[le-1]!=="colorbar"||J!=="ticktext"&&J!=="tickvals")&&U(N,0,"")}function U(X,J,ee){var le=X[R[J]],oe=ee+R[J];if(J===R.length-1)d(le)&&F.push(z+oe);else if(V[J]){if(Array.isArray(le))for(var se=0;se<le.length;se++)u(le[se])&&U(le[se],J+1,oe+"["+se+"].")}else u(le)&&U(le,J+1,oe+".")}N=I,z="",m.crawl(n,$),I._module&&I._module.attributes&&m.crawl(I._module.attributes,$);var Z=I.transforms;if(Z)for(var q=0;q<Z.length;q++){var W=Z[q],Q=W._module;Q&&(z="transforms["+q+"].",N=W,m.crawl(Q.attributes,$))}return F},m.getTraceValObject=function(I,N){var z,F,R=N[0],V=1;if(R==="transforms"){if(N.length===1)return n.transforms;var $=I.transforms;if(!Array.isArray($)||!$.length)return!1;var U=N[1];if(!T(U)||U>=$.length)return!1;F=(z=(v.transformsRegistry[$[U].type]||{}).attributes)&&z[N[2]],V=3}else{var Z=I._module;if(Z||(Z=(v.modules[I.type||n.type.dflt]||{})._module),!Z)return!1;if(!(F=(z=Z.attributes)&&z[R])){var q=Z.basePlotModule;q&&q.attributes&&(F=q.attributes[R])}F||(F=n[R])}return k(F,N,V)},m.getLayoutValObject=function(I,N){var z=function(F,R){var V,$,U,Z,q=F._basePlotModules;if(q){var W;for(V=0;V<q.length;V++){if((U=q[V]).attrRegex&&U.attrRegex.test(R)){if(U.layoutAttrOverrides)return U.layoutAttrOverrides;!W&&U.layoutAttributes&&(W=U.layoutAttributes)}var Q=U.baseLayoutAttrOverrides;if(Q&&R in Q)return Q[R]}if(W)return W}var X=F._modules;if(X){for(V=0;V<X.length;V++)if((Z=X[V].layoutAttributes)&&R in Z)return Z[R]}for($ in v.componentsRegistry){if((U=v.componentsRegistry[$]).name==="colorscale"&&R.indexOf("coloraxis")===0)return U.layoutAttributes[R];if(!U.schema&&R===U.name)return U.layoutAttributes}return R in y&&y[R]}(I,N[0]);return k(z,N,1)}},78032:function(c,m,a){var v=a(34809),f=a(9829),n="templateitemname",y={name:{valType:"string",editType:"none"}};function _(l){return l&&typeof l=="string"}function p(l){var o=l.length-1;return l.charAt(o)!=="s"&&v.warn("bad argument to arrayDefaultKey: "+l),l.substr(0,l.length-1)+"defaults"}y[n]={valType:"string",editType:"calc"},m.templatedArray=function(l,o){return o._isLinkedToArray=l,o.name=y.name,o[n]=y[n],o},m.traceTemplater=function(l){var o,s,u={};for(o in l)s=l[o],Array.isArray(s)&&s.length&&(u[o]=0);return{newTrace:function(d){var h={type:o=v.coerce(d,{},f,"type"),_template:null};if(o in u){s=l[o];var g=u[o]%s.length;u[o]++,h._template=s[g]}return h}}},m.newContainer=function(l,o,s){var u=l._template,d=u&&(u[o]||s&&u[s]);return v.isPlainObject(d)||(d=null),l[o]={_template:d}},m.arrayTemplater=function(l,o,s){var u=l._template,d=u&&u[p(o)],h=u&&u[o];Array.isArray(h)&&h.length||(h=[]);var g={};return{newItem:function(b){var w={name:b.name,_input:b},x=w[n]=b[n];if(!_(x))return w._template=d,w;for(var S=0;S<h.length;S++){var k=h[S];if(k.name===x)return g[x]=1,w._template=k,w}return w[s]=b[s]||!1,w._template=!1,w},defaultItems:function(){for(var b=[],w=0;w<h.length;w++){var x=h[w],S=x.name;if(_(S)&&!g[S]){var k={_template:x,name:S,_input:{_templateitemname:S}};k[n]=x[n],b.push(k),g[S]=1}}return b}}},m.arrayDefaultKey=p,m.arrayEditor=function(l,o,s){var u=(v.nestedProperty(l,o).get()||[]).length,d=s._index,h=d>=u&&(s._input||{})._templateitemname;h&&(d=u);var g,b=o+"["+d+"]";function w(){g={},h&&(g[b]={},g[b][n]=h)}function x(k,T){h?v.nestedProperty(g[b],k).set(T):g[b+"."+k]=T}function S(){var k=g;return w(),k}return w(),{modifyBase:function(k,T){g[k]=T},modifyItem:x,getUpdateObj:S,applyUpdate:function(k,T){k&&x(k,T);var C=S();for(var A in C)v.nestedProperty(l,A).set(C[A])}}}},71817:function(c,m,a){var v=a(45568),f=a(33626),n=a(44122),y=a(34809),_=a(30635),p=a(34823),l=a(78766),o=a(62203),s=a(17240),u=a(95433),d=a(29714),h=a(4530),g=a(84391),b=g.enforce,w=g.clean,x=a(32919).doAutoRange,S="start",k=a(54826).zindexSeparator;function T(N,z,F){for(var R=0;R<F.length;R++){var V=F[R][0],$=F[R][1];if(!(V[0]>=N[1]||V[1]<=N[0])&&$[0]<z[1]&&$[1]>z[0])return!0}return!1}function C(N){var z,F,R,V,$,U,Z=N._fullLayout,q=Z._size,W=q.p,Q=d.list(N,"",!0);if(Z._paperdiv.style({width:N._context.responsive&&Z.autosize&&!N._context._hasZeroWidth&&!N.layout.width?"100%":Z.width+"px",height:N._context.responsive&&Z.autosize&&!N._context._hasZeroHeight&&!N.layout.height?"100%":Z.height+"px"}).selectAll(".main-svg").call(o.setSize,Z.width,Z.height),N._context.setBackground(N,Z.paper_bgcolor),m.drawMainTitle(N),u.manage(N),!Z._has("cartesian"))return n.previousPromises(N);function X(Ye,it,dt){var ut=Ye._lw/2;return Ye._id.charAt(0)==="x"?it?dt==="top"?it._offset-W-ut:it._offset+it._length+W+ut:q.t+q.h*(1-(Ye.position||0))+ut%1:it?dt==="right"?it._offset+it._length+W+ut:it._offset-W-ut:q.l+q.w*(Ye.position||0)+ut%1}for(z=0;z<Q.length;z++){var J=(V=Q[z])._anchorAxis;V._linepositions={},V._lw=o.crispRound(N,V.linewidth,1),V._mainLinePosition=X(V,J,V.side),V._mainMirrorPosition=V.mirror&&J?X(V,J,h.OPPOSITE_SIDE[V.side]):null}var ee=[],le=[],oe=[],se=l.opacity(Z.paper_bgcolor)===1&&l.opacity(Z.plot_bgcolor)===1&&Z.paper_bgcolor===Z.plot_bgcolor;for(F in Z._plots)if((R=Z._plots[F]).mainplot)R.bg&&R.bg.remove(),R.bg=void 0;else{var ce=R.xaxis.domain,ae=R.yaxis.domain,ne=R.plotgroup;if(T(ce,ae,oe)&&F.indexOf(k)===-1){var ie=ne.node(),ue=R.bg=y.ensureSingle(ne,"rect","bg");ie.insertBefore(ue.node(),ie.childNodes[0]),le.push(F)}else ne.select("rect.bg").remove(),oe.push([ce,ae]),se||(ee.push(F),le.push(F))}var he,pe,me,_e,xe,we,Ee,Pe,$e,Te,Ce,ye,ge,Me=Z._bgLayer.selectAll(".bg").data(ee);for(Me.enter().append("rect").classed("bg",!0),Me.exit().remove(),Me.each(function(Ye){Z._plots[Ye].bg=v.select(this)}),z=0;z<le.length;z++)R=Z._plots[le[z]],$=R.xaxis,U=R.yaxis,R.bg&&$._offset!==void 0&&U._offset!==void 0&&R.bg.call(o.setRect,$._offset-W,U._offset-W,$._length+2*W,U._length+2*W).call(l.fill,Z.plot_bgcolor).style("stroke-width",0);if(!Z._hasOnlyLargeSploms)for(F in Z._plots){R=Z._plots[F],$=R.xaxis,U=R.yaxis;var Se,ze,Fe=R.clipId="clip"+Z._uid+F+"plot",De=y.ensureSingleById(Z._clips,"clipPath",Fe,function(Ye){Ye.classed("plotclip",!0).append("rect")});R.clipRect=De.select("rect").attr({width:$._length,height:U._length}),o.setTranslate(R.plot,$._offset,U._offset),R._hasClipOnAxisFalse?(Se=null,ze=Fe):(Se=Fe,ze=null),o.setClipUrl(R.plot,Se,N),R.layerClipId=ze}function Ue(Ye){return"M"+he+","+Ye+"H"+pe}function Ne(Ye){return"M"+$._offset+","+Ye+"h"+$._length}function ke(Ye){return"M"+Ye+","+Pe+"V"+Ee}function Oe(Ye){return U._shift!==void 0&&(Ye+=U._shift),"M"+Ye+","+U._offset+"v"+U._length}function Re(Ye,it,dt){if(!Ye.showline||F!==Ye._mainSubplot)return"";if(!Ye._anchorAxis)return dt(Ye._mainLinePosition);var ut=it(Ye._mainLinePosition);return Ye.mirror&&(ut+=it(Ye._mainMirrorPosition)),ut}for(F in Z._plots){R=Z._plots[F],$=R.xaxis,U=R.yaxis;var je="M0,0";A($,F)&&(xe=M($,"left",U,Q),he=$._offset-(xe?W+xe:0),we=M($,"right",U,Q),pe=$._offset+$._length+(we?W+we:0),me=X($,U,"bottom"),_e=X($,U,"top"),!(ge=!$._anchorAxis||F!==$._mainSubplot)||$.mirror!=="allticks"&&$.mirror!=="all"||($._linepositions[F]=[me,_e]),je=Re($,Ue,Ne),ge&&$.showline&&($.mirror==="all"||$.mirror==="allticks")&&(je+=Ue(me)+Ue(_e)),R.xlines.style("stroke-width",$._lw+"px").call(l.stroke,$.showline?$.linecolor:"rgba(0,0,0,0)")),R.xlines.attr("d",je);var Ze="M0,0";A(U,F)&&(Ce=M(U,"bottom",$,Q),Ee=U._offset+U._length+(Ce?W:0),ye=M(U,"top",$,Q),Pe=U._offset-(ye?W:0),$e=X(U,$,"left"),Te=X(U,$,"right"),!(ge=!U._anchorAxis||F!==U._mainSubplot)||U.mirror!=="allticks"&&U.mirror!=="all"||(U._linepositions[F]=[$e,Te]),Ze=Re(U,ke,Oe),ge&&U.showline&&(U.mirror==="all"||U.mirror==="allticks")&&(Ze+=ke($e)+ke(Te)),R.ylines.style("stroke-width",U._lw+"px").call(l.stroke,U.showline?U.linecolor:"rgba(0,0,0,0)")),R.ylines.attr("d",Ze)}return d.makeClipPaths(N),n.previousPromises(N)}function A(N,z){return(N.ticks||N.showline)&&(z===N._mainSubplot||N.mirror==="all"||N.mirror==="allticks")}function E(N,z,F){if(!F.showline||!F._lw)return!1;if(F.mirror==="all"||F.mirror==="allticks")return!0;var R=F._anchorAxis;if(!R)return!1;var V=h.FROM_BL[z];return F.side===z?R.domain[V]===N.domain[V]:F.mirror&&R.domain[1-V]===N.domain[1-V]}function M(N,z,F,R){if(E(N,z,F))return F._lw;for(var V=0;V<R.length;V++){var $=R[V];if($._mainAxis===F._mainAxis&&E(N,z,$))return $._lw}return 0}function I(N){return N==="top"?h.CAP_SHIFT+.3+"em":N==="bottom"?"-0.3em":h.MID_SHIFT+"em"}m.layoutStyles=function(N){return y.syncOrAsync([n.doAutoMargin,C],N)},m.drawMainTitle=function(N){var z=N._fullLayout.title,F=N._fullLayout,R=function(oe){var se=oe.title,ce="middle";return y.isRightAnchor(se)?ce="end":y.isLeftAnchor(se)&&(ce=S),ce}(F),V=function(oe){var se=oe.title,ce="0em";return y.isTopAnchor(se)?ce=h.CAP_SHIFT+"em":y.isMiddleAnchor(se)&&(ce=h.MID_SHIFT+"em"),ce}(F),$=function(oe,se){var ce=oe.title,ae=oe._size,ne=0;return se!=="0em"&&se?se===h.CAP_SHIFT+"em"&&(ne=ce.pad.t):ne=-ce.pad.b,ce.y==="auto"?ae.t/2:ce.yref==="paper"?ae.t+ae.h-ae.h*ce.y+ne:oe.height-oe.height*ce.y+ne}(F,V),U=function(oe,se){var ce=oe.title,ae=oe._size,ne=0;return se===S?ne=ce.pad.l:se==="end"&&(ne=-ce.pad.r),ce.xref==="paper"?ae.l+ae.w*ce.x+ne:oe.width*ce.x+ne}(F,R);if(s.draw(N,"gtitle",{propContainer:F,propName:"title.text",subtitlePropName:"title.subtitle.text",placeholder:F._dfltTitle.plot,subtitlePlaceholder:F._dfltTitle.subtitle,attributes:{x:U,y:$,"text-anchor":R,dy:V}}),z.text&&z.automargin){var Z=v.selectAll(".gtitle"),q=o.bBox(v.selectAll(".g-gtitle").node()).height,W=function(oe,se,ce){var ae=se.y,ne=se.yanchor,ie=ae>.5?"t":"b",ue=oe._fullLayout.margin[ie],he=0;return se.yref==="paper"?he=ce+se.pad.t+se.pad.b:se.yref==="container"&&(he=function(pe,me,_e,xe,we){var Ee=0;return _e==="middle"&&(Ee+=we/2),pe==="t"?(_e==="top"&&(Ee+=we),Ee+=xe-me*xe):(_e==="bottom"&&(Ee+=we),Ee+=me*xe),Ee}(ie,ae,ne,oe._fullLayout.height,ce)+se.pad.t+se.pad.b),he>ue?he:0}(N,z,q);if(W>0){(function(oe,se,ce,ae){var ne="title.automargin",ie=oe._fullLayout.title,ue=ie.y>.5?"t":"b",he={x:ie.x,y:ie.y,t:0,b:0},pe={};ie.yref==="paper"&&function(me,_e,xe,we,Ee){var Pe=_e.yref==="paper"?me._fullLayout._size.h:me._fullLayout.height,$e=y.isTopAnchor(_e)?we:we-Ee,Te=xe==="b"?Pe-$e:$e;return!(y.isTopAnchor(_e)&&xe==="t"||y.isBottomAnchor(_e)&&xe==="b")&&Te<Ee}(oe,ie,ue,se,ae)?he[ue]=ce:ie.yref==="container"&&(pe[ue]=ce,oe._fullLayout._reservedMargin[ne]=pe),n.allowAutoMargin(oe,ne),n.autoMargin(oe,ne,he)})(N,$,W,q),Z.attr({x:U,y:$,"text-anchor":R,dy:I(z.yanchor)}).call(_.positionText,U,$);var Q=(z.text.match(_.BR_TAG_ALL)||[]).length;if(Q){var X=h.LINE_SPACING*Q+h.MID_SHIFT;z.y===0&&(X=-X),Z.selectAll(".line").each(function(){var oe=+this.getAttribute("dy").slice(0,-2)-X+"em";this.setAttribute("dy",oe)})}var J=v.selectAll(".gtitle-subtitle");if(J.node()){var ee=Z.node().getBBox(),le=ee.y+ee.height+s.SUBTITLE_PADDING_EM*z.subtitle.font.size;J.attr({x:U,y:le,"text-anchor":R,dy:I(z.yanchor)}).call(_.positionText,U,le)}}}},m.doTraceStyle=function(N){var z,F=N.calcdata,R=[];for(z=0;z<F.length;z++){var V=F[z],$=V[0]||{},U=$.trace||{},Z=U._module||{},q=Z.arraysToCalcdata;q&&q(V,U);var W=Z.editStyle;W&&R.push({fn:W,cd0:$})}if(R.length){for(z=0;z<R.length;z++){var Q=R[z];Q.fn(N,Q.cd0)}p(N),m.redrawReglTraces(N)}return n.style(N),f.getComponentMethod("legend","draw")(N),n.previousPromises(N)},m.doColorBars=function(N){return f.getComponentMethod("colorbar","draw")(N),n.previousPromises(N)},m.layoutReplot=function(N){var z=N.layout;return N.layout=void 0,f.call("_doPlot",N,"",z)},m.doLegend=function(N){return f.getComponentMethod("legend","draw")(N),n.previousPromises(N)},m.doTicksRelayout=function(N){return d.draw(N,"redraw"),N._fullLayout._hasOnlyLargeSploms&&(f.subplotsRegistry.splom.updateGrid(N),p(N),m.redrawReglTraces(N)),m.drawMainTitle(N),n.previousPromises(N)},m.doModeBar=function(N){var z=N._fullLayout;u.manage(N);for(var F=0;F<z._basePlotModules.length;F++){var R=z._basePlotModules[F].updateFx;R&&R(N)}return n.previousPromises(N)},m.doCamera=function(N){for(var z=N._fullLayout,F=z._subplots.gl3d,R=0;R<F.length;R++){var V=z[F[R]];V._scene.setViewport(V)}},m.drawData=function(N){var z=N._fullLayout;p(N);for(var F=z._basePlotModules,R=0;R<F.length;R++)F[R].plot(N);return m.redrawReglTraces(N),n.style(N),f.getComponentMethod("selections","draw")(N),f.getComponentMethod("shapes","draw")(N),f.getComponentMethod("annotations","draw")(N),f.getComponentMethod("images","draw")(N),z._replotting=!1,n.previousPromises(N)},m.redrawReglTraces=function(N){var z=N._fullLayout;if(z._has("regl")){var F,R,V=N._fullData,$=[],U=[];for(z._hasOnlyLargeSploms&&z._splomGrid.draw(),F=0;F<V.length;F++){var Z=V[F];Z.visible===!0&&Z._length!==0&&(Z.type==="splom"?z._splomScenes[Z.uid].draw():Z.type==="scattergl"?y.pushUnique($,Z.xaxis+Z.yaxis):Z.type==="scatterpolargl"&&y.pushUnique(U,Z.subplot))}for(F=0;F<$.length;F++)(R=z._plots[$[F]])._scene&&R._scene.draw();for(F=0;F<U.length;F++)(R=z[U[F]]._subplot)._scene&&R._scene.draw()}},m.doAutoRangeAndConstraints=function(N){for(var z,F=d.list(N,"",!0),R={},V=0;V<F.length;V++)if(!R[(z=F[V])._id]){R[z._id]=1,w(N,z),x(N,z);var $=z._matchGroup;if($)for(var U in $){var Z=d.getFromId(N,U);x(N,Z,z.range),R[U]=1}}b(N)},m.finalDraw=function(N){f.getComponentMethod("rangeslider","draw")(N),f.getComponentMethod("rangeselector","draw")(N)},m.drawMarginPushers=function(N){f.getComponentMethod("legend","draw")(N),f.getComponentMethod("rangeselector","draw")(N),f.getComponentMethod("sliders","draw")(N),f.getComponentMethod("updatemenus","draw")(N),f.getComponentMethod("colorbar","draw")(N)}},53853:function(c,m,a){var v=a(34809),f=v.isPlainObject,n=a(57297),y=a(44122),_=a(9829),p=a(78032),l=a(24452).dfltConfig;function o(x,S){x=v.extendDeep({},x);var k,T,C=Object.keys(x).sort();function A(z,F,R){if(f(F)&&f(z))o(z,F);else if(Array.isArray(F)&&Array.isArray(z)){var V=p.arrayTemplater({_template:x},R);for(T=0;T<F.length;T++){var $=F[T],U=V.newItem($)._template;U&&o(U,$)}var Z=V.defaultItems();for(T=0;T<Z.length;T++)F.push(Z[T]._template);for(T=0;T<F.length;T++)delete F[T].templateitemname}}for(k=0;k<C.length;k++){var E=C[k],M=x[E];if(E in S?A(M,S[E],E):S[E]=M,s(E)===E)for(var I in S){var N=s(I);I===N||N!==E||I in x||A(M,S[I],E)}}}function s(x){return x.replace(/[0-9]+$/,"")}function u(x,S,k,T,C){var A=C&&k(C);for(var E in x){var M=x[E],I=g(x,E,T),N=g(x,E,C),z=k(N);if(!z){var F=s(E);F!==E&&(z=k(N=g(x,F,C)))}if(!(A&&A===z||!z||z._noTemplating||z.valType==="data_array"||z.arrayOk&&Array.isArray(M)))if(!z.valType&&f(M))u(M,S,k,I,N);else if(z._isLinkedToArray&&Array.isArray(M))for(var R=!1,V=0,$={},U=0;U<M.length;U++){var Z=M[U];if(f(Z)){var q=Z.name;if(q)$[q]||(u(Z,S,k,g(M,V,I),g(M,V,N)),V++,$[q]=1);else if(!R){var W=g(x,p.arrayDefaultKey(E),T),Q=g(M,V,I);u(Z,S,k,Q,g(M,V,N));var X=v.nestedProperty(S,Q);v.nestedProperty(S,W).set(X.get()),X.set(null),R=!0}}}else v.nestedProperty(S,I).set(M)}}function d(x,S){return n.getLayoutValObject(x,v.nestedProperty({},S).parts)}function h(x,S){return n.getTraceValObject(x,v.nestedProperty({},S).parts)}function g(x,S,k){return k?Array.isArray(x)?k+"["+S+"]":k+"."+S:S}function b(x){for(var S=0;S<x.length;S++)if(f(x[S]))return!0}function w(x){var S;switch(x.code){case"data":S="The template has no key data.";break;case"layout":S="The template has no key layout.";break;case"missing":S=x.path?"There are no templates for item "+x.path+" with name "+x.templateitemname:"There are no templates for trace "+x.index+", of type "+x.traceType+".";break;case"unused":S=x.path?"The template item at "+x.path+" was not used in constructing the plot.":x.dataCount?"Some of the templates of type "+x.traceType+" were not used. The template has "+x.templateCount+" traces, the data only has "+x.dataCount+" of this type.":"The template has "+x.templateCount+" traces of type "+x.traceType+" but there are none in the data.";break;case"reused":S="Some of the templates of type "+x.traceType+" were used more than once. The template has "+x.templateCount+" traces, the data has "+x.dataCount+" of this type."}return x.msg=S,x}m.makeTemplate=function(x){x=v.isPlainObject(x)?x:v.getGraphDiv(x),x=v.extendDeep({_context:l},{data:x.data,layout:x.layout}),y.supplyDefaults(x);var S=x.data||[],k=x.layout||{};k._basePlotModules=x._fullLayout._basePlotModules,k._modules=x._fullLayout._modules;var T={data:{},layout:{}};S.forEach(function(V){var $={};u(V,$,h.bind(null,V));var U=v.coerce(V,{},_,"type"),Z=T.data[U];Z||(Z=T.data[U]=[]),Z.push($)}),u(k,T.layout,d.bind(null,k)),delete T.layout.template;var C=k.template;if(f(C)){var A,E,M,I,N,z,F=C.layout;f(F)&&o(F,T.layout);var R=C.data;if(f(R)){for(E in T.data)if(M=R[E],Array.isArray(M)){for(z=(N=T.data[E]).length,I=M.length,A=0;A<z;A++)o(M[A%I],N[A]);for(A=z;A<I;A++)N.push(v.extendDeep({},M[A]))}for(E in R)E in T.data||(T.data[E]=v.extendDeep([],R[E]))}}return T},m.validateTemplate=function(x,S){var k=v.extendDeep({},{_context:l,data:x.data,layout:x.layout}),T=k.layout||{};f(S)||(S=T.template||{});var C=S.layout,A=S.data,E=[];k.layout=T,k.layout.template=S,y.supplyDefaults(k);var M=k._fullLayout,I=k._fullData,N={};if(f(C)?(function Z(q,W){for(var Q in q)if(Q.charAt(0)!=="_"&&f(q[Q])){var X,J=s(Q),ee=[];for(X=0;X<W.length;X++)ee.push(g(q,Q,W[X])),J!==Q&&ee.push(g(q,J,W[X]));for(X=0;X<ee.length;X++)N[ee[X]]=1;Z(q[Q],ee)}}(M,["layout"]),function Z(q,W){for(var Q in q)if(Q.indexOf("defaults")===-1&&f(q[Q])){var X=g(q,Q,W);N[X]?Z(q[Q],X):E.push({code:"unused",path:X})}}(C,"layout")):E.push({code:"layout"}),f(A)){for(var z,F={},R=0;R<I.length;R++){var V=I[R];F[z=V.type]=(F[z]||0)+1,V._fullInput._template||E.push({code:"missing",index:V._fullInput.index,traceType:z})}for(z in A){var $=A[z].length,U=F[z]||0;$>U?E.push({code:"unused",traceType:z,templateCount:$,dataCount:U}):U>$&&E.push({code:"reused",traceType:z,templateCount:$,dataCount:U})}}else E.push({code:"data"});if(function Z(q,W){for(var Q in q)if(Q.charAt(0)!=="_"){var X=q[Q],J=g(q,Q,W);f(X)?(Array.isArray(q)&&X._template===!1&&X.templateitemname&&E.push({code:"missing",path:J,templateitemname:X.templateitemname}),Z(X,J)):Array.isArray(X)&&b(X)&&Z(X,J)}}({data:I,layout:M},""),E.length)return E.map(w)}},80491:function(c,m,a){var v=a(10721),f=a(31420),n=a(44122),y=a(34809),_=a(84619),p=a(6243),l=a(72914),o=a(29697).version,s={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};c.exports=function(u,d){var h,g,b,w;function x(U){return!(U in d)||y.validate(d[U],s[U])}if(d=d||{},y.isPlainObject(u)?(h=u.data||[],g=u.layout||{},b=u.config||{},w={}):(u=y.getGraphDiv(u),h=y.extendDeep([],u.data),g=y.extendDeep({},u.layout),b=u._context,w=u._fullLayout||{}),!x("width")&&d.width!==null||!x("height")&&d.height!==null)throw new Error("Height and width should be pixel values.");if(!x("format"))throw new Error("Export format is not "+y.join2(s.format.values,", "," or ")+".");var S={};function k(U,Z){return y.coerce(d,S,s,U,Z)}var T=k("format"),C=k("width"),A=k("height"),E=k("scale"),M=k("setBackground"),I=k("imageDataOnly"),N=document.createElement("div");N.style.position="absolute",N.style.left="-5000px",document.body.appendChild(N);var z=y.extendFlat({},g);C?z.width=C:d.width===null&&v(w.width)&&(z.width=w.width),A?z.height=A:d.height===null&&v(w.height)&&(z.height=w.height);var F=y.extendFlat({},b,{_exportedPlot:!0,staticPlot:!0,setBackground:M}),R=_.getRedrawFunc(N);function V(){return new Promise(function(U){setTimeout(U,_.getDelay(N._fullLayout))})}function $(){return new Promise(function(U,Z){var q=p(N,T,E),W=N._fullLayout.width,Q=N._fullLayout.height;function X(){f.purge(N),document.body.removeChild(N)}if(T==="full-json"){var J=n.graphJson(N,!1,"keepdata","object",!0,!0);return J.version=o,J=JSON.stringify(J),X(),U(I?J:_.encodeJSON(J))}if(X(),T==="svg")return U(I?q:_.encodeSVG(q));var ee=document.createElement("canvas");ee.id=y.randstr(),l({format:T,width:W,height:Q,scale:E,canvas:ee,svg:q,promise:!0}).then(U).catch(Z)})}return new Promise(function(U,Z){f.newPlot(N,h,z,F).then(R).then(V).then($).then(function(q){U(function(W){return I?W.replace(_.IMAGE_URL_PREFIX,""):W}(q))}).catch(function(q){Z(q)})})}},2466:function(c,m,a){var v=a(34809),f=a(44122),n=a(57297),y=a(24452).dfltConfig,_=v.isPlainObject,p=Array.isArray,l=v.isArrayOrTypedArray;function o(x,S,k,T,C,A){A=A||[];for(var E=Object.keys(x),M=0;M<E.length;M++){var I=E[M];if(I!=="transforms"){var N=A.slice();N.push(I);var z=x[I],F=S[I],R=g(k,I),V=(R||{}).valType,$=V==="info_array",U=V==="colorscale",Z=(R||{}).items;if(h(k,I))if(_(z)&&_(F)&&V!=="any")o(z,F,R,T,C,N);else if($&&p(z)){z.length>F.length&&T.push(d("unused",C,N.concat(F.length)));var q,W,Q,X,J,ee=F.length,le=Array.isArray(Z);if(le&&(ee=Math.min(ee,Z.length)),R.dimensions===2)for(W=0;W<ee;W++)if(p(z[W])){z[W].length>F[W].length&&T.push(d("unused",C,N.concat(W,F[W].length)));var oe=F[W].length;for(q=0;q<(le?Math.min(oe,Z[W].length):oe);q++)Q=le?Z[W][q]:Z,X=z[W][q],J=F[W][q],v.validate(X,Q)?J!==X&&J!==+X&&T.push(d("dynamic",C,N.concat(W,q),X,J)):T.push(d("value",C,N.concat(W,q),X))}else T.push(d("array",C,N.concat(W),z[W]));else for(W=0;W<ee;W++)Q=le?Z[W]:Z,X=z[W],J=F[W],v.validate(X,Q)?J!==X&&J!==+X&&T.push(d("dynamic",C,N.concat(W),X,J)):T.push(d("value",C,N.concat(W),X))}else if(R.items&&!$&&p(z)){var se,ce,ae=Z[Object.keys(Z)[0]],ne=[];for(se=0;se<F.length;se++){var ie=F[se]._index||se;if((ce=N.slice()).push(ie),_(z[ie])&&_(F[se])){ne.push(ie);var ue=z[ie],he=F[se];_(ue)&&ue.visible!==!1&&he.visible===!1?T.push(d("invisible",C,ce)):o(ue,he,ae,T,C,ce)}}for(se=0;se<z.length;se++)(ce=N.slice()).push(se),_(z[se])?ne.indexOf(se)===-1&&T.push(d("unused",C,ce)):T.push(d("object",C,ce,z[se]))}else!_(z)&&_(F)?T.push(d("object",C,N,z)):l(z)||!l(F)||$||U?I in S?v.validate(z,R)?R.valType==="enumerated"&&(R.coerceNumber&&z!==+F||z!==F)&&T.push(d("dynamic",C,N,z,F)):T.push(d("value",C,N,z)):T.push(d("unused",C,N,z)):T.push(d("array",C,N,z));else T.push(d("schema",C,N))}}return T}c.exports=function(x,S){x===void 0&&(x=[]),S===void 0&&(S={});var k,T,C=n.get(),A=[],E={_context:v.extendFlat({},y)};p(x)?(E.data=v.extendDeep([],x),k=x):(E.data=[],k=[],A.push(d("array","data"))),_(S)?(E.layout=v.extendDeep({},S),T=S):(E.layout={},T={},arguments.length>1&&A.push(d("object","layout"))),f.supplyDefaults(E);for(var M=E._fullData,I=k.length,N=0;N<I;N++){var z=k[N],F=["data",N];if(_(z)){var R=M[N],V=R.type,$=C.traces[V].attributes;$.type={valType:"enumerated",values:[V]},R.visible===!1&&z.visible!==!1&&A.push(d("invisible",F)),o(z,R,$,A,F);var U=z.transforms,Z=R.transforms;if(U){p(U)||A.push(d("array",F,["transforms"])),F.push("transforms");for(var q=0;q<U.length;q++){var W=["transforms",q],Q=U[q].type;if(_(U[q])){var X=C.transforms[Q]?C.transforms[Q].attributes:{};X.type={valType:"enumerated",values:Object.keys(C.transforms)},o(U[q],Z[q],X,A,F,W)}else A.push(d("object",F,W))}}}else A.push(d("object",F))}var J=E._fullLayout,ee=function(le,oe){for(var se=le.layout.layoutAttributes,ce=0;ce<oe.length;ce++){var ae=oe[ce],ne=le.traces[ae.type],ie=ne.layoutAttributes;ie&&(ae.subplot?v.extendFlat(se[ne.attributes.subplot.dflt],ie):v.extendFlat(se,ie))}return se}(C,M);return o(T,J,ee,A,"layout"),A.length===0?void 0:A};var s={object:function(x,S){return(x==="layout"&&S===""?"The layout argument":x[0]==="data"&&S===""?"Trace "+x[1]+" in the data argument":u(x)+"key "+S)+" must be linked to an object container"},array:function(x,S){return(x==="data"?"The data argument":u(x)+"key "+S)+" must be linked to an array container"},schema:function(x,S){return u(x)+"key "+S+" is not part of the schema"},unused:function(x,S,k){var T=_(k)?"container":"key";return u(x)+T+" "+S+" did not get coerced"},dynamic:function(x,S,k,T){return[u(x)+"key",S,"(set to '"+k+"')","got reset to","'"+T+"'","during defaults."].join(" ")},invisible:function(x,S){return(S?u(x)+"item "+S:"Trace "+x[1])+" got defaulted to be not visible"},value:function(x,S,k){return[u(x)+"key "+S,"is set to an invalid value ("+k+")"].join(" ")}};function u(x){return p(x)?"In data trace "+x[1]+", ":"In "+x+", "}function d(x,S,k,T,C){var A,E;k=k||"",p(S)?(A=S[0],E=S[1]):(A=S,E=null);var M=function(N){if(!p(N))return String(N);for(var z="",F=0;F<N.length;F++){var R=N[F];typeof R=="number"?z=z.substr(0,z.length-1)+"["+R+"]":z+=R,F<N.length-1&&(z+=".")}return z}(k),I=s[x](S,M,T,C);return v.log(I),{code:x,container:A,trace:E,path:k,astr:M,msg:I}}function h(x,S){var k=w(S),T=k.keyMinusId,C=k.id;return!!(T in x&&x[T]._isSubplotObj&&C)||S in x}function g(x,S){return S in x?x[S]:x[w(S).keyMinusId]}var b=v.counterRegex("([a-z]+)");function w(x){var S=x.match(b);return{keyMinusId:S&&S[1],id:S&&S[2]}}},49722:function(c){c.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}},59008:function(c,m,a){var v=a(34809),f=a(78032);c.exports=function(n,y,_){var p,l,o=_.name,s=_.inclusionAttr||"visible",u=y[o],d=v.isArrayOrTypedArray(n[o])?n[o]:[],h=y[o]=[],g=f.arrayTemplater(y,o,s);for(p=0;p<d.length;p++){var b=d[p];v.isPlainObject(b)?l=g.newItem(b):(l=g.newItem({}))[s]=!1,l._index=p,l[s]!==!1&&_.handleItemDefaults(b,l,y,_),h.push(l)}var w=g.defaultItems();for(p=0;p<w.length;p++)(l=w[p])._index=h.length,_.handleItemDefaults({},l,y,_,{}),h.push(l);if(v.isArrayOrTypedArray(u)){var x=Math.min(u.length,h.length);for(p=0;p<x;p++)v.relinkPrivateKeys(h[p],u[p])}return h}},9829:function(c,m,a){var v=a(80337),f=a(70192);c.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legend:{valType:"subplotid",dflt:"legend",editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},legendgrouptitle:{text:{valType:"string",dflt:"",editType:"style"},font:v({editType:"style"}),editType:"style"},legendrank:{valType:"number",dflt:1e3,editType:"style"},legendwidth:{valType:"number",min:0,editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:f.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},transforms:{_isLinkedToArray:"transform",editType:"calc"},uirevision:{valType:"any",editType:"none"}}},40528:function(c,m,a){var v=a(10721),f=a(34809),n=f.dateTime2ms,y=f.incrementMonth,_=a(63821).ONEAVGMONTH;c.exports=function(p,l,o,s){if(l.type!=="date")return{vals:s};var u=p[o+"periodalignment"];if(!u)return{vals:s};var d,h=p[o+"period"];if(v(h)){if((h=+h)<=0)return{vals:s}}else if(typeof h=="string"&&h.charAt(0)==="M"){var g=+h.substring(1);if(!(g>0&&Math.round(g)===g))return{vals:s};d=g}for(var b=l.calendar,w=u==="start",x=u==="end",S=p[o+"period0"],k=n(S,b)||0,T=[],C=[],A=[],E=s.length,M=0;M<E;M++){var I,N,z,F=s[M];if(d){for(I=Math.round((F-k)/(d*_)),z=y(k,d*I,b);z>F;)z=y(z,-d,b);for(;z<=F;)z=y(z,d,b);N=y(z,-d,b)}else{for(z=k+(I=Math.round((F-k)/h))*h;z>F;)z-=h;for(;z<=F;)z+=h;N=z-h}T[M]=w?N:x?z:(N+z)/2,C[M]=N,A[M]=z}return{vals:T,starts:C,ends:A}}},55126:function(c){c.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},32919:function(c,m,a){var v=a(45568),f=a(10721),n=a(34809),y=a(63821).FP_SAFE,_=a(33626),p=a(62203),l=a(5975),o=l.getFromId,s=l.isLinked;function u(M,I){var N,z,F=[],R=M._fullLayout,V=h(R,I,0),$=h(R,I,1),U=b(M,I),Z=U.min,q=U.max;if(Z.length===0||q.length===0)return n.simpleMap(I.range,I.r2l);var W=Z[0].val,Q=q[0].val;for(N=1;N<Z.length&&W===Q;N++)W=Math.min(W,Z[N].val);for(N=1;N<q.length&&W===Q;N++)Q=Math.max(Q,q[N].val);var X=I.autorange,J=X==="reversed"||X==="min reversed"||X==="max reversed";if(!J&&I.range){var ee=n.simpleMap(I.range,I.r2l);J=ee[1]<ee[0]}I.autorange==="reversed"&&(I.autorange=!0);var le,oe,se,ce,ae,ne,ie=I.rangemode,ue=ie==="tozero",he=ie==="nonnegative",pe=I._length,me=pe/10,_e=0;for(N=0;N<Z.length;N++)for(le=Z[N],z=0;z<q.length;z++)(ne=(oe=q[z]).val-le.val-d(I,le.val,oe.val))>0&&((ae=pe-V(le)-$(oe))>me?ne/ae>_e&&(se=le,ce=oe,_e=ne/ae):ne/pe>_e&&(se={val:le.val,nopad:1},ce={val:oe.val,nopad:1},_e=ne/pe));if(W===Q){var xe=W-1,we=W+1;if(ue)if(W===0)F=[0,1];else{var Ee=(W>0?q:Z).reduce(function($e,Te){return Math.max($e,$(Te))},0),Pe=W/(1-Math.min(.5,Ee/pe));F=W>0?[0,Pe]:[Pe,0]}else F=he?[Math.max(0,xe),Math.max(1,we)]:[xe,we]}else ue?(se.val>=0&&(se={val:0,nopad:1}),ce.val<=0&&(ce={val:0,nopad:1})):he&&(se.val-_e*V(se)<0&&(se={val:0,nopad:1}),ce.val<=0&&(ce={val:1,nopad:1})),_e=(ce.val-se.val-d(I,le.val,oe.val))/(pe-V(se)-$(ce)),F=[se.val-_e*V(se),ce.val+_e*$(ce)];return F=E(F,I),I.limitRange&&I.limitRange(),J&&F.reverse(),n.simpleMap(F,I.l2r||Number)}function d(M,I,N){var z=0;if(M.rangebreaks)for(var F=M.locateBreaks(I,N),R=0;R<F.length;R++){var V=F[R];z+=V.max-V.min}return z}function h(M,I,N){var z=.05*I._length,F=I._anchorAxis||{};if((I.ticklabelposition||"").indexOf("inside")!==-1||(F.ticklabelposition||"").indexOf("inside")!==-1){var R=I.isReversed();if(!R){var V=n.simpleMap(I.range,I.r2l);R=V[1]<V[0]}R&&(N=!N)}var $=0;return s(M,I._id)||($=function(U,Z,q){var W=0,Q=Z._id.charAt(0)==="x";for(var X in U._plots){var J=U._plots[X];if(Z._id===J.xaxis._id||Z._id===J.yaxis._id){var ee=(Q?J.yaxis:J.xaxis)||{};if((ee.ticklabelposition||"").indexOf("inside")!==-1&&(!q&&(ee.side==="left"||ee.side==="bottom")||q&&(ee.side==="top"||ee.side==="right"))){if(ee._vals){var le=n.deg2rad(ee._tickAngles[ee._id+"tick"]||0),oe=Math.abs(Math.cos(le)),se=Math.abs(Math.sin(le));if(!ee._vals[0].bb){var ce=ee._id+"tick";ee._selections[ce].each(function(he){var pe=v.select(this);pe.select(".text-math-group").empty()&&(he.bb=p.bBox(pe.node()))})}for(var ae=0;ae<ee._vals.length;ae++){var ne=ee._vals[ae].bb;if(ne){var ie=2*g+ne.width,ue=2*g+ne.height;W=Math.max(W,Q?Math.max(ie*oe,ue*se):Math.max(ue*oe,ie*se))}}}ee.ticks==="inside"&&ee.ticklabelposition==="inside"&&(W+=ee.ticklen||0)}}}return W}(M,I,N)),z=Math.max($,z),I.constrain==="domain"&&I._inputDomain&&(z*=(I._inputDomain[1]-I._inputDomain[0])/(I.domain[1]-I.domain[0])),function(U){return U.nopad?0:U.pad+(U.extrapad?z:$)}}c.exports={applyAutorangeOptions:E,getAutoRange:u,makePadFn:h,doAutoRange:function(M,I,N){if(I.setScale(),I.autorange){I.range=N?N.slice():u(M,I),I._r=I.range.slice(),I._rl=n.simpleMap(I._r,I.r2l);var z=I._input,F={};F[I._attr+".range"]=I.range,F[I._attr+".autorange"]=I.autorange,_.call("_storeDirectGUIEdit",M.layout,M._fullLayout._preGUI,F),z.range=I.range.slice(),z.autorange=I.autorange}var R=I._anchorAxis;if(R&&R.rangeslider){var V=R.rangeslider[I._name];V&&V.rangemode==="auto"&&(V.range=u(M,I)),R._input.rangeslider[I._name]=n.extendFlat({},V)}},findExtremes:function(M,I,N){N||(N={}),M._m||M.setScale();var z,F,R,V,$,U,Z,q,W,Q=[],X=[],J=I.length,ee=N.padded||!1,le=N.tozero&&(M.type==="linear"||M.type==="-"),oe=M.type==="log",se=!1,ce=N.vpadLinearized||!1;function ae(xe){if(Array.isArray(xe))return se=!0,function(Ee){return Math.max(Number(xe[Ee]||0),0)};var we=Math.max(Number(xe||0),0);return function(){return we}}var ne=ae((M._m>0?N.ppadplus:N.ppadminus)||N.ppad||0),ie=ae((M._m>0?N.ppadminus:N.ppadplus)||N.ppad||0),ue=ae(N.vpadplus||N.vpad),he=ae(N.vpadminus||N.vpad);if(!se){if(q=1/0,W=-1/0,oe)for(z=0;z<J;z++)(F=I[z])<q&&F>0&&(q=F),F>W&&F<y&&(W=F);else for(z=0;z<J;z++)(F=I[z])<q&&F>-y&&(q=F),F>W&&F<y&&(W=F);I=[q,W],J=2}var pe={tozero:le,extrapad:ee};function me(xe){R=I[xe],f(R)&&(U=ne(xe),Z=ie(xe),ce?(V=M.c2l(R)-he(xe),$=M.c2l(R)+ue(xe)):(q=R-he(xe),W=R+ue(xe),oe&&q<W/10&&(q=W/10),V=M.c2l(q),$=M.c2l(W)),le&&(V=Math.min(0,V),$=Math.max(0,$)),k(V)&&w(Q,V,Z,pe),k($)&&x(X,$,U,pe))}var _e=Math.min(6,J);for(z=0;z<_e;z++)me(z);for(z=J-1;z>=_e;z--)me(z);return{min:Q,max:X,opts:N}},concatExtremes:b};var g=3;function b(M,I,N){var z,F,R,V=I._id,$=M._fullData,U=M._fullLayout,Z=[],q=[];function W(le,oe){for(z=0;z<oe.length;z++){var se=le[oe[z]],ce=(se._extremes||{})[V];if(se.visible===!0&&ce){for(F=0;F<ce.min.length;F++)R=ce.min[F],w(Z,R.val,R.pad,{extrapad:R.extrapad});for(F=0;F<ce.max.length;F++)R=ce.max[F],x(q,R.val,R.pad,{extrapad:R.extrapad})}}}if(W($,I._traceIndices),W(U.annotations||[],I._annIndices||[]),W(U.shapes||[],I._shapeIndices||[]),I._matchGroup&&!N){for(var Q in I._matchGroup)if(Q!==I._id){var X=o(M,Q),J=b(M,X,!0),ee=I._length/X._length;for(F=0;F<J.min.length;F++)R=J.min[F],w(Z,R.val,R.pad*ee,{extrapad:R.extrapad});for(F=0;F<J.max.length;F++)R=J.max[F],x(q,R.val,R.pad*ee,{extrapad:R.extrapad})}}return{min:Z,max:q}}function w(M,I,N,z){S(M,I,N,z,T)}function x(M,I,N,z){S(M,I,N,z,C)}function S(M,I,N,z,F){for(var R=z.tozero,V=z.extrapad,$=!0,U=0;U<M.length&&$;U++){var Z=M[U];if(F(Z.val,I)&&Z.pad>=N&&(Z.extrapad||!V)){$=!1;break}F(I,Z.val)&&Z.pad<=N&&(V||!Z.extrapad)&&(M.splice(U,1),U--)}if($){var q=R&&I===0;M.push({val:I,pad:q?0:N,extrapad:!q&&V})}}function k(M){return f(M)&&Math.abs(M)<y}function T(M,I){return M<=I}function C(M,I){return M>=I}function A(M,I,N){return I===void 0||N===void 0||(I=M.d2l(I))<M.d2l(N)}function E(M,I){if(!I||!I.autorangeoptions)return M;var N=M[0],z=M[1],F=I.autorangeoptions.include;if(F!==void 0){var R=I.d2l(N),V=I.d2l(z);n.isArrayOrTypedArray(F)||(F=[F]);for(var $=0;$<F.length;$++){var U=I.d2l(F[$]);R>=U&&(R=U,N=U),V<=U&&(V=U,z=U)}}return N=function(Z,q){var W=q.autorangeoptions;return W&&W.minallowed!==void 0&&A(q,W.minallowed,W.maxallowed)?W.minallowed:W&&W.clipmin!==void 0&&A(q,W.clipmin,W.clipmax)?Math.max(Z,q.d2l(W.clipmin)):Z}(N,I),z=function(Z,q){var W=q.autorangeoptions;return W&&W.maxallowed!==void 0&&A(q,W.minallowed,W.maxallowed)?W.maxallowed:W&&W.clipmax!==void 0&&A(q,W.clipmin,W.clipmax)?Math.min(Z,q.d2l(W.clipmax)):Z}(z,I),[N,z]}},75511:function(c){c.exports=function(m,a,v){var f,n;if(v){var y=a==="reversed"||a==="min reversed"||a==="max reversed";f=v[y?1:0],n=v[y?0:1]}var _=m("autorangeoptions.minallowed",n===null?f:void 0),p=m("autorangeoptions.maxallowed",f===null?n:void 0);_===void 0&&m("autorangeoptions.clipmin"),p===void 0&&m("autorangeoptions.clipmax"),m("autorangeoptions.include")}},29714:function(c,m,a){var v=a(45568),f=a(10721),n=a(44122),y=a(33626),_=a(34809),p=_.strTranslate,l=a(30635),o=a(17240),s=a(78766),u=a(62203),d=a(25829),h=a(68599),g=a(63821),b=g.ONEMAXYEAR,w=g.ONEAVGYEAR,x=g.ONEMINYEAR,S=g.ONEMAXQUARTER,k=g.ONEAVGQUARTER,T=g.ONEMINQUARTER,C=g.ONEMAXMONTH,A=g.ONEAVGMONTH,E=g.ONEMINMONTH,M=g.ONEWEEK,I=g.ONEDAY,N=I/2,z=g.ONEHOUR,F=g.ONEMIN,R=g.ONESEC,V=g.ONEMILLI,$=g.ONEMICROSEC,U=g.MINUS_SIGN,Z=g.BADNUM,q={K:"zeroline"},W={K:"gridline",L:"path"},Q={K:"minor-gridline",L:"path"},X={K:"tick",L:"path"},J={K:"tick",L:"text"},ee={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},le=a(4530),oe=le.MID_SHIFT,se=le.CAP_SHIFT,ce=le.LINE_SPACING,ae=le.OPPOSITE_SIDE,ne=c.exports={};ne.setConvert=a(19091);var ie=a(9666),ue=a(5975),he=ue.idSort,pe=ue.isLinked;ne.id2name=ue.id2name,ne.name2id=ue.name2id,ne.cleanId=ue.cleanId,ne.list=ue.list,ne.listIds=ue.listIds,ne.getFromId=ue.getFromId,ne.getFromTrace=ue.getFromTrace;var me=a(32919);ne.getAutoRange=me.getAutoRange,ne.findExtremes=me.findExtremes;var _e=1e-4;function xe(Je){var Xe=(Je[1]-Je[0])*_e;return[Je[0]-Xe,Je[1]+Xe]}ne.coerceRef=function(Je,Xe,yt,Et,Ct,gt){var $t=Et.charAt(Et.length-1),Lt=yt._fullLayout._subplots[$t+"axis"],jt=Et+"ref",Rt={};return Ct||(Ct=Lt[0]||(typeof gt=="string"?gt:gt[0])),gt||(gt=Ct),Lt=Lt.concat(Lt.map(function(Vt){return Vt+" domain"})),Rt[jt]={valType:"enumerated",values:Lt.concat(gt?typeof gt=="string"?[gt]:gt:[]),dflt:Ct},_.coerce(Je,Xe,Rt,jt)},ne.getRefType=function(Je){return Je===void 0?Je:Je==="paper"?"paper":Je==="pixel"?"pixel":/( domain)$/.test(Je)?"domain":"range"},ne.coercePosition=function(Je,Xe,yt,Et,Ct,gt){var $t,Lt;if(ne.getRefType(Et)!=="range")$t=_.ensureNumber,Lt=yt(Ct,gt);else{var jt=ne.getFromId(Xe,Et);Lt=yt(Ct,gt=jt.fraction2r(gt)),$t=jt.cleanPos}Je[Ct]=$t(Lt)},ne.cleanPosition=function(Je,Xe,yt){return(yt==="paper"||yt==="pixel"?_.ensureNumber:ne.getFromId(Xe,yt).cleanPos)(Je)},ne.redrawComponents=function(Je,Xe){Xe=Xe||ne.listIds(Je);var yt=Je._fullLayout;function Et(Ct,gt,$t,Lt){for(var jt=y.getComponentMethod(Ct,gt),Rt={},Vt=0;Vt<Xe.length;Vt++)for(var Qt=yt[ne.id2name(Xe[Vt])][$t],ta=0;ta<Qt.length;ta++){var _a=Qt[ta];if(!Rt[_a]&&(jt(Je,_a),Rt[_a]=1,Lt))return}}Et("annotations","drawOne","_annIndices"),Et("shapes","drawOne","_shapeIndices"),Et("images","draw","_imgIndices",!0),Et("selections","drawOne","_selectionIndices")};var we=ne.getDataConversions=function(Je,Xe,yt,Et){var Ct,gt=yt==="x"||yt==="y"||yt==="z"?yt:Et;if(_.isArrayOrTypedArray(gt)){if(Ct={type:ie(Et,void 0,{autotypenumbers:Je._fullLayout.autotypenumbers}),_categories:[]},ne.setConvert(Ct),Ct.type==="category")for(var $t=0;$t<Et.length;$t++)Ct.d2c(Et[$t])}else Ct=ne.getFromTrace(Je,Xe,gt);return Ct?{d2c:Ct.d2c,c2d:Ct.c2d}:gt==="ids"?{d2c:Pe,c2d:Pe}:{d2c:Ee,c2d:Ee}};function Ee(Je){return+Je}function Pe(Je){return String(Je)}function $e(Je,Xe){return Math.abs((Je/Xe+.5)%1-.5)<.001}function Te(Je,Xe){return Math.abs(Je/Xe-1)<.001}function Ce(Je){return+Je.substring(1)}function ye(Je,Xe){return Je.rangebreaks&&(Xe=Xe.filter(function(yt){return Je.maskBreaks(yt.x)!==Z})),Xe}function ge(Je){var Xe=Je._mainAxis,yt=[];if(Xe._vals){for(var Et=0;Et<Xe._vals.length;Et++)if(!Xe._vals[Et].noTick){var Ct=Xe.l2p(Xe._vals[Et].x),gt=Je.p2l(Ct),$t=ne.tickText(Je,gt);Xe._vals[Et].minor&&($t.minor=!0,$t.text=""),yt.push($t)}}return ye(Je,yt)}function Me(Je,Xe){var yt=xe(_.simpleMap(Je.range,Je.r2l)),Et=Math.min(yt[0],yt[1]),Ct=Math.max(yt[0],yt[1]),gt=Je.type==="category"?Je.d2l_noadd:Je.d2l;Je.type==="log"&&String(Je.dtick).charAt(0)!=="L"&&(Je.dtick="L"+Math.pow(10,Math.floor(Math.min(Je.range[0],Je.range[1]))-1));for(var $t=[],Lt=0;Lt<=1;Lt++)if((Xe===void 0||!(Xe&&Lt||Xe===!1&&!Lt))&&(!Lt||Je.minor)){var jt=Lt?Je.minor.tickvals:Je.tickvals,Rt=Lt?[]:Je.ticktext;if(jt){_.isArrayOrTypedArray(Rt)||(Rt=[]);for(var Vt=0;Vt<jt.length;Vt++){var Qt=gt(jt[Vt]);if(Qt>Et&&Qt<Ct){var ta=ne.tickText(Je,Qt,!1,String(Rt[Vt]));Lt&&(ta.minor=!0,ta.text=""),$t.push(ta)}}}}return ye(Je,$t)}ne.getDataToCoordFunc=function(Je,Xe,yt,Et){return we(Je,Xe,yt,Et).d2c},ne.counterLetter=function(Je){var Xe=Je.charAt(0);return Xe==="x"?"y":Xe==="y"?"x":void 0},ne.minDtick=function(Je,Xe,yt,Et){["log","category","multicategory"].indexOf(Je.type)===-1&&Et?Je._minDtick===void 0?(Je._minDtick=Xe,Je._forceTick0=yt):Je._minDtick&&((Je._minDtick/Xe+1e-6)%1<2e-6&&((yt-Je._forceTick0)/Xe%1+1.000001)%1<2e-6?(Je._minDtick=Xe,Je._forceTick0=yt):((Xe/Je._minDtick+1e-6)%1>2e-6||((yt-Je._forceTick0)/Je._minDtick%1+1.000001)%1>2e-6)&&(Je._minDtick=0)):Je._minDtick=0},ne.saveRangeInitial=function(Je,Xe){for(var yt=ne.list(Je,"",!0),Et=!1,Ct=0;Ct<yt.length;Ct++){var gt=yt[Ct],$t=gt._rangeInitial0===void 0&&gt._rangeInitial1===void 0,Lt=$t||gt.range[0]!==gt._rangeInitial0||gt.range[1]!==gt._rangeInitial1,jt=gt.autorange;($t&&jt!==!0||Xe&&Lt)&&(gt._rangeInitial0=jt==="min"||jt==="max reversed"?void 0:gt.range[0],gt._rangeInitial1=jt==="max"||jt==="min reversed"?void 0:gt.range[1],gt._autorangeInitial=jt,Et=!0)}return Et},ne.saveShowSpikeInitial=function(Je,Xe){for(var yt=ne.list(Je,"",!0),Et=!1,Ct="on",gt=0;gt<yt.length;gt++){var $t=yt[gt],Lt=$t._showSpikeInitial===void 0,jt=Lt||$t.showspikes!==$t._showspikes;(Lt||Xe&&jt)&&($t._showSpikeInitial=$t.showspikes,Et=!0),Ct!=="on"||$t.showspikes||(Ct="off")}return Je._fullLayout._cartesianSpikesEnabled=Ct,Et},ne.autoBin=function(Je,Xe,yt,Et,Ct,gt){var $t,Lt=_.aggNums(Math.min,null,Je),jt=_.aggNums(Math.max,null,Je);if(Xe.type==="category"||Xe.type==="multicategory")return{start:Lt-.5,end:jt+.5,size:Math.max(1,Math.round(gt)||1),_dataSpan:jt-Lt};if(Ct||(Ct=Xe.calendar),$t=Xe.type==="log"?{type:"linear",range:[Lt,jt]}:{type:Xe.type,range:_.simpleMap([Lt,jt],Xe.c2r,0,Ct),calendar:Ct},ne.setConvert($t),gt=gt&&h.dtick(gt,$t.type))$t.dtick=gt,$t.tick0=h.tick0(void 0,$t.type,Ct);else{var Rt;if(yt)Rt=(jt-Lt)/yt;else{var Vt=_.distinctVals(Je),Qt=Math.pow(10,Math.floor(Math.log(Vt.minDiff)/Math.LN10)),ta=Qt*_.roundUp(Vt.minDiff/Qt,[.9,1.9,4.9,9.9],!0);Rt=Math.max(ta,2*_.stdev(Je)/Math.pow(Je.length,Et?.25:.4)),f(Rt)||(Rt=1)}ne.autoTicks($t,Rt)}var _a,ka=$t.dtick,va=ne.tickIncrement(ne.tickFirst($t),ka,"reverse",Ct);if(typeof ka=="number")va=function(ia,fa,Da,wa,da){var Ea=0,ua=0,ba=0,Ra=0;function Oa(Ka){return(1+100*(Ka-ia)/Da.dtick)%100<2}for(var Ja=0;Ja<fa.length;Ja++)fa[Ja]%1==0?ba++:f(fa[Ja])||Ra++,Oa(fa[Ja])&&Ea++,Oa(fa[Ja]+Da.dtick/2)&&ua++;var Fa=fa.length-Ra;if(ba===Fa&&Da.type!=="date")Da.dtick<1?ia=wa-.5*Da.dtick:(ia-=.5)+Da.dtick<wa&&(ia+=Da.dtick);else if(ua<.1*Fa&&(Ea>.3*Fa||Oa(wa)||Oa(da))){var qa=Da.dtick/2;ia+=ia+qa<wa?qa:-qa}return ia}(va,Je,$t,Lt,jt),_a=va+(1+Math.floor((jt-va)/ka))*ka;else for($t.dtick.charAt(0)==="M"&&(va=function(ia,fa,Da,wa,da){var Ea=_.findExactDates(fa,da);if(Ea.exactDays>.8){var ua=Number(Da.substr(1));Ea.exactYears>.8&&ua%12==0?ia=ne.tickIncrement(ia,"M6","reverse")+1.5*I:Ea.exactMonths>.8?ia=ne.tickIncrement(ia,"M1","reverse")+15.5*I:ia-=N;var ba=ne.tickIncrement(ia,Da);if(ba<=wa)return ba}return ia}(va,Je,ka,Lt,Ct)),_a=va;_a<=jt;)_a=ne.tickIncrement(_a,ka,!1,Ct);return{start:Xe.c2r(va,0,Ct),end:Xe.c2r(_a,0,Ct),size:ka,_dataSpan:jt-Lt}},ne.prepMinorTicks=function(Je,Xe,yt){if(!Xe.minor.dtick){delete Je.dtick;var Et,Ct=Xe.dtick&&f(Xe._tmin);if(Ct){var gt=ne.tickIncrement(Xe._tmin,Xe.dtick,!0);Et=[Xe._tmin,.99*gt+.01*Xe._tmin]}else{var $t=_.simpleMap(Xe.range,Xe.r2l);Et=[$t[0],.8*$t[0]+.2*$t[1]]}if(Je.range=_.simpleMap(Et,Xe.l2r),Je._isMinor=!0,ne.prepTicks(Je,yt),Ct){var Lt=f(Xe.dtick),jt=f(Je.dtick),Rt=Lt?Xe.dtick:+Xe.dtick.substring(1),Vt=jt?Je.dtick:+Je.dtick.substring(1);Lt&&jt?$e(Rt,Vt)?Rt===2*M&&Vt===2*I&&(Je.dtick=M):Rt===2*M&&Vt===3*I?Je.dtick=M:Rt!==M||(Xe._input.minor||{}).nticks?Te(Rt/Vt,2.5)?Je.dtick=Rt/2:Je.dtick=Rt:Je.dtick=I:String(Xe.dtick).charAt(0)==="M"?jt?Je.dtick="M1":$e(Rt,Vt)?Rt>=12&&Vt===2&&(Je.dtick="M3"):Je.dtick=Xe.dtick:String(Je.dtick).charAt(0)==="L"?String(Xe.dtick).charAt(0)==="L"?$e(Rt,Vt)||(Je.dtick=Te(Rt/Vt,2.5)?Xe.dtick/2:Xe.dtick):Je.dtick="D1":Je.dtick==="D2"&&+Xe.dtick>1&&(Je.dtick=1)}Je.range=Xe.range}Xe.minor._tick0Init===void 0&&(Je.tick0=Xe.tick0)},ne.prepTicks=function(Je,Xe){var yt=_.simpleMap(Je.range,Je.r2l,void 0,void 0,Xe);if(Je.tickmode==="auto"||!Je.dtick){var Et,Ct=Je.nticks;Ct||(Je.type==="category"||Je.type==="multicategory"?(Et=Je.tickfont?_.bigFont(Je.tickfont.size||12):15,Ct=Je._length/Et):(Et=Je._id.charAt(0)==="y"?40:80,Ct=_.constrain(Je._length/Et,4,9)+1),Je._name==="radialaxis"&&(Ct*=2)),Je.minor&&Je.minor.tickmode!=="array"||Je.tickmode==="array"&&(Ct*=100),Je._roughDTick=Math.abs(yt[1]-yt[0])/Ct,ne.autoTicks(Je,Je._roughDTick),Je._minDtick>0&&Je.dtick<2*Je._minDtick&&(Je.dtick=Je._minDtick,Je.tick0=Je.l2r(Je._forceTick0))}Je.ticklabelmode==="period"&&function(gt){var $t;function Lt(){return!(f(gt.dtick)||gt.dtick.charAt(0)!=="M")}var jt=Lt(),Rt=ne.getTickFormat(gt);if(Rt){var Vt=gt._dtickInit!==gt.dtick;/%[fLQsSMX]/.test(Rt)||(/%[HI]/.test(Rt)?($t=z,Vt&&!jt&&gt.dtick<z&&(gt.dtick=z)):/%p/.test(Rt)?($t=N,Vt&&!jt&&gt.dtick<N&&(gt.dtick=N)):/%[Aadejuwx]/.test(Rt)?($t=I,Vt&&!jt&&gt.dtick<I&&(gt.dtick=I)):/%[UVW]/.test(Rt)?($t=M,Vt&&!jt&&gt.dtick<M&&(gt.dtick=M)):/%[Bbm]/.test(Rt)?($t=A,Vt&&(jt?Ce(gt.dtick)<1:gt.dtick<E)&&(gt.dtick="M1")):/%[q]/.test(Rt)?($t=k,Vt&&(jt?Ce(gt.dtick)<3:gt.dtick<T)&&(gt.dtick="M3")):/%[Yy]/.test(Rt)&&($t=w,Vt&&(jt?Ce(gt.dtick)<12:gt.dtick<x)&&(gt.dtick="M12")))}(jt=Lt())&&gt.tick0===gt._dowTick0&&(gt.tick0=gt._rawTick0),gt._definedDelta=$t}(Je),Je.tick0||(Je.tick0=Je.type==="date"?"2000-01-01":0),Je.type==="date"&&Je.dtick<.1&&(Je.dtick=.1),Re(Je)},ne.calcTicks=function(Je,Xe){for(var yt,Et,Ct,gt,$t=Je.type,Lt=Je.calendar,jt=Je.ticklabelstep,Rt=Je.ticklabelmode==="period",Vt=Je.range[0]>Je.range[1],Qt=!Je.ticklabelindex||_.isArrayOrTypedArray(Je.ticklabelindex)?Je.ticklabelindex:[Je.ticklabelindex],ta=_.simpleMap(Je.range,Je.r2l,void 0,void 0,Xe),_a=ta[1]<ta[0],ka=Math.min(ta[0],ta[1]),va=Math.max(ta[0],ta[1]),ia=Math.max(1e3,Je._length||0),fa=[],Da=[],wa=[],da=[],Ea=[],ua=Je.minor&&(Je.minor.ticks||Je.minor.showgrid),ba=1;ba>=(ua?0:1);ba--){var Ra=!ba;ba?(Je._dtickInit=Je.dtick,Je._tick0Init=Je.tick0):(Je.minor._dtickInit=Je.minor.dtick,Je.minor._tick0Init=Je.minor.tick0);var Oa=ba?Je:_.extendFlat({},Je,Je.minor);if(Ra?ne.prepMinorTicks(Oa,Je,Xe):ne.prepTicks(Oa,Xe),Oa.tickmode!=="array")if(Oa.tickmode!=="sync"){var Ja=xe(ta),Fa=Ja[0],qa=Ja[1],Ka=f(Oa.dtick),vn=$t==="log"&&!(Ka||Oa.dtick.charAt(0)==="L"),zn=ne.tickFirst(Oa,Xe);if(ba){if(Je._tmin=zn,zn<Fa!==_a)break;$t!=="category"&&$t!=="multicategory"||(qa=_a?Math.max(-.5,qa):Math.min(Je._categories.length-.5,qa))}var cn,hn,un=null,Bn=zn;ba&&(Ka?hn=Je.dtick:$t==="date"?typeof Je.dtick=="string"&&Je.dtick.charAt(0)==="M"&&(hn=A*Je.dtick.substring(1)):hn=Je._roughDTick,cn=Math.round((Je.r2l(Bn)-Je.r2l(Je.tick0))/hn)-1);var ha=Oa.dtick;for(Oa.rangebreaks&&Oa._tick0Init!==Oa.tick0&&(Bn=_t(Bn,Je),_a||(Bn=ne.tickIncrement(Bn,ha,!_a,Lt))),ba&&Rt&&(Bn=ne.tickIncrement(Bn,ha,!_a,Lt),cn--);_a?Bn>=qa:Bn<=qa;Bn=ne.tickIncrement(Bn,ha,_a,Lt)){if(ba&&cn++,Oa.rangebreaks&&!_a){if(Bn<Fa)continue;if(Oa.maskBreaks(Bn)===Z&&_t(Bn,Oa)>=va)break}if(wa.length>ia||Bn===un)break;un=Bn;var ma={value:Bn};ba?(vn&&Bn!==(0|Bn)&&(ma.simpleLabel=!0),jt>1&&cn%jt&&(ma.skipLabel=!0),wa.push(ma)):(ma.minor=!0,da.push(ma))}}else wa=[],fa=ge(Je);else ba?(wa=[],fa=Me(Je,!Ra)):(da=[],Da=Me(Je,!Ra))}if(!da||da.length<2?Qt=!1:(yt=(da[1].value-da[0].value)*(Vt?-1:1),Et=Je.tickformat,(/%f/.test(Et)?yt>=$:/%L/.test(Et)?yt>=V:/%[SX]/.test(Et)?yt>=R:/%M/.test(Et)?yt>=F:/%[HI]/.test(Et)?yt>=z:/%p/.test(Et)?yt>=N:/%[Aadejuwx]/.test(Et)?yt>=I:/%[UVW]/.test(Et)?yt>=M:/%[Bbm]/.test(Et)?yt>=E:/%[q]/.test(Et)?yt>=T:!/%[Yy]/.test(Et)||yt>=x)||(Qt=!1)),Qt){var Ya=wa.concat(da);Rt&&wa.length&&(Ya=Ya.slice(1)),(Ya=Ya.sort(function(na,ea){return na.value-ea.value}).filter(function(na,ea,ga){return ea===0||na.value!==ga[ea-1].value})).map(function(na,ea){return na.minor!==void 0||na.skipLabel?null:ea}).filter(function(na){return na!==null}).forEach(function(na){Qt.map(function(ea){var ga=na+ea;ga>=0&&ga<Ya.length&&_.pushUnique(Ea,Ya[ga])})})}else Ea=wa;if(ua&&!(Je.minor.ticks==="inside"&&Je.ticks==="outside"||Je.minor.ticks==="outside"&&Je.ticks==="inside")){for(var Ba=wa.map(function(na){return na.value}),Xa=[],dn=0;dn<da.length;dn++){var ln=da[dn],Cn=ln.value;if(Ba.indexOf(Cn)===-1){for(var Rn=!1,la=0;!Rn&&la<wa.length;la++)1e7+wa[la].value===1e7+Cn&&(Rn=!0);Rn||Xa.push(ln)}}da=Xa}if(Rt&&function(na,ea,ga){for(var Va=0;Va<na.length;Va++){var en=na[Va].value,tn=Va,an=Va+1;Va<na.length-1?(tn=Va,an=Va+1):Va>0?(tn=Va-1,an=Va):(tn=Va,an=Va);var _n,mn=na[tn].value,wn=na[an].value,pn=Math.abs(wn-mn),yn=ga||pn,Nn=0;yn>=x?Nn=pn>=x&&pn<=b?pn:w:ga===k&&yn>=T?Nn=pn>=T&&pn<=S?pn:k:yn>=E?Nn=pn>=E&&pn<=C?pn:A:ga===M&&yn>=M?Nn=M:yn>=I?Nn=I:ga===N&&yn>=N?Nn=N:ga===z&&yn>=z&&(Nn=z),Nn>=pn&&(Nn=pn,_n=!0);var qn=en+Nn;if(ea.rangebreaks&&Nn>0){for(var Dn=0,En=0;En<84;En++){var Vn=(En+.5)/84;ea.maskBreaks(en*(1-Vn)+Vn*qn)!==Z&&Dn++}(Nn*=Dn/84)||(na[Va].drop=!0),_n&&pn>M&&(Nn=pn)}(Nn>0||Va===0)&&(na[Va].periodX=en+Nn/2)}}(Ea,Je,Je._definedDelta),Je.rangebreaks){var za=Je._id.charAt(0)==="y",qt=1;Je.tickmode==="auto"&&(qt=Je.tickfont?Je.tickfont.size:12);var ra=NaN;for(Ct=wa.length-1;Ct>-1;Ct--)if(wa[Ct].drop)wa.splice(Ct,1);else{wa[Ct].value=_t(wa[Ct].value,Je);var sa=Je.c2p(wa[Ct].value);(za?ra>sa-qt:ra<sa+qt)?wa.splice(_a?Ct+1:Ct,1):ra=sa}}nt(Je)&&Math.abs(ta[1]-ta[0])===360&&wa.pop(),Je._tmax=(wa[wa.length-1]||{}).value,Je._prevDateHead="",Je._inCalcTicks=!0;var Ia,Ma=function(na){na.text="",Je._prevDateHead=gt};function $a(na,ea){var ga=ne.tickText(na,ea.value,!1,ea.simpleLabel),Va=ea.periodX;return Va!==void 0&&(ga.periodX=Va,(Va>va||Va<ka)&&(Va>va&&(ga.periodX=va),Va<ka&&(ga.periodX=ka),Ma(ga))),ga}for(wa=wa.concat(da),Ct=0;Ct<wa.length;Ct++){var Pa=wa[Ct].minor,Sa=wa[Ct].value;Pa?((Ia=Qt&&Ea.indexOf(wa[Ct])!==-1?$a(Je,wa[Ct]):{x:Sa}).minor=!0,Da.push(Ia)):(gt=Je._prevDateHead,Ia=$a(Je,wa[Ct]),(wa[Ct].skipLabel||Qt&&Ea.indexOf(wa[Ct])===-1)&&Ma(Ia),fa.push(Ia))}return fa=fa.concat(Da),Je._inCalcTicks=!1,Rt&&fa.length&&(fa[0].noTick=!0),fa};var Se=[2,5,10],ze=[1,2,3,6,12],Fe=[1,2,5,10,15,30],De=[1,2,3,7,14],Ue=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],Ne=[-.301,0,.301,.699,1],ke=[15,30,45,90,180];function Oe(Je,Xe,yt){return Xe*_.roundUp(Je/Xe,yt)}function Re(Je){var Xe=Je.dtick;if(Je._tickexponent=0,f(Xe)||typeof Xe=="string"||(Xe=1),Je.type!=="category"&&Je.type!=="multicategory"||(Je._tickround=null),Je.type==="date"){var yt=Je.r2l(Je.tick0),Et=Je.l2r(yt).replace(/(^-|i)/g,""),Ct=Et.length;if(String(Xe).charAt(0)==="M")Ct>10||Et.substr(5)!=="01-01"?Je._tickround="d":Je._tickround=+Xe.substr(1)%12==0?"y":"m";else if(Xe>=I&&Ct<=10||Xe>=15*I)Je._tickround="d";else if(Xe>=F&&Ct<=16||Xe>=z)Je._tickround="M";else if(Xe>=R&&Ct<=19||Xe>=F)Je._tickround="S";else{var gt=Je.l2r(yt+Xe).replace(/^-/,"").length;Je._tickround=Math.max(Ct,gt)-20,Je._tickround<0&&(Je._tickround=4)}}else if(f(Xe)||Xe.charAt(0)==="L"){var $t=Je.range.map(Je.r2d||Number);f(Xe)||(Xe=Number(Xe.substr(1))),Je._tickround=2-Math.floor(Math.log(Xe)/Math.LN10+.01);var Lt=Math.max(Math.abs($t[0]),Math.abs($t[1])),jt=Math.floor(Math.log(Lt)/Math.LN10+.01),Rt=Je.minexponent===void 0?3:Je.minexponent;Math.abs(jt)>Rt&&(Ye(Je.exponentformat)&&!it(jt)?Je._tickexponent=3*Math.round((jt-1)/3):Je._tickexponent=jt)}else Je._tickround=null}function je(Je,Xe,yt){var Et=Je.tickfont||{};return{x:Xe,dx:0,dy:0,text:yt||"",fontSize:Et.size,font:Et.family,fontWeight:Et.weight,fontStyle:Et.style,fontVariant:Et.variant,fontTextcase:Et.textcase,fontLineposition:Et.lineposition,fontShadow:Et.shadow,fontColor:Et.color}}ne.autoTicks=function(Je,Xe,yt){var Et;function Ct(Qt){return Math.pow(Qt,Math.floor(Math.log(Xe)/Math.LN10))}if(Je.type==="date"){Je.tick0=_.dateTick0(Je.calendar,0);var gt=2*Xe;if(gt>w)Xe/=w,Et=Ct(10),Je.dtick="M"+12*Oe(Xe,Et,Se);else if(gt>A)Xe/=A,Je.dtick="M"+Oe(Xe,1,ze);else if(gt>I){if(Je.dtick=Oe(Xe,I,Je._hasDayOfWeekBreaks?[1,2,7,14]:De),!yt){var $t=ne.getTickFormat(Je),Lt=Je.ticklabelmode==="period";Lt&&(Je._rawTick0=Je.tick0),/%[uVW]/.test($t)?Je.tick0=_.dateTick0(Je.calendar,2):Je.tick0=_.dateTick0(Je.calendar,1),Lt&&(Je._dowTick0=Je.tick0)}}else gt>z?Je.dtick=Oe(Xe,z,ze):gt>F?Je.dtick=Oe(Xe,F,Fe):gt>R?Je.dtick=Oe(Xe,R,Fe):(Et=Ct(10),Je.dtick=Oe(Xe,Et,Se))}else if(Je.type==="log"){Je.tick0=0;var jt=_.simpleMap(Je.range,Je.r2l);if(Je._isMinor&&(Xe*=1.5),Xe>.7)Je.dtick=Math.ceil(Xe);else if(Math.abs(jt[1]-jt[0])<1){var Rt=1.5*Math.abs((jt[1]-jt[0])/Xe);Xe=Math.abs(Math.pow(10,jt[1])-Math.pow(10,jt[0]))/Rt,Et=Ct(10),Je.dtick="L"+Oe(Xe,Et,Se)}else Je.dtick=Xe>.3?"D2":"D1"}else Je.type==="category"||Je.type==="multicategory"?(Je.tick0=0,Je.dtick=Math.ceil(Math.max(Xe,1))):nt(Je)?(Je.tick0=0,Et=1,Je.dtick=Oe(Xe,Et,ke)):(Je.tick0=0,Et=Ct(10),Je.dtick=Oe(Xe,Et,Se));if(Je.dtick===0&&(Je.dtick=1),!f(Je.dtick)&&typeof Je.dtick!="string"){var Vt=Je.dtick;throw Je.dtick=1,"ax.dtick error: "+String(Vt)}},ne.tickIncrement=function(Je,Xe,yt,Et){var Ct=yt?-1:1;if(f(Xe))return _.increment(Je,Ct*Xe);var gt=Xe.charAt(0),$t=Ct*Number(Xe.substr(1));if(gt==="M")return _.incrementMonth(Je,$t,Et);if(gt==="L")return Math.log(Math.pow(10,Je)+$t)/Math.LN10;if(gt==="D"){var Lt=Xe==="D2"?Ne:Ue,jt=Je+.01*Ct,Rt=_.roundUp(_.mod(jt,1),Lt,yt);return Math.floor(jt)+Math.log(v.round(Math.pow(10,Rt),1))/Math.LN10}throw"unrecognized dtick "+String(Xe)},ne.tickFirst=function(Je,Xe){var yt=Je.r2l||Number,Et=_.simpleMap(Je.range,yt,void 0,void 0,Xe),Ct=Et[1]<Et[0],gt=Ct?Math.floor:Math.ceil,$t=xe(Et)[0],Lt=Je.dtick,jt=yt(Je.tick0);if(f(Lt)){var Rt=gt(($t-jt)/Lt)*Lt+jt;return Je.type!=="category"&&Je.type!=="multicategory"||(Rt=_.constrain(Rt,0,Je._categories.length-1)),Rt}var Vt=Lt.charAt(0),Qt=Number(Lt.substr(1));if(Vt==="M"){for(var ta,_a,ka,va=0,ia=jt;va<10;){if(((ta=ne.tickIncrement(ia,Lt,Ct,Je.calendar))-$t)*(ia-$t)<=0)return Ct?Math.min(ia,ta):Math.max(ia,ta);_a=($t-(ia+ta)/2)/(ta-ia),ka=Vt+(Math.abs(Math.round(_a))||1)*Qt,ia=ne.tickIncrement(ia,ka,_a<0?!Ct:Ct,Je.calendar),va++}return _.error("tickFirst did not converge",Je),ia}if(Vt==="L")return Math.log(gt((Math.pow(10,$t)-jt)/Qt)*Qt+jt)/Math.LN10;if(Vt==="D"){var fa=Lt==="D2"?Ne:Ue,Da=_.roundUp(_.mod($t,1),fa,Ct);return Math.floor($t)+Math.log(v.round(Math.pow(10,Da),1))/Math.LN10}throw"unrecognized dtick "+String(Lt)},ne.tickText=function(Je,Xe,yt,Et){var Ct,gt=je(Je,Xe),$t=Je.tickmode==="array",Lt=yt||$t,jt=Je.type,Rt=jt==="category"?Je.d2l_noadd:Je.d2l,Vt=function(ia){var fa=Je.l2p(ia);return fa>=0&&fa<=Je._length?ia:null};if($t&&_.isArrayOrTypedArray(Je.ticktext)){var Qt=_.simpleMap(Je.range,Je.r2l),ta=(Math.abs(Qt[1]-Qt[0])-(Je._lBreaks||0))/1e4;for(Ct=0;Ct<Je.ticktext.length&&!(Math.abs(Xe-Rt(Je.tickvals[Ct]))<ta);Ct++);if(Ct<Je.ticktext.length)return gt.text=String(Je.ticktext[Ct]),gt.xbnd=[Vt(gt.x-.5),Vt(gt.x+Je.dtick-.5)],gt}function _a(ia){if(ia===void 0)return!0;if(yt)return ia==="none";var fa={first:Je._tmin,last:Je._tmax}[ia];return ia!=="all"&&Xe!==fa}var ka=yt?"never":Je.exponentformat!=="none"&&_a(Je.showexponent)?"hide":"";if(jt==="date"?function(ia,fa,Da,wa){var da=ia._tickround,Ea=Da&&ia.hoverformat||ne.getTickFormat(ia);(wa=!Ea&&wa)&&(da=f(da)?4:{y:"m",m:"d",d:"M",M:"S",S:4}[da]);var ua,ba=_.formatDate(fa.x,Ea,da,ia._dateFormat,ia.calendar,ia._extraFormat),Ra=ba.indexOf(`
132
132
  `);if(Ra!==-1&&(ua=ba.substr(Ra+1),ba=ba.substr(0,Ra)),wa&&(ua===void 0||ba!=="00:00:00"&&ba!=="00:00"?ba.length===8&&(ba=ba.replace(/:00$/,"")):(ba=ua,ua="")),ua)if(Da)da==="d"?ba+=", "+ua:ba=ua+(ba?", "+ba:"");else if(ia._inCalcTicks&&ia._prevDateHead===ua){var Oa=mt(ia),Ja=ia._trueSide||ia.side;(!Oa&&Ja==="top"||Oa&&Ja==="bottom")&&(ba+="<br> ")}else ia._prevDateHead=ua,ba+="<br>"+ua;fa.text=ba}(Je,gt,yt,Lt):jt==="log"?function(ia,fa,Da,wa,da){var Ea=ia.dtick,ua=fa.x,ba=ia.tickformat,Ra=typeof Ea=="string"&&Ea.charAt(0);if(da==="never"&&(da=""),wa&&Ra!=="L"&&(Ea="L3",Ra="L"),ba||Ra==="L")fa.text=dt(Math.pow(10,ua),ia,da,wa);else if(f(Ea)||Ra==="D"&&_.mod(ua+.01,1)<.1){var Oa=Math.round(ua),Ja=Math.abs(Oa),Fa=ia.exponentformat;Fa==="power"||Ye(Fa)&&it(Oa)?(fa.text=Oa===0?1:Oa===1?"10":"10<sup>"+(Oa>1?"":U)+Ja+"</sup>",fa.fontSize*=1.25):(Fa==="e"||Fa==="E")&&Ja>2?fa.text="1"+Fa+(Oa>0?"+":U)+Ja:(fa.text=dt(Math.pow(10,ua),ia,"","fakehover"),Ea==="D1"&&ia._id.charAt(0)==="y"&&(fa.dy-=fa.fontSize/6))}else{if(Ra!=="D")throw"unrecognized dtick "+String(Ea);fa.text=String(Math.round(Math.pow(10,_.mod(ua,1)))),fa.fontSize*=.75}if(ia.dtick==="D1"){var qa=String(fa.text).charAt(0);qa!=="0"&&qa!=="1"||(ia._id.charAt(0)==="y"?fa.dx-=fa.fontSize/4:(fa.dy+=fa.fontSize/2,fa.dx+=(ia.range[1]>ia.range[0]?1:-1)*fa.fontSize*(ua<0?.5:.25)))}}(Je,gt,0,Lt,ka):jt==="category"?function(ia,fa){var Da=ia._categories[Math.round(fa.x)];Da===void 0&&(Da=""),fa.text=String(Da)}(Je,gt):jt==="multicategory"?function(ia,fa,Da){var wa=Math.round(fa.x),da=ia._categories[wa]||[],Ea=da[1]===void 0?"":String(da[1]),ua=da[0]===void 0?"":String(da[0]);Da?fa.text=ua+" - "+Ea:(fa.text=Ea,fa.text2=ua)}(Je,gt,yt):nt(Je)?function(ia,fa,Da,wa,da){if(ia.thetaunit!=="radians"||Da)fa.text=dt(fa.x,ia,da,wa);else{var Ea=fa.x/180;if(Ea===0)fa.text="0";else{var ua=function(Ra){function Oa(Ka,vn){return Math.abs(Ka-vn)<=1e-6}var Ja=function(Ka){for(var vn=1;!Oa(Math.round(Ka*vn)/vn,Ka);)vn*=10;return vn}(Ra),Fa=Ra*Ja,qa=Math.abs(function Ka(vn,zn){return Oa(zn,0)?vn:Ka(zn,vn%zn)}(Fa,Ja));return[Math.round(Fa/qa),Math.round(Ja/qa)]}(Ea);if(ua[1]>=100)fa.text=dt(_.deg2rad(fa.x),ia,da,wa);else{var ba=fa.x<0;ua[1]===1?ua[0]===1?fa.text="π":fa.text=ua[0]+"π":fa.text=["<sup>",ua[0],"</sup>","⁄","<sub>",ua[1],"</sub>","π"].join(""),ba&&(fa.text=U+fa.text)}}}}(Je,gt,yt,Lt,ka):function(ia,fa,Da,wa,da){da==="never"?da="":ia.showexponent==="all"&&Math.abs(fa.x/ia.dtick)<1e-6&&(da="hide"),fa.text=dt(fa.x,ia,da,wa)}(Je,gt,0,Lt,ka),Et||(Je.tickprefix&&!_a(Je.showtickprefix)&&(gt.text=Je.tickprefix+gt.text),Je.ticksuffix&&!_a(Je.showticksuffix)&&(gt.text+=Je.ticksuffix)),Je.labelalias&&Je.labelalias.hasOwnProperty(gt.text)){var va=Je.labelalias[gt.text];typeof va=="string"&&(gt.text=va)}return(Je.tickson==="boundaries"||Je.showdividers)&&(gt.xbnd=[Vt(gt.x-.5),Vt(gt.x+Je.dtick-.5)]),gt},ne.hoverLabelText=function(Je,Xe,yt){yt&&(Je=_.extendFlat({},Je,{hoverformat:yt}));var Et=_.isArrayOrTypedArray(Xe)?Xe[0]:Xe,Ct=_.isArrayOrTypedArray(Xe)?Xe[1]:void 0;if(Ct!==void 0&&Ct!==Et)return ne.hoverLabelText(Je,Et,yt)+" - "+ne.hoverLabelText(Je,Ct,yt);var gt=Je.type==="log"&&Et<=0,$t=ne.tickText(Je,Je.c2l(gt?-Et:Et),"hover").text;return gt?Et===0?"0":U+$t:$t};var Ze=["f","p","n","μ","m","","k","M","G","T"];function Ye(Je){return Je==="SI"||Je==="B"}function it(Je){return Je>14||Je<-15}function dt(Je,Xe,yt,Et){var Ct=Je<0,gt=Xe._tickround,$t=yt||Xe.exponentformat||"B",Lt=Xe._tickexponent,jt=ne.getTickFormat(Xe),Rt=Xe.separatethousands;if(Et){var Vt={exponentformat:$t,minexponent:Xe.minexponent,dtick:Xe.showexponent==="none"?Xe.dtick:f(Je)&&Math.abs(Je)||1,range:Xe.showexponent==="none"?Xe.range.map(Xe.r2d):[0,Je||1]};Re(Vt),gt=(Number(Vt._tickround)||0)+4,Lt=Vt._tickexponent,Xe.hoverformat&&(jt=Xe.hoverformat)}if(jt)return Xe._numFormat(jt)(Je).replace(/-/g,U);var Qt,ta=Math.pow(10,-gt)/2;if($t==="none"&&(Lt=0),(Je=Math.abs(Je))<ta)Je="0",Ct=!1;else{if(Je+=ta,Lt&&(Je*=Math.pow(10,-Lt),gt+=Lt),gt===0)Je=String(Math.floor(Je));else if(gt<0){Je=(Je=String(Math.round(Je))).substr(0,Je.length+gt);for(var _a=gt;_a<0;_a++)Je+="0"}else{var ka=(Je=String(Je)).indexOf(".")+1;ka&&(Je=Je.substr(0,ka+gt).replace(/\.?0+$/,""))}Je=_.numSeparate(Je,Xe._separators,Rt)}return Lt&&$t!=="hide"&&(Ye($t)&&it(Lt)&&($t="power"),Qt=Lt<0?U+-Lt:$t!=="power"?"+"+Lt:String(Lt),$t==="e"||$t==="E"?Je+=$t+Qt:$t==="power"?Je+="×10<sup>"+Qt+"</sup>":$t==="B"&&Lt===9?Je+="B":Ye($t)&&(Je+=Ze[Lt/3+5])),Ct?U+Je:Je}function ut(Je,Xe){if(Je){var yt=Object.keys(ee).reduce(function(Et,Ct){return Xe.indexOf(Ct)!==-1&&ee[Ct].forEach(function(gt){Et[gt]=1}),Et},{});Object.keys(Je).forEach(function(Et){yt[Et]||(Et.length===1?Je[Et]=0:delete Je[Et])})}}function It(Je,Xe){for(var yt=[],Et={},Ct=0;Ct<Xe.length;Ct++){var gt=Xe[Ct];Et[gt.text2]?Et[gt.text2].push(gt.x):Et[gt.text2]=[gt.x]}for(var $t in Et)yt.push(je(Je,_.interp(Et[$t],.5),$t));return yt}function Ot(Je){return Je.periodX!==void 0?Je.periodX:Je.x}function Ft(Je){return[Je.text,Je.x,Je.axInfo,Je.font,Je.fontSize,Je.fontColor].join("_")}function ot(Je){var Xe=Je.title.font.size,yt=(Je.title.text.match(l.BR_TAG_ALL)||[]).length;return Je.title.hasOwnProperty("standoff")?Xe*(se+yt*ce):yt?Xe*(yt+1)*ce:Xe}function tt(Je,Xe){var yt=Je.l2p(Xe);return yt>1&&yt<Je._length-1}function vt(Je){var Xe=v.select(Je),yt=Xe.select(".text-math-group");return yt.empty()?Xe.select("text"):yt}function At(Je){return Je._id+".automargin"}function Dt(Je){return At(Je)+".mirror"}function Pt(Je){return Je._id+".rangeslider"}function et(Je,Xe){for(var yt=0;yt<Xe.length;yt++)Je.indexOf(Xe[yt])===-1&&Je.push(Xe[yt])}function rt(Je,Xe,yt){var Et,Ct,gt=[],$t=[],Lt=Je.layout;for(Et=0;Et<Xe.length;Et++)gt.push(ne.getFromId(Je,Xe[Et]));for(Et=0;Et<yt.length;Et++)$t.push(ne.getFromId(Je,yt[Et]));var jt=Object.keys(d),Rt=["anchor","domain","overlaying","position","side","tickangle","editType"],Vt=["linear","log"];for(Et=0;Et<jt.length;Et++){var Qt=jt[Et],ta=gt[0][Qt],_a=$t[0][Qt],ka=!0,va=!1,ia=!1;if(Qt.charAt(0)!=="_"&&typeof ta!="function"&&Rt.indexOf(Qt)===-1){for(Ct=1;Ct<gt.length&&ka;Ct++){var fa=gt[Ct][Qt];Qt==="type"&&Vt.indexOf(ta)!==-1&&Vt.indexOf(fa)!==-1&&ta!==fa?va=!0:fa!==ta&&(ka=!1)}for(Ct=1;Ct<$t.length&&ka;Ct++){var Da=$t[Ct][Qt];Qt==="type"&&Vt.indexOf(_a)!==-1&&Vt.indexOf(Da)!==-1&&_a!==Da?ia=!0:$t[Ct][Qt]!==_a&&(ka=!1)}ka&&(va&&(Lt[gt[0]._name].type="linear"),ia&&(Lt[$t[0]._name].type="linear"),We(Lt,Qt,gt,$t,Je._fullLayout._dfltTitle))}}for(Et=0;Et<Je._fullLayout.annotations.length;Et++){var wa=Je._fullLayout.annotations[Et];Xe.indexOf(wa.xref)!==-1&&yt.indexOf(wa.yref)!==-1&&_.swapAttrs(Lt.annotations[Et],["?"])}}function We(Je,Xe,yt,Et,Ct){var gt,$t=_.nestedProperty,Lt=$t(Je[yt[0]._name],Xe).get(),jt=$t(Je[Et[0]._name],Xe).get();for(Xe==="title"&&(Lt&&Lt.text===Ct.x&&(Lt.text=Ct.y),jt&&jt.text===Ct.y&&(jt.text=Ct.x)),gt=0;gt<yt.length;gt++)$t(Je,yt[gt]._name+"."+Xe).set(jt);for(gt=0;gt<Et.length;gt++)$t(Je,Et[gt]._name+"."+Xe).set(Lt)}function nt(Je){return Je._id==="angularaxis"}function _t(Je,Xe){for(var yt=Xe._rangebreaks.length,Et=0;Et<yt;Et++){var Ct=Xe._rangebreaks[Et];if(Je>=Ct.min&&Je<Ct.max)return Ct.max}return Je}function mt(Je){return(Je.ticklabelposition||"").indexOf("inside")!==-1}function St(Je,Xe){mt(Je._anchorAxis||{})&&Je._hideCounterAxisInsideTickLabels&&Je._hideCounterAxisInsideTickLabels(Xe)}function Bt(Je,Xe,yt,Et){var Ct,gt=Je.anchor==="free"||Je.overlaying!==void 0&&Je.overlaying!==!1?Je.overlaying:Je._id;Ct=Et?Je.side==="right"?Xe:-Xe:Xe,gt in yt||(yt[gt]={}),Je.side in yt[gt]||(yt[gt][Je.side]=0),yt[gt][Je.side]+=Ct}ne.getTickFormat=function(Je){var Xe,yt,Et,Ct,gt,$t,Lt,jt;function Rt(ta){return typeof ta!="string"?ta:Number(ta.replace("M",""))*A}function Vt(ta,_a){var ka=["L","D"];if(typeof ta==typeof _a){if(typeof ta=="number")return ta-_a;var va=ka.indexOf(ta.charAt(0)),ia=ka.indexOf(_a.charAt(0));return va===ia?Number(ta.replace(/(L|D)/g,""))-Number(_a.replace(/(L|D)/g,"")):va-ia}return typeof ta=="number"?1:-1}function Qt(ta,_a){var ka=_a[0]===null,va=_a[1]===null,ia=Vt(ta,_a[0])>=0,fa=Vt(ta,_a[1])<=0;return(ka||ia)&&(va||fa)}if(Je.tickformatstops&&Je.tickformatstops.length>0)switch(Je.type){case"date":case"linear":for(Xe=0;Xe<Je.tickformatstops.length;Xe++)if((Et=Je.tickformatstops[Xe]).enabled&&(Ct=Je.dtick,gt=Et.dtickrange,$t=void 0,Lt=void 0,jt=void 0,$t=Rt||function(ta){return ta},Lt=gt[0],jt=gt[1],(!Lt&&typeof Lt!="number"||$t(Lt)<=$t(Ct))&&(!jt&&typeof jt!="number"||$t(jt)>=$t(Ct)))){yt=Et;break}break;case"log":for(Xe=0;Xe<Je.tickformatstops.length;Xe++)if((Et=Je.tickformatstops[Xe]).enabled&&Qt(Je.dtick,Et.dtickrange)){yt=Et;break}}return yt?yt.value:Je.tickformat},ne.getSubplots=function(Je,Xe){var yt=Je._fullLayout._subplots,Et=yt.cartesian.concat(yt.gl2d||[]),Ct=Xe?ne.findSubplotsWithAxis(Et,Xe):Et;return Ct.sort(function(gt,$t){var Lt=gt.substr(1).split("y"),jt=$t.substr(1).split("y");return Lt[0]===jt[0]?+Lt[1]-+jt[1]:+Lt[0]-+jt[0]}),Ct},ne.findSubplotsWithAxis=function(Je,Xe){for(var yt=new RegExp(Xe._id.charAt(0)==="x"?"^"+Xe._id+"y":Xe._id+"$"),Et=[],Ct=0;Ct<Je.length;Ct++){var gt=Je[Ct];yt.test(gt)&&Et.push(gt)}return Et},ne.makeClipPaths=function(Je){var Xe=Je._fullLayout;if(!Xe._hasOnlyLargeSploms){var yt,Et,Ct={_offset:0,_length:Xe.width,_id:""},gt={_offset:0,_length:Xe.height,_id:""},$t=ne.list(Je,"x",!0),Lt=ne.list(Je,"y",!0),jt=[];for(yt=0;yt<$t.length;yt++)for(jt.push({x:$t[yt],y:gt}),Et=0;Et<Lt.length;Et++)yt===0&&jt.push({x:Ct,y:Lt[Et]}),jt.push({x:$t[yt],y:Lt[Et]});var Rt=Xe._clips.selectAll(".axesclip").data(jt,function(Vt){return Vt.x._id+Vt.y._id});Rt.enter().append("clipPath").classed("axesclip",!0).attr("id",function(Vt){return"clip"+Xe._uid+Vt.x._id+Vt.y._id}).append("rect"),Rt.exit().remove(),Rt.each(function(Vt){v.select(this).select("rect").attr({x:Vt.x._offset||0,y:Vt.y._offset||0,width:Vt.x._length||1,height:Vt.y._length||1})})}},ne.draw=function(Je,Xe,yt){var Et=Je._fullLayout;Xe==="redraw"&&Et._paper.selectAll("g.subplot").each(function(Lt){var jt=Lt[0],Rt=Et._plots[jt];if(Rt){var Vt=Rt.xaxis,Qt=Rt.yaxis;Rt.xaxislayer.selectAll("."+Vt._id+"tick").remove(),Rt.yaxislayer.selectAll("."+Qt._id+"tick").remove(),Rt.xaxislayer.selectAll("."+Vt._id+"tick2").remove(),Rt.yaxislayer.selectAll("."+Qt._id+"tick2").remove(),Rt.xaxislayer.selectAll("."+Vt._id+"divider").remove(),Rt.yaxislayer.selectAll("."+Qt._id+"divider").remove(),Rt.minorGridlayer&&Rt.minorGridlayer.selectAll("path").remove(),Rt.gridlayer&&Rt.gridlayer.selectAll("path").remove(),Rt.zerolinelayer&&Rt.zerolinelayer.selectAll("path").remove(),Et._infolayer.select(".g-"+Vt._id+"title").remove(),Et._infolayer.select(".g-"+Qt._id+"title").remove()}});var Ct=Xe&&Xe!=="redraw"?Xe:ne.listIds(Je),gt=ne.list(Je).filter(function(Lt){return Lt.autoshift}).map(function(Lt){return Lt.overlaying});Ct.map(function(Lt){var jt=ne.getFromId(Je,Lt);if(jt.tickmode==="sync"&&jt.overlaying){var Rt=Ct.findIndex(function(Vt){return Vt===jt.overlaying});Rt>=0&&Ct.unshift(Ct.splice(Rt,1).shift())}});var $t={false:{left:0,right:0}};return _.syncOrAsync(Ct.map(function(Lt){return function(){if(Lt){var jt=ne.getFromId(Je,Lt);yt||(yt={}),yt.axShifts=$t,yt.overlayingShiftedAx=gt;var Rt=ne.drawOne(Je,jt,yt);return jt._shiftPusher&&Bt(jt,jt._fullDepth||0,$t,!0),jt._r=jt.range.slice(),jt._rl=_.simpleMap(jt._r,jt.r2l),Rt}}}))},ne.drawOne=function(Je,Xe,yt){var Et,Ct,gt,$t=(yt=yt||{}).axShifts||{},Lt=yt.overlayingShiftedAx||[];Xe.setScale();var jt=Je._fullLayout,Rt=Xe._id,Vt=Rt.charAt(0),Qt=ne.counterLetter(Rt),ta=jt._plots[Xe._mainSubplot];if(ta){if(Xe._shiftPusher=Xe.autoshift||Lt.indexOf(Xe._id)!==-1||Lt.indexOf(Xe.overlaying)!==-1,Xe._shiftPusher&Xe.anchor==="free"){var _a=Xe.linewidth/2||0;Xe.ticks==="inside"&&(_a+=Xe.ticklen),Bt(Xe,_a,$t,!0),Bt(Xe,Xe.shift||0,$t,!1)}yt.skipTitle===!0&&Xe._shift!==void 0||(Xe._shift=function(na,ea){return na.autoshift?ea[na.overlaying][na.side]:na.shift||0}(Xe,$t));var ka=ta[Vt+"axislayer"],va=Xe._mainLinePosition,ia=va+=Xe._shift,fa=Xe._mainMirrorPosition,Da=Xe._vals=ne.calcTicks(Xe),wa=[Xe.mirror,ia,fa].join("_");for(Et=0;Et<Da.length;Et++)Da[Et].axInfo=wa;Xe._selections={},Xe._tickAngles&&(Xe._prevTickAngles=Xe._tickAngles),Xe._tickAngles={},Xe._depth=null;var da={};if(Xe.visible){var Ea,ua,ba=ne.makeTransTickFn(Xe),Ra=ne.makeTransTickLabelFn(Xe),Oa=Xe.ticks==="inside",Ja=Xe.ticks==="outside";if(Xe.tickson==="boundaries"){var Fa=function(na,ea){var ga,Va=[],en=function(tn,an){var _n=tn.xbnd[an];_n!==null&&Va.push(_.extendFlat({},tn,{x:_n}))};if(ea.length){for(ga=0;ga<ea.length;ga++)en(ea[ga],0);en(ea[ga-1],1)}return Va}(0,Da);ua=ne.clipEnds(Xe,Fa),Ea=Oa?ua:Fa}else ua=ne.clipEnds(Xe,Da),Ea=Oa&&Xe.ticklabelmode!=="period"?ua:Da;var qa,Ka=Xe._gridVals=ua,vn=function(na,ea){var ga,Va,en=[],tn=ea.length&&ea[ea.length-1].x<ea[0].x,an=function(mn,wn){var pn=mn.xbnd[wn];pn!==null&&en.push(_.extendFlat({},mn,{x:pn}))};if(na.showdividers&&ea.length){for(ga=0;ga<ea.length;ga++){var _n=ea[ga];_n.text2!==Va&&an(_n,tn?1:0),Va=_n.text2}an(ea[ga-1],tn?0:1)}return en}(Xe,Da);if(!jt._hasOnlyLargeSploms){var zn=Xe._subplotsWith,cn={};for(Et=0;Et<zn.length;Et++){Ct=zn[Et];var hn=(gt=jt._plots[Ct])[Qt+"axis"],un=hn._mainAxis._id;if(!cn[un]){cn[un]=1;var Bn=Vt==="x"?"M0,"+hn._offset+"v"+hn._length:"M"+hn._offset+",0h"+hn._length;ne.drawGrid(Je,Xe,{vals:Ka,counterAxis:hn,layer:gt.gridlayer.select("."+Rt),minorLayer:gt.minorGridlayer.select("."+Rt),path:Bn,transFn:ba}),ne.drawZeroLine(Je,Xe,{counterAxis:hn,layer:gt.zerolinelayer,path:Bn,transFn:ba})}}}var ha=ne.getTickSigns(Xe),ma=ne.getTickSigns(Xe,"minor");if(Xe.ticks||Xe.minor&&Xe.minor.ticks){var Ya,Ba,Xa,dn,ln=ne.makeTickPath(Xe,ia,ha[2]),Cn=ne.makeTickPath(Xe,ia,ma[2],{minor:!0});if(Xe._anchorAxis&&Xe.mirror&&Xe.mirror!==!0?(Ya=ne.makeTickPath(Xe,fa,ha[3]),Ba=ne.makeTickPath(Xe,fa,ma[3],{minor:!0}),Xa=ln+Ya,dn=Cn+Ba):(Ya="",Ba="",Xa=ln,dn=Cn),Xe.showdividers&&Ja&&Xe.tickson==="boundaries"){var Rn={};for(Et=0;Et<vn.length;Et++)Rn[vn[Et].x]=1;qa=function(na){return Rn[na.x]?Ya:Xa}}else qa=function(na){return na.minor?dn:Xa}}if(ne.drawTicks(Je,Xe,{vals:Ea,layer:ka,path:qa,transFn:ba}),Xe.mirror==="allticks"){var la=Object.keys(Xe._linepositions||{});for(Et=0;Et<la.length;Et++){Ct=la[Et],gt=jt._plots[Ct];var za=Xe._linepositions[Ct]||[],qt=za[0],ra=za[1],sa=za[2],Ia=ne.makeTickPath(Xe,qt,sa?ha[0]:ma[0],{minor:sa})+ne.makeTickPath(Xe,ra,sa?ha[1]:ma[1],{minor:sa});ne.drawTicks(Je,Xe,{vals:Ea,layer:gt[Vt+"axislayer"],path:Ia,transFn:ba})}}var Ma=[];if(Ma.push(function(){return ne.drawLabels(Je,Xe,{vals:Da,layer:ka,plotinfo:gt,transFn:Ra,labelFns:ne.makeLabelFns(Xe,ia)})}),Xe.type==="multicategory"){var $a={x:2,y:10}[Vt];Ma.push(function(){var na={x:"height",y:"width"}[Vt],ea=Sa()[na]+$a+(Xe._tickAngles[Rt+"tick"]?Xe.tickfont.size*ce:0);return ne.drawLabels(Je,Xe,{vals:It(Xe,Da),layer:ka,cls:Rt+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:ba,labelFns:ne.makeLabelFns(Xe,ia+ea*ha[4])})}),Ma.push(function(){return Xe._depth=ha[4]*(Sa("tick2")[Xe.side]-ia),function(na,ea,ga){var Va=ea._id+"divider",en=ga.vals,tn=ga.layer.selectAll("path."+Va).data(en,Ft);tn.exit().remove(),tn.enter().insert("path",":first-child").classed(Va,1).classed("crisp",1).call(s.stroke,ea.dividercolor).style("stroke-width",u.crispRound(na,ea.dividerwidth,1)+"px"),tn.attr("transform",ga.transFn).attr("d",ga.path)}(Je,Xe,{vals:vn,layer:ka,path:ne.makeTickPath(Xe,ia,ha[4],{len:Xe._depth}),transFn:ba})})}else Xe.title.hasOwnProperty("standoff")&&Ma.push(function(){Xe._depth=ha[4]*(Sa()[Xe.side]-ia)});var Pa=y.getComponentMethod("rangeslider","isVisible")(Xe);return yt.skipTitle||Pa&&Xe.side==="bottom"||Ma.push(function(){return function(na,ea){var ga,Va=na._fullLayout,en=ea._id,tn=en.charAt(0),an=ea.title.font.size,_n=(ea.title.text.match(l.BR_TAG_ALL)||[]).length;if(ea.title.hasOwnProperty("standoff"))ea.side==="bottom"||ea.side==="right"?ga=ea._depth+ea.title.standoff+an*se:ea.side!=="top"&&ea.side!=="left"||(ga=ea._depth+ea.title.standoff+an*(oe+_n*ce));else{var mn=mt(ea);if(ea.type==="multicategory")ga=ea._depth;else{var wn=1.5*an;mn&&(wn=.5*an,ea.ticks==="outside"&&(wn+=ea.ticklen)),ga=10+wn+(ea.linewidth?ea.linewidth-1:0)}mn||(ga+=tn==="x"?ea.side==="top"?an*(ea.showticklabels?1:0):an*(ea.showticklabels?1.5:.5):ea.side==="right"?an*(ea.showticklabels?1:.5):an*(ea.showticklabels?.5:0))}var pn,yn,Nn,qn,Dn=ne.getPxPosition(na,ea);if(tn==="x"?(yn=ea._offset+ea._length/2,Nn=ea.side==="top"?Dn-ga:Dn+ga):(Nn=ea._offset+ea._length/2,yn=ea.side==="right"?Dn+ga:Dn-ga,pn={rotate:"-90",offset:0}),ea.type!=="multicategory"){var En=ea._selections[ea._id+"tick"];if(qn={selection:En,side:ea.side},En&&En.node()&&En.node().parentNode){var Vn=u.getTranslate(En.node().parentNode);qn.offsetLeft=Vn.x,qn.offsetTop=Vn.y}ea.title.hasOwnProperty("standoff")&&(qn.pad=0)}return ea._titleStandoff=ga,o.draw(na,en+"title",{propContainer:ea,propName:ea._name+".title.text",placeholder:Va._dfltTitle[tn],avoid:qn,transform:pn,attributes:{x:yn,y:Nn,"text-anchor":"middle"}})}(Je,Xe)}),Ma.push(function(){var na,ea,ga,Va,en=Xe.side.charAt(0),tn=ae[Xe.side].charAt(0),an=ne.getPxPosition(Je,Xe),_n=Ja?Xe.ticklen:0;(Xe.automargin||Pa||Xe._shiftPusher)&&(Xe.type==="multicategory"?na=Sa("tick2"):(na=Sa(),Vt==="x"&&en==="b"&&(Xe._depth=Math.max(na.width>0?na.bottom-an:0,_n))));var mn=0,wn=0;if(Xe._shiftPusher&&(mn=Math.max(_n,na.height>0?en==="l"?an-na.left:na.right-an:0),Xe.title.text!==jt._dfltTitle[Vt]&&(wn=(Xe._titleStandoff||0)+(Xe._titleScoot||0),en==="l"&&(wn+=ot(Xe))),Xe._fullDepth=Math.max(mn,wn)),Xe.automargin){ea={x:0,y:0,r:0,l:0,t:0,b:0};var pn=[0,1],yn=typeof Xe._shift=="number"?Xe._shift:0;if(Vt==="x"){if(en==="b"?ea[en]=Xe._depth:(ea[en]=Xe._depth=Math.max(na.width>0?an-na.top:0,_n),pn.reverse()),na.width>0){var Nn=na.right-(Xe._offset+Xe._length);Nn>0&&(ea.xr=1,ea.r=Nn);var qn=Xe._offset-na.left;qn>0&&(ea.xl=0,ea.l=qn)}}else if(en==="l"?(Xe._depth=Math.max(na.height>0?an-na.left:0,_n),ea[en]=Xe._depth-yn):(Xe._depth=Math.max(na.height>0?na.right-an:0,_n),ea[en]=Xe._depth+yn,pn.reverse()),na.height>0){var Dn=na.bottom-(Xe._offset+Xe._length);Dn>0&&(ea.yb=0,ea.b=Dn);var En=Xe._offset-na.top;En>0&&(ea.yt=1,ea.t=En)}ea[Qt]=Xe.anchor==="free"?Xe.position:Xe._anchorAxis.domain[pn[0]],Xe.title.text!==jt._dfltTitle[Vt]&&(ea[en]+=ot(Xe)+(Xe.title.standoff||0)),Xe.mirror&&Xe.anchor!=="free"&&((ga={x:0,y:0,r:0,l:0,t:0,b:0})[tn]=Xe.linewidth,Xe.mirror&&Xe.mirror!==!0&&(ga[tn]+=_n),Xe.mirror===!0||Xe.mirror==="ticks"?ga[Qt]=Xe._anchorAxis.domain[pn[1]]:Xe.mirror!=="all"&&Xe.mirror!=="allticks"||(ga[Qt]=[Xe._counterDomainMin,Xe._counterDomainMax][pn[1]]))}Pa&&(Va=y.getComponentMethod("rangeslider","autoMarginOpts")(Je,Xe)),typeof Xe.automargin=="string"&&(ut(ea,Xe.automargin),ut(ga,Xe.automargin)),n.autoMargin(Je,At(Xe),ea),n.autoMargin(Je,Dt(Xe),ga),n.autoMargin(Je,Pt(Xe),Va)}),_.syncOrAsync(Ma)}}function Sa(na){var ea=Rt+(na||"tick");return da[ea]||(da[ea]=function(ga,Va,en){var tn,an,_n,mn;if(ga._selections[Va].size())tn=1/0,an=-1/0,_n=1/0,mn=-1/0,ga._selections[Va].each(function(){var pn=vt(this),yn=u.bBox(pn.node().parentNode);tn=Math.min(tn,yn.top),an=Math.max(an,yn.bottom),_n=Math.min(_n,yn.left),mn=Math.max(mn,yn.right)});else{var wn=ne.makeLabelFns(ga,en);tn=an=wn.yFn({dx:0,dy:0,fontSize:0}),_n=mn=wn.xFn({dx:0,dy:0,fontSize:0})}return{top:tn,bottom:an,left:_n,right:mn,height:an-tn,width:mn-_n}}(Xe,ea,ia)),da[ea]}},ne.getTickSigns=function(Je,Xe){var yt=Je._id.charAt(0),Et={x:"top",y:"right"}[yt],Ct=Je.side===Et?1:-1,gt=[-1,1,Ct,-Ct];return(Xe?(Je.minor||{}).ticks:Je.ticks)!=="inside"==(yt==="x")&&(gt=gt.map(function($t){return-$t})),Je.side&&gt.push({l:-1,t:-1,r:1,b:1}[Je.side.charAt(0)]),gt},ne.makeTransTickFn=function(Je){return Je._id.charAt(0)==="x"?function(Xe){return p(Je._offset+Je.l2p(Xe.x),0)}:function(Xe){return p(0,Je._offset+Je.l2p(Xe.x))}},ne.makeTransTickLabelFn=function(Je){var Xe=function(Vt){var Qt=Vt.ticklabelposition||"",ta=function(ba){return Qt.indexOf(ba)!==-1},_a=ta("top"),ka=ta("left"),va=ta("right"),ia=ta("bottom"),fa=ta("inside"),Da=ia||ka||_a||va;if(!Da&&!fa)return[0,0];var wa=Vt.side,da=Da?(Vt.tickwidth||0)/2:0,Ea=3,ua=Vt.tickfont?Vt.tickfont.size:12;return(ia||_a)&&(da+=ua*se,Ea+=(Vt.linewidth||0)/2),(ka||va)&&(da+=(Vt.linewidth||0)/2,Ea+=3),fa&&wa==="top"&&(Ea-=ua*(1-se)),(ka||_a)&&(da=-da),wa!=="bottom"&&wa!=="right"||(Ea=-Ea),[Da?da:0,fa?Ea:0]}(Je),yt=Je.ticklabelshift||0,Et=Je.ticklabelstandoff||0,Ct=Xe[0],gt=Xe[1],$t=Je.range[0]>Je.range[1],Lt=Je.ticklabelposition&&Je.ticklabelposition.indexOf("inside")!==-1,jt=!Lt;if(yt&&(yt*=$t?-1:1),Et){var Rt=Je.side;Et*=Lt&&(Rt==="top"||Rt==="left")||jt&&(Rt==="bottom"||Rt==="right")?1:-1}return Je._id.charAt(0)==="x"?function(Vt){return p(Ct+Je._offset+Je.l2p(Ot(Vt))+yt,gt+Et)}:function(Vt){return p(gt+Et,Ct+Je._offset+Je.l2p(Ot(Vt))+yt)}},ne.makeTickPath=function(Je,Xe,yt,Et){Et||(Et={});var Ct=Et.minor;if(Ct&&!Je.minor)return"";var gt=Et.len!==void 0?Et.len:Ct?Je.minor.ticklen:Je.ticklen,$t=Je._id.charAt(0),Lt=(Je.linewidth||1)/2;return $t==="x"?"M0,"+(Xe+Lt*yt)+"v"+gt*yt:"M"+(Xe+Lt*yt)+",0h"+gt*yt},ne.makeLabelFns=function(Je,Xe,yt){var Et=Je.ticklabelposition||"",Ct=function(Fa){return Et.indexOf(Fa)!==-1},gt=Ct("top"),$t=Ct("left"),Lt=Ct("right"),jt=Ct("bottom")||$t||gt||Lt,Rt=Ct("inside"),Vt=Et==="inside"&&Je.ticks==="inside"||!Rt&&Je.ticks==="outside"&&Je.tickson!=="boundaries",Qt=0,ta=0,_a=Vt?Je.ticklen:0;if(Rt?_a*=-1:jt&&(_a=0),Vt&&(Qt+=_a,yt)){var ka=_.deg2rad(yt);Qt=_a*Math.cos(ka)+1,ta=_a*Math.sin(ka)}Je.showticklabels&&(Vt||Je.showline)&&(Qt+=.2*Je.tickfont.size);var va,ia,fa,Da,wa,da={labelStandoff:Qt+=(Je.linewidth||1)/2*(Rt?-1:1),labelShift:ta},Ea=0,ua=Je.side,ba=Je._id.charAt(0),Ra=Je.tickangle;if(ba==="x")Da=(wa=!Rt&&ua==="bottom"||Rt&&ua==="top")?1:-1,Rt&&(Da*=-1),va=ta*Da,ia=Xe+Qt*Da,fa=wa?1:-.2,Math.abs(Ra)===90&&(Rt?fa+=oe:fa=Ra===-90&&ua==="bottom"?se:Ra===90&&ua==="top"?oe:.5,Ea=oe/2*(Ra/90)),da.xFn=function(Fa){return Fa.dx+va+Ea*Fa.fontSize},da.yFn=function(Fa){return Fa.dy+ia+Fa.fontSize*fa},da.anchorFn=function(Fa,qa){if(jt){if($t)return"end";if(Lt)return"start"}return f(qa)&&qa!==0&&qa!==180?qa*Da<0!==Rt?"end":"start":"middle"},da.heightFn=function(Fa,qa,Ka){return qa<-60||qa>60?-.5*Ka:Je.side==="top"!==Rt?-Ka:0};else if(ba==="y"){if(Da=(wa=!Rt&&ua==="left"||Rt&&ua==="right")?1:-1,Rt&&(Da*=-1),va=Qt,ia=ta*Da,fa=0,Rt||Math.abs(Ra)!==90||(fa=Ra===-90&&ua==="left"||Ra===90&&ua==="right"?se:.5),Rt){var Oa=f(Ra)?+Ra:0;if(Oa!==0){var Ja=_.deg2rad(Oa);Ea=Math.abs(Math.sin(Ja))*se*Da,fa=0}}da.xFn=function(Fa){return Fa.dx+Xe-(va+Fa.fontSize*fa)*Da+Ea*Fa.fontSize},da.yFn=function(Fa){return Fa.dy+ia+Fa.fontSize*oe},da.anchorFn=function(Fa,qa){return f(qa)&&Math.abs(qa)===90?"middle":wa?"end":"start"},da.heightFn=function(Fa,qa,Ka){return Je.side==="right"&&(qa*=-1),qa<-30?-Ka:qa<30?-.5*Ka:0}}return da},ne.drawTicks=function(Je,Xe,yt){yt=yt||{};var Et=Xe._id+"tick",Ct=[].concat(Xe.minor&&Xe.minor.ticks?yt.vals.filter(function($t){return $t.minor&&!$t.noTick}):[]).concat(Xe.ticks?yt.vals.filter(function($t){return!$t.minor&&!$t.noTick}):[]),gt=yt.layer.selectAll("path."+Et).data(Ct,Ft);gt.exit().remove(),gt.enter().append("path").classed(Et,1).classed("ticks",1).classed("crisp",yt.crisp!==!1).each(function($t){return s.stroke(v.select(this),$t.minor?Xe.minor.tickcolor:Xe.tickcolor)}).style("stroke-width",function($t){return u.crispRound(Je,$t.minor?Xe.minor.tickwidth:Xe.tickwidth,1)+"px"}).attr("d",yt.path).style("display",null),St(Xe,[X]),gt.attr("transform",yt.transFn)},ne.drawGrid=function(Je,Xe,yt){if(yt=yt||{},Xe.tickmode!=="sync"){var Et=Xe._id+"grid",Ct=Xe.minor&&Xe.minor.showgrid,gt=Ct?yt.vals.filter(function(fa){return fa.minor}):[],$t=Xe.showgrid?yt.vals.filter(function(fa){return!fa.minor}):[],Lt=yt.counterAxis;if(Lt&&ne.shouldShowZeroLine(Je,Xe,Lt))for(var jt=Xe.tickmode==="array",Rt=0;Rt<$t.length;Rt++){var Vt=$t[Rt].x;if(jt?!Vt:Math.abs(Vt)<Xe.dtick/100){if($t=$t.slice(0,Rt).concat($t.slice(Rt+1)),!jt)break;Rt--}}Xe._gw=u.crispRound(Je,Xe.gridwidth,1);for(var Qt=Ct?u.crispRound(Je,Xe.minor.gridwidth,1):0,ta=yt.layer,_a=yt.minorLayer,ka=1;ka>=0;ka--){var va=ka?ta:_a;if(va){var ia=va.selectAll("path."+Et).data(ka?$t:gt,Ft);ia.exit().remove(),ia.enter().append("path").classed(Et,1).classed("crisp",yt.crisp!==!1),ia.attr("transform",yt.transFn).attr("d",yt.path).each(function(fa){return s.stroke(v.select(this),fa.minor?Xe.minor.gridcolor:Xe.gridcolor||"#ddd")}).style("stroke-dasharray",function(fa){return u.dashStyle(fa.minor?Xe.minor.griddash:Xe.griddash,fa.minor?Xe.minor.gridwidth:Xe.gridwidth)}).style("stroke-width",function(fa){return(fa.minor?Qt:Xe._gw)+"px"}).style("display",null),typeof yt.path=="function"&&ia.attr("d",yt.path)}}St(Xe,[W,Q])}},ne.drawZeroLine=function(Je,Xe,yt){yt=yt||yt;var Et=Xe._id+"zl",Ct=ne.shouldShowZeroLine(Je,Xe,yt.counterAxis),gt=yt.layer.selectAll("path."+Et).data(Ct?[{x:0,id:Xe._id}]:[]);gt.exit().remove(),gt.enter().append("path").classed(Et,1).classed("zl",1).classed("crisp",yt.crisp!==!1).each(function(){yt.layer.selectAll("path").sort(function($t,Lt){return he($t.id,Lt.id)})}),gt.attr("transform",yt.transFn).attr("d",yt.path).call(s.stroke,Xe.zerolinecolor||s.defaultLine).style("stroke-width",u.crispRound(Je,Xe.zerolinewidth,Xe._gw||1)+"px").style("display",null),St(Xe,[q])},ne.drawLabels=function(Je,Xe,yt){yt=yt||{};var Et=Je._fullLayout,Ct=Xe._id,gt=yt.cls||Ct+"tick",$t=yt.vals.filter(function(cn){return cn.text}),Lt=yt.labelFns,jt=yt.secondary?0:Xe.tickangle,Rt=(Xe._prevTickAngles||{})[gt],Vt=yt.layer.selectAll("g."+gt).data(Xe.showticklabels?$t:[],Ft),Qt=[];function ta(cn,hn){cn.each(function(un){var Bn=v.select(this),ha=Bn.select(".text-math-group"),ma=Lt.anchorFn(un,hn),Ya=yt.transFn.call(Bn.node(),un)+(f(hn)&&+hn!=0?" rotate("+hn+","+Lt.xFn(un)+","+(Lt.yFn(un)-un.fontSize/2)+")":""),Ba=l.lineCount(Bn),Xa=ce*un.fontSize,dn=Lt.heightFn(un,f(hn)?+hn:0,(Ba-1)*Xa);if(dn&&(Ya+=p(0,dn)),ha.empty()){var ln=Bn.select("text");ln.attr({transform:Ya,"text-anchor":ma}),ln.style("opacity",1),Xe._adjustTickLabelsOverflow&&Xe._adjustTickLabelsOverflow()}else{var Cn=u.bBox(ha.node()).width*{end:-.5,start:.5}[ma];ha.attr("transform",Ya+p(Cn,0))}})}Vt.enter().append("g").classed(gt,1).append("text").attr("text-anchor","middle").each(function(cn){var hn=v.select(this),un=Je._promises.length;hn.call(l.positionText,Lt.xFn(cn),Lt.yFn(cn)).call(u.font,{family:cn.font,size:cn.fontSize,color:cn.fontColor,weight:cn.fontWeight,style:cn.fontStyle,variant:cn.fontVariant,textcase:cn.fontTextcase,lineposition:cn.fontLineposition,shadow:cn.fontShadow}).text(cn.text).call(l.convertToTspans,Je),Je._promises[un]?Qt.push(Je._promises.pop().then(function(){ta(hn,jt)})):ta(hn,jt)}),St(Xe,[J]),Vt.exit().remove(),yt.repositionOnUpdate&&Vt.each(function(cn){v.select(this).select("text").call(l.positionText,Lt.xFn(cn),Lt.yFn(cn))}),Xe._adjustTickLabelsOverflow=function(){var cn=Xe.ticklabeloverflow;if(cn&&cn!=="allow"){var hn=cn.indexOf("hide")!==-1,un=Xe._id.charAt(0)==="x",Bn=0,ha=un?Je._fullLayout.width:Je._fullLayout.height;if(cn.indexOf("domain")!==-1){var ma=_.simpleMap(Xe.range,Xe.r2l);Bn=Xe.l2p(ma[0])+Xe._offset,ha=Xe.l2p(ma[1])+Xe._offset}var Ya=Math.min(Bn,ha),Ba=Math.max(Bn,ha),Xa=Xe.side,dn=1/0,ln=-1/0;for(var Cn in Vt.each(function(za){var qt=v.select(this);if(qt.select(".text-math-group").empty()){var ra=u.bBox(qt.node()),sa=0;un?(ra.right>Ba||ra.left<Ya)&&(sa=1):(ra.bottom>Ba||ra.top+(Xe.tickangle?0:za.fontSize/4)<Ya)&&(sa=1);var Ia=qt.select("text");sa?hn&&Ia.style("opacity",0):(Ia.style("opacity",1),dn=Xa==="bottom"||Xa==="right"?Math.min(dn,un?ra.top:ra.left):-1/0,ln=Xa==="top"||Xa==="left"?Math.max(ln,un?ra.bottom:ra.right):1/0)}}),Et._plots){var Rn=Et._plots[Cn];if(Xe._id===Rn.xaxis._id||Xe._id===Rn.yaxis._id){var la=un?Rn.yaxis:Rn.xaxis;la&&(la["_visibleLabelMin_"+Xe._id]=dn,la["_visibleLabelMax_"+Xe._id]=ln)}}}},Xe._hideCounterAxisInsideTickLabels=function(cn){var hn=Xe._id.charAt(0)==="x",un=[];for(var Bn in Et._plots){var ha=Et._plots[Bn];Xe._id!==ha.xaxis._id&&Xe._id!==ha.yaxis._id||un.push(hn?ha.yaxis:ha.xaxis)}un.forEach(function(ma,Ya){ma&&mt(ma)&&(cn||[q,Q,W,X,J]).forEach(function(Ba){var Xa=Ba.K==="tick"&&Ba.L==="text"&&Xe.ticklabelmode==="period",dn=Et._plots[Xe._mainSubplot];(Ba.K===q.K?dn.zerolinelayer.selectAll("."+Xe._id+"zl"):Ba.K===Q.K?dn.minorGridlayer.selectAll("."+Xe._id):Ba.K===W.K?dn.gridlayer.selectAll("."+Xe._id):dn[Xe._id.charAt(0)+"axislayer"]).each(function(){var ln=v.select(this);Ba.L&&(ln=ln.selectAll(Ba.L)),ln.each(function(Cn){var Rn=Xe.l2p(Xa?Ot(Cn):Cn.x)+Xe._offset,la=v.select(this);Rn<Xe["_visibleLabelMax_"+ma._id]&&Rn>Xe["_visibleLabelMin_"+ma._id]?la.style("display","none"):Ba.K!=="tick"||Ya||la.style("display",null)})})})})},ta(Vt,Rt+1?Rt:jt);var _a=null;Xe._selections&&(Xe._selections[gt]=Vt);var ka=[function(){return Qt.length&&Promise.all(Qt)}];Xe.automargin&&Et._redrawFromAutoMarginCount&&Rt===90?(_a=Rt,ka.push(function(){ta(Vt,Rt)})):ka.push(function(){if(ta(Vt,jt),$t.length&&Xe.autotickangles&&(Xe.type!=="log"||String(Xe.dtick).charAt(0)!=="D")){_a=Xe.autotickangles[0];var cn,hn=0,un=[],Bn=1;Vt.each(function(Sa){hn=Math.max(hn,Sa.fontSize);var na=Xe.l2p(Sa.x),ea=vt(this),ga=u.bBox(ea.node());Bn=Math.max(Bn,l.lineCount(ea)),un.push({top:0,bottom:10,height:10,left:na-ga.width/2,right:na+ga.width/2+2,width:ga.width+2})});var ha=(Xe.tickson==="boundaries"||Xe.showdividers)&&!yt.secondary,ma=$t.length,Ya=Math.abs(($t[ma-1].x-$t[0].x)*Xe._m)/(ma-1),Ba=ha?Ya/2:Ya,Xa=ha?Xe.ticklen:1.25*hn*Bn,dn=Ba/Math.sqrt(Math.pow(Ba,2)+Math.pow(Xa,2)),ln=Xe.autotickangles.map(function(Sa){return Sa*Math.PI/180}),Cn=ln.find(function(Sa){return Math.abs(Math.cos(Sa))<=dn});Cn===void 0&&(Cn=ln.reduce(function(Sa,na){return Math.abs(Math.cos(Sa))<Math.abs(Math.cos(na))?Sa:na},ln[0]));var Rn=Cn*(180/Math.PI);if(ha){var la=2;for(Xe.ticks&&(la+=Xe.tickwidth/2),cn=0;cn<un.length;cn++){var za=$t[cn].xbnd,qt=un[cn];if(za[0]!==null&&qt.left-Xe.l2p(za[0])<la||za[1]!==null&&Xe.l2p(za[1])-qt.right<la){_a=Rn;break}}}else{var ra=Xe.ticklabelposition||"",sa=function(Sa){return ra.indexOf(Sa)!==-1},Ia=sa("top"),Ma=sa("left"),$a=sa("right"),Pa=sa("bottom")||Ma||Ia||$a?(Xe.tickwidth||0)+6:0;for(cn=0;cn<un.length-1;cn++)if(_.bBoxIntersect(un[cn],un[cn+1],Pa)){_a=Rn;break}}_a&&ta(Vt,_a)}}),Xe._tickAngles&&ka.push(function(){Xe._tickAngles[gt]=_a===null?f(jt)?jt:0:_a});var va=function(){var cn=0,hn=0;return Vt.each(function(un,Bn){var ha,ma=vt(this);ma.select(".text-math-group").empty()&&(Xe._vals[Bn]&&(ha=Xe._vals[Bn].bb||u.bBox(ma.node()),Xe._vals[Bn].bb=ha),cn=Math.max(cn,ha.width),hn=Math.max(hn,ha.height))}),{labelsMaxW:cn,labelsMaxH:hn}},ia=Xe._anchorAxis;if(ia&&(ia.autorange||ia.insiderange)&&mt(Xe)&&!pe(Et,Xe._id)&&(Et._insideTickLabelsUpdaterange||(Et._insideTickLabelsUpdaterange={}),ia.autorange&&(Et._insideTickLabelsUpdaterange[ia._name+".autorange"]=ia.autorange,ka.push(va)),ia.insiderange)){var fa=va(),Da=Xe._id.charAt(0)==="y"?fa.labelsMaxW:fa.labelsMaxH;Da+=6,Xe.ticklabelposition==="inside"&&(Da+=Xe.ticklen||0);var wa=Xe.side==="right"||Xe.side==="top"?1:-1,da=wa===1?1:0,Ea=wa===1?0:1,ua=[];ua[Ea]=ia.range[Ea];var ba=ia.range,Ra=ia.r2p(ba[da]),Oa=ia.r2p(ba[Ea]),Ja=Et._insideTickLabelsUpdaterange[ia._name+".range"];if(Ja){var Fa=ia.r2p(Ja[da]),qa=ia.r2p(Ja[Ea]),Ka=wa*(Xe._id.charAt(0)==="y"?1:-1);Ka*Ra<Ka*Fa&&(Ra=Fa,ua[da]=ba[da]=Ja[da]),Ka*Oa>Ka*qa&&(Oa=qa,ua[Ea]=ba[Ea]=Ja[Ea])}var vn=Math.abs(Oa-Ra);vn-Da>0?Da*=1+Da/(vn-=Da):Da=0,Xe._id.charAt(0)!=="y"&&(Da=-Da),ua[da]=ia.p2r(ia.r2p(ba[da])+wa*Da),ia.autorange==="min"||ia.autorange==="max reversed"?(ua[0]=null,ia._rangeInitial0=void 0,ia._rangeInitial1=void 0):ia.autorange!=="max"&&ia.autorange!=="min reversed"||(ua[1]=null,ia._rangeInitial0=void 0,ia._rangeInitial1=void 0),Et._insideTickLabelsUpdaterange[ia._name+".range"]=ua}var zn=_.syncOrAsync(ka);return zn&&zn.then&&Je._promises.push(zn),zn},ne.getPxPosition=function(Je,Xe){var yt,Et=Je._fullLayout._size,Ct=Xe._id.charAt(0),gt=Xe.side;return Xe.anchor!=="free"?yt=Xe._anchorAxis:Ct==="x"?yt={_offset:Et.t+(1-(Xe.position||0))*Et.h,_length:0}:Ct==="y"&&(yt={_offset:Et.l+(Xe.position||0)*Et.w+Xe._shift,_length:0}),gt==="top"||gt==="left"?yt._offset:gt==="bottom"||gt==="right"?yt._offset+yt._length:void 0},ne.shouldShowZeroLine=function(Je,Xe,yt){var Et=_.simpleMap(Xe.range,Xe.r2l);return Et[0]*Et[1]<=0&&Xe.zeroline&&(Xe.type==="linear"||Xe.type==="-")&&!(Xe.rangebreaks&&Xe.maskBreaks(0)===Z)&&(tt(Xe,0)||!function(Ct,gt,$t,Lt){var jt=$t._mainAxis;if(jt){var Rt=Ct._fullLayout,Vt=gt._id.charAt(0),Qt=ne.counterLetter(gt._id),ta=gt._offset+(Math.abs(Lt[0])<Math.abs(Lt[1])==(Vt==="x")?0:gt._length),_a=Rt._plots[$t._mainSubplot];if(!(_a.mainplotinfo||_a).overlays.length)return fa($t);for(var ka=ne.list(Ct,Qt),va=0;va<ka.length;va++){var ia=ka[va];if(ia._mainAxis===jt&&fa(ia))return!0}}function fa(Da){if(!Da.showline||!Da.linewidth)return!1;var wa=Math.max((Da.linewidth+gt.zerolinewidth)/2,1);function da(ba){return typeof ba=="number"&&Math.abs(ba-ta)<wa}if(da(Da._mainLinePosition)||da(Da._mainMirrorPosition))return!0;var Ea=Da._linepositions||{};for(var ua in Ea)if(da(Ea[ua][0])||da(Ea[ua][1]))return!0}}(Je,Xe,yt,Et)||function(Ct,gt){for(var $t=Ct._fullData,Lt=gt._mainSubplot,jt=gt._id.charAt(0),Rt=0;Rt<$t.length;Rt++){var Vt=$t[Rt];if(Vt.visible===!0&&Vt.xaxis+Vt.yaxis===Lt&&(y.traceIs(Vt,"bar-like")&&Vt.orientation==={x:"h",y:"v"}[jt]||Vt.fill&&Vt.fill.charAt(Vt.fill.length-1)===jt))return!0}return!1}(Je,Xe))},ne.clipEnds=function(Je,Xe){return Xe.filter(function(yt){return tt(Je,yt.x)})},ne.allowAutoMargin=function(Je){for(var Xe=ne.list(Je,"",!0),yt=0;yt<Xe.length;yt++){var Et=Xe[yt];Et.automargin&&(n.allowAutoMargin(Je,At(Et)),Et.mirror&&n.allowAutoMargin(Je,Dt(Et))),y.getComponentMethod("rangeslider","isVisible")(Et)&&n.allowAutoMargin(Je,Pt(Et))}},ne.swap=function(Je,Xe){for(var yt=function(Ct,gt){var $t,Lt,jt=[];for($t=0;$t<gt.length;$t++){var Rt=[],Vt=Ct._fullData[gt[$t]].xaxis,Qt=Ct._fullData[gt[$t]].yaxis;if(Vt&&Qt){for(Lt=0;Lt<jt.length;Lt++)jt[Lt].x.indexOf(Vt)===-1&&jt[Lt].y.indexOf(Qt)===-1||Rt.push(Lt);if(Rt.length){var ta,_a=jt[Rt[0]];if(Rt.length>1)for(Lt=1;Lt<Rt.length;Lt++)ta=jt[Rt[Lt]],et(_a.x,ta.x),et(_a.y,ta.y);et(_a.x,[Vt]),et(_a.y,[Qt])}else jt.push({x:[Vt],y:[Qt]})}}return jt}(Je,Xe),Et=0;Et<yt.length;Et++)rt(Je,yt[Et].x,yt[Et].y)}},9666:function(c,m,a){var v=a(10721),f=a(34809),n=a(63821).BADNUM,y=f.isArrayOrTypedArray,_=f.isDateTime,p=f.cleanNumber,l=Math.round;function o(u,d){return d?v(u):typeof u=="number"}function s(u){return Math.max(1,(u-1)/1e3)}c.exports=function(u,d,h){var g=u,b=h.noMultiCategory;if(y(g)&&!g.length)return"-";if(!b&&function(T){return y(T[0])&&y(T[1])}(g))return"multicategory";if(b&&Array.isArray(g[0])){for(var w=[],x=0;x<g.length;x++)if(y(g[x]))for(var S=0;S<g[x].length;S++)w.push(g[x][S]);g=w}if(function(T,C){for(var A=T.length,E=s(A),M=0,I=0,N={},z=0;z<A;z+=E){var F=T[l(z)],R=String(F);N[R]||(N[R]=1,_(F,C)&&M++,v(F)&&I++)}return M>2*I}(g,d))return"date";var k=h.autotypenumbers!=="strict";return function(T,C){for(var A=T.length,E=s(A),M=0,I=0,N={},z=0;z<A;z+=E){var F=T[l(z)],R=String(F);if(!N[R]){N[R]=1;var V=typeof F;V==="boolean"?I++:(C?p(F)!==n:V==="number")?M++:V==="string"&&I++}}return I>2*M}(g,k)?"category":function(T,C){for(var A=T.length,E=0;E<A;E++)if(o(T[E],C))return!0;return!1}(g,k)?"linear":"-"}},97655:function(c,m,a){var v=a(10721),f=a(33626),n=a(34809),y=a(78032),_=a(59008),p=a(25829),l=a(22777),o=a(87433),s=a(12036),u=a(54616),d=a(46473),h=a(97405),g=a(90259),b=a(19091),w=a(54826).WEEKDAY_PATTERN,x=a(54826).HOUR_PATTERN;function S(C,A,E){function M(U,Z){return n.coerce(C,A,p.rangebreaks,U,Z)}if(M("enabled")){var I=M("bounds");if(I&&I.length>=2){var N,z,F="";if(I.length===2){for(N=0;N<2;N++)if(z=T(I[N])){F=w;break}}var R=M("pattern",F);if(R===w)for(N=0;N<2;N++)(z=T(I[N]))&&(A.bounds[N]=I[N]=z-1);if(R)for(N=0;N<2;N++)switch(z=I[N],R){case w:if(!v(z)||(z=+z)!==Math.floor(z)||z<0||z>=7)return void(A.enabled=!1);A.bounds[N]=I[N]=z;break;case x:if(!v(z)||(z=+z)<0||z>24)return void(A.enabled=!1);A.bounds[N]=I[N]=z}if(E.autorange===!1){var V=E.range;if(V[0]<V[1]){if(I[0]<V[0]&&I[1]>V[1])return void(A.enabled=!1)}else if(I[0]>V[0]&&I[1]<V[1])return void(A.enabled=!1)}}else{var $=M("values");if(!$||!$.length)return void(A.enabled=!1);M("dvalue")}}}c.exports=function(C,A,E,M,I){var N,z=M.letter,F=M.font||{},R=M.splomStash||{},V=E("visible",!M.visibleDflt),$=A._template||{},U=A.type||$.type||"-";U==="date"&&(f.getComponentMethod("calendars","handleDefaults")(C,A,"calendar",M.calendar),M.noTicklabelmode||(N=E("ticklabelmode"))),M.noTicklabelindex||U!=="date"&&U!=="linear"||E("ticklabelindex");var Z="";M.noTicklabelposition&&U!=="multicategory"||(Z=n.coerce(C,A,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:N==="period"?["outside","inside"]:z==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),M.noTicklabeloverflow||E("ticklabeloverflow",Z.indexOf("inside")!==-1?"hide past domain":U==="category"||U==="multicategory"?"allow":"hide past div"),b(A,I),g(C,A,E,M),d(C,A,E,M),U==="category"||M.noHover||E("hoverformat");var q=E("color"),W=q!==p.color.dflt?q:F.color,Q=R.label||I._dfltTitle[z];if(u(C,A,E,U,M),!V)return A;E("title.text",Q),n.coerceFont(E,"title.font",F,{overrideDflt:{size:n.bigFont(F.size),color:W}}),l(C,A,E,U);var X=M.hasMinor;if(X&&(y.newContainer(A,"minor"),l(C,A,E,U,{isMinor:!0})),s(C,A,E,U,M),o(C,A,E,M),X){var J=M.isMinor;M.isMinor=!0,o(C,A,E,M),M.isMinor=J}h(C,A,E,{dfltColor:q,bgColor:M.bgColor,showGrid:M.showGrid,hasMinor:X,attributes:p}),!X||A.minor.ticks||A.minor.showgrid||delete A.minor,(A.showline||A.ticks)&&E("mirror");var ee,le=U==="multicategory";if(M.noTickson||U!=="category"&&!le||!A.ticks&&!A.showgrid||(le&&(ee="boundaries"),E("tickson",ee)==="boundaries"&&delete A.ticklabelposition),le&&E("showdividers")&&(E("dividercolor"),E("dividerwidth")),U==="date")if(_(C,A,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:S}),A.rangebreaks.length){for(var oe=0;oe<A.rangebreaks.length;oe++)if(A.rangebreaks[oe].pattern===w){A._hasDayOfWeekBreaks=!0;break}if(b(A,I),I._has("scattergl")||I._has("splom"))for(var se=0;se<M.data.length;se++){var ce=M.data[se];ce.type!=="scattergl"&&ce.type!=="splom"||(ce.visible=!1,n.warn(ce.type+" traces do not work on axes with rangebreaks. Setting trace "+ce.index+" to `visible: false`."))}}else delete A.rangebreaks;return A};var k={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function T(C){if(typeof C=="string")return k[C.substr(0,3).toLowerCase()]}},80712:function(c,m,a){var v=a(87296),f=v.FORMAT_LINK,n=v.DATE_FORMAT_LINK;function y(p,l){return["Sets the "+p+" formatting rule"+(l?"for `"+l+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+f+"."].join(" ")}function _(p,l){return y(p,l)+[" And for dates see: "+n+".","We add two items to d3's date formatter:","*%h* for half of the year as a decimal number as well as","*%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")}c.exports={axisHoverFormat:function(p,l){return{valType:"string",dflt:"",editType:"none",description:(l?y:_)("hover text",p)+["By default the values are formatted using "+(l?"generic number format":"`"+p+"axis.hoverformat`")+"."].join(" ")}},descriptionOnlyNumbers:y,descriptionWithDates:_}},5975:function(c,m,a){var v=a(33626),f=a(54826);function n(y,_){if(_&&_.length){for(var p=0;p<_.length;p++)if(_[p][y])return!0}return!1}m.id2name=function(y){if(typeof y=="string"&&y.match(f.AX_ID_PATTERN)){var _=y.split(" ")[0].substr(1);return _==="1"&&(_=""),y.charAt(0)+"axis"+_}},m.name2id=function(y){if(y.match(f.AX_NAME_PATTERN)){var _=y.substr(5);return _==="1"&&(_=""),y.charAt(0)+_}},m.cleanId=function(y,_,p){var l=/( domain)$/.test(y);if(typeof y=="string"&&y.match(f.AX_ID_PATTERN)&&(!_||y.charAt(0)===_)&&(!l||p)){var o=y.split(" ")[0].substr(1).replace(/^0+/,"");return o==="1"&&(o=""),y.charAt(0)+o+(l&&p?" domain":"")}},m.list=function(y,_,p){var l=y._fullLayout;if(!l)return[];var o,s=m.listIds(y,_),u=new Array(s.length);for(o=0;o<s.length;o++){var d=s[o];u[o]=l[d.charAt(0)+"axis"+d.substr(1)]}if(!p){var h=l._subplots.gl3d||[];for(o=0;o<h.length;o++){var g=l[h[o]];_?u.push(g[_+"axis"]):u.push(g.xaxis,g.yaxis,g.zaxis)}}return u},m.listIds=function(y,_){var p=y._fullLayout;if(!p)return[];var l=p._subplots;return _?l[_+"axis"]:l.xaxis.concat(l.yaxis)},m.getFromId=function(y,_,p){var l=y._fullLayout;return _=_===void 0||typeof _!="string"?_:_.replace(" domain",""),p==="x"?_=_.replace(/y[0-9]*/,""):p==="y"&&(_=_.replace(/x[0-9]*/,"")),l[m.id2name(_)]},m.getFromTrace=function(y,_,p){var l=y._fullLayout,o=null;if(v.traceIs(_,"gl3d")){var s=_.scene;s.substr(0,5)==="scene"&&(o=l[s][p+"axis"])}else o=m.getFromId(y,_[p+"axis"]||p);return o},m.idSort=function(y,_){var p=y.charAt(0),l=_.charAt(0);return p!==l?p>l?1:-1:+(y.substr(1)||1)-+(_.substr(1)||1)},m.ref2id=function(y){return!!/^[xyz]/.test(y)&&y.split(" ")[0]},m.isLinked=function(y,_){return n(_,y._axisMatchGroups)||n(_,y._axisConstraintGroups)}},46473:function(c,m,a){var v=a(87800).isTypedArraySpec;c.exports=function(f,n,y,_){if(n.type==="category"){var p,l=f.categoryarray,o=Array.isArray(l)&&l.length>0||v(l);o&&(p="array");var s,u=y("categoryorder",p);u==="array"&&(s=y("categoryarray")),o||u!=="array"||(u=n.categoryorder="trace"),u==="trace"?n._initialCategories=[]:u==="array"?n._initialCategories=s.slice():(s=function(d,h){var g,b,w,x=h.dataAttr||d._id.charAt(0),S={};if(h.axData)g=h.axData;else for(g=[],b=0;b<h.data.length;b++){var k=h.data[b];k[x+"axis"]===d._id&&g.push(k)}for(b=0;b<g.length;b++){var T=g[b][x];for(w=0;w<T.length;w++){var C=T[w];C!=null&&(S[C]=1)}}return Object.keys(S)}(n,_).sort(),u==="category ascending"?n._initialCategories=s:u==="category descending"&&(n._initialCategories=s.reverse()))}}},68599:function(c,m,a){var v=a(10721),f=a(34809),n=a(63821),y=n.ONEDAY,_=n.ONEWEEK;m.dtick=function(p,l){var o=l==="log",s=l==="date",u=l==="category",d=s?y:1;if(!p)return d;if(v(p))return(p=Number(p))<=0?d:u?Math.max(1,Math.round(p)):s?Math.max(.1,p):p;if(typeof p!="string"||!s&&!o)return d;var h=p.charAt(0),g=p.substr(1);return(g=v(g)?Number(g):0)<=0||!(s&&h==="M"&&g===Math.round(g)||o&&h==="L"||o&&h==="D"&&(g===1||g===2))?d:p},m.tick0=function(p,l,o,s){return l==="date"?f.cleanDate(p,f.dateTick0(o,s%_==0?1:0)):s!=="D1"&&s!=="D2"?v(p)?Number(p):0:void 0}},54826:function(c,m,a){var v=a(90694).counter;c.exports={idRegex:{x:v("x","( domain)?"),y:v("y","( domain)?")},attrRegex:v("[xy]axis"),xAxisMatch:v("xaxis"),yAxisMatch:v("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}},84391:function(c,m,a){var v=a(34809),f=a(32919),n=a(5975).id2name,y=a(25829),_=a(67611),p=a(19091),l=a(63821).ALMOST_EQUAL,o=a(4530).FROM_BL;function s(x,S,k){var T=k.axIds,C=k.layoutOut,A=k.hasImage,E=C._axisConstraintGroups,M=C._axisMatchGroups,I=S._id,N=I.charAt(0),z=((C._splomAxes||{})[N]||{})[I]||{},F=S._id,R=F.charAt(0)==="x";function V(ae,ne){return v.coerce(x,S,y,ae,ne)}S._matchGroup=null,S._constraintGroup=null,V("constrain",A?"domain":"range"),v.coerce(x,S,{constraintoward:{valType:"enumerated",values:R?["left","center","right"]:["bottom","middle","top"],dflt:R?"center":"middle"}},"constraintoward");var $,U,Z=S.type,q=[];for($=0;$<T.length;$++)(U=T[$])!==F&&C[n(U)].type===Z&&q.push(U);var W=d(E,F);if(W){var Q=[];for($=0;$<q.length;$++)W[U=q[$]]||Q.push(U);q=Q}var X,J,ee=q.length;ee&&(x.matches||z.matches)&&(X=v.coerce(x,S,{matches:{valType:"enumerated",values:q,dflt:q.indexOf(z.matches)!==-1?z.matches:void 0}},"matches"));var le=A&&!R?S.anchor:void 0;if(ee&&!X&&(x.scaleanchor||le)&&(J=v.coerce(x,S,{scaleanchor:{valType:"enumerated",values:q.concat([!1])}},"scaleanchor",le)),X){S._matchGroup=h(M,F,X,1);var oe=C[n(X)],se=u(C,S)/u(C,oe);R!==(X.charAt(0)==="x")&&(se=(R?"x":"y")+se),h(E,F,X,se)}else x.matches&&T.indexOf(x.matches)!==-1&&v.warn("ignored "+S._name+'.matches: "'+x.matches+'" to avoid an infinite loop');if(J){var ce=V("scaleratio");ce||(ce=S.scaleratio=1),h(E,F,J,ce)}else x.scaleanchor&&T.indexOf(x.scaleanchor)!==-1&&v.warn("ignored "+S._name+'.scaleanchor: "'+x.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function u(x,S){var k=S.domain;return k||(k=x[n(S.overlaying)].domain),k[1]-k[0]}function d(x,S){for(var k=0;k<x.length;k++)if(x[k][S])return x[k];return null}function h(x,S,k,T){var C,A,E,M,I,N=d(x,S);N===null?((N={})[S]=1,I=x.length,x.push(N)):I=x.indexOf(N);var z=Object.keys(N);for(C=0;C<x.length;C++)if(E=x[C],C!==I&&E[k]){var F=E[k];for(A=0;A<z.length;A++)E[M=z[A]]=g(F,g(T,N[M]));return void x.splice(I,1)}if(T!==1)for(A=0;A<z.length;A++){var R=z[A];N[R]=g(T,N[R])}N[k]=1}function g(x,S){var k,T,C="",A="";typeof x=="string"&&(k=(C=x.match(/^[xy]*/)[0]).length,x=+x.substr(k)),typeof S=="string"&&(T=(A=S.match(/^[xy]*/)[0]).length,S=+S.substr(T));var E=x*S;return k||T?k&&T&&C.charAt(0)!==A.charAt(0)?k===T?E:(k>T?C.substr(T):A.substr(k))+E:C+A+x*S:E}function b(x,S){for(var k=S._size,T=k.h/k.w,C={},A=Object.keys(x),E=0;E<A.length;E++){var M=A[E],I=x[M];if(typeof I=="string"){var N=I.match(/^[xy]*/)[0],z=N.length;I=+I.substr(z);for(var F=N.charAt(0)==="y"?T:1/T,R=0;R<z;R++)I*=F}C[M]=I}return C}function w(x,S){var k=x._inputDomain,T=o[x.constraintoward],C=k[0]+(k[1]-k[0])*T;x.domain=x._input.domain=[C+(k[0]-C)/S,C+(k[1]-C)/S],x.setScale()}m.handleDefaults=function(x,S,k){var T,C,A,E,M,I,N,z,F=k.axIds,R=k.axHasImage,V=S._axisConstraintGroups=[],$=S._axisMatchGroups=[];for(T=0;T<F.length;T++)s(M=x[E=n(F[T])],I=S[E],{axIds:F,layoutOut:S,hasImage:R[E]});function U(oe,se){for(T=0;T<oe.length;T++)for(A in C=oe[T])S[n(A)][se]=C}for(U($,"_matchGroup"),T=0;T<V.length;T++)for(A in C=V[T])if((I=S[n(A)]).fixedrange){for(var Z in C){var q=n(Z);(x[q]||{}).fixedrange===!1&&v.warn("fixedrange was specified as false for axis "+q+" but was overridden because another axis in its constraint group has fixedrange true"),S[q].fixedrange=!0}break}for(T=0;T<V.length;){for(A in C=V[T]){(I=S[n(A)])._matchGroup&&Object.keys(I._matchGroup).length===Object.keys(C).length&&(V.splice(T,1),T--);break}T++}U(V,"_constraintGroup");var W=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],Q=!1,X=!1;function J(){z=I[N],N==="rangebreaks"&&(X=I._hasDayOfWeekBreaks)}for(T=0;T<$.length;T++){C=$[T];for(var ee=0;ee<W.length;ee++){var le;for(A in N=W[ee],z=null,C)if(M=x[E=n(A)],I=S[E],N in I){if(!I.matches&&(le=I,N in M)){J();break}z===null&&N in M&&J()}if(N==="range"&&z&&M.range&&M.range.length===2&&M.range[0]!==null&&M.range[1]!==null&&(Q=!0),N==="autorange"&&z===null&&Q&&(z=!1),z===null&&N in le&&(z=le[N]),z!==null)for(A in C)(I=S[n(A)])[N]=N==="range"?z.slice():z,N==="rangebreaks"&&(I._hasDayOfWeekBreaks=X,p(I,S))}}},m.enforce=function(x){var S,k,T,C,A,E,M,I,N=x._fullLayout,z=N._axisConstraintGroups||[];for(S=0;S<z.length;S++){T=b(z[S],N);var F=Object.keys(T),R=1/0,V=0,$=1/0,U={},Z={},q=!1;for(k=0;k<F.length;k++)Z[C=F[k]]=A=N[n(C)],A._inputDomain?A.domain=A._inputDomain.slice():A._inputDomain=A.domain.slice(),A._inputRange||(A._inputRange=A.range.slice()),A.setScale(),U[C]=E=Math.abs(A._m)/T[C],R=Math.min(R,E),A.constrain!=="domain"&&A._constraintShrinkable||($=Math.min($,E)),delete A._constraintShrinkable,V=Math.max(V,E),A.constrain==="domain"&&(q=!0);if(!(R>l*V)||q){for(k=0;k<F.length;k++)if(E=U[C=F[k]],M=(A=Z[C]).constrain,E!==$||M==="domain")if(I=E/$,M==="range")_(A,I);else{var W=A._inputDomain,Q=(A.domain[1]-A.domain[0])/(W[1]-W[0]),X=(A.r2l(A.range[1])-A.r2l(A.range[0]))/(A.r2l(A._inputRange[1])-A.r2l(A._inputRange[0]));if((I/=Q)*X<1){A.domain=A._input.domain=W.slice(),_(A,I);continue}if(X<1&&(A.range=A._input.range=A._inputRange.slice(),I*=X),A.autorange){var J=A.r2l(A.range[0]),ee=A.r2l(A.range[1]),le=(J+ee)/2,oe=le,se=le,ce=Math.abs(ee-le),ae=le-ce*I*1.0001,ne=le+ce*I*1.0001,ie=f.makePadFn(N,A,0),ue=f.makePadFn(N,A,1);w(A,I);var he,pe,me=Math.abs(A._m),_e=f.concatExtremes(x,A),xe=_e.min,we=_e.max;for(pe=0;pe<xe.length;pe++)(he=xe[pe].val-ie(xe[pe])/me)>ae&&he<oe&&(oe=he);for(pe=0;pe<we.length;pe++)(he=we[pe].val+ue(we[pe])/me)<ne&&he>se&&(se=he);I/=(se-oe)/(2*ce),oe=A.l2r(oe),se=A.l2r(se),A.range=A._input.range=J<ee?[oe,se]:[se,oe]}w(A,I)}}}},m.getAxisGroup=function(x,S){for(var k=x._axisMatchGroups,T=0;T<k.length;T++)if(k[T][S])return"g"+T;return S},m.clean=function(x,S){if(S._inputDomain){for(var k=!1,T=S._id,C=x._fullLayout._axisConstraintGroups,A=0;A<C.length;A++)if(C[A][T]){k=!0;break}k&&S.constrain==="domain"||(S._input.domain=S.domain=S._inputDomain,delete S._inputDomain)}}},51680:function(c,m,a){var v=a(45568),f=a(34809),n=f.numberFormat,y=a(65657),_=a(74043),p=a(33626),l=f.strTranslate,o=a(30635),s=a(78766),u=a(62203),d=a(32141),h=a(29714),g=a(27983),b=a(14751),w=a(70414),x=w.selectingOrDrawing,S=w.freeMode,k=a(4530).FROM_TL,T=a(34823),C=a(71817).redrawReglTraces,A=a(44122),E=a(5975).getFromId,M=a(44844).prepSelect,I=a(44844).clearOutline,N=a(44844).selectOnClick,z=a(67611),F=a(54826),R=F.MINDRAG,V=F.MINZOOM,$=!0;function U(he,pe,me,_e){var xe=f.ensureSingle(he.draglayer,pe,me,function(we){we.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",he.id)});return xe.call(g,_e),xe.node()}function Z(he,pe,me,_e,xe,we,Ee){var Pe=U(he,"rect",pe,me);return v.select(Pe).call(u.setRect,_e,xe,we,Ee),Pe}function q(he,pe){for(var me=0;me<he.length;me++)if(!he[me].fixedrange)return pe;return""}function W(he,pe,me,_e,xe){for(var we=0;we<he.length;we++){var Ee=he[we];if(!Ee.fixedrange)if(Ee.rangebreaks){var Pe=Ee._id.charAt(0)==="y",$e=Pe?1-pe:pe,Te=Pe?1-me:me;_e[Ee._name+".range[0]"]=Ee.l2r(Ee.p2l($e*Ee._length)),_e[Ee._name+".range[1]"]=Ee.l2r(Ee.p2l(Te*Ee._length))}else{var Ce=Ee._rl[0],ye=Ee._rl[1]-Ce;_e[Ee._name+".range[0]"]=Ee.l2r(Ce+ye*pe),_e[Ee._name+".range[1]"]=Ee.l2r(Ce+ye*me)}}if(xe&&xe.length){var ge=(pe+(1-me))/2;W(xe,ge,1-ge,_e,[])}}function Q(he,pe){for(var me=0;me<he.length;me++){var _e=he[me];if(!_e.fixedrange){if(_e.rangebreaks){var xe=_e._length,we=(_e.p2l(0+pe)-_e.p2l(0)+(_e.p2l(xe+pe)-_e.p2l(xe)))/2;_e.range=[_e.l2r(_e._rl[0]-we),_e.l2r(_e._rl[1]-we)]}else _e.range=[_e.l2r(_e._rl[0]-pe/_e._m),_e.l2r(_e._rl[1]-pe/_e._m)];_e.limitRange&&_e.limitRange()}}}function X(he){return 1-(he>=0?Math.min(he,.9):1/(1/Math.max(he,-.3)+3.222))}function J(he,pe,me,_e,xe){return he.append("path").attr("class","zoombox").style({fill:pe>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",l(me,_e)).attr("d",xe+"Z")}function ee(he,pe,me){return he.append("path").attr("class","zoombox-corners").style({fill:s.background,stroke:s.defaultLine,"stroke-width":1,opacity:0}).attr("transform",l(pe,me)).attr("d","M0,0Z")}function le(he,pe,me,_e,xe,we){he.attr("d",_e+"M"+me.l+","+me.t+"v"+me.h+"h"+me.w+"v-"+me.h+"h-"+me.w+"Z"),oe(he,pe,xe,we)}function oe(he,pe,me,_e){me||(he.transition().style("fill",_e>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),pe.transition().style("opacity",1).duration(200))}function se(he){v.select(he).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ce(he){$&&he.data&&he._context.showTips&&(f.notifier(f._(he,"Double-click to zoom back out"),"long"),$=!1)}function ae(he){var pe=Math.floor(Math.min(he.b-he.t,he.r-he.l,V)/2);return"M"+(he.l-3.5)+","+(he.t-.5+pe)+"h3v"+-pe+"h"+pe+"v-3h-"+(pe+3)+"ZM"+(he.r+3.5)+","+(he.t-.5+pe)+"h-3v"+-pe+"h"+-pe+"v-3h"+(pe+3)+"ZM"+(he.r+3.5)+","+(he.b+.5-pe)+"h-3v"+pe+"h"+-pe+"v3h"+(pe+3)+"ZM"+(he.l-3.5)+","+(he.b+.5-pe)+"h3v"+pe+"h"+pe+"v3h-"+(pe+3)+"Z"}function ne(he,pe,me,_e,xe){for(var we,Ee,Pe,$e,Te=!1,Ce={},ye={},ge=(xe||{}).xaHash,Me=(xe||{}).yaHash,Se=0;Se<pe.length;Se++){var ze=pe[Se];for(we in me)if(ze[we]){for(Pe in ze)xe&&(ge[Pe]||Me[Pe])||(Pe.charAt(0)==="x"?me:_e)[Pe]||(Ce[Pe]=we);for(Ee in _e)xe&&(ge[Ee]||Me[Ee])||!ze[Ee]||(Te=!0)}for(Ee in _e)if(ze[Ee])for($e in ze)xe&&(ge[$e]||Me[$e])||($e.charAt(0)==="x"?me:_e)[$e]||(ye[$e]=Ee)}Te&&(f.extendFlat(Ce,ye),ye={});var Fe={},De=[];for(Pe in Ce){var Ue=E(he,Pe);De.push(Ue),Fe[Ue._id]=Ue}var Ne={},ke=[];for($e in ye){var Oe=E(he,$e);ke.push(Oe),Ne[Oe._id]=Oe}return{xaHash:Fe,yaHash:Ne,xaxes:De,yaxes:ke,xLinks:Ce,yLinks:ye,isSubplotConstrained:Te}}function ie(he,pe){if(_){var me=he.onwheel!==void 0?"wheel":"mousewheel";he._onwheel&&he.removeEventListener(me,he._onwheel),he._onwheel=pe,he.addEventListener(me,pe,{passive:!1})}else he.onwheel!==void 0?he.onwheel=pe:he.onmousewheel!==void 0?he.onmousewheel=pe:he.isAddedWheelEvent||(he.isAddedWheelEvent=!0,he.addEventListener("wheel",pe,{passive:!1}))}function ue(he){var pe=[];for(var me in he)pe.push(he[me]);return pe}c.exports={makeDragBox:function(he,pe,me,_e,xe,we,Ee,Pe){var $e,Te,Ce,ye,ge,Me,Se,ze,Fe,De,Ue,Ne,ke,Oe,Re,je,Ze,Ye,it,dt,ut,It,Ot,Ft=he._fullLayout._zoomlayer,ot=Ee+Pe==="nsew",tt=(Ee+Pe).length===1;function vt(){if($e=pe.xaxis,Te=pe.yaxis,Fe=$e._length,De=Te._length,Se=$e._offset,ze=Te._offset,(Ce={})[$e._id]=$e,(ye={})[Te._id]=Te,Ee&&Pe)for(var da=pe.overlays,Ea=0;Ea<da.length;Ea++){var ua=da[Ea].xaxis;Ce[ua._id]=ua;var ba=da[Ea].yaxis;ye[ba._id]=ba}ge=ue(Ce),Me=ue(ye),ke=q(ge,Pe),Oe=q(Me,Ee),Re=!Oe&&!ke,Ne=ne(he,he._fullLayout._axisMatchGroups,Ce,ye);var Ra=(Ue=ne(he,he._fullLayout._axisConstraintGroups,Ce,ye,Ne)).isSubplotConstrained||Ne.isSubplotConstrained;je=Pe||Ra,Ze=Ee||Ra;var Oa=he._fullLayout;Ye=Oa._has("scattergl"),it=Oa._has("splom"),dt=Oa._has("svg")}me+=pe.yaxis._shift,vt();var At=function(da,Ea,ua){return da?da==="nsew"?ua?"":Ea==="pan"?"move":"crosshair":da.toLowerCase()+"-resize":"pointer"}(Oe+ke,he._fullLayout.dragmode,ot),Dt=Z(pe,Ee+Pe+"drag",At,me,_e,xe,we);if(Re&&!ot)return Dt.onmousedown=null,Dt.style.pointerEvents="none",Dt;var Pt,et,rt,We,nt,_t,mt,St,Bt,Je,Xe={element:Dt,gd:he,plotinfo:pe};function yt(){Xe.plotinfo.selection=!1,I(he)}function Et(da,Ea){var ua=Xe.gd;if(ua._fullLayout._activeShapeIndex>=0)ua._fullLayout._deactivateShape(ua);else{var ba=ua._fullLayout.clickmode;if(se(ua),da!==2||tt||ka(),ot)ba.indexOf("select")>-1&&N(Ea,ua,ge,Me,pe.id,Xe),ba.indexOf("event")>-1&&d.click(ua,Ea,pe.id);else if(da===1&&tt){var Ra=Ee?Te:$e,Oa=Ee==="s"||Pe==="w"?0:1,Ja=Ra._name+".range["+Oa+"]",Fa=function(vn,zn){var cn,hn=vn.range[zn],un=Math.abs(hn-vn.range[1-zn]);return vn.type==="date"?hn:vn.type==="log"?(cn=Math.ceil(Math.max(0,-Math.log(un)/Math.LN10))+3,n("."+cn+"g")(Math.pow(10,hn))):(cn=Math.floor(Math.log(Math.abs(hn))/Math.LN10)-Math.floor(Math.log(un)/Math.LN10)+4,n("."+String(cn)+"g")(hn))}(Ra,Oa),qa="left",Ka="middle";if(Ra.fixedrange)return;Ee?(Ka=Ee==="n"?"top":"bottom",Ra.side==="right"&&(qa="right")):Pe==="e"&&(qa="right"),ua._context.showAxisRangeEntryBoxes&&v.select(Dt).call(o.makeEditable,{gd:ua,immediate:!0,background:ua._fullLayout.paper_bgcolor,text:String(Fa),fill:Ra.tickfont?Ra.tickfont.color:"#444",horizontalAlign:qa,verticalAlign:Ka}).on("edit",function(vn){var zn=Ra.d2r(vn);zn!==void 0&&p.call("_guiRelayout",ua,Ja,zn)})}}}function Ct(da,Ea){if(he._transitioningWithDuration)return!1;var ua=Math.max(0,Math.min(Fe,It*da+Pt)),ba=Math.max(0,Math.min(De,Ot*Ea+et)),Ra=Math.abs(ua-Pt),Oa=Math.abs(ba-et);function Ja(){mt="",rt.r=rt.l,rt.t=rt.b,Bt.attr("d","M0,0Z")}if(rt.l=Math.min(Pt,ua),rt.r=Math.max(Pt,ua),rt.t=Math.min(et,ba),rt.b=Math.max(et,ba),Ue.isSubplotConstrained)Ra>V||Oa>V?(mt="xy",Ra/Fe>Oa/De?(Oa=Ra*De/Fe,et>ba?rt.t=et-Oa:rt.b=et+Oa):(Ra=Oa*Fe/De,Pt>ua?rt.l=Pt-Ra:rt.r=Pt+Ra),Bt.attr("d",ae(rt))):Ja();else if(Ne.isSubplotConstrained)if(Ra>V||Oa>V){mt="xy";var Fa=Math.min(rt.l/Fe,(De-rt.b)/De),qa=Math.max(rt.r/Fe,(De-rt.t)/De);rt.l=Fa*Fe,rt.r=qa*Fe,rt.b=(1-Fa)*De,rt.t=(1-qa)*De,Bt.attr("d",ae(rt))}else Ja();else!Oe||Oa<Math.min(Math.max(.6*Ra,R),V)?Ra<R||!ke?Ja():(rt.t=0,rt.b=De,mt="x",Bt.attr("d",function(Ka,vn){return"M"+(Ka.l-.5)+","+(vn-V-.5)+"h-3v"+(2*V+1)+"h3ZM"+(Ka.r+.5)+","+(vn-V-.5)+"h3v"+(2*V+1)+"h-3Z"}(rt,et))):!ke||Ra<Math.min(.6*Oa,V)?(rt.l=0,rt.r=Fe,mt="y",Bt.attr("d",function(Ka,vn){return"M"+(vn-V-.5)+","+(Ka.t-.5)+"v-3h"+(2*V+1)+"v3ZM"+(vn-V-.5)+","+(Ka.b+.5)+"v3h"+(2*V+1)+"v-3Z"}(rt,Pt))):(mt="xy",Bt.attr("d",ae(rt)));rt.w=rt.r-rt.l,rt.h=rt.b-rt.t,mt&&(Je=!0),he._dragged=Je,le(St,Bt,rt,nt,_t,We),gt(),he.emit("plotly_relayouting",ut),_t=!0}function gt(){ut={},mt!=="xy"&&mt!=="x"||(W(ge,rt.l/Fe,rt.r/Fe,ut,Ue.xaxes),ta("x",ut)),mt!=="xy"&&mt!=="y"||(W(Me,(De-rt.b)/De,(De-rt.t)/De,ut,Ue.yaxes),ta("y",ut))}function $t(){gt(),se(he),va(),ce(he)}Xe.prepFn=function(da,Ea,ua){var ba=Xe.dragmode,Ra=he._fullLayout.dragmode;Ra!==ba&&(Xe.dragmode=Ra),vt(),It=he._fullLayout._invScaleX,Ot=he._fullLayout._invScaleY,Re||(ot?da.shiftKey?Ra==="pan"?Ra="zoom":x(Ra)||(Ra="pan"):da.ctrlKey&&(Ra="pan"):Ra="pan"),S(Ra)?Xe.minDrag=1:Xe.minDrag=void 0,x(Ra)?(Xe.xaxes=ge,Xe.yaxes=Me,M(da,Ea,ua,Xe,Ra)):(Xe.clickFn=Et,x(ba)&&yt(),Re||(Ra==="zoom"?(Xe.moveFn=Ct,Xe.doneFn=$t,Xe.minDrag=1,function(Oa,Ja,Fa){var qa=Dt.getBoundingClientRect();Pt=Ja-qa.left,et=Fa-qa.top,he._fullLayout._calcInverseTransform(he);var Ka=f.apply3DTransform(he._fullLayout._invTransform)(Pt,et);Pt=Ka[0],et=Ka[1],rt={l:Pt,r:Pt,w:0,t:et,b:et,h:0},We=he._hmpixcount?he._hmlumcount/he._hmpixcount:y(he._fullLayout.plot_bgcolor).getLuminance(),_t=!1,mt="xy",Je=!1,St=J(Ft,We,Se,ze,nt="M0,0H"+Fe+"V"+De+"H0V0"),Bt=ee(Ft,Se,ze)}(0,Ea,ua)):Ra==="pan"&&(Xe.moveFn=Qt,Xe.doneFn=va))),he._fullLayout._redrag=function(){var Oa=he._dragdata;if(Oa&&Oa.element===Dt){var Ja=he._fullLayout.dragmode;x(Ja)||(vt(),ia([0,0,Fe,De]),Xe.moveFn(Oa.dx,Oa.dy))}}},b.init(Xe);var Lt=[0,0,Fe,De],jt=null,Rt=F.REDRAWDELAY,Vt=pe.mainplot?he._fullLayout._plots[pe.mainplot]:pe;function Qt(da,Ea){if(da*=It,Ea*=Ot,!he._transitioningWithDuration){if(he._fullLayout._replotting=!0,ke==="ew"||Oe==="ns"){var ua=ke?-da:0,ba=Oe?-Ea:0;if(Ne.isSubplotConstrained){if(ke&&Oe){var Ra=(da/Fe-Ea/De)/2;ua=-(da=Ra*Fe),ba=-(Ea=-Ra*De)}Oe?ua=-ba*Fe/De:ba=-ua*De/Fe}return ke&&(Q(ge,da),ta("x")),Oe&&(Q(Me,Ea),ta("y")),ia([ua,ba,Fe,De]),_a(),void he.emit("plotly_relayouting",ut)}var Oa,Ja,Fa=ke==="w"==(Oe==="n")?1:-1;if(ke&&Oe&&(Ue.isSubplotConstrained||Ne.isSubplotConstrained)){var qa=(da/Fe+Fa*Ea/De)/2;da=qa*Fe,Ea=Fa*qa*De}if(ke==="w"?da=cn(ge,0,da):ke==="e"?da=cn(ge,1,-da):ke||(da=0),Oe==="n"?Ea=cn(Me,1,Ea):Oe==="s"?Ea=cn(Me,0,-Ea):Oe||(Ea=0),Oa=ke==="w"?da:0,Ja=Oe==="n"?Ea:0,Ue.isSubplotConstrained&&!Ne.isSubplotConstrained||Ne.isSubplotConstrained&&ke&&Oe&&Fa>0){var Ka;if(Ne.isSubplotConstrained||!ke&&Oe.length===1){for(Ka=0;Ka<ge.length;Ka++)ge[Ka].range=ge[Ka]._r.slice(),z(ge[Ka],1-Ea/De);Oa=(da=Ea*Fe/De)/2}if(Ne.isSubplotConstrained||!Oe&&ke.length===1){for(Ka=0;Ka<Me.length;Ka++)Me[Ka].range=Me[Ka]._r.slice(),z(Me[Ka],1-da/Fe);Ja=(Ea=da*De/Fe)/2}}Ne.isSubplotConstrained&&Oe||ta("x"),Ne.isSubplotConstrained&&ke||ta("y");var vn=Fe-da,zn=De-Ea;!Ne.isSubplotConstrained||ke&&Oe||(ke?(Ja=Oa?0:da*De/Fe,zn=vn*De/Fe):(Oa=Ja?0:Ea*Fe/De,vn=zn*Fe/De)),ia([Oa,Ja,vn,zn]),_a(),he.emit("plotly_relayouting",ut)}function cn(hn,un,Bn){for(var ha,ma,Ya=1-un,Ba=0;Ba<hn.length;Ba++){var Xa=hn[Ba];if(!Xa.fixedrange){ha=Xa,ma=Xa._rl[Ya]+(Xa._rl[un]-Xa._rl[Ya])/X(Bn/Xa._length);var dn=Xa.l2r(ma);dn!==!1&&dn!==void 0&&(Xa.range[un]=dn)}}return ha._length*(ha._rl[un]-ma)/(ha._rl[un]-ha._rl[Ya])}}function ta(da,Ea){for(var ua=Ne.isSubplotConstrained?{x:Me,y:ge}[da]:Ne[da+"axes"],ba=Ne.isSubplotConstrained?{x:ge,y:Me}[da]:[],Ra=0;Ra<ua.length;Ra++){var Oa=ua[Ra],Ja=Oa._id,Fa=Ne.xLinks[Ja]||Ne.yLinks[Ja],qa=ba[0]||Ce[Fa]||ye[Fa];qa&&(Ea?(Ea[Oa._name+".range[0]"]=Ea[qa._name+".range[0]"],Ea[Oa._name+".range[1]"]=Ea[qa._name+".range[1]"]):Oa.range=qa.range.slice())}}function _a(){var da,Ea=[];function ua(Ja){for(da=0;da<Ja.length;da++)Ja[da].fixedrange||Ea.push(Ja[da]._id)}function ba(Ja,Fa){for(da=0;da<Ja.length;da++){var qa=Ja[da],Ka=qa[Fa];qa.fixedrange||Ka.tickmode!=="sync"||Ea.push(Ka._id)}}for(je&&(ua(ge),ua(Ue.xaxes),ua(Ne.xaxes),ba(pe.overlays,"xaxis")),Ze&&(ua(Me),ua(Ue.yaxes),ua(Ne.yaxes),ba(pe.overlays,"yaxis")),ut={},da=0;da<Ea.length;da++){var Ra=Ea[da],Oa=E(he,Ra);h.drawOne(he,Oa,{skipTitle:!0}),ut[Oa._name+".range[0]"]=Oa.range[0],ut[Oa._name+".range[1]"]=Oa.range[1]}h.redrawComponents(he,Ea)}function ka(){if(!he._transitioningWithDuration){var da=he._context.doubleClick,Ea=[];ke&&(Ea=Ea.concat(ge)),Oe&&(Ea=Ea.concat(Me)),Ne.xaxes&&(Ea=Ea.concat(Ne.xaxes)),Ne.yaxes&&(Ea=Ea.concat(Ne.yaxes));var ua,ba,Ra={};if(da==="reset+autosize")for(da="autosize",ba=0;ba<Ea.length;ba++){var Oa=(ua=Ea[ba])._rangeInitial0,Ja=ua._rangeInitial1,Fa=Oa!==void 0||Ja!==void 0;if(Fa&&(Oa!==void 0&&Oa!==ua.range[0]||Ja!==void 0&&Ja!==ua.range[1])||!Fa&&ua.autorange!==!0){da="reset";break}}if(da==="autosize")for(ba=0;ba<Ea.length;ba++)(ua=Ea[ba]).fixedrange||(Ra[ua._name+".autorange"]=!0);else if(da==="reset"){for((ke||Ue.isSubplotConstrained)&&(Ea=Ea.concat(Ue.xaxes)),Oe&&!Ue.isSubplotConstrained&&(Ea=Ea.concat(Ue.yaxes)),Ue.isSubplotConstrained&&(ke?Oe||(Ea=Ea.concat(Me)):Ea=Ea.concat(ge)),ba=0;ba<Ea.length;ba++)if(!(ua=Ea[ba]).fixedrange){var qa=ua._name,Ka=ua._autorangeInitial;ua._rangeInitial0===void 0&&ua._rangeInitial1===void 0?Ra[qa+".autorange"]=!0:ua._rangeInitial0===void 0?(Ra[qa+".autorange"]=Ka,Ra[qa+".range"]=[null,ua._rangeInitial1]):ua._rangeInitial1===void 0?(Ra[qa+".range"]=[ua._rangeInitial0,null],Ra[qa+".autorange"]=Ka):Ra[qa+".range"]=[ua._rangeInitial0,ua._rangeInitial1]}}he.emit("plotly_doubleclick",null),p.call("_guiRelayout",he,Ra)}}function va(){ia([0,0,Fe,De]),f.syncOrAsync([A.previousPromises,function(){he._fullLayout._replotting=!1,p.call("_guiRelayout",he,ut)}],he)}function ia(da){var Ea,ua,ba,Ra,Oa=he._fullLayout,Ja=Oa._plots,Fa=Oa._subplots.cartesian;if(it&&p.subplotsRegistry.splom.drag(he),Ye){for(Ea=0;Ea<Fa.length;Ea++)if(ba=(ua=Ja[Fa[Ea]]).xaxis,Ra=ua.yaxis,ua._scene){ba.limitRange&&ba.limitRange(),Ra.limitRange&&Ra.limitRange();var qa=f.simpleMap(ba.range,ba.r2l),Ka=f.simpleMap(Ra.range,Ra.r2l);ua._scene.update({range:[qa[0],Ka[0],qa[1],Ka[1]]})}}if((it||Ye)&&(T(he),C(he)),dt){var vn=da[2]/$e._length,zn=da[3]/Te._length;for(Ea=0;Ea<Fa.length;Ea++){ba=(ua=Ja[Fa[Ea]]).xaxis,Ra=ua.yaxis;var cn,hn,un,Bn,ha=(je||Ne.isSubplotConstrained)&&!ba.fixedrange&&Ce[ba._id],ma=(Ze||Ne.isSubplotConstrained)&&!Ra.fixedrange&&ye[Ra._id];if(ha?(cn=vn,un=Pe||Ne.isSubplotConstrained?da[0]:wa(ba,cn)):Ne.xaHash[ba._id]?(cn=vn,un=da[0]*ba._length/$e._length):Ne.yaHash[ba._id]?(cn=zn,un=Oe==="ns"?-da[1]*ba._length/Te._length:wa(ba,cn,{n:"top",s:"bottom"}[Oe])):un=Da(ba,cn=fa(ba,vn,zn)),cn>1&&(ba.maxallowed!==void 0&&je===(ba.range[0]<ba.range[1]?"e":"w")||ba.minallowed!==void 0&&je===(ba.range[0]<ba.range[1]?"w":"e"))&&(cn=1,un=0),ma?(hn=zn,Bn=Ee||Ne.isSubplotConstrained?da[1]:wa(Ra,hn)):Ne.yaHash[Ra._id]?(hn=zn,Bn=da[1]*Ra._length/Te._length):Ne.xaHash[Ra._id]?(hn=vn,Bn=ke==="ew"?-da[0]*Ra._length/$e._length:wa(Ra,hn,{e:"right",w:"left"}[ke])):Bn=Da(Ra,hn=fa(Ra,vn,zn)),hn>1&&(Ra.maxallowed!==void 0&&Ze===(Ra.range[0]<Ra.range[1]?"n":"s")||Ra.minallowed!==void 0&&Ze===(Ra.range[0]<Ra.range[1]?"s":"n"))&&(hn=1,Bn=0),cn||hn){cn||(cn=1),hn||(hn=1);var Ya=ba._offset-un/cn,Ba=Ra._offset-Bn/hn;ua.clipRect.call(u.setTranslate,un,Bn).call(u.setScale,cn,hn),ua.plot.call(u.setTranslate,Ya,Ba).call(u.setScale,1/cn,1/hn),cn===ua.xScaleFactor&&hn===ua.yScaleFactor||(u.setPointGroupScale(ua.zoomScalePts,cn,hn),u.setTextPointsScale(ua.zoomScaleTxt,cn,hn)),u.hideOutsideRangePoints(ua.clipOnAxisFalseTraces,ua),ua.xScaleFactor=cn,ua.yScaleFactor=hn}}}}function fa(da,Ea,ua){return da.fixedrange?0:je&&Ue.xaHash[da._id]?Ea:Ze&&(Ue.isSubplotConstrained?Ue.xaHash:Ue.yaHash)[da._id]?ua:0}function Da(da,Ea){return Ea?(da.range=da._r.slice(),z(da,Ea),wa(da,Ea)):0}function wa(da,Ea,ua){return da._length*(1-Ea)*k[ua||da.constraintoward||"middle"]}return Ee.length*Pe.length!=1&&ie(Dt,function(da){if(he._context._scrollZoom.cartesian||he._fullLayout._enablescrollzoom){if(yt(),he._transitioningWithDuration)return da.preventDefault(),void da.stopPropagation();vt(),clearTimeout(jt);var Ea=-da.deltaY;if(isFinite(Ea)||(Ea=da.wheelDelta/10),isFinite(Ea)){var ua,ba=Math.exp(-Math.min(Math.max(Ea,-20),20)/200),Ra=Vt.draglayer.select(".nsewdrag").node().getBoundingClientRect(),Oa=(da.clientX-Ra.left)/Ra.width,Ja=(Ra.bottom-da.clientY)/Ra.height;if(je){for(Pe||(Oa=.5),ua=0;ua<ge.length;ua++)Fa(ge[ua],Oa,ba);ta("x"),Lt[2]*=ba,Lt[0]+=Lt[2]*Oa*(1/ba-1)}if(Ze){for(Ee||(Ja=.5),ua=0;ua<Me.length;ua++)Fa(Me[ua],Ja,ba);ta("y"),Lt[3]*=ba,Lt[1]+=Lt[3]*(1-Ja)*(1/ba-1)}ia(Lt),_a(),he.emit("plotly_relayouting",ut),jt=setTimeout(function(){he._fullLayout&&(Lt=[0,0,Fe,De],va())},Rt),da.preventDefault()}else f.log("Did not find wheel motion attributes: ",da)}function Fa(qa,Ka,vn){if(!qa.fixedrange){var zn=f.simpleMap(qa.range,qa.r2l),cn=zn[0]+(zn[1]-zn[0])*Ka;qa.range=zn.map(function(hn){return qa.l2r(cn+(hn-cn)*vn)})}}}),Dt},makeDragger:U,makeRectDragger:Z,makeZoombox:J,makeCorners:ee,updateZoombox:le,xyCorners:ae,transitionZoombox:oe,removeZoombox:se,showDoubleClickNotifier:ce,attachWheelEventHandler:ie}},95284:function(c,m,a){var v=a(45568),f=a(32141),n=a(14751),y=a(27983),_=a(51680).makeDragBox,p=a(54826).DRAGGERSIZE;m.initInteractions=function(l){var o=l._fullLayout;if(l._context.staticPlot)v.select(l).selectAll(".drag").remove();else if(o._has("cartesian")||o._has("splom")){Object.keys(o._plots||{}).sort(function(u,d){if((o._plots[u].mainplot&&!0)===(o._plots[d].mainplot&&!0)){var h=u.split("y"),g=d.split("y");return h[0]===g[0]?Number(h[1]||1)-Number(g[1]||1):Number(h[0]||1)-Number(g[0]||1)}return o._plots[u].mainplot?1:-1}).forEach(function(u){var d=o._plots[u],h=d.xaxis,g=d.yaxis;if(!d.mainplot){var b=_(l,d,h._offset,g._offset,h._length,g._length,"ns","ew");b.onmousemove=function(S){l._fullLayout._rehover=function(){l._fullLayout._hoversubplot===u&&l._fullLayout._plots[u]&&f.hover(l,S,u)},f.hover(l,S,u),l._fullLayout._lasthover=b,l._fullLayout._hoversubplot=u},b.onmouseout=function(S){l._dragging||(l._fullLayout._hoversubplot=null,n.unhover(l,S))},l._context.showAxisDragHandles&&(_(l,d,h._offset-p,g._offset-p,p,p,"n","w"),_(l,d,h._offset+h._length,g._offset-p,p,p,"n","e"),_(l,d,h._offset-p,g._offset+g._length,p,p,"s","w"),_(l,d,h._offset+h._length,g._offset+g._length,p,p,"s","e"))}if(l._context.showAxisDragHandles){if(u===h._mainSubplot){var w=h._mainLinePosition;h.side==="top"&&(w-=p),_(l,d,h._offset+.1*h._length,w,.8*h._length,p,"","ew"),_(l,d,h._offset,w,.1*h._length,p,"","w"),_(l,d,h._offset+.9*h._length,w,.1*h._length,p,"","e")}if(u===g._mainSubplot){var x=g._mainLinePosition;g.side!=="right"&&(x-=p),_(l,d,x,g._offset+.1*g._length,p,.8*g._length,"ns",""),_(l,d,x,g._offset+.9*g._length,p,.1*g._length,"s",""),_(l,d,x,g._offset,p,.1*g._length,"n","")}}});var s=o._hoverlayer.node();s.onmousemove=function(u){u.target=l._fullLayout._lasthover,f.hover(l,u,o._hoversubplot)},s.onclick=function(u){u.target=l._fullLayout._lasthover,f.click(l,u)},s.onmousedown=function(u){l._fullLayout._lasthover.onmousedown(u)},m.updateFx(l)}},m.updateFx=function(l){var o=l._fullLayout,s=o.dragmode==="pan"?"move":"crosshair";y(o._draggers,s)}},20706:function(c,m,a){var v=a(33626),f=a(34809),n=a(5975);c.exports=function(y){return function(_,p){var l=_[y];if(Array.isArray(l))for(var o=v.subplotsRegistry.cartesian,s=o.idRegex,u=p._subplots,d=u.xaxis,h=u.yaxis,g=u.cartesian,b=p._has("cartesian")||p._has("gl2d"),w=0;w<l.length;w++){var x=l[w];if(f.isPlainObject(x)){var S=n.cleanId(x.xref,"x",!1),k=n.cleanId(x.yref,"y",!1),T=s.x.test(S),C=s.y.test(k);if(T||C){b||f.pushUnique(p._basePlotModules,o);var A=!1;T&&d.indexOf(S)===-1&&(d.push(S),A=!0),C&&h.indexOf(k)===-1&&(h.push(k),A=!0),A&&T&&C&&g.push(S+k)}}}}}},37703:function(c,m,a){var v=a(45568),f=a(33626),n=a(34809),y=a(44122),_=a(62203),p=a(4173).eV,l=a(5975),o=a(54826),s=a(62972),u=n.ensureSingle;function d(S,k,T){return n.ensureSingle(S,k,T,function(C){C.datum(T)})}var h=o.zindexSeparator;function g(S,k,T,C,A){for(var E,M,I,N=o.traceLayerClasses,z=S._fullLayout,F=z._zindices,R=z._modules,V=[],$=[],U=0;U<F.length;U++)for(var Z=F[U],q=0;q<R.length;q++){var W=(E=R[q]).name,Q=f.modules[W].categories;if(Q.svg){var X=E.layerName||W+"layer",J=X+(U?Number(U)+1:""),ee=E.plot;I=(M=p(T,ee,Z))[0],T=M[1],I.length&&V.push({i:N.indexOf(X),zindex:U,className:J,plotMethod:ee,cdModule:I}),Q.zoomScale&&$.push("."+J)}}V.sort(function(se,ce){return(se.zindex||0)-(ce.zindex||0)||se.i-ce.i});var le=k.plot.selectAll("g.mlayer").data(V,function(se){return se.className});if(le.enter().append("g").attr("class",function(se){return se.className}).classed("mlayer",!0).classed("rangeplot",k.isRangePlot),le.exit().remove(),le.order(),le.each(function(se){var ce=v.select(this),ae=se.className;se.plotMethod(S,k,se.cdModule,ce,C,A),o.clipOnAxisFalseQuery.indexOf("."+ae)===-1&&_.setClipUrl(ce,k.layerClipId,S)}),z._has("scattergl")&&(E=f.getModule("scattergl"),I=p(T,E)[0],E.plot(S,k,I)),!S._context.staticPlot&&(k._hasClipOnAxisFalse&&(k.clipOnAxisFalseTraces=k.plot.selectAll(o.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),$.length)){var oe=k.plot.selectAll($.join(",")).selectAll(".trace");k.zoomScalePts=oe.selectAll("path.point"),k.zoomScaleTxt=oe.selectAll(".textpoint")}}function b(S,k){var T=S._fullLayout,C=k.plotgroup,A=k.id,E=A.indexOf(h)!==-1,M=o.layerValue2layerClass[k.xaxis.layer],I=o.layerValue2layerClass[k.yaxis.layer],N=T._hasOnlyLargeSploms;if(!k.mainplot||T._zindices.length>1)if(N)k.xlines=u(C,"path","xlines-above"),k.ylines=u(C,"path","ylines-above"),k.xaxislayer=u(C,"g","xaxislayer-above"),k.yaxislayer=u(C,"g","yaxislayer-above");else{if(!E){var z=u(C,"g","layer-subplot");k.shapelayer=u(z,"g","shapelayer"),k.imagelayer=u(z,"g","imagelayer"),k.minorGridlayer=u(C,"g","minor-gridlayer"),k.gridlayer=u(C,"g","gridlayer"),k.zerolinelayer=u(C,"g","zerolinelayer");var F=u(C,"g","layer-between");k.shapelayerBetween=u(F,"g","shapelayer"),k.imagelayerBetween=u(F,"g","imagelayer"),u(C,"path","xlines-below"),u(C,"path","ylines-below"),k.overlinesBelow=u(C,"g","overlines-below"),u(C,"g","xaxislayer-below"),u(C,"g","yaxislayer-below"),k.overaxesBelow=u(C,"g","overaxes-below")}k.overplot=u(C,"g","overplot"),k.plot=u(k.overplot,"g",A),E||(k.xlines=u(C,"path","xlines-above"),k.ylines=u(C,"path","ylines-above"),k.overlinesAbove=u(C,"g","overlines-above"),u(C,"g","xaxislayer-above"),u(C,"g","yaxislayer-above"),k.overaxesAbove=u(C,"g","overaxes-above"),k.xlines=C.select(".xlines-"+M),k.ylines=C.select(".ylines-"+I),k.xaxislayer=C.select(".xaxislayer-"+M),k.yaxislayer=C.select(".yaxislayer-"+I))}else{var R=k.mainplotinfo,V=R.plotgroup,$=A+"-x",U=A+"-y";k.minorGridlayer=R.minorGridlayer,k.gridlayer=R.gridlayer,k.zerolinelayer=R.zerolinelayer,u(R.overlinesBelow,"path",$),u(R.overlinesBelow,"path",U),u(R.overaxesBelow,"g",$),u(R.overaxesBelow,"g",U),k.plot=u(R.overplot,"g",A),u(R.overlinesAbove,"path",$),u(R.overlinesAbove,"path",U),u(R.overaxesAbove,"g",$),u(R.overaxesAbove,"g",U),k.xlines=V.select(".overlines-"+M).select("."+$),k.ylines=V.select(".overlines-"+I).select("."+U),k.xaxislayer=V.select(".overaxes-"+M).select("."+$),k.yaxislayer=V.select(".overaxes-"+I).select("."+U)}E||(N||(d(k.minorGridlayer,"g",k.xaxis._id),d(k.minorGridlayer,"g",k.yaxis._id),k.minorGridlayer.selectAll("g").map(function(Z){return Z[0]}).sort(l.idSort),d(k.gridlayer,"g",k.xaxis._id),d(k.gridlayer,"g",k.yaxis._id),k.gridlayer.selectAll("g").map(function(Z){return Z[0]}).sort(l.idSort)),k.xlines.style("fill","none").classed("crisp",!0),k.ylines.style("fill","none").classed("crisp",!0))}function w(S,k){if(S){var T={};for(var C in S.each(function(I){var N=I[0];v.select(this).remove(),x(N,k),T[N]=!0}),k._plots)for(var A=k._plots[C].overlays||[],E=0;E<A.length;E++){var M=A[E];T[M.id]&&M.plot.selectAll(".trace").remove()}}}function x(S,k){k._draggers.selectAll("g."+S).remove(),k._defs.select("#clip"+k._uid+S+"plot").remove()}m.name="cartesian",m.attr=["xaxis","yaxis"],m.idRoot=["x","y"],m.idRegex=o.idRegex,m.attrRegex=o.attrRegex,m.attributes=a(55126),m.layoutAttributes=a(25829),m.supplyLayoutDefaults=a(74098),m.transitionAxes=a(84982),m.finalizeSubplots=function(S,k){var T,C,A,E=k._subplots,M=E.xaxis,I=E.yaxis,N=E.cartesian,z=N.concat(E.gl2d||[]),F={},R={};for(T=0;T<z.length;T++){var V=z[T].split("y");F[V[0]]=1,R["y"+V[1]]=1}for(T=0;T<M.length;T++)F[C=M[T]]||(A=(S[l.id2name(C)]||{}).anchor,o.idRegex.y.test(A)||(A="y"),N.push(C+A),z.push(C+A),R[A]||(R[A]=1,n.pushUnique(I,A)));for(T=0;T<I.length;T++)R[A=I[T]]||(C=(S[l.id2name(A)]||{}).anchor,o.idRegex.x.test(C)||(C="x"),N.push(C+A),z.push(C+A),F[C]||(F[C]=1,n.pushUnique(M,C)));if(!z.length){for(var $ in C="",A="",S)o.attrRegex.test($)&&($.charAt(0)==="x"?(!C||+$.substr(5)<+C.substr(5))&&(C=$):(!A||+$.substr(5)<+A.substr(5))&&(A=$));C=C?l.name2id(C):"x",A=A?l.name2id(A):"y",M.push(C),I.push(A),N.push(C+A)}},m.plot=function(S,k,T,C){var A,E=S._fullLayout,M=E._subplots.cartesian,I=S.calcdata;if(!Array.isArray(k))for(k=[],A=0;A<I.length;A++)k.push(A);for(var N=E._zindices,z=0;z<N.length;z++){var F=N[z];for(A=0;A<M.length;A++){var R=M[A],V=E._plots[R];if(z>0){var $=V.id;if($.indexOf(h)!==-1)continue;$+=h+(z+1),V=n.extendFlat({},V,{id:$,plot:E._cartesianlayer.selectAll(".subplot").select("."+$)})}for(var U,Z=[],q=0;q<I.length;q++){var W=I[q],Q=W[0].trace;F===(Q.zorder||0)&&Q.xaxis+Q.yaxis===R&&((k.indexOf(Q.index)!==-1||Q.carpet)&&(U&&U[0].trace.xaxis+U[0].trace.yaxis===R&&["tonextx","tonexty","tonext"].indexOf(Q.fill)!==-1&&Z.indexOf(U)===-1&&Z.push(U),Z.push(W)),U=W)}g(S,V,Z,T,C)}}},m.clean=function(S,k,T,C){var A,E,M,I=C._plots||{},N=k._plots||{},z=C._subplots||{};if(C._hasOnlyLargeSploms&&!k._hasOnlyLargeSploms)for(M in I)(A=I[M]).plotgroup&&A.plotgroup.remove();var F=C._has&&C._has("gl"),R=k._has&&k._has("gl");if(F&&!R)for(M in I)(A=I[M])._scene&&A._scene.destroy();if(z.xaxis&&z.yaxis){var V=l.listIds({_fullLayout:C});for(E=0;E<V.length;E++){var $=V[E];k[l.id2name($)]||C._infolayer.selectAll(".g-"+$+"title").remove()}}var U=C._has&&C._has("cartesian"),Z=k._has&&k._has("cartesian");if(U&&!Z)w(C._cartesianlayer.selectAll(".subplot"),C),C._defs.selectAll(".axesclip").remove(),delete C._axisConstraintGroups,delete C._axisMatchGroups;else if(z.cartesian)for(E=0;E<z.cartesian.length;E++){var q=z.cartesian[E];if(q.indexOf(h)===-1&&!N[q]){var W="."+q+",."+q+"-x,."+q+"-y";C._cartesianlayer.selectAll(W).remove(),x(q,C)}}},m.drawFramework=function(S){var k,T=S._fullLayout,C=S.calcdata,A={};for(k=0;k<C.length;k++){var E=C[k][0],M=E.trace.zorder||0;A[M]||(A[M]=[]),A[M].push(E)}var I=Object.keys(A).map(Number).sort(n.sorterAsc);I.length||(I=[0]),T._zindices=I;var N=function(U){var Z,q,W,Q,X,J,ee=U._fullLayout,le=ee._zindices.length,oe=ee._subplots.cartesian,se=oe.length,ce=[],ae=[];for(Z=0;Z<se;Z++){W=oe[Z],X=(Q=ee._plots[W]).xaxis,J=Q.yaxis;var ne=X._mainAxis,ie=J._mainAxis,ue=ne._id+ie._id,he=ee._plots[ue];Q.overlays=[],ue!==W&&he?(Q.mainplot=ue,Q.mainplotinfo=he,ae.push(W)):(Q.mainplot=void 0,Q.mainplotinfo=void 0,ce.push(W))}for(Z=0;Z<ae.length;Z++)W=ae[Z],(Q=ee._plots[W]).mainplotinfo.overlays.push(Q);var pe=ce.concat(ae),me=[];for(Z=0;Z<se;Z++){W=pe[Z],X=(Q=ee._plots[W]).xaxis,J=Q.yaxis;for(var _e=[],xe=1;xe<=le;xe++){var we="";for(xe>1&&(we+=h+xe),_e.push(W+we),q=0;q<Q.overlays.length;q++)_e.push(Q.overlays[q].id+we)}_e=_e.concat([X.layer,J.layer,X.overlaying||"",J.overlaying||""]),me.push(_e)}return me}(S),z=N.length,F=[];for(k=0;k<z;k++)F[k]=N[k].slice();for(var R=1;R<I.length;R++){var V=[];for(k=0;k<z;k++)V[k]=N[k].slice(),V[k][0]+=h+(R+1);F=F.concat(V)}var $=T._cartesianlayer.selectAll(".subplot").data(F,String);$.enter().append("g").attr("class",function(U){return"subplot "+U[0]}),$.order(),$.exit().call(w,T),$.each(function(U){var Z=U[0],q=Z.indexOf(h),W=q!==-1,Q=W?Z.slice(0,q):Z,X=T._plots[Z];X||(X=n.extendFlat({},T._plots[Q]))&&(X.id=Z,T._plots[Z]=X,T._subplots.cartesian.push(Z)),X&&(X.plotgroup=v.select(this),b(S,X),W||(X.draglayer=u(T._draggers,"g",Z)))})},m.rangePlot=function(S,k,T){b(S,k),g(S,k,T),y.style(S)},m.toSVG=function(S){var k=S._fullLayout._glimages,T=v.select(S).selectAll(".svg-container");T.filter(function(C,A){return A===T.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus").each(function(){var C=this,A=C.toDataURL("image/png");k.append("svg:image").attr({xmlns:s.svg,"xlink:href":A,preserveAspectRatio:"none",x:0,y:0,width:C.style.width,height:C.style.height})})},m.updateFx=a(95284).updateFx},25829:function(c,m,a){var v=a(80337),f=a(10229),n=a(94850).T,y=a(93049).extendFlat,_=a(78032).templatedArray,p=a(80712).descriptionWithDates,l=a(63821).ONEDAY,o=a(54826),s=o.HOUR_PATTERN,u=o.WEEKDAY_PATTERN,d={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},h=y({},d,{values:d.values.slice().concat(["sync"])});function g(N){return{valType:"integer",min:0,dflt:N?5:0,editType:"ticks"}}var b={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},w={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},x={valType:"data_array",editType:"ticks"},S={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function k(N){var z={valType:"number",min:0,editType:"ticks"};return N||(z.dflt=5),z}function T(N){var z={valType:"number",min:0,editType:"ticks"};return N||(z.dflt=1),z}var C={valType:"color",dflt:f.defaultLine,editType:"ticks"},A={valType:"color",dflt:f.lightLine,editType:"ticks"};function E(N){var z={valType:"number",min:0,editType:"ticks"};return N||(z.dflt=1),z}var M=y({},n,{editType:"ticks"}),I={valType:"boolean",editType:"ticks"};c.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:f.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:v({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed","min reversed","max reversed","min","max"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},autorangeoptions:{minallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmin:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},clipmax:{valType:"any",editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},include:{valType:"any",arrayOk:!0,editType:"plot",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},editType:"plot"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},minallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},maxallowed:{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[o.idRegex.x.toString(),o.idRegex.y.toString(),!1],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[o.idRegex.x.toString(),o.idRegex.y.toString()],editType:"calc"},rangebreaks:_("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[u,s,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:l},editType:"calc"}),tickmode:h,nticks:g(),tick0:b,dtick:w,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:x,ticktext:{valType:"data_array",editType:"ticks"},ticks:S,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:k(),tickwidth:T(),tickcolor:C,showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},labelalias:{valType:"any",dflt:!1,editType:"ticks"},automargin:{valType:"flaglist",flags:["height","width","left","right","top","bottom"],extras:[!0,!1],dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:y({},n,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"hovered data",editType:"none"},tickfont:v({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},autotickangles:{valType:"info_array",freeLength:!0,items:{valType:"angle"},dflt:[0,30,90],editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks",description:p("tick label")},tickformatstops:_("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none",description:p("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:f.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:I,gridcolor:A,gridwidth:E(),griddash:M,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:f.defaultLine,editType:"ticks"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:f.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",o.idRegex.x.toString(),o.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",o.idRegex.x.toString(),o.idRegex.y.toString()],editType:"plot"},minor:{tickmode:d,nticks:g("minor"),tick0:b,dtick:w,tickvals:x,ticks:S,ticklen:k("minor"),tickwidth:T("minor"),tickcolor:C,gridcolor:A,gridwidth:E("minor"),griddash:M,showgrid:I,editType:"ticks"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc",_deprecated:{autotick:{valType:"boolean",editType:"ticks"},title:{valType:"string",editType:"ticks"},titlefont:v({editType:"ticks"})}}},74098:function(c,m,a){var v=a(34809),f=a(78766),n=a(36040).isUnifiedHover,y=a(45265),_=a(78032),p=a(6704),l=a(25829),o=a(4392),s=a(97655),u=a(84391),d=a(40957),h=a(5975),g=h.id2name,b=h.name2id,w=a(54826).AX_ID_PATTERN,x=a(33626),S=x.traceIs,k=x.getComponentMethod;function T(C,A,E){Array.isArray(C[A])?C[A].push(E):C[A]=[E]}c.exports=function(C,A,E){var M,I,N=A.autotypenumbers,z={},F={},R={},V={},$={},U={},Z={},q={},W={},Q={};for(M=0;M<E.length;M++){var X=E[M];if(S(X,"cartesian")||S(X,"gl2d")){var J,ee;if(X.xaxis)J=g(X.xaxis),T(z,J,X);else if(X.xaxes)for(I=0;I<X.xaxes.length;I++)T(z,g(X.xaxes[I]),X);if(X.yaxis)ee=g(X.yaxis),T(z,ee,X);else if(X.yaxes)for(I=0;I<X.yaxes.length;I++)T(z,g(X.yaxes[I]),X);X.type==="funnel"?X.orientation==="h"?(J&&(F[J]=!0),ee&&(Z[ee]=!0)):ee&&(R[ee]=!0):X.type==="image"?(ee&&(q[ee]=!0),J&&(q[J]=!0)):(ee&&($[ee]=!0,U[ee]=!0),S(X,"carpet")&&(X.type!=="carpet"||X._cheater)||J&&(V[J]=!0)),X.type==="carpet"&&X._cheater&&J&&(F[J]=!0),S(X,"2dMap")&&(W[J]=!0,W[ee]=!0),S(X,"oriented")&&(Q[X.orientation==="h"?ee:J]=!0)}}var le=A._subplots,oe=le.xaxis,se=le.yaxis,ce=v.simpleMap(oe,g),ae=v.simpleMap(se,g),ne=ce.concat(ae),ie=f.background;oe.length&&se.length&&(ie=v.coerce(C,A,p,"plot_bgcolor"));var ue,he,pe,me,_e,xe=f.combine(ie,A.paper_bgcolor);function we(){var tt=z[ue]||[];_e._traceIndices=tt.map(function(vt){return vt._expandedIndex}),_e._annIndices=[],_e._shapeIndices=[],_e._selectionIndices=[],_e._imgIndices=[],_e._subplotsWith=[],_e._counterAxes=[],_e._name=_e._attr=ue,_e._id=he}function Ee(tt,vt){return v.coerce(me,_e,l,tt,vt)}function Pe(tt,vt){return v.coerce2(me,_e,l,tt,vt)}function $e(tt){return tt==="x"?se:oe}function Te(tt,vt){for(var At=tt==="x"?ce:ae,Dt=[],Pt=0;Pt<At.length;Pt++){var et=At[Pt];et===vt||(C[et]||{}).overlaying||Dt.push(b(et))}return Dt}var Ce={x:$e("x"),y:$e("y")},ye=Ce.x.concat(Ce.y),ge={},Me=[];function Se(){var tt=me.matches;w.test(tt)&&ye.indexOf(tt)===-1&&(ge[tt]=me.type,Me=Object.keys(ge))}var ze=y(C,A),Fe=n(ze);for(M=0;M<ne.length;M++){ue=ne[M],he=b(ue),pe=ue.charAt(0),v.isPlainObject(C[ue])||(C[ue]={}),me=C[ue],_e=_.newContainer(A,ue,pe+"axis"),we();var De=pe==="x"&&!V[ue]&&F[ue]||pe==="y"&&!$[ue]&&R[ue],Ue=pe==="y"&&(!U[ue]&&Z[ue]||q[ue]),Ne={hasMinor:!0,letter:pe,font:A.font,outerTicks:W[ue],showGrid:!Q[ue],data:z[ue]||[],bgColor:xe,calendar:A.calendar,automargin:!0,visibleDflt:De,reverseDflt:Ue,autotypenumbersDflt:N,splomStash:((A._splomAxes||{})[pe]||{})[he],noAutotickangles:pe==="y"};Ee("uirevision",A.uirevision),o(me,_e,Ee,Ne),s(me,_e,Ee,Ne,A);var ke=Fe&&pe===ze.charAt(0),Oe=Pe("spikecolor",Fe?_e.color:void 0),Re=Pe("spikethickness",Fe?1.5:void 0),je=Pe("spikedash",Fe?"dot":void 0),Ze=Pe("spikemode",Fe?"across":void 0),Ye=Pe("spikesnap");Ee("showspikes",!!(ke||Oe||Re||je||Ze||Ye))||(delete _e.spikecolor,delete _e.spikethickness,delete _e.spikedash,delete _e.spikemode,delete _e.spikesnap);var it=g(me.overlaying),dt=[0,1];if(A[it]!==void 0){var ut=g(A[it].anchor);A[ut]!==void 0&&(dt=A[ut].domain)}d(me,_e,Ee,{letter:pe,counterAxes:Ce[pe],overlayableAxes:Te(pe,ue),grid:A.grid,overlayingDomain:dt}),Ee("title.standoff"),Se(),_e._input=me}for(M=0;M<Me.length;){he=Me[M++],pe=(ue=g(he)).charAt(0),v.isPlainObject(C[ue])||(C[ue]={}),me=C[ue],_e=_.newContainer(A,ue,pe+"axis"),we();var It={letter:pe,font:A.font,outerTicks:W[ue],showGrid:!Q[ue],data:[],bgColor:xe,calendar:A.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:N,splomStash:((A._splomAxes||{})[pe]||{})[he]};Ee("uirevision",A.uirevision),_e.type=ge[he]||"linear",s(me,_e,Ee,It,A),d(me,_e,Ee,{letter:pe,counterAxes:Ce[pe],overlayableAxes:Te(pe,ue),grid:A.grid}),Ee("fixedrange"),Se(),_e._input=me}var Ot=k("rangeslider","handleDefaults"),Ft=k("rangeselector","handleDefaults");for(M=0;M<ce.length;M++)ue=ce[M],me=C[ue],_e=A[ue],Ot(C,A,ue),_e.type==="date"&&Ft(me,_e,A,ae,_e.calendar),Ee("fixedrange");for(M=0;M<ae.length;M++){ue=ae[M],me=C[ue],_e=A[ue];var ot=A[g(_e.anchor)];Ee("fixedrange",k("rangeslider","isVisible")(ot))}u.handleDefaults(C,A,{axIds:ye.concat(Me).sort(h.idSort),axHasImage:q})}},97405:function(c,m,a){var v=a(65657).mix,f=a(10229),n=a(34809);c.exports=function(y,_,p,l){var o=(l=l||{}).dfltColor;function s(C,A){return n.coerce2(y,_,l.attributes,C,A)}var u=s("linecolor",o),d=s("linewidth");p("showline",l.showLine||!!u||!!d)||(delete _.linecolor,delete _.linewidth);var h=s("gridcolor",v(o,l.bgColor,l.blend||f.lightFraction).toRgbString()),g=s("gridwidth"),b=s("griddash");if(p("showgrid",l.showGrid||!!h||!!g||!!b)||(delete _.gridcolor,delete _.gridwidth,delete _.griddash),l.hasMinor){var w=s("minor.gridcolor",v(_.gridcolor,l.bgColor,67).toRgbString()),x=s("minor.gridwidth",_.gridwidth||1),S=s("minor.griddash",_.griddash||"solid");p("minor.showgrid",!!w||!!x||!!S)||(delete _.minor.gridcolor,delete _.minor.gridwidth,delete _.minor.griddash)}if(!l.noZeroLine){var k=s("zerolinecolor",o),T=s("zerolinewidth");p("zeroline",l.showGrid||!!k||!!T)||(delete _.zerolinecolor,delete _.zerolinewidth)}}},40957:function(c,m,a){var v=a(10721),f=a(34809);c.exports=function(n,y,_,p){var l,o,s,u,d,h,g=p.counterAxes||[],b=p.overlayableAxes||[],w=p.letter,x=p.grid,S=p.overlayingDomain;x&&(o=x._domains[w][x._axisMap[y._id]],l=x._anchors[y._id],o&&(s=x[w+"side"].split(" ")[0],u=x.domain[w][s==="right"||s==="top"?1:0])),o=o||[0,1],l=l||(v(n.position)?"free":g[0]||"free"),s=s||(w==="x"?"bottom":"left"),u=u||0,d=0,h=!1;var k=f.coerce(n,y,{anchor:{valType:"enumerated",values:["free"].concat(g),dflt:l}},"anchor"),T=f.coerce(n,y,{side:{valType:"enumerated",values:w==="x"?["bottom","top"]:["left","right"],dflt:s}},"side");k==="free"&&(w==="y"&&(_("autoshift")&&(u=T==="left"?S[0]:S[1],h=!y.automargin||y.automargin,d=T==="left"?-3:3),_("shift",d)),_("position",u)),_("automargin",h);var C=!1;if(b.length&&(C=f.coerce(n,y,{overlaying:{valType:"enumerated",values:[!1].concat(b),dflt:!1}},"overlaying")),!C){var A=_("domain",o);A[0]>A[1]-.000244140625&&(y.domain=o),f.noneOrAll(n.domain,y.domain,o),y.tickmode==="sync"&&(y.tickmode="auto")}return _("layer"),y}},54616:function(c,m,a){var v=a(87703);c.exports=function(f,n,y,_,p){p||(p={});var l=p.tickSuffixDflt,o=v(f);y("tickprefix")&&y("showtickprefix",o),y("ticksuffix",l)&&y("showticksuffix",o)}},90259:function(c,m,a){var v=a(75511);c.exports=function(f,n,y,_){var p=n._template||{},l=n.type||p.type||"-";y("minallowed"),y("maxallowed");var o,s=y("range");s||_.noInsiderange||l==="log"||(!(o=y("insiderange"))||o[0]!==null&&o[1]!==null||(n.insiderange=!1,o=void 0),o&&(s=y("range",o)));var u,d=n.getAutorangeDflt(s,_),h=y("autorange",d);!s||(s[0]!==null||s[1]!==null)&&(s[0]!==null&&s[1]!==null||h!=="reversed"&&h!==!0)&&(s[0]===null||h!=="min"&&h!=="max reversed")&&(s[1]===null||h!=="max"&&h!=="min reversed")||(s=void 0,delete n.range,n.autorange=!0,u=!0),u||(h=y("autorange",d=n.getAutorangeDflt(s,_))),h&&(v(y,h,s),l!=="linear"&&l!=="-"||y("rangemode")),n.cleanRange()}},67611:function(c,m,a){var v=a(4530).FROM_BL;c.exports=function(f,n,y){y===void 0&&(y=v[f.constraintoward||"center"]);var _=[f.r2l(f.range[0]),f.r2l(f.range[1])],p=_[0]+(_[1]-_[0])*y;f.range=f._input.range=[f.l2r(p+(_[0]-p)*n),f.l2r(p+(_[1]-p)*n)],f.setScale()}},19091:function(c,m,a){var v=a(45568),f=a(42696).aL,n=a(34809),y=n.numberFormat,_=a(10721),p=n.cleanNumber,l=n.ms2DateTime,o=n.dateTime2ms,s=n.ensureNumber,u=n.isArrayOrTypedArray,d=a(63821),h=d.FP_SAFE,g=d.BADNUM,b=d.LOG_CLIP,w=d.ONEWEEK,x=d.ONEDAY,S=d.ONEHOUR,k=d.ONEMIN,T=d.ONESEC,C=a(5975),A=a(54826),E=A.HOUR_PATTERN,M=A.WEEKDAY_PATTERN;function I(z){return Math.pow(10,z)}function N(z){return z!=null}c.exports=function(z,F){F=F||{};var R=z._id||"x",V=R.charAt(0);function $(ne,ie){if(ne>0)return Math.log(ne)/Math.LN10;if(ne<=0&&ie&&z.range&&z.range.length===2){var ue=z.range[0],he=z.range[1];return .5*(ue+he-2*b*Math.abs(ue-he))}return g}function U(ne,ie,ue,he){if((he||{}).msUTC&&_(ne))return+ne;var pe=o(ne,ue||z.calendar);if(pe===g){if(!_(ne))return g;ne=+ne;var me=Math.floor(10*n.mod(ne+.05,1)),_e=Math.round(ne-me/10);pe=o(new Date(_e))+me/10}return pe}function Z(ne,ie,ue){return l(ne,ie,ue||z.calendar)}function q(ne){return z._categories[Math.round(ne)]}function W(ne){if(N(ne)){if(z._categoriesMap===void 0&&(z._categoriesMap={}),z._categoriesMap[ne]!==void 0)return z._categoriesMap[ne];z._categories.push(typeof ne=="number"?String(ne):ne);var ie=z._categories.length-1;return z._categoriesMap[ne]=ie,ie}return g}function Q(ne){if(z._categoriesMap)return z._categoriesMap[ne]}function X(ne){var ie=Q(ne);return ie!==void 0?ie:_(ne)?+ne:void 0}function J(ne){return _(ne)?+ne:Q(ne)}function ee(ne,ie,ue){return v.round(ue+ie*ne,2)}function le(ne,ie,ue){return(ne-ue)/ie}var oe=function(ne){return _(ne)?ee(ne,z._m,z._b):g},se=function(ne){return le(ne,z._m,z._b)};if(z.rangebreaks){var ce=V==="y";oe=function(ne){if(!_(ne))return g;var ie=z._rangebreaks.length;if(!ie)return ee(ne,z._m,z._b);var ue=ce;z.range[0]>z.range[1]&&(ue=!ue);for(var he=ue?-1:1,pe=he*ne,me=0,_e=0;_e<ie;_e++){var xe=he*z._rangebreaks[_e].min,we=he*z._rangebreaks[_e].max;if(pe<xe)break;if(!(pe>we)){me=pe<(xe+we)/2?_e:_e+1;break}me=_e+1}var Ee=z._B[me]||0;return isFinite(Ee)?ee(ne,z._m2,Ee):0},se=function(ne){var ie=z._rangebreaks.length;if(!ie)return le(ne,z._m,z._b);for(var ue=0,he=0;he<ie&&!(ne<z._rangebreaks[he].pmin);he++)ne>z._rangebreaks[he].pmax&&(ue=he+1);return le(ne,z._m2,z._B[ue])}}z.c2l=z.type==="log"?$:s,z.l2c=z.type==="log"?I:s,z.l2p=oe,z.p2l=se,z.c2p=z.type==="log"?function(ne,ie){return oe($(ne,ie))}:oe,z.p2c=z.type==="log"?function(ne){return I(se(ne))}:se,["linear","-"].indexOf(z.type)!==-1?(z.d2r=z.r2d=z.d2c=z.r2c=z.d2l=z.r2l=p,z.c2d=z.c2r=z.l2d=z.l2r=s,z.d2p=z.r2p=function(ne){return z.l2p(p(ne))},z.p2d=z.p2r=se,z.cleanPos=s):z.type==="log"?(z.d2r=z.d2l=function(ne,ie){return $(p(ne),ie)},z.r2d=z.r2c=function(ne){return I(p(ne))},z.d2c=z.r2l=p,z.c2d=z.l2r=s,z.c2r=$,z.l2d=I,z.d2p=function(ne,ie){return z.l2p(z.d2r(ne,ie))},z.p2d=function(ne){return I(se(ne))},z.r2p=function(ne){return z.l2p(p(ne))},z.p2r=se,z.cleanPos=s):z.type==="date"?(z.d2r=z.r2d=n.identity,z.d2c=z.r2c=z.d2l=z.r2l=U,z.c2d=z.c2r=z.l2d=z.l2r=Z,z.d2p=z.r2p=function(ne,ie,ue){return z.l2p(U(ne,0,ue))},z.p2d=z.p2r=function(ne,ie,ue){return Z(se(ne),ie,ue)},z.cleanPos=function(ne){return n.cleanDate(ne,g,z.calendar)}):z.type==="category"?(z.d2c=z.d2l=W,z.r2d=z.c2d=z.l2d=q,z.d2r=z.d2l_noadd=X,z.r2c=function(ne){var ie=J(ne);return ie!==void 0?ie:z.fraction2r(.5)},z.l2r=z.c2r=s,z.r2l=J,z.d2p=function(ne){return z.l2p(z.r2c(ne))},z.p2d=function(ne){return q(se(ne))},z.r2p=z.d2p,z.p2r=se,z.cleanPos=function(ne){return typeof ne=="string"&&ne!==""?ne:s(ne)}):z.type==="multicategory"&&(z.r2d=z.c2d=z.l2d=q,z.d2r=z.d2l_noadd=X,z.r2c=function(ne){var ie=X(ne);return ie!==void 0?ie:z.fraction2r(.5)},z.r2c_just_indices=Q,z.l2r=z.c2r=s,z.r2l=X,z.d2p=function(ne){return z.l2p(z.r2c(ne))},z.p2d=function(ne){return q(se(ne))},z.r2p=z.d2p,z.p2r=se,z.cleanPos=function(ne){return Array.isArray(ne)||typeof ne=="string"&&ne!==""?ne:s(ne)},z.setupMultiCategory=function(ne){var ie,ue,he=z._traceIndices,pe=z._matchGroup;if(pe&&z._categories.length===0){for(var me in pe)if(me!==R){var _e=F[C.id2name(me)];he=he.concat(_e._traceIndices)}}var xe=[[0,{}],[0,{}]],we=[];for(ie=0;ie<he.length;ie++){var Ee=ne[he[ie]];if(V in Ee){var Pe=Ee[V],$e=Ee._length||n.minRowLength(Pe);if(u(Pe[0])&&u(Pe[1]))for(ue=0;ue<$e;ue++){var Te=Pe[0][ue],Ce=Pe[1][ue];N(Te)&&N(Ce)&&(we.push([Te,Ce]),Te in xe[0][1]||(xe[0][1][Te]=xe[0][0]++),Ce in xe[1][1]||(xe[1][1][Ce]=xe[1][0]++))}}}for(we.sort(function(ye,ge){var Me=xe[0][1],Se=Me[ye[0]]-Me[ge[0]];if(Se)return Se;var ze=xe[1][1];return ze[ye[1]]-ze[ge[1]]}),ie=0;ie<we.length;ie++)W(we[ie])}),z.fraction2r=function(ne){var ie=z.r2l(z.range[0]),ue=z.r2l(z.range[1]);return z.l2r(ie+ne*(ue-ie))},z.r2fraction=function(ne){var ie=z.r2l(z.range[0]),ue=z.r2l(z.range[1]);return(z.r2l(ne)-ie)/(ue-ie)},z.limitRange=function(ne){var ie=z.minallowed,ue=z.maxallowed;if(ie!==void 0||ue!==void 0){ne||(ne="range");var he=n.nestedProperty(z,ne).get(),pe=n.simpleMap(he,z.r2l),me=pe[1]<pe[0];me&&pe.reverse();var _e=n.simpleMap([ie,ue],z.r2l);if(ie!==void 0&&pe[0]<_e[0]&&(he[me?1:0]=ie),ue!==void 0&&pe[1]>_e[1]&&(he[me?0:1]=ue),he[0]===he[1]){var xe=z.l2r(ie),we=z.l2r(ue);if(ie!==void 0){var Ee=xe+1;ue!==void 0&&(Ee=Math.min(Ee,we)),he[me?1:0]=Ee}if(ue!==void 0){var Pe=we+1;ie!==void 0&&(Pe=Math.max(Pe,xe)),he[me?0:1]=Pe}}}},z.cleanRange=function(ne,ie){z._cleanRange(ne,ie),z.limitRange(ne)},z._cleanRange=function(ne,ie){ie||(ie={}),ne||(ne="range");var ue,he,pe=n.nestedProperty(z,ne).get();if(he=(he=z.type==="date"?n.dfltRange(z.calendar):V==="y"?A.DFLTRANGEY:z._name==="realaxis"?[0,1]:ie.dfltRange||A.DFLTRANGEX).slice(),z.rangemode!=="tozero"&&z.rangemode!=="nonnegative"||(he[0]=0),pe&&pe.length===2){var me=pe[0]===null,_e=pe[1]===null;for(z.type!=="date"||z.autorange||(pe[0]=n.cleanDate(pe[0],g,z.calendar),pe[1]=n.cleanDate(pe[1],g,z.calendar)),ue=0;ue<2;ue++)if(z.type==="date"){if(!n.isDateTime(pe[ue],z.calendar)){z[ne]=he;break}if(z.r2l(pe[0])===z.r2l(pe[1])){var xe=n.constrain(z.r2l(pe[0]),n.MIN_MS+1e3,n.MAX_MS-1e3);pe[0]=z.l2r(xe-1e3),pe[1]=z.l2r(xe+1e3);break}}else{if(!_(pe[ue])){if(me||_e||!_(pe[1-ue])){z[ne]=he;break}pe[ue]=pe[1-ue]*(ue?10:.1)}if(pe[ue]<-h?pe[ue]=-h:pe[ue]>h&&(pe[ue]=h),pe[0]===pe[1]){var we=Math.max(1,Math.abs(1e-6*pe[0]));pe[0]-=we,pe[1]+=we}}}else n.nestedProperty(z,ne).set(he)},z.setScale=function(ne){var ie=F._size;if(z.overlaying){var ue=C.getFromId({_fullLayout:F},z.overlaying);z.domain=ue.domain}var he=ne&&z._r?"_r":"range",pe=z.calendar;z.cleanRange(he);var me,_e,xe=z.r2l(z[he][0],pe),we=z.r2l(z[he][1],pe),Ee=V==="y";if(Ee?(z._offset=ie.t+(1-z.domain[1])*ie.h,z._length=ie.h*(z.domain[1]-z.domain[0]),z._m=z._length/(xe-we),z._b=-z._m*we):(z._offset=ie.l+z.domain[0]*ie.w,z._length=ie.w*(z.domain[1]-z.domain[0]),z._m=z._length/(we-xe),z._b=-z._m*xe),z._rangebreaks=[],z._lBreaks=0,z._m2=0,z._B=[],z.rangebreaks&&(z._rangebreaks=z.locateBreaks(Math.min(xe,we),Math.max(xe,we)),z._rangebreaks.length)){for(me=0;me<z._rangebreaks.length;me++)_e=z._rangebreaks[me],z._lBreaks+=Math.abs(_e.max-_e.min);var Pe=Ee;xe>we&&(Pe=!Pe),Pe&&z._rangebreaks.reverse();var $e=Pe?-1:1;for(z._m2=$e*z._length/(Math.abs(we-xe)-z._lBreaks),z._B.push(-z._m2*(Ee?we:xe)),me=0;me<z._rangebreaks.length;me++)_e=z._rangebreaks[me],z._B.push(z._B[z._B.length-1]-$e*z._m2*(_e.max-_e.min));for(me=0;me<z._rangebreaks.length;me++)(_e=z._rangebreaks[me]).pmin=oe(_e.min),_e.pmax=oe(_e.max)}if(!isFinite(z._m)||!isFinite(z._b)||z._length<0)throw F._replotting=!1,new Error("Something went wrong with axis scaling")},z.maskBreaks=function(ne){var ie,ue,he,pe,me,_e=z.rangebreaks||[];_e._cachedPatterns||(_e._cachedPatterns=_e.map(function(Te){return Te.enabled&&Te.bounds?n.simpleMap(Te.bounds,Te.pattern?p:z.d2c):null})),_e._cachedValues||(_e._cachedValues=_e.map(function(Te){return Te.enabled&&Te.values?n.simpleMap(Te.values,z.d2c).sort(n.sorterAsc):null}));for(var xe=0;xe<_e.length;xe++){var we=_e[xe];if(we.enabled){if(we.bounds){var Ee=we.pattern;switch(ue=(ie=_e._cachedPatterns[xe])[0],he=ie[1],Ee){case M:pe=(me=new Date(ne)).getUTCDay(),ue>he&&(he+=7,pe<ue&&(pe+=7));break;case E:pe=(me=new Date(ne)).getUTCHours()+(me.getUTCMinutes()/60+me.getUTCSeconds()/3600+me.getUTCMilliseconds()/36e5),ue>he&&(he+=24,pe<ue&&(pe+=24));break;case"":pe=ne}if(pe>=ue&&pe<he)return g}else for(var Pe=_e._cachedValues[xe],$e=0;$e<Pe.length;$e++)if(he=(ue=Pe[$e])+we.dvalue,ne>=ue&&ne<he)return g}}return ne},z.locateBreaks=function(ne,ie){var ue,he,pe,me,_e=[];if(!z.rangebreaks)return _e;var xe=z.rangebreaks.slice().sort(function(ze,Fe){return ze.pattern===M&&Fe.pattern===E?-1:Fe.pattern===M&&ze.pattern===E?1:0}),we=function(ze,Fe){if((ze=n.constrain(ze,ne,ie))!==(Fe=n.constrain(Fe,ne,ie))){for(var De=!0,Ue=0;Ue<_e.length;Ue++){var Ne=_e[Ue];ze<Ne.max&&Fe>=Ne.min&&(ze<Ne.min&&(Ne.min=ze),Fe>Ne.max&&(Ne.max=Fe),De=!1)}De&&_e.push({min:ze,max:Fe})}};for(ue=0;ue<xe.length;ue++){var Ee=xe[ue];if(Ee.enabled)if(Ee.bounds){var Pe=ne,$e=ie;Ee.pattern&&(Pe=Math.floor(Pe)),pe=(he=n.simpleMap(Ee.bounds,Ee.pattern?p:z.r2l))[0],me=he[1];var Te,Ce,ye=new Date(Pe);switch(Ee.pattern){case M:Ce=w,Te=(me-pe+(me<pe?7:0))*x,Pe+=pe*x-(ye.getUTCDay()*x+ye.getUTCHours()*S+ye.getUTCMinutes()*k+ye.getUTCSeconds()*T+ye.getUTCMilliseconds());break;case E:Ce=x,Te=(me-pe+(me<pe?24:0))*S,Pe+=pe*S-(ye.getUTCHours()*S+ye.getUTCMinutes()*k+ye.getUTCSeconds()*T+ye.getUTCMilliseconds());break;default:Pe=Math.min(he[0],he[1]),Te=Ce=($e=Math.max(he[0],he[1]))-Pe}for(var ge=Pe;ge<$e;ge+=Ce)we(ge,ge+Te)}else for(var Me=n.simpleMap(Ee.values,z.d2c),Se=0;Se<Me.length;Se++)we(pe=Me[Se],me=pe+Ee.dvalue)}return _e.sort(function(ze,Fe){return ze.min-Fe.min}),_e},z.makeCalcdata=function(ne,ie,ue){var he,pe,me,_e,xe=z.type,we=xe==="date"&&ne[ie+"calendar"];if(ie in ne){if(he=ne[ie],_e=ne._length||n.minRowLength(he),n.isTypedArray(he)&&(xe==="linear"||xe==="log")){if(_e===he.length)return he;if(he.subarray)return he.subarray(0,_e)}if(xe==="multicategory")return function($e,Te){for(var Ce=new Array(Te),ye=0;ye<Te;ye++){var ge=($e[0]||[])[ye],Me=($e[1]||[])[ye];Ce[ye]=Q([ge,Me])}return Ce}(he,_e);for(pe=new Array(_e),me=0;me<_e;me++)pe[me]=z.d2c(he[me],0,we,ue)}else{var Ee=ie+"0"in ne?z.d2c(ne[ie+"0"],0,we):0,Pe=ne["d"+ie]?Number(ne["d"+ie]):1;for(he=ne[{x:"y",y:"x"}[ie]],_e=ne._length||he.length,pe=new Array(_e),me=0;me<_e;me++)pe[me]=Ee+me*Pe}if(z.rangebreaks)for(me=0;me<_e;me++)pe[me]=z.maskBreaks(pe[me]);return pe},z.isValidRange=function(ne,ie){return Array.isArray(ne)&&ne.length===2&&(ie&&ne[0]===null||_(z.r2l(ne[0])))&&(ie&&ne[1]===null||_(z.r2l(ne[1])))},z.getAutorangeDflt=function(ne,ie){var ue=!z.isValidRange(ne,"nullOk");return ue&&ie&&ie.reverseDflt?ue="reversed":ne&&(ne[0]===null&&ne[1]===null?ue=!0:ne[0]===null&&ne[1]!==null?ue="min":ne[0]!==null&&ne[1]===null&&(ue="max")),ue},z.isReversed=function(){var ne=z.autorange;return ne==="reversed"||ne==="min reversed"||ne==="max reversed"},z.isPtWithinRange=function(ne,ie){var ue=z.c2l(ne[V],null,ie),he=z.r2l(z.range[0]),pe=z.r2l(z.range[1]);return he<pe?he<=ue&&ue<=pe:pe<=ue&&ue<=he},z._emptyCategories=function(){z._categories=[],z._categoriesMap={}},z.clearCalc=function(){var ne=z._matchGroup;if(ne){var ie=null,ue=null;for(var he in ne){var pe=F[C.id2name(he)];if(pe._categories){ie=pe._categories,ue=pe._categoriesMap;break}}ie&&ue?(z._categories=ie,z._categoriesMap=ue):z._emptyCategories()}else z._emptyCategories();if(z._initialCategories)for(var me=0;me<z._initialCategories.length;me++)W(z._initialCategories[me])},z.sortByInitialCategories=function(){var ne=[];if(z._emptyCategories(),z._initialCategories)for(var ie=0;ie<z._initialCategories.length;ie++)W(z._initialCategories[ie]);ne=ne.concat(z._traceIndices);var ue=z._matchGroup;for(var he in ue)if(R!==he){var pe=F[C.id2name(he)];pe._categories=z._categories,pe._categoriesMap=z._categoriesMap,ne=ne.concat(pe._traceIndices)}return ne};var ae=F._d3locale;z.type==="date"&&(z._dateFormat=ae?ae.timeFormat:f,z._extraFormat=F._extraFormat),z._separators=F.separators,z._numFormat=ae?ae.numberFormat:y,delete z._minDtick,delete z._forceTick0}},87703:function(c){c.exports=function(m){var a=["showexponent","showtickprefix","showticksuffix"].filter(function(v){return m[v]!==void 0});if(a.every(function(v){return m[v]===m[a[0]]})||a.length===1)return m[a[0]]}},12036:function(c,m,a){var v=a(34809),f=a(78766).contrast,n=a(25829),y=a(87703),_=a(59008);function p(l,o){function s(u,d){return v.coerce(l,o,n.tickformatstops,u,d)}s("enabled")&&(s("dtickrange"),s("value"))}c.exports=function(l,o,s,u,d){d||(d={});var h=s("labelalias");v.isPlainObject(h)||delete o.labelalias;var g=y(l);if(s("showticklabels")){d.noTicklabelshift||s("ticklabelshift"),d.noTicklabelstandoff||s("ticklabelstandoff");var b=d.font||{},w=o.color,x=(o.ticklabelposition||"").indexOf("inside")!==-1?f(d.bgColor):w&&w!==n.color.dflt?w:b.color;if(v.coerceFont(s,"tickfont",b,{overrideDflt:{color:x}}),d.noTicklabelstep||u==="multicategory"||u==="log"||s("ticklabelstep"),!d.noAng){var S=s("tickangle");d.noAutotickangles||S!=="auto"||s("autotickangles")}if(u!=="category"){var k=s("tickformat");_(l,o,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:p}),o.tickformatstops.length||delete o.tickformatstops,d.noExp||k||u==="date"||(s("showexponent",g),s("exponentformat"),s("minexponent"),s("separatethousands"))}}}},87433:function(c,m,a){var v=a(34809),f=a(25829);c.exports=function(n,y,_,p){var l=p.isMinor,o=l?n.minor||{}:n,s=l?y.minor:y,u=l?f.minor:f,d=l?"minor.":"",h=v.coerce2(o,s,u,"ticklen",l?.6*(y.ticklen||5):void 0),g=v.coerce2(o,s,u,"tickwidth",l?y.tickwidth||1:void 0),b=v.coerce2(o,s,u,"tickcolor",(l?y.tickcolor:void 0)||s.color);_(d+"ticks",!l&&p.outerTicks||h||g||b?"outside":"")||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}},22777:function(c,m,a){var v=a(68599),f=a(34809).isArrayOrTypedArray,n=a(87800).isTypedArraySpec,y=a(87800).decodeTypedArraySpec;c.exports=function(_,p,l,o,s){s||(s={});var u=s.isMinor,d=u?_.minor||{}:_,h=u?p.minor:p,g=u?"minor.":"";function b(C){var A=d[C];return n(A)&&(A=y(A)),A!==void 0?A:(h._template||{})[C]}var w=b("tick0"),x=b("dtick"),S=b("tickvals"),k=l(g+"tickmode",f(S)?"array":x?"linear":"auto");if(k==="auto"||k==="sync")l(g+"nticks");else if(k==="linear"){var T=h.dtick=v.dtick(x,o);h.tick0=v.tick0(w,o,p.calendar,T)}else o!=="multicategory"&&(l(g+"tickvals")===void 0?h.tickmode="auto":u||l("ticktext"))}},84982:function(c,m,a){var v=a(45568),f=a(33626),n=a(34809),y=a(62203),_=a(29714);c.exports=function(p,l,o,s){var u=p._fullLayout;if(l.length!==0){var d,h,g,b;s&&(d=s());var w=v.ease(o.easing);return p._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(b),b=null,function(){for(var k={},T=0;T<l.length;T++){var C=l[T],A=C.plotinfo.xaxis,E=C.plotinfo.yaxis;C.xr0&&(k[A._name+".range"]=C.xr0.slice()),C.yr0&&(k[E._name+".range"]=C.yr0.slice())}return f.call("relayout",p,k).then(function(){for(var M=0;M<l.length;M++)x(l[M].plotinfo)})}()}),h=Date.now(),b=window.requestAnimationFrame(function k(){g=Date.now();for(var T=Math.min(1,(g-h)/o.duration),C=w(T),A=0;A<l.length;A++)S(l[A],C);g-h>o.duration?(function(){for(var E={},M=0;M<l.length;M++){var I=l[M],N=I.plotinfo.xaxis,z=I.plotinfo.yaxis;I.xr1&&(E[N._name+".range"]=I.xr1.slice()),I.yr1&&(E[z._name+".range"]=I.yr1.slice())}d&&d(),f.call("relayout",p,E).then(function(){for(var F=0;F<l.length;F++)x(l[F].plotinfo)})}(),b=window.cancelAnimationFrame(k)):b=window.requestAnimationFrame(k)}),Promise.resolve()}function x(k){var T=k.xaxis,C=k.yaxis;u._defs.select("#"+k.clipId+"> rect").call(y.setTranslate,0,0).call(y.setScale,1,1),k.plot.call(y.setTranslate,T._offset,C._offset).call(y.setScale,1,1);var A=k.plot.selectAll(".scatterlayer .trace");A.selectAll(".point").call(y.setPointGroupScale,1,1),A.selectAll(".textpoint").call(y.setTextPointsScale,1,1),A.call(y.hideOutsideRangePoints,k)}function S(k,T){var C=k.plotinfo,A=C.xaxis,E=C.yaxis,M=A._length,I=E._length,N=!!k.xr1,z=!!k.yr1,F=[];if(N){var R=n.simpleMap(k.xr0,A.r2l),V=n.simpleMap(k.xr1,A.r2l),$=R[1]-R[0],U=V[1]-V[0];F[0]=(R[0]*(1-T)+T*V[0]-R[0])/(R[1]-R[0])*M,F[2]=M*(1-T+T*U/$),A.range[0]=A.l2r(R[0]*(1-T)+T*V[0]),A.range[1]=A.l2r(R[1]*(1-T)+T*V[1])}else F[0]=0,F[2]=M;if(z){var Z=n.simpleMap(k.yr0,E.r2l),q=n.simpleMap(k.yr1,E.r2l),W=Z[1]-Z[0],Q=q[1]-q[0];F[1]=(Z[1]*(1-T)+T*q[1]-Z[1])/(Z[0]-Z[1])*I,F[3]=I*(1-T+T*Q/W),E.range[0]=A.l2r(Z[0]*(1-T)+T*q[0]),E.range[1]=E.l2r(Z[1]*(1-T)+T*q[1])}else F[1]=0,F[3]=I;_.drawOne(p,A,{skipTitle:!0}),_.drawOne(p,E,{skipTitle:!0}),_.redrawComponents(p,[A._id,E._id]);var X=N?M/F[2]:1,J=z?I/F[3]:1,ee=N?F[0]:0,le=z?F[1]:0,oe=N?F[0]/F[2]*M:0,se=z?F[1]/F[3]*I:0,ce=A._offset-oe,ae=E._offset-se;C.clipRect.call(y.setTranslate,ee,le).call(y.setScale,1/X,1/J),C.plot.call(y.setTranslate,ce,ae).call(y.setScale,X,J),y.setPointGroupScale(C.zoomScalePts,1/X,1/J),y.setTextPointsScale(C.zoomScaleTxt,1/X,1/J)}_.redrawComponents(p)}},4392:function(c,m,a){var v=a(33626).traceIs,f=a(9666);function n(_){return{v:"x",h:"y"}[_.orientation||"v"]}function y(_,p){var l=n(_),o=v(_,"box-violin"),s=v(_._fullInput||{},"candlestick");return o&&!s&&p===l&&_[l]===void 0&&_[l+"0"]===void 0}c.exports=function(_,p,l,o){l("autotypenumbers",o.autotypenumbersDflt),l("type",(o.splomStash||{}).type)==="-"&&(function(s,u){if(s.type==="-"){var d,h=s._id,g=h.charAt(0);h.indexOf("scene")!==-1&&(h=g);var b=function(E,M,I){for(var N=0;N<E.length;N++){var z=E[N];if(z.type==="splom"&&z._length>0&&(z["_"+I+"axes"]||{})[M]||(z[I+"axis"]||I)===M&&(y(z,I)||(z[I]||[]).length||z[I+"0"]))return z}}(u,h,g);if(b)if(b.type!=="histogram"||g!=={v:"y",h:"x"}[b.orientation||"v"]){var w=g+"calendar",x=b[w],S={noMultiCategory:!v(b,"cartesian")||v(b,"noMultiCategory")};if(b.type==="box"&&b._hasPreCompStats&&g==={h:"x",v:"y"}[b.orientation||"v"]&&(S.noMultiCategory=!0),S.autotypenumbers=s.autotypenumbers,y(b,g)){var k=n(b),T=[];for(d=0;d<u.length;d++){var C=u[d];v(C,"box-violin")&&(C[g+"axis"]||g)===h&&(C[k]!==void 0?T.push(C[k][0]):C.name!==void 0?T.push(C.name):T.push("text"),C[w]!==x&&(x=void 0))}s.type=f(T,x,S)}else if(b.type==="splom"){var A=b.dimensions[b._axesDim[h]];A.visible&&(s.type=f(A.values,x,S))}else s.type=f(b[g]||[b[g+"0"]],x,S)}else s.type="linear"}}(p,o.data),p.type==="-"?p.type="linear":_.type=p.type)}},90251:function(c,m,a){var v=a(33626),f=a(34809);function n(l,o,s){var u,d,h,g=!1;if(o.type==="data")u=l._fullData[o.traces!==null?o.traces[0]:0];else{if(o.type!=="layout")return!1;u=l._fullLayout}return d=f.nestedProperty(u,o.prop).get(),(h=s[o.type]=s[o.type]||{}).hasOwnProperty(o.prop)&&h[o.prop]!==d&&(g=!0),h[o.prop]=d,{changed:g,value:d}}function y(l,o){var s=[],u=o[0],d={};if(typeof u=="string")d[u]=o[1];else{if(!f.isPlainObject(u))return s;d=u}return p(d,function(h,g,b){s.push({type:"layout",prop:h,value:b})},"",0),s}function _(l,o){var s,u,d,h,g=[];if(u=o[0],d=o[1],s=o[2],h={},typeof u=="string")h[u]=d;else{if(!f.isPlainObject(u))return g;h=u,s===void 0&&(s=d)}return s===void 0&&(s=null),p(h,function(b,w,x){var S,k;if(Array.isArray(x)){k=x.slice();var T=Math.min(k.length,l.data.length);s&&(T=Math.min(T,s.length)),S=[];for(var C=0;C<T;C++)S[C]=s?s[C]:C}else k=x,S=s?s.slice():null;if(S===null)Array.isArray(k)&&(k=k[0]);else if(Array.isArray(S)){if(!Array.isArray(k)){var A=k;k=[];for(var E=0;E<S.length;E++)k[E]=A}k.length=Math.min(S.length,k.length)}g.push({type:"data",prop:b,traces:S,value:k})},"",0),g}function p(l,o,s,u){Object.keys(l).forEach(function(d){var h=l[d];if(d[0]!=="_"){var g=s+(u>0?".":"")+d;f.isPlainObject(h)?p(h,o,g,u+1):o(g,d,h)}})}m.manageCommandObserver=function(l,o,s,u){var d={},h=!0;o&&o._commandObserver&&(d=o._commandObserver),d.cache||(d.cache={}),d.lookupTable={};var g=m.hasSimpleAPICommandBindings(l,s,d.lookupTable);if(o&&o._commandObserver){if(g)return d;if(o._commandObserver.remove)return o._commandObserver.remove(),o._commandObserver=null,d}if(g){n(l,g,d.cache),d.check=function(){if(h){var x=n(l,g,d.cache);return x.changed&&u&&d.lookupTable[x.value]!==void 0&&(d.disable(),Promise.resolve(u({value:x.value,type:g.type,prop:g.prop,traces:g.traces,index:d.lookupTable[x.value]})).then(d.enable,d.enable)),x.changed}};for(var b=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],w=0;w<b.length;w++)l._internalOn(b[w],d.check);d.remove=function(){for(var x=0;x<b.length;x++)l._removeInternalListener(b[x],d.check)}}else f.log("Unable to automatically bind plot updates to API command"),d.lookupTable={},d.remove=function(){};return d.disable=function(){h=!1},d.enable=function(){h=!0},o&&(o._commandObserver=d),d},m.hasSimpleAPICommandBindings=function(l,o,s){var u,d,h=o.length;for(u=0;u<h;u++){var g,b=o[u],w=b.method,x=b.args;if(Array.isArray(x)||(x=[]),!w)return!1;var S=m.computeAPICommandBindings(l,w,x);if(S.length!==1)return!1;if(d){if((g=S[0]).type!==d.type||g.prop!==d.prop)return!1;if(Array.isArray(d.traces)){if(!Array.isArray(g.traces))return!1;g.traces.sort();for(var k=0;k<d.traces.length;k++)if(d.traces[k]!==g.traces[k])return!1}else if(g.prop!==d.prop)return!1}else d=S[0],Array.isArray(d.traces)&&d.traces.sort();var T=(g=S[0]).value;if(Array.isArray(T)){if(T.length!==1)return!1;T=T[0]}s&&(s[T]=u)}return d},m.executeAPICommand=function(l,o,s){if(o==="skip")return Promise.resolve();var u=v.apiMethodRegistry[o],d=[l];Array.isArray(s)||(s=[]);for(var h=0;h<s.length;h++)d.push(s[h]);return u.apply(null,d).catch(function(g){return f.warn("API call to Plotly."+o+" rejected.",g),Promise.reject(g)})},m.computeAPICommandBindings=function(l,o,s){var u;switch(Array.isArray(s)||(s=[]),o){case"restyle":u=_(l,s);break;case"relayout":u=y(0,s);break;case"update":u=_(l,[s[0],s[2]]).concat(y(0,[s[1]]));break;case"animate":u=function(d,h){return Array.isArray(h[0])&&h[0].length===1&&["string","number"].indexOf(typeof h[0][0])!==-1?[{type:"layout",prop:"_currentFrame",value:h[0][0].toString()}]:[]}(0,s);break;default:u=[]}return u}},13792:function(c,m,a){var v=a(93049).extendFlat;m.u=function(f,n){n=n||{};var y={valType:"info_array",editType:(f=f||{}).editType,items:[{valType:"number",min:0,max:1,editType:f.editType},{valType:"number",min:0,max:1,editType:f.editType}],dflt:[0,1]},_=(f.name&&f.name,f.trace,n.description&&n.description,{x:v({},y,{}),y:v({},y,{}),editType:f.editType});return f.noGridCell||(_.row={valType:"integer",min:0,dflt:0,editType:f.editType},_.column={valType:"integer",min:0,dflt:0,editType:f.editType}),_},m.N=function(f,n,y,_){var p=_&&_.x||[0,1],l=_&&_.y||[0,1],o=n.grid;if(o){var s=y("domain.column");s!==void 0&&(s<o.columns?p=o._domains.x[s]:delete f.domain.column);var u=y("domain.row");u!==void 0&&(u<o.rows?l=o._domains.y[u]:delete f.domain.row)}var d=y("domain.x",p),h=y("domain.y",l);d[0]<d[1]||(f.domain.x=p.slice()),h[0]<h[1]||(f.domain.y=l.slice())}},80337:function(c){c.exports=function(m){var a=m.variantValues,v=m.editType,f=m.colorEditType;f===void 0&&(f=v);var n={editType:v,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};m.noNumericWeightValues&&(n.valType="enumerated",n.values=n.extras,n.extras=void 0,n.min=void 0,n.max=void 0);var y={family:{valType:"string",noBlank:!0,strict:!0,editType:v},size:{valType:"number",min:1,editType:v},color:{valType:"color",editType:f},weight:n,style:{editType:v,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:m.noFontVariant?void 0:{editType:v,valType:"enumerated",values:a||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:m.noFontTextcase?void 0:{editType:v,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:m.noFontLineposition?void 0:{editType:v,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:m.noFontShadow?void 0:{editType:v,valType:"string",dflt:m.autoShadowDflt?"auto":"none"},editType:v};return m.autoSize&&(y.size.dflt="auto"),m.autoColor&&(y.color.dflt="auto"),m.arrayOk&&(y.family.arrayOk=!0,y.weight.arrayOk=!0,y.style.arrayOk=!0,m.noFontVariant||(y.variant.arrayOk=!0),m.noFontTextcase||(y.textcase.arrayOk=!0),m.noFontLineposition||(y.lineposition.arrayOk=!0),m.noFontShadow||(y.shadow.arrayOk=!0),y.size.arrayOk=!0,y.color.arrayOk=!0),y}},58935:function(c){c.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}},74285:function(c,m){m.projNames={airy:"airy",aitoff:"aitoff","albers usa":"albersUsa",albers:"albers",august:"august","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant",baker:"baker",bertin1953:"bertin1953",boggs:"boggs",bonne:"bonne",bottomley:"bottomley",bromley:"bromley",collignon:"collignon","conic conformal":"conicConformal","conic equal area":"conicEqualArea","conic equidistant":"conicEquidistant",craig:"craig",craster:"craster","cylindrical equal area":"cylindricalEqualArea","cylindrical stereographic":"cylindricalStereographic",eckert1:"eckert1",eckert2:"eckert2",eckert3:"eckert3",eckert4:"eckert4",eckert5:"eckert5",eckert6:"eckert6",eisenlohr:"eisenlohr","equal earth":"equalEarth",equirectangular:"equirectangular",fahey:"fahey","foucaut sinusoidal":"foucautSinusoidal",foucaut:"foucaut",ginzburg4:"ginzburg4",ginzburg5:"ginzburg5",ginzburg6:"ginzburg6",ginzburg8:"ginzburg8",ginzburg9:"ginzburg9",gnomonic:"gnomonic","gringorten quincuncial":"gringortenQuincuncial",gringorten:"gringorten",guyou:"guyou",hammer:"hammer",hill:"hill",homolosine:"homolosine",hufnagel:"hufnagel",hyperelliptical:"hyperelliptical",kavrayskiy7:"kavrayskiy7",lagrange:"lagrange",larrivee:"larrivee",laskowski:"laskowski",loximuthal:"loximuthal",mercator:"mercator",miller:"miller",mollweide:"mollweide","mt flat polar parabolic":"mtFlatPolarParabolic","mt flat polar quartic":"mtFlatPolarQuartic","mt flat polar sinusoidal":"mtFlatPolarSinusoidal","natural earth":"naturalEarth","natural earth1":"naturalEarth1","natural earth2":"naturalEarth2","nell hammer":"nellHammer",nicolosi:"nicolosi",orthographic:"orthographic",patterson:"patterson","peirce quincuncial":"peirceQuincuncial",polyconic:"polyconic","rectangular polyconic":"rectangularPolyconic",robinson:"robinson",satellite:"satellite","sinu mollweide":"sinuMollweide",sinusoidal:"sinusoidal",stereographic:"stereographic",times:"times","transverse mercator":"transverseMercator","van der grinten":"vanDerGrinten","van der grinten2":"vanDerGrinten2","van der grinten3":"vanDerGrinten3","van der grinten4":"vanDerGrinten4",wagner4:"wagner4",wagner6:"wagner6",wiechel:"wiechel","winkel tripel":"winkel3",winkel3:"winkel3"},m.axesNames=["lonaxis","lataxis"],m.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},m.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180},m.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]}},m.clipPad=.001,m.precision=.1,m.landColor="#F0DC82",m.waterColor="#3399FF",m.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},m.sphereSVG={type:"Sphere"},m.fillLayers={ocean:1,land:1,lakes:1},m.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},m.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],m.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"],m.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}},6493:function(c,m,a){var v=a(45568),f=a(70884),n=f.geoPath,y=f.geoDistance,_=a(75987),p=a(33626),l=a(34809),o=l.strTranslate,s=a(78766),u=a(62203),d=a(32141),h=a(44122),g=a(29714),b=a(32919).getAutoRange,w=a(14751),x=a(44844).prepSelect,S=a(44844).clearOutline,k=a(44844).selectOnClick,T=a(14309),C=a(74285),A=a(3994),E=a(11577),M=a(48640).N4;function I(F){this.id=F.id,this.graphDiv=F.graphDiv,this.container=F.container,this.topojsonURL=F.topojsonURL,this.isStatic=F.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var N=I.prototype;function z(F,R){var V=C.clipPad,$=F[0]+V,U=F[1]-V,Z=R[0]+V,q=R[1]-V;$>0&&U<0&&(U+=360);var W=(U-$)/4;return{type:"Polygon",coordinates:[[[$,Z],[$,q],[$+W,q],[$+2*W,q],[$+3*W,q],[U,q],[U,Z],[U-W,Z],[U-2*W,Z],[U-3*W,Z],[$,Z]]]}}c.exports=function(F){return new I(F)},N.plot=function(F,R,V,$){var U=this;if($)return U.update(F,R,!0);U._geoCalcData=F,U._fullLayout=R;var Z=R[this.id],q=[],W=!1;for(var Q in C.layerNameToAdjective)if(Q!=="frame"&&Z["show"+Q]){W=!0;break}for(var X=!1,J=0;J<F.length;J++){var ee=F[0][0].trace;ee._geo=U,ee.locationmode&&(W=!0);var le=ee.marker;if(le){var oe=le.angle,se=le.angleref;(oe||se==="north"||se==="previous")&&(X=!0)}}if(this._hasMarkerAngles=X,W){var ce=E.getTopojsonName(Z);U.topojson!==null&&ce===U.topojsonName||(U.topojsonName=ce,PlotlyGeoAssets.topojson[U.topojsonName]===void 0&&q.push(U.fetchTopojson()))}q=q.concat(A.fetchTraceGeoData(F)),V.push(new Promise(function(ae,ne){Promise.all(q).then(function(){U.topojson=PlotlyGeoAssets.topojson[U.topojsonName],U.update(F,R),ae()}).catch(ne)}))},N.fetchTopojson=function(){var F=this,R=E.getTopojsonPath(F.topojsonURL,F.topojsonName);return new Promise(function(V,$){v.json(R,function(U,Z){if(U)return U.status===404?$(new Error(["plotly.js could not find topojson file at",R+".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):$(new Error(["unexpected error while fetching topojson file at",R].join(" ")));PlotlyGeoAssets.topojson[F.topojsonName]=Z,V()})})},N.update=function(F,R,V){var $=R[this.id];this.hasChoropleth=!1;for(var U=0;U<F.length;U++){var Z=F[U],q=Z[0].trace;q.type==="choropleth"&&(this.hasChoropleth=!0),q.visible===!0&&q._length>0&&q._module.calcGeoJSON(Z,R)}if(!V){if(this.updateProjection(F,R))return;this.viewInitial&&this.scope===$.scope||this.saveViewInitial($)}this.scope=$.scope,this.updateBaseLayers(R,$),this.updateDims(R,$),this.updateFx(R,$),h.generalUpdatePerTraceModule(this.graphDiv,this,F,$);var W=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=W.selectAll(".point"),this.dataPoints.text=W.selectAll("text"),this.dataPaths.line=W.selectAll(".js-line");var Q=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=Q.selectAll("path"),this._render()},N.updateProjection=function(F,R){var V=this.graphDiv,$=R[this.id],U=R._size,Z=$.domain,q=$.projection,W=$.lonaxis,Q=$.lataxis,X=W._ax,J=Q._ax,ee=this.projection=function(ye){var ge=ye.projection,Me=ge.type,Se=C.projNames[Me];Se="geo"+l.titleCase(Se);for(var ze=(f[Se]||_[Se])(),Fe=ye._isSatellite?180*Math.acos(1/ge.distance)/Math.PI:ye._isClipped?C.lonaxisSpan[Me]/2:null,De=["center","rotate","parallels","clipExtent"],Ue=function(Oe){return Oe?ze:[]},Ne=0;Ne<De.length;Ne++){var ke=De[Ne];typeof ze[ke]!="function"&&(ze[ke]=Ue)}return ze.isLonLatOverEdges=function(Oe){if(ze(Oe)===null)return!0;if(Fe){var Re=ze.rotate();return y(Oe,[-Re[0],-Re[1]])>Fe*Math.PI/180}return!1},ze.getPath=function(){return n().projection(ze)},ze.getBounds=function(Oe){return ze.getPath().bounds(Oe)},ze.precision(C.precision),ye._isSatellite&&ze.tilt(ge.tilt).distance(ge.distance),Fe&&ze.clipAngle(Fe-C.clipPad),ze}($),le=[[U.l+U.w*Z.x[0],U.t+U.h*(1-Z.y[1])],[U.l+U.w*Z.x[1],U.t+U.h*(1-Z.y[0])]],oe=$.center||{},se=q.rotation||{},ce=W.range||[],ae=Q.range||[];if($.fitbounds){X._length=le[1][0]-le[0][0],J._length=le[1][1]-le[0][1],X.range=b(V,X),J.range=b(V,J);var ne=(X.range[0]+X.range[1])/2,ie=(J.range[0]+J.range[1])/2;if($._isScoped)oe={lon:ne,lat:ie};else if($._isClipped){oe={lon:ne,lat:ie},se={lon:ne,lat:ie,roll:se.roll};var ue=q.type,he=C.lonaxisSpan[ue]/2||180,pe=C.lataxisSpan[ue]/2||90;ce=[ne-he,ne+he],ae=[ie-pe,ie+pe]}else oe={lon:ne,lat:ie},se={lon:ne,lat:se.lat,roll:se.roll}}ee.center([oe.lon-se.lon,oe.lat-se.lat]).rotate([-se.lon,-se.lat,se.roll]).parallels(q.parallels);var me=z(ce,ae);ee.fitExtent(le,me);var _e=this.bounds=ee.getBounds(me),xe=this.fitScale=ee.scale(),we=ee.translate();if($.fitbounds){var Ee=ee.getBounds(z(X.range,J.range)),Pe=Math.min((_e[1][0]-_e[0][0])/(Ee[1][0]-Ee[0][0]),(_e[1][1]-_e[0][1])/(Ee[1][1]-Ee[0][1]));isFinite(Pe)?ee.scale(Pe*xe):l.warn("Something went wrong during"+this.id+"fitbounds computations.")}else ee.scale(q.scale*xe);var $e=this.midPt=[(_e[0][0]+_e[1][0])/2,(_e[0][1]+_e[1][1])/2];if(ee.translate([we[0]+($e[0]-we[0]),we[1]+($e[1]-we[1])]).clipExtent(_e),$._isAlbersUsa){var Te=ee([oe.lon,oe.lat]),Ce=ee.translate();ee.translate([Ce[0]-(Te[0]-Ce[0]),Ce[1]-(Te[1]-Ce[1])])}},N.updateBaseLayers=function(F,R){var V=this,$=V.topojson,U=V.layers,Z=V.basePaths;function q(ee){return ee==="lonaxis"||ee==="lataxis"}function W(ee){return!!C.lineLayers[ee]}function Q(ee){return!!C.fillLayers[ee]}var X=(this.hasChoropleth?C.layersForChoropleth:C.layers).filter(function(ee){return W(ee)||Q(ee)?R["show"+ee]:!q(ee)||R[ee].showgrid}),J=V.framework.selectAll(".layer").data(X,String);J.exit().each(function(ee){delete U[ee],delete Z[ee],v.select(this).remove()}),J.enter().append("g").attr("class",function(ee){return"layer "+ee}).each(function(ee){var le=U[ee]=v.select(this);ee==="bg"?V.bgRect=le.append("rect").style("pointer-events","all"):q(ee)?Z[ee]=le.append("path").style("fill","none"):ee==="backplot"?le.append("g").classed("choroplethlayer",!0):ee==="frontplot"?le.append("g").classed("scatterlayer",!0):W(ee)?Z[ee]=le.append("path").style("fill","none").style("stroke-miterlimit",2):Q(ee)&&(Z[ee]=le.append("path").style("stroke","none"))}),J.order(),J.each(function(ee){var le=Z[ee],oe=C.layerNameToAdjective[ee];ee==="frame"?le.datum(C.sphereSVG):W(ee)||Q(ee)?le.datum(M($,$.objects[ee])):q(ee)&&le.datum(function(se,ce,ae){var ne,ie,ue,he=ce[se],pe=C.scopeDefaults[ce.scope];se==="lonaxis"?(ne=pe.lonaxisRange,ie=pe.lataxisRange,ue=function(Ce,ye){return[Ce,ye]}):se==="lataxis"&&(ne=pe.lataxisRange,ie=pe.lonaxisRange,ue=function(Ce,ye){return[ye,Ce]});var me={type:"linear",range:[ne[0],ne[1]-1e-6],tick0:he.tick0,dtick:he.dtick};g.setConvert(me,ae);var _e=g.calcTicks(me);ce.isScoped||se!=="lonaxis"||_e.pop();for(var xe=_e.length,we=new Array(xe),Ee=0;Ee<xe;Ee++)for(var Pe=_e[Ee].x,$e=we[Ee]=[],Te=ie[0];Te<ie[1]+2.5;Te+=2.5)$e.push(ue(Pe,Te));return{type:"MultiLineString",coordinates:we}}(ee,R,F)).call(s.stroke,R[ee].gridcolor).call(u.dashLine,R[ee].griddash,R[ee].gridwidth),W(ee)?le.call(s.stroke,R[oe+"color"]).call(u.dashLine,"",R[oe+"width"]):Q(ee)&&le.call(s.fill,R[oe+"color"])})},N.updateDims=function(F,R){var V=this.bounds,$=(R.framewidth||0)/2,U=V[0][0]-$,Z=V[0][1]-$,q=V[1][0]-U+$,W=V[1][1]-Z+$;u.setRect(this.clipRect,U,Z,q,W),this.bgRect.call(u.setRect,U,Z,q,W).call(s.fill,R.bgcolor),this.xaxis._offset=U,this.xaxis._length=q,this.yaxis._offset=Z,this.yaxis._length=W},N.updateFx=function(F,R){var V=this,$=V.graphDiv,U=V.bgRect,Z=F.dragmode,q=F.clickmode;if(!V.isStatic){var W={element:V.bgRect.node(),gd:$,plotinfo:{id:V.id,xaxis:V.xaxis,yaxis:V.yaxis,fillRangeItems:function(X,J){J.isRect?(X.range={})[V.id]=[Q([J.xmin,J.ymin]),Q([J.xmax,J.ymax])]:(X.lassoPoints={})[V.id]=J.map(Q)}},xaxes:[V.xaxis],yaxes:[V.yaxis],subplot:V.id,clickFn:function(X){X===2&&S($)}};Z==="pan"?(U.node().onmousedown=null,U.call(T(V,R)),U.on("dblclick.zoom",function(){var X=V.viewInitial,J={};for(var ee in X)J[V.id+"."+ee]=X[ee];p.call("_guiRelayout",$,J),$.emit("plotly_doubleclick",null)}),$._context._scrollZoom.geo||U.on("wheel.zoom",null)):Z!=="select"&&Z!=="lasso"||(U.on(".zoom",null),W.prepFn=function(X,J,ee){x(X,J,ee,W,Z)},w.init(W)),U.on("mousemove",function(){var X=V.projection.invert(l.getPositionFromD3Event());if(!X)return w.unhover($,v.event);V.xaxis.p2c=function(){return X[0]},V.yaxis.p2c=function(){return X[1]},d.hover($,v.event,V.id)}),U.on("mouseout",function(){$._dragging||w.unhover($,v.event)}),U.on("click",function(){Z!=="select"&&Z!=="lasso"&&(q.indexOf("select")>-1&&k(v.event,$,[V.xaxis],[V.yaxis],V.id,W),q.indexOf("event")>-1&&d.click($,v.event))})}function Q(X){return V.projection.invert([X[0]+V.xaxis._offset,X[1]+V.yaxis._offset])}},N.makeFramework=function(){var F=this,R=F.graphDiv,V=R._fullLayout,$="clip"+V._uid+F.id;F.clipDef=V._clips.append("clipPath").attr("id",$),F.clipRect=F.clipDef.append("rect"),F.framework=v.select(F.container).append("g").attr("class","geo "+F.id).call(u.setClipUrl,$,R),F.project=function(U){var Z=F.projection(U);return Z?[Z[0]-F.xaxis._offset,Z[1]-F.yaxis._offset]:[null,null]},F.xaxis={_id:"x",c2p:function(U){return F.project(U)[0]}},F.yaxis={_id:"y",c2p:function(U){return F.project(U)[1]}},F.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},g.setConvert(F.mockAxis,V)},N.saveViewInitial=function(F){var R,V=F.center||{},$=F.projection,U=$.rotation||{};this.viewInitial={fitbounds:F.fitbounds,"projection.scale":$.scale},R=F._isScoped?{"center.lon":V.lon,"center.lat":V.lat}:F._isClipped?{"projection.rotation.lon":U.lon,"projection.rotation.lat":U.lat}:{"center.lon":V.lon,"center.lat":V.lat,"projection.rotation.lon":U.lon},l.extendFlat(this.viewInitial,R)},N.render=function(F){this._hasMarkerAngles&&F?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},N._render=function(){var F,R=this.projection,V=R.getPath();function $(Z){var q=R(Z.lonlat);return q?o(q[0],q[1]):null}function U(Z){return R.isLonLatOverEdges(Z.lonlat)?"none":null}for(F in this.basePaths)this.basePaths[F].attr("d",V);for(F in this.dataPaths)this.dataPaths[F].attr("d",function(Z){return V(Z.geojson)});for(F in this.dataPoints)this.dataPoints[F].attr("display",U).attr("transform",$)}},47544:function(c,m,a){var v=a(4173).fX,f=a(34809).counterRegex,n=a(6493),y="geo",_=f(y),p={};p[y]={valType:"subplotid",dflt:y,editType:"calc"},c.exports={attr:y,name:y,idRoot:y,idRegex:_,attrRegex:_,attributes:p,layoutAttributes:a(42194),supplyLayoutDefaults:a(31653),plot:function(l){for(var o=l._fullLayout,s=l.calcdata,u=o._subplots[y],d=0;d<u.length;d++){var h=u[d],g=v(s,y,h),b=o[h]._subplot;b||(b=n({id:h,graphDiv:l,container:o._geolayer.node(),topojsonURL:l._context.topojsonURL,staticPlot:l._context.staticPlot}),o[h]._subplot=b),b.plot(g,o,l._promises)}},updateFx:function(l){for(var o=l._fullLayout,s=o._subplots[y],u=0;u<s.length;u++){var d=o[s[u]];d._subplot.updateFx(o,d)}},clean:function(l,o,s,u){for(var d=u._subplots[y]||[],h=0;h<d.length;h++){var g=d[h],b=u[g]._subplot;!o[g]&&b&&(b.framework.remove(),b.clipDef.remove())}}}},42194:function(c,m,a){var v=a(10229),f=a(13792).u,n=a(94850).T,y=a(74285),_=a(13582).overrideAll,p=a(62994),l={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:v.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:n};(c.exports=_({domain:f({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:p(y.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:p(y.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},tilt:{valType:"number",dflt:0},distance:{valType:"number",min:1.001,dflt:2},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:v.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:y.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:y.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:y.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:y.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:v.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:v.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:v.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:v.background},lonaxis:l,lataxis:l},"plot","from-root")).uirevision={valType:"any",editType:"none"}},31653:function(c,m,a){var v=a(34809),f=a(4448),n=a(4173).KO,y=a(74285),_=a(42194),p=y.axesNames;function l(o,s,u,d){var h=n(d.fullData,"geo",d.id).map(function(se){return se._expandedIndex}),g=u("resolution"),b=u("scope"),w=y.scopeDefaults[b],x=u("projection.type",w.projType),S=s._isAlbersUsa=x==="albers usa";S&&(b=s.scope="usa");var k=s._isScoped=b!=="world",T=s._isSatellite=x==="satellite",C=s._isConic=x.indexOf("conic")!==-1||x==="albers",A=s._isClipped=!!y.lonaxisSpan[x];if(o.visible===!1){var E=v.extendDeep({},s._template);E.showcoastlines=!1,E.showcountries=!1,E.showframe=!1,E.showlakes=!1,E.showland=!1,E.showocean=!1,E.showrivers=!1,E.showsubunits=!1,E.lonaxis&&(E.lonaxis.showgrid=!1),E.lataxis&&(E.lataxis.showgrid=!1),s._template=E}for(var M=u("visible"),I=0;I<p.length;I++){var N,z=p[I],F=[30,10][I];if(k)N=w[z+"Range"];else{var R=y[z+"Span"],V=(R[x]||R["*"])/2,$=u("projection.rotation."+z.substr(0,3),w.projRotate[I]);N=[$-V,$+V]}var U=u(z+".range",N);u(z+".tick0"),u(z+".dtick",F),u(z+".showgrid",!!M&&void 0)&&(u(z+".gridcolor"),u(z+".gridwidth"),u(z+".griddash")),s[z]._ax={type:"linear",_id:z.slice(0,3),_traceIndices:h,setScale:v.identity,c2l:v.identity,r2l:v.identity,autorange:!0,range:U.slice(),_m:1,_input:{}}}var Z=s.lonaxis.range,q=s.lataxis.range,W=Z[0],Q=Z[1];W>0&&Q<0&&(Q+=360);var X,J,ee,le=(W+Q)/2;if(!S){var oe=k?w.projRotate:[le,0,0];X=u("projection.rotation.lon",oe[0]),u("projection.rotation.lat",oe[1]),u("projection.rotation.roll",oe[2]),u("showcoastlines",!k&&M)&&(u("coastlinecolor"),u("coastlinewidth")),u("showocean",!!M&&void 0)&&u("oceancolor")}S?(J=-96.6,ee=38.7):(J=k?le:X,ee=(q[0]+q[1])/2),u("center.lon",J),u("center.lat",ee),T&&(u("projection.tilt"),u("projection.distance")),C&&u("projection.parallels",w.projParallels||[0,60]),u("projection.scale"),u("showland",!!M&&void 0)&&u("landcolor"),u("showlakes",!!M&&void 0)&&u("lakecolor"),u("showrivers",!!M&&void 0)&&(u("rivercolor"),u("riverwidth")),u("showcountries",k&&b!=="usa"&&M)&&(u("countrycolor"),u("countrywidth")),(b==="usa"||b==="north america"&&g===50)&&(u("showsubunits",M),u("subunitcolor"),u("subunitwidth")),k||u("showframe",M)&&(u("framecolor"),u("framewidth")),u("bgcolor"),u("fitbounds")&&(delete s.projection.scale,k?(delete s.center.lon,delete s.center.lat):A?(delete s.center.lon,delete s.center.lat,delete s.projection.rotation.lon,delete s.projection.rotation.lat,delete s.lonaxis.range,delete s.lataxis.range):(delete s.center.lon,delete s.center.lat,delete s.projection.rotation.lon))}c.exports=function(o,s,u){f(o,s,u,{type:"geo",attributes:_,handleDefaults:l,fullData:u,partition:"y"})}},14309:function(c,m,a){var v=a(45568),f=a(34809),n=a(33626),y=Math.PI/180,_=180/Math.PI,p={cursor:"pointer"},l={cursor:"auto"};function o(k,T){return v.behavior.zoom().translate(T.translate()).scale(T.scale())}function s(k,T,C){var A=k.id,E=k.graphDiv,M=E.layout,I=M[A],N=E._fullLayout,z=N[A],F={},R={};function V($,U){F[A+"."+$]=f.nestedProperty(I,$).get(),n.call("_storeDirectGUIEdit",M,N._preGUI,F);var Z=f.nestedProperty(z,$);Z.get()!==U&&(Z.set(U),f.nestedProperty(I,$).set(U),R[A+"."+$]=U)}C(V),V("projection.scale",T.scale()/k.fitScale),V("fitbounds",!1),E.emit("plotly_relayout",R)}function u(k,T){var C=o(0,T);function A(E){var M=T.invert(k.midPt);E("center.lon",M[0]),E("center.lat",M[1])}return C.on("zoomstart",function(){v.select(this).style(p)}).on("zoom",function(){T.scale(v.event.scale).translate(v.event.translate),k.render(!0);var E=T.invert(k.midPt);k.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/k.fitScale,"geo.center.lon":E[0],"geo.center.lat":E[1]})}).on("zoomend",function(){v.select(this).style(l),s(k,T,A)}),C}function d(k,T){var C,A,E,M,I,N,z,F,R,V=o(0,T);function $(Z){return T.invert(Z)}function U(Z){var q=T.rotate(),W=T.invert(k.midPt);Z("projection.rotation.lon",-q[0]),Z("center.lon",W[0]),Z("center.lat",W[1])}return V.on("zoomstart",function(){v.select(this).style(p),C=v.mouse(this),A=T.rotate(),E=T.translate(),M=A,I=$(C)}).on("zoom",function(){if(N=v.mouse(this),function(W){var Q=$(W);if(!Q)return!0;var X=T(Q);return Math.abs(X[0]-W[0])>2||Math.abs(X[1]-W[1])>2}(C))return V.scale(T.scale()),void V.translate(T.translate());T.scale(v.event.scale),T.translate([E[0],v.event.translate[1]]),I?$(N)&&(F=$(N),z=[M[0]+(F[0]-I[0]),A[1],A[2]],T.rotate(z),M=z):I=$(C=N),R=!0,k.render(!0);var Z=T.rotate(),q=T.invert(k.midPt);k.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/k.fitScale,"geo.center.lon":q[0],"geo.center.lat":q[1],"geo.projection.rotation.lon":-Z[0]})}).on("zoomend",function(){v.select(this).style(l),R&&s(k,T,U)}),V}function h(k,T){var C;T.rotate(),T.scale();var A=o(0,T),E=function(z){for(var F=0,R=arguments.length,V=[];++F<R;)V.push(arguments[F]);var $=v.dispatch.apply(null,V);return $.of=function(U,Z){return function(q){var W;try{W=q.sourceEvent=v.event,q.target=z,v.event=q,$[q.type].apply(U,Z)}finally{v.event=W}}},$}(A,"zoomstart","zoom","zoomend"),M=0,I=A.on;function N(z){var F=T.rotate();z("projection.rotation.lon",-F[0]),z("projection.rotation.lat",-F[1])}return A.on("zoomstart",function(){v.select(this).style(p);var z,F,R,V,$,U,Z,q,W,Q,X,J=v.mouse(this),ee=T.rotate(),le=ee,oe=T.translate(),se=(F=.5*(z=ee)[0]*y,R=.5*z[1]*y,V=.5*z[2]*y,$=Math.sin(F),U=Math.cos(F),Z=Math.sin(R),q=Math.cos(R),W=Math.sin(V),[U*q*(Q=Math.cos(V))+$*Z*W,$*q*Q-U*Z*W,U*Z*Q+$*q*W,U*q*W-$*Z*Q]);C=g(T,J),I.call(A,"zoom",function(){var ce,ae,ne,ie,ue,he,pe,me,_e,xe,we=v.mouse(this);if(T.scale(v.event.scale),C){if(g(T,we)){T.rotate(ee).translate(oe);var Ee=g(T,we),Pe=function(Ce,ye){if(Ce&&ye){var ge=function(Fe,De){return[Fe[1]*De[2]-Fe[2]*De[1],Fe[2]*De[0]-Fe[0]*De[2],Fe[0]*De[1]-Fe[1]*De[0]]}(Ce,ye),Me=Math.sqrt(S(ge,ge)),Se=.5*Math.acos(Math.max(-1,Math.min(1,S(Ce,ye)))),ze=Math.sin(Se)/Me;return Me&&[Math.cos(Se),ge[2]*ze,-ge[1]*ze,ge[0]*ze]}}(C,Ee),$e=function(Ce){return[Math.atan2(2*(Ce[0]*Ce[1]+Ce[2]*Ce[3]),1-2*(Ce[1]*Ce[1]+Ce[2]*Ce[2]))*_,Math.asin(Math.max(-1,Math.min(1,2*(Ce[0]*Ce[2]-Ce[3]*Ce[1]))))*_,Math.atan2(2*(Ce[0]*Ce[3]+Ce[1]*Ce[2]),1-2*(Ce[2]*Ce[2]+Ce[3]*Ce[3]))*_]}((ne=(ce=se)[0],ie=ce[1],ue=ce[2],he=ce[3],[ne*(pe=(ae=Pe)[0])-ie*(me=ae[1])-ue*(_e=ae[2])-he*(xe=ae[3]),ne*me+ie*pe+ue*xe-he*_e,ne*_e-ie*xe+ue*pe+he*me,ne*xe+ie*_e-ue*me+he*pe])),Te=function(Ce,ye,ge){var Me=x(ye,2,Ce[0]);Me=x(Me,1,Ce[1]),Me=x(Me,0,Ce[2]-ge[2]);var Se,ze,Fe=ye[0],De=ye[1],Ue=ye[2],Ne=Me[0],ke=Me[1],Oe=Me[2],Re=Math.atan2(De,Fe)*_,je=Math.sqrt(Fe*Fe+De*De);Math.abs(ke)>je?(ze=(ke>0?90:-90)-Re,Se=0):(ze=Math.asin(ke/je)*_-Re,Se=Math.sqrt(je*je-ke*ke));var Ze=180-ze-2*Re,Ye=(Math.atan2(Oe,Ne)-Math.atan2(Ue,Se))*_,it=(Math.atan2(Oe,Ne)-Math.atan2(Ue,-Se))*_;return b(ge[0],ge[1],ze,Ye)<=b(ge[0],ge[1],Ze,it)?[ze,Ye,ge[2]]:[Ze,it,ge[2]]}($e,C,le);isFinite(Te[0])&&isFinite(Te[1])&&isFinite(Te[2])||(Te=le),T.rotate(Te),le=Te}}else C=g(T,J=we);E.of(this,arguments)({type:"zoom"})}),X=E.of(this,arguments),M++||X({type:"zoomstart"})}).on("zoomend",function(){var z;v.select(this).style(l),I.call(A,"zoom",null),z=E.of(this,arguments),--M||z({type:"zoomend"}),s(k,T,N)}).on("zoom.redraw",function(){k.render(!0);var z=T.rotate();k.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":T.scale()/k.fitScale,"geo.projection.rotation.lon":-z[0],"geo.projection.rotation.lat":-z[1]})}),v.rebind(A,E,"on")}function g(k,T){var C=k.invert(T);return C&&isFinite(C[0])&&isFinite(C[1])&&function(A){var E=A[0]*y,M=A[1]*y,I=Math.cos(M);return[I*Math.cos(E),I*Math.sin(E),Math.sin(M)]}(C)}function b(k,T,C,A){var E=w(C-k),M=w(A-T);return Math.sqrt(E*E+M*M)}function w(k){return(k%360+540)%360-180}function x(k,T,C){var A=C*y,E=k.slice(),M=T===0?1:0,I=T===2?1:2,N=Math.cos(A),z=Math.sin(A);return E[M]=k[M]*N-k[I]*z,E[I]=k[I]*N+k[M]*z,E}function S(k,T){for(var C=0,A=0,E=k.length;A<E;++A)C+=k[A]*T[A];return C}c.exports=function(k,T){var C=k.projection;return(T._isScoped?u:T._isClipped?h:d)(k,C)}},4173:function(c,m,a){var v=a(33626),f=a(54826).SUBPLOT_PATTERN;m.fX=function(n,y,_){var p=v.subplotsRegistry[y];if(!p)return[];for(var l=p.attr,o=[],s=0;s<n.length;s++){var u=n[s];u[0].trace[l]===_&&o.push(u)}return o},m.eV=function(n,y,_){var p,l=[],o=[];if(!(p=typeof y=="string"?v.getModule(y).plot:typeof y=="function"?y:y.plot))return[l,n];for(var s=_,u=0;u<n.length;u++){var d=n[u],h=d[0].trace,g=h.zorder!==void 0;h.visible===!0&&h._length!==0&&(!h._module||h._module.plot!==p||g&&h.zorder!==s?o.push(d):l.push(d))}return[l,o]},m.KO=function(n,y,_){if(!v.subplotsRegistry[y])return[];var p,l,o,s=v.subplotsRegistry[y].attr,u=[];if(y==="gl2d"){var d=_.match(f);l="x"+d[1],o="y"+d[2]}for(var h=0;h<n.length;h++)p=n[h],y==="gl2d"&&v.traceIs(p,"gl2d")?p[s[0]]===l&&p[s[1]]===o&&u.push(p):p[s]===_&&u.push(p);return u}},77055:function(c,m,a){var v=a(99978),f=a(20573),n=a(44039),y=a(54826),_=a(74043);function p(l,o){this.element=l,this.plot=o,this.mouseListener=null,this.wheelListener=null,this.lastInputTime=Date.now(),this.lastPos=[0,0],this.boxEnabled=!1,this.boxInited=!1,this.boxStart=[0,0],this.boxEnd=[0,0],this.dragStart=[0,0]}c.exports=function(l){var o=l.mouseContainer,s=l.glplot,u=new p(o,s);function d(){l.xaxis.autorange=!1,l.yaxis.autorange=!1}function h(g,b,w){var x,S,k=l.calcDataBox(),T=s.viewBox,C=u.lastPos[0],A=u.lastPos[1],E=y.MINDRAG*s.pixelRatio,M=y.MINZOOM*s.pixelRatio;function I($,U,Z){var q=Math.min(U,Z),W=Math.max(U,Z);q!==W?(k[$]=q,k[$+2]=W,u.dataBox=k,l.setRanges(k)):(l.selectBox.selectBox=[0,0,1,1],l.glplot.setDirty())}switch(b*=s.pixelRatio,w*=s.pixelRatio,w=T[3]-T[1]-w,l.fullLayout.dragmode){case"zoom":if(g){var N=b/(T[2]-T[0])*(k[2]-k[0])+k[0],z=w/(T[3]-T[1])*(k[3]-k[1])+k[1];u.boxInited||(u.boxStart[0]=N,u.boxStart[1]=z,u.dragStart[0]=b,u.dragStart[1]=w),u.boxEnd[0]=N,u.boxEnd[1]=z,u.boxInited=!0,u.boxEnabled||u.boxStart[0]===u.boxEnd[0]&&u.boxStart[1]===u.boxEnd[1]||(u.boxEnabled=!0);var F=Math.abs(u.dragStart[0]-b)<M,R=Math.abs(u.dragStart[1]-w)<M;if(!function(){for(var $=l.graphDiv._fullLayout._axisConstraintGroups,U=l.xaxis._id,Z=l.yaxis._id,q=0;q<$.length;q++)if($[q][U]!==-1){if($[q][Z]!==-1)return!0;break}return!1}()||F&&R)F&&(u.boxEnd[0]=u.boxStart[0]),R&&(u.boxEnd[1]=u.boxStart[1]);else{x=u.boxEnd[0]-u.boxStart[0],S=u.boxEnd[1]-u.boxStart[1];var V=(k[3]-k[1])/(k[2]-k[0]);Math.abs(x*V)>Math.abs(S)?(u.boxEnd[1]=u.boxStart[1]+Math.abs(x)*V*(S>=0?1:-1),u.boxEnd[1]<k[1]?(u.boxEnd[1]=k[1],u.boxEnd[0]=u.boxStart[0]+(k[1]-u.boxStart[1])/Math.abs(V)):u.boxEnd[1]>k[3]&&(u.boxEnd[1]=k[3],u.boxEnd[0]=u.boxStart[0]+(k[3]-u.boxStart[1])/Math.abs(V))):(u.boxEnd[0]=u.boxStart[0]+Math.abs(S)/V*(x>=0?1:-1),u.boxEnd[0]<k[0]?(u.boxEnd[0]=k[0],u.boxEnd[1]=u.boxStart[1]+(k[0]-u.boxStart[0])*Math.abs(V)):u.boxEnd[0]>k[2]&&(u.boxEnd[0]=k[2],u.boxEnd[1]=u.boxStart[1]+(k[2]-u.boxStart[0])*Math.abs(V)))}}else u.boxEnabled?(x=u.boxStart[0]!==u.boxEnd[0],S=u.boxStart[1]!==u.boxEnd[1],x||S?(x&&(I(0,u.boxStart[0],u.boxEnd[0]),l.xaxis.autorange=!1),S&&(I(1,u.boxStart[1],u.boxEnd[1]),l.yaxis.autorange=!1),l.relayoutCallback()):l.glplot.setDirty(),u.boxEnabled=!1,u.boxInited=!1):u.boxInited&&(u.boxInited=!1);break;case"pan":u.boxEnabled=!1,u.boxInited=!1,g?(u.panning||(u.dragStart[0]=b,u.dragStart[1]=w),Math.abs(u.dragStart[0]-b)<E&&(b=u.dragStart[0]),Math.abs(u.dragStart[1]-w)<E&&(w=u.dragStart[1]),x=(C-b)*(k[2]-k[0])/(s.viewBox[2]-s.viewBox[0]),S=(A-w)*(k[3]-k[1])/(s.viewBox[3]-s.viewBox[1]),k[0]+=x,k[2]+=x,k[1]+=S,k[3]+=S,l.setRanges(k),u.panning=!0,u.lastInputTime=Date.now(),d(),l.cameraChanged(),l.handleAnnotations()):u.panning&&(u.panning=!1,l.relayoutCallback())}u.lastPos[0]=b,u.lastPos[1]=w}return u.mouseListener=v(o,h),o.addEventListener("touchstart",function(g){var b=n(g.changedTouches[0],o);h(0,b[0],b[1]),h(1,b[0],b[1]),g.preventDefault()},!!_&&{passive:!1}),o.addEventListener("touchmove",function(g){g.preventDefault();var b=n(g.changedTouches[0],o);h(1,b[0],b[1]),g.preventDefault()},!!_&&{passive:!1}),o.addEventListener("touchend",function(g){h(0,u.lastPos[0],u.lastPos[1]),g.preventDefault()},!!_&&{passive:!1}),u.wheelListener=f(o,function(g,b){if(!l.scrollZoom)return!1;var w=l.calcDataBox(),x=s.viewBox,S=u.lastPos[0],k=u.lastPos[1],T=Math.exp(5*b/(x[3]-x[1])),C=S/(x[2]-x[0])*(w[2]-w[0])+w[0],A=k/(x[3]-x[1])*(w[3]-w[1])+w[1];return w[0]=(w[0]-C)*T+C,w[2]=(w[2]-C)*T+C,w[1]=(w[1]-A)*T+A,w[3]=(w[3]-A)*T+A,l.setRanges(w),u.lastInputTime=Date.now(),d(),l.cameraChanged(),l.handleAnnotations(),l.relayoutCallback(),!0},!0),u}},10749:function(c,m,a){var v=a(29714),f=a(55010);function n(p){this.scene=p,this.gl=p.gl,this.pixelRatio=p.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=["x","y"],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=["sans-serif","sans-serif"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title="",this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont="sans-serif",this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}var y=n.prototype,_=["xaxis","yaxis"];y.merge=function(p){var l,o,s,u,d,h,g,b,w,x,S;for(this.titleEnable=!1,this.backgroundColor=f(p.plot_bgcolor),x=0;x<2;++x){var k=(l=_[x]).charAt(0);for(s=(o=p[this.scene[l]._name]).title.text===this.scene.fullLayout._dfltTitle[k]?"":o.title.text,S=0;S<=2;S+=2)this.labelEnable[x+S]=!1,this.labels[x+S]=s,this.labelColor[x+S]=f(o.title.font.color),this.labelFont[x+S]=o.title.font.family,this.labelSize[x+S]=o.title.font.size,this.labelPad[x+S]=this.getLabelPad(l,o),this.tickEnable[x+S]=!1,this.tickColor[x+S]=f((o.tickfont||{}).color),this.tickAngle[x+S]=o.tickangle==="auto"?0:Math.PI*-o.tickangle/180,this.tickPad[x+S]=this.getTickPad(o),this.tickMarkLength[x+S]=0,this.tickMarkWidth[x+S]=o.tickwidth||0,this.tickMarkColor[x+S]=f(o.tickcolor),this.borderLineEnable[x+S]=!1,this.borderLineColor[x+S]=f(o.linecolor),this.borderLineWidth[x+S]=o.linewidth||0;g=this.hasSharedAxis(o),d=this.hasAxisInDfltPos(l,o)&&!g,h=this.hasAxisInAltrPos(l,o)&&!g,u=o.mirror||!1,b=g?String(u).indexOf("all")!==-1:!!u,w=g?u==="allticks":String(u).indexOf("ticks")!==-1,d?this.labelEnable[x]=!0:h&&(this.labelEnable[x+2]=!0),d?this.tickEnable[x]=o.showticklabels:h&&(this.tickEnable[x+2]=o.showticklabels),(d||b)&&(this.borderLineEnable[x]=o.showline),(h||b)&&(this.borderLineEnable[x+2]=o.showline),(d||w)&&(this.tickMarkLength[x]=this.getTickMarkLength(o)),(h||w)&&(this.tickMarkLength[x+2]=this.getTickMarkLength(o)),this.gridLineEnable[x]=o.showgrid,this.gridLineColor[x]=f(o.gridcolor),this.gridLineWidth[x]=o.gridwidth,this.zeroLineEnable[x]=o.zeroline,this.zeroLineColor[x]=f(o.zerolinecolor),this.zeroLineWidth[x]=o.zerolinewidth}},y.hasSharedAxis=function(p){var l=this.scene,o=l.fullLayout._subplots.gl2d;return v.findSubplotsWithAxis(o,p).indexOf(l.id)!==0},y.hasAxisInDfltPos=function(p,l){var o=l.side;return p==="xaxis"?o==="bottom":p==="yaxis"?o==="left":void 0},y.hasAxisInAltrPos=function(p,l){var o=l.side;return p==="xaxis"?o==="top":p==="yaxis"?o==="right":void 0},y.getLabelPad=function(p,l){var o=1.5,s=l.title.font.size,u=l.showticklabels;return p==="xaxis"?l.side==="top"?s*(o+(u?1:0))-10:s*(o+(u?.5:0))-10:p==="yaxis"?l.side==="right"?10+s*(o+(u?1:.5)):10+s*(o+(u?.5:0)):void 0},y.getTickPad=function(p){return p.ticks==="outside"?10+p.ticklen:15},y.getTickMarkLength=function(p){if(!p.ticks)return 0;var l=p.ticklen;return p.ticks==="inside"?-l:l},c.exports=function(p){return new n(p)}},24585:function(c,m,a){var v=a(13582).overrideAll,f=a(27672),n=a(6704),y=a(62972),_=a(54826),p=a(37703),l=a(6811),o=a(4173).KO;m.name="gl2d",m.attr=["xaxis","yaxis"],m.idRoot=["x","y"],m.idRegex=_.idRegex,m.attrRegex=_.attrRegex,m.attributes=a(55126),m.supplyLayoutDefaults=function(s,u,d){u._has("cartesian")||p.supplyLayoutDefaults(s,u,d)},m.layoutAttrOverrides=v(p.layoutAttributes,"plot","from-root"),m.baseLayoutAttrOverrides=v({plot_bgcolor:n.plot_bgcolor,hoverlabel:l.hoverlabel},"plot","nested"),m.plot=function(s){for(var u=s._fullLayout,d=s._fullData,h=u._subplots.gl2d,g=0;g<h.length;g++){var b=h[g],w=u._plots[b],x=o(d,"gl2d",b),S=w._scene2d;S===void 0&&(S=new f({id:b,graphDiv:s,container:s.querySelector(".gl-container"),staticPlot:s._context.staticPlot,plotGlPixelRatio:s._context.plotGlPixelRatio},u),w._scene2d=S),S.plot(x,s.calcdata,u,s.layout)}},m.clean=function(s,u,d,h){for(var g=h._subplots.gl2d||[],b=0;b<g.length;b++){var w=g[b],x=h._plots[w];x._scene2d&&o(s,"gl2d",w).length===0&&(x._scene2d.destroy(),delete h._plots[w])}p.clean.apply(this,arguments)},m.drawFramework=function(s){s._context.staticPlot||p.drawFramework(s)},m.toSVG=function(s){for(var u=s._fullLayout,d=u._subplots.gl2d,h=0;h<d.length;h++){var g=u._plots[d[h]]._scene2d,b=g.toImage("png");u._glimages.append("svg:image").attr({xmlns:y.svg,"xlink:href":b,x:0,y:0,width:"100%",height:"100%",preserveAspectRatio:"none"}),g.destroy()}},m.updateFx=function(s){for(var u=s._fullLayout,d=u._subplots.gl2d,h=0;h<d.length;h++)u._plots[d[h]]._scene2d.updateFx(u.dragmode)}},27672:function(c,m,a){var v,f,n=a(33626),y=a(29714),_=a(32141),p=a(99098).gl_plot2d,l=a(99098).gl_spikes2d,o=a(99098).gl_select_box,s=a(22248),u=a(10749),d=a(77055),h=a(97464),g=a(84391),b=g.enforce,w=g.clean,x=a(32919).doAutoRange,S=a(70414),k=S.drawMode,T=S.selectMode,C=["xaxis","yaxis"],A=a(54826).SUBPLOT_PATTERN;function E(I,N){this.container=I.container,this.graphDiv=I.graphDiv,this.pixelRatio=I.plotGlPixelRatio||window.devicePixelRatio,this.id=I.id,this.staticPlot=!!I.staticPlot,this.scrollZoom=this.graphDiv._context._scrollZoom.cartesian,this.fullData=null,this.updateRefs(N),this.makeFramework(),this.stopped||(this.glplotOptions=u(this),this.glplotOptions.merge(N),this.glplot=p(this.glplotOptions),this.camera=d(this),this.traces={},this.spikes=l(this.glplot),this.selectBox=o(this.glplot,{innerFill:!1,outerFill:!0}),this.lastButtonState=0,this.pickResult=null,this.isMouseOver=!0,this.stopped=!1,this.redraw=this.draw.bind(this),this.redraw())}c.exports=E;var M=E.prototype;M.makeFramework=function(){if(this.staticPlot){if(!(f||(v=document.createElement("canvas"),f=s({canvas:v,preserveDrawingBuffer:!1,premultipliedAlpha:!0,antialias:!0}))))throw new Error("Error creating static canvas/context for image server");this.canvas=v,this.gl=f}else{var I=this.container.querySelector(".gl-canvas-focus"),N=s({canvas:I,preserveDrawingBuffer:!0,premultipliedAlpha:!0});if(!N)return h(this),void(this.stopped=!0);this.canvas=I,this.gl=N}var z=this.canvas;z.style.width="100%",z.style.height="100%",z.style.position="absolute",z.style.top="0px",z.style.left="0px",z.style["pointer-events"]="none",this.updateSize(z);var F=this.svgContainer=document.createElementNS("http://www.w3.org/2000/svg","svg");F.style.position="absolute",F.style.top=F.style.left="0px",F.style.width=F.style.height="100%",F.style["z-index"]=20,F.style["pointer-events"]="none";var R=this.mouseContainer=document.createElement("div");R.style.position="absolute",R.style["pointer-events"]="auto",this.pickCanvas=this.container.querySelector(".gl-canvas-pick");var V=this.container;V.appendChild(F),V.appendChild(R);var $=this;R.addEventListener("mouseout",function(){$.isMouseOver=!1,$.unhover()}),R.addEventListener("mouseover",function(){$.isMouseOver=!0})},M.toImage=function(I){I||(I="png"),this.stopped=!0,this.staticPlot&&this.container.appendChild(v),this.updateSize(this.canvas);var N=this.glplot.gl,z=N.drawingBufferWidth,F=N.drawingBufferHeight;N.clearColor(1,1,1,0),N.clear(N.COLOR_BUFFER_BIT|N.DEPTH_BUFFER_BIT),this.glplot.setDirty(),this.glplot.draw(),N.bindFramebuffer(N.FRAMEBUFFER,null);var R=new Uint8Array(z*F*4);N.readPixels(0,0,z,F,N.RGBA,N.UNSIGNED_BYTE,R);for(var V=0,$=F-1;V<$;++V,--$)for(var U=0;U<z;++U)for(var Z=0;Z<4;++Z){var q=R[4*(z*V+U)+Z];R[4*(z*V+U)+Z]=R[4*(z*$+U)+Z],R[4*(z*$+U)+Z]=q}var W=document.createElement("canvas");W.width=z,W.height=F;var Q,X=W.getContext("2d",{willReadFrequently:!0}),J=X.createImageData(z,F);switch(J.data.set(R),X.putImageData(J,0,0),I){case"jpeg":Q=W.toDataURL("image/jpeg");break;case"webp":Q=W.toDataURL("image/webp");break;default:Q=W.toDataURL("image/png")}return this.staticPlot&&this.container.removeChild(v),Q},M.updateSize=function(I){I||(I=this.canvas);var N=this.pixelRatio,z=this.fullLayout,F=z.width,R=z.height,V=0|Math.ceil(N*F),$=0|Math.ceil(N*R);return I.width===V&&I.height===$||(I.width=V,I.height=$),I},M.computeTickMarks=function(){this.xaxis.setScale(),this.yaxis.setScale();for(var I=[y.calcTicks(this.xaxis),y.calcTicks(this.yaxis)],N=0;N<2;++N)for(var z=0;z<I[N].length;++z)I[N][z].text=I[N][z].text+"";return I},M.updateRefs=function(I){this.fullLayout=I;var N=this.id.match(A),z="xaxis"+N[1],F="yaxis"+N[2];this.xaxis=this.fullLayout[z],this.yaxis=this.fullLayout[F]},M.relayoutCallback=function(){var I=this.graphDiv,N=this.xaxis,z=this.yaxis,F=I.layout,R={},V=R[N._name+".range"]=N.range.slice(),$=R[z._name+".range"]=z.range.slice();R[N._name+".autorange"]=N.autorange,R[z._name+".autorange"]=z.autorange,n.call("_storeDirectGUIEdit",I.layout,I._fullLayout._preGUI,R);var U=F[N._name];U.range=V,U.autorange=N.autorange;var Z=F[z._name];Z.range=$,Z.autorange=z.autorange,R.lastInputTime=this.camera.lastInputTime,I.emit("plotly_relayout",R)},M.cameraChanged=function(){var I=this.camera;this.glplot.setDataBox(this.calcDataBox());var N=this.computeTickMarks();(function(z,F){for(var R=0;R<2;++R){var V=z[R],$=F[R];if(V.length!==$.length)return!0;for(var U=0;U<V.length;++U)if(V[U].x!==$[U].x)return!0}return!1})(N,this.glplotOptions.ticks)&&(this.glplotOptions.ticks=N,this.glplotOptions.dataBox=I.dataBox,this.glplot.update(this.glplotOptions),this.handleAnnotations())},M.handleAnnotations=function(){for(var I=this.graphDiv,N=this.fullLayout.annotations,z=0;z<N.length;z++){var F=N[z];F.xref===this.xaxis._id&&F.yref===this.yaxis._id&&n.getComponentMethod("annotations","drawOne")(I,z)}},M.destroy=function(){if(this.glplot){var I=this.traces;I&&Object.keys(I).map(function(N){I[N].dispose(),delete I[N]}),this.glplot.dispose(),this.container.removeChild(this.svgContainer),this.container.removeChild(this.mouseContainer),this.fullData=null,this.glplot=null,this.stopped=!0,this.camera.mouseListener.enabled=!1,this.mouseContainer.removeEventListener("wheel",this.camera.wheelListener),this.camera=null}},M.plot=function(I,N,z){var F=this.glplot;this.updateRefs(z),this.xaxis.clearCalc(),this.yaxis.clearCalc(),this.updateTraces(I,N),this.updateFx(z.dragmode);var R=z.width,V=z.height;this.updateSize(this.canvas);var $=this.glplotOptions;$.merge(z),$.screenBox=[0,0,R,V];var U={_fullLayout:{_axisConstraintGroups:z._axisConstraintGroups,xaxis:this.xaxis,yaxis:this.yaxis,_size:z._size}};w(U,this.xaxis),w(U,this.yaxis);var Z,q,W=z._size,Q=this.xaxis.domain,X=this.yaxis.domain;for($.viewBox=[W.l+Q[0]*W.w,W.b+X[0]*W.h,R-W.r-(1-Q[1])*W.w,V-W.t-(1-X[1])*W.h],this.mouseContainer.style.width=W.w*(Q[1]-Q[0])+"px",this.mouseContainer.style.height=W.h*(X[1]-X[0])+"px",this.mouseContainer.height=W.h*(X[1]-X[0]),this.mouseContainer.style.left=W.l+Q[0]*W.w+"px",this.mouseContainer.style.top=W.t+(1-X[1])*W.h+"px",q=0;q<2;++q)(Z=this[C[q]])._length=$.viewBox[q+2]-$.viewBox[q],x(this.graphDiv,Z),Z.setScale();b(U),$.ticks=this.computeTickMarks(),$.dataBox=this.calcDataBox(),$.merge(z),F.update($),this.glplot.draw()},M.calcDataBox=function(){var I=this.xaxis,N=this.yaxis,z=I.range,F=N.range,R=I.r2l,V=N.r2l;return[R(z[0]),V(F[0]),R(z[1]),V(F[1])]},M.setRanges=function(I){var N=this.xaxis,z=this.yaxis,F=N.l2r,R=z.l2r;N.range=[F(I[0]),F(I[2])],z.range=[R(I[1]),R(I[3])]},M.updateTraces=function(I,N){var z,F,R,V=Object.keys(this.traces);this.fullData=I;e:for(z=0;z<V.length;z++){var $=V[z],U=this.traces[$];for(F=0;F<I.length;F++)if((R=I[F]).uid===$&&R.type===U.type)continue e;U.dispose(),delete this.traces[$]}for(z=0;z<I.length;z++){R=I[z];var Z=N[z],q=this.traces[R.uid];q?q.update(R,Z):(q=R._module.plot(this,R,Z),this.traces[R.uid]=q)}this.glplot.objects.sort(function(W,Q){return W._trace.index-Q._trace.index})},M.updateFx=function(I){T(I)||k(I)?(this.pickCanvas.style["pointer-events"]="none",this.mouseContainer.style["pointer-events"]="none"):(this.pickCanvas.style["pointer-events"]="auto",this.mouseContainer.style["pointer-events"]="auto"),this.mouseContainer.style.cursor=I==="pan"?"move":I==="zoom"?"crosshair":null},M.emitPointAction=function(I,N){for(var z,F=I.trace.uid,R=I.pointIndex,V=0;V<this.fullData.length;V++)this.fullData[V].uid===F&&(z=this.fullData[V]);var $={x:I.traceCoord[0],y:I.traceCoord[1],curveNumber:z.index,pointNumber:R,data:z._input,fullData:this.fullData,xaxis:this.xaxis,yaxis:this.yaxis};_.appendArrayPointValue($,z,R),this.graphDiv.emit(N,{points:[$]})},M.draw=function(){if(!this.stopped){requestAnimationFrame(this.redraw);var I=this.glplot,N=this.camera,z=N.mouseListener,F=this.lastButtonState===1&&z.buttons===0,R=this.fullLayout;this.lastButtonState=z.buttons,this.cameraChanged();var V,$=z.x*I.pixelRatio,U=this.canvas.height-I.pixelRatio*z.y;if(N.boxEnabled&&R.dragmode==="zoom"){this.selectBox.enabled=!0;for(var Z=this.selectBox.selectBox=[Math.min(N.boxStart[0],N.boxEnd[0]),Math.min(N.boxStart[1],N.boxEnd[1]),Math.max(N.boxStart[0],N.boxEnd[0]),Math.max(N.boxStart[1],N.boxEnd[1])],q=0;q<2;q++)N.boxStart[q]===N.boxEnd[q]&&(Z[q]=I.dataBox[q],Z[q+2]=I.dataBox[q+2]);I.setDirty()}else if(!N.panning&&this.isMouseOver){this.selectBox.enabled=!1;var W=R._size,Q=this.xaxis.domain,X=this.yaxis.domain,J=(V=I.pick($/I.pixelRatio+W.l+Q[0]*W.w,U/I.pixelRatio-(W.t+(1-X[1])*W.h)))&&V.object._trace.handlePick(V);if(J&&F&&this.emitPointAction(J,"plotly_click"),V&&V.object._trace.hoverinfo!=="skip"&&R.hovermode&&J&&(!this.lastPickResult||this.lastPickResult.traceUid!==J.trace.uid||this.lastPickResult.dataCoord[0]!==J.dataCoord[0]||this.lastPickResult.dataCoord[1]!==J.dataCoord[1])){var ee=J;this.lastPickResult={traceUid:J.trace?J.trace.uid:null,dataCoord:J.dataCoord.slice()},this.spikes.update({center:V.dataCoord}),ee.screenCoord=[((I.viewBox[2]-I.viewBox[0])*(V.dataCoord[0]-I.dataBox[0])/(I.dataBox[2]-I.dataBox[0])+I.viewBox[0])/I.pixelRatio,(this.canvas.height-(I.viewBox[3]-I.viewBox[1])*(V.dataCoord[1]-I.dataBox[1])/(I.dataBox[3]-I.dataBox[1])-I.viewBox[1])/I.pixelRatio],this.emitPointAction(J,"plotly_hover");var le=this.fullData[ee.trace.index]||{},oe=ee.pointIndex,se=_.castHoverinfo(le,R,oe);if(se&&se!=="all"){var ce=se.split("+");ce.indexOf("x")===-1&&(ee.traceCoord[0]=void 0),ce.indexOf("y")===-1&&(ee.traceCoord[1]=void 0),ce.indexOf("z")===-1&&(ee.traceCoord[2]=void 0),ce.indexOf("text")===-1&&(ee.textLabel=void 0),ce.indexOf("name")===-1&&(ee.name=void 0)}_.loneHover({x:ee.screenCoord[0],y:ee.screenCoord[1],xLabel:this.hoverFormatter("xaxis",ee.traceCoord[0]),yLabel:this.hoverFormatter("yaxis",ee.traceCoord[1]),zLabel:ee.traceCoord[2],text:ee.textLabel,name:ee.name,color:_.castHoverOption(le,oe,"bgcolor")||ee.color,borderColor:_.castHoverOption(le,oe,"bordercolor"),fontFamily:_.castHoverOption(le,oe,"font.family"),fontSize:_.castHoverOption(le,oe,"font.size"),fontColor:_.castHoverOption(le,oe,"font.color"),nameLength:_.castHoverOption(le,oe,"namelength"),textAlign:_.castHoverOption(le,oe,"align")},{container:this.svgContainer,gd:this.graphDiv})}}V||this.unhover(),I.draw()}},M.unhover=function(){this.lastPickResult&&(this.spikes.update({}),this.lastPickResult=null,this.graphDiv.emit("plotly_unhover"),_.loneUnhover(this.svgContainer))},M.hoverFormatter=function(I,N){if(N!==void 0){var z=this[I];return y.tickText(z,z.c2l(N),"hover").text}}},2487:function(c,m,a){var v=a(13582).overrideAll,f=a(6811),n=a(20299),y=a(4173).KO,_=a(34809),p=a(62972),l="gl3d",o="scene";m.name=l,m.attr=o,m.idRoot=o,m.idRegex=m.attrRegex=_.counterRegex("scene"),m.attributes=a(22597),m.layoutAttributes=a(77168),m.baseLayoutAttrOverrides=v({hoverlabel:f.hoverlabel},"plot","nested"),m.supplyLayoutDefaults=a(15250),m.plot=function(s){for(var u=s._fullLayout,d=s._fullData,h=u._subplots[l],g=0;g<h.length;g++){var b=h[g],w=y(d,l,b),x=u[b],S=x.camera,k=x._scene;k||(k=new n({id:b,graphDiv:s,container:s.querySelector(".gl-container"),staticPlot:s._context.staticPlot,plotGlPixelRatio:s._context.plotGlPixelRatio,camera:S},u),x._scene=k),k.viewInitial||(k.viewInitial={up:{x:S.up.x,y:S.up.y,z:S.up.z},eye:{x:S.eye.x,y:S.eye.y,z:S.eye.z},center:{x:S.center.x,y:S.center.y,z:S.center.z}}),k.plot(w,u,s.layout)}},m.clean=function(s,u,d,h){for(var g=h._subplots[l]||[],b=0;b<g.length;b++){var w=g[b];!u[w]&&h[w]._scene&&(h[w]._scene.destroy(),h._infolayer&&h._infolayer.selectAll(".annotation-"+w).remove())}},m.toSVG=function(s){for(var u=s._fullLayout,d=u._subplots[l],h=u._size,g=0;g<d.length;g++){var b=u[d[g]],w=b.domain,x=b._scene,S=x.toImage("png");u._glimages.append("svg:image").attr({xmlns:p.svg,"xlink:href":S,x:h.l+h.w*w.x[0],y:h.t+h.h*(1-w.y[1]),width:h.w*(w.x[1]-w.x[0]),height:h.h*(w.y[1]-w.y[0]),preserveAspectRatio:"none"}),x.destroy()}},m.cleanId=function(s){if(s.match(/^scene[0-9]*$/)){var u=s.substr(5);return u==="1"&&(u=""),o+u}},m.updateFx=function(s){for(var u=s._fullLayout,d=u._subplots[l],h=0;h<d.length;h++)u[d[h]]._scene.updateFx(u.dragmode,u.hovermode)}},22597:function(c){c.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}},63397:function(c,m,a){var v=a(78766),f=a(25829),n=a(93049).extendFlat,y=a(13582).overrideAll;c.exports=y({visible:f.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:v.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:f.color,categoryorder:f.categoryorder,categoryarray:f.categoryarray,title:{text:f.title.text,font:f.title.font},type:n({},f.type,{values:["-","linear","log","date","category"]}),autotypenumbers:f.autotypenumbers,autorange:f.autorange,autorangeoptions:{minallowed:f.autorangeoptions.minallowed,maxallowed:f.autorangeoptions.maxallowed,clipmin:f.autorangeoptions.clipmin,clipmax:f.autorangeoptions.clipmax,include:f.autorangeoptions.include,editType:"plot"},rangemode:f.rangemode,minallowed:f.minallowed,maxallowed:f.maxallowed,range:n({},f.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:f.minor.tickmode,nticks:f.nticks,tick0:f.tick0,dtick:f.dtick,tickvals:f.tickvals,ticktext:f.ticktext,ticks:f.ticks,mirror:f.mirror,ticklen:f.ticklen,tickwidth:f.tickwidth,tickcolor:f.tickcolor,showticklabels:f.showticklabels,labelalias:f.labelalias,tickfont:f.tickfont,tickangle:f.tickangle,tickprefix:f.tickprefix,showtickprefix:f.showtickprefix,ticksuffix:f.ticksuffix,showticksuffix:f.showticksuffix,showexponent:f.showexponent,exponentformat:f.exponentformat,minexponent:f.minexponent,separatethousands:f.separatethousands,tickformat:f.tickformat,tickformatstops:f.tickformatstops,hoverformat:f.hoverformat,showline:f.showline,linecolor:f.linecolor,linewidth:f.linewidth,showgrid:f.showgrid,gridcolor:n({},f.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:f.gridwidth,zeroline:f.zeroline,zerolinecolor:f.zerolinecolor,zerolinewidth:f.zerolinewidth,_deprecated:{title:f._deprecated.title,titlefont:f._deprecated.titlefont}},"plot","from-root")},34258:function(c,m,a){var v=a(65657).mix,f=a(34809),n=a(78032),y=a(63397),_=a(4392),p=a(97655),l=["xaxis","yaxis","zaxis"];c.exports=function(o,s,u){var d,h;function g(x,S){return f.coerce(d,h,y,x,S)}for(var b=0;b<l.length;b++){var w=l[b];d=o[w]||{},(h=n.newContainer(s,w))._id=w[0]+u.scene,h._name=w,_(d,h,g,u),p(d,h,g,{font:u.font,letter:w[0],data:u.data,showGrid:!0,noAutotickangles:!0,noTicklabelindex:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,noTicklabelstep:!0,noTicklabelposition:!0,noTicklabeloverflow:!0,noInsiderange:!0,bgColor:u.bgColor,calendar:u.calendar},u.fullLayout),g("gridcolor",v(h.color,u.bgColor,72.72727272727273).toRgbString()),g("title.text",w[0]),h.setScale=f.noop,g("showspikes")&&(g("spikesides"),g("spikethickness"),g("spikecolor",h.color)),g("showaxeslabels"),g("showbackground")&&g("backgroundcolor")}}},95701:function(c,m,a){var v=a(55010),f=a(34809),n=["xaxis","yaxis","zaxis"];function y(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickFontWeight=["normal","normal","normal","normal"],this.tickFontStyle=["normal","normal","normal","normal"],this.tickFontVariant=["normal","normal","normal","normal"],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelFontWeight=["normal","normal","normal","normal"],this.labelFontStyle=["normal","normal","normal","normal"],this.labelFontVariant=["normal","normal","normal","normal"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}y.prototype.merge=function(_,p){for(var l=this,o=0;o<3;++o){var s=p[n[o]];s.visible?(l.labels[o]=_._meta?f.templateString(s.title.text,_._meta):s.title.text,"font"in s.title&&(s.title.font.color&&(l.labelColor[o]=v(s.title.font.color)),s.title.font.family&&(l.labelFont[o]=s.title.font.family),s.title.font.size&&(l.labelSize[o]=s.title.font.size),s.title.font.weight&&(l.labelFontWeight[o]=s.title.font.weight),s.title.font.style&&(l.labelFontStyle[o]=s.title.font.style),s.title.font.variant&&(l.labelFontVariant[o]=s.title.font.variant)),"showline"in s&&(l.lineEnable[o]=s.showline),"linecolor"in s&&(l.lineColor[o]=v(s.linecolor)),"linewidth"in s&&(l.lineWidth[o]=s.linewidth),"showgrid"in s&&(l.gridEnable[o]=s.showgrid),"gridcolor"in s&&(l.gridColor[o]=v(s.gridcolor)),"gridwidth"in s&&(l.gridWidth[o]=s.gridwidth),s.type==="log"?l.zeroEnable[o]=!1:"zeroline"in s&&(l.zeroEnable[o]=s.zeroline),"zerolinecolor"in s&&(l.zeroLineColor[o]=v(s.zerolinecolor)),"zerolinewidth"in s&&(l.zeroLineWidth[o]=s.zerolinewidth),"ticks"in s&&s.ticks?l.lineTickEnable[o]=!0:l.lineTickEnable[o]=!1,"ticklen"in s&&(l.lineTickLength[o]=l._defaultLineTickLength[o]=s.ticklen),"tickcolor"in s&&(l.lineTickColor[o]=v(s.tickcolor)),"tickwidth"in s&&(l.lineTickWidth[o]=s.tickwidth),"tickangle"in s&&(l.tickAngle[o]=s.tickangle==="auto"?-3600:Math.PI*-s.tickangle/180),"showticklabels"in s&&(l.tickEnable[o]=s.showticklabels),"tickfont"in s&&(s.tickfont.color&&(l.tickColor[o]=v(s.tickfont.color)),s.tickfont.family&&(l.tickFont[o]=s.tickfont.family),s.tickfont.size&&(l.tickSize[o]=s.tickfont.size),s.tickfont.weight&&(l.tickFontWeight[o]=s.tickfont.weight),s.tickfont.style&&(l.tickFontStyle[o]=s.tickfont.style),s.tickfont.variant&&(l.tickFontVariant[o]=s.tickfont.variant)),"mirror"in s?["ticks","all","allticks"].indexOf(s.mirror)!==-1?(l.lineTickMirror[o]=!0,l.lineMirror[o]=!0):s.mirror===!0?(l.lineTickMirror[o]=!1,l.lineMirror[o]=!0):(l.lineTickMirror[o]=!1,l.lineMirror[o]=!1):l.lineMirror[o]=!1,"showbackground"in s&&s.showbackground!==!1?(l.backgroundEnable[o]=!0,l.backgroundColor[o]=v(s.backgroundcolor)):l.backgroundEnable[o]=!1):(l.tickEnable[o]=!1,l.labelEnable[o]=!1,l.lineEnable[o]=!1,l.lineTickEnable[o]=!1,l.gridEnable[o]=!1,l.zeroEnable[o]=!1,l.backgroundEnable[o]=!1)}},c.exports=function(_,p){var l=new y;return l.merge(_,p),l}},15250:function(c,m,a){var v=a(34809),f=a(78766),n=a(33626),y=a(4448),_=a(34258),p=a(77168),l=a(4173).KO,o="gl3d";function s(u,d,h,g){for(var b=h("bgcolor"),w=f.combine(b,g.paper_bgcolor),x=["up","center","eye"],S=0;S<x.length;S++)h("camera."+x[S]+".x"),h("camera."+x[S]+".y"),h("camera."+x[S]+".z");h("camera.projection.type");var k=!!h("aspectratio.x")&&!!h("aspectratio.y")&&!!h("aspectratio.z"),T=h("aspectmode",k?"manual":"auto");k||(u.aspectratio=d.aspectratio={x:1,y:1,z:1},T==="manual"&&(d.aspectmode="auto"),u.aspectmode=d.aspectmode);var C=l(g.fullData,o,g.id);_(u,d,{font:g.font,scene:g.id,data:C,bgColor:w,calendar:g.calendar,autotypenumbersDflt:g.autotypenumbersDflt,fullLayout:g.fullLayout}),n.getComponentMethod("annotations3d","handleDefaults")(u,d,g);var A=g.getDfltFromLayout("dragmode");if(A!==!1&&!A)if(A="orbit",u.camera&&u.camera.up){var E=u.camera.up.x,M=u.camera.up.y,I=u.camera.up.z;I!==0&&(E&&M&&I?I/Math.sqrt(E*E+M*M+I*I)>.999&&(A="turntable"):A="turntable")}else A="turntable";h("dragmode",A),h("hovermode",g.getDfltFromLayout("hovermode"))}c.exports=function(u,d,h){var g=d._basePlotModules.length>1;y(u,d,h,{type:o,attributes:p,handleDefaults:s,fullLayout:d,font:d.font,fullData:h,getDfltFromLayout:function(b){if(!g)return v.validate(u[b],p[b])?u[b]:void 0},autotypenumbersDflt:d.autotypenumbers,paper_bgcolor:d.paper_bgcolor,calendar:d.calendar})}},77168:function(c,m,a){var v=a(63397),f=a(13792).u,n=a(93049).extendFlat,y=a(34809).counterRegex;function _(p,l,o){return{x:{valType:"number",dflt:p,editType:"camera"},y:{valType:"number",dflt:l,editType:"camera"},z:{valType:"number",dflt:o,editType:"camera"},editType:"camera"}}c.exports={_arrayAttrRegexps:[y("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:n(_(0,0,1),{}),center:n(_(0,0,0),{}),eye:n(_(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:f({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:v,yaxis:v,zaxis:v,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},64087:function(c,m,a){var v=a(55010),f=["xaxis","yaxis","zaxis"];function n(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}n.prototype.merge=function(y){for(var _=0;_<3;++_){var p=y[f[_]];p.visible?(this.enabled[_]=p.showspikes,this.colors[_]=v(p.spikecolor),this.drawSides[_]=p.spikesides,this.lineWidth[_]=p.spikethickness):(this.enabled[_]=!1,this.drawSides[_]=!1)}},c.exports=function(y){var _=new n;return _.merge(y),_}},32412:function(c,m,a){c.exports=function(_){for(var p=_.axesOptions,l=_.glplot.axesPixels,o=_.fullSceneLayout,s=[[],[],[]],u=0;u<3;++u){var d=o[n[u]];if(d._length=(l[u].hi-l[u].lo)*l[u].pixelsPerDataUnit/_.dataScale[u],Math.abs(d._length)===1/0||isNaN(d._length))s[u]=[];else{d._input_range=d.range.slice(),d.range[0]=l[u].lo/_.dataScale[u],d.range[1]=l[u].hi/_.dataScale[u],d._m=1/(_.dataScale[u]*l[u].pixelsPerDataUnit),d.range[0]===d.range[1]&&(d.range[0]-=1,d.range[1]+=1);var h=d.tickmode;if(d.tickmode==="auto"){d.tickmode="linear";var g=d.nticks||f.constrain(d._length/40,4,9);v.autoTicks(d,Math.abs(d.range[1]-d.range[0])/g)}for(var b=v.calcTicks(d,{msUTC:!0}),w=0;w<b.length;++w)b[w].x=b[w].x*_.dataScale[u],d.type==="date"&&(b[w].text=b[w].text.replace(/\<br\>/g," "));s[u]=b,d.tickmode=h}}for(p.ticks=s,u=0;u<3;++u)for(y[u]=.5*(_.glplot.bounds[0][u]+_.glplot.bounds[1][u]),w=0;w<2;++w)p.bounds[w][u]=_.glplot.bounds[w][u];_.contourLevels=function(x){for(var S=new Array(3),k=0;k<3;++k){for(var T=x[k],C=new Array(T.length),A=0;A<T.length;++A)C[A]=T[A].x;S[k]=C}return S}(s)};var v=a(29714),f=a(34809),n=["xaxis","yaxis","zaxis"],y=[0,0,0]},25802:function(c){function m(a,v){var f,n,y=[0,0,0,0];for(f=0;f<4;++f)for(n=0;n<4;++n)y[n]+=a[4*f+n]*v[f];return y}c.exports=function(a,v){return m(a.projection,m(a.view,m(a.model,[v[0],v[1],v[2],1])))}},20299:function(c,m,a){var v,f,n=a(99098).gl_plot3d,y=n.createCamera,_=n.createScene,p=a(22248),l=a(74043),o=a(33626),s=a(34809),u=s.preserveDrawingBuffer(),d=a(29714),h=a(32141),g=a(55010),b=a(97464),w=a(25802),x=a(95701),S=a(64087),k=a(32412),T=a(32919).applyAutorangeOptions,C=!1;function A(z,F){var R=document.createElement("div"),V=z.container;this.graphDiv=z.graphDiv;var $=document.createElementNS("http://www.w3.org/2000/svg","svg");$.style.position="absolute",$.style.top=$.style.left="0px",$.style.width=$.style.height="100%",$.style["z-index"]=20,$.style["pointer-events"]="none",R.appendChild($),this.svgContainer=$,R.id=z.id,R.style.position="absolute",R.style.top=R.style.left="0px",R.style.width=R.style.height="100%",V.appendChild(R),this.fullLayout=F,this.id=z.id||"scene",this.fullSceneLayout=F[this.id],this.plotArgs=[[],{},{}],this.axesOptions=x(F,F[this.id]),this.spikeOptions=S(F[this.id]),this.container=R,this.staticMode=!!z.staticPlot,this.pixelRatio=this.pixelRatio||z.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=o.getComponentMethod("annotations3d","convert"),this.drawAnnotations=o.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var E=A.prototype;E.prepareOptions=function(){var z=this,F={canvas:z.canvas,gl:z.gl,glOptions:{preserveDrawingBuffer:u,premultipliedAlpha:!0,antialias:!0},container:z.container,axes:z.axesOptions,spikes:z.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:z.camera,pixelRatio:z.pixelRatio};if(z.staticMode){if(!(f||(v=document.createElement("canvas"),f=p({canvas:v,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error("error creating static canvas/context for image server");F.gl=f,F.canvas=v}return F};var M=!0;E.tryCreatePlot=function(){var z=this,F=z.prepareOptions(),R=!0;try{z.glplot=_(F)}catch{if(z.staticMode||!M||u)R=!1;else{s.warn(["webgl setup failed possibly due to","false preserveDrawingBuffer config.","The mobile/tablet device may not be detected by is-mobile module.","Enabling preserveDrawingBuffer in second attempt to create webgl scene..."].join(" "));try{u=F.glOptions.preserveDrawingBuffer=!0,z.glplot=_(F)}catch{u=F.glOptions.preserveDrawingBuffer=!1,R=!1}}}return M=!1,R},E.initializeGLCamera=function(){var z=this,F=z.fullSceneLayout.camera,R=F.projection.type==="orthographic";z.camera=y(z.container,{center:[F.center.x,F.center.y,F.center.z],eye:[F.eye.x,F.eye.y,F.eye.z],up:[F.up.x,F.up.y,F.up.z],_ortho:R,zoomMin:.01,zoomMax:100,mode:"orbit"})},E.initializeGLPlot=function(){var z=this;if(z.initializeGLCamera(),!z.tryCreatePlot())return b(z);z.traces={},z.make4thDimension();var F=z.graphDiv,R=F.layout,V=function(){var U={};return z.isCameraChanged(R)&&(U[z.id+".camera"]=z.getCamera()),z.isAspectChanged(R)&&(U[z.id+".aspectratio"]=z.glplot.getAspectratio(),R[z.id].aspectmode!=="manual"&&(z.fullSceneLayout.aspectmode=R[z.id].aspectmode=U[z.id+".aspectmode"]="manual")),U},$=function(U){if(U.fullSceneLayout.dragmode!==!1){var Z=V();U.saveLayout(R),U.graphDiv.emit("plotly_relayout",Z)}};return z.glplot.canvas&&(z.glplot.canvas.addEventListener("mouseup",function(){$(z)}),z.glplot.canvas.addEventListener("touchstart",function(){C=!0}),z.glplot.canvas.addEventListener("wheel",function(U){if(F._context._scrollZoom.gl3d){if(z.camera._ortho){var Z=U.deltaX>U.deltaY?1.1:.9090909090909091,q=z.glplot.getAspectratio();z.glplot.setAspectratio({x:Z*q.x,y:Z*q.y,z:Z*q.z})}$(z)}},!!l&&{passive:!1}),z.glplot.canvas.addEventListener("mousemove",function(){if(z.fullSceneLayout.dragmode!==!1&&z.camera.mouseListener.buttons!==0){var U=V();z.graphDiv.emit("plotly_relayouting",U)}}),z.staticMode||z.glplot.canvas.addEventListener("webglcontextlost",function(U){F&&F.emit&&F.emit("plotly_webglcontextlost",{event:U,layer:z.id})},!1)),z.glplot.oncontextloss=function(){z.recoverContext()},z.glplot.onrender=function(){z.render()},!0},E.render=function(){var z,F=this,R=F.graphDiv,V=F.svgContainer,$=F.container.getBoundingClientRect();R._fullLayout._calcInverseTransform(R);var U=R._fullLayout._invScaleX,Z=R._fullLayout._invScaleY,q=$.width*U,W=$.height*Z;V.setAttributeNS(null,"viewBox","0 0 "+q+" "+W),V.setAttributeNS(null,"width",q),V.setAttributeNS(null,"height",W),k(F),F.glplot.axes.update(F.axesOptions);for(var Q=Object.keys(F.traces),X=null,J=F.glplot.selection,ee=0;ee<Q.length;++ee)(z=F.traces[Q[ee]]).data.hoverinfo!=="skip"&&z.handlePick(J)&&(X=z),z.setContourLevels&&z.setContourLevels();function le(we,Ee,Pe){var $e=F.fullSceneLayout[we+"axis"];return $e.type!=="log"&&(Ee=$e.d2l(Ee)),d.hoverLabelText($e,Ee,Pe)}if(X!==null){var oe=w(F.glplot.cameraParams,J.dataCoordinate);z=X.data;var se,ce=R._fullData[z.index],ae=J.index,ne={xLabel:le("x",J.traceCoordinate[0],z.xhoverformat),yLabel:le("y",J.traceCoordinate[1],z.yhoverformat),zLabel:le("z",J.traceCoordinate[2],z.zhoverformat)},ie=h.castHoverinfo(ce,F.fullLayout,ae),ue=(ie||"").split("+"),he=ie&&ie==="all";ce.hovertemplate||he||(ue.indexOf("x")===-1&&(ne.xLabel=void 0),ue.indexOf("y")===-1&&(ne.yLabel=void 0),ue.indexOf("z")===-1&&(ne.zLabel=void 0),ue.indexOf("text")===-1&&(J.textLabel=void 0),ue.indexOf("name")===-1&&(X.name=void 0));var pe=[];z.type==="cone"||z.type==="streamtube"?(ne.uLabel=le("x",J.traceCoordinate[3],z.uhoverformat),(he||ue.indexOf("u")!==-1)&&pe.push("u: "+ne.uLabel),ne.vLabel=le("y",J.traceCoordinate[4],z.vhoverformat),(he||ue.indexOf("v")!==-1)&&pe.push("v: "+ne.vLabel),ne.wLabel=le("z",J.traceCoordinate[5],z.whoverformat),(he||ue.indexOf("w")!==-1)&&pe.push("w: "+ne.wLabel),ne.normLabel=J.traceCoordinate[6].toPrecision(3),(he||ue.indexOf("norm")!==-1)&&pe.push("norm: "+ne.normLabel),z.type==="streamtube"&&(ne.divergenceLabel=J.traceCoordinate[7].toPrecision(3),(he||ue.indexOf("divergence")!==-1)&&pe.push("divergence: "+ne.divergenceLabel)),J.textLabel&&pe.push(J.textLabel),se=pe.join("<br>")):z.type==="isosurface"||z.type==="volume"?(ne.valueLabel=d.hoverLabelText(F._mockAxis,F._mockAxis.d2l(J.traceCoordinate[3]),z.valuehoverformat),pe.push("value: "+ne.valueLabel),J.textLabel&&pe.push(J.textLabel),se=pe.join("<br>")):se=J.textLabel;var me={x:J.traceCoordinate[0],y:J.traceCoordinate[1],z:J.traceCoordinate[2],data:ce._input,fullData:ce,curveNumber:ce.index,pointNumber:ae};h.appendArrayPointValue(me,ce,ae),z._module.eventData&&(me=ce._module.eventData(me,J,ce,{},ae));var _e={points:[me]};if(F.fullSceneLayout.hovermode){var xe=[];h.loneHover({trace:ce,x:(.5+.5*oe[0]/oe[3])*q,y:(.5-.5*oe[1]/oe[3])*W,xLabel:ne.xLabel,yLabel:ne.yLabel,zLabel:ne.zLabel,text:se,name:X.name,color:h.castHoverOption(ce,ae,"bgcolor")||X.color,borderColor:h.castHoverOption(ce,ae,"bordercolor"),fontFamily:h.castHoverOption(ce,ae,"font.family"),fontSize:h.castHoverOption(ce,ae,"font.size"),fontColor:h.castHoverOption(ce,ae,"font.color"),nameLength:h.castHoverOption(ce,ae,"namelength"),textAlign:h.castHoverOption(ce,ae,"align"),hovertemplate:s.castOption(ce,ae,"hovertemplate"),hovertemplateLabels:s.extendFlat({},me,ne),eventData:[me]},{container:V,gd:R,inOut_bbox:xe}),me.bbox=xe[0]}J.distance<5&&(J.buttons||C)?R.emit("plotly_click",_e):R.emit("plotly_hover",_e),this.oldEventData=_e}else h.loneUnhover(V),this.oldEventData&&R.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;F.drawAnnotations(F)},E.recoverContext=function(){var z=this;z.glplot.dispose();var F=function(){z.glplot.gl.isContextLost()?requestAnimationFrame(F):z.initializeGLPlot()?z.plot.apply(z,z.plotArgs):s.error("Catastrophic and unrecoverable WebGL error. Context lost.")};requestAnimationFrame(F)};var I=["xaxis","yaxis","zaxis"];function N(z,F,R){for(var V=z.fullSceneLayout,$=0;$<3;$++){var U=I[$],Z=U.charAt(0),q=V[U],W=F[Z],Q=F[Z+"calendar"],X=F["_"+Z+"length"];if(s.isArrayOrTypedArray(W))for(var J,ee=0;ee<(X||W.length);ee++)if(s.isArrayOrTypedArray(W[ee]))for(var le=0;le<W[ee].length;++le)J=q.d2l(W[ee][le],0,Q),!isNaN(J)&&isFinite(J)&&(R[0][$]=Math.min(R[0][$],J),R[1][$]=Math.max(R[1][$],J));else J=q.d2l(W[ee],0,Q),!isNaN(J)&&isFinite(J)&&(R[0][$]=Math.min(R[0][$],J),R[1][$]=Math.max(R[1][$],J));else R[0][$]=Math.min(R[0][$],0),R[1][$]=Math.max(R[1][$],X-1)}}E.plot=function(z,F,R){var V=this;if(V.plotArgs=[z,F,R],!V.glplot.contextLost){var $,U,Z,q,W,Q,X=F[V.id],J=R[V.id];V.fullLayout=F,V.fullSceneLayout=X,V.axesOptions.merge(F,X),V.spikeOptions.merge(X),V.setViewport(X),V.updateFx(X.dragmode,X.hovermode),V.camera.enableWheel=V.graphDiv._context._scrollZoom.gl3d,V.glplot.setClearColor(g(X.bgcolor)),V.setConvert(W),z?Array.isArray(z)||(z=[z]):z=[];var ee=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(Z=0;Z<z.length;++Z)($=z[Z]).visible===!0&&$._length!==0&&N(this,$,ee);(function(Fe,De){for(var Ue=Fe.fullSceneLayout,Ne=Ue.annotations||[],ke=0;ke<3;ke++)for(var Oe=I[ke],Re=Oe.charAt(0),je=Ue[Oe],Ze=0;Ze<Ne.length;Ze++){var Ye=Ne[Ze];if(Ye.visible){var it=je.r2l(Ye[Re]);!isNaN(it)&&isFinite(it)&&(De[0][ke]=Math.min(De[0][ke],it),De[1][ke]=Math.max(De[1][ke],it))}}})(this,ee);var le=[1,1,1];for(q=0;q<3;++q)ee[1][q]===ee[0][q]?le[q]=1:le[q]=1/(ee[1][q]-ee[0][q]);for(V.dataScale=le,V.convertAnnotations(this),Z=0;Z<z.length;++Z)($=z[Z]).visible===!0&&$._length!==0&&((U=V.traces[$.uid])?U.data.type===$.type?U.update($):(U.dispose(),U=$._module.plot(this,$),V.traces[$.uid]=U):(U=$._module.plot(this,$),V.traces[$.uid]=U),U.name=$.name);var oe=Object.keys(V.traces);e:for(Z=0;Z<oe.length;++Z){for(q=0;q<z.length;++q)if(z[q].uid===oe[Z]&&z[q].visible===!0&&z[q]._length!==0)continue e;(U=V.traces[oe[Z]]).dispose(),delete V.traces[oe[Z]]}V.glplot.objects.sort(function(Fe,De){return Fe._trace.data.index-De._trace.data.index});var se,ce=[[0,0,0],[0,0,0]],ae=[],ne={};for(Z=0;Z<3;++Z){var ie;if((Q=(W=X[I[Z]]).type)in ne?(ne[Q].acc*=le[Z],ne[Q].count+=1):ne[Q]={acc:le[Z],count:1},W.autorange){ce[0][Z]=1/0,ce[1][Z]=-1/0;var ue=V.glplot.objects,he=V.fullSceneLayout.annotations||[],pe=W._name.charAt(0);for(q=0;q<ue.length;q++){var me=ue[q],_e=me.bounds,xe=me._trace.data._pad||0;me.constructor.name==="ErrorBars"&&W._lowerLogErrorBound?ce[0][Z]=Math.min(ce[0][Z],W._lowerLogErrorBound):ce[0][Z]=Math.min(ce[0][Z],_e[0][Z]/le[Z]-xe),ce[1][Z]=Math.max(ce[1][Z],_e[1][Z]/le[Z]+xe)}for(q=0;q<he.length;q++){var we=he[q];if(we.visible){var Ee=W.r2l(we[pe]);ce[0][Z]=Math.min(ce[0][Z],Ee),ce[1][Z]=Math.max(ce[1][Z],Ee)}}if("rangemode"in W&&W.rangemode==="tozero"&&(ce[0][Z]=Math.min(ce[0][Z],0),ce[1][Z]=Math.max(ce[1][Z],0)),ce[0][Z]>ce[1][Z])ce[0][Z]=-1,ce[1][Z]=1;else{var Pe=ce[1][Z]-ce[0][Z];ce[0][Z]-=Pe/32,ce[1][Z]+=Pe/32}if(ie=[ce[0][Z],ce[1][Z]],ie=T(ie,W),ce[0][Z]=ie[0],ce[1][Z]=ie[1],W.isReversed()){var $e=ce[0][Z];ce[0][Z]=ce[1][Z],ce[1][Z]=$e}}else ie=W.range,ce[0][Z]=W.r2l(ie[0]),ce[1][Z]=W.r2l(ie[1]);ce[0][Z]===ce[1][Z]&&(ce[0][Z]-=1,ce[1][Z]+=1),ae[Z]=ce[1][Z]-ce[0][Z],W.range=[ce[0][Z],ce[1][Z]],W.limitRange(),V.glplot.setBounds(Z,{min:W.range[0]*le[Z],max:W.range[1]*le[Z]})}var Te=X.aspectmode;if(Te==="cube")se=[1,1,1];else if(Te==="manual"){var Ce=X.aspectratio;se=[Ce.x,Ce.y,Ce.z]}else{if(Te!=="auto"&&Te!=="data")throw new Error("scene.js aspectRatio was not one of the enumerated types");var ye=[1,1,1];for(Z=0;Z<3;++Z){var ge=ne[Q=(W=X[I[Z]]).type];ye[Z]=Math.pow(ge.acc,1/ge.count)/le[Z]}se=Te==="data"||Math.max.apply(null,ye)/Math.min.apply(null,ye)<=4?ye:[1,1,1]}X.aspectratio.x=J.aspectratio.x=se[0],X.aspectratio.y=J.aspectratio.y=se[1],X.aspectratio.z=J.aspectratio.z=se[2],V.glplot.setAspectratio(X.aspectratio),V.viewInitial.aspectratio||(V.viewInitial.aspectratio={x:X.aspectratio.x,y:X.aspectratio.y,z:X.aspectratio.z}),V.viewInitial.aspectmode||(V.viewInitial.aspectmode=X.aspectmode);var Me=X.domain||null,Se=F._size||null;if(Me&&Se){var ze=V.container.style;ze.position="absolute",ze.left=Se.l+Me.x[0]*Se.w+"px",ze.top=Se.t+(1-Me.y[1])*Se.h+"px",ze.width=Se.w*(Me.x[1]-Me.x[0])+"px",ze.height=Se.h*(Me.y[1]-Me.y[0])+"px"}V.glplot.redraw()}},E.destroy=function(){var z=this;z.glplot&&(z.camera.mouseListener.enabled=!1,z.container.removeEventListener("wheel",z.camera.wheelListener),z.camera=null,z.glplot.dispose(),z.container.parentNode.removeChild(z.container),z.glplot=null)},E.getCamera=function(){var z,F=this;return F.camera.view.recalcMatrix(F.camera.view.lastT()),{up:{x:(z=F.camera).up[0],y:z.up[1],z:z.up[2]},center:{x:z.center[0],y:z.center[1],z:z.center[2]},eye:{x:z.eye[0],y:z.eye[1],z:z.eye[2]},projection:{type:z._ortho===!0?"orthographic":"perspective"}}},E.setViewport=function(z){var F,R=this,V=z.camera;R.camera.lookAt.apply(this,[[(F=V).eye.x,F.eye.y,F.eye.z],[F.center.x,F.center.y,F.center.z],[F.up.x,F.up.y,F.up.z]]),R.glplot.setAspectratio(z.aspectratio),V.projection.type==="orthographic"!==R.camera._ortho&&(R.glplot.redraw(),R.glplot.clearRGBA(),R.glplot.dispose(),R.initializeGLPlot())},E.isCameraChanged=function(z){var F=this.getCamera(),R=s.nestedProperty(z,this.id+".camera").get();function V(q,W,Q,X){var J=["up","center","eye"],ee=["x","y","z"];return W[J[Q]]&&q[J[Q]][ee[X]]===W[J[Q]][ee[X]]}var $=!1;if(R===void 0)$=!0;else{for(var U=0;U<3;U++)for(var Z=0;Z<3;Z++)if(!V(F,R,U,Z)){$=!0;break}(!R.projection||F.projection&&F.projection.type!==R.projection.type)&&($=!0)}return $},E.isAspectChanged=function(z){var F=this.glplot.getAspectratio(),R=s.nestedProperty(z,this.id+".aspectratio").get();return R===void 0||R.x!==F.x||R.y!==F.y||R.z!==F.z},E.saveLayout=function(z){var F,R,V,$,U,Z,q=this,W=q.fullLayout,Q=q.isCameraChanged(z),X=q.isAspectChanged(z),J=Q||X;if(J){var ee={};Q&&(F=q.getCamera(),V=(R=s.nestedProperty(z,q.id+".camera")).get(),ee[q.id+".camera"]=V),X&&($=q.glplot.getAspectratio(),Z=(U=s.nestedProperty(z,q.id+".aspectratio")).get(),ee[q.id+".aspectratio"]=Z),o.call("_storeDirectGUIEdit",z,W._preGUI,ee),Q&&(R.set(F),s.nestedProperty(W,q.id+".camera").set(F)),X&&(U.set($),s.nestedProperty(W,q.id+".aspectratio").set($),q.glplot.redraw())}return J},E.updateFx=function(z,F){var R=this,V=R.camera;if(V)if(z==="orbit")V.mode="orbit",V.keyBindingMode="rotate";else if(z==="turntable"){V.up=[0,0,1],V.mode="turntable",V.keyBindingMode="rotate";var $=R.graphDiv,U=$._fullLayout,Z=R.fullSceneLayout.camera,q=Z.up.x,W=Z.up.y,Q=Z.up.z;if(Q/Math.sqrt(q*q+W*W+Q*Q)<.999){var X=R.id+".camera.up",J={x:0,y:0,z:1},ee={};ee[X]=J;var le=$.layout;o.call("_storeDirectGUIEdit",le,U._preGUI,ee),Z.up=J,s.nestedProperty(le,X).set(J)}}else V.keyBindingMode=z;R.fullSceneLayout.hovermode=F},E.toImage=function(z){var F=this;z||(z="png"),F.staticMode&&F.container.appendChild(v),F.glplot.redraw();var R=F.glplot.gl,V=R.drawingBufferWidth,$=R.drawingBufferHeight;R.bindFramebuffer(R.FRAMEBUFFER,null);var U=new Uint8Array(V*$*4);R.readPixels(0,0,V,$,R.RGBA,R.UNSIGNED_BYTE,U),function(X,J,ee){for(var le=0,oe=ee-1;le<oe;++le,--oe)for(var se=0;se<J;++se)for(var ce=0;ce<4;++ce){var ae=4*(J*le+se)+ce,ne=4*(J*oe+se)+ce,ie=X[ae];X[ae]=X[ne],X[ne]=ie}}(U,V,$),function(X,J,ee){for(var le=0;le<ee;++le)for(var oe=0;oe<J;++oe){var se=4*(J*le+oe),ce=X[se+3];if(ce>0)for(var ae=255/ce,ne=0;ne<3;++ne)X[se+ne]=Math.min(ae*X[se+ne],255)}}(U,V,$);var Z=document.createElement("canvas");Z.width=V,Z.height=$;var q,W=Z.getContext("2d",{willReadFrequently:!0}),Q=W.createImageData(V,$);switch(Q.data.set(U),W.putImageData(Q,0,0),z){case"jpeg":q=Z.toDataURL("image/jpeg");break;case"webp":q=Z.toDataURL("image/webp");break;default:q=Z.toDataURL("image/png")}return F.staticMode&&F.container.removeChild(v),q},E.setConvert=function(){for(var z=0;z<3;z++){var F=this.fullSceneLayout[I[z]];d.setConvert(F,this.fullLayout),F.setScale=s.noop}},E.make4thDimension=function(){var z=this,F=z.graphDiv._fullLayout;z._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},d.setConvert(z._mockAxis,F)},c.exports=A},88239:function(c){c.exports=function(m,a,v,f){f=f||m.length;for(var n=new Array(f),y=0;y<f;y++)n[y]=[m[y],a[y],v[y]];return n}},6704:function(c,m,a){var v=a(80337),f=a(49722),n=a(10229),y=a(64101),_=a(52307),p=a(57891),l=a(93049).extendFlat,o=v({editType:"calc"});o.family.dflt='"Open Sans", verdana, arial, sans-serif',o.size.dflt=12,o.color.dflt=n.defaultLine,c.exports={font:o,title:{text:{valType:"string",editType:"layoutstyle"},font:v({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:v({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:l(p({editType:"layoutstyle"}),{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},minreducedwidth:{valType:"number",min:2,dflt:64,editType:"plot"},minreducedheight:{valType:"number",min:2,dflt:64,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:n.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:n.background,editType:"layoutstyle"},autotypenumbers:{valType:"enumerated",values:["convert types","strict"],dflt:"convert types",editType:"calc"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:n.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},newshape:y.newshape,activeshape:y.activeshape,newselection:_.newselection,activeselection:_.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:l({},f.transition,{editType:"none"}),_deprecated:{title:{valType:"string",editType:"layoutstyle"},titlefont:v({editType:"layoutstyle"})}}},8814:function(c,m,a){var v=a(62994),f=a(37071),n="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",y="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",_="https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",p={basic:_,streets:_,outdoors:_,light:n,dark:y,satellite:a(51962),"satellite-streets":f,"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:'© <a target="_blank" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',tiles:["https://tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-positron":n,"carto-darkmatter":y,"carto-voyager":_,"carto-positron-nolabels":"https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json","carto-darkmatter-nolabels":"https://basemaps.cartocdn.com/gl/dark-matter-nolabels-gl-style/style.json","carto-voyager-nolabels":"https://basemaps.cartocdn.com/gl/voyager-nolabels-gl-style/style.json"},l=v(p);c.exports={styleValueDflt:"basic",stylesMap:p,styleValuesMap:l,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",missingStyleErrorMsg:["No valid maplibre style found, please set `map.style` to one of:",l.join(", "),"or use a tile service."].join(`