@golstats/gsc-player-team-profile 1.0.72 → 1.0.73

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.
@@ -29,12 +29,12 @@
29
29
  * Vue 3 Carousel 0.3.1
30
30
  * (c) 2023
31
31
  * @license MIT
32
- */const Hs={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"}},t4={itemsToShow:{default:Hs.itemsToShow,type:Number},itemsToScroll:{default:Hs.itemsToScroll,type:Number},wrapAround:{default:Hs.wrapAround,type:Boolean},throttle:{default:Hs.throttle,type:Number},snapAlign:{default:Hs.snapAlign,validator(r){return["start","end","center","center-even","center-odd"].includes(r)}},transition:{default:Hs.transition,type:Number},breakpoints:{default:Hs.breakpoints,type:Object},autoplay:{default:Hs.autoplay,type:Number},pauseAutoplayOnHover:{default:Hs.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Hs.mouseDrag,type:Boolean},touchDrag:{default:Hs.touchDrag,type:Boolean},dir:{default:Hs.dir,validator(r){return["rtl","ltr"].includes(r)}},i18n:{default:Hs.i18n,type:Object},settings:{default(){return{}},type:Object}};function HP({config:r,slidesCount:U}){const{snapAlign:E,wrapAround:K,itemsToShow:oe=1}=r;if(K)return Math.max(U-1,0);let L;switch(E){case"start":L=U-oe;break;case"end":L=U-1;break;case"center":case"center-odd":L=U-Math.ceil((oe-.5)/2);break;case"center-even":L=U-Math.ceil(oe/2);break;default:L=0;break}return Math.max(L,0)}function YP({config:r,slidesCount:U}){const{wrapAround:E,snapAlign:K,itemsToShow:oe=1}=r;let L=0;if(E||oe>U)return L;switch(K){case"start":L=0;break;case"end":L=oe-1;break;case"center":case"center-odd":L=Math.floor((oe-1)/2);break;case"center-even":L=Math.floor((oe-2)/2);break;default:L=0;break}return L}function dv({val:r,max:U,min:E}){return U<E?r:Math.min(Math.max(r,E),U)}function QP({config:r,currentSlide:U,slidesCount:E}){const{snapAlign:K,wrapAround:oe,itemsToShow:L=1}=r;let T=U;switch(K){case"center":case"center-odd":T-=(L-1)/2;break;case"center-even":T-=(L-2)/2;break;case"end":T-=L-1;break}return oe?T:dv({val:T,max:E-L,min:0})}function n4(r){return r?r.reduce((U,E)=>{var K;return E.type===p.Fragment?[...U,...n4(E.children)]:((K=E.type)===null||K===void 0?void 0:K.name)==="CarouselSlide"?[...U,E]:U},[]):[]}function pv({val:r,max:U,min:E=0}){return r>U?pv({val:r-(U+1),max:U,min:E}):r<E?pv({val:r+(U+1),max:U,min:E}):r}function $P(r,U){let E;return U?function(...K){const oe=this;E||(r.apply(oe,K),E=!0,setTimeout(()=>E=!1,U))}:r}function ez(r,U){let E;return function(...K){E&&clearTimeout(E),E=setTimeout(()=>{r(...K),E=null},U)}}function tz(r="",U={}){return Object.entries(U).reduce((E,[K,oe])=>E.replace(`{${K}}`,String(oe)),r)}var nz=p.defineComponent({name:"ARIA",setup(){const r=p.inject("config",p.reactive(Object.assign({},Hs))),U=p.inject("currentSlide",p.ref(0)),E=p.inject("slidesCount",p.ref(0));return()=>p.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},tz(r.i18n.itemXofY,{currentSlide:U.value+1,slidesCount:E.value}))}}),rz=p.defineComponent({name:"Carousel",props:t4,setup(r,{slots:U,emit:E,expose:K}){var oe;const L=p.ref(null),T=p.ref([]),e=p.ref(0),k=p.ref(0),v=p.reactive(Object.assign({},Hs));let n=Object.assign({},Hs),w;const b=p.ref((oe=r.modelValue)!==null&&oe!==void 0?oe:0),c=p.ref(0),a=p.ref(0),t=p.ref(0),o=p.ref(0);let i,s;p.provide("config",v),p.provide("slidesCount",k),p.provide("currentSlide",b),p.provide("maxSlide",t),p.provide("minSlide",o),p.provide("slideWidth",e);function l(){w=Object.assign({},r.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),r),{i18n:Object.assign(Object.assign({},n.i18n),r.i18n),breakpoints:void 0}),d(n)}function u(){if(!w||!Object.keys(w).length)return;const te=Object.keys(w).map(ce=>Number(ce)).sort((ce,ue)=>+ue-+ce);let ae=Object.assign({},n);te.some(ce=>{const ue=window.matchMedia(`(min-width: ${ce}px)`).matches;return ue&&(ae=Object.assign(Object.assign({},ae),w[ce])),ue}),d(ae)}function d(te){Object.entries(te).forEach(([ae,ce])=>v[ae]=ce)}const g=ez(()=>{u(),f()},16);function f(){if(!L.value)return;const te=L.value.getBoundingClientRect();e.value=te.width/v.itemsToShow}function C(){k.value<=0||(a.value=Math.ceil((k.value-1)/2),t.value=HP({config:v,slidesCount:k.value}),o.value=YP({config:v,slidesCount:k.value}),v.wrapAround||(b.value=dv({val:b.value,max:t.value,min:o.value})))}p.onMounted(()=>{p.nextTick(()=>f()),setTimeout(()=>f(),1e3),u(),A(),window.addEventListener("resize",g,{passive:!0}),E("init")}),p.onUnmounted(()=>{s&&clearTimeout(s),i&&clearInterval(i),window.removeEventListener("resize",g,{passive:!0})});let y=!1;const m={x:0,y:0},x={x:0,y:0},_=p.reactive({x:0,y:0}),S=p.ref(!1),O=p.ref(!1),h=()=>{S.value=!0},M=()=>{S.value=!1};function N(te){["INPUT","TEXTAREA","SELECT"].includes(te.target.tagName)||(y=te.type==="touchstart",y||te.preventDefault(),!(!y&&te.button!==0||j.value)&&(m.x=y?te.touches[0].clientX:te.clientX,m.y=y?te.touches[0].clientY:te.clientY,document.addEventListener(y?"touchmove":"mousemove",P,!0),document.addEventListener(y?"touchend":"mouseup",R,!0)))}const P=$P(te=>{O.value=!0,x.x=y?te.touches[0].clientX:te.clientX,x.y=y?te.touches[0].clientY:te.clientY;const ae=x.x-m.x,ce=x.y-m.y;_.y=ce,_.x=ae},v.throttle);function R(){const te=v.dir==="rtl"?-1:1,ae=Math.sign(_.x)*.4,ce=Math.round(_.x/e.value+ae)*te;if(ce&&!y){const ue=de=>{de.stopPropagation(),window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}X(b.value-ce),_.x=0,_.y=0,O.value=!1,document.removeEventListener(y?"touchmove":"mousemove",P,!0),document.removeEventListener(y?"touchend":"mouseup",R,!0)}function A(){!v.autoplay||v.autoplay<=0||(i=setInterval(()=>{v.pauseAutoplayOnHover&&S.value||F()},v.autoplay))}function q(){i&&(clearInterval(i),i=null),A()}const j=p.ref(!1);function X(te){const ae=v.wrapAround?te:dv({val:te,max:t.value,min:o.value});b.value===ae||j.value||(E("slide-start",{slidingToIndex:te,currentSlideIndex:b.value,prevSlideIndex:c.value,slidesCount:k.value}),j.value=!0,c.value=b.value,b.value=ae,s=setTimeout(()=>{if(v.wrapAround){const ce=pv({val:ae,max:t.value,min:0});ce!==b.value&&(b.value=ce,E("loop",{currentSlideIndex:b.value,slidingToIndex:te}))}E("update:modelValue",b.value),E("slide-end",{currentSlideIndex:b.value,prevSlideIndex:c.value,slidesCount:k.value}),j.value=!1,q()},v.transition))}function F(){X(b.value+v.itemsToScroll)}function W(){X(b.value-v.itemsToScroll)}const Y={slideTo:X,next:F,prev:W};p.provide("nav",Y),p.provide("isSliding",j);const B=p.computed(()=>QP({config:v,currentSlide:b.value,slidesCount:k.value}));p.provide("slidesToScroll",B);const G=p.computed(()=>{const te=v.dir==="rtl"?-1:1,ae=B.value*e.value*te;return{transform:`translateX(${_.x-ae}px)`,transition:`${j.value?v.transition:0}ms`,margin:v.wrapAround?`0 -${k.value*e.value}px`:"",width:"100%"}});function J(){l(),u(),C(),f(),q()}Object.keys(t4).forEach(te=>{["modelValue"].includes(te)||p.watch(()=>r[te],J)}),p.watch(()=>r.modelValue,te=>{te!==b.value&&X(Number(te))}),p.watch(k,C),E("before-init"),l();const se={config:v,slidesCount:k,slideWidth:e,next:F,prev:W,slideTo:X,currentSlide:b,maxSlide:t,minSlide:o,middleSlide:a};K({updateBreakpointsConfigs:u,updateSlidesData:C,updateSlideWidth:f,initDefaultConfigs:l,restartCarousel:J,slideTo:X,next:F,prev:W,nav:Y,data:se});const re=U.default||U.slides,ne=U.addons,$=p.reactive(se);return()=>{const te=n4(re==null?void 0:re($)),ae=(ne==null?void 0:ne($))||[];te.forEach((me,be)=>me.props.index=be);let ce=te;if(v.wrapAround){const me=te.map((_e,we)=>p.cloneVNode(_e,{index:-te.length+we,isClone:!0,key:`clone-before-${we}`})),be=te.map((_e,we)=>p.cloneVNode(_e,{index:te.length+we,isClone:!0,key:`clone-after-${we}`}));ce=[...me,...te,...be]}T.value=te,k.value=Math.max(te.length,1);const ue=p.h("ol",{class:"carousel__track",style:G.value,onMousedownCapture:v.mouseDrag?N:null,onTouchstartPassiveCapture:v.touchDrag?N:null},ce),de=p.h("div",{class:"carousel__viewport"},ue);return p.h("section",{ref:L,class:{carousel:!0,"is-sliding":j.value,"is-dragging":O.value,"is-hover":S.value,"carousel--rtl":v.dir==="rtl"},dir:v.dir,"aria-label":v.i18n.ariaGallery,tabindex:"0",onMouseenter:h,onMouseleave:M},[de,ae,p.h(nz)])}}}),r4;(function(r){r.arrowUp="arrowUp",r.arrowDown="arrowDown",r.arrowRight="arrowRight",r.arrowLeft="arrowLeft"})(r4||(r4={}));var az=p.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(r,{slots:U}){const E=p.inject("config",p.reactive(Object.assign({},Hs))),K=p.inject("currentSlide",p.ref(0)),oe=p.inject("slidesToScroll",p.ref(0)),L=p.inject("isSliding",p.ref(!1)),T=()=>r.index===K.value,e=()=>r.index===K.value-1,k=()=>r.index===K.value+1,v=()=>{const n=Math.floor(oe.value),w=Math.ceil(oe.value+E.itemsToShow-1);return r.index>=n&&r.index<=w};return()=>{var n;return p.h("li",{style:{width:`${100/E.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":r.isClone,"carousel__slide--visible":v(),"carousel__slide--active":T(),"carousel__slide--prev":e(),"carousel__slide--next":k(),"carousel__slide--sliding":L.value},"aria-hidden":!v()},(n=U.default)===null||n===void 0?void 0:n.call(U))}}});const oz=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E},iz=r=>(p.pushScopeId("data-v-cf3e4ab5"),r=r(),p.popScopeId(),r),sz={class:"gsc-carousel"},lz={key:0},cz=iz(()=>p.createElementVNode("div",null,"no hay",-1)),uz=[cz],dz={class:"gsc-carousel__2d__slides"},pz={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fz=["fill"],hz={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},mz=["fill"],yz={class:"gsc-carousel__2d__navigation"},gz={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},vz=["stroke"],bz={key:1,class:"gsc-carousel__2d__navigation__pagination"},xz=["onClick"],_z={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wz=["stroke"],Sz={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:r=>["propName","value"].every(U=>U in r)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(r,{expose:U,emit:E}){const K=r;p.useCssVars(t=>({a79d2c9e:r.slideLeftArrowBackgroundImage,"227709fa":r.slidesArrowsLeftAndRight,c388b60c:r.slideRightArrowBackgroundImage,"257da7fc":r.marginTop,"1c9922a0":r.secondarySlidesOpacity}));const oe=p.ref(null),L=p.ref({}),T=p.ref(0),e=p.ref(!1);p.watch(oe,t=>{t&&e.value?(e.value=!1,k(K.items)):t&&t.slideTo&&t.slideTo(T.value)},{deep:!0}),p.watch(()=>K.currentItemIndex,t=>{T.value!==t&&b(t)}),p.watch(()=>K.items,t=>{oe.value?k(t):e.value=!0},{immediate:!0});function k(t){if(t&&t.length&&oe.value){if(K.defaultItemByProp){const o=K.items.findIndex(i=>i[K.defaultItemByProp.propName]===K.defaultItemByProp.value);o!==-1?(T.value=o,L.value=t[o]):(T.value=0,L.value=t[0])}else T.value=K.defaultItemByIndex,L.value=t[K.defaultItemByIndex];oe.value.slideTo&&oe.value.slideTo(T.value),E("input",{selectedItem:L.value,selectedItemIndex:T.value})}}function v(){oe.value&&oe.value.next()}function n(){oe.value&&oe.value.prev()}function w(){oe.value&&oe.value.updateSlideWidth()}function b(t){oe.value&&oe.value.slideTo(t)}function c(t){oe.value.slideTo(t)}function a(t){const o=t.slidingToIndex<0?K.items.length-1:t.slidingToIndex===K.items.length?0:t.slidingToIndex;T.value=o,L.value=K.items[o],E("update:currentItemIndex",o),E("input",{selectedItem:L.value,selectedItemIndex:T.value})}return U({prev:n,next:v,updateSlideWidth:w,slideTo:b}),(t,o)=>(p.openBlock(),p.createElementBlock("div",sz,[K.is3d?(p.openBlock(),p.createElementBlock("div",lz,uz)):(p.openBlock(),p.createElementBlock("div",{key:1,class:p.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":r.isMainSlidePriority}])},[p.createElementVNode("div",dz,[p.createVNode(p.unref(rz),{ref_key:"carousel2d",ref:oe,"items-to-show":r.itemsToShow,"wrap-around":r.wrapAround,onSlideStart:a},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.items,(i,s)=>(p.openBlock(),p.createBlock(p.unref(az),{key:s},{default:p.withCtx(()=>[p.renderSlot(t.$slots,"default",{item:i},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),r.areSlidesArrowsVisible?(p.openBlock(),p.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:p.normalizeStyle("max-width:"+r.arrowsMaxWidth+"!important"),onClick:o[0]||(o[0]=i=>oe.value.prev())},[p.createElementVNode("div",{class:p.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:r.areSlidesArrowsRounded}])},[(p.openBlock(),p.createElementBlock("svg",pz,[p.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:r.arrowsColor},null,8,fz)]))],2)],4)):p.createCommentVNode("",!0),r.areSlidesArrowsVisible?(p.openBlock(),p.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:p.normalizeStyle("max-width:"+r.arrowsMaxWidth+"!important"),onClick:o[1]||(o[1]=i=>v())},[p.createElementVNode("div",{class:p.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:r.areSlidesArrowsRounded}])},[(p.openBlock(),p.createElementBlock("svg",hz,[p.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:r.arrowsColor},null,8,mz)]))],2)],4)):p.createCommentVNode("",!0),p.createElementVNode("div",yz,[r.areNavigationArrowsVisible?(p.openBlock(),p.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:o[2]||(o[2]=i=>n())},[(p.openBlock(),p.createElementBlock("svg",gz,[p.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:K.arrowsColor},null,8,vz)]))])):p.createCommentVNode("",!0),r.isPaginationVisible?(p.openBlock(),p.createElementBlock("div",bz,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.items,(i,s)=>(p.openBlock(),p.createElementBlock("div",{key:`i-${s}`,class:"gsc-carousel__2d__navigation__pagination__item",style:p.normalizeStyle({height:`${K.navigationHeight}px`,width:`${T.value===s?K.navigationActiveWidth:K.navigationActiveWidth/2}px`,borderRadius:`${K.navigationBorderRadius}px`,backgroundColor:`${T.value===s?K.navigationActiveColor:K.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:l=>c(s)},null,12,xz))),128))])):p.createCommentVNode("",!0),r.areNavigationArrowsVisible?(p.openBlock(),p.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:o[3]||(o[3]=i=>oe.value.next())},[(p.openBlock(),p.createElementBlock("svg",_z,[p.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:K.arrowsColor},null,8,wz)]))])):p.createCommentVNode("",!0)])],2))]))}},Tz=oz(Sz,[["__scopeId","data-v-cf3e4ab5"]]),fv=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E};let a4=null;const hv={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const r=this.gamesContainerWidth;return r<=400?"date400":r<=540?"date540":r<=650?"date650":"date"},seasoncontainer(){const r=this.gamesContainerWidth;return r<=400?"season-container400":r<=540?"season-container540":r<=650?"season-container650":"season-container"},matchcontainer(){const r=this.gamesContainerWidth;return r<=400?"match-container400":r<=540?"match-container540":r<=650?"match-container650":"match-container"},containerinfogame(){const r=this.gamesContainerWidth;return r<=400?"container-info-game400":r<=540?"container-info-game540":r<=650?"container-info-game650":"container-info-game"},playbutton(){const r=this.gamesContainerWidth;return r<=400?"play-button400":r<=540?"play-button540":r<=650?"play-button650":"play-button"},baselogo(){const r=this.gamesContainerWidth;return r<=400?"base-logo400":r<=540?"base-logo540":r<=650?"base-logo650":"base-logo"},baselogoright(){const r=this.gamesContainerWidth;return r<=400?"base-logo-right400":r<=540?"base-logo-right540":r<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const r=this.gamesContainerWidth;return r<=400?"thumbnail-highlights400":r<=540?"thumbnail-highlights540":r<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const r=this.gamesContainerWidth;return r<=400?"team-logo400":r<=540?"team-logo540":r<=650?"team-logo650":"team-logo"},logoright(){const r=this.gamesContainerWidth;return r<=400?"logo-right400":r<=540?"logo-right540":r<=650?"logo-right650":"logo-right"},secondline(){const r=this.gamesContainerWidth;return r<=400?"second-line400":r<=540?"second-line540":r<=650?"second-line650":"second-line"},titlename(){const r=this.gamesContainerWidth;return r<=400?"title-name400":r<=540?"title-name540":r<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)a4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),a4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},o4=()=>{p.useCssVars(r=>({"9d0f46f6":r.colorBackgroundHome+"45",ec0e4054:r.colorBackgroundAway+"45","45ffc585":r.colorBackgroundHome,"45fcb394":r.colorBackgroundAway}))},i4=hv.setup;hv.setup=i4?(r,U)=>(o4(),i4(r,U)):o4;const w1=r=>(p.pushScopeId("data-v-71797e9d"),r=r(),p.popScopeId(),r),kz=w1(()=>p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[p.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Cz=[kz],Oz=w1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Nz=["src"],Lz=w1(()=>p.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Ez=w1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Vz=["src"],Mz=["src"],Uz={class:"text-container"};function Pz(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",{ref:"gamesContainer",class:p.normalizeClass(L.thumbnailhighlights)},[p.createElementVNode("div",{class:p.normalizeClass(L.playbutton),onClick:U[0]||(U[0]=(...T)=>L.onclickPlayVideos&&L.onclickPlayVideos(...T))},Cz,2),E.dateGame!=""?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(L.date)},p.toDisplayString(E.dateGame),3)):p.createCommentVNode("",!0),E.matchday!=""&&E.seasonName!=""?(p.openBlock(),p.createElementBlock("div",{key:1,class:p.normalizeClass(L.containerinfogame)},[E.matchday!=""?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(L.matchcontainer)},p.toDisplayString(E.matchday),3)):p.createCommentVNode("",!0),E.seasonName!=""?(p.openBlock(),p.createElementBlock("div",{key:1,class:p.normalizeClass(L.seasoncontainer)},p.toDisplayString(E.seasonName),3)):p.createCommentVNode("",!0)],2)):p.createCommentVNode("",!0),Oz,p.createElementVNode("img",{src:E.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Nz),p.createElementVNode("div",{class:p.normalizeClass([L.baselogo,"position-image"])},null,2),p.createElementVNode("div",{class:p.normalizeClass(L.baselogoright)},null,2),Lz,Ez,p.createElementVNode("img",{src:E.logoHome,alt:"",class:p.normalizeClass(L.teamlogo)},null,10,Vz),p.createElementVNode("img",{src:E.logoAway,alt:"",class:p.normalizeClass(L.logoright)},null,10,Mz),p.createElementVNode("div",Uz,[p.createElementVNode("span",{class:p.normalizeClass(L.secondline)},p.toDisplayString(E.score),3),p.createElementVNode("div",{class:p.normalizeClass(L.titlename)},p.toDisplayString(E.titleCategory),3)])],2)}const zz=fv(hv,[["render",Pz],["__scopeId","data-v-71797e9d"]]);let s4=null;const mv={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const r=this.gamesContainerWidth;return r<=400?"play-button400":r<=540?"play-button540":r<=650?"play-button650":"play-button"},points(){const r=this.gamesContainerWidth;return r<=400?"points400":r<=540?"points540":r<=650?"points650":"points"},containerinfogame(){const r=this.gamesContainerWidth;return r<=400?"container-info-game400":r<=540?"container-info-game540":r<=650?"container-info-game650":"container-info-game"},teamname(){const r=this.gamesContainerWidth;return r<=400?"team-name400":r<=540?"team-name540":r<=650?"team-name650":"team-name"},teamscore(){const r=this.gamesContainerWidth;return r<=400?"team-score400":r<=540?"team-score540":r<=650?"team-score650":"team-score"},teamlogo(){const r=this.gamesContainerWidth;return r<=400?"team-logo400":r<=540?"team-logo540":r<=650?"team-logo650":"team-logo"},hometeam(){const r=this.gamesContainerWidth;return r<=400?"home-team400":r<=540?"home-team540":r<=650?"home-team650":"home-team"},awayteam(){const r=this.gamesContainerWidth;return r<=400?"away-team400":r<=540?"away-team540":r<=650?"away-team650":"away-team"},texttitle(){const r=this.gamesContainerWidth;return r<=400?"text-title400":r<=540?"text-title540":r<=650?"text-title650":"text-title"},matchcontainer(){const r=this.gamesContainerWidth;return r<=400?"match-container400":r<=540?"match-container540":r<=650?"match-container650":"match-container"},seasonnameContainer(){const r=this.gamesContainerWidth;return r<=400?"seasonname400":r<=540?"seasonname540":r<=650?"seasonname650":"seasonname"},matchboxContainer(){const r=this.gamesContainerWidth;return r<=400?"matchbox400":r<=540?"matchbox540":r<=650?"matchbox650":"matchbox"},seasoncontainer(){const r=this.gamesContainerWidth;return r<=400?"season-container400":r<=540?"season-container540":r<=650?"season-container650":"season-container"},texttitle2(){const r=this.gamesContainerWidth;return r<=300?"text-title2400":r<=540?"text-title2540":r<=650?"text-title2650":"text-title2"},playerimage(){const r=this.gamesContainerWidth;return r<=400?"player-image400":r<=540?"player-image540":r<=650?"player-image650":"player-image"},thumbnailhighlights(){const r=this.gamesContainerWidth;return r<=400?"thumbnail-highlights400":r<=540?"thumbnail-highlights540":r<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)s4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),s4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},l4=()=>{p.useCssVars(r=>({"30ff8a24":r.colorBackgroundHome,"30fc7833":r.colorBackgroundAway,"2b862dbc":r.colorBackgroundAway+"62","53059fa4":r.colorBackgroundHome+"36"}))},c4=mv.setup;mv.setup=c4?(r,U)=>(l4(),c4(r,U)):l4;const S1=r=>(p.pushScopeId("data-v-5491ef86"),r=r(),p.popScopeId(),r),Rz=S1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Az=S1(()=>p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[p.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),qz=[Az],Fz={class:"player-container"},Iz=["src"],jz=["src"],Kz=["src"],Bz={class:"container-score"},Dz=["src"],Wz=["src"],Gz=["src"],Xz=S1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Jz=S1(()=>p.createElementVNode("div",{class:"gradient-color"},null,-1));function Zz(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",{ref:"gamesContainer",class:p.normalizeClass(L.thumbnailhighlights)},[Rz,p.createElementVNode("div",{class:p.normalizeClass(L.playbutton),onClick:U[0]||(U[0]=(...T)=>L.onclickPlayVideos&&L.onclickPlayVideos(...T))},qz,2),p.createElementVNode("div",Fz,[p.createElementVNode("div",{class:p.normalizeClass(L.containerinfogame)},[p.createElementVNode("div",{class:p.normalizeClass(L.matchcontainer)},[p.createElementVNode("div",{class:p.normalizeClass(L.matchboxContainer)},p.toDisplayString(E.matchday),3),p.createElementVNode("div",{class:p.normalizeClass(L.seasonnameContainer)},p.toDisplayString(E.seasonName),3)],2),p.createElementVNode("div",{class:p.normalizeClass(L.seasoncontainer)},p.toDisplayString(E.date),3)],2),E.type==0?(p.openBlock(),p.createElementBlock("span",{key:0,class:p.normalizeClass(L.texttitle)},p.toDisplayString(E.nameCategory),3)):(p.openBlock(),p.createElementBlock("span",{key:1,class:p.normalizeClass(L.texttitle2)},p.toDisplayString(E.nameCategory),3)),E.typeImg==0?(p.openBlock(),p.createElementBlock("img",{key:2,src:E.photoProfile,class:p.normalizeClass(L.playerimage)},null,10,Iz)):p.createCommentVNode("",!0),E.typeImg==1?(p.openBlock(),p.createElementBlock("img",{key:3,src:E.photoProfile,alt:""},null,8,jz)):p.createCommentVNode("",!0),E.typeImg==2?(p.openBlock(),p.createElementBlock("img",{key:4,src:E.photoProfile,class:"img-number"},null,8,Kz)):p.createCommentVNode("",!0),p.createElementVNode("div",Bz,[p.createElementVNode("div",{class:p.normalizeClass(L.hometeam)},[p.createElementVNode("span",{class:p.normalizeClass(L.teamname)},p.toDisplayString(E.nameHomeTeam),3),p.createElementVNode("img",{src:E.logoHome,alt:"",class:p.normalizeClass(L.teamlogo)},null,10,Dz),p.createElementVNode("span",{class:p.normalizeClass(L.teamscore)},p.toDisplayString(E.scoreHome),3)],2),p.createElementVNode("span",{class:p.normalizeClass(L.points)},":",2),p.createElementVNode("div",{class:p.normalizeClass(L.awayteam)},[p.createElementVNode("span",{class:p.normalizeClass(L.teamscore)},p.toDisplayString(E.scoreAway),3),p.createElementVNode("img",{src:E.logoAway,alt:"",class:p.normalizeClass(L.teamlogo)},null,10,Wz),p.createElementVNode("span",{class:p.normalizeClass(L.teamname)},p.toDisplayString(E.nameAwayTeam),3)],2)])]),p.createElementVNode("img",{src:E.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Gz),Xz,Jz],2)}const Hz=fv(mv,[["render",Zz],["__scopeId","data-v-5491ef86"]]),Yz={components:{GSCCarousel:Tz,GSCThumbnailHighlightGameHistoric:zz,GSCThumbnailHighlightGamePlayer:Hz},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{data:{immediate:!0,handler(r){this.getData(r)}}},computed:{isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{obtenerNombreCompletoFecha(r){if(r){const U=new Date(r),E=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][U.getUTCDay()],K=U.getUTCDate(),oe=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][U.getUTCMonth()];return`${E} ${K} de ${oe}`}else return""},onclickPlayVideos(r){var U=[];r.type==2?r.data.position_id==1?r.data.has_relevants==1?r.data.category==0?U=[55,324,323,608,39,774,802,52,53,40,42,54]:U=r.data.category:U=[55,324,323,608,39,774,802,52,53,40,42,54]:r.data.has_relevants==1?r.data.category==0?U=[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]:U=r.data.category:U=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:r.type==3?r.data.category==0?U=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:U=r.data.category:r.data.category!=0?U=r.data.category:U=[607,608,12,55,54,35,14,52,15,53,466,477];const E=[1,2,3];let K={seasonId:r.data.season_id,mainSectionType:1,playListType:r.type,categoryIds:U,gameIds:r.data.game_id?[r.data.game_id]:null,playerIds:r.data.position_id!=1?r.data.player_id?[r.data.player_id]:[]:[],goalkeeperIds:r.data.position_id==1?r.data.player_id?[r.data.player_id]:[]:[],teamId:r.data.team_id?r.data.team_id:0,matchResult:r.data.matchResult?[r.data.matchResult]:E,advancedFilter:{playListTitle:""}};r.data.category!==0&&(K.advancedFilter.mainCategoryId=r.data.category),this.$emit("openmedia",K)},play(r){this.$emit("play",r)},async getData(r){const U=ZP.create({headers:{Authorization:`${this.token}`}});var E=[],K={};if(r.type=="player"){const oe=await U.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+r.season+"/"+r.player);for(let L=0;L<oe.data.seasons[r.season].games_played.length;L++)K={category:0,player_id:oe.data.player_id,position_id:oe.data.position_id,color:oe.data.info_thumbnails.colors.background_color,photo_profile:oe.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.info_thumbnails.images.player_in_action[0]:oe.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games_played[L].home_team+".png",player_name:oe.data.seasons[r.season].games_played[L].home_team_acronym+" "+oe.data.seasons[r.season].games_played[L].home_team_score+" : "+oe.data.seasons[r.season].games_played[L].visiting_team_score+" "+oe.data.seasons[r.season].games_played[L].visiting_team_acronym,team_id:oe.data.team_id,has_relevants:oe.data.seasons[r.season].games_played[L].has_relevants,team_id_b:oe.data.seasons[r.season].games_played[L].home_team,season_id:oe.data.seasons[r.season].games_played[L].season_id,name:oe.data.seasons[r.season].games_played[L].player_name,seasonname:oe.data.seasons[r.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:oe.data.seasons[r.season].games_played[L].game_id,match:oe.data.seasons[r.season].games_played[L].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(oe.data.seasons[r.season].games_played[L].date),scorehome:oe.data.seasons[r.season].games_played[L].home_team_score,scoreaway:oe.data.seasons[r.season].games_played[L].visiting_team_score,hometeamacronym:oe.data.seasons[r.season].games_played[L].home_team_acronym,visitingteamacronym:oe.data.seasons[r.season].games_played[L].visiting_team_acronym,background:oe.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.info_thumbnails.images.background_player_in_action[0]:oe.data.info_thumbnails.player_profile,backgroundhome:oe.data.seasons[r.season].games_played[L].info_thumbnails.home_colors.background_color,backgroundaway:oe.data.seasons[r.season].games_played[L].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games_played[L].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games_played[L].visiting_team+".png",total:oe.data.seasons[r.season].games_played[L].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+oe.data.seasons[r.season].games_played[L].home_team+"_"+oe.data.seasons[r.season].games_played[L].season_id+"_r1.jpg"},E.push(K)}else if(r.type=="historic"){const oe=await U.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+r.game);for(let T=0;T<oe.data.plays.length;T++)K={player:"Jornada "+oe.data.plays[T][6],player_name:oe.data.plays[T][4],season_id:oe.data.plays[T][31],game_id:oe.data.plays[T][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},E.length>0?!E.filter(e=>e.game_id===oe.data.plays[T][3]).length>0&&E.push(K):E.push(K);const L=oe.data.thumbnails;for(let T=0;T<E.length;T++){const e=Math.floor(Math.random()*L[E[T].game_id].info_thumbnails.images.background_default_games.length);E[T].background="https://golstatsimages.blob.core.windows.net/images-library/"+L[E[T].game_id].info_thumbnails.images.background_default_games[e],E[T].backgroundhome=L[E[T].game_id].info_thumbnails.home_colors.background_color,E[T].backgroundaway=L[E[T].game_id].info_thumbnails.away_colors.background_color,E[T].logoaway="https://az755631.vo.msecnd.net/teams-150/"+L[E[T].game_id].info_thumbnails.away_colors.team_id+".png",E[T].logohome="https://az755631.vo.msecnd.net/teams-150/"+L[E[T].game_id].info_thumbnails.home_colors.team_id+".png",E[T].match=L[E[T].game_id].matchday_name.replace("Matchday","Jor"),E[T].seasonname=L[E[T].game_id].season_name,E[T].score=L[E[T].game_id].score[0]+" - "+L[E[T].game_id].score[1],E[T].category=0}}else{const oe=await U.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+r.team);for(let L=0;L<oe.data.seasons[r.season].games.length;L++){const T=Math.floor(Math.random()*oe.data.seasons[r.season].games[L].info_thumbnails.images.background_default_games.length);K={category:0,game_id:oe.data.seasons[r.season].games[L].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games[L].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games[L].home_team+".png",player_name:oe.data.seasons[r.season].games[L].home_team_acronym+" "+oe.data.seasons[r.season].games[L].home_team_score+" : "+oe.data.seasons[r.season].games[L].visiting_team_score+" "+oe.data.seasons[r.season].games[L].visiting_team_acronym,team_id_b:oe.data.seasons[r.season].games[L].home_team,season_id:oe.data.seasons[r.season].games[L].season_id,name:"",seasonname:oe.data.seasons[r.season].name,match:oe.data.seasons[r.season].games[L].matchday_name.replace("Matchday","Jor"),score:oe.data.seasons[r.season].games[L].home_team_score+" : "+oe.data.seasons[r.season].games[L].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.seasons[r.season].games[L].info_thumbnails.images.background_default_games[T],backgroundhome:oe.data.seasons[r.season].games[L].info_thumbnails.home_colors.background_color,backgroundaway:oe.data.seasons[r.season].games[L].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games[L].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games[L].visiting_team+".png",total:oe.data.seasons[r.season].games[L].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+oe.data.seasons[r.season].games[L].home_team+"_"+oe.data.seasons[r.season].games[L].season_id+"_r1.jpg"},E.push(K)}}this.printData=E},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(r=>{for(const U of r)this.highlightsWidth=U.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){this.setUpResizeObserver()}},Qz={ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function $z(r,U,E,K,oe,L){const T=p.resolveComponent("GSCThumbnailHighlightGameHistoric"),e=p.resolveComponent("GSCThumbnailHighlightGamePlayer"),k=p.resolveComponent("GSCCarousel");return p.openBlock(),p.createElementBlock("div",Qz,[p.createVNode(k,p.mergeProps(L.carouselProps,{items:oe.printData,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:"0.2"}),{default:p.withCtx(({item:v})=>[E.data.type=="team"||E.data.type=="historic"?(p.openBlock(),p.createBlock(T,{key:0,items:v,"color-background-home":v.backgroundhome,"color-background-away":v.backgroundaway,"logo-home":v.logohome,"logo-away":v.logoaway,background:v.background,matchday:v.match,onOnclickPlayVideos:n=>L.onclickPlayVideos({data:v,type:1}),"season-name":v.seasonname,score:v.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(p.openBlock(),p.createBlock(e,{key:1,type:"player","name-player":v.name,"type-style":"game","color-background-home":v.backgroundhome,"color-background-away":v.backgroundaway,"type-img":"0",date:v.date,"season-name":v.seasonname,matchday:v.match,background:v.background,"name-home-team":v.hometeamacronym,"name-away-team":v.visitingteamacronym,"name-category":E.title,onOnclickPlayVideos:n=>L.onclickPlayVideos({data:v,type:2}),"logo-away":v.logoaway,"logo-home":v.logohome,"score-home":v.scorehome,"photo-profile":v.photo_profile,"score-away":v.scoreaway},null,8,["name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)}const u4=fv(Yz,[["render",$z]]);function d4(r,U){return function(){return r.apply(U,arguments)}}const{toString:eR}=Object.prototype,{getPrototypeOf:yv}=Object,T1=(r=>U=>{const E=eR.call(U);return r[E]||(r[E]=E.slice(8,-1).toLowerCase())})(Object.create(null)),fu=r=>(r=r.toLowerCase(),U=>T1(U)===r),k1=r=>U=>typeof U===r,{isArray:ef}=Array,Th=k1("undefined");function tR(r){return r!==null&&!Th(r)&&r.constructor!==null&&!Th(r.constructor)&&Ec(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const p4=fu("ArrayBuffer");function nR(r){let U;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?U=ArrayBuffer.isView(r):U=r&&r.buffer&&p4(r.buffer),U}const rR=k1("string"),Ec=k1("function"),f4=k1("number"),C1=r=>r!==null&&typeof r=="object",aR=r=>r===!0||r===!1,O1=r=>{if(T1(r)!=="object")return!1;const U=yv(r);return(U===null||U===Object.prototype||Object.getPrototypeOf(U)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},oR=fu("Date"),iR=fu("File"),sR=fu("Blob"),lR=fu("FileList"),cR=r=>C1(r)&&Ec(r.pipe),uR=r=>{let U;return r&&(typeof FormData=="function"&&r instanceof FormData||Ec(r.append)&&((U=T1(r))==="formdata"||U==="object"&&Ec(r.toString)&&r.toString()==="[object FormData]"))},dR=fu("URLSearchParams"),pR=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kh(r,U,{allOwnKeys:E=!1}={}){if(r===null||typeof r>"u")return;let K,oe;if(typeof r!="object"&&(r=[r]),ef(r))for(K=0,oe=r.length;K<oe;K++)U.call(null,r[K],K,r);else{const L=E?Object.getOwnPropertyNames(r):Object.keys(r),T=L.length;let e;for(K=0;K<T;K++)e=L[K],U.call(null,r[e],e,r)}}function h4(r,U){U=U.toLowerCase();const E=Object.keys(r);let K=E.length,oe;for(;K-- >0;)if(oe=E[K],U===oe.toLowerCase())return oe;return null}const m4=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),y4=r=>!Th(r)&&r!==m4;function gv(){const{caseless:r}=y4(this)&&this||{},U={},E=(K,oe)=>{const L=r&&h4(U,oe)||oe;O1(U[L])&&O1(K)?U[L]=gv(U[L],K):O1(K)?U[L]=gv({},K):ef(K)?U[L]=K.slice():U[L]=K};for(let K=0,oe=arguments.length;K<oe;K++)arguments[K]&&kh(arguments[K],E);return U}const fR=(r,U,E,{allOwnKeys:K}={})=>(kh(U,(oe,L)=>{E&&Ec(oe)?r[L]=d4(oe,E):r[L]=oe},{allOwnKeys:K}),r),hR=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),mR=(r,U,E,K)=>{r.prototype=Object.create(U.prototype,K),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:U.prototype}),E&&Object.assign(r.prototype,E)},yR=(r,U,E,K)=>{let oe,L,T;const e={};if(U=U||{},r==null)return U;do{for(oe=Object.getOwnPropertyNames(r),L=oe.length;L-- >0;)T=oe[L],(!K||K(T,r,U))&&!e[T]&&(U[T]=r[T],e[T]=!0);r=E!==!1&&yv(r)}while(r&&(!E||E(r,U))&&r!==Object.prototype);return U},gR=(r,U,E)=>{r=String(r),(E===void 0||E>r.length)&&(E=r.length),E-=U.length;const K=r.indexOf(U,E);return K!==-1&&K===E},vR=r=>{if(!r)return null;if(ef(r))return r;let U=r.length;if(!f4(U))return null;const E=new Array(U);for(;U-- >0;)E[U]=r[U];return E},bR=(r=>U=>r&&U instanceof r)(typeof Uint8Array<"u"&&yv(Uint8Array)),xR=(r,U)=>{const E=(r&&r[Symbol.iterator]).call(r);let K;for(;(K=E.next())&&!K.done;){const oe=K.value;U.call(r,oe[0],oe[1])}},_R=(r,U)=>{let E;const K=[];for(;(E=r.exec(U))!==null;)K.push(E);return K},wR=fu("HTMLFormElement"),SR=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(U,E,K){return E.toUpperCase()+K}),g4=(({hasOwnProperty:r})=>(U,E)=>r.call(U,E))(Object.prototype),TR=fu("RegExp"),v4=(r,U)=>{const E=Object.getOwnPropertyDescriptors(r),K={};kh(E,(oe,L)=>{let T;(T=U(oe,L,r))!==!1&&(K[L]=T||oe)}),Object.defineProperties(r,K)},kR=r=>{v4(r,(U,E)=>{if(Ec(r)&&["arguments","caller","callee"].indexOf(E)!==-1)return!1;const K=r[E];if(Ec(K)){if(U.enumerable=!1,"writable"in U){U.writable=!1;return}U.set||(U.set=()=>{throw Error("Can not rewrite read-only method '"+E+"'")})}})},CR=(r,U)=>{const E={},K=oe=>{oe.forEach(L=>{E[L]=!0})};return ef(r)?K(r):K(String(r).split(U)),E},OR=()=>{},NR=(r,U)=>(r=+r,Number.isFinite(r)?r:U),vv="abcdefghijklmnopqrstuvwxyz",b4="0123456789",x4={DIGIT:b4,ALPHA:vv,ALPHA_DIGIT:vv+vv.toUpperCase()+b4},LR=(r=16,U=x4.ALPHA_DIGIT)=>{let E="";const{length:K}=U;for(;r--;)E+=U[Math.random()*K|0];return E};function ER(r){return!!(r&&Ec(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}const VR=r=>{const U=new Array(10),E=(K,oe)=>{if(C1(K)){if(U.indexOf(K)>=0)return;if(!("toJSON"in K)){U[oe]=K;const L=ef(K)?[]:{};return kh(K,(T,e)=>{const k=E(T,oe+1);!Th(k)&&(L[e]=k)}),U[oe]=void 0,L}}return K};return E(r,0)},MR=fu("AsyncFunction"),UR=r=>r&&(C1(r)||Ec(r))&&Ec(r.then)&&Ec(r.catch),Ir={isArray:ef,isArrayBuffer:p4,isBuffer:tR,isFormData:uR,isArrayBufferView:nR,isString:rR,isNumber:f4,isBoolean:aR,isObject:C1,isPlainObject:O1,isUndefined:Th,isDate:oR,isFile:iR,isBlob:sR,isRegExp:TR,isFunction:Ec,isStream:cR,isURLSearchParams:dR,isTypedArray:bR,isFileList:lR,forEach:kh,merge:gv,extend:fR,trim:pR,stripBOM:hR,inherits:mR,toFlatObject:yR,kindOf:T1,kindOfTest:fu,endsWith:gR,toArray:vR,forEachEntry:xR,matchAll:_R,isHTMLForm:wR,hasOwnProperty:g4,hasOwnProp:g4,reduceDescriptors:v4,freezeMethods:kR,toObjectSet:CR,toCamelCase:SR,noop:OR,toFiniteNumber:NR,findKey:h4,global:m4,isContextDefined:y4,ALPHABET:x4,generateString:LR,isSpecCompliantForm:ER,toJSONObject:VR,isAsyncFn:MR,isThenable:UR};function So(r,U,E,K,oe){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",U&&(this.code=U),E&&(this.config=E),K&&(this.request=K),oe&&(this.response=oe)}Ir.inherits(So,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ir.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _4=So.prototype,w4={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{w4[r]={value:r}}),Object.defineProperties(So,w4),Object.defineProperty(_4,"isAxiosError",{value:!0}),So.from=(r,U,E,K,oe,L)=>{const T=Object.create(_4);return Ir.toFlatObject(r,T,function(e){return e!==Error.prototype},e=>e!=="isAxiosError"),So.call(T,r.message,U,E,K,oe),T.cause=r,T.name=r.name,L&&Object.assign(T,L),T};const PR=null;function bv(r){return Ir.isPlainObject(r)||Ir.isArray(r)}function S4(r){return Ir.endsWith(r,"[]")?r.slice(0,-2):r}function T4(r,U,E){return r?r.concat(U).map(function(K,oe){return K=S4(K),!E&&oe?"["+K+"]":K}).join(E?".":""):U}function zR(r){return Ir.isArray(r)&&!r.some(bv)}const RR=Ir.toFlatObject(Ir,{},null,function(r){return/^is[A-Z]/.test(r)});function N1(r,U,E){if(!Ir.isObject(r))throw new TypeError("target must be an object");U=U||new FormData,E=Ir.toFlatObject(E,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,a){return!Ir.isUndefined(a[c])});const K=E.metaTokens,oe=E.visitor||v,L=E.dots,T=E.indexes,e=(E.Blob||typeof Blob<"u"&&Blob)&&Ir.isSpecCompliantForm(U);if(!Ir.isFunction(oe))throw new TypeError("visitor must be a function");function k(c){if(c===null)return"";if(Ir.isDate(c))return c.toISOString();if(!e&&Ir.isBlob(c))throw new So("Blob is not supported. Use a Buffer instead.");return Ir.isArrayBuffer(c)||Ir.isTypedArray(c)?e&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function v(c,a,t){let o=c;if(c&&!t&&typeof c=="object"){if(Ir.endsWith(a,"{}"))a=K?a:a.slice(0,-2),c=JSON.stringify(c);else if(Ir.isArray(c)&&zR(c)||(Ir.isFileList(c)||Ir.endsWith(a,"[]"))&&(o=Ir.toArray(c)))return a=S4(a),o.forEach(function(i,s){!(Ir.isUndefined(i)||i===null)&&U.append(T===!0?T4([a],s,L):T===null?a:a+"[]",k(i))}),!1}return bv(c)?!0:(U.append(T4(t,a,L),k(c)),!1)}const n=[],w=Object.assign(RR,{defaultVisitor:v,convertValue:k,isVisitable:bv});function b(c,a){if(!Ir.isUndefined(c)){if(n.indexOf(c)!==-1)throw Error("Circular reference detected in "+a.join("."));n.push(c),Ir.forEach(c,function(t,o){(!(Ir.isUndefined(t)||t===null)&&oe.call(U,t,Ir.isString(o)?o.trim():o,a,w))===!0&&b(t,a?a.concat(o):[o])}),n.pop()}}if(!Ir.isObject(r))throw new TypeError("data must be an object");return b(r),U}function k4(r){const U={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(E){return U[E]})}function xv(r,U){this._pairs=[],r&&N1(r,this,U)}const C4=xv.prototype;C4.append=function(r,U){this._pairs.push([r,U])},C4.toString=function(r){const U=r?function(E){return r.call(this,E,k4)}:k4;return this._pairs.map(function(E){return U(E[0])+"="+U(E[1])},"").join("&")};function AR(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function O4(r,U,E){if(!U)return r;const K=E&&E.encode||AR,oe=E&&E.serialize;let L;if(oe?L=oe(U,E):L=Ir.isURLSearchParams(U)?U.toString():new xv(U,E).toString(K),L){const T=r.indexOf("#");T!==-1&&(r=r.slice(0,T)),r+=(r.indexOf("?")===-1?"?":"&")+L}return r}const N4=class{constructor(){this.handlers=[]}use(U,E,K){return this.handlers.push({fulfilled:U,rejected:E,synchronous:K?K.synchronous:!1,runWhen:K?K.runWhen:null}),this.handlers.length-1}eject(U){this.handlers[U]&&(this.handlers[U]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(U){Ir.forEach(this.handlers,function(E){E!==null&&U(E)})}},L4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qR=typeof URLSearchParams<"u"?URLSearchParams:xv,FR=typeof FormData<"u"?FormData:null,IR=typeof Blob<"u"?Blob:null,jR={isBrowser:!0,classes:{URLSearchParams:qR,FormData:FR,Blob:IR},protocols:["http","https","file","blob","url","data"]},E4=typeof window<"u"&&typeof document<"u",KR=(r=>E4&&["ReactNative","NativeScript","NS"].indexOf(r)<0)(typeof navigator<"u"&&navigator.product),BR=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),DR=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:E4,hasStandardBrowserEnv:KR,hasStandardBrowserWebWorkerEnv:BR},Symbol.toStringTag,{value:"Module"})),hu={...DR,...jR};function WR(r,U){return N1(r,new hu.classes.URLSearchParams,Object.assign({visitor:function(E,K,oe,L){return hu.isNode&&Ir.isBuffer(E)?(this.append(K,E.toString("base64")),!1):L.defaultVisitor.apply(this,arguments)}},U))}function GR(r){return Ir.matchAll(/\w+|\[(\w*)]/g,r).map(U=>U[0]==="[]"?"":U[1]||U[0])}function XR(r){const U={},E=Object.keys(r);let K;const oe=E.length;let L;for(K=0;K<oe;K++)L=E[K],U[L]=r[L];return U}function V4(r){function U(E,K,oe,L){let T=E[L++];if(T==="__proto__")return!0;const e=Number.isFinite(+T),k=L>=E.length;return T=!T&&Ir.isArray(oe)?oe.length:T,k?(Ir.hasOwnProp(oe,T)?oe[T]=[oe[T],K]:oe[T]=K,!e):((!oe[T]||!Ir.isObject(oe[T]))&&(oe[T]=[]),U(E,K,oe[T],L)&&Ir.isArray(oe[T])&&(oe[T]=XR(oe[T])),!e)}if(Ir.isFormData(r)&&Ir.isFunction(r.entries)){const E={};return Ir.forEachEntry(r,(K,oe)=>{U(GR(K),oe,E,0)}),E}return null}function JR(r,U,E){if(Ir.isString(r))try{return(U||JSON.parse)(r),Ir.trim(r)}catch(K){if(K.name!=="SyntaxError")throw K}return(E||JSON.stringify)(r)}const _v={transitional:L4,adapter:["xhr","http"],transformRequest:[function(r,U){const E=U.getContentType()||"",K=E.indexOf("application/json")>-1,oe=Ir.isObject(r);if(oe&&Ir.isHTMLForm(r)&&(r=new FormData(r)),Ir.isFormData(r))return K?JSON.stringify(V4(r)):r;if(Ir.isArrayBuffer(r)||Ir.isBuffer(r)||Ir.isStream(r)||Ir.isFile(r)||Ir.isBlob(r))return r;if(Ir.isArrayBufferView(r))return r.buffer;if(Ir.isURLSearchParams(r))return U.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let L;if(oe){if(E.indexOf("application/x-www-form-urlencoded")>-1)return WR(r,this.formSerializer).toString();if((L=Ir.isFileList(r))||E.indexOf("multipart/form-data")>-1){const T=this.env&&this.env.FormData;return N1(L?{"files[]":r}:r,T&&new T,this.formSerializer)}}return oe||K?(U.setContentType("application/json",!1),JR(r)):r}],transformResponse:[function(r){const U=this.transitional||_v.transitional,E=U&&U.forcedJSONParsing,K=this.responseType==="json";if(r&&Ir.isString(r)&&(E&&!this.responseType||K)){const oe=!(U&&U.silentJSONParsing)&&K;try{return JSON.parse(r)}catch(L){if(oe)throw L.name==="SyntaxError"?So.from(L,So.ERR_BAD_RESPONSE,this,null,this.response):L}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:hu.classes.FormData,Blob:hu.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ir.forEach(["delete","get","head","post","put","patch"],r=>{_v.headers[r]={}});const wv=_v,ZR=Ir.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),HR=r=>{const U={};let E,K,oe;return r&&r.split(`
32
+ */const Hs={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"}},t4={itemsToShow:{default:Hs.itemsToShow,type:Number},itemsToScroll:{default:Hs.itemsToScroll,type:Number},wrapAround:{default:Hs.wrapAround,type:Boolean},throttle:{default:Hs.throttle,type:Number},snapAlign:{default:Hs.snapAlign,validator(r){return["start","end","center","center-even","center-odd"].includes(r)}},transition:{default:Hs.transition,type:Number},breakpoints:{default:Hs.breakpoints,type:Object},autoplay:{default:Hs.autoplay,type:Number},pauseAutoplayOnHover:{default:Hs.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Hs.mouseDrag,type:Boolean},touchDrag:{default:Hs.touchDrag,type:Boolean},dir:{default:Hs.dir,validator(r){return["rtl","ltr"].includes(r)}},i18n:{default:Hs.i18n,type:Object},settings:{default(){return{}},type:Object}};function HP({config:r,slidesCount:U}){const{snapAlign:E,wrapAround:K,itemsToShow:oe=1}=r;if(K)return Math.max(U-1,0);let L;switch(E){case"start":L=U-oe;break;case"end":L=U-1;break;case"center":case"center-odd":L=U-Math.ceil((oe-.5)/2);break;case"center-even":L=U-Math.ceil(oe/2);break;default:L=0;break}return Math.max(L,0)}function YP({config:r,slidesCount:U}){const{wrapAround:E,snapAlign:K,itemsToShow:oe=1}=r;let L=0;if(E||oe>U)return L;switch(K){case"start":L=0;break;case"end":L=oe-1;break;case"center":case"center-odd":L=Math.floor((oe-1)/2);break;case"center-even":L=Math.floor((oe-2)/2);break;default:L=0;break}return L}function dv({val:r,max:U,min:E}){return U<E?r:Math.min(Math.max(r,E),U)}function QP({config:r,currentSlide:U,slidesCount:E}){const{snapAlign:K,wrapAround:oe,itemsToShow:L=1}=r;let T=U;switch(K){case"center":case"center-odd":T-=(L-1)/2;break;case"center-even":T-=(L-2)/2;break;case"end":T-=L-1;break}return oe?T:dv({val:T,max:E-L,min:0})}function n4(r){return r?r.reduce((U,E)=>{var K;return E.type===p.Fragment?[...U,...n4(E.children)]:((K=E.type)===null||K===void 0?void 0:K.name)==="CarouselSlide"?[...U,E]:U},[]):[]}function pv({val:r,max:U,min:E=0}){return r>U?pv({val:r-(U+1),max:U,min:E}):r<E?pv({val:r+(U+1),max:U,min:E}):r}function $P(r,U){let E;return U?function(...K){const oe=this;E||(r.apply(oe,K),E=!0,setTimeout(()=>E=!1,U))}:r}function ez(r,U){let E;return function(...K){E&&clearTimeout(E),E=setTimeout(()=>{r(...K),E=null},U)}}function tz(r="",U={}){return Object.entries(U).reduce((E,[K,oe])=>E.replace(`{${K}}`,String(oe)),r)}var nz=p.defineComponent({name:"ARIA",setup(){const r=p.inject("config",p.reactive(Object.assign({},Hs))),U=p.inject("currentSlide",p.ref(0)),E=p.inject("slidesCount",p.ref(0));return()=>p.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},tz(r.i18n.itemXofY,{currentSlide:U.value+1,slidesCount:E.value}))}}),rz=p.defineComponent({name:"Carousel",props:t4,setup(r,{slots:U,emit:E,expose:K}){var oe;const L=p.ref(null),T=p.ref([]),e=p.ref(0),k=p.ref(0),v=p.reactive(Object.assign({},Hs));let n=Object.assign({},Hs),w;const b=p.ref((oe=r.modelValue)!==null&&oe!==void 0?oe:0),c=p.ref(0),a=p.ref(0),t=p.ref(0),o=p.ref(0);let i,s;p.provide("config",v),p.provide("slidesCount",k),p.provide("currentSlide",b),p.provide("maxSlide",t),p.provide("minSlide",o),p.provide("slideWidth",e);function l(){w=Object.assign({},r.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),r),{i18n:Object.assign(Object.assign({},n.i18n),r.i18n),breakpoints:void 0}),d(n)}function u(){if(!w||!Object.keys(w).length)return;const te=Object.keys(w).map(ce=>Number(ce)).sort((ce,ue)=>+ue-+ce);let ae=Object.assign({},n);te.some(ce=>{const ue=window.matchMedia(`(min-width: ${ce}px)`).matches;return ue&&(ae=Object.assign(Object.assign({},ae),w[ce])),ue}),d(ae)}function d(te){Object.entries(te).forEach(([ae,ce])=>v[ae]=ce)}const g=ez(()=>{u(),f()},16);function f(){if(!L.value)return;const te=L.value.getBoundingClientRect();e.value=te.width/v.itemsToShow}function C(){k.value<=0||(a.value=Math.ceil((k.value-1)/2),t.value=HP({config:v,slidesCount:k.value}),o.value=YP({config:v,slidesCount:k.value}),v.wrapAround||(b.value=dv({val:b.value,max:t.value,min:o.value})))}p.onMounted(()=>{p.nextTick(()=>f()),setTimeout(()=>f(),1e3),u(),A(),window.addEventListener("resize",g,{passive:!0}),E("init")}),p.onUnmounted(()=>{s&&clearTimeout(s),i&&clearInterval(i),window.removeEventListener("resize",g,{passive:!0})});let y=!1;const m={x:0,y:0},x={x:0,y:0},_=p.reactive({x:0,y:0}),S=p.ref(!1),O=p.ref(!1),h=()=>{S.value=!0},M=()=>{S.value=!1};function N(te){["INPUT","TEXTAREA","SELECT"].includes(te.target.tagName)||(y=te.type==="touchstart",y||te.preventDefault(),!(!y&&te.button!==0||j.value)&&(m.x=y?te.touches[0].clientX:te.clientX,m.y=y?te.touches[0].clientY:te.clientY,document.addEventListener(y?"touchmove":"mousemove",P,!0),document.addEventListener(y?"touchend":"mouseup",R,!0)))}const P=$P(te=>{O.value=!0,x.x=y?te.touches[0].clientX:te.clientX,x.y=y?te.touches[0].clientY:te.clientY;const ae=x.x-m.x,ce=x.y-m.y;_.y=ce,_.x=ae},v.throttle);function R(){const te=v.dir==="rtl"?-1:1,ae=Math.sign(_.x)*.4,ce=Math.round(_.x/e.value+ae)*te;if(ce&&!y){const ue=de=>{de.stopPropagation(),window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}X(b.value-ce),_.x=0,_.y=0,O.value=!1,document.removeEventListener(y?"touchmove":"mousemove",P,!0),document.removeEventListener(y?"touchend":"mouseup",R,!0)}function A(){!v.autoplay||v.autoplay<=0||(i=setInterval(()=>{v.pauseAutoplayOnHover&&S.value||F()},v.autoplay))}function q(){i&&(clearInterval(i),i=null),A()}const j=p.ref(!1);function X(te){const ae=v.wrapAround?te:dv({val:te,max:t.value,min:o.value});b.value===ae||j.value||(E("slide-start",{slidingToIndex:te,currentSlideIndex:b.value,prevSlideIndex:c.value,slidesCount:k.value}),j.value=!0,c.value=b.value,b.value=ae,s=setTimeout(()=>{if(v.wrapAround){const ce=pv({val:ae,max:t.value,min:0});ce!==b.value&&(b.value=ce,E("loop",{currentSlideIndex:b.value,slidingToIndex:te}))}E("update:modelValue",b.value),E("slide-end",{currentSlideIndex:b.value,prevSlideIndex:c.value,slidesCount:k.value}),j.value=!1,q()},v.transition))}function F(){X(b.value+v.itemsToScroll)}function W(){X(b.value-v.itemsToScroll)}const Y={slideTo:X,next:F,prev:W};p.provide("nav",Y),p.provide("isSliding",j);const B=p.computed(()=>QP({config:v,currentSlide:b.value,slidesCount:k.value}));p.provide("slidesToScroll",B);const G=p.computed(()=>{const te=v.dir==="rtl"?-1:1,ae=B.value*e.value*te;return{transform:`translateX(${_.x-ae}px)`,transition:`${j.value?v.transition:0}ms`,margin:v.wrapAround?`0 -${k.value*e.value}px`:"",width:"100%"}});function J(){l(),u(),C(),f(),q()}Object.keys(t4).forEach(te=>{["modelValue"].includes(te)||p.watch(()=>r[te],J)}),p.watch(()=>r.modelValue,te=>{te!==b.value&&X(Number(te))}),p.watch(k,C),E("before-init"),l();const se={config:v,slidesCount:k,slideWidth:e,next:F,prev:W,slideTo:X,currentSlide:b,maxSlide:t,minSlide:o,middleSlide:a};K({updateBreakpointsConfigs:u,updateSlidesData:C,updateSlideWidth:f,initDefaultConfigs:l,restartCarousel:J,slideTo:X,next:F,prev:W,nav:Y,data:se});const re=U.default||U.slides,ne=U.addons,$=p.reactive(se);return()=>{const te=n4(re==null?void 0:re($)),ae=(ne==null?void 0:ne($))||[];te.forEach((me,be)=>me.props.index=be);let ce=te;if(v.wrapAround){const me=te.map((_e,we)=>p.cloneVNode(_e,{index:-te.length+we,isClone:!0,key:`clone-before-${we}`})),be=te.map((_e,we)=>p.cloneVNode(_e,{index:te.length+we,isClone:!0,key:`clone-after-${we}`}));ce=[...me,...te,...be]}T.value=te,k.value=Math.max(te.length,1);const ue=p.h("ol",{class:"carousel__track",style:G.value,onMousedownCapture:v.mouseDrag?N:null,onTouchstartPassiveCapture:v.touchDrag?N:null},ce),de=p.h("div",{class:"carousel__viewport"},ue);return p.h("section",{ref:L,class:{carousel:!0,"is-sliding":j.value,"is-dragging":O.value,"is-hover":S.value,"carousel--rtl":v.dir==="rtl"},dir:v.dir,"aria-label":v.i18n.ariaGallery,tabindex:"0",onMouseenter:h,onMouseleave:M},[de,ae,p.h(nz)])}}}),r4;(function(r){r.arrowUp="arrowUp",r.arrowDown="arrowDown",r.arrowRight="arrowRight",r.arrowLeft="arrowLeft"})(r4||(r4={}));var az=p.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(r,{slots:U}){const E=p.inject("config",p.reactive(Object.assign({},Hs))),K=p.inject("currentSlide",p.ref(0)),oe=p.inject("slidesToScroll",p.ref(0)),L=p.inject("isSliding",p.ref(!1)),T=()=>r.index===K.value,e=()=>r.index===K.value-1,k=()=>r.index===K.value+1,v=()=>{const n=Math.floor(oe.value),w=Math.ceil(oe.value+E.itemsToShow-1);return r.index>=n&&r.index<=w};return()=>{var n;return p.h("li",{style:{width:`${100/E.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":r.isClone,"carousel__slide--visible":v(),"carousel__slide--active":T(),"carousel__slide--prev":e(),"carousel__slide--next":k(),"carousel__slide--sliding":L.value},"aria-hidden":!v()},(n=U.default)===null||n===void 0?void 0:n.call(U))}}});const oz=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E},iz=r=>(p.pushScopeId("data-v-cf3e4ab5"),r=r(),p.popScopeId(),r),sz={class:"gsc-carousel"},lz={key:0},cz=iz(()=>p.createElementVNode("div",null,"no hay",-1)),uz=[cz],dz={class:"gsc-carousel__2d__slides"},pz={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fz=["fill"],hz={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},mz=["fill"],yz={class:"gsc-carousel__2d__navigation"},gz={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},vz=["stroke"],bz={key:1,class:"gsc-carousel__2d__navigation__pagination"},xz=["onClick"],_z={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wz=["stroke"],Sz={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:r=>["propName","value"].every(U=>U in r)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(r,{expose:U,emit:E}){const K=r;p.useCssVars(t=>({a79d2c9e:r.slideLeftArrowBackgroundImage,"227709fa":r.slidesArrowsLeftAndRight,c388b60c:r.slideRightArrowBackgroundImage,"257da7fc":r.marginTop,"1c9922a0":r.secondarySlidesOpacity}));const oe=p.ref(null),L=p.ref({}),T=p.ref(0),e=p.ref(!1);p.watch(oe,t=>{t&&e.value?(e.value=!1,k(K.items)):t&&t.slideTo&&t.slideTo(T.value)},{deep:!0}),p.watch(()=>K.currentItemIndex,t=>{T.value!==t&&b(t)}),p.watch(()=>K.items,t=>{oe.value?k(t):e.value=!0},{immediate:!0});function k(t){if(t&&t.length&&oe.value){if(K.defaultItemByProp){const o=K.items.findIndex(i=>i[K.defaultItemByProp.propName]===K.defaultItemByProp.value);o!==-1?(T.value=o,L.value=t[o]):(T.value=0,L.value=t[0])}else T.value=K.defaultItemByIndex,L.value=t[K.defaultItemByIndex];oe.value.slideTo&&oe.value.slideTo(T.value),E("input",{selectedItem:L.value,selectedItemIndex:T.value})}}function v(){oe.value&&oe.value.next()}function n(){oe.value&&oe.value.prev()}function w(){oe.value&&oe.value.updateSlideWidth()}function b(t){oe.value&&oe.value.slideTo(t)}function c(t){oe.value.slideTo(t)}function a(t){const o=t.slidingToIndex<0?K.items.length-1:t.slidingToIndex===K.items.length?0:t.slidingToIndex;T.value=o,L.value=K.items[o],E("update:currentItemIndex",o),E("input",{selectedItem:L.value,selectedItemIndex:T.value})}return U({prev:n,next:v,updateSlideWidth:w,slideTo:b}),(t,o)=>(p.openBlock(),p.createElementBlock("div",sz,[K.is3d?(p.openBlock(),p.createElementBlock("div",lz,uz)):(p.openBlock(),p.createElementBlock("div",{key:1,class:p.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":r.isMainSlidePriority}])},[p.createElementVNode("div",dz,[p.createVNode(p.unref(rz),{ref_key:"carousel2d",ref:oe,"items-to-show":r.itemsToShow,"wrap-around":r.wrapAround,onSlideStart:a},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.items,(i,s)=>(p.openBlock(),p.createBlock(p.unref(az),{key:s},{default:p.withCtx(()=>[p.renderSlot(t.$slots,"default",{item:i},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),r.areSlidesArrowsVisible?(p.openBlock(),p.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:p.normalizeStyle("max-width:"+r.arrowsMaxWidth+"!important"),onClick:o[0]||(o[0]=i=>oe.value.prev())},[p.createElementVNode("div",{class:p.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:r.areSlidesArrowsRounded}])},[(p.openBlock(),p.createElementBlock("svg",pz,[p.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:r.arrowsColor},null,8,fz)]))],2)],4)):p.createCommentVNode("",!0),r.areSlidesArrowsVisible?(p.openBlock(),p.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:p.normalizeStyle("max-width:"+r.arrowsMaxWidth+"!important"),onClick:o[1]||(o[1]=i=>v())},[p.createElementVNode("div",{class:p.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:r.areSlidesArrowsRounded}])},[(p.openBlock(),p.createElementBlock("svg",hz,[p.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:r.arrowsColor},null,8,mz)]))],2)],4)):p.createCommentVNode("",!0),p.createElementVNode("div",yz,[r.areNavigationArrowsVisible?(p.openBlock(),p.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:o[2]||(o[2]=i=>n())},[(p.openBlock(),p.createElementBlock("svg",gz,[p.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:K.arrowsColor},null,8,vz)]))])):p.createCommentVNode("",!0),r.isPaginationVisible?(p.openBlock(),p.createElementBlock("div",bz,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.items,(i,s)=>(p.openBlock(),p.createElementBlock("div",{key:`i-${s}`,class:"gsc-carousel__2d__navigation__pagination__item",style:p.normalizeStyle({height:`${K.navigationHeight}px`,width:`${T.value===s?K.navigationActiveWidth:K.navigationActiveWidth/2}px`,borderRadius:`${K.navigationBorderRadius}px`,backgroundColor:`${T.value===s?K.navigationActiveColor:K.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:l=>c(s)},null,12,xz))),128))])):p.createCommentVNode("",!0),r.areNavigationArrowsVisible?(p.openBlock(),p.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:o[3]||(o[3]=i=>oe.value.next())},[(p.openBlock(),p.createElementBlock("svg",_z,[p.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:K.arrowsColor},null,8,wz)]))])):p.createCommentVNode("",!0)])],2))]))}},Tz=oz(Sz,[["__scopeId","data-v-cf3e4ab5"]]),fv=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E};let a4=null;const hv={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const r=this.gamesContainerWidth;return r<=400?"date400":r<=540?"date540":r<=650?"date650":"date"},seasoncontainer(){const r=this.gamesContainerWidth;return r<=400?"season-container400":r<=540?"season-container540":r<=650?"season-container650":"season-container"},matchcontainer(){const r=this.gamesContainerWidth;return r<=400?"match-container400":r<=540?"match-container540":r<=650?"match-container650":"match-container"},containerinfogame(){const r=this.gamesContainerWidth;return r<=400?"container-info-game400":r<=540?"container-info-game540":r<=650?"container-info-game650":"container-info-game"},playbutton(){const r=this.gamesContainerWidth;return r<=400?"play-button400":r<=540?"play-button540":r<=650?"play-button650":"play-button"},baselogo(){const r=this.gamesContainerWidth;return r<=400?"base-logo400":r<=540?"base-logo540":r<=650?"base-logo650":"base-logo"},baselogoright(){const r=this.gamesContainerWidth;return r<=400?"base-logo-right400":r<=540?"base-logo-right540":r<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const r=this.gamesContainerWidth;return r<=400?"thumbnail-highlights400":r<=540?"thumbnail-highlights540":r<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const r=this.gamesContainerWidth;return r<=400?"team-logo400":r<=540?"team-logo540":r<=650?"team-logo650":"team-logo"},logoright(){const r=this.gamesContainerWidth;return r<=400?"logo-right400":r<=540?"logo-right540":r<=650?"logo-right650":"logo-right"},secondline(){const r=this.gamesContainerWidth;return r<=400?"second-line400":r<=540?"second-line540":r<=650?"second-line650":"second-line"},titlename(){const r=this.gamesContainerWidth;return r<=400?"title-name400":r<=540?"title-name540":r<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)a4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),a4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},o4=()=>{p.useCssVars(r=>({"41af28e8":r.colorBackgroundHome+"45","90ae2246":r.colorBackgroundAway+"45","1d262e1e":r.colorBackgroundHome,"1d231c2d":r.colorBackgroundAway}))},i4=hv.setup;hv.setup=i4?(r,U)=>(o4(),i4(r,U)):o4;const w1=r=>(p.pushScopeId("data-v-fd9d1e65"),r=r(),p.popScopeId(),r),kz=w1(()=>p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[p.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Cz=[kz],Oz=w1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Nz=["src"],Lz=w1(()=>p.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),Ez=w1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Vz=["src"],Mz=["src"],Uz={class:"text-container"};function Pz(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",{ref:"gamesContainer",class:p.normalizeClass(L.thumbnailhighlights)},[p.createElementVNode("div",{class:p.normalizeClass(L.playbutton),onClick:U[0]||(U[0]=(...T)=>L.onclickPlayVideos&&L.onclickPlayVideos(...T))},Cz,2),E.dateGame!=""?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(L.date)},p.toDisplayString(E.dateGame),3)):p.createCommentVNode("",!0),E.matchday!=""&&E.seasonName!=""?(p.openBlock(),p.createElementBlock("div",{key:1,class:p.normalizeClass(L.containerinfogame)},[E.matchday!=""?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(L.matchcontainer)},p.toDisplayString(E.matchday),3)):p.createCommentVNode("",!0),E.seasonName!=""?(p.openBlock(),p.createElementBlock("div",{key:1,class:p.normalizeClass(L.seasoncontainer)},p.toDisplayString(E.seasonName),3)):p.createCommentVNode("",!0)],2)):p.createCommentVNode("",!0),Oz,p.createElementVNode("img",{src:E.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Nz),p.createElementVNode("div",{class:p.normalizeClass([L.baselogo,"position-image"])},null,2),p.createElementVNode("div",{class:p.normalizeClass(L.baselogoright)},null,2),Lz,Ez,p.createElementVNode("img",{src:E.logoHome,alt:"",class:p.normalizeClass(L.teamlogo)},null,10,Vz),p.createElementVNode("img",{src:E.logoAway,alt:"",class:p.normalizeClass(L.logoright)},null,10,Mz),p.createElementVNode("div",Uz,[p.createElementVNode("span",{class:p.normalizeClass(L.secondline)},p.toDisplayString(E.score),3),p.createElementVNode("div",{class:p.normalizeClass(L.titlename)},p.toDisplayString(E.titleCategory),3)])],2)}const zz=fv(hv,[["render",Pz],["__scopeId","data-v-fd9d1e65"]]);let s4=null;const mv={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},date:{type:String,default:""},seasonName:{type:String,default:""},matchday:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const r=this.gamesContainerWidth;return r<=400?"play-button400":r<=540?"play-button540":r<=650?"play-button650":"play-button"},points(){const r=this.gamesContainerWidth;return r<=400?"points400":r<=540?"points540":r<=650?"points650":"points"},containerinfogame(){const r=this.gamesContainerWidth;return r<=400?"container-info-game400":r<=540?"container-info-game540":r<=650?"container-info-game650":"container-info-game"},teamname(){const r=this.gamesContainerWidth;return r<=400?"team-name400":r<=540?"team-name540":r<=650?"team-name650":"team-name"},teamscore(){const r=this.gamesContainerWidth;return r<=400?"team-score400":r<=540?"team-score540":r<=650?"team-score650":"team-score"},teamlogo(){const r=this.gamesContainerWidth;return r<=400?"team-logo400":r<=540?"team-logo540":r<=650?"team-logo650":"team-logo"},hometeam(){const r=this.gamesContainerWidth;return r<=400?"home-team400":r<=540?"home-team540":r<=650?"home-team650":"home-team"},awayteam(){const r=this.gamesContainerWidth;return r<=400?"away-team400":r<=540?"away-team540":r<=650?"away-team650":"away-team"},texttitle(){const r=this.gamesContainerWidth;return r<=400?"text-title400":r<=540?"text-title540":r<=650?"text-title650":"text-title"},matchcontainer(){const r=this.gamesContainerWidth;return r<=400?"match-container400":r<=540?"match-container540":r<=650?"match-container650":"match-container"},seasonnameContainer(){const r=this.gamesContainerWidth;return r<=280?"seasonname280":r<=400?"seasonname400":r<=540?"seasonname540":r<=650?"seasonname650":"seasonname"},matchboxContainer(){const r=this.gamesContainerWidth;return r<=400?"matchbox400":r<=540?"matchbox540":r<=650?"matchbox650":"matchbox"},seasoncontainer(){const r=this.gamesContainerWidth;return r<=400?"season-container400":r<=540?"season-container540":r<=650?"season-container650":"season-container"},texttitle2(){const r=this.gamesContainerWidth;return r<=300?"text-title2400":r<=540?"text-title2540":r<=650?"text-title2650":"text-title2"},playerimage(){const r=this.gamesContainerWidth;return r<=400?"player-image400":r<=540?"player-image540":r<=650?"player-image650":"player-image"},thumbnailhighlights(){const r=this.gamesContainerWidth;return r<=400?"thumbnail-highlights400":r<=540?"thumbnail-highlights540":r<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)s4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),s4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},l4=()=>{p.useCssVars(r=>({"16e4cc48":r.colorBackgroundHome,"16e1ba57":r.colorBackgroundAway,"0a08a218":r.colorBackgroundAway+"62",31881400:r.colorBackgroundHome+"36"}))},c4=mv.setup;mv.setup=c4?(r,U)=>(l4(),c4(r,U)):l4;const S1=r=>(p.pushScopeId("data-v-4fef1a3b"),r=r(),p.popScopeId(),r),Rz=S1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Az=S1(()=>p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[p.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),qz=[Az],Fz={class:"player-container"},Iz=["src"],jz=["src"],Kz=["src"],Bz={class:"container-score"},Dz=["src"],Wz=["src"],Gz=["src"],Xz=S1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Jz=S1(()=>p.createElementVNode("div",{class:"gradient-color"},null,-1));function Zz(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",{ref:"gamesContainer",class:p.normalizeClass(L.thumbnailhighlights)},[Rz,p.createElementVNode("div",{class:p.normalizeClass(L.playbutton),onClick:U[0]||(U[0]=(...T)=>L.onclickPlayVideos&&L.onclickPlayVideos(...T))},qz,2),p.createElementVNode("div",Fz,[p.createElementVNode("div",{class:p.normalizeClass(L.containerinfogame)},[p.createElementVNode("div",{class:p.normalizeClass(L.matchcontainer)},[p.createElementVNode("div",{class:p.normalizeClass(L.matchboxContainer)},p.toDisplayString(E.matchday),3),p.createElementVNode("div",{class:p.normalizeClass(L.seasonnameContainer)},p.toDisplayString(E.seasonName),3)],2),p.createElementVNode("div",{class:p.normalizeClass(L.seasoncontainer)},p.toDisplayString(E.date),3)],2),E.type==0?(p.openBlock(),p.createElementBlock("span",{key:0,class:p.normalizeClass(L.texttitle)},p.toDisplayString(E.nameCategory),3)):(p.openBlock(),p.createElementBlock("span",{key:1,class:p.normalizeClass(L.texttitle2)},p.toDisplayString(E.nameCategory),3)),E.typeImg==0?(p.openBlock(),p.createElementBlock("img",{key:2,src:E.photoProfile,class:p.normalizeClass(L.playerimage)},null,10,Iz)):p.createCommentVNode("",!0),E.typeImg==1?(p.openBlock(),p.createElementBlock("img",{key:3,src:E.photoProfile,alt:""},null,8,jz)):p.createCommentVNode("",!0),E.typeImg==2?(p.openBlock(),p.createElementBlock("img",{key:4,src:E.photoProfile,class:"img-number"},null,8,Kz)):p.createCommentVNode("",!0),p.createElementVNode("div",Bz,[p.createElementVNode("div",{class:p.normalizeClass(L.hometeam)},[p.createElementVNode("span",{class:p.normalizeClass(L.teamname)},p.toDisplayString(E.nameHomeTeam),3),p.createElementVNode("img",{src:E.logoHome,alt:"",class:p.normalizeClass(L.teamlogo)},null,10,Dz),p.createElementVNode("span",{class:p.normalizeClass(L.teamscore)},p.toDisplayString(E.scoreHome),3)],2),p.createElementVNode("span",{class:p.normalizeClass(L.points)},":",2),p.createElementVNode("div",{class:p.normalizeClass(L.awayteam)},[p.createElementVNode("span",{class:p.normalizeClass(L.teamscore)},p.toDisplayString(E.scoreAway),3),p.createElementVNode("img",{src:E.logoAway,alt:"",class:p.normalizeClass(L.teamlogo)},null,10,Wz),p.createElementVNode("span",{class:p.normalizeClass(L.teamname)},p.toDisplayString(E.nameAwayTeam),3)],2)])]),p.createElementVNode("img",{src:E.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Gz),Xz,Jz],2)}const Hz=fv(mv,[["render",Zz],["__scopeId","data-v-4fef1a3b"]]),Yz={components:{GSCCarousel:Tz,GSCThumbnailHighlightGameHistoric:zz,GSCThumbnailHighlightGamePlayer:Hz},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{data:{immediate:!0,handler(r){this.getData(r)}}},computed:{isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{obtenerNombreCompletoFecha(r){if(r){const U=new Date(r),E=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][U.getUTCDay()],K=U.getUTCDate(),oe=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][U.getUTCMonth()];return`${E} ${K} de ${oe}`}else return""},onclickPlayVideos(r){var U=[];r.type==2?r.data.position_id==1?r.data.has_relevants==1?r.data.category==0?U=[55,324,323,608,39,774,802,52,53,40,42,54]:U=r.data.category:U=[55,324,323,608,39,774,802,52,53,40,42,54]:r.data.has_relevants==1?r.data.category==0?U=[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]:U=r.data.category:U=[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:r.type==3?r.data.category==0?U=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:U=r.data.category:r.data.category!=0?U=r.data.category:U=[607,608,12,55,54,35,14,52,15,53,466,477];const E=[1,2,3];let K={seasonId:r.data.season_id,mainSectionType:1,playListType:r.type,categoryIds:U,gameIds:r.data.game_id?[r.data.game_id]:null,playerIds:r.data.position_id!=1?r.data.player_id?[r.data.player_id]:[]:[],goalkeeperIds:r.data.position_id==1?r.data.player_id?[r.data.player_id]:[]:[],teamId:r.data.team_id?r.data.team_id:0,matchResult:r.data.matchResult?[r.data.matchResult]:E,advancedFilter:{playListTitle:""}};r.data.category!==0&&(K.advancedFilter.mainCategoryId=r.data.category),this.$emit("openmedia",K)},play(r){this.$emit("play",r)},async getData(r){const U=ZP.create({headers:{Authorization:`${this.token}`}});var E=[],K={};if(r.type=="player"){const oe=await U.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+r.season+"/"+r.player);for(let L=0;L<oe.data.seasons[r.season].games_played.length;L++)K={category:0,player_id:oe.data.player_id,position_id:oe.data.position_id,color:oe.data.info_thumbnails.colors.background_color,photo_profile:oe.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.info_thumbnails.images.player_in_action[0]:oe.data.info_thumbnails.player_profile,team_logo:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games_played[L].home_team+".png",player_name:oe.data.seasons[r.season].games_played[L].home_team_acronym+" "+oe.data.seasons[r.season].games_played[L].home_team_score+" : "+oe.data.seasons[r.season].games_played[L].visiting_team_score+" "+oe.data.seasons[r.season].games_played[L].visiting_team_acronym,team_id:oe.data.team_id,has_relevants:oe.data.seasons[r.season].games_played[L].has_relevants,team_id_b:oe.data.seasons[r.season].games_played[L].home_team,season_id:oe.data.seasons[r.season].games_played[L].season_id,name:oe.data.seasons[r.season].games_played[L].player_name,seasonname:oe.data.seasons[r.season].name.replace("Clausura","CL ").replace("Apertura","AP "),game_id:oe.data.seasons[r.season].games_played[L].game_id,match:oe.data.seasons[r.season].games_played[L].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),date:this.obtenerNombreCompletoFecha(oe.data.seasons[r.season].games_played[L].date),scorehome:oe.data.seasons[r.season].games_played[L].home_team_score,scoreaway:oe.data.seasons[r.season].games_played[L].visiting_team_score,hometeamacronym:oe.data.seasons[r.season].games_played[L].home_team_acronym,visitingteamacronym:oe.data.seasons[r.season].games_played[L].visiting_team_acronym,background:oe.data.info_thumbnails.images.background_player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.info_thumbnails.images.background_player_in_action[0]:oe.data.info_thumbnails.player_profile,backgroundhome:oe.data.seasons[r.season].games_played[L].info_thumbnails.home_colors.background_color,backgroundaway:oe.data.seasons[r.season].games_played[L].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games_played[L].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games_played[L].visiting_team+".png",total:oe.data.seasons[r.season].games_played[L].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+oe.data.seasons[r.season].games_played[L].home_team+"_"+oe.data.seasons[r.season].games_played[L].season_id+"_r1.jpg"},E.push(K)}else if(r.type=="historic"){const oe=await U.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+r.game);for(let T=0;T<oe.data.plays.length;T++)K={player:"Jornada "+oe.data.plays[T][6],player_name:oe.data.plays[T][4],season_id:oe.data.plays[T][31],game_id:oe.data.plays[T][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},E.length>0?!E.filter(e=>e.game_id===oe.data.plays[T][3]).length>0&&E.push(K):E.push(K);const L=oe.data.thumbnails;for(let T=0;T<E.length;T++){const e=Math.floor(Math.random()*L[E[T].game_id].info_thumbnails.images.background_default_games.length);E[T].background="https://golstatsimages.blob.core.windows.net/images-library/"+L[E[T].game_id].info_thumbnails.images.background_default_games[e],E[T].backgroundhome=L[E[T].game_id].info_thumbnails.home_colors.background_color,E[T].backgroundaway=L[E[T].game_id].info_thumbnails.away_colors.background_color,E[T].logoaway="https://az755631.vo.msecnd.net/teams-150/"+L[E[T].game_id].info_thumbnails.away_colors.team_id+".png",E[T].logohome="https://az755631.vo.msecnd.net/teams-150/"+L[E[T].game_id].info_thumbnails.home_colors.team_id+".png",E[T].match=L[E[T].game_id].matchday_name.replace("Matchday","Jor"),E[T].seasonname=L[E[T].game_id].season_name,E[T].score=L[E[T].game_id].score[0]+" - "+L[E[T].game_id].score[1],E[T].category=0}}else{const oe=await U.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+r.team);for(let L=0;L<oe.data.seasons[r.season].games.length;L++){const T=Math.floor(Math.random()*oe.data.seasons[r.season].games[L].info_thumbnails.images.background_default_games.length);K={category:0,game_id:oe.data.seasons[r.season].games[L].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games[L].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games[L].home_team+".png",player_name:oe.data.seasons[r.season].games[L].home_team_acronym+" "+oe.data.seasons[r.season].games[L].home_team_score+" : "+oe.data.seasons[r.season].games[L].visiting_team_score+" "+oe.data.seasons[r.season].games[L].visiting_team_acronym,team_id_b:oe.data.seasons[r.season].games[L].home_team,season_id:oe.data.seasons[r.season].games[L].season_id,name:"",seasonname:oe.data.seasons[r.season].name,match:oe.data.seasons[r.season].games[L].matchday_name.replace("Matchday","Jor"),score:oe.data.seasons[r.season].games[L].home_team_score+" : "+oe.data.seasons[r.season].games[L].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.seasons[r.season].games[L].info_thumbnails.images.background_default_games[T],backgroundhome:oe.data.seasons[r.season].games[L].info_thumbnails.home_colors.background_color,backgroundaway:oe.data.seasons[r.season].games[L].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games[L].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games[L].visiting_team+".png",total:oe.data.seasons[r.season].games[L].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+oe.data.seasons[r.season].games[L].home_team+"_"+oe.data.seasons[r.season].games[L].season_id+"_r1.jpg"},E.push(K)}}this.printData=E},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(r=>{for(const U of r)this.highlightsWidth=U.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){this.setUpResizeObserver()}},Qz={ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function $z(r,U,E,K,oe,L){const T=p.resolveComponent("GSCThumbnailHighlightGameHistoric"),e=p.resolveComponent("GSCThumbnailHighlightGamePlayer"),k=p.resolveComponent("GSCCarousel");return p.openBlock(),p.createElementBlock("div",Qz,[p.createVNode(k,p.mergeProps(L.carouselProps,{items:oe.printData,arrowsMaxWidth:"65px",slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:"0.2"}),{default:p.withCtx(({item:v})=>[E.data.type=="team"||E.data.type=="historic"?(p.openBlock(),p.createBlock(T,{key:0,items:v,"color-background-home":v.backgroundhome,"color-background-away":v.backgroundaway,"logo-home":v.logohome,"logo-away":v.logoaway,background:v.background,matchday:v.match,onOnclickPlayVideos:n=>L.onclickPlayVideos({data:v,type:1}),"season-name":v.seasonname,score:v.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(p.openBlock(),p.createBlock(e,{key:1,type:"player","name-player":v.name,"type-style":"game","color-background-home":v.backgroundhome,"color-background-away":v.backgroundaway,"type-img":"0",date:v.date,"season-name":v.seasonname,matchday:v.match,background:v.background,"name-home-team":v.hometeamacronym,"name-away-team":v.visitingteamacronym,"name-category":E.title,onOnclickPlayVideos:n=>L.onclickPlayVideos({data:v,type:2}),"logo-away":v.logoaway,"logo-home":v.logohome,"score-home":v.scorehome,"photo-profile":v.photo_profile,"score-away":v.scoreaway},null,8,["name-player","color-background-home","color-background-away","date","season-name","matchday","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)}const u4=fv(Yz,[["render",$z]]);function d4(r,U){return function(){return r.apply(U,arguments)}}const{toString:eR}=Object.prototype,{getPrototypeOf:yv}=Object,T1=(r=>U=>{const E=eR.call(U);return r[E]||(r[E]=E.slice(8,-1).toLowerCase())})(Object.create(null)),fu=r=>(r=r.toLowerCase(),U=>T1(U)===r),k1=r=>U=>typeof U===r,{isArray:ef}=Array,Th=k1("undefined");function tR(r){return r!==null&&!Th(r)&&r.constructor!==null&&!Th(r.constructor)&&Ec(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const p4=fu("ArrayBuffer");function nR(r){let U;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?U=ArrayBuffer.isView(r):U=r&&r.buffer&&p4(r.buffer),U}const rR=k1("string"),Ec=k1("function"),f4=k1("number"),C1=r=>r!==null&&typeof r=="object",aR=r=>r===!0||r===!1,O1=r=>{if(T1(r)!=="object")return!1;const U=yv(r);return(U===null||U===Object.prototype||Object.getPrototypeOf(U)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},oR=fu("Date"),iR=fu("File"),sR=fu("Blob"),lR=fu("FileList"),cR=r=>C1(r)&&Ec(r.pipe),uR=r=>{let U;return r&&(typeof FormData=="function"&&r instanceof FormData||Ec(r.append)&&((U=T1(r))==="formdata"||U==="object"&&Ec(r.toString)&&r.toString()==="[object FormData]"))},dR=fu("URLSearchParams"),pR=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kh(r,U,{allOwnKeys:E=!1}={}){if(r===null||typeof r>"u")return;let K,oe;if(typeof r!="object"&&(r=[r]),ef(r))for(K=0,oe=r.length;K<oe;K++)U.call(null,r[K],K,r);else{const L=E?Object.getOwnPropertyNames(r):Object.keys(r),T=L.length;let e;for(K=0;K<T;K++)e=L[K],U.call(null,r[e],e,r)}}function h4(r,U){U=U.toLowerCase();const E=Object.keys(r);let K=E.length,oe;for(;K-- >0;)if(oe=E[K],U===oe.toLowerCase())return oe;return null}const m4=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),y4=r=>!Th(r)&&r!==m4;function gv(){const{caseless:r}=y4(this)&&this||{},U={},E=(K,oe)=>{const L=r&&h4(U,oe)||oe;O1(U[L])&&O1(K)?U[L]=gv(U[L],K):O1(K)?U[L]=gv({},K):ef(K)?U[L]=K.slice():U[L]=K};for(let K=0,oe=arguments.length;K<oe;K++)arguments[K]&&kh(arguments[K],E);return U}const fR=(r,U,E,{allOwnKeys:K}={})=>(kh(U,(oe,L)=>{E&&Ec(oe)?r[L]=d4(oe,E):r[L]=oe},{allOwnKeys:K}),r),hR=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),mR=(r,U,E,K)=>{r.prototype=Object.create(U.prototype,K),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:U.prototype}),E&&Object.assign(r.prototype,E)},yR=(r,U,E,K)=>{let oe,L,T;const e={};if(U=U||{},r==null)return U;do{for(oe=Object.getOwnPropertyNames(r),L=oe.length;L-- >0;)T=oe[L],(!K||K(T,r,U))&&!e[T]&&(U[T]=r[T],e[T]=!0);r=E!==!1&&yv(r)}while(r&&(!E||E(r,U))&&r!==Object.prototype);return U},gR=(r,U,E)=>{r=String(r),(E===void 0||E>r.length)&&(E=r.length),E-=U.length;const K=r.indexOf(U,E);return K!==-1&&K===E},vR=r=>{if(!r)return null;if(ef(r))return r;let U=r.length;if(!f4(U))return null;const E=new Array(U);for(;U-- >0;)E[U]=r[U];return E},bR=(r=>U=>r&&U instanceof r)(typeof Uint8Array<"u"&&yv(Uint8Array)),xR=(r,U)=>{const E=(r&&r[Symbol.iterator]).call(r);let K;for(;(K=E.next())&&!K.done;){const oe=K.value;U.call(r,oe[0],oe[1])}},_R=(r,U)=>{let E;const K=[];for(;(E=r.exec(U))!==null;)K.push(E);return K},wR=fu("HTMLFormElement"),SR=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(U,E,K){return E.toUpperCase()+K}),g4=(({hasOwnProperty:r})=>(U,E)=>r.call(U,E))(Object.prototype),TR=fu("RegExp"),v4=(r,U)=>{const E=Object.getOwnPropertyDescriptors(r),K={};kh(E,(oe,L)=>{let T;(T=U(oe,L,r))!==!1&&(K[L]=T||oe)}),Object.defineProperties(r,K)},kR=r=>{v4(r,(U,E)=>{if(Ec(r)&&["arguments","caller","callee"].indexOf(E)!==-1)return!1;const K=r[E];if(Ec(K)){if(U.enumerable=!1,"writable"in U){U.writable=!1;return}U.set||(U.set=()=>{throw Error("Can not rewrite read-only method '"+E+"'")})}})},CR=(r,U)=>{const E={},K=oe=>{oe.forEach(L=>{E[L]=!0})};return ef(r)?K(r):K(String(r).split(U)),E},OR=()=>{},NR=(r,U)=>(r=+r,Number.isFinite(r)?r:U),vv="abcdefghijklmnopqrstuvwxyz",b4="0123456789",x4={DIGIT:b4,ALPHA:vv,ALPHA_DIGIT:vv+vv.toUpperCase()+b4},LR=(r=16,U=x4.ALPHA_DIGIT)=>{let E="";const{length:K}=U;for(;r--;)E+=U[Math.random()*K|0];return E};function ER(r){return!!(r&&Ec(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}const VR=r=>{const U=new Array(10),E=(K,oe)=>{if(C1(K)){if(U.indexOf(K)>=0)return;if(!("toJSON"in K)){U[oe]=K;const L=ef(K)?[]:{};return kh(K,(T,e)=>{const k=E(T,oe+1);!Th(k)&&(L[e]=k)}),U[oe]=void 0,L}}return K};return E(r,0)},MR=fu("AsyncFunction"),UR=r=>r&&(C1(r)||Ec(r))&&Ec(r.then)&&Ec(r.catch),Ir={isArray:ef,isArrayBuffer:p4,isBuffer:tR,isFormData:uR,isArrayBufferView:nR,isString:rR,isNumber:f4,isBoolean:aR,isObject:C1,isPlainObject:O1,isUndefined:Th,isDate:oR,isFile:iR,isBlob:sR,isRegExp:TR,isFunction:Ec,isStream:cR,isURLSearchParams:dR,isTypedArray:bR,isFileList:lR,forEach:kh,merge:gv,extend:fR,trim:pR,stripBOM:hR,inherits:mR,toFlatObject:yR,kindOf:T1,kindOfTest:fu,endsWith:gR,toArray:vR,forEachEntry:xR,matchAll:_R,isHTMLForm:wR,hasOwnProperty:g4,hasOwnProp:g4,reduceDescriptors:v4,freezeMethods:kR,toObjectSet:CR,toCamelCase:SR,noop:OR,toFiniteNumber:NR,findKey:h4,global:m4,isContextDefined:y4,ALPHABET:x4,generateString:LR,isSpecCompliantForm:ER,toJSONObject:VR,isAsyncFn:MR,isThenable:UR};function So(r,U,E,K,oe){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",U&&(this.code=U),E&&(this.config=E),K&&(this.request=K),oe&&(this.response=oe)}Ir.inherits(So,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ir.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _4=So.prototype,w4={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{w4[r]={value:r}}),Object.defineProperties(So,w4),Object.defineProperty(_4,"isAxiosError",{value:!0}),So.from=(r,U,E,K,oe,L)=>{const T=Object.create(_4);return Ir.toFlatObject(r,T,function(e){return e!==Error.prototype},e=>e!=="isAxiosError"),So.call(T,r.message,U,E,K,oe),T.cause=r,T.name=r.name,L&&Object.assign(T,L),T};const PR=null;function bv(r){return Ir.isPlainObject(r)||Ir.isArray(r)}function S4(r){return Ir.endsWith(r,"[]")?r.slice(0,-2):r}function T4(r,U,E){return r?r.concat(U).map(function(K,oe){return K=S4(K),!E&&oe?"["+K+"]":K}).join(E?".":""):U}function zR(r){return Ir.isArray(r)&&!r.some(bv)}const RR=Ir.toFlatObject(Ir,{},null,function(r){return/^is[A-Z]/.test(r)});function N1(r,U,E){if(!Ir.isObject(r))throw new TypeError("target must be an object");U=U||new FormData,E=Ir.toFlatObject(E,{metaTokens:!0,dots:!1,indexes:!1},!1,function(c,a){return!Ir.isUndefined(a[c])});const K=E.metaTokens,oe=E.visitor||v,L=E.dots,T=E.indexes,e=(E.Blob||typeof Blob<"u"&&Blob)&&Ir.isSpecCompliantForm(U);if(!Ir.isFunction(oe))throw new TypeError("visitor must be a function");function k(c){if(c===null)return"";if(Ir.isDate(c))return c.toISOString();if(!e&&Ir.isBlob(c))throw new So("Blob is not supported. Use a Buffer instead.");return Ir.isArrayBuffer(c)||Ir.isTypedArray(c)?e&&typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function v(c,a,t){let o=c;if(c&&!t&&typeof c=="object"){if(Ir.endsWith(a,"{}"))a=K?a:a.slice(0,-2),c=JSON.stringify(c);else if(Ir.isArray(c)&&zR(c)||(Ir.isFileList(c)||Ir.endsWith(a,"[]"))&&(o=Ir.toArray(c)))return a=S4(a),o.forEach(function(i,s){!(Ir.isUndefined(i)||i===null)&&U.append(T===!0?T4([a],s,L):T===null?a:a+"[]",k(i))}),!1}return bv(c)?!0:(U.append(T4(t,a,L),k(c)),!1)}const n=[],w=Object.assign(RR,{defaultVisitor:v,convertValue:k,isVisitable:bv});function b(c,a){if(!Ir.isUndefined(c)){if(n.indexOf(c)!==-1)throw Error("Circular reference detected in "+a.join("."));n.push(c),Ir.forEach(c,function(t,o){(!(Ir.isUndefined(t)||t===null)&&oe.call(U,t,Ir.isString(o)?o.trim():o,a,w))===!0&&b(t,a?a.concat(o):[o])}),n.pop()}}if(!Ir.isObject(r))throw new TypeError("data must be an object");return b(r),U}function k4(r){const U={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(E){return U[E]})}function xv(r,U){this._pairs=[],r&&N1(r,this,U)}const C4=xv.prototype;C4.append=function(r,U){this._pairs.push([r,U])},C4.toString=function(r){const U=r?function(E){return r.call(this,E,k4)}:k4;return this._pairs.map(function(E){return U(E[0])+"="+U(E[1])},"").join("&")};function AR(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function O4(r,U,E){if(!U)return r;const K=E&&E.encode||AR,oe=E&&E.serialize;let L;if(oe?L=oe(U,E):L=Ir.isURLSearchParams(U)?U.toString():new xv(U,E).toString(K),L){const T=r.indexOf("#");T!==-1&&(r=r.slice(0,T)),r+=(r.indexOf("?")===-1?"?":"&")+L}return r}const N4=class{constructor(){this.handlers=[]}use(U,E,K){return this.handlers.push({fulfilled:U,rejected:E,synchronous:K?K.synchronous:!1,runWhen:K?K.runWhen:null}),this.handlers.length-1}eject(U){this.handlers[U]&&(this.handlers[U]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(U){Ir.forEach(this.handlers,function(E){E!==null&&U(E)})}},L4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qR=typeof URLSearchParams<"u"?URLSearchParams:xv,FR=typeof FormData<"u"?FormData:null,IR=typeof Blob<"u"?Blob:null,jR={isBrowser:!0,classes:{URLSearchParams:qR,FormData:FR,Blob:IR},protocols:["http","https","file","blob","url","data"]},E4=typeof window<"u"&&typeof document<"u",KR=(r=>E4&&["ReactNative","NativeScript","NS"].indexOf(r)<0)(typeof navigator<"u"&&navigator.product),BR=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),DR=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:E4,hasStandardBrowserEnv:KR,hasStandardBrowserWebWorkerEnv:BR},Symbol.toStringTag,{value:"Module"})),hu={...DR,...jR};function WR(r,U){return N1(r,new hu.classes.URLSearchParams,Object.assign({visitor:function(E,K,oe,L){return hu.isNode&&Ir.isBuffer(E)?(this.append(K,E.toString("base64")),!1):L.defaultVisitor.apply(this,arguments)}},U))}function GR(r){return Ir.matchAll(/\w+|\[(\w*)]/g,r).map(U=>U[0]==="[]"?"":U[1]||U[0])}function XR(r){const U={},E=Object.keys(r);let K;const oe=E.length;let L;for(K=0;K<oe;K++)L=E[K],U[L]=r[L];return U}function V4(r){function U(E,K,oe,L){let T=E[L++];if(T==="__proto__")return!0;const e=Number.isFinite(+T),k=L>=E.length;return T=!T&&Ir.isArray(oe)?oe.length:T,k?(Ir.hasOwnProp(oe,T)?oe[T]=[oe[T],K]:oe[T]=K,!e):((!oe[T]||!Ir.isObject(oe[T]))&&(oe[T]=[]),U(E,K,oe[T],L)&&Ir.isArray(oe[T])&&(oe[T]=XR(oe[T])),!e)}if(Ir.isFormData(r)&&Ir.isFunction(r.entries)){const E={};return Ir.forEachEntry(r,(K,oe)=>{U(GR(K),oe,E,0)}),E}return null}function JR(r,U,E){if(Ir.isString(r))try{return(U||JSON.parse)(r),Ir.trim(r)}catch(K){if(K.name!=="SyntaxError")throw K}return(E||JSON.stringify)(r)}const _v={transitional:L4,adapter:["xhr","http"],transformRequest:[function(r,U){const E=U.getContentType()||"",K=E.indexOf("application/json")>-1,oe=Ir.isObject(r);if(oe&&Ir.isHTMLForm(r)&&(r=new FormData(r)),Ir.isFormData(r))return K?JSON.stringify(V4(r)):r;if(Ir.isArrayBuffer(r)||Ir.isBuffer(r)||Ir.isStream(r)||Ir.isFile(r)||Ir.isBlob(r))return r;if(Ir.isArrayBufferView(r))return r.buffer;if(Ir.isURLSearchParams(r))return U.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let L;if(oe){if(E.indexOf("application/x-www-form-urlencoded")>-1)return WR(r,this.formSerializer).toString();if((L=Ir.isFileList(r))||E.indexOf("multipart/form-data")>-1){const T=this.env&&this.env.FormData;return N1(L?{"files[]":r}:r,T&&new T,this.formSerializer)}}return oe||K?(U.setContentType("application/json",!1),JR(r)):r}],transformResponse:[function(r){const U=this.transitional||_v.transitional,E=U&&U.forcedJSONParsing,K=this.responseType==="json";if(r&&Ir.isString(r)&&(E&&!this.responseType||K)){const oe=!(U&&U.silentJSONParsing)&&K;try{return JSON.parse(r)}catch(L){if(oe)throw L.name==="SyntaxError"?So.from(L,So.ERR_BAD_RESPONSE,this,null,this.response):L}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:hu.classes.FormData,Blob:hu.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ir.forEach(["delete","get","head","post","put","patch"],r=>{_v.headers[r]={}});const wv=_v,ZR=Ir.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),HR=r=>{const U={};let E,K,oe;return r&&r.split(`
33
33
  `).forEach(function(L){oe=L.indexOf(":"),E=L.substring(0,oe).trim().toLowerCase(),K=L.substring(oe+1).trim(),!(!E||U[E]&&ZR[E])&&(E==="set-cookie"?U[E]?U[E].push(K):U[E]=[K]:U[E]=U[E]?U[E]+", "+K:K)}),U},M4=Symbol("internals");function Ch(r){return r&&String(r).trim().toLowerCase()}function L1(r){return r===!1||r==null?r:Ir.isArray(r)?r.map(L1):String(r)}function YR(r){const U=Object.create(null),E=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let K;for(;K=E.exec(r);)U[K[1]]=K[2];return U}const QR=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Sv(r,U,E,K,oe){if(Ir.isFunction(K))return K.call(this,U,E);if(oe&&(U=E),!!Ir.isString(U)){if(Ir.isString(K))return U.indexOf(K)!==-1;if(Ir.isRegExp(K))return K.test(U)}}function $R(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(U,E,K)=>E.toUpperCase()+K)}function eA(r,U){const E=Ir.toCamelCase(" "+U);["get","set","has"].forEach(K=>{Object.defineProperty(r,K+E,{value:function(oe,L,T){return this[K].call(this,U,oe,L,T)},configurable:!0})})}class E1{constructor(U){U&&this.set(U)}set(U,E,K){const oe=this;function L(e,k,v){const n=Ch(k);if(!n)throw new Error("header name must be a non-empty string");const w=Ir.findKey(oe,n);(!w||oe[w]===void 0||v===!0||v===void 0&&oe[w]!==!1)&&(oe[w||k]=L1(e))}const T=(e,k)=>Ir.forEach(e,(v,n)=>L(v,n,k));return Ir.isPlainObject(U)||U instanceof this.constructor?T(U,E):Ir.isString(U)&&(U=U.trim())&&!QR(U)?T(HR(U),E):U!=null&&L(E,U,K),this}get(U,E){if(U=Ch(U),U){const K=Ir.findKey(this,U);if(K){const oe=this[K];if(!E)return oe;if(E===!0)return YR(oe);if(Ir.isFunction(E))return E.call(this,oe,K);if(Ir.isRegExp(E))return E.exec(oe);throw new TypeError("parser must be boolean|regexp|function")}}}has(U,E){if(U=Ch(U),U){const K=Ir.findKey(this,U);return!!(K&&this[K]!==void 0&&(!E||Sv(this,this[K],K,E)))}return!1}delete(U,E){const K=this;let oe=!1;function L(T){if(T=Ch(T),T){const e=Ir.findKey(K,T);e&&(!E||Sv(K,K[e],e,E))&&(delete K[e],oe=!0)}}return Ir.isArray(U)?U.forEach(L):L(U),oe}clear(U){const E=Object.keys(this);let K=E.length,oe=!1;for(;K--;){const L=E[K];(!U||Sv(this,this[L],L,U,!0))&&(delete this[L],oe=!0)}return oe}normalize(U){const E=this,K={};return Ir.forEach(this,(oe,L)=>{const T=Ir.findKey(K,L);if(T){E[T]=L1(oe),delete E[L];return}const e=U?$R(L):String(L).trim();e!==L&&delete E[L],E[e]=L1(oe),K[e]=!0}),this}concat(...U){return this.constructor.concat(this,...U)}toJSON(U){const E=Object.create(null);return Ir.forEach(this,(K,oe)=>{K!=null&&K!==!1&&(E[oe]=U&&Ir.isArray(K)?K.join(", "):K)}),E}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([U,E])=>U+": "+E).join(`
34
34
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(U){return U instanceof this?U:new this(U)}static concat(U,...E){const K=new this(U);return E.forEach(oe=>K.set(oe)),K}static accessor(U){const E=(this[M4]=this[M4]={accessors:{}}).accessors,K=this.prototype;function oe(L){const T=Ch(L);E[T]||(eA(K,L),E[T]=!0)}return Ir.isArray(U)?U.forEach(oe):oe(U),this}}E1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ir.reduceDescriptors(E1.prototype,({value:r},U)=>{let E=U[0].toUpperCase()+U.slice(1);return{get:()=>r,set(K){this[E]=K}}}),Ir.freezeMethods(E1);const zu=E1;function Tv(r,U){const E=this||wv,K=U||E,oe=zu.from(K.headers);let L=K.data;return Ir.forEach(r,function(T){L=T.call(E,L,oe.normalize(),U?U.status:void 0)}),oe.normalize(),L}function U4(r){return!!(r&&r.__CANCEL__)}function Oh(r,U,E){So.call(this,r??"canceled",So.ERR_CANCELED,U,E),this.name="CanceledError"}Ir.inherits(Oh,So,{__CANCEL__:!0});function tA(r,U,E){const K=E.config.validateStatus;!E.status||!K||K(E.status)?r(E):U(new So("Request failed with status code "+E.status,[So.ERR_BAD_REQUEST,So.ERR_BAD_RESPONSE][Math.floor(E.status/100)-4],E.config,E.request,E))}const nA=hu.hasStandardBrowserEnv?{write(r,U,E,K,oe,L){const T=[r+"="+encodeURIComponent(U)];Ir.isNumber(E)&&T.push("expires="+new Date(E).toGMTString()),Ir.isString(K)&&T.push("path="+K),Ir.isString(oe)&&T.push("domain="+oe),L===!0&&T.push("secure"),document.cookie=T.join("; ")},read(r){const U=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return U?decodeURIComponent(U[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function rA(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function aA(r,U){return U?r.replace(/\/?\/$/,"")+"/"+U.replace(/^\/+/,""):r}function P4(r,U){return r&&!rA(U)?aA(r,U):U}const oA=hu.hasStandardBrowserEnv?function(){const r=/(msie|trident)/i.test(navigator.userAgent),U=document.createElement("a");let E;function K(oe){let L=oe;return r&&(U.setAttribute("href",L),L=U.href),U.setAttribute("href",L),{href:U.href,protocol:U.protocol?U.protocol.replace(/:$/,""):"",host:U.host,search:U.search?U.search.replace(/^\?/,""):"",hash:U.hash?U.hash.replace(/^#/,""):"",hostname:U.hostname,port:U.port,pathname:U.pathname.charAt(0)==="/"?U.pathname:"/"+U.pathname}}return E=K(window.location.href),function(oe){const L=Ir.isString(oe)?K(oe):oe;return L.protocol===E.protocol&&L.host===E.host}}():function(){return function(){return!0}}();function iA(r){const U=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return U&&U[1]||""}function sA(r,U){r=r||10;const E=new Array(r),K=new Array(r);let oe=0,L=0,T;return U=U!==void 0?U:1e3,function(e){const k=Date.now(),v=K[L];T||(T=k),E[oe]=e,K[oe]=k;let n=L,w=0;for(;n!==oe;)w+=E[n++],n=n%r;if(oe=(oe+1)%r,oe===L&&(L=(L+1)%r),k-T<U)return;const b=v&&k-v;return b?Math.round(w*1e3/b):void 0}}function z4(r,U){let E=0;const K=sA(50,250);return oe=>{const L=oe.loaded,T=oe.lengthComputable?oe.total:void 0,e=L-E,k=K(e),v=L<=T;E=L;const n={loaded:L,total:T,progress:T?L/T:void 0,bytes:e,rate:k||void 0,estimated:k&&T&&v?(T-L)/k:void 0,event:oe};n[U?"download":"upload"]=!0,r(n)}}const lA=typeof XMLHttpRequest<"u",cA=lA&&function(r){return new Promise(function(U,E){let K=r.data;const oe=zu.from(r.headers).normalize();let{responseType:L,withXSRFToken:T}=r,e;function k(){r.cancelToken&&r.cancelToken.unsubscribe(e),r.signal&&r.signal.removeEventListener("abort",e)}let v;if(Ir.isFormData(K)){if(hu.hasStandardBrowserEnv||hu.hasStandardBrowserWebWorkerEnv)oe.setContentType(!1);else if((v=oe.getContentType())!==!1){const[a,...t]=v?v.split(";").map(o=>o.trim()).filter(Boolean):[];oe.setContentType([a||"multipart/form-data",...t].join("; "))}}let n=new XMLHttpRequest;if(r.auth){const a=r.auth.username||"",t=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";oe.set("Authorization","Basic "+btoa(a+":"+t))}const w=P4(r.baseURL,r.url);n.open(r.method.toUpperCase(),O4(w,r.params,r.paramsSerializer),!0),n.timeout=r.timeout;function b(){if(!n)return;const a=zu.from("getAllResponseHeaders"in n&&n.getAllResponseHeaders()),t={data:!L||L==="text"||L==="json"?n.responseText:n.response,status:n.status,statusText:n.statusText,headers:a,config:r,request:n};tA(function(o){U(o),k()},function(o){E(o),k()},t),n=null}if("onloadend"in n?n.onloadend=b:n.onreadystatechange=function(){!n||n.readyState!==4||n.status===0&&!(n.responseURL&&n.responseURL.indexOf("file:")===0)||setTimeout(b)},n.onabort=function(){n&&(E(new So("Request aborted",So.ECONNABORTED,r,n)),n=null)},n.onerror=function(){E(new So("Network Error",So.ERR_NETWORK,r,n)),n=null},n.ontimeout=function(){let a=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const t=r.transitional||L4;r.timeoutErrorMessage&&(a=r.timeoutErrorMessage),E(new So(a,t.clarifyTimeoutError?So.ETIMEDOUT:So.ECONNABORTED,r,n)),n=null},hu.hasStandardBrowserEnv&&(T&&Ir.isFunction(T)&&(T=T(r)),T||T!==!1&&oA(w))){const a=r.xsrfHeaderName&&r.xsrfCookieName&&nA.read(r.xsrfCookieName);a&&oe.set(r.xsrfHeaderName,a)}K===void 0&&oe.setContentType(null),"setRequestHeader"in n&&Ir.forEach(oe.toJSON(),function(a,t){n.setRequestHeader(t,a)}),Ir.isUndefined(r.withCredentials)||(n.withCredentials=!!r.withCredentials),L&&L!=="json"&&(n.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&n.addEventListener("progress",z4(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&n.upload&&n.upload.addEventListener("progress",z4(r.onUploadProgress)),(r.cancelToken||r.signal)&&(e=a=>{n&&(E(!a||a.type?new Oh(null,r,n):a),n.abort(),n=null)},r.cancelToken&&r.cancelToken.subscribe(e),r.signal&&(r.signal.aborted?e():r.signal.addEventListener("abort",e)));const c=iA(w);if(c&&hu.protocols.indexOf(c)===-1){E(new So("Unsupported protocol "+c+":",So.ERR_BAD_REQUEST,r));return}n.send(K||null)})},kv={http:PR,xhr:cA};Ir.forEach(kv,(r,U)=>{if(r){try{Object.defineProperty(r,"name",{value:U})}catch{}Object.defineProperty(r,"adapterName",{value:U})}});const R4=r=>`- ${r}`,uA=r=>Ir.isFunction(r)||r===null||r===!1,A4={getAdapter:r=>{r=Ir.isArray(r)?r:[r];const{length:U}=r;let E,K;const oe={};for(let L=0;L<U;L++){E=r[L];let T;if(K=E,!uA(E)&&(K=kv[(T=String(E)).toLowerCase()],K===void 0))throw new So(`Unknown adapter '${T}'`);if(K)break;oe[T||"#"+L]=K}if(!K){const L=Object.entries(oe).map(([e,k])=>`adapter ${e} `+(k===!1?"is not supported by the environment":"is not available in the build"));let T=U?L.length>1?`since :
35
35
  `+L.map(R4).join(`
36
36
  `):" "+R4(L[0]):"as no adapter specified";throw new So("There is no suitable adapter to dispatch the request "+T,"ERR_NOT_SUPPORT")}return K},adapters:kv};function Cv(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new Oh(null,r)}function q4(r){return Cv(r),r.headers=zu.from(r.headers),r.data=Tv.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),A4.getAdapter(r.adapter||wv.adapter)(r).then(function(U){return Cv(r),U.data=Tv.call(r,r.transformResponse,U),U.headers=zu.from(U.headers),U},function(U){return U4(U)||(Cv(r),U&&U.response&&(U.response.data=Tv.call(r,r.transformResponse,U.response),U.response.headers=zu.from(U.response.headers))),Promise.reject(U)})}const F4=r=>r instanceof zu?r.toJSON():r;function tf(r,U){U=U||{};const E={};function K(v,n,w){return Ir.isPlainObject(v)&&Ir.isPlainObject(n)?Ir.merge.call({caseless:w},v,n):Ir.isPlainObject(n)?Ir.merge({},n):Ir.isArray(n)?n.slice():n}function oe(v,n,w){if(Ir.isUndefined(n)){if(!Ir.isUndefined(v))return K(void 0,v,w)}else return K(v,n,w)}function L(v,n){if(!Ir.isUndefined(n))return K(void 0,n)}function T(v,n){if(Ir.isUndefined(n)){if(!Ir.isUndefined(v))return K(void 0,v)}else return K(void 0,n)}function e(v,n,w){if(w in U)return K(v,n);if(w in r)return K(void 0,v)}const k={url:L,method:L,data:L,baseURL:T,transformRequest:T,transformResponse:T,paramsSerializer:T,timeout:T,timeoutMessage:T,withCredentials:T,withXSRFToken:T,adapter:T,responseType:T,xsrfCookieName:T,xsrfHeaderName:T,onUploadProgress:T,onDownloadProgress:T,decompress:T,maxContentLength:T,maxBodyLength:T,beforeRedirect:T,transport:T,httpAgent:T,httpsAgent:T,cancelToken:T,socketPath:T,responseEncoding:T,validateStatus:e,headers:(v,n)=>oe(F4(v),F4(n),!0)};return Ir.forEach(Object.keys(Object.assign({},r,U)),function(v){const n=k[v]||oe,w=n(r[v],U[v],v);Ir.isUndefined(w)&&n!==e||(E[v]=w)}),E}const I4="1.6.7",Ov={};["object","boolean","number","function","string","symbol"].forEach((r,U)=>{Ov[r]=function(E){return typeof E===r||"a"+(U<1?"n ":" ")+r}});const j4={};Ov.transitional=function(r,U,E){function K(oe,L){return"[Axios v"+I4+"] Transitional option '"+oe+"'"+L+(E?". "+E:"")}return(oe,L,T)=>{if(r===!1)throw new So(K(L," has been removed"+(U?" in "+U:"")),So.ERR_DEPRECATED);return U&&!j4[L]&&(j4[L]=!0,console.warn(K(L," has been deprecated since v"+U+" and will be removed in the near future"))),r?r(oe,L,T):!0}};function dA(r,U,E){if(typeof r!="object")throw new So("options must be an object",So.ERR_BAD_OPTION_VALUE);const K=Object.keys(r);let oe=K.length;for(;oe-- >0;){const L=K[oe],T=U[L];if(T){const e=r[L],k=e===void 0||T(e,L,r);if(k!==!0)throw new So("option "+L+" must be "+k,So.ERR_BAD_OPTION_VALUE);continue}if(E!==!0)throw new So("Unknown option "+L,So.ERR_BAD_OPTION)}}const Nv={assertOptions:dA,validators:Ov},fd=Nv.validators;class V1{constructor(U){this.defaults=U,this.interceptors={request:new N4,response:new N4}}async request(U,E){try{return await this._request(U,E)}catch(K){if(K instanceof Error){let oe;Error.captureStackTrace?Error.captureStackTrace(oe={}):oe=new Error;const L=oe.stack?oe.stack.replace(/^.+\n/,""):"";K.stack?L&&!String(K.stack).endsWith(L.replace(/^.+\n.+\n/,""))&&(K.stack+=`
37
- `+L):K.stack=L}throw K}}_request(U,E){typeof U=="string"?(E=E||{},E.url=U):E=U||{},E=tf(this.defaults,E);const{transitional:K,paramsSerializer:oe,headers:L}=E;K!==void 0&&Nv.assertOptions(K,{silentJSONParsing:fd.transitional(fd.boolean),forcedJSONParsing:fd.transitional(fd.boolean),clarifyTimeoutError:fd.transitional(fd.boolean)},!1),oe!=null&&(Ir.isFunction(oe)?E.paramsSerializer={serialize:oe}:Nv.assertOptions(oe,{encode:fd.function,serialize:fd.function},!0)),E.method=(E.method||this.defaults.method||"get").toLowerCase();let T=L&&Ir.merge(L.common,L[E.method]);L&&Ir.forEach(["delete","get","head","post","put","patch","common"],a=>{delete L[a]}),E.headers=zu.concat(T,L);const e=[];let k=!0;this.interceptors.request.forEach(function(a){typeof a.runWhen=="function"&&a.runWhen(E)===!1||(k=k&&a.synchronous,e.unshift(a.fulfilled,a.rejected))});const v=[];this.interceptors.response.forEach(function(a){v.push(a.fulfilled,a.rejected)});let n,w=0,b;if(!k){const a=[q4.bind(this),void 0];for(a.unshift.apply(a,e),a.push.apply(a,v),b=a.length,n=Promise.resolve(E);w<b;)n=n.then(a[w++],a[w++]);return n}b=e.length;let c=E;for(w=0;w<b;){const a=e[w++],t=e[w++];try{c=a(c)}catch(o){t.call(this,o);break}}try{n=q4.call(this,c)}catch(a){return Promise.reject(a)}for(w=0,b=v.length;w<b;)n=n.then(v[w++],v[w++]);return n}getUri(U){U=tf(this.defaults,U);const E=P4(U.baseURL,U.url);return O4(E,U.params,U.paramsSerializer)}}Ir.forEach(["delete","get","head","options"],function(r){V1.prototype[r]=function(U,E){return this.request(tf(E||{},{method:r,url:U,data:(E||{}).data}))}}),Ir.forEach(["post","put","patch"],function(r){function U(E){return function(K,oe,L){return this.request(tf(L||{},{method:r,headers:E?{"Content-Type":"multipart/form-data"}:{},url:K,data:oe}))}}V1.prototype[r]=U(),V1.prototype[r+"Form"]=U(!0)});const M1=V1,pA=class Gw{constructor(U){if(typeof U!="function")throw new TypeError("executor must be a function.");let E;this.promise=new Promise(function(oe){E=oe});const K=this;this.promise.then(oe=>{if(!K._listeners)return;let L=K._listeners.length;for(;L-- >0;)K._listeners[L](oe);K._listeners=null}),this.promise.then=oe=>{let L;const T=new Promise(e=>{K.subscribe(e),L=e}).then(oe);return T.cancel=function(){K.unsubscribe(L)},T},U(function(oe,L,T){K.reason||(K.reason=new Oh(oe,L,T),E(K.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(U){if(this.reason){U(this.reason);return}this._listeners?this._listeners.push(U):this._listeners=[U]}unsubscribe(U){if(!this._listeners)return;const E=this._listeners.indexOf(U);E!==-1&&this._listeners.splice(E,1)}static source(){let U;return{token:new Gw(function(E){U=E}),cancel:U}}};function fA(r){return function(U){return r.apply(null,U)}}function hA(r){return Ir.isObject(r)&&r.isAxiosError===!0}const Lv={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(Lv).forEach(([r,U])=>{Lv[U]=r});const mA=Lv;function K4(r){const U=new M1(r),E=d4(M1.prototype.request,U);return Ir.extend(E,M1.prototype,U,{allOwnKeys:!0}),Ir.extend(E,U,null,{allOwnKeys:!0}),E.create=function(K){return K4(tf(r,K))},E}const rs=K4(wv);rs.Axios=M1,rs.CanceledError=Oh,rs.CancelToken=pA,rs.isCancel=U4,rs.VERSION=I4,rs.toFormData=N1,rs.AxiosError=So,rs.Cancel=rs.CanceledError,rs.all=function(r){return Promise.all(r)},rs.spread=fA,rs.isAxiosError=hA,rs.mergeConfig=tf,rs.AxiosHeaders=zu,rs.formToJSON=r=>V4(Ir.isHTMLForm(r)?new FormData(r):r),rs.getAdapter=A4.getAdapter,rs.HttpStatusCode=mA,rs.default=rs;const B4=rs,yA=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E},Ev={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let r="";return this.arrowsPosition=="absolute"?r="leftAbsolute":r="leftRelative",this.arrowsScrollHide?this.showLeftArrow?r+=" showArrowSlide":r+=" hideArrowSlide":r+=" showArrowSlide",r},hideShowRightArrow(){let r="";return this.arrowsPosition=="absolute"?r="rightAbsolute":r="rightRelative",this.arrowsScrollHide?this.showRightArrow?r+=" showArrowSlide":r+=" hideArrowSlide":r+=" showArrowSlide",r}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let r=0;this.arrowsPosition=="relative"?r=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:r=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,r>0&&(this.$refs.content.scrollLeft==r?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let r;clearTimeout(r),r=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var r=this.$el.clientWidth,U=this.$refs.content.scrollWidth;U>0&&r>0&&(U>r?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},D4=()=>{p.useCssVars(r=>({"42d3dba6":r.backgroundColor,"4de5d2cf":r.height,"67bafa7b":r.arrowsPosition,"61e1032e":r.arrowsPadding+"px","79a4ac00":r.arrowsBackground,"6b8355c6":r.arrowsHeight*2+"px","29a58368":r.arrowsWidth*2+"px","3622fa64":r.arrowsRadius,"1ba101fe":r.arrowsBorder,"0bafb5e6":r.arrowsMargin+"px","423a44b8":r.arrowsContainerBgL,"423a44be":r.arrowsContainerBgR,"10b117ee":r.scrollColor}))},W4=Ev.setup;Ev.setup=W4?(r,U)=>(D4(),W4(r,U)):D4;const gA={ref:"gscScrollableContainer",class:"scrollable-container"},vA={class:"scrollable-arrows"},bA=["width","height","viewBox"],xA=["stroke"],_A={class:"scrollable-wrapper"},wA={class:"scrollable-arrows"},SA=["width","height","viewBox"],TA=["stroke"];function kA(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",gA,[E.arrows?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(["arrows-container",L.hideShowLeftArrow]),onClick:U[0]||(U[0]=(...T)=>L.scrollLeft&&L.scrollLeft(...T))},[p.createElementVNode("div",vA,[(p.openBlock(),p.createElementBlock("svg",{width:E.arrowsWidth,height:E.arrowsHeight,viewBox:L.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:E.arrowsColor},null,8,xA)],8,bA))])],2)):p.createCommentVNode("",!0),p.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:U[1]||(U[1]=(...T)=>L.getScroll&&L.getScroll(...T))},[p.createElementVNode("div",_A,[p.renderSlot(r.$slots,"default",{},void 0,!0)])],544),E.arrows?(p.openBlock(),p.createElementBlock("div",{key:1,id:"arrows-container-right",class:p.normalizeClass(["arrows-container",L.hideShowRightArrow]),onClick:U[2]||(U[2]=(...T)=>L.scrollRight&&L.scrollRight(...T))},[p.createElementVNode("div",wA,[(p.openBlock(),p.createElementBlock("svg",{width:E.arrowsWidth,height:E.arrowsHeight,viewBox:L.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:E.arrowsColor},null,8,TA)],8,SA))])],2)):p.createCommentVNode("",!0)],512)}const CA=yA(Ev,[["render",kA],["__scopeId","data-v-b548a08d"]]),Jd=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E};let G4=null;const Vv={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const r=this.gamesContainerWidth;return r<=400?"date400":r<=540?"date540":r<=650?"date650":"date"},seasoncontainer(){const r=this.gamesContainerWidth;return r<=400?"season-container400":r<=540?"season-container540":r<=650?"season-container650":"season-container"},matchcontainer(){const r=this.gamesContainerWidth;return r<=400?"match-container400":r<=540?"match-container540":r<=650?"match-container650":"match-container"},containerinfogame(){const r=this.gamesContainerWidth;return r<=400?"container-info-game400":r<=540?"container-info-game540":r<=650?"container-info-game650":"container-info-game"},playbutton(){const r=this.gamesContainerWidth;return r<=400?"play-button400":r<=540?"play-button540":r<=650?"play-button650":"play-button"},baselogo(){const r=this.gamesContainerWidth;return r<=400?"base-logo400":r<=540?"base-logo540":r<=650?"base-logo650":"base-logo"},baselogoright(){const r=this.gamesContainerWidth;return r<=400?"base-logo-right400":r<=540?"base-logo-right540":r<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const r=this.gamesContainerWidth;return r<=400?"thumbnail-highlights400":r<=540?"thumbnail-highlights540":r<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const r=this.gamesContainerWidth;return r<=400?"team-logo400":r<=540?"team-logo540":r<=650?"team-logo650":"team-logo"},logoright(){const r=this.gamesContainerWidth;return r<=400?"logo-right400":r<=540?"logo-right540":r<=650?"logo-right650":"logo-right"},secondline(){const r=this.gamesContainerWidth;return r<=400?"second-line400":r<=540?"second-line540":r<=650?"second-line650":"second-line"},titlename(){const r=this.gamesContainerWidth;return r<=400?"title-name400":r<=540?"title-name540":r<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)G4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),G4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},X4=()=>{p.useCssVars(r=>({d6f07504:r.colorBackgroundHome+"45","6d0848cf":r.colorBackgroundAway+"45","524ee4ec":r.colorBackgroundHome,"524bd2fb":r.colorBackgroundAway}))},J4=Vv.setup;Vv.setup=J4?(r,U)=>(X4(),J4(r,U)):X4;const U1=r=>(p.pushScopeId("data-v-45034b51"),r=r(),p.popScopeId(),r),OA=U1(()=>p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[p.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),NA=[OA],LA=U1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),EA=["src"],VA=U1(()=>p.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),MA=U1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),UA=["src"],PA=["src"],zA={class:"text-container"};function RA(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",{ref:"gamesContainer",class:p.normalizeClass(L.thumbnailhighlights)},[p.createElementVNode("div",{class:p.normalizeClass(L.playbutton),onClick:U[0]||(U[0]=(...T)=>L.onclickPlayVideos&&L.onclickPlayVideos(...T))},NA,2),E.dateGame!=""?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(L.date)},p.toDisplayString(E.dateGame),3)):p.createCommentVNode("",!0),E.matchday!=""&&E.seasonName!=""?(p.openBlock(),p.createElementBlock("div",{key:1,class:p.normalizeClass(L.containerinfogame)},[E.matchday!=""?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(L.matchcontainer)},p.toDisplayString(E.matchday),3)):p.createCommentVNode("",!0),E.seasonName!=""?(p.openBlock(),p.createElementBlock("div",{key:1,class:p.normalizeClass(L.seasoncontainer)},p.toDisplayString(E.seasonName),3)):p.createCommentVNode("",!0)],2)):p.createCommentVNode("",!0),LA,p.createElementVNode("img",{src:E.background,alt:"",class:"bkg-blackwhite position-image"},null,8,EA),p.createElementVNode("div",{class:p.normalizeClass([L.baselogo,"position-image"])},null,2),p.createElementVNode("div",{class:p.normalizeClass(L.baselogoright)},null,2),VA,MA,p.createElementVNode("img",{src:E.logoHome,alt:"",class:p.normalizeClass(L.teamlogo)},null,10,UA),p.createElementVNode("img",{src:E.logoAway,alt:"",class:p.normalizeClass(L.logoright)},null,10,PA),p.createElementVNode("div",zA,[p.createElementVNode("span",{class:p.normalizeClass(L.secondline)},p.toDisplayString(E.score),3),p.createElementVNode("div",{class:p.normalizeClass(L.titlename)},p.toDisplayString(E.titleCategory),3)])],2)}const AA=Jd(Vv,[["render",RA],["__scopeId","data-v-45034b51"]]);let Z4=null;const Mv={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const r=this.gamesContainerWidth;return r<=400?"play-button400":r<=540?"play-button540":r<=650?"play-button650":"play-button"},teamlogo(){const r=this.gamesContainerWidth;return r<=400?"team-logo400":r<=540?"team-logo540":r<=650?"team-logo650":"team-logo"},firstline(){const r=this.gamesContainerWidth;return r<=400?"first-line400":r<=540?"first-line540":r<=650?"first-line650":"first-line"},secondline(){const r=this.gamesContainerWidth;return r<=400?"second-line400":r<=540?"second-line540":r<=650?"second-line650":"second-line"},playerimage(){const r=this.gamesContainerWidth;return r<=400?"player-image400":r<=540?"player-image540":r<=650?"player-image650":"player-image"},thumbnailhighlights(){const r=this.gamesContainerWidth;return r<=400?"thumbnail-highlights400":r<=540?"thumbnail-highlights540":r<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Z4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Z4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},H4=()=>{p.useCssVars(r=>({"46c0698e":r.colorBackgroundHome,"12d9d27a":r.colorBackgroundHome+"36"}))},Y4=Mv.setup;Mv.setup=Y4?(r,U)=>(H4(),Y4(r,U)):H4;const Nh=r=>(p.pushScopeId("data-v-9caaef34"),r=r(),p.popScopeId(),r),qA=Nh(()=>p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[p.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),FA=[qA],IA=Nh(()=>p.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),jA=["src"],KA=Nh(()=>p.createElementVNode("div",{class:"base-logo"},null,-1)),BA=["src"],DA=Nh(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),WA={class:"text-container"},GA={class:"player-image position-image"},XA=["src"],JA=["src"],ZA=["src"],HA=Nh(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function YA(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",{ref:"gamesContainer",class:p.normalizeClass(L.thumbnailhighlights)},[p.createElementVNode("div",{class:p.normalizeClass(L.playbutton),onClick:U[0]||(U[0]=(...T)=>L.onclickPlayVideos&&L.onclickPlayVideos(...T))},FA,2),IA,p.createElementVNode("img",{src:E.background,alt:"",class:"bkg-blackwhite position-image"},null,8,jA),KA,p.createElementVNode("img",{src:E.logoHome,alt:"",class:p.normalizeClass(L.teamlogo)},null,10,BA),DA,p.createElementVNode("div",WA,[p.createElementVNode("span",{class:p.normalizeClass(L.firstline)},p.toDisplayString(E.namePlayer),3),p.createElementVNode("span",{class:p.normalizeClass(L.secondline),style:p.normalizeStyle(E.nameCategory=="Balones recuperados en disputa "?"font-size: 25px":"")},p.toDisplayString(E.nameCategory),7)]),p.createElementVNode("div",GA,[E.typeImg==0?(p.openBlock(),p.createElementBlock("img",{key:0,src:E.photoProfile,class:p.normalizeClass(L.playerimage)},null,10,XA)):p.createCommentVNode("",!0),E.typeImg==1?(p.openBlock(),p.createElementBlock("img",{key:1,src:E.photoProfile,alt:""},null,8,JA)):p.createCommentVNode("",!0),E.typeImg==2?(p.openBlock(),p.createElementBlock("img",{key:2,src:E.photoProfile,class:"img-number"},null,8,ZA)):p.createCommentVNode("",!0)]),HA],2)}const QA=Jd(Mv,[["render",YA],["__scopeId","data-v-9caaef34"]]);let Q4=null;const Uv={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""},nameTeam:{type:String,default:""},nameCategory:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const r=this.gamesContainerWidth;return r<=400?"play-button400":r<=540?"play-button540":r<=650?"play-button650":"play-button"},thumbnailhighlights(){const r=this.gamesContainerWidth;return r<=400?"thumbnail-highlights400":r<=540?"thumbnail-highlights540":r<=650?"thumbnail-highlights650":"thumbnail-highlights"},secondline(){const r=this.gamesContainerWidth;return r<=400?"second-line400":r<=540?"second-line540":r<=650?"second-line650":"second-line"},firstline(){const r=this.gamesContainerWidth;return r<=400?"first-line400":r<=540?"first-line540":r<=650?"first-line650":"first-line"},teamlogo(){const r=this.gamesContainerWidth;return r<=400?"team-logo400":r<=540?"team-logo540":r<=650?"team-logo650":"team-logo"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Q4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Q4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},$4=()=>{p.useCssVars(r=>({"5536c7dc":r.colorBackgroundHome,"3e449276":r.colorBackgroundHome+"36"}))},e_=Uv.setup;Uv.setup=e_?(r,U)=>($4(),e_(r,U)):$4;const P1=r=>(p.pushScopeId("data-v-ca6c08d9"),r=r(),p.popScopeId(),r),$A=P1(()=>p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[p.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),eq=[$A],tq=P1(()=>p.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),nq=["src"],rq={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo"},aq=["fill"],oq=["id"],iq=["stop-color"],sq=["stop-color"],lq=["src"],cq=P1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),uq={class:"text-container"},dq=P1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function pq(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",{ref:"gamesContainer",class:p.normalizeClass(L.thumbnailhighlights)},[p.createElementVNode("div",{class:p.normalizeClass(L.playbutton),onClick:U[0]||(U[0]=(...T)=>L.onclickPlayVideos&&L.onclickPlayVideos(...T))},eq,2),tq,p.createElementVNode("img",{src:E.background,alt:"",class:"bkg-blackwhite position-image"},null,8,nq),(p.openBlock(),p.createElementBlock("svg",rq,[p.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+E.nameTeam.replaceAll(" ","")+")"},null,8,aq),p.createElementVNode("defs",null,[p.createElementVNode("linearGradient",{id:"paint0_linear_7_"+E.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[p.createElementVNode("stop",{"stop-color":E.colorBackgroundHome},null,8,iq),p.createElementVNode("stop",{offset:"1","stop-color":E.colorBackgroundHome},null,8,sq)],8,oq)])])),p.createElementVNode("img",{class:p.normalizeClass(L.teamlogo),src:E.logoHome,alt:""},null,10,lq),cq,p.createElementVNode("div",uq,[p.createElementVNode("span",{class:p.normalizeClass(L.firstline)},[E.nameTeam!="Local"?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createTextVNode(p.toDisplayString(E.nameTeam),1)],64)):p.createCommentVNode("",!0)],2),p.createElementVNode("div",{class:p.normalizeClass(L.secondline)},p.toDisplayString(E.nameCategory),3)]),dq],2)}const fq=Jd(Uv,[["render",pq],["__scopeId","data-v-ca6c08d9"]]);let t_=null;const Pv={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""},nameTeam:{type:String,default:""},nameCategory:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const r=this.gamesContainerWidth;return r<=400?"play-button400":r<=540?"play-button540":r<=650?"play-button650":"play-button"},thumbnailhighlights(){const r=this.gamesContainerWidth;return r<=400?"thumbnail-highlights400":r<=540?"thumbnail-highlights540":r<=650?"thumbnail-highlights650":"thumbnail-highlights"},secondline(){const r=this.gamesContainerWidth;return r<=400?"second-line400":r<=540?"second-line540":r<=650?"second-line650":"second-line"},firstline(){const r=this.gamesContainerWidth;return r<=400?"first-line400":r<=540?"first-line540":r<=650?"first-line650":"first-line"},teamlogo(){const r=this.gamesContainerWidth;return r<=400?"team-logo400":r<=540?"team-logo540":r<=650?"team-logo650":"team-logo"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)t_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),t_.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},n_=()=>{p.useCssVars(r=>({"17b44fa7":r.colorBackgroundHome,f1e257fe:r.colorBackgroundHome+"36"}))},r_=Pv.setup;Pv.setup=r_?(r,U)=>(n_(),r_(r,U)):n_;const z1=r=>(p.pushScopeId("data-v-49b4e56b"),r=r(),p.popScopeId(),r),hq=z1(()=>p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[p.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),mq=[hq],yq=z1(()=>p.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),gq=["src"],vq={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo-away"},bq=["fill"],xq=["id"],_q=["stop-color"],wq=["stop-color"],Sq=["src"],Tq=z1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),kq={class:"text-container"},Cq=z1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function Oq(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",{ref:"gamesContainer",class:p.normalizeClass(L.thumbnailhighlights)},[p.createElementVNode("div",{class:p.normalizeClass(L.playbutton),onClick:U[0]||(U[0]=(...T)=>L.onclickPlayVideos&&L.onclickPlayVideos(...T))},mq,2),yq,p.createElementVNode("img",{src:E.background,alt:"",class:"bkg-blackwhite position-image"},null,8,gq),(p.openBlock(),p.createElementBlock("svg",vq,[p.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+E.nameTeam.replaceAll(" ","")+")"},null,8,bq),p.createElementVNode("defs",null,[p.createElementVNode("linearGradient",{id:"paint0_linear_7_"+E.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[p.createElementVNode("stop",{"stop-color":E.colorBackgroundAway},null,8,_q),p.createElementVNode("stop",{offset:"1","stop-color":E.colorBackgroundAway},null,8,wq)],8,xq)])])),p.createElementVNode("img",{class:p.normalizeClass(L.teamlogo),src:E.logoHome,alt:""},null,10,Sq),Tq,p.createElementVNode("div",kq,[p.createElementVNode("span",{class:p.normalizeClass(L.firstline)},[E.nameTeam!="Away"?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createTextVNode(p.toDisplayString(E.nameTeam),1)],64)):p.createCommentVNode("",!0)],2),p.createElementVNode("div",{class:p.normalizeClass(L.secondline)},p.toDisplayString(E.nameCategory),3)]),Cq],2)}const Nq=Jd(Pv,[["render",Oq],["__scopeId","data-v-49b4e56b"]]);let a_=null;const zv={components:{},props:{colorFontHome:{type:String,default:"#000000"},colorFontAway:{type:String,default:"#000000"},type:{type:Number,default:0},playStatus:{type:Number,default:2},matchday:{type:String,default:""},seasonName:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},showimg:{type:Boolean,default:!0},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},date:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{seasoncontainer(){const r=this.gamesContainerWidth;return r<=400?"season-container400":r<=540?"season-container540":r<=650?"season-container650":"season-container"},matchcontainer(){const r=this.gamesContainerWidth;return r<=400?"match-container400":r<=540?"match-container540":r<=650?"match-container650":"match-container"},seasonnameContainer(){const r=this.gamesContainerWidth;return r<=400?"seasonname400":r<=540?"seasonname540":r<=650?"seasonname650":"seasonname"},matchboxContainer(){const r=this.gamesContainerWidth;return r<=400?"matchbox400":r<=540?"matchbox540":r<=650?"matchbox650":"matchbox"},containerinfogame(){const r=this.gamesContainerWidth;return r<=400?"container-info-game400":r<=540?"container-info-game540":r<=650?"container-info-game650":"container-info-game"},playbutton(){const r=this.gamesContainerWidth;return r<=400?"play-button400":r<=540?"play-button540":r<=650?"play-button650":"play-button"},points(){const r=this.gamesContainerWidth;return r<=400?"points400":r<=540?"points540":r<=650?"points650":"points"},teamname(){const r=this.gamesContainerWidth;return r<=400?"team-name400":r<=540?"team-name540":r<=650?"team-name650":"team-name"},teamscore(){const r=this.gamesContainerWidth;return r<=400?"team-score400":r<=540?"team-score540":r<=650?"team-score650":"team-score"},teamlogo(){const r=this.gamesContainerWidth;return r<=400?"team-logo400":r<=540?"team-logo540":r<=650?"team-logo650":"team-logo"},hometeam(){const r=this.gamesContainerWidth;return r<=400?"home-team400":r<=540?"home-team540":r<=650?"home-team650":"home-team"},awayteam(){const r=this.gamesContainerWidth;return r<=400?"away-team400":r<=540?"away-team540":r<=650?"away-team650":"away-team"},texttitle(){const r=this.gamesContainerWidth;return r<=400?"text-title400":r<=540?"text-title540":r<=650?"text-title650":"text-title"},texttitle2(){const r=this.gamesContainerWidth;return r<=400?"text-title2400":r<=540?"text-title2540":r<=650?"text-title2650":"text-title2"},playerimage(){const r=this.gamesContainerWidth;return r<=400?"player-image400":r<=540?"player-image540":r<=650?"player-image650":"player-image"},thumbnailhighlights(){const r=this.gamesContainerWidth;return r<=400?"thumbnail-highlights400":r<=540?"thumbnail-highlights540":r<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)a_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),a_.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},o_=()=>{p.useCssVars(r=>({"2144ee44":r.colorBackgroundHome,"2141dc53":r.colorBackgroundAway,"799a5d9c":r.colorBackgroundAway+"62",bdcc60f8:r.colorBackgroundHome+"36"}))},i_=zv.setup;zv.setup=i_?(r,U)=>(o_(),i_(r,U)):o_;const R1=r=>(p.pushScopeId("data-v-4280c69f"),r=r(),p.popScopeId(),r),Lq=["width","src"],Eq=R1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Vq=R1(()=>p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[p.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Mq=[Vq],Uq={class:"player-container"},Pq=["src"],zq=["src"],Rq=["src"],Aq={class:"container-score"},qq=["src"],Fq=["src"],Iq=["src"],jq=R1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Kq=R1(()=>p.createElementVNode("div",{class:"gradient-color"},null,-1));function Bq(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",{ref:"gamesContainer",class:p.normalizeClass(L.thumbnailhighlights)},[E.playStatus!=2?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass((E.playStatus==1,"icon-thumb"))},[p.createElementVNode("img",{width:E.playStatus==1?60:40,src:E.playStatus==1?"http://golstatsimages.blob.core.windows.net/images-library/icn-live@2x.png":"http://golstatsimages.blob.core.windows.net/images-library/icn-info@2x.png"},null,8,Lq)],2)):p.createCommentVNode("",!0),Eq,p.createElementVNode("div",{class:p.normalizeClass(L.playbutton),onClick:U[0]||(U[0]=(...T)=>L.onclickPlayVideos&&L.onclickPlayVideos(...T))},Mq,2),p.createElementVNode("div",Uq,[p.createElementVNode("div",{class:p.normalizeClass(L.containerinfogame)},[p.createElementVNode("div",{class:p.normalizeClass(L.matchcontainer)},[p.createElementVNode("div",{class:p.normalizeClass(L.matchboxContainer)},p.toDisplayString(E.matchday),3),p.createElementVNode("div",{class:p.normalizeClass(L.seasonnameContainer)},p.toDisplayString(E.seasonName),3)],2),p.createElementVNode("div",{class:p.normalizeClass(L.seasoncontainer)},p.toDisplayString(E.date),3)],2),E.type==0?(p.openBlock(),p.createElementBlock("span",{key:0,class:p.normalizeClass(L.texttitle)},p.toDisplayString(E.nameCategory),3)):(p.openBlock(),p.createElementBlock("span",{key:1,class:p.normalizeClass(L.texttitle2)},p.toDisplayString(E.nameCategory),3)),E.showimg?(p.openBlock(),p.createElementBlock(p.Fragment,{key:2},[E.typeImg==0?(p.openBlock(),p.createElementBlock("img",{key:0,src:E.photoProfile,class:p.normalizeClass(L.playerimage)},null,10,Pq)):p.createCommentVNode("",!0),E.typeImg==1?(p.openBlock(),p.createElementBlock("img",{key:1,src:E.photoProfile,alt:""},null,8,zq)):p.createCommentVNode("",!0),E.typeImg==2?(p.openBlock(),p.createElementBlock("img",{key:2,src:E.photoProfile,class:"img-number"},null,8,Rq)):p.createCommentVNode("",!0)],64)):p.createCommentVNode("",!0),p.createElementVNode("div",Aq,[p.createElementVNode("div",{class:p.normalizeClass(L.hometeam)},[p.createElementVNode("span",{class:p.normalizeClass(L.teamname),style:p.normalizeStyle({color:E.colorFontAway})},p.toDisplayString(E.nameHomeTeam),7),p.createElementVNode("img",{src:E.logoHome,alt:"",class:p.normalizeClass(L.teamlogo)},null,10,qq),p.createElementVNode("span",{class:p.normalizeClass(L.teamscore)},p.toDisplayString(E.scoreHome),3)],2),p.createElementVNode("span",{class:p.normalizeClass(L.points)},":",2),p.createElementVNode("div",{class:p.normalizeClass(L.awayteam)},[p.createElementVNode("span",{class:p.normalizeClass(L.teamscore)},p.toDisplayString(E.scoreAway),3),p.createElementVNode("img",{src:E.logoAway,alt:"",class:p.normalizeClass(L.teamlogo)},null,10,Fq),p.createElementVNode("span",{class:p.normalizeClass(L.teamname),style:p.normalizeStyle({color:E.colorFontAway})},p.toDisplayString(E.nameAwayTeam),7)],2)])]),p.createElementVNode("img",{src:E.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Iq),jq,Kq],2)}const Dq=Jd(zv,[["render",Bq],["__scopeId","data-v-4280c69f"]]);let s_=null;const Rv={components:{},props:{colorFont:{type:String,default:"#000000"},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const r=this.gamesContainerWidth;return r<=400?"play-button400":r<=540?"play-button540":r<=650?"play-button650":"play-button"},firstline(){const r=this.gamesContainerWidth;return r<=400?"first-line400":r<=540?"first-line540":r<=650?"first-line650":"first-line"},secondline(){const r=this.gamesContainerWidth;return r<=400?"second-line400":r<=540?"second-line540":r<=650?"second-line650":"second-line"},playername(){const r=this.gamesContainerWidth;return r<=400?"player-name400":r<=540?"player-name540":r<=650?"player-name650":"player-name"},playerimage(){const r=this.gamesContainerWidth;return r<=400?"player-image400":r<=540?"player-image540":r<=650?"player-image650":"player-image"},thumbnailhighlights(){const r=this.gamesContainerWidth;return r<=400?"thumbnail-highlights400":r<=540?"thumbnail-highlights540":r<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)s_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),s_.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},l_=()=>{p.useCssVars(r=>({"7f6829cd":r.colorBackgroundHome+"30","1ad47d61":r.colorBackgroundHome}))},c_=Rv.setup;Rv.setup=c_?(r,U)=>(l_(),c_(r,U)):l_;const A1=r=>(p.pushScopeId("data-v-cc315132"),r=r(),p.popScopeId(),r),Wq=A1(()=>p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[p.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Gq=[Wq],Xq={class:"player-image position-image"},Jq=["src"],Zq=["src"],Hq=["src"],Yq=["src"],Qq=A1(()=>p.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),$q=["src"],eF=A1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),tF={class:"text-container"},nF=A1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),rF={class:"base-logo",width:"91",height:"216",viewBox:"0 0 91 216",fill:"none",xmlns:"http://www.w3.org/2000/svg"},aF=["fill"];function oF(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",{ref:"gamesContainer",class:p.normalizeClass(L.thumbnailhighlights)},[p.createElementVNode("div",{class:p.normalizeClass(L.playbutton),onClick:U[0]||(U[0]=(...T)=>L.onclickPlayVideos&&L.onclickPlayVideos(...T))},Gq,2),p.createElementVNode("div",Xq,[E.typeImg==0?(p.openBlock(),p.createElementBlock("img",{key:0,src:E.photoProfile,class:p.normalizeClass(L.playerimage)},null,10,Jq)):p.createCommentVNode("",!0),E.typeImg==1?(p.openBlock(),p.createElementBlock("img",{key:1,src:E.photoProfile,alt:""},null,8,Zq)):p.createCommentVNode("",!0),E.typeImg==2?(p.openBlock(),p.createElementBlock("img",{key:2,src:E.photoProfile,class:"img-number"},null,8,Hq)):p.createCommentVNode("",!0)]),p.createElementVNode("img",{src:E.logoHome,alt:"",class:"team-logo"},null,8,Yq),Qq,p.createElementVNode("img",{src:E.background,alt:"",class:"bkg-blackwhite position-image"},null,8,$q),eF,p.createElementVNode("div",tF,[p.createElementVNode("span",{class:p.normalizeClass(L.firstline)},"MEJORES JUGADAS",2),p.createElementVNode("span",{class:p.normalizeClass(L.secondline)},p.toDisplayString(E.nameCategory),3),p.createElementVNode("div",{class:p.normalizeClass(L.playername),style:p.normalizeStyle({color:E.colorFont})},p.toDisplayString(E.namePlayer),7)]),nF,(p.openBlock(),p.createElementBlock("svg",rF,[p.createElementVNode("path",{d:"M91.5 216L0 -0.5H91.5V216Z",fill:E.colorBackgroundHome},null,8,aF)]))],2)}const iF=Jd(Rv,[["render",oF],["__scopeId","data-v-cc315132"]]);function sF(r){const U=p.ref({width:0,height:0});function E(){const K=r.value.getBoundingClientRect();U.value.width=K.width,U.value.height=K.height}return p.onMounted(()=>{E(),window.addEventListener("resize",E)}),p.onUnmounted(()=>{window.removeEventListener("resize",E)}),{elementSize:U}}const lF="_ptg_lp0fw_5",cF="_ptgtitle_lp0fw_15",uF="_ptgtitle450_lp0fw_47",dF="_pgtcontainercard_lp0fw_79",pF="_pgtcontainercard350_lp0fw_89",fF={ptg:lF,ptgtitle:cF,ptgtitle450:uF,pgtcontainercard:dF,pgtcontainercard350:pF},Av={components:{GSCSlider:CA,GSCThumbnailCategory:QA,GSCThumbnailCategoryTeam:fq,GSCThumbnailCategoryTeamAway:Nq,GSCThumbnailHighlightGamePlayer:Dq,GSCThumbnailSummaryPlayer:iF,GSCThumbnailHighlightGameHistoric:AA},setup(){const r=p.ref("ptgDiv"),{elementSize:U}=sF(r);return{ptgDiv:r,elementSize:U}},props:{title:{type:String,default:"100% de sus participaciones en cada partido:"},type:{type:Number,default:0},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0D1D29"},backgroundFooter:{type:String,default:"#192733"},matchdayView:{type:Number,default:1},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsScrollHide:{type:Boolean,default:!1},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",printData:[],teamsInfo:[],playerPhoto:!0,homeTeam:0,flagGames:[],lastseason:0,arrayMatchdays:[],awayTeam:0,goalCategories:[12,55,"35_r","54_r"],resumeCategories:[607,608,12,55,54,35,14,52,15,53,466,477]}},watch:{data:{immediate:!0,handler(r){this.type!=14&&this.getTeamsInfo(r),this.getStats(r)}}},computed:{ptgtitleClass(){return this.elementSize.width<=450?this.$style.ptgtitle450:this.$style.ptgtitle},pgtcontainercardClass(){return this.elementSize.width<=350?this.$style.pgtcontainercard350:this.$style.pgtcontainercard}},methods:{onclickPlayVideos(r){let U=[],E=r.data.game_id?[r.data.game_id]:null;r.type==2?r.data.position_id==1?r.data.category==0?U=r.isAllPlays?[14,52,15,53,300,301,308,309,310,311,304,305,306,307,260,261,312,265,266,267,268,313,314,43,324,323,478,479,480,481,474,475,476,477,40,26,325,16,51,462,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,262,263]:[42,55,324,323,608,39,774,802,52,53,40,54]:U=r.data.category:r.data.category==0?U=r.isAllPlays?[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:[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]:U=r.data.category:r.type==3?r.data.category==0?U=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:U=r.data.category:r.data.category!=0?U=r.data.category:U=[607,608,12,55,54,35,14,52,15,53,466,477],this.data.isPrematch===1&&(E=null);const K=[1,2,3];let oe={type:r.data.plays_status==0||!r.data.plays_status?0:1,seasonId:r.data.season_id,mainSectionType:1,playListType:r.type,categoryIds:r.categories&&r.categories.length?r.categories:U,gameIds:E,playerIds:r.data.player_id?[r.data.player_id]:[],goalkeeperIds:r.data.position_id==1?r.data.player_id?[r.data.player_id]:[]:[],teamId:r.data.team_id?r.data.team_id:0,matchResult:r.data.matchResult?[r.matchResult]:K,playData:{},advancedFilter:{playListTitle:""}};r.data.category!==0&&(oe.advancedFilter.mainCategoryId=r.data.category),this.$emit("openmedia",oe)},onClickVideos(r){this.$emit("onClickVideos",r)},onClickCard(r){this.$emit("onClickCard",r)},async getTeamsInfo(r){const U=await B4.create({headers:{Authorization:`${this.token}`}}).get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+r.season);for(let E=0;E<U.data.teams.length;E++)this.teamsInfo[U.data.teams[E].team_id]=U.data.teams[E]},async getStats(r){const U=B4.create({headers:{Authorization:`${this.token}`}});var E=[],K={},oe={};if(this.type==0){oe=await U.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+r.season+"/"+r.player);for(let L=0;L<oe.data.seasons[r.season].games_played.length;L++)K={player_id:r.player,color:oe.data.info_thumbnails.colors.background_color,colorfont:oe.data.info_thumbnails.colors.font_color,photo_profile:oe.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.info_thumbnails.images.player_in_action[0]:"https://az755631.vo.msecnd.net/players-profile/"+r.player+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games_played[L].home_team+".png",player_name:oe.data.seasons[r.season].games_played[L].home_team_acronym+" "+oe.data.seasons[r.season].games_played[L].home_team_score+" : "+oe.data.seasons[r.season].games_played[L].visiting_team_score+" "+oe.data.seasons[r.season].games_played[L].visiting_team_acronym,team_id:oe.data.seasons[r.season].games_played[L].game_id,team_id_b:oe.data.seasons[r.season].games_played[L].home_team,season_id:oe.data.seasons[r.season].games_played[L].season_id,name:"",date:this.obtenerNombreCompletoFecha(oe.data.seasons[r.season].games_played[L].date),category:0,team_id:oe.data.team_id,game_id:oe.data.seasons[r.season].games_played[L].game_id,position_id:oe.data.position_id,scorehome:oe.data.seasons[r.season].games_played[L].home_team_score,scoreaway:oe.data.seasons[r.season].games_played[L].visiting_team_score,hometeamacronym:oe.data.seasons[r.season].games_played[L].home_team_acronym,visitingteamacronym:oe.data.seasons[r.season].games_played[L].visiting_team_acronym,seasonname:oe.data.seasons[r.season].name,seasonname2:oe.data.seasons[r.season].name.replace("Clausura","CL ").replace("Apertura","AP "),match:oe.data.seasons[r.season].games_played[L].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),score:oe.data.seasons[r.season].games_played[L].home_team_score+" : "+oe.data.seasons[r.season].games_played[L].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:oe.data.seasons[r.season].games_played[L].info_thumbnails.home_colors.background_color,backgroundaway:oe.data.seasons[r.season].games_played[L].info_thumbnails.away_colors.background_color,colorfont_home:oe.data.seasons[r.season].games_played[L].info_thumbnails.home_colors.font_color,colorfont_away:oe.data.seasons[r.season].games_played[L].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games_played[L].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games_played[L].visiting_team+".png",total:oe.data.seasons[r.season].games_played[L].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+oe.data.seasons[r.season].games_played[L].home_team+"_"+oe.data.seasons[r.season].games_played[L].season_id+"_r1.jpg"},E.push(K)}if(this.type==1){oe=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/teams/"+r.team);for(let L=0;L<oe.data.categories.length;L++){this.playerPhoto=!1;const T=Math.floor(Math.random()*oe.data.categories[L].info_thumbnails.images.background_default_categories.length),e=Math.floor(Math.random()*oe.data.categories[L].info_thumbnails.images.background_default_teams.length);K={player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.categories[L].info_thumbnails.images.background_default_categories[T],background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.categories[L].info_thumbnails.images.background_default_teams[e],color:oe.data.categories[L].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+oe.data.categories[L].info_thumbnails.team_logo,player_name:oe.data.categories[L].category_name,team_name:this.teamsInfo[oe.data.team_id].colloquial_name,team_id:oe.data.team_id,colorfont:oe.data.categories[L].info_thumbnails.colors.font_color,team_id_b:oe.data.team_id,category:oe.data.categories[L].categories,season_id:oe.data.season_id,total:oe.data.categories[L].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+oe.data.team_id+"_"+oe.data.season_id+"_r1.jpg"},E.push(K)}}if(this.type==2){oe=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/players/"+r.player);for(let L=0;L<oe.data.categories.length;L++){this.playerPhoto=!1;const T=Math.floor(Math.random()*oe.data.categories[L].info_thumbnails.images.player_in_action.length),e=Math.floor(Math.random()*oe.data.categories[L].info_thumbnails.images.background_default_categories.length);K={player_action:oe.data.categories[L].info_thumbnails.images.player_in_action[T]?"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.categories[L].info_thumbnails.images.player_in_action[T]:"https://az755631.vo.msecnd.net/players-profile/"+r.player+".png",background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.categories[L].info_thumbnails.images.background_default_categories[e],color:oe.data.categories[L].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+oe.data.categories[L].info_thumbnails.team_logo,player_name:oe.data.categories[L].category_name,season_id:r.season,colorfont:oe.data.categories[L].info_thumbnails.colors.font_color,player_id:r.player,team_id:oe.data.categories[L].info_thumbnails.colors.team_id,category:oe.data.categories[L].categories,total:oe.data.categories[L].total,background_card:"https://az755631.vo.msecnd.net/players-profile/"+r.player+".png"},E.push(K)}}if(this.type==3){this.playerPhoto=!1,oe=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/games/"+r.game);for(let L=0;L<oe.data.games[0].players.length;L++){const T=Math.floor(Math.random()*oe.data.games[0].players[L].info_thumbnails.images.background_player_in_action.length),e=Math.floor(Math.random()*oe.data.games[0].players[L].info_thumbnails.images.player_in_action.length);K={colorbackgroundhome:oe.data.games[0].players[L].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:oe.data.games[0].players[L].player_name,background:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.games[0].players[L].info_thumbnails.images.background_player_in_action[T],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",category:0,colorfont:oe.data.games[0].players[L].info_thumbnails.colors.font_color,team_id:oe.data.games[0].players[L].team_id,player_id:oe.data.games[0].players[L].player_id,game_id:oe.data.games[0].game_id,season_id:oe.data.season_id,logohome:oe.data.games[0].players[L].team_logo,photoprofile:oe.data.games[0].players[L].info_thumbnails.images.player_in_action[e]?"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.games[0].players[L].info_thumbnails.images.player_in_action[e]:"https://az755631.vo.msecnd.net/players-profile/"+oe.data.games[0].players[L].player_id+".png",logoaway:"",scoreaway:"",scorehome:""},E.push(K)}}if(this.type==4){this.playerPhoto=!1,oe=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+r.season+"/games/"+r.game);for(let L=0;L<oe.data.home_team.categories.length;L++){const T=Math.floor(Math.random()*oe.data.home_team.categories[L].info_thumbnails.images.background_default_teams.length);K={game_id:oe.data.game_id,season_id:oe.data.season_id,team_id:oe.data.home_team.team_id,category:oe.data.home_team.categories[L].categories.concat(oe.data.home_team.categories[L].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.home_team.categories[L].info_thumbnails.images.background_default_categories[T],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.home_team.categories[L].info_thumbnails.images.background_default_categories[T],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.home_team.team_id+".png",color:oe.data.home_team.categories[L].info_thumbnails.colors.background_color,colorfont:oe.data.home_team.categories[L].info_thumbnails.colors.font_color,player_name:oe.data.home_team.categories[L].category_name,total:oe.data.home_team.categories[L].total,team_name:"Local",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+oe.data.home_team.team_id+"_"+oe.data.season_id+"_r1.jpg"},E.push(K)}}if(this.type==5){this.playerPhoto=!1,oe=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+r.season+"/games/"+r.game);for(let L=0;L<oe.data.visiting_team.categories.length;L++){const T=Math.floor(Math.random()*oe.data.visiting_team.categories[L].info_thumbnails.images.background_default_categories.length);K={game_id:oe.data.game_id,season_id:oe.data.season_id,team_id:oe.data.visiting_team.team_id,category:oe.data.visiting_team.categories[L].categories.concat(oe.data.visiting_team.categories[L].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.visiting_team.categories[L].info_thumbnails.images.background_default_categories[T],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.visiting_team.categories[L].info_thumbnails.images.background_default_categories[T],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.visiting_team.team_id+".png",team_name:"Away",color:oe.data.visiting_team.categories[L].info_thumbnails.colors.background_color,colorfont:oe.data.visiting_team.categories[L].info_thumbnails.colors.font_color,player_name:oe.data.visiting_team.categories[L].category_name,total:oe.data.visiting_team.categories[L].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+oe.data.visiting_team.team_id+"_"+oe.data.season_id+"_r1.jpg"},E.push(K)}}if(this.type==6){oe=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/teams/"+r.team+"/categories/"+r.category);for(let L=0;L<oe.data.best_plays.length;L++)K={category:oe.data.best_plays[L].categories,team_id:oe.data.team_id,game_id:oe.data.best_plays[L].game_id,season_id:oe.data.season_id,backgroundhome:oe.data.best_plays[L].info_thumbnails.home_colors.background_color,backgroundaway:oe.data.best_plays[L].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.best_plays[L].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.best_plays[L].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.best_plays[L].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:oe.data.best_plays[L].score[0]+" : "+oe.data.best_plays[L].score[1]},E.push(K)}if(this.type==7){oe=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/teams/"+r.team+"/categories/"+r.category);for(let L=0;L<oe.data.best_plays.length;L++)K={category:oe.data.best_plays[L].categories,team_id:oe.data.team_id,game_id:oe.data.best_plays[L].game_id,season_id:oe.data.season_id,backgroundhome:oe.data.best_plays[L].info_thumbnails.home_colors.background_color,colorfont_home:oe.data.best_plays[L].info_thumbnails.home_colors.font_color,colorfont_away:oe.data.best_plays[L].info_thumbnails.away_colors.font_color,backgroundaway:oe.data.best_plays[L].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.best_plays[L].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.best_plays[L].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.best_plays[L].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:oe.data.best_plays[L].score[0]+" : "+oe.data.best_plays[L].score[1]},E.push(K)}if(this.type==8){oe=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/players/"+r.player+"/categories/"+r.category);for(let L=0;L<oe.data.best_plays.length;L++)K={category:oe.data.best_plays[L].categories,team_id:oe.data.team_id,game_id:oe.data.best_plays[L].game_id,season_id:oe.data.season_id,player_id:oe.data.player_id,backgroundhome:oe.data.best_plays[L].info_thumbnails.home_colors.background_color,backgroundaway:oe.data.best_plays[L].info_thumbnails.away_colors.background_color,colorfont_home:oe.data.best_plays[L].info_thumbnails.home_colors.font_color,colorfont_away:oe.data.best_plays[L].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.best_plays[L].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.best_plays[L].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.best_plays[L].info_thumbnails.images.background_default_categories[0],match:"",scorehome:oe.data.best_plays[L].score[0],scoreaway:oe.data.best_plays[L].score[1],photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+oe.data.best_plays[L].info_thumbnails.player_logo,hometeamacronym:oe.data.best_plays[L].home_team_acronym,visitingteamacronym:oe.data.best_plays[L].away_team_acronym,seasonname:"",score:oe.data.best_plays[L].score[0]+" : "+oe.data.best_plays[L].score[1]},E.push(K)}if(this.type==9){oe=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/players/"+r.player+"/categories/"+r.category);for(let L=0;L<oe.data.best_plays.length;L++)K={category:oe.data.best_plays[L].categories,team_id:oe.data.team_id,player_id:oe.data.player_id,game_id:oe.data.best_plays[L].game_id,season_id:oe.data.season_id,backgroundhome:oe.data.best_plays[L].info_thumbnails.home_colors.background_color,backgroundaway:oe.data.best_plays[L].info_thumbnails.away_colors.background_color,colorfont_home:oe.data.best_plays[L].info_thumbnails.home_colors.font_color,colorfont_away:oe.data.best_plays[L].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.best_plays[L].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.best_plays[L].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.best_plays[L].info_thumbnails.images.background_default_categories[0],match:"",scorehome:oe.data.best_plays[L].score[0],scoreaway:oe.data.best_plays[L].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+oe.data.best_plays[L].info_thumbnails.player_logo,score:oe.data.best_plays[L].score[0]+" : "+oe.data.best_plays[L].score[1]},E.push(K)}if(this.type==10){const L=await U.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+r.team);for(let T=0;T<L.data.seasons[r.season].games.length;T++){const e=Math.floor(Math.random()*L.data.seasons[r.season].games[T].info_thumbnails.images.background_default_games.length);K={photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[r.season].games[T].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[r.season].games[T].home_team+".png",player_name:L.data.seasons[r.season].games[T].home_team_acronym+" "+L.data.seasons[r.season].games[T].home_team_score+" : "+L.data.seasons[r.season].games[T].visiting_team_score+" "+L.data.seasons[r.season].games[T].visiting_team_acronym,team_id:L.data.seasons[r.season].games[T].game_id,team_id_b:L.data.seasons[r.season].games[T].home_team,season_id:L.data.seasons[r.season].games[T].season_id,name:"",category:0,colorfont_home:L.data.best_plays[T].info_thumbnails.home_colors.colors.font_color,colorfont_away:L.data.best_plays[T].info_thumbnails.away_colors.colors.font_color,game_id:L.data.seasons[r.season].games[T].game_id,seasonname:L.data.seasons[r.season].name,match:L.data.seasons[r.season].games[T].matchday_name.replace("Matchday","Jor"),score:L.data.seasons[r.season].games[T].home_team_score+" : "+L.data.seasons[r.season].games[T].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.seasons[r.season].games[T].info_thumbnails.images.background_default_games[e],backgroundhome:L.data.seasons[r.season].games[T].info_thumbnails.home_colors.background_color,backgroundaway:L.data.seasons[r.season].games[T].info_thumbnails.away_colors.background_color,colorfont_home:L.data.best_plays[T].info_thumbnails.home_colors.font_color,colorfont_away:L.data.best_plays[T].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[r.season].games[T].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[r.season].games[T].visiting_team+".png",total:L.data.seasons[r.season].games[T].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.seasons[r.season].games[T].home_team+"_"+L.data.seasons[r.season].games[T].season_id+"_r1.jpg"},E.push(K)}}if(this.type==11){const L=await U.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+r.season+"/"+r.player);for(let T=0;T<L.data.seasons[r.season].games_played.length;T++)Math.floor(Math.random()*L.data.seasons[r.season].games_played[T].info_thumbnails.images.background_default_games.length),K={category:0,player_id:r.player,team_id:L.data.team_id,game_id:L.data.seasons[r.season].games_played[T].game_id,position_id:L.data.position_id,color:L.data.info_thumbnails.colors.background_color,photo_profile:"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.player_in_action[0],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[r.season].games_played[T].home_team+".png",player_name:L.data.seasons[r.season].games_played[T].home_team_acronym+" "+L.data.seasons[r.season].games_played[T].home_team_score+" : "+L.data.seasons[r.season].games_played[T].visiting_team_score+" "+L.data.seasons[r.season].games_played[T].visiting_team_acronym,team_id_b:L.data.seasons[r.season].games_played[T].home_team,season_id:L.data.seasons[r.season].games_played[T].season_id,name:L.data.seasons[r.season].games_played[T].player_name,seasonname:L.data.seasons[r.season].name,match:L.data.seasons[r.season].games_played[T].matchday_name.replace("Matchday","Jor"),scorehome:L.data.seasons[r.season].games_played[T].home_team_score,scoreaway:L.data.seasons[r.season].games_played[T].visiting_team_score,hometeamacronym:L.data.seasons[r.season].games_played[T].home_team_acronym,visitingteamacronym:L.data.seasons[r.season].games_played[T].visiting_team_acronym,background:"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:L.data.seasons[r.season].games_played[T].info_thumbnails.home_colors.background_color,backgroundaway:L.data.seasons[r.season].games_played[T].info_thumbnails.away_colors.background_color,colorfont_home:L.data.seasons[r.season].games_played[T].info_thumbnails.home_colors.font_color,colorfont_away:L.data.seasons[r.season].games_played[T].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[r.season].games_played[T].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[r.season].games_played[T].visiting_team+".png",total:L.data.seasons[r.season].games_played[T].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.seasons[r.season].games_played[T].home_team+"_"+L.data.seasons[r.season].games_played[T].season_id+"_r1.jpg"},E.push(K)}if(this.type==12){const L=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/categories/"+r.category);for(let T=0;T<L.data.length;T++)for(let e=0;e<L.data[T].best_plays.length;e++)K={category:L.data[T].best_plays[e].categories,game_id:L.data[T].best_plays[e].game_id,season_id:L.data[T].season_id,backgroundhome:L.data[T].best_plays[e].info_thumbnails.home_colors.background_color,backgroundaway:L.data[T].best_plays[e].info_thumbnails.away_colors.background_color,colorfont_home:L.data[T].best_plays[e].info_thumbnails.home_colors.font_color,colorfont_away:L.data[T].best_plays[e].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data[T].best_plays[e].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data[T].best_plays[e].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+L.data[T].best_plays[e].info_thumbnails.images.background_default_categories[0],match:"",scorehome:L.data[T].best_plays[e].score[0],scoreaway:L.data[T].best_plays[e].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+L.data[T].best_plays[e].info_thumbnails.player_logo,score:L.data[T].best_plays[e].score[0]+" : "+L.data[T].best_plays[e].score[1]},E.push(K)}if(this.type==13){const L=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/categories/"+r.category);for(let T=0;T<L.data.length;T++)for(let e=0;e<L.data[T].best_plays.length;e++)K={category:L.data[T].best_plays[e].categories,game_id:L.data[T].best_plays[e].game_id,season_id:L.data[T].season_id,backgroundhome:L.data[T].best_plays[e].info_thumbnails.home_colors.background_color,backgroundaway:L.data[T].best_plays[e].info_thumbnails.away_colors.background_color,colorfont_home:L.data[T].best_plays[e].info_thumbnails.home_colors.font_color,colorfont_away:L.data[T].best_plays[e].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data[T].best_plays[e].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data[T].best_plays[e].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+L.data[T].best_plays[e].info_thumbnails.images.background_default_categories[0],match:"",scorehome:L.data[T].best_plays[e].score[0],scoreaway:L.data[T].best_plays[e].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+L.data[T].best_plays[e].info_thumbnails.player_logo,score:L.data[T].best_plays[e].score[0]+" : "+L.data[T].best_plays[e].score[1]},E.push(K)}if(this.type==14&&(E=[],r.season)){if(this.lastseason!=r.season){const L=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/categories/"+r.category);this.flagGames=[],this.arrayMatchdays=[];for(let T=0;T<L.data.length;T++)for(let e=0;e<L.data[T].best_plays.length;e++)L.data[T].best_plays[e].score[0]==0&&L.data[T].best_plays[e].score[1]==0||(K={category:L.data[T].best_plays[e].categories,game_id:L.data[T].best_plays[e].game_id,plays_status:L.data[T].best_plays[e].plays_status,season_id:L.data[T].season_id,backgroundhome:L.data[T].best_plays[e].info_thumbnails.home_colors.background_color,backgroundaway:L.data[T].best_plays[e].info_thumbnails.away_colors.background_color,colorfont_home:L.data[T].best_plays[e].info_thumbnails.home_colors.font_color,date_time:new Date(L.data[T].best_plays[e].date_time_utc).valueOf(),colorfont_away:L.data[T].best_plays[e].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data[T].best_plays[e].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data[T].best_plays[e].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+L.data[T].best_plays[e].info_thumbnails.images.background_default_categories[0],match:"",scorehome:L.data[T].best_plays[e].score[0],scoreaway:L.data[T].best_plays[e].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+L.data[T].best_plays[e].info_thumbnails.player_logo,score:L.data[T].best_plays[e].score[0]+" : "+L.data[T].best_plays[e].score[1],matchday_id:L.data[T].best_plays[e].matchday_id},this.arrayMatchdays[L.data[T].best_plays[e].matchday_id]?this.flagGames.includes(K.game_id)||(this.arrayMatchdays[L.data[T].best_plays[e].matchday_id].push(K),this.flagGames.push(K.game_id)):(this.arrayMatchdays[L.data[T].best_plays[e].matchday_id]=[],this.flagGames.includes(K.game_id)||(this.arrayMatchdays[L.data[T].best_plays[e].matchday_id].push(K),this.flagGames.push(K.game_id))));E=this.arrayMatchdays[this.matchdayView]?this.arrayMatchdays[this.matchdayView].sort((T,e)=>T.date_time-e.date_time):[]}else E=this.arrayMatchdays[this.matchdayView]?this.arrayMatchdays[this.matchdayView].sort((L,T)=>L.date_time-T.date_time):[];this.lastseason=r.season}this.printData=E},obtenerNombreCompletoFecha(r){if(r){const U=new Date(r),E=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][U.getUTCDay()],K=U.getUTCDate(),oe=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][U.getUTCMonth()];return`${E} ${K} de ${oe}`}else return""}},async created(){}},u_=()=>{p.useCssVars(r=>({"2b27292e":r.backgroundColor}))},d_=Av.setup;Av.setup=d_?(r,U)=>(u_(),d_(r,U)):u_;function hF(r,U,E,K,oe,L){const T=p.resolveComponent("GSCThumbnailCategory"),e=p.resolveComponent("GSCThumbnailCategoryTeam"),k=p.resolveComponent("GSCThumbnailCategoryTeamAway"),v=p.resolveComponent("GSCThumbnailHighlightGamePlayer"),n=p.resolveComponent("GSCThumbnailHighlightGameHistoric"),w=p.resolveComponent("GSCThumbnailSummaryPlayer"),b=p.resolveComponent("GSCSlider");return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(r.$style.ptg),ref:"ptgDiv"},[p.createElementVNode("div",{class:p.normalizeClass(L.ptgtitleClass)},p.toDisplayString(E.title),3),p.createVNode(b,{backgroundColor:E.backgroundColor,pxScroll:E.pxScroll,arrows:E.arrows,arrowsScrollHide:E.arrowsScrollHide,arrowsHideOnNoScroll:E.arrowsHideOnNoScroll,arrowsColor:E.arrowsColor,arrowsHeight:E.arrowsWidth,arrowsWidth:E.arrowsWidth,arrowsPadding:E.arrowsPadding,arrowsMargin:E.arrowsMargin,arrowsRadius:E.arrowsRadius,arrowsBorder:E.arrowsBorder,arrowsBackground:E.arrowsBackground,arrowsContainerBgL:E.arrowsContainerBgL,arrowsContainerBgR:E.arrowsContainerBgR,scrollColor:E.scrollColor,arrowsPosition:E.arrowsPosition,height:E.height},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(oe.printData,(c,a)=>(p.openBlock(),p.createElementBlock("div",{key:a,class:p.normalizeClass(L.pgtcontainercardClass),style:p.normalizeStyle(a==0?"margin-left: 0px !important; color: white;":"")},[E.type==2?(p.openBlock(),p.createBlock(T,{key:0,"color-background-home":c.color,"name-player":E.data.player_name,"type-img":"0",background:c.background_action,"name-category":c.player_name,"logo-home":c.team_logo,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:2}),"photo-profile":c.player_action},null,8,["color-background-home","name-player","background","name-category","logo-home","onOnclickPlayVideos","photo-profile"])):E.type==1||E.type==4?(p.openBlock(),p.createBlock(e,{key:1,type:"team","name-team":c.team_name!=null?c.team_name:"","type-style":"category","color-background-home":c.color,"logo-home":c.team_logo,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:3}),background:c.player_action,"name-category":c.player_name},null,8,["name-team","color-background-home","logo-home","onOnclickPlayVideos","background","name-category"])):E.type==5?(p.openBlock(),p.createBlock(k,{key:2,type:"team","name-team":c.team_name!=null?c.team_name:"","type-style":"category","color-background-away":c.color,"logo-home":c.team_logo,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:3}),background:c.player_action,"name-category":c.player_name},null,8,["name-team","color-background-away","logo-home","onOnclickPlayVideos","background","name-category"])):E.type==0?(p.openBlock(),p.createBlock(v,{key:3,items:c,type:2,"name-category":"TODAS SUS JUGADAS","color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"color-font-home":c.colorfont_home,"color-font-away":c.colorfont_away,"logo-home":c.logohome,"logo-away":c.logoaway,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:2,isAllPlays:!0}),background:c.background,date:c.date,"name-home-team":c.hometeamacronym,"name-away-team":c.visitingteamacronym,matchday:c.match,"score-home":c.scorehome,"photo-profile":c.photo_profile,"score-away":c.scoreaway,"season-name":c.seasonname2},null,8,["items","color-background-home","color-background-away","color-font-home","color-font-away","logo-home","logo-away","onOnclickPlayVideos","background","date","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):E.type==6?(p.openBlock(),p.createBlock(n,{key:4,items:c,"color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"logo-home":c.logohome,"logo-away":c.logoaway,background:c.background,"title-category":"GOLES",onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:3,categories:oe.goalCategories}),matchday:c.match,"season-name":c.seasonname,score:c.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):E.type==7?(p.openBlock(),p.createBlock(n,{key:5,items:c,"color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"logo-home":c.logohome,"logo-away":c.logoaway,background:c.background,"title-category":"RESUMEN",onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:3,categories:oe.resumeCategories}),matchday:c.match,"season-name":c.seasonname,score:c.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):E.type==8?(p.openBlock(),p.createBlock(v,{key:6,items:c,type:2,"name-category":"RESUMEN","color-font-home":c.colorfont_home,"color-font-away":c.colorfont_away,"color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"logo-home":c.logohome,"logo-away":c.logoaway,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:2}),background:c.background,"name-home-team":c.hometeamacronym,"name-away-team":c.visitingteamacronym,matchday:c.match,"score-home":c.scorehome,"photo-profile":c.photo_profile,"score-away":c.scoreaway,"season-name":c.seasonname},null,8,["items","color-font-home","color-font-away","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):E.type==9?(p.openBlock(),p.createBlock(v,{key:7,items:c,type:2,"name-category":"RESUMEN","color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"logo-home":c.logohome,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:2}),"logo-away":c.logoaway,background:c.background,"name-home-team":c.hometeamacronym,"name-away-team":c.visitingteamacronym,matchday:c.match,"score-home":c.scorehome,"photo-profile":c.photo_profile,"score-away":c.scoreaway,"season-name":c.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","onOnclickPlayVideos","logo-away","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):E.type==10?(p.openBlock(),p.createBlock(n,{key:8,items:c,"color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"logo-home":c.logohome,"logo-away":c.logoaway,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:1}),background:c.background,"title-category":"RESUMEN",matchday:c.match,"season-name":c.seasonname,score:c.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","matchday","season-name","score"])):E.type==11?(p.openBlock(),p.createBlock(v,{key:9,items:c,type:2,"name-category":"RESUMEN","color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"logo-home":c.logohome,"logo-away":c.logoaway,background:c.background,"name-home-team":c.hometeamacronym,"name-away-team":c.visitingteamacronym,matchday:c.match,"color-font-home":c.colorfont_home,"color-font-away":c.colorfont_away,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:2}),"score-home":c.scorehome,"photo-profile":c.photo_profile,"score-away":c.scoreaway,"season-name":c.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","name-home-team","name-away-team","matchday","color-font-home","color-font-away","onOnclickPlayVideos","score-home","photo-profile","score-away","season-name"])):E.type==12?(p.openBlock(),p.createBlock(v,{key:10,items:c,type:2,"name-category":"RESUMEN","color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"logo-home":c.logohome,"logo-away":c.logoaway,"color-font-home":c.colorfont_home,"color-font-away":c.colorfont_away,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:1}),background:c.background,"name-home-team":c.hometeamacronym,"name-away-team":c.visitingteamacronym,matchday:c.match,"score-home":c.scorehome,"photo-profile":c.photo_profile,"score-away":c.scoreaway,"season-name":c.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","color-font-home","color-font-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):E.type==13?(p.openBlock(),p.createBlock(v,{key:11,items:c,type:2,"name-category":"GOLES","color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"logo-home":c.logohome,"logo-away":c.logoaway,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:1,categories:oe.goalCategories}),background:c.background,"name-home-team":c.hometeamacronym,"name-away-team":c.visitingteamacronym,matchday:c.match,"score-home":c.scorehome,"photo-profile":c.photo_profile,"score-away":c.scoreaway,"season-name":c.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):E.type==14?(p.openBlock(),p.createBlock(v,{key:12,items:c,type:2,"play-status":c.plays_status?c.plays_status:0,"name-category":"GOLES","color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"logo-home":c.logohome,"logo-away":c.logoaway,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:1,categories:oe.goalCategories}),background:c.background,"name-home-team":c.hometeamacronym,"name-away-team":c.visitingteamacronym,matchday:c.match,"score-home":c.scorehome,showimg:!1,"photo-profile":c.photo_profile,"score-away":c.scoreaway,"season-name":c.seasonname},null,8,["items","play-status","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):(p.openBlock(),p.createBlock(w,{key:13,type:"player","color-background-home":c.colorbackgroundhome,"color-background-away":c.colorbackgroundaway,"name-player":c.nameplayer,"type-img":0,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:2}),background:c.background,"name-home-team":c.namehometeam,"name-away-team":c.nameawayteam,"name-category":"RESUMEN","logo-away":c.logoaway,"logo-home":c.logohome,"color-font":c.colorfont,"score-home":c.scorehome,"photo-profile":c.photoprofile,"score-away":c.logoaway,"type-style":"summary"},null,8,["color-background-home","color-background-away","name-player","onOnclickPlayVideos","background","name-home-team","name-away-team","logo-away","logo-home","color-font","score-home","photo-profile","score-away"]))],6))),128))]),_:1},8,["backgroundColor","pxScroll","arrows","arrowsScrollHide","arrowsHideOnNoScroll","arrowsColor","arrowsHeight","arrowsWidth","arrowsPadding","arrowsMargin","arrowsRadius","arrowsBorder","arrowsBackground","arrowsContainerBgL","arrowsContainerBgR","scrollColor","arrowsPosition","height"])],2)}const mF={$style:fF},p_=Jd(Av,[["render",hF],["__cssModules",mF]]),yF=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E},qv={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let r="";return this.arrowsPosition=="absolute"?r="leftAbsolute":r="leftRelative",this.arrowsScrollHide?this.showLeftArrow?r+=" showArrowSlide":r+=" hideArrowSlide":r+=" showArrowSlide",r},hideShowRightArrow(){let r="";return this.arrowsPosition=="absolute"?r="rightAbsolute":r="rightRelative",this.arrowsScrollHide?this.showRightArrow?r+=" showArrowSlide":r+=" hideArrowSlide":r+=" showArrowSlide",r}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let r=0;this.arrowsPosition=="relative"?r=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:r=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,r>0&&(this.$refs.content.scrollLeft==r?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let r;clearTimeout(r),r=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var r=this.$el.clientWidth,U=this.$refs.content.scrollWidth;U>0&&r>0&&(U>r?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},f_=()=>{p.useCssVars(r=>({"42d3dba6":r.backgroundColor,"4de5d2cf":r.height,"67bafa7b":r.arrowsPosition,"61e1032e":r.arrowsPadding+"px","79a4ac00":r.arrowsBackground,"6b8355c6":r.arrowsHeight*2+"px","29a58368":r.arrowsWidth*2+"px","3622fa64":r.arrowsRadius,"1ba101fe":r.arrowsBorder,"0bafb5e6":r.arrowsMargin+"px","423a44b8":r.arrowsContainerBgL,"423a44be":r.arrowsContainerBgR,"10b117ee":r.scrollColor}))},h_=qv.setup;qv.setup=h_?(r,U)=>(f_(),h_(r,U)):f_;const gF={ref:"gscScrollableContainer",class:"scrollable-container"},vF={class:"scrollable-arrows"},bF=["width","height","viewBox"],xF=["stroke"],_F={class:"scrollable-wrapper"},wF={class:"scrollable-arrows"},SF=["width","height","viewBox"],TF=["stroke"];function kF(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",gF,[E.arrows?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(["arrows-container",L.hideShowLeftArrow]),onClick:U[0]||(U[0]=(...T)=>L.scrollLeft&&L.scrollLeft(...T))},[p.createElementVNode("div",vF,[(p.openBlock(),p.createElementBlock("svg",{width:E.arrowsWidth,height:E.arrowsHeight,viewBox:L.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:E.arrowsColor},null,8,xF)],8,bF))])],2)):p.createCommentVNode("",!0),p.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:U[1]||(U[1]=(...T)=>L.getScroll&&L.getScroll(...T))},[p.createElementVNode("div",_F,[p.renderSlot(r.$slots,"default",{},void 0,!0)])],544),E.arrows?(p.openBlock(),p.createElementBlock("div",{key:1,id:"arrows-container-right",class:p.normalizeClass(["arrows-container",L.hideShowRightArrow]),onClick:U[2]||(U[2]=(...T)=>L.scrollRight&&L.scrollRight(...T))},[p.createElementVNode("div",wF,[(p.openBlock(),p.createElementBlock("svg",{width:E.arrowsWidth,height:E.arrowsHeight,viewBox:L.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:E.arrowsColor},null,8,TF)],8,SF))])],2)):p.createCommentVNode("",!0)],512)}const m_=yF(qv,[["render",kF],["__scopeId","data-v-b548a08d"]]),Fv=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E};let y_=null;const CF={components:{GSCInfoGame:w5,GSCPlayerTeamGame:p_,GSCSlider:m_,GSCHighlights:u4},props:{sectionVideos:{type:Boolean,default:!1},config:{type:Object,default:()=>{}}},data(){return{gamesContainerWidth:0}},computed:{},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)},methods:{openmedia(r){this.$emit("openmedia",r)},setUpResizeObserver(){if(window.ResizeObserver)y_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.summaryContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),y_.observe(this.$refs.summaryContainer);else throw new Error("Resize observer not supported!")}}},OF={ref:"summaryContainer",class:"container"},NF={class:"summary-player-container"},LF={class:"summary-player-higthlights"},EF={class:"summary-player-pltega-players"},VF={class:"summary-player-pltega-games"},MF={class:"info-game-general"},UF={class:"info-game-lastgame"},PF={class:"info-game-general"},zF={class:"info-game-lastgame"},RF={key:1,class:"info-game-games-carrousel"};function AF(r,U,E,K,oe,L){const T=p.resolveComponent("GSCHighlights"),e=p.resolveComponent("GSCPlayerTeamGame"),k=p.resolveComponent("GSCInfoGame"),v=p.resolveComponent("GSCSlider");return p.openBlock(),p.createElementBlock("div",OF,[p.createElementVNode("div",NF,[p.createElementVNode("div",LF,[p.createVNode(T,{onOpenmedia:L.openmedia,title:"RESUMEN",data:{player:E.config.player_id,season:E.config.season_id,type:"player"}},null,8,["onOpenmedia","data"])]),p.createElementVNode("div",EF,[p.createVNode(e,{onOpenmedia:L.openmedia,"background-color":"#172531","background-footer":"#183143",style:{"margin-top":"0px"},type:0,title:"100% de sus participaciones en cada partido:",data:{season:E.config.season_id,player:E.config.player_id,team:E.config.team_id},onOnClickVideos:r.onClickVideos,onOnClickCard:r.onClickCard,pxScroll:338,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,36,49,0.1) 0%, rgba(22,36,49,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,36,49,0.1) 0%, rgba(22,36,49,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard"])]),p.createElementVNode("div",VF,[p.createVNode(e,{onOpenmedia:L.openmedia,"background-color":"#172531","background-footer":"#183143",style:{"margin-top":"0px"},type:2,title:"Jugadas especificas:",data:{season:E.config.season_id,player:E.config.player_id,team:E.config.team_id},onOnClickVideos:r.onClickVideos,onOnClickCard:r.onClickCard,pxScroll:336,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,36,49,0.1) 0%, rgba(22,36,49,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,36,49,0.1) 0%, rgba(22,36,49,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard"])]),E.sectionVideos?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(oe.gamesContainerWidth>540?"cont-tables-info-game":"cont-tables-info-game-movil")},[oe.gamesContainerWidth>540?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createElementVNode("div",MF,[p.createVNode(k,{onOpenmedia:L.openmedia,type:0,data:{season:E.config.season_id,player:E.config.player_id,type:E.config.type,position:E.config.player_position,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])]),p.createElementVNode("div",UF,[p.createVNode(k,{onOpenmedia:L.openmedia,type:1,data:{season:E.config.season_id,player:E.config.player_id,type:E.config.type,position:E.config.player_position,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])])],64)):(p.openBlock(),p.createBlock(v,{key:1,backgroundColor:"#172531",pxScroll:200,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:p.withCtx(()=>[p.createElementVNode("div",PF,[p.createVNode(k,{onOpenmedia:L.openmedia,type:0,data:{season:E.config.season_id,player:E.config.player_id,type:E.config.type,position:E.config.player_position,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])]),p.createElementVNode("div",zF,[p.createVNode(k,{onOpenmedia:L.openmedia,type:1,data:{season:E.config.season_id,player:E.config.player_id,type:E.config.type,position:E.config.player_position,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])])]),_:1}))],2)):p.createCommentVNode("",!0),E.sectionVideos?(p.openBlock(),p.createElementBlock("div",RF,[p.createVNode(k,{onOpenmedia:L.openmedia,"background-color":"#172531",type:2,data:{season:E.config.season_id,player:E.config.player_id,type:E.config.type,position:E.config.player_position,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])])):p.createCommentVNode("",!0)])],512)}const qF=Fv(CF,[["render",AF],["__scopeId","data-v-689d8b7b"]]);let g_=null;const FF={components:{GSCInfoGame:w5,GSCPlayerTeamGame:p_,GSCSlider:m_,GSCHighlights:u4},props:{sectionVideos:{type:Boolean,default:!1},config:{type:Object,default:()=>{}}},data(){return{gamesContainerWidth:0}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)},computed:{},methods:{openmedia(r){this.$emit("openmedia",r)},setUpResizeObserver(){if(window.ResizeObserver)g_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.summaryContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),g_.observe(this.$refs.summaryContainer);else throw new Error("Resize observer not supported!")}}},IF={ref:"summaryContainer",class:"container"},jF={class:"summary-player-container"},KF={class:"summary-player-higthlights"},BF={class:"summary-player-pltega-players"},DF={class:"info-game-general"},WF={class:"info-game-lastgame"},GF={class:"info-game-general"},XF={class:"info-game-lastgame"},JF={key:1,class:"info-game-games-carrousel"};function ZF(r,U,E,K,oe,L){const T=p.resolveComponent("GSCHighlights"),e=p.resolveComponent("GSCPlayerTeamGame"),k=p.resolveComponent("GSCInfoGame"),v=p.resolveComponent("GSCSlider");return p.openBlock(),p.createElementBlock("div",IF,[p.createElementVNode("div",jF,[p.createElementVNode("div",KF,[p.createVNode(T,{onOpenmedia:L.openmedia,data:{team:E.config.team_id,season:E.config.season_id,type:"team"}},null,8,["onOpenmedia","data"])]),p.createElementVNode("div",BF,[p.createVNode(e,{onOpenmedia:L.openmedia,"background-color":"#172531","background-footer":"#183143",style:{"margin-top":"0px"},type:1,title:"Jugadas especificas:",data:{season:E.config.season_id,team:E.config.team_id},onOnClickVideos:r.onClickVideos,onOnClickCard:r.onClickCard,pxScroll:338,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,36,49,0.1) 0%, rgba(22,36,49,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,36,49,0.1) 0%, rgba(22,36,49,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard"])]),E.sectionVideos?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(oe.gamesContainerWidth>540?"cont-tables-info-game":"cont-tables-info-game-movil")},[oe.gamesContainerWidth>540?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createElementVNode("div",DF,[p.createVNode(k,{onOpenmedia:L.openmedia,type:0,data:{season:E.config.season_id,type:E.config.type,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])]),p.createElementVNode("div",WF,[p.createVNode(k,{onOpenmedia:L.openmedia,type:1,data:{season:E.config.season_id,type:E.config.type,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])])],64)):(p.openBlock(),p.createBlock(v,{key:1,"background-color":"#172531",pxScroll:200,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:p.withCtx(()=>[p.createElementVNode("div",GF,[p.createVNode(k,{onOpenmedia:L.openmedia,type:0,data:{season:E.config.season_id,type:E.config.type,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])]),p.createElementVNode("div",XF,[p.createVNode(k,{onOpenmedia:L.openmedia,type:1,data:{season:E.config.season_id,type:E.config.type,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])])]),_:1}))],2)):p.createCommentVNode("",!0),E.sectionVideos?(p.openBlock(),p.createElementBlock("div",JF,[p.createVNode(k,{type:2,onOpenmedia:L.openmedia,data:{season:E.config.season_id,type:E.config.type,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])])):p.createCommentVNode("",!0)])],512)}const HF={components:{GSCSummaryPlayer:qF,GSCSummaryTeam:Fv(FF,[["render",ZF],["__scopeId","data-v-06c5261a"]])},props:{sectionVideos:{type:Boolean,default:!1},type:{type:Number,default:0},config:{type:Object,default:()=>{}}},data(){return{}},computed:{},methods:{openmedia(r){this.$emit("openmedia",r)}}},YF={class:"container-summary"};function QF(r,U,E,K,oe,L){const T=p.resolveComponent("GSCSummaryPlayer"),e=p.resolveComponent("GSCSummaryTeam");return p.openBlock(),p.createElementBlock("div",YF,[E.type==0?(p.openBlock(),p.createBlock(T,{key:0,config:E.config,"section-videos":E.sectionVideos,onOpenmedia:L.openmedia},null,8,["config","section-videos","onOpenmedia"])):(p.openBlock(),p.createBlock(e,{key:1,config:E.config,"section-videos":E.sectionVideos,onOpenmedia:L.openmedia},null,8,["config","section-videos","onOpenmedia"]))])}const q1=Fv(HF,[["render",QF],["__scopeId","data-v-edca992e"]]),Kle="",$F={class:"container-section"},v_=vo({__name:"SummaryPlayer",props:{isPlayerProfile:{type:Boolean,default:!0},teamId:{type:Number,default:0},playerId:{type:Number,default:0},mainComponentWidth:{type:Number,default:0}},emits:["openmedia"],setup(r,{emit:U}){const E=r;p.useCssVars(T=>({"52548c03":r.mainComponentWidth}));const K=Ls(),oe=p.ref(!1);p.watch(()=>E.isPlayerProfile,T=>{K.commit("filterGeneral/setIsPlayerAnalysis",T)},{immediate:!0}),p.watch(oe,T=>{K.commit("filterGeneral/setStadisticId",T?0:1)},{immediate:!0}),p.watch(()=>K.state.filterGeneral.stadisticId,()=>{oe.value=K.state.filterGeneral.stadisticId===0},{immediate:!0});function L(T){U("openmedia",T)}return(T,e)=>(p.openBlock(),p.createElementBlock("div",$F,[r.isPlayerProfile?(p.openBlock(),p.createBlock(p.unref(q1),{key:1,"section-videos":!0,type:0,config:{player_id:p.unref(K).state.playersGeneral.player.player_id,season_id:p.unref(K).state.filterGeneral.seasonId,type:1,team_id:r.teamId,player_position:p.unref(K).state.playersGeneral.player.position_id,is_cup:!1,season_name:"Liga MX Apertura 2023"},onOpenmedia:L},null,8,["config"])):(p.openBlock(),p.createBlock(p.unref(q1),{key:0,"section-videos":!0,type:1,config:{season_id:p.unref(K).state.filterGeneral.seasonId,type:2,team_id:p.unref(K).state.filterGeneral.teamId==0?r.teamId:p.unref(K).state.filterGeneral.teamId,player_position:p.unref(K).state.playersGeneral.player.position_id,is_cup:!1,season_name:"Liga MX Apertura 2023"},onOpenmedia:L},null,8,["config"]))]))}},[["__scopeId","data-v-8b14d45c"]]),Dle="",eI={class:"container__body"},tI=p.defineComponent({name:"AllSectionsProfilePlayer",components:{SummaryPlayer:v_}}),nI=vo(Object.assign(tI,{props:{childComponent:{type:String,default:""},isPlayerProfile:{type:Boolean,default:!0},teamId:{type:Number,default:0},mainComponentWidth:{type:Number,default:0}},setup(r){const U=r;return Ls(),p.computed(()=>{const E={"--header-flex-direction":"row","--header-v-separator-height":"16px","--header-v-separator-width":"1px"};return U.mainComponentWidth<750&&(E["--header-flex-direction"]="column",E["--header-v-separator-height"]="1px",E["--header-v-separator-width"]="400px"),E}),(E,K)=>(p.openBlock(),p.createElementBlock("div",eI,[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(r.childComponent)))]))}}),[["__scopeId","data-v-6955e1ac"]]),Gle="",rI={class:"summary-container"},aI=vo({__name:"SummaryContainer",props:{isPlayerProfile:{type:Boolean,default:!0},teamId:{type:Number,default:0},playerId:{type:Number,default:0},mainComponentWidth:{type:Number,default:0}},emits:["openmedia"],setup(r,{emit:U}){const E=r;function K(oe){oe.gameIds&&oe.gameIds.length>0?oe.playListType=1:oe.playListType=E.isPlayerProfile?2:3,U("openmediachalkboard",oe)}return(oe,L)=>(p.openBlock(),p.createElementBlock("div",rI,[p.createVNode(v_,p.mergeProps(E,{onOpenmedia:K}),null,16)]))}},[["__scopeId","data-v-6bf2c6a5"]]),Jle="",b_=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E},F1=r=>(p.pushScopeId("data-v-9ad5f83b"),r=r(),p.popScopeId(),r),oI=F1(()=>p.createElementVNode("span",null,null,-1)),iI=F1(()=>p.createElementVNode("span",null,null,-1)),sI={class:"gsc-thermometer-item__label"},lI=F1(()=>p.createElementVNode("span",null,null,-1)),cI=F1(()=>p.createElementVNode("span",null,null,-1)),uI={key:0},dI={key:0},pI={class:"gsc-thermometer-item__bar-box"},fI={class:"gsc-thermometer-item__value"},hI=p.createStaticVNode('<rect width="21.7" height="21.7" rx="10.85" fill="#CBEE6B" data-v-9ad5f83b></rect><rect x="0.25" y="0.25" width="21.2" height="21.2" rx="10.6" stroke="white" stroke-opacity="0.2" stroke-width="0.5" data-v-9ad5f83b></rect><path fill-rule="evenodd" clip-rule="evenodd" d="M14.4841 14.9607V8.65894V14.9607Z" fill="#979797" data-v-9ad5f83b></path><path d="M14.4841 14.9607V8.65894" stroke="#1D2A35" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" data-v-9ad5f83b></path><path fill-rule="evenodd" clip-rule="evenodd" d="M10.2839 14.9602V5.50757V14.9602Z" fill="#979797" data-v-9ad5f83b></path><path d="M10.2839 14.9602V5.50757" stroke="#1D2A35" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" data-v-9ad5f83b></path><path fill-rule="evenodd" clip-rule="evenodd" d="M6.60938 14.9603V10.7592V14.9603Z" fill="#979797" data-v-9ad5f83b></path><path d="M6.60938 14.9603V10.7592" stroke="#1D2A35" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" data-v-9ad5f83b></path>',8),mI=[hI],yI={__name:"GscThermometerItem",props:{label:{type:String,default:"-"},maxValue:{type:Number,default:0},avgValue:{type:Number,default:0},onIconClick:{type:[Function,void 0],default:void 0},value:{type:Number,default:0},mobileClass:{type:String,default:""},displayButton:{type:Boolean,default:!0},showAVG:{type:Boolean,default:!0},showMAX:{type:Boolean,default:!0},isNegative:{type:Boolean,default:!1}},emits:["clickButton"],setup(r,{emit:U}){const E=r,{value:K,maxValue:oe,onIconClick:L}=p.toRefs(E),T=p.computed(()=>`${Math.min(K.value/oe.value*100,100)}%`);return(e,k)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["gsc-thermometer-item",r.mobileClass])},[oI,iI,p.createElementVNode("div",sI,p.toDisplayString(r.label),1),lI,cI,p.createElementVNode("div",{class:p.normalizeClass(["gsc-thermometer-item__max-value",{small:p.unref(oe)>999}])},[r.showMAX?(p.openBlock(),p.createElementBlock("span",uI,p.toDisplayString(p.unref(oe)),1)):p.createCommentVNode("",!0)],2),p.createElementVNode("div",{class:p.normalizeClass(["gsc-thermometer-item__avg-value",{small:r.avgValue>999}])},[r.showAVG?(p.openBlock(),p.createElementBlock("span",dI,p.toDisplayString(r.avgValue),1)):p.createCommentVNode("",!0)],2),p.createElementVNode("div",pI,[p.createElementVNode("div",{class:p.normalizeClass(r.isNegative?"gsc-thermometer-item__bar-value-negative":"gsc-thermometer-item__bar-value"),style:p.normalizeStyle(`width: ${T.value}`)},null,6)]),p.createElementVNode("div",fI,p.toDisplayString(p.unref(K)),1),r.displayButton?(p.openBlock(),p.createElementBlock("svg",{key:0,style:{cursor:"pointer"},width:"1.375rem",height:"1.375rem",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:k[0]||(k[0]=v=>U("clickButton"))},mI)):p.createCommentVNode("",!0)],2))}},gI=b_(yI,[["__scopeId","data-v-9ad5f83b"]]),x_=r=>(p.pushScopeId("data-v-38134198"),r=r(),p.popScopeId(),r),vI={class:"gsc-thermometer__header"},bI=x_(()=>p.createElementVNode("span",null,"Max",-1)),xI=x_(()=>p.createElementVNode("span",null,"Avg",-1)),_I={key:0,class:"gsc-thermometer__player-img player-img"},wI={class:"player-img__container"},SI=["src"],TI={class:"gsc-thermometer__items"},kI={__name:"GscThermometer",props:{items:{type:Array,default:()=>[{label:"Minutos jugados",maxValue:100,avgValue:888,displayButton:!0,value:50},{label:"Minutos jugados",maxValue:9999,avgValue:9999,onIconClick:void 0,value:75}]},imageUrl:{type:[String,void 0],default:void 0},componentWidth:{type:Number,default:500,validator(r){return r>0}}},emits:["clickButton"],setup(r,{emit:U}){const E=p.toRef(r,"componentWidth"),K=p.computed(()=>E.value<500?"break-point-3":"");return(oe,L)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["gsc-thermometer",K.value])},[p.createElementVNode("div",vI,[bI,xI,r.imageUrl?(p.openBlock(),p.createElementBlock("div",_I,[p.createElementVNode("div",wI,[p.createElementVNode("img",{class:"player-img__photo",src:r.imageUrl,alt:"player-img"},null,8,SI)])])):p.createCommentVNode("",!0)]),p.createElementVNode("div",TI,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.items,(T,e)=>(p.openBlock(),p.createBlock(gI,p.mergeProps({...T,mobileClass:K.value},{onClickButton:k=>U("clickButton",T),key:e}),null,16,["onClickButton"]))),128))])],2))}},Iv=b_(kI,[["__scopeId","data-v-38134198"]]),CI={__name:"GSCRadarChart",props:{title:{type:String,default:""},height:{type:String,default:"100%"},width:{type:String,default:"100%"},backgroundColor:{type:String,default:"#26323C"},fontFamily:{type:String,default:"Roboto"},textColor:{type:String,default:"#fff"},colors:{type:Array,default:()=>["#cbee6b","#0033C5"],required:!1},series:{type:Array,required:!0},labels:{type:Array,required:!0},showLegends:{type:Boolean,default:!1},legends:{type:Array,default:()=>[]},max:{type:[Number,void 0],default:void 0}},setup(r){const U=r,E=p.computed(()=>`
37
+ `+L):K.stack=L}throw K}}_request(U,E){typeof U=="string"?(E=E||{},E.url=U):E=U||{},E=tf(this.defaults,E);const{transitional:K,paramsSerializer:oe,headers:L}=E;K!==void 0&&Nv.assertOptions(K,{silentJSONParsing:fd.transitional(fd.boolean),forcedJSONParsing:fd.transitional(fd.boolean),clarifyTimeoutError:fd.transitional(fd.boolean)},!1),oe!=null&&(Ir.isFunction(oe)?E.paramsSerializer={serialize:oe}:Nv.assertOptions(oe,{encode:fd.function,serialize:fd.function},!0)),E.method=(E.method||this.defaults.method||"get").toLowerCase();let T=L&&Ir.merge(L.common,L[E.method]);L&&Ir.forEach(["delete","get","head","post","put","patch","common"],a=>{delete L[a]}),E.headers=zu.concat(T,L);const e=[];let k=!0;this.interceptors.request.forEach(function(a){typeof a.runWhen=="function"&&a.runWhen(E)===!1||(k=k&&a.synchronous,e.unshift(a.fulfilled,a.rejected))});const v=[];this.interceptors.response.forEach(function(a){v.push(a.fulfilled,a.rejected)});let n,w=0,b;if(!k){const a=[q4.bind(this),void 0];for(a.unshift.apply(a,e),a.push.apply(a,v),b=a.length,n=Promise.resolve(E);w<b;)n=n.then(a[w++],a[w++]);return n}b=e.length;let c=E;for(w=0;w<b;){const a=e[w++],t=e[w++];try{c=a(c)}catch(o){t.call(this,o);break}}try{n=q4.call(this,c)}catch(a){return Promise.reject(a)}for(w=0,b=v.length;w<b;)n=n.then(v[w++],v[w++]);return n}getUri(U){U=tf(this.defaults,U);const E=P4(U.baseURL,U.url);return O4(E,U.params,U.paramsSerializer)}}Ir.forEach(["delete","get","head","options"],function(r){V1.prototype[r]=function(U,E){return this.request(tf(E||{},{method:r,url:U,data:(E||{}).data}))}}),Ir.forEach(["post","put","patch"],function(r){function U(E){return function(K,oe,L){return this.request(tf(L||{},{method:r,headers:E?{"Content-Type":"multipart/form-data"}:{},url:K,data:oe}))}}V1.prototype[r]=U(),V1.prototype[r+"Form"]=U(!0)});const M1=V1,pA=class Gw{constructor(U){if(typeof U!="function")throw new TypeError("executor must be a function.");let E;this.promise=new Promise(function(oe){E=oe});const K=this;this.promise.then(oe=>{if(!K._listeners)return;let L=K._listeners.length;for(;L-- >0;)K._listeners[L](oe);K._listeners=null}),this.promise.then=oe=>{let L;const T=new Promise(e=>{K.subscribe(e),L=e}).then(oe);return T.cancel=function(){K.unsubscribe(L)},T},U(function(oe,L,T){K.reason||(K.reason=new Oh(oe,L,T),E(K.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(U){if(this.reason){U(this.reason);return}this._listeners?this._listeners.push(U):this._listeners=[U]}unsubscribe(U){if(!this._listeners)return;const E=this._listeners.indexOf(U);E!==-1&&this._listeners.splice(E,1)}static source(){let U;return{token:new Gw(function(E){U=E}),cancel:U}}};function fA(r){return function(U){return r.apply(null,U)}}function hA(r){return Ir.isObject(r)&&r.isAxiosError===!0}const Lv={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(Lv).forEach(([r,U])=>{Lv[U]=r});const mA=Lv;function K4(r){const U=new M1(r),E=d4(M1.prototype.request,U);return Ir.extend(E,M1.prototype,U,{allOwnKeys:!0}),Ir.extend(E,U,null,{allOwnKeys:!0}),E.create=function(K){return K4(tf(r,K))},E}const rs=K4(wv);rs.Axios=M1,rs.CanceledError=Oh,rs.CancelToken=pA,rs.isCancel=U4,rs.VERSION=I4,rs.toFormData=N1,rs.AxiosError=So,rs.Cancel=rs.CanceledError,rs.all=function(r){return Promise.all(r)},rs.spread=fA,rs.isAxiosError=hA,rs.mergeConfig=tf,rs.AxiosHeaders=zu,rs.formToJSON=r=>V4(Ir.isHTMLForm(r)?new FormData(r):r),rs.getAdapter=A4.getAdapter,rs.HttpStatusCode=mA,rs.default=rs;const B4=rs,yA=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E},Ev={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let r="";return this.arrowsPosition=="absolute"?r="leftAbsolute":r="leftRelative",this.arrowsScrollHide?this.showLeftArrow?r+=" showArrowSlide":r+=" hideArrowSlide":r+=" showArrowSlide",r},hideShowRightArrow(){let r="";return this.arrowsPosition=="absolute"?r="rightAbsolute":r="rightRelative",this.arrowsScrollHide?this.showRightArrow?r+=" showArrowSlide":r+=" hideArrowSlide":r+=" showArrowSlide",r}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let r=0;this.arrowsPosition=="relative"?r=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:r=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,r>0&&(this.$refs.content.scrollLeft==r?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let r;clearTimeout(r),r=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var r=this.$el.clientWidth,U=this.$refs.content.scrollWidth;U>0&&r>0&&(U>r?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},D4=()=>{p.useCssVars(r=>({"42d3dba6":r.backgroundColor,"4de5d2cf":r.height,"67bafa7b":r.arrowsPosition,"61e1032e":r.arrowsPadding+"px","79a4ac00":r.arrowsBackground,"6b8355c6":r.arrowsHeight*2+"px","29a58368":r.arrowsWidth*2+"px","3622fa64":r.arrowsRadius,"1ba101fe":r.arrowsBorder,"0bafb5e6":r.arrowsMargin+"px","423a44b8":r.arrowsContainerBgL,"423a44be":r.arrowsContainerBgR,"10b117ee":r.scrollColor}))},W4=Ev.setup;Ev.setup=W4?(r,U)=>(D4(),W4(r,U)):D4;const gA={ref:"gscScrollableContainer",class:"scrollable-container"},vA={class:"scrollable-arrows"},bA=["width","height","viewBox"],xA=["stroke"],_A={class:"scrollable-wrapper"},wA={class:"scrollable-arrows"},SA=["width","height","viewBox"],TA=["stroke"];function kA(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",gA,[E.arrows?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(["arrows-container",L.hideShowLeftArrow]),onClick:U[0]||(U[0]=(...T)=>L.scrollLeft&&L.scrollLeft(...T))},[p.createElementVNode("div",vA,[(p.openBlock(),p.createElementBlock("svg",{width:E.arrowsWidth,height:E.arrowsHeight,viewBox:L.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:E.arrowsColor},null,8,xA)],8,bA))])],2)):p.createCommentVNode("",!0),p.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:U[1]||(U[1]=(...T)=>L.getScroll&&L.getScroll(...T))},[p.createElementVNode("div",_A,[p.renderSlot(r.$slots,"default",{},void 0,!0)])],544),E.arrows?(p.openBlock(),p.createElementBlock("div",{key:1,id:"arrows-container-right",class:p.normalizeClass(["arrows-container",L.hideShowRightArrow]),onClick:U[2]||(U[2]=(...T)=>L.scrollRight&&L.scrollRight(...T))},[p.createElementVNode("div",wA,[(p.openBlock(),p.createElementBlock("svg",{width:E.arrowsWidth,height:E.arrowsHeight,viewBox:L.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:E.arrowsColor},null,8,TA)],8,SA))])],2)):p.createCommentVNode("",!0)],512)}const CA=yA(Ev,[["render",kA],["__scopeId","data-v-b548a08d"]]),Jd=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E};let G4=null;const Vv={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const r=this.gamesContainerWidth;return r<=400?"date400":r<=540?"date540":r<=650?"date650":"date"},seasoncontainer(){const r=this.gamesContainerWidth;return r<=400?"season-container400":r<=540?"season-container540":r<=650?"season-container650":"season-container"},matchcontainer(){const r=this.gamesContainerWidth;return r<=400?"match-container400":r<=540?"match-container540":r<=650?"match-container650":"match-container"},containerinfogame(){const r=this.gamesContainerWidth;return r<=400?"container-info-game400":r<=540?"container-info-game540":r<=650?"container-info-game650":"container-info-game"},playbutton(){const r=this.gamesContainerWidth;return r<=400?"play-button400":r<=540?"play-button540":r<=650?"play-button650":"play-button"},baselogo(){const r=this.gamesContainerWidth;return r<=400?"base-logo400":r<=540?"base-logo540":r<=650?"base-logo650":"base-logo"},baselogoright(){const r=this.gamesContainerWidth;return r<=400?"base-logo-right400":r<=540?"base-logo-right540":r<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const r=this.gamesContainerWidth;return r<=400?"thumbnail-highlights400":r<=540?"thumbnail-highlights540":r<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const r=this.gamesContainerWidth;return r<=400?"team-logo400":r<=540?"team-logo540":r<=650?"team-logo650":"team-logo"},logoright(){const r=this.gamesContainerWidth;return r<=400?"logo-right400":r<=540?"logo-right540":r<=650?"logo-right650":"logo-right"},secondline(){const r=this.gamesContainerWidth;return r<=400?"second-line400":r<=540?"second-line540":r<=650?"second-line650":"second-line"},titlename(){const r=this.gamesContainerWidth;return r<=400?"title-name400":r<=540?"title-name540":r<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)G4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),G4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},X4=()=>{p.useCssVars(r=>({d6f07504:r.colorBackgroundHome+"45","6d0848cf":r.colorBackgroundAway+"45","524ee4ec":r.colorBackgroundHome,"524bd2fb":r.colorBackgroundAway}))},J4=Vv.setup;Vv.setup=J4?(r,U)=>(X4(),J4(r,U)):X4;const U1=r=>(p.pushScopeId("data-v-45034b51"),r=r(),p.popScopeId(),r),OA=U1(()=>p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[p.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),NA=[OA],LA=U1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),EA=["src"],VA=U1(()=>p.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),MA=U1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),UA=["src"],PA=["src"],zA={class:"text-container"};function RA(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",{ref:"gamesContainer",class:p.normalizeClass(L.thumbnailhighlights)},[p.createElementVNode("div",{class:p.normalizeClass(L.playbutton),onClick:U[0]||(U[0]=(...T)=>L.onclickPlayVideos&&L.onclickPlayVideos(...T))},NA,2),E.dateGame!=""?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(L.date)},p.toDisplayString(E.dateGame),3)):p.createCommentVNode("",!0),E.matchday!=""&&E.seasonName!=""?(p.openBlock(),p.createElementBlock("div",{key:1,class:p.normalizeClass(L.containerinfogame)},[E.matchday!=""?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(L.matchcontainer)},p.toDisplayString(E.matchday),3)):p.createCommentVNode("",!0),E.seasonName!=""?(p.openBlock(),p.createElementBlock("div",{key:1,class:p.normalizeClass(L.seasoncontainer)},p.toDisplayString(E.seasonName),3)):p.createCommentVNode("",!0)],2)):p.createCommentVNode("",!0),LA,p.createElementVNode("img",{src:E.background,alt:"",class:"bkg-blackwhite position-image"},null,8,EA),p.createElementVNode("div",{class:p.normalizeClass([L.baselogo,"position-image"])},null,2),p.createElementVNode("div",{class:p.normalizeClass(L.baselogoright)},null,2),VA,MA,p.createElementVNode("img",{src:E.logoHome,alt:"",class:p.normalizeClass(L.teamlogo)},null,10,UA),p.createElementVNode("img",{src:E.logoAway,alt:"",class:p.normalizeClass(L.logoright)},null,10,PA),p.createElementVNode("div",zA,[p.createElementVNode("span",{class:p.normalizeClass(L.secondline)},p.toDisplayString(E.score),3),p.createElementVNode("div",{class:p.normalizeClass(L.titlename)},p.toDisplayString(E.titleCategory),3)])],2)}const AA=Jd(Vv,[["render",RA],["__scopeId","data-v-45034b51"]]);let Z4=null;const Mv={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const r=this.gamesContainerWidth;return r<=400?"play-button400":r<=540?"play-button540":r<=650?"play-button650":"play-button"},teamlogo(){const r=this.gamesContainerWidth;return r<=400?"team-logo400":r<=540?"team-logo540":r<=650?"team-logo650":"team-logo"},firstline(){const r=this.gamesContainerWidth;return r<=400?"first-line400":r<=540?"first-line540":r<=650?"first-line650":"first-line"},secondline(){const r=this.gamesContainerWidth;return r<=400?"second-line400":r<=540?"second-line540":r<=650?"second-line650":"second-line"},playerimage(){const r=this.gamesContainerWidth;return r<=400?"player-image400":r<=540?"player-image540":r<=650?"player-image650":"player-image"},thumbnailhighlights(){const r=this.gamesContainerWidth;return r<=400?"thumbnail-highlights400":r<=540?"thumbnail-highlights540":r<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Z4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Z4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},H4=()=>{p.useCssVars(r=>({"46c0698e":r.colorBackgroundHome,"12d9d27a":r.colorBackgroundHome+"36"}))},Y4=Mv.setup;Mv.setup=Y4?(r,U)=>(H4(),Y4(r,U)):H4;const Nh=r=>(p.pushScopeId("data-v-9caaef34"),r=r(),p.popScopeId(),r),qA=Nh(()=>p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[p.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),FA=[qA],IA=Nh(()=>p.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),jA=["src"],KA=Nh(()=>p.createElementVNode("div",{class:"base-logo"},null,-1)),BA=["src"],DA=Nh(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),WA={class:"text-container"},GA={class:"player-image position-image"},XA=["src"],JA=["src"],ZA=["src"],HA=Nh(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function YA(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",{ref:"gamesContainer",class:p.normalizeClass(L.thumbnailhighlights)},[p.createElementVNode("div",{class:p.normalizeClass(L.playbutton),onClick:U[0]||(U[0]=(...T)=>L.onclickPlayVideos&&L.onclickPlayVideos(...T))},FA,2),IA,p.createElementVNode("img",{src:E.background,alt:"",class:"bkg-blackwhite position-image"},null,8,jA),KA,p.createElementVNode("img",{src:E.logoHome,alt:"",class:p.normalizeClass(L.teamlogo)},null,10,BA),DA,p.createElementVNode("div",WA,[p.createElementVNode("span",{class:p.normalizeClass(L.firstline)},p.toDisplayString(E.namePlayer),3),p.createElementVNode("span",{class:p.normalizeClass(L.secondline),style:p.normalizeStyle(E.nameCategory=="Balones recuperados en disputa "?"font-size: 25px":"")},p.toDisplayString(E.nameCategory),7)]),p.createElementVNode("div",GA,[E.typeImg==0?(p.openBlock(),p.createElementBlock("img",{key:0,src:E.photoProfile,class:p.normalizeClass(L.playerimage)},null,10,XA)):p.createCommentVNode("",!0),E.typeImg==1?(p.openBlock(),p.createElementBlock("img",{key:1,src:E.photoProfile,alt:""},null,8,JA)):p.createCommentVNode("",!0),E.typeImg==2?(p.openBlock(),p.createElementBlock("img",{key:2,src:E.photoProfile,class:"img-number"},null,8,ZA)):p.createCommentVNode("",!0)]),HA],2)}const QA=Jd(Mv,[["render",YA],["__scopeId","data-v-9caaef34"]]);let Q4=null;const Uv={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""},nameTeam:{type:String,default:""},nameCategory:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const r=this.gamesContainerWidth;return r<=400?"play-button400":r<=540?"play-button540":r<=650?"play-button650":"play-button"},thumbnailhighlights(){const r=this.gamesContainerWidth;return r<=400?"thumbnail-highlights400":r<=540?"thumbnail-highlights540":r<=650?"thumbnail-highlights650":"thumbnail-highlights"},secondline(){const r=this.gamesContainerWidth;return r<=400?"second-line400":r<=540?"second-line540":r<=650?"second-line650":"second-line"},firstline(){const r=this.gamesContainerWidth;return r<=400?"first-line400":r<=540?"first-line540":r<=650?"first-line650":"first-line"},teamlogo(){const r=this.gamesContainerWidth;return r<=400?"team-logo400":r<=540?"team-logo540":r<=650?"team-logo650":"team-logo"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)Q4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Q4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},$4=()=>{p.useCssVars(r=>({"5536c7dc":r.colorBackgroundHome,"3e449276":r.colorBackgroundHome+"36"}))},e_=Uv.setup;Uv.setup=e_?(r,U)=>($4(),e_(r,U)):$4;const P1=r=>(p.pushScopeId("data-v-ca6c08d9"),r=r(),p.popScopeId(),r),$A=P1(()=>p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[p.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),eq=[$A],tq=P1(()=>p.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),nq=["src"],rq={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo"},aq=["fill"],oq=["id"],iq=["stop-color"],sq=["stop-color"],lq=["src"],cq=P1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),uq={class:"text-container"},dq=P1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function pq(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",{ref:"gamesContainer",class:p.normalizeClass(L.thumbnailhighlights)},[p.createElementVNode("div",{class:p.normalizeClass(L.playbutton),onClick:U[0]||(U[0]=(...T)=>L.onclickPlayVideos&&L.onclickPlayVideos(...T))},eq,2),tq,p.createElementVNode("img",{src:E.background,alt:"",class:"bkg-blackwhite position-image"},null,8,nq),(p.openBlock(),p.createElementBlock("svg",rq,[p.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+E.nameTeam.replaceAll(" ","")+")"},null,8,aq),p.createElementVNode("defs",null,[p.createElementVNode("linearGradient",{id:"paint0_linear_7_"+E.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[p.createElementVNode("stop",{"stop-color":E.colorBackgroundHome},null,8,iq),p.createElementVNode("stop",{offset:"1","stop-color":E.colorBackgroundHome},null,8,sq)],8,oq)])])),p.createElementVNode("img",{class:p.normalizeClass(L.teamlogo),src:E.logoHome,alt:""},null,10,lq),cq,p.createElementVNode("div",uq,[p.createElementVNode("span",{class:p.normalizeClass(L.firstline)},[E.nameTeam!="Local"?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createTextVNode(p.toDisplayString(E.nameTeam),1)],64)):p.createCommentVNode("",!0)],2),p.createElementVNode("div",{class:p.normalizeClass(L.secondline)},p.toDisplayString(E.nameCategory),3)]),dq],2)}const fq=Jd(Uv,[["render",pq],["__scopeId","data-v-ca6c08d9"]]);let t_=null;const Pv={components:{},props:{colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""},nameTeam:{type:String,default:""},nameCategory:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const r=this.gamesContainerWidth;return r<=400?"play-button400":r<=540?"play-button540":r<=650?"play-button650":"play-button"},thumbnailhighlights(){const r=this.gamesContainerWidth;return r<=400?"thumbnail-highlights400":r<=540?"thumbnail-highlights540":r<=650?"thumbnail-highlights650":"thumbnail-highlights"},secondline(){const r=this.gamesContainerWidth;return r<=400?"second-line400":r<=540?"second-line540":r<=650?"second-line650":"second-line"},firstline(){const r=this.gamesContainerWidth;return r<=400?"first-line400":r<=540?"first-line540":r<=650?"first-line650":"first-line"},teamlogo(){const r=this.gamesContainerWidth;return r<=400?"team-logo400":r<=540?"team-logo540":r<=650?"team-logo650":"team-logo"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)t_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),t_.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},n_=()=>{p.useCssVars(r=>({"17b44fa7":r.colorBackgroundHome,f1e257fe:r.colorBackgroundHome+"36"}))},r_=Pv.setup;Pv.setup=r_?(r,U)=>(n_(),r_(r,U)):n_;const z1=r=>(p.pushScopeId("data-v-49b4e56b"),r=r(),p.popScopeId(),r),hq=z1(()=>p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[p.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),mq=[hq],yq=z1(()=>p.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),gq=["src"],vq={width:"275",height:"125",viewBox:"0 0 275 125",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"base-logo-away"},bq=["fill"],xq=["id"],_q=["stop-color"],wq=["stop-color"],Sq=["src"],Tq=z1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),kq={class:"text-container"},Cq=z1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1));function Oq(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",{ref:"gamesContainer",class:p.normalizeClass(L.thumbnailhighlights)},[p.createElementVNode("div",{class:p.normalizeClass(L.playbutton),onClick:U[0]||(U[0]=(...T)=>L.onclickPlayVideos&&L.onclickPlayVideos(...T))},mq,2),yq,p.createElementVNode("img",{src:E.background,alt:"",class:"bkg-blackwhite position-image"},null,8,gq),(p.openBlock(),p.createElementBlock("svg",vq,[p.createElementVNode("path",{d:"M274.641 124.094L0 0.675049V124.094H274.641Z",fill:"url(#paint0_linear_7_"+E.nameTeam.replaceAll(" ","")+")"},null,8,bq),p.createElementVNode("defs",null,[p.createElementVNode("linearGradient",{id:"paint0_linear_7_"+E.nameTeam.replaceAll(" ",""),x1:"58.6578",y1:"15.5938",x2:"58.6578",y2:"124.094",gradientUnits:"userSpaceOnUse"},[p.createElementVNode("stop",{"stop-color":E.colorBackgroundAway},null,8,_q),p.createElementVNode("stop",{offset:"1","stop-color":E.colorBackgroundAway},null,8,wq)],8,xq)])])),p.createElementVNode("img",{class:p.normalizeClass(L.teamlogo),src:E.logoHome,alt:""},null,10,Sq),Tq,p.createElementVNode("div",kq,[p.createElementVNode("span",{class:p.normalizeClass(L.firstline)},[E.nameTeam!="Away"?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createTextVNode(p.toDisplayString(E.nameTeam),1)],64)):p.createCommentVNode("",!0)],2),p.createElementVNode("div",{class:p.normalizeClass(L.secondline)},p.toDisplayString(E.nameCategory),3)]),Cq],2)}const Nq=Jd(Pv,[["render",Oq],["__scopeId","data-v-49b4e56b"]]);let a_=null;const zv={components:{},props:{colorFontHome:{type:String,default:"#000000"},colorFontAway:{type:String,default:"#000000"},type:{type:Number,default:0},playStatus:{type:Number,default:2},matchday:{type:String,default:""},seasonName:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},showimg:{type:Boolean,default:!0},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},date:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{seasoncontainer(){const r=this.gamesContainerWidth;return r<=400?"season-container400":r<=540?"season-container540":r<=650?"season-container650":"season-container"},matchcontainer(){const r=this.gamesContainerWidth;return r<=400?"match-container400":r<=540?"match-container540":r<=650?"match-container650":"match-container"},seasonnameContainer(){const r=this.gamesContainerWidth;return r<=400?"seasonname400":r<=540?"seasonname540":r<=650?"seasonname650":"seasonname"},matchboxContainer(){const r=this.gamesContainerWidth;return r<=400?"matchbox400":r<=540?"matchbox540":r<=650?"matchbox650":"matchbox"},containerinfogame(){const r=this.gamesContainerWidth;return r<=400?"container-info-game400":r<=540?"container-info-game540":r<=650?"container-info-game650":"container-info-game"},playbutton(){const r=this.gamesContainerWidth;return r<=400?"play-button400":r<=540?"play-button540":r<=650?"play-button650":"play-button"},points(){const r=this.gamesContainerWidth;return r<=400?"points400":r<=540?"points540":r<=650?"points650":"points"},teamname(){const r=this.gamesContainerWidth;return r<=400?"team-name400":r<=540?"team-name540":r<=650?"team-name650":"team-name"},teamscore(){const r=this.gamesContainerWidth;return r<=400?"team-score400":r<=540?"team-score540":r<=650?"team-score650":"team-score"},teamlogo(){const r=this.gamesContainerWidth;return r<=400?"team-logo400":r<=540?"team-logo540":r<=650?"team-logo650":"team-logo"},hometeam(){const r=this.gamesContainerWidth;return r<=400?"home-team400":r<=540?"home-team540":r<=650?"home-team650":"home-team"},awayteam(){const r=this.gamesContainerWidth;return r<=400?"away-team400":r<=540?"away-team540":r<=650?"away-team650":"away-team"},texttitle(){const r=this.gamesContainerWidth;return r<=400?"text-title400":r<=540?"text-title540":r<=650?"text-title650":"text-title"},texttitle2(){const r=this.gamesContainerWidth;return r<=400?"text-title2400":r<=540?"text-title2540":r<=650?"text-title2650":"text-title2"},playerimage(){const r=this.gamesContainerWidth;return r<=400?"player-image400":r<=540?"player-image540":r<=650?"player-image650":"player-image"},thumbnailhighlights(){const r=this.gamesContainerWidth;return r<=400?"thumbnail-highlights400":r<=540?"thumbnail-highlights540":r<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)a_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),a_.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},o_=()=>{p.useCssVars(r=>({"2144ee44":r.colorBackgroundHome,"2141dc53":r.colorBackgroundAway,"799a5d9c":r.colorBackgroundAway+"62",bdcc60f8:r.colorBackgroundHome+"36"}))},i_=zv.setup;zv.setup=i_?(r,U)=>(o_(),i_(r,U)):o_;const R1=r=>(p.pushScopeId("data-v-4280c69f"),r=r(),p.popScopeId(),r),Lq=["width","src"],Eq=R1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),Vq=R1(()=>p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[p.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Mq=[Vq],Uq={class:"player-container"},Pq=["src"],zq=["src"],Rq=["src"],Aq={class:"container-score"},qq=["src"],Fq=["src"],Iq=["src"],jq=R1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),Kq=R1(()=>p.createElementVNode("div",{class:"gradient-color"},null,-1));function Bq(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",{ref:"gamesContainer",class:p.normalizeClass(L.thumbnailhighlights)},[E.playStatus!=2?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass((E.playStatus==1,"icon-thumb"))},[p.createElementVNode("img",{width:E.playStatus==1?60:40,src:E.playStatus==1?"http://golstatsimages.blob.core.windows.net/images-library/icn-live@2x.png":"http://golstatsimages.blob.core.windows.net/images-library/icn-info@2x.png"},null,8,Lq)],2)):p.createCommentVNode("",!0),Eq,p.createElementVNode("div",{class:p.normalizeClass(L.playbutton),onClick:U[0]||(U[0]=(...T)=>L.onclickPlayVideos&&L.onclickPlayVideos(...T))},Mq,2),p.createElementVNode("div",Uq,[p.createElementVNode("div",{class:p.normalizeClass(L.containerinfogame)},[p.createElementVNode("div",{class:p.normalizeClass(L.matchcontainer)},[p.createElementVNode("div",{class:p.normalizeClass(L.matchboxContainer)},p.toDisplayString(E.matchday),3),p.createElementVNode("div",{class:p.normalizeClass(L.seasonnameContainer)},p.toDisplayString(E.seasonName),3)],2),p.createElementVNode("div",{class:p.normalizeClass(L.seasoncontainer)},p.toDisplayString(E.date),3)],2),E.type==0?(p.openBlock(),p.createElementBlock("span",{key:0,class:p.normalizeClass(L.texttitle)},p.toDisplayString(E.nameCategory),3)):(p.openBlock(),p.createElementBlock("span",{key:1,class:p.normalizeClass(L.texttitle2)},p.toDisplayString(E.nameCategory),3)),E.showimg?(p.openBlock(),p.createElementBlock(p.Fragment,{key:2},[E.typeImg==0?(p.openBlock(),p.createElementBlock("img",{key:0,src:E.photoProfile,class:p.normalizeClass(L.playerimage)},null,10,Pq)):p.createCommentVNode("",!0),E.typeImg==1?(p.openBlock(),p.createElementBlock("img",{key:1,src:E.photoProfile,alt:""},null,8,zq)):p.createCommentVNode("",!0),E.typeImg==2?(p.openBlock(),p.createElementBlock("img",{key:2,src:E.photoProfile,class:"img-number"},null,8,Rq)):p.createCommentVNode("",!0)],64)):p.createCommentVNode("",!0),p.createElementVNode("div",Aq,[p.createElementVNode("div",{class:p.normalizeClass(L.hometeam)},[p.createElementVNode("span",{class:p.normalizeClass(L.teamname),style:p.normalizeStyle({color:E.colorFontAway})},p.toDisplayString(E.nameHomeTeam),7),p.createElementVNode("img",{src:E.logoHome,alt:"",class:p.normalizeClass(L.teamlogo)},null,10,qq),p.createElementVNode("span",{class:p.normalizeClass(L.teamscore)},p.toDisplayString(E.scoreHome),3)],2),p.createElementVNode("span",{class:p.normalizeClass(L.points)},":",2),p.createElementVNode("div",{class:p.normalizeClass(L.awayteam)},[p.createElementVNode("span",{class:p.normalizeClass(L.teamscore)},p.toDisplayString(E.scoreAway),3),p.createElementVNode("img",{src:E.logoAway,alt:"",class:p.normalizeClass(L.teamlogo)},null,10,Fq),p.createElementVNode("span",{class:p.normalizeClass(L.teamname),style:p.normalizeStyle({color:E.colorFontAway})},p.toDisplayString(E.nameAwayTeam),7)],2)])]),p.createElementVNode("img",{src:E.background,alt:"",class:"bkg-blackwhite position-image"},null,8,Iq),jq,Kq],2)}const Dq=Jd(zv,[["render",Bq],["__scopeId","data-v-4280c69f"]]);let s_=null;const Rv={components:{},props:{colorFont:{type:String,default:"#000000"},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const r=this.gamesContainerWidth;return r<=400?"play-button400":r<=540?"play-button540":r<=650?"play-button650":"play-button"},firstline(){const r=this.gamesContainerWidth;return r<=400?"first-line400":r<=540?"first-line540":r<=650?"first-line650":"first-line"},secondline(){const r=this.gamesContainerWidth;return r<=400?"second-line400":r<=540?"second-line540":r<=650?"second-line650":"second-line"},playername(){const r=this.gamesContainerWidth;return r<=400?"player-name400":r<=540?"player-name540":r<=650?"player-name650":"player-name"},playerimage(){const r=this.gamesContainerWidth;return r<=400?"player-image400":r<=540?"player-image540":r<=650?"player-image650":"player-image"},thumbnailhighlights(){const r=this.gamesContainerWidth;return r<=400?"thumbnail-highlights400":r<=540?"thumbnail-highlights540":r<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)s_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),s_.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},l_=()=>{p.useCssVars(r=>({"7f6829cd":r.colorBackgroundHome+"30","1ad47d61":r.colorBackgroundHome}))},c_=Rv.setup;Rv.setup=c_?(r,U)=>(l_(),c_(r,U)):l_;const A1=r=>(p.pushScopeId("data-v-cc315132"),r=r(),p.popScopeId(),r),Wq=A1(()=>p.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[p.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),Gq=[Wq],Xq={class:"player-image position-image"},Jq=["src"],Zq=["src"],Hq=["src"],Yq=["src"],Qq=A1(()=>p.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),$q=["src"],eF=A1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),tF={class:"text-container"},nF=A1(()=>p.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),rF={class:"base-logo",width:"91",height:"216",viewBox:"0 0 91 216",fill:"none",xmlns:"http://www.w3.org/2000/svg"},aF=["fill"];function oF(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",{ref:"gamesContainer",class:p.normalizeClass(L.thumbnailhighlights)},[p.createElementVNode("div",{class:p.normalizeClass(L.playbutton),onClick:U[0]||(U[0]=(...T)=>L.onclickPlayVideos&&L.onclickPlayVideos(...T))},Gq,2),p.createElementVNode("div",Xq,[E.typeImg==0?(p.openBlock(),p.createElementBlock("img",{key:0,src:E.photoProfile,class:p.normalizeClass(L.playerimage)},null,10,Jq)):p.createCommentVNode("",!0),E.typeImg==1?(p.openBlock(),p.createElementBlock("img",{key:1,src:E.photoProfile,alt:""},null,8,Zq)):p.createCommentVNode("",!0),E.typeImg==2?(p.openBlock(),p.createElementBlock("img",{key:2,src:E.photoProfile,class:"img-number"},null,8,Hq)):p.createCommentVNode("",!0)]),p.createElementVNode("img",{src:E.logoHome,alt:"",class:"team-logo"},null,8,Yq),Qq,p.createElementVNode("img",{src:E.background,alt:"",class:"bkg-blackwhite position-image"},null,8,$q),eF,p.createElementVNode("div",tF,[p.createElementVNode("span",{class:p.normalizeClass(L.firstline)},"MEJORES JUGADAS",2),p.createElementVNode("span",{class:p.normalizeClass(L.secondline)},p.toDisplayString(E.nameCategory),3),p.createElementVNode("div",{class:p.normalizeClass(L.playername),style:p.normalizeStyle({color:E.colorFont})},p.toDisplayString(E.namePlayer),7)]),nF,(p.openBlock(),p.createElementBlock("svg",rF,[p.createElementVNode("path",{d:"M91.5 216L0 -0.5H91.5V216Z",fill:E.colorBackgroundHome},null,8,aF)]))],2)}const iF=Jd(Rv,[["render",oF],["__scopeId","data-v-cc315132"]]);function sF(r){const U=p.ref({width:0,height:0});function E(){const K=r.value.getBoundingClientRect();U.value.width=K.width,U.value.height=K.height}return p.onMounted(()=>{E(),window.addEventListener("resize",E)}),p.onUnmounted(()=>{window.removeEventListener("resize",E)}),{elementSize:U}}const lF="_ptg_lp0fw_5",cF="_ptgtitle_lp0fw_15",uF="_ptgtitle450_lp0fw_47",dF="_pgtcontainercard_lp0fw_79",pF="_pgtcontainercard350_lp0fw_89",fF={ptg:lF,ptgtitle:cF,ptgtitle450:uF,pgtcontainercard:dF,pgtcontainercard350:pF},Av={components:{GSCSlider:CA,GSCThumbnailCategory:QA,GSCThumbnailCategoryTeam:fq,GSCThumbnailCategoryTeamAway:Nq,GSCThumbnailHighlightGamePlayer:Dq,GSCThumbnailSummaryPlayer:iF,GSCThumbnailHighlightGameHistoric:AA},setup(){const r=p.ref("ptgDiv"),{elementSize:U}=sF(r);return{ptgDiv:r,elementSize:U}},props:{title:{type:String,default:"100% de sus participaciones en cada partido:"},type:{type:Number,default:0},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0D1D29"},backgroundFooter:{type:String,default:"#192733"},matchdayView:{type:Number,default:1},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsScrollHide:{type:Boolean,default:!1},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",printData:[],teamsInfo:[],playerPhoto:!0,homeTeam:0,flagGames:[],lastseason:0,arrayMatchdays:[],awayTeam:0,goalCategories:[12,55,"35_r","54_r"],resumeCategories:[607,608,12,55,54,35,14,52,15,53,466,477]}},watch:{data:{immediate:!0,handler(r){this.type!=14&&this.getTeamsInfo(r),this.getStats(r)}}},computed:{ptgtitleClass(){return this.elementSize.width<=450?this.$style.ptgtitle450:this.$style.ptgtitle},pgtcontainercardClass(){return this.elementSize.width<=350?this.$style.pgtcontainercard350:this.$style.pgtcontainercard}},methods:{onclickPlayVideos(r){let U=[],E=r.data.game_id?[r.data.game_id]:null;r.type==2?r.data.position_id==1?r.data.category==0?U=r.isAllPlays?[14,52,15,53,300,301,308,309,310,311,304,305,306,307,260,261,312,265,266,267,268,313,314,43,324,323,478,479,480,481,474,475,476,477,40,26,325,16,51,462,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,262,263]:[42,55,324,323,608,39,774,802,52,53,40,54]:U=r.data.category:r.data.category==0?U=r.isAllPlays?[56,57,59,60,326,213,214,215,216,583,584,122,123,124,125,585,586,128,129,130,131,133,327,587,588,136,137,138,139,589,590,142,143,144,145,146,147,485,486,487,488,489,490,491,492,10,27,597,598,538,539,599,600,541,542,601,602,545,546,603,604,548,549,561,562,100,563,564,103,104,105,106,107,108,565,566,111,567,568,114,115,116,117,118,119,4,88,5,34,402,459,460,461,233,403,456,457,458,236,404,453,454,455,240,405,450,451,452,243,408,447,448,449,283,409,444,445,446,285,410,441,442,443,290,411,438,439,440,292,412,435,436,437,297,414,415,416,417,244,418,419,420,421,401,581,582,331,506,530,579,580,334,507,531,577,578,344,508,532,575,576,424,509,533,573,574,341,529,534,571,572,340,528,535,569,570,427,527,536,348,349,350,465,352,353,354,466,14,52,15,53,218,219,220,221,496,497,498,499,500,501,502,503,217,504,505,521,522,543,33,209,208,517,206,207,26,325,16,51,463,151,154,156,591,592,159,162,163,429,165,593,594,168,171,172,430,174,595,596,177,180,181,431,467,358,361,363,366,369,370,469,372,376,378,379,470,381,385,387,388,471,607,608,210,212]:[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]:U=r.data.category:r.type==3?r.data.category==0?U=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:U=r.data.category:r.data.category!=0?U=r.data.category:U=[607,608,12,55,54,35,14,52,15,53,466,477],this.data.isPrematch===1&&(E=null);const K=[1,2,3];let oe={type:r.data.plays_status==0||!r.data.plays_status?0:1,seasonId:r.data.season_id,mainSectionType:1,playListType:r.type,categoryIds:r.categories&&r.categories.length?r.categories:U,gameIds:E,playerIds:r.data.player_id?[r.data.player_id]:[],goalkeeperIds:r.data.position_id==1?r.data.player_id?[r.data.player_id]:[]:[],teamId:r.data.team_id?r.data.team_id:0,matchResult:r.data.matchResult?[r.matchResult]:K,playData:{},advancedFilter:{playListTitle:""}};r.data.category!==0&&(oe.advancedFilter.mainCategoryId=r.data.category),this.$emit("openmedia",oe)},onClickVideos(r){this.$emit("onClickVideos",r)},onClickCard(r){this.$emit("onClickCard",r)},async getTeamsInfo(r){const U=await B4.create({headers:{Authorization:`${this.token}`}}).get("https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/"+r.season);for(let E=0;E<U.data.teams.length;E++)this.teamsInfo[U.data.teams[E].team_id]=U.data.teams[E]},async getStats(r){const U=B4.create({headers:{Authorization:`${this.token}`}});var E=[],K={},oe={};if(this.type==0){oe=await U.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+r.season+"/"+r.player);for(let L=0;L<oe.data.seasons[r.season].games_played.length;L++)K={player_id:r.player,color:oe.data.info_thumbnails.colors.background_color,colorfont:oe.data.info_thumbnails.colors.font_color,photo_profile:oe.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.info_thumbnails.images.player_in_action[0]:"https://az755631.vo.msecnd.net/players-profile/"+r.player+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games_played[L].home_team+".png",player_name:oe.data.seasons[r.season].games_played[L].home_team_acronym+" "+oe.data.seasons[r.season].games_played[L].home_team_score+" : "+oe.data.seasons[r.season].games_played[L].visiting_team_score+" "+oe.data.seasons[r.season].games_played[L].visiting_team_acronym,team_id:oe.data.seasons[r.season].games_played[L].game_id,team_id_b:oe.data.seasons[r.season].games_played[L].home_team,season_id:oe.data.seasons[r.season].games_played[L].season_id,name:"",date:this.obtenerNombreCompletoFecha(oe.data.seasons[r.season].games_played[L].date),category:0,team_id:oe.data.team_id,game_id:oe.data.seasons[r.season].games_played[L].game_id,position_id:oe.data.position_id,scorehome:oe.data.seasons[r.season].games_played[L].home_team_score,scoreaway:oe.data.seasons[r.season].games_played[L].visiting_team_score,hometeamacronym:oe.data.seasons[r.season].games_played[L].home_team_acronym,visitingteamacronym:oe.data.seasons[r.season].games_played[L].visiting_team_acronym,seasonname:oe.data.seasons[r.season].name,seasonname2:oe.data.seasons[r.season].name.replace("Clausura","CL ").replace("Apertura","AP "),match:oe.data.seasons[r.season].games_played[L].matchday_name.replace("Matchday","JOR").replace("de Final","").replace("Playoffs 1","CFI").replace("Playoffs 2","CFV").replace("Playoffs 3","SFI").replace("Playoffs 4","SFV").replace("Playoffs 5","FI").replace("Playoffs 6","FV"),score:oe.data.seasons[r.season].games_played[L].home_team_score+" : "+oe.data.seasons[r.season].games_played[L].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:oe.data.seasons[r.season].games_played[L].info_thumbnails.home_colors.background_color,backgroundaway:oe.data.seasons[r.season].games_played[L].info_thumbnails.away_colors.background_color,colorfont_home:oe.data.seasons[r.season].games_played[L].info_thumbnails.home_colors.font_color,colorfont_away:oe.data.seasons[r.season].games_played[L].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games_played[L].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.seasons[r.season].games_played[L].visiting_team+".png",total:oe.data.seasons[r.season].games_played[L].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+oe.data.seasons[r.season].games_played[L].home_team+"_"+oe.data.seasons[r.season].games_played[L].season_id+"_r1.jpg"},E.push(K)}if(this.type==1){oe=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/teams/"+r.team);for(let L=0;L<oe.data.categories.length;L++){this.playerPhoto=!1;const T=Math.floor(Math.random()*oe.data.categories[L].info_thumbnails.images.background_default_categories.length),e=Math.floor(Math.random()*oe.data.categories[L].info_thumbnails.images.background_default_teams.length);K={player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.categories[L].info_thumbnails.images.background_default_categories[T],background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.categories[L].info_thumbnails.images.background_default_teams[e],color:oe.data.categories[L].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+oe.data.categories[L].info_thumbnails.team_logo,player_name:oe.data.categories[L].category_name,team_name:this.teamsInfo[oe.data.team_id].colloquial_name,team_id:oe.data.team_id,colorfont:oe.data.categories[L].info_thumbnails.colors.font_color,team_id_b:oe.data.team_id,category:oe.data.categories[L].categories,season_id:oe.data.season_id,total:oe.data.categories[L].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+oe.data.team_id+"_"+oe.data.season_id+"_r1.jpg"},E.push(K)}}if(this.type==2){oe=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/players/"+r.player);for(let L=0;L<oe.data.categories.length;L++){this.playerPhoto=!1;const T=Math.floor(Math.random()*oe.data.categories[L].info_thumbnails.images.player_in_action.length),e=Math.floor(Math.random()*oe.data.categories[L].info_thumbnails.images.background_default_categories.length);K={player_action:oe.data.categories[L].info_thumbnails.images.player_in_action[T]?"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.categories[L].info_thumbnails.images.player_in_action[T]:"https://az755631.vo.msecnd.net/players-profile/"+r.player+".png",background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.categories[L].info_thumbnails.images.background_default_categories[e],color:oe.data.categories[L].info_thumbnails.colors.background_color,team_logo:"https://az755631.vo.msecnd.net/teams-80/"+oe.data.categories[L].info_thumbnails.team_logo,player_name:oe.data.categories[L].category_name,season_id:r.season,colorfont:oe.data.categories[L].info_thumbnails.colors.font_color,player_id:r.player,team_id:oe.data.categories[L].info_thumbnails.colors.team_id,category:oe.data.categories[L].categories,total:oe.data.categories[L].total,background_card:"https://az755631.vo.msecnd.net/players-profile/"+r.player+".png"},E.push(K)}}if(this.type==3){this.playerPhoto=!1,oe=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/games/"+r.game);for(let L=0;L<oe.data.games[0].players.length;L++){const T=Math.floor(Math.random()*oe.data.games[0].players[L].info_thumbnails.images.background_player_in_action.length),e=Math.floor(Math.random()*oe.data.games[0].players[L].info_thumbnails.images.player_in_action.length);K={colorbackgroundhome:oe.data.games[0].players[L].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:oe.data.games[0].players[L].player_name,background:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.games[0].players[L].info_thumbnails.images.background_player_in_action[T],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",category:0,colorfont:oe.data.games[0].players[L].info_thumbnails.colors.font_color,team_id:oe.data.games[0].players[L].team_id,player_id:oe.data.games[0].players[L].player_id,game_id:oe.data.games[0].game_id,season_id:oe.data.season_id,logohome:oe.data.games[0].players[L].team_logo,photoprofile:oe.data.games[0].players[L].info_thumbnails.images.player_in_action[e]?"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.games[0].players[L].info_thumbnails.images.player_in_action[e]:"https://az755631.vo.msecnd.net/players-profile/"+oe.data.games[0].players[L].player_id+".png",logoaway:"",scoreaway:"",scorehome:""},E.push(K)}}if(this.type==4){this.playerPhoto=!1,oe=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+r.season+"/games/"+r.game);for(let L=0;L<oe.data.home_team.categories.length;L++){const T=Math.floor(Math.random()*oe.data.home_team.categories[L].info_thumbnails.images.background_default_teams.length);K={game_id:oe.data.game_id,season_id:oe.data.season_id,team_id:oe.data.home_team.team_id,category:oe.data.home_team.categories[L].categories.concat(oe.data.home_team.categories[L].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.home_team.categories[L].info_thumbnails.images.background_default_categories[T],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.home_team.categories[L].info_thumbnails.images.background_default_categories[T],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.home_team.team_id+".png",color:oe.data.home_team.categories[L].info_thumbnails.colors.background_color,colorfont:oe.data.home_team.categories[L].info_thumbnails.colors.font_color,player_name:oe.data.home_team.categories[L].category_name,total:oe.data.home_team.categories[L].total,team_name:"Local",background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+oe.data.home_team.team_id+"_"+oe.data.season_id+"_r1.jpg"},E.push(K)}}if(this.type==5){this.playerPhoto=!1,oe=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/specifics-plays/seasons/"+r.season+"/games/"+r.game);for(let L=0;L<oe.data.visiting_team.categories.length;L++){const T=Math.floor(Math.random()*oe.data.visiting_team.categories[L].info_thumbnails.images.background_default_categories.length);K={game_id:oe.data.game_id,season_id:oe.data.season_id,team_id:oe.data.visiting_team.team_id,category:oe.data.visiting_team.categories[L].categories.concat(oe.data.visiting_team.categories[L].rival_categories),background_action:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.visiting_team.categories[L].info_thumbnails.images.background_default_categories[T],player_action:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.visiting_team.categories[L].info_thumbnails.images.background_default_categories[T],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.visiting_team.team_id+".png",team_name:"Away",color:oe.data.visiting_team.categories[L].info_thumbnails.colors.background_color,colorfont:oe.data.visiting_team.categories[L].info_thumbnails.colors.font_color,player_name:oe.data.visiting_team.categories[L].category_name,total:oe.data.visiting_team.categories[L].total,background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+oe.data.visiting_team.team_id+"_"+oe.data.season_id+"_r1.jpg"},E.push(K)}}if(this.type==6){oe=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/teams/"+r.team+"/categories/"+r.category);for(let L=0;L<oe.data.best_plays.length;L++)K={category:oe.data.best_plays[L].categories,team_id:oe.data.team_id,game_id:oe.data.best_plays[L].game_id,season_id:oe.data.season_id,backgroundhome:oe.data.best_plays[L].info_thumbnails.home_colors.background_color,backgroundaway:oe.data.best_plays[L].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.best_plays[L].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.best_plays[L].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.best_plays[L].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:oe.data.best_plays[L].score[0]+" : "+oe.data.best_plays[L].score[1]},E.push(K)}if(this.type==7){oe=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/teams/"+r.team+"/categories/"+r.category);for(let L=0;L<oe.data.best_plays.length;L++)K={category:oe.data.best_plays[L].categories,team_id:oe.data.team_id,game_id:oe.data.best_plays[L].game_id,season_id:oe.data.season_id,backgroundhome:oe.data.best_plays[L].info_thumbnails.home_colors.background_color,colorfont_home:oe.data.best_plays[L].info_thumbnails.home_colors.font_color,colorfont_away:oe.data.best_plays[L].info_thumbnails.away_colors.font_color,backgroundaway:oe.data.best_plays[L].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.best_plays[L].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.best_plays[L].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.best_plays[L].info_thumbnails.images.background_default_categories[0],match:"",seasonname:"",score:oe.data.best_plays[L].score[0]+" : "+oe.data.best_plays[L].score[1]},E.push(K)}if(this.type==8){oe=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/players/"+r.player+"/categories/"+r.category);for(let L=0;L<oe.data.best_plays.length;L++)K={category:oe.data.best_plays[L].categories,team_id:oe.data.team_id,game_id:oe.data.best_plays[L].game_id,season_id:oe.data.season_id,player_id:oe.data.player_id,backgroundhome:oe.data.best_plays[L].info_thumbnails.home_colors.background_color,backgroundaway:oe.data.best_plays[L].info_thumbnails.away_colors.background_color,colorfont_home:oe.data.best_plays[L].info_thumbnails.home_colors.font_color,colorfont_away:oe.data.best_plays[L].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.best_plays[L].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.best_plays[L].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.best_plays[L].info_thumbnails.images.background_default_categories[0],match:"",scorehome:oe.data.best_plays[L].score[0],scoreaway:oe.data.best_plays[L].score[1],photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+oe.data.best_plays[L].info_thumbnails.player_logo,hometeamacronym:oe.data.best_plays[L].home_team_acronym,visitingteamacronym:oe.data.best_plays[L].away_team_acronym,seasonname:"",score:oe.data.best_plays[L].score[0]+" : "+oe.data.best_plays[L].score[1]},E.push(K)}if(this.type==9){oe=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/players/"+r.player+"/categories/"+r.category);for(let L=0;L<oe.data.best_plays.length;L++)K={category:oe.data.best_plays[L].categories,team_id:oe.data.team_id,player_id:oe.data.player_id,game_id:oe.data.best_plays[L].game_id,season_id:oe.data.season_id,backgroundhome:oe.data.best_plays[L].info_thumbnails.home_colors.background_color,backgroundaway:oe.data.best_plays[L].info_thumbnails.away_colors.background_color,colorfont_home:oe.data.best_plays[L].info_thumbnails.home_colors.font_color,colorfont_away:oe.data.best_plays[L].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.best_plays[L].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+oe.data.best_plays[L].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+oe.data.best_plays[L].info_thumbnails.images.background_default_categories[0],match:"",scorehome:oe.data.best_plays[L].score[0],scoreaway:oe.data.best_plays[L].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+oe.data.best_plays[L].info_thumbnails.player_logo,score:oe.data.best_plays[L].score[0]+" : "+oe.data.best_plays[L].score[1]},E.push(K)}if(this.type==10){const L=await U.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+r.team);for(let T=0;T<L.data.seasons[r.season].games.length;T++){const e=Math.floor(Math.random()*L.data.seasons[r.season].games[T].info_thumbnails.images.background_default_games.length);K={photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[r.season].games[T].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[r.season].games[T].home_team+".png",player_name:L.data.seasons[r.season].games[T].home_team_acronym+" "+L.data.seasons[r.season].games[T].home_team_score+" : "+L.data.seasons[r.season].games[T].visiting_team_score+" "+L.data.seasons[r.season].games[T].visiting_team_acronym,team_id:L.data.seasons[r.season].games[T].game_id,team_id_b:L.data.seasons[r.season].games[T].home_team,season_id:L.data.seasons[r.season].games[T].season_id,name:"",category:0,colorfont_home:L.data.best_plays[T].info_thumbnails.home_colors.colors.font_color,colorfont_away:L.data.best_plays[T].info_thumbnails.away_colors.colors.font_color,game_id:L.data.seasons[r.season].games[T].game_id,seasonname:L.data.seasons[r.season].name,match:L.data.seasons[r.season].games[T].matchday_name.replace("Matchday","Jor"),score:L.data.seasons[r.season].games[T].home_team_score+" : "+L.data.seasons[r.season].games[T].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.seasons[r.season].games[T].info_thumbnails.images.background_default_games[e],backgroundhome:L.data.seasons[r.season].games[T].info_thumbnails.home_colors.background_color,backgroundaway:L.data.seasons[r.season].games[T].info_thumbnails.away_colors.background_color,colorfont_home:L.data.best_plays[T].info_thumbnails.home_colors.font_color,colorfont_away:L.data.best_plays[T].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[r.season].games[T].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[r.season].games[T].visiting_team+".png",total:L.data.seasons[r.season].games[T].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.seasons[r.season].games[T].home_team+"_"+L.data.seasons[r.season].games[T].season_id+"_r1.jpg"},E.push(K)}}if(this.type==11){const L=await U.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+r.season+"/"+r.player);for(let T=0;T<L.data.seasons[r.season].games_played.length;T++)Math.floor(Math.random()*L.data.seasons[r.season].games_played[T].info_thumbnails.images.background_default_games.length),K={category:0,player_id:r.player,team_id:L.data.team_id,game_id:L.data.seasons[r.season].games_played[T].game_id,position_id:L.data.position_id,color:L.data.info_thumbnails.colors.background_color,photo_profile:"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.player_in_action[0],team_logo:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[r.season].games_played[T].home_team+".png",player_name:L.data.seasons[r.season].games_played[T].home_team_acronym+" "+L.data.seasons[r.season].games_played[T].home_team_score+" : "+L.data.seasons[r.season].games_played[T].visiting_team_score+" "+L.data.seasons[r.season].games_played[T].visiting_team_acronym,team_id_b:L.data.seasons[r.season].games_played[T].home_team,season_id:L.data.seasons[r.season].games_played[T].season_id,name:L.data.seasons[r.season].games_played[T].player_name,seasonname:L.data.seasons[r.season].name,match:L.data.seasons[r.season].games_played[T].matchday_name.replace("Matchday","Jor"),scorehome:L.data.seasons[r.season].games_played[T].home_team_score,scoreaway:L.data.seasons[r.season].games_played[T].visiting_team_score,hometeamacronym:L.data.seasons[r.season].games_played[T].home_team_acronym,visitingteamacronym:L.data.seasons[r.season].games_played[T].visiting_team_acronym,background:"https://golstatsimages.blob.core.windows.net/images-library/"+L.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:L.data.seasons[r.season].games_played[T].info_thumbnails.home_colors.background_color,backgroundaway:L.data.seasons[r.season].games_played[T].info_thumbnails.away_colors.background_color,colorfont_home:L.data.seasons[r.season].games_played[T].info_thumbnails.home_colors.font_color,colorfont_away:L.data.seasons[r.season].games_played[T].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[r.season].games_played[T].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data.seasons[r.season].games_played[T].visiting_team+".png",total:L.data.seasons[r.season].games_played[T].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+L.data.seasons[r.season].games_played[T].home_team+"_"+L.data.seasons[r.season].games_played[T].season_id+"_r1.jpg"},E.push(K)}if(this.type==12){const L=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/categories/"+r.category);for(let T=0;T<L.data.length;T++)for(let e=0;e<L.data[T].best_plays.length;e++)K={category:L.data[T].best_plays[e].categories,game_id:L.data[T].best_plays[e].game_id,season_id:L.data[T].season_id,backgroundhome:L.data[T].best_plays[e].info_thumbnails.home_colors.background_color,backgroundaway:L.data[T].best_plays[e].info_thumbnails.away_colors.background_color,colorfont_home:L.data[T].best_plays[e].info_thumbnails.home_colors.font_color,colorfont_away:L.data[T].best_plays[e].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data[T].best_plays[e].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data[T].best_plays[e].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+L.data[T].best_plays[e].info_thumbnails.images.background_default_categories[0],match:"",scorehome:L.data[T].best_plays[e].score[0],scoreaway:L.data[T].best_plays[e].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+L.data[T].best_plays[e].info_thumbnails.player_logo,score:L.data[T].best_plays[e].score[0]+" : "+L.data[T].best_plays[e].score[1]},E.push(K)}if(this.type==13){const L=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/categories/"+r.category);for(let T=0;T<L.data.length;T++)for(let e=0;e<L.data[T].best_plays.length;e++)K={category:L.data[T].best_plays[e].categories,game_id:L.data[T].best_plays[e].game_id,season_id:L.data[T].season_id,backgroundhome:L.data[T].best_plays[e].info_thumbnails.home_colors.background_color,backgroundaway:L.data[T].best_plays[e].info_thumbnails.away_colors.background_color,colorfont_home:L.data[T].best_plays[e].info_thumbnails.home_colors.font_color,colorfont_away:L.data[T].best_plays[e].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data[T].best_plays[e].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data[T].best_plays[e].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+L.data[T].best_plays[e].info_thumbnails.images.background_default_categories[0],match:"",scorehome:L.data[T].best_plays[e].score[0],scoreaway:L.data[T].best_plays[e].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+L.data[T].best_plays[e].info_thumbnails.player_logo,score:L.data[T].best_plays[e].score[0]+" : "+L.data[T].best_plays[e].score[1]},E.push(K)}if(this.type==14&&(E=[],r.season)){if(this.lastseason!=r.season){const L=await U.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+r.season+"/categories/"+r.category);this.flagGames=[],this.arrayMatchdays=[];for(let T=0;T<L.data.length;T++)for(let e=0;e<L.data[T].best_plays.length;e++)L.data[T].best_plays[e].score[0]==0&&L.data[T].best_plays[e].score[1]==0||(K={category:L.data[T].best_plays[e].categories,game_id:L.data[T].best_plays[e].game_id,plays_status:L.data[T].best_plays[e].plays_status,season_id:L.data[T].season_id,backgroundhome:L.data[T].best_plays[e].info_thumbnails.home_colors.background_color,backgroundaway:L.data[T].best_plays[e].info_thumbnails.away_colors.background_color,colorfont_home:L.data[T].best_plays[e].info_thumbnails.home_colors.font_color,date_time:new Date(L.data[T].best_plays[e].date_time_utc).valueOf(),colorfont_away:L.data[T].best_plays[e].info_thumbnails.away_colors.font_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+L.data[T].best_plays[e].info_thumbnails.home_team_logo,logoaway:"https://az755631.vo.msecnd.net/teams-150/"+L.data[T].best_plays[e].info_thumbnails.away_team_logo,background:"https://golstatsimages.blob.core.windows.net/images-library/"+L.data[T].best_plays[e].info_thumbnails.images.background_default_categories[0],match:"",scorehome:L.data[T].best_plays[e].score[0],scoreaway:L.data[T].best_plays[e].score[1],seasonname:"",photo_profile:"https://az755631.vo.msecnd.net/players-profile/"+L.data[T].best_plays[e].info_thumbnails.player_logo,score:L.data[T].best_plays[e].score[0]+" : "+L.data[T].best_plays[e].score[1],matchday_id:L.data[T].best_plays[e].matchday_id},this.arrayMatchdays[L.data[T].best_plays[e].matchday_id]?this.flagGames.includes(K.game_id)||(this.arrayMatchdays[L.data[T].best_plays[e].matchday_id].push(K),this.flagGames.push(K.game_id)):(this.arrayMatchdays[L.data[T].best_plays[e].matchday_id]=[],this.flagGames.includes(K.game_id)||(this.arrayMatchdays[L.data[T].best_plays[e].matchday_id].push(K),this.flagGames.push(K.game_id))));E=this.arrayMatchdays[this.matchdayView]?this.arrayMatchdays[this.matchdayView].sort((T,e)=>T.date_time-e.date_time):[]}else E=this.arrayMatchdays[this.matchdayView]?this.arrayMatchdays[this.matchdayView].sort((L,T)=>L.date_time-T.date_time):[];this.lastseason=r.season}this.printData=E},obtenerNombreCompletoFecha(r){if(r){const U=new Date(r),E=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"][U.getUTCDay()],K=U.getUTCDate(),oe=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"][U.getUTCMonth()];return`${E} ${K} de ${oe}`}else return""}},async created(){}},u_=()=>{p.useCssVars(r=>({"2b27292e":r.backgroundColor}))},d_=Av.setup;Av.setup=d_?(r,U)=>(u_(),d_(r,U)):u_;function hF(r,U,E,K,oe,L){const T=p.resolveComponent("GSCThumbnailCategory"),e=p.resolveComponent("GSCThumbnailCategoryTeam"),k=p.resolveComponent("GSCThumbnailCategoryTeamAway"),v=p.resolveComponent("GSCThumbnailHighlightGamePlayer"),n=p.resolveComponent("GSCThumbnailHighlightGameHistoric"),w=p.resolveComponent("GSCThumbnailSummaryPlayer"),b=p.resolveComponent("GSCSlider");return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(r.$style.ptg),ref:"ptgDiv"},[p.createElementVNode("div",{class:p.normalizeClass(L.ptgtitleClass)},p.toDisplayString(E.title),3),p.createVNode(b,{backgroundColor:E.backgroundColor,pxScroll:E.pxScroll,arrows:E.arrows,arrowsScrollHide:E.arrowsScrollHide,arrowsHideOnNoScroll:E.arrowsHideOnNoScroll,arrowsColor:E.arrowsColor,arrowsHeight:E.arrowsWidth,arrowsWidth:E.arrowsWidth,arrowsPadding:E.arrowsPadding,arrowsMargin:E.arrowsMargin,arrowsRadius:E.arrowsRadius,arrowsBorder:E.arrowsBorder,arrowsBackground:E.arrowsBackground,arrowsContainerBgL:E.arrowsContainerBgL,arrowsContainerBgR:E.arrowsContainerBgR,scrollColor:E.scrollColor,arrowsPosition:E.arrowsPosition,height:E.height},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(oe.printData,(c,a)=>(p.openBlock(),p.createElementBlock("div",{key:a,class:p.normalizeClass(L.pgtcontainercardClass),style:p.normalizeStyle(a==0?"margin-left: 0px !important; color: white;":"")},[E.type==2?(p.openBlock(),p.createBlock(T,{key:0,"color-background-home":c.color,"name-player":E.data.player_name,"type-img":"0",background:c.background_action,"name-category":c.player_name,"logo-home":c.team_logo,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:2}),"photo-profile":c.player_action},null,8,["color-background-home","name-player","background","name-category","logo-home","onOnclickPlayVideos","photo-profile"])):E.type==1||E.type==4?(p.openBlock(),p.createBlock(e,{key:1,type:"team","name-team":c.team_name!=null?c.team_name:"","type-style":"category","color-background-home":c.color,"logo-home":c.team_logo,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:3}),background:c.player_action,"name-category":c.player_name},null,8,["name-team","color-background-home","logo-home","onOnclickPlayVideos","background","name-category"])):E.type==5?(p.openBlock(),p.createBlock(k,{key:2,type:"team","name-team":c.team_name!=null?c.team_name:"","type-style":"category","color-background-away":c.color,"logo-home":c.team_logo,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:3}),background:c.player_action,"name-category":c.player_name},null,8,["name-team","color-background-away","logo-home","onOnclickPlayVideos","background","name-category"])):E.type==0?(p.openBlock(),p.createBlock(v,{key:3,items:c,type:2,"name-category":"TODAS SUS JUGADAS","color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"color-font-home":c.colorfont_home,"color-font-away":c.colorfont_away,"logo-home":c.logohome,"logo-away":c.logoaway,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:2,isAllPlays:!0}),background:c.background,date:c.date,"name-home-team":c.hometeamacronym,"name-away-team":c.visitingteamacronym,matchday:c.match,"score-home":c.scorehome,"photo-profile":c.photo_profile,"score-away":c.scoreaway,"season-name":c.seasonname2},null,8,["items","color-background-home","color-background-away","color-font-home","color-font-away","logo-home","logo-away","onOnclickPlayVideos","background","date","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):E.type==6?(p.openBlock(),p.createBlock(n,{key:4,items:c,"color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"logo-home":c.logohome,"logo-away":c.logoaway,background:c.background,"title-category":"GOLES",onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:3,categories:oe.goalCategories}),matchday:c.match,"season-name":c.seasonname,score:c.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):E.type==7?(p.openBlock(),p.createBlock(n,{key:5,items:c,"color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"logo-home":c.logohome,"logo-away":c.logoaway,background:c.background,"title-category":"RESUMEN",onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:3,categories:oe.resumeCategories}),matchday:c.match,"season-name":c.seasonname,score:c.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","onOnclickPlayVideos","matchday","season-name","score"])):E.type==8?(p.openBlock(),p.createBlock(v,{key:6,items:c,type:2,"name-category":"RESUMEN","color-font-home":c.colorfont_home,"color-font-away":c.colorfont_away,"color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"logo-home":c.logohome,"logo-away":c.logoaway,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:2}),background:c.background,"name-home-team":c.hometeamacronym,"name-away-team":c.visitingteamacronym,matchday:c.match,"score-home":c.scorehome,"photo-profile":c.photo_profile,"score-away":c.scoreaway,"season-name":c.seasonname},null,8,["items","color-font-home","color-font-away","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):E.type==9?(p.openBlock(),p.createBlock(v,{key:7,items:c,type:2,"name-category":"RESUMEN","color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"logo-home":c.logohome,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:2}),"logo-away":c.logoaway,background:c.background,"name-home-team":c.hometeamacronym,"name-away-team":c.visitingteamacronym,matchday:c.match,"score-home":c.scorehome,"photo-profile":c.photo_profile,"score-away":c.scoreaway,"season-name":c.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","onOnclickPlayVideos","logo-away","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):E.type==10?(p.openBlock(),p.createBlock(n,{key:8,items:c,"color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"logo-home":c.logohome,"logo-away":c.logoaway,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:1}),background:c.background,"title-category":"RESUMEN",matchday:c.match,"season-name":c.seasonname,score:c.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","matchday","season-name","score"])):E.type==11?(p.openBlock(),p.createBlock(v,{key:9,items:c,type:2,"name-category":"RESUMEN","color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"logo-home":c.logohome,"logo-away":c.logoaway,background:c.background,"name-home-team":c.hometeamacronym,"name-away-team":c.visitingteamacronym,matchday:c.match,"color-font-home":c.colorfont_home,"color-font-away":c.colorfont_away,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:2}),"score-home":c.scorehome,"photo-profile":c.photo_profile,"score-away":c.scoreaway,"season-name":c.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","name-home-team","name-away-team","matchday","color-font-home","color-font-away","onOnclickPlayVideos","score-home","photo-profile","score-away","season-name"])):E.type==12?(p.openBlock(),p.createBlock(v,{key:10,items:c,type:2,"name-category":"RESUMEN","color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"logo-home":c.logohome,"logo-away":c.logoaway,"color-font-home":c.colorfont_home,"color-font-away":c.colorfont_away,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:1}),background:c.background,"name-home-team":c.hometeamacronym,"name-away-team":c.visitingteamacronym,matchday:c.match,"score-home":c.scorehome,"photo-profile":c.photo_profile,"score-away":c.scoreaway,"season-name":c.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","color-font-home","color-font-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):E.type==13?(p.openBlock(),p.createBlock(v,{key:11,items:c,type:2,"name-category":"GOLES","color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"logo-home":c.logohome,"logo-away":c.logoaway,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:1,categories:oe.goalCategories}),background:c.background,"name-home-team":c.hometeamacronym,"name-away-team":c.visitingteamacronym,matchday:c.match,"score-home":c.scorehome,"photo-profile":c.photo_profile,"score-away":c.scoreaway,"season-name":c.seasonname},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):E.type==14?(p.openBlock(),p.createBlock(v,{key:12,items:c,type:2,"play-status":c.plays_status?c.plays_status:0,"name-category":"GOLES","color-background-home":c.backgroundhome,"color-background-away":c.backgroundaway,"logo-home":c.logohome,"logo-away":c.logoaway,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:1,categories:oe.goalCategories}),background:c.background,"name-home-team":c.hometeamacronym,"name-away-team":c.visitingteamacronym,matchday:c.match,"score-home":c.scorehome,showimg:!1,"photo-profile":c.photo_profile,"score-away":c.scoreaway,"season-name":c.seasonname},null,8,["items","play-status","color-background-home","color-background-away","logo-home","logo-away","onOnclickPlayVideos","background","name-home-team","name-away-team","matchday","score-home","photo-profile","score-away","season-name"])):(p.openBlock(),p.createBlock(w,{key:13,type:"player","color-background-home":c.colorbackgroundhome,"color-background-away":c.colorbackgroundaway,"name-player":c.nameplayer,"type-img":0,onOnclickPlayVideos:t=>L.onclickPlayVideos({data:c,type:2}),background:c.background,"name-home-team":c.namehometeam,"name-away-team":c.nameawayteam,"name-category":"RESUMEN","logo-away":c.logoaway,"logo-home":c.logohome,"color-font":c.colorfont,"score-home":c.scorehome,"photo-profile":c.photoprofile,"score-away":c.logoaway,"type-style":"summary"},null,8,["color-background-home","color-background-away","name-player","onOnclickPlayVideos","background","name-home-team","name-away-team","logo-away","logo-home","color-font","score-home","photo-profile","score-away"]))],6))),128))]),_:1},8,["backgroundColor","pxScroll","arrows","arrowsScrollHide","arrowsHideOnNoScroll","arrowsColor","arrowsHeight","arrowsWidth","arrowsPadding","arrowsMargin","arrowsRadius","arrowsBorder","arrowsBackground","arrowsContainerBgL","arrowsContainerBgR","scrollColor","arrowsPosition","height"])],2)}const mF={$style:fF},p_=Jd(Av,[["render",hF],["__cssModules",mF]]),yF=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E},qv={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let r="";return this.arrowsPosition=="absolute"?r="leftAbsolute":r="leftRelative",this.arrowsScrollHide?this.showLeftArrow?r+=" showArrowSlide":r+=" hideArrowSlide":r+=" showArrowSlide",r},hideShowRightArrow(){let r="";return this.arrowsPosition=="absolute"?r="rightAbsolute":r="rightRelative",this.arrowsScrollHide?this.showRightArrow?r+=" showArrowSlide":r+=" hideArrowSlide":r+=" showArrowSlide",r}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let r=0;this.arrowsPosition=="relative"?r=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:r=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,r>0&&(this.$refs.content.scrollLeft==r?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let r;clearTimeout(r),r=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var r=this.$el.clientWidth,U=this.$refs.content.scrollWidth;U>0&&r>0&&(U>r?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},f_=()=>{p.useCssVars(r=>({"42d3dba6":r.backgroundColor,"4de5d2cf":r.height,"67bafa7b":r.arrowsPosition,"61e1032e":r.arrowsPadding+"px","79a4ac00":r.arrowsBackground,"6b8355c6":r.arrowsHeight*2+"px","29a58368":r.arrowsWidth*2+"px","3622fa64":r.arrowsRadius,"1ba101fe":r.arrowsBorder,"0bafb5e6":r.arrowsMargin+"px","423a44b8":r.arrowsContainerBgL,"423a44be":r.arrowsContainerBgR,"10b117ee":r.scrollColor}))},h_=qv.setup;qv.setup=h_?(r,U)=>(f_(),h_(r,U)):f_;const gF={ref:"gscScrollableContainer",class:"scrollable-container"},vF={class:"scrollable-arrows"},bF=["width","height","viewBox"],xF=["stroke"],_F={class:"scrollable-wrapper"},wF={class:"scrollable-arrows"},SF=["width","height","viewBox"],TF=["stroke"];function kF(r,U,E,K,oe,L){return p.openBlock(),p.createElementBlock("div",gF,[E.arrows?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(["arrows-container",L.hideShowLeftArrow]),onClick:U[0]||(U[0]=(...T)=>L.scrollLeft&&L.scrollLeft(...T))},[p.createElementVNode("div",vF,[(p.openBlock(),p.createElementBlock("svg",{width:E.arrowsWidth,height:E.arrowsHeight,viewBox:L.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:E.arrowsColor},null,8,xF)],8,bF))])],2)):p.createCommentVNode("",!0),p.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:U[1]||(U[1]=(...T)=>L.getScroll&&L.getScroll(...T))},[p.createElementVNode("div",_F,[p.renderSlot(r.$slots,"default",{},void 0,!0)])],544),E.arrows?(p.openBlock(),p.createElementBlock("div",{key:1,id:"arrows-container-right",class:p.normalizeClass(["arrows-container",L.hideShowRightArrow]),onClick:U[2]||(U[2]=(...T)=>L.scrollRight&&L.scrollRight(...T))},[p.createElementVNode("div",wF,[(p.openBlock(),p.createElementBlock("svg",{width:E.arrowsWidth,height:E.arrowsHeight,viewBox:L.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:E.arrowsColor},null,8,TF)],8,SF))])],2)):p.createCommentVNode("",!0)],512)}const m_=yF(qv,[["render",kF],["__scopeId","data-v-b548a08d"]]),Fv=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E};let y_=null;const CF={components:{GSCInfoGame:w5,GSCPlayerTeamGame:p_,GSCSlider:m_,GSCHighlights:u4},props:{sectionVideos:{type:Boolean,default:!1},config:{type:Object,default:()=>{}}},data(){return{gamesContainerWidth:0}},computed:{},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)},methods:{openmedia(r){this.$emit("openmedia",r)},setUpResizeObserver(){if(window.ResizeObserver)y_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.summaryContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),y_.observe(this.$refs.summaryContainer);else throw new Error("Resize observer not supported!")}}},OF={ref:"summaryContainer",class:"container"},NF={class:"summary-player-container"},LF={class:"summary-player-higthlights"},EF={class:"summary-player-pltega-players"},VF={class:"summary-player-pltega-games"},MF={class:"info-game-general"},UF={class:"info-game-lastgame"},PF={class:"info-game-general"},zF={class:"info-game-lastgame"},RF={key:1,class:"info-game-games-carrousel"};function AF(r,U,E,K,oe,L){const T=p.resolveComponent("GSCHighlights"),e=p.resolveComponent("GSCPlayerTeamGame"),k=p.resolveComponent("GSCInfoGame"),v=p.resolveComponent("GSCSlider");return p.openBlock(),p.createElementBlock("div",OF,[p.createElementVNode("div",NF,[p.createElementVNode("div",LF,[p.createVNode(T,{onOpenmedia:L.openmedia,title:"RESUMEN",data:{player:E.config.player_id,season:E.config.season_id,type:"player"}},null,8,["onOpenmedia","data"])]),p.createElementVNode("div",EF,[p.createVNode(e,{onOpenmedia:L.openmedia,"background-color":"#172531","background-footer":"#183143",style:{"margin-top":"0px"},type:0,title:"100% de sus participaciones en cada partido:",data:{season:E.config.season_id,player:E.config.player_id,team:E.config.team_id},onOnClickVideos:r.onClickVideos,onOnClickCard:r.onClickCard,pxScroll:338,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,36,49,0.1) 0%, rgba(22,36,49,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,36,49,0.1) 0%, rgba(22,36,49,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard"])]),p.createElementVNode("div",VF,[p.createVNode(e,{onOpenmedia:L.openmedia,"background-color":"#172531","background-footer":"#183143",style:{"margin-top":"0px"},type:2,title:"Jugadas especificas:",data:{season:E.config.season_id,player:E.config.player_id,team:E.config.team_id},onOnClickVideos:r.onClickVideos,onOnClickCard:r.onClickCard,pxScroll:336,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,36,49,0.1) 0%, rgba(22,36,49,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,36,49,0.1) 0%, rgba(22,36,49,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard"])]),E.sectionVideos?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(oe.gamesContainerWidth>540?"cont-tables-info-game":"cont-tables-info-game-movil")},[oe.gamesContainerWidth>540?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createElementVNode("div",MF,[p.createVNode(k,{onOpenmedia:L.openmedia,type:0,data:{season:E.config.season_id,player:E.config.player_id,type:E.config.type,position:E.config.player_position,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])]),p.createElementVNode("div",UF,[p.createVNode(k,{onOpenmedia:L.openmedia,type:1,data:{season:E.config.season_id,player:E.config.player_id,type:E.config.type,position:E.config.player_position,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])])],64)):(p.openBlock(),p.createBlock(v,{key:1,backgroundColor:"#172531",pxScroll:200,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:p.withCtx(()=>[p.createElementVNode("div",PF,[p.createVNode(k,{onOpenmedia:L.openmedia,type:0,data:{season:E.config.season_id,player:E.config.player_id,type:E.config.type,position:E.config.player_position,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])]),p.createElementVNode("div",zF,[p.createVNode(k,{onOpenmedia:L.openmedia,type:1,data:{season:E.config.season_id,player:E.config.player_id,type:E.config.type,position:E.config.player_position,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])])]),_:1}))],2)):p.createCommentVNode("",!0),E.sectionVideos?(p.openBlock(),p.createElementBlock("div",RF,[p.createVNode(k,{onOpenmedia:L.openmedia,"background-color":"#172531",type:2,data:{season:E.config.season_id,player:E.config.player_id,type:E.config.type,position:E.config.player_position,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])])):p.createCommentVNode("",!0)])],512)}const qF=Fv(CF,[["render",AF],["__scopeId","data-v-0c16ab92"]]);let g_=null;const FF={components:{GSCInfoGame:w5,GSCPlayerTeamGame:p_,GSCSlider:m_,GSCHighlights:u4},props:{sectionVideos:{type:Boolean,default:!1},config:{type:Object,default:()=>{}}},data(){return{gamesContainerWidth:0}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)},computed:{},methods:{openmedia(r){this.$emit("openmedia",r)},setUpResizeObserver(){if(window.ResizeObserver)g_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.summaryContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),g_.observe(this.$refs.summaryContainer);else throw new Error("Resize observer not supported!")}}},IF={ref:"summaryContainer",class:"container"},jF={class:"summary-player-container"},KF={class:"summary-player-higthlights"},BF={class:"summary-player-pltega-players"},DF={class:"info-game-general"},WF={class:"info-game-lastgame"},GF={class:"info-game-general"},XF={class:"info-game-lastgame"},JF={key:1,class:"info-game-games-carrousel"};function ZF(r,U,E,K,oe,L){const T=p.resolveComponent("GSCHighlights"),e=p.resolveComponent("GSCPlayerTeamGame"),k=p.resolveComponent("GSCInfoGame"),v=p.resolveComponent("GSCSlider");return p.openBlock(),p.createElementBlock("div",IF,[p.createElementVNode("div",jF,[p.createElementVNode("div",KF,[p.createVNode(T,{onOpenmedia:L.openmedia,data:{team:E.config.team_id,season:E.config.season_id,type:"team"}},null,8,["onOpenmedia","data"])]),p.createElementVNode("div",BF,[p.createVNode(e,{onOpenmedia:L.openmedia,"background-color":"#172531","background-footer":"#183143",style:{"margin-top":"0px"},type:1,title:"Jugadas especificas:",data:{season:E.config.season_id,team:E.config.team_id},onOnClickVideos:r.onClickVideos,onOnClickCard:r.onClickCard,pxScroll:338,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,36,49,0.1) 0%, rgba(22,36,49,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,36,49,0.1) 0%, rgba(22,36,49,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard"])]),E.sectionVideos?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(oe.gamesContainerWidth>540?"cont-tables-info-game":"cont-tables-info-game-movil")},[oe.gamesContainerWidth>540?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createElementVNode("div",DF,[p.createVNode(k,{onOpenmedia:L.openmedia,type:0,data:{season:E.config.season_id,type:E.config.type,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])]),p.createElementVNode("div",WF,[p.createVNode(k,{onOpenmedia:L.openmedia,type:1,data:{season:E.config.season_id,type:E.config.type,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])])],64)):(p.openBlock(),p.createBlock(v,{key:1,"background-color":"#172531",pxScroll:200,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!1,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"none",arrowsContainerBgR:"none",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:p.withCtx(()=>[p.createElementVNode("div",GF,[p.createVNode(k,{onOpenmedia:L.openmedia,type:0,data:{season:E.config.season_id,type:E.config.type,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])]),p.createElementVNode("div",XF,[p.createVNode(k,{onOpenmedia:L.openmedia,type:1,data:{season:E.config.season_id,type:E.config.type,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])])]),_:1}))],2)):p.createCommentVNode("",!0),E.sectionVideos?(p.openBlock(),p.createElementBlock("div",JF,[p.createVNode(k,{type:2,onOpenmedia:L.openmedia,data:{season:E.config.season_id,type:E.config.type,team:E.config.team_id,season_name:E.config.season_name,isCup:E.config.is_cup}},null,8,["onOpenmedia","data"])])):p.createCommentVNode("",!0)])],512)}const HF={components:{GSCSummaryPlayer:qF,GSCSummaryTeam:Fv(FF,[["render",ZF],["__scopeId","data-v-56e5f961"]])},props:{sectionVideos:{type:Boolean,default:!1},type:{type:Number,default:0},config:{type:Object,default:()=>{}}},data(){return{}},computed:{},methods:{openmedia(r){this.$emit("openmedia",r)}}},YF={class:"container-summary"};function QF(r,U,E,K,oe,L){const T=p.resolveComponent("GSCSummaryPlayer"),e=p.resolveComponent("GSCSummaryTeam");return p.openBlock(),p.createElementBlock("div",YF,[E.type==0?(p.openBlock(),p.createBlock(T,{key:0,config:E.config,"section-videos":E.sectionVideos,onOpenmedia:L.openmedia},null,8,["config","section-videos","onOpenmedia"])):(p.openBlock(),p.createBlock(e,{key:1,config:E.config,"section-videos":E.sectionVideos,onOpenmedia:L.openmedia},null,8,["config","section-videos","onOpenmedia"]))])}const q1=Fv(HF,[["render",QF],["__scopeId","data-v-b84c0d2d"]]),Kle="",$F={class:"container-section"},v_=vo({__name:"SummaryPlayer",props:{isPlayerProfile:{type:Boolean,default:!0},teamId:{type:Number,default:0},playerId:{type:Number,default:0},mainComponentWidth:{type:Number,default:0}},emits:["openmedia"],setup(r,{emit:U}){const E=r;p.useCssVars(T=>({"52548c03":r.mainComponentWidth}));const K=Ls(),oe=p.ref(!1);p.watch(()=>E.isPlayerProfile,T=>{K.commit("filterGeneral/setIsPlayerAnalysis",T)},{immediate:!0}),p.watch(oe,T=>{K.commit("filterGeneral/setStadisticId",T?0:1)},{immediate:!0}),p.watch(()=>K.state.filterGeneral.stadisticId,()=>{oe.value=K.state.filterGeneral.stadisticId===0},{immediate:!0});function L(T){U("openmedia",T)}return(T,e)=>(p.openBlock(),p.createElementBlock("div",$F,[r.isPlayerProfile?(p.openBlock(),p.createBlock(p.unref(q1),{key:1,"section-videos":!0,type:0,config:{player_id:p.unref(K).state.playersGeneral.player.player_id,season_id:p.unref(K).state.filterGeneral.seasonId,type:1,team_id:r.teamId,player_position:p.unref(K).state.playersGeneral.player.position_id,is_cup:!1,season_name:"Liga MX Apertura 2023"},onOpenmedia:L},null,8,["config"])):(p.openBlock(),p.createBlock(p.unref(q1),{key:0,"section-videos":!0,type:1,config:{season_id:p.unref(K).state.filterGeneral.seasonId,type:2,team_id:p.unref(K).state.filterGeneral.teamId==0?r.teamId:p.unref(K).state.filterGeneral.teamId,player_position:p.unref(K).state.playersGeneral.player.position_id,is_cup:!1,season_name:"Liga MX Apertura 2023"},onOpenmedia:L},null,8,["config"]))]))}},[["__scopeId","data-v-8b14d45c"]]),Dle="",eI={class:"container__body"},tI=p.defineComponent({name:"AllSectionsProfilePlayer",components:{SummaryPlayer:v_}}),nI=vo(Object.assign(tI,{props:{childComponent:{type:String,default:""},isPlayerProfile:{type:Boolean,default:!0},teamId:{type:Number,default:0},mainComponentWidth:{type:Number,default:0}},setup(r){const U=r;return Ls(),p.computed(()=>{const E={"--header-flex-direction":"row","--header-v-separator-height":"16px","--header-v-separator-width":"1px"};return U.mainComponentWidth<750&&(E["--header-flex-direction"]="column",E["--header-v-separator-height"]="1px",E["--header-v-separator-width"]="400px"),E}),(E,K)=>(p.openBlock(),p.createElementBlock("div",eI,[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(r.childComponent)))]))}}),[["__scopeId","data-v-6955e1ac"]]),Gle="",rI={class:"summary-container"},aI=vo({__name:"SummaryContainer",props:{isPlayerProfile:{type:Boolean,default:!0},teamId:{type:Number,default:0},playerId:{type:Number,default:0},mainComponentWidth:{type:Number,default:0}},emits:["openmedia"],setup(r,{emit:U}){const E=r;function K(oe){oe.gameIds&&oe.gameIds.length>0?oe.playListType=1:oe.playListType=E.isPlayerProfile?2:3,U("openmediachalkboard",oe)}return(oe,L)=>(p.openBlock(),p.createElementBlock("div",rI,[p.createVNode(v_,p.mergeProps(E,{onOpenmedia:K}),null,16)]))}},[["__scopeId","data-v-6bf2c6a5"]]),Jle="",b_=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E},F1=r=>(p.pushScopeId("data-v-9ad5f83b"),r=r(),p.popScopeId(),r),oI=F1(()=>p.createElementVNode("span",null,null,-1)),iI=F1(()=>p.createElementVNode("span",null,null,-1)),sI={class:"gsc-thermometer-item__label"},lI=F1(()=>p.createElementVNode("span",null,null,-1)),cI=F1(()=>p.createElementVNode("span",null,null,-1)),uI={key:0},dI={key:0},pI={class:"gsc-thermometer-item__bar-box"},fI={class:"gsc-thermometer-item__value"},hI=p.createStaticVNode('<rect width="21.7" height="21.7" rx="10.85" fill="#CBEE6B" data-v-9ad5f83b></rect><rect x="0.25" y="0.25" width="21.2" height="21.2" rx="10.6" stroke="white" stroke-opacity="0.2" stroke-width="0.5" data-v-9ad5f83b></rect><path fill-rule="evenodd" clip-rule="evenodd" d="M14.4841 14.9607V8.65894V14.9607Z" fill="#979797" data-v-9ad5f83b></path><path d="M14.4841 14.9607V8.65894" stroke="#1D2A35" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" data-v-9ad5f83b></path><path fill-rule="evenodd" clip-rule="evenodd" d="M10.2839 14.9602V5.50757V14.9602Z" fill="#979797" data-v-9ad5f83b></path><path d="M10.2839 14.9602V5.50757" stroke="#1D2A35" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" data-v-9ad5f83b></path><path fill-rule="evenodd" clip-rule="evenodd" d="M6.60938 14.9603V10.7592V14.9603Z" fill="#979797" data-v-9ad5f83b></path><path d="M6.60938 14.9603V10.7592" stroke="#1D2A35" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" data-v-9ad5f83b></path>',8),mI=[hI],yI={__name:"GscThermometerItem",props:{label:{type:String,default:"-"},maxValue:{type:Number,default:0},avgValue:{type:Number,default:0},onIconClick:{type:[Function,void 0],default:void 0},value:{type:Number,default:0},mobileClass:{type:String,default:""},displayButton:{type:Boolean,default:!0},showAVG:{type:Boolean,default:!0},showMAX:{type:Boolean,default:!0},isNegative:{type:Boolean,default:!1}},emits:["clickButton"],setup(r,{emit:U}){const E=r,{value:K,maxValue:oe,onIconClick:L}=p.toRefs(E),T=p.computed(()=>`${Math.min(K.value/oe.value*100,100)}%`);return(e,k)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["gsc-thermometer-item",r.mobileClass])},[oI,iI,p.createElementVNode("div",sI,p.toDisplayString(r.label),1),lI,cI,p.createElementVNode("div",{class:p.normalizeClass(["gsc-thermometer-item__max-value",{small:p.unref(oe)>999}])},[r.showMAX?(p.openBlock(),p.createElementBlock("span",uI,p.toDisplayString(p.unref(oe)),1)):p.createCommentVNode("",!0)],2),p.createElementVNode("div",{class:p.normalizeClass(["gsc-thermometer-item__avg-value",{small:r.avgValue>999}])},[r.showAVG?(p.openBlock(),p.createElementBlock("span",dI,p.toDisplayString(r.avgValue),1)):p.createCommentVNode("",!0)],2),p.createElementVNode("div",pI,[p.createElementVNode("div",{class:p.normalizeClass(r.isNegative?"gsc-thermometer-item__bar-value-negative":"gsc-thermometer-item__bar-value"),style:p.normalizeStyle(`width: ${T.value}`)},null,6)]),p.createElementVNode("div",fI,p.toDisplayString(p.unref(K)),1),r.displayButton?(p.openBlock(),p.createElementBlock("svg",{key:0,style:{cursor:"pointer"},width:"1.375rem",height:"1.375rem",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:k[0]||(k[0]=v=>U("clickButton"))},mI)):p.createCommentVNode("",!0)],2))}},gI=b_(yI,[["__scopeId","data-v-9ad5f83b"]]),x_=r=>(p.pushScopeId("data-v-38134198"),r=r(),p.popScopeId(),r),vI={class:"gsc-thermometer__header"},bI=x_(()=>p.createElementVNode("span",null,"Max",-1)),xI=x_(()=>p.createElementVNode("span",null,"Avg",-1)),_I={key:0,class:"gsc-thermometer__player-img player-img"},wI={class:"player-img__container"},SI=["src"],TI={class:"gsc-thermometer__items"},kI={__name:"GscThermometer",props:{items:{type:Array,default:()=>[{label:"Minutos jugados",maxValue:100,avgValue:888,displayButton:!0,value:50},{label:"Minutos jugados",maxValue:9999,avgValue:9999,onIconClick:void 0,value:75}]},imageUrl:{type:[String,void 0],default:void 0},componentWidth:{type:Number,default:500,validator(r){return r>0}}},emits:["clickButton"],setup(r,{emit:U}){const E=p.toRef(r,"componentWidth"),K=p.computed(()=>E.value<500?"break-point-3":"");return(oe,L)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["gsc-thermometer",K.value])},[p.createElementVNode("div",vI,[bI,xI,r.imageUrl?(p.openBlock(),p.createElementBlock("div",_I,[p.createElementVNode("div",wI,[p.createElementVNode("img",{class:"player-img__photo",src:r.imageUrl,alt:"player-img"},null,8,SI)])])):p.createCommentVNode("",!0)]),p.createElementVNode("div",TI,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.items,(T,e)=>(p.openBlock(),p.createBlock(gI,p.mergeProps({...T,mobileClass:K.value},{onClickButton:k=>U("clickButton",T),key:e}),null,16,["onClickButton"]))),128))])],2))}},Iv=b_(kI,[["__scopeId","data-v-38134198"]]),CI={__name:"GSCRadarChart",props:{title:{type:String,default:""},height:{type:String,default:"100%"},width:{type:String,default:"100%"},backgroundColor:{type:String,default:"#26323C"},fontFamily:{type:String,default:"Roboto"},textColor:{type:String,default:"#fff"},colors:{type:Array,default:()=>["#cbee6b","#0033C5"],required:!1},series:{type:Array,required:!0},labels:{type:Array,required:!0},showLegends:{type:Boolean,default:!1},legends:{type:Array,default:()=>[]},max:{type:[Number,void 0],default:void 0}},setup(r){const U=r,E=p.computed(()=>`
38
38
  height: ${U.height};
39
39
  width: ${U.width};
40
40
  background: ${U.backgroundColor};
@@ -49,7 +49,7 @@
49
49
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(U){return U instanceof this?U:new this(U)}static concat(U,...E){const K=new this(U);return E.forEach(oe=>K.set(oe)),K}static accessor(U){const E=(this[N6]=this[N6]={accessors:{}}).accessors,K=this.prototype;function oe(L){const T=Uh(L);E[T]||(EZ(K,L),E[T]=!0)}return jr.isArray(U)?U.forEach(oe):oe(U),this}}H1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),jr.reduceDescriptors(H1.prototype,({value:r},U)=>{let E=U[0].toUpperCase()+U.slice(1);return{get:()=>r,set(K){this[E]=K}}}),jr.freezeMethods(H1);const Ru=H1;function f2(r,U){const E=this||d2,K=U||E,oe=Ru.from(K.headers);let L=K.data;return jr.forEach(r,function(T){L=T.call(E,L,oe.normalize(),U?U.status:void 0)}),oe.normalize(),L}function L6(r){return!!(r&&r.__CANCEL__)}function Ph(r,U,E){To.call(this,r??"canceled",To.ERR_CANCELED,U,E),this.name="CanceledError"}jr.inherits(Ph,To,{__CANCEL__:!0});function VZ(r,U,E){const K=E.config.validateStatus;!E.status||!K||K(E.status)?r(E):U(new To("Request failed with status code "+E.status,[To.ERR_BAD_REQUEST,To.ERR_BAD_RESPONSE][Math.floor(E.status/100)-4],E.config,E.request,E))}const MZ=gu.hasStandardBrowserEnv?{write(r,U,E,K,oe,L){const T=[r+"="+encodeURIComponent(U)];jr.isNumber(E)&&T.push("expires="+new Date(E).toGMTString()),jr.isString(K)&&T.push("path="+K),jr.isString(oe)&&T.push("domain="+oe),L===!0&&T.push("secure"),document.cookie=T.join("; ")},read(r){const U=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return U?decodeURIComponent(U[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function UZ(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function PZ(r,U){return U?r.replace(/\/?\/$/,"")+"/"+U.replace(/^\/+/,""):r}function E6(r,U){return r&&!UZ(U)?PZ(r,U):U}const zZ=gu.hasStandardBrowserEnv?function(){const r=/(msie|trident)/i.test(navigator.userAgent),U=document.createElement("a");let E;function K(oe){let L=oe;return r&&(U.setAttribute("href",L),L=U.href),U.setAttribute("href",L),{href:U.href,protocol:U.protocol?U.protocol.replace(/:$/,""):"",host:U.host,search:U.search?U.search.replace(/^\?/,""):"",hash:U.hash?U.hash.replace(/^#/,""):"",hostname:U.hostname,port:U.port,pathname:U.pathname.charAt(0)==="/"?U.pathname:"/"+U.pathname}}return E=K(window.location.href),function(oe){const L=jr.isString(oe)?K(oe):oe;return L.protocol===E.protocol&&L.host===E.host}}():function(){return function(){return!0}}();function RZ(r){const U=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return U&&U[1]||""}function AZ(r,U){r=r||10;const E=new Array(r),K=new Array(r);let oe=0,L=0,T;return U=U!==void 0?U:1e3,function(e){const k=Date.now(),v=K[L];T||(T=k),E[oe]=e,K[oe]=k;let n=L,w=0;for(;n!==oe;)w+=E[n++],n=n%r;if(oe=(oe+1)%r,oe===L&&(L=(L+1)%r),k-T<U)return;const b=v&&k-v;return b?Math.round(w*1e3/b):void 0}}function V6(r,U){let E=0;const K=AZ(50,250);return oe=>{const L=oe.loaded,T=oe.lengthComputable?oe.total:void 0,e=L-E,k=K(e),v=L<=T;E=L;const n={loaded:L,total:T,progress:T?L/T:void 0,bytes:e,rate:k||void 0,estimated:k&&T&&v?(T-L)/k:void 0,event:oe};n[U?"download":"upload"]=!0,r(n)}}const qZ=typeof XMLHttpRequest<"u",FZ=qZ&&function(r){return new Promise(function(U,E){let K=r.data;const oe=Ru.from(r.headers).normalize();let{responseType:L,withXSRFToken:T}=r,e;function k(){r.cancelToken&&r.cancelToken.unsubscribe(e),r.signal&&r.signal.removeEventListener("abort",e)}let v;if(jr.isFormData(K)){if(gu.hasStandardBrowserEnv||gu.hasStandardBrowserWebWorkerEnv)oe.setContentType(!1);else if((v=oe.getContentType())!==!1){const[a,...t]=v?v.split(";").map(o=>o.trim()).filter(Boolean):[];oe.setContentType([a||"multipart/form-data",...t].join("; "))}}let n=new XMLHttpRequest;if(r.auth){const a=r.auth.username||"",t=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";oe.set("Authorization","Basic "+btoa(a+":"+t))}const w=E6(r.baseURL,r.url);n.open(r.method.toUpperCase(),S6(w,r.params,r.paramsSerializer),!0),n.timeout=r.timeout;function b(){if(!n)return;const a=Ru.from("getAllResponseHeaders"in n&&n.getAllResponseHeaders()),t={data:!L||L==="text"||L==="json"?n.responseText:n.response,status:n.status,statusText:n.statusText,headers:a,config:r,request:n};VZ(function(o){U(o),k()},function(o){E(o),k()},t),n=null}if("onloadend"in n?n.onloadend=b:n.onreadystatechange=function(){!n||n.readyState!==4||n.status===0&&!(n.responseURL&&n.responseURL.indexOf("file:")===0)||setTimeout(b)},n.onabort=function(){n&&(E(new To("Request aborted",To.ECONNABORTED,r,n)),n=null)},n.onerror=function(){E(new To("Network Error",To.ERR_NETWORK,r,n)),n=null},n.ontimeout=function(){let a=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const t=r.transitional||k6;r.timeoutErrorMessage&&(a=r.timeoutErrorMessage),E(new To(a,t.clarifyTimeoutError?To.ETIMEDOUT:To.ECONNABORTED,r,n)),n=null},gu.hasStandardBrowserEnv&&(T&&jr.isFunction(T)&&(T=T(r)),T||T!==!1&&zZ(w))){const a=r.xsrfHeaderName&&r.xsrfCookieName&&MZ.read(r.xsrfCookieName);a&&oe.set(r.xsrfHeaderName,a)}K===void 0&&oe.setContentType(null),"setRequestHeader"in n&&jr.forEach(oe.toJSON(),function(a,t){n.setRequestHeader(t,a)}),jr.isUndefined(r.withCredentials)||(n.withCredentials=!!r.withCredentials),L&&L!=="json"&&(n.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&n.addEventListener("progress",V6(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&n.upload&&n.upload.addEventListener("progress",V6(r.onUploadProgress)),(r.cancelToken||r.signal)&&(e=a=>{n&&(E(!a||a.type?new Ph(null,r,n):a),n.abort(),n=null)},r.cancelToken&&r.cancelToken.subscribe(e),r.signal&&(r.signal.aborted?e():r.signal.addEventListener("abort",e)));const c=RZ(w);if(c&&gu.protocols.indexOf(c)===-1){E(new To("Unsupported protocol "+c+":",To.ERR_BAD_REQUEST,r));return}n.send(K||null)})},h2={http:cZ,xhr:FZ};jr.forEach(h2,(r,U)=>{if(r){try{Object.defineProperty(r,"name",{value:U})}catch{}Object.defineProperty(r,"adapterName",{value:U})}});const M6=r=>`- ${r}`,IZ=r=>jr.isFunction(r)||r===null||r===!1,U6={getAdapter:r=>{r=jr.isArray(r)?r:[r];const{length:U}=r;let E,K;const oe={};for(let L=0;L<U;L++){E=r[L];let T;if(K=E,!IZ(E)&&(K=h2[(T=String(E)).toLowerCase()],K===void 0))throw new To(`Unknown adapter '${T}'`);if(K)break;oe[T||"#"+L]=K}if(!K){const L=Object.entries(oe).map(([e,k])=>`adapter ${e} `+(k===!1?"is not supported by the environment":"is not available in the build"));let T=U?L.length>1?`since :
50
50
  `+L.map(M6).join(`
51
51
  `):" "+M6(L[0]):"as no adapter specified";throw new To("There is no suitable adapter to dispatch the request "+T,"ERR_NOT_SUPPORT")}return K},adapters:h2};function m2(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new Ph(null,r)}function P6(r){return m2(r),r.headers=Ru.from(r.headers),r.data=f2.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),U6.getAdapter(r.adapter||d2.adapter)(r).then(function(U){return m2(r),U.data=f2.call(r,r.transformResponse,U),U.headers=Ru.from(U.headers),U},function(U){return L6(U)||(m2(r),U&&U.response&&(U.response.data=f2.call(r,r.transformResponse,U.response),U.response.headers=Ru.from(U.response.headers))),Promise.reject(U)})}const z6=r=>r instanceof Ru?r.toJSON():r;function af(r,U){U=U||{};const E={};function K(v,n,w){return jr.isPlainObject(v)&&jr.isPlainObject(n)?jr.merge.call({caseless:w},v,n):jr.isPlainObject(n)?jr.merge({},n):jr.isArray(n)?n.slice():n}function oe(v,n,w){if(jr.isUndefined(n)){if(!jr.isUndefined(v))return K(void 0,v,w)}else return K(v,n,w)}function L(v,n){if(!jr.isUndefined(n))return K(void 0,n)}function T(v,n){if(jr.isUndefined(n)){if(!jr.isUndefined(v))return K(void 0,v)}else return K(void 0,n)}function e(v,n,w){if(w in U)return K(v,n);if(w in r)return K(void 0,v)}const k={url:L,method:L,data:L,baseURL:T,transformRequest:T,transformResponse:T,paramsSerializer:T,timeout:T,timeoutMessage:T,withCredentials:T,withXSRFToken:T,adapter:T,responseType:T,xsrfCookieName:T,xsrfHeaderName:T,onUploadProgress:T,onDownloadProgress:T,decompress:T,maxContentLength:T,maxBodyLength:T,beforeRedirect:T,transport:T,httpAgent:T,httpsAgent:T,cancelToken:T,socketPath:T,responseEncoding:T,validateStatus:e,headers:(v,n)=>oe(z6(v),z6(n),!0)};return jr.forEach(Object.keys(Object.assign({},r,U)),function(v){const n=k[v]||oe,w=n(r[v],U[v],v);jr.isUndefined(w)&&n!==e||(E[v]=w)}),E}const R6="1.6.7",y2={};["object","boolean","number","function","string","symbol"].forEach((r,U)=>{y2[r]=function(E){return typeof E===r||"a"+(U<1?"n ":" ")+r}});const A6={};y2.transitional=function(r,U,E){function K(oe,L){return"[Axios v"+R6+"] Transitional option '"+oe+"'"+L+(E?". "+E:"")}return(oe,L,T)=>{if(r===!1)throw new To(K(L," has been removed"+(U?" in "+U:"")),To.ERR_DEPRECATED);return U&&!A6[L]&&(A6[L]=!0,console.warn(K(L," has been deprecated since v"+U+" and will be removed in the near future"))),r?r(oe,L,T):!0}};function jZ(r,U,E){if(typeof r!="object")throw new To("options must be an object",To.ERR_BAD_OPTION_VALUE);const K=Object.keys(r);let oe=K.length;for(;oe-- >0;){const L=K[oe],T=U[L];if(T){const e=r[L],k=e===void 0||T(e,L,r);if(k!==!0)throw new To("option "+L+" must be "+k,To.ERR_BAD_OPTION_VALUE);continue}if(E!==!0)throw new To("Unknown option "+L,To.ERR_BAD_OPTION)}}const g2={assertOptions:jZ,validators:y2},gd=g2.validators;class Y1{constructor(U){this.defaults=U,this.interceptors={request:new T6,response:new T6}}async request(U,E){try{return await this._request(U,E)}catch(K){if(K instanceof Error){let oe;Error.captureStackTrace?Error.captureStackTrace(oe={}):oe=new Error;const L=oe.stack?oe.stack.replace(/^.+\n/,""):"";K.stack?L&&!String(K.stack).endsWith(L.replace(/^.+\n.+\n/,""))&&(K.stack+=`
52
- `+L):K.stack=L}throw K}}_request(U,E){typeof U=="string"?(E=E||{},E.url=U):E=U||{},E=af(this.defaults,E);const{transitional:K,paramsSerializer:oe,headers:L}=E;K!==void 0&&g2.assertOptions(K,{silentJSONParsing:gd.transitional(gd.boolean),forcedJSONParsing:gd.transitional(gd.boolean),clarifyTimeoutError:gd.transitional(gd.boolean)},!1),oe!=null&&(jr.isFunction(oe)?E.paramsSerializer={serialize:oe}:g2.assertOptions(oe,{encode:gd.function,serialize:gd.function},!0)),E.method=(E.method||this.defaults.method||"get").toLowerCase();let T=L&&jr.merge(L.common,L[E.method]);L&&jr.forEach(["delete","get","head","post","put","patch","common"],a=>{delete L[a]}),E.headers=Ru.concat(T,L);const e=[];let k=!0;this.interceptors.request.forEach(function(a){typeof a.runWhen=="function"&&a.runWhen(E)===!1||(k=k&&a.synchronous,e.unshift(a.fulfilled,a.rejected))});const v=[];this.interceptors.response.forEach(function(a){v.push(a.fulfilled,a.rejected)});let n,w=0,b;if(!k){const a=[P6.bind(this),void 0];for(a.unshift.apply(a,e),a.push.apply(a,v),b=a.length,n=Promise.resolve(E);w<b;)n=n.then(a[w++],a[w++]);return n}b=e.length;let c=E;for(w=0;w<b;){const a=e[w++],t=e[w++];try{c=a(c)}catch(o){t.call(this,o);break}}try{n=P6.call(this,c)}catch(a){return Promise.reject(a)}for(w=0,b=v.length;w<b;)n=n.then(v[w++],v[w++]);return n}getUri(U){U=af(this.defaults,U);const E=E6(U.baseURL,U.url);return S6(E,U.params,U.paramsSerializer)}}jr.forEach(["delete","get","head","options"],function(r){Y1.prototype[r]=function(U,E){return this.request(af(E||{},{method:r,url:U,data:(E||{}).data}))}}),jr.forEach(["post","put","patch"],function(r){function U(E){return function(K,oe,L){return this.request(af(L||{},{method:r,headers:E?{"Content-Type":"multipart/form-data"}:{},url:K,data:oe}))}}Y1.prototype[r]=U(),Y1.prototype[r+"Form"]=U(!0)});const Q1=Y1;class v2{constructor(U){if(typeof U!="function")throw new TypeError("executor must be a function.");let E;this.promise=new Promise(function(oe){E=oe});const K=this;this.promise.then(oe=>{if(!K._listeners)return;let L=K._listeners.length;for(;L-- >0;)K._listeners[L](oe);K._listeners=null}),this.promise.then=oe=>{let L;const T=new Promise(e=>{K.subscribe(e),L=e}).then(oe);return T.cancel=function(){K.unsubscribe(L)},T},U(function(oe,L,T){K.reason||(K.reason=new Ph(oe,L,T),E(K.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(U){if(this.reason){U(this.reason);return}this._listeners?this._listeners.push(U):this._listeners=[U]}unsubscribe(U){if(!this._listeners)return;const E=this._listeners.indexOf(U);E!==-1&&this._listeners.splice(E,1)}static source(){let U;return{token:new v2(function(E){U=E}),cancel:U}}}const KZ=v2;function BZ(r){return function(U){return r.apply(null,U)}}function DZ(r){return jr.isObject(r)&&r.isAxiosError===!0}const b2={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(b2).forEach(([r,U])=>{b2[U]=r});const WZ=b2;function q6(r){const U=new Q1(r),E=s6(Q1.prototype.request,U);return jr.extend(E,Q1.prototype,U,{allOwnKeys:!0}),jr.extend(E,U,null,{allOwnKeys:!0}),E.create=function(K){return q6(af(r,K))},E}const as=q6(d2);as.Axios=Q1,as.CanceledError=Ph,as.CancelToken=KZ,as.isCancel=L6,as.VERSION=R6,as.toFormData=J1,as.AxiosError=To,as.Cancel=as.CanceledError,as.all=function(r){return Promise.all(r)},as.spread=BZ,as.isAxiosError=DZ,as.mergeConfig=af,as.AxiosHeaders=Ru,as.formToJSON=r=>O6(jr.isHTMLForm(r)?new FormData(r):r),as.getAdapter=U6.getAdapter,as.HttpStatusCode=WZ,as.default=as;const zh=as,F6={isAgeByRange:!0,isAgeByYear:!1,minAge:10,maxAge:50,availableYears:[1987,1985],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"}]},GZ={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"},XZ={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 $1(r){"@babel/helpers - typeof";return $1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},$1(r)}function Au(r){if(r===null||r===!0||r===!1)return NaN;var U=Number(r);return isNaN(U)?U:U<0?Math.ceil(U):Math.floor(U)}function Wi(r,U){if(U.length<r)throw new TypeError(r+" argument"+(r>1?"s":"")+" required, but only "+U.length+" present")}function ci(r){Wi(1,arguments);var U=Object.prototype.toString.call(r);return r instanceof Date||$1(r)==="object"&&U==="[object Date]"?new Date(r.getTime()):typeof r=="number"||U==="[object Number]"?new Date(r):((typeof r=="string"||U==="[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 JZ(r,U){Wi(2,arguments);var E=ci(r),K=Au(U);return isNaN(K)?new Date(NaN):(K&&E.setDate(E.getDate()+K),E)}function ZZ(r,U){Wi(2,arguments);var E=ci(r),K=Au(U);if(isNaN(K))return new Date(NaN);if(!K)return E;var oe=E.getDate(),L=new Date(E.getTime());L.setMonth(E.getMonth()+K+1,0);var T=L.getDate();return oe>=T?L:(E.setFullYear(L.getFullYear(),L.getMonth(),oe),E)}function Rh(r,U){if(Wi(2,arguments),!U||$1(U)!=="object")return new Date(NaN);var E=U.years?Au(U.years):0,K=U.months?Au(U.months):0,oe=U.weeks?Au(U.weeks):0,L=U.days?Au(U.days):0,T=U.hours?Au(U.hours):0,e=U.minutes?Au(U.minutes):0,k=U.seconds?Au(U.seconds):0,v=ci(r),n=K||E?ZZ(v,K+E*12):v,w=L||oe?JZ(n,L+oe*7):n,b=e+T*60,c=k+b*60,a=c*1e3,t=new Date(w.getTime()+a);return t}function I6(r){var U=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return U.setUTCFullYear(r.getFullYear()),r.getTime()-U.getTime()}function j6(r){Wi(1,arguments);var U=ci(r);return U.setHours(0,0,0,0),U}var HZ=864e5;function YZ(r,U){Wi(2,arguments);var E=j6(r),K=j6(U),oe=E.getTime()-I6(E),L=K.getTime()-I6(K);return Math.round((oe-L)/HZ)}function of(r,U){Wi(2,arguments);var E=ci(r),K=ci(U),oe=E.getTime()-K.getTime();return oe<0?-1:oe>0?1:oe}var QZ=6e4,$Z=36e5;function eH(r,U){Wi(2,arguments);var E=ci(r),K=ci(U),oe=E.getFullYear()-K.getFullYear(),L=E.getMonth()-K.getMonth();return oe*12+L}function tH(r,U){Wi(2,arguments);var E=ci(r),K=ci(U);return E.getFullYear()-K.getFullYear()}function K6(r,U){var E=r.getFullYear()-U.getFullYear()||r.getMonth()-U.getMonth()||r.getDate()-U.getDate()||r.getHours()-U.getHours()||r.getMinutes()-U.getMinutes()||r.getSeconds()-U.getSeconds()||r.getMilliseconds()-U.getMilliseconds();return E<0?-1:E>0?1:E}function nH(r,U){Wi(2,arguments);var E=ci(r),K=ci(U),oe=K6(E,K),L=Math.abs(YZ(E,K));E.setDate(E.getDate()-oe*L);var T=+(K6(E,K)===-oe),e=oe*(L-T);return e===0?0:e}function x2(r,U){return Wi(2,arguments),ci(r).getTime()-ci(U).getTime()}var B6={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(r){return r<0?Math.ceil(r):Math.floor(r)}},rH="trunc";function _2(r){return r?B6[r]:B6[rH]}function aH(r,U,E){Wi(2,arguments);var K=x2(r,U)/$Z;return _2(E==null?void 0:E.roundingMethod)(K)}function oH(r,U,E){Wi(2,arguments);var K=x2(r,U)/QZ;return _2(E==null?void 0:E.roundingMethod)(K)}function iH(r){Wi(1,arguments);var U=ci(r);return U.setHours(23,59,59,999),U}function sH(r){Wi(1,arguments);var U=ci(r),E=U.getMonth();return U.setFullYear(U.getFullYear(),E+1,0),U.setHours(23,59,59,999),U}function lH(r){Wi(1,arguments);var U=ci(r);return iH(U).getTime()===sH(U).getTime()}function cH(r,U){Wi(2,arguments);var E=ci(r),K=ci(U),oe=of(E,K),L=Math.abs(eH(E,K)),T;if(L<1)T=0;else{E.getMonth()===1&&E.getDate()>27&&E.setDate(30),E.setMonth(E.getMonth()-oe*L);var e=of(E,K)===-oe;lH(ci(r))&&L===1&&of(r,K)===1&&(e=!1),T=oe*(L-Number(e))}return T===0?0:T}function uH(r,U,E){Wi(2,arguments);var K=x2(r,U)/1e3;return _2(E==null?void 0:E.roundingMethod)(K)}function dH(r,U){Wi(2,arguments);var E=ci(r),K=ci(U),oe=of(E,K),L=Math.abs(tH(E,K));E.setFullYear(1584),K.setFullYear(1584);var T=of(E,K)===-oe,e=oe*(L-Number(T));return e===0?0:e}function pH(r){return Wi(1,arguments),ci(r).getFullYear()}function fH(r){Wi(1,arguments);var U=ci(r.start),E=ci(r.end);if(isNaN(U.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(E.getTime()))throw new RangeError("End Date is invalid");var K={};K.years=Math.abs(dH(E,U));var oe=of(E,U),L=Rh(U,{years:oe*K.years});K.months=Math.abs(cH(E,L));var T=Rh(L,{months:oe*K.months});K.days=Math.abs(nH(E,T));var e=Rh(T,{days:oe*K.days});K.hours=Math.abs(aH(E,e));var k=Rh(e,{hours:oe*K.hours});K.minutes=Math.abs(oH(E,k));var v=Rh(k,{minutes:oe*K.minutes});return K.seconds=Math.abs(uH(E,v)),K}const hH={__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(r,{emit:U}){const E=r,K=p.ref(null);p.watch(()=>E.modelValue,()=>{oe()},{immediate:!0});function oe(){K.value&&(K.value.checked=E.modelValue)}function L(T){U("update:modelValue",T.target.checked)}return p.onMounted(()=>{oe()}),(T,e)=>(p.openBlock(),p.createElementBlock("input",{ref_key:"switchCustom",ref:K,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:L},null,544))}},em=Bo(hH,[["__scopeId","data-v-caefc67f"]]),$d=r=>(p.pushScopeId("data-v-41822888"),r=r(),p.popScopeId(),r),mH={class:"personal-data"},yH={class:"personal-data__age"},gH={class:"personal-data__age__toggle"},vH={class:"personal-data__age__range"},bH={class:"personal-data__age__dropdown"},xH=$d(()=>p.createElementVNode("div",{class:"label"},"Año",-1)),_H={class:"selected-item"},wH=$d(()=>p.createElementVNode("div",{class:"separator"},null,-1)),SH={class:"personal-data__nationality-position"},TH={key:0,class:"personal-data__nationality-position__switch"},kH=$d(()=>p.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),CH=$d(()=>p.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),OH={class:"personal-data__nationality-position__nationality"},NH=$d(()=>p.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),LH={class:"selected-item"},EH=$d(()=>p.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),VH={class:"selected-item"},MH={class:"personal-data__nationality-position__position"},UH=$d(()=>p.createElementVNode("div",{class:"label"},"Posición",-1)),PH={class:"selected-item"},zH="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",RH={__name:"TemplatePersonalData",props:{season:{type:Object,default:()=>({})},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:filters"],setup(r,{expose:U,emit:E}){const K=r,oe=[1],L={id:0,name:"Todas las nacionalidades",isSelected:!1},T={id:0,name:"Todas las posiciones",isSelected:!1},e=p.ref(F6),k=p.ref(["Por edad","Por año"]),v=p.ref(0),n=p.ref({min:0,max:0}),w=p.ref(Eh),b=p.ref(""),c=p.ref(""),a=p.ref(0);p.ref(0),p.ref(0);const t=p.ref(0),o=p.computed(()=>{const _=e.value.nationalities?[...e.value.nationalities]:[],S=_[0];return(!S||S.id!==0)&&_.unshift(L),_}),i=p.computed(()=>{let _=e.value.positions?[...e.value.positions]:[];const S=_[0];return(!S||S.id!==0)&&_.unshift(T),_.sort((O,h)=>O.id-h.id),_}),s=p.computed(()=>K.season&&K.season.tournamentId&&oe.includes(K.season.tournamentId));p.watch(o,_=>{const S=_.reduce((O,h,M)=>(M!==0&&h.isSelected&&O++,O),0);S===o.value.length-1&&(_[0].isSelected=!0),_[0]&&_[0].isSelected?b.value="Todas las nacionalidades":b.value=`${S} seleccionadas`,y()},{immediate:!0,deep:!0}),p.watch(i,_=>{const S=_.reduce((O,h,M)=>(M!==0&&h.isSelected&&O++,O),0);S===i.value.length-1&&(_[0].isSelected=!0),_[0]&&_[0].isSelected?c.value="Todas las posiciones":c.value=`${S} seleccionadas`,y()},{immediate:!0,deep:!0}),p.watch(()=>e.value.isEligibilitySelected,()=>{y()}),p.watch(()=>K.season,_=>{_.id!==t.value&&(t.value=_.id,l(_))},{immediate:!0,deep:!1});async function l(_){try{if(_&&_.id){const S=new Set,O=await d(_.id),h=new Date,M=[],N=new Map,P=new Map;O.forEach(R=>{const A=new Date(R.dob),q=pH(A),j=fH({start:A,end:h});N.has(R.nationality_id)||N.set(R.nationality_id,{id:R.nationality_id,isSelected:!0,name:GZ[`${R.nationality_id}`]}),P.has(R.position_id)||P.set(R.position_id,{id:R.position_id,isSelected:!0,name:XZ[`${R.position_id}`]}),S.add(q),M.push(j.years)}),e.value.minAge=Math.min(...M),e.value.maxAge=Math.max(...M),e.value.availableYears=[...S].sort((R,A)=>A-R),e.value.nationalities=[...N.values()],e.value.positions=[...P.values()],n.value.min=e.value.minAge,n.value.max=e.value.maxAge}}catch(S){throw new Error(S)}}function u(_=null){const S=!_||_===Yd.All;(S||_===Yd.NATIONALITY)&&o.value.forEach(O=>{O.isSelected=!0}),(S||_===Yd.ELIGIBILITY)&&(e.value.isEligibilitySelected=!1),(S||_===Yd.POSITION)&&i.value.forEach(O=>{O.isSelected=!0}),(S||_===Yd.AGE_RANGE)&&(n.value.min=e.value.minAge,n.value.max=e.value.maxAge,v.value=0),(S||_===Yd.YEAR)&&(a.value=e.value.availableYears[0],v.value=0),y()}async function d(_){try{const S={Authorization:localStorage.getItem("user_token")||K.token},O={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:zH,h=await zh.get(O+_,{headers:S});return h.data?h.data.players:[]}catch(S){return Promise.reject(S)}}function g(_){v.value=_.index}function f(_){n.value.min=_.minValue,n.value.max=_.maxValue,y()}function C(_,S){S.id===0?o.value.forEach(O=>{O.isSelected=_}):(S.isSelected=_,o.value[0].isSelected=o.value.every((O,h)=>h===0?!0:O.isSelected))}function y(){const _=v.value===0,S={};_?(S.ageByRange=n.value,S.ageLimits={min:e.value.minAge,max:e.value.maxAge}):S.year=a.value,e.value.isEligibilitySelected?S.eligibility=[...e.value.eligibility]:S.nationalities=o.value.reduce((O,h,M)=>(M!==0&&O.push({...h}),O),[]),S.positions=i.value.reduce((O,h,M)=>(M!==0&&O.push({...h}),O),[]),E("update:filters",S)}function m(_,S){S.id===0?i.value.forEach(O=>{O.isSelected=_}):(S.isSelected=_,i.value[0].isSelected=i.value.every((O,h)=>h===0?!0:O.isSelected))}function x(_){a.value=_,y()}return U({onClearFilters:u}),(_,S)=>(p.openBlock(),p.createElementBlock("div",mH,[p.createElementVNode("div",yH,[p.createElementVNode("div",gH,[p.createVNode(NJ,{"selected-button-index":v.value,buttons:k.value,width:"220px",onChange:g},null,8,["selected-button-index","buttons"])]),p.withDirectives(p.createElementVNode("div",vH,[p.createVNode(p.unref($_),{"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":e.value.minAge,"max-limit":e.value.maxAge,"min-value":n.value.min,"max-value":n.value.max,onInput:f},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[p.vShow,v.value===0]]),p.withDirectives(p.createElementVNode("div",bH,[xH,p.createVNode(p.unref(yd),p.mergeProps({"model-value":a.value},w.value,{items:e.value.availableYears,onInput:x}),{default:p.withCtx(({selectedItem:O})=>[p.createElementVNode("div",_H,p.toDisplayString(O),1)]),availableItem:p.withCtx(({item:O})=>[p.createElementVNode("div",null,p.toDisplayString(O),1)]),_:1},16,["model-value","items"])],512),[[p.vShow,v.value===1]])]),wH,p.createElementVNode("div",SH,[s.value?(p.openBlock(),p.createElementBlock("div",TH,[kH,p.createVNode(em,{modelValue:e.value.isEligibilitySelected,"onUpdate:modelValue":S[0]||(S[0]=O=>e.value.isEligibilitySelected=O)},null,8,["modelValue"]),CH])):p.createCommentVNode("",!0),p.createElementVNode("div",OH,[e.value.isEligibilitySelected?(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[EH,p.createVNode(p.unref(yd),p.mergeProps(w.value,{"is-multiple-option":"",items:e.value.eligibility,"is-disabled":""}),{default:p.withCtx(({selectedItem:O})=>[p.createElementVNode("div",VH,p.toDisplayString(O.name),1)]),availableItem:p.withCtx(({item:O})=>[p.createElementVNode("div",null,[p.createVNode(p.unref(Ho),{"model-value":O.isSelected,label:O.name,fontFamily:r.fontFamily,width:"100%","avoid-interaction":""},null,8,["model-value","label","fontFamily"])])]),_:1},16,["items"])],64)):(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[NH,p.createVNode(p.unref(yd),p.mergeProps(w.value,{"is-multiple-option":"",items:o.value}),{default:p.withCtx(()=>[p.createElementVNode("div",LH,p.toDisplayString(b.value),1)]),availableItem:p.withCtx(({item:O})=>[p.createElementVNode("div",null,[p.createVNode(p.unref(Ho),{"model-value":O.isSelected,label:O.name,fontFamily:r.fontFamily,width:"100%","onUpdate:modelValue":h=>C(h,O)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),p.createElementVNode("div",MH,[UH,p.createVNode(p.unref(yd),p.mergeProps(w.value,{"is-multiple-option":"",items:i.value}),{default:p.withCtx(()=>[p.createElementVNode("div",PH,p.toDisplayString(c.value),1)]),availableItem:p.withCtx(({item:O})=>[p.createElementVNode("div",null,[p.createVNode(p.unref(Ho),{"model-value":O.isSelected,label:O.name,fontFamily:r.fontFamily,width:"100%","onUpdate:modelValue":h=>m(h,O)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},AH=Bo(RH,[["__scopeId","data-v-41822888"]]),qH={class:"plays"},FH={class:"plays__body__offensive"},IH={class:"plays__body__title"},jH={class:"number-of-categories"},KH={class:"plays__body__categories"},BH={class:"plays__body__defensive-possession-offenses"},DH={class:"plays__body__title"},WH={class:"number-of-categories"},GH={class:"plays__body__categories"},XH={class:"plays__body__title"},JH={class:"number-of-categories"},ZH={class:"plays__body__categories"},HH={class:"plays__body__title"},YH={class:"number-of-categories"},QH={class:"plays__body__categories"},$H={__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(r){const U=r,E=p.ref(!1),K=p.ref(!1),oe=p.ref(!1),L=p.ref(!1),T=p.computed(()=>({"--template-columns":U.isExpansionMode?"1fr":"1fr 1fr"})),e=p.computed(()=>U.playsCategories.offensive.categories.reduce((c,a)=>(a.isSelected&&c++,c),0)),k=p.computed(()=>U.playsCategories.defensive.categories.reduce((c,a)=>(a.isSelected&&c++,c),0)),v=p.computed(()=>U.playsCategories.possession.categories.reduce((c,a)=>(a.isSelected&&c++,c),0)),n=p.computed(()=>U.playsCategories.offenses.categories.reduce((c,a)=>(a.isSelected&&c++,c),0));function w(c,a){a.isSelected=c}function b(c){c==="offensive"?E.value=!E.value:c==="defensive"?K.value=!K.value:c==="possession"?oe.value=!oe.value:c==="offenses"&&(L.value=!L.value)}return(c,a)=>(p.openBlock(),p.createElementBlock("div",qH,[p.createElementVNode("div",{class:"plays__body",style:p.normalizeStyle(T.value)},[p.createElementVNode("div",FH,[p.createElementVNode("div",IH,[p.createElementVNode("div",{class:"plays__body__title__info",onClick:a[0]||(a[0]=t=>b("offensive"))},[p.createElementVNode("span",null,p.toDisplayString(r.playsCategories.offensive.title),1),p.createElementVNode("span",jH,"("+p.toDisplayString(e.value)+")",1)]),p.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:a[1]||(a[1]=t=>b("offensive"))},[p.withDirectives(p.createVNode(Qd,{"is-expanded":E.value},null,8,["is-expanded"]),[[p.vShow,r.isExpansionMode]])])]),p.withDirectives(p.createElementVNode("div",KH,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.playsCategories.offensive.categories,t=>(p.openBlock(),p.createElementBlock("div",{key:t.id,class:"plays__checkbox"},[p.createVNode(p.unref(Ho),{label:t.name,fontFamily:r.fontFamily,labelFontSize:"13px","model-value":t.isSelected,"box-value":t.priority||0,"onUpdate:modelValue":o=>w(o,t)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[p.vShow,!r.isExpansionMode||E.value]])]),p.createElementVNode("div",BH,[p.createElementVNode("div",DH,[p.createElementVNode("div",{class:"plays__body__title__info",onClick:a[2]||(a[2]=t=>b("defensive"))},[p.createElementVNode("span",null,p.toDisplayString(r.playsCategories.defensive.title),1),p.createElementVNode("span",WH,"("+p.toDisplayString(k.value)+")",1)]),p.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:a[3]||(a[3]=t=>b("defensive"))},[p.withDirectives(p.createVNode(Qd,{"is-expanded":K.value},null,8,["is-expanded"]),[[p.vShow,r.isExpansionMode]])])]),p.withDirectives(p.createElementVNode("div",GH,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.playsCategories.defensive.categories,t=>(p.openBlock(),p.createElementBlock("div",{key:t.id,class:"plays__checkbox"},[p.createVNode(p.unref(Ho),{label:t.name,fontFamily:r.fontFamily,labelFontSize:"13px","model-value":t.isSelected,"box-value":t.priority||0,"onUpdate:modelValue":o=>w(o,t)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[p.vShow,!r.isExpansionMode||K.value]]),p.createElementVNode("div",XH,[p.createElementVNode("div",{class:"plays__body__title__info",onClick:a[4]||(a[4]=t=>b("possession"))},[p.createElementVNode("span",null,p.toDisplayString(r.playsCategories.possession.title),1),p.createElementVNode("span",JH,"("+p.toDisplayString(v.value)+")",1)]),p.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:a[5]||(a[5]=t=>b("possession"))},[p.withDirectives(p.createVNode(Qd,{"is-expanded":oe.value},null,8,["is-expanded"]),[[p.vShow,r.isExpansionMode]])])]),p.withDirectives(p.createElementVNode("div",ZH,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.playsCategories.possession.categories,t=>(p.openBlock(),p.createElementBlock("div",{key:t.id,class:"plays__checkbox"},[p.createVNode(p.unref(Ho),{label:t.name,fontFamily:r.fontFamily,labelFontSize:"13px","model-value":t.isSelected,"box-value":t.priority||0,"onUpdate:modelValue":o=>w(o,t)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[p.vShow,!r.isExpansionMode||oe.value]]),p.createElementVNode("div",HH,[p.createElementVNode("div",{class:"plays__body__title__info",onClick:a[6]||(a[6]=t=>b("offenses"))},[p.createElementVNode("span",null,p.toDisplayString(r.playsCategories.offenses.title),1),p.createElementVNode("span",YH,"("+p.toDisplayString(n.value)+")",1)]),p.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:a[7]||(a[7]=t=>b("offenses"))},[p.withDirectives(p.createVNode(Qd,{"is-expanded":L.value},null,8,["is-expanded"]),[[p.vShow,r.isExpansionMode]])])]),p.withDirectives(p.createElementVNode("div",QH,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.playsCategories.offenses.categories,t=>(p.openBlock(),p.createElementBlock("div",{key:t.id,class:"plays__checkbox"},[p.createVNode(p.unref(Ho),{label:t.name,fontFamily:r.fontFamily,labelFontSize:"13px","model-value":t.isSelected,"box-value":t.priority||0,"onUpdate:modelValue":o=>w(o,t)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[p.vShow,!r.isExpansionMode||L.value]])])],4)]))}},eY=Bo($H,[["__scopeId","data-v-9d08f5ad"]]),tY={class:"template-results"},nY={__name:"TemplateResults",props:{resultsFilters:{type:Object,default:()=>({results:[]})}},emits:["update:resultsFilters"],setup(r,{emit:U}){const E=r,K=p.computed(()=>E.resultsFilters.results.filter(oe=>oe.isSelected).length);return p.watch(()=>E.resultsFilters,oe=>{U("update:resultsFilters",oe)},{deep:!0,immediate:!0}),(oe,L)=>(p.openBlock(),p.createElementBlock("div",tY,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.resultsFilters.results,(T,e)=>(p.openBlock(),p.createElementBlock("div",{key:e,class:"template-results__result"},[p.createVNode(p.unref(Ho),{modelValue:T.isSelected,"onUpdate:modelValue":k=>T.isSelected=k,label:T.name,"avoid-interaction":K.value===1&&T.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},rY=Bo(nY,[["__scopeId","data-v-c98c0f9d"]]),aY={__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(r,{emit:U}){const E=r,K=p.computed(()=>({"--height":E.height,"--width":E.width,"--padding":E.padding,"--border-radius":E.borderRadius,"--border":`solid ${E.borderWidth} ${E.borderColor}`,"--background-color":E.backgroundColor,"--font-color":E.fontColor,"--font-size":E.fontSize,"--font-family":E.fontFamily,"--active-background-color":E.activeBackgroundColor||E.backgroundColor,"--active-border-color":E.activeBorderColor||E.borderColor,"--active-font-color":E.activeFontColor||E.fontColor}));function oe(){U("click")}return(L,T)=>(p.openBlock(),p.createElementBlock("button",{class:p.normalizeClass(["button",{active:r.isActive}]),style:p.normalizeStyle(K.value),onClick:oe},p.toDisplayString(r.text),7))}},Ah=Bo(aY,[["__scopeId","data-v-0b409578"]]),oY={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},D6={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},iY={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},sY={4:"OF",5:"Cf",6:"S",7:"F"};function w2(r=""){return r?localStorage.getItem(r):localStorage.getItem("user_token")||localStorage.getItem("token")}const lY={class:"dropdown"},cY={class:"selected-item"},uY={__name:"DropdownTextOnly",props:{items:{type:Array,default:()=>[]},itemTextKey:{type:String,default:""},isListSameWidth:{type:Boolean,default:!0}},emits:["input"],setup(r,{emit:U}){function E(K){U("input",K)}return(K,oe)=>(p.openBlock(),p.createElementBlock("div",lY,[p.createVNode(p.unref(yd),p.mergeProps(p.unref(Eh),{"is-list-same-width":r.isListSameWidth,items:r.items,onInput:E}),{default:p.withCtx(({selectedItem:L})=>[p.createElementVNode("div",cY,p.toDisplayString(r.itemTextKey?L[r.itemTextKey]:L),1)]),availableItem:p.withCtx(({item:L})=>[p.createElementVNode("div",null,p.toDisplayString(r.itemTextKey?L[r.itemTextKey]:L),1)]),_:1},16,["is-list-same-width","items"])]))}},Xl=Bo(uY,[["__scopeId","data-v-f3086101"]]),dY={class:"dropdown"},pY={class:"game-item"},fY={key:0,class:"item-game"},hY={class:"match-day"},mY={class:"team-logo"},yY=["src"],gY={class:"text"},vY={class:"text score"},bY={class:"text"},xY={class:"team-logo"},_Y=["src"],wY={class:"item-game"},SY={class:"team-logo"},TY=["src"],kY={class:"text"},CY={class:"text score"},OY={class:"text"},NY={class:"team-logo"},LY=["src"],EY={__name:"DropdownGame",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(r,{emit:U}){function E(K){U("input",K)}return(K,oe)=>(p.openBlock(),p.createElementBlock("div",dY,[p.createVNode(p.unref(yd),p.mergeProps(p.unref(Eh),{items:r.items,onInput:E}),{default:p.withCtx(({selectedItem:L})=>[p.createElementVNode("div",pY,[L.homeTeam?(p.openBlock(),p.createElementBlock("div",fY,[p.createElementVNode("div",hY,p.toDisplayString(L.roundAbbreviation),1),p.createElementVNode("div",mY,[p.createElementVNode("img",{src:L.homeTeam.logo,alt:""},null,8,yY)]),p.createElementVNode("div",gY,p.toDisplayString(L.homeTeam.acronym),1),p.createElementVNode("div",vY,p.toDisplayString(L.score[0])+" - "+p.toDisplayString(L.score[1]),1),p.createElementVNode("div",bY,p.toDisplayString(L.awayTeam.acronym),1),p.createElementVNode("div",xY,[p.createElementVNode("img",{src:L.awayTeam.logo,alt:""},null,8,_Y)])])):p.createCommentVNode("",!0)])]),availableItem:p.withCtx(({item:L})=>[p.createElementVNode("div",wY,[p.createElementVNode("div",null,p.toDisplayString(L.roundAbbreviation),1),p.createElementVNode("div",SY,[p.createElementVNode("img",{src:L.homeTeam.logo,alt:""},null,8,TY)]),p.createElementVNode("div",kY,p.toDisplayString(L.homeTeam.acronym),1),p.createElementVNode("div",CY,p.toDisplayString(L.score[0])+" - "+p.toDisplayString(L.score[1]),1),p.createElementVNode("div",OY,p.toDisplayString(L.awayTeam.acronym),1),p.createElementVNode("div",NY,[p.createElementVNode("img",{src:L.awayTeam.logo,alt:""},null,8,LY)])])]),_:1},16,["items"])]))}},tm=Bo(EY,[["__scopeId","data-v-ab1b7c48"]]),nm=r=>(p.pushScopeId("data-v-b747abbd"),r=r(),p.popScopeId(),r),VY={class:"container"},MY={class:"container__row"},UY={class:"container__row__wrapper"},PY=nm(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),zY={class:"container__row__wrapper__input"},RY={class:"container__row two-items"},AY={class:"container__row__wrapper"},qY=nm(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),FY={key:0,class:"container__row__wrapper__input"},IY={class:"container__row__wrapper"},jY=nm(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),KY={key:0,class:"container__row__wrapper__input"},BY={class:"container__row"},DY={class:"container__row__wrapper"},WY=nm(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),GY={key:0,class:"container__row__wrapper__input"},XY={class:"container__action"},JY={__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(r,{emit:U}){const E={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},K=p.ref(null),oe=p.ref(null),L=p.ref(null),T=p.ref(null);function e(w){K.value=w,U("update:tournament",w)}function k(w){oe.value=w,U("update:season",w)}function v(w){L.value=w}function n(w){T.value=w}return(w,b)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createElementVNode("div",VY,[p.createElementVNode("div",MY,[p.createElementVNode("div",UY,[PY,p.createElementVNode("div",zY,[p.createVNode(Xl,{items:r.tournaments,itemTextKey:"name",onInput:e},null,8,["items"])])])]),p.createElementVNode("div",RY,[p.createElementVNode("div",AY,[qY,K.value&&K.value.seasons?(p.openBlock(),p.createElementBlock("div",FY,[p.createVNode(Xl,{items:K.value.seasons,itemTextKey:"name",onInput:k},null,8,["items"])])):p.createCommentVNode("",!0)]),p.createElementVNode("div",IY,[jY,oe.value&&oe.value.arrayMatchDays?(p.openBlock(),p.createElementBlock("div",KY,[p.createVNode(Xl,{items:oe.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:v},null,8,["items"])])):p.createCommentVNode("",!0)])]),p.createElementVNode("div",BY,[p.createElementVNode("div",DY,[WY,L.value&&L.value.arrayGames?(p.openBlock(),p.createElementBlock("div",GY,[p.createVNode(tm,{items:L.value.arrayGames,onInput:n},null,8,["items"])])):p.createCommentVNode("",!0)])])]),p.createElementVNode("div",XY,[p.createVNode(Ah,p.normalizeProps(p.guardReactiveProps(E)),null,16)])],64))}},ZY=Bo(JY,[["__scopeId","data-v-b747abbd"]]),HY={class:"dropdown"},YY={class:"item-team"},QY={class:"team-logo"},$Y=["src"],eQ={class:"team-acronym"},tQ={class:"item-team"},nQ={class:"team-logo"},rQ=["src"],aQ={class:"team-acronym"},oQ={__name:"DropdownTeam",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(r,{emit:U}){function E(K){U("input",K)}return(K,oe)=>(p.openBlock(),p.createElementBlock("div",HY,[p.createVNode(p.unref(yd),p.mergeProps(p.unref(Eh),{items:r.items,onInput:E}),{default:p.withCtx(({selectedItem:L})=>[p.createElementVNode("div",YY,[p.createElementVNode("div",QY,[p.createElementVNode("img",{src:L.logo,alt:""},null,8,$Y)]),p.createElementVNode("div",eQ,p.toDisplayString(L.acronym),1)])]),availableItem:p.withCtx(({item:L})=>[p.createElementVNode("div",tQ,[p.createElementVNode("div",nQ,[p.createElementVNode("img",{src:L.logo,alt:""},null,8,rQ)]),p.createElementVNode("div",aQ,p.toDisplayString(L.acronym),1)])]),_:1},16,["items"])]))}},W6=Bo(oQ,[["__scopeId","data-v-68d8511b"]]),iQ={class:"advanced-filters"},sQ={class:"advanced-filters__buttons"},lQ=["onClick"],cQ={class:"advanced-filters__filters"},uQ={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(r){const U=r,E=p.defineAsyncComponent(()=>Promise.resolve().then(()=>iie)),K=p.defineAsyncComponent(()=>Promise.resolve().then(()=>Tie)),oe=p.defineAsyncComponent(()=>Promise.resolve().then(()=>Cie)),L=[{name:"Sub categorías",component:E},{name:"Cancha",component:oe},{name:"Condiciones",component:K}],T=p.ref(L[0]),e=p.computed(()=>U.selectedCategory?U.selectedCategory.subcategoryGroups||[]:[]);function k(v){T.value=v}return(v,n)=>(p.openBlock(),p.createElementBlock("div",iQ,[p.createElementVNode("div",sQ,[(p.openBlock(),p.createElementBlock(p.Fragment,null,p.renderList(L,w=>p.createElementVNode("div",{key:w.name,role:"button",class:p.normalizeClass(["advanced-filters__buttons__button",{active:T.value.name===w.name}]),onClick:b=>k(w)},p.toDisplayString(w.name),11,lQ)),64))]),p.createElementVNode("div",cQ,[(p.openBlock(),p.createBlock(p.KeepAlive,null,[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(T.value.component),{"subcategory-groups":e.value},null,8,["subcategory-groups"]))],1024))])]))}},S2=Bo(uQ,[["__scopeId","data-v-6fbac252"]]),ep=r=>(p.pushScopeId("data-v-0f866dba"),r=r(),p.popScopeId(),r),dQ={class:"container"},pQ={class:"container__row"},fQ={class:"container__row__wrapper"},hQ=ep(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),mQ={class:"container__row__wrapper__input"},yQ={class:"container__row two-items"},gQ={class:"container__row__wrapper"},vQ=ep(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),bQ={key:0,class:"container__row__wrapper__input"},xQ={class:"container__row__wrapper"},_Q=ep(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),wQ={key:0,class:"container__row__wrapper__input"},SQ={class:"container__row"},TQ={class:"container__row__wrapper"},kQ=ep(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),CQ={key:0,class:"container__row__wrapper__input"},OQ={class:"container__row"},NQ={class:"container__row__wrapper"},LQ=ep(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),EQ={key:0,class:"container__row__wrapper__input"},VQ={class:"container__row type-and-advanced"},MQ={class:"container__row__wrapper"},UQ=ep(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),PQ={class:"container__row__wrapper__input"},zQ={class:"container__row__wrapper center"},RQ=ep(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),AQ={class:"container__row__wrapper__input"},qQ={class:"container__row"},FQ={class:"container__action"},IQ={__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(r,{emit:U}){const E=r,K={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},oe=p.ref(null),L=p.ref(null);p.ref(null);const T=p.ref(null),e=p.ref(null),k=p.ref(null),v=p.ref(null),n=p.ref(!0),w=p.computed(()=>k.value?k.value.position_id===1?E.advancedFilterCategories.goalkeeper:E.advancedFilterCategories.player:[]);function b(s){oe.value=s,U("update:tournament",s)}function c(s){L.value=s,U("update:season",s)}function a(s){e.value=s,U("update:team",s)}function t(s){k.value=s}function o(s){T.value=s}function i(s){v.value=s}return(s,l)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createElementVNode("div",dQ,[p.createElementVNode("div",pQ,[p.createElementVNode("div",fQ,[hQ,p.createElementVNode("div",mQ,[p.createVNode(Xl,{items:r.tournaments,itemTextKey:"name",onInput:b},null,8,["items"])])])]),p.createElementVNode("div",yQ,[p.createElementVNode("div",gQ,[vQ,oe.value&&oe.value.seasons?(p.openBlock(),p.createElementBlock("div",bQ,[p.createVNode(Xl,{items:oe.value.seasons,itemTextKey:"name",onInput:c},null,8,["items"])])):p.createCommentVNode("",!0)]),p.createElementVNode("div",xQ,[_Q,L.value&&L.value.arrayTeams?(p.openBlock(),p.createElementBlock("div",wQ,[p.createVNode(W6,{items:L.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:a},null,8,["items"])])):p.createCommentVNode("",!0)])]),p.createElementVNode("div",SQ,[p.createElementVNode("div",TQ,[kQ,e.value&&e.value.arrayPlayers?(p.openBlock(),p.createElementBlock("div",CQ,[p.createVNode(Xl,{items:e.value.arrayPlayers,itemTextKey:"player_name",onInput:t},null,8,["items"])])):p.createCommentVNode("",!0)])]),p.createElementVNode("div",OQ,[p.createElementVNode("div",NQ,[LQ,L.value&&L.value.mapGamesByTeam&&e.value?(p.openBlock(),p.createElementBlock("div",EQ,[p.createVNode(tm,{items:L.value.mapGamesByTeam.get(e.value.team_id),onInput:o},null,8,["items"])])):p.createCommentVNode("",!0)])]),p.createElementVNode("div",VQ,[p.createElementVNode("div",MQ,[UQ,p.createElementVNode("div",PQ,[p.createVNode(Xl,{items:w.value,itemTextKey:"name","is-list-same-width":!1,onInput:i},null,8,["items"])])]),p.createElementVNode("div",zQ,[RQ,p.createElementVNode("div",AQ,[p.createVNode(em,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=u=>n.value=u)},null,8,["modelValue"])])])]),p.createElementVNode("div",qQ,[p.createVNode(S2,{"selected-category":v.value},null,8,["selected-category"])])]),p.createElementVNode("div",FQ,[p.createVNode(Ah,p.normalizeProps(p.guardReactiveProps(K)),null,16)])],64))}},jQ=Bo(IQ,[["__scopeId","data-v-0f866dba"]]),sf=r=>(p.pushScopeId("data-v-3622a398"),r=r(),p.popScopeId(),r),KQ={class:"container"},BQ={class:"container__row"},DQ={class:"container__row__wrapper"},WQ=sf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),GQ={class:"container__row__wrapper__input"},XQ={class:"container__row two-items"},JQ={class:"container__row__wrapper"},ZQ=sf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),HQ={key:0,class:"container__row__wrapper__input"},YQ={class:"container__row__wrapper"},QQ=sf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),$Q={key:0,class:"container__row__wrapper__input"},e$={class:"container__row"},t$={class:"container__row__wrapper"},n$=sf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),r$={key:0,class:"container__row__wrapper__input"},a$={class:"container__row type-and-advanced"},o$={class:"container__row__wrapper"},i$=sf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),s$={class:"container__row__wrapper__input"},l$={class:"container__row__wrapper center"},c$=sf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),u$={class:"container__row__wrapper__input"},d$={class:"container__row"},p$={class:"container__action"},f$={__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(r,{emit:U}){const E=r,K={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},oe=p.ref(null),L=p.ref(null);p.ref(null);const T=p.ref(null),e=p.ref(null),k=p.ref(null),v=p.ref(!0),n=p.computed(()=>E.advancedFilterCategories.team);function w(o){oe.value=o,U("update:tournament",o)}function b(o){L.value=o,U("update:season",o)}function c(o){e.value=o,U("update:team",o)}function a(o){T.value=o}function t(o){k.value=o}return(o,i)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createElementVNode("div",KQ,[p.createElementVNode("div",BQ,[p.createElementVNode("div",DQ,[WQ,p.createElementVNode("div",GQ,[p.createVNode(Xl,{items:r.tournaments,itemTextKey:"name",onInput:w},null,8,["items"])])])]),p.createElementVNode("div",XQ,[p.createElementVNode("div",JQ,[ZQ,oe.value&&oe.value.seasons?(p.openBlock(),p.createElementBlock("div",HQ,[p.createVNode(Xl,{items:oe.value.seasons,itemTextKey:"name",onInput:b},null,8,["items"])])):p.createCommentVNode("",!0)]),p.createElementVNode("div",YQ,[QQ,L.value&&L.value.arrayTeams?(p.openBlock(),p.createElementBlock("div",$Q,[p.createVNode(W6,{items:L.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:c},null,8,["items"])])):p.createCommentVNode("",!0)])]),p.createElementVNode("div",e$,[p.createElementVNode("div",t$,[n$,L.value&&L.value.mapGamesByTeam&&e.value?(p.openBlock(),p.createElementBlock("div",r$,[p.createVNode(tm,{items:L.value.mapGamesByTeam.get(e.value.team_id),onInput:a},null,8,["items"])])):p.createCommentVNode("",!0)])]),p.createElementVNode("div",a$,[p.createElementVNode("div",o$,[i$,p.createElementVNode("div",s$,[p.createVNode(Xl,{items:n.value,itemTextKey:"name","is-list-same-width":!1,onInput:t},null,8,["items"])])]),p.createElementVNode("div",l$,[c$,p.createElementVNode("div",u$,[p.createVNode(em,{modelValue:v.value,"onUpdate:modelValue":i[0]||(i[0]=s=>v.value=s)},null,8,["modelValue"])])])]),p.createElementVNode("div",d$,[p.createVNode(S2,{"selected-category":k.value},null,8,["selected-category"])])]),p.createElementVNode("div",p$,[p.createVNode(Ah,p.normalizeProps(p.guardReactiveProps(K)),null,16)])],64))}},h$=Bo(f$,[["__scopeId","data-v-3622a398"]]),lf=r=>(p.pushScopeId("data-v-edabdfc6"),r=r(),p.popScopeId(),r),m$={class:"container"},y$={class:"container__row"},g$={class:"container__row__wrapper"},v$=lf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),b$={class:"container__row__wrapper__input"},x$={class:"container__row two-items"},_$={class:"container__row__wrapper"},w$=lf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),S$={key:0,class:"container__row__wrapper__input"},T$={class:"container__row__wrapper"},k$=lf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),C$={key:0,class:"container__row__wrapper__input"},O$={class:"container__row"},N$={class:"container__row__wrapper"},L$=lf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),E$={key:0,class:"container__row__wrapper__input"},V$={class:"container__row type-and-advanced"},M$={class:"container__row__wrapper"},U$=lf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),P$={class:"container__row__wrapper__input"},z$={class:"container__row__wrapper center"},R$=lf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),A$={class:"container__row__wrapper__input",style:{width:"fit-content"}},q$={class:"container__row"},F$={class:"container__action"},I$={__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(r,{emit:U}){const E=r,K={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},oe=p.ref(null),L=p.ref(null),T=p.ref(null),e=p.ref(null),k=p.ref(null),v=p.ref(!0),n=p.computed(()=>E.advancedFilterCategories.games);function w(o){oe.value=o,U("update:tournament",o)}function b(o){L.value=o,U("update:season",o)}function c(o){T.value=o}function a(o){e.value=o}function t(o){k.value=o}return(o,i)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createElementVNode("div",m$,[p.createElementVNode("div",y$,[p.createElementVNode("div",g$,[v$,p.createElementVNode("div",b$,[p.createVNode(Xl,{items:r.tournaments,itemTextKey:"name",onInput:w},null,8,["items"])])])]),p.createElementVNode("div",x$,[p.createElementVNode("div",_$,[w$,oe.value&&oe.value.seasons?(p.openBlock(),p.createElementBlock("div",S$,[p.createVNode(Xl,{items:oe.value.seasons,itemTextKey:"name",onInput:b},null,8,["items"])])):p.createCommentVNode("",!0)]),p.createElementVNode("div",T$,[k$,L.value&&L.value.arrayMatchDays?(p.openBlock(),p.createElementBlock("div",C$,[p.createVNode(Xl,{items:L.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:c},null,8,["items"])])):p.createCommentVNode("",!0)])]),p.createElementVNode("div",O$,[p.createElementVNode("div",N$,[L$,T.value&&T.value.arrayGames?(p.openBlock(),p.createElementBlock("div",E$,[p.createVNode(tm,{items:T.value.arrayGames,onInput:a},null,8,["items"])])):p.createCommentVNode("",!0)])]),p.createElementVNode("div",V$,[p.createElementVNode("div",M$,[U$,p.createElementVNode("div",P$,[p.createVNode(Xl,{items:n.value,itemTextKey:"name","is-list-same-width":!1,onInput:t},null,8,["items"])])]),p.createElementVNode("div",z$,[R$,p.createElementVNode("div",A$,[p.createVNode(em,{modelValue:v.value,"onUpdate:modelValue":i[0]||(i[0]=s=>v.value=s)},null,8,["modelValue"])])])]),p.createElementVNode("div",q$,[p.createVNode(S2,{"selected-category":k.value},null,8,["selected-category"])])]),p.createElementVNode("div",F$,[p.createVNode(Ah,p.normalizeProps(p.guardReactiveProps(K)),null,16)])],64))}},j$=Bo(I$,[["__scopeId","data-v-edabdfc6"]]),K$={class:"template-videos"},B$={class:"template-videos__header"},D$={class:"template-videos__body"},W$=p.defineComponent({name:"TemplateVideos",components:{VideosGoals:ZY,VideosPlayer:jQ,VideosTeam:h$,VideosGame:j$}}),G$=Object.assign(W$,{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(r,{emit:U}){const E=r,K={padding:"4px 18px",borderRadius:"160px",backgroundColor:"#3A4851",borderColor:"#3A4851",activeBorderColor:"#CBEE6B",fontSize:"11px",fontColor:"#FFFFFF"},oe=[],L=["g-23","g-24","g-25"],T={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]}},e={player:1,team:2,goalkeeper:3},k=p.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),v=p.ref([]),n=p.ref(k.value[0]),w=p.ref({}),b=p.ref({}),c=p.ref({}),a=p.ref({}),t=p.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),o=p.ref([]);p.ref({});const i=p.ref(null);p.watch(w,P=>{b.value.numberSeasonSelectedIndex=b.value.seasons.findIndex(R=>R.id===P.id),P.arrayMatchDays?(a.value=P.arrayMatchDays[0]||{},c.value=P.arrayTeams[0]||{}):(g(P),f(P))}),p.watch(c,()=>{setTimeout(()=>{w.value.mapPlayersByTeam&&(!c.value.arrayPlayers||!c.value.arrayPlayers.length)&&(c.value.arrayPlayers=w.value.mapPlayersByTeam.get(c.value.team_id))},700)});async function s(){try{v.value=await l()}catch(P){throw new Error(P)}}async function l(){try{const P={Authorization:w2()||E.token},R={}.API_TOURNAMENTS||E.tournamentsUrl,A=await zh.get(R,{headers:P});return A.data?A.data.map(q=>({...q.tournament,seasons:q.seasons})):[]}catch(P){return Promise.reject(P)}}async function u(P,R,A=""){U("loading-data");let q=A;try{q||(q={}.API_CALENDAR_GAMES_BY_SEASON||E.gamesUrl,P.forEach((W,Y)=>{q+=`${Y===0?"":"&"}seasons=${W}`}));const j={Authorization:w2()||E.token},{data:{data:X,teams:F}}=await zh.get(q,{headers:j});return{seasonsAndGames:X,seasonsAndTeams:F}}catch(j){if(R>0)return u(P,R-1,q);throw new Error(j)}finally{U("loading-data")}}async function d(P){try{const R={Authorization:w2()||E.token},A=` ${{}.API_PLAYERS_BY_SEASON||E.playersUrl}${P.seasonId}`,q=await zh.get(A,{headers:R});return q.data?q.data.players:[]}catch(R){return Promise.reject(R)}}async function g(P){try{const{seasonsAndGames:R,seasonsAndTeams:A}=await u([P.id,...P.related_seasons.map(F=>F.id)],3),q=A.find(F=>F._id===P.id);w.value.arrayTeams=[],w.value.mapTeams=new Map;const j=q.teams.reduce((F,W)=>(w.value.arrayTeams.push(W),w.value.mapTeams.set(W.team_id,{name:W.colloquial_name,acronym:W.acronym,logo:W.logo,id:W.team_id}),F.set(W.team_id,W),F),new Map);c.value=w.value.arrayTeams[0],w.value.mapGames=new Map,w.value.mapGamesByTeam=new Map;const X=Array.from(R.reduce((F,W)=>(W.games.forEach(Y=>{if(Y.game_status===1&&Y.has_video){(!w.value.maxGameId||Y.game_id>w.value.maxGameId)&&(w.value.maxGameId=Y.game_id);let B=Y.matchday_abbreviation.replace("M","J"),G=Y.matchday_abbreviation.replace("M","Jornada ");const J=Y.matchday_abbreviation.replace("M","");W.season_type===0?b.value.tournament_type===1&&(Y.seasonId===881?(B=sY[J]||B,G=iY[J]||G):(B=D6[Y.matchday_abbreviation]?Y.matchday_abbreviation:B,G=D6[Y.matchday_abbreviation]||G,B==="FINAL"&&(B="F"))):W.season_type===1?(B=oY[Y.matchday_abbreviation],G=B):(B=Y.matchday_abbreviation.replace("PO","R"),G="Repechaje"),Y.roundAbbreviation=B,Y.roundName=G,w.value.mapGames.set(Y.game_id,{id:Y.game_id,date:Y.date,dateTimeMillis:new Date(Y.date_time_utc).valueOf(),homeTeam:w.value.mapTeams.get(Y.home_team),awayTeam:w.value.mapTeams.get(Y.visiting_team),roundAbbreviation:Y.roundAbbreviation,roundName:Y.roundName,score:Y.score,gameResult:Y.score[0]>Y.score[1]?1:Y.score[0]<Y.score[1]?2:3,seasonId:W.season_id});const se=F.get(Y.roundAbbreviation);Y.numberDateTimeMillis=new Date(Y.date_time_utc).getTime(),Y.homeTeam=j.get(Y.home_team),Y.awayTeam=j.get(Y.visiting_team);const re=w.value.mapGamesByTeam.get(Y.home_team),ne=w.value.mapGamesByTeam.get(Y.visiting_team);re?re.push(Y):w.value.mapGamesByTeam.set(Y.home_team,[Y]),ne?ne.push(Y):w.value.mapGamesByTeam.set(Y.visiting_team,[Y]),se?se.arrayGames.push(Y):F.set(Y.roundAbbreviation,{stringMatchDayAbbreviation:Y.roundAbbreviation,stringMatchDayName:Y.roundName,arrayGames:[Y]})}}),F),new Map).values());X.reverse(),X.forEach(F=>{F.arrayGames.sort((W,Y)=>W.numberDateTimeMillis-Y.numberDateTimeMillis)}),w.value.arrayMatchDays=X,a.value=X[0]||{}}catch(R){throw new Error(R)}}async function f(P){try{const R=await _(P.id);w.value.mapPlayers=new Map,w.value.mapPlayersByTeam=R.reduce((A,q)=>{w.value.mapPlayers.set(q.player_id,{id:q.player_id,name:q.player_name,shortName:q.shortName,photo:q.player_photo,teamId:q.team_id,positionId:q.position_id});const j=A.get(q.team_id);return j?j.push(q):A.set(q.team_id,[q]),A},new Map)}catch(R){throw new Error(R)}}async function C(){try{let P=[];t.value.isEmpty?(P=await S(),o.value={...P}):P=o.value;const R=[];if(P&&P.length){t.value=P.reduce((W,Y)=>{if(Y.group_id!=="g-55"){const B={idAux:Y.group_id,ids:[...Y.ids?Y.ids:[],...Y.rival_Ids?Y.rival_Ids:[]],type:Y.type,name:Y.name,coordinatePoint:Y.coordinate_point,requiresRivalTransform:L.includes(Y.group_id)};B.idsAux=[...B.ids],B.subcategoryGroups=Y.group_id==="g-12"?[]:y(Y,0,new Map,!1,{},B.idsAux),R.push(B),B.type.includes(e.player)&&W.player.push(B),B.type.includes(e.team)&&(B.idAux!=="g-2"&&W.games.push(B),W.team.push(B)),B.type.includes(e.goalkeeper)&&W.goalkeeper.push(B)}return W},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const A=new Map,q="Resumen",j="Todas sus jugadas",X=t.value.player.reduce((W,Y)=>{const B=m(Y);return B.forEach(G=>{A.set(G,Y.name)}),W.push(...B),W},[]),F=t.value.goalkeeper.reduce((W,Y)=>{const B=m(Y);return B.forEach(G=>{A.set(G,Y.name)}),W.push(...B),W},[]);t.value.games.unshift({name:q,arrayCategoriesIds:T.games,booleanIsBestPlays:!0}),t.value.team.unshift({name:q,arrayCategoriesIds:T.team,booleanIsBestPlays:!0}),t.value.player.unshift({name:q,arrayCategoriesIds:T.player.regular,booleanIsBestPlays:!0},{name:j,arrayCategoriesIds:X,booleanIsMinutesPlayed:!0}),t.value.goalkeeper.unshift({name:q,arrayCategoriesIds:T.player.goalkeeper,booleanIsBestPlays:!0},{name:j,arrayCategoriesIds:F,booleanIsMinutesPlayed:!0})}}catch(P){throw new Error(P)}}function y(P,R=0,A=new Map,q=!1,j={},X=[]){if(!P.group_id)return;let F=A.get(R);const W=q?`${P.id_category}_r`:P.id_category;P.id_category&&X.push(P.id_category);let Y={ids:[W],groupId:P.group_id,level:R,name:P.name,isSelected:!0,fatherCategories:R>0?[j]:[],idsByFatherCategory:{[P.category_father]:[W]}};if(R>0&&R===1&&(Y.id=P.id_category),F&&R!==0){const B=P.group_id.charAt(P.group_id.length-1),G=F.find(J=>J.groupId.endsWith(B));G&&!oe.includes(Y.groupId)?(Y=G,G.ids.push(W),G.fatherCategories.push(j),G.fatherCategories.forEach(J=>{J.childCategories?J.childCategories.find(se=>se.groupId===Y.groupId)||J.childCategories.push(Y):J.childCategories=[Y]}),G.idsByFatherCategory[P.category_father]?G.idsByFatherCategory[P.category_father].push(W):G.idsByFatherCategory[P.category_father]=[W]):(Y.fatherCategories.forEach(J=>{J.childCategories?J.childCategories.find(se=>se.groupId===Y.groupId)||J.childCategories.push(Y):J.childCategories=[Y]}),F.push(Y))}else R!==0&&(j.childCategories?j.childCategories.push(Y):j.childCategories=[Y],F=[Y],A.set(R,F));if(P.categories&&P.categories.length?P.categories.forEach(B=>{y(B,R+1,A,q,Y,X)}):P.rival_categories&&P.rival_categories.length&&P.rival_categories.forEach(B=>{y(B,R+1,A,!0,Y,X)}),R===0)return Array.from(A.values())}function m(P){const R=P||P;if(R.booleanIsBestPlays)return R.arrayCategoriesIds;const A={total:[],toRemove:[]};if(R.subcategoryGroups&&R.subcategoryGroups.length?R.subcategoryGroups[0].forEach(q=>{x(q,null,A)}):(R.ids&&A.total.push(...R.ids),R.rival_ids&&R.rival_ids.forEach(q=>{A.total.push(`${q}_r`)})),A.total=A.total.reduce((q,j)=>(A.toRemove.includes(j)||q.push(j),q),[]),!P){const q=R.name.toLowerCase().includes("recibid");i.value.isRivalSubject=q,i.value.avoidCategorySingleName=q,i.value.coordinatePoint=R.coordinatePoint,i.value.requiresRivalTransform=R.requiresRivalTransform}return A.total}function x(P,R=[],A={total:[],toRemove:[]}){P.isSelected?P.childCategories?P.childCategories.forEach(q=>{const j=R?Object.entries(P.idsByFatherCategory).reduce((X,[F,W])=>(R.includes(Number(F))&&W.forEach(Y=>{typeof Y=="string"&&Y.endsWith("_r")?X.push(Number(Y.split("_")[0])):X.push(Y)}),X),[]):[P.id];x(q,j,A)}):R?Object.entries(P.idsByFatherCategory).forEach(([q,j])=>{R.includes(Number(q))&&j.forEach(X=>{A.total.push(X)})}):P.level===1?Object.entries(P.idsByFatherCategory).forEach(([q,j])=>{j.forEach(X=>{A.total.push(X)})}):A.total.push(P.id):P.childCategories||P.ids.forEach(q=>{A.toRemove.push(q)})}async function _(P){try{const R=await d({seasonId:P});return R.forEach(A=>{const[q,j]=A.player_name.split(","),X=q.split(" ");let F="";for(const W of X)if(F+=` ${W}`,W.length>3)break;A.shortName=j&&q?`${j.trim().charAt(0)}.${F}`:""}),R}catch(R){return Promise.reject(R)}}async function S(){try{const P={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await zh.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:P})).data||[]}catch(P){return Promise.reject(P)}}function O(P){n.value=P}function h(P){b.value=P,w.value=P.seasons[0]}function M(P){w.value=P}function N(P){c.value=P}return s(),C(),(P,R)=>(p.openBlock(),p.createElementBlock("div",K$,[p.createElementVNode("div",B$,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(k.value,A=>(p.openBlock(),p.createBlock(Ah,p.mergeProps({key:A.name},K,{text:A.name,"is-active":n.value.componentName===A.componentName,tournaments:v.value,onClick:q=>O(A)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),p.createElementVNode("div",D$,[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(n.value.componentName),{tournaments:v.value,"advanced-filter-categories":t.value,"onUpdate:tournament":h,"onUpdate:season":M,"onUpdate:team":N},null,40,["tournaments","advanced-filter-categories"]))])]))}}),X$=Bo(G$,[["__scopeId","data-v-721a4172"]]),J$={key:0,class:"productivity__header__text"},Z$={key:1,class:"productivity__header__checkbox"},H$={class:"templates__body"},Y$={key:0,class:"templates-plays"},Q$={key:1,class:"templates-productivity"},$$={key:2,class:"template-field"},eee={key:3,class:"template-details"},tee={key:4,class:"template-personal-data"},nee={key:5,class:"template-leagues"},ree={key:6,class:"template-plays"},aee={key:7,class:"template-plays"},oee={key:8,class:"template-universe"},iee={key:9,class:"template-distance"},see={key:10,class:"template-results"},lee={key:11,class:"template-games"},cee={key:12,class:"template-videos"},uee={key:1,class:"templates__footer"},dee={class:"templates__footer__button"},pee={class:"templates__footer__button"},fee={__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}]},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}]},tournaments:{type:Array,default:()=>[]},playsGolstatsCategories:{type:Array,default:()=>[]},universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(r,U)=>U+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},personalDataFilters:{type:Object,default:()=>({})},distanceFilters:{type:Object,default:()=>({minValue:5,maxValue:30,minLimit:5,maxLimit:30})},resultsFilters:{type:Object,default:()=>({})},gamesFilters:{type:Array,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},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"],setup(r,{expose:U,emit:E}){const K=r,oe=p.ref(null),L=p.ref(!1),T=p.ref({playingAs:K.playingAs,gameSections:K.gameSections}),e=p.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),k=p.ref(null),v=p.computed(()=>({"--width":K.width,"--max-width":K.maxWidth,"--background-color":K.backgroundColor,"--border-radius":K.borderRadius,"--border-color":K.borderColor,"--border-width":K.borderWidth,"--box-shadow":K.boxShadow,"--padding":K.filterType!==Tr.VIDEOS?K.isExpansionMode?"10px 0":K.padding:"0","--footer-border-color":K.footerBorderColor,"--footer-border-width":K.footerBorderWidth,"--text-color":K.textColor})),n=p.computed(()=>{const R=[];return K.productivityCategories&&Object.values(K.productivityCategories).forEach(A=>{A.categories&&A.categories.forEach(q=>{R.push(q)})}),R}),w=p.computed(()=>{const R=[];return K.playsCategories&&Object.values(K.playsCategories).forEach(A=>{A.categories&&A.categories.forEach(q=>{R.push(q)})}),R}),b=p.computed(()=>{const R=n.value.filter(A=>A.isSelected);return t(R),K.filterType===Tr.PRODUCTIVITY&&E("change-categories-selected",R.length),R.length}),c=p.computed(()=>b.value>=K.productivityMaxCategories),a=p.computed(()=>K.playingAs.concat(K.gameSections));p.watch(T,R=>{K.filterType===Tr.DETAILS&&E("update:filters",R)},{immediate:!0,deep:!0}),p.watch(()=>a.value,R=>{if(K.filterType===Tr.DETAILS){const A=R.filter(q=>q.isSelected);E("change-filters-selected",A.length)}},{immediate:!0,deep:!0}),p.watch(()=>K.playsGolstatsCategories,R=>{if(K.filterType===Tr.PLAYS_TYPES||K.filterType===Tr.GOLSTATS){const A=R.filter(q=>q.isSelected);E("change-filters-selected",A.length)}},{immediate:!0}),p.watch(()=>K.fieldAreas,R=>{K.filterType===Tr.FIELD&&E("change-filters-selected",R.length)}),p.watch(w,()=>{K.filterType===Tr.PLAYS&&f()},{immediate:!0,deep:!0}),p.watch(n,()=>{K.filterType===Tr.PRODUCTIVITY&&C()},{immediate:!0,deep:!0}),p.watch(()=>K.resultsFilters,R=>{K.filterType===Tr.RESULTS&&E("change-filters-selected",R.results.filter(A=>A.isSelected).length)},{immediate:!0,deep:!0});function t(R){setTimeout(()=>{R.sort((A,q)=>A.priority-q.priority),R.forEach((A,q)=>{A.priority=q+1})},10)}function o(R=null){i(R)}function i(R=null){K.filterType===Tr.PRODUCTIVITY?n.value.forEach(A=>{A.isSelected=!1}):K.filterType===Tr.PLAYS?(w.value.forEach(A=>{A.isSelected=!0}),L.value=!0):K.filterType===Tr.FIELD?E("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):K.filterType===Tr.DETAILS?(K.playingAs.forEach(A=>{A.isSelected=!0}),K.gameSections.forEach(A=>{A.isSelected=!0})):K.filterType===Tr.TOURNAMENTS?(K.tournaments.forEach(A=>{A.isSelected=!0}),E("change-filters-selected",0)):K.filterType===Tr.PLAYS_TYPES?K.playsGolstatsCategories.forEach(A=>{A.isSelected=!0}):K.filterType===Tr.GOLSTATS?K.playsGolstatsCategories.forEach(A=>{A.isSelected=!1}):K.filterType===Tr.UNIVERSE?k.value&&k.value.resetFilters():K.filterType===Tr.PERSONAL_DATA?(oe.value&&oe.value.onClearFilters(Yd.All),E("change-personal-data-filters",{})):K.filterType===Tr.DISTANCE?E("update:filters",{minValue:K.distanceFilters.minLimit,maxValue:K.distanceFilters.maxLimit}):K.filterType===Tr.RESULTS?E("update:filters",{results:K.resultsFilters.results.map(A=>(A.isSelected=!0,A))}):K.filterType===Tr.GAMES&&K.gamesFilters.forEach(A=>{A.isSelected=!0})}function s(R){K.filterType===Tr.TOURNAMENTS&&E("change-filters-selected",R)}function l(R){K.filterType===Tr.UNIVERSE&&E("change-universe-filters",R)}function u(R){K.filterType===Tr.FIELD&&E("change-field-areas",R)}function d(R){K.filterType===Tr.GOLSTATS&&E("change-filters-selected",R)}function g(R){L.value=R,K.playsCategories.offensive.categories.forEach(A=>{A.isSelected=R}),K.playsCategories.defensive.categories.forEach(A=>{A.isSelected=R}),K.playsCategories.possession.categories.forEach(A=>{A.isSelected=R}),K.playsCategories.offenses.categories.forEach(A=>{A.isSelected=R})}function f(){let R=0;const A={playsCategories:w.value.filter(q=>q.isSelected)};L.value=A.playsCategories.length===w.value.length,R=A.playsCategories.length,Object.values(e.value).forEach(q=>{q&&R++}),E("change-filters-selected",R),E("update:filters",A)}function C(){let R=0;const A={productivityFilters:n.value.filter(q=>q.isSelected),offensesConditions:e.value};R=A.productivityFilters.length,Object.values(e.value).forEach(q=>{q&&R++}),E("change-filters-selected",R),E("update:filters",A)}function y(){E("apply")}function m(){(K.filterType===Tr.PLAYS_TYPES||K.filterType===Tr.GOLSTATS)&&K.playsGolstatsCategories&&K.playsGolstatsCategories.forEach(R=>{R.isSelected=!1}),E("apply")}function x(R){K.filterType===Tr.PERSONAL_DATA&&E("update:filters",R)}function _(R){K.filterType===Tr.TOURNAMENTS&&E("update:filters",R)}function S(R){(K.filterType===Tr.PLAYS_TYPES||K.filterType===Tr.GOLSTATS)&&E("update:filters",R)}function O(R){K.filterType===Tr.PRODUCTIVITY&&(e.value=R,C())}function h(R){K.filterType===Tr.DISTANCE&&E("update:filters",R)}function M(R){K.filterType===Tr.RESULTS&&E("update:filters",R)}function N(R){K.filterType===Tr.GAMES&&(E("update:filters",R),E("change-filters-selected",R.filter(A=>A.isSelected).length))}const P=p.computed(()=>K.filterType===Tr.PLAYS?w.value.length:K.filterType===Tr.PRODUCTIVITY?n.value.length:K.filterType===Tr.FIELD?16:K.filterType===Tr.UNIVERSE?6:K.filterType===Tr.DETAILS?8:K.filterType===Tr.RESULTS?3:K.filterType===Tr.GAMES?K.gamesFilters.length:0);return E("total-filters",P),U({clearFilters:o}),(R,A)=>(p.openBlock(),p.createElementBlock("div",{class:"templates",style:p.normalizeStyle(v.value)},[r.filterType===p.unref(Tr).PRODUCTIVITY||r.filterType===p.unref(Tr).PLAYS?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(r.isExpansionMode?"productivity__header__expansion":"productivity__header")},[r.filterType===p.unref(Tr).PRODUCTIVITY?(p.openBlock(),p.createElementBlock("div",J$," Selecciona hasta 5 categorias en orden de importancia ")):r.filterType===p.unref(Tr).PLAYS?(p.openBlock(),p.createElementBlock("div",Z$,[p.createVNode(p.unref(Ho),{label:"Todos los tipos de jugadas",fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":L.value,"label-color":r.textColor,"onUpdate:modelValue":g},null,8,["model-value","label-color"])])):p.createCommentVNode("",!0)],2)):p.createCommentVNode("",!0),p.createElementVNode("div",H$,[r.filterType===p.unref(Tr).PLAYS?(p.openBlock(),p.createElementBlock("div",Y$,[p.createVNode(eY,{"plays-categories":r.playsCategories,"is-expansion-mode":r.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).PRODUCTIVITY?(p.openBlock(),p.createElementBlock("div",Q$,[p.createVNode(kW,{"productivity-categories":r.productivityCategories,"number-of-categories-selected":b.value,"are-max-categories-reached":c.value,"is-expansion-mode":r.isExpansionMode,"onUpdate:offensesConditions":O},null,8,["productivity-categories","number-of-categories-selected","are-max-categories-reached","is-expansion-mode"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).FIELD?(p.openBlock(),p.createElementBlock("div",$$,[p.createVNode(p.unref(i6),p.mergeProps(r.fieldComponentProps,{"background-color":r.backgroundColor,value:r.fieldAreas,"onUpdate:modelValue":u}),null,16,["background-color","value"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).DETAILS?(p.openBlock(),p.createElementBlock("div",eee,[p.createVNode(DW,{"playing-as":r.playingAs,"game-sections":r.gameSections,fontFamily:r.fontFamily},null,8,["playing-as","game-sections","fontFamily"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).PERSONAL_DATA?(p.openBlock(),p.createElementBlock("div",tee,[p.createVNode(AH,{ref_key:"templatePersonalData",ref:oe,"personal-data-filters":r.personalDataFilters,season:r.season,token:r.token,"onUpdate:filters":x},null,8,["personal-data-filters","season","token"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).TOURNAMENTS?(p.openBlock(),p.createElementBlock("div",nee,[p.createVNode(HW,{tournaments:r.tournaments,onChangeFiltersSelected:s,"onUpdate:filters":_},null,8,["tournaments"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).PLAYS_TYPES?(p.openBlock(),p.createElementBlock("div",ree,[p.createVNode(B_,{height:r.modalHeight,type:r.filterType,categories:r.playsGolstatsCategories,"onUpdate:filters":S},null,8,["height","type","categories"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).GOLSTATS?(p.openBlock(),p.createElementBlock("div",aee,[p.createVNode(B_,{height:r.modalHeight,type:r.filterType,categories:r.playsGolstatsCategories,onChangeFiltersSelected:d,"onUpdate:filters":S},null,8,["height","type","categories"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).UNIVERSE?(p.openBlock(),p.createElementBlock("div",oee,[p.createVNode(BG,{ref_key:"templateUniverse",ref:k,"universe-filters":r.universeFilters,"onUpdate:universeFilters":l},null,8,["universe-filters"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).DISTANCE?(p.openBlock(),p.createElementBlock("div",iee,[p.createVNode(uX,{distance:r.distanceFilters,"onUpdate:distanceFilters":h},null,8,["distance"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).RESULTS?(p.openBlock(),p.createElementBlock("div",see,[p.createVNode(rY,{"results-filters":r.resultsFilters,"onUpdate:resultsFilters":M},null,8,["results-filters"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).GAMES?(p.openBlock(),p.createElementBlock("div",lee,[p.createVNode(gX,{"games-filters":r.gamesFilters,"onUpdate:gamesFilters":N},null,8,["games-filters"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).VIDEOS?(p.openBlock(),p.createElementBlock("div",cee,[p.createVNode(X$,{token:r.token},null,8,["token"])])):p.createCommentVNode("",!0)]),r.isFooterVisible?(p.openBlock(),p.createElementBlock("div",uee,[r.isFooterCancelOnly?(p.openBlock(),p.createBlock(p.unref(n2),{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:m})):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createElementVNode("div",dee,[p.createVNode(p.unref(n2),{"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:i})]),p.createElementVNode("div",pee,[p.createVNode(p.unref(n2),{"text-value":"Listo","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"#cbee6b",onClick:y})])],64))])):p.createCommentVNode("",!0)],4))}},G6=Bo(fee,[["__scopeId","data-v-b25b7d53"]]),hee=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E},mee={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(r){return!Number.isNaN(r)}},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(r,{emit:U}){const E=r;p.useCssVars(c=>({"321b6381":r.width,"14b0f61d":k.value,"62e0e83c":r.menuWidth}));const K=p.ref(null),oe=p.ref(!1),L=p.ref(null),T=p.ref({}),e=p.computed(()=>{const c={top:"0px"};if(K.value){const a=K.value.getBoundingClientRect();c.top=`${a.height+E.menuMarginTop}px`}return c}),k=p.computed(()=>oe.value?E.zIndexOpen:1);p.watch(()=>E.modelValue,c=>{c!==oe.value&&(oe.value=c)},{immediate:!0}),p.watch(oe,c=>{c||setTimeout(()=>{T.value["--translate-x"]="0px"},500)});function v(c){const a=window.innerWidth,t=c.boundingClientRect.x,o=c.boundingClientRect.x+c.boundingClientRect.width,i=t<=0?Math.abs(t)+4:o>=a?a-(o+10):0;T.value["--translate-x"]=`${i}px`}function n(){new IntersectionObserver(c=>{c[0].intersectionRatio>0&&v(c[0])}).observe(L.value)}function w(){oe.value=!oe.value,U("update:modelValue",oe.value)}function b(){oe.value=!1,U("update:modelValue",oe.value)}return p.onMounted(()=>{p.nextTick(()=>{n()})}),(c,a)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[oe.value?(p.openBlock(),p.createElementBlock("div",{key:0,id:"menu-overlay",onClick:b})):p.createCommentVNode("",!0),p.createElementVNode("div",{class:"menu-container",style:p.normalizeStyle(T.value)},[p.createElementVNode("div",{ref_key:"trigger",ref:K,class:"menu-container__trigger",onClick:w},[p.renderSlot(c.$slots,"trigger",{},void 0,!0)],512),p.createVNode(p.Transition,null,{default:p.withCtx(()=>[p.withDirectives(p.createElementVNode("div",{ref_key:"menu",ref:L,class:"menu-container__menu",style:p.normalizeStyle(e.value)},[p.renderSlot(c.$slots,"menu",{},void 0,!0)],4),[[p.vShow,oe.value]])]),_:3})],4)],64))}},yee=hee(mee,[["__scopeId","data-v-2f344053"]]),gee=r=>(p.pushScopeId("data-v-de95419d"),r=r(),p.popScopeId(),r),vee={class:"button__icon"},bee={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xee=["stroke"],_ee=["stroke"],wee=["stroke"],See={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tee=["stroke"],kee=["stroke"],Cee=["fill"],Oee={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nee=["fill"],Lee={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eee=["stroke"],Vee=["stroke"],Mee=["stroke"],Uee=["stroke"],Pee=["stroke"],zee={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ree=gee(()=>p.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)),Aee=[Ree],qee={class:"button__text"},Fee={key:1,style:{width:"20px"}},Iee={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jee=["fill"],Kee={__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(r){const U=r,E=p.computed(()=>({"--height":U.height,"--width":U.width,"--text-font-family":U.textFontFamily,"--text-font-size":U.textFontSize,"--background-color":U.backgroundColor,"--border-radius":U.borderRadius,"--border-color":U.isActive?U.borderColorActive:U.borderColor,"--border-width":U.borderWidth,"--padding":U.padding,"--font-color":U.fontColor})),K=p.computed(()=>({"--info-background-color":U.infoValue?U.infoBackgroundColor:"transparent","--info-border-color":U.infoValue?U.infoBorderColor:"transparent","--info-border-radius":U.infoBorderRadius,"--info-font-family":U.infoFontFamily,"--info-font-size":U.infoFontSize,"--info-font-color":U.infoFontColor,"--info-height":U.infoHeight,"--info-width":U.infoWidth})),oe=p.computed(()=>[Tr.PLAYS_TYPES,Tr.GOLSTATS,Tr.TOURNAMENTS,Tr.PLAYS,Tr.RESULTS].includes(U.iconType)),L=p.computed(()=>[Tr.FIELD,Tr.GAMES].includes(U.iconType)),T=p.computed(()=>[Tr.DETAILS,Tr.UNIVERSE].includes(U.iconType)),e=p.computed(()=>[Tr.PERSONAL_DATA].includes(U.iconType)),k=p.computed(()=>[Tr.PRODUCTIVITY].includes(U.iconType));return(v,n)=>(p.openBlock(),p.createElementBlock("div",{class:"button",style:p.normalizeStyle(E.value)},[p.createElementVNode("div",vee,[e.value?(p.openBlock(),p.createElementBlock("svg",bee,[p.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:r.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,xee),p.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:r.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,_ee),p.createElementVNode("path",{d:"M15.164 5.16663V10.1666M17.664 7.66659H12.6641",stroke:r.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,wee)])):p.createCommentVNode("",!0),oe.value?(p.openBlock(),p.createElementBlock("svg",See,[p.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:r.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Tee),p.createElementVNode("path",{d:"M15.9996 16.8727L14.8359 15.7091",stroke:r.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,kee),p.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:r.iconColor,stroke:"#353F47","stroke-width":"0.3"},null,8,Cee)])):p.createCommentVNode("",!0),T.value?(p.openBlock(),p.createElementBlock("svg",Oee,[p.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:r.iconColor},null,8,Nee)])):p.createCommentVNode("",!0),L.value?(p.openBlock(),p.createElementBlock("svg",Lee,[p.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:r.iconColor},null,8,Eee),p.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:r.iconColor},null,8,Vee),p.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:r.iconColor},null,8,Mee),p.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:r.iconColor},null,8,Uee),p.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:r.iconColor},null,8,Pee)])):p.createCommentVNode("",!0),k.value?(p.openBlock(),p.createElementBlock("svg",zee,Aee)):p.createCommentVNode("",!0)]),p.createElementVNode("div",qee,p.toDisplayString(r.text),1),r.showBadgeOnFilterFull?(p.openBlock(),p.createElementBlock("div",{key:0,class:"button__info",style:p.normalizeStyle(K.value)},[p.withDirectives(p.createElementVNode("span",null,p.toDisplayString(r.infoValue),513),[[p.vShow,r.infoValue]])],4)):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[r.filtersTotal>0&&r.filtersTotal!=parseInt(r.infoValue)?(p.openBlock(),p.createElementBlock("div",{key:0,class:"button__info",style:p.normalizeStyle(K.value)},[p.withDirectives(p.createElementVNode("span",null,p.toDisplayString(r.infoValue),513),[[p.vShow,r.infoValue]])],4)):r.filtersTotal>0?(p.openBlock(),p.createElementBlock("div",Fee)):p.createCommentVNode("",!0)],64)),p.createElementVNode("div",{class:p.normalizeClass(["button__arrow",{"rotated-180":r.isActive}])},[(p.openBlock(),p.createElementBlock("svg",Iee,[p.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:r.arrowColor},null,8,jee)]))],2)],4))}},Bee=Bo(Kee,[["__scopeId","data-v-de95419d"]]),Dee=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E},Wee=r=>(p.pushScopeId("data-v-0ca35abc"),r=r(),p.popScopeId(),r),Gee={class:"panel__activator__icon"},Xee=["src"],Jee={class:"panel__activator__text"},Zee=["height","width"],Hee=["stroke"],Yee={class:"panel__content"},Qee=Wee(()=>p.createElementVNode("div",{class:"panel__content__separator"},null,-1)),$ee={class:"panel__content__slot"},ete={__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(r,{emit:U}){const E=r,K=p.ref(E.modelValue),oe=p.computed(()=>({"--activator-height":E.height,"--activator-text-font-family":E.textFontFamily,"--activator-text-font-size":E.textFontSize,"--activator-text-color":E.textColor,"--background-color":E.backgroundColor,"--panel-width":E.width,"--panel-padding":E.panelPadding,"--panel-border-radius":E.borderRadius,"--panel-border-color":E.borderColor,"--panel-border-width":E.borderWidth,"--arrow-height":E.arrowHeight,"--arrow-width":E.arrowWidth,"--separator-width":E.separatorWidth,"--separator-color":E.separatorColor}));p.watch(()=>E.modelValue,T=>{K.value=T},{immediate:!0});function L(){K.value=!K.value,U("update:modelValue",K.value)}return(T,e)=>(p.openBlock(),p.createElementBlock("div",{class:"panel",style:p.normalizeStyle(oe.value)},[p.createElementVNode("div",{class:"panel__activator",onClick:L},[p.createElementVNode("div",Gee,[E.icon?(p.openBlock(),p.createElementBlock("img",{key:0,src:E.icon,alt:""},null,8,Xee)):p.createCommentVNode("",!0)]),p.createElementVNode("div",Jee,p.toDisplayString(r.text),1),p.createElementVNode("div",{class:p.normalizeClass(["panel__activator__arrow",{"rotated-180":K.value}])},[(p.openBlock(),p.createElementBlock("svg",{height:r.arrowHeight,width:r.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.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:r.arrowColor},null,8,Hee)],8,Zee))],2)]),p.createVNode(p.Transition,null,{default:p.withCtx(()=>[p.withDirectives(p.createElementVNode("div",Yee,[Qee,p.createElementVNode("div",$ee,[p.renderSlot(T.$slots,"content",{},void 0,!0)])],512),[[p.vShow,K.value]])]),_:3})],4))}},tte=Dee(ete,[["__scopeId","data-v-0ca35abc"]]),rm={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}]},nte={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}},rte={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}]}},ate={minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(r,U)=>U+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},ote=[{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}]}],ite=[{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}],ste=[{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}],lte={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},cte={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},ute={class:"filters"},dte={key:0,class:"filters__expansion"},pte={class:"content"},fte={key:1,class:"filters__menus"},hte={__name:"GSC-Filters",props:{filterType:{type:String,default:""},isExpansionPanel:{type:Boolean,default:!1},showBadgeOnFilterFull:{type:Boolean,default:!0},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(r,{expose:U,emit:E}){const K=r;p.useCssVars(R=>({"77c6f988":r.width}));const oe={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.PRODUCTIVITY,isFooterVisible:!0},L={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.PLAYS,isFooterVisible:!0},T={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.FIELD,isFooterVisible:!0},e={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.DETAILS,isFooterVisible:!0},k={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.TOURNAMENTS,isFooterVisible:!0},v={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.PERSONAL_DATA,isFooterVisible:!0},n={width:"310px",modalHeight:K.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},w={width:"380px",modalHeight:K.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},b={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.UNIVERSE,isFooterVisible:!0},c={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.DISTANCE,isFooterVisible:!0},a={width:"200px",maxWidth:"200px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.RESULTS,isFooterVisible:!0},t={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.VIDEOS,isFooterVisible:!1},o={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.GAMES,isFooterVisible:!0},i=p.ref(!1),s=p.ref(!1),l=p.ref(0),u=p.ref(0),d=p.ref({}),g=p.ref(null),f=p.ref(null),C=p.computed(()=>K.menuButtonText||S()),y=p.computed(()=>K.expansionPanelText||S()),m=p.ref(null);p.watch(()=>K.filterType,R=>{R===Tr.PRODUCTIVITY?d.value={...oe,...K.templateProps,productivityCategories:K.filters||nte}:R===Tr.PLAYS?d.value={...L,...K.templateProps,fontFamily:K.buttonFilterProps?K.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:K.filters||rte}:R===Tr.FIELD?d.value={...T,...K.templateProps,fieldComponentProps:K.fieldComponentProps,fieldAreas:K.filters||[]}:R===Tr.DETAILS?d.value={...e,...K.templateProps,playingAs:K.filters&&K.filters.playingAs||rm.playingAs,gameSections:K.filters&&K.filters.gameSections||rm.gameSections}:R===Tr.TOURNAMENTS?d.value={...k,...K.templateProps,tournaments:K.filters||ote}:R===Tr.PERSONAL_DATA?d.value={...v,...K.templateProps,token:K.token,personalDataFilters:K.filters||F6}:R===Tr.PLAYS_TYPES?d.value={...n,...K.templateProps,playsGolstatsCategories:K.filters||ite}:R===Tr.GOLSTATS?d.value={...w,...K.templateProps,playsGolstatsCategories:K.filters||ste}:R===Tr.UNIVERSE?d.value={...b,...K.templateProps,universeFilters:K.filters||ate}:R===Tr.DISTANCE?d.value={...c,...K.templateProps,distanceFilters:K.filters||lte}:R===Tr.RESULTS?d.value={...a,...K.templateProps,resultsFilters:K.filters||cte}:R===Tr.GAMES?d.value={...o,...K.templateProps,gamesFilters:K.filters||[]}:R===Tr.VIDEOS&&(d.value={...t,...K.templateProps,token:K.token}),d.value.isExpansionMode=K.isExpansionPanel,K.isExpansionPanel&&(d.value.width="100%",d.value.maxWidth="100%")},{immediate:!0}),p.watch(()=>K.filters,()=>{K.filterType===Tr.PRODUCTIVITY?d.value={...oe,...K.templateProps,productivityCategories:K.filters}:K.filterType===Tr.PLAYS?d.value={...L,...K.templateProps,playsCategories:K.filters}:K.filterType===Tr.FIELD?d.value={...T,...K.templateProps,fieldComponentProps:K.fieldComponentProps,fieldAreas:K.filters}:K.filterType===Tr.DETAILS?d.value={...e,...K.templateProps,playingAs:K.filters?K.filters.playingAs:rm.playingAs,gameSections:K.filters?K.filters.gameSections:rm.gameSections}:K.filterType===Tr.TOURNAMENTS?d.value={...k,...K.templateProps,tournaments:K.filters}:K.filterType===Tr.PERSONAL_DATA?d.value={...v,...K.templateProps,token:K.token,personalDataFilters:K.filters}:K.filterType===Tr.PLAYS_TYPES?d.value={...n,...K.templateProps,playsGolstatsCategories:K.filters}:K.filterType===Tr.GOLSTATS?d.value={...w,...K.templateProps,playsGolstatsCategories:K.filters}:K.filterType===Tr.UNIVERSE?d.value={...b,...K.templateProps,universeFilters:K.filters}:K.filterType===Tr.DISTANCE?d.value={...c,...K.templateProps,distanceFilters:K.filters}:K.filterType===Tr.RESULTS?d.value={...a,...K.templateProps,resultsFilters:K.filters}:K.filterType===Tr.GAMES?d.value={...o,...K.templateProps,gamesFilters:K.filters}:K.filterType===Tr.VIDEOS&&(d.value={...t,...K.templateProps,token:K.token}),d.value.isExpansionMode=K.isExpansionPanel,K.isExpansionPanel&&(d.value.width="100%",d.value.maxWidth="100%")}),p.watch(i,R=>{R||E("close",m.value)}),p.watch(s,R=>{R||E("close",m.value)});function x(R){l.value=R}function _(){K.isExpansionPanel?s.value=!1:i.value=!1,E("apply",m.value)}function S(){if(K.filterType===Tr.PRODUCTIVITY)return"Características de juego";if(K.filterType===Tr.PLAYS)return"Jugada(s)";if(K.filterType===Tr.FIELD)return"Zona de cancha";if(K.filterType===Tr.DETAILS)return"Detalles";if(K.filterType===Tr.TOURNAMENTS)return"Ligas";if(K.filterType===Tr.PERSONAL_DATA)return"Datos personales";if(K.filterType===Tr.PLAYS_TYPES)return"Tipos de jugada";if(K.filterType===Tr.GOLSTATS)return"Filtros Golstats";if(K.filterType===Tr.UNIVERSE)return"Universo";if(K.filterType===Tr.DISTANCE)return"Distancia";if(K.filterType===Tr.RESULTS)return"Resultados";if(K.filterType===Tr.GAMES)return"Partidos";if(K.filterType===Tr.VIDEOS)return"Videos"}function O(R){d.value.fieldAreas=R,l.value=R.length,M(R)}function h(R){let A=0;R.value&&R.value.statistics&&(R.value.minutesPlayed&&A++,R.value.percentMinutesPlayed&&A++,R.value.lastMonths&&A++,R.value.statistics.totals&&A++,R.value.statistics.averagePerGame&&A++,R.value.statistics.averagePerMinute&&A++),d.value.universe=R.value,l.value=A,M(R.value)}function M(R){m.value=R,E("update:filters",R)}function N(R){u.value=R}function P(R=null){g.value&&g.value.clearFilters(R),f.value&&f.value.clearFilters(R)}return U({clearFilters:P}),(R,A)=>(p.openBlock(),p.createElementBlock("div",ute,[r.isExpansionPanel?(p.openBlock(),p.createElementBlock("div",dte,[p.createVNode(p.unref(tte),p.mergeProps(r.expansionPanelProps,{modelValue:s.value,"onUpdate:modelValue":A[0]||(A[0]=q=>s.value=q),text:y.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+K.filterType+"-icon.png"}),{content:p.withCtx(()=>[p.createElementVNode("div",pte,[p.createVNode(G6,p.mergeProps(d.value,{season:r.season,"is-expansion-mode":!0,ref_key:"filterTemplateExpansionPanel",ref:f,onChangeFieldAreas:O,onChangeCategoriesSelected:x,onChangeFiltersSelected:x,onChangeUniverseFilters:h,onApply:_,"onUpdate:filters":M,onTotalFilters:N}),null,16,["season"])])]),_:1},16,["modelValue","text","icon"])])):(p.openBlock(),p.createElementBlock("div",fte,[p.createVNode(p.unref(yee),{modelValue:i.value,"onUpdate:modelValue":A[1]||(A[1]=q=>i.value=q),width:r.width,"menu-margin-top":18},{trigger:p.withCtx(()=>[p.createVNode(Bee,p.mergeProps(r.buttonFilterProps,{text:C.value,"show-badge-on-filter-full":r.showBadgeOnFilterFull,"info-value":l.value,"filters-total":u.value.value,"is-active":i.value,"icon-type":r.filterType}),null,16,["text","show-badge-on-filter-full","info-value","filters-total","is-active","icon-type"])]),menu:p.withCtx(()=>[p.createVNode(G6,p.mergeProps(d.value,{season:r.season,ref_key:"filterTemplateMenu",ref:g,onChangeFieldAreas:O,onChangeCategoriesSelected:x,onChangeFiltersSelected:x,onChangeUniverseFilters:h,"onUpdate:filters":M,onTotalFilters:N,onApply:_}),null,16,["season"])]),_:1},8,["modelValue","width"])]))]))}},vu=Bo(hte,[["__scopeId","data-v-8c6f28c6"]]),mte=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E},T2=r=>(p.pushScopeId("data-v-80cc8fd8"),r=r(),p.popScopeId(),r),yte={class:"gsc-connections-passes__title"},gte={class:"gsc-connections-passes__players"},vte=["src","alt"],bte={key:0,class:"player-card__name"},xte=["onClick"],_te=T2(()=>p.createElementVNode("rect",{x:"0.819336",y:"1.09961",width:"17.5",height:"17.5",rx:"8.75",fill:"white","fill-opacity":"0.05"},null,-1)),wte=T2(()=>p.createElementVNode("path",{d:"M7.75812 13.797C7.70091 13.7591 7.6531 13.7026 7.61984 13.6334C7.58657 13.5642 7.56911 13.485 7.56934 13.4044V6.29374C7.56942 6.21339 7.58699 6.13456 7.62019 6.06564C7.65339 5.99672 7.70098 5.94029 7.7579 5.90233C7.81481 5.86438 7.87893 5.84633 7.94343 5.8501C8.00793 5.85387 8.07041 5.87932 8.12421 5.92374L12.4102 9.47946C12.4591 9.51997 12.4993 9.57491 12.527 9.63939C12.5548 9.70387 12.5693 9.77589 12.5693 9.84905C12.5693 9.9222 12.5548 9.99423 12.527 10.0587C12.4993 10.1232 12.4591 10.1781 12.4102 10.2186L8.12421 13.7752C8.07049 13.8197 8.00806 13.8453 7.94359 13.8491C7.87912 13.8529 7.81501 13.8349 7.75812 13.797ZM7.92667 13.4052L12.2126 9.84947L7.92667 13.4052Z",fill:"#CBEE6B"},null,-1)),Ste=T2(()=>p.createElementVNode("rect",{x:"0.819336",y:"1.09961",width:"17.5",height:"17.5",rx:"8.75",stroke:"white","stroke-width":"0.5"},null,-1)),Tte=[_te,wte,Ste],kte={class:"player-card__value"},Cte={__name:"GscConnectionsPasses",props:{title:{type:String,default:"Conexiones más frecuentes"},players:{type:Array,default:()=>[{name:"Martin Mex, Henrya asdasdsadas",playerId:1,photo:"/player.png",value:7},{name:"Martin Mex, Henry",playerId:1,photo:"/player.png",value:7}]}},setup(r){let U=null;const E=p.ref(null),K=p.ref(0);function oe(){U=new ResizeObserver(e=>{for(const k of e)K.value=k.contentRect.width}),U.observe(E.value)}const L=p.computed(()=>K.value<300?"break-point-3":""),T=p.computed(()=>K.value<=250?"break-point-2":"");return p.onMounted(()=>{oe()}),(e,k)=>(p.openBlock(),p.createElementBlock("div",{ref_key:"gscConnectionPasses",ref:E,class:p.normalizeClass(["gsc-connections-passes",L.value])},[p.createElementVNode("h3",yte,p.toDisplayString(r.title),1),p.createElementVNode("div",gte,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.players,(v,n)=>(p.openBlock(),p.createElementBlock("div",{key:n,style:p.normalizeStyle(`background-color: ${n%2?"#172531":"#0D1D29"};`),class:p.normalizeClass(["gsc-connections-passes__player player-card",T.value])},[p.createElementVNode("div",{class:p.normalizeClass(["player-card__photo",T.value])},[p.createElementVNode("img",{src:v.photo,alt:v.name},null,8,vte)],2),K.value>250?(p.openBlock(),p.createElementBlock("span",bte,p.toDisplayString(v.name),1)):p.createCommentVNode("",!0),(p.openBlock(),p.createElementBlock("svg",{onClick:w=>e.$emit("clickPlayer",v),class:"player-card__button",width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tte,8,xte)),p.createElementVNode("span",kte,p.toDisplayString(v.value),1)],6))),128))])],2))}},Ote=mte(Cte,[["__scopeId","data-v-80cc8fd8"]]),Nte=["playId","gameId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y","xGi","xGf","teammatePlayerId","distance","fieldArea"];let k2=null;function hc(){return k2||(k2=th(Nte)),k2}function X6(){return{backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)"}}var qh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lte(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var J6={exports:{}};(function(r,U){/*! For license information please see plotly.min.js.LICENSE.txt */(function(E,K){r.exports=K()})(self,function(){return function(){var E={79288:function(L,T,e){var k=e(3400),v={"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 v){var w=n.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");k.addStyleRule(w,v[n])}},86712:function(L,T,e){L.exports=e(84224)},37240:function(L,T,e){L.exports=e(51132)},29744:function(L,T,e){L.exports=e(94456)},29352:function(L,T,e){L.exports=e(67244)},96144:function(L,T,e){L.exports=e(97776)},53219:function(L,T,e){L.exports=e(61712)},4624:function(L,T,e){L.exports=e(95856)},54543:function(L,T,e){L.exports=e(54272)},45e3:function(L,T,e){L.exports=e(85404)},62300:function(L,T,e){L.exports=e(26048)},6920:function(L,T,e){L.exports=e(66240)},10264:function(L,T,e){L.exports=e(40448)},32016:function(L,T,e){L.exports=e(64884)},27528:function(L,T,e){L.exports=e(15088)},75556:function(L,T,e){L.exports=e(76744)},39204:function(L,T,e){L.exports=e(94704)},73996:function(L,T,e){L.exports=e(62396)},16489:function(L,T,e){L.exports=e(32028)},5e3:function(L,T,e){L.exports=e(81932)},77280:function(L,T,e){L.exports=e(45536)},33992:function(L,T,e){L.exports=e(42600)},17600:function(L,T,e){L.exports=e(21536)},49116:function(L,T,e){L.exports=e(65664)},46808:function(L,T,e){L.exports=e(29044)},36168:function(L,T,e){L.exports=e(48928)},13792:function(L,T,e){var k=e(32016);k.register([e(37240),e(29352),e(5e3),e(33992),e(17600),e(49116),e(6920),e(67484),e(79440),e(39204),e(83096),e(36168),e(20260),e(63560),e(65832),e(46808),e(73996),e(48824),e(89904),e(25120),e(13752),e(4340),e(62300),e(29800),e(8363),e(54543),e(86636),e(42192),e(32140),e(77280),e(89296),e(56816),e(70192),e(45e3),e(27528),e(84764),e(3920),e(50248),e(4624),e(69967),e(10264),e(86152),e(53219),e(81604),e(63796),e(29744),e(89336),e(86712),e(75556),e(16489),e(97312),e(96144)]),L.exports=k},3920:function(L,T,e){L.exports=e(43480)},25120:function(L,T,e){L.exports=e(6296)},4340:function(L,T,e){L.exports=e(7404)},86152:function(L,T,e){L.exports=e(65456)},56816:function(L,T,e){L.exports=e(22020)},89296:function(L,T,e){L.exports=e(29928)},20260:function(L,T,e){L.exports=e(75792)},32140:function(L,T,e){L.exports=e(156)},84764:function(L,T,e){L.exports=e(45499)},48824:function(L,T,e){L.exports=e(3296)},69967:function(L,T,e){L.exports=e(4184)},8363:function(L,T,e){L.exports=e(36952)},86636:function(L,T,e){L.exports=e(38983)},70192:function(L,T,e){L.exports=e(11572)},81604:function(L,T,e){L.exports=e(76924)},63796:function(L,T,e){L.exports=e(62944)},89336:function(L,T,e){L.exports=e(95443)},67484:function(L,T,e){L.exports=e(34864)},97312:function(L,T,e){L.exports=e(76272)},42192:function(L,T,e){L.exports=e(97924)},29800:function(L,T,e){L.exports=e(15436)},63560:function(L,T,e){L.exports=e(5621)},89904:function(L,T,e){L.exports=e(91304)},50248:function(L,T,e){L.exports=e(41724)},65832:function(L,T,e){L.exports=e(31991)},79440:function(L,T,e){L.exports=e(22869)},13752:function(L,T,e){L.exports=e(67776)},83096:function(L,T,e){L.exports=e(95952)},72196:function(L){L.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}]},13916:function(L,T,e){var k=e(72196),v=e(25376),n=e(33816),w=e(31780).templatedArray;e(36208),L.exports=w("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:v({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:k.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:k.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:v({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},90272:function(L,T,e){var k=e(3400),v=e(54460),n=e(23816).draw;function w(c){var a=c._fullLayout;k.filterVisible(a.annotations).forEach(function(t){var o=v.getFromId(c,t.xref),i=v.getFromId(c,t.yref),s=v.getRefType(t.xref),l=v.getRefType(t.yref);t._extremes={},s==="range"&&b(t,o),l==="range"&&b(t,i)})}function b(c,a){var t,o=a._id,i=o.charAt(0),s=c[i],l=c["a"+i],u=c[i+"ref"],d=c["a"+i+"ref"],g=c["_"+i+"padplus"],f=c["_"+i+"padminus"],C={x:1,y:-1}[i]*c[i+"shift"],y=3*c.arrowsize*c.arrowwidth||0,m=y+C,x=y-C,_=3*c.startarrowsize*c.arrowwidth||0,S=_+C,O=_-C;if(d===u){var h=v.findExtremes(a,[a.r2c(s)],{ppadplus:m,ppadminus:x}),M=v.findExtremes(a,[a.r2c(l)],{ppadplus:Math.max(g,S),ppadminus:Math.max(f,O)});t={min:[h.min[0],M.min[0]],max:[h.max[0],M.max[0]]}}else S=l?S+l:S,O=l?O-l:O,t=v.findExtremes(a,[a.r2c(s)],{ppadplus:Math.max(g,m,S),ppadminus:Math.max(f,x,O)});c._extremes[o]=t}L.exports=function(c){var a=c._fullLayout;if(k.filterVisible(a.annotations).length&&c._fullData.length)return k.syncOrAsync([n,w],c)}},42300:function(L,T,e){var k=e(3400),v=e(24040),n=e(31780).arrayEditor;function w(c,a){var t,o,i,s,l,u,d,g=c._fullLayout.annotations,f=[],C=[],y=[],m=(a||[]).length;for(t=0;t<g.length;t++)if(s=(i=g[t]).clicktoshow){for(o=0;o<m;o++)if(u=(l=a[o]).xaxis,d=l.yaxis,u._id===i.xref&&d._id===i.yref&&u.d2r(l.x)===b(i._xclick,u)&&d.d2r(l.y)===b(i._yclick,d)){(i.visible?s==="onout"?C:y:f).push(t);break}o===m&&i.visible&&s==="onout"&&C.push(t)}return{on:f,off:C,explicitOff:y}}function b(c,a){return a.type==="log"?a.l2r(c):a.d2r(c)}L.exports={hasClickToShow:function(c,a){var t=w(c,a);return t.on.length>0||t.explicitOff.length>0},onClick:function(c,a){var t,o,i=w(c,a),s=i.on,l=i.off.concat(i.explicitOff),u={},d=c._fullLayout.annotations;if(s.length||l.length){for(t=0;t<s.length;t++)(o=n(c.layout,"annotations",d[s[t]])).modifyItem("visible",!0),k.extendFlat(u,o.getUpdateObj());for(t=0;t<l.length;t++)(o=n(c.layout,"annotations",d[l[t]])).modifyItem("visible",!1),k.extendFlat(u,o.getUpdateObj());return v.call("update",c,{},u)}}}},87192:function(L,T,e){var k=e(3400),v=e(76308);L.exports=function(n,w,b,c){c("opacity");var a=c("bgcolor"),t=c("bordercolor"),o=v.opacity(t);c("borderpad");var i=c("borderwidth"),s=c("showarrow");if(c("text",s?" ":b._dfltTitle.annotation),c("textangle"),k.coerceFont(c,"font",b.font),c("width"),c("align"),c("height")&&c("valign"),s){var l,u,d=c("arrowside");d.indexOf("end")!==-1&&(l=c("arrowhead"),u=c("arrowsize")),d.indexOf("start")!==-1&&(c("startarrowhead",l),c("startarrowsize",u)),c("arrowcolor",o?w.bordercolor:v.defaultLine),c("arrowwidth",2*(o&&i||1)),c("standoff"),c("startstandoff")}var g=c("hovertext"),f=b.hoverlabel||{};if(g){var C=c("hoverlabel.bgcolor",f.bgcolor||(v.opacity(a)?v.rgb(a):v.defaultLine)),y=c("hoverlabel.bordercolor",f.bordercolor||v.contrast(C));k.coerceFont(c,"hoverlabel.font",{family:f.font.family,size:f.font.size,color:f.font.color||y})}c("captureevents",!!g)}},26828:function(L,T,e){var k=e(38248),v=e(36896);L.exports=function(n,w,b,c){w=w||{};var a=b==="log"&&w.type==="linear",t=b==="linear"&&w.type==="log";if(a||t)for(var o,i,s=n._fullLayout.annotations,l=w._id.charAt(0),u=0;u<s.length;u++)o=s[u],i="annotations["+u+"].",o[l+"ref"]===w._id&&d(l),o["a"+l+"ref"]===w._id&&d("a"+l);function d(g){var f=o[g],C=null;C=a?v(f,w.range):Math.pow(10,f),k(C)||(C=null),c(i+g,C)}}},45216:function(L,T,e){var k=e(3400),v=e(54460),n=e(51272),w=e(87192),b=e(13916);function c(a,t,o){function i(M,N){return k.coerce(a,t,b,M,N)}var s=i("visible"),l=i("clicktoshow");if(s||l){w(a,t,o,i);for(var u=t.showarrow,d=["x","y"],g=[-10,-30],f={_fullLayout:o},C=0;C<2;C++){var y=d[C],m=v.coerceRef(a,t,f,y,"","paper");if(m!=="paper"&&v.getFromId(f,m)._annIndices.push(t._index),v.coercePosition(t,f,i,m,y,.5),u){var x="a"+y,_=v.coerceRef(a,t,f,x,"pixel",["pixel","paper"]);_!=="pixel"&&_!==m&&(_=t[x]="pixel");var S=_==="pixel"?g[C]:.4;v.coercePosition(t,f,i,_,x,S)}i(y+"anchor"),i(y+"shift")}if(k.noneOrAll(a,t,["x","y"]),u&&k.noneOrAll(a,t,["ax","ay"]),l){var O=i("xclick"),h=i("yclick");t._xclick=O===void 0?t.x:v.cleanPosition(O,f,t.xref),t._yclick=h===void 0?t.y:v.cleanPosition(h,f,t.yref)}}}L.exports=function(a,t){n(a,t,{name:"annotations",handleItemDefaults:c})}},23816:function(L,T,e){var k=e(33428),v=e(24040),n=e(7316),w=e(3400),b=w.strTranslate,c=e(54460),a=e(76308),t=e(43616),o=e(93024),i=e(72736),s=e(93972),l=e(86476),u=e(31780).arrayEditor,d=e(33652);function g(y,m){var x=y._fullLayout.annotations[m]||{},_=c.getFromId(y,x.xref),S=c.getFromId(y,x.yref);_&&_.setScale(),S&&S.setScale(),C(y,x,m,!1,_,S)}function f(y,m,x,_,S){var O=S[x],h=S[x+"ref"],M=x.indexOf("y")!==-1,N=c.getRefType(h)==="domain",P=M?_.h:_.w;return y?N?O+(M?-m:m)/y._length:y.p2r(y.r2p(O)+m):O+(M?-m:m)/P}function C(y,m,x,_,S,O){var h,M,N=y._fullLayout,P=y._fullLayout._size,R=y._context.edits;_?(h="annotation-"+_,M=_+".annotations"):(h="annotation",M="annotations");var A=u(y.layout,M,m),q=A.modifyBase,j=A.modifyItem,X=A.getUpdateObj;N._infolayer.selectAll("."+h+'[data-index="'+x+'"]').remove();var F="clip"+N._uid+"_ann"+x;if(m._input&&m.visible!==!1){var W={x:{},y:{}},Y=+m.textangle||0,B=N._infolayer.append("g").classed(h,!0).attr("data-index",String(x)).style("opacity",m.opacity),G=B.append("g").classed("annotation-text-g",!0),J=R[m.showarrow?"annotationTail":"annotationPosition"],se=m.captureevents||R.annotationText||J,re=G.append("g").style("pointer-events",se?"all":null).call(s,"pointer").on("click",function(){y._dragging=!1,y.emit("plotly_clickannotation",_e(k.event))});m.hovertext&&re.on("mouseover",function(){var Se=m.hoverlabel,Pe=Se.font,Ne=this.getBoundingClientRect(),Oe=y.getBoundingClientRect();o.loneHover({x0:Ne.left-Oe.left,x1:Ne.right-Oe.left,y:(Ne.top+Ne.bottom)/2-Oe.top,text:m.hovertext,color:Se.bgcolor,borderColor:Se.bordercolor,fontFamily:Pe.family,fontSize:Pe.size,fontColor:Pe.color},{container:N._hoverlayer.node(),outerContainer:N._paper.node(),gd:y})}).on("mouseout",function(){o.loneUnhover(N._hoverlayer.node())});var ne=m.borderwidth,$=m.borderpad,te=ne+$,ae=re.append("rect").attr("class","bg").style("stroke-width",ne+"px").call(a.stroke,m.bordercolor).call(a.fill,m.bgcolor),ce=m.width||m.height,ue=N._topclips.selectAll("#"+F).data(ce?[0]:[]);ue.enter().append("clipPath").classed("annclip",!0).attr("id",F).append("rect"),ue.exit().remove();var de=m.font,me=N._meta?w.templateString(m.text,N._meta):m.text,be=re.append("text").classed("annotation-text",!0).text(me);R.annotationText?be.call(i.makeEditable,{delegate:re,gd:y}).call(we).on("edit",function(Se){m.text=Se,this.call(we),j("text",Se),S&&S.autorange&&q(S._name+".autorange",!0),O&&O.autorange&&q(O._name+".autorange",!0),v.call("_guiRelayout",y,X())}):be.call(we)}else k.selectAll("#"+F).remove();function _e(Se){var Pe={index:x,annotation:m._input,fullAnnotation:m,event:Se};return _&&(Pe.subplotId=_),Pe}function we(Se){return Se.call(t.font,de).attr({"text-anchor":{left:"start",right:"end"}[m.align]||"middle"}),i.convertToTspans(Se,y,Ce),Se}function Ce(){var Se=be.selectAll("a");Se.size()===1&&Se.text()===be.text()&&re.insert("a",":first-child").attr({"xlink:xlink:href":Se.attr("xlink:href"),"xlink:xlink:show":Se.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(ae.node());var Pe=re.select(".annotation-text-math-group"),Ne=!Pe.empty(),Oe=t.bBox((Ne?Pe:be).node()),pe=Oe.width,fe=Oe.height,xe=m.width||pe,ze=m.height||fe,Le=Math.round(xe+2*te),Ue=Math.round(ze+2*te);function Re(St,vt){return vt==="auto"&&(vt=St<.3333333333333333?"left":St>.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[vt]}for(var Fe=!1,ve=["x","y"],ke=0;ke<ve.length;ke++){var Ee,je,Be,Ie,Ze,He=ve[ke],at=m[He+"ref"]||He,ft=m["a"+He+"ref"],ut={x:S,y:O}[He],_t=(Y+(He==="x"?0:-90))*Math.PI/180,Nt=Le*Math.cos(_t),Tt=Ue*Math.sin(_t),st=Math.abs(Nt)+Math.abs(Tt),lt=m[He+"anchor"],Vt=m[He+"shift"]*(He==="x"?1:-1),jt=W[He],Kt=c.getRefType(at);if(ut&&Kt!=="domain"){var It=ut.r2fraction(m[He]);(It<0||It>1)&&(ft===at?((It=ut.r2fraction(m["a"+He]))<0||It>1)&&(Fe=!0):Fe=!0),Ee=ut._offset+ut.r2p(m[He]),Ie=.5}else{var $e=Kt==="domain";He==="x"?(Be=m[He],Ee=$e?ut._offset+ut._length*Be:Ee=P.l+P.w*Be):(Be=1-m[He],Ee=$e?ut._offset+ut._length*Be:Ee=P.t+P.h*Be),Ie=m.showarrow?.5:Be}if(m.showarrow){jt.head=Ee;var tt=m["a"+He];if(Ze=Nt*Re(.5,m.xanchor)-Tt*Re(.5,m.yanchor),ft===at){var Xe=c.getRefType(ft);Xe==="domain"?(He==="y"&&(tt=1-tt),jt.tail=ut._offset+ut._length*tt):Xe==="paper"?He==="y"?(tt=1-tt,jt.tail=P.t+P.h*tt):jt.tail=P.l+P.w*tt:jt.tail=ut._offset+ut.r2p(tt),je=Ze}else jt.tail=Ee+tt,je=Ze+tt;jt.text=jt.tail+Ze;var et=N[He==="x"?"width":"height"];if(at==="paper"&&(jt.head=w.constrain(jt.head,1,et-1)),ft==="pixel"){var ht=-Math.max(jt.tail-3,jt.text),dt=Math.min(jt.tail+3,jt.text)-et;ht>0?(jt.tail+=ht,jt.text+=ht):dt>0&&(jt.tail-=dt,jt.text-=dt)}jt.tail+=Vt,jt.head+=Vt}else je=Ze=st*Re(Ie,lt),jt.text=Ee+Ze;jt.text+=Vt,Ze+=Vt,je+=Vt,m["_"+He+"padplus"]=st/2+je,m["_"+He+"padminus"]=st/2-je,m["_"+He+"size"]=st,m["_"+He+"shift"]=Ze}if(Fe)re.remove();else{var De=0,Ge=0;if(m.align!=="left"&&(De=(xe-pe)*(m.align==="center"?.5:1)),m.valign!=="top"&&(Ge=(ze-fe)*(m.valign==="middle"?.5:1)),Ne)Pe.select("svg").attr({x:te+De-1,y:te+Ge}).call(t.setClipUrl,ce?F:null,y);else{var pt=te+Ge-Oe.top,nt=te+De-Oe.left;be.call(i.positionText,nt,pt).call(t.setClipUrl,ce?F:null,y)}ue.select("rect").call(t.setRect,te,te,xe,ze),ae.call(t.setRect,ne/2,ne/2,Le-ne,Ue-ne),re.call(t.setTranslate,Math.round(W.x.text-Le/2),Math.round(W.y.text-Ue/2)),G.attr({transform:"rotate("+Y+","+W.x.text+","+W.y.text+")"});var bt,wt=function(St,vt){B.selectAll(".annotation-arrow-g").remove();var Pt=W.x.head,Lt=W.y.head,Ct=W.x.tail+St,Rt=W.y.tail+vt,At=W.x.text+St,Bt=W.y.text+vt,nn=w.rotationXYMatrix(Y,At,Bt),hn=w.apply2DTransform(nn),Ht=w.apply2DTransform2(nn),Qt=+ae.attr("width"),un=+ae.attr("height"),In=At-.5*Qt,zn=In+Qt,wn=Bt-.5*un,rn=wn+un,vn=[[In,wn,In,rn],[In,rn,zn,rn],[zn,rn,zn,wn],[zn,wn,In,wn]].map(Ht);if(!vn.reduce(function(Sr,dr){return Sr^!!w.segmentsIntersect(Pt,Lt,Pt+1e6,Lt+1e6,dr[0],dr[1],dr[2],dr[3])},!1)){vn.forEach(function(Sr){var dr=w.segmentsIntersect(Ct,Rt,Pt,Lt,Sr[0],Sr[1],Sr[2],Sr[3]);dr&&(Ct=dr.x,Rt=dr.y)});var dn=m.arrowwidth,_n=m.arrowcolor,Un=m.arrowside,An=B.append("g").style({opacity:a.opacity(_n)}).classed("annotation-arrow-g",!0),Wn=An.append("path").attr("d","M"+Ct+","+Rt+"L"+Pt+","+Lt).style("stroke-width",dn+"px").call(a.stroke,a.rgb(_n));if(d(Wn,Un,m),R.annotationPosition&&Wn.node().parentNode&&!_){var Gn=Pt,jn=Lt;if(m.standoff){var er=Math.sqrt(Math.pow(Pt-Ct,2)+Math.pow(Lt-Rt,2));Gn+=m.standoff*(Ct-Pt)/er,jn+=m.standoff*(Rt-Lt)/er}var Qn,vr,wr=An.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Ct-Gn)+","+(Rt-jn),transform:b(Gn,jn)}).style("stroke-width",dn+6+"px").call(a.stroke,"rgba(0,0,0,0)").call(a.fill,"rgba(0,0,0,0)");l.init({element:wr.node(),gd:y,prepFn:function(){var Sr=t.getTranslate(re);Qn=Sr.x,vr=Sr.y,S&&S.autorange&&q(S._name+".autorange",!0),O&&O.autorange&&q(O._name+".autorange",!0)},moveFn:function(Sr,dr){var Gr=hn(Qn,vr),Zt=Gr[0]+Sr,pn=Gr[1]+dr;re.call(t.setTranslate,Zt,pn),j("x",f(S,Sr,"x",P,m)),j("y",f(O,dr,"y",P,m)),m.axref===m.xref&&j("ax",f(S,Sr,"ax",P,m)),m.ayref===m.yref&&j("ay",f(O,dr,"ay",P,m)),An.attr("transform",b(Sr,dr)),G.attr({transform:"rotate("+Y+","+Zt+","+pn+")"})},doneFn:function(){v.call("_guiRelayout",y,X());var Sr=document.querySelector(".js-notes-box-panel");Sr&&Sr.redraw(Sr.selectedObj)}})}}};m.showarrow&&wt(0,0),J&&l.init({element:re.node(),gd:y,prepFn:function(){bt=G.attr("transform")},moveFn:function(St,vt){var Pt="pointer";if(m.showarrow)m.axref===m.xref?j("ax",f(S,St,"ax",P,m)):j("ax",m.ax+St),m.ayref===m.yref?j("ay",f(O,vt,"ay",P.w,m)):j("ay",m.ay+vt),wt(St,vt);else{if(_)return;var Lt,Ct;if(S)Lt=f(S,St,"x",P,m);else{var Rt=m._xsize/P.w,At=m.x+(m._xshift-m.xshift)/P.w-Rt/2;Lt=l.align(At+St/P.w,Rt,0,1,m.xanchor)}if(O)Ct=f(O,vt,"y",P,m);else{var Bt=m._ysize/P.h,nn=m.y-(m._yshift+m.yshift)/P.h-Bt/2;Ct=l.align(nn-vt/P.h,Bt,0,1,m.yanchor)}j("x",Lt),j("y",Ct),S&&O||(Pt=l.getCursor(S?.5:Lt,O?.5:Ct,m.xanchor,m.yanchor))}G.attr({transform:b(St,vt)+bt}),s(re,Pt)},clickFn:function(St,vt){m.captureevents&&y.emit("plotly_clickannotation",_e(vt))},doneFn:function(){s(re),v.call("_guiRelayout",y,X());var St=document.querySelector(".js-notes-box-panel");St&&St.redraw(St.selectedObj)}})}}}L.exports={draw:function(y){var m=y._fullLayout;m._infolayer.selectAll(".annotation").remove();for(var x=0;x<m.annotations.length;x++)m.annotations[x].visible&&g(y,x);return n.previousPromises(y)},drawOne:g,drawRaw:C}},33652:function(L,T,e){var k=e(33428),v=e(76308),n=e(72196),w=e(3400),b=w.strScale,c=w.strRotate,a=w.strTranslate;L.exports=function(t,o,i){var s,l,u,d,g=t.node(),f=n[i.arrowhead||0],C=n[i.startarrowhead||0],y=(i.arrowwidth||1)*(i.arrowsize||1),m=(i.arrowwidth||1)*(i.startarrowsize||1),x=o.indexOf("start")>=0,_=o.indexOf("end")>=0,S=f.backoff*y+i.standoff,O=C.backoff*m+i.startstandoff;if(g.nodeName==="line"){s={x:+t.attr("x1"),y:+t.attr("y1")},l={x:+t.attr("x2"),y:+t.attr("y2")};var h=s.x-l.x,M=s.y-l.y;if(d=(u=Math.atan2(M,h))+Math.PI,S&&O&&S+O>Math.sqrt(h*h+M*M))return void B();if(S){if(S*S>h*h+M*M)return void B();var N=S*Math.cos(u),P=S*Math.sin(u);l.x+=N,l.y+=P,t.attr({x2:l.x,y2:l.y})}if(O){if(O*O>h*h+M*M)return void B();var R=O*Math.cos(u),A=O*Math.sin(u);s.x-=R,s.y-=A,t.attr({x1:s.x,y1:s.y})}}else if(g.nodeName==="path"){var q=g.getTotalLength(),j="";if(q<S+O)return void B();var X=g.getPointAtLength(0),F=g.getPointAtLength(.1);u=Math.atan2(X.y-F.y,X.x-F.x),s=g.getPointAtLength(Math.min(O,q)),j="0px,"+O+"px,";var W=g.getPointAtLength(q),Y=g.getPointAtLength(q-.1);d=Math.atan2(W.y-Y.y,W.x-Y.x),l=g.getPointAtLength(Math.max(0,q-S)),j+=q-(j?O+S:S)+"px,"+q+"px",t.style("stroke-dasharray",j)}function B(){t.style("stroke-dasharray","0px,100px")}function G(J,se,re,ne){J.path&&(J.noRotate&&(re=0),k.select(g.parentNode).append("path").attr({class:t.attr("class"),d:J.path,transform:a(se.x,se.y)+c(180*re/Math.PI)+b(ne)}).style({fill:v.rgb(i.arrowcolor),"stroke-width":0}))}x&&G(C,s,u,m),_&&G(f,l,d,y)}},79180:function(L,T,e){var k=e(23816),v=e(42300);L.exports={moduleType:"component",name:"annotations",layoutAttributes:e(13916),supplyLayoutDefaults:e(45216),includeBasePlot:e(36632)("annotations"),calcAutorange:e(90272),draw:k.draw,drawOne:k.drawOne,drawRaw:k.drawRaw,hasClickToShow:v.hasClickToShow,onClick:v.onClick,convertCoords:e(26828)}},45899:function(L,T,e){var k=e(13916),v=e(67824).overrideAll,n=e(31780).templatedArray;L.exports=v(n("annotation",{visible:k.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:k.xanchor,xshift:k.xshift,yanchor:k.yanchor,yshift:k.yshift,text:k.text,textangle:k.textangle,font:k.font,width:k.width,height:k.height,opacity:k.opacity,align:k.align,valign:k.valign,bgcolor:k.bgcolor,bordercolor:k.bordercolor,borderpad:k.borderpad,borderwidth:k.borderwidth,showarrow:k.showarrow,arrowcolor:k.arrowcolor,arrowhead:k.arrowhead,startarrowhead:k.startarrowhead,arrowside:k.arrowside,arrowsize:k.arrowsize,startarrowsize:k.startarrowsize,arrowwidth:k.arrowwidth,standoff:k.standoff,startstandoff:k.startstandoff,hovertext:k.hovertext,hoverlabel:k.hoverlabel,captureevents:k.captureevents}),"calc","from-root")},42456:function(L,T,e){var k=e(3400),v=e(54460);function n(w,b){var c=b.fullSceneLayout.domain,a=b.fullLayout._size,t={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};w._xa={},k.extendFlat(w._xa,t),v.setConvert(w._xa),w._xa._offset=a.l+c.x[0]*a.w,w._xa.l2p=function(){return .5*(1+w._pdata[0]/w._pdata[3])*a.w*(c.x[1]-c.x[0])},w._ya={},k.extendFlat(w._ya,t),v.setConvert(w._ya),w._ya._offset=a.t+(1-c.y[1])*a.h,w._ya.l2p=function(){return .5*(1-w._pdata[1]/w._pdata[3])*a.h*(c.y[1]-c.y[0])}}L.exports=function(w){for(var b=w.fullSceneLayout.annotations,c=0;c<b.length;c++)n(b[c],w);w.fullLayout._infolayer.selectAll(".annotation-"+w.id).remove()}},52808:function(L,T,e){var k=e(3400),v=e(54460),n=e(51272),w=e(87192),b=e(45899);function c(a,t,o,i){function s(u,d){return k.coerce(a,t,b,u,d)}function l(u){var d=u+"axis",g={_fullLayout:{}};return g._fullLayout[d]=o[d],v.coercePosition(t,g,s,u,u,.5)}s("visible")&&(w(a,t,i.fullLayout,s),l("x"),l("y"),l("z"),k.noneOrAll(a,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",s("xanchor"),s("yanchor"),s("xshift"),s("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",s("ax",-10),s("ay",-30),k.noneOrAll(a,t,["ax","ay"])))}L.exports=function(a,t,o){n(a,t,{name:"annotations",handleItemDefaults:c,fullLayout:o.fullLayout})}},71836:function(L,T,e){var k=e(23816).drawRaw,v=e(94424),n=["x","y","z"];L.exports=function(w){for(var b=w.fullSceneLayout,c=w.dataScale,a=b.annotations,t=0;t<a.length;t++){for(var o=a[t],i=!1,s=0;s<3;s++){var l=n[s],u=o[l],d=b[l+"axis"].r2fraction(u);if(d<0||d>1){i=!0;break}}i?w.fullLayout._infolayer.select(".annotation-"+w.id+'[data-index="'+t+'"]').remove():(o._pdata=v(w.glplot.cameraParams,[b.xaxis.r2l(o.x)*c[0],b.yaxis.r2l(o.y)*c[1],b.zaxis.r2l(o.z)*c[2]]),k(w.graphDiv,o,t,w.id,o._xa,o._ya))}}},56864:function(L,T,e){var k=e(24040),v=e(3400);L.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:e(45899)}}},layoutAttributes:e(45899),handleDefaults:e(52808),includeBasePlot:function(n,w){var b=k.subplotsRegistry.gl3d;if(b)for(var c=b.attrRegex,a=Object.keys(n),t=0;t<a.length;t++){var o=a[t];c.test(o)&&(n[o].annotations||[]).length&&(v.pushUnique(w._basePlotModules,b),v.pushUnique(w._subplots.gl3d,o))}},convert:e(42456),draw:e(71836)}},54976:function(L,T,e){L.exports=e(38700),e(15168),e(67020),e(89792),e(55668),e(65168),e(2084),e(26368),e(24747),e(65616),e(30632),e(73040),e(1104),e(51456),e(4592),e(45348)},97776:function(L,T,e){var k=e(54976),v=e(3400),n=e(39032),w=n.EPOCHJD,b=n.ONEDAY,c={valType:"enumerated",values:v.sortObjectKeys(k.calendars),editType:"calc",dflt:"gregorian"},a=function(y,m,x,_){var S={};return S[x]=c,v.coerce(y,m,S,x,_)},t="##",o={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:t,w:t,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}},i={};function s(y){var m=i[y];return m||(i[y]=k.instance(y))}function l(y){return v.extendFlat({},c,{description:y})}function u(y){return"Sets the calendar system to use with `"+y+"` date data."}var d={xcalendar:l(u("x"))},g=v.extendFlat({},d,{ycalendar:l(u("y"))}),f=v.extendFlat({},g,{zcalendar:l(u("z"))}),C=l(["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(" "));L.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:g,bar:g,box:g,heatmap:g,contour:g,histogram:g,histogram2d:g,histogram2dcontour:g,scatter3d:f,surface:f,mesh3d:f,scattergl:g,ohlc:d,candlestick:d},layout:{calendar:l(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:C},yaxis:{calendar:C},scene:{xaxis:{calendar:C},yaxis:{calendar:C},zaxis:{calendar:C}},polar:{radialaxis:{calendar:C}}},transforms:{filter:{valuecalendar:l(["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:l(["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:c,handleDefaults:a,handleTraceDefaults:function(y,m,x,_){for(var S=0;S<x.length;S++)a(y,m,x[S]+"calendar",_.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:s,worldCalFmt:function(y,m,x){for(var _,S,O,h,M,N=Math.floor((m+.05)/b)+w,P=s(x).fromJD(N),R=0;(R=y.indexOf("%",R))!==-1;)(_=y.charAt(R+1))==="0"||_==="-"||_==="_"?(O=3,S=y.charAt(R+2),_==="_"&&(_="-")):(S=_,_="0",O=2),(h=o[S])?(M=h===t?t:P.formatDate(h[_]),y=y.substr(0,R)+M+y.substr(R+O),R+=M.length):R+=O;return y}}},22548:function(L,T){T.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],T.defaultLine="#444",T.lightLine="#eee",T.background="#fff",T.borderLine="#BEC8D9",T.lightFraction=90.9090909090909},76308:function(L,T,e){var k=e(49760),v=e(38248),n=e(38116).isTypedArray,w=L.exports={},b=e(22548);w.defaults=b.defaults;var c=w.defaultLine=b.defaultLine;w.lightLine=b.lightLine;var a=w.background=b.background;function t(o){if(v(o)||typeof o!="string")return o;var i=o.trim();if(i.substr(0,3)!=="rgb")return o;var s=i.match(/^rgba?\s*\(([^()]*)\)$/);if(!s)return o;var l=s[1].trim().split(/\s*[\s,]\s*/),u=i.charAt(3)==="a"&&l.length===4;if(!u&&l.length!==3)return o;for(var d=0;d<l.length;d++){if(!l[d].length||(l[d]=Number(l[d]),!(l[d]>=0)))return o;if(d===3)l[d]>1&&(l[d]=1);else if(l[d]>=1)return o}var g=Math.round(255*l[0])+", "+Math.round(255*l[1])+", "+Math.round(255*l[2]);return u?"rgba("+g+", "+l[3]+")":"rgb("+g+")"}w.tinyRGB=function(o){var i=o.toRgb();return"rgb("+Math.round(i.r)+", "+Math.round(i.g)+", "+Math.round(i.b)+")"},w.rgb=function(o){return w.tinyRGB(k(o))},w.opacity=function(o){return o?k(o).getAlpha():0},w.addOpacity=function(o,i){var s=k(o).toRgb();return"rgba("+Math.round(s.r)+", "+Math.round(s.g)+", "+Math.round(s.b)+", "+i+")"},w.combine=function(o,i){var s=k(o).toRgb();if(s.a===1)return k(o).toRgbString();var l=k(i||a).toRgb(),u=l.a===1?l:{r:255*(1-l.a)+l.r*l.a,g:255*(1-l.a)+l.g*l.a,b:255*(1-l.a)+l.b*l.a},d={r:u.r*(1-s.a)+s.r*s.a,g:u.g*(1-s.a)+s.g*s.a,b:u.b*(1-s.a)+s.b*s.a};return k(d).toRgbString()},w.contrast=function(o,i,s){var l=k(o);return l.getAlpha()!==1&&(l=k(w.combine(o,a))),(l.isDark()?i?l.lighten(i):a:s?l.darken(s):c).toString()},w.stroke=function(o,i){var s=k(i);o.style({stroke:w.tinyRGB(s),"stroke-opacity":s.getAlpha()})},w.fill=function(o,i){var s=k(i);o.style({fill:w.tinyRGB(s),"fill-opacity":s.getAlpha()})},w.clean=function(o){if(o&&typeof o=="object"){var i,s,l,u,d=Object.keys(o);for(i=0;i<d.length;i++)if(u=o[l=d[i]],l.substr(l.length-5)==="color")if(Array.isArray(u))for(s=0;s<u.length;s++)u[s]=t(u[s]);else o[l]=t(u);else if(l.substr(l.length-10)==="colorscale"&&Array.isArray(u))for(s=0;s<u.length;s++)Array.isArray(u[s])&&(u[s][1]=t(u[s][1]));else if(Array.isArray(u)){var g=u[0];if(!Array.isArray(g)&&g&&typeof g=="object")for(s=0;s<u.length;s++)w.clean(u[s])}else u&&typeof u=="object"&&!n(u)&&w.clean(u)}}},42996:function(L,T,e){var k=e(94724),v=e(25376),n=e(92880).extendFlat,w=e(67824).overrideAll;L.exports=w({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:k.linecolor,outlinewidth:k.linewidth,bordercolor:k.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:k.minor.tickmode,nticks:k.nticks,tick0:k.tick0,dtick:k.dtick,tickvals:k.tickvals,ticktext:k.ticktext,ticks:n({},k.ticks,{dflt:""}),ticklabeloverflow:n({},k.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:k.ticklen,tickwidth:k.tickwidth,tickcolor:k.tickcolor,ticklabelstep:k.ticklabelstep,showticklabels:k.showticklabels,labelalias:k.labelalias,tickfont:v({}),tickangle:k.tickangle,tickformat:k.tickformat,tickformatstops:k.tickformatstops,tickprefix:k.tickprefix,showtickprefix:k.showtickprefix,ticksuffix:k.ticksuffix,showticksuffix:k.showticksuffix,separatethousands:k.separatethousands,exponentformat:k.exponentformat,minexponent:k.minexponent,showexponent:k.showexponent,title:{text:{valType:"string"},font:v({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:v({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},63964:function(L){L.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"}}},64013:function(L,T,e){var k=e(3400),v=e(31780),n=e(26332),w=e(25404),b=e(95936),c=e(42568),a=e(42996);L.exports=function(t,o,i){var s=v.newContainer(o,"colorbar"),l=t.colorbar||{};function u(j,X){return k.coerce(l,s,a,j,X)}var d=i.margin||{t:0,b:0,l:0,r:0},g=i.width-d.l-d.r,f=i.height-d.t-d.b,C=u("orientation")==="v",y=u("thicknessmode");u("thickness",y==="fraction"?30/(C?g:f):30);var m=u("lenmode");u("len",m==="fraction"?1:C?f:g);var x,_,S,O=u("yref")==="paper",h=u("xref")==="paper",M="left";C?(S="middle",M=h?"left":"right",x=h?1.02:1,_=.5):(S=O?"bottom":"top",M="center",x=.5,_=O?1.02:1),k.coerce(l,s,{x:{valType:"number",min:h?-2:0,max:h?3:1,dflt:x}},"x"),k.coerce(l,s,{y:{valType:"number",min:O?-2:0,max:O?3:1,dflt:_}},"y"),u("xanchor",M),u("xpad"),u("yanchor",S),u("ypad"),k.noneOrAll(l,s,["x","y"]),u("outlinecolor"),u("outlinewidth"),u("bordercolor"),u("borderwidth"),u("bgcolor");var N=k.coerce(l,s,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:C?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");u("ticklabeloverflow",N.indexOf("inside")!==-1?"hide past domain":"hide past div"),n(l,s,u,"linear");var P=i.font,R={noAutotickangles:!0,outerTicks:!1,font:P};N.indexOf("inside")!==-1&&(R.bgColor="black"),c(l,s,u,"linear",R),b(l,s,u,"linear",R),w(l,s,u,"linear",R),u("title.text",i._dfltTitle.colorbar);var A=s.showticklabels?s.tickfont:P,q=k.extendFlat({},A,{color:P.color,size:k.bigFont(A.size)});k.coerceFont(u,"title.font",q),u("title.side",C?"top":"right")}},37848:function(L,T,e){var k=e(33428),v=e(49760),n=e(7316),w=e(24040),b=e(54460),c=e(86476),a=e(3400),t=a.strTranslate,o=e(92880).extendFlat,i=e(93972),s=e(43616),l=e(76308),u=e(81668),d=e(72736),g=e(94288).flipScale,f=e(28336),C=e(37668),y=e(94724),m=e(84284),x=m.LINE_SPACING,_=m.FROM_TL,S=m.FROM_BR,O=e(63964).cn;L.exports={draw:function(h){var M=h._fullLayout._infolayer.selectAll("g."+O.colorbar).data(function(N){var P,R,A,q,j=N._fullLayout,X=N.calcdata,F=[];function W(ce){return o(ce,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function Y(){typeof q.calc=="function"?q.calc(N,A,P):(P._fillgradient=R.reversescale?g(R.colorscale):R.colorscale,P._zrange=[R[q.min],R[q.max]])}for(var B=0;B<X.length;B++){var G=X[B];if((A=G[0].trace)._module){var J=A._module.colorbar;if(A.visible===!0&&J)for(var se=Array.isArray(J),re=se?J:[J],ne=0;ne<re.length;ne++){var $=(q=re[ne]).container;(R=$?A[$]:A)&&R.showscale&&((P=W(R.colorbar))._id="cb"+A.uid+(se&&$?"-"+$:""),P._traceIndex=A.index,P._propPrefix=($?$+".":"")+"colorbar.",P._meta=A._meta,Y(),F.push(P))}}}for(var te in j._colorAxes)if((R=j[te]).showscale){var ae=j._colorAxes[te];(P=W(R.colorbar))._id="cb"+te,P._propPrefix=te+".colorbar.",P._meta=j._meta,q={min:"cmin",max:"cmax"},ae[0]!=="heatmap"&&(A=ae[1],q.calc=A._module.colorbar.calc),Y(),F.push(P)}return F}(h),function(N){return N._id});M.enter().append("g").attr("class",function(N){return N._id}).classed(O.colorbar,!0),M.each(function(N){var P=k.select(this);a.ensureSingle(P,"rect",O.cbbg),a.ensureSingle(P,"g",O.cbfills),a.ensureSingle(P,"g",O.cblines),a.ensureSingle(P,"g",O.cbaxis,function(A){A.classed(O.crisp,!0)}),a.ensureSingle(P,"g",O.cbtitleunshift,function(A){A.append("g").classed(O.cbtitle,!0)}),a.ensureSingle(P,"rect",O.cboutline);var R=function(A,q,j){var X=q.orientation==="v",F=q.len,W=q.lenmode,Y=q.thickness,B=q.thicknessmode,G=q.outlinewidth,J=q.borderwidth,se=q.bgcolor,re=q.xanchor,ne=q.yanchor,$=q.xpad,te=q.ypad,ae=q.x,ce=X?q.y:1-q.y,ue=q.yref==="paper",de=q.xref==="paper",me=j._fullLayout,be=me._size,_e=q._fillcolor,we=q._line,Ce=q.title,Se=Ce.side,Pe=q._zrange||k.extent((typeof _e=="function"?_e:we.color).domain()),Ne=typeof we.color=="function"?we.color:function(){return we.color},Oe=typeof _e=="function"?_e:function(){return _e},pe=q._levels,fe=function(Xe,et,ht){var dt,De,Ge=et._levels,pt=[],nt=[],bt=Ge.end+Ge.size/100,wt=Ge.size,St=1.001*ht[0]-.001*ht[1],vt=1.001*ht[1]-.001*ht[0];for(De=0;De<1e5&&(dt=Ge.start+De*wt,!(wt>0?dt>=bt:dt<=bt));De++)dt>St&&dt<vt&&pt.push(dt);if(et._fillgradient)nt=[0];else if(typeof et._fillcolor=="function"){var Pt=et._filllevels;if(Pt)for(bt=Pt.end+Pt.size/100,wt=Pt.size,De=0;De<1e5&&(dt=Pt.start+De*wt,!(wt>0?dt>=bt:dt<=bt));De++)dt>ht[0]&&dt<ht[1]&&nt.push(dt);else(nt=pt.map(function(Lt){return Lt-Ge.size/2})).push(nt[nt.length-1]+Ge.size)}else et._fillcolor&&typeof et._fillcolor=="string"&&(nt=[0]);return Ge.size<0&&(pt.reverse(),nt.reverse()),{line:pt,fill:nt}}(0,q,Pe),xe=fe.fill,ze=fe.line,Le=Math.round(Y*(B==="fraction"?X?be.w:be.h:1)),Ue=Le/(X?be.w:be.h),Re=Math.round(F*(W==="fraction"?X?be.h:be.w:1)),Fe=Re/(X?be.h:be.w),ve=de?be.w:j._fullLayout.width,ke=ue?be.h:j._fullLayout.height,Ee=Math.round(X?ae*ve+$:ce*ke+te),je={center:.5,right:1}[re]||0,Be={top:1,middle:.5}[ne]||0,Ie=X?ae-je*Ue:ce-Be*Ue,Ze=X?ce-Be*Fe:ae-je*Fe,He=Math.round(X?ke*(1-Ze):ve*Ze);q._lenFrac=Fe,q._thickFrac=Ue,q._uFrac=Ie,q._vFrac=Ze;var at=q._axis=function(Xe,et,ht){var dt=Xe._fullLayout,De=et.orientation==="v",Ge={type:"linear",range:ht,tickmode:et.tickmode,nticks:et.nticks,tick0:et.tick0,dtick:et.dtick,tickvals:et.tickvals,ticktext:et.ticktext,ticks:et.ticks,ticklen:et.ticklen,tickwidth:et.tickwidth,tickcolor:et.tickcolor,showticklabels:et.showticklabels,labelalias:et.labelalias,ticklabelposition:et.ticklabelposition,ticklabeloverflow:et.ticklabeloverflow,ticklabelstep:et.ticklabelstep,tickfont:et.tickfont,tickangle:et.tickangle,tickformat:et.tickformat,exponentformat:et.exponentformat,minexponent:et.minexponent,separatethousands:et.separatethousands,showexponent:et.showexponent,showtickprefix:et.showtickprefix,tickprefix:et.tickprefix,showticksuffix:et.showticksuffix,ticksuffix:et.ticksuffix,title:et.title,showline:!0,anchor:"free",side:De?"right":"bottom",position:1},pt=De?"y":"x",nt={type:"linear",_id:pt+et._id},bt={letter:pt,font:dt.font,noAutotickangles:pt==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:dt.calendar};function wt(St,vt){return a.coerce(Ge,nt,y,St,vt)}return f(Ge,nt,wt,bt,dt),C(Ge,nt,wt,bt),nt}(j,q,Pe);at.position=Ue+(X?ae+$/be.w:ce+te/be.h);var ft=["top","bottom"].indexOf(Se)!==-1;if(X&&ft&&(at.title.side=Se,at.titlex=ae+$/be.w,at.titley=Ze+(Ce.side==="top"?Fe-te/be.h:te/be.h)),X||ft||(at.title.side=Se,at.titley=ce+te/be.h,at.titlex=Ze+$/be.w),we.color&&q.tickmode==="auto"){at.tickmode="linear",at.tick0=pe.start;var ut=pe.size,_t=a.constrain(Re/50,4,15)+1,Nt=(Pe[1]-Pe[0])/((q.nticks||_t)*ut);if(Nt>1){var Tt=Math.pow(10,Math.floor(Math.log(Nt)/Math.LN10));ut*=Tt*a.roundUp(Nt/Tt,[2,5,10]),(Math.abs(pe.start)/pe.size+1e-6)%1<2e-6&&(at.tick0=0)}at.dtick=ut}at.domain=X?[Ze+te/be.h,Ze+Fe-te/be.h]:[Ze+$/be.w,Ze+Fe-$/be.w],at.setScale(),A.attr("transform",t(Math.round(be.l),Math.round(be.t)));var st,lt=A.select("."+O.cbtitleunshift).attr("transform",t(-Math.round(be.l),-Math.round(be.t))),Vt=at.ticklabelposition,jt=at.title.font.size,Kt=A.select("."+O.cbaxis),It=0,$e=0;function tt(Xe,et){var ht={propContainer:at,propName:q._propPrefix+"title",traceIndex:q._traceIndex,_meta:q._meta,placeholder:me._dfltTitle.colorbar,containerGroup:A.select("."+O.cbtitle)},dt=Xe.charAt(0)==="h"?Xe.substr(1):"h"+Xe;A.selectAll("."+dt+",."+dt+"-math-group").remove(),u.draw(j,Xe,o(ht,et||{}))}return a.syncOrAsync([n.previousPromises,function(){var Xe,et;(X&&ft||!X&&!ft)&&(Se==="top"&&(Xe=$+be.l+ve*ae,et=te+be.t+ke*(1-Ze-Fe)+3+.75*jt),Se==="bottom"&&(Xe=$+be.l+ve*ae,et=te+be.t+ke*(1-Ze)-3-.25*jt),Se==="right"&&(et=te+be.t+ke*ce+3+.75*jt,Xe=$+be.l+ve*Ze),tt(at._id+"title",{attributes:{x:Xe,y:et,"text-anchor":X?"start":"middle"}}))},function(){if(!X&&!ft||X&&ft){var Xe,et=A.select("."+O.cbtitle),ht=et.select("text"),dt=[-G/2,G/2],De=et.select(".h"+at._id+"title-math-group").node(),Ge=15.6;if(ht.node()&&(Ge=parseInt(ht.node().style.fontSize,10)*x),De?(Xe=s.bBox(De),$e=Xe.width,(It=Xe.height)>Ge&&(dt[1]-=(It-Ge)/2)):ht.node()&&!ht.classed(O.jsPlaceholder)&&(Xe=s.bBox(ht.node()),$e=Xe.width,It=Xe.height),X){if(It){if(It+=5,Se==="top")at.domain[1]-=It/be.h,dt[1]*=-1;else{at.domain[0]+=It/be.h;var pt=d.lineCount(ht);dt[1]+=(1-pt)*Ge}et.attr("transform",t(dt[0],dt[1])),at.setScale()}}else $e&&(Se==="right"&&(at.domain[0]+=($e+jt/2)/be.w),et.attr("transform",t(dt[0],dt[1])),at.setScale())}A.selectAll("."+O.cbfills+",."+O.cblines).attr("transform",X?t(0,Math.round(be.h*(1-at.domain[1]))):t(Math.round(be.w*at.domain[0]),0)),Kt.attr("transform",X?t(0,Math.round(-be.t)):t(Math.round(-be.l),0));var nt=A.select("."+O.cbfills).selectAll("rect."+O.cbfill).attr("style","").data(xe);nt.enter().append("rect").classed(O.cbfill,!0).attr("style",""),nt.exit().remove();var bt=Pe.map(at.c2p).map(Math.round).sort(function(Lt,Ct){return Lt-Ct});nt.each(function(Lt,Ct){var Rt=[Ct===0?Pe[0]:(xe[Ct]+xe[Ct-1])/2,Ct===xe.length-1?Pe[1]:(xe[Ct]+xe[Ct+1])/2].map(at.c2p).map(Math.round);X&&(Rt[1]=a.constrain(Rt[1]+(Rt[1]>Rt[0])?1:-1,bt[0],bt[1]));var At=k.select(this).attr(X?"x":"y",Ee).attr(X?"y":"x",k.min(Rt)).attr(X?"width":"height",Math.max(Le,2)).attr(X?"height":"width",Math.max(k.max(Rt)-k.min(Rt),2));if(q._fillgradient)s.gradient(At,j,q._id,X?"vertical":"horizontalreversed",q._fillgradient,"fill");else{var Bt=Oe(Lt).replace("e-","");At.attr("fill",v(Bt).toHexString())}});var wt=A.select("."+O.cblines).selectAll("path."+O.cbline).data(we.color&&we.width?ze:[]);wt.enter().append("path").classed(O.cbline,!0),wt.exit().remove(),wt.each(function(Lt){var Ct=Ee,Rt=Math.round(at.c2p(Lt))+we.width/2%1;k.select(this).attr("d","M"+(X?Ct+","+Rt:Rt+","+Ct)+(X?"h":"v")+Le).call(s.lineGroupStyle,we.width,Ne(Lt),we.dash)}),Kt.selectAll("g."+at._id+"tick,path").remove();var St=Ee+Le+(G||0)/2-(q.ticks==="outside"?1:0),vt=b.calcTicks(at),Pt=b.getTickSigns(at)[2];return b.drawTicks(j,at,{vals:at.ticks==="inside"?b.clipEnds(at,vt):vt,layer:Kt,path:b.makeTickPath(at,St,Pt),transFn:b.makeTransTickFn(at)}),b.drawLabels(j,at,{vals:vt,layer:Kt,transFn:b.makeTransTickLabelFn(at),labelFns:b.makeLabelFns(at,St)})},function(){if(X&&!ft||!X&&ft){var Xe,et,ht=at.position||0,dt=at._offset+at._length/2;if(Se==="right")et=dt,Xe=be.l+ve*ht+10+jt*(at.showticklabels?1:.5);else if(Xe=dt,Se==="bottom"&&(et=be.t+ke*ht+10+(Vt.indexOf("inside")===-1?at.tickfont.size:0)+(at.ticks!=="intside"&&q.ticklen||0)),Se==="top"){var De=Ce.text.split("<br>").length;et=be.t+ke*ht+10-Le-x*jt*De}tt((X?"h":"v")+at._id+"title",{avoid:{selection:k.select(j).selectAll("g."+at._id+"tick"),side:Se,offsetTop:X?0:be.t,offsetLeft:X?be.l:0,maxShift:X?me.width:me.height},attributes:{x:Xe,y:et,"text-anchor":"middle"},transform:{rotate:X?-90:0,offset:0}})}},n.previousPromises,function(){var Xe,et=Le+G/2;Vt.indexOf("inside")===-1&&(Xe=s.bBox(Kt.node()),et+=X?Xe.width:Xe.height),st=lt.select("text");var ht=0,dt=X&&Se==="top",De=!X&&Se==="right",Ge=0;if(st.node()&&!st.classed(O.jsPlaceholder)){var pt,nt=lt.select(".h"+at._id+"title-math-group").node();nt&&(X&&ft||!X&&!ft)?(ht=(Xe=s.bBox(nt)).width,pt=Xe.height):(ht=(Xe=s.bBox(lt.node())).right-be.l-(X?Ee:He),pt=Xe.bottom-be.t-(X?He:Ee),X||Se!=="top"||(et+=Xe.height,Ge=Xe.height)),De&&(st.attr("transform",t(ht/2+jt/2,0)),ht*=2),et=Math.max(et,X?ht:pt)}var bt=2*(X?$:te)+et+J+G/2,wt=0;!X&&Ce.text&&ne==="bottom"&&ce<=0&&(bt+=wt=bt/2,Ge+=wt),me._hColorbarMoveTitle=wt,me._hColorbarMoveCBTitle=Ge;var St=J+G,vt=(X?Ee:He)-St/2-(X?$:0),Pt=(X?He:Ee)-(X?Re:te+Ge-wt);A.select("."+O.cbbg).attr("x",vt).attr("y",Pt).attr(X?"width":"height",Math.max(bt-wt,2)).attr(X?"height":"width",Math.max(Re+St,2)).call(l.fill,se).call(l.stroke,q.bordercolor).style("stroke-width",J);var Lt=De?Math.max(ht-10,0):0;A.selectAll("."+O.cboutline).attr("x",(X?Ee:He+$)+Lt).attr("y",(X?He+te-Re:Ee)+(dt?It:0)).attr(X?"width":"height",Math.max(Le,2)).attr(X?"height":"width",Math.max(Re-(X?2*te+It:2*$+Lt),2)).call(l.stroke,q.outlinecolor).style({fill:"none","stroke-width":G});var Ct=X?je*bt:0,Rt=X?0:(1-Be)*bt-Ge;if(Ct=de?be.l-Ct:-Ct,Rt=ue?be.t-Rt:-Rt,A.attr("transform",t(Ct,Rt)),!X&&(J||v(se).getAlpha()&&!v.equals(me.paper_bgcolor,se))){var At=Kt.selectAll("text"),Bt=At[0].length,nn=A.select("."+O.cbbg).node(),hn=s.bBox(nn),Ht=s.getTranslate(A);At.each(function(Un,An){var Wn=Bt-1;if(An===0||An===Wn){var Gn,jn=s.bBox(this),er=s.getTranslate(this);if(An===Wn){var Qn=jn.right+er.x;(Gn=hn.right+Ht.x+He-J-2+ae-Qn)>0&&(Gn=0)}else if(An===0){var vr=jn.left+er.x;(Gn=hn.left+Ht.x+He+J+2-vr)<0&&(Gn=0)}Gn&&(Bt<3?this.setAttribute("transform","translate("+Gn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Qt={},un=_[re],In=S[re],zn=_[ne],wn=S[ne],rn=bt-Le;X?(W==="pixels"?(Qt.y=ce,Qt.t=Re*zn,Qt.b=Re*wn):(Qt.t=Qt.b=0,Qt.yt=ce+F*zn,Qt.yb=ce-F*wn),B==="pixels"?(Qt.x=ae,Qt.l=bt*un,Qt.r=bt*In):(Qt.l=rn*un,Qt.r=rn*In,Qt.xl=ae-Y*un,Qt.xr=ae+Y*In)):(W==="pixels"?(Qt.x=ae,Qt.l=Re*un,Qt.r=Re*In):(Qt.l=Qt.r=0,Qt.xl=ae+F*un,Qt.xr=ae-F*In),B==="pixels"?(Qt.y=1-ce,Qt.t=bt*zn,Qt.b=bt*wn):(Qt.t=rn*zn,Qt.b=rn*wn,Qt.yt=ce-Y*zn,Qt.yb=ce+Y*wn));var vn=q.y<.5?"b":"t",dn=q.x<.5?"l":"r";j._fullLayout._reservedMargin[q._id]={};var _n={r:me.width-vt-Ct,l:vt+Qt.r,b:me.height-Pt-Rt,t:Pt+Qt.b};de&&ue?n.autoMargin(j,q._id,Qt):de?j._fullLayout._reservedMargin[q._id][vn]=_n[vn]:ue||X?j._fullLayout._reservedMargin[q._id][dn]=_n[dn]:j._fullLayout._reservedMargin[q._id][vn]=_n[vn]}],j)}(P,N,h);R&&R.then&&(h._promises||[]).push(R),h._context.edits.colorbarPosition&&function(A,q,j){var X,F,W,Y=q.orientation==="v",B=j._fullLayout._size;c.init({element:A.node(),gd:j,prepFn:function(){X=A.attr("transform"),i(A)},moveFn:function(G,J){A.attr("transform",X+t(G,J)),F=c.align((Y?q._uFrac:q._vFrac)+G/B.w,Y?q._thickFrac:q._lenFrac,0,1,q.xanchor),W=c.align((Y?q._vFrac:1-q._uFrac)-J/B.h,Y?q._lenFrac:q._thickFrac,0,1,q.yanchor);var se=c.getCursor(F,W,q.xanchor,q.yanchor);i(A,se)},doneFn:function(){if(i(A),F!==void 0&&W!==void 0){var G={};G[q._propPrefix+"x"]=F,G[q._propPrefix+"y"]=W,q._traceIndex!==void 0?w.call("_guiRestyle",j,G,q._traceIndex):w.call("_guiRelayout",j,G)}}})}(P,N,h)}),M.exit().each(function(N){n.autoMargin(h,N._id)}).remove(),M.order()}}},90553:function(L,T,e){var k=e(3400);L.exports=function(v){return k.isPlainObject(v.colorbar)}},55080:function(L,T,e){L.exports={moduleType:"component",name:"colorbar",attributes:e(42996),supplyDefaults:e(64013),draw:e(37848).draw,hasColorbar:e(90553)}},49084:function(L,T,e){var k=e(42996),v=e(53756).counter,n=e(95376),w=e(88304).scales;function b(c){return"`"+c+"`"}n(w),L.exports=function(c,a){c=c||"";var t,o=(a=a||{}).cLetter||"c",i=("onlyIfNumerical"in a&&a.onlyIfNumerical,"noScale"in a?a.noScale:c==="marker.line"),s="showScaleDflt"in a?a.showScaleDflt:o==="z",l=typeof a.colorscaleDflt=="string"?w[a.colorscaleDflt]:null,u=a.editTypeOverride||"",d=c?c+".":"";"colorAttr"in a?(t=a.colorAttr,a.colorAttr):b(d+(t={z:"z",c:"color"}[o]));var g=o+"auto",f=o+"min",C=o+"max",y=o+"mid",m={};m[f]=m[C]=void 0;var x={};x[g]=!1;var _={};return t==="color"&&(_.color={valType:"color",arrayOk:!0,editType:u||"style"},a.anim&&(_.color.anim=!0)),_[g]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:m},_[f]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:x},_[C]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:x},_[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:m},_.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},_.autocolorscale={valType:"boolean",dflt:a.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},_.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(_.showscale={valType:"boolean",dflt:s,editType:"calc"},_.colorbar=k),a.noColorAxis||(_.coloraxis={valType:"subplotid",regex:v("coloraxis"),dflt:null,editType:"calc"}),_}},47128:function(L,T,e){var k=e(38248),v=e(3400),n=e(94288).extractOpts;L.exports=function(w,b,c){var a,t=w._fullLayout,o=c.vals,i=c.containerStr,s=i?v.nestedProperty(b,i).get():b,l=n(s),u=l.auto!==!1,d=l.min,g=l.max,f=l.mid,C=function(){return v.aggNums(Math.min,null,o)},y=function(){return v.aggNums(Math.max,null,o)};d===void 0?d=C():u&&(d=s._colorAx&&k(d)?Math.min(d,C()):C()),g===void 0?g=y():u&&(g=s._colorAx&&k(g)?Math.max(g,y()):y()),u&&f!==void 0&&(g-f>f-d?d=f-(g-f):g-f<f-d&&(g=f+(f-d))),d===g&&(d-=.5,g+=.5),l._sync("min",d),l._sync("max",g),l.autocolorscale&&(a=d*g<0?t.colorscale.diverging:d>=0?t.colorscale.sequential:t.colorscale.sequentialminus,l._sync("colorscale",a))}},95504:function(L,T,e){var k=e(3400),v=e(94288).hasColorscale,n=e(94288).extractOpts;L.exports=function(w,b){function c(u,d){var g=u["_"+d];g!==void 0&&(u[d]=g)}function a(u,d){var g=d.container?k.nestedProperty(u,d.container).get():u;if(g)if(g.coloraxis)g._colorAx=b[g.coloraxis];else{var f=n(g),C=f.auto;(C||f.min===void 0)&&c(g,d.min),(C||f.max===void 0)&&c(g,d.max),f.autocolorscale&&c(g,"colorscale")}}for(var t=0;t<w.length;t++){var o=w[t],i=o._module.colorbar;if(i)if(Array.isArray(i))for(var s=0;s<i.length;s++)a(o,i[s]);else a(o,i);v(o,"marker.line")&&a(o,{container:"marker.line",min:"cmin",max:"cmax"})}for(var l in b._colorAxes)a(b[l],{min:"cmin",max:"cmax"})}},27260:function(L,T,e){var k=e(38248),v=e(3400),n=e(90553),w=e(64013),b=e(88304).isValid,c=e(24040).traceIs;function a(t,o){var i=o.slice(0,o.length-1);return o?v.nestedProperty(t,i).get()||{}:t}L.exports=function t(o,i,s,l,u){var d=u.prefix,g=u.cLetter,f="_module"in i,C=a(o,d),y=a(i,d),m=a(i._template||{},d)||{},x=function(){return delete o.coloraxis,delete i.coloraxis,t(o,i,s,l,u)};if(f){var _=s._colorAxes||{},S=l(d+"coloraxis");if(S){var O=c(i,"contour")&&v.nestedProperty(i,"contours.coloring").get()||"heatmap",h=_[S];return void(h?(h[2].push(x),h[0]!==O&&(h[0]=!1,v.warn(["Ignoring coloraxis:",S,"setting","as it is linked to incompatible colorscales."].join(" ")))):_[S]=[O,i,[x]])}}var M=C[g+"min"],N=C[g+"max"],P=k(M)&&k(N)&&M<N;l(d+g+"auto",!P)?l(d+g+"mid"):(l(d+g+"min"),l(d+g+"max"));var R,A,q=C.colorscale,j=m.colorscale;q!==void 0&&(R=!b(q)),j!==void 0&&(R=!b(j)),l(d+"autocolorscale",R),l(d+"colorscale"),l(d+"reversescale"),d!=="marker.line."&&(d&&f&&(A=n(C)),l(d+"showscale",A)&&(d&&m&&(y._template=m),w(C,y,s)))}},94288:function(L,T,e){var k=e(33428),v=e(49760),n=e(38248),w=e(3400),b=e(76308),c=e(88304).isValid,a=["showscale","autocolorscale","colorscale","reversescale","colorbar"],t=["min","max","mid","auto"];function o(d){var g,f,C,y=d._colorAx,m=y||d,x={};for(f=0;f<a.length;f++)x[C=a[f]]=m[C];if(y)for(g="c",f=0;f<t.length;f++)x[C=t[f]]=m["c"+C];else{var _;for(f=0;f<t.length;f++)((_="c"+(C=t[f]))in m||(_="z"+C)in m)&&(x[C]=m[_]);g=_.charAt(0)}return x._sync=function(S,O){var h=t.indexOf(S)!==-1?g+S:S;m[h]=m["_"+h]=O},x}function i(d){for(var g=o(d),f=g.min,C=g.max,y=g.reversescale?s(g.colorscale):g.colorscale,m=y.length,x=new Array(m),_=new Array(m),S=0;S<m;S++){var O=y[S];x[S]=f+O[0]*(C-f),_[S]=O[1]}return{domain:x,range:_}}function s(d){for(var g=d.length,f=new Array(g),C=g-1,y=0;C>=0;C--,y++){var m=d[C];f[y]=[1-m[0],m[1]]}return f}function l(d,g){g=g||{};for(var f=d.domain,C=d.range,y=C.length,m=new Array(y),x=0;x<y;x++){var _=v(C[x]).toRgb();m[x]=[_.r,_.g,_.b,_.a]}var S,O=k.scale.linear().domain(f).range(m).clamp(!0),h=g.noNumericCheck,M=g.returnArray;return(S=h&&M?O:h?function(N){return u(O(N))}:M?function(N){return n(N)?O(N):v(N).isValid()?N:b.defaultLine}:function(N){return n(N)?u(O(N)):v(N).isValid()?N:b.defaultLine}).domain=O.domain,S.range=function(){return C},S}function u(d){var g={r:d[0],g:d[1],b:d[2],a:d[3]};return v(g).toRgbString()}L.exports={hasColorscale:function(d,g,f){var C=g?w.nestedProperty(d,g).get()||{}:d,y=C[f||"color"];y&&y._inputArray&&(y=y._inputArray);var m=!1;if(w.isArrayOrTypedArray(y)){for(var x=0;x<y.length;x++)if(n(y[x])){m=!0;break}}return w.isPlainObject(C)&&(m||C.showscale===!0||n(C.cmin)&&n(C.cmax)||c(C.colorscale)||w.isPlainObject(C.colorbar))},extractOpts:o,extractScale:i,flipScale:s,makeColorScaleFunc:l,makeColorScaleFuncFromTrace:function(d,g){return l(i(d),g)}}},8932:function(L,T,e){var k=e(88304),v=e(94288);L.exports={moduleType:"component",name:"colorscale",attributes:e(49084),layoutAttributes:e(92332),supplyLayoutDefaults:e(51608),handleDefaults:e(27260),crossTraceDefaults:e(95504),calc:e(47128),scales:k.scales,defaultScale:k.defaultScale,getScale:k.get,isValidScale:k.isValid,hasColorscale:v.hasColorscale,extractOpts:v.extractOpts,extractScale:v.extractScale,flipScale:v.flipScale,makeColorScaleFunc:v.makeColorScaleFunc,makeColorScaleFuncFromTrace:v.makeColorScaleFuncFromTrace}},92332:function(L,T,e){var k=e(92880).extendFlat,v=e(49084),n=e(88304).scales;L.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:k({_isSubplotObj:!0,editType:"calc"},v("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},51608:function(L,T,e){var k=e(3400),v=e(31780),n=e(92332),w=e(27260);L.exports=function(b,c){function a(g,f){return k.coerce(b,c,n,g,f)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var t,o,i=c._colorAxes;function s(g,f){return k.coerce(t,o,n.coloraxis,g,f)}for(var l in i){var u=i[l];if(u[0])t=b[l]||{},(o=v.newContainer(c,l,"coloraxis"))._name=l,w(t,o,c,s,{prefix:"",cLetter:"c"});else{for(var d=0;d<u[2].length;d++)u[2][d]();delete c._colorAxes[l]}}}},88304:function(L,T,e){var k=e(49760),v={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=v.RdBu;function w(b){var c=0;if(!Array.isArray(b)||b.length<2||!b[0]||!b[b.length-1]||+b[0][0]!=0||+b[b.length-1][0]!=1)return!1;for(var a=0;a<b.length;a++){var t=b[a];if(t.length!==2||+t[0]<c||!k(t[1]).isValid())return!1;c=+t[0]}return!0}L.exports={scales:v,defaultScale:n,get:function(b,c){if(c||(c=n),!b)return c;function a(){try{b=v[b]||JSON.parse(b)}catch{b=c}}return typeof b=="string"&&(a(),typeof b=="string"&&a()),w(b)?b:c},isValid:function(b){return v[b]!==void 0||w(b)}}},78316:function(L){L.exports=function(T,e,k,v,n){var w=(T-k)/(v-k),b=w+e/(v-k),c=(w+b)/2;return n==="left"||n==="bottom"?w:n==="center"||n==="middle"?c:n==="right"||n==="top"?b:w<.6666666666666666-c?w:b>1.3333333333333333-c?b:c}},67416:function(L,T,e){var k=e(3400),v=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];L.exports=function(n,w,b,c){return n=b==="left"?0:b==="center"?1:b==="right"?2:k.constrain(Math.floor(3*n),0,2),w=c==="bottom"?0:c==="middle"?1:c==="top"?2:k.constrain(Math.floor(3*w),0,2),v[w][n]}},72760:function(L,T){T.selectMode=function(e){return e==="lasso"||e==="select"},T.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"},T.openMode=function(e){return e==="drawline"||e==="drawopenpath"},T.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"},T.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"},T.selectingOrDrawing=function(e){return T.freeMode(e)||T.rectMode(e)}},86476:function(L,T,e){var k=e(29128),v=e(52264),n=e(89184),w=e(3400).removeElement,b=e(33816),c=L.exports={};c.align=e(78316),c.getCursor=e(67416);var a=e(2616);function t(){var i=document.createElement("div");i.className="dragcover";var s=i.style;return s.position="fixed",s.left=0,s.right=0,s.top=0,s.bottom=0,s.zIndex=999999999,s.background="none",document.body.appendChild(i),i}function o(i){return k(i.changedTouches?i.changedTouches[0]:i,document.body)}c.unhover=a.wrapped,c.unhoverRaw=a.raw,c.init=function(i){var s,l,u,d,g,f,C,y,m=i.gd,x=1,_=m._context.doubleClickDelay,S=i.element;m._mouseDownTime||(m._mouseDownTime=0),S.style.pointerEvents="all",S.onmousedown=h,n?(S._ontouchstart&&S.removeEventListener("touchstart",S._ontouchstart),S._ontouchstart=h,S.addEventListener("touchstart",h,{passive:!1})):S.ontouchstart=h;var O=i.clampFn||function(P,R,A){return Math.abs(P)<A&&(P=0),Math.abs(R)<A&&(R=0),[P,R]};function h(P){m._dragged=!1,m._dragging=!0;var R=o(P);s=R[0],l=R[1],C=P.target,f=P,y=P.buttons===2||P.ctrlKey,P.clientX===void 0&&P.clientY===void 0&&(P.clientX=s,P.clientY=l),(u=new Date().getTime())-m._mouseDownTime<_?x+=1:(x=1,m._mouseDownTime=u),i.prepFn&&i.prepFn(P,s,l),v&&!y?(g=t()).style.cursor=window.getComputedStyle(S).cursor:v||(g=document,d=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(S).cursor),document.addEventListener("mouseup",N),document.addEventListener("touchend",N),i.dragmode!==!1&&(P.preventDefault(),document.addEventListener("mousemove",M),document.addEventListener("touchmove",M,{passive:!1}))}function M(P){P.preventDefault();var R=o(P),A=i.minDrag||b.MINDRAG,q=O(R[0]-s,R[1]-l,A),j=q[0],X=q[1];(j||X)&&(m._dragged=!0,c.unhover(m,P)),m._dragged&&i.moveFn&&!y&&(m._dragdata={element:S,dx:j,dy:X},i.moveFn(j,X))}function N(P){if(delete m._dragdata,i.dragmode!==!1&&(P.preventDefault(),document.removeEventListener("mousemove",M),document.removeEventListener("touchmove",M)),document.removeEventListener("mouseup",N),document.removeEventListener("touchend",N),v?w(g):d&&(g.documentElement.style.cursor=d,d=null),m._dragging){if(m._dragging=!1,new Date().getTime()-m._mouseDownTime>_&&(x=Math.max(x-1,1)),m._dragged)i.doneFn&&i.doneFn();else if(i.clickFn&&i.clickFn(x,f),!y){var R;try{R=new MouseEvent("click",P)}catch{var A=o(P);(R=document.createEvent("MouseEvents")).initMouseEvent("click",P.bubbles,P.cancelable,P.view,P.detail,P.screenX,P.screenY,A[0],A[1],P.ctrlKey,P.altKey,P.shiftKey,P.metaKey,P.button,P.relatedTarget)}C.dispatchEvent(R)}m._dragging=!1,m._dragged=!1}else m._dragged=!1}},c.coverSlip=t},2616:function(L,T,e){var k=e(95924),v=e(91200),n=e(52200).getGraphDiv,w=e(92456),b=L.exports={};b.wrapped=function(c,a,t){(c=n(c))._fullLayout&&v.clear(c._fullLayout._uid+w.HOVERID),b.raw(c,a,t)},b.raw=function(c,a){var t=c._fullLayout,o=c._hoverdata;a||(a={}),a.target&&!c._dragged&&k.triggerHandler(c,"plotly_beforehover",a)===!1||(t._hoverlayer.selectAll("g").remove(),t._hoverlayer.selectAll("line").remove(),t._hoverlayer.selectAll("circle").remove(),c._hoverdata=void 0,a.target&&o&&c.emit("plotly_unhover",{event:a,points:o}))}},98192:function(L,T){T.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},T.c={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"}},43616:function(L,T,e){var k=e(33428),v=e(3400),n=v.numberFormat,w=e(38248),b=e(49760),c=e(24040),a=e(76308),t=e(8932),o=v.strTranslate,i=e(72736),s=e(9616),l=e(84284).LINE_SPACING,u=e(13448).DESELECTDIM,d=e(43028),g=e(7152),f=e(10624).appendArrayPointValue,C=L.exports={};function y(Ne,Oe,pe){var fe=Oe.fillpattern,xe=fe&&C.getPatternAttr(fe.shape,0,"");if(xe){var ze=C.getPatternAttr(fe.bgcolor,0,null),Le=C.getPatternAttr(fe.fgcolor,0,null),Ue=fe.fgopacity,Re=C.getPatternAttr(fe.size,0,8),Fe=C.getPatternAttr(fe.solidity,0,.3),ve=Oe.uid;C.pattern(Ne,"point",pe,ve,xe,Re,Fe,void 0,fe.fillmode,ze,Le,Ue)}else Oe.fillcolor&&Ne.call(a.fill,Oe.fillcolor)}C.font=function(Ne,Oe,pe,fe){v.isPlainObject(Oe)&&(fe=Oe.color,pe=Oe.size,Oe=Oe.family),Oe&&Ne.style("font-family",Oe),pe+1&&Ne.style("font-size",pe+"px"),fe&&Ne.call(a.fill,fe)},C.setPosition=function(Ne,Oe,pe){Ne.attr("x",Oe).attr("y",pe)},C.setSize=function(Ne,Oe,pe){Ne.attr("width",Oe).attr("height",pe)},C.setRect=function(Ne,Oe,pe,fe,xe){Ne.call(C.setPosition,Oe,pe).call(C.setSize,fe,xe)},C.translatePoint=function(Ne,Oe,pe,fe){var xe=pe.c2p(Ne.x),ze=fe.c2p(Ne.y);return!!(w(xe)&&w(ze)&&Oe.node())&&(Oe.node().nodeName==="text"?Oe.attr("x",xe).attr("y",ze):Oe.attr("transform",o(xe,ze)),!0)},C.translatePoints=function(Ne,Oe,pe){Ne.each(function(fe){var xe=k.select(this);C.translatePoint(fe,xe,Oe,pe)})},C.hideOutsideRangePoint=function(Ne,Oe,pe,fe,xe,ze){Oe.attr("display",pe.isPtWithinRange(Ne,xe)&&fe.isPtWithinRange(Ne,ze)?null:"none")},C.hideOutsideRangePoints=function(Ne,Oe){if(Oe._hasClipOnAxisFalse){var pe=Oe.xaxis,fe=Oe.yaxis;Ne.each(function(xe){var ze=xe[0].trace,Le=ze.xcalendar,Ue=ze.ycalendar,Re=c.traceIs(ze,"bar-like")?".bartext":".point,.textpoint";Ne.selectAll(Re).each(function(Fe){C.hideOutsideRangePoint(Fe,k.select(this),pe,fe,Le,Ue)})})}},C.crispRound=function(Ne,Oe,pe){return Oe&&w(Oe)?Ne._context.staticPlot?Oe:Oe<1?1:Math.round(Oe):pe||0},C.singleLineStyle=function(Ne,Oe,pe,fe,xe){Oe.style("fill","none");var ze=(((Ne||[])[0]||{}).trace||{}).line||{},Le=pe||ze.width||0,Ue=xe||ze.dash||"";a.stroke(Oe,fe||ze.color),C.dashLine(Oe,Ue,Le)},C.lineGroupStyle=function(Ne,Oe,pe,fe){Ne.style("fill","none").each(function(xe){var ze=(((xe||[])[0]||{}).trace||{}).line||{},Le=Oe||ze.width||0,Ue=fe||ze.dash||"";k.select(this).call(a.stroke,pe||ze.color).call(C.dashLine,Ue,Le)})},C.dashLine=function(Ne,Oe,pe){pe=+pe||0,Oe=C.dashStyle(Oe,pe),Ne.style({"stroke-dasharray":Oe,"stroke-width":pe+"px"})},C.dashStyle=function(Ne,Oe){Oe=+Oe||1;var pe=Math.max(Oe,3);return Ne==="solid"?Ne="":Ne==="dot"?Ne=pe+"px,"+pe+"px":Ne==="dash"?Ne=3*pe+"px,"+3*pe+"px":Ne==="longdash"?Ne=5*pe+"px,"+5*pe+"px":Ne==="dashdot"?Ne=3*pe+"px,"+pe+"px,"+pe+"px,"+pe+"px":Ne==="longdashdot"&&(Ne=5*pe+"px,"+2*pe+"px,"+pe+"px,"+2*pe+"px"),Ne},C.singleFillStyle=function(Ne,Oe){var pe=k.select(Ne.node());y(Ne,((pe.data()[0]||[])[0]||{}).trace||{},Oe)},C.fillGroupStyle=function(Ne,Oe){Ne.style("stroke-width",0).each(function(pe){var fe=k.select(this);pe[0].trace&&y(fe,pe[0].trace,Oe)})};var m=e(71984);C.symbolNames=[],C.symbolFuncs=[],C.symbolBackOffs=[],C.symbolNeedLines={},C.symbolNoDot={},C.symbolNoFill={},C.symbolList=[],Object.keys(m).forEach(function(Ne){var Oe=m[Ne],pe=Oe.n;C.symbolList.push(pe,String(pe),Ne,pe+100,String(pe+100),Ne+"-open"),C.symbolNames[pe]=Ne,C.symbolFuncs[pe]=Oe.f,C.symbolBackOffs[pe]=Oe.backoff||0,Oe.needLine&&(C.symbolNeedLines[pe]=!0),Oe.noDot?C.symbolNoDot[pe]=!0:C.symbolList.push(pe+200,String(pe+200),Ne+"-dot",pe+300,String(pe+300),Ne+"-open-dot"),Oe.noFill&&(C.symbolNoFill[pe]=!0)});var x=C.symbolNames.length;function _(Ne,Oe,pe,fe){var xe=Ne%100;return C.symbolFuncs[xe](Oe,pe,fe)+(Ne>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}C.symbolNumber=function(Ne){if(w(Ne))Ne=+Ne;else if(typeof Ne=="string"){var Oe=0;Ne.indexOf("-open")>0&&(Oe=100,Ne=Ne.replace("-open","")),Ne.indexOf("-dot")>0&&(Oe+=200,Ne=Ne.replace("-dot","")),(Ne=C.symbolNames.indexOf(Ne))>=0&&(Ne+=Oe)}return Ne%100>=x||Ne>=400?0:Math.floor(Math.max(Ne,0))};var S={x1:1,x2:0,y1:0,y2:0},O={x1:0,x2:0,y1:1,y2:0},h=n("~f"),M={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:S},horizontalreversed:{node:"linearGradient",attrs:S,reversed:!0},vertical:{node:"linearGradient",attrs:O},verticalreversed:{node:"linearGradient",attrs:O,reversed:!0}};C.gradient=function(Ne,Oe,pe,fe,xe,ze){for(var Le=xe.length,Ue=M[fe],Re=new Array(Le),Fe=0;Fe<Le;Fe++)Ue.reversed?Re[Le-1-Fe]=[h(100*(1-xe[Fe][0])),xe[Fe][1]]:Re[Fe]=[h(100*xe[Fe][0]),xe[Fe][1]];var ve=Oe._fullLayout,ke="g"+ve._uid+"-"+pe,Ee=ve._defs.select(".gradients").selectAll("#"+ke).data([fe+Re.join(";")],v.identity);Ee.exit().remove(),Ee.enter().append(Ue.node).each(function(){var je=k.select(this);Ue.attrs&&je.attr(Ue.attrs),je.attr("id",ke);var Be=je.selectAll("stop").data(Re);Be.exit().remove(),Be.enter().append("stop"),Be.each(function(Ie){var Ze=b(Ie[1]);k.select(this).attr({offset:Ie[0]+"%","stop-color":a.tinyRGB(Ze),"stop-opacity":Ze.getAlpha()})})}),Ne.style(ze,re(ke,Oe)).style(ze+"-opacity",null),Ne.classed("gradient_filled",!0)},C.pattern=function(Ne,Oe,pe,fe,xe,ze,Le,Ue,Re,Fe,ve,ke){var Ee=Oe==="legend";Ue&&(Re==="overlay"?(Fe=Ue,ve=a.contrast(Fe)):(Fe=void 0,ve=Ue));var je,Be,Ie,Ze,He,at,ft,ut,_t,Nt=pe._fullLayout,Tt="p"+Nt._uid+"-"+fe,st={},lt=b(ve),Vt=a.tinyRGB(lt),jt=ke*lt.getAlpha();switch(xe){case"/":je=ze*Math.sqrt(2),Be=ze*Math.sqrt(2),at="path",st={d:Ie="M-"+je/4+","+Be/4+"l"+je/2+",-"+Be/2+"M0,"+Be+"L"+je+",0M"+je/4*3+","+Be/4*5+"l"+je/2+",-"+Be/2,opacity:jt,stroke:Vt,"stroke-width":(Ze=Le*ze)+"px"};break;case"\\":je=ze*Math.sqrt(2),Be=ze*Math.sqrt(2),at="path",st={d:Ie="M"+je/4*3+",-"+Be/4+"l"+je/2+","+Be/2+"M0,0L"+je+","+Be+"M-"+je/4+","+Be/4*3+"l"+je/2+","+Be/2,opacity:jt,stroke:Vt,"stroke-width":(Ze=Le*ze)+"px"};break;case"x":je=ze*Math.sqrt(2),Be=ze*Math.sqrt(2),Ie="M-"+je/4+","+Be/4+"l"+je/2+",-"+Be/2+"M0,"+Be+"L"+je+",0M"+je/4*3+","+Be/4*5+"l"+je/2+",-"+Be/2+"M"+je/4*3+",-"+Be/4+"l"+je/2+","+Be/2+"M0,0L"+je+","+Be+"M-"+je/4+","+Be/4*3+"l"+je/2+","+Be/2,Ze=ze-ze*Math.sqrt(1-Le),at="path",st={d:Ie,opacity:jt,stroke:Vt,"stroke-width":Ze+"px"};break;case"|":at="path",at="path",st={d:Ie="M"+(je=ze)/2+",0L"+je/2+","+(Be=ze),opacity:jt,stroke:Vt,"stroke-width":(Ze=Le*ze)+"px"};break;case"-":at="path",at="path",st={d:Ie="M0,"+(Be=ze)/2+"L"+(je=ze)+","+Be/2,opacity:jt,stroke:Vt,"stroke-width":(Ze=Le*ze)+"px"};break;case"+":at="path",Ie="M"+(je=ze)/2+",0L"+je/2+","+(Be=ze)+"M0,"+Be/2+"L"+je+","+Be/2,Ze=ze-ze*Math.sqrt(1-Le),at="path",st={d:Ie,opacity:jt,stroke:Vt,"stroke-width":Ze+"px"};break;case".":je=ze,Be=ze,Le<Math.PI/4?He=Math.sqrt(Le*ze*ze/Math.PI):(ft=Le,ut=Math.PI/4,He=(_t=ze/2)+(ze/Math.sqrt(2)-_t)*(ft-ut)/(1-ut)),at="circle",st={cx:je/2,cy:Be/2,r:He,opacity:jt,fill:Vt}}var Kt=[xe||"noSh",Fe||"noBg",ve||"noFg",ze,Le].join(";"),It=Nt._defs.select(".patterns").selectAll("#"+Tt).data([Kt],v.identity);It.exit().remove(),It.enter().append("pattern").each(function(){var $e=k.select(this);if($e.attr({id:Tt,width:je+"px",height:Be+"px",patternUnits:"userSpaceOnUse",patternTransform:Ee?"scale(0.8)":""}),Fe){var tt=b(Fe),Xe=a.tinyRGB(tt),et=tt.getAlpha(),ht=$e.selectAll("rect").data([0]);ht.exit().remove(),ht.enter().append("rect").attr({width:je+"px",height:Be+"px",fill:Xe,"fill-opacity":et})}var dt=$e.selectAll(at).data([0]);dt.exit().remove(),dt.enter().append(at).attr(st)}),Ne.style("fill",re(Tt,pe)).style("fill-opacity",null),Ne.classed("pattern_filled",!0)},C.initGradients=function(Ne){var Oe=Ne._fullLayout;v.ensureSingle(Oe._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),k.select(Ne).selectAll(".gradient_filled").classed("gradient_filled",!1)},C.initPatterns=function(Ne){var Oe=Ne._fullLayout;v.ensureSingle(Oe._defs,"g","patterns").selectAll("pattern").remove(),k.select(Ne).selectAll(".pattern_filled").classed("pattern_filled",!1)},C.getPatternAttr=function(Ne,Oe,pe){return Ne&&v.isArrayOrTypedArray(Ne)?Oe<Ne.length?Ne[Oe]:pe:Ne},C.pointStyle=function(Ne,Oe,pe,fe){if(Ne.size()){var xe=C.makePointStyleFns(Oe);Ne.each(function(ze){C.singlePointStyle(ze,k.select(this),Oe,xe,pe,fe)})}},C.singlePointStyle=function(Ne,Oe,pe,fe,xe,ze){var Le=pe.marker,Ue=Le.line;if(ze&&ze.i>=0&&Ne.i===void 0&&(Ne.i=ze.i),Oe.style("opacity",fe.selectedOpacityFn?fe.selectedOpacityFn(Ne):Ne.mo===void 0?Le.opacity:Ne.mo),fe.ms2mrc){var Re;Re=Ne.ms==="various"||Le.size==="various"?3:fe.ms2mrc(Ne.ms),Ne.mrc=Re,fe.selectedSizeFn&&(Re=Ne.mrc=fe.selectedSizeFn(Ne));var Fe=C.symbolNumber(Ne.mx||Le.symbol)||0;Ne.om=Fe%200>=100;var ve=Pe(Ne,pe),ke=te(Ne,pe);Oe.attr("d",_(Fe,Re,ve,ke))}var Ee,je,Be,Ie=!1;if(Ne.so)Be=Ue.outlierwidth,je=Ue.outliercolor,Ee=Le.outliercolor;else{var Ze=(Ue||{}).width;Be=(Ne.mlw+1||Ze+1||(Ne.trace?(Ne.trace.marker.line||{}).width:0)+1)-1||0,je="mlc"in Ne?Ne.mlcc=fe.lineScale(Ne.mlc):v.isArrayOrTypedArray(Ue.color)?a.defaultLine:Ue.color,v.isArrayOrTypedArray(Le.color)&&(Ee=a.defaultLine,Ie=!0),Ee="mc"in Ne?Ne.mcc=fe.markerScale(Ne.mc):Le.color||Le.colors||"rgba(0,0,0,0)",fe.selectedColorFn&&(Ee=fe.selectedColorFn(Ne))}if(Ne.om)Oe.call(a.stroke,Ee).style({"stroke-width":(Be||1)+"px",fill:"none"});else{Oe.style("stroke-width",(Ne.isBlank?0:Be)+"px");var He=Le.gradient,at=Ne.mgt;at?Ie=!0:at=He&&He.type,v.isArrayOrTypedArray(at)&&(at=at[0],M[at]||(at=0));var ft=Le.pattern,ut=ft&&C.getPatternAttr(ft.shape,Ne.i,"");if(at&&at!=="none"){var _t=Ne.mgc;_t?Ie=!0:_t=He.color;var Nt=pe.uid;Ie&&(Nt+="-"+Ne.i),C.gradient(Oe,xe,Nt,at,[[0,_t],[1,Ee]],"fill")}else if(ut){var Tt=!1,st=ft.fgcolor;!st&&ze&&ze.color&&(st=ze.color,Tt=!0);var lt=C.getPatternAttr(st,Ne.i,ze&&ze.color||null),Vt=C.getPatternAttr(ft.bgcolor,Ne.i,null),jt=ft.fgopacity,Kt=C.getPatternAttr(ft.size,Ne.i,8),It=C.getPatternAttr(ft.solidity,Ne.i,.3);Tt=Tt||Ne.mcc||v.isArrayOrTypedArray(ft.shape)||v.isArrayOrTypedArray(ft.bgcolor)||v.isArrayOrTypedArray(ft.fgcolor)||v.isArrayOrTypedArray(ft.size)||v.isArrayOrTypedArray(ft.solidity);var $e=pe.uid;Tt&&($e+="-"+Ne.i),C.pattern(Oe,"point",xe,$e,ut,Kt,It,Ne.mcc,ft.fillmode,Vt,lt,jt)}else v.isArrayOrTypedArray(Ee)?a.fill(Oe,Ee[Ne.i]):a.fill(Oe,Ee);Be&&a.stroke(Oe,je)}},C.makePointStyleFns=function(Ne){var Oe={},pe=Ne.marker;return Oe.markerScale=C.tryColorscale(pe,""),Oe.lineScale=C.tryColorscale(pe,"line"),c.traceIs(Ne,"symbols")&&(Oe.ms2mrc=d.isBubble(Ne)?g(Ne):function(){return(pe.size||6)/2}),Ne.selectedpoints&&v.extendFlat(Oe,C.makeSelectedPointStyleFns(Ne)),Oe},C.makeSelectedPointStyleFns=function(Ne){var Oe={},pe=Ne.selected||{},fe=Ne.unselected||{},xe=Ne.marker||{},ze=pe.marker||{},Le=fe.marker||{},Ue=xe.opacity,Re=ze.opacity,Fe=Le.opacity,ve=Re!==void 0,ke=Fe!==void 0;(v.isArrayOrTypedArray(Ue)||ve||ke)&&(Oe.selectedOpacityFn=function(ut){var _t=ut.mo===void 0?xe.opacity:ut.mo;return ut.selected?ve?Re:_t:ke?Fe:u*_t});var Ee=xe.color,je=ze.color,Be=Le.color;(je||Be)&&(Oe.selectedColorFn=function(ut){var _t=ut.mcc||Ee;return ut.selected?je||_t:Be||_t});var Ie=xe.size,Ze=ze.size,He=Le.size,at=Ze!==void 0,ft=He!==void 0;return c.traceIs(Ne,"symbols")&&(at||ft)&&(Oe.selectedSizeFn=function(ut){var _t=ut.mrc||Ie/2;return ut.selected?at?Ze/2:_t:ft?He/2:_t}),Oe},C.makeSelectedTextStyleFns=function(Ne){var Oe={},pe=Ne.selected||{},fe=Ne.unselected||{},xe=Ne.textfont||{},ze=pe.textfont||{},Le=fe.textfont||{},Ue=xe.color,Re=ze.color,Fe=Le.color;return Oe.selectedTextColorFn=function(ve){var ke=ve.tc||Ue;return ve.selected?Re||ke:Fe||(Re?ke:a.addOpacity(ke,u))},Oe},C.selectedPointStyle=function(Ne,Oe){if(Ne.size()&&Oe.selectedpoints){var pe=C.makeSelectedPointStyleFns(Oe),fe=Oe.marker||{},xe=[];pe.selectedOpacityFn&&xe.push(function(ze,Le){ze.style("opacity",pe.selectedOpacityFn(Le))}),pe.selectedColorFn&&xe.push(function(ze,Le){a.fill(ze,pe.selectedColorFn(Le))}),pe.selectedSizeFn&&xe.push(function(ze,Le){var Ue=Le.mx||fe.symbol||0,Re=pe.selectedSizeFn(Le);ze.attr("d",_(C.symbolNumber(Ue),Re,Pe(Le,Oe),te(Le,Oe))),Le.mrc2=Re}),xe.length&&Ne.each(function(ze){for(var Le=k.select(this),Ue=0;Ue<xe.length;Ue++)xe[Ue](Le,ze)})}},C.tryColorscale=function(Ne,Oe){var pe=Oe?v.nestedProperty(Ne,Oe).get():Ne;if(pe){var fe=pe.color;if((pe.colorscale||pe._colorAx)&&v.isArrayOrTypedArray(fe))return t.makeColorScaleFuncFromTrace(pe)}return v.identity};var N,P,R={start:1,end:-1,middle:0,bottom:1,top:-1};function A(Ne,Oe,pe,fe,xe){var ze=k.select(Ne.node().parentNode),Le=Oe.indexOf("top")!==-1?"top":Oe.indexOf("bottom")!==-1?"bottom":"middle",Ue=Oe.indexOf("left")!==-1?"end":Oe.indexOf("right")!==-1?"start":"middle",Re=fe?fe/.8+1:0,Fe=(i.lineCount(Ne)-1)*l+1,ve=R[Ue]*Re,ke=.75*pe+R[Le]*Re+(R[Le]-1)*Fe*pe/2;Ne.attr("text-anchor",Ue),xe||ze.attr("transform",o(ve,ke))}function q(Ne,Oe){var pe=Ne.ts||Oe.textfont.size;return w(pe)&&pe>0?pe:0}function j(Ne,Oe,pe){return pe&&(Ne=G(Ne)),Oe?F(Ne[1]):X(Ne[0])}function X(Ne){var Oe=k.round(Ne,2);return N=Oe,Oe}function F(Ne){var Oe=k.round(Ne,2);return P=Oe,Oe}function W(Ne,Oe,pe,fe){var xe=Ne[0]-Oe[0],ze=Ne[1]-Oe[1],Le=pe[0]-Oe[0],Ue=pe[1]-Oe[1],Re=Math.pow(xe*xe+ze*ze,.25),Fe=Math.pow(Le*Le+Ue*Ue,.25),ve=(Fe*Fe*xe-Re*Re*Le)*fe,ke=(Fe*Fe*ze-Re*Re*Ue)*fe,Ee=3*Fe*(Re+Fe),je=3*Re*(Re+Fe);return[[X(Oe[0]+(Ee&&ve/Ee)),F(Oe[1]+(Ee&&ke/Ee))],[X(Oe[0]-(je&&ve/je)),F(Oe[1]-(je&&ke/je))]]}C.textPointStyle=function(Ne,Oe,pe){if(Ne.size()){var fe;if(Oe.selectedpoints){var xe=C.makeSelectedTextStyleFns(Oe);fe=xe.selectedTextColorFn}var ze=Oe.texttemplate,Le=pe._fullLayout;Ne.each(function(Ue){var Re=k.select(this),Fe=ze?v.extractOption(Ue,Oe,"txt","texttemplate"):v.extractOption(Ue,Oe,"tx","text");if(Fe||Fe===0){if(ze){var ve=Oe._module.formatLabels,ke=ve?ve(Ue,Oe,Le):{},Ee={};f(Ee,Oe,Ue.i);var je=Oe._meta||{};Fe=v.texttemplateString(Fe,ke,Le._d3locale,Ee,Ue,je)}var Be=Ue.tp||Oe.textposition,Ie=q(Ue,Oe),Ze=fe?fe(Ue):Ue.tc||Oe.textfont.color;Re.call(C.font,Ue.tf||Oe.textfont.family,Ie,Ze).text(Fe).call(i.convertToTspans,pe).call(A,Be,Ie,Ue.mrc)}else Re.remove()})}},C.selectedTextStyle=function(Ne,Oe){if(Ne.size()&&Oe.selectedpoints){var pe=C.makeSelectedTextStyleFns(Oe);Ne.each(function(fe){var xe=k.select(this),ze=pe.selectedTextColorFn(fe),Le=fe.tp||Oe.textposition,Ue=q(fe,Oe);a.fill(xe,ze);var Re=c.traceIs(Oe,"bar-like");A(xe,Le,Ue,fe.mrc2||fe.mrc,Re)})}},C.smoothopen=function(Ne,Oe){if(Ne.length<3)return"M"+Ne.join("L");var pe,fe="M"+Ne[0],xe=[];for(pe=1;pe<Ne.length-1;pe++)xe.push(W(Ne[pe-1],Ne[pe],Ne[pe+1],Oe));for(fe+="Q"+xe[0][0]+" "+Ne[1],pe=2;pe<Ne.length-1;pe++)fe+="C"+xe[pe-2][1]+" "+xe[pe-1][0]+" "+Ne[pe];return fe+"Q"+xe[Ne.length-3][1]+" "+Ne[Ne.length-1]},C.smoothclosed=function(Ne,Oe){if(Ne.length<3)return"M"+Ne.join("L")+"Z";var pe,fe="M"+Ne[0],xe=Ne.length-1,ze=[W(Ne[xe],Ne[0],Ne[1],Oe)];for(pe=1;pe<xe;pe++)ze.push(W(Ne[pe-1],Ne[pe],Ne[pe+1],Oe));for(ze.push(W(Ne[xe-1],Ne[xe],Ne[0],Oe)),pe=1;pe<=xe;pe++)fe+="C"+ze[pe-1][1]+" "+ze[pe][0]+" "+Ne[pe];return fe+"C"+ze[xe][1]+" "+ze[0][0]+" "+Ne[0]+"Z"};var Y={hv:function(Ne,Oe,pe){return"H"+X(Oe[0])+"V"+j(Oe,1,pe)},vh:function(Ne,Oe,pe){return"V"+F(Oe[1])+"H"+j(Oe,0,pe)},hvh:function(Ne,Oe,pe){return"H"+X((Ne[0]+Oe[0])/2)+"V"+F(Oe[1])+"H"+j(Oe,0,pe)},vhv:function(Ne,Oe,pe){return"V"+F((Ne[1]+Oe[1])/2)+"H"+X(Oe[0])+"V"+j(Oe,1,pe)}},B=function(Ne,Oe,pe){return"L"+j(Oe,0,pe)+","+j(Oe,1,pe)};function G(Ne,Oe){var pe=Ne.backoff,fe=Ne.trace,xe=Ne.d,ze=Ne.i;if(pe&&fe&&fe.marker&&fe.marker.angle%360==0&&fe.line&&fe.line.shape!=="spline"){var Le=v.isArrayOrTypedArray(pe),Ue=Ne,Re=Oe?Oe[0]:N||0,Fe=Oe?Oe[1]:P||0,ve=Ue[0],ke=Ue[1],Ee=ve-Re,je=ke-Fe,Be=Math.atan2(je,Ee),Ie=Le?pe[ze]:pe;if(Ie==="auto"){var Ze=Ue.i;fe.type==="scatter"&&Ze--;var He=Ue.marker,at=He.symbol;v.isArrayOrTypedArray(at)&&(at=at[Ze]);var ft=He.size;v.isArrayOrTypedArray(ft)&&(ft=ft[Ze]),Ie=He?C.symbolBackOffs[C.symbolNumber(at)]*ft:0,Ie+=C.getMarkerStandoff(xe[Ze],fe)||0}var ut=ve-Ie*Math.cos(Be),_t=ke-Ie*Math.sin(Be);(ut<=ve&&ut>=Re||ut>=ve&&ut<=Re)&&(_t<=ke&&_t>=Fe||_t>=ke&&_t<=Fe)&&(Ne=[ut,_t])}return Ne}C.steps=function(Ne){var Oe=Y[Ne]||B;return function(pe){for(var fe="M"+X(pe[0][0])+","+F(pe[0][1]),xe=pe.length,ze=1;ze<xe;ze++)fe+=Oe(pe[ze-1],pe[ze],ze===xe-1);return fe}},C.applyBackoff=G,C.makeTester=function(){var Ne=v.ensureSingleById(k.select("body"),"svg","js-plotly-tester",function(pe){pe.attr(s.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),Oe=v.ensureSingle(Ne,"path","js-reference-point",function(pe){pe.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});C.tester=Ne,C.testref=Oe},C.savedBBoxes={};var J=0;function se(Ne){var Oe=Ne.getAttribute("data-unformatted");if(Oe!==null)return Oe+Ne.getAttribute("data-math")+Ne.getAttribute("text-anchor")+Ne.getAttribute("style")}function re(Ne,Oe){if(!Ne)return null;var pe=Oe._context,fe=pe._exportedPlot?"":pe._baseUrl||"";return fe?"url('"+fe+"#"+Ne+"')":"url(#"+Ne+")"}C.bBox=function(Ne,Oe,pe){var fe,xe,ze;if(pe||(pe=se(Ne)),pe){if(fe=C.savedBBoxes[pe])return v.extendFlat({},fe)}else if(Ne.childNodes.length===1){var Le=Ne.childNodes[0];if(pe=se(Le)){var Ue=+Le.getAttribute("x")||0,Re=+Le.getAttribute("y")||0,Fe=Le.getAttribute("transform");if(!Fe){var ve=C.bBox(Le,!1,pe);return Ue&&(ve.left+=Ue,ve.right+=Ue),Re&&(ve.top+=Re,ve.bottom+=Re),ve}if(pe+="~"+Ue+"~"+Re+"~"+Fe,fe=C.savedBBoxes[pe])return v.extendFlat({},fe)}}Oe?xe=Ne:(ze=C.tester.node(),xe=Ne.cloneNode(!0),ze.appendChild(xe)),k.select(xe).attr("transform",null).call(i.positionText,0,0);var ke=xe.getBoundingClientRect(),Ee=C.testref.node().getBoundingClientRect();Oe||ze.removeChild(xe);var je={height:ke.height,width:ke.width,left:ke.left-Ee.left,top:ke.top-Ee.top,right:ke.right-Ee.left,bottom:ke.bottom-Ee.top};return J>=1e4&&(C.savedBBoxes={},J=0),pe&&(C.savedBBoxes[pe]=je),J++,v.extendFlat({},je)},C.setClipUrl=function(Ne,Oe,pe){Ne.attr("clip-path",re(Oe,pe))},C.getTranslate=function(Ne){var Oe=(Ne[Ne.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(pe,fe,xe){return[fe,xe].join(" ")}).split(" ");return{x:+Oe[0]||0,y:+Oe[1]||0}},C.setTranslate=function(Ne,Oe,pe){var fe=Ne.attr?"attr":"getAttribute",xe=Ne.attr?"attr":"setAttribute",ze=Ne[fe]("transform")||"";return Oe=Oe||0,pe=pe||0,ze=ze.replace(/(\btranslate\(.*?\);?)/,"").trim(),ze=(ze+=o(Oe,pe)).trim(),Ne[xe]("transform",ze),ze},C.getScale=function(Ne){var Oe=(Ne[Ne.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(pe,fe,xe){return[fe,xe].join(" ")}).split(" ");return{x:+Oe[0]||1,y:+Oe[1]||1}},C.setScale=function(Ne,Oe,pe){var fe=Ne.attr?"attr":"getAttribute",xe=Ne.attr?"attr":"setAttribute",ze=Ne[fe]("transform")||"";return Oe=Oe||1,pe=pe||1,ze=ze.replace(/(\bscale\(.*?\);?)/,"").trim(),ze=(ze+="scale("+Oe+","+pe+")").trim(),Ne[xe]("transform",ze),ze};var ne=/\s*sc.*/;C.setPointGroupScale=function(Ne,Oe,pe){if(Oe=Oe||1,pe=pe||1,Ne){var fe=Oe===1&&pe===1?"":"scale("+Oe+","+pe+")";Ne.each(function(){var xe=(this.getAttribute("transform")||"").replace(ne,"");xe=(xe+=fe).trim(),this.setAttribute("transform",xe)})}};var $=/translate\([^)]*\)\s*$/;function te(Ne,Oe){var pe;return Ne&&(pe=Ne.mf),pe===void 0&&(pe=Oe.marker&&Oe.marker.standoff||0),Oe._geo||Oe._xA?pe:-pe}C.setTextPointsScale=function(Ne,Oe,pe){Ne&&Ne.each(function(){var fe,xe=k.select(this),ze=xe.select("text");if(ze.node()){var Le=parseFloat(ze.attr("x")||0),Ue=parseFloat(ze.attr("y")||0),Re=(xe.attr("transform")||"").match($);fe=Oe===1&&pe===1?[]:[o(Le,Ue),"scale("+Oe+","+pe+")",o(-Le,-Ue)],Re&&fe.push(Re),xe.attr("transform",fe.join(""))}})},C.getMarkerStandoff=te;var ae,ce,ue,de,me,be,_e=Math.atan2,we=Math.cos,Ce=Math.sin;function Se(Ne,Oe){var pe=Oe[0],fe=Oe[1];return[pe*we(Ne)-fe*Ce(Ne),pe*Ce(Ne)+fe*we(Ne)]}function Pe(Ne,Oe){var pe,fe,xe=Ne.ma;xe===void 0&&((xe=Oe.marker.angle)&&!v.isArrayOrTypedArray(xe)||(xe=0));var ze=Oe.marker.angleref;if(ze==="previous"||ze==="north"){if(Oe._geo){var Le=Oe._geo.project(Ne.lonlat);pe=Le[0],fe=Le[1]}else{var Ue=Oe._xA,Re=Oe._yA;if(!Ue||!Re)return 90;pe=Ue.c2p(Ne.x),fe=Re.c2p(Ne.y)}if(Oe._geo){var Fe,ve=Ne.lonlat[0],ke=Ne.lonlat[1],Ee=Oe._geo.project([ve,ke+1e-5]),je=Oe._geo.project([ve+1e-5,ke]),Be=_e(je[1]-fe,je[0]-pe),Ie=_e(Ee[1]-fe,Ee[0]-pe);if(ze==="north")Fe=xe/180*Math.PI;else if(ze==="previous"){var Ze=ve/180*Math.PI,He=ke/180*Math.PI,at=ae/180*Math.PI,ft=ce/180*Math.PI,ut=at-Ze,_t=we(ft)*Ce(ut),Nt=Ce(ft)*we(He)-we(ft)*Ce(He)*we(ut);Fe=-_e(_t,Nt)-Math.PI,ae=ve,ce=ke}var Tt=Se(Be,[we(Fe),0]),st=Se(Ie,[Ce(Fe),0]);xe=_e(Tt[1]+st[1],Tt[0]+st[0])/Math.PI*180,ze!=="previous"||be===Oe.uid&&Ne.i===me+1||(xe=null)}if(ze==="previous"&&!Oe._geo)if(be===Oe.uid&&Ne.i===me+1&&w(pe)&&w(fe)){var lt=pe-ue,Vt=fe-de,jt=Oe.line&&Oe.line.shape||"",Kt=jt.slice(jt.length-1);Kt==="h"&&(Vt=0),Kt==="v"&&(lt=0),xe+=_e(Vt,lt)/Math.PI*180+90}else xe=null}return ue=pe,de=fe,me=Ne.i,be=Oe.uid,xe}C.getMarkerAngle=Pe},71984:function(L,T,e){var k,v,n,w,b=e(21984),c=e(33428).round,a="M0,0Z",t=Math.sqrt(2),o=Math.sqrt(3),i=Math.PI,s=Math.cos,l=Math.sin;function u(g){return g===null}function d(g,f,C){if(!(g&&g%360!=0||f))return C;if(n===g&&w===f&&k===C)return v;function y(j,X){var F=s(j),W=l(j),Y=X[0],B=X[1]+(f||0);return[Y*F-B*W,Y*W+B*F]}n=g,w=f,k=C;for(var m=g/180*i,x=0,_=0,S=b(C),O="",h=0;h<S.length;h++){var M=S[h],N=M[0],P=x,R=_;if(N==="M"||N==="L")x=+M[1],_=+M[2];else if(N==="m"||N==="l")x+=+M[1],_+=+M[2];else if(N==="H")x=+M[1];else if(N==="h")x+=+M[1];else if(N==="V")_=+M[1];else if(N==="v")_+=+M[1];else if(N==="A"){x=+M[1],_=+M[2];var A=y(m,[+M[6],+M[7]]);M[6]=A[0],M[7]=A[1],M[3]=+M[3]+g}N!=="H"&&N!=="V"||(N="L"),N!=="h"&&N!=="v"||(N="l"),N!=="m"&&N!=="l"||(x-=P,_-=R);var q=y(m,[x,_]);N!=="H"&&N!=="V"||(N="L"),N!=="M"&&N!=="L"&&N!=="m"&&N!=="l"||(M[1]=q[0],M[2]=q[1]),M[0]=N,O+=M[0]+M.slice(1).join(",")}return v=O,O}L.exports={circle:{n:0,f:function(g,f,C){if(u(f))return a;var y=c(g,2),m="M"+y+",0A"+y+","+y+" 0 1,1 0,-"+y+"A"+y+","+y+" 0 0,1 "+y+",0Z";return C?d(f,C,m):m}},square:{n:1,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M"+y+","+y+"H-"+y+"V-"+y+"H"+y+"Z")}},diamond:{n:2,f:function(g,f,C){if(u(f))return a;var y=c(1.3*g,2);return d(f,C,"M"+y+",0L0,"+y+"L-"+y+",0L0,-"+y+"Z")}},cross:{n:3,f:function(g,f,C){if(u(f))return a;var y=c(.4*g,2),m=c(1.2*g,2);return d(f,C,"M"+m+","+y+"H"+y+"V"+m+"H-"+y+"V"+y+"H-"+m+"V-"+y+"H-"+y+"V-"+m+"H"+y+"V-"+y+"H"+m+"Z")}},x:{n:4,f:function(g,f,C){if(u(f))return a;var y=c(.8*g/t,2),m="l"+y+","+y,x="l"+y+",-"+y,_="l-"+y+",-"+y,S="l-"+y+","+y;return d(f,C,"M0,"+y+m+x+_+x+_+S+_+S+m+S+m+"Z")}},"triangle-up":{n:5,f:function(g,f,C){if(u(f))return a;var y=c(2*g/o,2);return d(f,C,"M-"+y+","+c(g/2,2)+"H"+y+"L0,-"+c(g,2)+"Z")}},"triangle-down":{n:6,f:function(g,f,C){if(u(f))return a;var y=c(2*g/o,2);return d(f,C,"M-"+y+",-"+c(g/2,2)+"H"+y+"L0,"+c(g,2)+"Z")}},"triangle-left":{n:7,f:function(g,f,C){if(u(f))return a;var y=c(2*g/o,2);return d(f,C,"M"+c(g/2,2)+",-"+y+"V"+y+"L-"+c(g,2)+",0Z")}},"triangle-right":{n:8,f:function(g,f,C){if(u(f))return a;var y=c(2*g/o,2);return d(f,C,"M-"+c(g/2,2)+",-"+y+"V"+y+"L"+c(g,2)+",0Z")}},"triangle-ne":{n:9,f:function(g,f,C){if(u(f))return a;var y=c(.6*g,2),m=c(1.2*g,2);return d(f,C,"M-"+m+",-"+y+"H"+y+"V"+m+"Z")}},"triangle-se":{n:10,f:function(g,f,C){if(u(f))return a;var y=c(.6*g,2),m=c(1.2*g,2);return d(f,C,"M"+y+",-"+m+"V"+y+"H-"+m+"Z")}},"triangle-sw":{n:11,f:function(g,f,C){if(u(f))return a;var y=c(.6*g,2),m=c(1.2*g,2);return d(f,C,"M"+m+","+y+"H-"+y+"V-"+m+"Z")}},"triangle-nw":{n:12,f:function(g,f,C){if(u(f))return a;var y=c(.6*g,2),m=c(1.2*g,2);return d(f,C,"M-"+y+","+m+"V-"+y+"H"+m+"Z")}},pentagon:{n:13,f:function(g,f,C){if(u(f))return a;var y=c(.951*g,2),m=c(.588*g,2),x=c(-g,2),_=c(-.309*g,2);return d(f,C,"M"+y+","+_+"L"+m+","+c(.809*g,2)+"H-"+m+"L-"+y+","+_+"L0,"+x+"Z")}},hexagon:{n:14,f:function(g,f,C){if(u(f))return a;var y=c(g,2),m=c(g/2,2),x=c(g*o/2,2);return d(f,C,"M"+x+",-"+m+"V"+m+"L0,"+y+"L-"+x+","+m+"V-"+m+"L0,-"+y+"Z")}},hexagon2:{n:15,f:function(g,f,C){if(u(f))return a;var y=c(g,2),m=c(g/2,2),x=c(g*o/2,2);return d(f,C,"M-"+m+","+x+"H"+m+"L"+y+",0L"+m+",-"+x+"H-"+m+"L-"+y+",0Z")}},octagon:{n:16,f:function(g,f,C){if(u(f))return a;var y=c(.924*g,2),m=c(.383*g,2);return d(f,C,"M-"+m+",-"+y+"H"+m+"L"+y+",-"+m+"V"+m+"L"+m+","+y+"H-"+m+"L-"+y+","+m+"V-"+m+"Z")}},star:{n:17,f:function(g,f,C){if(u(f))return a;var y=1.4*g,m=c(.225*y,2),x=c(.951*y,2),_=c(.363*y,2),S=c(.588*y,2),O=c(-y,2),h=c(-.309*y,2),M=c(.118*y,2),N=c(.809*y,2);return d(f,C,"M"+m+","+h+"H"+x+"L"+_+","+M+"L"+S+","+N+"L0,"+c(.382*y,2)+"L-"+S+","+N+"L-"+_+","+M+"L-"+x+","+h+"H-"+m+"L0,"+O+"Z")}},hexagram:{n:18,f:function(g,f,C){if(u(f))return a;var y=c(.66*g,2),m=c(.38*g,2),x=c(.76*g,2);return d(f,C,"M-"+x+",0l-"+m+",-"+y+"h"+x+"l"+m+",-"+y+"l"+m+","+y+"h"+x+"l-"+m+","+y+"l"+m+","+y+"h-"+x+"l-"+m+","+y+"l-"+m+",-"+y+"h-"+x+"Z")}},"star-triangle-up":{n:19,f:function(g,f,C){if(u(f))return a;var y=c(g*o*.8,2),m=c(.8*g,2),x=c(1.6*g,2),_=c(4*g,2),S="A "+_+","+_+" 0 0 1 ";return d(f,C,"M-"+y+","+m+S+y+","+m+S+"0,-"+x+S+"-"+y+","+m+"Z")}},"star-triangle-down":{n:20,f:function(g,f,C){if(u(f))return a;var y=c(g*o*.8,2),m=c(.8*g,2),x=c(1.6*g,2),_=c(4*g,2),S="A "+_+","+_+" 0 0 1 ";return d(f,C,"M"+y+",-"+m+S+"-"+y+",-"+m+S+"0,"+x+S+y+",-"+m+"Z")}},"star-square":{n:21,f:function(g,f,C){if(u(f))return a;var y=c(1.1*g,2),m=c(2*g,2),x="A "+m+","+m+" 0 0 1 ";return d(f,C,"M-"+y+",-"+y+x+"-"+y+","+y+x+y+","+y+x+y+",-"+y+x+"-"+y+",-"+y+"Z")}},"star-diamond":{n:22,f:function(g,f,C){if(u(f))return a;var y=c(1.4*g,2),m=c(1.9*g,2),x="A "+m+","+m+" 0 0 1 ";return d(f,C,"M-"+y+",0"+x+"0,"+y+x+y+",0"+x+"0,-"+y+x+"-"+y+",0Z")}},"diamond-tall":{n:23,f:function(g,f,C){if(u(f))return a;var y=c(.7*g,2),m=c(1.4*g,2);return d(f,C,"M0,"+m+"L"+y+",0L0,-"+m+"L-"+y+",0Z")}},"diamond-wide":{n:24,f:function(g,f,C){if(u(f))return a;var y=c(1.4*g,2),m=c(.7*g,2);return d(f,C,"M0,"+m+"L"+y+",0L0,-"+m+"L-"+y+",0Z")}},hourglass:{n:25,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M"+y+","+y+"H-"+y+"L"+y+",-"+y+"H-"+y+"Z")},noDot:!0},bowtie:{n:26,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M"+y+","+y+"V-"+y+"L-"+y+","+y+"V-"+y+"Z")},noDot:!0},"circle-cross":{n:27,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M0,"+y+"V-"+y+"M"+y+",0H-"+y+"M"+y+",0A"+y+","+y+" 0 1,1 0,-"+y+"A"+y+","+y+" 0 0,1 "+y+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(g,f,C){if(u(f))return a;var y=c(g,2),m=c(g/t,2);return d(f,C,"M"+m+","+m+"L-"+m+",-"+m+"M"+m+",-"+m+"L-"+m+","+m+"M"+y+",0A"+y+","+y+" 0 1,1 0,-"+y+"A"+y+","+y+" 0 0,1 "+y+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M0,"+y+"V-"+y+"M"+y+",0H-"+y+"M"+y+","+y+"H-"+y+"V-"+y+"H"+y+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M"+y+","+y+"L-"+y+",-"+y+"M"+y+",-"+y+"L-"+y+","+y+"M"+y+","+y+"H-"+y+"V-"+y+"H"+y+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(g,f,C){if(u(f))return a;var y=c(1.3*g,2);return d(f,C,"M"+y+",0L0,"+y+"L-"+y+",0L0,-"+y+"ZM0,-"+y+"V"+y+"M-"+y+",0H"+y)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(g,f,C){if(u(f))return a;var y=c(1.3*g,2),m=c(.65*g,2);return d(f,C,"M"+y+",0L0,"+y+"L-"+y+",0L0,-"+y+"ZM-"+m+",-"+m+"L"+m+","+m+"M-"+m+","+m+"L"+m+",-"+m)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(g,f,C){if(u(f))return a;var y=c(1.4*g,2);return d(f,C,"M0,"+y+"V-"+y+"M"+y+",0H-"+y)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M"+y+","+y+"L-"+y+",-"+y+"M"+y+",-"+y+"L-"+y+","+y)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(g,f,C){if(u(f))return a;var y=c(1.2*g,2),m=c(.85*g,2);return d(f,C,"M0,"+y+"V-"+y+"M"+y+",0H-"+y+"M"+m+","+m+"L-"+m+",-"+m+"M"+m+",-"+m+"L-"+m+","+m)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(g,f,C){if(u(f))return a;var y=c(g/2,2),m=c(g,2);return d(f,C,"M"+y+","+m+"V-"+m+"M"+(y-m)+",-"+m+"V"+m+"M"+m+","+y+"H-"+m+"M-"+m+","+(y-m)+"H"+m)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(g,f,C){if(u(f))return a;var y=c(1.2*g,2),m=c(1.6*g,2),x=c(.8*g,2);return d(f,C,"M-"+y+","+x+"L0,0M"+y+","+x+"L0,0M0,-"+m+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(g,f,C){if(u(f))return a;var y=c(1.2*g,2),m=c(1.6*g,2),x=c(.8*g,2);return d(f,C,"M-"+y+",-"+x+"L0,0M"+y+",-"+x+"L0,0M0,"+m+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(g,f,C){if(u(f))return a;var y=c(1.2*g,2),m=c(1.6*g,2),x=c(.8*g,2);return d(f,C,"M"+x+","+y+"L0,0M"+x+",-"+y+"L0,0M-"+m+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(g,f,C){if(u(f))return a;var y=c(1.2*g,2),m=c(1.6*g,2),x=c(.8*g,2);return d(f,C,"M-"+x+","+y+"L0,0M-"+x+",-"+y+"L0,0M"+m+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(g,f,C){if(u(f))return a;var y=c(1.4*g,2);return d(f,C,"M"+y+",0H-"+y)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(g,f,C){if(u(f))return a;var y=c(1.4*g,2);return d(f,C,"M0,"+y+"V-"+y)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M"+y+",-"+y+"L-"+y+","+y)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M"+y+","+y+"L-"+y+",-"+y)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M0,0L-"+y+","+c(2*g,2)+"H"+y+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M0,0L-"+y+",-"+c(2*g,2)+"H"+y+"Z")},noDot:!0},"arrow-left":{n:47,f:function(g,f,C){if(u(f))return a;var y=c(2*g,2),m=c(g,2);return d(f,C,"M0,0L"+y+",-"+m+"V"+m+"Z")},noDot:!0},"arrow-right":{n:48,f:function(g,f,C){if(u(f))return a;var y=c(2*g,2),m=c(g,2);return d(f,C,"M0,0L-"+y+",-"+m+"V"+m+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M-"+y+",0H"+y+"M0,0L-"+y+","+c(2*g,2)+"H"+y+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M-"+y+",0H"+y+"M0,0L-"+y+",-"+c(2*g,2)+"H"+y+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(g,f,C){if(u(f))return a;var y=c(2*g,2),m=c(g,2);return d(f,C,"M0,-"+m+"V"+m+"M0,0L"+y+",-"+m+"V"+m+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(g,f,C){if(u(f))return a;var y=c(2*g,2),m=c(g,2);return d(f,C,"M0,-"+m+"V"+m+"M0,0L-"+y+",-"+m+"V"+m+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(g,f,C){if(u(f))return a;var y=i/2.5,m=2*g*s(y),x=2*g*l(y);return d(f,C,"M0,0L"+-m+","+x+"L"+m+","+x+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(g,f,C){if(u(f))return a;var y=i/4,m=2*g*s(y),x=2*g*l(y);return d(f,C,"M0,0L"+-m+","+x+"A "+2*g+","+2*g+" 0 0 1 "+m+","+x+"Z")},backoff:.4,noDot:!0}}},97644:function(L){L.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"}}}},14880:function(L,T,e){var k=e(38248),v=e(24040),n=e(54460),w=e(3400),b=e(93792);function c(a,t,o,i){var s=t["error_"+i]||{},l=[];if(s.visible&&["linear","log"].indexOf(o.type)!==-1){for(var u=b(s),d=0;d<a.length;d++){var g=a[d],f=g.i;if(f===void 0)f=d;else if(f===null)continue;var C=g[i];if(k(o.c2l(C))){var y=u(C,f);if(k(y[0])&&k(y[1])){var m=g[i+"s"]=C-y[0],x=g[i+"h"]=C+y[1];l.push(m,x)}}}var _=o._id,S=t._extremes[_],O=n.findExtremes(o,l,w.extendFlat({tozero:S.opts.tozero},{padded:!0}));S.min=S.min.concat(O.min),S.max=S.max.concat(O.max)}}L.exports=function(a){for(var t=a.calcdata,o=0;o<t.length;o++){var i=t[o],s=i[0].trace;if(s.visible===!0&&v.traceIs(s,"errorBarsOK")){var l=n.getFromId(a,s.xaxis),u=n.getFromId(a,s.yaxis);c(i,s,l,"x"),c(i,s,u,"y")}}}},93792:function(L){function T(e,k){return e==="percent"?function(v){return Math.abs(v*k/100)}:e==="constant"?function(){return Math.abs(k)}:e==="sqrt"?function(v){return Math.sqrt(Math.abs(v))}:void 0}L.exports=function(e){var k=e.type,v=e.symmetric;if(k==="data"){var n=e.array||[];if(v)return function(a,t){var o=+n[t];return[o,o]};var w=e.arrayminus||[];return function(a,t){var o=+n[t],i=+w[t];return isNaN(o)&&isNaN(i)?[NaN,NaN]:[i||0,o||0]}}var b=T(k,e.value),c=T(k,e.valueminus);return v||e.valueminus===void 0?function(a){var t=b(a);return[t,t]}:function(a){return[c(a),b(a)]}}},65200:function(L,T,e){var k=e(38248),v=e(24040),n=e(3400),w=e(31780),b=e(97644);L.exports=function(c,a,t,o){var i="error_"+o.axis,s=w.newContainer(a,i),l=c[i]||{};function u(C,y){return n.coerce(l,s,b,C,y)}if(u("visible",l.array!==void 0||l.value!==void 0||l.type==="sqrt")!==!1){var d=u("type","array"in l?"data":"percent"),g=!0;d!=="sqrt"&&(g=u("symmetric",!((d==="data"?"arrayminus":"valueminus")in l))),d==="data"?(u("array"),u("traceref"),g||(u("arrayminus"),u("tracerefminus"))):d!=="percent"&&d!=="constant"||(u("value"),g||u("valueminus"));var f="copy_"+o.inherit+"style";o.inherit&&(a["error_"+o.inherit]||{}).visible&&u(f,!(l.color||k(l.thickness)||k(l.width))),o.inherit&&s[f]||(u("color",t),u("thickness"),u("width",v.traceIs(a,"gl3d")?0:4))}}},64968:function(L,T,e){var k=e(3400),v=e(67824).overrideAll,n=e(97644),w={error_x:k.extendFlat({},n),error_y:k.extendFlat({},n)};delete w.error_x.copy_zstyle,delete w.error_y.copy_zstyle,delete w.error_y.copy_ystyle;var b={error_x:k.extendFlat({},n),error_y:k.extendFlat({},n),error_z:k.extendFlat({},n)};delete b.error_x.copy_ystyle,delete b.error_y.copy_ystyle,delete b.error_z.copy_ystyle,delete b.error_z.copy_zstyle,L.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:w,bar:w,histogram:w,scatter3d:v(b,"calc","nested"),scattergl:v(w,"calc","nested")}},supplyDefaults:e(65200),calc:e(14880),makeComputeError:e(93792),plot:e(78512),style:e(92036),hoverInfo:function(c,a,t){(a.error_y||{}).visible&&(t.yerr=c.yh-c.y,a.error_y.symmetric||(t.yerrneg=c.y-c.ys)),(a.error_x||{}).visible&&(t.xerr=c.xh-c.x,a.error_x.symmetric||(t.xerrneg=c.x-c.xs))}}},78512:function(L,T,e){var k=e(33428),v=e(38248),n=e(43616),w=e(43028);L.exports=function(b,c,a,t){var o=a.xaxis,i=a.yaxis,s=t&&t.duration>0,l=b._context.staticPlot;c.each(function(u){var d,g=u[0].trace,f=g.error_x||{},C=g.error_y||{};g.ids&&(d=function(_){return _.id});var y=w.hasMarkers(g)&&g.marker.maxdisplayed>0;C.visible||f.visible||(u=[]);var m=k.select(this).selectAll("g.errorbar").data(u,d);if(m.exit().remove(),u.length){f.visible||m.selectAll("path.xerror").remove(),C.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var x=m.enter().append("g").classed("errorbar",!0);s&&x.style("opacity",0).transition().duration(t.duration).style("opacity",1),n.setClipUrl(m,a.layerClipId,b),m.each(function(_){var S=k.select(this),O=function(A,q,j){var X={x:q.c2p(A.x),y:j.c2p(A.y)};return A.yh!==void 0&&(X.yh=j.c2p(A.yh),X.ys=j.c2p(A.ys),v(X.ys)||(X.noYS=!0,X.ys=j.c2p(A.ys,!0))),A.xh!==void 0&&(X.xh=q.c2p(A.xh),X.xs=q.c2p(A.xs),v(X.xs)||(X.noXS=!0,X.xs=q.c2p(A.xs,!0))),X}(_,o,i);if(!y||_.vis){var h,M=S.select("path.yerror");if(C.visible&&v(O.x)&&v(O.yh)&&v(O.ys)){var N=C.width;h="M"+(O.x-N)+","+O.yh+"h"+2*N+"m-"+N+",0V"+O.ys,O.noYS||(h+="m-"+N+",0h"+2*N),M.size()?s&&(M=M.transition().duration(t.duration).ease(t.easing)):M=S.append("path").style("vector-effect",l?"none":"non-scaling-stroke").classed("yerror",!0),M.attr("d",h)}else M.remove();var P=S.select("path.xerror");if(f.visible&&v(O.y)&&v(O.xh)&&v(O.xs)){var R=(f.copy_ystyle?C:f).width;h="M"+O.xh+","+(O.y-R)+"v"+2*R+"m0,-"+R+"H"+O.xs,O.noXS||(h+="m0,-"+R+"v"+2*R),P.size()?s&&(P=P.transition().duration(t.duration).ease(t.easing)):P=S.append("path").style("vector-effect",l?"none":"non-scaling-stroke").classed("xerror",!0),P.attr("d",h)}else P.remove()}})}})}},92036:function(L,T,e){var k=e(33428),v=e(76308);L.exports=function(n){n.each(function(w){var b=w[0].trace,c=b.error_y||{},a=b.error_x||{},t=k.select(this);t.selectAll("path.yerror").style("stroke-width",c.thickness+"px").call(v.stroke,c.color),a.copy_ystyle&&(a=c),t.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(v.stroke,a.color)})}},55756:function(L,T,e){var k=e(25376),v=e(65460).hoverlabel,n=e(92880).extendFlat;L.exports={hoverlabel:{bgcolor:n({},v.bgcolor,{arrayOk:!0}),bordercolor:n({},v.bordercolor,{arrayOk:!0}),font:k({arrayOk:!0,editType:"none"}),align:n({},v.align,{arrayOk:!0}),namelength:n({},v.namelength,{arrayOk:!0}),editType:"none"}}},55056:function(L,T,e){var k=e(3400),v=e(24040);function n(w,b,c,a){a=a||k.identity,Array.isArray(w)&&(b[0][c]=a(w))}L.exports=function(w){var b=w.calcdata,c=w._fullLayout;function a(l){return function(u){return k.coerceHoverinfo({hoverinfo:u},{_module:l._module},c)}}for(var t=0;t<b.length;t++){var o=b[t],i=o[0].trace;if(!v.traceIs(i,"pie-like")){var s=v.traceIs(i,"2dMap")?n:k.fillArray;s(i.hoverinfo,o,"hi",a(i)),i.hovertemplate&&s(i.hovertemplate,o,"ht"),i.hoverlabel&&(s(i.hoverlabel.bgcolor,o,"hbg"),s(i.hoverlabel.bordercolor,o,"hbc"),s(i.hoverlabel.font.size,o,"hts"),s(i.hoverlabel.font.color,o,"htc"),s(i.hoverlabel.font.family,o,"htf"),s(i.hoverlabel.namelength,o,"hnl"),s(i.hoverlabel.align,o,"hta"))}}}},62376:function(L,T,e){var k=e(24040),v=e(83292).hover;L.exports=function(n,w,b){var c=k.getComponentMethod("annotations","onClick")(n,n._hoverdata);function a(){n.emit("plotly_click",{points:n._hoverdata,event:w})}b!==void 0&&v(n,w,b,!0),n._hoverdata&&w&&w.target&&(c&&c.then?c.then(a):a(),w.stopImmediatePropagation&&w.stopImmediatePropagation())}},92456:function(L){L.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},95448:function(L,T,e){var k=e(3400),v=e(55756),n=e(16132);L.exports=function(w,b,c,a){var t=k.extendFlat({},a.hoverlabel);b.hovertemplate&&(t.namelength=-1),n(w,b,function(o,i){return k.coerce(w,b,v,o,i)},t)}},10624:function(L,T,e){var k=e(3400);T.getSubplot=function(a){return a.subplot||a.xaxis+a.yaxis||a.geo},T.isTraceInSubplots=function(a,t){if(a.type==="splom"){for(var o=a.xaxes||[],i=a.yaxes||[],s=0;s<o.length;s++)for(var l=0;l<i.length;l++)if(t.indexOf(o[s]+i[l])!==-1)return!0;return!1}return t.indexOf(T.getSubplot(a))!==-1},T.flat=function(a,t){for(var o=new Array(a.length),i=0;i<a.length;i++)o[i]=t;return o},T.p2c=function(a,t){for(var o=new Array(a.length),i=0;i<a.length;i++)o[i]=a[i].p2c(t);return o},T.getDistanceFunction=function(a,t,o,i){return a==="closest"?i||T.quadrature(t,o):a.charAt(0)==="x"?t:o},T.getClosest=function(a,t,o){if(o.index!==!1)o.index>=0&&o.index<a.length?o.distance=0:o.index=!1;else for(var i=0;i<a.length;i++){var s=t(a[i]);s<=o.distance&&(o.index=i,o.distance=s)}return o},T.inbox=function(a,t,o){return a*t<0||a===0?o:1/0},T.quadrature=function(a,t){return function(o){var i=a(o),s=t(o);return Math.sqrt(i*i+s*s)}},T.makeEventData=function(a,t,o){var i="index"in a?a.index:a.pointNumber,s={data:t._input,fullData:t,curveNumber:t.index,pointNumber:i};if(t._indexToPoints){var l=t._indexToPoints[i];l.length===1?s.pointIndex=l[0]:s.pointIndices=l}else s.pointIndex=i;return t._module.eventData?s=t._module.eventData(s,a,t,o,i):("xVal"in a?s.x=a.xVal:"x"in a&&(s.x=a.x),"yVal"in a?s.y=a.yVal:"y"in a&&(s.y=a.y),a.xa&&(s.xaxis=a.xa),a.ya&&(s.yaxis=a.ya),a.zLabelVal!==void 0&&(s.z=a.zLabelVal)),T.appendArrayPointValue(s,t,i),s},T.appendArrayPointValue=function(a,t,o){var i=t._arrayAttrs;if(i)for(var s=0;s<i.length;s++){var l=i[s],u=n(l);if(a[u]===void 0){var d=w(k.nestedProperty(t,l).get(),o);d!==void 0&&(a[u]=d)}}},T.appendArrayMultiPointValues=function(a,t,o){var i=t._arrayAttrs;if(i)for(var s=0;s<i.length;s++){var l=i[s],u=n(l);if(a[u]===void 0){for(var d=k.nestedProperty(t,l).get(),g=new Array(o.length),f=0;f<o.length;f++)g[f]=w(d,o[f]);a[u]=g}}};var v={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function n(a){return v[a]||a}function w(a,t){return Array.isArray(t)?Array.isArray(a)&&Array.isArray(a[t[0]])?a[t[0]][t[1]]:void 0:a[t]}var b={x:!0,y:!0},c={"x unified":!0,"y unified":!0};T.isUnifiedHover=function(a){return typeof a=="string"&&!!c[a]},T.isXYhover=function(a){return typeof a=="string"&&!!b[a]}},83292:function(L,T,e){var k=e(33428),v=e(38248),n=e(49760),w=e(3400),b=w.strTranslate,c=w.strRotate,a=e(95924),t=e(72736),o=e(72213),i=e(43616),s=e(76308),l=e(86476),u=e(54460),d=e(24040),g=e(10624),f=e(92456),C=e(77864),y=e(31140),m=f.YANGLE,x=Math.PI*m/180,_=1/Math.sin(x),S=Math.cos(x),O=Math.sin(x),h=f.HOVERARROWSIZE,M=f.HOVERTEXTPAD,N={box:!0,ohlc:!0,violin:!0,candlestick:!0},P={scatter:!0,scattergl:!0,splom:!0};function R($){return[$.trace.index,$.index,$.x0,$.y0,$.name,$.attr,$.xa?$.xa._id:"",$.ya?$.ya._id:""].join(",")}T.hover=function($,te,ae,ce){$=w.getGraphDiv($);var ue=te.target;w.throttle($._fullLayout._uid+f.HOVERID,f.HOVERMINTIME,function(){(function(de,me,be,_e,we){be||(be="xy");var Ce=Array.isArray(be)?be:[be],Se=de._fullLayout,Pe=Se._plots||[],Ne=Pe[be],Oe=Se._has("cartesian");if(Ne){var pe=Ne.overlays.map(function(Zt){return Zt.id});Ce=Ce.concat(pe)}for(var fe=Ce.length,xe=new Array(fe),ze=new Array(fe),Le=!1,Ue=0;Ue<fe;Ue++){var Re=Ce[Ue];if(Pe[Re])Le=!0,xe[Ue]=Pe[Re].xaxis,ze[Ue]=Pe[Re].yaxis;else{if(!Se[Re]||!Se[Re]._subplot)return void w.warn("Unrecognized subplot: "+Re);var Fe=Se[Re]._subplot;xe[Ue]=Fe.xaxis,ze[Ue]=Fe.yaxis}}var ve=me.hovermode||Se.hovermode;if(ve&&!Le&&(ve="closest"),["x","y","closest","x unified","y unified"].indexOf(ve)===-1||!de.calcdata||de.querySelector(".zoombox")||de._dragging)return l.unhoverRaw(de,me);var ke=Se.hoverdistance;ke===-1&&(ke=1/0);var Ee=Se.spikedistance;Ee===-1&&(Ee=1/0);var je,Be,Ie,Ze,He,at,ft,ut,_t,Nt,Tt,st,lt,Vt=[],jt=[],Kt={hLinePoint:null,vLinePoint:null},It=!1;if(Array.isArray(me))for(ve="array",Ie=0;Ie<me.length;Ie++)(He=de.calcdata[me[Ie].curveNumber||0])&&(at=He[0].trace,He[0].trace.hoverinfo!=="skip"&&(jt.push(He),at.orientation==="h"&&(It=!0)));else{for(Ze=0;Ze<de.calcdata.length;Ze++)He=de.calcdata[Ze],(at=He[0].trace).hoverinfo!=="skip"&&g.isTraceInSubplots(at,Ce)&&(jt.push(He),at.orientation==="h"&&(It=!0));var $e,tt;if(we){if(a.triggerHandler(de,"plotly_beforehover",me)===!1)return;var Xe=we.getBoundingClientRect();$e=me.clientX-Xe.left,tt=me.clientY-Xe.top,Se._calcInverseTransform(de);var et=w.apply3DTransform(Se._invTransform)($e,tt);if($e=et[0],tt=et[1],$e<0||$e>xe[0]._length||tt<0||tt>ze[0]._length)return l.unhoverRaw(de,me)}else $e="xpx"in me?me.xpx:xe[0]._length/2,tt="ypx"in me?me.ypx:ze[0]._length/2;if(me.pointerX=$e+xe[0]._offset,me.pointerY=tt+ze[0]._offset,je="xval"in me?g.flat(Ce,me.xval):g.p2c(xe,$e),Be="yval"in me?g.flat(Ce,me.yval):g.p2c(ze,tt),!v(je[0])||!v(Be[0]))return w.warn("Fx.hover failed",me,de),l.unhoverRaw(de,me)}var ht=1/0;function dt(Zt,pn){for(Ze=0;Ze<jt.length;Ze++)if((He=jt[Ze])&&He[0]&&He[0].trace&&(at=He[0].trace).visible===!0&&at._length!==0&&["carpet","contourcarpet"].indexOf(at._module.name)===-1){if(at.type==="splom"?ft=Ce[ut=0]:(ft=g.getSubplot(at),ut=Ce.indexOf(ft)),_t=ve,g.isUnifiedHover(_t)&&(_t=_t.charAt(0)),st={cd:He,trace:at,xa:xe[ut],ya:ze[ut],maxHoverDistance:ke,maxSpikeDistance:Ee,index:!1,distance:Math.min(ht,ke),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:s.defaultLine,name:at.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},Se[ft]&&(st.subplot=Se[ft]._subplot),Se._splomScenes&&Se._splomScenes[at.uid]&&(st.scene=Se._splomScenes[at.uid]),lt=Vt.length,_t==="array"){var Ln=me[Ze];"pointNumber"in Ln?(st.index=Ln.pointNumber,_t="closest"):(_t="","xval"in Ln&&(Nt=Ln.xval,_t="x"),"yval"in Ln&&(Tt=Ln.yval,_t=_t?"closest":"y"))}else Zt!==void 0&&pn!==void 0?(Nt=Zt,Tt=pn):(Nt=je[ut],Tt=Be[ut]);if(ke!==0)if(at._module&&at._module.hoverPoints){var Tn=at._module.hoverPoints(st,Nt,Tt,_t,{finiteRange:!0,hoverLayer:Se._hoverlayer});if(Tn)for(var qn,rr=0;rr<Tn.length;rr++)qn=Tn[rr],v(qn.x0)&&v(qn.y0)&&Vt.push(W(qn,ve))}else w.log("Unrecognized trace type in hover:",at);if(ve==="closest"&&Vt.length>lt&&(Vt.splice(0,lt),ht=Vt[0].distance),Oe&&Ee!==0&&Vt.length===0){st.distance=Ee,st.index=!1;var Zn=at._module.hoverPoints(st,Nt,Tt,"closest",{hoverLayer:Se._hoverlayer});if(Zn&&(Zn=Zn.filter(function(tn){return tn.spikeDistance<=Ee})),Zn&&Zn.length){var Yn,gr=Zn.filter(function(tn){return tn.xa.showspikes&&tn.xa.spikesnap!=="hovered data"});if(gr.length){var en=gr[0];v(en.x0)&&v(en.y0)&&(Yn=Ge(en),(!Kt.vLinePoint||Kt.vLinePoint.spikeDistance>Yn.spikeDistance)&&(Kt.vLinePoint=Yn))}var kn=Zn.filter(function(tn){return tn.ya.showspikes&&tn.ya.spikesnap!=="hovered data"});if(kn.length){var qt=kn[0];v(qt.x0)&&v(qt.y0)&&(Yn=Ge(qt),(!Kt.hLinePoint||Kt.hLinePoint.spikeDistance>Yn.spikeDistance)&&(Kt.hLinePoint=Yn))}}}}}function De(Zt,pn,Ln){for(var Tn,qn=null,rr=1/0,Zn=0;Zn<Zt.length;Zn++)Tn=Zt[Zn].spikeDistance,Ln&&Zn===0&&(Tn=-1/0),Tn<=rr&&Tn<=pn&&(qn=Zt[Zn],rr=Tn);return qn}function Ge(Zt){return Zt?{xa:Zt.xa,ya:Zt.ya,x:Zt.xSpike!==void 0?Zt.xSpike:(Zt.x0+Zt.x1)/2,y:Zt.ySpike!==void 0?Zt.ySpike:(Zt.y0+Zt.y1)/2,distance:Zt.distance,spikeDistance:Zt.spikeDistance,curveNumber:Zt.trace.index,color:Zt.color,pointNumber:Zt.index}:null}dt();var pt={fullLayout:Se,container:Se._hoverlayer,event:me},nt=de._spikepoints,bt={vLinePoint:Kt.vLinePoint,hLinePoint:Kt.hLinePoint};de._spikepoints=bt;var wt=function(){Vt.sort(function(Zt,pn){return Zt.distance-pn.distance}),Vt=function(Zt,pn){for(var Ln=pn.charAt(0),Tn=[],qn=[],rr=[],Zn=0;Zn<Zt.length;Zn++){var Yn=Zt[Zn];d.traceIs(Yn.trace,"bar-like")||d.traceIs(Yn.trace,"box-violin")?rr.push(Yn):Yn.trace[Ln+"period"]?qn.push(Yn):Tn.push(Yn)}return Tn.concat(qn).concat(rr)}(Vt,ve)};wt();var St=ve.charAt(0),vt=(St==="x"||St==="y")&&Vt[0]&&P[Vt[0].trace.type];if(Oe&&Ee!==0&&Vt.length!==0){var Pt=De(Vt.filter(function(Zt){return Zt.ya.showspikes}),Ee,vt);Kt.hLinePoint=Ge(Pt);var Lt=De(Vt.filter(function(Zt){return Zt.xa.showspikes}),Ee,vt);Kt.vLinePoint=Ge(Lt)}if(Vt.length===0){var Ct=l.unhoverRaw(de,me);return!Oe||Kt.hLinePoint===null&&Kt.vLinePoint===null||B(nt)&&Y(de,Kt,pt),Ct}if(Oe&&B(nt)&&Y(de,Kt,pt),g.isXYhover(_t)&&Vt[0].length!==0&&Vt[0].trace.type!=="splom"){var Rt=Vt[0],At=(Vt=N[Rt.trace.type]?Vt.filter(function(Zt){return Zt.trace.index===Rt.trace.index}):[Rt]).length;dt(J("x",Rt,Se),J("y",Rt,Se));var Bt,nn=[],hn={},Ht=0,Qt=function(Zt){var pn=N[Zt.trace.type]?R(Zt):Zt.trace.index;if(hn[pn]){var Ln=hn[pn]-1,Tn=nn[Ln];Ln>0&&Math.abs(Zt.distance)<Math.abs(Tn.distance)&&(nn[Ln]=Zt)}else Ht++,hn[pn]=Ht,nn.push(Zt)};for(Bt=0;Bt<At;Bt++)Qt(Vt[Bt]);for(Bt=Vt.length-1;Bt>At-1;Bt--)Qt(Vt[Bt]);Vt=nn,wt()}var un=de._hoverdata,In=[],zn=se(de),wn=re(de);for(Ie=0;Ie<Vt.length;Ie++){var rn=Vt[Ie],vn=g.makeEventData(rn,rn.trace,rn.cd);if(rn.hovertemplate!==!1){var dn=!1;rn.cd[rn.index]&&rn.cd[rn.index].ht&&(dn=rn.cd[rn.index].ht),rn.hovertemplate=dn||rn.trace.hovertemplate||!1}if(rn.xa&&rn.ya){var _n=rn.x0+rn.xa._offset,Un=rn.x1+rn.xa._offset,An=rn.y0+rn.ya._offset,Wn=rn.y1+rn.ya._offset,Gn=Math.min(_n,Un),jn=Math.max(_n,Un),er=Math.min(An,Wn),Qn=Math.max(An,Wn);vn.bbox={x0:Gn+wn,x1:jn+wn,y0:er+zn,y1:Qn+zn}}rn.eventData=[vn],In.push(vn)}de._hoverdata=In;var vr=ve==="y"&&(jt.length>1||Vt.length>1)||ve==="closest"&&It&&Vt.length>1,wr=s.combine(Se.plot_bgcolor||s.background,Se.paper_bgcolor),Sr=q(Vt,{gd:de,hovermode:ve,rotateLabels:vr,bgColor:wr,container:Se._hoverlayer,outerContainer:Se._paper.node(),commonLabelOpts:Se.hoverlabel,hoverdistance:Se.hoverdistance}),dr=Sr.hoverLabels;if(g.isUnifiedHover(ve)||(function(Zt,pn,Ln,Tn){var qn,rr,Zn,Yn,gr,en,kn,qt=pn?"xa":"ya",tn=pn?"ya":"xa",cn=0,On=1,Cn=Zt.size(),Mn=new Array(Cn),xn=0,sn=Tn.minX,ln=Tn.maxX,fn=Tn.minY,gn=Tn.maxY,Fn=function(_r){return _r*Ln._invScaleX},Bn=function(_r){return _r*Ln._invScaleY};function $n(_r){var Nr=_r[0],xr=_r[_r.length-1];if(rr=Nr.pmin-Nr.pos-Nr.dp+Nr.size,Zn=xr.pos+xr.dp+xr.size-Nr.pmax,rr>.01){for(gr=_r.length-1;gr>=0;gr--)_r[gr].dp+=rr;qn=!1}if(!(Zn<.01)){if(rr<-.01){for(gr=_r.length-1;gr>=0;gr--)_r[gr].dp-=Zn;qn=!1}if(qn){var Lr=0;for(Yn=0;Yn<_r.length;Yn++)(en=_r[Yn]).pos+en.dp+en.size>Nr.pmax&&Lr++;for(Yn=_r.length-1;Yn>=0&&!(Lr<=0);Yn--)(en=_r[Yn]).pos>Nr.pmax-1&&(en.del=!0,Lr--);for(Yn=0;Yn<_r.length&&!(Lr<=0);Yn++)if((en=_r[Yn]).pos<Nr.pmin+1)for(en.del=!0,Lr--,Zn=2*en.size,gr=_r.length-1;gr>=0;gr--)_r[gr].dp-=Zn;for(Yn=_r.length-1;Yn>=0&&!(Lr<=0);Yn--)(en=_r[Yn]).pos+en.dp+en.size>Nr.pmax&&(en.del=!0,Lr--)}}}for(Zt.each(function(_r){var Nr=_r[qt],xr=_r[tn],Lr=Nr._id.charAt(0)==="x",Zr=Nr.range;xn===0&&Zr&&Zr[0]>Zr[1]!==Lr&&(On=-1);var ca=0,Qa=Lr?Ln.width:Ln.height;if(Ln.hovermode==="x"||Ln.hovermode==="y"){var no,Fo,Ja=X(_r,pn),Ra=_r.anchor,xi=Ra==="end"?-1:1;if(Ra==="middle")Fo=(no=_r.crossPos+(Lr?Bn(Ja.y-_r.by/2):Fn(_r.bx/2+_r.tx2width/2)))+(Lr?Bn(_r.by):Fn(_r.bx));else if(Lr)Fo=(no=_r.crossPos+Bn(h+Ja.y)-Bn(_r.by/2-h))+Bn(_r.by);else{var ko=Fn(xi*h+Ja.x),Ll=ko+Fn(xi*_r.bx);no=_r.crossPos+Math.min(ko,Ll),Fo=_r.crossPos+Math.max(ko,Ll)}Lr?fn!==void 0&&gn!==void 0&&Math.min(Fo,gn)-Math.max(no,fn)>1&&(xr.side==="left"?(ca=xr._mainLinePosition,Qa=Ln.width):Qa=xr._mainLinePosition):sn!==void 0&&ln!==void 0&&Math.min(Fo,ln)-Math.max(no,sn)>1&&(xr.side==="top"?(ca=xr._mainLinePosition,Qa=Ln.height):Qa=xr._mainLinePosition)}Mn[xn++]=[{datum:_r,traceIndex:_r.trace.index,dp:0,pos:_r.pos,posref:_r.posref,size:_r.by*(Lr?_:1)/2,pmin:ca,pmax:Qa}]}),Mn.sort(function(_r,Nr){return _r[0].posref-Nr[0].posref||On*(Nr[0].traceIndex-_r[0].traceIndex)});!qn&&cn<=Cn;){for(cn++,qn=!0,Yn=0;Yn<Mn.length-1;){var tr=Mn[Yn],pr=Mn[Yn+1],sr=tr[tr.length-1],br=pr[0];if((rr=sr.pos+sr.dp+sr.size-br.pos-br.dp+br.size)>.01&&sr.pmin===br.pmin&&sr.pmax===br.pmax){for(gr=pr.length-1;gr>=0;gr--)pr[gr].dp+=rr;for(tr.push.apply(tr,pr),Mn.splice(Yn+1,1),kn=0,gr=tr.length-1;gr>=0;gr--)kn+=tr[gr].dp;for(Zn=kn/tr.length,gr=tr.length-1;gr>=0;gr--)tr[gr].dp-=Zn;qn=!1}else Yn++}Mn.forEach($n)}for(Yn=Mn.length-1;Yn>=0;Yn--){var mr=Mn[Yn];for(gr=mr.length-1;gr>=0;gr--){var lr=mr[gr],Mr=lr.datum;Mr.offset=lr.dp,Mr.del=lr.del}}}(dr,vr,Se,Sr.commonLabelBoundingBox),F(dr,vr,Se._invScaleX,Se._invScaleY)),we&&we.tagName){var Gr=d.getComponentMethod("annotations","hasClickToShow")(de,In);o(k.select(we),Gr?"pointer":"")}we&&!_e&&function(Zt,pn,Ln){if(!Ln||Ln.length!==Zt._hoverdata.length)return!0;for(var Tn=Ln.length-1;Tn>=0;Tn--){var qn=Ln[Tn],rr=Zt._hoverdata[Tn];if(qn.curveNumber!==rr.curveNumber||String(qn.pointNumber)!==String(rr.pointNumber)||String(qn.pointNumbers)!==String(rr.pointNumbers))return!0}return!1}(de,0,un)&&(un&&de.emit("plotly_unhover",{event:me,points:un}),de.emit("plotly_hover",{event:me,points:de._hoverdata,xaxes:xe,yaxes:ze,xvals:je,yvals:Be}))})($,te,ae,ce,ue)})},T.loneHover=function($,te){var ae=!0;Array.isArray($)||(ae=!1,$=[$]);var ce=te.gd,ue=se(ce),de=re(ce),me=q($.map(function(we){var Ce=we._x0||we.x0||we.x||0,Se=we._x1||we.x1||we.x||0,Pe=we._y0||we.y0||we.y||0,Ne=we._y1||we.y1||we.y||0,Oe=we.eventData;if(Oe){var pe=Math.min(Ce,Se),fe=Math.max(Ce,Se),xe=Math.min(Pe,Ne),ze=Math.max(Pe,Ne),Le=we.trace;if(d.traceIs(Le,"gl3d")){var Ue=ce._fullLayout[Le.scene]._scene.container,Re=Ue.offsetLeft,Fe=Ue.offsetTop;pe+=Re,fe+=Re,xe+=Fe,ze+=Fe}Oe.bbox={x0:pe+de,x1:fe+de,y0:xe+ue,y1:ze+ue},te.inOut_bbox&&te.inOut_bbox.push(Oe.bbox)}else Oe=!1;return{color:we.color||s.defaultLine,x0:we.x0||we.x||0,x1:we.x1||we.x||0,y0:we.y0||we.y||0,y1:we.y1||we.y||0,xLabel:we.xLabel,yLabel:we.yLabel,zLabel:we.zLabel,text:we.text,name:we.name,idealAlign:we.idealAlign,borderColor:we.borderColor,fontFamily:we.fontFamily,fontSize:we.fontSize,fontColor:we.fontColor,nameLength:we.nameLength,textAlign:we.textAlign,trace:we.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:we.hovertemplate||!1,hovertemplateLabels:we.hovertemplateLabels||!1,eventData:Oe}}),{gd:ce,hovermode:"closest",rotateLabels:!1,bgColor:te.bgColor||s.background,container:k.select(te.container),outerContainer:te.outerContainer||te.container}).hoverLabels,be=0,_e=0;return me.sort(function(we,Ce){return we.y0-Ce.y0}).each(function(we,Ce){var Se=we.y0-we.by/2;we.offset=Se-5<be?be-Se+5:0,be=Se+we.by+we.offset,Ce===te.anchorIndex&&(_e=we.offset)}).each(function(we){we.offset-=_e}),F(me,!1,ce._fullLayout._invScaleX,ce._fullLayout._invScaleY),ae?me:me.node()};var A=/<extra>([\s\S]*)<\/extra>/;function q($,te){var ae=te.gd,ce=ae._fullLayout,ue=te.hovermode,de=te.rotateLabels,me=te.bgColor,be=te.container,_e=te.outerContainer,we=te.commonLabelOpts||{};if($.length===0)return[[]];var Ce=te.fontFamily||f.HOVERFONT,Se=te.fontSize||f.HOVERFONTSIZE,Pe=$[0],Ne=Pe.xa,Oe=Pe.ya,pe=ue.charAt(0),fe=pe+"Label",xe=Pe[fe];if(xe===void 0&&Ne.type==="multicategory")for(var ze=0;ze<$.length&&(xe=$[ze][fe])===void 0;ze++);var Le=ne(ae,_e),Ue=Le.top,Re=Le.width,Fe=Le.height,ve=xe!==void 0&&Pe.distance<=te.hoverdistance&&(ue==="x"||ue==="y");if(ve){var ke,Ee,je=!0;for(ke=0;ke<$.length;ke++)if(je&&$[ke].zLabel===void 0&&(je=!1),Ee=$[ke].hoverinfo||$[ke].trace.hoverinfo){var Be=Array.isArray(Ee)?Ee:Ee.split("+");if(Be.indexOf("all")===-1&&Be.indexOf(ue)===-1){ve=!1;break}}je&&(ve=!1)}var Ie=be.selectAll("g.axistext").data(ve?[0]:[]);Ie.enter().append("g").classed("axistext",!0),Ie.exit().remove();var Ze={minX:0,maxX:0,minY:0,maxY:0};if(Ie.each(function(){var Ct=k.select(this),Rt=w.ensureSingle(Ct,"path","",function(er){er.style({"stroke-width":"1px"})}),At=w.ensureSingle(Ct,"text","",function(er){er.attr("data-notex",1)}),Bt=we.bgcolor||s.defaultLine,nn=we.bordercolor||s.contrast(Bt),hn=s.contrast(Bt),Ht={family:we.font.family||Ce,size:we.font.size||Se,color:we.font.color||hn};Rt.style({fill:Bt,stroke:nn}),At.text(xe).call(i.font,Ht).call(t.positionText,0,0).call(t.convertToTspans,ae),Ct.attr("transform","");var Qt,un,In=ne(ae,At.node());if(ue==="x"){var zn=Ne.side==="top"?"-":"";At.attr("text-anchor","middle").call(t.positionText,0,Ne.side==="top"?Ue-In.bottom-h-M:Ue-In.top+h+M),Qt=Ne._offset+(Pe.x0+Pe.x1)/2,un=Oe._offset+(Ne.side==="top"?0:Oe._length);var wn=In.width/2+M;Qt<wn?(Qt=wn,Rt.attr("d","M-"+(wn-h)+",0L-"+(wn-2*h)+","+zn+h+"H"+wn+"v"+zn+(2*M+In.height)+"H-"+wn+"V"+zn+h+"Z")):Qt>ce.width-wn?(Qt=ce.width-wn,Rt.attr("d","M"+(wn-h)+",0L"+wn+","+zn+h+"v"+zn+(2*M+In.height)+"H-"+wn+"V"+zn+h+"H"+(wn-2*h)+"Z")):Rt.attr("d","M0,0L"+h+","+zn+h+"H"+wn+"v"+zn+(2*M+In.height)+"H-"+wn+"V"+zn+h+"H-"+h+"Z"),Ze.minX=Qt-wn,Ze.maxX=Qt+wn,Ne.side==="top"?(Ze.minY=un-(2*M+In.height),Ze.maxY=un-M):(Ze.minY=un+M,Ze.maxY=un+(2*M+In.height))}else{var rn,vn,dn;Oe.side==="right"?(rn="start",vn=1,dn="",Qt=Ne._offset+Ne._length):(rn="end",vn=-1,dn="-",Qt=Ne._offset),un=Oe._offset+(Pe.y0+Pe.y1)/2,At.attr("text-anchor",rn),Rt.attr("d","M0,0L"+dn+h+","+h+"V"+(M+In.height/2)+"h"+dn+(2*M+In.width)+"V-"+(M+In.height/2)+"H"+dn+h+"V-"+h+"Z"),Ze.minY=un-(M+In.height/2),Ze.maxY=un+(M+In.height/2),Oe.side==="right"?(Ze.minX=Qt+h,Ze.maxX=Qt+h+(2*M+In.width)):(Ze.minX=Qt-h-(2*M+In.width),Ze.maxX=Qt-h);var _n,Un=In.height/2,An=Ue-In.top-Un,Wn="clip"+ce._uid+"commonlabel"+Oe._id;if(Qt<In.width+2*M+h){_n="M-"+(h+M)+"-"+Un+"h-"+(In.width-M)+"V"+Un+"h"+(In.width-M)+"Z";var Gn=In.width-Qt+M;t.positionText(At,Gn,An),rn==="end"&&At.selectAll("tspan").each(function(){var er=k.select(this),Qn=i.tester.append("text").text(er.text()).call(i.font,Ht),vr=ne(ae,Qn.node());Math.round(vr.width)<Math.round(In.width)&&er.attr("x",Gn-vr.width),Qn.remove()})}else t.positionText(At,vn*(M+h),An),_n=null;var jn=ce._topclips.selectAll("#"+Wn).data(_n?[0]:[]);jn.enter().append("clipPath").attr("id",Wn).append("path"),jn.exit().remove(),jn.select("path").attr("d",_n),i.setClipUrl(At,_n?Wn:null,ae)}Ct.attr("transform",b(Qt,un))}),g.isUnifiedHover(ue)){be.selectAll("g.hovertext").remove();var He=$.filter(function(Ct){return Ct.hoverinfo!=="none"});if(He.length===0)return[];var at=ce.hoverlabel,ft=at.font,ut={showlegend:!0,legend:{title:{text:xe,font:ft},font:ft,bgcolor:at.bgcolor,bordercolor:at.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:ce.legend?ce.legend.traceorder:void 0,orientation:"v"}},_t={font:ft};C(ut,_t,ae._fullData);var Nt=_t.legend;Nt.entries=[];for(var Tt=0;Tt<He.length;Tt++){var st=He[Tt];if(st.hoverinfo!=="none"){var lt=j(st,!0,ue,ce,xe),Vt=lt[0],jt=lt[1];st.name=jt,st.text=jt!==""?jt+" : "+Vt:Vt;var Kt=st.cd[st.index];Kt&&(Kt.mc&&(st.mc=Kt.mc),Kt.mcc&&(st.mc=Kt.mcc),Kt.mlc&&(st.mlc=Kt.mlc),Kt.mlcc&&(st.mlc=Kt.mlcc),Kt.mlw&&(st.mlw=Kt.mlw),Kt.mrc&&(st.mrc=Kt.mrc),Kt.dir&&(st.dir=Kt.dir)),st._distinct=!0,Nt.entries.push([st])}}Nt.entries.sort(function(Ct,Rt){return Ct[0].trace.index-Rt[0].trace.index}),Nt.layer=be,Nt._inHover=!0,Nt._groupTitleFont=at.grouptitlefont,y(ae,Nt);var It,$e,tt,Xe,et=be.select("g.legend"),ht=ne(ae,et.node()),dt=ht.width+2*M,De=ht.height+2*M,Ge=He[0],pt=(Ge.x0+Ge.x1)/2,nt=(Ge.y0+Ge.y1)/2,bt=!(d.traceIs(Ge.trace,"bar-like")||d.traceIs(Ge.trace,"box-violin"));pe==="y"?bt?($e=nt-M,It=nt+M):($e=Math.min.apply(null,He.map(function(Ct){return Math.min(Ct.y0,Ct.y1)})),It=Math.max.apply(null,He.map(function(Ct){return Math.max(Ct.y0,Ct.y1)}))):$e=It=w.mean(He.map(function(Ct){return(Ct.y0+Ct.y1)/2}))-De/2,pe==="x"?bt?(tt=pt+M,Xe=pt-M):(tt=Math.max.apply(null,He.map(function(Ct){return Math.max(Ct.x0,Ct.x1)})),Xe=Math.min.apply(null,He.map(function(Ct){return Math.min(Ct.x0,Ct.x1)}))):tt=Xe=w.mean(He.map(function(Ct){return(Ct.x0+Ct.x1)/2}))-dt/2;var wt,St,vt=Ne._offset,Pt=Oe._offset;return Xe+=vt-dt,$e+=Pt-De,wt=(tt+=vt)+dt<Re&&tt>=0?tt:Xe+dt<Re&&Xe>=0?Xe:vt+dt<Re?vt:tt-pt<pt-Xe+dt?Re-dt:0,wt+=M,St=(It+=Pt)+De<Fe&&It>=0?It:$e+De<Fe&&$e>=0?$e:Pt+De<Fe?Pt:It-nt<nt-$e+De?Fe-De:0,St+=M,et.attr("transform",b(wt-1,St-1)),et}var Lt=be.selectAll("g.hovertext").data($,function(Ct){return R(Ct)});return Lt.enter().append("g").classed("hovertext",!0).each(function(){var Ct=k.select(this);Ct.append("rect").call(s.fill,s.addOpacity(me,.8)),Ct.append("text").classed("name",!0),Ct.append("path").style("stroke-width","1px"),Ct.append("text").classed("nums",!0).call(i.font,Ce,Se)}),Lt.exit().remove(),Lt.each(function(Ct){var Rt=k.select(this).attr("transform",""),At=Ct.color;Array.isArray(At)&&(At=At[Ct.eventData[0].pointNumber]);var Bt=Ct.bgcolor||At,nn=s.combine(s.opacity(Bt)?Bt:s.defaultLine,me),hn=s.combine(s.opacity(At)?At:s.defaultLine,me),Ht=Ct.borderColor||s.contrast(nn),Qt=j(Ct,ve,ue,ce,xe,Rt),un=Qt[0],In=Qt[1],zn=Rt.select("text.nums").call(i.font,Ct.fontFamily||Ce,Ct.fontSize||Se,Ct.fontColor||Ht).text(un).attr("data-notex",1).call(t.positionText,0,0).call(t.convertToTspans,ae),wn=Rt.select("text.name"),rn=0,vn=0;if(In&&In!==un){wn.call(i.font,Ct.fontFamily||Ce,Ct.fontSize||Se,hn).text(In).attr("data-notex",1).call(t.positionText,0,0).call(t.convertToTspans,ae);var dn=ne(ae,wn.node());rn=dn.width+2*M,vn=dn.height+2*M}else wn.remove(),Rt.select("rect").remove();Rt.select("path").style({fill:nn,stroke:Ht});var _n=Ct.xa._offset+(Ct.x0+Ct.x1)/2,Un=Ct.ya._offset+(Ct.y0+Ct.y1)/2,An=Math.abs(Ct.x1-Ct.x0),Wn=Math.abs(Ct.y1-Ct.y0),Gn=ne(ae,zn.node()),jn=Gn.width/ce._invScaleX,er=Gn.height/ce._invScaleY;Ct.ty0=(Ue-Gn.top)/ce._invScaleY,Ct.bx=jn+2*M,Ct.by=Math.max(er+2*M,vn),Ct.anchor="start",Ct.txwidth=jn,Ct.tx2width=rn,Ct.offset=0;var Qn,vr,wr=(jn+h+M+rn)*ce._invScaleX;if(de)Ct.pos=_n,Qn=Un+Wn/2+wr<=Fe,vr=Un-Wn/2-wr>=0,Ct.idealAlign!=="top"&&Qn||!vr?Qn?(Un+=Wn/2,Ct.anchor="start"):Ct.anchor="middle":(Un-=Wn/2,Ct.anchor="end"),Ct.crossPos=Un;else{if(Ct.pos=Un,Qn=_n+An/2+wr<=Re,vr=_n-An/2-wr>=0,Ct.idealAlign!=="left"&&Qn||!vr)if(Qn)_n+=An/2,Ct.anchor="start";else{Ct.anchor="middle";var Sr=wr/2,dr=_n+Sr-Re,Gr=_n-Sr;dr>0&&(_n-=dr),Gr<0&&(_n+=-Gr)}else _n-=An/2,Ct.anchor="end";Ct.crossPos=_n}zn.attr("text-anchor",Ct.anchor),rn&&wn.attr("text-anchor",Ct.anchor),Rt.attr("transform",b(_n,Un)+(de?c(m):""))}),{hoverLabels:Lt,commonLabelBoundingBox:Ze}}function j($,te,ae,ce,ue,de){var me="",be="";$.nameOverride!==void 0&&($.name=$.nameOverride),$.name&&($.trace._meta&&($.name=w.templateString($.name,$.trace._meta)),me=G($.name,$.nameLength));var _e=ae.charAt(0),we=_e==="x"?"y":"x";$.zLabel!==void 0?($.xLabel!==void 0&&(be+="x: "+$.xLabel+"<br>"),$.yLabel!==void 0&&(be+="y: "+$.yLabel+"<br>"),$.trace.type!=="choropleth"&&$.trace.type!=="choroplethmapbox"&&(be+=(be?"z: ":"")+$.zLabel)):te&&$[_e+"Label"]===ue?be=$[we+"Label"]||"":$.xLabel===void 0?$.yLabel!==void 0&&$.trace.type!=="scattercarpet"&&(be=$.yLabel):be=$.yLabel===void 0?$.xLabel:"("+$.xLabel+", "+$.yLabel+")",!$.text&&$.text!==0||Array.isArray($.text)||(be+=(be?"<br>":"")+$.text),$.extraText!==void 0&&(be+=(be?"<br>":"")+$.extraText),de&&be===""&&!$.hovertemplate&&(me===""&&de.remove(),be=me);var Ce=$.hovertemplate||!1;if(Ce){var Se=$.hovertemplateLabels||$;$[_e+"Label"]!==ue&&(Se[_e+"other"]=Se[_e+"Val"],Se[_e+"otherLabel"]=Se[_e+"Label"]),be=(be=w.hovertemplateString(Ce,Se,ce._d3locale,$.eventData[0]||{},$.trace._meta)).replace(A,function(Pe,Ne){return me=G(Ne,$.nameLength),""})}return[be,me]}function X($,te){var ae=0,ce=$.offset;return te&&(ce*=-O,ae=$.offset*S),{x:ae,y:ce}}function F($,te,ae,ce){var ue=function(me){return me*ae},de=function(me){return me*ce};$.each(function(me){var be=k.select(this);if(me.del)return be.remove();var _e,we,Ce,Se,Pe=be.select("text.nums"),Ne=me.anchor,Oe=Ne==="end"?-1:1,pe=(Se=(Ce=(we={start:1,end:-1,middle:0}[(_e=me).anchor])*(h+M))+we*(_e.txwidth+M),_e.anchor==="middle"&&(Ce-=_e.tx2width/2,Se+=_e.txwidth/2+M),{alignShift:we,textShiftX:Ce,text2ShiftX:Se}),fe=X(me,te),xe=fe.x,ze=fe.y,Le=Ne==="middle";be.select("path").attr("d",Le?"M-"+ue(me.bx/2+me.tx2width/2)+","+de(ze-me.by/2)+"h"+ue(me.bx)+"v"+de(me.by)+"h-"+ue(me.bx)+"Z":"M0,0L"+ue(Oe*h+xe)+","+de(h+ze)+"v"+de(me.by/2-h)+"h"+ue(Oe*me.bx)+"v-"+de(me.by)+"H"+ue(Oe*h+xe)+"V"+de(ze-h)+"Z");var Ue=xe+pe.textShiftX,Re=ze+me.ty0-me.by/2+M,Fe=me.textAlign||"auto";Fe!=="auto"&&(Fe==="left"&&Ne!=="start"?(Pe.attr("text-anchor","start"),Ue=Le?-me.bx/2-me.tx2width/2+M:-me.bx-M):Fe==="right"&&Ne!=="end"&&(Pe.attr("text-anchor","end"),Ue=Le?me.bx/2-me.tx2width/2-M:me.bx+M)),Pe.call(t.positionText,ue(Ue),de(Re)),me.tx2width&&(be.select("text.name").call(t.positionText,ue(pe.text2ShiftX+pe.alignShift*M+xe),de(ze+me.ty0-me.by/2+M)),be.select("rect").call(i.setRect,ue(pe.text2ShiftX+(pe.alignShift-1)*me.tx2width/2+xe),de(ze-me.by/2-1),ue(me.tx2width),de(me.by+2)))})}function W($,te){var ae=$.index,ce=$.trace||{},ue=$.cd[0],de=$.cd[ae]||{};function me(Pe){return Pe||v(Pe)&&Pe===0}var be=Array.isArray(ae)?function(Pe,Ne){var Oe=w.castOption(ue,ae,Pe);return me(Oe)?Oe:w.extractOption({},ce,"",Ne)}:function(Pe,Ne){return w.extractOption(de,ce,Pe,Ne)};function _e(Pe,Ne,Oe){var pe=be(Ne,Oe);me(pe)&&($[Pe]=pe)}if(_e("hoverinfo","hi","hoverinfo"),_e("bgcolor","hbg","hoverlabel.bgcolor"),_e("borderColor","hbc","hoverlabel.bordercolor"),_e("fontFamily","htf","hoverlabel.font.family"),_e("fontSize","hts","hoverlabel.font.size"),_e("fontColor","htc","hoverlabel.font.color"),_e("nameLength","hnl","hoverlabel.namelength"),_e("textAlign","hta","hoverlabel.align"),$.posref=te==="y"||te==="closest"&&ce.orientation==="h"?$.xa._offset+($.x0+$.x1)/2:$.ya._offset+($.y0+$.y1)/2,$.x0=w.constrain($.x0,0,$.xa._length),$.x1=w.constrain($.x1,0,$.xa._length),$.y0=w.constrain($.y0,0,$.ya._length),$.y1=w.constrain($.y1,0,$.ya._length),$.xLabelVal!==void 0&&($.xLabel="xLabel"in $?$.xLabel:u.hoverLabelText($.xa,$.xLabelVal,ce.xhoverformat),$.xVal=$.xa.c2d($.xLabelVal)),$.yLabelVal!==void 0&&($.yLabel="yLabel"in $?$.yLabel:u.hoverLabelText($.ya,$.yLabelVal,ce.yhoverformat),$.yVal=$.ya.c2d($.yLabelVal)),$.zLabelVal!==void 0&&$.zLabel===void 0&&($.zLabel=String($.zLabelVal)),!(isNaN($.xerr)||$.xa.type==="log"&&$.xerr<=0)){var we=u.tickText($.xa,$.xa.c2l($.xerr),"hover").text;$.xerrneg!==void 0?$.xLabel+=" +"+we+" / -"+u.tickText($.xa,$.xa.c2l($.xerrneg),"hover").text:$.xLabel+=" ± "+we,te==="x"&&($.distance+=1)}if(!(isNaN($.yerr)||$.ya.type==="log"&&$.yerr<=0)){var Ce=u.tickText($.ya,$.ya.c2l($.yerr),"hover").text;$.yerrneg!==void 0?$.yLabel+=" +"+Ce+" / -"+u.tickText($.ya,$.ya.c2l($.yerrneg),"hover").text:$.yLabel+=" ± "+Ce,te==="y"&&($.distance+=1)}var Se=$.hoverinfo||$.trace.hoverinfo;return Se&&Se!=="all"&&((Se=Array.isArray(Se)?Se:Se.split("+")).indexOf("x")===-1&&($.xLabel=void 0),Se.indexOf("y")===-1&&($.yLabel=void 0),Se.indexOf("z")===-1&&($.zLabel=void 0),Se.indexOf("text")===-1&&($.text=void 0),Se.indexOf("name")===-1&&($.name=void 0)),$}function Y($,te,ae){var ce,ue,de=ae.container,me=ae.fullLayout,be=me._size,_e=ae.event,we=!!te.hLinePoint,Ce=!!te.vLinePoint;if(de.selectAll(".spikeline").remove(),Ce||we){var Se=s.combine(me.plot_bgcolor,me.paper_bgcolor);if(we){var Pe,Ne,Oe=te.hLinePoint;ce=Oe&&Oe.xa,(ue=Oe&&Oe.ya).spikesnap==="cursor"?(Pe=_e.pointerX,Ne=_e.pointerY):(Pe=ce._offset+Oe.x,Ne=ue._offset+Oe.y);var pe,fe,xe=n.readability(Oe.color,Se)<1.5?s.contrast(Se):Oe.color,ze=ue.spikemode,Le=ue.spikethickness,Ue=ue.spikecolor||xe,Re=u.getPxPosition($,ue);if(ze.indexOf("toaxis")!==-1||ze.indexOf("across")!==-1){if(ze.indexOf("toaxis")!==-1&&(pe=Re,fe=Pe),ze.indexOf("across")!==-1){var Fe=ue._counterDomainMin,ve=ue._counterDomainMax;ue.anchor==="free"&&(Fe=Math.min(Fe,ue.position),ve=Math.max(ve,ue.position)),pe=be.l+Fe*be.w,fe=be.l+ve*be.w}de.insert("line",":first-child").attr({x1:pe,x2:fe,y1:Ne,y2:Ne,"stroke-width":Le,stroke:Ue,"stroke-dasharray":i.dashStyle(ue.spikedash,Le)}).classed("spikeline",!0).classed("crisp",!0),de.insert("line",":first-child").attr({x1:pe,x2:fe,y1:Ne,y2:Ne,"stroke-width":Le+2,stroke:Se}).classed("spikeline",!0).classed("crisp",!0)}ze.indexOf("marker")!==-1&&de.insert("circle",":first-child").attr({cx:Re+(ue.side!=="right"?Le:-Le),cy:Ne,r:Le,fill:Ue}).classed("spikeline",!0)}if(Ce){var ke,Ee,je=te.vLinePoint;ce=je&&je.xa,ue=je&&je.ya,ce.spikesnap==="cursor"?(ke=_e.pointerX,Ee=_e.pointerY):(ke=ce._offset+je.x,Ee=ue._offset+je.y);var Be,Ie,Ze=n.readability(je.color,Se)<1.5?s.contrast(Se):je.color,He=ce.spikemode,at=ce.spikethickness,ft=ce.spikecolor||Ze,ut=u.getPxPosition($,ce);if(He.indexOf("toaxis")!==-1||He.indexOf("across")!==-1){if(He.indexOf("toaxis")!==-1&&(Be=ut,Ie=Ee),He.indexOf("across")!==-1){var _t=ce._counterDomainMin,Nt=ce._counterDomainMax;ce.anchor==="free"&&(_t=Math.min(_t,ce.position),Nt=Math.max(Nt,ce.position)),Be=be.t+(1-Nt)*be.h,Ie=be.t+(1-_t)*be.h}de.insert("line",":first-child").attr({x1:ke,x2:ke,y1:Be,y2:Ie,"stroke-width":at,stroke:ft,"stroke-dasharray":i.dashStyle(ce.spikedash,at)}).classed("spikeline",!0).classed("crisp",!0),de.insert("line",":first-child").attr({x1:ke,x2:ke,y1:Be,y2:Ie,"stroke-width":at+2,stroke:Se}).classed("spikeline",!0).classed("crisp",!0)}He.indexOf("marker")!==-1&&de.insert("circle",":first-child").attr({cx:ke,cy:ut-(ce.side!=="top"?at:-at),r:at,fill:ft}).classed("spikeline",!0)}}}function B($,te){return!te||te.vLinePoint!==$._spikepoints.vLinePoint||te.hLinePoint!==$._spikepoints.hLinePoint}function G($,te){return t.plainText($||"",{len:te,allowedTags:["br","sub","sup","b","i","em"]})}function J($,te,ae){var ce=te[$+"a"],ue=te[$+"Val"],de=te.cd[0];if(ce.type==="category"||ce.type==="multicategory")ue=ce._categoriesMap[ue];else if(ce.type==="date"){var me=te.trace[$+"periodalignment"];if(me){var be=te.cd[te.index],_e=be[$+"Start"];_e===void 0&&(_e=be[$]);var we=be[$+"End"];we===void 0&&(we=be[$]);var Ce=we-_e;me==="end"?ue+=Ce:me==="middle"&&(ue+=Ce/2)}ue=ce.d2c(ue)}return de&&de.t&&de.t.posLetter===ce._id&&(ae.boxmode!=="group"&&ae.violinmode!=="group"||(ue+=de.t.dPos)),ue}function se($){return $.offsetTop+$.clientTop}function re($){return $.offsetLeft+$.clientLeft}function ne($,te){var ae=$._fullLayout,ce=te.getBoundingClientRect(),ue=ce.left,de=ce.top,me=ue+ce.width,be=de+ce.height,_e=w.apply3DTransform(ae._invTransform)(ue,de),we=w.apply3DTransform(ae._invTransform)(me,be),Ce=_e[0],Se=_e[1],Pe=we[0],Ne=we[1];return{x:Ce,y:Se,width:Pe-Ce,height:Ne-Se,top:Math.min(Se,Ne),left:Math.min(Ce,Pe),right:Math.max(Ce,Pe),bottom:Math.max(Se,Ne)}}},16132:function(L,T,e){var k=e(3400),v=e(76308),n=e(10624).isUnifiedHover;L.exports=function(w,b,c,a){a=a||{};var t=b.legend;function o(i){a.font[i]||(a.font[i]=t?b.legend.font[i]:b.font[i])}b&&n(b.hovermode)&&(a.font||(a.font={}),o("size"),o("family"),o("color"),t?(a.bgcolor||(a.bgcolor=v.combine(b.legend.bgcolor,b.paper_bgcolor)),a.bordercolor||(a.bordercolor=b.legend.bordercolor)):a.bgcolor||(a.bgcolor=b.paper_bgcolor)),c("hoverlabel.bgcolor",a.bgcolor),c("hoverlabel.bordercolor",a.bordercolor),c("hoverlabel.namelength",a.namelength),k.coerceFont(c,"hoverlabel.font",a.font),c("hoverlabel.align",a.align)}},41008:function(L,T,e){var k=e(3400),v=e(65460);L.exports=function(n,w){function b(c,a){return w[c]!==void 0?w[c]:k.coerce(n,w,v,c,a)}return b("clickmode"),b("hovermode")}},93024:function(L,T,e){var k=e(33428),v=e(3400),n=e(86476),w=e(10624),b=e(65460),c=e(83292);L.exports={moduleType:"component",name:"fx",constants:e(92456),schema:{layout:b},attributes:e(55756),layoutAttributes:b,supplyLayoutGlobalDefaults:e(81976),supplyDefaults:e(95448),supplyLayoutDefaults:e(88336),calc:e(55056),getDistanceFunction:w.getDistanceFunction,getClosest:w.getClosest,inbox:w.inbox,quadrature:w.quadrature,appendArrayPointValue:w.appendArrayPointValue,castHoverOption:function(a,t,o){return v.castOption(a,t,"hoverlabel."+o)},castHoverinfo:function(a,t,o){return v.castOption(a,o,"hoverinfo",function(i){return v.coerceHoverinfo({hoverinfo:i},{_module:a._module},t)})},hover:c.hover,unhover:n.unhover,loneHover:c.loneHover,loneUnhover:function(a){var t=v.isD3Selection(a)?a:k.select(a);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()},click:e(62376)}},65460:function(L,T,e){var k=e(92456),v=e(25376),n=v({editType:"none"});n.family.dflt=k.HOVERFONT,n.size.dflt=k.HOVERFONTSIZE,L.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"},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:v({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"}}},88336:function(L,T,e){var k=e(3400),v=e(65460),n=e(41008),w=e(16132);L.exports=function(b,c){function a(s,l){return k.coerce(b,c,v,s,l)}n(b,c)&&(a("hoverdistance"),a("spikedistance")),a("dragmode")==="select"&&a("selectdirection");var t=c._has("mapbox"),o=c._has("geo"),i=c._basePlotModules.length;c.dragmode==="zoom"&&((t||o)&&i===1||t&&o&&i===2)&&(c.dragmode="pan"),w(b,c,a),k.coerceFont(a,"hoverlabel.grouptitlefont",c.hoverlabel.font)}},81976:function(L,T,e){var k=e(3400),v=e(16132),n=e(65460);L.exports=function(w,b){v(w,b,function(c,a){return k.coerce(w,b,n,c,a)})}},12704:function(L,T,e){var k=e(3400),v=e(53756).counter,n=e(86968).u,w=e(33816).idRegex,b=e(31780),c={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:[v("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[w.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[w.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 a(i,s,l){var u=s[l+"axes"],d=Object.keys((i._splomAxes||{})[l]||{});return Array.isArray(u)?u:d.length?d:void 0}function t(i,s,l,u,d,g){var f=s(i+"gap",l),C=s("domain."+i);s(i+"side",u);for(var y=new Array(d),m=C[0],x=(C[1]-m)/(d-f),_=x*(1-f),S=0;S<d;S++){var O=m+x*S;y[g?d-1-S:S]=[O,O+_]}return y}function o(i,s,l,u,d){var g,f=new Array(l);function C(y,m){s.indexOf(m)!==-1&&u[m]===void 0?(f[y]=m,u[m]=y):f[y]=""}if(Array.isArray(i))for(g=0;g<l;g++)C(g,i[g]);else for(C(0,d),g=1;g<l;g++)C(g,d+(g+1));return f}L.exports={moduleType:"component",name:"grid",schema:{layout:{grid:c}},layoutAttributes:c,sizeDefaults:function(i,s){var l=i.grid||{},u=a(s,l,"x"),d=a(s,l,"y");if(i.grid||u||d){var g,f,C=Array.isArray(l.subplots)&&Array.isArray(l.subplots[0]),y=Array.isArray(u),m=Array.isArray(d),x=y&&u!==l.xaxes&&m&&d!==l.yaxes;C?(g=l.subplots.length,f=l.subplots[0].length):(m&&(g=d.length),y&&(f=u.length));var _=b.newContainer(s,"grid"),S=A("rows",g),O=A("columns",f);if(S*O>1){C||y||m||A("pattern")==="independent"&&(C=!0),_._hasSubplotGrid=C;var h,M,N=A("roworder")==="top to bottom",P=C?.2:.1,R=C?.3:.1;x&&s._splomGridDflt&&(h=s._splomGridDflt.xside,M=s._splomGridDflt.yside),_._domains={x:t("x",A,P,h,O),y:t("y",A,R,M,S,N)}}else delete s.grid}function A(q,j){return k.coerce(l,_,c,q,j)}},contentDefaults:function(i,s){var l=s.grid;if(l&&l._domains){var u,d,g,f,C,y,m,x=i.grid||{},_=s._subplots,S=l._hasSubplotGrid,O=l.rows,h=l.columns,M=l.pattern==="independent",N=l._axisMap={};if(S){var P=x.subplots||[];y=l.subplots=new Array(O);var R=1;for(u=0;u<O;u++){var A=y[u]=new Array(h),q=P[u]||[];for(d=0;d<h;d++)if(M?(C=R===1?"xy":"x"+R+"y"+R,R++):C=q[d],A[d]="",_.cartesian.indexOf(C)!==-1){if(m=C.indexOf("y"),g=C.slice(0,m),f=C.slice(m),N[g]!==void 0&&N[g]!==d||N[f]!==void 0&&N[f]!==u)continue;A[d]=C,N[g]=d,N[f]=u}}}else{var j=a(s,x,"x"),X=a(s,x,"y");l.xaxes=o(j,_.xaxis,h,N,"x"),l.yaxes=o(X,_.yaxis,O,N,"y")}var F=l._anchors={},W=l.roworder==="top to bottom";for(var Y in N){var B,G,J,se=Y.charAt(0),re=l[se+"side"];if(re.length<8)F[Y]="free";else if(se==="x"){if(re.charAt(0)==="t"===W?(B=0,G=1,J=O):(B=O-1,G=-1,J=-1),S){var ne=N[Y];for(u=B;u!==J;u+=G)if((C=y[u][ne])&&(m=C.indexOf("y"),C.slice(0,m)===Y)){F[Y]=C.slice(m);break}}else for(u=B;u!==J;u+=G)if(f=l.yaxes[u],_.cartesian.indexOf(Y+f)!==-1){F[Y]=f;break}}else if(re.charAt(0)==="l"?(B=0,G=1,J=h):(B=h-1,G=-1,J=-1),S){var $=N[Y];for(u=B;u!==J;u+=G)if((C=y[$][u])&&(m=C.indexOf("y"),C.slice(m)===Y)){F[Y]=C.slice(0,m);break}}else for(u=B;u!==J;u+=G)if(g=l.xaxes[u],_.cartesian.indexOf(g+Y)!==-1){F[Y]=g;break}}}}}},65760:function(L,T,e){var k=e(33816),v=e(31780).templatedArray;e(36208),L.exports=v("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",k.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",k.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})},63556:function(L,T,e){var k=e(38248),v=e(36896);L.exports=function(n,w,b,c){w=w||{};var a=b==="log"&&w.type==="linear",t=b==="linear"&&w.type==="log";if(a||t){for(var o,i,s=n._fullLayout.images,l=w._id.charAt(0),u=0;u<s.length;u++)if(i="images["+u+"].",(o=s[u])[l+"ref"]===w._id){var d=o[l],g=o["size"+l],f=null,C=null;if(a){f=v(d,w.range);var y=g/Math.pow(10,f)/2;C=2*Math.log(y+Math.sqrt(1+y*y))/Math.LN10}else C=(f=Math.pow(10,d))*(Math.pow(10,g/2)-Math.pow(10,-g/2));k(f)?k(C)||(C=null):(f=null,C=null),c(i+l,f),c(i+"size"+l,C)}}}},25024:function(L,T,e){var k=e(3400),v=e(54460),n=e(51272),w=e(65760);function b(c,a,t){function o(f,C){return k.coerce(c,a,w,f,C)}var i=o("source");if(!o("visible",!!i))return a;o("layer"),o("xanchor"),o("yanchor"),o("sizex"),o("sizey"),o("sizing"),o("opacity");for(var s={_fullLayout:t},l=["x","y"],u=0;u<2;u++){var d=l[u],g=v.coerceRef(c,a,s,d,"paper",void 0);g!=="paper"&&v.getFromId(s,g)._imgIndices.push(a._index),v.coercePosition(a,s,o,g,d,0)}return a}L.exports=function(c,a){n(c,a,{name:"images",handleItemDefaults:b})}},60963:function(L,T,e){var k=e(33428),v=e(43616),n=e(54460),w=e(79811),b=e(9616);L.exports=function(c){var a,t,o=c._fullLayout,i=[],s={},l=[];for(t=0;t<o.images.length;t++){var u=o.images[t];if(u.visible)if(u.layer==="below"&&u.xref!=="paper"&&u.yref!=="paper"){a=w.ref2id(u.xref)+w.ref2id(u.yref);var d=o._plots[a];if(!d){l.push(u);continue}d.mainplot&&(a=d.mainplot.id),s[a]||(s[a]=[]),s[a].push(u)}else u.layer==="above"?i.push(u):l.push(u)}var g={left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-.5},right:{sizing:"xMax",offset:-1}},f={top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-.5},bottom:{sizing:"YMax",offset:-1}};function C(h){var M=k.select(this);if(this._imgSrc!==h.source)if(M.attr("xmlns",b.svg),h.source&&h.source.slice(0,5)==="data:")M.attr("xlink:href",h.source),this._imgSrc=h.source;else{var N=new Promise((function(P){var R=new Image;function A(){M.remove(),P()}this.img=R,R.setAttribute("crossOrigin","anonymous"),R.onerror=A,R.onload=function(){var q=document.createElement("canvas");q.width=this.width,q.height=this.height,q.getContext("2d",{willReadFrequently:!0}).drawImage(this,0,0);var j=q.toDataURL("image/png");M.attr("xlink:href",j),P()},M.on("error",A),R.src=h.source,this._imgSrc=h.source}).bind(this));c._promises.push(N)}}function y(h){var M,N,P=k.select(this),R=n.getFromId(c,h.xref),A=n.getFromId(c,h.yref),q=n.getRefType(h.xref)==="domain",j=n.getRefType(h.yref)==="domain",X=o._size;M=R!==void 0?typeof h.xref=="string"&&q?R._length*h.sizex:Math.abs(R.l2p(h.sizex)-R.l2p(0)):h.sizex*X.w,N=A!==void 0?typeof h.yref=="string"&&j?A._length*h.sizey:Math.abs(A.l2p(h.sizey)-A.l2p(0)):h.sizey*X.h;var F,W,Y=M*g[h.xanchor].offset,B=N*f[h.yanchor].offset,G=g[h.xanchor].sizing+f[h.yanchor].sizing;switch(F=R!==void 0?typeof h.xref=="string"&&q?R._length*h.x+R._offset:R.r2p(h.x)+R._offset:h.x*X.w+X.l,F+=Y,W=A!==void 0?typeof h.yref=="string"&&j?A._length*(1-h.y)+A._offset:A.r2p(h.y)+A._offset:X.h-h.y*X.h+X.t,W+=B,h.sizing){case"fill":G+=" slice";break;case"stretch":G="none"}P.attr({x:F,y:W,width:M,height:N,preserveAspectRatio:G,opacity:h.opacity});var J=(R&&n.getRefType(h.xref)!=="domain"?R._id:"")+(A&&n.getRefType(h.yref)!=="domain"?A._id:"");v.setClipUrl(P,J?"clip"+o._uid+J:null,c)}var m=o._imageLowerLayer.selectAll("image").data(l),x=o._imageUpperLayer.selectAll("image").data(i);m.enter().append("image"),x.enter().append("image"),m.exit().remove(),x.exit().remove(),m.each(function(h){C.bind(this)(h),y.bind(this)(h)}),x.each(function(h){C.bind(this)(h),y.bind(this)(h)});var _=Object.keys(o._plots);for(t=0;t<_.length;t++){a=_[t];var S=o._plots[a];if(S.imagelayer){var O=S.imagelayer.selectAll("image").data(s[a]||[]);O.enter().append("image"),O.exit().remove(),O.each(function(h){C.bind(this)(h),y.bind(this)(h)})}}}},7402:function(L,T,e){L.exports={moduleType:"component",name:"images",layoutAttributes:e(65760),supplyLayoutDefaults:e(25024),includeBasePlot:e(36632)("images"),draw:e(60963),convertCoords:e(63556)}},3800:function(L,T,e){var k=e(25376),v=e(22548);L.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:v.defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:k({editType:"legend"}),grouptitlefont:k({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"},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:k({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}},65196:function(L){L.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},77864:function(L,T,e){var k=e(24040),v=e(3400),n=e(31780),w=e(45464),b=e(3800),c=e(64859),a=e(42451);function t(o,i,s,l){var u=i[o]||{},d=n.newContainer(s,o);function g(G,J){return v.coerce(u,d,b,G,J)}var f=v.coerceFont(g,"font",s.font);if(g("bgcolor",s.paper_bgcolor),g("bordercolor"),g("visible")){for(var C,y=function(G,J){var se=C._input,re=C;return v.coerce(se,re,w,G,J)},m=s.font||{},x=v.coerceFont(g,"grouptitlefont",v.extendFlat({},m,{size:Math.round(1.1*m.size)})),_=0,S=!1,O="normal",h=(s.shapes||[]).filter(function(G){return G.showlegend}),M=l.concat(h).filter(function(G){return o===(G.legend||"legend")}),N=0;N<M.length;N++)if((C=M[N]).visible){var P=C._isShape;(C.showlegend||C._dfltShowLegend&&!(C._module&&C._module.attributes&&C._module.attributes.showlegend&&C._module.attributes.showlegend.dflt===!1))&&(_++,C.showlegend&&(S=!0,(!P&&k.traceIs(C,"pie-like")||C._input.showlegend===!0)&&_++),v.coerceFont(y,"legendgrouptitle.font",x)),(!P&&k.traceIs(C,"bar")&&s.barmode==="stack"||["tonextx","tonexty"].indexOf(C.fill)!==-1)&&(O=a.isGrouped({traceorder:O})?"grouped+reversed":"reversed"),C.legendgroup!==void 0&&C.legendgroup!==""&&(O=a.isReversed({traceorder:O})?"reversed+grouped":"grouped")}var R=v.coerce(i,s,c,"showlegend",S&&_>(o==="legend"?1:0));if(R===!1&&(s[o]=void 0),(R!==!1||u.uirevision)&&(g("uirevision",s.uirevision),R!==!1)){g("borderwidth");var A,q,j,X=g("orientation")==="h",F=g("yref")==="paper",W=g("xref")==="paper",Y="left";if(X?(A=0,k.getComponentMethod("rangeslider","isVisible")(i.xaxis)?F?(q=1.1,j="bottom"):(q=1,j="top"):F?(q=-.1,j="top"):(q=0,j="bottom")):(q=1,j="auto",W?A=1.02:(A=1,Y="right")),v.coerce(u,d,{x:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:A}},"x"),v.coerce(u,d,{y:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:q}},"y"),g("traceorder",O),a.isGrouped(s[o])&&g("tracegroupgap"),g("entrywidth"),g("entrywidthmode"),g("itemsizing"),g("itemwidth"),g("itemclick"),g("itemdoubleclick"),g("groupclick"),g("xanchor",Y),g("yanchor",j),g("valign"),v.noneOrAll(u,d,["x","y"]),g("title.text")){g("title.side",X?"left":"top");var B=v.extendFlat({},f,{size:v.bigFont(f.size)});v.coerceFont(g,"title.font",B)}}}}L.exports=function(o,i,s){var l,u=s.slice(),d=i.shapes;if(d)for(l=0;l<d.length;l++){var g=d[l];if(g.showlegend){var f={_input:g._input,visible:g.visible,showlegend:g.showlegend,legend:g.legend};u.push(f)}}var C=["legend"];for(l=0;l<u.length;l++)v.pushUnique(C,u[l].legend);for(i._legends=[],l=0;l<C.length;l++){var y=C[l];t(y,o,i,u),i[y]&&i[y].visible&&(i[y]._id=y),i._legends.push(y)}}},31140:function(L,T,e){var k=e(33428),v=e(3400),n=e(7316),w=e(24040),b=e(95924),c=e(86476),a=e(43616),t=e(76308),o=e(72736),i=e(33048),s=e(65196),l=e(84284),u=l.LINE_SPACING,d=l.FROM_TL,g=l.FROM_BR,f=e(35456),C=e(2012),y=e(42451),m=1,x=/^legend[0-9]*$/;function _(j,X){var F,W,Y=X||{},B=j._fullLayout,G=q(Y),J=Y._inHover;if(J?(W=Y.layer,F="hover"):(W=B._infolayer,F=G),W){var se;if(F+=B._uid,j._legendMouseDownTime||(j._legendMouseDownTime=0),J){if(!Y.entries)return;se=f(Y.entries,Y)}else{for(var re=(j.calcdata||[]).slice(),ne=B.shapes,$=0;$<ne.length;$++){var te=ne[$];if(te.showlegend){var ae={_isShape:!0,_fullInput:te,index:te._index,name:te.name||te.label.text||"shape "+te._index,legend:te.legend,legendgroup:te.legendgroup,legendgrouptitle:te.legendgrouptitle,legendrank:te.legendrank,legendwidth:te.legendwidth,showlegend:te.showlegend,visible:te.visible,opacity:te.opacity,mode:te.type==="line"?"lines":"markers",line:te.line,marker:{line:te.line,color:te.fillcolor,size:12,symbol:te.type==="rect"?"square":te.type==="circle"?"circle":"hexagon2"}};re.push([{trace:ae}])}}se=B.showlegend&&f(re,Y,B._legends.length>1)}var ce=B.hiddenlabels||[];if(!(J||B.showlegend&&se.length))return W.selectAll("."+G).remove(),B._topdefs.select("#"+F).remove(),n.autoMargin(j,G);var ue=v.ensureSingle(W,"g",G,function(Ne){J||Ne.attr("pointer-events","all")}),de=v.ensureSingleById(B._topdefs,"clipPath",F,function(Ne){Ne.append("rect")}),me=v.ensureSingle(ue,"rect","bg",function(Ne){Ne.attr("shape-rendering","crispEdges")});me.call(t.stroke,Y.bordercolor).call(t.fill,Y.bgcolor).style("stroke-width",Y.borderwidth+"px");var be,_e=v.ensureSingle(ue,"g","scrollbox"),we=Y.title;Y._titleWidth=0,Y._titleHeight=0,we.text?((be=v.ensureSingle(_e,"text",G+"titletext")).attr("text-anchor","start").call(a.font,we.font).text(we.text),P(be,_e,j,Y,m)):_e.selectAll("."+G+"titletext").remove();var Ce=v.ensureSingle(ue,"rect","scrollbar",function(Ne){Ne.attr(s.scrollBarEnterAttrs).call(t.fill,s.scrollBarColor)}),Se=_e.selectAll("g.groups").data(se);Se.enter().append("g").attr("class","groups"),Se.exit().remove();var Pe=Se.selectAll("g.traces").data(v.identity);Pe.enter().append("g").attr("class","traces"),Pe.exit().remove(),Pe.style("opacity",function(Ne){var Oe=Ne[0].trace;return w.traceIs(Oe,"pie-like")?ce.indexOf(Ne[0].label)!==-1?.5:1:Oe.visible==="legendonly"?.5:1}).each(function(){k.select(this).call(h,j,Y)}).call(C,j,Y).each(function(){J||k.select(this).call(N,j,G)}),v.syncOrAsync([n.previousPromises,function(){return function(Ne,Oe,pe,fe){var xe=Ne._fullLayout,ze=q(fe);fe||(fe=xe[ze]);var Le=xe._size,Ue=y.isVertical(fe),Re=y.isGrouped(fe),Fe=fe.entrywidthmode==="fraction",ve=fe.borderwidth,ke=2*ve,Ee=s.itemGap,je=fe.itemwidth+2*Ee,Be=2*(ve+Ee),Ie=A(fe),Ze=fe.y<0||fe.y===0&&Ie==="top",He=fe.y>1||fe.y===1&&Ie==="bottom",at=fe.tracegroupgap,ft={};fe._maxHeight=Math.max(Ze||He?xe.height/2:Le.h,30);var ut=0;fe._width=0,fe._height=0;var _t=function(wt){var St=0,vt=0,Pt=wt.title.side;return Pt&&(Pt.indexOf("left")!==-1&&(St=wt._titleWidth),Pt.indexOf("top")!==-1&&(vt=wt._titleHeight)),[St,vt]}(fe);if(Ue)pe.each(function(wt){var St=wt[0].height;a.setTranslate(this,ve+_t[0],ve+_t[1]+fe._height+St/2+Ee),fe._height+=St,fe._width=Math.max(fe._width,wt[0].width)}),ut=je+fe._width,fe._width+=Ee+je+ke,fe._height+=Be,Re&&(Oe.each(function(wt,St){a.setTranslate(this,0,St*fe.tracegroupgap)}),fe._height+=(fe._lgroupsLength-1)*fe.tracegroupgap);else{var Nt=R(fe),Tt=fe.x<0||fe.x===0&&Nt==="right",st=fe.x>1||fe.x===1&&Nt==="left",lt=He||Ze,Vt=xe.width/2;fe._maxWidth=Math.max(Tt?lt&&Nt==="left"?Le.l+Le.w:Vt:st?lt&&Nt==="right"?Le.r+Le.w:Vt:Le.w,2*je);var jt=0,Kt=0;pe.each(function(wt){var St=S(wt,fe,je);jt=Math.max(jt,St),Kt+=St}),ut=null;var It=0;if(Re){var $e=0,tt=0,Xe=0;Oe.each(function(){var wt=0,St=0;k.select(this).selectAll("g.traces").each(function(Pt){var Lt=S(Pt,fe,je),Ct=Pt[0].height;a.setTranslate(this,_t[0],_t[1]+ve+Ee+Ct/2+St),St+=Ct,wt=Math.max(wt,Lt),ft[Pt[0].trace.legendgroup]=wt});var vt=wt+Ee;tt>0&&vt+ve+tt>fe._maxWidth?(It=Math.max(It,tt),tt=0,Xe+=$e+at,$e=St):$e=Math.max($e,St),a.setTranslate(this,tt,Xe),tt+=vt}),fe._width=Math.max(It,tt)+ve,fe._height=Xe+$e+Be}else{var et=pe.size(),ht=Kt+ke+(et-1)*Ee<fe._maxWidth,dt=0,De=0,Ge=0,pt=0;pe.each(function(wt){var St=wt[0].height,vt=S(wt,fe,je),Pt=ht?vt:jt;Fe||(Pt+=Ee),Pt+ve+De-Ee>=fe._maxWidth&&(It=Math.max(It,pt),De=0,Ge+=dt,fe._height+=dt,dt=0),a.setTranslate(this,_t[0]+ve+De,_t[1]+ve+Ge+St/2+Ee),pt=De+vt+Ee,De+=Pt,dt=Math.max(dt,St)}),ht?(fe._width=De+ke,fe._height=dt+Be):(fe._width=Math.max(It,pt)+ke,fe._height+=dt+Be)}}fe._width=Math.ceil(Math.max(fe._width+_t[0],fe._titleWidth+2*(ve+s.titlePad))),fe._height=Math.ceil(Math.max(fe._height+_t[1],fe._titleHeight+2*(ve+s.itemGap))),fe._effHeight=Math.min(fe._height,fe._maxHeight);var nt=Ne._context.edits,bt=nt.legendText||nt.legendPosition;pe.each(function(wt){var St=k.select(this).select("."+ze+"toggle"),vt=wt[0].height,Pt=wt[0].trace.legendgroup,Lt=S(wt,fe,je);Re&&Pt!==""&&(Lt=ft[Pt]);var Ct=bt?je:ut||Lt;Ue||Fe||(Ct+=Ee/2),a.setRect(St,0,-vt/2,Ct,vt)})}(j,Se,Pe,Y)},function(){var Ne,Oe,pe,fe,xe=B._size,ze=Y.borderwidth,Le=Y.xref==="paper",Ue=Y.yref==="paper";if(we.text&&function(lt,Vt,jt){if(Vt.title.side==="top center"||Vt.title.side==="top right"){var Kt=Vt.title.font.size*u,It=0,$e=lt.node(),tt=a.bBox($e).width;Vt.title.side==="top center"?It=.5*(Vt._width-2*jt-2*s.titlePad-tt):Vt.title.side==="top right"&&(It=Vt._width-2*jt-2*s.titlePad-tt),o.positionText(lt,jt+s.titlePad+It,jt+Kt)}}(be,Y,ze),!J){var Re,Fe;Re=Le?xe.l+xe.w*Y.x-d[R(Y)]*Y._width:B.width*Y.x-d[R(Y)]*Y._width,Fe=Ue?xe.t+xe.h*(1-Y.y)-d[A(Y)]*Y._effHeight:B.height*(1-Y.y)-d[A(Y)]*Y._effHeight;var ve=function(lt,Vt,jt,Kt){var It=lt._fullLayout,$e=It[Vt],tt=R($e),Xe=A($e),et=$e.xref==="paper",ht=$e.yref==="paper";lt._fullLayout._reservedMargin[Vt]={};var dt=$e.y<.5?"b":"t",De=$e.x<.5?"l":"r",Ge={r:It.width-jt,l:jt+$e._width,b:It.height-Kt,t:Kt+$e._effHeight};if(et&&ht)return n.autoMargin(lt,Vt,{x:$e.x,y:$e.y,l:$e._width*d[tt],r:$e._width*g[tt],b:$e._effHeight*g[Xe],t:$e._effHeight*d[Xe]});et?lt._fullLayout._reservedMargin[Vt][dt]=Ge[dt]:ht||$e.orientation==="v"?lt._fullLayout._reservedMargin[Vt][De]=Ge[De]:lt._fullLayout._reservedMargin[Vt][dt]=Ge[dt]}(j,G,Re,Fe);if(ve)return;if(B.margin.autoexpand){var ke=Re,Ee=Fe;Re=Le?v.constrain(Re,0,B.width-Y._width):ke,Fe=Ue?v.constrain(Fe,0,B.height-Y._effHeight):Ee,Re!==ke&&v.log("Constrain "+G+".x to make legend fit inside graph"),Fe!==Ee&&v.log("Constrain "+G+".y to make legend fit inside graph")}a.setTranslate(ue,Re,Fe)}if(Ce.on(".drag",null),ue.on("wheel",null),J||Y._height<=Y._maxHeight||j._context.staticPlot){var je=Y._effHeight;J&&(je=Y._height),me.attr({width:Y._width-ze,height:je-ze,x:ze/2,y:ze/2}),a.setTranslate(_e,0,0),de.select("rect").attr({width:Y._width-2*ze,height:je-2*ze,x:ze,y:ze}),a.setClipUrl(_e,F,j),a.setRect(Ce,0,0,0,0),delete Y._scrollY}else{var Be,Ie,Ze,He=Math.max(s.scrollBarMinHeight,Y._effHeight*Y._effHeight/Y._height),at=Y._effHeight-He-2*s.scrollBarMargin,ft=Y._height-Y._effHeight,ut=at/ft,_t=Math.min(Y._scrollY||0,ft);me.attr({width:Y._width-2*ze+s.scrollBarWidth+s.scrollBarMargin,height:Y._effHeight-ze,x:ze/2,y:ze/2}),de.select("rect").attr({width:Y._width-2*ze+s.scrollBarWidth+s.scrollBarMargin,height:Y._effHeight-2*ze,x:ze,y:ze+_t}),a.setClipUrl(_e,F,j),st(_t,He,ut),ue.on("wheel",function(){st(_t=v.constrain(Y._scrollY+k.event.deltaY/at*ft,0,ft),He,ut),_t!==0&&_t!==ft&&k.event.preventDefault()});var Nt=k.behavior.drag().on("dragstart",function(){var lt=k.event.sourceEvent;Be=lt.type==="touchstart"?lt.changedTouches[0].clientY:lt.clientY,Ze=_t}).on("drag",function(){var lt=k.event.sourceEvent;lt.buttons===2||lt.ctrlKey||(Ie=lt.type==="touchmove"?lt.changedTouches[0].clientY:lt.clientY,_t=function(Vt,jt,Kt){var It=(Kt-jt)/ut+Vt;return v.constrain(It,0,ft)}(Ze,Be,Ie),st(_t,He,ut))});Ce.call(Nt);var Tt=k.behavior.drag().on("dragstart",function(){var lt=k.event.sourceEvent;lt.type==="touchstart"&&(Be=lt.changedTouches[0].clientY,Ze=_t)}).on("drag",function(){var lt=k.event.sourceEvent;lt.type==="touchmove"&&(Ie=lt.changedTouches[0].clientY,_t=function(Vt,jt,Kt){var It=(jt-Kt)/ut+Vt;return v.constrain(It,0,ft)}(Ze,Be,Ie),st(_t,He,ut))});_e.call(Tt)}function st(lt,Vt,jt){Y._scrollY=j._fullLayout[G]._scrollY=lt,a.setTranslate(_e,0,-lt),a.setRect(Ce,Y._width,s.scrollBarMargin+lt*jt,s.scrollBarWidth,Vt),de.select("rect").attr("y",ze+lt)}j._context.edits.legendPosition&&(ue.classed("cursor-move",!0),c.init({element:ue.node(),gd:j,prepFn:function(){var lt=a.getTranslate(ue);pe=lt.x,fe=lt.y},moveFn:function(lt,Vt){var jt=pe+lt,Kt=fe+Vt;a.setTranslate(ue,jt,Kt),Ne=c.align(jt,Y._width,xe.l,xe.l+xe.w,Y.xanchor),Oe=c.align(Kt+Y._height,-Y._height,xe.t+xe.h,xe.t,Y.yanchor)},doneFn:function(){if(Ne!==void 0&&Oe!==void 0){var lt={};lt[G+".x"]=Ne,lt[G+".y"]=Oe,w.call("_guiRelayout",j,lt)}},clickFn:function(lt,Vt){var jt=W.selectAll("g.traces").filter(function(){var Kt=this.getBoundingClientRect();return Vt.clientX>=Kt.left&&Vt.clientX<=Kt.right&&Vt.clientY>=Kt.top&&Vt.clientY<=Kt.bottom});jt.size()>0&&O(j,ue,jt,lt,Vt)}}))}],j)}}function S(j,X,F){var W=j[0],Y=W.width,B=X.entrywidthmode,G=W.trace.legendwidth||X.entrywidth;return B==="fraction"?X._maxWidth*G:F+(G||Y)}function O(j,X,F,W,Y){var B=F.data()[0][0].trace,G={event:Y,node:F.node(),curveNumber:B.index,expandedIndex:B._expandedIndex,data:j.data,layout:j.layout,frames:j._transitionData._frames,config:j._context,fullData:j._fullData,fullLayout:j._fullLayout};B._group&&(G.group=B._group),w.traceIs(B,"pie-like")&&(G.label=F.datum()[0].label);var J=b.triggerHandler(j,"plotly_legendclick",G);if(W===1){if(J===!1)return;X._clickTimeout=setTimeout(function(){j._fullLayout&&i(F,j,W)},j._context.doubleClickDelay)}else W===2&&(X._clickTimeout&&clearTimeout(X._clickTimeout),j._legendMouseDownTime=0,b.triggerHandler(j,"plotly_legenddoubleclick",G)!==!1&&J!==!1&&i(F,j,W))}function h(j,X,F){var W,Y,B=q(F),G=j.data()[0][0],J=G.trace,se=w.traceIs(J,"pie-like"),re=!F._inHover&&X._context.edits.legendText&&!se,ne=F._maxNameLength;G.groupTitle?(W=G.groupTitle.text,Y=G.groupTitle.font):(Y=F.font,F.entries?W=G.text:(W=se?G.label:J.name,J._meta&&(W=v.templateString(W,J._meta))));var $=v.ensureSingle(j,"text",B+"text");$.attr("text-anchor","start").call(a.font,Y).text(re?M(W,ne):W);var te=F.itemwidth+2*s.itemGap;o.positionText($,te,0),re?$.call(o.makeEditable,{gd:X,text:W}).call(P,j,X,F).on("edit",function(ae){this.text(M(ae,ne)).call(P,j,X,F);var ce=G.trace._fullInput||{},ue={};if(w.hasTransform(ce,"groupby")){var de=w.getTransformIndices(ce,"groupby"),me=de[de.length-1],be=v.keyedContainer(ce,"transforms["+me+"].styles","target","value.name");be.set(G.trace._group,ae),ue=be.constructUpdate()}else ue.name=ae;return ce._isShape?w.call("_guiRelayout",X,"shapes["+J.index+"].name",ue.name):w.call("_guiRestyle",X,ue,J.index)}):P($,j,X,F)}function M(j,X){var F=Math.max(4,X);if(j&&j.trim().length>=F/2)return j;for(var W=F-(j=j||"").length;W>0;W--)j+=" ";return j}function N(j,X,F){var W,Y=X._context.doubleClickDelay,B=1,G=v.ensureSingle(j,"rect",F+"toggle",function(J){X._context.staticPlot||J.style("cursor","pointer").attr("pointer-events","all"),J.call(t.fill,"rgba(0,0,0,0)")});X._context.staticPlot||(G.on("mousedown",function(){(W=new Date().getTime())-X._legendMouseDownTime<Y?B+=1:(B=1,X._legendMouseDownTime=W)}),G.on("mouseup",function(){if(!X._dragged&&!X._editing){var J=X._fullLayout[F];new Date().getTime()-X._legendMouseDownTime>Y&&(B=Math.max(B-1,1)),O(X,J,j,B,k.event)}}))}function P(j,X,F,W,Y){W._inHover&&j.attr("data-notex",!0),o.convertToTspans(j,F,function(){(function(B,G,J,se){var re=B.data()[0][0];if(J._inHover||!re||re.trace.showlegend){var ne=B.select("g[class*=math-group]"),$=ne.node(),te=q(J);J||(J=G._fullLayout[te]);var ae,ce,ue=J.borderwidth,de=(se===m?J.title.font:re.groupTitle?re.groupTitle.font:J.font).size*u;if($){var me=a.bBox($);ae=me.height,ce=me.width,se===m?a.setTranslate(ne,ue,ue+.75*ae):a.setTranslate(ne,0,.25*ae)}else{var be="."+te+(se===m?"title":"")+"text",_e=B.select(be),we=o.lineCount(_e),Ce=_e.node();if(ae=de*we,ce=Ce?a.bBox(Ce).width:0,se===m)J.title.side==="left"&&(ce+=2*s.itemGap),o.positionText(_e,ue+s.titlePad,ue+de);else{var Se=2*s.itemGap+J.itemwidth;re.groupTitle&&(Se=s.itemGap,ce-=J.itemwidth),o.positionText(_e,Se,-de*((we-1)/2-.3))}}se===m?(J._titleWidth=ce,J._titleHeight=ae):(re.lineHeight=de,re.height=Math.max(ae,16)+3,re.width=ce)}else B.remove()})(X,F,W,Y)})}function R(j){return v.isRightAnchor(j)?"right":v.isCenterAnchor(j)?"center":"left"}function A(j){return v.isBottomAnchor(j)?"bottom":v.isMiddleAnchor(j)?"middle":"top"}function q(j){return j._id||"legend"}L.exports=function(j,X){if(X)_(j,X);else{var F=j._fullLayout,W=F._legends;F._infolayer.selectAll('[class^="legend"]').each(function(){var G=k.select(this),J=G.attr("class").split(" ")[0];J.match(x)&&W.indexOf(J)===-1&&G.remove()});for(var Y=0;Y<W.length;Y++){var B=W[Y];_(j,j._fullLayout[B])}}}},35456:function(L,T,e){var k=e(24040),v=e(42451);L.exports=function(n,w,b){var c,a,t=w._inHover,o=v.isGrouped(w),i=v.isReversed(w),s={},l=[],u=!1,d={},g=0,f=0;function C(W,Y,B){if(w.visible!==!1&&(!b||W===w._id))if(Y!==""&&v.isGrouped(w))l.indexOf(Y)===-1?(l.push(Y),u=!0,s[Y]=[B]):s[Y].push(B);else{var G="~~i"+g;l.push(G),s[G]=[B],g++}}for(c=0;c<n.length;c++){var y=n[c],m=y[0],x=m.trace,_=x.legend,S=x.legendgroup;if(t||x.visible&&x.showlegend)if(k.traceIs(x,"pie-like"))for(d[S]||(d[S]={}),a=0;a<y.length;a++){var O=y[a].label;d[S][O]||(C(_,S,{label:O,color:y[a].color,i:y[a].i,trace:x,pts:y[a].pts}),d[S][O]=!0,f=Math.max(f,(O||"").length))}else C(_,S,m),f=Math.max(f,(x.name||"").length)}if(!l.length)return[];var h=!u||!o,M=[];for(c=0;c<l.length;c++){var N=s[l[c]];h?M.push(N[0]):M.push(N)}for(h&&(M=[M]),c=0;c<M.length;c++){var P=1/0;for(a=0;a<M[c].length;a++){var R=M[c][a].trace.legendrank;P>R&&(P=R)}M[c][0]._groupMinRank=P,M[c][0]._preGroupSort=c}var A=function(W,Y){return W.trace.legendrank-Y.trace.legendrank||W._preSort-Y._preSort};for(M.forEach(function(W,Y){W[0]._preGroupSort=Y}),M.sort(function(W,Y){return W[0]._groupMinRank-Y[0]._groupMinRank||W[0]._preGroupSort-Y[0]._preGroupSort}),c=0;c<M.length;c++){M[c].forEach(function(W,Y){W._preSort=Y}),M[c].sort(A);var q=M[c][0].trace,j=null;for(a=0;a<M[c].length;a++){var X=M[c][a].trace.legendgrouptitle;if(X&&X.text){j=X,t&&(X.font=w._groupTitleFont);break}}if(i&&M[c].reverse(),j){var F=!1;for(a=0;a<M[c].length;a++)if(k.traceIs(M[c][a].trace,"pie-like")){F=!0;break}M[c].unshift({i:-1,groupTitle:j,noClick:F,trace:{showlegend:q.showlegend,legendgroup:q.legendgroup,visible:w.groupclick==="toggleitem"||q.visible}})}for(a=0;a<M[c].length;a++)M[c][a]=[M[c][a]]}return w._lgroupsLength=M.length,w._maxNameLength=f,M}},33048:function(L,T,e){var k=e(24040),v=e(3400),n=v.pushUnique,w=!0;L.exports=function(b,c,a){var t=c._fullLayout;if(!c._dragged&&!c._editing){var o,i=t.legend.itemclick,s=t.legend.itemdoubleclick,l=t.legend.groupclick;if(a===1&&i==="toggle"&&s==="toggleothers"&&w&&c.data&&c._context.showTips&&v.notifier(v._(c,"Double-click on legend to isolate one trace"),"long"),w=!1,a===1?o=i:a===2&&(o=s),o){var u=l==="togglegroup",d=t.hiddenlabels?t.hiddenlabels.slice():[],g=b.data()[0][0];if(!g.groupTitle||!g.noClick){var f=c._fullData,C=(t.shapes||[]).filter(function(Oe){return Oe.showlegend}),y=f.concat(C),m=g.trace;m._isShape&&(m=m._fullInput);var x,_,S,O,h,M=m.legendgroup,N={},P=[],R=[],A=[],q=(t.shapes||[]).map(function(Oe){return Oe._input}),j=!1,X=m.legend,F=m._fullInput;if(F&&F._isShape||!k.traceIs(m,"pie-like")){var W,Y=M&&M.length,B=[];if(Y)for(x=0;x<y.length;x++)(W=y[x]).visible&&W.legendgroup===M&&B.push(x);if(o==="toggle"){var G;switch(m.visible){case!0:G="legendonly";break;case!1:G=!1;break;case"legendonly":G=!0}if(Y)if(u)for(x=0;x<y.length;x++){var J=y[x];J.visible!==!1&&J.legendgroup===M&&Ne(J,G)}else Ne(m,G);else Ne(m,G)}else if(o==="toggleothers"){var se,re,ne,$,te=!0;for(x=0;x<y.length;x++)if(se=($=y[x])===m,re=$.showlegend!==!0,!(se||re||Y&&$.legendgroup===M||$.legend!==X||$.visible!==!0||k.traceIs($,"notLegendIsolatable"))){te=!1;break}for(x=0;x<y.length;x++)if(($=y[x]).visible!==!1&&$.legend===X&&!k.traceIs($,"notLegendIsolatable"))switch(m.visible){case"legendonly":Ne($,!0);break;case!0:ne=!!te||"legendonly",se=$===m,re=$.showlegend!==!0&&!$.legendgroup,Ne($,!!(se||Y&&$.legendgroup===M||re)||ne)}}for(x=0;x<R.length;x++)if(S=R[x]){var ae=S.constructUpdate(),ce=Object.keys(ae);for(_=0;_<ce.length;_++)O=ce[_],(N[O]=N[O]||[])[A[x]]=ae[O]}for(h=Object.keys(N),x=0;x<h.length;x++)for(O=h[x],_=0;_<P.length;_++)N[O].hasOwnProperty(_)||(N[O][_]=void 0);j?k.call("_guiUpdate",c,N,{shapes:q},P):k.call("_guiRestyle",c,N,P)}else{var ue=g.label,de=d.indexOf(ue);if(o==="toggle")de===-1?d.push(ue):d.splice(de,1);else if(o==="toggleothers"){var me=de!==-1,be=[];for(x=0;x<c.calcdata.length;x++){var _e=c.calcdata[x];for(_=0;_<_e.length;_++){var we=_e[_].label;X===_e[0].trace.legend&&ue!==we&&(d.indexOf(we)===-1&&(me=!0),n(d,we),be.push(we))}}if(!me)for(var Ce=0;Ce<be.length;Ce++){var Se=d.indexOf(be[Ce]);Se!==-1&&d.splice(Se,1)}}k.call("_guiRelayout",c,"hiddenlabels",d)}}}}function Pe(Oe,pe){var fe=P.indexOf(Oe),xe=N.visible;return xe||(xe=N.visible=[]),P.indexOf(Oe)===-1&&(P.push(Oe),fe=P.length-1),xe[fe]=pe,fe}function Ne(Oe,pe){if(!g.groupTitle||u){var fe,xe=Oe._fullInput||Oe,ze=xe._isShape,Le=xe.index;if(Le===void 0&&(Le=xe._index),k.hasTransform(xe,"groupby")){var Ue=R[Le];if(!Ue){var Re=k.getTransformIndices(xe,"groupby"),Fe=Re[Re.length-1];Ue=v.keyedContainer(xe,"transforms["+Fe+"].styles","target","value.visible"),R[Le]=Ue}var ve=Ue.get(Oe._group);ve===void 0&&(ve=!0),ve!==!1&&Ue.set(Oe._group,pe),A[Le]=Pe(Le,xe.visible!==!1)}else{var ke=xe.visible!==!1&&pe;ze?(fe=ke,q[Le].visible=fe,j=!0):Pe(Le,ke)}}}}},42451:function(L,T){T.isGrouped=function(e){return(e.traceorder||"").indexOf("grouped")!==-1},T.isVertical=function(e){return e.orientation!=="h"},T.isReversed=function(e){return(e.traceorder||"").indexOf("reversed")!==-1}},2780:function(L,T,e){L.exports={moduleType:"component",name:"legend",layoutAttributes:e(3800),supplyLayoutDefaults:e(77864),draw:e(31140),style:e(2012)}},2012:function(L,T,e){var k=e(33428),v=e(24040),n=e(3400),w=n.strTranslate,b=e(43616),c=e(76308),a=e(94288).extractOpts,t=e(43028),o=e(10528),i=e(69656).castOption,s=e(65196);function l(g,f){return(f?"radial":"horizontal")+(g?"":"reversed")}function u(g){var f=g[0].trace,C=f.contours,y=t.hasLines(f),m=t.hasMarkers(f),x=f.visible&&f.fill&&f.fill!=="none",_=!1,S=!1;if(C){var O=C.coloring;O==="lines"?_=!0:y=O==="none"||O==="heatmap"||C.showlines,C.type==="constraint"?x=C._operation!=="=":O!=="fill"&&O!=="heatmap"||(S=!0)}return{showMarker:m,showLine:y,showFill:x,showGradientLine:_,showGradientFill:S,anyLine:y||_,anyFill:x||S}}function d(g,f,C){return g&&n.isArrayOrTypedArray(g)?f:g>C?C:g}L.exports=function(g,f,C){var y=f._fullLayout;C||(C=y.legend);var m=C.itemsizing==="constant",x=C.itemwidth,_=(x+2*s.itemGap)/2,S=w(_,0),O=function(N,P,R,A){var q;if(N+1)q=N;else{if(!(P&&P.width>0))return 0;q=P.width}return m?A:Math.min(q,R)};function h(N,P,R){var A=N[0].trace,q=A.marker||{},j=q.line||{},X=q.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",F=R?A.visible&&A.type===R:v.traceIs(A,"bar"),W=k.select(P).select("g.legendpoints").selectAll("path.legend"+R).data(F?[N]:[]);W.enter().append("path").classed("legend"+R,!0).attr("d",X).attr("transform",S),W.exit().remove(),W.each(function(Y){var B=k.select(this),G=Y[0],J=O(G.mlw,q.line,5,2);B.style("stroke-width",J+"px");var se=G.mcc;if(!C._inHover&&"mc"in G){var re=a(q),ne=re.mid;ne===void 0&&(ne=(re.max+re.min)/2),se=b.tryColorscale(q,"")(ne)}var $=se||G.mc||q.color,te=q.pattern,ae=te&&b.getPatternAttr(te.shape,0,"");if(ae){var ce=b.getPatternAttr(te.bgcolor,0,null),ue=b.getPatternAttr(te.fgcolor,0,null),de=te.fgopacity,me=d(te.size,8,10),be=d(te.solidity,.5,1),_e="legend-"+A.uid;B.call(b.pattern,"legend",f,_e,ae,me,be,se,te.fillmode,ce,ue,de)}else B.call(c.fill,$);J&&c.stroke(B,G.mlc||j.color)})}function M(N,P,R){var A=N[0],q=A.trace,j=R?q.visible&&q.type===R:v.traceIs(q,R),X=k.select(P).select("g.legendpoints").selectAll("path.legend"+R).data(j?[N]:[]);if(X.enter().append("path").classed("legend"+R,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",S),X.exit().remove(),X.size()){var F=q.marker||{},W=O(i(F.line.width,A.pts),F.line,5,2),Y="pieLike",B=n.minExtend(q,{marker:{line:{width:W}}},Y),G=n.minExtend(A,{trace:B},Y);o(X,G,B,f)}}g.each(function(N){var P=k.select(this),R=n.ensureSingle(P,"g","layers");R.style("opacity",N[0].trace.opacity);var A=C.valign,q=N[0].lineHeight,j=N[0].height;if(A!=="middle"&&q&&j){var X={top:1,bottom:-1}[A]*(.5*(q-j+3));R.attr("transform",w(0,X))}else R.attr("transform",null);R.selectAll("g.legendfill").data([N]).enter().append("g").classed("legendfill",!0),R.selectAll("g.legendlines").data([N]).enter().append("g").classed("legendlines",!0);var F=R.selectAll("g.legendsymbols").data([N]);F.enter().append("g").classed("legendsymbols",!0),F.selectAll("g.legendpoints").data([N]).enter().append("g").classed("legendpoints",!0)}).each(function(N){var P,R=N[0].trace,A=[];if(R.visible)switch(R.type){case"histogram2d":case"heatmap":A=[["M-15,-2V4H15V-2Z"]],P=!0;break;case"choropleth":case"choroplethmapbox":A=[["M-6,-6V6H6V-6Z"]],P=!0;break;case"densitymapbox":A=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],P="radial";break;case"cone":A=[["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"]],P=!1;break;case"streamtube":A=[["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"]],P=!1;break;case"surface":A=[["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"]],P=!0;break;case"mesh3d":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!1;break;case"volume":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!0;break;case"isosurface":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],P=!1}var q=k.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(A);q.enter().append("path").classed("legend3dandfriends",!0).attr("transform",S).style("stroke-miterlimit",1),q.exit().remove(),q.each(function(j,X){var F,W=k.select(this),Y=a(R),B=Y.colorscale,G=Y.reversescale;if(B){if(!P){var J=B.length;F=X===0?B[G?J-1:0][1]:X===1?B[G?0:J-1][1]:B[Math.floor((J-1)/2)][1]}}else{var se=R.vertexcolor||R.facecolor||R.color;F=n.isArrayOrTypedArray(se)?se[X]||se[0]:se}W.attr("d",j[0]),F?W.call(c.fill,F):W.call(function(re){if(re.size()){var ne="legendfill-"+R.uid;b.gradient(re,f,ne,l(G,P==="radial"),B,"fill")}})})}).each(function(N){var P=N[0].trace,R=P.type==="waterfall";if(N[0]._distinct&&R){var A=N[0].trace[N[0].dir].marker;return N[0].mc=A.color,N[0].mlw=A.line.width,N[0].mlc=A.line.color,h(N,this,"waterfall")}var q=[];P.visible&&R&&(q=N[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 j=k.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(q);j.enter().append("path").classed("legendwaterfall",!0).attr("transform",S).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(X){var F=k.select(this),W=P[X[0]].marker,Y=O(void 0,W.line,5,2);F.attr("d",X[1]).style("stroke-width",Y+"px").call(c.fill,W.color),Y&&F.call(c.stroke,W.line.color)})}).each(function(N){h(N,this,"funnel")}).each(function(N){h(N,this)}).each(function(N){var P=N[0].trace,R=k.select(this).select("g.legendpoints").selectAll("path.legendbox").data(P.visible&&v.traceIs(P,"box-violin")?[N]:[]);R.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",S),R.exit().remove(),R.each(function(){var A=k.select(this);if(P.boxpoints!=="all"&&P.points!=="all"||c.opacity(P.fillcolor)!==0||c.opacity((P.line||{}).color)!==0){var q=O(void 0,P.line,5,2);A.style("stroke-width",q+"px").call(c.fill,P.fillcolor),q&&c.stroke(A,P.line.color)}else{var j=n.minExtend(P,{marker:{size:m?12:n.constrain(P.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});R.call(b.pointStyle,j,f)}})}).each(function(N){M(N,this,"funnelarea")}).each(function(N){M(N,this,"pie")}).each(function(N){var P,R,A=u(N),q=A.showFill,j=A.showLine,X=A.showGradientLine,F=A.showGradientFill,W=A.anyFill,Y=A.anyLine,B=N[0],G=B.trace,J=a(G),se=J.colorscale,re=J.reversescale,ne=t.hasMarkers(G)||!W?"M5,0":Y?"M5,-2":"M5,-3",$=k.select(this),te=$.select(".legendfill").selectAll("path").data(q||F?[N]:[]);if(te.enter().append("path").classed("js-fill",!0),te.exit().remove(),te.attr("d",ne+"h"+x+"v6h-"+x+"z").call(function(ue){if(ue.size())if(q)b.fillGroupStyle(ue,f);else{var de="legendfill-"+G.uid;b.gradient(ue,f,de,l(re),se,"fill")}}),j||X){var ae=O(void 0,G.line,10,5);R=n.minExtend(G,{line:{width:ae}}),P=[n.minExtend(B,{trace:R})]}var ce=$.select(".legendlines").selectAll("path").data(j||X?[P]:[]);ce.enter().append("path").classed("js-line",!0),ce.exit().remove(),ce.attr("d",ne+(X?"l"+x+",0.0001":"h"+x)).call(j?b.lineGroupStyle:function(ue){if(ue.size()){var de="legendline-"+G.uid;b.lineGroupStyle(ue),b.gradient(ue,f,de,l(re),se,"stroke")}})}).each(function(N){var P,R,A=u(N),q=A.anyFill,j=A.anyLine,X=A.showLine,F=A.showMarker,W=N[0],Y=W.trace,B=!F&&!j&&!q&&t.hasText(Y);function G(ce,ue,de,me){var be=n.nestedProperty(Y,ce).get(),_e=n.isArrayOrTypedArray(be)&&ue?ue(be):be;if(m&&_e&&me!==void 0&&(_e=me),de){if(_e<de[0])return de[0];if(_e>de[1])return de[1]}return _e}function J(ce){return W._distinct&&W.index&&ce[W.index]?ce[W.index]:ce[0]}if(F||B||X){var se={},re={};if(F){se.mc=G("marker.color",J),se.mx=G("marker.symbol",J),se.mo=G("marker.opacity",n.mean,[.2,1]),se.mlc=G("marker.line.color",J),se.mlw=G("marker.line.width",n.mean,[0,5],2),re.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ne=G("marker.size",n.mean,[2,16],12);se.ms=ne,re.marker.size=ne}X&&(re.line={width:G("line.width",J,[0,10],5)}),B&&(se.tx="Aa",se.tp=G("textposition",J),se.ts=10,se.tc=G("textfont.color",J),se.tf=G("textfont.family",J)),P=[n.minExtend(W,se)],(R=n.minExtend(Y,re)).selectedpoints=null,R.texttemplate=null}var $=k.select(this).select("g.legendpoints"),te=$.selectAll("path.scatterpts").data(F?P:[]);te.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",S),te.exit().remove(),te.call(b.pointStyle,R,f),F&&(P[0].mrc=3);var ae=$.selectAll("g.pointtext").data(B?P:[]);ae.enter().append("g").classed("pointtext",!0).append("text").attr("transform",S),ae.exit().remove(),ae.selectAll("text").call(b.textPointStyle,R,f)}).each(function(N){var P=N[0].trace,R=k.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(P.visible&&P.type==="candlestick"?[N,N]:[]);R.enter().append("path").classed("legendcandle",!0).attr("d",function(A,q){return q?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",S).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(A,q){var j=k.select(this),X=P[q?"increasing":"decreasing"],F=O(void 0,X.line,5,2);j.style("stroke-width",F+"px").call(c.fill,X.fillcolor),F&&c.stroke(j,X.line.color)})}).each(function(N){var P=N[0].trace,R=k.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(P.visible&&P.type==="ohlc"?[N,N]:[]);R.enter().append("path").classed("legendohlc",!0).attr("d",function(A,q){return q?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",S).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(A,q){var j=k.select(this),X=P[q?"increasing":"decreasing"],F=O(void 0,X.line,5,2);j.style("fill","none").call(b.dashLine,X.line.dash,F),F&&c.stroke(j,X.line.color)})})}},66540:function(L,T,e){e(76052),L.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"}}},44248:function(L,T,e){var k=e(24040),v=e(7316),n=e(79811),w=e(9224),b=e(4016).eraseActiveShape,c=e(3400),a=c._,t=L.exports={};function o(y,m){var x,_,S=m.currentTarget,O=S.getAttribute("data-attr"),h=S.getAttribute("data-val")||!0,M=y._fullLayout,N={},P=n.list(y,null,!0),R=M._cartesianSpikesEnabled;if(O==="zoom"){var A,q=h==="in"?.5:2,j=(1+q)/2,X=(1-q)/2;for(_=0;_<P.length;_++)if(!(x=P[_]).fixedrange)if(A=x._name,h==="auto")N[A+".autorange"]=!0;else if(h==="reset")x._rangeInitial0===void 0&&x._rangeInitial1===void 0?N[A+".autorange"]=!0:x._rangeInitial0===void 0?(N[A+".autorange"]=x._autorangeInitial,N[A+".range"]=[null,x._rangeInitial1]):x._rangeInitial1===void 0?(N[A+".range"]=[x._rangeInitial0,null],N[A+".autorange"]=x._autorangeInitial):N[A+".range"]=[x._rangeInitial0,x._rangeInitial1],x._showSpikeInitial!==void 0&&(N[A+".showspikes"]=x._showSpikeInitial,R!=="on"||x._showSpikeInitial||(R="off"));else{var F=[x.r2l(x.range[0]),x.r2l(x.range[1])],W=[j*F[0]+X*F[1],j*F[1]+X*F[0]];N[A+".range[0]"]=x.l2r(W[0]),N[A+".range[1]"]=x.l2r(W[1])}}else O!=="hovermode"||h!=="x"&&h!=="y"||(h=M._isHoriz?"y":"x",S.setAttribute("data-val",h)),N[O]=h;M._cartesianSpikesEnabled=R,k.call("_guiRelayout",y,N)}function i(y,m){for(var x=m.currentTarget,_=x.getAttribute("data-attr"),S=x.getAttribute("data-val")||!0,O=y._fullLayout._subplots.gl3d||[],h={},M=_.split("."),N=0;N<O.length;N++)h[O[N]+"."+M[1]]=S;var P=S==="pan"?S:"zoom";h.dragmode=P,k.call("_guiRelayout",y,h)}function s(y,m){for(var x=m.currentTarget.getAttribute("data-attr"),_=x==="resetLastSave",S=x==="resetDefault",O=y._fullLayout,h=O._subplots.gl3d||[],M={},N=0;N<h.length;N++){var P,R=h[N],A=R+".camera",q=R+".aspectratio",j=R+".aspectmode",X=O[R]._scene;_?(M[A+".up"]=X.viewInitial.up,M[A+".eye"]=X.viewInitial.eye,M[A+".center"]=X.viewInitial.center,P=!0):S&&(M[A+".up"]=null,M[A+".eye"]=null,M[A+".center"]=null,P=!0),P&&(M[q+".x"]=X.viewInitial.aspectratio.x,M[q+".y"]=X.viewInitial.aspectratio.y,M[q+".z"]=X.viewInitial.aspectratio.z,M[j]=X.viewInitial.aspectmode)}k.call("_guiRelayout",y,M)}function l(y,m){var x=m.currentTarget,_=x._previousVal,S=y._fullLayout,O=S._subplots.gl3d||[],h=["xaxis","yaxis","zaxis"],M={},N={};if(_)N=_,x._previousVal=null;else{for(var P=0;P<O.length;P++){var R=O[P],A=S[R],q=R+".hovermode";M[q]=A.hovermode,N[q]=!1;for(var j=0;j<3;j++){var X=h[j],F=R+"."+X+".showspikes";N[F]=!1,M[F]=A[X].showspikes}}x._previousVal=M}return N}function u(y,m){for(var x=m.currentTarget,_=x.getAttribute("data-attr"),S=x.getAttribute("data-val")||!0,O=y._fullLayout,h=O._subplots.geo||[],M=0;M<h.length;M++){var N=h[M],P=O[N];if(_==="zoom"){var R=P.projection.scale,A=S==="in"?2*R:.5*R;k.call("_guiRelayout",y,N+".projection.scale",A)}}_==="reset"&&C(y,"geo")}function d(y){var m=y._fullLayout;return!m.hovermode&&(m._has("cartesian")?m._isHoriz?"y":"x":"closest")}function g(y){var m=d(y);k.call("_guiRelayout",y,"hovermode",m)}function f(y,m){for(var x=m.currentTarget.getAttribute("data-val"),_=y._fullLayout,S=_._subplots.mapbox||[],O={},h=0;h<S.length;h++){var M=S[h],N=_[M].zoom,P=x==="in"?1.05*N:N/1.05;O[M+".zoom"]=P}k.call("_guiRelayout",y,O)}function C(y,m){for(var x=y._fullLayout,_=x._subplots[m]||[],S={},O=0;O<_.length;O++)for(var h=_[O],M=x[h]._subplot.viewInitial,N=Object.keys(M),P=0;P<N.length;P++){var R=N[P];S[h+"."+R]=M[R]}k.call("_guiRelayout",y,S)}t.toImage={name:"toImage",title:function(y){var m=(y._context.toImageButtonOptions||{}).format||"png";return a(y,m==="png"?"Download plot as a png":"Download plot")},icon:w.camera,click:function(y){var m=y._context.toImageButtonOptions,x={format:m.format||"png"};c.notifier(a(y,"Taking snapshot - this may take a few seconds"),"long"),x.format!=="svg"&&c.isIE()&&(c.notifier(a(y,"IE only supports svg. Changing format to svg."),"long"),x.format="svg"),["filename","width","height","scale"].forEach(function(_){_ in m&&(x[_]=m[_])}),k.call("downloadImage",y,x).then(function(_){c.notifier(a(y,"Snapshot succeeded")+" - "+_,"long")}).catch(function(){c.notifier(a(y,"Sorry, there was a problem downloading your snapshot!"),"long")})}},t.sendDataToCloud={name:"sendDataToCloud",title:function(y){return a(y,"Edit in Chart Studio")},icon:w.disk,click:function(y){v.sendDataToCloud(y)}},t.editInChartStudio={name:"editInChartStudio",title:function(y){return a(y,"Edit in Chart Studio")},icon:w.pencil,click:function(y){v.sendDataToCloud(y)}},t.zoom2d={name:"zoom2d",_cat:"zoom",title:function(y){return a(y,"Zoom")},attr:"dragmode",val:"zoom",icon:w.zoombox,click:o},t.pan2d={name:"pan2d",_cat:"pan",title:function(y){return a(y,"Pan")},attr:"dragmode",val:"pan",icon:w.pan,click:o},t.select2d={name:"select2d",_cat:"select",title:function(y){return a(y,"Box Select")},attr:"dragmode",val:"select",icon:w.selectbox,click:o},t.lasso2d={name:"lasso2d",_cat:"lasso",title:function(y){return a(y,"Lasso Select")},attr:"dragmode",val:"lasso",icon:w.lasso,click:o},t.drawclosedpath={name:"drawclosedpath",title:function(y){return a(y,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:w.drawclosedpath,click:o},t.drawopenpath={name:"drawopenpath",title:function(y){return a(y,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:w.drawopenpath,click:o},t.drawline={name:"drawline",title:function(y){return a(y,"Draw line")},attr:"dragmode",val:"drawline",icon:w.drawline,click:o},t.drawrect={name:"drawrect",title:function(y){return a(y,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:w.drawrect,click:o},t.drawcircle={name:"drawcircle",title:function(y){return a(y,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:w.drawcircle,click:o},t.eraseshape={name:"eraseshape",title:function(y){return a(y,"Erase active shape")},icon:w.eraseshape,click:b},t.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(y){return a(y,"Zoom in")},attr:"zoom",val:"in",icon:w.zoom_plus,click:o},t.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(y){return a(y,"Zoom out")},attr:"zoom",val:"out",icon:w.zoom_minus,click:o},t.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(y){return a(y,"Autoscale")},attr:"zoom",val:"auto",icon:w.autoscale,click:o},t.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(y){return a(y,"Reset axes")},attr:"zoom",val:"reset",icon:w.home,click:o},t.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(y){return a(y,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:w.tooltip_basic,gravity:"ne",click:o},t.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(y){return a(y,"Compare data on hover")},attr:"hovermode",val:function(y){return y._fullLayout._isHoriz?"y":"x"},icon:w.tooltip_compare,gravity:"ne",click:o},t.zoom3d={name:"zoom3d",_cat:"zoom",title:function(y){return a(y,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:w.zoombox,click:i},t.pan3d={name:"pan3d",_cat:"pan",title:function(y){return a(y,"Pan")},attr:"scene.dragmode",val:"pan",icon:w.pan,click:i},t.orbitRotation={name:"orbitRotation",title:function(y){return a(y,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:w["3d_rotate"],click:i},t.tableRotation={name:"tableRotation",title:function(y){return a(y,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:w["z-axis"],click:i},t.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(y){return a(y,"Reset camera to default")},attr:"resetDefault",icon:w.home,click:s},t.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(y){return a(y,"Reset camera to last save")},attr:"resetLastSave",icon:w.movie,click:s},t.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(y){return a(y,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:w.tooltip_basic,gravity:"ne",click:function(y,m){var x=l(y,m);k.call("_guiRelayout",y,x)}},t.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(y){return a(y,"Zoom in")},attr:"zoom",val:"in",icon:w.zoom_plus,click:u},t.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(y){return a(y,"Zoom out")},attr:"zoom",val:"out",icon:w.zoom_minus,click:u},t.resetGeo={name:"resetGeo",_cat:"reset",title:function(y){return a(y,"Reset")},attr:"reset",val:null,icon:w.autoscale,click:u},t.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(y){return a(y,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:w.tooltip_basic,gravity:"ne",click:g},t.hoverClosestGl2d={name:"hoverClosestGl2d",_cat:"hoverclosest",title:function(y){return a(y,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:w.tooltip_basic,gravity:"ne",click:g},t.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(y){return a(y,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:w.tooltip_basic,gravity:"ne",click:g},t.resetViewSankey={name:"resetSankeyGroup",title:function(y){return a(y,"Reset view")},icon:w.home,click:function(y){for(var m={"node.groups":[],"node.x":[],"node.y":[]},x=0;x<y._fullData.length;x++){var _=y._fullData[x]._viewInitial;m["node.groups"].push(_.node.groups.slice()),m["node.x"].push(_.node.x.slice()),m["node.y"].push(_.node.y.slice())}k.call("restyle",y,m)}},t.toggleHover={name:"toggleHover",title:function(y){return a(y,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:w.tooltip_basic,gravity:"ne",click:function(y,m){var x=l(y,m);x.hovermode=d(y),k.call("_guiRelayout",y,x)}},t.resetViews={name:"resetViews",title:function(y){return a(y,"Reset views")},icon:w.home,click:function(y,m){var x=m.currentTarget;x.setAttribute("data-attr","zoom"),x.setAttribute("data-val","reset"),o(y,m),x.setAttribute("data-attr","resetLastSave"),s(y,m),C(y,"geo"),C(y,"mapbox")}},t.toggleSpikelines={name:"toggleSpikelines",title:function(y){return a(y,"Toggle Spike Lines")},icon:w.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(y){var m=y._fullLayout,x=m._cartesianSpikesEnabled;m._cartesianSpikesEnabled=x==="on"?"off":"on",k.call("_guiRelayout",y,function(_){for(var S=_._fullLayout._cartesianSpikesEnabled==="on",O=n.list(_,null,!0),h={},M=0;M<O.length;M++){var N=O[M];h[N._name+".showspikes"]=!!S||N._showSpikeInitial}return h}(y))}},t.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(y){return a(y,"Reset view")},attr:"reset",icon:w.home,click:function(y){C(y,"mapbox")}},t.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(y){return a(y,"Zoom in")},attr:"zoom",val:"in",icon:w.zoom_plus,click:f},t.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(y){return a(y,"Zoom out")},attr:"zoom",val:"out",icon:w.zoom_minus,click:f}},76052:function(L,T,e){var k=e(44248),v=Object.keys(k),n=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],w=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(n),b=[];v.forEach(function(c){(function(a){if(w.indexOf(a._cat||a.name)===-1){var t=a.name,o=(a._cat||a.name).toLowerCase();b.indexOf(t)===-1&&b.push(t),b.indexOf(o)===-1&&b.push(o)}})(k[c])}),b.sort(),L.exports={DRAW_MODES:n,backButtons:w,foreButtons:b}},90824:function(L,T,e){var k=e(3400),v=e(76308),n=e(31780),w=e(66540);L.exports=function(b,c){var a=b.modebar||{},t=n.newContainer(c,"modebar");function o(s,l){return k.coerce(a,t,w,s,l)}o("orientation"),o("bgcolor",v.addOpacity(c.paper_bgcolor,.5));var i=v.contrast(v.rgb(c.modebar.bgcolor));o("color",v.addOpacity(i,.3)),o("activecolor",v.addOpacity(i,.7)),o("uirevision",c.uirevision),o("add"),o("remove")}},45460:function(L,T,e){L.exports={moduleType:"component",name:"modebar",layoutAttributes:e(66540),supplyLayoutDefaults:e(90824),manage:e(18816)}},18816:function(L,T,e){var k=e(79811),v=e(43028),n=e(24040),w=e(10624).isUnifiedHover,b=e(66400),c=e(44248),a=e(76052).DRAW_MODES,t=e(3400).extendDeep;L.exports=function(o){var i=o._fullLayout,s=o._context,l=i._modeBar;if(s.displayModeBar||s.watermark){if(!Array.isArray(s.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(s.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var u,d=s.modeBarButtons;u=Array.isArray(d)&&d.length?function(g){for(var f=t([],g),C=0;C<f.length;C++)for(var y=f[C],m=0;m<y.length;m++){var x=y[m];if(typeof x=="string"){if(c[x]===void 0)throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "));f[C][m]=c[x]}}return f}(d):!s.displayModeBar&&s.watermark?[]:function(g){var f=g._fullLayout,C=g._fullData,y=g._context;function m(be,_e){if(typeof _e=="string"){if(_e.toLowerCase()===be.toLowerCase())return!0}else{var we=_e.name,Ce=_e._cat||_e.name;if(we===be||Ce===be.toLowerCase())return!0}return!1}var x=f.modebar.add;typeof x=="string"&&(x=[x]);var _=f.modebar.remove;typeof _=="string"&&(_=[_]);var S=y.modeBarButtonsToAdd.concat(x.filter(function(be){for(var _e=0;_e<y.modeBarButtonsToRemove.length;_e++)if(m(be,y.modeBarButtonsToRemove[_e]))return!1;return!0})),O=y.modeBarButtonsToRemove.concat(_.filter(function(be){for(var _e=0;_e<y.modeBarButtonsToAdd.length;_e++)if(m(be,y.modeBarButtonsToAdd[_e]))return!1;return!0})),h=f._has("cartesian"),M=f._has("gl3d"),N=f._has("geo"),P=f._has("pie"),R=f._has("funnelarea"),A=f._has("gl2d"),q=f._has("ternary"),j=f._has("mapbox"),X=f._has("polar"),F=f._has("smith"),W=f._has("sankey"),Y=function(be){for(var _e=k.list({_fullLayout:be},null,!0),we=0;we<_e.length;we++)if(!_e[we].fixedrange)return!1;return!0}(f),B=w(f.hovermode),G=[];function J(be){if(be.length){for(var _e=[],we=0;we<be.length;we++){for(var Ce=be[we],Se=c[Ce],Pe=Se.name.toLowerCase(),Ne=(Se._cat||Se.name).toLowerCase(),Oe=!1,pe=0;pe<O.length;pe++){var fe=O[pe].toLowerCase();if(fe===Pe||fe===Ne){Oe=!0;break}}Oe||_e.push(c[Ce])}G.push(_e)}}var se=["toImage"];y.showEditInChartStudio?se.push("editInChartStudio"):y.showSendToCloud&&se.push("sendDataToCloud"),J(se);var re=[],ne=[],$=[],te=[];(h||A||P||R||q)+N+M+j+X+F>1?(ne=["toggleHover"],$=["resetViews"]):N?(re=["zoomInGeo","zoomOutGeo"],ne=["hoverClosestGeo"],$=["resetGeo"]):M?(ne=["hoverClosest3d"],$=["resetCameraDefault3d","resetCameraLastSave3d"]):j?(re=["zoomInMapbox","zoomOutMapbox"],ne=["toggleHover"],$=["resetViewMapbox"]):A?ne=["hoverClosestGl2d"]:P?ne=["hoverClosestPie"]:W?(ne=["hoverClosestCartesian","hoverCompareCartesian"],$=["resetViewSankey"]):ne=["toggleHover"],h&&(ne=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(be){for(var _e=0;_e<be.length;_e++)if(!n.traceIs(be[_e],"noHover"))return!1;return!0}(C)||B)&&(ne=[]),!h&&!A||Y||(re=["zoomIn2d","zoomOut2d","autoScale2d"],$[0]!=="resetViews"&&($=["resetScale2d"])),M?te=["zoom3d","pan3d","orbitRotation","tableRotation"]:(h||A)&&!Y||q?te=["zoom2d","pan2d"]:j||N?te=["pan2d"]:X&&(te=["zoom2d"]),function(be){for(var _e=!1,we=0;we<be.length&&!_e;we++){var Ce=be[we];Ce._module&&Ce._module.selectPoints&&(n.traceIs(Ce,"scatter-like")?(v.hasMarkers(Ce)||v.hasText(Ce))&&(_e=!0):n.traceIs(Ce,"box-violin")&&Ce.boxpoints!=="all"&&Ce.points!=="all"||(_e=!0))}return _e}(C)&&te.push("select2d","lasso2d");var ae=[],ce=function(be){ae.indexOf(be)===-1&&ne.indexOf(be)!==-1&&ae.push(be)};if(Array.isArray(S)){for(var ue=[],de=0;de<S.length;de++){var me=S[de];typeof me=="string"?(me=me.toLowerCase(),a.indexOf(me)!==-1?(f._has("mapbox")||f._has("cartesian"))&&te.push(me):me==="togglespikelines"?ce("toggleSpikelines"):me==="togglehover"?ce("toggleHover"):me==="hovercompare"?ce("hoverCompareCartesian"):me==="hoverclosest"?(ce("hoverClosestCartesian"),ce("hoverClosestGeo"),ce("hoverClosest3d"),ce("hoverClosestGl2d"),ce("hoverClosestPie")):me==="v1hovermode"&&(ce("toggleHover"),ce("hoverClosestCartesian"),ce("hoverCompareCartesian"),ce("hoverClosestGeo"),ce("hoverClosest3d"),ce("hoverClosestGl2d"),ce("hoverClosestPie"))):ue.push(me)}S=ue}return J(te),J(re.concat($)),J(ae),function(be,_e){if(_e.length)if(Array.isArray(_e[0]))for(var we=0;we<_e.length;we++)be.push(_e[we]);else be.push(_e);return be}(G,S)}(o),l?l.update(o,u):i._modeBar=b(o,u)}else l&&(l.destroy(),delete i._modeBar)}},66400:function(L,T,e){var k=e(33428),v=e(38248),n=e(3400),w=e(9224),b=e(25788).version,c=new DOMParser;function a(o){this.container=o.container,this.element=document.createElement("div"),this.update(o.graphInfo,o.buttons),this.container.appendChild(this.element)}var t=a.prototype;t.update=function(o,i){this.graphInfo=o;var s=this.graphInfo._context,l=this.graphInfo._fullLayout,u="modebar-"+l._uid;this.element.setAttribute("id",u),this._uid=u,this.element.className="modebar",s.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),l.modebar.orientation==="v"&&(this.element.className+=" vertical",i=i.reverse());var d=l.modebar,g=s.displayModeBar==="hover"?".js-plotly-plot .plotly:hover ":"";n.deleteRelatedStyleRule(u),n.addRelatedStyleRule(u,g+"#"+u+" .modebar-group","background-color: "+d.bgcolor),n.addRelatedStyleRule(u,"#"+u+" .modebar-btn .icon path","fill: "+d.color),n.addRelatedStyleRule(u,"#"+u+" .modebar-btn:hover .icon path","fill: "+d.activecolor),n.addRelatedStyleRule(u,"#"+u+" .modebar-btn.active .icon path","fill: "+d.activecolor);var f=!this.hasButtons(i),C=this.hasLogo!==s.displaylogo,y=this.locale!==s.locale;if(this.locale=s.locale,(f||C||y)&&(this.removeAllButtons(),this.updateButtons(i),s.watermark||s.displaylogo)){var m=this.getLogo();s.watermark&&(m.className=m.className+" watermark"),l.modebar.orientation==="v"?this.element.insertBefore(m,this.element.childNodes[0]):this.element.appendChild(m),this.hasLogo=!0}this.updateActiveButton()},t.updateButtons=function(o){var i=this;this.buttons=o,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(s){var l=i.createGroup();s.forEach(function(u){var d=u.name;if(!d)throw new Error("must provide button 'name' in button config");if(i.buttonsNames.indexOf(d)!==-1)throw new Error("button name '"+d+"' is taken");i.buttonsNames.push(d);var g=i.createButton(u);i.buttonElements.push(g),l.appendChild(g)}),i.element.appendChild(l)})},t.createGroup=function(){var o=document.createElement("div");return o.className="modebar-group",o},t.createButton=function(o){var i=this,s=document.createElement("a");s.setAttribute("rel","tooltip"),s.className="modebar-btn";var l=o.title;l===void 0?l=o.name:typeof l=="function"&&(l=l(this.graphInfo)),(l||l===0)&&s.setAttribute("data-title",l),o.attr!==void 0&&s.setAttribute("data-attr",o.attr);var u=o.val;if(u!==void 0&&(typeof u=="function"&&(u=u(this.graphInfo)),s.setAttribute("data-val",u)),typeof o.click!="function")throw new Error("must provide button 'click' function in button config");s.addEventListener("click",function(g){o.click(i.graphInfo,g),i.updateActiveButton(g.currentTarget)}),s.setAttribute("data-toggle",o.toggle||!1),o.toggle&&k.select(s).classed("active",!0);var d=o.icon;return typeof d=="function"?s.appendChild(d()):s.appendChild(this.createIcon(d||w.question)),s.setAttribute("data-gravity",o.gravity||"n"),s},t.createIcon=function(o){var i,s=v(o.height)?Number(o.height):o.ascent-o.descent,l="http://www.w3.org/2000/svg";if(o.path){(i=document.createElementNS(l,"svg")).setAttribute("viewBox",[0,0,o.width,s].join(" ")),i.setAttribute("class","icon");var u=document.createElementNS(l,"path");u.setAttribute("d",o.path),o.transform?u.setAttribute("transform",o.transform):o.ascent!==void 0&&u.setAttribute("transform","matrix(1 0 0 -1 0 "+o.ascent+")"),i.appendChild(u)}return o.svg&&(i=c.parseFromString(o.svg,"application/xml").childNodes[0]),i.setAttribute("height","1em"),i.setAttribute("width","1em"),i},t.updateActiveButton=function(o){var i=this.graphInfo._fullLayout,s=o!==void 0?o.getAttribute("data-attr"):null;this.buttonElements.forEach(function(l){var u=l.getAttribute("data-val")||!0,d=l.getAttribute("data-attr"),g=l.getAttribute("data-toggle")==="true",f=k.select(l);if(g)d===s&&f.classed("active",!f.classed("active"));else{var C=d===null?d:n.nestedProperty(i,d).get();f.classed("active",C===u)}})},t.hasButtons=function(o){var i=this.buttons;if(!i||o.length!==i.length)return!1;for(var s=0;s<o.length;++s){if(o[s].length!==i[s].length)return!1;for(var l=0;l<o[s].length;l++)if(o[s][l].name!==i[s][l].name)return!1}return!0},t.getLogo=function(){var o=this.createGroup(),i=document.createElement("a");return i.href="https://plotly.com/",i.target="_blank",i.setAttribute("data-title",n._(this.graphInfo,"Produced with Plotly.js")+" (v"+b+")"),i.className="modebar-btn plotlyjsicon modebar-btn--logo",i.appendChild(this.createIcon(w.newplotlylogo)),o.appendChild(i),o},t.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},t.destroy=function(){n.removeElement(this.container.querySelector(".modebar")),n.deleteRelatedStyleRule(this._uid)},L.exports=function(o,i){var s=o._fullLayout,l=new a({graphInfo:o,container:s._modebardiv.node(),buttons:i});return s._privateplot&&k.select(l.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),l}},26680:function(L,T,e){var k=e(25376),v=e(22548),n=(0,e(31780).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"});L.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:k({editType:"plot"}),bgcolor:{valType:"color",dflt:v.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:v.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}},85984:function(L){L.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},22148:function(L,T,e){var k=e(3400),v=e(76308),n=e(31780),w=e(51272),b=e(26680),c=e(85984);function a(t,o,i,s){var l=s.calendar;function u(g,f){return k.coerce(t,o,b.buttons,g,f)}if(u("visible")){var d=u("step");d!=="all"&&(!l||l==="gregorian"||d!=="month"&&d!=="year"?u("stepmode"):o.stepmode="backward",u("count")),u("label")}}L.exports=function(t,o,i,s,l){var u=t.rangeselector||{},d=n.newContainer(o,"rangeselector");function g(y,m){return k.coerce(u,d,b,y,m)}if(g("visible",w(u,d,{name:"buttons",handleItemDefaults:a,calendar:l}).length>0)){var f=function(y,m,x){for(var _=x.filter(function(M){return m[M].anchor===y._id}),S=0,O=0;O<_.length;O++){var h=m[_[O]].domain;h&&(S=Math.max(h[1],S))}return[y.domain[0],S+c.yPad]}(o,i,s);g("x",f[0]),g("y",f[1]),k.noneOrAll(t,o,["x","y"]),g("xanchor"),g("yanchor"),k.coerceFont(g,"font",i.font);var C=g("bgcolor");g("activecolor",v.contrast(C,c.lightAmount,c.darkAmount)),g("bordercolor"),g("borderwidth")}}},50216:function(L,T,e){var k=e(33428),v=e(24040),n=e(7316),w=e(76308),b=e(43616),c=e(3400),a=c.strTranslate,t=e(72736),o=e(79811),i=e(84284),s=i.LINE_SPACING,l=i.FROM_TL,u=i.FROM_BR,d=e(85984),g=e(48040);function f(m){return m._id}function C(m,x,_){var S=c.ensureSingle(m,"rect","selector-rect",function(O){O.attr("shape-rendering","crispEdges")});S.attr({rx:d.rx,ry:d.ry}),S.call(w.stroke,x.bordercolor).call(w.fill,function(O,h){return h._isActive||h._isHovered?O.activecolor:O.bgcolor}(x,_)).style("stroke-width",x.borderwidth+"px")}function y(m,x,_,S){var O,h;c.ensureSingle(m,"text","selector-text",function(M){M.attr("text-anchor","middle")}).call(b.font,x.font).text((O=_,h=S._fullLayout._meta,O.label?h?c.templateString(O.label,h):O.label:O.step==="all"?"all":O.count+O.step.charAt(0))).call(function(M){t.convertToTspans(M,S)})}L.exports=function(m){var x=m._fullLayout._infolayer.selectAll(".rangeselector").data(function(_){for(var S=o.list(_,"x",!0),O=[],h=0;h<S.length;h++){var M=S[h];M.rangeselector&&M.rangeselector.visible&&O.push(M)}return O}(m),f);x.enter().append("g").classed("rangeselector",!0),x.exit().remove(),x.style({cursor:"pointer","pointer-events":"all"}),x.each(function(_){var S=k.select(this),O=_,h=O.rangeselector,M=S.selectAll("g.button").data(c.filterVisible(h.buttons));M.enter().append("g").classed("button",!0),M.exit().remove(),M.each(function(N){var P=k.select(this),R=g(O,N);N._isActive=function(A,q,j){if(q.step==="all")return A.autorange===!0;var X=Object.keys(j);return A.range[0]===j[X[0]]&&A.range[1]===j[X[1]]}(O,N,R),P.call(C,h,N),P.call(y,h,N,m),P.on("click",function(){m._dragged||v.call("_guiRelayout",m,R)}),P.on("mouseover",function(){N._isHovered=!0,P.call(C,h,N)}),P.on("mouseout",function(){N._isHovered=!1,P.call(C,h,N)})}),function(N,P,R,A,q){var j=0,X=0,F=R.borderwidth;P.each(function(){var se=k.select(this).select(".selector-text"),re=R.font.size*s,ne=Math.max(re*t.lineCount(se),16)+3;X=Math.max(X,ne)}),P.each(function(){var se=k.select(this),re=se.select(".selector-rect"),ne=se.select(".selector-text"),$=ne.node()&&b.bBox(ne.node()).width,te=R.font.size*s,ae=t.lineCount(ne),ce=Math.max($+10,d.minButtonWidth);se.attr("transform",a(F+j,F)),re.attr({x:0,y:0,width:ce,height:X}),t.positionText(ne,ce/2,X/2-(ae-1)*te/2+3),j+=ce+5});var W=N._fullLayout._size,Y=W.l+W.w*R.x,B=W.t+W.h*(1-R.y),G="left";c.isRightAnchor(R)&&(Y-=j,G="right"),c.isCenterAnchor(R)&&(Y-=j/2,G="center");var J="top";c.isBottomAnchor(R)&&(B-=X,J="bottom"),c.isMiddleAnchor(R)&&(B-=X/2,J="middle"),j=Math.ceil(j),X=Math.ceil(X),Y=Math.round(Y),B=Math.round(B),n.autoMargin(N,A+"-range-selector",{x:R.x,y:R.y,l:j*l[G],r:j*u[G],b:X*u[J],t:X*l[J]}),q.attr("transform",a(Y,B))}(m,M,h,O._name,S)})}},48040:function(L,T,e){var k=e(73220),v=e(3400).titleCase;L.exports=function(n,w){var b=n._name,c={};if(w.step==="all")c[b+".autorange"]=!0;else{var a=function(t,o){var i,s=t.range,l=new Date(t.r2l(s[1])),u=o.step,d=k["utc"+v(u)],g=o.count;switch(o.stepmode){case"backward":i=t.l2r(+d.offset(l,-g));break;case"todate":var f=d.offset(l,-g);i=t.l2r(+d.ceil(f))}return[i,s[1]]}(n,w);c[b+".range[0]"]=a[0],c[b+".range[1]"]=a[1]}return c}},41152:function(L,T,e){L.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:e(26680)}}},layoutAttributes:e(26680),handleDefaults:e(22148),draw:e(50216)}},11200:function(L,T,e){var k=e(22548);L.exports={bgcolor:{valType:"color",dflt:k.background,editType:"plot"},bordercolor:{valType:"color",dflt:k.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"}},26652:function(L,T,e){var k=e(79811).list,v=e(19280).getAutoRange,n=e(74636);L.exports=function(w){for(var b=k(w,"x",!0),c=0;c<b.length;c++){var a=b[c],t=a[n.name];t&&t.visible&&t.autorange&&(t._input.autorange=!0,t._input.range=t.range=v(w,a))}}},74636:function(L){L.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}},94040:function(L,T,e){var k=e(3400),v=e(31780),n=e(79811),w=e(11200),b=e(10936);L.exports=function(c,a,t){var o=c[t],i=a[t];if(o.rangeslider||a._requestRangeslider[i._id]){k.isPlainObject(o.rangeslider)||(o.rangeslider={});var s,l,u=o.rangeslider,d=v.newContainer(i,"rangeslider");if(S("visible")){S("bgcolor",a.plot_bgcolor),S("bordercolor"),S("borderwidth"),S("thickness"),S("autorange",!i.isValidRange(u.range)),S("range");var g=a._subplots;if(g)for(var f=g.cartesian.filter(function(h){return h.substr(0,h.indexOf("y"))===n.name2id(t)}).map(function(h){return h.substr(h.indexOf("y"),h.length)}),C=k.simpleMap(f,n.id2name),y=0;y<C.length;y++){var m=C[y];s=u[m]||{},l=v.newContainer(d,m,"yaxis");var x,_=a[m];s.range&&_.isValidRange(s.range)&&(x="fixed"),O("rangemode",x)!=="match"&&O("range",_.range.slice())}d._input=u}}function S(h,M){return k.coerce(u,d,w,h,M)}function O(h,M){return k.coerce(s,l,b,h,M)}}},20060:function(L,T,e){var k=e(33428),v=e(24040),n=e(7316),w=e(3400),b=w.strTranslate,c=e(43616),a=e(76308),t=e(81668),o=e(57952),i=e(79811),s=e(86476),l=e(93972),u=e(74636);function d(_){return typeof _.clientX=="number"?_.clientX:_.touches&&_.touches.length>0?_.touches[0].clientX:0}function g(_,S,O,h){var M=w.ensureSingle(_,"rect",u.bgClassName,function(A){A.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),N=h.borderwidth%2==0?h.borderwidth:h.borderwidth-1,P=-h._offsetShift,R=c.crispRound(S,h.borderwidth);M.attr({width:h._width+N,height:h._height+N,transform:b(P,P),"stroke-width":R}).call(a.stroke,h.bordercolor).call(a.fill,h.bgcolor)}function f(_,S,O,h){var M=S._fullLayout;w.ensureSingleById(M._topdefs,"clipPath",h._clipId,function(N){N.append("rect").attr({x:0,y:0})}).select("rect").attr({width:h._width,height:h._height})}function C(_,S,O,h){var M,N=S.calcdata,P=_.selectAll("g."+u.rangePlotClassName).data(O._subplotsWith,w.identity);P.enter().append("g").attr("class",function(R){return u.rangePlotClassName+" "+R}).call(c.setClipUrl,h._clipId,S),P.order(),P.exit().remove(),P.each(function(R,A){var q=k.select(this),j=A===0,X=i.getFromId(S,R,"y"),F=X._name,W=h[F],Y={data:[],layout:{xaxis:{type:O.type,domain:[0,1],range:h.range.slice(),calendar:O.calendar},width:h._width,height:h._height,margin:{t:0,b:0,l:0,r:0}},_context:S._context};O.rangebreaks&&(Y.layout.xaxis.rangebreaks=O.rangebreaks),Y.layout[F]={type:X.type,domain:[0,1],range:W.rangemode!=="match"?W.range.slice():X.range.slice(),calendar:X.calendar},X.rangebreaks&&(Y.layout[F].rangebreaks=X.rangebreaks),n.supplyDefaults(Y);var B=Y._fullLayout.xaxis,G=Y._fullLayout[F];B.clearCalc(),B.setScale(),G.clearCalc(),G.setScale();var J={id:R,plotgroup:q,xaxis:B,yaxis:G,isRangePlot:!0};j?M=J:(J.mainplot="xy",J.mainplotinfo=M),o.rangePlot(S,J,function(se,re){for(var ne=[],$=0;$<se.length;$++){var te=se[$],ae=te[0].trace;ae.xaxis+ae.yaxis===re&&ne.push(te)}return ne}(N,R))})}function y(_,S,O,h,M){w.ensureSingle(_,"rect",u.maskMinClassName,function(N){N.attr({x:0,y:0,"shape-rendering":"crispEdges"})}).attr("height",h._height).call(a.fill,u.maskColor),w.ensureSingle(_,"rect",u.maskMaxClassName,function(N){N.attr({y:0,"shape-rendering":"crispEdges"})}).attr("height",h._height).call(a.fill,u.maskColor),M.rangemode!=="match"&&(w.ensureSingle(_,"rect",u.maskMinOppAxisClassName,function(N){N.attr({y:0,"shape-rendering":"crispEdges"})}).attr("width",h._width).call(a.fill,u.maskOppAxisColor),w.ensureSingle(_,"rect",u.maskMaxOppAxisClassName,function(N){N.attr({y:0,"shape-rendering":"crispEdges"})}).attr("width",h._width).style("border-top",u.maskOppBorder).call(a.fill,u.maskOppAxisColor))}function m(_,S,O,h){S._context.staticPlot||w.ensureSingle(_,"rect",u.slideBoxClassName,function(M){M.attr({y:0,cursor:u.slideBoxCursor,"shape-rendering":"crispEdges"})}).attr({height:h._height,fill:u.slideBoxFill})}function x(_,S,O,h){var M=w.ensureSingle(_,"g",u.grabberMinClassName),N=w.ensureSingle(_,"g",u.grabberMaxClassName),P={x:0,width:u.handleWidth,rx:u.handleRadius,fill:a.background,stroke:a.defaultLine,"stroke-width":u.handleStrokeWidth,"shape-rendering":"crispEdges"},R={y:Math.round(h._height/4),height:Math.round(h._height/2)};w.ensureSingle(M,"rect",u.handleMinClassName,function(q){q.attr(P)}).attr(R),w.ensureSingle(N,"rect",u.handleMaxClassName,function(q){q.attr(P)}).attr(R);var A={width:u.grabAreaWidth,x:0,y:0,fill:u.grabAreaFill,cursor:S._context.staticPlot?void 0:u.grabAreaCursor};w.ensureSingle(M,"rect",u.grabAreaMinClassName,function(q){q.attr(A)}).attr("height",h._height),w.ensureSingle(N,"rect",u.grabAreaMaxClassName,function(q){q.attr(A)}).attr("height",h._height)}L.exports=function(_){for(var S=_._fullLayout,O=S._rangeSliderData,h=0;h<O.length;h++){var M=O[h][u.name];M._clipId=M._id+"-"+S._uid}var N=S._infolayer.selectAll("g."+u.containerClassName).data(O,function(P){return P._name});N.exit().each(function(P){var R=P[u.name];S._topdefs.select("#"+R._clipId).remove()}).remove(),O.length!==0&&(N.enter().append("g").classed(u.containerClassName,!0).attr("pointer-events","all"),N.each(function(P){var R=k.select(this),A=P[u.name],q=S[i.id2name(P.anchor)],j=A[i.id2name(P.anchor)];if(A.range){var X,F=w.simpleMap(A.range,P.r2l),W=w.simpleMap(P.range,P.r2l);X=W[0]<W[1]?[Math.min(F[0],W[0]),Math.max(F[1],W[1])]:[Math.max(F[0],W[0]),Math.min(F[1],W[1])],A.range=A._input.range=w.simpleMap(X,P.l2r)}P.cleanRange("rangeslider.range");var Y=S._size,B=P.domain;A._width=Y.w*(B[1]-B[0]);var G=Math.round(Y.l+Y.w*B[0]),J=Math.round(Y.t+Y.h*(1-P._counterDomainMin)+(P.side==="bottom"?P._depth:0)+A._offsetShift+u.extraPad);R.attr("transform",b(G,J)),A._rl=w.simpleMap(A.range,P.r2l);var se=A._rl[0],re=A._rl[1],ne=re-se;if(A.p2d=function(_e){return _e/A._width*ne+se},A.d2p=function(_e){return(_e-se)/ne*A._width},P.rangebreaks){var $=P.locateBreaks(se,re);if($.length){var te,ae,ce=0;for(te=0;te<$.length;te++)ce+=(ae=$[te]).max-ae.min;var ue=A._width/(re-se-ce),de=[-ue*se];for(te=0;te<$.length;te++)ae=$[te],de.push(de[de.length-1]-ue*(ae.max-ae.min));for(A.d2p=function(_e){for(var we=de[0],Ce=0;Ce<$.length;Ce++){var Se=$[Ce];if(_e>=Se.max)we=de[Ce+1];else if(_e<Se.min)break}return we+ue*_e},te=0;te<$.length;te++)(ae=$[te]).pmin=A.d2p(ae.min),ae.pmax=A.d2p(ae.max);A.p2d=function(_e){for(var we=de[0],Ce=0;Ce<$.length;Ce++){var Se=$[Ce];if(_e>=Se.pmax)we=de[Ce+1];else if(_e<Se.pmin)break}return(_e-we)/ue}}}if(j.rangemode!=="match"){var me=q.r2l(j.range[0]),be=q.r2l(j.range[1])-me;A.d2pOppAxis=function(_e){return(_e-me)/be*A._height}}R.call(g,_,P,A).call(f,_,P,A).call(C,_,P,A).call(y,_,P,A,j).call(m,_,P,A).call(x,_,P,A),function(_e,we,Ce,Se){if(!we._context.staticPlot){var Pe=_e.select("rect."+u.slideBoxClassName).node(),Ne=_e.select("rect."+u.grabAreaMinClassName).node(),Oe=_e.select("rect."+u.grabAreaMaxClassName).node();_e.on("mousedown",pe),_e.on("touchstart",pe)}function pe(){var fe=k.event,xe=fe.target,ze=d(fe),Le=ze-_e.node().getBoundingClientRect().left,Ue=Se.d2p(Ce._rl[0]),Re=Se.d2p(Ce._rl[1]),Fe=s.coverSlip();function ve(Ee){var je,Be,Ie,Ze=+d(Ee)-ze;switch(xe){case Pe:if(Ie="ew-resize",Ue+Ze>Ce._length||Re+Ze<0)return;je=Ue+Ze,Be=Re+Ze;break;case Ne:if(Ie="col-resize",Ue+Ze>Ce._length)return;je=Ue+Ze,Be=Re;break;case Oe:if(Ie="col-resize",Re+Ze<0)return;je=Ue,Be=Re+Ze;break;default:Ie="ew-resize",je=Le,Be=Le+Ze}if(Be<je){var He=Be;Be=je,je=He}Se._pixelMin=je,Se._pixelMax=Be,l(k.select(Fe),Ie),function(at,ft,ut,_t){function Nt(lt){return ut.l2r(w.constrain(lt,_t._rl[0],_t._rl[1]))}var Tt=Nt(_t.p2d(_t._pixelMin)),st=Nt(_t.p2d(_t._pixelMax));window.requestAnimationFrame(function(){v.call("_guiRelayout",ft,ut._name+".range",[Tt,st])})}(0,we,Ce,Se)}function ke(){Fe.removeEventListener("mousemove",ve),Fe.removeEventListener("mouseup",ke),this.removeEventListener("touchmove",ve),this.removeEventListener("touchend",ke),w.removeElement(Fe)}this.addEventListener("touchmove",ve),this.addEventListener("touchend",ke),Fe.addEventListener("mousemove",ve),Fe.addEventListener("mouseup",ke)}}(R,_,P,A),function(_e,we,Ce,Se,Pe,Ne){var Oe=u.handleWidth/2;function pe(Ee){return w.constrain(Ee,0,Se._width)}function fe(Ee){return w.constrain(Ee,0,Se._height)}function xe(Ee){return w.constrain(Ee,-Oe,Se._width+Oe)}var ze=pe(Se.d2p(Ce._rl[0])),Le=pe(Se.d2p(Ce._rl[1]));if(_e.select("rect."+u.slideBoxClassName).attr("x",ze).attr("width",Le-ze),_e.select("rect."+u.maskMinClassName).attr("width",ze),_e.select("rect."+u.maskMaxClassName).attr("x",Le).attr("width",Se._width-Le),Ne.rangemode!=="match"){var Ue=Se._height-fe(Se.d2pOppAxis(Pe._rl[1])),Re=Se._height-fe(Se.d2pOppAxis(Pe._rl[0]));_e.select("rect."+u.maskMinOppAxisClassName).attr("x",ze).attr("height",Ue).attr("width",Le-ze),_e.select("rect."+u.maskMaxOppAxisClassName).attr("x",ze).attr("y",Re).attr("height",Se._height-Re).attr("width",Le-ze),_e.select("rect."+u.slideBoxClassName).attr("y",Ue).attr("height",Re-Ue)}var Fe=.5,ve=Math.round(xe(ze-Oe))-Fe,ke=Math.round(xe(Le-Oe))+Fe;_e.select("g."+u.grabberMinClassName).attr("transform",b(ve,Fe)),_e.select("g."+u.grabberMaxClassName).attr("transform",b(ke,Fe))}(R,0,P,A,q,j),P.side==="bottom"&&t.draw(_,P._id+"title",{propContainer:P,propName:P._name+".title",placeholder:S._dfltTitle.x,attributes:{x:P._offset+P._length/2,y:J+A._height+A._offsetShift+10+1.5*P.title.font.size,"text-anchor":"middle"}})}))}},97944:function(L,T,e){var k=e(79811),v=e(72736),n=e(74636),w=e(84284).LINE_SPACING,b=n.name;function c(a){var t=a&&a[b];return t&&t.visible}T.isVisible=c,T.makeData=function(a){var t=k.list({_fullLayout:a},"x",!0),o=a.margin,i=[];if(!a._has("gl2d"))for(var s=0;s<t.length;s++){var l=t[s];if(c(l)){i.push(l);var u=l[b];u._id=b+l._id,u._height=(a.height-o.b-o.t)*u.thickness,u._offsetShift=Math.floor(u.borderwidth/2)}}a._rangeSliderData=i},T.autoMarginOpts=function(a,t){var o=a._fullLayout,i=t[b],s=t._id.charAt(0),l=0,u=0;return t.side==="bottom"&&(l=t._depth,t.title.text!==o._dfltTitle[s]&&(u=1.5*t.title.font.size+10+i._offsetShift,u+=(t.title.text.match(v.BR_TAG_ALL)||[]).length*t.title.font.size*w)),{x:0,y:t._counterDomainMin,l:0,r:0,t:0,b:i._height+l+Math.max(o.margin.b,u),pad:n.extraPad+2*i._offsetShift}}},49692:function(L,T,e){var k=e(3400),v=e(11200),n=e(10936),w=e(97944);L.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:k.extendFlat({},v,{yaxis:n})}}},layoutAttributes:e(11200),handleDefaults:e(94040),calcAutorange:e(26652),draw:e(20060),isVisible:w.isVisible,makeData:w.makeData,autoMarginOpts:w.autoMarginOpts}},10936:function(L){L.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"}},93956:function(L,T,e){var k=e(13916),v=e(52904).line,n=e(98192).u,w=e(92880).extendFlat,b=e(67824).overrideAll,c=e(31780).templatedArray;e(36208),L.exports=b(c("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:w({},k.xref,{}),yref:w({},k.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:v.color,width:w({},v.width,{min:1,dflt:1}),dash:w({},n,{dflt:"dot"})}}),"arraydraw","from-root")},83280:function(L){L.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}},74224:function(L,T,e){var k=e(3400),v=e(54460),n=e(51272),w=e(93956),b=e(65152);function c(a,t,o){function i(P,R){return k.coerce(a,t,w,P,R)}var s=i("path"),l=i("type",s?"path":"rect")!=="path";l&&delete t.path,i("opacity"),i("line.color"),i("line.width"),i("line.dash");for(var u=["x","y"],d=0;d<2;d++){var g,f,C,y=u[d],m={_fullLayout:o},x=v.coerceRef(a,t,m,y);if((g=v.getFromId(m,x))._selectionIndices.push(t._index),C=b.rangeToShapePosition(g),f=b.shapePositionToRange(g),l){var _=y+"0",S=y+"1",O=a[_],h=a[S];a[_]=f(a[_],!0),a[S]=f(a[S],!0),v.coercePosition(t,m,i,x,_),v.coercePosition(t,m,i,x,S);var M=t[_],N=t[S];M!==void 0&&N!==void 0&&(t[_]=C(M),t[S]=C(N),a[_]=O,a[S]=h)}}l&&k.noneOrAll(a,t,["x0","x1","y0","y1"])}L.exports=function(a,t){n(a,t,{name:"selections",handleItemDefaults:c});for(var o=t.selections,i=0;i<o.length;i++){var s=o[i];s&&s.path===void 0&&(s.x0!==void 0&&s.x1!==void 0&&s.y0!==void 0&&s.y1!==void 0||(t.selections[i]=null))}}},23640:function(L,T,e){var k=e(9856).readPaths,v=e(55496),n=e(1936).clearOutlineControllers,w=e(76308),b=e(43616),c=e(31780).arrayEditor,a=e(65152),t=a.getPathString;function o(d){var g=d._fullLayout;for(var f in n(d),g._selectionLayer.selectAll("path").remove(),g._plots){var C=g._plots[f].selectionLayer;C&&C.selectAll("path").remove()}for(var y=0;y<g.selections.length;y++)s(d,y)}function i(d){return d._context.editSelection}function s(d,g){d._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+g+'"]').remove();var f=a.makeSelectionsOptionsAndPlotinfo(d,g),C=f.options,y=f.plotinfo;C._input&&function(m){var x=t(d,C),_={"data-index":g,"fill-rule":"evenodd",d:x},S=C.opacity,O="rgba(0,0,0,0)",h=C.line.color||w.contrast(d._fullLayout.plot_bgcolor),M=C.line.width,N=C.line.dash;M||(M=5,N="solid");var P=i(d)&&d._fullLayout._activeSelectionIndex===g;P&&(O=d._fullLayout.activeselection.fillcolor,S=d._fullLayout.activeselection.opacity);for(var R=[],A=1;A>=0;A--){var q=m.append("path").attr(_).style("opacity",A?.1:S).call(w.stroke,h).call(w.fill,O).call(b.dashLine,A?"solid":N,A?4+M:M);if(l(q,d,C),P){var j=c(d.layout,"selections",C);q.style({cursor:"move"});var X={element:q.node(),plotinfo:y,gd:d,editHelpers:j,isActiveSelection:!0},F=k(x,d);v(F,q,X)}else q.style("pointer-events",A?"all":"none");R[A]=q}var W=R[0];R[1].node().addEventListener("click",function(){return function(Y,B){if(i(Y)){var G=+B.node().getAttribute("data-index");if(G>=0){if(G===Y._fullLayout._activeSelectionIndex)return void u(Y);Y._fullLayout._activeSelectionIndex=G,Y._fullLayout._deactivateSelection=u,o(Y)}}}(d,W)})}(d._fullLayout._selectionLayer)}function l(d,g,f){var C=f.xref+f.yref;b.setClipUrl(d,"clip"+g._fullLayout._uid+C,g)}function u(d){i(d)&&d._fullLayout._activeSelectionIndex>=0&&(n(d),delete d._fullLayout._activeSelectionIndex,o(d))}L.exports={draw:o,drawOne:s,activateLastSelection:function(d){if(i(d)){var g=d._fullLayout.selections.length-1;d._fullLayout._activeSelectionIndex=g,d._fullLayout._deactivateSelection=u,o(d)}}}},34200:function(L,T,e){var k=e(98192).u,v=e(92880).extendFlat;L.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:v({},k,{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"}}},81004:function(L){L.exports=function(T,e,k){k("newselection.mode"),k("newselection.line.width")&&(k("newselection.line.color"),k("newselection.line.dash")),k("activeselection.fillcolor"),k("activeselection.opacity")}},5968:function(L,T,e){var k=e(72760).selectMode,v=e(1936).clearOutline,n=e(9856),w=n.readPaths,b=n.writePaths,c=n.fixDatesForPaths;L.exports=function(a,t){if(a.length){var o=a[0][0];if(o){var i=o.getAttribute("d"),s=t.gd,l=s._fullLayout.newselection,u=t.plotinfo,d=u.xaxis,g=u.yaxis,f=t.isActiveSelection,C=t.dragmode,y=(s.layout||{}).selections||[];if(!k(C)&&f!==void 0){var m=s._fullLayout._activeSelectionIndex;if(m<y.length)switch(s._fullLayout.selections[m].type){case"rect":C="select";break;case"path":C="lasso"}}var x,_=w(i,s,u,f),S={xref:d._id,yref:g._id,opacity:l.opacity,line:{color:l.line.color,width:l.line.width,dash:l.line.dash}};_.length===1&&(x=_[0]),x&&x.length===5&&C==="select"?(S.type="rect",S.x0=x[0][1],S.y0=x[0][2],S.x1=x[2][1],S.y1=x[2][2]):(S.type="path",d&&g&&c(_,d,g),S.path=b(_),x=null),v(s);for(var O=t.editHelpers,h=(O||{}).modifyItem,M=[],N=0;N<y.length;N++){var P=s._fullLayout.selections[N];if(P){if(M[N]=P._input,f!==void 0&&N===s._fullLayout._activeSelectionIndex){var R=S;switch(P.type){case"rect":h("x0",R.x0),h("x1",R.x1),h("y0",R.y0),h("y1",R.y1);break;case"path":h("path",R.path)}}}else M[N]=P}return f===void 0?(M.push(S),M):O?O.getUpdateObj():{}}}}},5840:function(L,T,e){var k=e(3400).strTranslate;function v(n,w){switch(n.type){case"log":return n.p2d(w);case"date":return n.p2r(w,0,n.calendar);default:return n.p2r(w)}}L.exports={p2r:v,r2p:function(n,w){switch(n.type){case"log":return n.d2p(w);case"date":return n.r2p(w,0,n.calendar);default:return n.r2p(w)}},axValue:function(n){var w=n._id.charAt(0)==="y"?1:0;return function(b){return v(n,b[w])}},getTransform:function(n){return k(n.xaxis._offset,n.yaxis._offset)}}},22676:function(L,T,e){var k=e(23640),v=e(43156);L.exports={moduleType:"component",name:"selections",layoutAttributes:e(93956),supplyLayoutDefaults:e(74224),supplyDrawNewSelectionDefaults:e(81004),includeBasePlot:e(36632)("selections"),draw:k.draw,drawOne:k.drawOne,reselect:v.reselect,prepSelect:v.prepSelect,clearOutline:v.clearOutline,clearSelectionsCache:v.clearSelectionsCache,selectOnClick:v.selectOnClick}},43156:function(L,T,e){var k=e(14756),v=e(61456),n=e(24040),w=e(43616).dashStyle,b=e(76308),c=e(93024),a=e(10624).makeEventData,t=e(72760),o=t.freeMode,i=t.rectMode,s=t.drawMode,l=t.openMode,u=t.selectMode,d=e(65152),g=e(85448),f=e(55496),C=e(1936).clearOutline,y=e(9856),m=y.handleEllipse,x=y.readPaths,_=e(93940).newShapes,S=e(5968),O=e(23640).activateLastSelection,h=e(3400),M=h.sorterAsc,N=e(92065),P=e(91200),R=e(79811).getFromId,A=e(73696),q=e(39172).redrawReglTraces,j=e(83280),X=j.MINSELECT,F=N.filter,W=N.tester,Y=e(5840),B=Y.p2r,G=Y.axValue,J=Y.getTransform;function se(ve){return ve.subplot!==void 0}function re(ve,ke,Ee,je,Be,Ie,Ze){var He,at,ft,ut,_t,Nt,Tt,st,lt,Vt=ke._hoverdata,jt=ke._fullLayout.clickmode.indexOf("event")>-1,Kt=[];if(function(et){return et&&Array.isArray(et)&&et[0].hoverOnBox!==!0}(Vt)){ae(ve,ke,Ie);var It=function(et,ht){var dt,De,Ge=et[0],pt=-1,nt=[];for(De=0;De<ht.length;De++)if(dt=ht[De],Ge.fullData._expandedIndex===dt.cd[0].trace._expandedIndex){if(Ge.hoverOnBox===!0)break;Ge.pointNumber!==void 0?pt=Ge.pointNumber:Ge.binNumber!==void 0&&(pt=Ge.binNumber,nt=Ge.pointNumbers);break}return{pointNumber:pt,pointNumbers:nt,searchInfo:dt}}(Vt,He=de(ke,Ee,je,Be));if(It.pointNumbers.length>0?function(et,ht){var dt,De,Ge,pt=[];for(Ge=0;Ge<et.length;Ge++)(dt=et[Ge]).cd[0].trace.selectedpoints&&dt.cd[0].trace.selectedpoints.length>0&&pt.push(dt);if(pt.length===1&&pt[0]===ht.searchInfo&&(De=ht.searchInfo.cd[0].trace).selectedpoints.length===ht.pointNumbers.length){for(Ge=0;Ge<ht.pointNumbers.length;Ge++)if(De.selectedpoints.indexOf(ht.pointNumbers[Ge])<0)return!1;return!0}return!1}(He,It):function(et){var ht,dt,De=0;for(dt=0;dt<et.length;dt++)if((ht=et[dt].cd[0].trace).selectedpoints&&(ht.selectedpoints.length>1||(De+=ht.selectedpoints.length)>1))return!1;return De===1}(He)&&(Nt=be(It))){for(Ze&&Ze.remove(),lt=0;lt<He.length;lt++)(at=He[lt])._module.selectPoints(at,!1);_e(ke,He),ce(Ie),jt&&Fe(ke)}else{for(Tt=ve.shiftKey&&(Nt!==void 0?Nt:be(It)),ft=function(et,ht,dt){return{pointNumber:et,searchInfo:ht,subtract:!!dt}}(It.pointNumber,It.searchInfo,Tt),ut=te(Ie.selectionDefs.concat([ft])),lt=0;lt<He.length;lt++)if(_t=Ce(He[lt]._module.selectPoints(He[lt],ut),He[lt]),Kt.length)for(var $e=0;$e<_t.length;$e++)Kt.push(_t[$e]);else Kt=_t;if(_e(ke,He,st={points:Kt}),ft&&Ie&&Ie.selectionDefs.push(ft),Ze){var tt=Ie.mergedPolygons,Xe=l(Ie.dragmode);f(Se(tt,Xe),Ze,Ie)}jt&&Re(ke,st)}}}function ne(ve){return"pointNumber"in ve&&"searchInfo"in ve}function $(ve){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(ke,Ee,je,Be){var Ie=ve.searchInfo.cd[0].trace._expandedIndex;return Be.cd[0].trace._expandedIndex===Ie&&je===ve.pointNumber},isRect:!1,degenerate:!1,subtract:!!ve.subtract}}function te(ve){if(ve.length){for(var ke=[],Ee=ne(ve[0])?0:ve[0][0][0],je=Ee,Be=ne(ve[0])?0:ve[0][0][1],Ie=Be,Ze=0;Ze<ve.length;Ze++)if(ne(ve[Ze]))ke.push($(ve[Ze]));else{var He=W(ve[Ze]);He.subtract=!!ve[Ze].subtract,ke.push(He),Ee=Math.min(Ee,He.xmin),je=Math.max(je,He.xmax),Be=Math.min(Be,He.ymin),Ie=Math.max(Ie,He.ymax)}return{xmin:Ee,xmax:je,ymin:Be,ymax:Ie,pts:[],contains:function(at,ft,ut,_t){for(var Nt=!1,Tt=0;Tt<ke.length;Tt++)ke[Tt].contains(at,ft,ut,_t)&&(Nt=!ke[Tt].subtract);return Nt},isRect:!1,degenerate:!1}}}function ae(ve,ke,Ee){var je=ke._fullLayout,Be=Ee.plotinfo,Ie=Ee.dragmode,Ze=je._lastSelectedSubplot&&je._lastSelectedSubplot===Be.id,He=(ve.shiftKey||ve.altKey)&&!(s(Ie)&&l(Ie));Ze&&He&&Be.selection&&Be.selection.selectionDefs&&!Ee.selectionDefs?(Ee.selectionDefs=Be.selection.selectionDefs,Ee.mergedPolygons=Be.selection.mergedPolygons):He&&Be.selection||ce(Ee),Ze||(C(ke),je._lastSelectedSubplot=Be.id)}function ce(ve,ke){var Ee=ve.dragmode,je=ve.plotinfo,Be=ve.gd;(function(_t){return _t._fullLayout._activeShapeIndex>=0})(Be)&&Be._fullLayout._deactivateShape(Be),function(_t){return _t._fullLayout._activeSelectionIndex>=0}(Be)&&Be._fullLayout._deactivateSelection(Be);var Ie=Be._fullLayout._zoomlayer,Ze=s(Ee),He=u(Ee);if(Ze||He){var at,ft,ut=Ie.selectAll(".select-outline-"+je.id);ut&&Be._fullLayout._outlining&&(Ze&&(at=_(ut,ve)),at&&n.call("_guiRelayout",Be,{shapes:at}),He&&!se(ve)&&(ft=S(ut,ve)),ft&&(Be._fullLayout._noEmitSelectedAtStart=!0,n.call("_guiRelayout",Be,{selections:ft}).then(function(){ke&&O(Be)})),Be._fullLayout._outlining=!1)}je.selection={},je.selection.selectionDefs=ve.selectionDefs=[],je.selection.mergedPolygons=ve.mergedPolygons=[]}function ue(ve){return ve._id}function de(ve,ke,Ee,je){if(!ve.calcdata)return[];var Be,Ie,Ze,He=[],at=ke.map(ue),ft=Ee.map(ue);for(Ze=0;Ze<ve.calcdata.length;Ze++)if((Ie=(Be=ve.calcdata[Ze])[0].trace).visible===!0&&Ie._module&&Ie._module.selectPoints)if(!se({subplot:je})||Ie.subplot!==je&&Ie.geo!==je)if(Ie.type==="splom"){if(Ie._xaxes[at[0]]&&Ie._yaxes[ft[0]]){var ut=me(Ie._module,Be,ke[0],Ee[0]);ut.scene=ve._fullLayout._splomScenes[Ie.uid],He.push(ut)}}else if(Ie.type==="sankey"){var _t=me(Ie._module,Be,ke[0],Ee[0]);He.push(_t)}else{if(!(at.indexOf(Ie.xaxis)!==-1||Ie._xA&&Ie._xA.overlaying)||!(ft.indexOf(Ie.yaxis)!==-1||Ie._yA&&Ie._yA.overlaying))continue;He.push(me(Ie._module,Be,R(ve,Ie.xaxis),R(ve,Ie.yaxis)))}else He.push(me(Ie._module,Be,ke[0],Ee[0]));return He}function me(ve,ke,Ee,je){return{_module:ve,cd:ke,xaxis:Ee,yaxis:je}}function be(ve){var ke=ve.searchInfo.cd[0].trace,Ee=ve.pointNumber,je=ve.pointNumbers,Be=je.length>0?je[0]:Ee;return!!ke.selectedpoints&&ke.selectedpoints.indexOf(Be)>-1}function _e(ve,ke,Ee){var je,Be;for(je=0;je<ke.length;je++){var Ie=ke[je].cd[0].trace._fullInput,Ze=ve._fullLayout._tracePreGUI[Ie.uid]||{};Ze.selectedpoints===void 0&&(Ze.selectedpoints=Ie._input.selectedpoints||null)}if(Ee){var He=Ee.points||[];for(je=0;je<ke.length;je++)(Be=ke[je].cd[0].trace)._input.selectedpoints=Be._fullInput.selectedpoints=[],Be._fullInput!==Be&&(Be.selectedpoints=[]);for(var at=0;at<He.length;at++){var ft=He[at],ut=ft.data,_t=ft.fullData,Nt=ft.pointIndex,Tt=ft.pointIndices;Tt?([].push.apply(ut.selectedpoints,Tt),Be._fullInput!==Be&&[].push.apply(_t.selectedpoints,Tt)):(ut.selectedpoints.push(Nt),Be._fullInput!==Be&&_t.selectedpoints.push(Nt))}}else for(je=0;je<ke.length;je++)delete(Be=ke[je].cd[0].trace).selectedpoints,delete Be._input.selectedpoints,Be._fullInput!==Be&&delete Be._fullInput.selectedpoints;(function(st,lt){for(var Vt=!1,jt=0;jt<lt.length;jt++){var Kt=lt[jt],It=Kt.cd;n.traceIs(It[0].trace,"regl")&&(Vt=!0);var $e=Kt._module,tt=$e.styleOnSelect||$e.style;tt&&(tt(st,It,It[0].node3),It[0].nodeRangePlot3&&tt(st,It,It[0].nodeRangePlot3))}Vt&&(A(st),q(st))})(ve,ke)}function we(ve,ke,Ee){for(var je=(Ee?k.difference:k.union)({regions:ve},{regions:[ke]}).regions.reverse(),Be=0;Be<je.length;Be++){var Ie=je[Be];Ie.subtract=xe(Ie,je.slice(0,Be))}return je}function Ce(ve,ke){if(Array.isArray(ve))for(var Ee=ke.cd,je=ke.cd[0].trace,Be=0;Be<ve.length;Be++)ve[Be]=a(ve[Be],je,Ee);return ve}function Se(ve,ke){for(var Ee=[],je=0;je<ve.length;je++){Ee[je]=[];for(var Be=0;Be<ve[je].length;Be++){Ee[je][Be]=[],Ee[je][Be][0]=Be?"L":"M";for(var Ie=0;Ie<ve[je][Be].length;Ie++)Ee[je][Be].push(ve[je][Be][Ie])}ke||Ee[je].push(["Z",Ee[je][0][1],Ee[je][0][2]])}return Ee}function Pe(ve,ke){for(var Ee,je,Be=[],Ie=[],Ze=0;Ze<ke.length;Ze++){var He=ke[Ze];je=He._module.selectPoints(He,ve),Ie.push(je),Ee=Ce(je,He),Be=Be.concat(Ee)}return Be}function Ne(ve,ke,Ee,je,Be){var Ie,Ze,He,at=!!je;Be&&(Ie=Be.plotinfo,Ze=Be.xaxes[0]._id,He=Be.yaxes[0]._id);var ft=[],ut=[],_t=fe(ve),Nt=ve._fullLayout;if(Ie){var Tt=Nt._zoomlayer,st=Nt.dragmode,lt=s(st),Vt=u(st);if(lt||Vt){var jt=R(ve,Ze,"x"),Kt=R(ve,He,"y");if(jt&&Kt){var It=Tt.selectAll(".select-outline-"+Ie.id);if(It&&ve._fullLayout._outlining&&It.length){for(var $e=It[0][0].getAttribute("d"),tt=x($e,ve,Ie),Xe=[],et=0;et<tt.length;et++){for(var ht=tt[et],dt=[],De=0;De<ht.length;De++)dt.push([ze(jt,ht[De][1]),ze(Kt,ht[De][2])]);dt.xref=Ze,dt.yref=He,dt.subtract=xe(dt,Xe),Xe.push(dt)}_t=_t.concat(Xe)}}}}var Ge=Ze&&He?[Ze+He]:Nt._subplots.cartesian;(function(Wn){var Gn=Wn.calcdata;if(Gn)for(var jn=0;jn<Gn.length;jn++){var er=Gn[jn][0].trace,Qn=Wn._fullLayout._splomScenes;if(Qn){var vr=Qn[er.uid];vr&&(vr.selectBatch=[])}}})(ve);for(var pt={},nt=0;nt<Ge.length;nt++){var bt=Ge[nt],wt=bt.indexOf("y"),St=bt.slice(0,wt),vt=bt.slice(wt),Pt=Ze&&He?Ee:void 0;if(Pt=pe(_t,St,vt,Pt)){var Lt=je;if(!at){var Ct=R(ve,St,"x"),Rt=R(ve,vt,"y");Lt=de(ve,[Ct],[Rt],bt);for(var At=0;At<Lt.length;At++){var Bt=Lt[At],nn=Bt.cd[0],hn=nn.trace;if(Bt._module.name==="scattergl"&&!nn.t.xpx){var Ht=hn.x,Qt=hn.y,un=hn._length;nn.t.xpx=[],nn.t.ypx=[];for(var In=0;In<un;In++)nn.t.xpx[In]=Ct.c2p(Ht[In]),nn.t.ypx[In]=Rt.c2p(Qt[In])}Bt._module.name==="splom"&&(pt[hn.uid]||(pt[hn.uid]=!0))}}var zn=Pe(Pt,Lt);ft=ft.concat(zn),ut=ut.concat(Lt)}}var wn={points:ft};_e(ve,ut,wn);var rn=Nt.clickmode.indexOf("event")>-1&&ke;if(!Ie&&ke){var vn=fe(ve,!0);if(vn.length){var dn=vn[0].xref,_n=vn[0].yref;if(dn&&_n){var Un=Le(vn);Ue([R(ve,dn,"x"),R(ve,_n,"y")])(wn,Un)}}ve._fullLayout._noEmitSelectedAtStart?ve._fullLayout._noEmitSelectedAtStart=!1:rn&&Re(ve,wn),Nt._reselect=!1}if(!Ie&&Nt._deselect){var An=Nt._deselect;(function(Wn,Gn,jn){for(var er=0;er<jn.length;er++){var Qn=jn[er];if(Qn.xaxis&&Qn.xaxis._id===Wn&&Qn.yaxis&&Qn.yaxis._id===Gn)return!0}return!1})(Ze=An.xref,He=An.yref,ut)||Oe(ve,Ze,He,je),rn&&(wn.points.length?Re(ve,wn):Fe(ve)),Nt._deselect=!1}return{eventData:wn,selectionTesters:Ee}}function Oe(ve,ke,Ee,je){je=de(ve,[R(ve,ke,"x")],[R(ve,Ee,"y")],ke+Ee);for(var Be=0;Be<je.length;Be++){var Ie=je[Be];Ie._module.selectPoints(Ie,!1)}_e(ve,je)}function pe(ve,ke,Ee,je){for(var Be,Ie=0;Ie<ve.length;Ie++){var Ze=ve[Ie];ke===Ze.xref&&Ee===Ze.yref&&(Be?je=te(Be=we(Be,Ze,!!Ze.subtract)):(Be=[Ze],je=W(Ze)))}return je}function fe(ve,ke){for(var Ee=[],je=ve._fullLayout,Be=je.selections,Ie=Be.length,Ze=0;Ze<Ie;Ze++)if(!ke||Ze===je._activeSelectionIndex){var He=Be[Ze];if(He){var at,ft,ut,_t,Nt,Tt=He.xref,st=He.yref,lt=R(ve,Tt,"x"),Vt=R(ve,st,"y");if(He.type==="rect"){Nt=[];var jt=ze(lt,He.x0),Kt=ze(lt,He.x1),It=ze(Vt,He.y0),$e=ze(Vt,He.y1);Nt=[[jt,It],[jt,$e],[Kt,$e],[Kt,It]],at=Math.min(jt,Kt),ft=Math.max(jt,Kt),ut=Math.min(It,$e),_t=Math.max(It,$e),Nt.xmin=at,Nt.xmax=ft,Nt.ymin=ut,Nt.ymax=_t,Nt.xref=Tt,Nt.yref=st,Nt.subtract=!1,Nt.isRect=!0,Ee.push(Nt)}else if(He.type==="path")for(var tt=He.path.split("Z"),Xe=[],et=0;et<tt.length;et++){var ht=tt[et];if(ht){ht+="Z";var dt=d.extractPathCoords(ht,g.paramIsX,"raw"),De=d.extractPathCoords(ht,g.paramIsY,"raw");at=1/0,ft=-1/0,ut=1/0,_t=-1/0,Nt=[];for(var Ge=0;Ge<dt.length;Ge++){var pt=ze(lt,dt[Ge]),nt=ze(Vt,De[Ge]);Nt.push([pt,nt]),at=Math.min(pt,at),ft=Math.max(pt,ft),ut=Math.min(nt,ut),_t=Math.max(nt,_t)}Nt.xmin=at,Nt.xmax=ft,Nt.ymin=ut,Nt.ymax=_t,Nt.xref=Tt,Nt.yref=st,Nt.subtract=xe(Nt,Xe),Xe.push(Nt),Ee.push(Nt)}}}}return Ee}function xe(ve,ke){for(var Ee=!1,je=0;je<ke.length;je++)for(var Be=ke[je],Ie=0;Ie<ve.length;Ie++)if(v(ve[Ie],Be)){Ee=!Ee;break}return Ee}function ze(ve,ke){return ve.type==="date"&&(ke=ke.replace("_"," ")),ve.type==="log"?ve.c2p(ke):ve.r2p(ke,null,ve.calendar)}function Le(ve){for(var ke=ve.length,Ee=[],je=0;je<ke;je++){var Be=ve[je];Ee=(Ee=Ee.concat(Be)).concat([Be[0]])}return(Ie=Ee).isRect=Ie.length===5&&Ie[0][0]===Ie[4][0]&&Ie[0][1]===Ie[4][1]&&Ie[0][0]===Ie[1][0]&&Ie[2][0]===Ie[3][0]&&Ie[0][1]===Ie[3][1]&&Ie[1][1]===Ie[2][1]||Ie[0][1]===Ie[1][1]&&Ie[2][1]===Ie[3][1]&&Ie[0][0]===Ie[3][0]&&Ie[1][0]===Ie[2][0],Ie.isRect&&(Ie.xmin=Math.min(Ie[0][0],Ie[2][0]),Ie.xmax=Math.max(Ie[0][0],Ie[2][0]),Ie.ymin=Math.min(Ie[0][1],Ie[2][1]),Ie.ymax=Math.max(Ie[0][1],Ie[2][1])),Ie;var Ie}function Ue(ve){return function(ke,Ee){for(var je,Be,Ie=0;Ie<ve.length;Ie++){var Ze=ve[Ie],He=Ze._id,at=He.charAt(0);if(Ee.isRect){je||(je={});var ft=Ee[at+"min"],ut=Ee[at+"max"];ft!==void 0&&ut!==void 0&&(je[He]=[B(Ze,ft),B(Ze,ut)].sort(M))}else Be||(Be={}),Be[He]=Ee.map(G(Ze))}je&&(ke.range=je),Be&&(ke.lassoPoints=Be)}}function Re(ve,ke){ke&&(ke.selections=(ve.layout||{}).selections||[]),ve.emit("plotly_selected",ke)}function Fe(ve){ve.emit("plotly_deselect",null)}L.exports={reselect:Ne,prepSelect:function(ve,ke,Ee,je,Be){var Ie=!se(je),Ze=o(Be),He=i(Be),at=l(Be),ft=s(Be),ut=u(Be),_t=Be==="drawcircle",Nt=Be==="drawline"||_t,Tt=je.gd,st=Tt._fullLayout,lt=ut&&st.newselection.mode==="immediate"&&Ie,Vt=st._zoomlayer,jt=je.element.getBoundingClientRect(),Kt=je.plotinfo,It=J(Kt),$e=ke-jt.left,tt=Ee-jt.top;st._calcInverseTransform(Tt);var Xe=h.apply3DTransform(st._invTransform)($e,tt);$e=Xe[0],tt=Xe[1];var et,ht,dt,De,Ge,pt,nt,bt=st._invScaleX,wt=st._invScaleY,St=$e,vt=tt,Pt="M"+$e+","+tt,Lt=je.xaxes[0],Ct=je.yaxes[0],Rt=Lt._length,At=Ct._length,Bt=ve.altKey&&!(s(Be)&&at);ae(ve,Tt,je),Ze&&(et=F([[$e,tt]],j.BENDPX));var nn=Vt.selectAll("path.select-outline-"+Kt.id).data([1]),hn=ft?st.newshape:st.newselection;ft&&(je.hasText=hn.label.text||hn.label.texttemplate);var Ht=ft&&!at?hn.fillcolor:"rgba(0,0,0,0)",Qt=hn.line.color||(Ie?b.contrast(Tt._fullLayout.plot_bgcolor):"#7f7f7f");nn.enter().append("path").attr("class","select-outline select-outline-"+Kt.id).style({opacity:ft?hn.opacity/2:1,"stroke-dasharray":w(hn.line.dash,hn.line.width),"stroke-width":hn.line.width+"px","shape-rendering":"crispEdges"}).call(b.stroke,Qt).call(b.fill,Ht).attr("fill-rule","evenodd").classed("cursor-move",!!ft).attr("transform",It).attr("d",Pt+"Z");var un=Vt.append("path").attr("class","zoombox-corners").style({fill:b.background,stroke:b.defaultLine,"stroke-width":1}).attr("transform",It).attr("d","M0,0Z");if(ft&&je.hasText){var In=Vt.select(".label-temp");In.empty()&&(In=Vt.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var zn=st._uid+j.SELECTID,wn=[],rn=de(Tt,je.xaxes,je.yaxes,je.subplot);lt&&!ve.shiftKey&&(je._clearSubplotSelections=function(){if(Ie){var dn=Lt._id,_n=Ct._id;Oe(Tt,dn,_n,rn);for(var Un=(Tt.layout||{}).selections||[],An=[],Wn=!1,Gn=0;Gn<Un.length;Gn++){var jn=st.selections[Gn];jn.xref!==dn||jn.yref!==_n?An.push(Un[Gn]):Wn=!0}Wn&&(Tt._fullLayout._noEmitSelectedAtStart=!0,n.call("_guiRelayout",Tt,{selections:An}))}});var vn=function(dn){return dn.plotinfo.fillRangeItems||Ue(dn.xaxes.concat(dn.yaxes))}(je);je.moveFn=function(dn,_n){je._clearSubplotSelections&&(je._clearSubplotSelections(),je._clearSubplotSelections=void 0),St=Math.max(0,Math.min(Rt,bt*dn+$e)),vt=Math.max(0,Math.min(At,wt*_n+tt));var Un=Math.abs(St-$e),An=Math.abs(vt-tt);if(He){var Wn,Gn,jn;if(ut){var er=st.selectdirection;switch(Wn=er==="any"?An<Math.min(.6*Un,X)?"h":Un<Math.min(.6*An,X)?"v":"d":er){case"h":Gn=_t?At/2:0,jn=At;break;case"v":Gn=_t?Rt/2:0,jn=Rt}}if(ft)switch(st.newshape.drawdirection){case"vertical":Wn="h",Gn=_t?At/2:0,jn=At;break;case"horizontal":Wn="v",Gn=_t?Rt/2:0,jn=Rt;break;case"ortho":Un<An?(Wn="h",Gn=tt,jn=vt):(Wn="v",Gn=$e,jn=St);break;default:Wn="d"}Wn==="h"?((De=Nt?m(_t,[St,Gn],[St,jn]):[[$e,Gn],[$e,jn],[St,jn],[St,Gn]]).xmin=Nt?St:Math.min($e,St),De.xmax=Nt?St:Math.max($e,St),De.ymin=Math.min(Gn,jn),De.ymax=Math.max(Gn,jn),un.attr("d","M"+De.xmin+","+(tt-X)+"h-4v"+2*X+"h4ZM"+(De.xmax-1)+","+(tt-X)+"h4v"+2*X+"h-4Z")):Wn==="v"?((De=Nt?m(_t,[Gn,vt],[jn,vt]):[[Gn,tt],[Gn,vt],[jn,vt],[jn,tt]]).xmin=Math.min(Gn,jn),De.xmax=Math.max(Gn,jn),De.ymin=Nt?vt:Math.min(tt,vt),De.ymax=Nt?vt:Math.max(tt,vt),un.attr("d","M"+($e-X)+","+De.ymin+"v-4h"+2*X+"v4ZM"+($e-X)+","+(De.ymax-1)+"v4h"+2*X+"v-4Z")):Wn==="d"&&((De=Nt?m(_t,[$e,tt],[St,vt]):[[$e,tt],[$e,vt],[St,vt],[St,tt]]).xmin=Math.min($e,St),De.xmax=Math.max($e,St),De.ymin=Math.min(tt,vt),De.ymax=Math.max(tt,vt),un.attr("d","M0,0Z"))}else Ze&&(et.addPt([St,vt]),De=et.filtered);if(je.selectionDefs&&je.selectionDefs.length?(dt=we(je.mergedPolygons,De,Bt),De.subtract=Bt,ht=te(je.selectionDefs.concat([De]))):(dt=[De],ht=W(De)),f(Se(dt,at),nn,je),ut){var Qn,vr=Ne(Tt,!1),wr=vr.eventData?vr.eventData.points.slice():[];vr=Ne(Tt,!1,ht,rn,je),ht=vr.selectionTesters,nt=vr.eventData,Qn=et?et.filtered:Le(dt),P.throttle(zn,j.SELECTDELAY,function(){for(var Sr=(wn=Pe(ht,rn)).slice(),dr=0;dr<wr.length;dr++){for(var Gr=wr[dr],Zt=!1,pn=0;pn<Sr.length;pn++)if(Sr[pn].curveNumber===Gr.curveNumber&&Sr[pn].pointNumber===Gr.pointNumber){Zt=!0;break}Zt||Sr.push(Gr)}Sr.length&&(nt||(nt={}),nt.points=Sr),vn(nt,Qn),function(Ln,Tn){Ln.emit("plotly_selecting",Tn)}(Tt,nt)})}},je.clickFn=function(dn,_n){if(un.remove(),Tt._fullLayout._activeShapeIndex>=0)Tt._fullLayout._deactivateShape(Tt);else if(!ft){var Un=st.clickmode;P.done(zn).then(function(){if(P.clear(zn),dn===2){for(nn.remove(),Ge=0;Ge<rn.length;Ge++)(pt=rn[Ge])._module.selectPoints(pt,!1);if(_e(Tt,rn),ce(je),Fe(Tt),rn.length){var An=rn[0].xaxis,Wn=rn[0].yaxis;if(An&&Wn){for(var Gn=[],jn=Tt._fullLayout.selections,er=0;er<jn.length;er++){var Qn=jn[er];Qn&&(Qn.xref===An._id&&Qn.yref===Wn._id||Gn.push(Qn))}Gn.length<jn.length&&(Tt._fullLayout._noEmitSelectedAtStart=!0,n.call("_guiRelayout",Tt,{selections:Gn}))}}}else Un.indexOf("select")>-1&&re(_n,Tt,je.xaxes,je.yaxes,je.subplot,je,nn),Un==="event"&&Re(Tt,void 0);c.click(Tt,_n,Kt.id)}).catch(h.error)}},je.doneFn=function(){un.remove(),P.done(zn).then(function(){P.clear(zn),!lt&&De&&je.selectionDefs&&(De.subtract=Bt,je.selectionDefs.push(De),je.mergedPolygons.length=0,[].push.apply(je.mergedPolygons,dt)),(lt||ft)&&ce(je,lt),je.doneFnCompleted&&je.doneFnCompleted(wn),ut&&Re(Tt,nt)}).catch(h.error)}},clearOutline:C,clearSelectionsCache:ce,selectOnClick:re}},46056:function(L,T,e){var k=e(13916),v=e(25376),n=e(52904).line,w=e(98192).u,b=e(92880).extendFlat,c=e(31780).templatedArray,a=(e(36208),e(45464)),t=e(21776).ye,o=e(97728);L.exports=c("shape",{visible:b({},a.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:b({},a.legend,{editType:"calc+arraydraw"}),legendgroup:b({},a.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:b({},a.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:v({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:b({},a.legendrank,{editType:"calc+arraydraw"}),legendwidth:b({},a.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:b({},k.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"},yref:b({},k.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"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:b({},n.color,{editType:"arraydraw"}),width:b({},n.width,{editType:"calc+arraydraw"}),dash:b({},w,{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:t({},{keys:Object.keys(o)}),font:v({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"})},96084:function(L,T,e){var k=e(3400),v=e(54460),n=e(85448),w=e(65152);function b(o){return a(o.line.width,o.xsizemode,o.x0,o.x1,o.path,!1)}function c(o){return a(o.line.width,o.ysizemode,o.y0,o.y1,o.path,!0)}function a(o,i,s,l,u,d){var g=o/2,f=d;if(i==="pixel"){var C=u?w.extractPathCoords(u,d?n.paramIsY:n.paramIsX):[s,l],y=k.aggNums(Math.max,null,C),m=k.aggNums(Math.min,null,C),x=m<0?Math.abs(m)+g:g,_=y>0?y+g:g;return{ppad:g,ppadplus:f?x:_,ppadminus:f?_:x}}return{ppad:g}}function t(o,i,s,l,u){var d=o.type==="category"||o.type==="multicategory"?o.r2c:o.d2c;if(i!==void 0)return[d(i),d(s)];if(l){var g,f,C,y,m=1/0,x=-1/0,_=l.match(n.segmentRE);for(o.type==="date"&&(d=w.decodeDate(d)),g=0;g<_.length;g++)(f=u[_[g].charAt(0)].drawn)!==void 0&&(!(C=_[g].substr(1).match(n.paramRE))||C.length<f||((y=d(C[f]))<m&&(m=y),y>x&&(x=y)));return x>=m?[m,x]:void 0}}L.exports=function(o){var i=o._fullLayout,s=k.filterVisible(i.shapes);if(s.length&&o._fullData.length)for(var l=0;l<s.length;l++){var u,d,g=s[l];g._extremes={};var f=v.getRefType(g.xref),C=v.getRefType(g.yref);if(g.xref!=="paper"&&f!=="domain"){var y=g.xsizemode==="pixel"?g.xanchor:g.x0,m=g.xsizemode==="pixel"?g.xanchor:g.x1;(d=t(u=v.getFromId(o,g.xref),y,m,g.path,n.paramIsX))&&(g._extremes[u._id]=v.findExtremes(u,d,b(g)))}if(g.yref!=="paper"&&C!=="domain"){var x=g.ysizemode==="pixel"?g.yanchor:g.y0,_=g.ysizemode==="pixel"?g.yanchor:g.y1;(d=t(u=v.getFromId(o,g.yref),x,_,g.path,n.paramIsY))&&(g._extremes[u._id]=v.findExtremes(u,d,c(g)))}}}},85448:function(L){L.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}}},43712:function(L,T,e){var k=e(3400),v=e(54460),n=e(51272),w=e(46056),b=e(65152);function c(a,t,o){function i(Y,B){return k.coerce(a,t,w,Y,B)}if(t._isShape=!0,i("visible")){i("showlegend")&&(i("legend"),i("legendwidth"),i("legendgroup"),i("legendgrouptitle.text"),k.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var s=i("path"),l=i("type",s?"path":"rect"),u=l!=="path";u&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule"),i("line.width")&&(i("line.color"),i("line.dash"));for(var d=i("xsizemode"),g=i("ysizemode"),f=["x","y"],C=0;C<2;C++){var y,m,x,_=f[C],S=_+"anchor",O=_==="x"?d:g,h={_fullLayout:o},M=v.coerceRef(a,t,h,_,void 0,"paper");if(v.getRefType(M)==="range"?((y=v.getFromId(h,M))._shapeIndices.push(t._index),x=b.rangeToShapePosition(y),m=b.shapePositionToRange(y)):m=x=k.identity,u){var N=_+"0",P=_+"1",R=a[N],A=a[P];a[N]=m(a[N],!0),a[P]=m(a[P],!0),O==="pixel"?(i(N,0),i(P,10)):(v.coercePosition(t,h,i,M,N,.25),v.coercePosition(t,h,i,M,P,.75)),t[N]=x(t[N]),t[P]=x(t[P]),a[N]=R,a[P]=A}if(O==="pixel"){var q=a[S];a[S]=m(a[S],!0),v.coercePosition(t,h,i,M,S,.25),t[S]=x(t[S]),a[S]=q}}u&&k.noneOrAll(a,t,["x0","x1","y0","y1"]);var j,X,F=l==="line";if(u&&(j=i("label.texttemplate")),j||(X=i("label.text")),X||j){i("label.textangle");var W=i("label.textposition",F?"middle":"middle center");i("label.xanchor"),i("label.yanchor",function(Y,B){return Y?"bottom":B.indexOf("top")!==-1?"top":B.indexOf("bottom")!==-1?"bottom":"middle"}(F,W)),i("label.padding"),k.coerceFont(i,"label.font",o.font)}}}L.exports=function(a,t){n(a,t,{name:"shapes",handleItemDefaults:c})}},60728:function(L,T,e){var k=e(3400),v=e(54460),n=e(72736),w=e(43616),b=e(9856).readPaths,c=e(65152),a=c.getPathString,t=e(97728),o=e(84284).FROM_TL;L.exports=function(i,s,l,u){if(u.selectAll(".shape-label").remove(),l.label.text||l.label.texttemplate){var d;if(l.label.texttemplate){var g={};if(l.type!=="path"){var f=v.getFromId(i,l.xref),C=v.getFromId(i,l.yref);for(var y in t){var m=t[y](l,f,C);m!==void 0&&(g[y]=m)}}d=k.texttemplateStringForShapes(l.label.texttemplate,{},i._fullLayout._d3locale,g)}else d=l.label.text;var x,_,S,O,h={"data-index":s},M=l.label.font,N=u.append("g").attr(h).classed("shape-label",!0).append("text").attr({"data-notex":1}).classed("shape-label-text",!0).text(d);if(l.path){var P=a(i,l),R=b(P,i);x=1/0,S=1/0,_=-1/0,O=-1/0;for(var A=0;A<R.length;A++)for(var q=0;q<R[A].length;q++)for(var j=R[A][q],X=1;X<j.length;X+=2){var F=j[X],W=j[X+1];x=Math.min(x,F),_=Math.max(_,F),S=Math.min(S,W),O=Math.max(O,W)}}else{var Y=v.getFromId(i,l.xref),B=v.getRefType(l.xref),G=v.getFromId(i,l.yref),J=v.getRefType(l.yref),se=c.getDataToPixel(i,Y,!1,B),re=c.getDataToPixel(i,G,!0,J);x=se(l.x0),_=se(l.x1),S=re(l.y0),O=re(l.y1)}var ne=l.label.textangle;ne==="auto"&&(ne=l.type==="line"?function(ue,de,me,be){var _e,we;return we=Math.abs(me-ue),_e=me>=ue?de-be:be-de,-180/Math.PI*Math.atan2(_e,we)}(x,S,_,O):0),N.call(function(ue){return ue.call(w.font,M).attr({}),n.convertToTspans(ue,i),ue});var $=function(ue,de,me,be,_e,we,Ce){var Se,Pe,Ne,Oe,pe=_e.label.textposition,fe=_e.label.textangle,xe=_e.label.padding,ze=_e.type,Le=Math.PI/180*we,Ue=Math.sin(Le),Re=Math.cos(Le),Fe=_e.label.xanchor,ve=_e.label.yanchor;if(ze==="line"){pe==="start"?(Se=ue,Pe=de):pe==="end"?(Se=me,Pe=be):(Se=(ue+me)/2,Pe=(de+be)/2),Fe==="auto"&&(Fe=pe==="start"?fe==="auto"?me>ue?"left":me<ue?"right":"center":me>ue?"right":me<ue?"left":"center":pe==="end"?fe==="auto"?me>ue?"right":me<ue?"left":"center":me>ue?"left":me<ue?"right":"center":"center");var ke={bottom:-1,middle:0,top:1};if(fe==="auto"){var Ee=ke[ve];Ne=-xe*Ue*Ee,Oe=xe*Re*Ee}else Ne=xe*{left:1,center:0,right:-1}[Fe],Oe=xe*ke[ve];Se+=Ne,Pe+=Oe}else Ne=xe+3,pe.indexOf("right")!==-1?(Se=Math.max(ue,me)-Ne,Fe==="auto"&&(Fe="right")):pe.indexOf("left")!==-1?(Se=Math.min(ue,me)+Ne,Fe==="auto"&&(Fe="left")):(Se=(ue+me)/2,Fe==="auto"&&(Fe="center")),Pe=pe.indexOf("top")!==-1?Math.min(de,be):pe.indexOf("bottom")!==-1?Math.max(de,be):(de+be)/2,Oe=xe,ve==="bottom"?Pe-=Oe:ve==="top"&&(Pe+=Oe);var je=o[ve],Be=_e.label.font.size,Ie=Ce.height;return{textx:Se+(Ie*je-Be)*Ue,texty:Pe+-(Ie*je-Be)*Re,xanchor:Fe}}(x,S,_,O,l,ne,w.bBox(N.node())),te=$.textx,ae=$.texty,ce=$.xanchor;N.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[ce],y:ae,x:te,transform:"rotate("+ne+","+te+","+ae+")"}).call(n.positionText,te,ae)}}},55496:function(L,T,e){var k=e(3400).strTranslate,v=e(86476),n=e(72760),w=n.drawMode,b=n.selectMode,c=e(24040),a=e(76308),t=e(7e3),o=t.i000,i=t.i090,s=t.i180,l=t.i270,u=e(1936).clearOutlineControllers,d=e(9856),g=d.pointsOnRectangle,f=d.pointsOnEllipse,C=d.writePaths,y=e(93940).newShapes,m=e(93940).createShapeObj,x=e(5968),_=e(60728);function S(O,h){var M,N,P,R=O[h][1],A=O[h][2],q=O.length;return N=O[M=(h+1)%q][1],P=O[M][2],N===R&&P===A&&(N=O[M=(h+2)%q][1],P=O[M][2]),[M,N,P]}L.exports=function O(h,M,N,P){P||(P=0);var R=N.gd;function A(){O(h,M,N,P++),(f(h[0])||N.hasText)&&q({redrawing:!0})}function q(_e){var we={};N.isActiveShape!==void 0&&(N.isActiveShape=!1,we=y(M,N)),N.isActiveSelection!==void 0&&(N.isActiveSelection=!1,we=x(M,N),R._fullLayout._reselect=!0),Object.keys(we).length&&c.call((_e||{}).redrawing?"relayout":"_guiRelayout",R,we)}var j,X,F,W,Y,B=R._fullLayout._zoomlayer,G=N.dragmode,J=w(G),se=b(G);if((J||se)&&(R._fullLayout._outlining=!0),u(R),M.attr("d",C(h)),P||!N.isActiveShape&&!N.isActiveSelection||(Y=function(_e,we){for(var Ce=0;Ce<we.length;Ce++){var Se=we[Ce];_e[Ce]=[];for(var Pe=0;Pe<Se.length;Pe++){_e[Ce][Pe]=[];for(var Ne=0;Ne<Se[Pe].length;Ne++)_e[Ce][Pe][Ne]=Se[Pe][Ne]}}return _e}([],h),function(_e){j=[];for(var we=0;we<h.length;we++){var Ce=h[we],Se=g(Ce),Pe=!Se&&f(Ce);j[we]=[];for(var Ne=Ce.length,Oe=0;Oe<Ne;Oe++)if(Ce[Oe][0]!=="Z"&&(!Pe||Oe===o||Oe===i||Oe===s||Oe===l)){var pe,fe=Se&&N.isActiveSelection;fe&&(pe=S(Ce,Oe));var xe=Ce[Oe][1],ze=Ce[Oe][2],Le=_e.append(fe?"rect":"circle").attr("data-i",we).attr("data-j",Oe).style({fill:a.background,stroke:a.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(fe){var Ue=pe[1]-xe,Re=pe[2]-ze,Fe=Re?5:Math.max(Math.min(25,Math.abs(Ue)-5),5),ve=Ue?5:Math.max(Math.min(25,Math.abs(Re)-5),5);Le.classed(Re?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",Fe).attr("height",ve).attr("x",xe-Fe/2).attr("y",ze-ve/2).attr("transform",k(Ue/2,Re/2))}else Le.classed("cursor-grab",!0).attr("r",5).attr("cx",xe).attr("cy",ze);j[we][Oe]={element:Le.node(),gd:R,prepFn:$,doneFn:ae,clickFn:ce},v.init(j[we][Oe])}}}(B.append("g").attr("class","outline-controllers")),function(){X=[],h.length&&(X[0]={element:M[0][0],gd:R,prepFn:de,doneFn:me,clickFn:be},v.init(X[0]))}()),J&&N.hasText){var re=B.select(".label-temp"),ne=m(M,N,N.dragmode);_(R,"label-temp",ne,re)}function $(_e){F=+_e.srcElement.getAttribute("data-i"),W=+_e.srcElement.getAttribute("data-j"),j[F][W].moveFn=te}function te(_e,we){if(h.length){var Ce=Y[F][W][1],Se=Y[F][W][2],Pe=h[F],Ne=Pe.length;if(g(Pe)){var Oe=_e,pe=we;N.isActiveSelection&&(S(Pe,W)[1]===Pe[W][1]?pe=0:Oe=0);for(var fe=0;fe<Ne;fe++)if(fe!==W){var xe=Pe[fe];xe[1]===Pe[W][1]&&(xe[1]=Ce+Oe),xe[2]===Pe[W][2]&&(xe[2]=Se+pe)}if(Pe[W][1]=Ce+Oe,Pe[W][2]=Se+pe,!g(Pe))for(var ze=0;ze<Ne;ze++)for(var Le=0;Le<Pe[ze].length;Le++)Pe[ze][Le]=Y[F][ze][Le]}else Pe[W][1]=Ce+_e,Pe[W][2]=Se+we;A()}}function ae(){q()}function ce(_e,we){if(_e===2){F=+we.srcElement.getAttribute("data-i"),W=+we.srcElement.getAttribute("data-j");var Ce=h[F];g(Ce)||f(Ce)||function(){if(h.length&&h[F]&&h[F].length){for(var Se=[],Pe=0;Pe<h[F].length;Pe++)Pe!==W&&Se.push(h[F][Pe]);Se.length>1&&(Se.length!==2||Se[1][0]!=="Z")&&(W===0&&(Se[0][0]="M"),h[F]=Se,A(),q())}}()}}function ue(_e,we){(function(Ce,Se){if(h.length)for(var Pe=0;Pe<h.length;Pe++)for(var Ne=0;Ne<h[Pe].length;Ne++)for(var Oe=0;Oe+2<h[Pe][Ne].length;Oe+=2)h[Pe][Ne][Oe+1]=Y[Pe][Ne][Oe+1]+Ce,h[Pe][Ne][Oe+2]=Y[Pe][Ne][Oe+2]+Se})(_e,we),A()}function de(_e){(F=+_e.srcElement.getAttribute("data-i"))||(F=0),X[F].moveFn=ue}function me(){q()}function be(_e){_e===2&&function(we){if(b(we._fullLayout.dragmode)){u(we);var Ce=we._fullLayout._activeSelectionIndex,Se=(we.layout||{}).selections||[];if(Ce<Se.length){for(var Pe=[],Ne=0;Ne<Se.length;Ne++)Ne!==Ce&&Pe.push(Se[Ne]);delete we._fullLayout._activeSelectionIndex;var Oe=we._fullLayout.selections[Ce];we._fullLayout._deselect={xref:Oe.xref,yref:Oe.yref},c.call("_guiRelayout",we,{selections:Pe})}}}(R)}}},4016:function(L,T,e){var k=e(33428),v=e(24040),n=e(3400),w=e(54460),b=e(9856).readPaths,c=e(55496),a=e(60728),t=e(1936).clearOutlineControllers,o=e(76308),i=e(43616),s=e(31780).arrayEditor,l=e(86476),u=e(93972),d=e(85448),g=e(65152),f=g.getPathString;function C(h){var M=h._fullLayout;for(var N in M._shapeUpperLayer.selectAll("path").remove(),M._shapeLowerLayer.selectAll("path").remove(),M._shapeUpperLayer.selectAll("text").remove(),M._shapeLowerLayer.selectAll("text").remove(),M._plots){var P=M._plots[N].shapelayer;P&&(P.selectAll("path").remove(),P.selectAll("text").remove())}for(var R=0;R<M.shapes.length;R++)M.shapes[R].visible===!0&&x(h,R)}function y(h){return!!h._fullLayout._outlining}function m(h){return!h._context.edits.shapePosition}function x(h,M){h._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+M+'"]').remove();var N=g.makeShapesOptionsAndPlotinfo(h,M),P=N.options,R=N.plotinfo;function A(q){var j=f(h,P),X={"data-index":M,"fill-rule":P.fillrule,d:j},F=P.opacity,W=P.fillcolor,Y=P.line.width?P.line.color:"rgba(0,0,0,0)",B=P.line.width,G=P.line.dash;B||P.editable!==!0||(B=5,G="solid");var J=j[j.length-1]!=="Z",se=m(h)&&P.editable&&h._fullLayout._activeShapeIndex===M;se&&(W=J?"rgba(0,0,0,0)":h._fullLayout.activeshape.fillcolor,F=h._fullLayout.activeshape.opacity);var re,ne=q.append("g").classed("shape-group",!0).attr({"data-index":M}),$=ne.append("path").attr(X).style("opacity",F).call(o.stroke,Y).call(o.fill,W).call(i.dashLine,G,B);if(_(ne,h,P),a(h,M,P,ne),(se||h._context.edits.shapePosition)&&(re=s(h.layout,"shapes",P)),se){$.style({cursor:"move"});var te={element:$.node(),plotinfo:R,gd:h,editHelpers:re,hasText:P.label.text||P.label.texttemplate,isActiveShape:!0},ae=b(j,h);c(ae,$,te)}else h._context.edits.shapePosition?function(ce,ue,de,me,be,_e){var we,Ce,Se,Pe,Ne,Oe,pe,fe,xe,ze,Le,Ue,Re,Fe,ve,ke,Ee=10,je=10,Be=de.xsizemode==="pixel",Ie=de.ysizemode==="pixel",Ze=de.type==="line",He=de.type==="path",at=_e.modifyItem,ft=k.select(ue.node().parentNode),ut=w.getFromId(ce,de.xref),_t=w.getRefType(de.xref),Nt=w.getFromId(ce,de.yref),Tt=w.getRefType(de.yref),st=g.getDataToPixel(ce,ut,!1,_t),lt=g.getDataToPixel(ce,Nt,!0,Tt),Vt=g.getPixelToData(ce,ut,!1,_t),jt=g.getPixelToData(ce,Nt,!0,Tt),Kt=Ze?function(){var dt=10,De=Math.max(de.line.width,dt),Ge=be.append("g").attr("data-index",me).attr("drag-helper",!0);Ge.append("path").attr("d",ue.attr("d")).style({cursor:"move","stroke-width":De,"stroke-opacity":"0"});var pt={"fill-opacity":"0"},nt=Math.max(De/2,dt);return Ge.append("circle").attr({"data-line-point":"start-point",cx:Be?st(de.xanchor)+de.x0:st(de.x0),cy:Ie?lt(de.yanchor)-de.y0:lt(de.y0),r:nt}).style(pt).classed("cursor-grab",!0),Ge.append("circle").attr({"data-line-point":"end-point",cx:Be?st(de.xanchor)+de.x1:st(de.x1),cy:Ie?lt(de.yanchor)-de.y1:lt(de.y1),r:nt}).style(pt).classed("cursor-grab",!0),Ge}():ue,It={element:Kt.node(),gd:ce,prepFn:function(dt){y(ce)||(Be&&(Ne=st(de.xanchor)),Ie&&(Oe=lt(de.yanchor)),de.type==="path"?ve=de.path:(we=Be?de.x0:st(de.x0),Ce=Ie?de.y0:lt(de.y0),Se=Be?de.x1:st(de.x1),Pe=Ie?de.y1:lt(de.y1)),we<Se?(xe=we,Re="x0",ze=Se,Fe="x1"):(xe=Se,Re="x1",ze=we,Fe="x0"),!Ie&&Ce<Pe||Ie&&Ce>Pe?(pe=Ce,Le="y0",fe=Pe,Ue="y1"):(pe=Pe,Le="y1",fe=Ce,Ue="y0"),$e(dt),et(be,de),function(De,Ge,pt){var nt=Ge.xref,bt=Ge.yref,wt=w.getFromId(pt,nt),St=w.getFromId(pt,bt),vt="";nt==="paper"||wt.autorange||(vt+=nt),bt==="paper"||St.autorange||(vt+=bt),i.setClipUrl(De,vt?"clip"+pt._fullLayout._uid+vt:null,pt)}(ue,de,ce),It.moveFn=ke==="move"?tt:Xe,It.altKey=dt.altKey)},doneFn:function(){y(ce)||(u(ue),ht(be),_(ue,ce,de),v.call("_guiRelayout",ce,_e.getUpdateObj()))},clickFn:function(){y(ce)||ht(be)}};function $e(dt){if(y(ce))ke=null;else if(Ze)ke=dt.target.tagName==="path"?"move":dt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var De=It.element.getBoundingClientRect(),Ge=De.right-De.left,pt=De.bottom-De.top,nt=dt.clientX-De.left,bt=dt.clientY-De.top,wt=!He&&Ge>Ee&&pt>je&&!dt.shiftKey?l.getCursor(nt/Ge,1-bt/pt):"move";u(ue,wt),ke=wt.split("-")[0]}}function tt(dt,De){if(de.type==="path"){var Ge=function(bt){return bt},pt=Ge,nt=Ge;Be?at("xanchor",de.xanchor=Vt(Ne+dt)):(pt=function(bt){return Vt(st(bt)+dt)},ut&&ut.type==="date"&&(pt=g.encodeDate(pt))),Ie?at("yanchor",de.yanchor=jt(Oe+De)):(nt=function(bt){return jt(lt(bt)+De)},Nt&&Nt.type==="date"&&(nt=g.encodeDate(nt))),at("path",de.path=S(ve,pt,nt))}else Be?at("xanchor",de.xanchor=Vt(Ne+dt)):(at("x0",de.x0=Vt(we+dt)),at("x1",de.x1=Vt(Se+dt))),Ie?at("yanchor",de.yanchor=jt(Oe+De)):(at("y0",de.y0=jt(Ce+De)),at("y1",de.y1=jt(Pe+De)));ue.attr("d",f(ce,de)),et(be,de),a(ce,me,de,ft)}function Xe(dt,De){if(He){var Ge=function(Qt){return Qt},pt=Ge,nt=Ge;Be?at("xanchor",de.xanchor=Vt(Ne+dt)):(pt=function(Qt){return Vt(st(Qt)+dt)},ut&&ut.type==="date"&&(pt=g.encodeDate(pt))),Ie?at("yanchor",de.yanchor=jt(Oe+De)):(nt=function(Qt){return jt(lt(Qt)+De)},Nt&&Nt.type==="date"&&(nt=g.encodeDate(nt))),at("path",de.path=S(ve,pt,nt))}else if(Ze){if(ke==="resize-over-start-point"){var bt=we+dt,wt=Ie?Ce-De:Ce+De;at("x0",de.x0=Be?bt:Vt(bt)),at("y0",de.y0=Ie?wt:jt(wt))}else if(ke==="resize-over-end-point"){var St=Se+dt,vt=Ie?Pe-De:Pe+De;at("x1",de.x1=Be?St:Vt(St)),at("y1",de.y1=Ie?vt:jt(vt))}}else{var Pt=function(Qt){return ke.indexOf(Qt)!==-1},Lt=Pt("n"),Ct=Pt("s"),Rt=Pt("w"),At=Pt("e"),Bt=Lt?pe+De:pe,nn=Ct?fe+De:fe,hn=Rt?xe+dt:xe,Ht=At?ze+dt:ze;Ie&&(Lt&&(Bt=pe-De),Ct&&(nn=fe-De)),(!Ie&&nn-Bt>je||Ie&&Bt-nn>je)&&(at(Le,de[Le]=Ie?Bt:jt(Bt)),at(Ue,de[Ue]=Ie?nn:jt(nn))),Ht-hn>Ee&&(at(Re,de[Re]=Be?hn:Vt(hn)),at(Fe,de[Fe]=Be?Ht:Vt(Ht)))}ue.attr("d",f(ce,de)),et(be,de),a(ce,me,de,ft)}function et(dt,De){(Be||Ie)&&function(){var Ge=De.type!=="path",pt=dt.selectAll(".visual-cue").data([0]);pt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var nt=st(Be?De.xanchor:n.midRange(Ge?[De.x0,De.x1]:g.extractPathCoords(De.path,d.paramIsX))),bt=lt(Ie?De.yanchor:n.midRange(Ge?[De.y0,De.y1]:g.extractPathCoords(De.path,d.paramIsY)));if(nt=g.roundPositionForSharpStrokeRendering(nt,1),bt=g.roundPositionForSharpStrokeRendering(bt,1),Be&&Ie){var wt="M"+(nt-1-1)+","+(bt-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";pt.attr("d",wt)}else if(Be){var St="M"+(nt-1-1)+","+(bt-9-1)+"v18 h2 v-18 Z";pt.attr("d",St)}else{var vt="M"+(nt-9-1)+","+(bt-1-1)+"h18 v2 h-18 Z";pt.attr("d",vt)}}()}function ht(dt){dt.selectAll(".visual-cue").remove()}l.init(It),Kt.node().onmousemove=$e}(h,$,P,M,q,re):P.editable===!0&&$.style("pointer-events",J||o.opacity(W)*F<=.5?"stroke":"all");$.node().addEventListener("click",function(){return function(ce,ue){if(m(ce)){var de=+ue.node().getAttribute("data-index");if(de>=0){if(de===ce._fullLayout._activeShapeIndex)return void O(ce);ce._fullLayout._activeShapeIndex=de,ce._fullLayout._deactivateShape=O,C(ce)}}}(h,$)})}P._input&&P.visible===!0&&(P.layer!=="below"?A(h._fullLayout._shapeUpperLayer):P.xref==="paper"||P.yref==="paper"?A(h._fullLayout._shapeLowerLayer):R._hadPlotinfo?A((R.mainplotinfo||R).shapelayer):A(h._fullLayout._shapeLowerLayer))}function _(h,M,N){var P=(N.xref+N.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");i.setClipUrl(h,P?"clip"+M._fullLayout._uid+P:null,M)}function S(h,M,N){return h.replace(d.segmentRE,function(P){var R=0,A=P.charAt(0),q=d.paramIsX[A],j=d.paramIsY[A],X=d.numParams[A];return A+P.substr(1).replace(d.paramRE,function(F){return R>=X||(q[R]?F=M(F):j[R]&&(F=N(F)),R++),F})})}function O(h){m(h)&&h._fullLayout._activeShapeIndex>=0&&(t(h),delete h._fullLayout._activeShapeIndex,C(h))}L.exports={draw:C,drawOne:x,eraseActiveShape:function(h){if(m(h)){t(h);var M=h._fullLayout._activeShapeIndex,N=(h.layout||{}).shapes||[];if(M<N.length){for(var P=[],R=0;R<N.length;R++)R!==M&&P.push(N[R]);return delete h._fullLayout._activeShapeIndex,v.call("_guiRelayout",h,{shapes:P})}}},drawLabel:a}},92872:function(L,T,e){var k=e(67824).overrideAll,v=e(45464),n=e(25376),w=e(98192).u,b=e(92880).extendFlat,c=e(21776).ye,a=e(97728);L.exports=k({newshape:{visible:b({},v.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:b({},v.legend,{}),legendgroup:b({},v.legendgroup,{}),legendgrouptitle:{text:b({},v.legendgrouptitle.text,{}),font:n({})},legendrank:b({},v.legendrank,{}),legendwidth:b({},v.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:b({},w,{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"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:b({},v.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:c({newshape:!0},{keys:Object.keys(a)}),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")},7e3:function(L){L.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)}},65144:function(L,T,e){var k=e(76308),v=e(3400);L.exports=function(n,w,b){if(b("newshape.visible"),b("newshape.name"),b("newshape.showlegend"),b("newshape.legend"),b("newshape.legendwidth"),b("newshape.legendgroup"),b("newshape.legendgrouptitle.text"),v.coerceFont(b,"newshape.legendgrouptitle.font"),b("newshape.legendrank"),b("newshape.drawdirection"),b("newshape.layer"),b("newshape.fillcolor"),b("newshape.fillrule"),b("newshape.opacity"),b("newshape.line.width")){var c=(n||{}).plot_bgcolor||"#FFF";b("newshape.line.color",k.contrast(c)),b("newshape.line.dash")}var a=n.dragmode==="drawline",t=b("newshape.label.text"),o=b("newshape.label.texttemplate");if(t||o){b("newshape.label.textangle");var i=b("newshape.label.textposition",a?"middle":"middle center");b("newshape.label.xanchor"),b("newshape.label.yanchor",function(s,l){return s?"bottom":l.indexOf("top")!==-1?"top":l.indexOf("bottom")!==-1?"bottom":"middle"}(a,i)),b("newshape.label.padding"),v.coerceFont(b,"newshape.label.font",w.font)}b("activeshape.fillcolor"),b("activeshape.opacity")}},9856:function(L,T,e){var k=e(21984),v=e(7e3),n=v.CIRCLE_SIDES,w=v.SQRT2,b=e(5840),c=b.p2r,a=b.r2p,t=[0,3,4,5,6,1,2],o=[0,3,4,1,2];function i(l,u){return Math.abs(l-u)<=1e-6}function s(l,u){var d=u[1]-l[1],g=u[2]-l[2];return Math.sqrt(d*d+g*g)}T.writePaths=function(l){var u=l.length;if(!u)return"M0,0Z";for(var d="",g=0;g<u;g++)for(var f=l[g].length,C=0;C<f;C++){var y=l[g][C][0];if(y==="Z")d+="Z";else for(var m=l[g][C].length,x=0;x<m;x++){var _=x;y==="Q"||y==="S"?_=o[x]:y==="C"&&(_=t[x]),d+=l[g][C][_],x>0&&x<m-1&&(d+=",")}}return d},T.readPaths=function(l,u,d,g){var f,C,y,m=k(l),x=[],_=-1,S=0,O=0,h=function(){C=S,y=O};h();for(var M=0;M<m.length;M++){var N,P,R,A,q=[],j=m[M][0],X=j;switch(j){case"M":x[++_]=[],S=+m[M][1],O=+m[M][2],q.push([X,S,O]),h();break;case"Q":case"S":N=+m[M][1],R=+m[M][2],S=+m[M][3],O=+m[M][4],q.push([X,S,O,N,R]);break;case"C":N=+m[M][1],R=+m[M][2],P=+m[M][3],A=+m[M][4],S=+m[M][5],O=+m[M][6],q.push([X,S,O,N,R,P,A]);break;case"T":case"L":S=+m[M][1],O=+m[M][2],q.push([X,S,O]);break;case"H":X="L",S=+m[M][1],q.push([X,S,O]);break;case"V":X="L",O=+m[M][1],q.push([X,S,O]);break;case"A":X="L";var F=+m[M][1],W=+m[M][2];+m[M][4]||(F=-F,W=-W);var Y=S-F,B=O;for(f=1;f<=n/2;f++){var G=2*Math.PI*f/n;q.push([X,Y+F*Math.cos(G),B+W*Math.sin(G)])}break;case"Z":S===C&&O===y||(S=C,O=y,q.push([X,S,O]))}for(var J=(d||{}).domain,se=u._fullLayout._size,re=d&&d.xsizemode==="pixel",ne=d&&d.ysizemode==="pixel",$=g===!1,te=0;te<q.length;te++){for(f=0;f+2<7;f+=2){var ae=q[te][f+1],ce=q[te][f+2];ae!==void 0&&ce!==void 0&&(S=ae,O=ce,d&&(d.xaxis&&d.xaxis.p2r?($&&(ae-=d.xaxis._offset),ae=re?a(d.xaxis,d.xanchor)+ae:c(d.xaxis,ae)):($&&(ae-=se.l),J?ae=J.x[0]+ae/se.w:ae/=se.w),d.yaxis&&d.yaxis.p2r?($&&(ce-=d.yaxis._offset),ce=ne?a(d.yaxis,d.yanchor)-ce:c(d.yaxis,ce)):($&&(ce-=se.t),ce=J?J.y[1]-ce/se.h:1-ce/se.h)),q[te][f+1]=ae,q[te][f+2]=ce)}x[_].push(q[te].slice())}}return x},T.pointsOnRectangle=function(l){if(l.length!==5)return!1;for(var u=1;u<3;u++)if(!i(l[0][u]-l[1][u],l[3][u]-l[2][u])||!i(l[0][u]-l[3][u],l[1][u]-l[2][u]))return!1;return!(!i(l[0][1],l[1][1])&&!i(l[0][1],l[3][1])||!(s(l[0],l[1])*s(l[0],l[3])))},T.pointsOnEllipse=function(l){var u=l.length;if(u!==n+1)return!1;u=n;for(var d=0;d<u;d++){var g=(2*u-d)%u,f=(u/2+g)%u,C=(u/2+d)%u;if(!i(s(l[d],l[C]),s(l[g],l[f])))return!1}return!0},T.handleEllipse=function(l,u,d){if(!l)return[u,d];var g=T.ellipseOver({x0:u[0],y0:u[1],x1:d[0],y1:d[1]}),f=(g.x1+g.x0)/2,C=(g.y1+g.y0)/2,y=(g.x1-g.x0)/2,m=(g.y1-g.y0)/2;y||(y=m/=w),m||(m=y/=w);for(var x=[],_=0;_<n;_++){var S=2*_*Math.PI/n;x.push([f+y*Math.cos(S),C+m*Math.sin(S)])}return x},T.ellipseOver=function(l){var u=l.x0,d=l.y0,g=l.x1,f=l.y1,C=g-u,y=f-d,m=((u-=C)+g)/2,x=((d-=y)+f)/2;return{x0:m-(C*=w),y0:x-(y*=w),x1:m+C,y1:x+y}},T.fixDatesForPaths=function(l,u,d){var g=u.type==="date",f=d.type==="date";if(!g&&!f)return l;for(var C=0;C<l.length;C++)for(var y=0;y<l[C].length;y++)for(var m=0;m+2<l[C][y].length;m+=2)g&&(l[C][y][m+1]=l[C][y][m+1].replace(" ","_")),f&&(l[C][y][m+2]=l[C][y][m+2].replace(" ","_"));return l}},93940:function(L,T,e){var k=e(72760),v=k.drawMode,n=k.openMode,w=e(7e3),b=w.i000,c=w.i090,a=w.i180,t=w.i270,o=w.cos45,i=w.sin45,s=e(5840),l=s.p2r,u=s.r2p,d=e(1936).clearOutline,g=e(9856),f=g.readPaths,C=g.writePaths,y=g.ellipseOver,m=g.fixDatesForPaths;function x(_,S,O){var h,M=_[0][0],N=S.gd,P=M.getAttribute("d"),R=N._fullLayout.newshape,A=S.plotinfo,q=S.isActiveShape,j=A.xaxis,X=A.yaxis,F=!!A.domain||!A.xaxis,W=!!A.domain||!A.yaxis,Y=n(O),B=f(P,N,A,q),G={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:F?"paper":j._id,yref:W?"paper":X._id,layer:R.layer,opacity:R.opacity,line:{color:R.line.color,width:R.line.width,dash:R.line.dash}};if(Y||(G.fillcolor=R.fillcolor,G.fillrule=R.fillrule),B.length===1&&(h=B[0]),h&&h.length===5&&O==="drawrect")G.type="rect",G.x0=h[0][1],G.y0=h[0][2],G.x1=h[2][1],G.y1=h[2][2];else if(h&&O==="drawline")G.type="line",G.x0=h[0][1],G.y0=h[0][2],G.x1=h[1][1],G.y1=h[1][2];else if(h&&O==="drawcircle"){G.type="circle";var J=h[b][1],se=h[c][1],re=h[a][1],ne=h[t][1],$=h[b][2],te=h[c][2],ae=h[a][2],ce=h[t][2],ue=A.xaxis&&(A.xaxis.type==="date"||A.xaxis.type==="log"),de=A.yaxis&&(A.yaxis.type==="date"||A.yaxis.type==="log");ue&&(J=u(A.xaxis,J),se=u(A.xaxis,se),re=u(A.xaxis,re),ne=u(A.xaxis,ne)),de&&($=u(A.yaxis,$),te=u(A.yaxis,te),ae=u(A.yaxis,ae),ce=u(A.yaxis,ce));var me=(se+ne)/2,be=($+ae)/2,_e=y({x0:me,y0:be,x1:me+(ne-se+re-J)/2*o,y1:be+(ce-te+ae-$)/2*i});ue&&(_e.x0=l(A.xaxis,_e.x0),_e.x1=l(A.xaxis,_e.x1)),de&&(_e.y0=l(A.yaxis,_e.y0),_e.y1=l(A.yaxis,_e.y1)),G.x0=_e.x0,G.y0=_e.y0,G.x1=_e.x1,G.y1=_e.y1}else G.type="path",j&&X&&m(B,j,X),G.path=C(B),h=null;return G}L.exports={newShapes:function(_,S){if(_.length&&_[0][0]){var O=S.gd,h=S.isActiveShape,M=S.dragmode,N=(O.layout||{}).shapes||[];if(!v(M)&&h!==void 0){var P=O._fullLayout._activeShapeIndex;if(P<N.length)switch(O._fullLayout.shapes[P].type){case"rect":M="drawrect";break;case"circle":M="drawcircle";break;case"line":M="drawline";break;case"path":var R=N[P].path||"";M=R[R.length-1]==="Z"?"drawclosedpath":"drawopenpath"}}var A=x(_,S,M);d(O);for(var q=S.editHelpers,j=(q||{}).modifyItem,X=[],F=0;F<N.length;F++){var W=O._fullLayout.shapes[F];if(X[F]=W._input,h!==void 0&&F===O._fullLayout._activeShapeIndex){var Y=A;switch(W.type){case"line":case"rect":case"circle":j("x0",Y.x0),j("x1",Y.x1),j("y0",Y.y0),j("y1",Y.y1);break;case"path":j("path",Y.path)}}}return h===void 0?(X.push(A),X):q?q.getUpdateObj():{}}},createShapeObj:x}},1936:function(L){L.exports={clearOutlineControllers:function(T){var e=T._fullLayout._zoomlayer;e&&e.selectAll(".outline-controllers").remove()},clearOutline:function(T){var e=T._fullLayout._zoomlayer;e&&e.selectAll(".select-outline").remove(),T._fullLayout._outlining=!1}}},65152:function(L,T,e){var k=e(85448),v=e(3400),n=e(54460);T.rangeToShapePosition=function(w){return w.type==="log"?w.r2d:function(b){return b}},T.shapePositionToRange=function(w){return w.type==="log"?w.d2r:function(b){return b}},T.decodeDate=function(w){return function(b){return b.replace&&(b=b.replace("_"," ")),w(b)}},T.encodeDate=function(w){return function(b){return w(b).replace(" ","_")}},T.extractPathCoords=function(w,b,c){var a=[];return w.match(k.segmentRE).forEach(function(t){var o=b[t.charAt(0)].drawn;if(o!==void 0){var i=t.substr(1).match(k.paramRE);if(i&&!(i.length<o)){var s=i[o],l=c?s:v.cleanNumber(s);a.push(l)}}}),a},T.getDataToPixel=function(w,b,c,a){var t,o=w._fullLayout._size;if(b)if(a==="domain")t=function(s){return b._length*(c?1-s:s)+b._offset};else{var i=T.shapePositionToRange(b);t=function(s){return b._offset+b.r2p(i(s,!0))},b.type==="date"&&(t=T.decodeDate(t))}else t=c?function(s){return o.t+o.h*(1-s)}:function(s){return o.l+o.w*s};return t},T.getPixelToData=function(w,b,c,a){var t,o=w._fullLayout._size;if(b)if(a==="domain")t=function(s){var l=(s-b._offset)/b._length;return c?1-l:l};else{var i=T.rangeToShapePosition(b);t=function(s){return i(b.p2r(s-b._offset))}}else t=c?function(s){return 1-(s-o.t)/o.h}:function(s){return(s-o.l)/o.w};return t},T.roundPositionForSharpStrokeRendering=function(w,b){var c=Math.round(b%2)===1,a=Math.round(w);return c?a+.5:a},T.makeShapesOptionsAndPlotinfo=function(w,b){var c=w._fullLayout.shapes[b]||{},a=w._fullLayout._plots[c.xref+c.yref];return a?a._hadPlotinfo=!0:(a={},c.xref&&c.xref!=="paper"&&(a.xaxis=w._fullLayout[c.xref+"axis"]),c.yref&&c.yref!=="paper"&&(a.yaxis=w._fullLayout[c.yref+"axis"])),a.xsizemode=c.xsizemode,a.ysizemode=c.ysizemode,a.xanchor=c.xanchor,a.yanchor=c.yanchor,{options:c,plotinfo:a}},T.makeSelectionsOptionsAndPlotinfo=function(w,b){var c=w._fullLayout.selections[b]||{},a=w._fullLayout._plots[c.xref+c.yref];return a?a._hadPlotinfo=!0:(a={},c.xref&&(a.xaxis=w._fullLayout[c.xref+"axis"]),c.yref&&(a.yaxis=w._fullLayout[c.yref+"axis"])),{options:c,plotinfo:a}},T.getPathString=function(w,b){var c,a,t,o,i,s,l,u,d=b.type,g=n.getRefType(b.xref),f=n.getRefType(b.yref),C=n.getFromId(w,b.xref),y=n.getFromId(w,b.yref),m=w._fullLayout._size;if(C?g==="domain"?a=function(R){return C._offset+C._length*R}:(c=T.shapePositionToRange(C),a=function(R){return C._offset+C.r2p(c(R,!0))}):a=function(R){return m.l+m.w*R},y?f==="domain"?o=function(R){return y._offset+y._length*(1-R)}:(t=T.shapePositionToRange(y),o=function(R){return y._offset+y.r2p(t(R,!0))}):o=function(R){return m.t+m.h*(1-R)},d==="path")return C&&C.type==="date"&&(a=T.decodeDate(a)),y&&y.type==="date"&&(o=T.decodeDate(o)),function(R,A,q){var j=R.path,X=R.xsizemode,F=R.ysizemode,W=R.xanchor,Y=R.yanchor;return j.replace(k.segmentRE,function(B){var G=0,J=B.charAt(0),se=k.paramIsX[J],re=k.paramIsY[J],ne=k.numParams[J],$=B.substr(1).replace(k.paramRE,function(te){return se[G]?te=X==="pixel"?A(W)+Number(te):A(te):re[G]&&(te=F==="pixel"?q(Y)-Number(te):q(te)),++G>ne&&(te="X"),te});return G>ne&&($=$.replace(/[\s,]*X.*/,""),v.log("Ignoring extra params in segment "+B)),J+$})}(b,a,o);if(b.xsizemode==="pixel"){var x=a(b.xanchor);i=x+b.x0,s=x+b.x1}else i=a(b.x0),s=a(b.x1);if(b.ysizemode==="pixel"){var _=o(b.yanchor);l=_-b.y0,u=_-b.y1}else l=o(b.y0),u=o(b.y1);if(d==="line")return"M"+i+","+l+"L"+s+","+u;if(d==="rect")return"M"+i+","+l+"H"+s+"V"+u+"H"+i+"Z";var S=(i+s)/2,O=(l+u)/2,h=Math.abs(S-i),M=Math.abs(O-l),N="A"+h+","+M,P=S+h+","+O;return"M"+P+N+" 0 1,1 "+S+","+(O-M)+N+" 0 0,1 "+P+"Z"}},41592:function(L,T,e){var k=e(4016);L.exports={moduleType:"component",name:"shapes",layoutAttributes:e(46056),supplyLayoutDefaults:e(43712),supplyDrawNewShapeDefaults:e(65144),includeBasePlot:e(36632)("shapes"),calcAutorange:e(96084),draw:k.draw,drawOne:k.drawOne}},97728:function(L){function T(n,w){return w?w.d2l(n):n}function e(n,w){return w?w.l2d(n):n}function k(n,w){return T(n.x1,w)-T(n.x0,w)}function v(n,w,b){return T(n.y1,b)-T(n.y0,b)}L.exports={x0:function(n){return n.x0},x1:function(n){return n.x1},y0:function(n){return n.y0},y1:function(n){return n.y1},slope:function(n,w,b){return n.type!=="line"?void 0:v(n,0,b)/k(n,w)},dx:k,dy:v,width:function(n,w){return Math.abs(k(n,w))},height:function(n,w,b){return Math.abs(v(n,0,b))},length:function(n,w,b){return n.type!=="line"?void 0:Math.sqrt(Math.pow(k(n,w),2)+Math.pow(v(n,0,b),2))},xcenter:function(n,w){return e((T(n.x1,w)+T(n.x0,w))/2,w)},ycenter:function(n,w,b){return e((T(n.y1,b)+T(n.y0,b))/2,b)}}},89861:function(L,T,e){var k=e(25376),v=e(66741),n=e(92880).extendDeepAll,w=e(67824).overrideAll,b=e(85656),c=e(31780).templatedArray,a=e(60876),t=c("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}});L.exports=w(c("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:t,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(v({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:b.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:k({})},font:k({}),activebgcolor:{valType:"color",dflt:a.gripBgActiveColor},bgcolor:{valType:"color",dflt:a.railBgColor},bordercolor:{valType:"color",dflt:a.railBorderColor},borderwidth:{valType:"number",min:0,dflt:a.railBorderWidth},ticklen:{valType:"number",min:0,dflt:a.tickLength},tickcolor:{valType:"color",dflt:a.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:a.minorTickLength}}),"arraydraw","from-root")},60876:function(L){L.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}},8132:function(L,T,e){var k=e(3400),v=e(51272),n=e(89861),w=e(60876).name,b=n.steps;function c(t,o,i){function s(f,C){return k.coerce(t,o,n,f,C)}for(var l=v(t,o,{name:"steps",handleItemDefaults:a}),u=0,d=0;d<l.length;d++)l[d].visible&&u++;if(u<2?o.visible=!1:s("visible")){o._stepCount=u;var g=o._visibleSteps=k.filterVisible(l);(l[s("active")]||{}).visible||(o.active=g[0]._index),s("x"),s("y"),k.noneOrAll(t,o,["x","y"]),s("xanchor"),s("yanchor"),s("len"),s("lenmode"),s("pad.t"),s("pad.r"),s("pad.b"),s("pad.l"),k.coerceFont(s,"font",i.font),s("currentvalue.visible")&&(s("currentvalue.xanchor"),s("currentvalue.prefix"),s("currentvalue.suffix"),s("currentvalue.offset"),k.coerceFont(s,"currentvalue.font",o.font)),s("transition.duration"),s("transition.easing"),s("bgcolor"),s("activebgcolor"),s("bordercolor"),s("borderwidth"),s("ticklen"),s("tickwidth"),s("tickcolor"),s("minorticklen")}}function a(t,o){function i(l,u){return k.coerce(t,o,b,l,u)}if(t.method==="skip"||Array.isArray(t.args)?i("visible"):o.visible=!1){i("method"),i("args");var s=i("label","step-"+o._index);i("value",s),i("execute")}}L.exports=function(t,o){v(t,o,{name:w,handleItemDefaults:c})}},79664:function(L,T,e){var k=e(33428),v=e(7316),n=e(76308),w=e(43616),b=e(3400),c=b.strTranslate,a=e(72736),t=e(31780).arrayEditor,o=e(60876),i=e(84284),s=i.LINE_SPACING,l=i.FROM_TL,u=i.FROM_BR;function d(q){return o.autoMarginIdRoot+q._index}function g(q){return q._index}function f(q,j){var X=w.tester.selectAll("g."+o.labelGroupClass).data(j._visibleSteps);X.enter().append("g").classed(o.labelGroupClass,!0);var F=0,W=0;X.each(function(te){var ae=m(k.select(this),{step:te},j).node();if(ae){var ce=w.bBox(ae);W=Math.max(W,ce.height),F=Math.max(F,ce.width)}}),X.remove();var Y=j._dims={};Y.inputAreaWidth=Math.max(o.railWidth,o.gripHeight);var B=q._fullLayout._size;Y.lx=B.l+B.w*j.x,Y.ly=B.t+B.h*(1-j.y),j.lenmode==="fraction"?Y.outerLength=Math.round(B.w*j.len):Y.outerLength=j.len,Y.inputAreaStart=0,Y.inputAreaLength=Math.round(Y.outerLength-j.pad.l-j.pad.r);var G=(Y.inputAreaLength-2*o.stepInset)/(j._stepCount-1),J=F+o.labelPadding;if(Y.labelStride=Math.max(1,Math.ceil(J/G)),Y.labelHeight=W,Y.currentValueMaxWidth=0,Y.currentValueHeight=0,Y.currentValueTotalHeight=0,Y.currentValueMaxLines=1,j.currentvalue.visible){var se=w.tester.append("g");X.each(function(te){var ae=C(se,j,te.label),ce=ae.node()&&w.bBox(ae.node())||{width:0,height:0},ue=a.lineCount(ae);Y.currentValueMaxWidth=Math.max(Y.currentValueMaxWidth,Math.ceil(ce.width)),Y.currentValueHeight=Math.max(Y.currentValueHeight,Math.ceil(ce.height)),Y.currentValueMaxLines=Math.max(Y.currentValueMaxLines,ue)}),Y.currentValueTotalHeight=Y.currentValueHeight+j.currentvalue.offset,se.remove()}Y.height=Y.currentValueTotalHeight+o.tickOffset+j.ticklen+o.labelOffset+Y.labelHeight+j.pad.t+j.pad.b;var re="left";b.isRightAnchor(j)&&(Y.lx-=Y.outerLength,re="right"),b.isCenterAnchor(j)&&(Y.lx-=Y.outerLength/2,re="center");var ne="top";b.isBottomAnchor(j)&&(Y.ly-=Y.height,ne="bottom"),b.isMiddleAnchor(j)&&(Y.ly-=Y.height/2,ne="middle"),Y.outerLength=Math.ceil(Y.outerLength),Y.height=Math.ceil(Y.height),Y.lx=Math.round(Y.lx),Y.ly=Math.round(Y.ly);var $={y:j.y,b:Y.height*u[ne],t:Y.height*l[ne]};j.lenmode==="fraction"?($.l=0,$.xl=j.x-j.len*l[re],$.r=0,$.xr=j.x+j.len*u[re]):($.x=j.x,$.l=Y.outerLength*l[re],$.r=Y.outerLength*u[re]),v.autoMargin(q,d(j),$)}function C(q,j,X){if(j.currentvalue.visible){var F,W,Y=j._dims;switch(j.currentvalue.xanchor){case"right":F=Y.inputAreaLength-o.currentValueInset-Y.currentValueMaxWidth,W="left";break;case"center":F=.5*Y.inputAreaLength,W="middle";break;default:F=o.currentValueInset,W="left"}var B=b.ensureSingle(q,"text",o.labelClass,function($){$.attr({"text-anchor":W,"data-notex":1})}),G=j.currentvalue.prefix?j.currentvalue.prefix:"";if(typeof X=="string")G+=X;else{var J=j.steps[j.active].label,se=j._gd._fullLayout._meta;se&&(J=b.templateString(J,se)),G+=J}j.currentvalue.suffix&&(G+=j.currentvalue.suffix),B.call(w.font,j.currentvalue.font).text(G).call(a.convertToTspans,j._gd);var re=a.lineCount(B),ne=(Y.currentValueMaxLines+1-re)*j.currentvalue.font.size*s;return a.positionText(B,F,ne),B}}function y(q,j,X){b.ensureSingle(q,"rect",o.gripRectClass,function(F){F.call(O,j,q,X).style("pointer-events","all")}).attr({width:o.gripWidth,height:o.gripHeight,rx:o.gripRadius,ry:o.gripRadius}).call(n.stroke,X.bordercolor).call(n.fill,X.bgcolor).style("stroke-width",X.borderwidth+"px")}function m(q,j,X){var F=b.ensureSingle(q,"text",o.labelClass,function(B){B.attr({"text-anchor":"middle","data-notex":1})}),W=j.step.label,Y=X._gd._fullLayout._meta;return Y&&(W=b.templateString(W,Y)),F.call(w.font,X.font).text(W).call(a.convertToTspans,X._gd),F}function x(q,j){var X=b.ensureSingle(q,"g",o.labelsClass),F=j._dims,W=X.selectAll("g."+o.labelGroupClass).data(F.labelSteps);W.enter().append("g").classed(o.labelGroupClass,!0),W.exit().remove(),W.each(function(Y){var B=k.select(this);B.call(m,Y,j),w.setTranslate(B,N(j,Y.fraction),o.tickOffset+j.ticklen+j.font.size*s+o.labelOffset+F.currentValueTotalHeight)})}function _(q,j,X,F,W){var Y=Math.round(F*(X._stepCount-1)),B=X._visibleSteps[Y]._index;B!==X.active&&S(q,j,X,B,!0,W)}function S(q,j,X,F,W,Y){var B=X.active;X.active=F,t(q.layout,o.name,X).applyUpdate("active",F);var G=X.steps[X.active];j.call(M,X,Y),j.call(C,X),q.emit("plotly_sliderchange",{slider:X,step:X.steps[X.active],interaction:W,previousActive:B}),G&&G.method&&W&&(j._nextMethod?(j._nextMethod.step=G,j._nextMethod.doCallback=W,j._nextMethod.doTransition=Y):(j._nextMethod={step:G,doCallback:W,doTransition:Y},j._nextMethodRaf=window.requestAnimationFrame(function(){var J=j._nextMethod.step;J.method&&(J.execute&&v.executeAPICommand(q,J.method,J.args),j._nextMethod=null,j._nextMethodRaf=null)})))}function O(q,j,X){if(!j._context.staticPlot){var F=X.node(),W=k.select(j);q.on("mousedown",B),q.on("touchstart",B)}function Y(){return X.data()[0]}function B(){var G=Y();j.emit("plotly_sliderstart",{slider:G});var J=X.select("."+o.gripRectClass);k.event.stopPropagation(),k.event.preventDefault(),J.call(n.fill,G.activebgcolor);var se=P(G,k.mouse(F)[0]);function re(){var $=Y(),te=P($,k.mouse(F)[0]);_(j,X,$,te,!1)}function ne(){var $=Y();$._dragging=!1,J.call(n.fill,$.bgcolor),W.on("mouseup",null),W.on("mousemove",null),W.on("touchend",null),W.on("touchmove",null),j.emit("plotly_sliderend",{slider:$,step:$.steps[$.active]})}_(j,X,G,se,!0),G._dragging=!0,W.on("mousemove",re),W.on("touchmove",re),W.on("mouseup",ne),W.on("touchend",ne)}}function h(q,j){var X=q.selectAll("rect."+o.tickRectClass).data(j._visibleSteps),F=j._dims;X.enter().append("rect").classed(o.tickRectClass,!0),X.exit().remove(),X.attr({width:j.tickwidth+"px","shape-rendering":"crispEdges"}),X.each(function(W,Y){var B=Y%F.labelStride==0,G=k.select(this);G.attr({height:B?j.ticklen:j.minorticklen}).call(n.fill,j.tickcolor),w.setTranslate(G,N(j,Y/(j._stepCount-1))-.5*j.tickwidth,(B?o.tickOffset:o.minorTickOffset)+F.currentValueTotalHeight)})}function M(q,j,X){for(var F=q.select("rect."+o.gripRectClass),W=0,Y=0;Y<j._stepCount;Y++)if(j._visibleSteps[Y]._index===j.active){W=Y;break}var B=N(j,W/(j._stepCount-1));if(!j._invokingCommand){var G=F;X&&j.transition.duration>0&&(G=G.transition().duration(j.transition.duration).ease(j.transition.easing)),G.attr("transform",c(B-.5*o.gripWidth,j._dims.currentValueTotalHeight))}}function N(q,j){var X=q._dims;return X.inputAreaStart+o.stepInset+(X.inputAreaLength-2*o.stepInset)*Math.min(1,Math.max(0,j))}function P(q,j){var X=q._dims;return Math.min(1,Math.max(0,(j-o.stepInset-X.inputAreaStart)/(X.inputAreaLength-2*o.stepInset-2*X.inputAreaStart)))}function R(q,j,X){var F=X._dims,W=b.ensureSingle(q,"rect",o.railTouchRectClass,function(Y){Y.call(O,j,q,X).style("pointer-events","all")});W.attr({width:F.inputAreaLength,height:Math.max(F.inputAreaWidth,o.tickOffset+X.ticklen+F.labelHeight)}).call(n.fill,X.bgcolor).attr("opacity",0),w.setTranslate(W,0,F.currentValueTotalHeight)}function A(q,j){var X=j._dims,F=X.inputAreaLength-2*o.railInset,W=b.ensureSingle(q,"rect",o.railRectClass);W.attr({width:F,height:o.railWidth,rx:o.railRadius,ry:o.railRadius,"shape-rendering":"crispEdges"}).call(n.stroke,j.bordercolor).call(n.fill,j.bgcolor).style("stroke-width",j.borderwidth+"px"),w.setTranslate(W,o.railInset,.5*(X.inputAreaWidth-o.railWidth)+X.currentValueTotalHeight)}L.exports=function(q){var j=q._context.staticPlot,X=q._fullLayout,F=function(se,re){for(var ne=se[o.name],$=[],te=0;te<ne.length;te++){var ae=ne[te];ae.visible&&(ae._gd=re,$.push(ae))}return $}(X,q),W=X._infolayer.selectAll("g."+o.containerClassName).data(F.length>0?[0]:[]);function Y(se){se._commandObserver&&(se._commandObserver.remove(),delete se._commandObserver),v.autoMargin(q,d(se))}if(W.enter().append("g").classed(o.containerClassName,!0).style("cursor",j?null:"ew-resize"),W.exit().each(function(){k.select(this).selectAll("g."+o.groupClassName).each(Y)}).remove(),F.length!==0){var B=W.selectAll("g."+o.groupClassName).data(F,g);B.enter().append("g").classed(o.groupClassName,!0),B.exit().each(Y).remove();for(var G=0;G<F.length;G++){var J=F[G];f(q,J)}B.each(function(se){var re=k.select(this);(function(ne){var $=ne._dims;$.labelSteps=[];for(var te=ne._stepCount,ae=0;ae<te;ae+=$.labelStride)$.labelSteps.push({fraction:ae/(te-1),step:ne._visibleSteps[ae]})})(se),v.manageCommandObserver(q,se,se._visibleSteps,function(ne){var $=re.data()[0];$.active!==ne.index&&($._dragging||S(q,re,$,ne.index,!1,!0))}),function(ne,$,te){(te.steps[te.active]||{}).visible||(te.active=te._visibleSteps[0]._index),$.call(C,te).call(A,te).call(x,te).call(h,te).call(R,ne,te).call(y,ne,te);var ae=te._dims;w.setTranslate($,ae.lx+te.pad.l,ae.ly+te.pad.t),$.call(M,te,!1),$.call(C,te)}(q,k.select(this),se)})}}},97544:function(L,T,e){var k=e(60876);L.exports={moduleType:"component",name:k.name,layoutAttributes:e(89861),supplyLayoutDefaults:e(8132),draw:e(79664)}},81668:function(L,T,e){var k=e(33428),v=e(38248),n=e(7316),w=e(24040),b=e(3400),c=b.strTranslate,a=e(43616),t=e(76308),o=e(72736),i=e(13448),s=e(84284).OPPOSITE_SIDE,l=/ [XY][0-9]* /;L.exports={draw:function(u,d,g){var f,C=g.propContainer,y=g.propName,m=g.placeholder,x=g.traceIndex,_=g.avoid||{},S=g.attributes,O=g.transform,h=g.containerGroup,M=u._fullLayout,N=1,P=!1,R=C.title,A=(R&&R.text?R.text:"").trim(),q=R&&R.font?R.font:{},j=q.family,X=q.size,F=q.color;y==="title.text"?f="titleText":y.indexOf("axis")!==-1?f="axisTitleText":y.indexOf(!0)&&(f="colorbarTitleText");var W=u._context.edits[f];A===""?N=0:A.replace(l," % ")===m.replace(l," % ")&&(N=.2,P=!0,W||(A="")),g._meta?A=b.templateString(A,g._meta):M._meta&&(A=b.templateString(A,M._meta));var Y,B=A||W;h||(h=b.ensureSingle(M._infolayer,"g","g-"+d),Y=M._hColorbarMoveTitle);var G=h.selectAll("text").data(B?[0]:[]);if(G.enter().append("text"),G.text(A).attr("class",d),G.exit().remove(),!B)return h;function J(ne){b.syncOrAsync([se,re],ne)}function se(ne){var $;return!O&&Y&&(O={}),O?($="",O.rotate&&($+="rotate("+[O.rotate,S.x,S.y]+")"),(O.offset||Y)&&($+=c(0,(O.offset||0)-(Y||0)))):$=null,ne.attr("transform",$),ne.style({"font-family":j,"font-size":k.round(X,2)+"px",fill:t.rgb(F),opacity:N*t.opacity(F),"font-weight":n.fontWeight}).attr(S).call(o.convertToTspans,u),n.previousPromises(u)}function re(ne){var $=k.select(ne.node().parentNode);if(_&&_.selection&&_.side&&A){$.attr("transform",null);var te=s[_.side],ae=_.side==="left"||_.side==="top"?-1:1,ce=v(_.pad)?_.pad:2,ue=a.bBox($.node()),de={t:0,b:0,l:0,r:0},me=u._fullLayout._reservedMargin;for(var be in me)for(var _e in me[be]){var we=me[be][_e];de[_e]=Math.max(de[_e],we)}var Ce={left:de.l,top:de.t,right:M.width-de.r,bottom:M.height-de.b},Se=_.maxShift||ae*(Ce[_.side]-ue[_.side]),Pe=0;if(Se<0)Pe=Se;else{var Ne=_.offsetLeft||0,Oe=_.offsetTop||0;ue.left-=Ne,ue.right-=Ne,ue.top-=Oe,ue.bottom-=Oe,_.selection.each(function(){var fe=a.bBox(this);b.bBoxIntersect(ue,fe,ce)&&(Pe=Math.max(Pe,ae*(fe[_.side]-ue[te])+ce))}),Pe=Math.min(Se,Pe),C._titleScoot=Math.abs(Pe)}if(Pe>0||Se<0){var pe={left:[-Pe,0],right:[Pe,0],top:[0,-Pe],bottom:[0,Pe]}[_.side];$.attr("transform",c(pe[0],pe[1]))}}}return G.call(J),W&&(A?G.on(".opacity",null):(N=0,P=!0,G.text(m).on("mouseover.opacity",function(){k.select(this).transition().duration(i.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){k.select(this).transition().duration(i.HIDE_PLACEHOLDER).style("opacity",0)})),G.call(o.makeEditable,{gd:u}).on("edit",function(ne){x!==void 0?w.call("_guiRestyle",u,y,ne,x):w.call("_guiRelayout",u,y,ne)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(J)}).on("input",function(ne){this.text(ne||" ").call(o.positionText,S.x,S.y)})),G.classed("js-placeholder",P),h}}},88444:function(L,T,e){var k=e(25376),v=e(22548),n=e(92880).extendFlat,w=e(67824).overrideAll,b=e(66741),c=e(31780).templatedArray,a=c("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}});L.exports=w(c("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:a,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(b({editType:"arraydraw"}),{}),font:k({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:v.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},73712:function(L){L.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:"▼"}}},91384:function(L,T,e){var k=e(3400),v=e(51272),n=e(88444),w=e(73712).name,b=n.buttons;function c(t,o,i){function s(l,u){return k.coerce(t,o,n,l,u)}s("visible",v(t,o,{name:"buttons",handleItemDefaults:a}).length>0)&&(s("active"),s("direction"),s("type"),s("showactive"),s("x"),s("y"),k.noneOrAll(t,o,["x","y"]),s("xanchor"),s("yanchor"),s("pad.t"),s("pad.r"),s("pad.b"),s("pad.l"),k.coerceFont(s,"font",i.font),s("bgcolor",i.paper_bgcolor),s("bordercolor"),s("borderwidth"))}function a(t,o){function i(s,l){return k.coerce(t,o,b,s,l)}i("visible",t.method==="skip"||Array.isArray(t.args))&&(i("method"),i("args"),i("args2"),i("label"),i("execute"))}L.exports=function(t,o){v(t,o,{name:w,handleItemDefaults:c})}},14420:function(L,T,e){var k=e(33428),v=e(7316),n=e(76308),w=e(43616),b=e(3400),c=e(72736),a=e(31780).arrayEditor,t=e(84284).LINE_SPACING,o=e(73712),i=e(37400);function s(N){return N._index}function l(N,P){return+N.attr(o.menuIndexAttrName)===P._index}function u(N,P,R,A,q,j,X,F){P.active=X,a(N.layout,o.name,P).applyUpdate("active",X),P.type==="buttons"?g(N,A,null,null,P):P.type==="dropdown"&&(q.attr(o.menuIndexAttrName,"-1"),d(N,A,q,j,P),F||g(N,A,q,j,P))}function d(N,P,R,A,q){var j=b.ensureSingle(P,"g",o.headerClassName,function(G){G.style("pointer-events","all")}),X=q._dims,F=q.active,W=q.buttons[F]||o.blankHeaderOpts,Y={y:q.pad.t,yPad:0,x:q.pad.l,xPad:0,index:0},B={width:X.headerWidth,height:X.headerHeight};j.call(f,q,W,N).call(h,q,Y,B),b.ensureSingle(P,"text",o.headerArrowClassName,function(G){G.attr("text-anchor","end").call(w.font,q.font).text(o.arrowSymbol[q.direction])}).attr({x:X.headerWidth-o.arrowOffsetX+q.pad.l,y:X.headerHeight/2+o.textOffsetY+q.pad.t}),j.on("click",function(){R.call(M,String(l(R,q)?-1:q._index)),g(N,P,R,A,q)}),j.on("mouseover",function(){j.call(x)}),j.on("mouseout",function(){j.call(_,q)}),w.setTranslate(P,X.lx,X.ly)}function g(N,P,R,A,q){R||(R=P).attr("pointer-events","all");var j=function($){return+$.attr(o.menuIndexAttrName)==-1}(R)&&q.type!=="buttons"?[]:q.buttons,X=q.type==="dropdown"?o.dropdownButtonClassName:o.buttonClassName,F=R.selectAll("g."+X).data(b.filterVisible(j)),W=F.enter().append("g").classed(X,!0),Y=F.exit();q.type==="dropdown"?(W.attr("opacity","0").transition().attr("opacity","1"),Y.transition().attr("opacity","0").remove()):Y.remove();var B=0,G=0,J=q._dims,se=["up","down"].indexOf(q.direction)!==-1;q.type==="dropdown"&&(se?G=J.headerHeight+o.gapButtonHeader:B=J.headerWidth+o.gapButtonHeader),q.type==="dropdown"&&q.direction==="up"&&(G=-o.gapButtonHeader+o.gapButton-J.openHeight),q.type==="dropdown"&&q.direction==="left"&&(B=-o.gapButtonHeader+o.gapButton-J.openWidth);var re={x:J.lx+B+q.pad.l,y:J.ly+G+q.pad.t,yPad:o.gapButton,xPad:o.gapButton,index:0},ne={l:re.x+q.borderwidth,t:re.y+q.borderwidth};F.each(function($,te){var ae=k.select(this);ae.call(f,q,$,N).call(h,q,re),ae.on("click",function(){k.event.defaultPrevented||($.execute&&($.args2&&q.active===te?(u(N,q,0,P,R,A,-1),v.executeAPICommand(N,$.method,$.args2)):(u(N,q,0,P,R,A,te),v.executeAPICommand(N,$.method,$.args))),N.emit("plotly_buttonclicked",{menu:q,button:$,active:q.active}))}),ae.on("mouseover",function(){ae.call(x)}),ae.on("mouseout",function(){ae.call(_,q),F.call(m,q)})}),F.call(m,q),se?(ne.w=Math.max(J.openWidth,J.headerWidth),ne.h=re.y-ne.t):(ne.w=re.x-ne.l,ne.h=Math.max(J.openHeight,J.headerHeight)),ne.direction=q.direction,A&&(F.size()?function($,te,ae,ce,ue,de){var me,be,_e,we=ue.direction,Ce=we==="up"||we==="down",Se=ue._dims,Pe=ue.active;if(Ce)for(be=0,_e=0;_e<Pe;_e++)be+=Se.heights[_e]+o.gapButton;else for(me=0,_e=0;_e<Pe;_e++)me+=Se.widths[_e]+o.gapButton;ce.enable(de,me,be),ce.hbar&&ce.hbar.attr("opacity","0").transition().attr("opacity","1"),ce.vbar&&ce.vbar.attr("opacity","0").transition().attr("opacity","1")}(0,0,0,A,q,ne):function($){var te=!!$.hbar,ae=!!$.vbar;te&&$.hbar.transition().attr("opacity","0").each("end",function(){te=!1,ae||$.disable()}),ae&&$.vbar.transition().attr("opacity","0").each("end",function(){ae=!1,te||$.disable()})}(A))}function f(N,P,R,A){N.call(C,P).call(y,P,R,A)}function C(N,P){b.ensureSingle(N,"rect",o.itemRectClassName,function(R){R.attr({rx:o.rx,ry:o.ry,"shape-rendering":"crispEdges"})}).call(n.stroke,P.bordercolor).call(n.fill,P.bgcolor).style("stroke-width",P.borderwidth+"px")}function y(N,P,R,A){var q=b.ensureSingle(N,"text",o.itemTextClassName,function(F){F.attr({"text-anchor":"start","data-notex":1})}),j=R.label,X=A._fullLayout._meta;X&&(j=b.templateString(j,X)),q.call(w.font,P.font).text(j).call(c.convertToTspans,A)}function m(N,P){var R=P.active;N.each(function(A,q){var j=k.select(this);q===R&&P.showactive&&j.select("rect."+o.itemRectClassName).call(n.fill,o.activeColor)})}function x(N){N.select("rect."+o.itemRectClassName).call(n.fill,o.hoverColor)}function _(N,P){N.select("rect."+o.itemRectClassName).call(n.fill,P.bgcolor)}function S(N,P){var R=P._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},A=w.tester.selectAll("g."+o.dropdownButtonClassName).data(b.filterVisible(P.buttons));A.enter().append("g").classed(o.dropdownButtonClassName,!0);var q=["up","down"].indexOf(P.direction)!==-1;A.each(function(B,G){var J=k.select(this);J.call(f,P,B,N);var se=J.select("."+o.itemTextClassName),re=se.node()&&w.bBox(se.node()).width,ne=Math.max(re+o.textPadX,o.minWidth),$=P.font.size*t,te=c.lineCount(se),ae=Math.max($*te,o.minHeight)+o.textOffsetY;ae=Math.ceil(ae),ne=Math.ceil(ne),R.widths[G]=ne,R.heights[G]=ae,R.height1=Math.max(R.height1,ae),R.width1=Math.max(R.width1,ne),q?(R.totalWidth=Math.max(R.totalWidth,ne),R.openWidth=R.totalWidth,R.totalHeight+=ae+o.gapButton,R.openHeight+=ae+o.gapButton):(R.totalWidth+=ne+o.gapButton,R.openWidth+=ne+o.gapButton,R.totalHeight=Math.max(R.totalHeight,ae),R.openHeight=R.totalHeight)}),q?R.totalHeight-=o.gapButton:R.totalWidth-=o.gapButton,R.headerWidth=R.width1+o.arrowPadX,R.headerHeight=R.height1,P.type==="dropdown"&&(q?(R.width1+=o.arrowPadX,R.totalHeight=R.height1):R.totalWidth=R.width1,R.totalWidth+=o.arrowPadX),A.remove();var j=R.totalWidth+P.pad.l+P.pad.r,X=R.totalHeight+P.pad.t+P.pad.b,F=N._fullLayout._size;R.lx=F.l+F.w*P.x,R.ly=F.t+F.h*(1-P.y);var W="left";b.isRightAnchor(P)&&(R.lx-=j,W="right"),b.isCenterAnchor(P)&&(R.lx-=j/2,W="center");var Y="top";b.isBottomAnchor(P)&&(R.ly-=X,Y="bottom"),b.isMiddleAnchor(P)&&(R.ly-=X/2,Y="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),v.autoMargin(N,O(P),{x:P.x,y:P.y,l:j*({right:1,center:.5}[W]||0),r:j*({left:1,center:.5}[W]||0),b:X*({top:1,middle:.5}[Y]||0),t:X*({bottom:1,middle:.5}[Y]||0)})}function O(N){return o.autoMarginIdRoot+N._index}function h(N,P,R,A){A=A||{};var q=N.select("."+o.itemRectClassName),j=N.select("."+o.itemTextClassName),X=P.borderwidth,F=R.index,W=P._dims;w.setTranslate(N,X+R.x,X+R.y);var Y=["up","down"].indexOf(P.direction)!==-1,B=A.height||(Y?W.heights[F]:W.height1);q.attr({x:0,y:0,width:A.width||(Y?W.width1:W.widths[F]),height:B});var G=P.font.size*t,J=(c.lineCount(j)-1)*G/2;c.positionText(j,o.textOffsetX,B/2-J+o.textOffsetY),Y?R.y+=W.heights[F]+R.yPad:R.x+=W.widths[F]+R.xPad,R.index++}function M(N,P){N.attr(o.menuIndexAttrName,P||"-1").selectAll("g."+o.dropdownButtonClassName).remove()}L.exports=function(N){var P=N._fullLayout,R=b.filterVisible(P[o.name]);function A(G){v.autoMargin(N,O(G))}var q=P._menulayer.selectAll("g."+o.containerClassName).data(R.length>0?[0]:[]);if(q.enter().append("g").classed(o.containerClassName,!0).style("cursor","pointer"),q.exit().each(function(){k.select(this).selectAll("g."+o.headerGroupClassName).each(A)}).remove(),R.length!==0){var j=q.selectAll("g."+o.headerGroupClassName).data(R,s);j.enter().append("g").classed(o.headerGroupClassName,!0);for(var X=b.ensureSingle(q,"g",o.dropdownButtonGroupClassName,function(G){G.style("pointer-events","all")}),F=0;F<R.length;F++){var W=R[F];S(N,W)}var Y="updatemenus"+P._uid,B=new i(N,X,Y);j.enter().size()&&(X.node().parentNode.appendChild(X.node()),X.call(M)),j.exit().each(function(G){X.call(M),A(G)}).remove(),j.each(function(G){var J=k.select(this),se=G.type==="dropdown"?X:null;v.manageCommandObserver(N,G,G.buttons,function(re){u(N,G,G.buttons[re.index],J,se,B,re.index,!0)}),G.type==="dropdown"?(d(N,J,X,B,G),l(X,G)&&g(N,J,X,B,G)):g(N,J,null,null,G)})}}},76908:function(L,T,e){var k=e(73712);L.exports={moduleType:"component",name:k.name,layoutAttributes:e(88444),supplyLayoutDefaults:e(91384),draw:e(14420)}},37400:function(L,T,e){L.exports=b;var k=e(33428),v=e(76308),n=e(43616),w=e(3400);function b(c,a,t){this.gd=c,this.container=a,this.id=t,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})}b.barWidth=2,b.barLength=20,b.barRadius=2,b.barPad=1,b.barColor="#808BA4",b.prototype.enable=function(c,a,t){var o=this.gd._fullLayout,i=o.width,s=o.height;this.position=c;var l,u,d,g,f=this.position.l,C=this.position.w,y=this.position.t,m=this.position.h,x=this.position.direction,_=x==="down",S=x==="left",O=x==="up",h=C,M=m;_||S||x==="right"||O||(this.position.direction="down",_=!0),_||O?(u=(l=f)+h,_?(d=y,M=(g=Math.min(d+M,s))-d):M=(g=y+M)-(d=Math.max(g-M,0))):(g=(d=y)+M,S?h=(u=f+h)-(l=Math.max(u-h,0)):(l=f,h=(u=Math.min(l+h,i))-l)),this._box={l,t:d,w:h,h:M};var N=C>h,P=b.barLength+2*b.barPad,R=b.barWidth+2*b.barPad,A=f,q=y+m;q+R>s&&(q=s-R);var j=this.container.selectAll("rect.scrollbar-horizontal").data(N?[0]:[]);j.exit().on(".drag",null).remove(),j.enter().append("rect").classed("scrollbar-horizontal",!0).call(v.fill,b.barColor),N?(this.hbar=j.attr({rx:b.barRadius,ry:b.barRadius,x:A,y:q,width:P,height:R}),this._hbarXMin=A+P/2,this._hbarTranslateMax=h-P):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var X=m>M,F=b.barWidth+2*b.barPad,W=b.barLength+2*b.barPad,Y=f+C,B=y;Y+F>i&&(Y=i-F);var G=this.container.selectAll("rect.scrollbar-vertical").data(X?[0]:[]);G.exit().on(".drag",null).remove(),G.enter().append("rect").classed("scrollbar-vertical",!0).call(v.fill,b.barColor),X?(this.vbar=G.attr({rx:b.barRadius,ry:b.barRadius,x:Y,y:B,width:F,height:W}),this._vbarYMin=B+W/2,this._vbarTranslateMax=M-W):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var J=this.id,se=l-.5,re=X?u+F+.5:u+.5,ne=d-.5,$=N?g+R+.5:g+.5,te=o._topdefs.selectAll("#"+J).data(N||X?[0]:[]);if(te.exit().remove(),te.enter().append("clipPath").attr("id",J).append("rect"),N||X?(this._clipRect=te.select("rect").attr({x:Math.floor(se),y:Math.floor(ne),width:Math.ceil(re)-Math.floor(se),height:Math.ceil($)-Math.floor(ne)}),this.container.call(n.setClipUrl,J,this.gd),this.bg.attr({x:f,y,width:C,height:m})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(n.setClipUrl,null),delete this._clipRect),N||X){var ae=k.behavior.drag().on("dragstart",function(){k.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ae);var ce=k.behavior.drag().on("dragstart",function(){k.event.sourceEvent.preventDefault(),k.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));N&&this.hbar.on(".drag",null).call(ce),X&&this.vbar.on(".drag",null).call(ce)}this.setTranslate(a,t)},b.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)},b.prototype._onBoxDrag=function(){var c=this.translateX,a=this.translateY;this.hbar&&(c-=k.event.dx),this.vbar&&(a-=k.event.dy),this.setTranslate(c,a)},b.prototype._onBoxWheel=function(){var c=this.translateX,a=this.translateY;this.hbar&&(c+=k.event.deltaY),this.vbar&&(a+=k.event.deltaY),this.setTranslate(c,a)},b.prototype._onBarDrag=function(){var c=this.translateX,a=this.translateY;if(this.hbar){var t=c+this._hbarXMin,o=t+this._hbarTranslateMax;c=(w.constrain(k.event.x,t,o)-t)/(o-t)*(this.position.w-this._box.w)}if(this.vbar){var i=a+this._vbarYMin,s=i+this._vbarTranslateMax;a=(w.constrain(k.event.y,i,s)-i)/(s-i)*(this.position.h-this._box.h)}this.setTranslate(c,a)},b.prototype.setTranslate=function(c,a){var t=this.position.w-this._box.w,o=this.position.h-this._box.h;if(c=w.constrain(c||0,0,t),a=w.constrain(a||0,0,o),this.translateX=c,this.translateY=a,this.container.call(n.setTranslate,this._box.l-this.position.l-c,this._box.t-this.position.t-a),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+c-.5),y:Math.floor(this.position.t+a-.5)}),this.hbar){var i=c/t;this.hbar.call(n.setTranslate,c+i*this._hbarTranslateMax,a)}if(this.vbar){var s=a/o;this.vbar.call(n.setTranslate,c,a+s*this._vbarTranslateMax)}}},84284:function(L){L.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"}}},36208:function(L){L.exports={axisRefDescription:function(T,e,k){return["If set to a",T,"axis id (e.g. *"+T+"* or","*"+T+"2*), the `"+T+"` position refers to a",T,"coordinate. If set to *paper*, the `"+T+"`","position refers to the distance from the",e,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",e,"("+k+"). If set to a",T,"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",e,"of the domain of that axis: e.g.,","*"+T+"2 domain* refers to the domain of the second",T," axis and a",T,"position of 0.5 refers to the","point between the",e,"and the",k,"of the domain of the","second",T,"axis."].join(" ")}}},48164:function(L){L.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},26880:function(L){L.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"}},69104:function(L){L.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},99168:function(L){L.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]}},87792:function(L){L.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},13448:function(L){L.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},39032:function(L){L.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,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},2264:function(L,T){T.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"]],T.STYLE=T.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")},9616:function(L,T){T.xmlns="http://www.w3.org/2000/xmlns/",T.svg="http://www.w3.org/2000/svg",T.xlink="http://www.w3.org/1999/xlink",T.svgAttrs={xmlns:T.svg,"xmlns:xlink":T.xlink}},64884:function(L,T,e){T.version=e(25788).version,e(88324),e(79288);for(var k=e(24040),v=T.register=k.register,n=e(22448),w=Object.keys(n),b=0;b<w.length;b++){var c=w[b];c.charAt(0)!=="_"&&(T[c]=n[c]),v({moduleType:"apiMethod",name:c,fn:n[c]})}v(e(65875)),v([e(79180),e(56864),e(22676),e(41592),e(7402),e(76908),e(97544),e(49692),e(41152),e(12704),e(64968),e(8932),e(55080),e(2780),e(93024),e(45460)]),v([e(6580),e(11680)]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(v(window.PlotlyLocales),delete window.PlotlyLocales),T.Icons=e(9224);var a=e(93024),t=e(7316);T.Plots={resize:t.resize,graphJson:t.graphJson,sendDataToCloud:t.sendDataToCloud},T.Fx={hover:a.hover,unhover:a.unhover,loneHover:a.loneHover,loneUnhover:a.loneUnhover},T.Snapshot=e(78904),T.PlotSchema=e(73060)},9224:function(L){L.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("")}}},98308:function(L,T){T.isLeftAnchor=function(e){return e.xanchor==="left"||e.xanchor==="auto"&&e.x<=.3333333333333333},T.isCenterAnchor=function(e){return e.xanchor==="center"||e.xanchor==="auto"&&e.x>.3333333333333333&&e.x<.6666666666666666},T.isRightAnchor=function(e){return e.xanchor==="right"||e.xanchor==="auto"&&e.x>=.6666666666666666},T.isTopAnchor=function(e){return e.yanchor==="top"||e.yanchor==="auto"&&e.y>=.6666666666666666},T.isMiddleAnchor=function(e){return e.yanchor==="middle"||e.yanchor==="auto"&&e.y>.3333333333333333&&e.y<.6666666666666666},T.isBottomAnchor=function(e){return e.yanchor==="bottom"||e.yanchor==="auto"&&e.y<=.3333333333333333}},11864:function(L,T,e){var k=e(20435),v=k.mod,n=k.modHalf,w=Math.PI,b=2*w;function c(i){return Math.abs(i[1]-i[0])>b-1e-14}function a(i,s){return n(s-i,b)}function t(i,s){if(c(s))return!0;var l,u;s[0]<s[1]?(l=s[0],u=s[1]):(l=s[1],u=s[0]),(l=v(l,b))>(u=v(u,b))&&(u+=b);var d=v(i,b),g=d+b;return d>=l&&d<=u||g>=l&&g<=u}function o(i,s,l,u,d,g,f){d=d||0,g=g||0;var C,y,m,x,_,S=c([l,u]);function O(P,R){return[P*Math.cos(R)+d,g-P*Math.sin(R)]}S?(C=0,y=w,m=b):l<u?(C=l,m=u):(C=u,m=l),i<s?(x=i,_=s):(x=s,_=i);var h,M=Math.abs(m-C)<=w?0:1;function N(P,R,A){return"A"+[P,P]+" "+[0,M,A]+" "+O(P,R)}return S?h=x===null?"M"+O(_,C)+N(_,y,0)+N(_,m,0)+"Z":"M"+O(x,C)+N(x,y,0)+N(x,m,0)+"ZM"+O(_,C)+N(_,y,1)+N(_,m,1)+"Z":x===null?(h="M"+O(_,C)+N(_,m,0),f&&(h+="L0,0Z")):h="M"+O(x,C)+"L"+O(_,C)+N(_,m,0)+"L"+O(x,m)+N(x,C,1)+"Z",h}L.exports={deg2rad:function(i){return i/180*w},rad2deg:function(i){return i/w*180},angleDelta:a,angleDist:function(i,s){return Math.abs(a(i,s))},isFullCircle:c,isAngleInsideSector:t,isPtInsideSector:function(i,s,l,u){return!!t(s,u)&&(l[0]<l[1]?(d=l[0],g=l[1]):(d=l[1],g=l[0]),i>=d&&i<=g);var d,g},pathArc:function(i,s,l,u,d){return o(null,i,s,l,u,d,0)},pathSector:function(i,s,l,u,d){return o(null,i,s,l,u,d,1)},pathAnnulus:function(i,s,l,u,d,g){return o(i,s,l,u,d,g,1)}}},38116:function(L,T,e){var k=e(83160).decode,v=e(63620),n=Array.isArray,w=ArrayBuffer,b=DataView;function c(s){return w.isView(s)&&!(s instanceof b)}function a(s){return n(s)||c(s)}T.isTypedArray=c,T.isArrayOrTypedArray=a,T.isArray1D=function(s){return!a(s[0])},T.ensureArray=function(s,l){return n(s)||(s=[]),s.length=l,s};var t={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 o(s){return s.constructor===ArrayBuffer}function i(s,l,u){if(a(s)){if(a(s[0])){for(var d=u,g=0;g<s.length;g++)d=l(d,s[g].length);return d}return s.length}return 0}t.uint8c=t.u1c,t.uint8=t.u1,t.int8=t.i1,t.uint16=t.u2,t.int16=t.i2,t.uint32=t.u4,t.int32=t.i4,t.float32=t.f4,t.float64=t.f8,T.isArrayBuffer=o,T.decodeTypedArraySpec=function(s){var l=[],u=function(P){return{bdata:P.bdata,dtype:P.dtype,shape:P.shape}}(s),d=u.dtype,g=t[d];if(!g)throw new Error('Error in dtype: "'+d+'"');var f=g.BYTES_PER_ELEMENT,C=u.bdata;o(C)||(C=k(C));var y=u.shape===void 0?[C.byteLength/f]:(""+u.shape).split(",");y.reverse();var m,x,_=y.length,S=+y[0],O=f*S,h=0;if(_===1)l=new g(C);else if(_===2)for(m=+y[1],x=0;x<m;x++)l[x]=new g(C,h,S),h+=O;else{if(_!==3)throw new Error("ndim: "+_+'is not supported with the shape:"'+u.shape+'"');m=+y[1];for(var M=+y[2],N=0;N<M;N++)for(l[N]=[],x=0;x<m;x++)l[N][x]=new g(C,h,S),h+=O}return l.bdata=u.bdata,l.dtype=u.dtype,l.shape=y.reverse().join(","),s._inputArray=l,l},T.isTypedArraySpec=function(s){return v(s)&&s.hasOwnProperty("dtype")&&typeof s.dtype=="string"&&s.hasOwnProperty("bdata")&&(typeof s.bdata=="string"||o(s.bdata))&&(s.shape===void 0||s.hasOwnProperty("shape")&&(typeof s.shape=="string"||typeof s.shape=="number"))},T.concat=function(){var s,l,u,d,g,f,C,y,m=[],x=!0,_=0;for(u=0;u<arguments.length;u++)(f=(d=arguments[u]).length)&&(l?m.push(d):(l=d,g=f),n(d)?s=!1:(x=!1,_?s!==d.constructor&&(s=!1):s=d.constructor),_+=f);if(!_)return[];if(!m.length)return l;if(x)return l.concat.apply(l,m);if(s){for((C=new s(_)).set(l),u=0;u<m.length;u++)d=m[u],C.set(d,g),g+=d.length;return C}for(C=new Array(_),y=0;y<l.length;y++)C[y]=l[y];for(u=0;u<m.length;u++){for(d=m[u],y=0;y<d.length;y++)C[g+y]=d[y];g+=y}return C},T.maxRowLength=function(s){return i(s,Math.max,0)},T.minRowLength=function(s){return i(s,Math.min,1/0)}},54037:function(L,T,e){var k=e(38248),v=e(39032).BADNUM,n=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;L.exports=function(w){return typeof w=="string"&&(w=w.replace(n,"")),k(w)?Number(w):v}},73696:function(L){L.exports=function(T){var e=T._fullLayout;e._glcanvas&&e._glcanvas.size()&&e._glcanvas.each(function(k){k.regl&&k.regl.clear({color:!0,depth:!0})})}},75352:function(L){L.exports=function(T){T._responsiveChartHandler&&(window.removeEventListener("resize",T._responsiveChartHandler),delete T._responsiveChartHandler)}},63064:function(L,T,e){var k=e(38248),v=e(49760),n=e(45464),w=e(88304),b=e(76308),c=e(13448).DESELECTDIM,a=e(22296),t=e(53756).counter,o=e(20435).modHalf,i=e(38116).isArrayOrTypedArray,s=e(38116).isTypedArraySpec,l=e(38116).decodeTypedArraySpec;function u(d,g){var f=T.valObjectMeta[g.valType];if(g.arrayOk&&i(d))return!0;if(f.validateFunction)return f.validateFunction(d,g);var C={},y=C,m={set:function(x){y=x}};return f.coerceFunction(d,m,C,g),y!==C}T.valObjectMeta={data_array:{coerceFunction:function(d,g,f){g.set(i(d)?d:s(d)?l(d):f)}},enumerated:{coerceFunction:function(d,g,f,C){C.coerceNumber&&(d=+d),C.values.indexOf(d)===-1?g.set(f):g.set(d)},validateFunction:function(d,g){g.coerceNumber&&(d=+d);for(var f=g.values,C=0;C<f.length;C++){var y=String(f[C]);if(y.charAt(0)==="/"&&y.charAt(y.length-1)==="/"){if(new RegExp(y.substr(1,y.length-2)).test(d))return!0}else if(d===f[C])return!0}return!1}},boolean:{coerceFunction:function(d,g,f){d===!0||d===!1?g.set(d):g.set(f)}},number:{coerceFunction:function(d,g,f,C){!k(d)||C.min!==void 0&&d<C.min||C.max!==void 0&&d>C.max?g.set(f):g.set(+d)}},integer:{coerceFunction:function(d,g,f,C){d%1||!k(d)||C.min!==void 0&&d<C.min||C.max!==void 0&&d>C.max?g.set(f):g.set(+d)}},string:{coerceFunction:function(d,g,f,C){if(typeof d!="string"){var y=typeof d=="number";C.strict!==!0&&y?g.set(String(d)):g.set(f)}else C.noBlank&&!d?g.set(f):g.set(d)}},color:{coerceFunction:function(d,g,f){v(d).isValid()?g.set(d):g.set(f)}},colorlist:{coerceFunction:function(d,g,f){Array.isArray(d)&&d.length&&d.every(function(C){return v(C).isValid()})?g.set(d):g.set(f)}},colorscale:{coerceFunction:function(d,g,f){g.set(w.get(d,f))}},angle:{coerceFunction:function(d,g,f){d==="auto"?g.set("auto"):k(d)?g.set(o(+d,360)):g.set(f)}},subplotid:{coerceFunction:function(d,g,f,C){var y=C.regex||t(f);typeof d=="string"&&y.test(d)?g.set(d):g.set(f)},validateFunction:function(d,g){var f=g.dflt;return d===f||typeof d=="string"&&!!t(f).test(d)}},flaglist:{coerceFunction:function(d,g,f,C){if((C.extras||[]).indexOf(d)===-1)if(typeof d=="string"){for(var y=d.split("+"),m=0;m<y.length;){var x=y[m];C.flags.indexOf(x)===-1||y.indexOf(x)<m?y.splice(m,1):m++}y.length?g.set(y.join("+")):g.set(f)}else g.set(f);else g.set(d)}},any:{coerceFunction:function(d,g,f){d===void 0?g.set(f):g.set(s(d)?l(d):d)}},info_array:{coerceFunction:function(d,g,f,C){function y(X,F,W){var Y,B={set:function(G){Y=G}};return W===void 0&&(W=F.dflt),T.valObjectMeta[F.valType].coerceFunction(X,B,W,F),Y}if(s(d)&&(d=l(d)),i(d)){var m,x,_,S,O,h,M=C.dimensions===2||C.dimensions==="1-2"&&Array.isArray(d)&&i(d[0]),N=C.items,P=[],R=Array.isArray(N),A=R&&M&&i(N[0]),q=M&&R&&!A,j=R&&!q?N.length:d.length;if(f=Array.isArray(f)?f:[],M)for(m=0;m<j;m++)for(P[m]=[],_=i(d[m])?d[m]:[],O=q?N.length:R?N[m].length:_.length,x=0;x<O;x++)S=q?N[x]:R?N[m][x]:N,(h=y(_[x],S,(f[m]||[])[x]))!==void 0&&(P[m][x]=h);else for(m=0;m<j;m++)(h=y(d[m],R?N[m]:N,f[m]))!==void 0&&(P[m]=h);g.set(P)}else g.set(f)},validateFunction:function(d,g){if(!i(d))return!1;var f=g.items,C=Array.isArray(f),y=g.dimensions===2;if(!g.freeLength&&d.length!==f.length)return!1;for(var m=0;m<d.length;m++)if(y){if(!i(d[m])||!g.freeLength&&d[m].length!==f[m].length)return!1;for(var x=0;x<d[m].length;x++)if(!u(d[m][x],C?f[m][x]:f))return!1}else if(!u(d[m],C?f[m]:f))return!1;return!0}}},T.coerce=function(d,g,f,C,y){var m=a(f,C).get(),x=a(d,C),_=a(g,C),S=x.get(),O=g._template;if(S===void 0&&O&&(S=a(O,C).get(),O=0),y===void 0&&(y=m.dflt),m.arrayOk){if(i(S))return _.set(S),S;if(s(S))return S=l(S),_.set(S),S}var h=T.valObjectMeta[m.valType].coerceFunction;h(S,_,y,m);var M=_.get();return O&&M===y&&!u(S,m)&&(h(S=a(O,C).get(),_,y,m),M=_.get()),M},T.coerce2=function(d,g,f,C,y){var m=a(d,C),x=T.coerce(d,g,f,C,y);return m.get()!=null&&x},T.coerceFont=function(d,g,f){var C={};return f=f||{},C.family=d(g+".family",f.family),C.size=d(g+".size",f.size),C.color=d(g+".color",f.color),C},T.coercePattern=function(d,g,f,C){if(d(g+".shape")){d(g+".solidity"),d(g+".size");var y=d(g+".fillmode")==="overlay";if(!C){var m=d(g+".bgcolor",y?f:void 0);d(g+".fgcolor",y?b.contrast(m):f)}d(g+".fgopacity",y?.5:1)}},T.coerceHoverinfo=function(d,g,f){var C,y=g._module.attributes,m=y.hoverinfo?y:n,x=m.hoverinfo;if(f._dataLength===1){var _=x.dflt==="all"?x.flags.slice():x.dflt.split("+");_.splice(_.indexOf("name"),1),C=_.join("+")}return T.coerce(d,g,m,"hoverinfo",C)},T.coerceSelectionMarkerOpacity=function(d,g){if(d.marker){var f,C,y=d.marker.opacity;y!==void 0&&(i(y)||d.selected||d.unselected||(f=y,C=c*y),g("selected.marker.opacity",f),g("unselected.marker.opacity",C))}},T.validate=u},67555:function(L,T,e){var k,v,n=e(94336).Yn,w=e(38248),b=e(24248),c=e(20435).mod,a=e(39032),t=a.BADNUM,o=a.ONEDAY,i=a.ONEHOUR,s=a.ONEMIN,l=a.ONESEC,u=a.EPOCHJD,d=e(24040),g=e(94336).E9,f=/^\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,C=/^\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,y=new Date().getFullYear()-70;function m(j){return j&&d.componentsRegistry.calendars&&typeof j=="string"&&j!=="gregorian"}function x(j,X){return String(j+Math.pow(10,X)).substr(1)}T.dateTick0=function(j,X){var F=function(Y,B){return m(Y)?B?d.getComponentMethod("calendars","CANONICAL_SUNDAY")[Y]:d.getComponentMethod("calendars","CANONICAL_TICK")[Y]:B?"2000-01-02":"2000-01-01"}(j,!!X);if(X<2)return F;var W=T.dateTime2ms(F,j);return W+=o*(X-1),T.ms2DateTime(W,0,j)},T.dfltRange=function(j){return m(j)?d.getComponentMethod("calendars","DFLTRANGE")[j]:["2000-01-01","2001-01-01"]},T.isJSDate=function(j){return typeof j=="object"&&j!==null&&typeof j.getTime=="function"},T.dateTime2ms=function(j,X){if(T.isJSDate(j)){var F=j.getTimezoneOffset()*s,W=(j.getUTCMinutes()-j.getMinutes())*s+(j.getUTCSeconds()-j.getSeconds())*l+(j.getUTCMilliseconds()-j.getMilliseconds());if(W){var Y=3*s;F=F-Y/2+c(W-F+Y/2,Y)}return(j=Number(j)-F)>=k&&j<=v?j:t}if(typeof j!="string"&&typeof j!="number")return t;j=String(j);var B=m(X),G=j.charAt(0);!B||G!=="G"&&G!=="g"||(j=j.substr(1),X="");var J=B&&X.substr(0,7)==="chinese",se=j.match(J?C:f);if(!se)return t;var re=se[1],ne=se[3]||"1",$=Number(se[5]||1),te=Number(se[7]||0),ae=Number(se[9]||0),ce=Number(se[11]||0);if(B){if(re.length===2)return t;var ue;re=Number(re);try{var de=d.getComponentMethod("calendars","getCal")(X);if(J){var me=ne.charAt(ne.length-1)==="i";ne=parseInt(ne,10),ue=de.newDate(re,de.toMonthIndex(re,ne,me),$)}else ue=de.newDate(re,Number(ne),$)}catch{return t}return ue?(ue.toJD()-u)*o+te*i+ae*s+ce*l:t}re=re.length===2?(Number(re)+2e3-y)%100+y:Number(re),ne-=1;var be=new Date(Date.UTC(2e3,ne,$,te,ae));return be.setUTCFullYear(re),be.getUTCMonth()!==ne||be.getUTCDate()!==$?t:be.getTime()+ce*l},k=T.MIN_MS=T.dateTime2ms("-9999"),v=T.MAX_MS=T.dateTime2ms("9999-12-31 23:59:59.9999"),T.isDateTime=function(j,X){return T.dateTime2ms(j,X)!==t};var _=90*o,S=3*i,O=5*s;function h(j,X,F,W,Y){if((X||F||W||Y)&&(j+=" "+x(X,2)+":"+x(F,2),(W||Y)&&(j+=":"+x(W,2),Y))){for(var B=4;Y%10==0;)B-=1,Y/=10;j+="."+x(Y,B)}return j}T.ms2DateTime=function(j,X,F){if(typeof j!="number"||!(j>=k&&j<=v))return t;X||(X=0);var W,Y,B,G,J,se,re=Math.floor(10*c(j+.05,1)),ne=Math.round(j-re/10);if(m(F)){var $=Math.floor(ne/o)+u,te=Math.floor(c(j,o));try{W=d.getComponentMethod("calendars","getCal")(F).fromJD($).formatDate("yyyy-mm-dd")}catch{W=g("G%Y-%m-%d")(new Date(ne))}if(W.charAt(0)==="-")for(;W.length<11;)W="-0"+W.substr(1);else for(;W.length<10;)W="0"+W;Y=X<_?Math.floor(te/i):0,B=X<_?Math.floor(te%i/s):0,G=X<S?Math.floor(te%s/l):0,J=X<O?te%l*10+re:0}else se=new Date(ne),W=g("%Y-%m-%d")(se),Y=X<_?se.getUTCHours():0,B=X<_?se.getUTCMinutes():0,G=X<S?se.getUTCSeconds():0,J=X<O?10*se.getUTCMilliseconds()+re:0;return h(W,Y,B,G,J)},T.ms2DateTimeLocal=function(j){if(!(j>=k+o&&j<=v-o))return t;var X=Math.floor(10*c(j+.05,1)),F=new Date(Math.round(j-X/10));return h(n("%Y-%m-%d")(F),F.getHours(),F.getMinutes(),F.getSeconds(),10*F.getUTCMilliseconds()+X)},T.cleanDate=function(j,X,F){if(j===t)return X;if(T.isJSDate(j)||typeof j=="number"&&isFinite(j)){if(m(F))return b.error("JS Dates and milliseconds are incompatible with world calendars",j),X;if(!(j=T.ms2DateTimeLocal(+j))&&X!==void 0)return X}else if(!T.isDateTime(j,F))return b.error("unrecognized date",j),X;return j};var M=/%\d?f/g,N=/%h/g,P={1:"1",2:"1",3:"2",4:"2"};function R(j,X,F,W){j=j.replace(M,function(B){var G=Math.min(+B.charAt(1)||6,6);return(X/1e3%1+2).toFixed(G).substr(2).replace(/0+$/,"")||"0"});var Y=new Date(Math.floor(X+.05));if(j=j.replace(N,function(){return P[F("%q")(Y)]}),m(W))try{j=d.getComponentMethod("calendars","worldCalFmt")(j,X,W)}catch{return"Invalid"}return F(j)(Y)}var A=[59,59.9,59.99,59.999,59.9999];T.formatDate=function(j,X,F,W,Y,B){if(Y=m(Y)&&Y,!X)if(F==="y")X=B.year;else if(F==="m")X=B.month;else{if(F!=="d")return function(G,J){var se=c(G+.05,o),re=x(Math.floor(se/i),2)+":"+x(c(Math.floor(se/s),60),2);if(J!=="M"){w(J)||(J=0);var ne=(100+Math.min(c(G/l,60),A[J])).toFixed(J).substr(1);J>0&&(ne=ne.replace(/0+$/,"").replace(/[\.]$/,"")),re+=":"+ne}return re}(j,F)+`
52
+ `+L):K.stack=L}throw K}}_request(U,E){typeof U=="string"?(E=E||{},E.url=U):E=U||{},E=af(this.defaults,E);const{transitional:K,paramsSerializer:oe,headers:L}=E;K!==void 0&&g2.assertOptions(K,{silentJSONParsing:gd.transitional(gd.boolean),forcedJSONParsing:gd.transitional(gd.boolean),clarifyTimeoutError:gd.transitional(gd.boolean)},!1),oe!=null&&(jr.isFunction(oe)?E.paramsSerializer={serialize:oe}:g2.assertOptions(oe,{encode:gd.function,serialize:gd.function},!0)),E.method=(E.method||this.defaults.method||"get").toLowerCase();let T=L&&jr.merge(L.common,L[E.method]);L&&jr.forEach(["delete","get","head","post","put","patch","common"],a=>{delete L[a]}),E.headers=Ru.concat(T,L);const e=[];let k=!0;this.interceptors.request.forEach(function(a){typeof a.runWhen=="function"&&a.runWhen(E)===!1||(k=k&&a.synchronous,e.unshift(a.fulfilled,a.rejected))});const v=[];this.interceptors.response.forEach(function(a){v.push(a.fulfilled,a.rejected)});let n,w=0,b;if(!k){const a=[P6.bind(this),void 0];for(a.unshift.apply(a,e),a.push.apply(a,v),b=a.length,n=Promise.resolve(E);w<b;)n=n.then(a[w++],a[w++]);return n}b=e.length;let c=E;for(w=0;w<b;){const a=e[w++],t=e[w++];try{c=a(c)}catch(o){t.call(this,o);break}}try{n=P6.call(this,c)}catch(a){return Promise.reject(a)}for(w=0,b=v.length;w<b;)n=n.then(v[w++],v[w++]);return n}getUri(U){U=af(this.defaults,U);const E=E6(U.baseURL,U.url);return S6(E,U.params,U.paramsSerializer)}}jr.forEach(["delete","get","head","options"],function(r){Y1.prototype[r]=function(U,E){return this.request(af(E||{},{method:r,url:U,data:(E||{}).data}))}}),jr.forEach(["post","put","patch"],function(r){function U(E){return function(K,oe,L){return this.request(af(L||{},{method:r,headers:E?{"Content-Type":"multipart/form-data"}:{},url:K,data:oe}))}}Y1.prototype[r]=U(),Y1.prototype[r+"Form"]=U(!0)});const Q1=Y1;class v2{constructor(U){if(typeof U!="function")throw new TypeError("executor must be a function.");let E;this.promise=new Promise(function(oe){E=oe});const K=this;this.promise.then(oe=>{if(!K._listeners)return;let L=K._listeners.length;for(;L-- >0;)K._listeners[L](oe);K._listeners=null}),this.promise.then=oe=>{let L;const T=new Promise(e=>{K.subscribe(e),L=e}).then(oe);return T.cancel=function(){K.unsubscribe(L)},T},U(function(oe,L,T){K.reason||(K.reason=new Ph(oe,L,T),E(K.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(U){if(this.reason){U(this.reason);return}this._listeners?this._listeners.push(U):this._listeners=[U]}unsubscribe(U){if(!this._listeners)return;const E=this._listeners.indexOf(U);E!==-1&&this._listeners.splice(E,1)}static source(){let U;return{token:new v2(function(E){U=E}),cancel:U}}}const KZ=v2;function BZ(r){return function(U){return r.apply(null,U)}}function DZ(r){return jr.isObject(r)&&r.isAxiosError===!0}const b2={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(b2).forEach(([r,U])=>{b2[U]=r});const WZ=b2;function q6(r){const U=new Q1(r),E=s6(Q1.prototype.request,U);return jr.extend(E,Q1.prototype,U,{allOwnKeys:!0}),jr.extend(E,U,null,{allOwnKeys:!0}),E.create=function(K){return q6(af(r,K))},E}const as=q6(d2);as.Axios=Q1,as.CanceledError=Ph,as.CancelToken=KZ,as.isCancel=L6,as.VERSION=R6,as.toFormData=J1,as.AxiosError=To,as.Cancel=as.CanceledError,as.all=function(r){return Promise.all(r)},as.spread=BZ,as.isAxiosError=DZ,as.mergeConfig=af,as.AxiosHeaders=Ru,as.formToJSON=r=>O6(jr.isHTMLForm(r)?new FormData(r):r),as.getAdapter=U6.getAdapter,as.HttpStatusCode=WZ,as.default=as;const zh=as,F6={isAgeByRange:!0,isAgeByYear:!1,minAge:10,maxAge:50,availableYears:[1987,1985],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"}]},GZ={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"},XZ={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 $1(r){"@babel/helpers - typeof";return $1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},$1(r)}function Au(r){if(r===null||r===!0||r===!1)return NaN;var U=Number(r);return isNaN(U)?U:U<0?Math.ceil(U):Math.floor(U)}function Wi(r,U){if(U.length<r)throw new TypeError(r+" argument"+(r>1?"s":"")+" required, but only "+U.length+" present")}function ci(r){Wi(1,arguments);var U=Object.prototype.toString.call(r);return r instanceof Date||$1(r)==="object"&&U==="[object Date]"?new Date(r.getTime()):typeof r=="number"||U==="[object Number]"?new Date(r):((typeof r=="string"||U==="[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 JZ(r,U){Wi(2,arguments);var E=ci(r),K=Au(U);return isNaN(K)?new Date(NaN):(K&&E.setDate(E.getDate()+K),E)}function ZZ(r,U){Wi(2,arguments);var E=ci(r),K=Au(U);if(isNaN(K))return new Date(NaN);if(!K)return E;var oe=E.getDate(),L=new Date(E.getTime());L.setMonth(E.getMonth()+K+1,0);var T=L.getDate();return oe>=T?L:(E.setFullYear(L.getFullYear(),L.getMonth(),oe),E)}function Rh(r,U){if(Wi(2,arguments),!U||$1(U)!=="object")return new Date(NaN);var E=U.years?Au(U.years):0,K=U.months?Au(U.months):0,oe=U.weeks?Au(U.weeks):0,L=U.days?Au(U.days):0,T=U.hours?Au(U.hours):0,e=U.minutes?Au(U.minutes):0,k=U.seconds?Au(U.seconds):0,v=ci(r),n=K||E?ZZ(v,K+E*12):v,w=L||oe?JZ(n,L+oe*7):n,b=e+T*60,c=k+b*60,a=c*1e3,t=new Date(w.getTime()+a);return t}function I6(r){var U=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return U.setUTCFullYear(r.getFullYear()),r.getTime()-U.getTime()}function j6(r){Wi(1,arguments);var U=ci(r);return U.setHours(0,0,0,0),U}var HZ=864e5;function YZ(r,U){Wi(2,arguments);var E=j6(r),K=j6(U),oe=E.getTime()-I6(E),L=K.getTime()-I6(K);return Math.round((oe-L)/HZ)}function of(r,U){Wi(2,arguments);var E=ci(r),K=ci(U),oe=E.getTime()-K.getTime();return oe<0?-1:oe>0?1:oe}var QZ=6e4,$Z=36e5;function eH(r,U){Wi(2,arguments);var E=ci(r),K=ci(U),oe=E.getFullYear()-K.getFullYear(),L=E.getMonth()-K.getMonth();return oe*12+L}function tH(r,U){Wi(2,arguments);var E=ci(r),K=ci(U);return E.getFullYear()-K.getFullYear()}function K6(r,U){var E=r.getFullYear()-U.getFullYear()||r.getMonth()-U.getMonth()||r.getDate()-U.getDate()||r.getHours()-U.getHours()||r.getMinutes()-U.getMinutes()||r.getSeconds()-U.getSeconds()||r.getMilliseconds()-U.getMilliseconds();return E<0?-1:E>0?1:E}function nH(r,U){Wi(2,arguments);var E=ci(r),K=ci(U),oe=K6(E,K),L=Math.abs(YZ(E,K));E.setDate(E.getDate()-oe*L);var T=+(K6(E,K)===-oe),e=oe*(L-T);return e===0?0:e}function x2(r,U){return Wi(2,arguments),ci(r).getTime()-ci(U).getTime()}var B6={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(r){return r<0?Math.ceil(r):Math.floor(r)}},rH="trunc";function _2(r){return r?B6[r]:B6[rH]}function aH(r,U,E){Wi(2,arguments);var K=x2(r,U)/$Z;return _2(E==null?void 0:E.roundingMethod)(K)}function oH(r,U,E){Wi(2,arguments);var K=x2(r,U)/QZ;return _2(E==null?void 0:E.roundingMethod)(K)}function iH(r){Wi(1,arguments);var U=ci(r);return U.setHours(23,59,59,999),U}function sH(r){Wi(1,arguments);var U=ci(r),E=U.getMonth();return U.setFullYear(U.getFullYear(),E+1,0),U.setHours(23,59,59,999),U}function lH(r){Wi(1,arguments);var U=ci(r);return iH(U).getTime()===sH(U).getTime()}function cH(r,U){Wi(2,arguments);var E=ci(r),K=ci(U),oe=of(E,K),L=Math.abs(eH(E,K)),T;if(L<1)T=0;else{E.getMonth()===1&&E.getDate()>27&&E.setDate(30),E.setMonth(E.getMonth()-oe*L);var e=of(E,K)===-oe;lH(ci(r))&&L===1&&of(r,K)===1&&(e=!1),T=oe*(L-Number(e))}return T===0?0:T}function uH(r,U,E){Wi(2,arguments);var K=x2(r,U)/1e3;return _2(E==null?void 0:E.roundingMethod)(K)}function dH(r,U){Wi(2,arguments);var E=ci(r),K=ci(U),oe=of(E,K),L=Math.abs(tH(E,K));E.setFullYear(1584),K.setFullYear(1584);var T=of(E,K)===-oe,e=oe*(L-Number(T));return e===0?0:e}function pH(r){return Wi(1,arguments),ci(r).getFullYear()}function fH(r){Wi(1,arguments);var U=ci(r.start),E=ci(r.end);if(isNaN(U.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(E.getTime()))throw new RangeError("End Date is invalid");var K={};K.years=Math.abs(dH(E,U));var oe=of(E,U),L=Rh(U,{years:oe*K.years});K.months=Math.abs(cH(E,L));var T=Rh(L,{months:oe*K.months});K.days=Math.abs(nH(E,T));var e=Rh(T,{days:oe*K.days});K.hours=Math.abs(aH(E,e));var k=Rh(e,{hours:oe*K.hours});K.minutes=Math.abs(oH(E,k));var v=Rh(k,{minutes:oe*K.minutes});return K.seconds=Math.abs(uH(E,v)),K}const hH={__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(r,{emit:U}){const E=r,K=p.ref(null);p.watch(()=>E.modelValue,()=>{oe()},{immediate:!0});function oe(){K.value&&(K.value.checked=E.modelValue)}function L(T){U("update:modelValue",T.target.checked)}return p.onMounted(()=>{oe()}),(T,e)=>(p.openBlock(),p.createElementBlock("input",{ref_key:"switchCustom",ref:K,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:L},null,544))}},em=Bo(hH,[["__scopeId","data-v-caefc67f"]]),$d=r=>(p.pushScopeId("data-v-444007e1"),r=r(),p.popScopeId(),r),mH={class:"personal-data"},yH={class:"personal-data__age"},gH={class:"personal-data__age__toggle"},vH={class:"personal-data__age__range"},bH={class:"personal-data__age__dropdown"},xH=$d(()=>p.createElementVNode("div",{class:"label"},"Año",-1)),_H={class:"selected-item"},wH=$d(()=>p.createElementVNode("div",{class:"separator"},null,-1)),SH={class:"personal-data__nationality-position"},TH={key:0,class:"personal-data__nationality-position__switch"},kH=$d(()=>p.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),CH=$d(()=>p.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),OH={class:"personal-data__nationality-position__nationality"},NH=$d(()=>p.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),LH={class:"selected-item"},EH=$d(()=>p.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),VH={class:"selected-item"},MH={class:"personal-data__nationality-position__position"},UH=$d(()=>p.createElementVNode("div",{class:"label"},"Posición",-1)),PH={class:"selected-item"},zH="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",RH={__name:"TemplatePersonalData",props:{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(r,{expose:U,emit:E}){const K=r,oe=[1],L={id:0,name:"Todas las nacionalidades",isSelected:!1},T={id:0,name:"Todas las posiciones",isSelected:!1},e=p.ref(F6),k=p.ref(["Por edad","Por año"]),v=p.ref(0),n=p.ref({min:0,max:0}),w=p.ref(Eh),b=p.ref(""),c=p.ref(""),a=p.ref(0);p.ref(0),p.ref(0);const t=p.ref(0),o=p.computed(()=>{const _=e.value.nationalities?[...e.value.nationalities]:[],S=_[0];return(!S||S.id!==0)&&_.unshift(L),_}),i=p.computed(()=>{let _=e.value.positions?[...e.value.positions]:[];const S=_[0];return(!S||S.id!==0)&&_.unshift(T),_.sort((O,h)=>O.id-h.id),_}),s=p.computed(()=>K.season&&K.season.tournamentId&&oe.includes(K.season.tournamentId));p.watch(o,_=>{const S=_.reduce((O,h,M)=>(M!==0&&h.isSelected&&O++,O),0);S===o.value.length-1&&(_[0].isSelected=!0),_[0]&&_[0].isSelected?b.value="Todas las nacionalidades":b.value=`${S} seleccionadas`,y()},{immediate:!0,deep:!0}),p.watch(i,_=>{const S=_.reduce((O,h,M)=>(M!==0&&h.isSelected&&O++,O),0);S===i.value.length-1&&(_[0].isSelected=!0),_[0]&&_[0].isSelected?c.value="Todas las posiciones":c.value=`${S} seleccionadas`,y()},{immediate:!0,deep:!0}),p.watch(()=>e.value.isEligibilitySelected,()=>{y()}),p.watch(()=>K.season,_=>{_.id!==t.value&&(t.value=_.id,l(_))},{immediate:!0,deep:!1});async function l(_){try{if(_&&_.id){const S=new Set,O=await d(_.id),h=new Date,M=[],N=new Map,P=new Map;O.forEach(R=>{const A=new Date(R.dob),q=pH(A),j=fH({start:A,end:h});N.has(R.nationality_id)||N.set(R.nationality_id,{id:R.nationality_id,isSelected:!0,name:GZ[`${R.nationality_id}`]}),P.has(R.position_id)||P.set(R.position_id,{id:R.position_id,isSelected:!0,name:XZ[`${R.position_id}`]}),S.add(q),M.push(j.years)}),e.value.minAge=Math.min(...M),e.value.maxAge=Math.max(...M),e.value.availableYears=[...S].sort((R,A)=>A-R),e.value.nationalities=[...N.values()],e.value.positions=[...P.values()],n.value.min=e.value.minAge,n.value.max=e.value.maxAge}}catch(S){throw new Error(S)}}function u(_=null){const S=!_||_===Yd.All;(S||_===Yd.NATIONALITY)&&o.value.forEach(O=>{O.isSelected=!0}),(S||_===Yd.ELIGIBILITY)&&(e.value.isEligibilitySelected=!1),(S||_===Yd.POSITION)&&i.value.forEach(O=>{O.isSelected=!0}),(S||_===Yd.AGE_RANGE)&&(n.value.min=e.value.minAge,n.value.max=e.value.maxAge,v.value=0),(S||_===Yd.YEAR)&&(a.value=e.value.availableYears[0],v.value=0),y()}async function d(_){try{const S={Authorization:localStorage.getItem("user_token")||K.token},O={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:zH,h=await zh.get(O+_,{headers:S});return h.data?h.data.players:[]}catch(S){return Promise.reject(S)}}function g(_){v.value=_.index}function f(_){n.value.min=_.minValue,n.value.max=_.maxValue,y()}function C(_,S){S.id===0?o.value.forEach(O=>{O.isSelected=_}):(S.isSelected=_,o.value[0].isSelected=o.value.every((O,h)=>h===0?!0:O.isSelected))}function y(){const _=v.value===0,S={};_?(S.ageByRange=n.value,S.ageLimits={min:e.value.minAge,max:e.value.maxAge}):S.year=a.value,e.value.isEligibilitySelected?S.eligibility=[...e.value.eligibility]:S.nationalities=o.value.reduce((O,h,M)=>(M!==0&&O.push({...h}),O),[]),S.positions=i.value.reduce((O,h,M)=>(M!==0&&O.push({...h}),O),[]),E("update:filters",S)}function m(_,S){S.id===0?i.value.forEach(O=>{O.isSelected=_}):(S.isSelected=_,i.value[0].isSelected=i.value.every((O,h)=>h===0?!0:O.isSelected))}function x(_){a.value=_,y()}return U({onClearFilters:u}),(_,S)=>(p.openBlock(),p.createElementBlock("div",mH,[p.createElementVNode("div",yH,[p.createElementVNode("div",gH,[p.createVNode(NJ,{"selected-button-index":v.value,buttons:k.value,width:"220px",onChange:g},null,8,["selected-button-index","buttons"])]),p.withDirectives(p.createElementVNode("div",vH,[p.createVNode(p.unref($_),{"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":r.isScouting?13:e.value.minAge,"max-limit":r.isScouting?45:e.value.maxAge,"min-value":r.isScouting?13:n.value.min,"max-value":r.isScouting?45:n.value.max,onInput:f},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[p.vShow,v.value===0]]),p.withDirectives(p.createElementVNode("div",bH,[xH,p.createVNode(p.unref(yd),p.mergeProps({"model-value":a.value},w.value,{items:e.value.availableYears,onInput:x}),{default:p.withCtx(({selectedItem:O})=>[p.createElementVNode("div",_H,p.toDisplayString(O),1)]),availableItem:p.withCtx(({item:O})=>[p.createElementVNode("div",null,p.toDisplayString(O),1)]),_:1},16,["model-value","items"])],512),[[p.vShow,v.value===1]])]),wH,p.createElementVNode("div",SH,[s.value?(p.openBlock(),p.createElementBlock("div",TH,[kH,p.createVNode(em,{modelValue:e.value.isEligibilitySelected,"onUpdate:modelValue":S[0]||(S[0]=O=>e.value.isEligibilitySelected=O)},null,8,["modelValue"]),CH])):p.createCommentVNode("",!0),p.createElementVNode("div",OH,[e.value.isEligibilitySelected?(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[EH,p.createVNode(p.unref(yd),p.mergeProps(w.value,{"is-multiple-option":"",items:e.value.eligibility,"is-disabled":""}),{default:p.withCtx(({selectedItem:O})=>[p.createElementVNode("div",VH,p.toDisplayString(O.name),1)]),availableItem:p.withCtx(({item:O})=>[p.createElementVNode("div",null,[p.createVNode(p.unref(Ho),{"model-value":O.isSelected,label:O.name,fontFamily:r.fontFamily,width:"100%","avoid-interaction":""},null,8,["model-value","label","fontFamily"])])]),_:1},16,["items"])],64)):(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[NH,p.createVNode(p.unref(yd),p.mergeProps(w.value,{"is-multiple-option":"",items:o.value}),{default:p.withCtx(()=>[p.createElementVNode("div",LH,p.toDisplayString(b.value),1)]),availableItem:p.withCtx(({item:O})=>[p.createElementVNode("div",null,[p.createVNode(p.unref(Ho),{"model-value":O.isSelected,label:O.name,fontFamily:r.fontFamily,width:"100%","onUpdate:modelValue":h=>C(h,O)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),p.createElementVNode("div",MH,[UH,p.createVNode(p.unref(yd),p.mergeProps(w.value,{"is-multiple-option":"",items:i.value}),{default:p.withCtx(()=>[p.createElementVNode("div",PH,p.toDisplayString(c.value),1)]),availableItem:p.withCtx(({item:O})=>[p.createElementVNode("div",null,[p.createVNode(p.unref(Ho),{"model-value":O.isSelected,label:O.name,fontFamily:r.fontFamily,width:"100%","onUpdate:modelValue":h=>m(h,O)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},AH=Bo(RH,[["__scopeId","data-v-444007e1"]]),qH={class:"plays"},FH={class:"plays__body__offensive"},IH={class:"plays__body__title"},jH={class:"number-of-categories"},KH={class:"plays__body__categories"},BH={class:"plays__body__defensive-possession-offenses"},DH={class:"plays__body__title"},WH={class:"number-of-categories"},GH={class:"plays__body__categories"},XH={class:"plays__body__title"},JH={class:"number-of-categories"},ZH={class:"plays__body__categories"},HH={class:"plays__body__title"},YH={class:"number-of-categories"},QH={class:"plays__body__categories"},$H={__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(r){const U=r,E=p.ref(!1),K=p.ref(!1),oe=p.ref(!1),L=p.ref(!1),T=p.computed(()=>({"--template-columns":U.isExpansionMode?"1fr":"1fr 1fr"})),e=p.computed(()=>U.playsCategories.offensive.categories.reduce((c,a)=>(a.isSelected&&c++,c),0)),k=p.computed(()=>U.playsCategories.defensive.categories.reduce((c,a)=>(a.isSelected&&c++,c),0)),v=p.computed(()=>U.playsCategories.possession.categories.reduce((c,a)=>(a.isSelected&&c++,c),0)),n=p.computed(()=>U.playsCategories.offenses.categories.reduce((c,a)=>(a.isSelected&&c++,c),0));function w(c,a){a.isSelected=c}function b(c){c==="offensive"?E.value=!E.value:c==="defensive"?K.value=!K.value:c==="possession"?oe.value=!oe.value:c==="offenses"&&(L.value=!L.value)}return(c,a)=>(p.openBlock(),p.createElementBlock("div",qH,[p.createElementVNode("div",{class:"plays__body",style:p.normalizeStyle(T.value)},[p.createElementVNode("div",FH,[p.createElementVNode("div",IH,[p.createElementVNode("div",{class:"plays__body__title__info",onClick:a[0]||(a[0]=t=>b("offensive"))},[p.createElementVNode("span",null,p.toDisplayString(r.playsCategories.offensive.title),1),p.createElementVNode("span",jH,"("+p.toDisplayString(e.value)+")",1)]),p.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:a[1]||(a[1]=t=>b("offensive"))},[p.withDirectives(p.createVNode(Qd,{"is-expanded":E.value},null,8,["is-expanded"]),[[p.vShow,r.isExpansionMode]])])]),p.withDirectives(p.createElementVNode("div",KH,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.playsCategories.offensive.categories,t=>(p.openBlock(),p.createElementBlock("div",{key:t.id,class:"plays__checkbox"},[p.createVNode(p.unref(Ho),{label:t.name,fontFamily:r.fontFamily,labelFontSize:"13px","model-value":t.isSelected,"box-value":t.priority||0,"onUpdate:modelValue":o=>w(o,t)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[p.vShow,!r.isExpansionMode||E.value]])]),p.createElementVNode("div",BH,[p.createElementVNode("div",DH,[p.createElementVNode("div",{class:"plays__body__title__info",onClick:a[2]||(a[2]=t=>b("defensive"))},[p.createElementVNode("span",null,p.toDisplayString(r.playsCategories.defensive.title),1),p.createElementVNode("span",WH,"("+p.toDisplayString(k.value)+")",1)]),p.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:a[3]||(a[3]=t=>b("defensive"))},[p.withDirectives(p.createVNode(Qd,{"is-expanded":K.value},null,8,["is-expanded"]),[[p.vShow,r.isExpansionMode]])])]),p.withDirectives(p.createElementVNode("div",GH,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.playsCategories.defensive.categories,t=>(p.openBlock(),p.createElementBlock("div",{key:t.id,class:"plays__checkbox"},[p.createVNode(p.unref(Ho),{label:t.name,fontFamily:r.fontFamily,labelFontSize:"13px","model-value":t.isSelected,"box-value":t.priority||0,"onUpdate:modelValue":o=>w(o,t)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[p.vShow,!r.isExpansionMode||K.value]]),p.createElementVNode("div",XH,[p.createElementVNode("div",{class:"plays__body__title__info",onClick:a[4]||(a[4]=t=>b("possession"))},[p.createElementVNode("span",null,p.toDisplayString(r.playsCategories.possession.title),1),p.createElementVNode("span",JH,"("+p.toDisplayString(v.value)+")",1)]),p.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:a[5]||(a[5]=t=>b("possession"))},[p.withDirectives(p.createVNode(Qd,{"is-expanded":oe.value},null,8,["is-expanded"]),[[p.vShow,r.isExpansionMode]])])]),p.withDirectives(p.createElementVNode("div",ZH,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.playsCategories.possession.categories,t=>(p.openBlock(),p.createElementBlock("div",{key:t.id,class:"plays__checkbox"},[p.createVNode(p.unref(Ho),{label:t.name,fontFamily:r.fontFamily,labelFontSize:"13px","model-value":t.isSelected,"box-value":t.priority||0,"onUpdate:modelValue":o=>w(o,t)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[p.vShow,!r.isExpansionMode||oe.value]]),p.createElementVNode("div",HH,[p.createElementVNode("div",{class:"plays__body__title__info",onClick:a[6]||(a[6]=t=>b("offenses"))},[p.createElementVNode("span",null,p.toDisplayString(r.playsCategories.offenses.title),1),p.createElementVNode("span",YH,"("+p.toDisplayString(n.value)+")",1)]),p.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:a[7]||(a[7]=t=>b("offenses"))},[p.withDirectives(p.createVNode(Qd,{"is-expanded":L.value},null,8,["is-expanded"]),[[p.vShow,r.isExpansionMode]])])]),p.withDirectives(p.createElementVNode("div",QH,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.playsCategories.offenses.categories,t=>(p.openBlock(),p.createElementBlock("div",{key:t.id,class:"plays__checkbox"},[p.createVNode(p.unref(Ho),{label:t.name,fontFamily:r.fontFamily,labelFontSize:"13px","model-value":t.isSelected,"box-value":t.priority||0,"onUpdate:modelValue":o=>w(o,t)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[p.vShow,!r.isExpansionMode||L.value]])])],4)]))}},eY=Bo($H,[["__scopeId","data-v-9d08f5ad"]]),tY={class:"template-results"},nY={__name:"TemplateResults",props:{resultsFilters:{type:Object,default:()=>({results:[]})}},emits:["update:resultsFilters"],setup(r,{emit:U}){const E=r,K=p.computed(()=>E.resultsFilters.results.filter(oe=>oe.isSelected).length);return p.watch(()=>E.resultsFilters,oe=>{U("update:resultsFilters",oe)},{deep:!0,immediate:!0}),(oe,L)=>(p.openBlock(),p.createElementBlock("div",tY,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.resultsFilters.results,(T,e)=>(p.openBlock(),p.createElementBlock("div",{key:e,class:"template-results__result"},[p.createVNode(p.unref(Ho),{modelValue:T.isSelected,"onUpdate:modelValue":k=>T.isSelected=k,label:T.name,"avoid-interaction":K.value===1&&T.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},rY=Bo(nY,[["__scopeId","data-v-c98c0f9d"]]),aY={__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(r,{emit:U}){const E=r,K=p.computed(()=>({"--height":E.height,"--width":E.width,"--padding":E.padding,"--border-radius":E.borderRadius,"--border":`solid ${E.borderWidth} ${E.borderColor}`,"--background-color":E.backgroundColor,"--font-color":E.fontColor,"--font-size":E.fontSize,"--font-family":E.fontFamily,"--active-background-color":E.activeBackgroundColor||E.backgroundColor,"--active-border-color":E.activeBorderColor||E.borderColor,"--active-font-color":E.activeFontColor||E.fontColor}));function oe(){U("click")}return(L,T)=>(p.openBlock(),p.createElementBlock("button",{class:p.normalizeClass(["button",{active:r.isActive}]),style:p.normalizeStyle(K.value),onClick:oe},p.toDisplayString(r.text),7))}},Ah=Bo(aY,[["__scopeId","data-v-0b409578"]]),oY={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},D6={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},iY={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},sY={4:"OF",5:"Cf",6:"S",7:"F"};function w2(r=""){return r?localStorage.getItem(r):localStorage.getItem("user_token")||localStorage.getItem("token")}const lY={class:"dropdown"},cY={class:"selected-item"},uY={__name:"DropdownTextOnly",props:{items:{type:Array,default:()=>[]},itemTextKey:{type:String,default:""},isListSameWidth:{type:Boolean,default:!0}},emits:["input"],setup(r,{emit:U}){function E(K){U("input",K)}return(K,oe)=>(p.openBlock(),p.createElementBlock("div",lY,[p.createVNode(p.unref(yd),p.mergeProps(p.unref(Eh),{"is-list-same-width":r.isListSameWidth,items:r.items,onInput:E}),{default:p.withCtx(({selectedItem:L})=>[p.createElementVNode("div",cY,p.toDisplayString(r.itemTextKey?L[r.itemTextKey]:L),1)]),availableItem:p.withCtx(({item:L})=>[p.createElementVNode("div",null,p.toDisplayString(r.itemTextKey?L[r.itemTextKey]:L),1)]),_:1},16,["is-list-same-width","items"])]))}},Xl=Bo(uY,[["__scopeId","data-v-f3086101"]]),dY={class:"dropdown"},pY={class:"game-item"},fY={key:0,class:"item-game"},hY={class:"match-day"},mY={class:"team-logo"},yY=["src"],gY={class:"text"},vY={class:"text score"},bY={class:"text"},xY={class:"team-logo"},_Y=["src"],wY={class:"item-game"},SY={class:"team-logo"},TY=["src"],kY={class:"text"},CY={class:"text score"},OY={class:"text"},NY={class:"team-logo"},LY=["src"],EY={__name:"DropdownGame",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(r,{emit:U}){function E(K){U("input",K)}return(K,oe)=>(p.openBlock(),p.createElementBlock("div",dY,[p.createVNode(p.unref(yd),p.mergeProps(p.unref(Eh),{items:r.items,onInput:E}),{default:p.withCtx(({selectedItem:L})=>[p.createElementVNode("div",pY,[L.homeTeam?(p.openBlock(),p.createElementBlock("div",fY,[p.createElementVNode("div",hY,p.toDisplayString(L.roundAbbreviation),1),p.createElementVNode("div",mY,[p.createElementVNode("img",{src:L.homeTeam.logo,alt:""},null,8,yY)]),p.createElementVNode("div",gY,p.toDisplayString(L.homeTeam.acronym),1),p.createElementVNode("div",vY,p.toDisplayString(L.score[0])+" - "+p.toDisplayString(L.score[1]),1),p.createElementVNode("div",bY,p.toDisplayString(L.awayTeam.acronym),1),p.createElementVNode("div",xY,[p.createElementVNode("img",{src:L.awayTeam.logo,alt:""},null,8,_Y)])])):p.createCommentVNode("",!0)])]),availableItem:p.withCtx(({item:L})=>[p.createElementVNode("div",wY,[p.createElementVNode("div",null,p.toDisplayString(L.roundAbbreviation),1),p.createElementVNode("div",SY,[p.createElementVNode("img",{src:L.homeTeam.logo,alt:""},null,8,TY)]),p.createElementVNode("div",kY,p.toDisplayString(L.homeTeam.acronym),1),p.createElementVNode("div",CY,p.toDisplayString(L.score[0])+" - "+p.toDisplayString(L.score[1]),1),p.createElementVNode("div",OY,p.toDisplayString(L.awayTeam.acronym),1),p.createElementVNode("div",NY,[p.createElementVNode("img",{src:L.awayTeam.logo,alt:""},null,8,LY)])])]),_:1},16,["items"])]))}},tm=Bo(EY,[["__scopeId","data-v-ab1b7c48"]]),nm=r=>(p.pushScopeId("data-v-b747abbd"),r=r(),p.popScopeId(),r),VY={class:"container"},MY={class:"container__row"},UY={class:"container__row__wrapper"},PY=nm(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),zY={class:"container__row__wrapper__input"},RY={class:"container__row two-items"},AY={class:"container__row__wrapper"},qY=nm(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),FY={key:0,class:"container__row__wrapper__input"},IY={class:"container__row__wrapper"},jY=nm(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),KY={key:0,class:"container__row__wrapper__input"},BY={class:"container__row"},DY={class:"container__row__wrapper"},WY=nm(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),GY={key:0,class:"container__row__wrapper__input"},XY={class:"container__action"},JY={__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(r,{emit:U}){const E={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},K=p.ref(null),oe=p.ref(null),L=p.ref(null),T=p.ref(null);function e(w){K.value=w,U("update:tournament",w)}function k(w){oe.value=w,U("update:season",w)}function v(w){L.value=w}function n(w){T.value=w}return(w,b)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createElementVNode("div",VY,[p.createElementVNode("div",MY,[p.createElementVNode("div",UY,[PY,p.createElementVNode("div",zY,[p.createVNode(Xl,{items:r.tournaments,itemTextKey:"name",onInput:e},null,8,["items"])])])]),p.createElementVNode("div",RY,[p.createElementVNode("div",AY,[qY,K.value&&K.value.seasons?(p.openBlock(),p.createElementBlock("div",FY,[p.createVNode(Xl,{items:K.value.seasons,itemTextKey:"name",onInput:k},null,8,["items"])])):p.createCommentVNode("",!0)]),p.createElementVNode("div",IY,[jY,oe.value&&oe.value.arrayMatchDays?(p.openBlock(),p.createElementBlock("div",KY,[p.createVNode(Xl,{items:oe.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:v},null,8,["items"])])):p.createCommentVNode("",!0)])]),p.createElementVNode("div",BY,[p.createElementVNode("div",DY,[WY,L.value&&L.value.arrayGames?(p.openBlock(),p.createElementBlock("div",GY,[p.createVNode(tm,{items:L.value.arrayGames,onInput:n},null,8,["items"])])):p.createCommentVNode("",!0)])])]),p.createElementVNode("div",XY,[p.createVNode(Ah,p.normalizeProps(p.guardReactiveProps(E)),null,16)])],64))}},ZY=Bo(JY,[["__scopeId","data-v-b747abbd"]]),HY={class:"dropdown"},YY={class:"item-team"},QY={class:"team-logo"},$Y=["src"],eQ={class:"team-acronym"},tQ={class:"item-team"},nQ={class:"team-logo"},rQ=["src"],aQ={class:"team-acronym"},oQ={__name:"DropdownTeam",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(r,{emit:U}){function E(K){U("input",K)}return(K,oe)=>(p.openBlock(),p.createElementBlock("div",HY,[p.createVNode(p.unref(yd),p.mergeProps(p.unref(Eh),{items:r.items,onInput:E}),{default:p.withCtx(({selectedItem:L})=>[p.createElementVNode("div",YY,[p.createElementVNode("div",QY,[p.createElementVNode("img",{src:L.logo,alt:""},null,8,$Y)]),p.createElementVNode("div",eQ,p.toDisplayString(L.acronym),1)])]),availableItem:p.withCtx(({item:L})=>[p.createElementVNode("div",tQ,[p.createElementVNode("div",nQ,[p.createElementVNode("img",{src:L.logo,alt:""},null,8,rQ)]),p.createElementVNode("div",aQ,p.toDisplayString(L.acronym),1)])]),_:1},16,["items"])]))}},W6=Bo(oQ,[["__scopeId","data-v-68d8511b"]]),iQ={class:"advanced-filters"},sQ={class:"advanced-filters__buttons"},lQ=["onClick"],cQ={class:"advanced-filters__filters"},uQ={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(r){const U=r,E=p.defineAsyncComponent(()=>Promise.resolve().then(()=>iie)),K=p.defineAsyncComponent(()=>Promise.resolve().then(()=>Tie)),oe=p.defineAsyncComponent(()=>Promise.resolve().then(()=>Cie)),L=[{name:"Sub categorías",component:E},{name:"Cancha",component:oe},{name:"Condiciones",component:K}],T=p.ref(L[0]),e=p.computed(()=>U.selectedCategory?U.selectedCategory.subcategoryGroups||[]:[]);function k(v){T.value=v}return(v,n)=>(p.openBlock(),p.createElementBlock("div",iQ,[p.createElementVNode("div",sQ,[(p.openBlock(),p.createElementBlock(p.Fragment,null,p.renderList(L,w=>p.createElementVNode("div",{key:w.name,role:"button",class:p.normalizeClass(["advanced-filters__buttons__button",{active:T.value.name===w.name}]),onClick:b=>k(w)},p.toDisplayString(w.name),11,lQ)),64))]),p.createElementVNode("div",cQ,[(p.openBlock(),p.createBlock(p.KeepAlive,null,[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(T.value.component),{"subcategory-groups":e.value},null,8,["subcategory-groups"]))],1024))])]))}},S2=Bo(uQ,[["__scopeId","data-v-6fbac252"]]),ep=r=>(p.pushScopeId("data-v-0f866dba"),r=r(),p.popScopeId(),r),dQ={class:"container"},pQ={class:"container__row"},fQ={class:"container__row__wrapper"},hQ=ep(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),mQ={class:"container__row__wrapper__input"},yQ={class:"container__row two-items"},gQ={class:"container__row__wrapper"},vQ=ep(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),bQ={key:0,class:"container__row__wrapper__input"},xQ={class:"container__row__wrapper"},_Q=ep(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),wQ={key:0,class:"container__row__wrapper__input"},SQ={class:"container__row"},TQ={class:"container__row__wrapper"},kQ=ep(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),CQ={key:0,class:"container__row__wrapper__input"},OQ={class:"container__row"},NQ={class:"container__row__wrapper"},LQ=ep(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),EQ={key:0,class:"container__row__wrapper__input"},VQ={class:"container__row type-and-advanced"},MQ={class:"container__row__wrapper"},UQ=ep(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),PQ={class:"container__row__wrapper__input"},zQ={class:"container__row__wrapper center"},RQ=ep(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),AQ={class:"container__row__wrapper__input"},qQ={class:"container__row"},FQ={class:"container__action"},IQ={__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(r,{emit:U}){const E=r,K={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},oe=p.ref(null),L=p.ref(null);p.ref(null);const T=p.ref(null),e=p.ref(null),k=p.ref(null),v=p.ref(null),n=p.ref(!0),w=p.computed(()=>k.value?k.value.position_id===1?E.advancedFilterCategories.goalkeeper:E.advancedFilterCategories.player:[]);function b(s){oe.value=s,U("update:tournament",s)}function c(s){L.value=s,U("update:season",s)}function a(s){e.value=s,U("update:team",s)}function t(s){k.value=s}function o(s){T.value=s}function i(s){v.value=s}return(s,l)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createElementVNode("div",dQ,[p.createElementVNode("div",pQ,[p.createElementVNode("div",fQ,[hQ,p.createElementVNode("div",mQ,[p.createVNode(Xl,{items:r.tournaments,itemTextKey:"name",onInput:b},null,8,["items"])])])]),p.createElementVNode("div",yQ,[p.createElementVNode("div",gQ,[vQ,oe.value&&oe.value.seasons?(p.openBlock(),p.createElementBlock("div",bQ,[p.createVNode(Xl,{items:oe.value.seasons,itemTextKey:"name",onInput:c},null,8,["items"])])):p.createCommentVNode("",!0)]),p.createElementVNode("div",xQ,[_Q,L.value&&L.value.arrayTeams?(p.openBlock(),p.createElementBlock("div",wQ,[p.createVNode(W6,{items:L.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:a},null,8,["items"])])):p.createCommentVNode("",!0)])]),p.createElementVNode("div",SQ,[p.createElementVNode("div",TQ,[kQ,e.value&&e.value.arrayPlayers?(p.openBlock(),p.createElementBlock("div",CQ,[p.createVNode(Xl,{items:e.value.arrayPlayers,itemTextKey:"player_name",onInput:t},null,8,["items"])])):p.createCommentVNode("",!0)])]),p.createElementVNode("div",OQ,[p.createElementVNode("div",NQ,[LQ,L.value&&L.value.mapGamesByTeam&&e.value?(p.openBlock(),p.createElementBlock("div",EQ,[p.createVNode(tm,{items:L.value.mapGamesByTeam.get(e.value.team_id),onInput:o},null,8,["items"])])):p.createCommentVNode("",!0)])]),p.createElementVNode("div",VQ,[p.createElementVNode("div",MQ,[UQ,p.createElementVNode("div",PQ,[p.createVNode(Xl,{items:w.value,itemTextKey:"name","is-list-same-width":!1,onInput:i},null,8,["items"])])]),p.createElementVNode("div",zQ,[RQ,p.createElementVNode("div",AQ,[p.createVNode(em,{modelValue:n.value,"onUpdate:modelValue":l[0]||(l[0]=u=>n.value=u)},null,8,["modelValue"])])])]),p.createElementVNode("div",qQ,[p.createVNode(S2,{"selected-category":v.value},null,8,["selected-category"])])]),p.createElementVNode("div",FQ,[p.createVNode(Ah,p.normalizeProps(p.guardReactiveProps(K)),null,16)])],64))}},jQ=Bo(IQ,[["__scopeId","data-v-0f866dba"]]),sf=r=>(p.pushScopeId("data-v-3622a398"),r=r(),p.popScopeId(),r),KQ={class:"container"},BQ={class:"container__row"},DQ={class:"container__row__wrapper"},WQ=sf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),GQ={class:"container__row__wrapper__input"},XQ={class:"container__row two-items"},JQ={class:"container__row__wrapper"},ZQ=sf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),HQ={key:0,class:"container__row__wrapper__input"},YQ={class:"container__row__wrapper"},QQ=sf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),$Q={key:0,class:"container__row__wrapper__input"},e$={class:"container__row"},t$={class:"container__row__wrapper"},n$=sf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),r$={key:0,class:"container__row__wrapper__input"},a$={class:"container__row type-and-advanced"},o$={class:"container__row__wrapper"},i$=sf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),s$={class:"container__row__wrapper__input"},l$={class:"container__row__wrapper center"},c$=sf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),u$={class:"container__row__wrapper__input"},d$={class:"container__row"},p$={class:"container__action"},f$={__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(r,{emit:U}){const E=r,K={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},oe=p.ref(null),L=p.ref(null);p.ref(null);const T=p.ref(null),e=p.ref(null),k=p.ref(null),v=p.ref(!0),n=p.computed(()=>E.advancedFilterCategories.team);function w(o){oe.value=o,U("update:tournament",o)}function b(o){L.value=o,U("update:season",o)}function c(o){e.value=o,U("update:team",o)}function a(o){T.value=o}function t(o){k.value=o}return(o,i)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createElementVNode("div",KQ,[p.createElementVNode("div",BQ,[p.createElementVNode("div",DQ,[WQ,p.createElementVNode("div",GQ,[p.createVNode(Xl,{items:r.tournaments,itemTextKey:"name",onInput:w},null,8,["items"])])])]),p.createElementVNode("div",XQ,[p.createElementVNode("div",JQ,[ZQ,oe.value&&oe.value.seasons?(p.openBlock(),p.createElementBlock("div",HQ,[p.createVNode(Xl,{items:oe.value.seasons,itemTextKey:"name",onInput:b},null,8,["items"])])):p.createCommentVNode("",!0)]),p.createElementVNode("div",YQ,[QQ,L.value&&L.value.arrayTeams?(p.openBlock(),p.createElementBlock("div",$Q,[p.createVNode(W6,{items:L.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:c},null,8,["items"])])):p.createCommentVNode("",!0)])]),p.createElementVNode("div",e$,[p.createElementVNode("div",t$,[n$,L.value&&L.value.mapGamesByTeam&&e.value?(p.openBlock(),p.createElementBlock("div",r$,[p.createVNode(tm,{items:L.value.mapGamesByTeam.get(e.value.team_id),onInput:a},null,8,["items"])])):p.createCommentVNode("",!0)])]),p.createElementVNode("div",a$,[p.createElementVNode("div",o$,[i$,p.createElementVNode("div",s$,[p.createVNode(Xl,{items:n.value,itemTextKey:"name","is-list-same-width":!1,onInput:t},null,8,["items"])])]),p.createElementVNode("div",l$,[c$,p.createElementVNode("div",u$,[p.createVNode(em,{modelValue:v.value,"onUpdate:modelValue":i[0]||(i[0]=s=>v.value=s)},null,8,["modelValue"])])])]),p.createElementVNode("div",d$,[p.createVNode(S2,{"selected-category":k.value},null,8,["selected-category"])])]),p.createElementVNode("div",p$,[p.createVNode(Ah,p.normalizeProps(p.guardReactiveProps(K)),null,16)])],64))}},h$=Bo(f$,[["__scopeId","data-v-3622a398"]]),lf=r=>(p.pushScopeId("data-v-edabdfc6"),r=r(),p.popScopeId(),r),m$={class:"container"},y$={class:"container__row"},g$={class:"container__row__wrapper"},v$=lf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),b$={class:"container__row__wrapper__input"},x$={class:"container__row two-items"},_$={class:"container__row__wrapper"},w$=lf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),S$={key:0,class:"container__row__wrapper__input"},T$={class:"container__row__wrapper"},k$=lf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),C$={key:0,class:"container__row__wrapper__input"},O$={class:"container__row"},N$={class:"container__row__wrapper"},L$=lf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),E$={key:0,class:"container__row__wrapper__input"},V$={class:"container__row type-and-advanced"},M$={class:"container__row__wrapper"},U$=lf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),P$={class:"container__row__wrapper__input"},z$={class:"container__row__wrapper center"},R$=lf(()=>p.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),A$={class:"container__row__wrapper__input",style:{width:"fit-content"}},q$={class:"container__row"},F$={class:"container__action"},I$={__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(r,{emit:U}){const E=r,K={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},oe=p.ref(null),L=p.ref(null),T=p.ref(null),e=p.ref(null),k=p.ref(null),v=p.ref(!0),n=p.computed(()=>E.advancedFilterCategories.games);function w(o){oe.value=o,U("update:tournament",o)}function b(o){L.value=o,U("update:season",o)}function c(o){T.value=o}function a(o){e.value=o}function t(o){k.value=o}return(o,i)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createElementVNode("div",m$,[p.createElementVNode("div",y$,[p.createElementVNode("div",g$,[v$,p.createElementVNode("div",b$,[p.createVNode(Xl,{items:r.tournaments,itemTextKey:"name",onInput:w},null,8,["items"])])])]),p.createElementVNode("div",x$,[p.createElementVNode("div",_$,[w$,oe.value&&oe.value.seasons?(p.openBlock(),p.createElementBlock("div",S$,[p.createVNode(Xl,{items:oe.value.seasons,itemTextKey:"name",onInput:b},null,8,["items"])])):p.createCommentVNode("",!0)]),p.createElementVNode("div",T$,[k$,L.value&&L.value.arrayMatchDays?(p.openBlock(),p.createElementBlock("div",C$,[p.createVNode(Xl,{items:L.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:c},null,8,["items"])])):p.createCommentVNode("",!0)])]),p.createElementVNode("div",O$,[p.createElementVNode("div",N$,[L$,T.value&&T.value.arrayGames?(p.openBlock(),p.createElementBlock("div",E$,[p.createVNode(tm,{items:T.value.arrayGames,onInput:a},null,8,["items"])])):p.createCommentVNode("",!0)])]),p.createElementVNode("div",V$,[p.createElementVNode("div",M$,[U$,p.createElementVNode("div",P$,[p.createVNode(Xl,{items:n.value,itemTextKey:"name","is-list-same-width":!1,onInput:t},null,8,["items"])])]),p.createElementVNode("div",z$,[R$,p.createElementVNode("div",A$,[p.createVNode(em,{modelValue:v.value,"onUpdate:modelValue":i[0]||(i[0]=s=>v.value=s)},null,8,["modelValue"])])])]),p.createElementVNode("div",q$,[p.createVNode(S2,{"selected-category":k.value},null,8,["selected-category"])])]),p.createElementVNode("div",F$,[p.createVNode(Ah,p.normalizeProps(p.guardReactiveProps(K)),null,16)])],64))}},j$=Bo(I$,[["__scopeId","data-v-edabdfc6"]]),K$={class:"template-videos"},B$={class:"template-videos__header"},D$={class:"template-videos__body"},W$=p.defineComponent({name:"TemplateVideos",components:{VideosGoals:ZY,VideosPlayer:jQ,VideosTeam:h$,VideosGame:j$}}),G$=Object.assign(W$,{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(r,{emit:U}){const E=r,K={padding:"4px 18px",borderRadius:"160px",backgroundColor:"#3A4851",borderColor:"#3A4851",activeBorderColor:"#CBEE6B",fontSize:"11px",fontColor:"#FFFFFF"},oe=[],L=["g-23","g-24","g-25"],T={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]}},e={player:1,team:2,goalkeeper:3},k=p.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),v=p.ref([]),n=p.ref(k.value[0]),w=p.ref({}),b=p.ref({}),c=p.ref({}),a=p.ref({}),t=p.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),o=p.ref([]);p.ref({});const i=p.ref(null);p.watch(w,P=>{b.value.numberSeasonSelectedIndex=b.value.seasons.findIndex(R=>R.id===P.id),P.arrayMatchDays?(a.value=P.arrayMatchDays[0]||{},c.value=P.arrayTeams[0]||{}):(g(P),f(P))}),p.watch(c,()=>{setTimeout(()=>{w.value.mapPlayersByTeam&&(!c.value.arrayPlayers||!c.value.arrayPlayers.length)&&(c.value.arrayPlayers=w.value.mapPlayersByTeam.get(c.value.team_id))},700)});async function s(){try{v.value=await l()}catch(P){throw new Error(P)}}async function l(){try{const P={Authorization:w2()||E.token},R={}.API_TOURNAMENTS||E.tournamentsUrl,A=await zh.get(R,{headers:P});return A.data?A.data.map(q=>({...q.tournament,seasons:q.seasons})):[]}catch(P){return Promise.reject(P)}}async function u(P,R,A=""){U("loading-data");let q=A;try{q||(q={}.API_CALENDAR_GAMES_BY_SEASON||E.gamesUrl,P.forEach((W,Y)=>{q+=`${Y===0?"":"&"}seasons=${W}`}));const j={Authorization:w2()||E.token},{data:{data:X,teams:F}}=await zh.get(q,{headers:j});return{seasonsAndGames:X,seasonsAndTeams:F}}catch(j){if(R>0)return u(P,R-1,q);throw new Error(j)}finally{U("loading-data")}}async function d(P){try{const R={Authorization:w2()||E.token},A=` ${{}.API_PLAYERS_BY_SEASON||E.playersUrl}${P.seasonId}`,q=await zh.get(A,{headers:R});return q.data?q.data.players:[]}catch(R){return Promise.reject(R)}}async function g(P){try{const{seasonsAndGames:R,seasonsAndTeams:A}=await u([P.id,...P.related_seasons.map(F=>F.id)],3),q=A.find(F=>F._id===P.id);w.value.arrayTeams=[],w.value.mapTeams=new Map;const j=q.teams.reduce((F,W)=>(w.value.arrayTeams.push(W),w.value.mapTeams.set(W.team_id,{name:W.colloquial_name,acronym:W.acronym,logo:W.logo,id:W.team_id}),F.set(W.team_id,W),F),new Map);c.value=w.value.arrayTeams[0],w.value.mapGames=new Map,w.value.mapGamesByTeam=new Map;const X=Array.from(R.reduce((F,W)=>(W.games.forEach(Y=>{if(Y.game_status===1&&Y.has_video){(!w.value.maxGameId||Y.game_id>w.value.maxGameId)&&(w.value.maxGameId=Y.game_id);let B=Y.matchday_abbreviation.replace("M","J"),G=Y.matchday_abbreviation.replace("M","Jornada ");const J=Y.matchday_abbreviation.replace("M","");W.season_type===0?b.value.tournament_type===1&&(Y.seasonId===881?(B=sY[J]||B,G=iY[J]||G):(B=D6[Y.matchday_abbreviation]?Y.matchday_abbreviation:B,G=D6[Y.matchday_abbreviation]||G,B==="FINAL"&&(B="F"))):W.season_type===1?(B=oY[Y.matchday_abbreviation],G=B):(B=Y.matchday_abbreviation.replace("PO","R"),G="Repechaje"),Y.roundAbbreviation=B,Y.roundName=G,w.value.mapGames.set(Y.game_id,{id:Y.game_id,date:Y.date,dateTimeMillis:new Date(Y.date_time_utc).valueOf(),homeTeam:w.value.mapTeams.get(Y.home_team),awayTeam:w.value.mapTeams.get(Y.visiting_team),roundAbbreviation:Y.roundAbbreviation,roundName:Y.roundName,score:Y.score,gameResult:Y.score[0]>Y.score[1]?1:Y.score[0]<Y.score[1]?2:3,seasonId:W.season_id});const se=F.get(Y.roundAbbreviation);Y.numberDateTimeMillis=new Date(Y.date_time_utc).getTime(),Y.homeTeam=j.get(Y.home_team),Y.awayTeam=j.get(Y.visiting_team);const re=w.value.mapGamesByTeam.get(Y.home_team),ne=w.value.mapGamesByTeam.get(Y.visiting_team);re?re.push(Y):w.value.mapGamesByTeam.set(Y.home_team,[Y]),ne?ne.push(Y):w.value.mapGamesByTeam.set(Y.visiting_team,[Y]),se?se.arrayGames.push(Y):F.set(Y.roundAbbreviation,{stringMatchDayAbbreviation:Y.roundAbbreviation,stringMatchDayName:Y.roundName,arrayGames:[Y]})}}),F),new Map).values());X.reverse(),X.forEach(F=>{F.arrayGames.sort((W,Y)=>W.numberDateTimeMillis-Y.numberDateTimeMillis)}),w.value.arrayMatchDays=X,a.value=X[0]||{}}catch(R){throw new Error(R)}}async function f(P){try{const R=await _(P.id);w.value.mapPlayers=new Map,w.value.mapPlayersByTeam=R.reduce((A,q)=>{w.value.mapPlayers.set(q.player_id,{id:q.player_id,name:q.player_name,shortName:q.shortName,photo:q.player_photo,teamId:q.team_id,positionId:q.position_id});const j=A.get(q.team_id);return j?j.push(q):A.set(q.team_id,[q]),A},new Map)}catch(R){throw new Error(R)}}async function C(){try{let P=[];t.value.isEmpty?(P=await S(),o.value={...P}):P=o.value;const R=[];if(P&&P.length){t.value=P.reduce((W,Y)=>{if(Y.group_id!=="g-55"){const B={idAux:Y.group_id,ids:[...Y.ids?Y.ids:[],...Y.rival_Ids?Y.rival_Ids:[]],type:Y.type,name:Y.name,coordinatePoint:Y.coordinate_point,requiresRivalTransform:L.includes(Y.group_id)};B.idsAux=[...B.ids],B.subcategoryGroups=Y.group_id==="g-12"?[]:y(Y,0,new Map,!1,{},B.idsAux),R.push(B),B.type.includes(e.player)&&W.player.push(B),B.type.includes(e.team)&&(B.idAux!=="g-2"&&W.games.push(B),W.team.push(B)),B.type.includes(e.goalkeeper)&&W.goalkeeper.push(B)}return W},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const A=new Map,q="Resumen",j="Todas sus jugadas",X=t.value.player.reduce((W,Y)=>{const B=m(Y);return B.forEach(G=>{A.set(G,Y.name)}),W.push(...B),W},[]),F=t.value.goalkeeper.reduce((W,Y)=>{const B=m(Y);return B.forEach(G=>{A.set(G,Y.name)}),W.push(...B),W},[]);t.value.games.unshift({name:q,arrayCategoriesIds:T.games,booleanIsBestPlays:!0}),t.value.team.unshift({name:q,arrayCategoriesIds:T.team,booleanIsBestPlays:!0}),t.value.player.unshift({name:q,arrayCategoriesIds:T.player.regular,booleanIsBestPlays:!0},{name:j,arrayCategoriesIds:X,booleanIsMinutesPlayed:!0}),t.value.goalkeeper.unshift({name:q,arrayCategoriesIds:T.player.goalkeeper,booleanIsBestPlays:!0},{name:j,arrayCategoriesIds:F,booleanIsMinutesPlayed:!0})}}catch(P){throw new Error(P)}}function y(P,R=0,A=new Map,q=!1,j={},X=[]){if(!P.group_id)return;let F=A.get(R);const W=q?`${P.id_category}_r`:P.id_category;P.id_category&&X.push(P.id_category);let Y={ids:[W],groupId:P.group_id,level:R,name:P.name,isSelected:!0,fatherCategories:R>0?[j]:[],idsByFatherCategory:{[P.category_father]:[W]}};if(R>0&&R===1&&(Y.id=P.id_category),F&&R!==0){const B=P.group_id.charAt(P.group_id.length-1),G=F.find(J=>J.groupId.endsWith(B));G&&!oe.includes(Y.groupId)?(Y=G,G.ids.push(W),G.fatherCategories.push(j),G.fatherCategories.forEach(J=>{J.childCategories?J.childCategories.find(se=>se.groupId===Y.groupId)||J.childCategories.push(Y):J.childCategories=[Y]}),G.idsByFatherCategory[P.category_father]?G.idsByFatherCategory[P.category_father].push(W):G.idsByFatherCategory[P.category_father]=[W]):(Y.fatherCategories.forEach(J=>{J.childCategories?J.childCategories.find(se=>se.groupId===Y.groupId)||J.childCategories.push(Y):J.childCategories=[Y]}),F.push(Y))}else R!==0&&(j.childCategories?j.childCategories.push(Y):j.childCategories=[Y],F=[Y],A.set(R,F));if(P.categories&&P.categories.length?P.categories.forEach(B=>{y(B,R+1,A,q,Y,X)}):P.rival_categories&&P.rival_categories.length&&P.rival_categories.forEach(B=>{y(B,R+1,A,!0,Y,X)}),R===0)return Array.from(A.values())}function m(P){const R=P||P;if(R.booleanIsBestPlays)return R.arrayCategoriesIds;const A={total:[],toRemove:[]};if(R.subcategoryGroups&&R.subcategoryGroups.length?R.subcategoryGroups[0].forEach(q=>{x(q,null,A)}):(R.ids&&A.total.push(...R.ids),R.rival_ids&&R.rival_ids.forEach(q=>{A.total.push(`${q}_r`)})),A.total=A.total.reduce((q,j)=>(A.toRemove.includes(j)||q.push(j),q),[]),!P){const q=R.name.toLowerCase().includes("recibid");i.value.isRivalSubject=q,i.value.avoidCategorySingleName=q,i.value.coordinatePoint=R.coordinatePoint,i.value.requiresRivalTransform=R.requiresRivalTransform}return A.total}function x(P,R=[],A={total:[],toRemove:[]}){P.isSelected?P.childCategories?P.childCategories.forEach(q=>{const j=R?Object.entries(P.idsByFatherCategory).reduce((X,[F,W])=>(R.includes(Number(F))&&W.forEach(Y=>{typeof Y=="string"&&Y.endsWith("_r")?X.push(Number(Y.split("_")[0])):X.push(Y)}),X),[]):[P.id];x(q,j,A)}):R?Object.entries(P.idsByFatherCategory).forEach(([q,j])=>{R.includes(Number(q))&&j.forEach(X=>{A.total.push(X)})}):P.level===1?Object.entries(P.idsByFatherCategory).forEach(([q,j])=>{j.forEach(X=>{A.total.push(X)})}):A.total.push(P.id):P.childCategories||P.ids.forEach(q=>{A.toRemove.push(q)})}async function _(P){try{const R=await d({seasonId:P});return R.forEach(A=>{const[q,j]=A.player_name.split(","),X=q.split(" ");let F="";for(const W of X)if(F+=` ${W}`,W.length>3)break;A.shortName=j&&q?`${j.trim().charAt(0)}.${F}`:""}),R}catch(R){return Promise.reject(R)}}async function S(){try{const P={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await zh.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:P})).data||[]}catch(P){return Promise.reject(P)}}function O(P){n.value=P}function h(P){b.value=P,w.value=P.seasons[0]}function M(P){w.value=P}function N(P){c.value=P}return s(),C(),(P,R)=>(p.openBlock(),p.createElementBlock("div",K$,[p.createElementVNode("div",B$,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(k.value,A=>(p.openBlock(),p.createBlock(Ah,p.mergeProps({key:A.name},K,{text:A.name,"is-active":n.value.componentName===A.componentName,tournaments:v.value,onClick:q=>O(A)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),p.createElementVNode("div",D$,[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(n.value.componentName),{tournaments:v.value,"advanced-filter-categories":t.value,"onUpdate:tournament":h,"onUpdate:season":M,"onUpdate:team":N},null,40,["tournaments","advanced-filter-categories"]))])]))}}),X$=Bo(G$,[["__scopeId","data-v-721a4172"]]),J$={key:0,class:"productivity__header__text"},Z$={key:1,class:"productivity__header__checkbox"},H$={class:"templates__body"},Y$={key:0,class:"templates-plays"},Q$={key:1,class:"templates-productivity"},$$={key:2,class:"template-field"},eee={key:3,class:"template-details"},tee={key:4,class:"template-personal-data"},nee={key:5,class:"template-leagues"},ree={key:6,class:"template-plays"},aee={key:7,class:"template-plays"},oee={key:8,class:"template-universe"},iee={key:9,class:"template-distance"},see={key:10,class:"template-results"},lee={key:11,class:"template-games"},cee={key:12,class:"template-videos"},uee={key:1,class:"templates__footer"},dee={class:"templates__footer__button"},pee={class:"templates__footer__button"},fee={__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}]},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}]},tournaments:{type:Array,default:()=>[]},playsGolstatsCategories:{type:Array,default:()=>[]},universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(r,U)=>U+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},personalDataFilters:{type:Object,default:()=>({})},distanceFilters:{type:Object,default:()=>({minValue:5,maxValue:30,minLimit:5,maxLimit:30})},resultsFilters:{type:Object,default:()=>({})},gamesFilters:{type:Array,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"],setup(r,{expose:U,emit:E}){const K=r,oe=p.ref(null),L=p.ref(!1),T=p.ref({playingAs:K.playingAs,gameSections:K.gameSections}),e=p.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),k=p.ref(null),v=p.computed(()=>({"--width":K.width,"--max-width":K.maxWidth,"--background-color":K.backgroundColor,"--border-radius":K.borderRadius,"--border-color":K.borderColor,"--border-width":K.borderWidth,"--box-shadow":K.boxShadow,"--padding":K.filterType!==Tr.VIDEOS?K.isExpansionMode?"10px 0":K.padding:"0","--footer-border-color":K.footerBorderColor,"--footer-border-width":K.footerBorderWidth,"--text-color":K.textColor})),n=p.computed(()=>{const R=[];return K.productivityCategories&&Object.values(K.productivityCategories).forEach(A=>{A.categories&&A.categories.forEach(q=>{R.push(q)})}),R}),w=p.computed(()=>{const R=[];return K.playsCategories&&Object.values(K.playsCategories).forEach(A=>{A.categories&&A.categories.forEach(q=>{R.push(q)})}),R}),b=p.computed(()=>{const R=n.value.filter(A=>A.isSelected);return t(R),K.filterType===Tr.PRODUCTIVITY&&E("change-categories-selected",R.length),R.length}),c=p.computed(()=>b.value>=K.productivityMaxCategories),a=p.computed(()=>K.playingAs.concat(K.gameSections));p.watch(T,R=>{K.filterType===Tr.DETAILS&&E("update:filters",R)},{immediate:!0,deep:!0}),p.watch(()=>a.value,R=>{if(K.filterType===Tr.DETAILS){const A=R.filter(q=>q.isSelected);E("change-filters-selected",A.length)}},{immediate:!0,deep:!0}),p.watch(()=>K.playsGolstatsCategories,R=>{if(K.filterType===Tr.PLAYS_TYPES||K.filterType===Tr.GOLSTATS){const A=R.filter(q=>q.isSelected);E("change-filters-selected",A.length)}},{immediate:!0}),p.watch(()=>K.fieldAreas,R=>{K.filterType===Tr.FIELD&&E("change-filters-selected",R.length)}),p.watch(w,()=>{K.filterType===Tr.PLAYS&&f()},{immediate:!0,deep:!0}),p.watch(n,()=>{K.filterType===Tr.PRODUCTIVITY&&C()},{immediate:!0,deep:!0}),p.watch(()=>K.resultsFilters,R=>{K.filterType===Tr.RESULTS&&E("change-filters-selected",R.results.filter(A=>A.isSelected).length)},{immediate:!0,deep:!0});function t(R){setTimeout(()=>{R.sort((A,q)=>A.priority-q.priority),R.forEach((A,q)=>{A.priority=q+1})},10)}function o(R=null){i(R)}function i(R=null){K.filterType===Tr.PRODUCTIVITY?n.value.forEach(A=>{A.isSelected=!1}):K.filterType===Tr.PLAYS?(w.value.forEach(A=>{A.isSelected=!0}),L.value=!0):K.filterType===Tr.FIELD?E("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):K.filterType===Tr.DETAILS?(K.playingAs.forEach(A=>{A.isSelected=!0}),K.gameSections.forEach(A=>{A.isSelected=!0})):K.filterType===Tr.TOURNAMENTS?(K.tournaments.forEach(A=>{A.isSelected=!0}),E("change-filters-selected",0)):K.filterType===Tr.PLAYS_TYPES?K.playsGolstatsCategories.forEach(A=>{A.isSelected=!0}):K.filterType===Tr.GOLSTATS?K.playsGolstatsCategories.forEach(A=>{A.isSelected=!1}):K.filterType===Tr.UNIVERSE?k.value&&k.value.resetFilters():K.filterType===Tr.PERSONAL_DATA?(oe.value&&oe.value.onClearFilters(Yd.All),E("change-personal-data-filters",{})):K.filterType===Tr.DISTANCE?E("update:filters",{minValue:K.distanceFilters.minLimit,maxValue:K.distanceFilters.maxLimit}):K.filterType===Tr.RESULTS?E("update:filters",{results:K.resultsFilters.results.map(A=>(A.isSelected=!0,A))}):K.filterType===Tr.GAMES&&K.gamesFilters.forEach(A=>{A.isSelected=!0})}function s(R){K.filterType===Tr.TOURNAMENTS&&E("change-filters-selected",R)}function l(R){K.filterType===Tr.UNIVERSE&&E("change-universe-filters",R)}function u(R){K.filterType===Tr.FIELD&&E("change-field-areas",R)}function d(R){K.filterType===Tr.GOLSTATS&&E("change-filters-selected",R)}function g(R){L.value=R,K.playsCategories.offensive.categories.forEach(A=>{A.isSelected=R}),K.playsCategories.defensive.categories.forEach(A=>{A.isSelected=R}),K.playsCategories.possession.categories.forEach(A=>{A.isSelected=R}),K.playsCategories.offenses.categories.forEach(A=>{A.isSelected=R})}function f(){let R=0;const A={playsCategories:w.value.filter(q=>q.isSelected)};L.value=A.playsCategories.length===w.value.length,R=A.playsCategories.length,Object.values(e.value).forEach(q=>{q&&R++}),E("change-filters-selected",R),E("update:filters",A)}function C(){let R=0;const A={productivityFilters:n.value.filter(q=>q.isSelected),offensesConditions:e.value};R=A.productivityFilters.length,Object.values(e.value).forEach(q=>{q&&R++}),E("change-filters-selected",R),E("update:filters",A)}function y(){E("apply")}function m(){(K.filterType===Tr.PLAYS_TYPES||K.filterType===Tr.GOLSTATS)&&K.playsGolstatsCategories&&K.playsGolstatsCategories.forEach(R=>{R.isSelected=!1}),E("apply")}function x(R){K.filterType===Tr.PERSONAL_DATA&&E("update:filters",R)}function _(R){K.filterType===Tr.TOURNAMENTS&&E("update:filters",R)}function S(R){(K.filterType===Tr.PLAYS_TYPES||K.filterType===Tr.GOLSTATS)&&E("update:filters",R)}function O(R){K.filterType===Tr.PRODUCTIVITY&&(e.value=R,C())}function h(R){K.filterType===Tr.DISTANCE&&E("update:filters",R)}function M(R){K.filterType===Tr.RESULTS&&E("update:filters",R)}function N(R){K.filterType===Tr.GAMES&&(E("update:filters",R),E("change-filters-selected",R.filter(A=>A.isSelected).length))}const P=p.computed(()=>K.filterType===Tr.PLAYS?w.value.length:K.filterType===Tr.PRODUCTIVITY?n.value.length:K.filterType===Tr.FIELD?16:K.filterType===Tr.UNIVERSE?6:K.filterType===Tr.DETAILS?8:K.filterType===Tr.RESULTS?3:K.filterType===Tr.GAMES?K.gamesFilters.length:0);return E("total-filters",P),U({clearFilters:o}),(R,A)=>(p.openBlock(),p.createElementBlock("div",{class:"templates",style:p.normalizeStyle(v.value)},[r.filterType===p.unref(Tr).PRODUCTIVITY||r.filterType===p.unref(Tr).PLAYS?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(r.isExpansionMode?"productivity__header__expansion":"productivity__header")},[r.filterType===p.unref(Tr).PRODUCTIVITY?(p.openBlock(),p.createElementBlock("div",J$," Selecciona hasta 5 categorias en orden de importancia ")):r.filterType===p.unref(Tr).PLAYS?(p.openBlock(),p.createElementBlock("div",Z$,[p.createVNode(p.unref(Ho),{label:"Todos los tipos de jugadas",fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":L.value,"label-color":r.textColor,"onUpdate:modelValue":g},null,8,["model-value","label-color"])])):p.createCommentVNode("",!0)],2)):p.createCommentVNode("",!0),p.createElementVNode("div",H$,[r.filterType===p.unref(Tr).PLAYS?(p.openBlock(),p.createElementBlock("div",Y$,[p.createVNode(eY,{"plays-categories":r.playsCategories,"is-expansion-mode":r.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).PRODUCTIVITY?(p.openBlock(),p.createElementBlock("div",Q$,[p.createVNode(kW,{"productivity-categories":r.productivityCategories,"number-of-categories-selected":b.value,"are-max-categories-reached":c.value,"is-expansion-mode":r.isExpansionMode,"onUpdate:offensesConditions":O},null,8,["productivity-categories","number-of-categories-selected","are-max-categories-reached","is-expansion-mode"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).FIELD?(p.openBlock(),p.createElementBlock("div",$$,[p.createVNode(p.unref(i6),p.mergeProps(r.fieldComponentProps,{"background-color":r.backgroundColor,value:r.fieldAreas,"onUpdate:modelValue":u}),null,16,["background-color","value"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).DETAILS?(p.openBlock(),p.createElementBlock("div",eee,[p.createVNode(DW,{"playing-as":r.playingAs,"game-sections":r.gameSections,fontFamily:r.fontFamily},null,8,["playing-as","game-sections","fontFamily"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).PERSONAL_DATA?(p.openBlock(),p.createElementBlock("div",tee,[p.createVNode(AH,{ref_key:"templatePersonalData",ref:oe,"personal-data-filters":r.personalDataFilters,season:r.season,"is-scouting":r.isScouting,token:r.token,"onUpdate:filters":x},null,8,["personal-data-filters","season","is-scouting","token"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).TOURNAMENTS?(p.openBlock(),p.createElementBlock("div",nee,[p.createVNode(HW,{tournaments:r.tournaments,onChangeFiltersSelected:s,"onUpdate:filters":_},null,8,["tournaments"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).PLAYS_TYPES?(p.openBlock(),p.createElementBlock("div",ree,[p.createVNode(B_,{height:r.modalHeight,type:r.filterType,categories:r.playsGolstatsCategories,"onUpdate:filters":S},null,8,["height","type","categories"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).GOLSTATS?(p.openBlock(),p.createElementBlock("div",aee,[p.createVNode(B_,{height:r.modalHeight,type:r.filterType,categories:r.playsGolstatsCategories,onChangeFiltersSelected:d,"onUpdate:filters":S},null,8,["height","type","categories"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).UNIVERSE?(p.openBlock(),p.createElementBlock("div",oee,[p.createVNode(BG,{ref_key:"templateUniverse",ref:k,"universe-filters":r.universeFilters,"onUpdate:universeFilters":l},null,8,["universe-filters"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).DISTANCE?(p.openBlock(),p.createElementBlock("div",iee,[p.createVNode(uX,{distance:r.distanceFilters,"onUpdate:distanceFilters":h},null,8,["distance"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).RESULTS?(p.openBlock(),p.createElementBlock("div",see,[p.createVNode(rY,{"results-filters":r.resultsFilters,"onUpdate:resultsFilters":M},null,8,["results-filters"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).GAMES?(p.openBlock(),p.createElementBlock("div",lee,[p.createVNode(gX,{"games-filters":r.gamesFilters,"onUpdate:gamesFilters":N},null,8,["games-filters"])])):p.createCommentVNode("",!0),r.filterType===p.unref(Tr).VIDEOS?(p.openBlock(),p.createElementBlock("div",cee,[p.createVNode(X$,{token:r.token},null,8,["token"])])):p.createCommentVNode("",!0)]),r.isFooterVisible?(p.openBlock(),p.createElementBlock("div",uee,[r.isFooterCancelOnly?(p.openBlock(),p.createBlock(p.unref(n2),{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:m})):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createElementVNode("div",dee,[p.createVNode(p.unref(n2),{"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:i})]),p.createElementVNode("div",pee,[p.createVNode(p.unref(n2),{"text-value":"Listo","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"#cbee6b",onClick:y})])],64))])):p.createCommentVNode("",!0)],4))}},G6=Bo(fee,[["__scopeId","data-v-4019a37d"]]),hee=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E},mee={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(r){return!Number.isNaN(r)}},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(r,{emit:U}){const E=r;p.useCssVars(c=>({"321b6381":r.width,"14b0f61d":k.value,"62e0e83c":r.menuWidth}));const K=p.ref(null),oe=p.ref(!1),L=p.ref(null),T=p.ref({}),e=p.computed(()=>{const c={top:"0px"};if(K.value){const a=K.value.getBoundingClientRect();c.top=`${a.height+E.menuMarginTop}px`}return c}),k=p.computed(()=>oe.value?E.zIndexOpen:1);p.watch(()=>E.modelValue,c=>{c!==oe.value&&(oe.value=c)},{immediate:!0}),p.watch(oe,c=>{c||setTimeout(()=>{T.value["--translate-x"]="0px"},500)});function v(c){const a=window.innerWidth,t=c.boundingClientRect.x,o=c.boundingClientRect.x+c.boundingClientRect.width,i=t<=0?Math.abs(t)+4:o>=a?a-(o+10):0;T.value["--translate-x"]=`${i}px`}function n(){new IntersectionObserver(c=>{c[0].intersectionRatio>0&&v(c[0])}).observe(L.value)}function w(){oe.value=!oe.value,U("update:modelValue",oe.value)}function b(){oe.value=!1,U("update:modelValue",oe.value)}return p.onMounted(()=>{p.nextTick(()=>{n()})}),(c,a)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[oe.value?(p.openBlock(),p.createElementBlock("div",{key:0,id:"menu-overlay",onClick:b})):p.createCommentVNode("",!0),p.createElementVNode("div",{class:"menu-container",style:p.normalizeStyle(T.value)},[p.createElementVNode("div",{ref_key:"trigger",ref:K,class:"menu-container__trigger",onClick:w},[p.renderSlot(c.$slots,"trigger",{},void 0,!0)],512),p.createVNode(p.Transition,null,{default:p.withCtx(()=>[p.withDirectives(p.createElementVNode("div",{ref_key:"menu",ref:L,class:"menu-container__menu",style:p.normalizeStyle(e.value)},[p.renderSlot(c.$slots,"menu",{},void 0,!0)],4),[[p.vShow,oe.value]])]),_:3})],4)],64))}},yee=hee(mee,[["__scopeId","data-v-2f344053"]]),gee=r=>(p.pushScopeId("data-v-de95419d"),r=r(),p.popScopeId(),r),vee={class:"button__icon"},bee={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},xee=["stroke"],_ee=["stroke"],wee=["stroke"],See={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tee=["stroke"],kee=["stroke"],Cee=["fill"],Oee={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Nee=["fill"],Lee={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eee=["stroke"],Vee=["stroke"],Mee=["stroke"],Uee=["stroke"],Pee=["stroke"],zee={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ree=gee(()=>p.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)),Aee=[Ree],qee={class:"button__text"},Fee={key:1,style:{width:"20px"}},Iee={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},jee=["fill"],Kee={__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(r){const U=r,E=p.computed(()=>({"--height":U.height,"--width":U.width,"--text-font-family":U.textFontFamily,"--text-font-size":U.textFontSize,"--background-color":U.backgroundColor,"--border-radius":U.borderRadius,"--border-color":U.isActive?U.borderColorActive:U.borderColor,"--border-width":U.borderWidth,"--padding":U.padding,"--font-color":U.fontColor})),K=p.computed(()=>({"--info-background-color":U.infoValue?U.infoBackgroundColor:"transparent","--info-border-color":U.infoValue?U.infoBorderColor:"transparent","--info-border-radius":U.infoBorderRadius,"--info-font-family":U.infoFontFamily,"--info-font-size":U.infoFontSize,"--info-font-color":U.infoFontColor,"--info-height":U.infoHeight,"--info-width":U.infoWidth})),oe=p.computed(()=>[Tr.PLAYS_TYPES,Tr.GOLSTATS,Tr.TOURNAMENTS,Tr.PLAYS,Tr.RESULTS].includes(U.iconType)),L=p.computed(()=>[Tr.FIELD,Tr.GAMES].includes(U.iconType)),T=p.computed(()=>[Tr.DETAILS,Tr.UNIVERSE].includes(U.iconType)),e=p.computed(()=>[Tr.PERSONAL_DATA].includes(U.iconType)),k=p.computed(()=>[Tr.PRODUCTIVITY].includes(U.iconType));return(v,n)=>(p.openBlock(),p.createElementBlock("div",{class:"button",style:p.normalizeStyle(E.value)},[p.createElementVNode("div",vee,[e.value?(p.openBlock(),p.createElementBlock("svg",bee,[p.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:r.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,xee),p.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:r.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,_ee),p.createElementVNode("path",{d:"M15.164 5.16663V10.1666M17.664 7.66659H12.6641",stroke:r.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,wee)])):p.createCommentVNode("",!0),oe.value?(p.openBlock(),p.createElementBlock("svg",See,[p.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:r.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,Tee),p.createElementVNode("path",{d:"M15.9996 16.8727L14.8359 15.7091",stroke:r.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,kee),p.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:r.iconColor,stroke:"#353F47","stroke-width":"0.3"},null,8,Cee)])):p.createCommentVNode("",!0),T.value?(p.openBlock(),p.createElementBlock("svg",Oee,[p.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:r.iconColor},null,8,Nee)])):p.createCommentVNode("",!0),L.value?(p.openBlock(),p.createElementBlock("svg",Lee,[p.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:r.iconColor},null,8,Eee),p.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:r.iconColor},null,8,Vee),p.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:r.iconColor},null,8,Mee),p.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:r.iconColor},null,8,Uee),p.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:r.iconColor},null,8,Pee)])):p.createCommentVNode("",!0),k.value?(p.openBlock(),p.createElementBlock("svg",zee,Aee)):p.createCommentVNode("",!0)]),p.createElementVNode("div",qee,p.toDisplayString(r.text),1),r.showBadgeOnFilterFull?(p.openBlock(),p.createElementBlock("div",{key:0,class:"button__info",style:p.normalizeStyle(K.value)},[p.withDirectives(p.createElementVNode("span",null,p.toDisplayString(r.infoValue),513),[[p.vShow,r.infoValue]])],4)):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[r.filtersTotal>0&&r.filtersTotal!=parseInt(r.infoValue)?(p.openBlock(),p.createElementBlock("div",{key:0,class:"button__info",style:p.normalizeStyle(K.value)},[p.withDirectives(p.createElementVNode("span",null,p.toDisplayString(r.infoValue),513),[[p.vShow,r.infoValue]])],4)):r.filtersTotal>0?(p.openBlock(),p.createElementBlock("div",Fee)):p.createCommentVNode("",!0)],64)),p.createElementVNode("div",{class:p.normalizeClass(["button__arrow",{"rotated-180":r.isActive}])},[(p.openBlock(),p.createElementBlock("svg",Iee,[p.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:r.arrowColor},null,8,jee)]))],2)],4))}},Bee=Bo(Kee,[["__scopeId","data-v-de95419d"]]),Dee=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E},Wee=r=>(p.pushScopeId("data-v-0ca35abc"),r=r(),p.popScopeId(),r),Gee={class:"panel__activator__icon"},Xee=["src"],Jee={class:"panel__activator__text"},Zee=["height","width"],Hee=["stroke"],Yee={class:"panel__content"},Qee=Wee(()=>p.createElementVNode("div",{class:"panel__content__separator"},null,-1)),$ee={class:"panel__content__slot"},ete={__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(r,{emit:U}){const E=r,K=p.ref(E.modelValue),oe=p.computed(()=>({"--activator-height":E.height,"--activator-text-font-family":E.textFontFamily,"--activator-text-font-size":E.textFontSize,"--activator-text-color":E.textColor,"--background-color":E.backgroundColor,"--panel-width":E.width,"--panel-padding":E.panelPadding,"--panel-border-radius":E.borderRadius,"--panel-border-color":E.borderColor,"--panel-border-width":E.borderWidth,"--arrow-height":E.arrowHeight,"--arrow-width":E.arrowWidth,"--separator-width":E.separatorWidth,"--separator-color":E.separatorColor}));p.watch(()=>E.modelValue,T=>{K.value=T},{immediate:!0});function L(){K.value=!K.value,U("update:modelValue",K.value)}return(T,e)=>(p.openBlock(),p.createElementBlock("div",{class:"panel",style:p.normalizeStyle(oe.value)},[p.createElementVNode("div",{class:"panel__activator",onClick:L},[p.createElementVNode("div",Gee,[E.icon?(p.openBlock(),p.createElementBlock("img",{key:0,src:E.icon,alt:""},null,8,Xee)):p.createCommentVNode("",!0)]),p.createElementVNode("div",Jee,p.toDisplayString(r.text),1),p.createElementVNode("div",{class:p.normalizeClass(["panel__activator__arrow",{"rotated-180":K.value}])},[(p.openBlock(),p.createElementBlock("svg",{height:r.arrowHeight,width:r.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[p.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:r.arrowColor},null,8,Hee)],8,Zee))],2)]),p.createVNode(p.Transition,null,{default:p.withCtx(()=>[p.withDirectives(p.createElementVNode("div",Yee,[Qee,p.createElementVNode("div",$ee,[p.renderSlot(T.$slots,"content",{},void 0,!0)])],512),[[p.vShow,K.value]])]),_:3})],4))}},tte=Dee(ete,[["__scopeId","data-v-0ca35abc"]]),rm={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}]},nte={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}},rte={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}]}},ate={minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(r,U)=>U+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},ote=[{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}]}],ite=[{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}],ste=[{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}],lte={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},cte={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},ute={class:"filters"},dte={key:0,class:"filters__expansion"},pte={class:"content"},fte={key:1,class:"filters__menus"},hte={__name:"GSC-Filters",props:{filterType:{type:String,default:""},isExpansionPanel:{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(r,{expose:U,emit:E}){const K=r;p.useCssVars(R=>({a8c01d76:r.width}));const oe={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.PRODUCTIVITY,isFooterVisible:!0},L={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.PLAYS,isFooterVisible:!0},T={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.FIELD,isFooterVisible:!0},e={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.DETAILS,isFooterVisible:!0},k={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.TOURNAMENTS,isFooterVisible:!0},v={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.PERSONAL_DATA,isFooterVisible:!0},n={width:"310px",modalHeight:K.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},w={width:"380px",modalHeight:K.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},b={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.UNIVERSE,isFooterVisible:!0},c={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.DISTANCE,isFooterVisible:!0},a={width:"200px",maxWidth:"200px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.RESULTS,isFooterVisible:!0},t={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.VIDEOS,isFooterVisible:!1},o={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:Tr.GAMES,isFooterVisible:!0},i=p.ref(!1),s=p.ref(!1),l=p.ref(0),u=p.ref(0),d=p.ref({}),g=p.ref(null),f=p.ref(null),C=p.computed(()=>K.menuButtonText||S()),y=p.computed(()=>K.expansionPanelText||S()),m=p.ref(null);p.watch(()=>K.filterType,R=>{R===Tr.PRODUCTIVITY?d.value={...oe,...K.templateProps,productivityCategories:K.filters||nte}:R===Tr.PLAYS?d.value={...L,...K.templateProps,fontFamily:K.buttonFilterProps?K.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:K.filters||rte}:R===Tr.FIELD?d.value={...T,...K.templateProps,fieldComponentProps:K.fieldComponentProps,fieldAreas:K.filters||[]}:R===Tr.DETAILS?d.value={...e,...K.templateProps,playingAs:K.filters&&K.filters.playingAs||rm.playingAs,gameSections:K.filters&&K.filters.gameSections||rm.gameSections}:R===Tr.TOURNAMENTS?d.value={...k,...K.templateProps,tournaments:K.filters||ote}:R===Tr.PERSONAL_DATA?d.value={...v,...K.templateProps,token:K.token,personalDataFilters:K.filters||F6}:R===Tr.PLAYS_TYPES?d.value={...n,...K.templateProps,playsGolstatsCategories:K.filters||ite}:R===Tr.GOLSTATS?d.value={...w,...K.templateProps,playsGolstatsCategories:K.filters||ste}:R===Tr.UNIVERSE?d.value={...b,...K.templateProps,universeFilters:K.filters||ate}:R===Tr.DISTANCE?d.value={...c,...K.templateProps,distanceFilters:K.filters||lte}:R===Tr.RESULTS?d.value={...a,...K.templateProps,resultsFilters:K.filters||cte}:R===Tr.GAMES?d.value={...o,...K.templateProps,gamesFilters:K.filters||[]}:R===Tr.VIDEOS&&(d.value={...t,...K.templateProps,token:K.token}),d.value.isExpansionMode=K.isExpansionPanel,K.isExpansionPanel&&(d.value.width="100%",d.value.maxWidth="100%")},{immediate:!0}),p.watch(()=>K.filters,()=>{K.filterType===Tr.PRODUCTIVITY?d.value={...oe,...K.templateProps,productivityCategories:K.filters}:K.filterType===Tr.PLAYS?d.value={...L,...K.templateProps,playsCategories:K.filters}:K.filterType===Tr.FIELD?d.value={...T,...K.templateProps,fieldComponentProps:K.fieldComponentProps,fieldAreas:K.filters}:K.filterType===Tr.DETAILS?d.value={...e,...K.templateProps,playingAs:K.filters?K.filters.playingAs:rm.playingAs,gameSections:K.filters?K.filters.gameSections:rm.gameSections}:K.filterType===Tr.TOURNAMENTS?d.value={...k,...K.templateProps,tournaments:K.filters}:K.filterType===Tr.PERSONAL_DATA?d.value={...v,...K.templateProps,token:K.token,personalDataFilters:K.filters}:K.filterType===Tr.PLAYS_TYPES?d.value={...n,...K.templateProps,playsGolstatsCategories:K.filters}:K.filterType===Tr.GOLSTATS?d.value={...w,...K.templateProps,playsGolstatsCategories:K.filters}:K.filterType===Tr.UNIVERSE?d.value={...b,...K.templateProps,universeFilters:K.filters}:K.filterType===Tr.DISTANCE?d.value={...c,...K.templateProps,distanceFilters:K.filters}:K.filterType===Tr.RESULTS?d.value={...a,...K.templateProps,resultsFilters:K.filters}:K.filterType===Tr.GAMES?d.value={...o,...K.templateProps,gamesFilters:K.filters}:K.filterType===Tr.VIDEOS&&(d.value={...t,...K.templateProps,token:K.token}),d.value.isExpansionMode=K.isExpansionPanel,K.isExpansionPanel&&(d.value.width="100%",d.value.maxWidth="100%")}),p.watch(i,R=>{R||E("close",m.value)}),p.watch(s,R=>{R||E("close",m.value)});function x(R){l.value=R}function _(){K.isExpansionPanel?s.value=!1:i.value=!1,E("apply",m.value)}function S(){if(K.filterType===Tr.PRODUCTIVITY)return"Características de juego";if(K.filterType===Tr.PLAYS)return"Jugada(s)";if(K.filterType===Tr.FIELD)return"Zona de cancha";if(K.filterType===Tr.DETAILS)return"Detalles";if(K.filterType===Tr.TOURNAMENTS)return"Ligas";if(K.filterType===Tr.PERSONAL_DATA)return"Datos personales";if(K.filterType===Tr.PLAYS_TYPES)return"Tipos de jugada";if(K.filterType===Tr.GOLSTATS)return"Filtros Golstats";if(K.filterType===Tr.UNIVERSE)return"Universo";if(K.filterType===Tr.DISTANCE)return"Distancia";if(K.filterType===Tr.RESULTS)return"Resultados";if(K.filterType===Tr.GAMES)return"Partidos";if(K.filterType===Tr.VIDEOS)return"Videos"}function O(R){d.value.fieldAreas=R,l.value=R.length,M(R)}function h(R){let A=0;R.value&&R.value.statistics&&(R.value.minutesPlayed&&A++,R.value.percentMinutesPlayed&&A++,R.value.lastMonths&&A++,R.value.statistics.totals&&A++,R.value.statistics.averagePerGame&&A++,R.value.statistics.averagePerMinute&&A++),d.value.universe=R.value,l.value=A,M(R.value)}function M(R){m.value=R,E("update:filters",R)}function N(R){u.value=R}function P(R=null){g.value&&g.value.clearFilters(R),f.value&&f.value.clearFilters(R)}return U({clearFilters:P}),(R,A)=>(p.openBlock(),p.createElementBlock("div",ute,[r.isExpansionPanel?(p.openBlock(),p.createElementBlock("div",dte,[p.createVNode(p.unref(tte),p.mergeProps(r.expansionPanelProps,{modelValue:s.value,"onUpdate:modelValue":A[0]||(A[0]=q=>s.value=q),text:y.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+K.filterType+"-icon.png"}),{content:p.withCtx(()=>[p.createElementVNode("div",pte,[p.createVNode(G6,p.mergeProps(d.value,{season:r.season,"is-expansion-mode":!0,ref_key:"filterTemplateExpansionPanel",ref:f,onChangeFieldAreas:O,onChangeCategoriesSelected:x,onChangeFiltersSelected:x,onChangeUniverseFilters:h,onApply:_,"onUpdate:filters":M,onTotalFilters:N}),null,16,["season"])])]),_:1},16,["modelValue","text","icon"])])):(p.openBlock(),p.createElementBlock("div",fte,[p.createVNode(p.unref(yee),{modelValue:i.value,"onUpdate:modelValue":A[1]||(A[1]=q=>i.value=q),width:r.width,"menu-margin-top":18},{trigger:p.withCtx(()=>[p.createVNode(Bee,p.mergeProps(r.buttonFilterProps,{text:C.value,"show-badge-on-filter-full":r.showBadgeOnFilterFull,"info-value":l.value,"filters-total":u.value.value,"is-active":i.value,"icon-type":r.filterType}),null,16,["text","show-badge-on-filter-full","info-value","filters-total","is-active","icon-type"])]),menu:p.withCtx(()=>[p.createVNode(G6,p.mergeProps(d.value,{season:r.season,"is-scouting":r.isScouting,ref_key:"filterTemplateMenu",ref:g,onChangeFieldAreas:O,onChangeCategoriesSelected:x,onChangeFiltersSelected:x,onChangeUniverseFilters:h,"onUpdate:filters":M,onTotalFilters:N,onApply:_}),null,16,["season","is-scouting"])]),_:1},8,["modelValue","width"])]))]))}},vu=Bo(hte,[["__scopeId","data-v-7d977e0b"]]),mte=(r,U)=>{const E=r.__vccOpts||r;for(const[K,oe]of U)E[K]=oe;return E},T2=r=>(p.pushScopeId("data-v-80cc8fd8"),r=r(),p.popScopeId(),r),yte={class:"gsc-connections-passes__title"},gte={class:"gsc-connections-passes__players"},vte=["src","alt"],bte={key:0,class:"player-card__name"},xte=["onClick"],_te=T2(()=>p.createElementVNode("rect",{x:"0.819336",y:"1.09961",width:"17.5",height:"17.5",rx:"8.75",fill:"white","fill-opacity":"0.05"},null,-1)),wte=T2(()=>p.createElementVNode("path",{d:"M7.75812 13.797C7.70091 13.7591 7.6531 13.7026 7.61984 13.6334C7.58657 13.5642 7.56911 13.485 7.56934 13.4044V6.29374C7.56942 6.21339 7.58699 6.13456 7.62019 6.06564C7.65339 5.99672 7.70098 5.94029 7.7579 5.90233C7.81481 5.86438 7.87893 5.84633 7.94343 5.8501C8.00793 5.85387 8.07041 5.87932 8.12421 5.92374L12.4102 9.47946C12.4591 9.51997 12.4993 9.57491 12.527 9.63939C12.5548 9.70387 12.5693 9.77589 12.5693 9.84905C12.5693 9.9222 12.5548 9.99423 12.527 10.0587C12.4993 10.1232 12.4591 10.1781 12.4102 10.2186L8.12421 13.7752C8.07049 13.8197 8.00806 13.8453 7.94359 13.8491C7.87912 13.8529 7.81501 13.8349 7.75812 13.797ZM7.92667 13.4052L12.2126 9.84947L7.92667 13.4052Z",fill:"#CBEE6B"},null,-1)),Ste=T2(()=>p.createElementVNode("rect",{x:"0.819336",y:"1.09961",width:"17.5",height:"17.5",rx:"8.75",stroke:"white","stroke-width":"0.5"},null,-1)),Tte=[_te,wte,Ste],kte={class:"player-card__value"},Cte={__name:"GscConnectionsPasses",props:{title:{type:String,default:"Conexiones más frecuentes"},players:{type:Array,default:()=>[{name:"Martin Mex, Henrya asdasdsadas",playerId:1,photo:"/player.png",value:7},{name:"Martin Mex, Henry",playerId:1,photo:"/player.png",value:7}]}},setup(r){let U=null;const E=p.ref(null),K=p.ref(0);function oe(){U=new ResizeObserver(e=>{for(const k of e)K.value=k.contentRect.width}),U.observe(E.value)}const L=p.computed(()=>K.value<300?"break-point-3":""),T=p.computed(()=>K.value<=250?"break-point-2":"");return p.onMounted(()=>{oe()}),(e,k)=>(p.openBlock(),p.createElementBlock("div",{ref_key:"gscConnectionPasses",ref:E,class:p.normalizeClass(["gsc-connections-passes",L.value])},[p.createElementVNode("h3",yte,p.toDisplayString(r.title),1),p.createElementVNode("div",gte,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.players,(v,n)=>(p.openBlock(),p.createElementBlock("div",{key:n,style:p.normalizeStyle(`background-color: ${n%2?"#172531":"#0D1D29"};`),class:p.normalizeClass(["gsc-connections-passes__player player-card",T.value])},[p.createElementVNode("div",{class:p.normalizeClass(["player-card__photo",T.value])},[p.createElementVNode("img",{src:v.photo,alt:v.name},null,8,vte)],2),K.value>250?(p.openBlock(),p.createElementBlock("span",bte,p.toDisplayString(v.name),1)):p.createCommentVNode("",!0),(p.openBlock(),p.createElementBlock("svg",{onClick:w=>e.$emit("clickPlayer",v),class:"player-card__button",width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tte,8,xte)),p.createElementVNode("span",kte,p.toDisplayString(v.value),1)],6))),128))])],2))}},Ote=mte(Cte,[["__scopeId","data-v-80cc8fd8"]]),Nte=["playId","gameId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y","xGi","xGf","teammatePlayerId","distance","fieldArea"];let k2=null;function hc(){return k2||(k2=th(Nte)),k2}function X6(){return{backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)"}}var qh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lte(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var J6={exports:{}};(function(r,U){/*! For license information please see plotly.min.js.LICENSE.txt */(function(E,K){r.exports=K()})(self,function(){return function(){var E={79288:function(L,T,e){var k=e(3400),v={"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 v){var w=n.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");k.addStyleRule(w,v[n])}},86712:function(L,T,e){L.exports=e(84224)},37240:function(L,T,e){L.exports=e(51132)},29744:function(L,T,e){L.exports=e(94456)},29352:function(L,T,e){L.exports=e(67244)},96144:function(L,T,e){L.exports=e(97776)},53219:function(L,T,e){L.exports=e(61712)},4624:function(L,T,e){L.exports=e(95856)},54543:function(L,T,e){L.exports=e(54272)},45e3:function(L,T,e){L.exports=e(85404)},62300:function(L,T,e){L.exports=e(26048)},6920:function(L,T,e){L.exports=e(66240)},10264:function(L,T,e){L.exports=e(40448)},32016:function(L,T,e){L.exports=e(64884)},27528:function(L,T,e){L.exports=e(15088)},75556:function(L,T,e){L.exports=e(76744)},39204:function(L,T,e){L.exports=e(94704)},73996:function(L,T,e){L.exports=e(62396)},16489:function(L,T,e){L.exports=e(32028)},5e3:function(L,T,e){L.exports=e(81932)},77280:function(L,T,e){L.exports=e(45536)},33992:function(L,T,e){L.exports=e(42600)},17600:function(L,T,e){L.exports=e(21536)},49116:function(L,T,e){L.exports=e(65664)},46808:function(L,T,e){L.exports=e(29044)},36168:function(L,T,e){L.exports=e(48928)},13792:function(L,T,e){var k=e(32016);k.register([e(37240),e(29352),e(5e3),e(33992),e(17600),e(49116),e(6920),e(67484),e(79440),e(39204),e(83096),e(36168),e(20260),e(63560),e(65832),e(46808),e(73996),e(48824),e(89904),e(25120),e(13752),e(4340),e(62300),e(29800),e(8363),e(54543),e(86636),e(42192),e(32140),e(77280),e(89296),e(56816),e(70192),e(45e3),e(27528),e(84764),e(3920),e(50248),e(4624),e(69967),e(10264),e(86152),e(53219),e(81604),e(63796),e(29744),e(89336),e(86712),e(75556),e(16489),e(97312),e(96144)]),L.exports=k},3920:function(L,T,e){L.exports=e(43480)},25120:function(L,T,e){L.exports=e(6296)},4340:function(L,T,e){L.exports=e(7404)},86152:function(L,T,e){L.exports=e(65456)},56816:function(L,T,e){L.exports=e(22020)},89296:function(L,T,e){L.exports=e(29928)},20260:function(L,T,e){L.exports=e(75792)},32140:function(L,T,e){L.exports=e(156)},84764:function(L,T,e){L.exports=e(45499)},48824:function(L,T,e){L.exports=e(3296)},69967:function(L,T,e){L.exports=e(4184)},8363:function(L,T,e){L.exports=e(36952)},86636:function(L,T,e){L.exports=e(38983)},70192:function(L,T,e){L.exports=e(11572)},81604:function(L,T,e){L.exports=e(76924)},63796:function(L,T,e){L.exports=e(62944)},89336:function(L,T,e){L.exports=e(95443)},67484:function(L,T,e){L.exports=e(34864)},97312:function(L,T,e){L.exports=e(76272)},42192:function(L,T,e){L.exports=e(97924)},29800:function(L,T,e){L.exports=e(15436)},63560:function(L,T,e){L.exports=e(5621)},89904:function(L,T,e){L.exports=e(91304)},50248:function(L,T,e){L.exports=e(41724)},65832:function(L,T,e){L.exports=e(31991)},79440:function(L,T,e){L.exports=e(22869)},13752:function(L,T,e){L.exports=e(67776)},83096:function(L,T,e){L.exports=e(95952)},72196:function(L){L.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}]},13916:function(L,T,e){var k=e(72196),v=e(25376),n=e(33816),w=e(31780).templatedArray;e(36208),L.exports=w("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:v({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:k.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:k.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:v({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},90272:function(L,T,e){var k=e(3400),v=e(54460),n=e(23816).draw;function w(c){var a=c._fullLayout;k.filterVisible(a.annotations).forEach(function(t){var o=v.getFromId(c,t.xref),i=v.getFromId(c,t.yref),s=v.getRefType(t.xref),l=v.getRefType(t.yref);t._extremes={},s==="range"&&b(t,o),l==="range"&&b(t,i)})}function b(c,a){var t,o=a._id,i=o.charAt(0),s=c[i],l=c["a"+i],u=c[i+"ref"],d=c["a"+i+"ref"],g=c["_"+i+"padplus"],f=c["_"+i+"padminus"],C={x:1,y:-1}[i]*c[i+"shift"],y=3*c.arrowsize*c.arrowwidth||0,m=y+C,x=y-C,_=3*c.startarrowsize*c.arrowwidth||0,S=_+C,O=_-C;if(d===u){var h=v.findExtremes(a,[a.r2c(s)],{ppadplus:m,ppadminus:x}),M=v.findExtremes(a,[a.r2c(l)],{ppadplus:Math.max(g,S),ppadminus:Math.max(f,O)});t={min:[h.min[0],M.min[0]],max:[h.max[0],M.max[0]]}}else S=l?S+l:S,O=l?O-l:O,t=v.findExtremes(a,[a.r2c(s)],{ppadplus:Math.max(g,m,S),ppadminus:Math.max(f,x,O)});c._extremes[o]=t}L.exports=function(c){var a=c._fullLayout;if(k.filterVisible(a.annotations).length&&c._fullData.length)return k.syncOrAsync([n,w],c)}},42300:function(L,T,e){var k=e(3400),v=e(24040),n=e(31780).arrayEditor;function w(c,a){var t,o,i,s,l,u,d,g=c._fullLayout.annotations,f=[],C=[],y=[],m=(a||[]).length;for(t=0;t<g.length;t++)if(s=(i=g[t]).clicktoshow){for(o=0;o<m;o++)if(u=(l=a[o]).xaxis,d=l.yaxis,u._id===i.xref&&d._id===i.yref&&u.d2r(l.x)===b(i._xclick,u)&&d.d2r(l.y)===b(i._yclick,d)){(i.visible?s==="onout"?C:y:f).push(t);break}o===m&&i.visible&&s==="onout"&&C.push(t)}return{on:f,off:C,explicitOff:y}}function b(c,a){return a.type==="log"?a.l2r(c):a.d2r(c)}L.exports={hasClickToShow:function(c,a){var t=w(c,a);return t.on.length>0||t.explicitOff.length>0},onClick:function(c,a){var t,o,i=w(c,a),s=i.on,l=i.off.concat(i.explicitOff),u={},d=c._fullLayout.annotations;if(s.length||l.length){for(t=0;t<s.length;t++)(o=n(c.layout,"annotations",d[s[t]])).modifyItem("visible",!0),k.extendFlat(u,o.getUpdateObj());for(t=0;t<l.length;t++)(o=n(c.layout,"annotations",d[l[t]])).modifyItem("visible",!1),k.extendFlat(u,o.getUpdateObj());return v.call("update",c,{},u)}}}},87192:function(L,T,e){var k=e(3400),v=e(76308);L.exports=function(n,w,b,c){c("opacity");var a=c("bgcolor"),t=c("bordercolor"),o=v.opacity(t);c("borderpad");var i=c("borderwidth"),s=c("showarrow");if(c("text",s?" ":b._dfltTitle.annotation),c("textangle"),k.coerceFont(c,"font",b.font),c("width"),c("align"),c("height")&&c("valign"),s){var l,u,d=c("arrowside");d.indexOf("end")!==-1&&(l=c("arrowhead"),u=c("arrowsize")),d.indexOf("start")!==-1&&(c("startarrowhead",l),c("startarrowsize",u)),c("arrowcolor",o?w.bordercolor:v.defaultLine),c("arrowwidth",2*(o&&i||1)),c("standoff"),c("startstandoff")}var g=c("hovertext"),f=b.hoverlabel||{};if(g){var C=c("hoverlabel.bgcolor",f.bgcolor||(v.opacity(a)?v.rgb(a):v.defaultLine)),y=c("hoverlabel.bordercolor",f.bordercolor||v.contrast(C));k.coerceFont(c,"hoverlabel.font",{family:f.font.family,size:f.font.size,color:f.font.color||y})}c("captureevents",!!g)}},26828:function(L,T,e){var k=e(38248),v=e(36896);L.exports=function(n,w,b,c){w=w||{};var a=b==="log"&&w.type==="linear",t=b==="linear"&&w.type==="log";if(a||t)for(var o,i,s=n._fullLayout.annotations,l=w._id.charAt(0),u=0;u<s.length;u++)o=s[u],i="annotations["+u+"].",o[l+"ref"]===w._id&&d(l),o["a"+l+"ref"]===w._id&&d("a"+l);function d(g){var f=o[g],C=null;C=a?v(f,w.range):Math.pow(10,f),k(C)||(C=null),c(i+g,C)}}},45216:function(L,T,e){var k=e(3400),v=e(54460),n=e(51272),w=e(87192),b=e(13916);function c(a,t,o){function i(M,N){return k.coerce(a,t,b,M,N)}var s=i("visible"),l=i("clicktoshow");if(s||l){w(a,t,o,i);for(var u=t.showarrow,d=["x","y"],g=[-10,-30],f={_fullLayout:o},C=0;C<2;C++){var y=d[C],m=v.coerceRef(a,t,f,y,"","paper");if(m!=="paper"&&v.getFromId(f,m)._annIndices.push(t._index),v.coercePosition(t,f,i,m,y,.5),u){var x="a"+y,_=v.coerceRef(a,t,f,x,"pixel",["pixel","paper"]);_!=="pixel"&&_!==m&&(_=t[x]="pixel");var S=_==="pixel"?g[C]:.4;v.coercePosition(t,f,i,_,x,S)}i(y+"anchor"),i(y+"shift")}if(k.noneOrAll(a,t,["x","y"]),u&&k.noneOrAll(a,t,["ax","ay"]),l){var O=i("xclick"),h=i("yclick");t._xclick=O===void 0?t.x:v.cleanPosition(O,f,t.xref),t._yclick=h===void 0?t.y:v.cleanPosition(h,f,t.yref)}}}L.exports=function(a,t){n(a,t,{name:"annotations",handleItemDefaults:c})}},23816:function(L,T,e){var k=e(33428),v=e(24040),n=e(7316),w=e(3400),b=w.strTranslate,c=e(54460),a=e(76308),t=e(43616),o=e(93024),i=e(72736),s=e(93972),l=e(86476),u=e(31780).arrayEditor,d=e(33652);function g(y,m){var x=y._fullLayout.annotations[m]||{},_=c.getFromId(y,x.xref),S=c.getFromId(y,x.yref);_&&_.setScale(),S&&S.setScale(),C(y,x,m,!1,_,S)}function f(y,m,x,_,S){var O=S[x],h=S[x+"ref"],M=x.indexOf("y")!==-1,N=c.getRefType(h)==="domain",P=M?_.h:_.w;return y?N?O+(M?-m:m)/y._length:y.p2r(y.r2p(O)+m):O+(M?-m:m)/P}function C(y,m,x,_,S,O){var h,M,N=y._fullLayout,P=y._fullLayout._size,R=y._context.edits;_?(h="annotation-"+_,M=_+".annotations"):(h="annotation",M="annotations");var A=u(y.layout,M,m),q=A.modifyBase,j=A.modifyItem,X=A.getUpdateObj;N._infolayer.selectAll("."+h+'[data-index="'+x+'"]').remove();var F="clip"+N._uid+"_ann"+x;if(m._input&&m.visible!==!1){var W={x:{},y:{}},Y=+m.textangle||0,B=N._infolayer.append("g").classed(h,!0).attr("data-index",String(x)).style("opacity",m.opacity),G=B.append("g").classed("annotation-text-g",!0),J=R[m.showarrow?"annotationTail":"annotationPosition"],se=m.captureevents||R.annotationText||J,re=G.append("g").style("pointer-events",se?"all":null).call(s,"pointer").on("click",function(){y._dragging=!1,y.emit("plotly_clickannotation",_e(k.event))});m.hovertext&&re.on("mouseover",function(){var Se=m.hoverlabel,Pe=Se.font,Ne=this.getBoundingClientRect(),Oe=y.getBoundingClientRect();o.loneHover({x0:Ne.left-Oe.left,x1:Ne.right-Oe.left,y:(Ne.top+Ne.bottom)/2-Oe.top,text:m.hovertext,color:Se.bgcolor,borderColor:Se.bordercolor,fontFamily:Pe.family,fontSize:Pe.size,fontColor:Pe.color},{container:N._hoverlayer.node(),outerContainer:N._paper.node(),gd:y})}).on("mouseout",function(){o.loneUnhover(N._hoverlayer.node())});var ne=m.borderwidth,$=m.borderpad,te=ne+$,ae=re.append("rect").attr("class","bg").style("stroke-width",ne+"px").call(a.stroke,m.bordercolor).call(a.fill,m.bgcolor),ce=m.width||m.height,ue=N._topclips.selectAll("#"+F).data(ce?[0]:[]);ue.enter().append("clipPath").classed("annclip",!0).attr("id",F).append("rect"),ue.exit().remove();var de=m.font,me=N._meta?w.templateString(m.text,N._meta):m.text,be=re.append("text").classed("annotation-text",!0).text(me);R.annotationText?be.call(i.makeEditable,{delegate:re,gd:y}).call(we).on("edit",function(Se){m.text=Se,this.call(we),j("text",Se),S&&S.autorange&&q(S._name+".autorange",!0),O&&O.autorange&&q(O._name+".autorange",!0),v.call("_guiRelayout",y,X())}):be.call(we)}else k.selectAll("#"+F).remove();function _e(Se){var Pe={index:x,annotation:m._input,fullAnnotation:m,event:Se};return _&&(Pe.subplotId=_),Pe}function we(Se){return Se.call(t.font,de).attr({"text-anchor":{left:"start",right:"end"}[m.align]||"middle"}),i.convertToTspans(Se,y,Ce),Se}function Ce(){var Se=be.selectAll("a");Se.size()===1&&Se.text()===be.text()&&re.insert("a",":first-child").attr({"xlink:xlink:href":Se.attr("xlink:href"),"xlink:xlink:show":Se.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(ae.node());var Pe=re.select(".annotation-text-math-group"),Ne=!Pe.empty(),Oe=t.bBox((Ne?Pe:be).node()),pe=Oe.width,fe=Oe.height,xe=m.width||pe,ze=m.height||fe,Le=Math.round(xe+2*te),Ue=Math.round(ze+2*te);function Re(St,vt){return vt==="auto"&&(vt=St<.3333333333333333?"left":St>.6666666666666666?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[vt]}for(var Fe=!1,ve=["x","y"],ke=0;ke<ve.length;ke++){var Ee,je,Be,Ie,Ze,He=ve[ke],at=m[He+"ref"]||He,ft=m["a"+He+"ref"],ut={x:S,y:O}[He],_t=(Y+(He==="x"?0:-90))*Math.PI/180,Nt=Le*Math.cos(_t),Tt=Ue*Math.sin(_t),st=Math.abs(Nt)+Math.abs(Tt),lt=m[He+"anchor"],Vt=m[He+"shift"]*(He==="x"?1:-1),jt=W[He],Kt=c.getRefType(at);if(ut&&Kt!=="domain"){var It=ut.r2fraction(m[He]);(It<0||It>1)&&(ft===at?((It=ut.r2fraction(m["a"+He]))<0||It>1)&&(Fe=!0):Fe=!0),Ee=ut._offset+ut.r2p(m[He]),Ie=.5}else{var $e=Kt==="domain";He==="x"?(Be=m[He],Ee=$e?ut._offset+ut._length*Be:Ee=P.l+P.w*Be):(Be=1-m[He],Ee=$e?ut._offset+ut._length*Be:Ee=P.t+P.h*Be),Ie=m.showarrow?.5:Be}if(m.showarrow){jt.head=Ee;var tt=m["a"+He];if(Ze=Nt*Re(.5,m.xanchor)-Tt*Re(.5,m.yanchor),ft===at){var Xe=c.getRefType(ft);Xe==="domain"?(He==="y"&&(tt=1-tt),jt.tail=ut._offset+ut._length*tt):Xe==="paper"?He==="y"?(tt=1-tt,jt.tail=P.t+P.h*tt):jt.tail=P.l+P.w*tt:jt.tail=ut._offset+ut.r2p(tt),je=Ze}else jt.tail=Ee+tt,je=Ze+tt;jt.text=jt.tail+Ze;var et=N[He==="x"?"width":"height"];if(at==="paper"&&(jt.head=w.constrain(jt.head,1,et-1)),ft==="pixel"){var ht=-Math.max(jt.tail-3,jt.text),dt=Math.min(jt.tail+3,jt.text)-et;ht>0?(jt.tail+=ht,jt.text+=ht):dt>0&&(jt.tail-=dt,jt.text-=dt)}jt.tail+=Vt,jt.head+=Vt}else je=Ze=st*Re(Ie,lt),jt.text=Ee+Ze;jt.text+=Vt,Ze+=Vt,je+=Vt,m["_"+He+"padplus"]=st/2+je,m["_"+He+"padminus"]=st/2-je,m["_"+He+"size"]=st,m["_"+He+"shift"]=Ze}if(Fe)re.remove();else{var De=0,Ge=0;if(m.align!=="left"&&(De=(xe-pe)*(m.align==="center"?.5:1)),m.valign!=="top"&&(Ge=(ze-fe)*(m.valign==="middle"?.5:1)),Ne)Pe.select("svg").attr({x:te+De-1,y:te+Ge}).call(t.setClipUrl,ce?F:null,y);else{var pt=te+Ge-Oe.top,nt=te+De-Oe.left;be.call(i.positionText,nt,pt).call(t.setClipUrl,ce?F:null,y)}ue.select("rect").call(t.setRect,te,te,xe,ze),ae.call(t.setRect,ne/2,ne/2,Le-ne,Ue-ne),re.call(t.setTranslate,Math.round(W.x.text-Le/2),Math.round(W.y.text-Ue/2)),G.attr({transform:"rotate("+Y+","+W.x.text+","+W.y.text+")"});var bt,wt=function(St,vt){B.selectAll(".annotation-arrow-g").remove();var Pt=W.x.head,Lt=W.y.head,Ct=W.x.tail+St,Rt=W.y.tail+vt,At=W.x.text+St,Bt=W.y.text+vt,nn=w.rotationXYMatrix(Y,At,Bt),hn=w.apply2DTransform(nn),Ht=w.apply2DTransform2(nn),Qt=+ae.attr("width"),un=+ae.attr("height"),In=At-.5*Qt,zn=In+Qt,wn=Bt-.5*un,rn=wn+un,vn=[[In,wn,In,rn],[In,rn,zn,rn],[zn,rn,zn,wn],[zn,wn,In,wn]].map(Ht);if(!vn.reduce(function(Sr,dr){return Sr^!!w.segmentsIntersect(Pt,Lt,Pt+1e6,Lt+1e6,dr[0],dr[1],dr[2],dr[3])},!1)){vn.forEach(function(Sr){var dr=w.segmentsIntersect(Ct,Rt,Pt,Lt,Sr[0],Sr[1],Sr[2],Sr[3]);dr&&(Ct=dr.x,Rt=dr.y)});var dn=m.arrowwidth,_n=m.arrowcolor,Un=m.arrowside,An=B.append("g").style({opacity:a.opacity(_n)}).classed("annotation-arrow-g",!0),Wn=An.append("path").attr("d","M"+Ct+","+Rt+"L"+Pt+","+Lt).style("stroke-width",dn+"px").call(a.stroke,a.rgb(_n));if(d(Wn,Un,m),R.annotationPosition&&Wn.node().parentNode&&!_){var Gn=Pt,jn=Lt;if(m.standoff){var er=Math.sqrt(Math.pow(Pt-Ct,2)+Math.pow(Lt-Rt,2));Gn+=m.standoff*(Ct-Pt)/er,jn+=m.standoff*(Rt-Lt)/er}var Qn,vr,wr=An.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Ct-Gn)+","+(Rt-jn),transform:b(Gn,jn)}).style("stroke-width",dn+6+"px").call(a.stroke,"rgba(0,0,0,0)").call(a.fill,"rgba(0,0,0,0)");l.init({element:wr.node(),gd:y,prepFn:function(){var Sr=t.getTranslate(re);Qn=Sr.x,vr=Sr.y,S&&S.autorange&&q(S._name+".autorange",!0),O&&O.autorange&&q(O._name+".autorange",!0)},moveFn:function(Sr,dr){var Gr=hn(Qn,vr),Zt=Gr[0]+Sr,pn=Gr[1]+dr;re.call(t.setTranslate,Zt,pn),j("x",f(S,Sr,"x",P,m)),j("y",f(O,dr,"y",P,m)),m.axref===m.xref&&j("ax",f(S,Sr,"ax",P,m)),m.ayref===m.yref&&j("ay",f(O,dr,"ay",P,m)),An.attr("transform",b(Sr,dr)),G.attr({transform:"rotate("+Y+","+Zt+","+pn+")"})},doneFn:function(){v.call("_guiRelayout",y,X());var Sr=document.querySelector(".js-notes-box-panel");Sr&&Sr.redraw(Sr.selectedObj)}})}}};m.showarrow&&wt(0,0),J&&l.init({element:re.node(),gd:y,prepFn:function(){bt=G.attr("transform")},moveFn:function(St,vt){var Pt="pointer";if(m.showarrow)m.axref===m.xref?j("ax",f(S,St,"ax",P,m)):j("ax",m.ax+St),m.ayref===m.yref?j("ay",f(O,vt,"ay",P.w,m)):j("ay",m.ay+vt),wt(St,vt);else{if(_)return;var Lt,Ct;if(S)Lt=f(S,St,"x",P,m);else{var Rt=m._xsize/P.w,At=m.x+(m._xshift-m.xshift)/P.w-Rt/2;Lt=l.align(At+St/P.w,Rt,0,1,m.xanchor)}if(O)Ct=f(O,vt,"y",P,m);else{var Bt=m._ysize/P.h,nn=m.y-(m._yshift+m.yshift)/P.h-Bt/2;Ct=l.align(nn-vt/P.h,Bt,0,1,m.yanchor)}j("x",Lt),j("y",Ct),S&&O||(Pt=l.getCursor(S?.5:Lt,O?.5:Ct,m.xanchor,m.yanchor))}G.attr({transform:b(St,vt)+bt}),s(re,Pt)},clickFn:function(St,vt){m.captureevents&&y.emit("plotly_clickannotation",_e(vt))},doneFn:function(){s(re),v.call("_guiRelayout",y,X());var St=document.querySelector(".js-notes-box-panel");St&&St.redraw(St.selectedObj)}})}}}L.exports={draw:function(y){var m=y._fullLayout;m._infolayer.selectAll(".annotation").remove();for(var x=0;x<m.annotations.length;x++)m.annotations[x].visible&&g(y,x);return n.previousPromises(y)},drawOne:g,drawRaw:C}},33652:function(L,T,e){var k=e(33428),v=e(76308),n=e(72196),w=e(3400),b=w.strScale,c=w.strRotate,a=w.strTranslate;L.exports=function(t,o,i){var s,l,u,d,g=t.node(),f=n[i.arrowhead||0],C=n[i.startarrowhead||0],y=(i.arrowwidth||1)*(i.arrowsize||1),m=(i.arrowwidth||1)*(i.startarrowsize||1),x=o.indexOf("start")>=0,_=o.indexOf("end")>=0,S=f.backoff*y+i.standoff,O=C.backoff*m+i.startstandoff;if(g.nodeName==="line"){s={x:+t.attr("x1"),y:+t.attr("y1")},l={x:+t.attr("x2"),y:+t.attr("y2")};var h=s.x-l.x,M=s.y-l.y;if(d=(u=Math.atan2(M,h))+Math.PI,S&&O&&S+O>Math.sqrt(h*h+M*M))return void B();if(S){if(S*S>h*h+M*M)return void B();var N=S*Math.cos(u),P=S*Math.sin(u);l.x+=N,l.y+=P,t.attr({x2:l.x,y2:l.y})}if(O){if(O*O>h*h+M*M)return void B();var R=O*Math.cos(u),A=O*Math.sin(u);s.x-=R,s.y-=A,t.attr({x1:s.x,y1:s.y})}}else if(g.nodeName==="path"){var q=g.getTotalLength(),j="";if(q<S+O)return void B();var X=g.getPointAtLength(0),F=g.getPointAtLength(.1);u=Math.atan2(X.y-F.y,X.x-F.x),s=g.getPointAtLength(Math.min(O,q)),j="0px,"+O+"px,";var W=g.getPointAtLength(q),Y=g.getPointAtLength(q-.1);d=Math.atan2(W.y-Y.y,W.x-Y.x),l=g.getPointAtLength(Math.max(0,q-S)),j+=q-(j?O+S:S)+"px,"+q+"px",t.style("stroke-dasharray",j)}function B(){t.style("stroke-dasharray","0px,100px")}function G(J,se,re,ne){J.path&&(J.noRotate&&(re=0),k.select(g.parentNode).append("path").attr({class:t.attr("class"),d:J.path,transform:a(se.x,se.y)+c(180*re/Math.PI)+b(ne)}).style({fill:v.rgb(i.arrowcolor),"stroke-width":0}))}x&&G(C,s,u,m),_&&G(f,l,d,y)}},79180:function(L,T,e){var k=e(23816),v=e(42300);L.exports={moduleType:"component",name:"annotations",layoutAttributes:e(13916),supplyLayoutDefaults:e(45216),includeBasePlot:e(36632)("annotations"),calcAutorange:e(90272),draw:k.draw,drawOne:k.drawOne,drawRaw:k.drawRaw,hasClickToShow:v.hasClickToShow,onClick:v.onClick,convertCoords:e(26828)}},45899:function(L,T,e){var k=e(13916),v=e(67824).overrideAll,n=e(31780).templatedArray;L.exports=v(n("annotation",{visible:k.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:k.xanchor,xshift:k.xshift,yanchor:k.yanchor,yshift:k.yshift,text:k.text,textangle:k.textangle,font:k.font,width:k.width,height:k.height,opacity:k.opacity,align:k.align,valign:k.valign,bgcolor:k.bgcolor,bordercolor:k.bordercolor,borderpad:k.borderpad,borderwidth:k.borderwidth,showarrow:k.showarrow,arrowcolor:k.arrowcolor,arrowhead:k.arrowhead,startarrowhead:k.startarrowhead,arrowside:k.arrowside,arrowsize:k.arrowsize,startarrowsize:k.startarrowsize,arrowwidth:k.arrowwidth,standoff:k.standoff,startstandoff:k.startstandoff,hovertext:k.hovertext,hoverlabel:k.hoverlabel,captureevents:k.captureevents}),"calc","from-root")},42456:function(L,T,e){var k=e(3400),v=e(54460);function n(w,b){var c=b.fullSceneLayout.domain,a=b.fullLayout._size,t={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};w._xa={},k.extendFlat(w._xa,t),v.setConvert(w._xa),w._xa._offset=a.l+c.x[0]*a.w,w._xa.l2p=function(){return .5*(1+w._pdata[0]/w._pdata[3])*a.w*(c.x[1]-c.x[0])},w._ya={},k.extendFlat(w._ya,t),v.setConvert(w._ya),w._ya._offset=a.t+(1-c.y[1])*a.h,w._ya.l2p=function(){return .5*(1-w._pdata[1]/w._pdata[3])*a.h*(c.y[1]-c.y[0])}}L.exports=function(w){for(var b=w.fullSceneLayout.annotations,c=0;c<b.length;c++)n(b[c],w);w.fullLayout._infolayer.selectAll(".annotation-"+w.id).remove()}},52808:function(L,T,e){var k=e(3400),v=e(54460),n=e(51272),w=e(87192),b=e(45899);function c(a,t,o,i){function s(u,d){return k.coerce(a,t,b,u,d)}function l(u){var d=u+"axis",g={_fullLayout:{}};return g._fullLayout[d]=o[d],v.coercePosition(t,g,s,u,u,.5)}s("visible")&&(w(a,t,i.fullLayout,s),l("x"),l("y"),l("z"),k.noneOrAll(a,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",s("xanchor"),s("yanchor"),s("xshift"),s("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",s("ax",-10),s("ay",-30),k.noneOrAll(a,t,["ax","ay"])))}L.exports=function(a,t,o){n(a,t,{name:"annotations",handleItemDefaults:c,fullLayout:o.fullLayout})}},71836:function(L,T,e){var k=e(23816).drawRaw,v=e(94424),n=["x","y","z"];L.exports=function(w){for(var b=w.fullSceneLayout,c=w.dataScale,a=b.annotations,t=0;t<a.length;t++){for(var o=a[t],i=!1,s=0;s<3;s++){var l=n[s],u=o[l],d=b[l+"axis"].r2fraction(u);if(d<0||d>1){i=!0;break}}i?w.fullLayout._infolayer.select(".annotation-"+w.id+'[data-index="'+t+'"]').remove():(o._pdata=v(w.glplot.cameraParams,[b.xaxis.r2l(o.x)*c[0],b.yaxis.r2l(o.y)*c[1],b.zaxis.r2l(o.z)*c[2]]),k(w.graphDiv,o,t,w.id,o._xa,o._ya))}}},56864:function(L,T,e){var k=e(24040),v=e(3400);L.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:e(45899)}}},layoutAttributes:e(45899),handleDefaults:e(52808),includeBasePlot:function(n,w){var b=k.subplotsRegistry.gl3d;if(b)for(var c=b.attrRegex,a=Object.keys(n),t=0;t<a.length;t++){var o=a[t];c.test(o)&&(n[o].annotations||[]).length&&(v.pushUnique(w._basePlotModules,b),v.pushUnique(w._subplots.gl3d,o))}},convert:e(42456),draw:e(71836)}},54976:function(L,T,e){L.exports=e(38700),e(15168),e(67020),e(89792),e(55668),e(65168),e(2084),e(26368),e(24747),e(65616),e(30632),e(73040),e(1104),e(51456),e(4592),e(45348)},97776:function(L,T,e){var k=e(54976),v=e(3400),n=e(39032),w=n.EPOCHJD,b=n.ONEDAY,c={valType:"enumerated",values:v.sortObjectKeys(k.calendars),editType:"calc",dflt:"gregorian"},a=function(y,m,x,_){var S={};return S[x]=c,v.coerce(y,m,S,x,_)},t="##",o={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:t,w:t,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}},i={};function s(y){var m=i[y];return m||(i[y]=k.instance(y))}function l(y){return v.extendFlat({},c,{description:y})}function u(y){return"Sets the calendar system to use with `"+y+"` date data."}var d={xcalendar:l(u("x"))},g=v.extendFlat({},d,{ycalendar:l(u("y"))}),f=v.extendFlat({},g,{zcalendar:l(u("z"))}),C=l(["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(" "));L.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:g,bar:g,box:g,heatmap:g,contour:g,histogram:g,histogram2d:g,histogram2dcontour:g,scatter3d:f,surface:f,mesh3d:f,scattergl:g,ohlc:d,candlestick:d},layout:{calendar:l(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:C},yaxis:{calendar:C},scene:{xaxis:{calendar:C},yaxis:{calendar:C},zaxis:{calendar:C}},polar:{radialaxis:{calendar:C}}},transforms:{filter:{valuecalendar:l(["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:l(["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:c,handleDefaults:a,handleTraceDefaults:function(y,m,x,_){for(var S=0;S<x.length;S++)a(y,m,x[S]+"calendar",_.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:s,worldCalFmt:function(y,m,x){for(var _,S,O,h,M,N=Math.floor((m+.05)/b)+w,P=s(x).fromJD(N),R=0;(R=y.indexOf("%",R))!==-1;)(_=y.charAt(R+1))==="0"||_==="-"||_==="_"?(O=3,S=y.charAt(R+2),_==="_"&&(_="-")):(S=_,_="0",O=2),(h=o[S])?(M=h===t?t:P.formatDate(h[_]),y=y.substr(0,R)+M+y.substr(R+O),R+=M.length):R+=O;return y}}},22548:function(L,T){T.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],T.defaultLine="#444",T.lightLine="#eee",T.background="#fff",T.borderLine="#BEC8D9",T.lightFraction=90.9090909090909},76308:function(L,T,e){var k=e(49760),v=e(38248),n=e(38116).isTypedArray,w=L.exports={},b=e(22548);w.defaults=b.defaults;var c=w.defaultLine=b.defaultLine;w.lightLine=b.lightLine;var a=w.background=b.background;function t(o){if(v(o)||typeof o!="string")return o;var i=o.trim();if(i.substr(0,3)!=="rgb")return o;var s=i.match(/^rgba?\s*\(([^()]*)\)$/);if(!s)return o;var l=s[1].trim().split(/\s*[\s,]\s*/),u=i.charAt(3)==="a"&&l.length===4;if(!u&&l.length!==3)return o;for(var d=0;d<l.length;d++){if(!l[d].length||(l[d]=Number(l[d]),!(l[d]>=0)))return o;if(d===3)l[d]>1&&(l[d]=1);else if(l[d]>=1)return o}var g=Math.round(255*l[0])+", "+Math.round(255*l[1])+", "+Math.round(255*l[2]);return u?"rgba("+g+", "+l[3]+")":"rgb("+g+")"}w.tinyRGB=function(o){var i=o.toRgb();return"rgb("+Math.round(i.r)+", "+Math.round(i.g)+", "+Math.round(i.b)+")"},w.rgb=function(o){return w.tinyRGB(k(o))},w.opacity=function(o){return o?k(o).getAlpha():0},w.addOpacity=function(o,i){var s=k(o).toRgb();return"rgba("+Math.round(s.r)+", "+Math.round(s.g)+", "+Math.round(s.b)+", "+i+")"},w.combine=function(o,i){var s=k(o).toRgb();if(s.a===1)return k(o).toRgbString();var l=k(i||a).toRgb(),u=l.a===1?l:{r:255*(1-l.a)+l.r*l.a,g:255*(1-l.a)+l.g*l.a,b:255*(1-l.a)+l.b*l.a},d={r:u.r*(1-s.a)+s.r*s.a,g:u.g*(1-s.a)+s.g*s.a,b:u.b*(1-s.a)+s.b*s.a};return k(d).toRgbString()},w.contrast=function(o,i,s){var l=k(o);return l.getAlpha()!==1&&(l=k(w.combine(o,a))),(l.isDark()?i?l.lighten(i):a:s?l.darken(s):c).toString()},w.stroke=function(o,i){var s=k(i);o.style({stroke:w.tinyRGB(s),"stroke-opacity":s.getAlpha()})},w.fill=function(o,i){var s=k(i);o.style({fill:w.tinyRGB(s),"fill-opacity":s.getAlpha()})},w.clean=function(o){if(o&&typeof o=="object"){var i,s,l,u,d=Object.keys(o);for(i=0;i<d.length;i++)if(u=o[l=d[i]],l.substr(l.length-5)==="color")if(Array.isArray(u))for(s=0;s<u.length;s++)u[s]=t(u[s]);else o[l]=t(u);else if(l.substr(l.length-10)==="colorscale"&&Array.isArray(u))for(s=0;s<u.length;s++)Array.isArray(u[s])&&(u[s][1]=t(u[s][1]));else if(Array.isArray(u)){var g=u[0];if(!Array.isArray(g)&&g&&typeof g=="object")for(s=0;s<u.length;s++)w.clean(u[s])}else u&&typeof u=="object"&&!n(u)&&w.clean(u)}}},42996:function(L,T,e){var k=e(94724),v=e(25376),n=e(92880).extendFlat,w=e(67824).overrideAll;L.exports=w({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:k.linecolor,outlinewidth:k.linewidth,bordercolor:k.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:k.minor.tickmode,nticks:k.nticks,tick0:k.tick0,dtick:k.dtick,tickvals:k.tickvals,ticktext:k.ticktext,ticks:n({},k.ticks,{dflt:""}),ticklabeloverflow:n({},k.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:k.ticklen,tickwidth:k.tickwidth,tickcolor:k.tickcolor,ticklabelstep:k.ticklabelstep,showticklabels:k.showticklabels,labelalias:k.labelalias,tickfont:v({}),tickangle:k.tickangle,tickformat:k.tickformat,tickformatstops:k.tickformatstops,tickprefix:k.tickprefix,showtickprefix:k.showtickprefix,ticksuffix:k.ticksuffix,showticksuffix:k.showticksuffix,separatethousands:k.separatethousands,exponentformat:k.exponentformat,minexponent:k.minexponent,showexponent:k.showexponent,title:{text:{valType:"string"},font:v({}),side:{valType:"enumerated",values:["right","top","bottom"]}},_deprecated:{title:{valType:"string"},titlefont:v({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},63964:function(L){L.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"}}},64013:function(L,T,e){var k=e(3400),v=e(31780),n=e(26332),w=e(25404),b=e(95936),c=e(42568),a=e(42996);L.exports=function(t,o,i){var s=v.newContainer(o,"colorbar"),l=t.colorbar||{};function u(j,X){return k.coerce(l,s,a,j,X)}var d=i.margin||{t:0,b:0,l:0,r:0},g=i.width-d.l-d.r,f=i.height-d.t-d.b,C=u("orientation")==="v",y=u("thicknessmode");u("thickness",y==="fraction"?30/(C?g:f):30);var m=u("lenmode");u("len",m==="fraction"?1:C?f:g);var x,_,S,O=u("yref")==="paper",h=u("xref")==="paper",M="left";C?(S="middle",M=h?"left":"right",x=h?1.02:1,_=.5):(S=O?"bottom":"top",M="center",x=.5,_=O?1.02:1),k.coerce(l,s,{x:{valType:"number",min:h?-2:0,max:h?3:1,dflt:x}},"x"),k.coerce(l,s,{y:{valType:"number",min:O?-2:0,max:O?3:1,dflt:_}},"y"),u("xanchor",M),u("xpad"),u("yanchor",S),u("ypad"),k.noneOrAll(l,s,["x","y"]),u("outlinecolor"),u("outlinewidth"),u("bordercolor"),u("borderwidth"),u("bgcolor");var N=k.coerce(l,s,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:C?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");u("ticklabeloverflow",N.indexOf("inside")!==-1?"hide past domain":"hide past div"),n(l,s,u,"linear");var P=i.font,R={noAutotickangles:!0,outerTicks:!1,font:P};N.indexOf("inside")!==-1&&(R.bgColor="black"),c(l,s,u,"linear",R),b(l,s,u,"linear",R),w(l,s,u,"linear",R),u("title.text",i._dfltTitle.colorbar);var A=s.showticklabels?s.tickfont:P,q=k.extendFlat({},A,{color:P.color,size:k.bigFont(A.size)});k.coerceFont(u,"title.font",q),u("title.side",C?"top":"right")}},37848:function(L,T,e){var k=e(33428),v=e(49760),n=e(7316),w=e(24040),b=e(54460),c=e(86476),a=e(3400),t=a.strTranslate,o=e(92880).extendFlat,i=e(93972),s=e(43616),l=e(76308),u=e(81668),d=e(72736),g=e(94288).flipScale,f=e(28336),C=e(37668),y=e(94724),m=e(84284),x=m.LINE_SPACING,_=m.FROM_TL,S=m.FROM_BR,O=e(63964).cn;L.exports={draw:function(h){var M=h._fullLayout._infolayer.selectAll("g."+O.colorbar).data(function(N){var P,R,A,q,j=N._fullLayout,X=N.calcdata,F=[];function W(ce){return o(ce,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function Y(){typeof q.calc=="function"?q.calc(N,A,P):(P._fillgradient=R.reversescale?g(R.colorscale):R.colorscale,P._zrange=[R[q.min],R[q.max]])}for(var B=0;B<X.length;B++){var G=X[B];if((A=G[0].trace)._module){var J=A._module.colorbar;if(A.visible===!0&&J)for(var se=Array.isArray(J),re=se?J:[J],ne=0;ne<re.length;ne++){var $=(q=re[ne]).container;(R=$?A[$]:A)&&R.showscale&&((P=W(R.colorbar))._id="cb"+A.uid+(se&&$?"-"+$:""),P._traceIndex=A.index,P._propPrefix=($?$+".":"")+"colorbar.",P._meta=A._meta,Y(),F.push(P))}}}for(var te in j._colorAxes)if((R=j[te]).showscale){var ae=j._colorAxes[te];(P=W(R.colorbar))._id="cb"+te,P._propPrefix=te+".colorbar.",P._meta=j._meta,q={min:"cmin",max:"cmax"},ae[0]!=="heatmap"&&(A=ae[1],q.calc=A._module.colorbar.calc),Y(),F.push(P)}return F}(h),function(N){return N._id});M.enter().append("g").attr("class",function(N){return N._id}).classed(O.colorbar,!0),M.each(function(N){var P=k.select(this);a.ensureSingle(P,"rect",O.cbbg),a.ensureSingle(P,"g",O.cbfills),a.ensureSingle(P,"g",O.cblines),a.ensureSingle(P,"g",O.cbaxis,function(A){A.classed(O.crisp,!0)}),a.ensureSingle(P,"g",O.cbtitleunshift,function(A){A.append("g").classed(O.cbtitle,!0)}),a.ensureSingle(P,"rect",O.cboutline);var R=function(A,q,j){var X=q.orientation==="v",F=q.len,W=q.lenmode,Y=q.thickness,B=q.thicknessmode,G=q.outlinewidth,J=q.borderwidth,se=q.bgcolor,re=q.xanchor,ne=q.yanchor,$=q.xpad,te=q.ypad,ae=q.x,ce=X?q.y:1-q.y,ue=q.yref==="paper",de=q.xref==="paper",me=j._fullLayout,be=me._size,_e=q._fillcolor,we=q._line,Ce=q.title,Se=Ce.side,Pe=q._zrange||k.extent((typeof _e=="function"?_e:we.color).domain()),Ne=typeof we.color=="function"?we.color:function(){return we.color},Oe=typeof _e=="function"?_e:function(){return _e},pe=q._levels,fe=function(Xe,et,ht){var dt,De,Ge=et._levels,pt=[],nt=[],bt=Ge.end+Ge.size/100,wt=Ge.size,St=1.001*ht[0]-.001*ht[1],vt=1.001*ht[1]-.001*ht[0];for(De=0;De<1e5&&(dt=Ge.start+De*wt,!(wt>0?dt>=bt:dt<=bt));De++)dt>St&&dt<vt&&pt.push(dt);if(et._fillgradient)nt=[0];else if(typeof et._fillcolor=="function"){var Pt=et._filllevels;if(Pt)for(bt=Pt.end+Pt.size/100,wt=Pt.size,De=0;De<1e5&&(dt=Pt.start+De*wt,!(wt>0?dt>=bt:dt<=bt));De++)dt>ht[0]&&dt<ht[1]&&nt.push(dt);else(nt=pt.map(function(Lt){return Lt-Ge.size/2})).push(nt[nt.length-1]+Ge.size)}else et._fillcolor&&typeof et._fillcolor=="string"&&(nt=[0]);return Ge.size<0&&(pt.reverse(),nt.reverse()),{line:pt,fill:nt}}(0,q,Pe),xe=fe.fill,ze=fe.line,Le=Math.round(Y*(B==="fraction"?X?be.w:be.h:1)),Ue=Le/(X?be.w:be.h),Re=Math.round(F*(W==="fraction"?X?be.h:be.w:1)),Fe=Re/(X?be.h:be.w),ve=de?be.w:j._fullLayout.width,ke=ue?be.h:j._fullLayout.height,Ee=Math.round(X?ae*ve+$:ce*ke+te),je={center:.5,right:1}[re]||0,Be={top:1,middle:.5}[ne]||0,Ie=X?ae-je*Ue:ce-Be*Ue,Ze=X?ce-Be*Fe:ae-je*Fe,He=Math.round(X?ke*(1-Ze):ve*Ze);q._lenFrac=Fe,q._thickFrac=Ue,q._uFrac=Ie,q._vFrac=Ze;var at=q._axis=function(Xe,et,ht){var dt=Xe._fullLayout,De=et.orientation==="v",Ge={type:"linear",range:ht,tickmode:et.tickmode,nticks:et.nticks,tick0:et.tick0,dtick:et.dtick,tickvals:et.tickvals,ticktext:et.ticktext,ticks:et.ticks,ticklen:et.ticklen,tickwidth:et.tickwidth,tickcolor:et.tickcolor,showticklabels:et.showticklabels,labelalias:et.labelalias,ticklabelposition:et.ticklabelposition,ticklabeloverflow:et.ticklabeloverflow,ticklabelstep:et.ticklabelstep,tickfont:et.tickfont,tickangle:et.tickangle,tickformat:et.tickformat,exponentformat:et.exponentformat,minexponent:et.minexponent,separatethousands:et.separatethousands,showexponent:et.showexponent,showtickprefix:et.showtickprefix,tickprefix:et.tickprefix,showticksuffix:et.showticksuffix,ticksuffix:et.ticksuffix,title:et.title,showline:!0,anchor:"free",side:De?"right":"bottom",position:1},pt=De?"y":"x",nt={type:"linear",_id:pt+et._id},bt={letter:pt,font:dt.font,noAutotickangles:pt==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:dt.calendar};function wt(St,vt){return a.coerce(Ge,nt,y,St,vt)}return f(Ge,nt,wt,bt,dt),C(Ge,nt,wt,bt),nt}(j,q,Pe);at.position=Ue+(X?ae+$/be.w:ce+te/be.h);var ft=["top","bottom"].indexOf(Se)!==-1;if(X&&ft&&(at.title.side=Se,at.titlex=ae+$/be.w,at.titley=Ze+(Ce.side==="top"?Fe-te/be.h:te/be.h)),X||ft||(at.title.side=Se,at.titley=ce+te/be.h,at.titlex=Ze+$/be.w),we.color&&q.tickmode==="auto"){at.tickmode="linear",at.tick0=pe.start;var ut=pe.size,_t=a.constrain(Re/50,4,15)+1,Nt=(Pe[1]-Pe[0])/((q.nticks||_t)*ut);if(Nt>1){var Tt=Math.pow(10,Math.floor(Math.log(Nt)/Math.LN10));ut*=Tt*a.roundUp(Nt/Tt,[2,5,10]),(Math.abs(pe.start)/pe.size+1e-6)%1<2e-6&&(at.tick0=0)}at.dtick=ut}at.domain=X?[Ze+te/be.h,Ze+Fe-te/be.h]:[Ze+$/be.w,Ze+Fe-$/be.w],at.setScale(),A.attr("transform",t(Math.round(be.l),Math.round(be.t)));var st,lt=A.select("."+O.cbtitleunshift).attr("transform",t(-Math.round(be.l),-Math.round(be.t))),Vt=at.ticklabelposition,jt=at.title.font.size,Kt=A.select("."+O.cbaxis),It=0,$e=0;function tt(Xe,et){var ht={propContainer:at,propName:q._propPrefix+"title",traceIndex:q._traceIndex,_meta:q._meta,placeholder:me._dfltTitle.colorbar,containerGroup:A.select("."+O.cbtitle)},dt=Xe.charAt(0)==="h"?Xe.substr(1):"h"+Xe;A.selectAll("."+dt+",."+dt+"-math-group").remove(),u.draw(j,Xe,o(ht,et||{}))}return a.syncOrAsync([n.previousPromises,function(){var Xe,et;(X&&ft||!X&&!ft)&&(Se==="top"&&(Xe=$+be.l+ve*ae,et=te+be.t+ke*(1-Ze-Fe)+3+.75*jt),Se==="bottom"&&(Xe=$+be.l+ve*ae,et=te+be.t+ke*(1-Ze)-3-.25*jt),Se==="right"&&(et=te+be.t+ke*ce+3+.75*jt,Xe=$+be.l+ve*Ze),tt(at._id+"title",{attributes:{x:Xe,y:et,"text-anchor":X?"start":"middle"}}))},function(){if(!X&&!ft||X&&ft){var Xe,et=A.select("."+O.cbtitle),ht=et.select("text"),dt=[-G/2,G/2],De=et.select(".h"+at._id+"title-math-group").node(),Ge=15.6;if(ht.node()&&(Ge=parseInt(ht.node().style.fontSize,10)*x),De?(Xe=s.bBox(De),$e=Xe.width,(It=Xe.height)>Ge&&(dt[1]-=(It-Ge)/2)):ht.node()&&!ht.classed(O.jsPlaceholder)&&(Xe=s.bBox(ht.node()),$e=Xe.width,It=Xe.height),X){if(It){if(It+=5,Se==="top")at.domain[1]-=It/be.h,dt[1]*=-1;else{at.domain[0]+=It/be.h;var pt=d.lineCount(ht);dt[1]+=(1-pt)*Ge}et.attr("transform",t(dt[0],dt[1])),at.setScale()}}else $e&&(Se==="right"&&(at.domain[0]+=($e+jt/2)/be.w),et.attr("transform",t(dt[0],dt[1])),at.setScale())}A.selectAll("."+O.cbfills+",."+O.cblines).attr("transform",X?t(0,Math.round(be.h*(1-at.domain[1]))):t(Math.round(be.w*at.domain[0]),0)),Kt.attr("transform",X?t(0,Math.round(-be.t)):t(Math.round(-be.l),0));var nt=A.select("."+O.cbfills).selectAll("rect."+O.cbfill).attr("style","").data(xe);nt.enter().append("rect").classed(O.cbfill,!0).attr("style",""),nt.exit().remove();var bt=Pe.map(at.c2p).map(Math.round).sort(function(Lt,Ct){return Lt-Ct});nt.each(function(Lt,Ct){var Rt=[Ct===0?Pe[0]:(xe[Ct]+xe[Ct-1])/2,Ct===xe.length-1?Pe[1]:(xe[Ct]+xe[Ct+1])/2].map(at.c2p).map(Math.round);X&&(Rt[1]=a.constrain(Rt[1]+(Rt[1]>Rt[0])?1:-1,bt[0],bt[1]));var At=k.select(this).attr(X?"x":"y",Ee).attr(X?"y":"x",k.min(Rt)).attr(X?"width":"height",Math.max(Le,2)).attr(X?"height":"width",Math.max(k.max(Rt)-k.min(Rt),2));if(q._fillgradient)s.gradient(At,j,q._id,X?"vertical":"horizontalreversed",q._fillgradient,"fill");else{var Bt=Oe(Lt).replace("e-","");At.attr("fill",v(Bt).toHexString())}});var wt=A.select("."+O.cblines).selectAll("path."+O.cbline).data(we.color&&we.width?ze:[]);wt.enter().append("path").classed(O.cbline,!0),wt.exit().remove(),wt.each(function(Lt){var Ct=Ee,Rt=Math.round(at.c2p(Lt))+we.width/2%1;k.select(this).attr("d","M"+(X?Ct+","+Rt:Rt+","+Ct)+(X?"h":"v")+Le).call(s.lineGroupStyle,we.width,Ne(Lt),we.dash)}),Kt.selectAll("g."+at._id+"tick,path").remove();var St=Ee+Le+(G||0)/2-(q.ticks==="outside"?1:0),vt=b.calcTicks(at),Pt=b.getTickSigns(at)[2];return b.drawTicks(j,at,{vals:at.ticks==="inside"?b.clipEnds(at,vt):vt,layer:Kt,path:b.makeTickPath(at,St,Pt),transFn:b.makeTransTickFn(at)}),b.drawLabels(j,at,{vals:vt,layer:Kt,transFn:b.makeTransTickLabelFn(at),labelFns:b.makeLabelFns(at,St)})},function(){if(X&&!ft||!X&&ft){var Xe,et,ht=at.position||0,dt=at._offset+at._length/2;if(Se==="right")et=dt,Xe=be.l+ve*ht+10+jt*(at.showticklabels?1:.5);else if(Xe=dt,Se==="bottom"&&(et=be.t+ke*ht+10+(Vt.indexOf("inside")===-1?at.tickfont.size:0)+(at.ticks!=="intside"&&q.ticklen||0)),Se==="top"){var De=Ce.text.split("<br>").length;et=be.t+ke*ht+10-Le-x*jt*De}tt((X?"h":"v")+at._id+"title",{avoid:{selection:k.select(j).selectAll("g."+at._id+"tick"),side:Se,offsetTop:X?0:be.t,offsetLeft:X?be.l:0,maxShift:X?me.width:me.height},attributes:{x:Xe,y:et,"text-anchor":"middle"},transform:{rotate:X?-90:0,offset:0}})}},n.previousPromises,function(){var Xe,et=Le+G/2;Vt.indexOf("inside")===-1&&(Xe=s.bBox(Kt.node()),et+=X?Xe.width:Xe.height),st=lt.select("text");var ht=0,dt=X&&Se==="top",De=!X&&Se==="right",Ge=0;if(st.node()&&!st.classed(O.jsPlaceholder)){var pt,nt=lt.select(".h"+at._id+"title-math-group").node();nt&&(X&&ft||!X&&!ft)?(ht=(Xe=s.bBox(nt)).width,pt=Xe.height):(ht=(Xe=s.bBox(lt.node())).right-be.l-(X?Ee:He),pt=Xe.bottom-be.t-(X?He:Ee),X||Se!=="top"||(et+=Xe.height,Ge=Xe.height)),De&&(st.attr("transform",t(ht/2+jt/2,0)),ht*=2),et=Math.max(et,X?ht:pt)}var bt=2*(X?$:te)+et+J+G/2,wt=0;!X&&Ce.text&&ne==="bottom"&&ce<=0&&(bt+=wt=bt/2,Ge+=wt),me._hColorbarMoveTitle=wt,me._hColorbarMoveCBTitle=Ge;var St=J+G,vt=(X?Ee:He)-St/2-(X?$:0),Pt=(X?He:Ee)-(X?Re:te+Ge-wt);A.select("."+O.cbbg).attr("x",vt).attr("y",Pt).attr(X?"width":"height",Math.max(bt-wt,2)).attr(X?"height":"width",Math.max(Re+St,2)).call(l.fill,se).call(l.stroke,q.bordercolor).style("stroke-width",J);var Lt=De?Math.max(ht-10,0):0;A.selectAll("."+O.cboutline).attr("x",(X?Ee:He+$)+Lt).attr("y",(X?He+te-Re:Ee)+(dt?It:0)).attr(X?"width":"height",Math.max(Le,2)).attr(X?"height":"width",Math.max(Re-(X?2*te+It:2*$+Lt),2)).call(l.stroke,q.outlinecolor).style({fill:"none","stroke-width":G});var Ct=X?je*bt:0,Rt=X?0:(1-Be)*bt-Ge;if(Ct=de?be.l-Ct:-Ct,Rt=ue?be.t-Rt:-Rt,A.attr("transform",t(Ct,Rt)),!X&&(J||v(se).getAlpha()&&!v.equals(me.paper_bgcolor,se))){var At=Kt.selectAll("text"),Bt=At[0].length,nn=A.select("."+O.cbbg).node(),hn=s.bBox(nn),Ht=s.getTranslate(A);At.each(function(Un,An){var Wn=Bt-1;if(An===0||An===Wn){var Gn,jn=s.bBox(this),er=s.getTranslate(this);if(An===Wn){var Qn=jn.right+er.x;(Gn=hn.right+Ht.x+He-J-2+ae-Qn)>0&&(Gn=0)}else if(An===0){var vr=jn.left+er.x;(Gn=hn.left+Ht.x+He+J+2-vr)<0&&(Gn=0)}Gn&&(Bt<3?this.setAttribute("transform","translate("+Gn+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Qt={},un=_[re],In=S[re],zn=_[ne],wn=S[ne],rn=bt-Le;X?(W==="pixels"?(Qt.y=ce,Qt.t=Re*zn,Qt.b=Re*wn):(Qt.t=Qt.b=0,Qt.yt=ce+F*zn,Qt.yb=ce-F*wn),B==="pixels"?(Qt.x=ae,Qt.l=bt*un,Qt.r=bt*In):(Qt.l=rn*un,Qt.r=rn*In,Qt.xl=ae-Y*un,Qt.xr=ae+Y*In)):(W==="pixels"?(Qt.x=ae,Qt.l=Re*un,Qt.r=Re*In):(Qt.l=Qt.r=0,Qt.xl=ae+F*un,Qt.xr=ae-F*In),B==="pixels"?(Qt.y=1-ce,Qt.t=bt*zn,Qt.b=bt*wn):(Qt.t=rn*zn,Qt.b=rn*wn,Qt.yt=ce-Y*zn,Qt.yb=ce+Y*wn));var vn=q.y<.5?"b":"t",dn=q.x<.5?"l":"r";j._fullLayout._reservedMargin[q._id]={};var _n={r:me.width-vt-Ct,l:vt+Qt.r,b:me.height-Pt-Rt,t:Pt+Qt.b};de&&ue?n.autoMargin(j,q._id,Qt):de?j._fullLayout._reservedMargin[q._id][vn]=_n[vn]:ue||X?j._fullLayout._reservedMargin[q._id][dn]=_n[dn]:j._fullLayout._reservedMargin[q._id][vn]=_n[vn]}],j)}(P,N,h);R&&R.then&&(h._promises||[]).push(R),h._context.edits.colorbarPosition&&function(A,q,j){var X,F,W,Y=q.orientation==="v",B=j._fullLayout._size;c.init({element:A.node(),gd:j,prepFn:function(){X=A.attr("transform"),i(A)},moveFn:function(G,J){A.attr("transform",X+t(G,J)),F=c.align((Y?q._uFrac:q._vFrac)+G/B.w,Y?q._thickFrac:q._lenFrac,0,1,q.xanchor),W=c.align((Y?q._vFrac:1-q._uFrac)-J/B.h,Y?q._lenFrac:q._thickFrac,0,1,q.yanchor);var se=c.getCursor(F,W,q.xanchor,q.yanchor);i(A,se)},doneFn:function(){if(i(A),F!==void 0&&W!==void 0){var G={};G[q._propPrefix+"x"]=F,G[q._propPrefix+"y"]=W,q._traceIndex!==void 0?w.call("_guiRestyle",j,G,q._traceIndex):w.call("_guiRelayout",j,G)}}})}(P,N,h)}),M.exit().each(function(N){n.autoMargin(h,N._id)}).remove(),M.order()}}},90553:function(L,T,e){var k=e(3400);L.exports=function(v){return k.isPlainObject(v.colorbar)}},55080:function(L,T,e){L.exports={moduleType:"component",name:"colorbar",attributes:e(42996),supplyDefaults:e(64013),draw:e(37848).draw,hasColorbar:e(90553)}},49084:function(L,T,e){var k=e(42996),v=e(53756).counter,n=e(95376),w=e(88304).scales;function b(c){return"`"+c+"`"}n(w),L.exports=function(c,a){c=c||"";var t,o=(a=a||{}).cLetter||"c",i=("onlyIfNumerical"in a&&a.onlyIfNumerical,"noScale"in a?a.noScale:c==="marker.line"),s="showScaleDflt"in a?a.showScaleDflt:o==="z",l=typeof a.colorscaleDflt=="string"?w[a.colorscaleDflt]:null,u=a.editTypeOverride||"",d=c?c+".":"";"colorAttr"in a?(t=a.colorAttr,a.colorAttr):b(d+(t={z:"z",c:"color"}[o]));var g=o+"auto",f=o+"min",C=o+"max",y=o+"mid",m={};m[f]=m[C]=void 0;var x={};x[g]=!1;var _={};return t==="color"&&(_.color={valType:"color",arrayOk:!0,editType:u||"style"},a.anim&&(_.color.anim=!0)),_[g]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:m},_[f]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:x},_[C]={valType:"number",dflt:null,editType:u||"plot",impliedEdits:x},_[y]={valType:"number",dflt:null,editType:"calc",impliedEdits:m},_.colorscale={valType:"colorscale",editType:"calc",dflt:l,impliedEdits:{autocolorscale:!1}},_.autocolorscale={valType:"boolean",dflt:a.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},_.reversescale={valType:"boolean",dflt:!1,editType:"plot"},i||(_.showscale={valType:"boolean",dflt:s,editType:"calc"},_.colorbar=k),a.noColorAxis||(_.coloraxis={valType:"subplotid",regex:v("coloraxis"),dflt:null,editType:"calc"}),_}},47128:function(L,T,e){var k=e(38248),v=e(3400),n=e(94288).extractOpts;L.exports=function(w,b,c){var a,t=w._fullLayout,o=c.vals,i=c.containerStr,s=i?v.nestedProperty(b,i).get():b,l=n(s),u=l.auto!==!1,d=l.min,g=l.max,f=l.mid,C=function(){return v.aggNums(Math.min,null,o)},y=function(){return v.aggNums(Math.max,null,o)};d===void 0?d=C():u&&(d=s._colorAx&&k(d)?Math.min(d,C()):C()),g===void 0?g=y():u&&(g=s._colorAx&&k(g)?Math.max(g,y()):y()),u&&f!==void 0&&(g-f>f-d?d=f-(g-f):g-f<f-d&&(g=f+(f-d))),d===g&&(d-=.5,g+=.5),l._sync("min",d),l._sync("max",g),l.autocolorscale&&(a=d*g<0?t.colorscale.diverging:d>=0?t.colorscale.sequential:t.colorscale.sequentialminus,l._sync("colorscale",a))}},95504:function(L,T,e){var k=e(3400),v=e(94288).hasColorscale,n=e(94288).extractOpts;L.exports=function(w,b){function c(u,d){var g=u["_"+d];g!==void 0&&(u[d]=g)}function a(u,d){var g=d.container?k.nestedProperty(u,d.container).get():u;if(g)if(g.coloraxis)g._colorAx=b[g.coloraxis];else{var f=n(g),C=f.auto;(C||f.min===void 0)&&c(g,d.min),(C||f.max===void 0)&&c(g,d.max),f.autocolorscale&&c(g,"colorscale")}}for(var t=0;t<w.length;t++){var o=w[t],i=o._module.colorbar;if(i)if(Array.isArray(i))for(var s=0;s<i.length;s++)a(o,i[s]);else a(o,i);v(o,"marker.line")&&a(o,{container:"marker.line",min:"cmin",max:"cmax"})}for(var l in b._colorAxes)a(b[l],{min:"cmin",max:"cmax"})}},27260:function(L,T,e){var k=e(38248),v=e(3400),n=e(90553),w=e(64013),b=e(88304).isValid,c=e(24040).traceIs;function a(t,o){var i=o.slice(0,o.length-1);return o?v.nestedProperty(t,i).get()||{}:t}L.exports=function t(o,i,s,l,u){var d=u.prefix,g=u.cLetter,f="_module"in i,C=a(o,d),y=a(i,d),m=a(i._template||{},d)||{},x=function(){return delete o.coloraxis,delete i.coloraxis,t(o,i,s,l,u)};if(f){var _=s._colorAxes||{},S=l(d+"coloraxis");if(S){var O=c(i,"contour")&&v.nestedProperty(i,"contours.coloring").get()||"heatmap",h=_[S];return void(h?(h[2].push(x),h[0]!==O&&(h[0]=!1,v.warn(["Ignoring coloraxis:",S,"setting","as it is linked to incompatible colorscales."].join(" ")))):_[S]=[O,i,[x]])}}var M=C[g+"min"],N=C[g+"max"],P=k(M)&&k(N)&&M<N;l(d+g+"auto",!P)?l(d+g+"mid"):(l(d+g+"min"),l(d+g+"max"));var R,A,q=C.colorscale,j=m.colorscale;q!==void 0&&(R=!b(q)),j!==void 0&&(R=!b(j)),l(d+"autocolorscale",R),l(d+"colorscale"),l(d+"reversescale"),d!=="marker.line."&&(d&&f&&(A=n(C)),l(d+"showscale",A)&&(d&&m&&(y._template=m),w(C,y,s)))}},94288:function(L,T,e){var k=e(33428),v=e(49760),n=e(38248),w=e(3400),b=e(76308),c=e(88304).isValid,a=["showscale","autocolorscale","colorscale","reversescale","colorbar"],t=["min","max","mid","auto"];function o(d){var g,f,C,y=d._colorAx,m=y||d,x={};for(f=0;f<a.length;f++)x[C=a[f]]=m[C];if(y)for(g="c",f=0;f<t.length;f++)x[C=t[f]]=m["c"+C];else{var _;for(f=0;f<t.length;f++)((_="c"+(C=t[f]))in m||(_="z"+C)in m)&&(x[C]=m[_]);g=_.charAt(0)}return x._sync=function(S,O){var h=t.indexOf(S)!==-1?g+S:S;m[h]=m["_"+h]=O},x}function i(d){for(var g=o(d),f=g.min,C=g.max,y=g.reversescale?s(g.colorscale):g.colorscale,m=y.length,x=new Array(m),_=new Array(m),S=0;S<m;S++){var O=y[S];x[S]=f+O[0]*(C-f),_[S]=O[1]}return{domain:x,range:_}}function s(d){for(var g=d.length,f=new Array(g),C=g-1,y=0;C>=0;C--,y++){var m=d[C];f[y]=[1-m[0],m[1]]}return f}function l(d,g){g=g||{};for(var f=d.domain,C=d.range,y=C.length,m=new Array(y),x=0;x<y;x++){var _=v(C[x]).toRgb();m[x]=[_.r,_.g,_.b,_.a]}var S,O=k.scale.linear().domain(f).range(m).clamp(!0),h=g.noNumericCheck,M=g.returnArray;return(S=h&&M?O:h?function(N){return u(O(N))}:M?function(N){return n(N)?O(N):v(N).isValid()?N:b.defaultLine}:function(N){return n(N)?u(O(N)):v(N).isValid()?N:b.defaultLine}).domain=O.domain,S.range=function(){return C},S}function u(d){var g={r:d[0],g:d[1],b:d[2],a:d[3]};return v(g).toRgbString()}L.exports={hasColorscale:function(d,g,f){var C=g?w.nestedProperty(d,g).get()||{}:d,y=C[f||"color"];y&&y._inputArray&&(y=y._inputArray);var m=!1;if(w.isArrayOrTypedArray(y)){for(var x=0;x<y.length;x++)if(n(y[x])){m=!0;break}}return w.isPlainObject(C)&&(m||C.showscale===!0||n(C.cmin)&&n(C.cmax)||c(C.colorscale)||w.isPlainObject(C.colorbar))},extractOpts:o,extractScale:i,flipScale:s,makeColorScaleFunc:l,makeColorScaleFuncFromTrace:function(d,g){return l(i(d),g)}}},8932:function(L,T,e){var k=e(88304),v=e(94288);L.exports={moduleType:"component",name:"colorscale",attributes:e(49084),layoutAttributes:e(92332),supplyLayoutDefaults:e(51608),handleDefaults:e(27260),crossTraceDefaults:e(95504),calc:e(47128),scales:k.scales,defaultScale:k.defaultScale,getScale:k.get,isValidScale:k.isValid,hasColorscale:v.hasColorscale,extractOpts:v.extractOpts,extractScale:v.extractScale,flipScale:v.flipScale,makeColorScaleFunc:v.makeColorScaleFunc,makeColorScaleFuncFromTrace:v.makeColorScaleFuncFromTrace}},92332:function(L,T,e){var k=e(92880).extendFlat,v=e(49084),n=e(88304).scales;L.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:k({_isSubplotObj:!0,editType:"calc"},v("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},51608:function(L,T,e){var k=e(3400),v=e(31780),n=e(92332),w=e(27260);L.exports=function(b,c){function a(g,f){return k.coerce(b,c,n,g,f)}a("colorscale.sequential"),a("colorscale.sequentialminus"),a("colorscale.diverging");var t,o,i=c._colorAxes;function s(g,f){return k.coerce(t,o,n.coloraxis,g,f)}for(var l in i){var u=i[l];if(u[0])t=b[l]||{},(o=v.newContainer(c,l,"coloraxis"))._name=l,w(t,o,c,s,{prefix:"",cLetter:"c"});else{for(var d=0;d<u[2].length;d++)u[2][d]();delete c._colorAxes[l]}}}},88304:function(L,T,e){var k=e(49760),v={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=v.RdBu;function w(b){var c=0;if(!Array.isArray(b)||b.length<2||!b[0]||!b[b.length-1]||+b[0][0]!=0||+b[b.length-1][0]!=1)return!1;for(var a=0;a<b.length;a++){var t=b[a];if(t.length!==2||+t[0]<c||!k(t[1]).isValid())return!1;c=+t[0]}return!0}L.exports={scales:v,defaultScale:n,get:function(b,c){if(c||(c=n),!b)return c;function a(){try{b=v[b]||JSON.parse(b)}catch{b=c}}return typeof b=="string"&&(a(),typeof b=="string"&&a()),w(b)?b:c},isValid:function(b){return v[b]!==void 0||w(b)}}},78316:function(L){L.exports=function(T,e,k,v,n){var w=(T-k)/(v-k),b=w+e/(v-k),c=(w+b)/2;return n==="left"||n==="bottom"?w:n==="center"||n==="middle"?c:n==="right"||n==="top"?b:w<.6666666666666666-c?w:b>1.3333333333333333-c?b:c}},67416:function(L,T,e){var k=e(3400),v=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];L.exports=function(n,w,b,c){return n=b==="left"?0:b==="center"?1:b==="right"?2:k.constrain(Math.floor(3*n),0,2),w=c==="bottom"?0:c==="middle"?1:c==="top"?2:k.constrain(Math.floor(3*w),0,2),v[w][n]}},72760:function(L,T){T.selectMode=function(e){return e==="lasso"||e==="select"},T.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"},T.openMode=function(e){return e==="drawline"||e==="drawopenpath"},T.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"},T.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"},T.selectingOrDrawing=function(e){return T.freeMode(e)||T.rectMode(e)}},86476:function(L,T,e){var k=e(29128),v=e(52264),n=e(89184),w=e(3400).removeElement,b=e(33816),c=L.exports={};c.align=e(78316),c.getCursor=e(67416);var a=e(2616);function t(){var i=document.createElement("div");i.className="dragcover";var s=i.style;return s.position="fixed",s.left=0,s.right=0,s.top=0,s.bottom=0,s.zIndex=999999999,s.background="none",document.body.appendChild(i),i}function o(i){return k(i.changedTouches?i.changedTouches[0]:i,document.body)}c.unhover=a.wrapped,c.unhoverRaw=a.raw,c.init=function(i){var s,l,u,d,g,f,C,y,m=i.gd,x=1,_=m._context.doubleClickDelay,S=i.element;m._mouseDownTime||(m._mouseDownTime=0),S.style.pointerEvents="all",S.onmousedown=h,n?(S._ontouchstart&&S.removeEventListener("touchstart",S._ontouchstart),S._ontouchstart=h,S.addEventListener("touchstart",h,{passive:!1})):S.ontouchstart=h;var O=i.clampFn||function(P,R,A){return Math.abs(P)<A&&(P=0),Math.abs(R)<A&&(R=0),[P,R]};function h(P){m._dragged=!1,m._dragging=!0;var R=o(P);s=R[0],l=R[1],C=P.target,f=P,y=P.buttons===2||P.ctrlKey,P.clientX===void 0&&P.clientY===void 0&&(P.clientX=s,P.clientY=l),(u=new Date().getTime())-m._mouseDownTime<_?x+=1:(x=1,m._mouseDownTime=u),i.prepFn&&i.prepFn(P,s,l),v&&!y?(g=t()).style.cursor=window.getComputedStyle(S).cursor:v||(g=document,d=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(S).cursor),document.addEventListener("mouseup",N),document.addEventListener("touchend",N),i.dragmode!==!1&&(P.preventDefault(),document.addEventListener("mousemove",M),document.addEventListener("touchmove",M,{passive:!1}))}function M(P){P.preventDefault();var R=o(P),A=i.minDrag||b.MINDRAG,q=O(R[0]-s,R[1]-l,A),j=q[0],X=q[1];(j||X)&&(m._dragged=!0,c.unhover(m,P)),m._dragged&&i.moveFn&&!y&&(m._dragdata={element:S,dx:j,dy:X},i.moveFn(j,X))}function N(P){if(delete m._dragdata,i.dragmode!==!1&&(P.preventDefault(),document.removeEventListener("mousemove",M),document.removeEventListener("touchmove",M)),document.removeEventListener("mouseup",N),document.removeEventListener("touchend",N),v?w(g):d&&(g.documentElement.style.cursor=d,d=null),m._dragging){if(m._dragging=!1,new Date().getTime()-m._mouseDownTime>_&&(x=Math.max(x-1,1)),m._dragged)i.doneFn&&i.doneFn();else if(i.clickFn&&i.clickFn(x,f),!y){var R;try{R=new MouseEvent("click",P)}catch{var A=o(P);(R=document.createEvent("MouseEvents")).initMouseEvent("click",P.bubbles,P.cancelable,P.view,P.detail,P.screenX,P.screenY,A[0],A[1],P.ctrlKey,P.altKey,P.shiftKey,P.metaKey,P.button,P.relatedTarget)}C.dispatchEvent(R)}m._dragging=!1,m._dragged=!1}else m._dragged=!1}},c.coverSlip=t},2616:function(L,T,e){var k=e(95924),v=e(91200),n=e(52200).getGraphDiv,w=e(92456),b=L.exports={};b.wrapped=function(c,a,t){(c=n(c))._fullLayout&&v.clear(c._fullLayout._uid+w.HOVERID),b.raw(c,a,t)},b.raw=function(c,a){var t=c._fullLayout,o=c._hoverdata;a||(a={}),a.target&&!c._dragged&&k.triggerHandler(c,"plotly_beforehover",a)===!1||(t._hoverlayer.selectAll("g").remove(),t._hoverlayer.selectAll("line").remove(),t._hoverlayer.selectAll("circle").remove(),c._hoverdata=void 0,a.target&&o&&c.emit("plotly_unhover",{event:a,points:o}))}},98192:function(L,T){T.u={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},T.c={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"}},43616:function(L,T,e){var k=e(33428),v=e(3400),n=v.numberFormat,w=e(38248),b=e(49760),c=e(24040),a=e(76308),t=e(8932),o=v.strTranslate,i=e(72736),s=e(9616),l=e(84284).LINE_SPACING,u=e(13448).DESELECTDIM,d=e(43028),g=e(7152),f=e(10624).appendArrayPointValue,C=L.exports={};function y(Ne,Oe,pe){var fe=Oe.fillpattern,xe=fe&&C.getPatternAttr(fe.shape,0,"");if(xe){var ze=C.getPatternAttr(fe.bgcolor,0,null),Le=C.getPatternAttr(fe.fgcolor,0,null),Ue=fe.fgopacity,Re=C.getPatternAttr(fe.size,0,8),Fe=C.getPatternAttr(fe.solidity,0,.3),ve=Oe.uid;C.pattern(Ne,"point",pe,ve,xe,Re,Fe,void 0,fe.fillmode,ze,Le,Ue)}else Oe.fillcolor&&Ne.call(a.fill,Oe.fillcolor)}C.font=function(Ne,Oe,pe,fe){v.isPlainObject(Oe)&&(fe=Oe.color,pe=Oe.size,Oe=Oe.family),Oe&&Ne.style("font-family",Oe),pe+1&&Ne.style("font-size",pe+"px"),fe&&Ne.call(a.fill,fe)},C.setPosition=function(Ne,Oe,pe){Ne.attr("x",Oe).attr("y",pe)},C.setSize=function(Ne,Oe,pe){Ne.attr("width",Oe).attr("height",pe)},C.setRect=function(Ne,Oe,pe,fe,xe){Ne.call(C.setPosition,Oe,pe).call(C.setSize,fe,xe)},C.translatePoint=function(Ne,Oe,pe,fe){var xe=pe.c2p(Ne.x),ze=fe.c2p(Ne.y);return!!(w(xe)&&w(ze)&&Oe.node())&&(Oe.node().nodeName==="text"?Oe.attr("x",xe).attr("y",ze):Oe.attr("transform",o(xe,ze)),!0)},C.translatePoints=function(Ne,Oe,pe){Ne.each(function(fe){var xe=k.select(this);C.translatePoint(fe,xe,Oe,pe)})},C.hideOutsideRangePoint=function(Ne,Oe,pe,fe,xe,ze){Oe.attr("display",pe.isPtWithinRange(Ne,xe)&&fe.isPtWithinRange(Ne,ze)?null:"none")},C.hideOutsideRangePoints=function(Ne,Oe){if(Oe._hasClipOnAxisFalse){var pe=Oe.xaxis,fe=Oe.yaxis;Ne.each(function(xe){var ze=xe[0].trace,Le=ze.xcalendar,Ue=ze.ycalendar,Re=c.traceIs(ze,"bar-like")?".bartext":".point,.textpoint";Ne.selectAll(Re).each(function(Fe){C.hideOutsideRangePoint(Fe,k.select(this),pe,fe,Le,Ue)})})}},C.crispRound=function(Ne,Oe,pe){return Oe&&w(Oe)?Ne._context.staticPlot?Oe:Oe<1?1:Math.round(Oe):pe||0},C.singleLineStyle=function(Ne,Oe,pe,fe,xe){Oe.style("fill","none");var ze=(((Ne||[])[0]||{}).trace||{}).line||{},Le=pe||ze.width||0,Ue=xe||ze.dash||"";a.stroke(Oe,fe||ze.color),C.dashLine(Oe,Ue,Le)},C.lineGroupStyle=function(Ne,Oe,pe,fe){Ne.style("fill","none").each(function(xe){var ze=(((xe||[])[0]||{}).trace||{}).line||{},Le=Oe||ze.width||0,Ue=fe||ze.dash||"";k.select(this).call(a.stroke,pe||ze.color).call(C.dashLine,Ue,Le)})},C.dashLine=function(Ne,Oe,pe){pe=+pe||0,Oe=C.dashStyle(Oe,pe),Ne.style({"stroke-dasharray":Oe,"stroke-width":pe+"px"})},C.dashStyle=function(Ne,Oe){Oe=+Oe||1;var pe=Math.max(Oe,3);return Ne==="solid"?Ne="":Ne==="dot"?Ne=pe+"px,"+pe+"px":Ne==="dash"?Ne=3*pe+"px,"+3*pe+"px":Ne==="longdash"?Ne=5*pe+"px,"+5*pe+"px":Ne==="dashdot"?Ne=3*pe+"px,"+pe+"px,"+pe+"px,"+pe+"px":Ne==="longdashdot"&&(Ne=5*pe+"px,"+2*pe+"px,"+pe+"px,"+2*pe+"px"),Ne},C.singleFillStyle=function(Ne,Oe){var pe=k.select(Ne.node());y(Ne,((pe.data()[0]||[])[0]||{}).trace||{},Oe)},C.fillGroupStyle=function(Ne,Oe){Ne.style("stroke-width",0).each(function(pe){var fe=k.select(this);pe[0].trace&&y(fe,pe[0].trace,Oe)})};var m=e(71984);C.symbolNames=[],C.symbolFuncs=[],C.symbolBackOffs=[],C.symbolNeedLines={},C.symbolNoDot={},C.symbolNoFill={},C.symbolList=[],Object.keys(m).forEach(function(Ne){var Oe=m[Ne],pe=Oe.n;C.symbolList.push(pe,String(pe),Ne,pe+100,String(pe+100),Ne+"-open"),C.symbolNames[pe]=Ne,C.symbolFuncs[pe]=Oe.f,C.symbolBackOffs[pe]=Oe.backoff||0,Oe.needLine&&(C.symbolNeedLines[pe]=!0),Oe.noDot?C.symbolNoDot[pe]=!0:C.symbolList.push(pe+200,String(pe+200),Ne+"-dot",pe+300,String(pe+300),Ne+"-open-dot"),Oe.noFill&&(C.symbolNoFill[pe]=!0)});var x=C.symbolNames.length;function _(Ne,Oe,pe,fe){var xe=Ne%100;return C.symbolFuncs[xe](Oe,pe,fe)+(Ne>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}C.symbolNumber=function(Ne){if(w(Ne))Ne=+Ne;else if(typeof Ne=="string"){var Oe=0;Ne.indexOf("-open")>0&&(Oe=100,Ne=Ne.replace("-open","")),Ne.indexOf("-dot")>0&&(Oe+=200,Ne=Ne.replace("-dot","")),(Ne=C.symbolNames.indexOf(Ne))>=0&&(Ne+=Oe)}return Ne%100>=x||Ne>=400?0:Math.floor(Math.max(Ne,0))};var S={x1:1,x2:0,y1:0,y2:0},O={x1:0,x2:0,y1:1,y2:0},h=n("~f"),M={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:S},horizontalreversed:{node:"linearGradient",attrs:S,reversed:!0},vertical:{node:"linearGradient",attrs:O},verticalreversed:{node:"linearGradient",attrs:O,reversed:!0}};C.gradient=function(Ne,Oe,pe,fe,xe,ze){for(var Le=xe.length,Ue=M[fe],Re=new Array(Le),Fe=0;Fe<Le;Fe++)Ue.reversed?Re[Le-1-Fe]=[h(100*(1-xe[Fe][0])),xe[Fe][1]]:Re[Fe]=[h(100*xe[Fe][0]),xe[Fe][1]];var ve=Oe._fullLayout,ke="g"+ve._uid+"-"+pe,Ee=ve._defs.select(".gradients").selectAll("#"+ke).data([fe+Re.join(";")],v.identity);Ee.exit().remove(),Ee.enter().append(Ue.node).each(function(){var je=k.select(this);Ue.attrs&&je.attr(Ue.attrs),je.attr("id",ke);var Be=je.selectAll("stop").data(Re);Be.exit().remove(),Be.enter().append("stop"),Be.each(function(Ie){var Ze=b(Ie[1]);k.select(this).attr({offset:Ie[0]+"%","stop-color":a.tinyRGB(Ze),"stop-opacity":Ze.getAlpha()})})}),Ne.style(ze,re(ke,Oe)).style(ze+"-opacity",null),Ne.classed("gradient_filled",!0)},C.pattern=function(Ne,Oe,pe,fe,xe,ze,Le,Ue,Re,Fe,ve,ke){var Ee=Oe==="legend";Ue&&(Re==="overlay"?(Fe=Ue,ve=a.contrast(Fe)):(Fe=void 0,ve=Ue));var je,Be,Ie,Ze,He,at,ft,ut,_t,Nt=pe._fullLayout,Tt="p"+Nt._uid+"-"+fe,st={},lt=b(ve),Vt=a.tinyRGB(lt),jt=ke*lt.getAlpha();switch(xe){case"/":je=ze*Math.sqrt(2),Be=ze*Math.sqrt(2),at="path",st={d:Ie="M-"+je/4+","+Be/4+"l"+je/2+",-"+Be/2+"M0,"+Be+"L"+je+",0M"+je/4*3+","+Be/4*5+"l"+je/2+",-"+Be/2,opacity:jt,stroke:Vt,"stroke-width":(Ze=Le*ze)+"px"};break;case"\\":je=ze*Math.sqrt(2),Be=ze*Math.sqrt(2),at="path",st={d:Ie="M"+je/4*3+",-"+Be/4+"l"+je/2+","+Be/2+"M0,0L"+je+","+Be+"M-"+je/4+","+Be/4*3+"l"+je/2+","+Be/2,opacity:jt,stroke:Vt,"stroke-width":(Ze=Le*ze)+"px"};break;case"x":je=ze*Math.sqrt(2),Be=ze*Math.sqrt(2),Ie="M-"+je/4+","+Be/4+"l"+je/2+",-"+Be/2+"M0,"+Be+"L"+je+",0M"+je/4*3+","+Be/4*5+"l"+je/2+",-"+Be/2+"M"+je/4*3+",-"+Be/4+"l"+je/2+","+Be/2+"M0,0L"+je+","+Be+"M-"+je/4+","+Be/4*3+"l"+je/2+","+Be/2,Ze=ze-ze*Math.sqrt(1-Le),at="path",st={d:Ie,opacity:jt,stroke:Vt,"stroke-width":Ze+"px"};break;case"|":at="path",at="path",st={d:Ie="M"+(je=ze)/2+",0L"+je/2+","+(Be=ze),opacity:jt,stroke:Vt,"stroke-width":(Ze=Le*ze)+"px"};break;case"-":at="path",at="path",st={d:Ie="M0,"+(Be=ze)/2+"L"+(je=ze)+","+Be/2,opacity:jt,stroke:Vt,"stroke-width":(Ze=Le*ze)+"px"};break;case"+":at="path",Ie="M"+(je=ze)/2+",0L"+je/2+","+(Be=ze)+"M0,"+Be/2+"L"+je+","+Be/2,Ze=ze-ze*Math.sqrt(1-Le),at="path",st={d:Ie,opacity:jt,stroke:Vt,"stroke-width":Ze+"px"};break;case".":je=ze,Be=ze,Le<Math.PI/4?He=Math.sqrt(Le*ze*ze/Math.PI):(ft=Le,ut=Math.PI/4,He=(_t=ze/2)+(ze/Math.sqrt(2)-_t)*(ft-ut)/(1-ut)),at="circle",st={cx:je/2,cy:Be/2,r:He,opacity:jt,fill:Vt}}var Kt=[xe||"noSh",Fe||"noBg",ve||"noFg",ze,Le].join(";"),It=Nt._defs.select(".patterns").selectAll("#"+Tt).data([Kt],v.identity);It.exit().remove(),It.enter().append("pattern").each(function(){var $e=k.select(this);if($e.attr({id:Tt,width:je+"px",height:Be+"px",patternUnits:"userSpaceOnUse",patternTransform:Ee?"scale(0.8)":""}),Fe){var tt=b(Fe),Xe=a.tinyRGB(tt),et=tt.getAlpha(),ht=$e.selectAll("rect").data([0]);ht.exit().remove(),ht.enter().append("rect").attr({width:je+"px",height:Be+"px",fill:Xe,"fill-opacity":et})}var dt=$e.selectAll(at).data([0]);dt.exit().remove(),dt.enter().append(at).attr(st)}),Ne.style("fill",re(Tt,pe)).style("fill-opacity",null),Ne.classed("pattern_filled",!0)},C.initGradients=function(Ne){var Oe=Ne._fullLayout;v.ensureSingle(Oe._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),k.select(Ne).selectAll(".gradient_filled").classed("gradient_filled",!1)},C.initPatterns=function(Ne){var Oe=Ne._fullLayout;v.ensureSingle(Oe._defs,"g","patterns").selectAll("pattern").remove(),k.select(Ne).selectAll(".pattern_filled").classed("pattern_filled",!1)},C.getPatternAttr=function(Ne,Oe,pe){return Ne&&v.isArrayOrTypedArray(Ne)?Oe<Ne.length?Ne[Oe]:pe:Ne},C.pointStyle=function(Ne,Oe,pe,fe){if(Ne.size()){var xe=C.makePointStyleFns(Oe);Ne.each(function(ze){C.singlePointStyle(ze,k.select(this),Oe,xe,pe,fe)})}},C.singlePointStyle=function(Ne,Oe,pe,fe,xe,ze){var Le=pe.marker,Ue=Le.line;if(ze&&ze.i>=0&&Ne.i===void 0&&(Ne.i=ze.i),Oe.style("opacity",fe.selectedOpacityFn?fe.selectedOpacityFn(Ne):Ne.mo===void 0?Le.opacity:Ne.mo),fe.ms2mrc){var Re;Re=Ne.ms==="various"||Le.size==="various"?3:fe.ms2mrc(Ne.ms),Ne.mrc=Re,fe.selectedSizeFn&&(Re=Ne.mrc=fe.selectedSizeFn(Ne));var Fe=C.symbolNumber(Ne.mx||Le.symbol)||0;Ne.om=Fe%200>=100;var ve=Pe(Ne,pe),ke=te(Ne,pe);Oe.attr("d",_(Fe,Re,ve,ke))}var Ee,je,Be,Ie=!1;if(Ne.so)Be=Ue.outlierwidth,je=Ue.outliercolor,Ee=Le.outliercolor;else{var Ze=(Ue||{}).width;Be=(Ne.mlw+1||Ze+1||(Ne.trace?(Ne.trace.marker.line||{}).width:0)+1)-1||0,je="mlc"in Ne?Ne.mlcc=fe.lineScale(Ne.mlc):v.isArrayOrTypedArray(Ue.color)?a.defaultLine:Ue.color,v.isArrayOrTypedArray(Le.color)&&(Ee=a.defaultLine,Ie=!0),Ee="mc"in Ne?Ne.mcc=fe.markerScale(Ne.mc):Le.color||Le.colors||"rgba(0,0,0,0)",fe.selectedColorFn&&(Ee=fe.selectedColorFn(Ne))}if(Ne.om)Oe.call(a.stroke,Ee).style({"stroke-width":(Be||1)+"px",fill:"none"});else{Oe.style("stroke-width",(Ne.isBlank?0:Be)+"px");var He=Le.gradient,at=Ne.mgt;at?Ie=!0:at=He&&He.type,v.isArrayOrTypedArray(at)&&(at=at[0],M[at]||(at=0));var ft=Le.pattern,ut=ft&&C.getPatternAttr(ft.shape,Ne.i,"");if(at&&at!=="none"){var _t=Ne.mgc;_t?Ie=!0:_t=He.color;var Nt=pe.uid;Ie&&(Nt+="-"+Ne.i),C.gradient(Oe,xe,Nt,at,[[0,_t],[1,Ee]],"fill")}else if(ut){var Tt=!1,st=ft.fgcolor;!st&&ze&&ze.color&&(st=ze.color,Tt=!0);var lt=C.getPatternAttr(st,Ne.i,ze&&ze.color||null),Vt=C.getPatternAttr(ft.bgcolor,Ne.i,null),jt=ft.fgopacity,Kt=C.getPatternAttr(ft.size,Ne.i,8),It=C.getPatternAttr(ft.solidity,Ne.i,.3);Tt=Tt||Ne.mcc||v.isArrayOrTypedArray(ft.shape)||v.isArrayOrTypedArray(ft.bgcolor)||v.isArrayOrTypedArray(ft.fgcolor)||v.isArrayOrTypedArray(ft.size)||v.isArrayOrTypedArray(ft.solidity);var $e=pe.uid;Tt&&($e+="-"+Ne.i),C.pattern(Oe,"point",xe,$e,ut,Kt,It,Ne.mcc,ft.fillmode,Vt,lt,jt)}else v.isArrayOrTypedArray(Ee)?a.fill(Oe,Ee[Ne.i]):a.fill(Oe,Ee);Be&&a.stroke(Oe,je)}},C.makePointStyleFns=function(Ne){var Oe={},pe=Ne.marker;return Oe.markerScale=C.tryColorscale(pe,""),Oe.lineScale=C.tryColorscale(pe,"line"),c.traceIs(Ne,"symbols")&&(Oe.ms2mrc=d.isBubble(Ne)?g(Ne):function(){return(pe.size||6)/2}),Ne.selectedpoints&&v.extendFlat(Oe,C.makeSelectedPointStyleFns(Ne)),Oe},C.makeSelectedPointStyleFns=function(Ne){var Oe={},pe=Ne.selected||{},fe=Ne.unselected||{},xe=Ne.marker||{},ze=pe.marker||{},Le=fe.marker||{},Ue=xe.opacity,Re=ze.opacity,Fe=Le.opacity,ve=Re!==void 0,ke=Fe!==void 0;(v.isArrayOrTypedArray(Ue)||ve||ke)&&(Oe.selectedOpacityFn=function(ut){var _t=ut.mo===void 0?xe.opacity:ut.mo;return ut.selected?ve?Re:_t:ke?Fe:u*_t});var Ee=xe.color,je=ze.color,Be=Le.color;(je||Be)&&(Oe.selectedColorFn=function(ut){var _t=ut.mcc||Ee;return ut.selected?je||_t:Be||_t});var Ie=xe.size,Ze=ze.size,He=Le.size,at=Ze!==void 0,ft=He!==void 0;return c.traceIs(Ne,"symbols")&&(at||ft)&&(Oe.selectedSizeFn=function(ut){var _t=ut.mrc||Ie/2;return ut.selected?at?Ze/2:_t:ft?He/2:_t}),Oe},C.makeSelectedTextStyleFns=function(Ne){var Oe={},pe=Ne.selected||{},fe=Ne.unselected||{},xe=Ne.textfont||{},ze=pe.textfont||{},Le=fe.textfont||{},Ue=xe.color,Re=ze.color,Fe=Le.color;return Oe.selectedTextColorFn=function(ve){var ke=ve.tc||Ue;return ve.selected?Re||ke:Fe||(Re?ke:a.addOpacity(ke,u))},Oe},C.selectedPointStyle=function(Ne,Oe){if(Ne.size()&&Oe.selectedpoints){var pe=C.makeSelectedPointStyleFns(Oe),fe=Oe.marker||{},xe=[];pe.selectedOpacityFn&&xe.push(function(ze,Le){ze.style("opacity",pe.selectedOpacityFn(Le))}),pe.selectedColorFn&&xe.push(function(ze,Le){a.fill(ze,pe.selectedColorFn(Le))}),pe.selectedSizeFn&&xe.push(function(ze,Le){var Ue=Le.mx||fe.symbol||0,Re=pe.selectedSizeFn(Le);ze.attr("d",_(C.symbolNumber(Ue),Re,Pe(Le,Oe),te(Le,Oe))),Le.mrc2=Re}),xe.length&&Ne.each(function(ze){for(var Le=k.select(this),Ue=0;Ue<xe.length;Ue++)xe[Ue](Le,ze)})}},C.tryColorscale=function(Ne,Oe){var pe=Oe?v.nestedProperty(Ne,Oe).get():Ne;if(pe){var fe=pe.color;if((pe.colorscale||pe._colorAx)&&v.isArrayOrTypedArray(fe))return t.makeColorScaleFuncFromTrace(pe)}return v.identity};var N,P,R={start:1,end:-1,middle:0,bottom:1,top:-1};function A(Ne,Oe,pe,fe,xe){var ze=k.select(Ne.node().parentNode),Le=Oe.indexOf("top")!==-1?"top":Oe.indexOf("bottom")!==-1?"bottom":"middle",Ue=Oe.indexOf("left")!==-1?"end":Oe.indexOf("right")!==-1?"start":"middle",Re=fe?fe/.8+1:0,Fe=(i.lineCount(Ne)-1)*l+1,ve=R[Ue]*Re,ke=.75*pe+R[Le]*Re+(R[Le]-1)*Fe*pe/2;Ne.attr("text-anchor",Ue),xe||ze.attr("transform",o(ve,ke))}function q(Ne,Oe){var pe=Ne.ts||Oe.textfont.size;return w(pe)&&pe>0?pe:0}function j(Ne,Oe,pe){return pe&&(Ne=G(Ne)),Oe?F(Ne[1]):X(Ne[0])}function X(Ne){var Oe=k.round(Ne,2);return N=Oe,Oe}function F(Ne){var Oe=k.round(Ne,2);return P=Oe,Oe}function W(Ne,Oe,pe,fe){var xe=Ne[0]-Oe[0],ze=Ne[1]-Oe[1],Le=pe[0]-Oe[0],Ue=pe[1]-Oe[1],Re=Math.pow(xe*xe+ze*ze,.25),Fe=Math.pow(Le*Le+Ue*Ue,.25),ve=(Fe*Fe*xe-Re*Re*Le)*fe,ke=(Fe*Fe*ze-Re*Re*Ue)*fe,Ee=3*Fe*(Re+Fe),je=3*Re*(Re+Fe);return[[X(Oe[0]+(Ee&&ve/Ee)),F(Oe[1]+(Ee&&ke/Ee))],[X(Oe[0]-(je&&ve/je)),F(Oe[1]-(je&&ke/je))]]}C.textPointStyle=function(Ne,Oe,pe){if(Ne.size()){var fe;if(Oe.selectedpoints){var xe=C.makeSelectedTextStyleFns(Oe);fe=xe.selectedTextColorFn}var ze=Oe.texttemplate,Le=pe._fullLayout;Ne.each(function(Ue){var Re=k.select(this),Fe=ze?v.extractOption(Ue,Oe,"txt","texttemplate"):v.extractOption(Ue,Oe,"tx","text");if(Fe||Fe===0){if(ze){var ve=Oe._module.formatLabels,ke=ve?ve(Ue,Oe,Le):{},Ee={};f(Ee,Oe,Ue.i);var je=Oe._meta||{};Fe=v.texttemplateString(Fe,ke,Le._d3locale,Ee,Ue,je)}var Be=Ue.tp||Oe.textposition,Ie=q(Ue,Oe),Ze=fe?fe(Ue):Ue.tc||Oe.textfont.color;Re.call(C.font,Ue.tf||Oe.textfont.family,Ie,Ze).text(Fe).call(i.convertToTspans,pe).call(A,Be,Ie,Ue.mrc)}else Re.remove()})}},C.selectedTextStyle=function(Ne,Oe){if(Ne.size()&&Oe.selectedpoints){var pe=C.makeSelectedTextStyleFns(Oe);Ne.each(function(fe){var xe=k.select(this),ze=pe.selectedTextColorFn(fe),Le=fe.tp||Oe.textposition,Ue=q(fe,Oe);a.fill(xe,ze);var Re=c.traceIs(Oe,"bar-like");A(xe,Le,Ue,fe.mrc2||fe.mrc,Re)})}},C.smoothopen=function(Ne,Oe){if(Ne.length<3)return"M"+Ne.join("L");var pe,fe="M"+Ne[0],xe=[];for(pe=1;pe<Ne.length-1;pe++)xe.push(W(Ne[pe-1],Ne[pe],Ne[pe+1],Oe));for(fe+="Q"+xe[0][0]+" "+Ne[1],pe=2;pe<Ne.length-1;pe++)fe+="C"+xe[pe-2][1]+" "+xe[pe-1][0]+" "+Ne[pe];return fe+"Q"+xe[Ne.length-3][1]+" "+Ne[Ne.length-1]},C.smoothclosed=function(Ne,Oe){if(Ne.length<3)return"M"+Ne.join("L")+"Z";var pe,fe="M"+Ne[0],xe=Ne.length-1,ze=[W(Ne[xe],Ne[0],Ne[1],Oe)];for(pe=1;pe<xe;pe++)ze.push(W(Ne[pe-1],Ne[pe],Ne[pe+1],Oe));for(ze.push(W(Ne[xe-1],Ne[xe],Ne[0],Oe)),pe=1;pe<=xe;pe++)fe+="C"+ze[pe-1][1]+" "+ze[pe][0]+" "+Ne[pe];return fe+"C"+ze[xe][1]+" "+ze[0][0]+" "+Ne[0]+"Z"};var Y={hv:function(Ne,Oe,pe){return"H"+X(Oe[0])+"V"+j(Oe,1,pe)},vh:function(Ne,Oe,pe){return"V"+F(Oe[1])+"H"+j(Oe,0,pe)},hvh:function(Ne,Oe,pe){return"H"+X((Ne[0]+Oe[0])/2)+"V"+F(Oe[1])+"H"+j(Oe,0,pe)},vhv:function(Ne,Oe,pe){return"V"+F((Ne[1]+Oe[1])/2)+"H"+X(Oe[0])+"V"+j(Oe,1,pe)}},B=function(Ne,Oe,pe){return"L"+j(Oe,0,pe)+","+j(Oe,1,pe)};function G(Ne,Oe){var pe=Ne.backoff,fe=Ne.trace,xe=Ne.d,ze=Ne.i;if(pe&&fe&&fe.marker&&fe.marker.angle%360==0&&fe.line&&fe.line.shape!=="spline"){var Le=v.isArrayOrTypedArray(pe),Ue=Ne,Re=Oe?Oe[0]:N||0,Fe=Oe?Oe[1]:P||0,ve=Ue[0],ke=Ue[1],Ee=ve-Re,je=ke-Fe,Be=Math.atan2(je,Ee),Ie=Le?pe[ze]:pe;if(Ie==="auto"){var Ze=Ue.i;fe.type==="scatter"&&Ze--;var He=Ue.marker,at=He.symbol;v.isArrayOrTypedArray(at)&&(at=at[Ze]);var ft=He.size;v.isArrayOrTypedArray(ft)&&(ft=ft[Ze]),Ie=He?C.symbolBackOffs[C.symbolNumber(at)]*ft:0,Ie+=C.getMarkerStandoff(xe[Ze],fe)||0}var ut=ve-Ie*Math.cos(Be),_t=ke-Ie*Math.sin(Be);(ut<=ve&&ut>=Re||ut>=ve&&ut<=Re)&&(_t<=ke&&_t>=Fe||_t>=ke&&_t<=Fe)&&(Ne=[ut,_t])}return Ne}C.steps=function(Ne){var Oe=Y[Ne]||B;return function(pe){for(var fe="M"+X(pe[0][0])+","+F(pe[0][1]),xe=pe.length,ze=1;ze<xe;ze++)fe+=Oe(pe[ze-1],pe[ze],ze===xe-1);return fe}},C.applyBackoff=G,C.makeTester=function(){var Ne=v.ensureSingleById(k.select("body"),"svg","js-plotly-tester",function(pe){pe.attr(s.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),Oe=v.ensureSingle(Ne,"path","js-reference-point",function(pe){pe.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});C.tester=Ne,C.testref=Oe},C.savedBBoxes={};var J=0;function se(Ne){var Oe=Ne.getAttribute("data-unformatted");if(Oe!==null)return Oe+Ne.getAttribute("data-math")+Ne.getAttribute("text-anchor")+Ne.getAttribute("style")}function re(Ne,Oe){if(!Ne)return null;var pe=Oe._context,fe=pe._exportedPlot?"":pe._baseUrl||"";return fe?"url('"+fe+"#"+Ne+"')":"url(#"+Ne+")"}C.bBox=function(Ne,Oe,pe){var fe,xe,ze;if(pe||(pe=se(Ne)),pe){if(fe=C.savedBBoxes[pe])return v.extendFlat({},fe)}else if(Ne.childNodes.length===1){var Le=Ne.childNodes[0];if(pe=se(Le)){var Ue=+Le.getAttribute("x")||0,Re=+Le.getAttribute("y")||0,Fe=Le.getAttribute("transform");if(!Fe){var ve=C.bBox(Le,!1,pe);return Ue&&(ve.left+=Ue,ve.right+=Ue),Re&&(ve.top+=Re,ve.bottom+=Re),ve}if(pe+="~"+Ue+"~"+Re+"~"+Fe,fe=C.savedBBoxes[pe])return v.extendFlat({},fe)}}Oe?xe=Ne:(ze=C.tester.node(),xe=Ne.cloneNode(!0),ze.appendChild(xe)),k.select(xe).attr("transform",null).call(i.positionText,0,0);var ke=xe.getBoundingClientRect(),Ee=C.testref.node().getBoundingClientRect();Oe||ze.removeChild(xe);var je={height:ke.height,width:ke.width,left:ke.left-Ee.left,top:ke.top-Ee.top,right:ke.right-Ee.left,bottom:ke.bottom-Ee.top};return J>=1e4&&(C.savedBBoxes={},J=0),pe&&(C.savedBBoxes[pe]=je),J++,v.extendFlat({},je)},C.setClipUrl=function(Ne,Oe,pe){Ne.attr("clip-path",re(Oe,pe))},C.getTranslate=function(Ne){var Oe=(Ne[Ne.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,function(pe,fe,xe){return[fe,xe].join(" ")}).split(" ");return{x:+Oe[0]||0,y:+Oe[1]||0}},C.setTranslate=function(Ne,Oe,pe){var fe=Ne.attr?"attr":"getAttribute",xe=Ne.attr?"attr":"setAttribute",ze=Ne[fe]("transform")||"";return Oe=Oe||0,pe=pe||0,ze=ze.replace(/(\btranslate\(.*?\);?)/,"").trim(),ze=(ze+=o(Oe,pe)).trim(),Ne[xe]("transform",ze),ze},C.getScale=function(Ne){var Oe=(Ne[Ne.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,function(pe,fe,xe){return[fe,xe].join(" ")}).split(" ");return{x:+Oe[0]||1,y:+Oe[1]||1}},C.setScale=function(Ne,Oe,pe){var fe=Ne.attr?"attr":"getAttribute",xe=Ne.attr?"attr":"setAttribute",ze=Ne[fe]("transform")||"";return Oe=Oe||1,pe=pe||1,ze=ze.replace(/(\bscale\(.*?\);?)/,"").trim(),ze=(ze+="scale("+Oe+","+pe+")").trim(),Ne[xe]("transform",ze),ze};var ne=/\s*sc.*/;C.setPointGroupScale=function(Ne,Oe,pe){if(Oe=Oe||1,pe=pe||1,Ne){var fe=Oe===1&&pe===1?"":"scale("+Oe+","+pe+")";Ne.each(function(){var xe=(this.getAttribute("transform")||"").replace(ne,"");xe=(xe+=fe).trim(),this.setAttribute("transform",xe)})}};var $=/translate\([^)]*\)\s*$/;function te(Ne,Oe){var pe;return Ne&&(pe=Ne.mf),pe===void 0&&(pe=Oe.marker&&Oe.marker.standoff||0),Oe._geo||Oe._xA?pe:-pe}C.setTextPointsScale=function(Ne,Oe,pe){Ne&&Ne.each(function(){var fe,xe=k.select(this),ze=xe.select("text");if(ze.node()){var Le=parseFloat(ze.attr("x")||0),Ue=parseFloat(ze.attr("y")||0),Re=(xe.attr("transform")||"").match($);fe=Oe===1&&pe===1?[]:[o(Le,Ue),"scale("+Oe+","+pe+")",o(-Le,-Ue)],Re&&fe.push(Re),xe.attr("transform",fe.join(""))}})},C.getMarkerStandoff=te;var ae,ce,ue,de,me,be,_e=Math.atan2,we=Math.cos,Ce=Math.sin;function Se(Ne,Oe){var pe=Oe[0],fe=Oe[1];return[pe*we(Ne)-fe*Ce(Ne),pe*Ce(Ne)+fe*we(Ne)]}function Pe(Ne,Oe){var pe,fe,xe=Ne.ma;xe===void 0&&((xe=Oe.marker.angle)&&!v.isArrayOrTypedArray(xe)||(xe=0));var ze=Oe.marker.angleref;if(ze==="previous"||ze==="north"){if(Oe._geo){var Le=Oe._geo.project(Ne.lonlat);pe=Le[0],fe=Le[1]}else{var Ue=Oe._xA,Re=Oe._yA;if(!Ue||!Re)return 90;pe=Ue.c2p(Ne.x),fe=Re.c2p(Ne.y)}if(Oe._geo){var Fe,ve=Ne.lonlat[0],ke=Ne.lonlat[1],Ee=Oe._geo.project([ve,ke+1e-5]),je=Oe._geo.project([ve+1e-5,ke]),Be=_e(je[1]-fe,je[0]-pe),Ie=_e(Ee[1]-fe,Ee[0]-pe);if(ze==="north")Fe=xe/180*Math.PI;else if(ze==="previous"){var Ze=ve/180*Math.PI,He=ke/180*Math.PI,at=ae/180*Math.PI,ft=ce/180*Math.PI,ut=at-Ze,_t=we(ft)*Ce(ut),Nt=Ce(ft)*we(He)-we(ft)*Ce(He)*we(ut);Fe=-_e(_t,Nt)-Math.PI,ae=ve,ce=ke}var Tt=Se(Be,[we(Fe),0]),st=Se(Ie,[Ce(Fe),0]);xe=_e(Tt[1]+st[1],Tt[0]+st[0])/Math.PI*180,ze!=="previous"||be===Oe.uid&&Ne.i===me+1||(xe=null)}if(ze==="previous"&&!Oe._geo)if(be===Oe.uid&&Ne.i===me+1&&w(pe)&&w(fe)){var lt=pe-ue,Vt=fe-de,jt=Oe.line&&Oe.line.shape||"",Kt=jt.slice(jt.length-1);Kt==="h"&&(Vt=0),Kt==="v"&&(lt=0),xe+=_e(Vt,lt)/Math.PI*180+90}else xe=null}return ue=pe,de=fe,me=Ne.i,be=Oe.uid,xe}C.getMarkerAngle=Pe},71984:function(L,T,e){var k,v,n,w,b=e(21984),c=e(33428).round,a="M0,0Z",t=Math.sqrt(2),o=Math.sqrt(3),i=Math.PI,s=Math.cos,l=Math.sin;function u(g){return g===null}function d(g,f,C){if(!(g&&g%360!=0||f))return C;if(n===g&&w===f&&k===C)return v;function y(j,X){var F=s(j),W=l(j),Y=X[0],B=X[1]+(f||0);return[Y*F-B*W,Y*W+B*F]}n=g,w=f,k=C;for(var m=g/180*i,x=0,_=0,S=b(C),O="",h=0;h<S.length;h++){var M=S[h],N=M[0],P=x,R=_;if(N==="M"||N==="L")x=+M[1],_=+M[2];else if(N==="m"||N==="l")x+=+M[1],_+=+M[2];else if(N==="H")x=+M[1];else if(N==="h")x+=+M[1];else if(N==="V")_=+M[1];else if(N==="v")_+=+M[1];else if(N==="A"){x=+M[1],_=+M[2];var A=y(m,[+M[6],+M[7]]);M[6]=A[0],M[7]=A[1],M[3]=+M[3]+g}N!=="H"&&N!=="V"||(N="L"),N!=="h"&&N!=="v"||(N="l"),N!=="m"&&N!=="l"||(x-=P,_-=R);var q=y(m,[x,_]);N!=="H"&&N!=="V"||(N="L"),N!=="M"&&N!=="L"&&N!=="m"&&N!=="l"||(M[1]=q[0],M[2]=q[1]),M[0]=N,O+=M[0]+M.slice(1).join(",")}return v=O,O}L.exports={circle:{n:0,f:function(g,f,C){if(u(f))return a;var y=c(g,2),m="M"+y+",0A"+y+","+y+" 0 1,1 0,-"+y+"A"+y+","+y+" 0 0,1 "+y+",0Z";return C?d(f,C,m):m}},square:{n:1,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M"+y+","+y+"H-"+y+"V-"+y+"H"+y+"Z")}},diamond:{n:2,f:function(g,f,C){if(u(f))return a;var y=c(1.3*g,2);return d(f,C,"M"+y+",0L0,"+y+"L-"+y+",0L0,-"+y+"Z")}},cross:{n:3,f:function(g,f,C){if(u(f))return a;var y=c(.4*g,2),m=c(1.2*g,2);return d(f,C,"M"+m+","+y+"H"+y+"V"+m+"H-"+y+"V"+y+"H-"+m+"V-"+y+"H-"+y+"V-"+m+"H"+y+"V-"+y+"H"+m+"Z")}},x:{n:4,f:function(g,f,C){if(u(f))return a;var y=c(.8*g/t,2),m="l"+y+","+y,x="l"+y+",-"+y,_="l-"+y+",-"+y,S="l-"+y+","+y;return d(f,C,"M0,"+y+m+x+_+x+_+S+_+S+m+S+m+"Z")}},"triangle-up":{n:5,f:function(g,f,C){if(u(f))return a;var y=c(2*g/o,2);return d(f,C,"M-"+y+","+c(g/2,2)+"H"+y+"L0,-"+c(g,2)+"Z")}},"triangle-down":{n:6,f:function(g,f,C){if(u(f))return a;var y=c(2*g/o,2);return d(f,C,"M-"+y+",-"+c(g/2,2)+"H"+y+"L0,"+c(g,2)+"Z")}},"triangle-left":{n:7,f:function(g,f,C){if(u(f))return a;var y=c(2*g/o,2);return d(f,C,"M"+c(g/2,2)+",-"+y+"V"+y+"L-"+c(g,2)+",0Z")}},"triangle-right":{n:8,f:function(g,f,C){if(u(f))return a;var y=c(2*g/o,2);return d(f,C,"M-"+c(g/2,2)+",-"+y+"V"+y+"L"+c(g,2)+",0Z")}},"triangle-ne":{n:9,f:function(g,f,C){if(u(f))return a;var y=c(.6*g,2),m=c(1.2*g,2);return d(f,C,"M-"+m+",-"+y+"H"+y+"V"+m+"Z")}},"triangle-se":{n:10,f:function(g,f,C){if(u(f))return a;var y=c(.6*g,2),m=c(1.2*g,2);return d(f,C,"M"+y+",-"+m+"V"+y+"H-"+m+"Z")}},"triangle-sw":{n:11,f:function(g,f,C){if(u(f))return a;var y=c(.6*g,2),m=c(1.2*g,2);return d(f,C,"M"+m+","+y+"H-"+y+"V-"+m+"Z")}},"triangle-nw":{n:12,f:function(g,f,C){if(u(f))return a;var y=c(.6*g,2),m=c(1.2*g,2);return d(f,C,"M-"+y+","+m+"V-"+y+"H"+m+"Z")}},pentagon:{n:13,f:function(g,f,C){if(u(f))return a;var y=c(.951*g,2),m=c(.588*g,2),x=c(-g,2),_=c(-.309*g,2);return d(f,C,"M"+y+","+_+"L"+m+","+c(.809*g,2)+"H-"+m+"L-"+y+","+_+"L0,"+x+"Z")}},hexagon:{n:14,f:function(g,f,C){if(u(f))return a;var y=c(g,2),m=c(g/2,2),x=c(g*o/2,2);return d(f,C,"M"+x+",-"+m+"V"+m+"L0,"+y+"L-"+x+","+m+"V-"+m+"L0,-"+y+"Z")}},hexagon2:{n:15,f:function(g,f,C){if(u(f))return a;var y=c(g,2),m=c(g/2,2),x=c(g*o/2,2);return d(f,C,"M-"+m+","+x+"H"+m+"L"+y+",0L"+m+",-"+x+"H-"+m+"L-"+y+",0Z")}},octagon:{n:16,f:function(g,f,C){if(u(f))return a;var y=c(.924*g,2),m=c(.383*g,2);return d(f,C,"M-"+m+",-"+y+"H"+m+"L"+y+",-"+m+"V"+m+"L"+m+","+y+"H-"+m+"L-"+y+","+m+"V-"+m+"Z")}},star:{n:17,f:function(g,f,C){if(u(f))return a;var y=1.4*g,m=c(.225*y,2),x=c(.951*y,2),_=c(.363*y,2),S=c(.588*y,2),O=c(-y,2),h=c(-.309*y,2),M=c(.118*y,2),N=c(.809*y,2);return d(f,C,"M"+m+","+h+"H"+x+"L"+_+","+M+"L"+S+","+N+"L0,"+c(.382*y,2)+"L-"+S+","+N+"L-"+_+","+M+"L-"+x+","+h+"H-"+m+"L0,"+O+"Z")}},hexagram:{n:18,f:function(g,f,C){if(u(f))return a;var y=c(.66*g,2),m=c(.38*g,2),x=c(.76*g,2);return d(f,C,"M-"+x+",0l-"+m+",-"+y+"h"+x+"l"+m+",-"+y+"l"+m+","+y+"h"+x+"l-"+m+","+y+"l"+m+","+y+"h-"+x+"l-"+m+","+y+"l-"+m+",-"+y+"h-"+x+"Z")}},"star-triangle-up":{n:19,f:function(g,f,C){if(u(f))return a;var y=c(g*o*.8,2),m=c(.8*g,2),x=c(1.6*g,2),_=c(4*g,2),S="A "+_+","+_+" 0 0 1 ";return d(f,C,"M-"+y+","+m+S+y+","+m+S+"0,-"+x+S+"-"+y+","+m+"Z")}},"star-triangle-down":{n:20,f:function(g,f,C){if(u(f))return a;var y=c(g*o*.8,2),m=c(.8*g,2),x=c(1.6*g,2),_=c(4*g,2),S="A "+_+","+_+" 0 0 1 ";return d(f,C,"M"+y+",-"+m+S+"-"+y+",-"+m+S+"0,"+x+S+y+",-"+m+"Z")}},"star-square":{n:21,f:function(g,f,C){if(u(f))return a;var y=c(1.1*g,2),m=c(2*g,2),x="A "+m+","+m+" 0 0 1 ";return d(f,C,"M-"+y+",-"+y+x+"-"+y+","+y+x+y+","+y+x+y+",-"+y+x+"-"+y+",-"+y+"Z")}},"star-diamond":{n:22,f:function(g,f,C){if(u(f))return a;var y=c(1.4*g,2),m=c(1.9*g,2),x="A "+m+","+m+" 0 0 1 ";return d(f,C,"M-"+y+",0"+x+"0,"+y+x+y+",0"+x+"0,-"+y+x+"-"+y+",0Z")}},"diamond-tall":{n:23,f:function(g,f,C){if(u(f))return a;var y=c(.7*g,2),m=c(1.4*g,2);return d(f,C,"M0,"+m+"L"+y+",0L0,-"+m+"L-"+y+",0Z")}},"diamond-wide":{n:24,f:function(g,f,C){if(u(f))return a;var y=c(1.4*g,2),m=c(.7*g,2);return d(f,C,"M0,"+m+"L"+y+",0L0,-"+m+"L-"+y+",0Z")}},hourglass:{n:25,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M"+y+","+y+"H-"+y+"L"+y+",-"+y+"H-"+y+"Z")},noDot:!0},bowtie:{n:26,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M"+y+","+y+"V-"+y+"L-"+y+","+y+"V-"+y+"Z")},noDot:!0},"circle-cross":{n:27,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M0,"+y+"V-"+y+"M"+y+",0H-"+y+"M"+y+",0A"+y+","+y+" 0 1,1 0,-"+y+"A"+y+","+y+" 0 0,1 "+y+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(g,f,C){if(u(f))return a;var y=c(g,2),m=c(g/t,2);return d(f,C,"M"+m+","+m+"L-"+m+",-"+m+"M"+m+",-"+m+"L-"+m+","+m+"M"+y+",0A"+y+","+y+" 0 1,1 0,-"+y+"A"+y+","+y+" 0 0,1 "+y+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M0,"+y+"V-"+y+"M"+y+",0H-"+y+"M"+y+","+y+"H-"+y+"V-"+y+"H"+y+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M"+y+","+y+"L-"+y+",-"+y+"M"+y+",-"+y+"L-"+y+","+y+"M"+y+","+y+"H-"+y+"V-"+y+"H"+y+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(g,f,C){if(u(f))return a;var y=c(1.3*g,2);return d(f,C,"M"+y+",0L0,"+y+"L-"+y+",0L0,-"+y+"ZM0,-"+y+"V"+y+"M-"+y+",0H"+y)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(g,f,C){if(u(f))return a;var y=c(1.3*g,2),m=c(.65*g,2);return d(f,C,"M"+y+",0L0,"+y+"L-"+y+",0L0,-"+y+"ZM-"+m+",-"+m+"L"+m+","+m+"M-"+m+","+m+"L"+m+",-"+m)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(g,f,C){if(u(f))return a;var y=c(1.4*g,2);return d(f,C,"M0,"+y+"V-"+y+"M"+y+",0H-"+y)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M"+y+","+y+"L-"+y+",-"+y+"M"+y+",-"+y+"L-"+y+","+y)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(g,f,C){if(u(f))return a;var y=c(1.2*g,2),m=c(.85*g,2);return d(f,C,"M0,"+y+"V-"+y+"M"+y+",0H-"+y+"M"+m+","+m+"L-"+m+",-"+m+"M"+m+",-"+m+"L-"+m+","+m)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(g,f,C){if(u(f))return a;var y=c(g/2,2),m=c(g,2);return d(f,C,"M"+y+","+m+"V-"+m+"M"+(y-m)+",-"+m+"V"+m+"M"+m+","+y+"H-"+m+"M-"+m+","+(y-m)+"H"+m)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(g,f,C){if(u(f))return a;var y=c(1.2*g,2),m=c(1.6*g,2),x=c(.8*g,2);return d(f,C,"M-"+y+","+x+"L0,0M"+y+","+x+"L0,0M0,-"+m+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(g,f,C){if(u(f))return a;var y=c(1.2*g,2),m=c(1.6*g,2),x=c(.8*g,2);return d(f,C,"M-"+y+",-"+x+"L0,0M"+y+",-"+x+"L0,0M0,"+m+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(g,f,C){if(u(f))return a;var y=c(1.2*g,2),m=c(1.6*g,2),x=c(.8*g,2);return d(f,C,"M"+x+","+y+"L0,0M"+x+",-"+y+"L0,0M-"+m+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(g,f,C){if(u(f))return a;var y=c(1.2*g,2),m=c(1.6*g,2),x=c(.8*g,2);return d(f,C,"M-"+x+","+y+"L0,0M-"+x+",-"+y+"L0,0M"+m+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(g,f,C){if(u(f))return a;var y=c(1.4*g,2);return d(f,C,"M"+y+",0H-"+y)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(g,f,C){if(u(f))return a;var y=c(1.4*g,2);return d(f,C,"M0,"+y+"V-"+y)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M"+y+",-"+y+"L-"+y+","+y)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M"+y+","+y+"L-"+y+",-"+y)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M0,0L-"+y+","+c(2*g,2)+"H"+y+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M0,0L-"+y+",-"+c(2*g,2)+"H"+y+"Z")},noDot:!0},"arrow-left":{n:47,f:function(g,f,C){if(u(f))return a;var y=c(2*g,2),m=c(g,2);return d(f,C,"M0,0L"+y+",-"+m+"V"+m+"Z")},noDot:!0},"arrow-right":{n:48,f:function(g,f,C){if(u(f))return a;var y=c(2*g,2),m=c(g,2);return d(f,C,"M0,0L-"+y+",-"+m+"V"+m+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M-"+y+",0H"+y+"M0,0L-"+y+","+c(2*g,2)+"H"+y+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(g,f,C){if(u(f))return a;var y=c(g,2);return d(f,C,"M-"+y+",0H"+y+"M0,0L-"+y+",-"+c(2*g,2)+"H"+y+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(g,f,C){if(u(f))return a;var y=c(2*g,2),m=c(g,2);return d(f,C,"M0,-"+m+"V"+m+"M0,0L"+y+",-"+m+"V"+m+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(g,f,C){if(u(f))return a;var y=c(2*g,2),m=c(g,2);return d(f,C,"M0,-"+m+"V"+m+"M0,0L-"+y+",-"+m+"V"+m+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(g,f,C){if(u(f))return a;var y=i/2.5,m=2*g*s(y),x=2*g*l(y);return d(f,C,"M0,0L"+-m+","+x+"L"+m+","+x+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(g,f,C){if(u(f))return a;var y=i/4,m=2*g*s(y),x=2*g*l(y);return d(f,C,"M0,0L"+-m+","+x+"A "+2*g+","+2*g+" 0 0 1 "+m+","+x+"Z")},backoff:.4,noDot:!0}}},97644:function(L){L.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"}}}},14880:function(L,T,e){var k=e(38248),v=e(24040),n=e(54460),w=e(3400),b=e(93792);function c(a,t,o,i){var s=t["error_"+i]||{},l=[];if(s.visible&&["linear","log"].indexOf(o.type)!==-1){for(var u=b(s),d=0;d<a.length;d++){var g=a[d],f=g.i;if(f===void 0)f=d;else if(f===null)continue;var C=g[i];if(k(o.c2l(C))){var y=u(C,f);if(k(y[0])&&k(y[1])){var m=g[i+"s"]=C-y[0],x=g[i+"h"]=C+y[1];l.push(m,x)}}}var _=o._id,S=t._extremes[_],O=n.findExtremes(o,l,w.extendFlat({tozero:S.opts.tozero},{padded:!0}));S.min=S.min.concat(O.min),S.max=S.max.concat(O.max)}}L.exports=function(a){for(var t=a.calcdata,o=0;o<t.length;o++){var i=t[o],s=i[0].trace;if(s.visible===!0&&v.traceIs(s,"errorBarsOK")){var l=n.getFromId(a,s.xaxis),u=n.getFromId(a,s.yaxis);c(i,s,l,"x"),c(i,s,u,"y")}}}},93792:function(L){function T(e,k){return e==="percent"?function(v){return Math.abs(v*k/100)}:e==="constant"?function(){return Math.abs(k)}:e==="sqrt"?function(v){return Math.sqrt(Math.abs(v))}:void 0}L.exports=function(e){var k=e.type,v=e.symmetric;if(k==="data"){var n=e.array||[];if(v)return function(a,t){var o=+n[t];return[o,o]};var w=e.arrayminus||[];return function(a,t){var o=+n[t],i=+w[t];return isNaN(o)&&isNaN(i)?[NaN,NaN]:[i||0,o||0]}}var b=T(k,e.value),c=T(k,e.valueminus);return v||e.valueminus===void 0?function(a){var t=b(a);return[t,t]}:function(a){return[c(a),b(a)]}}},65200:function(L,T,e){var k=e(38248),v=e(24040),n=e(3400),w=e(31780),b=e(97644);L.exports=function(c,a,t,o){var i="error_"+o.axis,s=w.newContainer(a,i),l=c[i]||{};function u(C,y){return n.coerce(l,s,b,C,y)}if(u("visible",l.array!==void 0||l.value!==void 0||l.type==="sqrt")!==!1){var d=u("type","array"in l?"data":"percent"),g=!0;d!=="sqrt"&&(g=u("symmetric",!((d==="data"?"arrayminus":"valueminus")in l))),d==="data"?(u("array"),u("traceref"),g||(u("arrayminus"),u("tracerefminus"))):d!=="percent"&&d!=="constant"||(u("value"),g||u("valueminus"));var f="copy_"+o.inherit+"style";o.inherit&&(a["error_"+o.inherit]||{}).visible&&u(f,!(l.color||k(l.thickness)||k(l.width))),o.inherit&&s[f]||(u("color",t),u("thickness"),u("width",v.traceIs(a,"gl3d")?0:4))}}},64968:function(L,T,e){var k=e(3400),v=e(67824).overrideAll,n=e(97644),w={error_x:k.extendFlat({},n),error_y:k.extendFlat({},n)};delete w.error_x.copy_zstyle,delete w.error_y.copy_zstyle,delete w.error_y.copy_ystyle;var b={error_x:k.extendFlat({},n),error_y:k.extendFlat({},n),error_z:k.extendFlat({},n)};delete b.error_x.copy_ystyle,delete b.error_y.copy_ystyle,delete b.error_z.copy_ystyle,delete b.error_z.copy_zstyle,L.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:w,bar:w,histogram:w,scatter3d:v(b,"calc","nested"),scattergl:v(w,"calc","nested")}},supplyDefaults:e(65200),calc:e(14880),makeComputeError:e(93792),plot:e(78512),style:e(92036),hoverInfo:function(c,a,t){(a.error_y||{}).visible&&(t.yerr=c.yh-c.y,a.error_y.symmetric||(t.yerrneg=c.y-c.ys)),(a.error_x||{}).visible&&(t.xerr=c.xh-c.x,a.error_x.symmetric||(t.xerrneg=c.x-c.xs))}}},78512:function(L,T,e){var k=e(33428),v=e(38248),n=e(43616),w=e(43028);L.exports=function(b,c,a,t){var o=a.xaxis,i=a.yaxis,s=t&&t.duration>0,l=b._context.staticPlot;c.each(function(u){var d,g=u[0].trace,f=g.error_x||{},C=g.error_y||{};g.ids&&(d=function(_){return _.id});var y=w.hasMarkers(g)&&g.marker.maxdisplayed>0;C.visible||f.visible||(u=[]);var m=k.select(this).selectAll("g.errorbar").data(u,d);if(m.exit().remove(),u.length){f.visible||m.selectAll("path.xerror").remove(),C.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var x=m.enter().append("g").classed("errorbar",!0);s&&x.style("opacity",0).transition().duration(t.duration).style("opacity",1),n.setClipUrl(m,a.layerClipId,b),m.each(function(_){var S=k.select(this),O=function(A,q,j){var X={x:q.c2p(A.x),y:j.c2p(A.y)};return A.yh!==void 0&&(X.yh=j.c2p(A.yh),X.ys=j.c2p(A.ys),v(X.ys)||(X.noYS=!0,X.ys=j.c2p(A.ys,!0))),A.xh!==void 0&&(X.xh=q.c2p(A.xh),X.xs=q.c2p(A.xs),v(X.xs)||(X.noXS=!0,X.xs=q.c2p(A.xs,!0))),X}(_,o,i);if(!y||_.vis){var h,M=S.select("path.yerror");if(C.visible&&v(O.x)&&v(O.yh)&&v(O.ys)){var N=C.width;h="M"+(O.x-N)+","+O.yh+"h"+2*N+"m-"+N+",0V"+O.ys,O.noYS||(h+="m-"+N+",0h"+2*N),M.size()?s&&(M=M.transition().duration(t.duration).ease(t.easing)):M=S.append("path").style("vector-effect",l?"none":"non-scaling-stroke").classed("yerror",!0),M.attr("d",h)}else M.remove();var P=S.select("path.xerror");if(f.visible&&v(O.y)&&v(O.xh)&&v(O.xs)){var R=(f.copy_ystyle?C:f).width;h="M"+O.xh+","+(O.y-R)+"v"+2*R+"m0,-"+R+"H"+O.xs,O.noXS||(h+="m0,-"+R+"v"+2*R),P.size()?s&&(P=P.transition().duration(t.duration).ease(t.easing)):P=S.append("path").style("vector-effect",l?"none":"non-scaling-stroke").classed("xerror",!0),P.attr("d",h)}else P.remove()}})}})}},92036:function(L,T,e){var k=e(33428),v=e(76308);L.exports=function(n){n.each(function(w){var b=w[0].trace,c=b.error_y||{},a=b.error_x||{},t=k.select(this);t.selectAll("path.yerror").style("stroke-width",c.thickness+"px").call(v.stroke,c.color),a.copy_ystyle&&(a=c),t.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(v.stroke,a.color)})}},55756:function(L,T,e){var k=e(25376),v=e(65460).hoverlabel,n=e(92880).extendFlat;L.exports={hoverlabel:{bgcolor:n({},v.bgcolor,{arrayOk:!0}),bordercolor:n({},v.bordercolor,{arrayOk:!0}),font:k({arrayOk:!0,editType:"none"}),align:n({},v.align,{arrayOk:!0}),namelength:n({},v.namelength,{arrayOk:!0}),editType:"none"}}},55056:function(L,T,e){var k=e(3400),v=e(24040);function n(w,b,c,a){a=a||k.identity,Array.isArray(w)&&(b[0][c]=a(w))}L.exports=function(w){var b=w.calcdata,c=w._fullLayout;function a(l){return function(u){return k.coerceHoverinfo({hoverinfo:u},{_module:l._module},c)}}for(var t=0;t<b.length;t++){var o=b[t],i=o[0].trace;if(!v.traceIs(i,"pie-like")){var s=v.traceIs(i,"2dMap")?n:k.fillArray;s(i.hoverinfo,o,"hi",a(i)),i.hovertemplate&&s(i.hovertemplate,o,"ht"),i.hoverlabel&&(s(i.hoverlabel.bgcolor,o,"hbg"),s(i.hoverlabel.bordercolor,o,"hbc"),s(i.hoverlabel.font.size,o,"hts"),s(i.hoverlabel.font.color,o,"htc"),s(i.hoverlabel.font.family,o,"htf"),s(i.hoverlabel.namelength,o,"hnl"),s(i.hoverlabel.align,o,"hta"))}}}},62376:function(L,T,e){var k=e(24040),v=e(83292).hover;L.exports=function(n,w,b){var c=k.getComponentMethod("annotations","onClick")(n,n._hoverdata);function a(){n.emit("plotly_click",{points:n._hoverdata,event:w})}b!==void 0&&v(n,w,b,!0),n._hoverdata&&w&&w.target&&(c&&c.then?c.then(a):a(),w.stopImmediatePropagation&&w.stopImmediatePropagation())}},92456:function(L){L.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},95448:function(L,T,e){var k=e(3400),v=e(55756),n=e(16132);L.exports=function(w,b,c,a){var t=k.extendFlat({},a.hoverlabel);b.hovertemplate&&(t.namelength=-1),n(w,b,function(o,i){return k.coerce(w,b,v,o,i)},t)}},10624:function(L,T,e){var k=e(3400);T.getSubplot=function(a){return a.subplot||a.xaxis+a.yaxis||a.geo},T.isTraceInSubplots=function(a,t){if(a.type==="splom"){for(var o=a.xaxes||[],i=a.yaxes||[],s=0;s<o.length;s++)for(var l=0;l<i.length;l++)if(t.indexOf(o[s]+i[l])!==-1)return!0;return!1}return t.indexOf(T.getSubplot(a))!==-1},T.flat=function(a,t){for(var o=new Array(a.length),i=0;i<a.length;i++)o[i]=t;return o},T.p2c=function(a,t){for(var o=new Array(a.length),i=0;i<a.length;i++)o[i]=a[i].p2c(t);return o},T.getDistanceFunction=function(a,t,o,i){return a==="closest"?i||T.quadrature(t,o):a.charAt(0)==="x"?t:o},T.getClosest=function(a,t,o){if(o.index!==!1)o.index>=0&&o.index<a.length?o.distance=0:o.index=!1;else for(var i=0;i<a.length;i++){var s=t(a[i]);s<=o.distance&&(o.index=i,o.distance=s)}return o},T.inbox=function(a,t,o){return a*t<0||a===0?o:1/0},T.quadrature=function(a,t){return function(o){var i=a(o),s=t(o);return Math.sqrt(i*i+s*s)}},T.makeEventData=function(a,t,o){var i="index"in a?a.index:a.pointNumber,s={data:t._input,fullData:t,curveNumber:t.index,pointNumber:i};if(t._indexToPoints){var l=t._indexToPoints[i];l.length===1?s.pointIndex=l[0]:s.pointIndices=l}else s.pointIndex=i;return t._module.eventData?s=t._module.eventData(s,a,t,o,i):("xVal"in a?s.x=a.xVal:"x"in a&&(s.x=a.x),"yVal"in a?s.y=a.yVal:"y"in a&&(s.y=a.y),a.xa&&(s.xaxis=a.xa),a.ya&&(s.yaxis=a.ya),a.zLabelVal!==void 0&&(s.z=a.zLabelVal)),T.appendArrayPointValue(s,t,i),s},T.appendArrayPointValue=function(a,t,o){var i=t._arrayAttrs;if(i)for(var s=0;s<i.length;s++){var l=i[s],u=n(l);if(a[u]===void 0){var d=w(k.nestedProperty(t,l).get(),o);d!==void 0&&(a[u]=d)}}},T.appendArrayMultiPointValues=function(a,t,o){var i=t._arrayAttrs;if(i)for(var s=0;s<i.length;s++){var l=i[s],u=n(l);if(a[u]===void 0){for(var d=k.nestedProperty(t,l).get(),g=new Array(o.length),f=0;f<o.length;f++)g[f]=w(d,o[f]);a[u]=g}}};var v={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function n(a){return v[a]||a}function w(a,t){return Array.isArray(t)?Array.isArray(a)&&Array.isArray(a[t[0]])?a[t[0]][t[1]]:void 0:a[t]}var b={x:!0,y:!0},c={"x unified":!0,"y unified":!0};T.isUnifiedHover=function(a){return typeof a=="string"&&!!c[a]},T.isXYhover=function(a){return typeof a=="string"&&!!b[a]}},83292:function(L,T,e){var k=e(33428),v=e(38248),n=e(49760),w=e(3400),b=w.strTranslate,c=w.strRotate,a=e(95924),t=e(72736),o=e(72213),i=e(43616),s=e(76308),l=e(86476),u=e(54460),d=e(24040),g=e(10624),f=e(92456),C=e(77864),y=e(31140),m=f.YANGLE,x=Math.PI*m/180,_=1/Math.sin(x),S=Math.cos(x),O=Math.sin(x),h=f.HOVERARROWSIZE,M=f.HOVERTEXTPAD,N={box:!0,ohlc:!0,violin:!0,candlestick:!0},P={scatter:!0,scattergl:!0,splom:!0};function R($){return[$.trace.index,$.index,$.x0,$.y0,$.name,$.attr,$.xa?$.xa._id:"",$.ya?$.ya._id:""].join(",")}T.hover=function($,te,ae,ce){$=w.getGraphDiv($);var ue=te.target;w.throttle($._fullLayout._uid+f.HOVERID,f.HOVERMINTIME,function(){(function(de,me,be,_e,we){be||(be="xy");var Ce=Array.isArray(be)?be:[be],Se=de._fullLayout,Pe=Se._plots||[],Ne=Pe[be],Oe=Se._has("cartesian");if(Ne){var pe=Ne.overlays.map(function(Zt){return Zt.id});Ce=Ce.concat(pe)}for(var fe=Ce.length,xe=new Array(fe),ze=new Array(fe),Le=!1,Ue=0;Ue<fe;Ue++){var Re=Ce[Ue];if(Pe[Re])Le=!0,xe[Ue]=Pe[Re].xaxis,ze[Ue]=Pe[Re].yaxis;else{if(!Se[Re]||!Se[Re]._subplot)return void w.warn("Unrecognized subplot: "+Re);var Fe=Se[Re]._subplot;xe[Ue]=Fe.xaxis,ze[Ue]=Fe.yaxis}}var ve=me.hovermode||Se.hovermode;if(ve&&!Le&&(ve="closest"),["x","y","closest","x unified","y unified"].indexOf(ve)===-1||!de.calcdata||de.querySelector(".zoombox")||de._dragging)return l.unhoverRaw(de,me);var ke=Se.hoverdistance;ke===-1&&(ke=1/0);var Ee=Se.spikedistance;Ee===-1&&(Ee=1/0);var je,Be,Ie,Ze,He,at,ft,ut,_t,Nt,Tt,st,lt,Vt=[],jt=[],Kt={hLinePoint:null,vLinePoint:null},It=!1;if(Array.isArray(me))for(ve="array",Ie=0;Ie<me.length;Ie++)(He=de.calcdata[me[Ie].curveNumber||0])&&(at=He[0].trace,He[0].trace.hoverinfo!=="skip"&&(jt.push(He),at.orientation==="h"&&(It=!0)));else{for(Ze=0;Ze<de.calcdata.length;Ze++)He=de.calcdata[Ze],(at=He[0].trace).hoverinfo!=="skip"&&g.isTraceInSubplots(at,Ce)&&(jt.push(He),at.orientation==="h"&&(It=!0));var $e,tt;if(we){if(a.triggerHandler(de,"plotly_beforehover",me)===!1)return;var Xe=we.getBoundingClientRect();$e=me.clientX-Xe.left,tt=me.clientY-Xe.top,Se._calcInverseTransform(de);var et=w.apply3DTransform(Se._invTransform)($e,tt);if($e=et[0],tt=et[1],$e<0||$e>xe[0]._length||tt<0||tt>ze[0]._length)return l.unhoverRaw(de,me)}else $e="xpx"in me?me.xpx:xe[0]._length/2,tt="ypx"in me?me.ypx:ze[0]._length/2;if(me.pointerX=$e+xe[0]._offset,me.pointerY=tt+ze[0]._offset,je="xval"in me?g.flat(Ce,me.xval):g.p2c(xe,$e),Be="yval"in me?g.flat(Ce,me.yval):g.p2c(ze,tt),!v(je[0])||!v(Be[0]))return w.warn("Fx.hover failed",me,de),l.unhoverRaw(de,me)}var ht=1/0;function dt(Zt,pn){for(Ze=0;Ze<jt.length;Ze++)if((He=jt[Ze])&&He[0]&&He[0].trace&&(at=He[0].trace).visible===!0&&at._length!==0&&["carpet","contourcarpet"].indexOf(at._module.name)===-1){if(at.type==="splom"?ft=Ce[ut=0]:(ft=g.getSubplot(at),ut=Ce.indexOf(ft)),_t=ve,g.isUnifiedHover(_t)&&(_t=_t.charAt(0)),st={cd:He,trace:at,xa:xe[ut],ya:ze[ut],maxHoverDistance:ke,maxSpikeDistance:Ee,index:!1,distance:Math.min(ht,ke),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:s.defaultLine,name:at.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},Se[ft]&&(st.subplot=Se[ft]._subplot),Se._splomScenes&&Se._splomScenes[at.uid]&&(st.scene=Se._splomScenes[at.uid]),lt=Vt.length,_t==="array"){var Ln=me[Ze];"pointNumber"in Ln?(st.index=Ln.pointNumber,_t="closest"):(_t="","xval"in Ln&&(Nt=Ln.xval,_t="x"),"yval"in Ln&&(Tt=Ln.yval,_t=_t?"closest":"y"))}else Zt!==void 0&&pn!==void 0?(Nt=Zt,Tt=pn):(Nt=je[ut],Tt=Be[ut]);if(ke!==0)if(at._module&&at._module.hoverPoints){var Tn=at._module.hoverPoints(st,Nt,Tt,_t,{finiteRange:!0,hoverLayer:Se._hoverlayer});if(Tn)for(var qn,rr=0;rr<Tn.length;rr++)qn=Tn[rr],v(qn.x0)&&v(qn.y0)&&Vt.push(W(qn,ve))}else w.log("Unrecognized trace type in hover:",at);if(ve==="closest"&&Vt.length>lt&&(Vt.splice(0,lt),ht=Vt[0].distance),Oe&&Ee!==0&&Vt.length===0){st.distance=Ee,st.index=!1;var Zn=at._module.hoverPoints(st,Nt,Tt,"closest",{hoverLayer:Se._hoverlayer});if(Zn&&(Zn=Zn.filter(function(tn){return tn.spikeDistance<=Ee})),Zn&&Zn.length){var Yn,gr=Zn.filter(function(tn){return tn.xa.showspikes&&tn.xa.spikesnap!=="hovered data"});if(gr.length){var en=gr[0];v(en.x0)&&v(en.y0)&&(Yn=Ge(en),(!Kt.vLinePoint||Kt.vLinePoint.spikeDistance>Yn.spikeDistance)&&(Kt.vLinePoint=Yn))}var kn=Zn.filter(function(tn){return tn.ya.showspikes&&tn.ya.spikesnap!=="hovered data"});if(kn.length){var qt=kn[0];v(qt.x0)&&v(qt.y0)&&(Yn=Ge(qt),(!Kt.hLinePoint||Kt.hLinePoint.spikeDistance>Yn.spikeDistance)&&(Kt.hLinePoint=Yn))}}}}}function De(Zt,pn,Ln){for(var Tn,qn=null,rr=1/0,Zn=0;Zn<Zt.length;Zn++)Tn=Zt[Zn].spikeDistance,Ln&&Zn===0&&(Tn=-1/0),Tn<=rr&&Tn<=pn&&(qn=Zt[Zn],rr=Tn);return qn}function Ge(Zt){return Zt?{xa:Zt.xa,ya:Zt.ya,x:Zt.xSpike!==void 0?Zt.xSpike:(Zt.x0+Zt.x1)/2,y:Zt.ySpike!==void 0?Zt.ySpike:(Zt.y0+Zt.y1)/2,distance:Zt.distance,spikeDistance:Zt.spikeDistance,curveNumber:Zt.trace.index,color:Zt.color,pointNumber:Zt.index}:null}dt();var pt={fullLayout:Se,container:Se._hoverlayer,event:me},nt=de._spikepoints,bt={vLinePoint:Kt.vLinePoint,hLinePoint:Kt.hLinePoint};de._spikepoints=bt;var wt=function(){Vt.sort(function(Zt,pn){return Zt.distance-pn.distance}),Vt=function(Zt,pn){for(var Ln=pn.charAt(0),Tn=[],qn=[],rr=[],Zn=0;Zn<Zt.length;Zn++){var Yn=Zt[Zn];d.traceIs(Yn.trace,"bar-like")||d.traceIs(Yn.trace,"box-violin")?rr.push(Yn):Yn.trace[Ln+"period"]?qn.push(Yn):Tn.push(Yn)}return Tn.concat(qn).concat(rr)}(Vt,ve)};wt();var St=ve.charAt(0),vt=(St==="x"||St==="y")&&Vt[0]&&P[Vt[0].trace.type];if(Oe&&Ee!==0&&Vt.length!==0){var Pt=De(Vt.filter(function(Zt){return Zt.ya.showspikes}),Ee,vt);Kt.hLinePoint=Ge(Pt);var Lt=De(Vt.filter(function(Zt){return Zt.xa.showspikes}),Ee,vt);Kt.vLinePoint=Ge(Lt)}if(Vt.length===0){var Ct=l.unhoverRaw(de,me);return!Oe||Kt.hLinePoint===null&&Kt.vLinePoint===null||B(nt)&&Y(de,Kt,pt),Ct}if(Oe&&B(nt)&&Y(de,Kt,pt),g.isXYhover(_t)&&Vt[0].length!==0&&Vt[0].trace.type!=="splom"){var Rt=Vt[0],At=(Vt=N[Rt.trace.type]?Vt.filter(function(Zt){return Zt.trace.index===Rt.trace.index}):[Rt]).length;dt(J("x",Rt,Se),J("y",Rt,Se));var Bt,nn=[],hn={},Ht=0,Qt=function(Zt){var pn=N[Zt.trace.type]?R(Zt):Zt.trace.index;if(hn[pn]){var Ln=hn[pn]-1,Tn=nn[Ln];Ln>0&&Math.abs(Zt.distance)<Math.abs(Tn.distance)&&(nn[Ln]=Zt)}else Ht++,hn[pn]=Ht,nn.push(Zt)};for(Bt=0;Bt<At;Bt++)Qt(Vt[Bt]);for(Bt=Vt.length-1;Bt>At-1;Bt--)Qt(Vt[Bt]);Vt=nn,wt()}var un=de._hoverdata,In=[],zn=se(de),wn=re(de);for(Ie=0;Ie<Vt.length;Ie++){var rn=Vt[Ie],vn=g.makeEventData(rn,rn.trace,rn.cd);if(rn.hovertemplate!==!1){var dn=!1;rn.cd[rn.index]&&rn.cd[rn.index].ht&&(dn=rn.cd[rn.index].ht),rn.hovertemplate=dn||rn.trace.hovertemplate||!1}if(rn.xa&&rn.ya){var _n=rn.x0+rn.xa._offset,Un=rn.x1+rn.xa._offset,An=rn.y0+rn.ya._offset,Wn=rn.y1+rn.ya._offset,Gn=Math.min(_n,Un),jn=Math.max(_n,Un),er=Math.min(An,Wn),Qn=Math.max(An,Wn);vn.bbox={x0:Gn+wn,x1:jn+wn,y0:er+zn,y1:Qn+zn}}rn.eventData=[vn],In.push(vn)}de._hoverdata=In;var vr=ve==="y"&&(jt.length>1||Vt.length>1)||ve==="closest"&&It&&Vt.length>1,wr=s.combine(Se.plot_bgcolor||s.background,Se.paper_bgcolor),Sr=q(Vt,{gd:de,hovermode:ve,rotateLabels:vr,bgColor:wr,container:Se._hoverlayer,outerContainer:Se._paper.node(),commonLabelOpts:Se.hoverlabel,hoverdistance:Se.hoverdistance}),dr=Sr.hoverLabels;if(g.isUnifiedHover(ve)||(function(Zt,pn,Ln,Tn){var qn,rr,Zn,Yn,gr,en,kn,qt=pn?"xa":"ya",tn=pn?"ya":"xa",cn=0,On=1,Cn=Zt.size(),Mn=new Array(Cn),xn=0,sn=Tn.minX,ln=Tn.maxX,fn=Tn.minY,gn=Tn.maxY,Fn=function(_r){return _r*Ln._invScaleX},Bn=function(_r){return _r*Ln._invScaleY};function $n(_r){var Nr=_r[0],xr=_r[_r.length-1];if(rr=Nr.pmin-Nr.pos-Nr.dp+Nr.size,Zn=xr.pos+xr.dp+xr.size-Nr.pmax,rr>.01){for(gr=_r.length-1;gr>=0;gr--)_r[gr].dp+=rr;qn=!1}if(!(Zn<.01)){if(rr<-.01){for(gr=_r.length-1;gr>=0;gr--)_r[gr].dp-=Zn;qn=!1}if(qn){var Lr=0;for(Yn=0;Yn<_r.length;Yn++)(en=_r[Yn]).pos+en.dp+en.size>Nr.pmax&&Lr++;for(Yn=_r.length-1;Yn>=0&&!(Lr<=0);Yn--)(en=_r[Yn]).pos>Nr.pmax-1&&(en.del=!0,Lr--);for(Yn=0;Yn<_r.length&&!(Lr<=0);Yn++)if((en=_r[Yn]).pos<Nr.pmin+1)for(en.del=!0,Lr--,Zn=2*en.size,gr=_r.length-1;gr>=0;gr--)_r[gr].dp-=Zn;for(Yn=_r.length-1;Yn>=0&&!(Lr<=0);Yn--)(en=_r[Yn]).pos+en.dp+en.size>Nr.pmax&&(en.del=!0,Lr--)}}}for(Zt.each(function(_r){var Nr=_r[qt],xr=_r[tn],Lr=Nr._id.charAt(0)==="x",Zr=Nr.range;xn===0&&Zr&&Zr[0]>Zr[1]!==Lr&&(On=-1);var ca=0,Qa=Lr?Ln.width:Ln.height;if(Ln.hovermode==="x"||Ln.hovermode==="y"){var no,Fo,Ja=X(_r,pn),Ra=_r.anchor,xi=Ra==="end"?-1:1;if(Ra==="middle")Fo=(no=_r.crossPos+(Lr?Bn(Ja.y-_r.by/2):Fn(_r.bx/2+_r.tx2width/2)))+(Lr?Bn(_r.by):Fn(_r.bx));else if(Lr)Fo=(no=_r.crossPos+Bn(h+Ja.y)-Bn(_r.by/2-h))+Bn(_r.by);else{var ko=Fn(xi*h+Ja.x),Ll=ko+Fn(xi*_r.bx);no=_r.crossPos+Math.min(ko,Ll),Fo=_r.crossPos+Math.max(ko,Ll)}Lr?fn!==void 0&&gn!==void 0&&Math.min(Fo,gn)-Math.max(no,fn)>1&&(xr.side==="left"?(ca=xr._mainLinePosition,Qa=Ln.width):Qa=xr._mainLinePosition):sn!==void 0&&ln!==void 0&&Math.min(Fo,ln)-Math.max(no,sn)>1&&(xr.side==="top"?(ca=xr._mainLinePosition,Qa=Ln.height):Qa=xr._mainLinePosition)}Mn[xn++]=[{datum:_r,traceIndex:_r.trace.index,dp:0,pos:_r.pos,posref:_r.posref,size:_r.by*(Lr?_:1)/2,pmin:ca,pmax:Qa}]}),Mn.sort(function(_r,Nr){return _r[0].posref-Nr[0].posref||On*(Nr[0].traceIndex-_r[0].traceIndex)});!qn&&cn<=Cn;){for(cn++,qn=!0,Yn=0;Yn<Mn.length-1;){var tr=Mn[Yn],pr=Mn[Yn+1],sr=tr[tr.length-1],br=pr[0];if((rr=sr.pos+sr.dp+sr.size-br.pos-br.dp+br.size)>.01&&sr.pmin===br.pmin&&sr.pmax===br.pmax){for(gr=pr.length-1;gr>=0;gr--)pr[gr].dp+=rr;for(tr.push.apply(tr,pr),Mn.splice(Yn+1,1),kn=0,gr=tr.length-1;gr>=0;gr--)kn+=tr[gr].dp;for(Zn=kn/tr.length,gr=tr.length-1;gr>=0;gr--)tr[gr].dp-=Zn;qn=!1}else Yn++}Mn.forEach($n)}for(Yn=Mn.length-1;Yn>=0;Yn--){var mr=Mn[Yn];for(gr=mr.length-1;gr>=0;gr--){var lr=mr[gr],Mr=lr.datum;Mr.offset=lr.dp,Mr.del=lr.del}}}(dr,vr,Se,Sr.commonLabelBoundingBox),F(dr,vr,Se._invScaleX,Se._invScaleY)),we&&we.tagName){var Gr=d.getComponentMethod("annotations","hasClickToShow")(de,In);o(k.select(we),Gr?"pointer":"")}we&&!_e&&function(Zt,pn,Ln){if(!Ln||Ln.length!==Zt._hoverdata.length)return!0;for(var Tn=Ln.length-1;Tn>=0;Tn--){var qn=Ln[Tn],rr=Zt._hoverdata[Tn];if(qn.curveNumber!==rr.curveNumber||String(qn.pointNumber)!==String(rr.pointNumber)||String(qn.pointNumbers)!==String(rr.pointNumbers))return!0}return!1}(de,0,un)&&(un&&de.emit("plotly_unhover",{event:me,points:un}),de.emit("plotly_hover",{event:me,points:de._hoverdata,xaxes:xe,yaxes:ze,xvals:je,yvals:Be}))})($,te,ae,ce,ue)})},T.loneHover=function($,te){var ae=!0;Array.isArray($)||(ae=!1,$=[$]);var ce=te.gd,ue=se(ce),de=re(ce),me=q($.map(function(we){var Ce=we._x0||we.x0||we.x||0,Se=we._x1||we.x1||we.x||0,Pe=we._y0||we.y0||we.y||0,Ne=we._y1||we.y1||we.y||0,Oe=we.eventData;if(Oe){var pe=Math.min(Ce,Se),fe=Math.max(Ce,Se),xe=Math.min(Pe,Ne),ze=Math.max(Pe,Ne),Le=we.trace;if(d.traceIs(Le,"gl3d")){var Ue=ce._fullLayout[Le.scene]._scene.container,Re=Ue.offsetLeft,Fe=Ue.offsetTop;pe+=Re,fe+=Re,xe+=Fe,ze+=Fe}Oe.bbox={x0:pe+de,x1:fe+de,y0:xe+ue,y1:ze+ue},te.inOut_bbox&&te.inOut_bbox.push(Oe.bbox)}else Oe=!1;return{color:we.color||s.defaultLine,x0:we.x0||we.x||0,x1:we.x1||we.x||0,y0:we.y0||we.y||0,y1:we.y1||we.y||0,xLabel:we.xLabel,yLabel:we.yLabel,zLabel:we.zLabel,text:we.text,name:we.name,idealAlign:we.idealAlign,borderColor:we.borderColor,fontFamily:we.fontFamily,fontSize:we.fontSize,fontColor:we.fontColor,nameLength:we.nameLength,textAlign:we.textAlign,trace:we.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:we.hovertemplate||!1,hovertemplateLabels:we.hovertemplateLabels||!1,eventData:Oe}}),{gd:ce,hovermode:"closest",rotateLabels:!1,bgColor:te.bgColor||s.background,container:k.select(te.container),outerContainer:te.outerContainer||te.container}).hoverLabels,be=0,_e=0;return me.sort(function(we,Ce){return we.y0-Ce.y0}).each(function(we,Ce){var Se=we.y0-we.by/2;we.offset=Se-5<be?be-Se+5:0,be=Se+we.by+we.offset,Ce===te.anchorIndex&&(_e=we.offset)}).each(function(we){we.offset-=_e}),F(me,!1,ce._fullLayout._invScaleX,ce._fullLayout._invScaleY),ae?me:me.node()};var A=/<extra>([\s\S]*)<\/extra>/;function q($,te){var ae=te.gd,ce=ae._fullLayout,ue=te.hovermode,de=te.rotateLabels,me=te.bgColor,be=te.container,_e=te.outerContainer,we=te.commonLabelOpts||{};if($.length===0)return[[]];var Ce=te.fontFamily||f.HOVERFONT,Se=te.fontSize||f.HOVERFONTSIZE,Pe=$[0],Ne=Pe.xa,Oe=Pe.ya,pe=ue.charAt(0),fe=pe+"Label",xe=Pe[fe];if(xe===void 0&&Ne.type==="multicategory")for(var ze=0;ze<$.length&&(xe=$[ze][fe])===void 0;ze++);var Le=ne(ae,_e),Ue=Le.top,Re=Le.width,Fe=Le.height,ve=xe!==void 0&&Pe.distance<=te.hoverdistance&&(ue==="x"||ue==="y");if(ve){var ke,Ee,je=!0;for(ke=0;ke<$.length;ke++)if(je&&$[ke].zLabel===void 0&&(je=!1),Ee=$[ke].hoverinfo||$[ke].trace.hoverinfo){var Be=Array.isArray(Ee)?Ee:Ee.split("+");if(Be.indexOf("all")===-1&&Be.indexOf(ue)===-1){ve=!1;break}}je&&(ve=!1)}var Ie=be.selectAll("g.axistext").data(ve?[0]:[]);Ie.enter().append("g").classed("axistext",!0),Ie.exit().remove();var Ze={minX:0,maxX:0,minY:0,maxY:0};if(Ie.each(function(){var Ct=k.select(this),Rt=w.ensureSingle(Ct,"path","",function(er){er.style({"stroke-width":"1px"})}),At=w.ensureSingle(Ct,"text","",function(er){er.attr("data-notex",1)}),Bt=we.bgcolor||s.defaultLine,nn=we.bordercolor||s.contrast(Bt),hn=s.contrast(Bt),Ht={family:we.font.family||Ce,size:we.font.size||Se,color:we.font.color||hn};Rt.style({fill:Bt,stroke:nn}),At.text(xe).call(i.font,Ht).call(t.positionText,0,0).call(t.convertToTspans,ae),Ct.attr("transform","");var Qt,un,In=ne(ae,At.node());if(ue==="x"){var zn=Ne.side==="top"?"-":"";At.attr("text-anchor","middle").call(t.positionText,0,Ne.side==="top"?Ue-In.bottom-h-M:Ue-In.top+h+M),Qt=Ne._offset+(Pe.x0+Pe.x1)/2,un=Oe._offset+(Ne.side==="top"?0:Oe._length);var wn=In.width/2+M;Qt<wn?(Qt=wn,Rt.attr("d","M-"+(wn-h)+",0L-"+(wn-2*h)+","+zn+h+"H"+wn+"v"+zn+(2*M+In.height)+"H-"+wn+"V"+zn+h+"Z")):Qt>ce.width-wn?(Qt=ce.width-wn,Rt.attr("d","M"+(wn-h)+",0L"+wn+","+zn+h+"v"+zn+(2*M+In.height)+"H-"+wn+"V"+zn+h+"H"+(wn-2*h)+"Z")):Rt.attr("d","M0,0L"+h+","+zn+h+"H"+wn+"v"+zn+(2*M+In.height)+"H-"+wn+"V"+zn+h+"H-"+h+"Z"),Ze.minX=Qt-wn,Ze.maxX=Qt+wn,Ne.side==="top"?(Ze.minY=un-(2*M+In.height),Ze.maxY=un-M):(Ze.minY=un+M,Ze.maxY=un+(2*M+In.height))}else{var rn,vn,dn;Oe.side==="right"?(rn="start",vn=1,dn="",Qt=Ne._offset+Ne._length):(rn="end",vn=-1,dn="-",Qt=Ne._offset),un=Oe._offset+(Pe.y0+Pe.y1)/2,At.attr("text-anchor",rn),Rt.attr("d","M0,0L"+dn+h+","+h+"V"+(M+In.height/2)+"h"+dn+(2*M+In.width)+"V-"+(M+In.height/2)+"H"+dn+h+"V-"+h+"Z"),Ze.minY=un-(M+In.height/2),Ze.maxY=un+(M+In.height/2),Oe.side==="right"?(Ze.minX=Qt+h,Ze.maxX=Qt+h+(2*M+In.width)):(Ze.minX=Qt-h-(2*M+In.width),Ze.maxX=Qt-h);var _n,Un=In.height/2,An=Ue-In.top-Un,Wn="clip"+ce._uid+"commonlabel"+Oe._id;if(Qt<In.width+2*M+h){_n="M-"+(h+M)+"-"+Un+"h-"+(In.width-M)+"V"+Un+"h"+(In.width-M)+"Z";var Gn=In.width-Qt+M;t.positionText(At,Gn,An),rn==="end"&&At.selectAll("tspan").each(function(){var er=k.select(this),Qn=i.tester.append("text").text(er.text()).call(i.font,Ht),vr=ne(ae,Qn.node());Math.round(vr.width)<Math.round(In.width)&&er.attr("x",Gn-vr.width),Qn.remove()})}else t.positionText(At,vn*(M+h),An),_n=null;var jn=ce._topclips.selectAll("#"+Wn).data(_n?[0]:[]);jn.enter().append("clipPath").attr("id",Wn).append("path"),jn.exit().remove(),jn.select("path").attr("d",_n),i.setClipUrl(At,_n?Wn:null,ae)}Ct.attr("transform",b(Qt,un))}),g.isUnifiedHover(ue)){be.selectAll("g.hovertext").remove();var He=$.filter(function(Ct){return Ct.hoverinfo!=="none"});if(He.length===0)return[];var at=ce.hoverlabel,ft=at.font,ut={showlegend:!0,legend:{title:{text:xe,font:ft},font:ft,bgcolor:at.bgcolor,bordercolor:at.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:ce.legend?ce.legend.traceorder:void 0,orientation:"v"}},_t={font:ft};C(ut,_t,ae._fullData);var Nt=_t.legend;Nt.entries=[];for(var Tt=0;Tt<He.length;Tt++){var st=He[Tt];if(st.hoverinfo!=="none"){var lt=j(st,!0,ue,ce,xe),Vt=lt[0],jt=lt[1];st.name=jt,st.text=jt!==""?jt+" : "+Vt:Vt;var Kt=st.cd[st.index];Kt&&(Kt.mc&&(st.mc=Kt.mc),Kt.mcc&&(st.mc=Kt.mcc),Kt.mlc&&(st.mlc=Kt.mlc),Kt.mlcc&&(st.mlc=Kt.mlcc),Kt.mlw&&(st.mlw=Kt.mlw),Kt.mrc&&(st.mrc=Kt.mrc),Kt.dir&&(st.dir=Kt.dir)),st._distinct=!0,Nt.entries.push([st])}}Nt.entries.sort(function(Ct,Rt){return Ct[0].trace.index-Rt[0].trace.index}),Nt.layer=be,Nt._inHover=!0,Nt._groupTitleFont=at.grouptitlefont,y(ae,Nt);var It,$e,tt,Xe,et=be.select("g.legend"),ht=ne(ae,et.node()),dt=ht.width+2*M,De=ht.height+2*M,Ge=He[0],pt=(Ge.x0+Ge.x1)/2,nt=(Ge.y0+Ge.y1)/2,bt=!(d.traceIs(Ge.trace,"bar-like")||d.traceIs(Ge.trace,"box-violin"));pe==="y"?bt?($e=nt-M,It=nt+M):($e=Math.min.apply(null,He.map(function(Ct){return Math.min(Ct.y0,Ct.y1)})),It=Math.max.apply(null,He.map(function(Ct){return Math.max(Ct.y0,Ct.y1)}))):$e=It=w.mean(He.map(function(Ct){return(Ct.y0+Ct.y1)/2}))-De/2,pe==="x"?bt?(tt=pt+M,Xe=pt-M):(tt=Math.max.apply(null,He.map(function(Ct){return Math.max(Ct.x0,Ct.x1)})),Xe=Math.min.apply(null,He.map(function(Ct){return Math.min(Ct.x0,Ct.x1)}))):tt=Xe=w.mean(He.map(function(Ct){return(Ct.x0+Ct.x1)/2}))-dt/2;var wt,St,vt=Ne._offset,Pt=Oe._offset;return Xe+=vt-dt,$e+=Pt-De,wt=(tt+=vt)+dt<Re&&tt>=0?tt:Xe+dt<Re&&Xe>=0?Xe:vt+dt<Re?vt:tt-pt<pt-Xe+dt?Re-dt:0,wt+=M,St=(It+=Pt)+De<Fe&&It>=0?It:$e+De<Fe&&$e>=0?$e:Pt+De<Fe?Pt:It-nt<nt-$e+De?Fe-De:0,St+=M,et.attr("transform",b(wt-1,St-1)),et}var Lt=be.selectAll("g.hovertext").data($,function(Ct){return R(Ct)});return Lt.enter().append("g").classed("hovertext",!0).each(function(){var Ct=k.select(this);Ct.append("rect").call(s.fill,s.addOpacity(me,.8)),Ct.append("text").classed("name",!0),Ct.append("path").style("stroke-width","1px"),Ct.append("text").classed("nums",!0).call(i.font,Ce,Se)}),Lt.exit().remove(),Lt.each(function(Ct){var Rt=k.select(this).attr("transform",""),At=Ct.color;Array.isArray(At)&&(At=At[Ct.eventData[0].pointNumber]);var Bt=Ct.bgcolor||At,nn=s.combine(s.opacity(Bt)?Bt:s.defaultLine,me),hn=s.combine(s.opacity(At)?At:s.defaultLine,me),Ht=Ct.borderColor||s.contrast(nn),Qt=j(Ct,ve,ue,ce,xe,Rt),un=Qt[0],In=Qt[1],zn=Rt.select("text.nums").call(i.font,Ct.fontFamily||Ce,Ct.fontSize||Se,Ct.fontColor||Ht).text(un).attr("data-notex",1).call(t.positionText,0,0).call(t.convertToTspans,ae),wn=Rt.select("text.name"),rn=0,vn=0;if(In&&In!==un){wn.call(i.font,Ct.fontFamily||Ce,Ct.fontSize||Se,hn).text(In).attr("data-notex",1).call(t.positionText,0,0).call(t.convertToTspans,ae);var dn=ne(ae,wn.node());rn=dn.width+2*M,vn=dn.height+2*M}else wn.remove(),Rt.select("rect").remove();Rt.select("path").style({fill:nn,stroke:Ht});var _n=Ct.xa._offset+(Ct.x0+Ct.x1)/2,Un=Ct.ya._offset+(Ct.y0+Ct.y1)/2,An=Math.abs(Ct.x1-Ct.x0),Wn=Math.abs(Ct.y1-Ct.y0),Gn=ne(ae,zn.node()),jn=Gn.width/ce._invScaleX,er=Gn.height/ce._invScaleY;Ct.ty0=(Ue-Gn.top)/ce._invScaleY,Ct.bx=jn+2*M,Ct.by=Math.max(er+2*M,vn),Ct.anchor="start",Ct.txwidth=jn,Ct.tx2width=rn,Ct.offset=0;var Qn,vr,wr=(jn+h+M+rn)*ce._invScaleX;if(de)Ct.pos=_n,Qn=Un+Wn/2+wr<=Fe,vr=Un-Wn/2-wr>=0,Ct.idealAlign!=="top"&&Qn||!vr?Qn?(Un+=Wn/2,Ct.anchor="start"):Ct.anchor="middle":(Un-=Wn/2,Ct.anchor="end"),Ct.crossPos=Un;else{if(Ct.pos=Un,Qn=_n+An/2+wr<=Re,vr=_n-An/2-wr>=0,Ct.idealAlign!=="left"&&Qn||!vr)if(Qn)_n+=An/2,Ct.anchor="start";else{Ct.anchor="middle";var Sr=wr/2,dr=_n+Sr-Re,Gr=_n-Sr;dr>0&&(_n-=dr),Gr<0&&(_n+=-Gr)}else _n-=An/2,Ct.anchor="end";Ct.crossPos=_n}zn.attr("text-anchor",Ct.anchor),rn&&wn.attr("text-anchor",Ct.anchor),Rt.attr("transform",b(_n,Un)+(de?c(m):""))}),{hoverLabels:Lt,commonLabelBoundingBox:Ze}}function j($,te,ae,ce,ue,de){var me="",be="";$.nameOverride!==void 0&&($.name=$.nameOverride),$.name&&($.trace._meta&&($.name=w.templateString($.name,$.trace._meta)),me=G($.name,$.nameLength));var _e=ae.charAt(0),we=_e==="x"?"y":"x";$.zLabel!==void 0?($.xLabel!==void 0&&(be+="x: "+$.xLabel+"<br>"),$.yLabel!==void 0&&(be+="y: "+$.yLabel+"<br>"),$.trace.type!=="choropleth"&&$.trace.type!=="choroplethmapbox"&&(be+=(be?"z: ":"")+$.zLabel)):te&&$[_e+"Label"]===ue?be=$[we+"Label"]||"":$.xLabel===void 0?$.yLabel!==void 0&&$.trace.type!=="scattercarpet"&&(be=$.yLabel):be=$.yLabel===void 0?$.xLabel:"("+$.xLabel+", "+$.yLabel+")",!$.text&&$.text!==0||Array.isArray($.text)||(be+=(be?"<br>":"")+$.text),$.extraText!==void 0&&(be+=(be?"<br>":"")+$.extraText),de&&be===""&&!$.hovertemplate&&(me===""&&de.remove(),be=me);var Ce=$.hovertemplate||!1;if(Ce){var Se=$.hovertemplateLabels||$;$[_e+"Label"]!==ue&&(Se[_e+"other"]=Se[_e+"Val"],Se[_e+"otherLabel"]=Se[_e+"Label"]),be=(be=w.hovertemplateString(Ce,Se,ce._d3locale,$.eventData[0]||{},$.trace._meta)).replace(A,function(Pe,Ne){return me=G(Ne,$.nameLength),""})}return[be,me]}function X($,te){var ae=0,ce=$.offset;return te&&(ce*=-O,ae=$.offset*S),{x:ae,y:ce}}function F($,te,ae,ce){var ue=function(me){return me*ae},de=function(me){return me*ce};$.each(function(me){var be=k.select(this);if(me.del)return be.remove();var _e,we,Ce,Se,Pe=be.select("text.nums"),Ne=me.anchor,Oe=Ne==="end"?-1:1,pe=(Se=(Ce=(we={start:1,end:-1,middle:0}[(_e=me).anchor])*(h+M))+we*(_e.txwidth+M),_e.anchor==="middle"&&(Ce-=_e.tx2width/2,Se+=_e.txwidth/2+M),{alignShift:we,textShiftX:Ce,text2ShiftX:Se}),fe=X(me,te),xe=fe.x,ze=fe.y,Le=Ne==="middle";be.select("path").attr("d",Le?"M-"+ue(me.bx/2+me.tx2width/2)+","+de(ze-me.by/2)+"h"+ue(me.bx)+"v"+de(me.by)+"h-"+ue(me.bx)+"Z":"M0,0L"+ue(Oe*h+xe)+","+de(h+ze)+"v"+de(me.by/2-h)+"h"+ue(Oe*me.bx)+"v-"+de(me.by)+"H"+ue(Oe*h+xe)+"V"+de(ze-h)+"Z");var Ue=xe+pe.textShiftX,Re=ze+me.ty0-me.by/2+M,Fe=me.textAlign||"auto";Fe!=="auto"&&(Fe==="left"&&Ne!=="start"?(Pe.attr("text-anchor","start"),Ue=Le?-me.bx/2-me.tx2width/2+M:-me.bx-M):Fe==="right"&&Ne!=="end"&&(Pe.attr("text-anchor","end"),Ue=Le?me.bx/2-me.tx2width/2-M:me.bx+M)),Pe.call(t.positionText,ue(Ue),de(Re)),me.tx2width&&(be.select("text.name").call(t.positionText,ue(pe.text2ShiftX+pe.alignShift*M+xe),de(ze+me.ty0-me.by/2+M)),be.select("rect").call(i.setRect,ue(pe.text2ShiftX+(pe.alignShift-1)*me.tx2width/2+xe),de(ze-me.by/2-1),ue(me.tx2width),de(me.by+2)))})}function W($,te){var ae=$.index,ce=$.trace||{},ue=$.cd[0],de=$.cd[ae]||{};function me(Pe){return Pe||v(Pe)&&Pe===0}var be=Array.isArray(ae)?function(Pe,Ne){var Oe=w.castOption(ue,ae,Pe);return me(Oe)?Oe:w.extractOption({},ce,"",Ne)}:function(Pe,Ne){return w.extractOption(de,ce,Pe,Ne)};function _e(Pe,Ne,Oe){var pe=be(Ne,Oe);me(pe)&&($[Pe]=pe)}if(_e("hoverinfo","hi","hoverinfo"),_e("bgcolor","hbg","hoverlabel.bgcolor"),_e("borderColor","hbc","hoverlabel.bordercolor"),_e("fontFamily","htf","hoverlabel.font.family"),_e("fontSize","hts","hoverlabel.font.size"),_e("fontColor","htc","hoverlabel.font.color"),_e("nameLength","hnl","hoverlabel.namelength"),_e("textAlign","hta","hoverlabel.align"),$.posref=te==="y"||te==="closest"&&ce.orientation==="h"?$.xa._offset+($.x0+$.x1)/2:$.ya._offset+($.y0+$.y1)/2,$.x0=w.constrain($.x0,0,$.xa._length),$.x1=w.constrain($.x1,0,$.xa._length),$.y0=w.constrain($.y0,0,$.ya._length),$.y1=w.constrain($.y1,0,$.ya._length),$.xLabelVal!==void 0&&($.xLabel="xLabel"in $?$.xLabel:u.hoverLabelText($.xa,$.xLabelVal,ce.xhoverformat),$.xVal=$.xa.c2d($.xLabelVal)),$.yLabelVal!==void 0&&($.yLabel="yLabel"in $?$.yLabel:u.hoverLabelText($.ya,$.yLabelVal,ce.yhoverformat),$.yVal=$.ya.c2d($.yLabelVal)),$.zLabelVal!==void 0&&$.zLabel===void 0&&($.zLabel=String($.zLabelVal)),!(isNaN($.xerr)||$.xa.type==="log"&&$.xerr<=0)){var we=u.tickText($.xa,$.xa.c2l($.xerr),"hover").text;$.xerrneg!==void 0?$.xLabel+=" +"+we+" / -"+u.tickText($.xa,$.xa.c2l($.xerrneg),"hover").text:$.xLabel+=" ± "+we,te==="x"&&($.distance+=1)}if(!(isNaN($.yerr)||$.ya.type==="log"&&$.yerr<=0)){var Ce=u.tickText($.ya,$.ya.c2l($.yerr),"hover").text;$.yerrneg!==void 0?$.yLabel+=" +"+Ce+" / -"+u.tickText($.ya,$.ya.c2l($.yerrneg),"hover").text:$.yLabel+=" ± "+Ce,te==="y"&&($.distance+=1)}var Se=$.hoverinfo||$.trace.hoverinfo;return Se&&Se!=="all"&&((Se=Array.isArray(Se)?Se:Se.split("+")).indexOf("x")===-1&&($.xLabel=void 0),Se.indexOf("y")===-1&&($.yLabel=void 0),Se.indexOf("z")===-1&&($.zLabel=void 0),Se.indexOf("text")===-1&&($.text=void 0),Se.indexOf("name")===-1&&($.name=void 0)),$}function Y($,te,ae){var ce,ue,de=ae.container,me=ae.fullLayout,be=me._size,_e=ae.event,we=!!te.hLinePoint,Ce=!!te.vLinePoint;if(de.selectAll(".spikeline").remove(),Ce||we){var Se=s.combine(me.plot_bgcolor,me.paper_bgcolor);if(we){var Pe,Ne,Oe=te.hLinePoint;ce=Oe&&Oe.xa,(ue=Oe&&Oe.ya).spikesnap==="cursor"?(Pe=_e.pointerX,Ne=_e.pointerY):(Pe=ce._offset+Oe.x,Ne=ue._offset+Oe.y);var pe,fe,xe=n.readability(Oe.color,Se)<1.5?s.contrast(Se):Oe.color,ze=ue.spikemode,Le=ue.spikethickness,Ue=ue.spikecolor||xe,Re=u.getPxPosition($,ue);if(ze.indexOf("toaxis")!==-1||ze.indexOf("across")!==-1){if(ze.indexOf("toaxis")!==-1&&(pe=Re,fe=Pe),ze.indexOf("across")!==-1){var Fe=ue._counterDomainMin,ve=ue._counterDomainMax;ue.anchor==="free"&&(Fe=Math.min(Fe,ue.position),ve=Math.max(ve,ue.position)),pe=be.l+Fe*be.w,fe=be.l+ve*be.w}de.insert("line",":first-child").attr({x1:pe,x2:fe,y1:Ne,y2:Ne,"stroke-width":Le,stroke:Ue,"stroke-dasharray":i.dashStyle(ue.spikedash,Le)}).classed("spikeline",!0).classed("crisp",!0),de.insert("line",":first-child").attr({x1:pe,x2:fe,y1:Ne,y2:Ne,"stroke-width":Le+2,stroke:Se}).classed("spikeline",!0).classed("crisp",!0)}ze.indexOf("marker")!==-1&&de.insert("circle",":first-child").attr({cx:Re+(ue.side!=="right"?Le:-Le),cy:Ne,r:Le,fill:Ue}).classed("spikeline",!0)}if(Ce){var ke,Ee,je=te.vLinePoint;ce=je&&je.xa,ue=je&&je.ya,ce.spikesnap==="cursor"?(ke=_e.pointerX,Ee=_e.pointerY):(ke=ce._offset+je.x,Ee=ue._offset+je.y);var Be,Ie,Ze=n.readability(je.color,Se)<1.5?s.contrast(Se):je.color,He=ce.spikemode,at=ce.spikethickness,ft=ce.spikecolor||Ze,ut=u.getPxPosition($,ce);if(He.indexOf("toaxis")!==-1||He.indexOf("across")!==-1){if(He.indexOf("toaxis")!==-1&&(Be=ut,Ie=Ee),He.indexOf("across")!==-1){var _t=ce._counterDomainMin,Nt=ce._counterDomainMax;ce.anchor==="free"&&(_t=Math.min(_t,ce.position),Nt=Math.max(Nt,ce.position)),Be=be.t+(1-Nt)*be.h,Ie=be.t+(1-_t)*be.h}de.insert("line",":first-child").attr({x1:ke,x2:ke,y1:Be,y2:Ie,"stroke-width":at,stroke:ft,"stroke-dasharray":i.dashStyle(ce.spikedash,at)}).classed("spikeline",!0).classed("crisp",!0),de.insert("line",":first-child").attr({x1:ke,x2:ke,y1:Be,y2:Ie,"stroke-width":at+2,stroke:Se}).classed("spikeline",!0).classed("crisp",!0)}He.indexOf("marker")!==-1&&de.insert("circle",":first-child").attr({cx:ke,cy:ut-(ce.side!=="top"?at:-at),r:at,fill:ft}).classed("spikeline",!0)}}}function B($,te){return!te||te.vLinePoint!==$._spikepoints.vLinePoint||te.hLinePoint!==$._spikepoints.hLinePoint}function G($,te){return t.plainText($||"",{len:te,allowedTags:["br","sub","sup","b","i","em"]})}function J($,te,ae){var ce=te[$+"a"],ue=te[$+"Val"],de=te.cd[0];if(ce.type==="category"||ce.type==="multicategory")ue=ce._categoriesMap[ue];else if(ce.type==="date"){var me=te.trace[$+"periodalignment"];if(me){var be=te.cd[te.index],_e=be[$+"Start"];_e===void 0&&(_e=be[$]);var we=be[$+"End"];we===void 0&&(we=be[$]);var Ce=we-_e;me==="end"?ue+=Ce:me==="middle"&&(ue+=Ce/2)}ue=ce.d2c(ue)}return de&&de.t&&de.t.posLetter===ce._id&&(ae.boxmode!=="group"&&ae.violinmode!=="group"||(ue+=de.t.dPos)),ue}function se($){return $.offsetTop+$.clientTop}function re($){return $.offsetLeft+$.clientLeft}function ne($,te){var ae=$._fullLayout,ce=te.getBoundingClientRect(),ue=ce.left,de=ce.top,me=ue+ce.width,be=de+ce.height,_e=w.apply3DTransform(ae._invTransform)(ue,de),we=w.apply3DTransform(ae._invTransform)(me,be),Ce=_e[0],Se=_e[1],Pe=we[0],Ne=we[1];return{x:Ce,y:Se,width:Pe-Ce,height:Ne-Se,top:Math.min(Se,Ne),left:Math.min(Ce,Pe),right:Math.max(Ce,Pe),bottom:Math.max(Se,Ne)}}},16132:function(L,T,e){var k=e(3400),v=e(76308),n=e(10624).isUnifiedHover;L.exports=function(w,b,c,a){a=a||{};var t=b.legend;function o(i){a.font[i]||(a.font[i]=t?b.legend.font[i]:b.font[i])}b&&n(b.hovermode)&&(a.font||(a.font={}),o("size"),o("family"),o("color"),t?(a.bgcolor||(a.bgcolor=v.combine(b.legend.bgcolor,b.paper_bgcolor)),a.bordercolor||(a.bordercolor=b.legend.bordercolor)):a.bgcolor||(a.bgcolor=b.paper_bgcolor)),c("hoverlabel.bgcolor",a.bgcolor),c("hoverlabel.bordercolor",a.bordercolor),c("hoverlabel.namelength",a.namelength),k.coerceFont(c,"hoverlabel.font",a.font),c("hoverlabel.align",a.align)}},41008:function(L,T,e){var k=e(3400),v=e(65460);L.exports=function(n,w){function b(c,a){return w[c]!==void 0?w[c]:k.coerce(n,w,v,c,a)}return b("clickmode"),b("hovermode")}},93024:function(L,T,e){var k=e(33428),v=e(3400),n=e(86476),w=e(10624),b=e(65460),c=e(83292);L.exports={moduleType:"component",name:"fx",constants:e(92456),schema:{layout:b},attributes:e(55756),layoutAttributes:b,supplyLayoutGlobalDefaults:e(81976),supplyDefaults:e(95448),supplyLayoutDefaults:e(88336),calc:e(55056),getDistanceFunction:w.getDistanceFunction,getClosest:w.getClosest,inbox:w.inbox,quadrature:w.quadrature,appendArrayPointValue:w.appendArrayPointValue,castHoverOption:function(a,t,o){return v.castOption(a,t,"hoverlabel."+o)},castHoverinfo:function(a,t,o){return v.castOption(a,o,"hoverinfo",function(i){return v.coerceHoverinfo({hoverinfo:i},{_module:a._module},t)})},hover:c.hover,unhover:n.unhover,loneHover:c.loneHover,loneUnhover:function(a){var t=v.isD3Selection(a)?a:k.select(a);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()},click:e(62376)}},65460:function(L,T,e){var k=e(92456),v=e(25376),n=v({editType:"none"});n.family.dflt=k.HOVERFONT,n.size.dflt=k.HOVERFONTSIZE,L.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"},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:v({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"}}},88336:function(L,T,e){var k=e(3400),v=e(65460),n=e(41008),w=e(16132);L.exports=function(b,c){function a(s,l){return k.coerce(b,c,v,s,l)}n(b,c)&&(a("hoverdistance"),a("spikedistance")),a("dragmode")==="select"&&a("selectdirection");var t=c._has("mapbox"),o=c._has("geo"),i=c._basePlotModules.length;c.dragmode==="zoom"&&((t||o)&&i===1||t&&o&&i===2)&&(c.dragmode="pan"),w(b,c,a),k.coerceFont(a,"hoverlabel.grouptitlefont",c.hoverlabel.font)}},81976:function(L,T,e){var k=e(3400),v=e(16132),n=e(65460);L.exports=function(w,b){v(w,b,function(c,a){return k.coerce(w,b,n,c,a)})}},12704:function(L,T,e){var k=e(3400),v=e(53756).counter,n=e(86968).u,w=e(33816).idRegex,b=e(31780),c={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:[v("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[w.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[w.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 a(i,s,l){var u=s[l+"axes"],d=Object.keys((i._splomAxes||{})[l]||{});return Array.isArray(u)?u:d.length?d:void 0}function t(i,s,l,u,d,g){var f=s(i+"gap",l),C=s("domain."+i);s(i+"side",u);for(var y=new Array(d),m=C[0],x=(C[1]-m)/(d-f),_=x*(1-f),S=0;S<d;S++){var O=m+x*S;y[g?d-1-S:S]=[O,O+_]}return y}function o(i,s,l,u,d){var g,f=new Array(l);function C(y,m){s.indexOf(m)!==-1&&u[m]===void 0?(f[y]=m,u[m]=y):f[y]=""}if(Array.isArray(i))for(g=0;g<l;g++)C(g,i[g]);else for(C(0,d),g=1;g<l;g++)C(g,d+(g+1));return f}L.exports={moduleType:"component",name:"grid",schema:{layout:{grid:c}},layoutAttributes:c,sizeDefaults:function(i,s){var l=i.grid||{},u=a(s,l,"x"),d=a(s,l,"y");if(i.grid||u||d){var g,f,C=Array.isArray(l.subplots)&&Array.isArray(l.subplots[0]),y=Array.isArray(u),m=Array.isArray(d),x=y&&u!==l.xaxes&&m&&d!==l.yaxes;C?(g=l.subplots.length,f=l.subplots[0].length):(m&&(g=d.length),y&&(f=u.length));var _=b.newContainer(s,"grid"),S=A("rows",g),O=A("columns",f);if(S*O>1){C||y||m||A("pattern")==="independent"&&(C=!0),_._hasSubplotGrid=C;var h,M,N=A("roworder")==="top to bottom",P=C?.2:.1,R=C?.3:.1;x&&s._splomGridDflt&&(h=s._splomGridDflt.xside,M=s._splomGridDflt.yside),_._domains={x:t("x",A,P,h,O),y:t("y",A,R,M,S,N)}}else delete s.grid}function A(q,j){return k.coerce(l,_,c,q,j)}},contentDefaults:function(i,s){var l=s.grid;if(l&&l._domains){var u,d,g,f,C,y,m,x=i.grid||{},_=s._subplots,S=l._hasSubplotGrid,O=l.rows,h=l.columns,M=l.pattern==="independent",N=l._axisMap={};if(S){var P=x.subplots||[];y=l.subplots=new Array(O);var R=1;for(u=0;u<O;u++){var A=y[u]=new Array(h),q=P[u]||[];for(d=0;d<h;d++)if(M?(C=R===1?"xy":"x"+R+"y"+R,R++):C=q[d],A[d]="",_.cartesian.indexOf(C)!==-1){if(m=C.indexOf("y"),g=C.slice(0,m),f=C.slice(m),N[g]!==void 0&&N[g]!==d||N[f]!==void 0&&N[f]!==u)continue;A[d]=C,N[g]=d,N[f]=u}}}else{var j=a(s,x,"x"),X=a(s,x,"y");l.xaxes=o(j,_.xaxis,h,N,"x"),l.yaxes=o(X,_.yaxis,O,N,"y")}var F=l._anchors={},W=l.roworder==="top to bottom";for(var Y in N){var B,G,J,se=Y.charAt(0),re=l[se+"side"];if(re.length<8)F[Y]="free";else if(se==="x"){if(re.charAt(0)==="t"===W?(B=0,G=1,J=O):(B=O-1,G=-1,J=-1),S){var ne=N[Y];for(u=B;u!==J;u+=G)if((C=y[u][ne])&&(m=C.indexOf("y"),C.slice(0,m)===Y)){F[Y]=C.slice(m);break}}else for(u=B;u!==J;u+=G)if(f=l.yaxes[u],_.cartesian.indexOf(Y+f)!==-1){F[Y]=f;break}}else if(re.charAt(0)==="l"?(B=0,G=1,J=h):(B=h-1,G=-1,J=-1),S){var $=N[Y];for(u=B;u!==J;u+=G)if((C=y[$][u])&&(m=C.indexOf("y"),C.slice(m)===Y)){F[Y]=C.slice(0,m);break}}else for(u=B;u!==J;u+=G)if(g=l.xaxes[u],_.cartesian.indexOf(g+Y)!==-1){F[Y]=g;break}}}}}},65760:function(L,T,e){var k=e(33816),v=e(31780).templatedArray;e(36208),L.exports=v("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",k.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",k.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})},63556:function(L,T,e){var k=e(38248),v=e(36896);L.exports=function(n,w,b,c){w=w||{};var a=b==="log"&&w.type==="linear",t=b==="linear"&&w.type==="log";if(a||t){for(var o,i,s=n._fullLayout.images,l=w._id.charAt(0),u=0;u<s.length;u++)if(i="images["+u+"].",(o=s[u])[l+"ref"]===w._id){var d=o[l],g=o["size"+l],f=null,C=null;if(a){f=v(d,w.range);var y=g/Math.pow(10,f)/2;C=2*Math.log(y+Math.sqrt(1+y*y))/Math.LN10}else C=(f=Math.pow(10,d))*(Math.pow(10,g/2)-Math.pow(10,-g/2));k(f)?k(C)||(C=null):(f=null,C=null),c(i+l,f),c(i+"size"+l,C)}}}},25024:function(L,T,e){var k=e(3400),v=e(54460),n=e(51272),w=e(65760);function b(c,a,t){function o(f,C){return k.coerce(c,a,w,f,C)}var i=o("source");if(!o("visible",!!i))return a;o("layer"),o("xanchor"),o("yanchor"),o("sizex"),o("sizey"),o("sizing"),o("opacity");for(var s={_fullLayout:t},l=["x","y"],u=0;u<2;u++){var d=l[u],g=v.coerceRef(c,a,s,d,"paper",void 0);g!=="paper"&&v.getFromId(s,g)._imgIndices.push(a._index),v.coercePosition(a,s,o,g,d,0)}return a}L.exports=function(c,a){n(c,a,{name:"images",handleItemDefaults:b})}},60963:function(L,T,e){var k=e(33428),v=e(43616),n=e(54460),w=e(79811),b=e(9616);L.exports=function(c){var a,t,o=c._fullLayout,i=[],s={},l=[];for(t=0;t<o.images.length;t++){var u=o.images[t];if(u.visible)if(u.layer==="below"&&u.xref!=="paper"&&u.yref!=="paper"){a=w.ref2id(u.xref)+w.ref2id(u.yref);var d=o._plots[a];if(!d){l.push(u);continue}d.mainplot&&(a=d.mainplot.id),s[a]||(s[a]=[]),s[a].push(u)}else u.layer==="above"?i.push(u):l.push(u)}var g={left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-.5},right:{sizing:"xMax",offset:-1}},f={top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-.5},bottom:{sizing:"YMax",offset:-1}};function C(h){var M=k.select(this);if(this._imgSrc!==h.source)if(M.attr("xmlns",b.svg),h.source&&h.source.slice(0,5)==="data:")M.attr("xlink:href",h.source),this._imgSrc=h.source;else{var N=new Promise((function(P){var R=new Image;function A(){M.remove(),P()}this.img=R,R.setAttribute("crossOrigin","anonymous"),R.onerror=A,R.onload=function(){var q=document.createElement("canvas");q.width=this.width,q.height=this.height,q.getContext("2d",{willReadFrequently:!0}).drawImage(this,0,0);var j=q.toDataURL("image/png");M.attr("xlink:href",j),P()},M.on("error",A),R.src=h.source,this._imgSrc=h.source}).bind(this));c._promises.push(N)}}function y(h){var M,N,P=k.select(this),R=n.getFromId(c,h.xref),A=n.getFromId(c,h.yref),q=n.getRefType(h.xref)==="domain",j=n.getRefType(h.yref)==="domain",X=o._size;M=R!==void 0?typeof h.xref=="string"&&q?R._length*h.sizex:Math.abs(R.l2p(h.sizex)-R.l2p(0)):h.sizex*X.w,N=A!==void 0?typeof h.yref=="string"&&j?A._length*h.sizey:Math.abs(A.l2p(h.sizey)-A.l2p(0)):h.sizey*X.h;var F,W,Y=M*g[h.xanchor].offset,B=N*f[h.yanchor].offset,G=g[h.xanchor].sizing+f[h.yanchor].sizing;switch(F=R!==void 0?typeof h.xref=="string"&&q?R._length*h.x+R._offset:R.r2p(h.x)+R._offset:h.x*X.w+X.l,F+=Y,W=A!==void 0?typeof h.yref=="string"&&j?A._length*(1-h.y)+A._offset:A.r2p(h.y)+A._offset:X.h-h.y*X.h+X.t,W+=B,h.sizing){case"fill":G+=" slice";break;case"stretch":G="none"}P.attr({x:F,y:W,width:M,height:N,preserveAspectRatio:G,opacity:h.opacity});var J=(R&&n.getRefType(h.xref)!=="domain"?R._id:"")+(A&&n.getRefType(h.yref)!=="domain"?A._id:"");v.setClipUrl(P,J?"clip"+o._uid+J:null,c)}var m=o._imageLowerLayer.selectAll("image").data(l),x=o._imageUpperLayer.selectAll("image").data(i);m.enter().append("image"),x.enter().append("image"),m.exit().remove(),x.exit().remove(),m.each(function(h){C.bind(this)(h),y.bind(this)(h)}),x.each(function(h){C.bind(this)(h),y.bind(this)(h)});var _=Object.keys(o._plots);for(t=0;t<_.length;t++){a=_[t];var S=o._plots[a];if(S.imagelayer){var O=S.imagelayer.selectAll("image").data(s[a]||[]);O.enter().append("image"),O.exit().remove(),O.each(function(h){C.bind(this)(h),y.bind(this)(h)})}}}},7402:function(L,T,e){L.exports={moduleType:"component",name:"images",layoutAttributes:e(65760),supplyLayoutDefaults:e(25024),includeBasePlot:e(36632)("images"),draw:e(60963),convertCoords:e(63556)}},3800:function(L,T,e){var k=e(25376),v=e(22548);L.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:v.defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:k({editType:"legend"}),grouptitlefont:k({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"},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:k({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}},65196:function(L){L.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},77864:function(L,T,e){var k=e(24040),v=e(3400),n=e(31780),w=e(45464),b=e(3800),c=e(64859),a=e(42451);function t(o,i,s,l){var u=i[o]||{},d=n.newContainer(s,o);function g(G,J){return v.coerce(u,d,b,G,J)}var f=v.coerceFont(g,"font",s.font);if(g("bgcolor",s.paper_bgcolor),g("bordercolor"),g("visible")){for(var C,y=function(G,J){var se=C._input,re=C;return v.coerce(se,re,w,G,J)},m=s.font||{},x=v.coerceFont(g,"grouptitlefont",v.extendFlat({},m,{size:Math.round(1.1*m.size)})),_=0,S=!1,O="normal",h=(s.shapes||[]).filter(function(G){return G.showlegend}),M=l.concat(h).filter(function(G){return o===(G.legend||"legend")}),N=0;N<M.length;N++)if((C=M[N]).visible){var P=C._isShape;(C.showlegend||C._dfltShowLegend&&!(C._module&&C._module.attributes&&C._module.attributes.showlegend&&C._module.attributes.showlegend.dflt===!1))&&(_++,C.showlegend&&(S=!0,(!P&&k.traceIs(C,"pie-like")||C._input.showlegend===!0)&&_++),v.coerceFont(y,"legendgrouptitle.font",x)),(!P&&k.traceIs(C,"bar")&&s.barmode==="stack"||["tonextx","tonexty"].indexOf(C.fill)!==-1)&&(O=a.isGrouped({traceorder:O})?"grouped+reversed":"reversed"),C.legendgroup!==void 0&&C.legendgroup!==""&&(O=a.isReversed({traceorder:O})?"reversed+grouped":"grouped")}var R=v.coerce(i,s,c,"showlegend",S&&_>(o==="legend"?1:0));if(R===!1&&(s[o]=void 0),(R!==!1||u.uirevision)&&(g("uirevision",s.uirevision),R!==!1)){g("borderwidth");var A,q,j,X=g("orientation")==="h",F=g("yref")==="paper",W=g("xref")==="paper",Y="left";if(X?(A=0,k.getComponentMethod("rangeslider","isVisible")(i.xaxis)?F?(q=1.1,j="bottom"):(q=1,j="top"):F?(q=-.1,j="top"):(q=0,j="bottom")):(q=1,j="auto",W?A=1.02:(A=1,Y="right")),v.coerce(u,d,{x:{valType:"number",editType:"legend",min:W?-2:0,max:W?3:1,dflt:A}},"x"),v.coerce(u,d,{y:{valType:"number",editType:"legend",min:F?-2:0,max:F?3:1,dflt:q}},"y"),g("traceorder",O),a.isGrouped(s[o])&&g("tracegroupgap"),g("entrywidth"),g("entrywidthmode"),g("itemsizing"),g("itemwidth"),g("itemclick"),g("itemdoubleclick"),g("groupclick"),g("xanchor",Y),g("yanchor",j),g("valign"),v.noneOrAll(u,d,["x","y"]),g("title.text")){g("title.side",X?"left":"top");var B=v.extendFlat({},f,{size:v.bigFont(f.size)});v.coerceFont(g,"title.font",B)}}}}L.exports=function(o,i,s){var l,u=s.slice(),d=i.shapes;if(d)for(l=0;l<d.length;l++){var g=d[l];if(g.showlegend){var f={_input:g._input,visible:g.visible,showlegend:g.showlegend,legend:g.legend};u.push(f)}}var C=["legend"];for(l=0;l<u.length;l++)v.pushUnique(C,u[l].legend);for(i._legends=[],l=0;l<C.length;l++){var y=C[l];t(y,o,i,u),i[y]&&i[y].visible&&(i[y]._id=y),i._legends.push(y)}}},31140:function(L,T,e){var k=e(33428),v=e(3400),n=e(7316),w=e(24040),b=e(95924),c=e(86476),a=e(43616),t=e(76308),o=e(72736),i=e(33048),s=e(65196),l=e(84284),u=l.LINE_SPACING,d=l.FROM_TL,g=l.FROM_BR,f=e(35456),C=e(2012),y=e(42451),m=1,x=/^legend[0-9]*$/;function _(j,X){var F,W,Y=X||{},B=j._fullLayout,G=q(Y),J=Y._inHover;if(J?(W=Y.layer,F="hover"):(W=B._infolayer,F=G),W){var se;if(F+=B._uid,j._legendMouseDownTime||(j._legendMouseDownTime=0),J){if(!Y.entries)return;se=f(Y.entries,Y)}else{for(var re=(j.calcdata||[]).slice(),ne=B.shapes,$=0;$<ne.length;$++){var te=ne[$];if(te.showlegend){var ae={_isShape:!0,_fullInput:te,index:te._index,name:te.name||te.label.text||"shape "+te._index,legend:te.legend,legendgroup:te.legendgroup,legendgrouptitle:te.legendgrouptitle,legendrank:te.legendrank,legendwidth:te.legendwidth,showlegend:te.showlegend,visible:te.visible,opacity:te.opacity,mode:te.type==="line"?"lines":"markers",line:te.line,marker:{line:te.line,color:te.fillcolor,size:12,symbol:te.type==="rect"?"square":te.type==="circle"?"circle":"hexagon2"}};re.push([{trace:ae}])}}se=B.showlegend&&f(re,Y,B._legends.length>1)}var ce=B.hiddenlabels||[];if(!(J||B.showlegend&&se.length))return W.selectAll("."+G).remove(),B._topdefs.select("#"+F).remove(),n.autoMargin(j,G);var ue=v.ensureSingle(W,"g",G,function(Ne){J||Ne.attr("pointer-events","all")}),de=v.ensureSingleById(B._topdefs,"clipPath",F,function(Ne){Ne.append("rect")}),me=v.ensureSingle(ue,"rect","bg",function(Ne){Ne.attr("shape-rendering","crispEdges")});me.call(t.stroke,Y.bordercolor).call(t.fill,Y.bgcolor).style("stroke-width",Y.borderwidth+"px");var be,_e=v.ensureSingle(ue,"g","scrollbox"),we=Y.title;Y._titleWidth=0,Y._titleHeight=0,we.text?((be=v.ensureSingle(_e,"text",G+"titletext")).attr("text-anchor","start").call(a.font,we.font).text(we.text),P(be,_e,j,Y,m)):_e.selectAll("."+G+"titletext").remove();var Ce=v.ensureSingle(ue,"rect","scrollbar",function(Ne){Ne.attr(s.scrollBarEnterAttrs).call(t.fill,s.scrollBarColor)}),Se=_e.selectAll("g.groups").data(se);Se.enter().append("g").attr("class","groups"),Se.exit().remove();var Pe=Se.selectAll("g.traces").data(v.identity);Pe.enter().append("g").attr("class","traces"),Pe.exit().remove(),Pe.style("opacity",function(Ne){var Oe=Ne[0].trace;return w.traceIs(Oe,"pie-like")?ce.indexOf(Ne[0].label)!==-1?.5:1:Oe.visible==="legendonly"?.5:1}).each(function(){k.select(this).call(h,j,Y)}).call(C,j,Y).each(function(){J||k.select(this).call(N,j,G)}),v.syncOrAsync([n.previousPromises,function(){return function(Ne,Oe,pe,fe){var xe=Ne._fullLayout,ze=q(fe);fe||(fe=xe[ze]);var Le=xe._size,Ue=y.isVertical(fe),Re=y.isGrouped(fe),Fe=fe.entrywidthmode==="fraction",ve=fe.borderwidth,ke=2*ve,Ee=s.itemGap,je=fe.itemwidth+2*Ee,Be=2*(ve+Ee),Ie=A(fe),Ze=fe.y<0||fe.y===0&&Ie==="top",He=fe.y>1||fe.y===1&&Ie==="bottom",at=fe.tracegroupgap,ft={};fe._maxHeight=Math.max(Ze||He?xe.height/2:Le.h,30);var ut=0;fe._width=0,fe._height=0;var _t=function(wt){var St=0,vt=0,Pt=wt.title.side;return Pt&&(Pt.indexOf("left")!==-1&&(St=wt._titleWidth),Pt.indexOf("top")!==-1&&(vt=wt._titleHeight)),[St,vt]}(fe);if(Ue)pe.each(function(wt){var St=wt[0].height;a.setTranslate(this,ve+_t[0],ve+_t[1]+fe._height+St/2+Ee),fe._height+=St,fe._width=Math.max(fe._width,wt[0].width)}),ut=je+fe._width,fe._width+=Ee+je+ke,fe._height+=Be,Re&&(Oe.each(function(wt,St){a.setTranslate(this,0,St*fe.tracegroupgap)}),fe._height+=(fe._lgroupsLength-1)*fe.tracegroupgap);else{var Nt=R(fe),Tt=fe.x<0||fe.x===0&&Nt==="right",st=fe.x>1||fe.x===1&&Nt==="left",lt=He||Ze,Vt=xe.width/2;fe._maxWidth=Math.max(Tt?lt&&Nt==="left"?Le.l+Le.w:Vt:st?lt&&Nt==="right"?Le.r+Le.w:Vt:Le.w,2*je);var jt=0,Kt=0;pe.each(function(wt){var St=S(wt,fe,je);jt=Math.max(jt,St),Kt+=St}),ut=null;var It=0;if(Re){var $e=0,tt=0,Xe=0;Oe.each(function(){var wt=0,St=0;k.select(this).selectAll("g.traces").each(function(Pt){var Lt=S(Pt,fe,je),Ct=Pt[0].height;a.setTranslate(this,_t[0],_t[1]+ve+Ee+Ct/2+St),St+=Ct,wt=Math.max(wt,Lt),ft[Pt[0].trace.legendgroup]=wt});var vt=wt+Ee;tt>0&&vt+ve+tt>fe._maxWidth?(It=Math.max(It,tt),tt=0,Xe+=$e+at,$e=St):$e=Math.max($e,St),a.setTranslate(this,tt,Xe),tt+=vt}),fe._width=Math.max(It,tt)+ve,fe._height=Xe+$e+Be}else{var et=pe.size(),ht=Kt+ke+(et-1)*Ee<fe._maxWidth,dt=0,De=0,Ge=0,pt=0;pe.each(function(wt){var St=wt[0].height,vt=S(wt,fe,je),Pt=ht?vt:jt;Fe||(Pt+=Ee),Pt+ve+De-Ee>=fe._maxWidth&&(It=Math.max(It,pt),De=0,Ge+=dt,fe._height+=dt,dt=0),a.setTranslate(this,_t[0]+ve+De,_t[1]+ve+Ge+St/2+Ee),pt=De+vt+Ee,De+=Pt,dt=Math.max(dt,St)}),ht?(fe._width=De+ke,fe._height=dt+Be):(fe._width=Math.max(It,pt)+ke,fe._height+=dt+Be)}}fe._width=Math.ceil(Math.max(fe._width+_t[0],fe._titleWidth+2*(ve+s.titlePad))),fe._height=Math.ceil(Math.max(fe._height+_t[1],fe._titleHeight+2*(ve+s.itemGap))),fe._effHeight=Math.min(fe._height,fe._maxHeight);var nt=Ne._context.edits,bt=nt.legendText||nt.legendPosition;pe.each(function(wt){var St=k.select(this).select("."+ze+"toggle"),vt=wt[0].height,Pt=wt[0].trace.legendgroup,Lt=S(wt,fe,je);Re&&Pt!==""&&(Lt=ft[Pt]);var Ct=bt?je:ut||Lt;Ue||Fe||(Ct+=Ee/2),a.setRect(St,0,-vt/2,Ct,vt)})}(j,Se,Pe,Y)},function(){var Ne,Oe,pe,fe,xe=B._size,ze=Y.borderwidth,Le=Y.xref==="paper",Ue=Y.yref==="paper";if(we.text&&function(lt,Vt,jt){if(Vt.title.side==="top center"||Vt.title.side==="top right"){var Kt=Vt.title.font.size*u,It=0,$e=lt.node(),tt=a.bBox($e).width;Vt.title.side==="top center"?It=.5*(Vt._width-2*jt-2*s.titlePad-tt):Vt.title.side==="top right"&&(It=Vt._width-2*jt-2*s.titlePad-tt),o.positionText(lt,jt+s.titlePad+It,jt+Kt)}}(be,Y,ze),!J){var Re,Fe;Re=Le?xe.l+xe.w*Y.x-d[R(Y)]*Y._width:B.width*Y.x-d[R(Y)]*Y._width,Fe=Ue?xe.t+xe.h*(1-Y.y)-d[A(Y)]*Y._effHeight:B.height*(1-Y.y)-d[A(Y)]*Y._effHeight;var ve=function(lt,Vt,jt,Kt){var It=lt._fullLayout,$e=It[Vt],tt=R($e),Xe=A($e),et=$e.xref==="paper",ht=$e.yref==="paper";lt._fullLayout._reservedMargin[Vt]={};var dt=$e.y<.5?"b":"t",De=$e.x<.5?"l":"r",Ge={r:It.width-jt,l:jt+$e._width,b:It.height-Kt,t:Kt+$e._effHeight};if(et&&ht)return n.autoMargin(lt,Vt,{x:$e.x,y:$e.y,l:$e._width*d[tt],r:$e._width*g[tt],b:$e._effHeight*g[Xe],t:$e._effHeight*d[Xe]});et?lt._fullLayout._reservedMargin[Vt][dt]=Ge[dt]:ht||$e.orientation==="v"?lt._fullLayout._reservedMargin[Vt][De]=Ge[De]:lt._fullLayout._reservedMargin[Vt][dt]=Ge[dt]}(j,G,Re,Fe);if(ve)return;if(B.margin.autoexpand){var ke=Re,Ee=Fe;Re=Le?v.constrain(Re,0,B.width-Y._width):ke,Fe=Ue?v.constrain(Fe,0,B.height-Y._effHeight):Ee,Re!==ke&&v.log("Constrain "+G+".x to make legend fit inside graph"),Fe!==Ee&&v.log("Constrain "+G+".y to make legend fit inside graph")}a.setTranslate(ue,Re,Fe)}if(Ce.on(".drag",null),ue.on("wheel",null),J||Y._height<=Y._maxHeight||j._context.staticPlot){var je=Y._effHeight;J&&(je=Y._height),me.attr({width:Y._width-ze,height:je-ze,x:ze/2,y:ze/2}),a.setTranslate(_e,0,0),de.select("rect").attr({width:Y._width-2*ze,height:je-2*ze,x:ze,y:ze}),a.setClipUrl(_e,F,j),a.setRect(Ce,0,0,0,0),delete Y._scrollY}else{var Be,Ie,Ze,He=Math.max(s.scrollBarMinHeight,Y._effHeight*Y._effHeight/Y._height),at=Y._effHeight-He-2*s.scrollBarMargin,ft=Y._height-Y._effHeight,ut=at/ft,_t=Math.min(Y._scrollY||0,ft);me.attr({width:Y._width-2*ze+s.scrollBarWidth+s.scrollBarMargin,height:Y._effHeight-ze,x:ze/2,y:ze/2}),de.select("rect").attr({width:Y._width-2*ze+s.scrollBarWidth+s.scrollBarMargin,height:Y._effHeight-2*ze,x:ze,y:ze+_t}),a.setClipUrl(_e,F,j),st(_t,He,ut),ue.on("wheel",function(){st(_t=v.constrain(Y._scrollY+k.event.deltaY/at*ft,0,ft),He,ut),_t!==0&&_t!==ft&&k.event.preventDefault()});var Nt=k.behavior.drag().on("dragstart",function(){var lt=k.event.sourceEvent;Be=lt.type==="touchstart"?lt.changedTouches[0].clientY:lt.clientY,Ze=_t}).on("drag",function(){var lt=k.event.sourceEvent;lt.buttons===2||lt.ctrlKey||(Ie=lt.type==="touchmove"?lt.changedTouches[0].clientY:lt.clientY,_t=function(Vt,jt,Kt){var It=(Kt-jt)/ut+Vt;return v.constrain(It,0,ft)}(Ze,Be,Ie),st(_t,He,ut))});Ce.call(Nt);var Tt=k.behavior.drag().on("dragstart",function(){var lt=k.event.sourceEvent;lt.type==="touchstart"&&(Be=lt.changedTouches[0].clientY,Ze=_t)}).on("drag",function(){var lt=k.event.sourceEvent;lt.type==="touchmove"&&(Ie=lt.changedTouches[0].clientY,_t=function(Vt,jt,Kt){var It=(jt-Kt)/ut+Vt;return v.constrain(It,0,ft)}(Ze,Be,Ie),st(_t,He,ut))});_e.call(Tt)}function st(lt,Vt,jt){Y._scrollY=j._fullLayout[G]._scrollY=lt,a.setTranslate(_e,0,-lt),a.setRect(Ce,Y._width,s.scrollBarMargin+lt*jt,s.scrollBarWidth,Vt),de.select("rect").attr("y",ze+lt)}j._context.edits.legendPosition&&(ue.classed("cursor-move",!0),c.init({element:ue.node(),gd:j,prepFn:function(){var lt=a.getTranslate(ue);pe=lt.x,fe=lt.y},moveFn:function(lt,Vt){var jt=pe+lt,Kt=fe+Vt;a.setTranslate(ue,jt,Kt),Ne=c.align(jt,Y._width,xe.l,xe.l+xe.w,Y.xanchor),Oe=c.align(Kt+Y._height,-Y._height,xe.t+xe.h,xe.t,Y.yanchor)},doneFn:function(){if(Ne!==void 0&&Oe!==void 0){var lt={};lt[G+".x"]=Ne,lt[G+".y"]=Oe,w.call("_guiRelayout",j,lt)}},clickFn:function(lt,Vt){var jt=W.selectAll("g.traces").filter(function(){var Kt=this.getBoundingClientRect();return Vt.clientX>=Kt.left&&Vt.clientX<=Kt.right&&Vt.clientY>=Kt.top&&Vt.clientY<=Kt.bottom});jt.size()>0&&O(j,ue,jt,lt,Vt)}}))}],j)}}function S(j,X,F){var W=j[0],Y=W.width,B=X.entrywidthmode,G=W.trace.legendwidth||X.entrywidth;return B==="fraction"?X._maxWidth*G:F+(G||Y)}function O(j,X,F,W,Y){var B=F.data()[0][0].trace,G={event:Y,node:F.node(),curveNumber:B.index,expandedIndex:B._expandedIndex,data:j.data,layout:j.layout,frames:j._transitionData._frames,config:j._context,fullData:j._fullData,fullLayout:j._fullLayout};B._group&&(G.group=B._group),w.traceIs(B,"pie-like")&&(G.label=F.datum()[0].label);var J=b.triggerHandler(j,"plotly_legendclick",G);if(W===1){if(J===!1)return;X._clickTimeout=setTimeout(function(){j._fullLayout&&i(F,j,W)},j._context.doubleClickDelay)}else W===2&&(X._clickTimeout&&clearTimeout(X._clickTimeout),j._legendMouseDownTime=0,b.triggerHandler(j,"plotly_legenddoubleclick",G)!==!1&&J!==!1&&i(F,j,W))}function h(j,X,F){var W,Y,B=q(F),G=j.data()[0][0],J=G.trace,se=w.traceIs(J,"pie-like"),re=!F._inHover&&X._context.edits.legendText&&!se,ne=F._maxNameLength;G.groupTitle?(W=G.groupTitle.text,Y=G.groupTitle.font):(Y=F.font,F.entries?W=G.text:(W=se?G.label:J.name,J._meta&&(W=v.templateString(W,J._meta))));var $=v.ensureSingle(j,"text",B+"text");$.attr("text-anchor","start").call(a.font,Y).text(re?M(W,ne):W);var te=F.itemwidth+2*s.itemGap;o.positionText($,te,0),re?$.call(o.makeEditable,{gd:X,text:W}).call(P,j,X,F).on("edit",function(ae){this.text(M(ae,ne)).call(P,j,X,F);var ce=G.trace._fullInput||{},ue={};if(w.hasTransform(ce,"groupby")){var de=w.getTransformIndices(ce,"groupby"),me=de[de.length-1],be=v.keyedContainer(ce,"transforms["+me+"].styles","target","value.name");be.set(G.trace._group,ae),ue=be.constructUpdate()}else ue.name=ae;return ce._isShape?w.call("_guiRelayout",X,"shapes["+J.index+"].name",ue.name):w.call("_guiRestyle",X,ue,J.index)}):P($,j,X,F)}function M(j,X){var F=Math.max(4,X);if(j&&j.trim().length>=F/2)return j;for(var W=F-(j=j||"").length;W>0;W--)j+=" ";return j}function N(j,X,F){var W,Y=X._context.doubleClickDelay,B=1,G=v.ensureSingle(j,"rect",F+"toggle",function(J){X._context.staticPlot||J.style("cursor","pointer").attr("pointer-events","all"),J.call(t.fill,"rgba(0,0,0,0)")});X._context.staticPlot||(G.on("mousedown",function(){(W=new Date().getTime())-X._legendMouseDownTime<Y?B+=1:(B=1,X._legendMouseDownTime=W)}),G.on("mouseup",function(){if(!X._dragged&&!X._editing){var J=X._fullLayout[F];new Date().getTime()-X._legendMouseDownTime>Y&&(B=Math.max(B-1,1)),O(X,J,j,B,k.event)}}))}function P(j,X,F,W,Y){W._inHover&&j.attr("data-notex",!0),o.convertToTspans(j,F,function(){(function(B,G,J,se){var re=B.data()[0][0];if(J._inHover||!re||re.trace.showlegend){var ne=B.select("g[class*=math-group]"),$=ne.node(),te=q(J);J||(J=G._fullLayout[te]);var ae,ce,ue=J.borderwidth,de=(se===m?J.title.font:re.groupTitle?re.groupTitle.font:J.font).size*u;if($){var me=a.bBox($);ae=me.height,ce=me.width,se===m?a.setTranslate(ne,ue,ue+.75*ae):a.setTranslate(ne,0,.25*ae)}else{var be="."+te+(se===m?"title":"")+"text",_e=B.select(be),we=o.lineCount(_e),Ce=_e.node();if(ae=de*we,ce=Ce?a.bBox(Ce).width:0,se===m)J.title.side==="left"&&(ce+=2*s.itemGap),o.positionText(_e,ue+s.titlePad,ue+de);else{var Se=2*s.itemGap+J.itemwidth;re.groupTitle&&(Se=s.itemGap,ce-=J.itemwidth),o.positionText(_e,Se,-de*((we-1)/2-.3))}}se===m?(J._titleWidth=ce,J._titleHeight=ae):(re.lineHeight=de,re.height=Math.max(ae,16)+3,re.width=ce)}else B.remove()})(X,F,W,Y)})}function R(j){return v.isRightAnchor(j)?"right":v.isCenterAnchor(j)?"center":"left"}function A(j){return v.isBottomAnchor(j)?"bottom":v.isMiddleAnchor(j)?"middle":"top"}function q(j){return j._id||"legend"}L.exports=function(j,X){if(X)_(j,X);else{var F=j._fullLayout,W=F._legends;F._infolayer.selectAll('[class^="legend"]').each(function(){var G=k.select(this),J=G.attr("class").split(" ")[0];J.match(x)&&W.indexOf(J)===-1&&G.remove()});for(var Y=0;Y<W.length;Y++){var B=W[Y];_(j,j._fullLayout[B])}}}},35456:function(L,T,e){var k=e(24040),v=e(42451);L.exports=function(n,w,b){var c,a,t=w._inHover,o=v.isGrouped(w),i=v.isReversed(w),s={},l=[],u=!1,d={},g=0,f=0;function C(W,Y,B){if(w.visible!==!1&&(!b||W===w._id))if(Y!==""&&v.isGrouped(w))l.indexOf(Y)===-1?(l.push(Y),u=!0,s[Y]=[B]):s[Y].push(B);else{var G="~~i"+g;l.push(G),s[G]=[B],g++}}for(c=0;c<n.length;c++){var y=n[c],m=y[0],x=m.trace,_=x.legend,S=x.legendgroup;if(t||x.visible&&x.showlegend)if(k.traceIs(x,"pie-like"))for(d[S]||(d[S]={}),a=0;a<y.length;a++){var O=y[a].label;d[S][O]||(C(_,S,{label:O,color:y[a].color,i:y[a].i,trace:x,pts:y[a].pts}),d[S][O]=!0,f=Math.max(f,(O||"").length))}else C(_,S,m),f=Math.max(f,(x.name||"").length)}if(!l.length)return[];var h=!u||!o,M=[];for(c=0;c<l.length;c++){var N=s[l[c]];h?M.push(N[0]):M.push(N)}for(h&&(M=[M]),c=0;c<M.length;c++){var P=1/0;for(a=0;a<M[c].length;a++){var R=M[c][a].trace.legendrank;P>R&&(P=R)}M[c][0]._groupMinRank=P,M[c][0]._preGroupSort=c}var A=function(W,Y){return W.trace.legendrank-Y.trace.legendrank||W._preSort-Y._preSort};for(M.forEach(function(W,Y){W[0]._preGroupSort=Y}),M.sort(function(W,Y){return W[0]._groupMinRank-Y[0]._groupMinRank||W[0]._preGroupSort-Y[0]._preGroupSort}),c=0;c<M.length;c++){M[c].forEach(function(W,Y){W._preSort=Y}),M[c].sort(A);var q=M[c][0].trace,j=null;for(a=0;a<M[c].length;a++){var X=M[c][a].trace.legendgrouptitle;if(X&&X.text){j=X,t&&(X.font=w._groupTitleFont);break}}if(i&&M[c].reverse(),j){var F=!1;for(a=0;a<M[c].length;a++)if(k.traceIs(M[c][a].trace,"pie-like")){F=!0;break}M[c].unshift({i:-1,groupTitle:j,noClick:F,trace:{showlegend:q.showlegend,legendgroup:q.legendgroup,visible:w.groupclick==="toggleitem"||q.visible}})}for(a=0;a<M[c].length;a++)M[c][a]=[M[c][a]]}return w._lgroupsLength=M.length,w._maxNameLength=f,M}},33048:function(L,T,e){var k=e(24040),v=e(3400),n=v.pushUnique,w=!0;L.exports=function(b,c,a){var t=c._fullLayout;if(!c._dragged&&!c._editing){var o,i=t.legend.itemclick,s=t.legend.itemdoubleclick,l=t.legend.groupclick;if(a===1&&i==="toggle"&&s==="toggleothers"&&w&&c.data&&c._context.showTips&&v.notifier(v._(c,"Double-click on legend to isolate one trace"),"long"),w=!1,a===1?o=i:a===2&&(o=s),o){var u=l==="togglegroup",d=t.hiddenlabels?t.hiddenlabels.slice():[],g=b.data()[0][0];if(!g.groupTitle||!g.noClick){var f=c._fullData,C=(t.shapes||[]).filter(function(Oe){return Oe.showlegend}),y=f.concat(C),m=g.trace;m._isShape&&(m=m._fullInput);var x,_,S,O,h,M=m.legendgroup,N={},P=[],R=[],A=[],q=(t.shapes||[]).map(function(Oe){return Oe._input}),j=!1,X=m.legend,F=m._fullInput;if(F&&F._isShape||!k.traceIs(m,"pie-like")){var W,Y=M&&M.length,B=[];if(Y)for(x=0;x<y.length;x++)(W=y[x]).visible&&W.legendgroup===M&&B.push(x);if(o==="toggle"){var G;switch(m.visible){case!0:G="legendonly";break;case!1:G=!1;break;case"legendonly":G=!0}if(Y)if(u)for(x=0;x<y.length;x++){var J=y[x];J.visible!==!1&&J.legendgroup===M&&Ne(J,G)}else Ne(m,G);else Ne(m,G)}else if(o==="toggleothers"){var se,re,ne,$,te=!0;for(x=0;x<y.length;x++)if(se=($=y[x])===m,re=$.showlegend!==!0,!(se||re||Y&&$.legendgroup===M||$.legend!==X||$.visible!==!0||k.traceIs($,"notLegendIsolatable"))){te=!1;break}for(x=0;x<y.length;x++)if(($=y[x]).visible!==!1&&$.legend===X&&!k.traceIs($,"notLegendIsolatable"))switch(m.visible){case"legendonly":Ne($,!0);break;case!0:ne=!!te||"legendonly",se=$===m,re=$.showlegend!==!0&&!$.legendgroup,Ne($,!!(se||Y&&$.legendgroup===M||re)||ne)}}for(x=0;x<R.length;x++)if(S=R[x]){var ae=S.constructUpdate(),ce=Object.keys(ae);for(_=0;_<ce.length;_++)O=ce[_],(N[O]=N[O]||[])[A[x]]=ae[O]}for(h=Object.keys(N),x=0;x<h.length;x++)for(O=h[x],_=0;_<P.length;_++)N[O].hasOwnProperty(_)||(N[O][_]=void 0);j?k.call("_guiUpdate",c,N,{shapes:q},P):k.call("_guiRestyle",c,N,P)}else{var ue=g.label,de=d.indexOf(ue);if(o==="toggle")de===-1?d.push(ue):d.splice(de,1);else if(o==="toggleothers"){var me=de!==-1,be=[];for(x=0;x<c.calcdata.length;x++){var _e=c.calcdata[x];for(_=0;_<_e.length;_++){var we=_e[_].label;X===_e[0].trace.legend&&ue!==we&&(d.indexOf(we)===-1&&(me=!0),n(d,we),be.push(we))}}if(!me)for(var Ce=0;Ce<be.length;Ce++){var Se=d.indexOf(be[Ce]);Se!==-1&&d.splice(Se,1)}}k.call("_guiRelayout",c,"hiddenlabels",d)}}}}function Pe(Oe,pe){var fe=P.indexOf(Oe),xe=N.visible;return xe||(xe=N.visible=[]),P.indexOf(Oe)===-1&&(P.push(Oe),fe=P.length-1),xe[fe]=pe,fe}function Ne(Oe,pe){if(!g.groupTitle||u){var fe,xe=Oe._fullInput||Oe,ze=xe._isShape,Le=xe.index;if(Le===void 0&&(Le=xe._index),k.hasTransform(xe,"groupby")){var Ue=R[Le];if(!Ue){var Re=k.getTransformIndices(xe,"groupby"),Fe=Re[Re.length-1];Ue=v.keyedContainer(xe,"transforms["+Fe+"].styles","target","value.visible"),R[Le]=Ue}var ve=Ue.get(Oe._group);ve===void 0&&(ve=!0),ve!==!1&&Ue.set(Oe._group,pe),A[Le]=Pe(Le,xe.visible!==!1)}else{var ke=xe.visible!==!1&&pe;ze?(fe=ke,q[Le].visible=fe,j=!0):Pe(Le,ke)}}}}},42451:function(L,T){T.isGrouped=function(e){return(e.traceorder||"").indexOf("grouped")!==-1},T.isVertical=function(e){return e.orientation!=="h"},T.isReversed=function(e){return(e.traceorder||"").indexOf("reversed")!==-1}},2780:function(L,T,e){L.exports={moduleType:"component",name:"legend",layoutAttributes:e(3800),supplyLayoutDefaults:e(77864),draw:e(31140),style:e(2012)}},2012:function(L,T,e){var k=e(33428),v=e(24040),n=e(3400),w=n.strTranslate,b=e(43616),c=e(76308),a=e(94288).extractOpts,t=e(43028),o=e(10528),i=e(69656).castOption,s=e(65196);function l(g,f){return(f?"radial":"horizontal")+(g?"":"reversed")}function u(g){var f=g[0].trace,C=f.contours,y=t.hasLines(f),m=t.hasMarkers(f),x=f.visible&&f.fill&&f.fill!=="none",_=!1,S=!1;if(C){var O=C.coloring;O==="lines"?_=!0:y=O==="none"||O==="heatmap"||C.showlines,C.type==="constraint"?x=C._operation!=="=":O!=="fill"&&O!=="heatmap"||(S=!0)}return{showMarker:m,showLine:y,showFill:x,showGradientLine:_,showGradientFill:S,anyLine:y||_,anyFill:x||S}}function d(g,f,C){return g&&n.isArrayOrTypedArray(g)?f:g>C?C:g}L.exports=function(g,f,C){var y=f._fullLayout;C||(C=y.legend);var m=C.itemsizing==="constant",x=C.itemwidth,_=(x+2*s.itemGap)/2,S=w(_,0),O=function(N,P,R,A){var q;if(N+1)q=N;else{if(!(P&&P.width>0))return 0;q=P.width}return m?A:Math.min(q,R)};function h(N,P,R){var A=N[0].trace,q=A.marker||{},j=q.line||{},X=q.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",F=R?A.visible&&A.type===R:v.traceIs(A,"bar"),W=k.select(P).select("g.legendpoints").selectAll("path.legend"+R).data(F?[N]:[]);W.enter().append("path").classed("legend"+R,!0).attr("d",X).attr("transform",S),W.exit().remove(),W.each(function(Y){var B=k.select(this),G=Y[0],J=O(G.mlw,q.line,5,2);B.style("stroke-width",J+"px");var se=G.mcc;if(!C._inHover&&"mc"in G){var re=a(q),ne=re.mid;ne===void 0&&(ne=(re.max+re.min)/2),se=b.tryColorscale(q,"")(ne)}var $=se||G.mc||q.color,te=q.pattern,ae=te&&b.getPatternAttr(te.shape,0,"");if(ae){var ce=b.getPatternAttr(te.bgcolor,0,null),ue=b.getPatternAttr(te.fgcolor,0,null),de=te.fgopacity,me=d(te.size,8,10),be=d(te.solidity,.5,1),_e="legend-"+A.uid;B.call(b.pattern,"legend",f,_e,ae,me,be,se,te.fillmode,ce,ue,de)}else B.call(c.fill,$);J&&c.stroke(B,G.mlc||j.color)})}function M(N,P,R){var A=N[0],q=A.trace,j=R?q.visible&&q.type===R:v.traceIs(q,R),X=k.select(P).select("g.legendpoints").selectAll("path.legend"+R).data(j?[N]:[]);if(X.enter().append("path").classed("legend"+R,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",S),X.exit().remove(),X.size()){var F=q.marker||{},W=O(i(F.line.width,A.pts),F.line,5,2),Y="pieLike",B=n.minExtend(q,{marker:{line:{width:W}}},Y),G=n.minExtend(A,{trace:B},Y);o(X,G,B,f)}}g.each(function(N){var P=k.select(this),R=n.ensureSingle(P,"g","layers");R.style("opacity",N[0].trace.opacity);var A=C.valign,q=N[0].lineHeight,j=N[0].height;if(A!=="middle"&&q&&j){var X={top:1,bottom:-1}[A]*(.5*(q-j+3));R.attr("transform",w(0,X))}else R.attr("transform",null);R.selectAll("g.legendfill").data([N]).enter().append("g").classed("legendfill",!0),R.selectAll("g.legendlines").data([N]).enter().append("g").classed("legendlines",!0);var F=R.selectAll("g.legendsymbols").data([N]);F.enter().append("g").classed("legendsymbols",!0),F.selectAll("g.legendpoints").data([N]).enter().append("g").classed("legendpoints",!0)}).each(function(N){var P,R=N[0].trace,A=[];if(R.visible)switch(R.type){case"histogram2d":case"heatmap":A=[["M-15,-2V4H15V-2Z"]],P=!0;break;case"choropleth":case"choroplethmapbox":A=[["M-6,-6V6H6V-6Z"]],P=!0;break;case"densitymapbox":A=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],P="radial";break;case"cone":A=[["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"]],P=!1;break;case"streamtube":A=[["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"]],P=!1;break;case"surface":A=[["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"]],P=!0;break;case"mesh3d":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!1;break;case"volume":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],P=!0;break;case"isosurface":A=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],P=!1}var q=k.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(A);q.enter().append("path").classed("legend3dandfriends",!0).attr("transform",S).style("stroke-miterlimit",1),q.exit().remove(),q.each(function(j,X){var F,W=k.select(this),Y=a(R),B=Y.colorscale,G=Y.reversescale;if(B){if(!P){var J=B.length;F=X===0?B[G?J-1:0][1]:X===1?B[G?0:J-1][1]:B[Math.floor((J-1)/2)][1]}}else{var se=R.vertexcolor||R.facecolor||R.color;F=n.isArrayOrTypedArray(se)?se[X]||se[0]:se}W.attr("d",j[0]),F?W.call(c.fill,F):W.call(function(re){if(re.size()){var ne="legendfill-"+R.uid;b.gradient(re,f,ne,l(G,P==="radial"),B,"fill")}})})}).each(function(N){var P=N[0].trace,R=P.type==="waterfall";if(N[0]._distinct&&R){var A=N[0].trace[N[0].dir].marker;return N[0].mc=A.color,N[0].mlw=A.line.width,N[0].mlc=A.line.color,h(N,this,"waterfall")}var q=[];P.visible&&R&&(q=N[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 j=k.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(q);j.enter().append("path").classed("legendwaterfall",!0).attr("transform",S).style("stroke-miterlimit",1),j.exit().remove(),j.each(function(X){var F=k.select(this),W=P[X[0]].marker,Y=O(void 0,W.line,5,2);F.attr("d",X[1]).style("stroke-width",Y+"px").call(c.fill,W.color),Y&&F.call(c.stroke,W.line.color)})}).each(function(N){h(N,this,"funnel")}).each(function(N){h(N,this)}).each(function(N){var P=N[0].trace,R=k.select(this).select("g.legendpoints").selectAll("path.legendbox").data(P.visible&&v.traceIs(P,"box-violin")?[N]:[]);R.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",S),R.exit().remove(),R.each(function(){var A=k.select(this);if(P.boxpoints!=="all"&&P.points!=="all"||c.opacity(P.fillcolor)!==0||c.opacity((P.line||{}).color)!==0){var q=O(void 0,P.line,5,2);A.style("stroke-width",q+"px").call(c.fill,P.fillcolor),q&&c.stroke(A,P.line.color)}else{var j=n.minExtend(P,{marker:{size:m?12:n.constrain(P.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});R.call(b.pointStyle,j,f)}})}).each(function(N){M(N,this,"funnelarea")}).each(function(N){M(N,this,"pie")}).each(function(N){var P,R,A=u(N),q=A.showFill,j=A.showLine,X=A.showGradientLine,F=A.showGradientFill,W=A.anyFill,Y=A.anyLine,B=N[0],G=B.trace,J=a(G),se=J.colorscale,re=J.reversescale,ne=t.hasMarkers(G)||!W?"M5,0":Y?"M5,-2":"M5,-3",$=k.select(this),te=$.select(".legendfill").selectAll("path").data(q||F?[N]:[]);if(te.enter().append("path").classed("js-fill",!0),te.exit().remove(),te.attr("d",ne+"h"+x+"v6h-"+x+"z").call(function(ue){if(ue.size())if(q)b.fillGroupStyle(ue,f);else{var de="legendfill-"+G.uid;b.gradient(ue,f,de,l(re),se,"fill")}}),j||X){var ae=O(void 0,G.line,10,5);R=n.minExtend(G,{line:{width:ae}}),P=[n.minExtend(B,{trace:R})]}var ce=$.select(".legendlines").selectAll("path").data(j||X?[P]:[]);ce.enter().append("path").classed("js-line",!0),ce.exit().remove(),ce.attr("d",ne+(X?"l"+x+",0.0001":"h"+x)).call(j?b.lineGroupStyle:function(ue){if(ue.size()){var de="legendline-"+G.uid;b.lineGroupStyle(ue),b.gradient(ue,f,de,l(re),se,"stroke")}})}).each(function(N){var P,R,A=u(N),q=A.anyFill,j=A.anyLine,X=A.showLine,F=A.showMarker,W=N[0],Y=W.trace,B=!F&&!j&&!q&&t.hasText(Y);function G(ce,ue,de,me){var be=n.nestedProperty(Y,ce).get(),_e=n.isArrayOrTypedArray(be)&&ue?ue(be):be;if(m&&_e&&me!==void 0&&(_e=me),de){if(_e<de[0])return de[0];if(_e>de[1])return de[1]}return _e}function J(ce){return W._distinct&&W.index&&ce[W.index]?ce[W.index]:ce[0]}if(F||B||X){var se={},re={};if(F){se.mc=G("marker.color",J),se.mx=G("marker.symbol",J),se.mo=G("marker.opacity",n.mean,[.2,1]),se.mlc=G("marker.line.color",J),se.mlw=G("marker.line.width",n.mean,[0,5],2),re.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var ne=G("marker.size",n.mean,[2,16],12);se.ms=ne,re.marker.size=ne}X&&(re.line={width:G("line.width",J,[0,10],5)}),B&&(se.tx="Aa",se.tp=G("textposition",J),se.ts=10,se.tc=G("textfont.color",J),se.tf=G("textfont.family",J)),P=[n.minExtend(W,se)],(R=n.minExtend(Y,re)).selectedpoints=null,R.texttemplate=null}var $=k.select(this).select("g.legendpoints"),te=$.selectAll("path.scatterpts").data(F?P:[]);te.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",S),te.exit().remove(),te.call(b.pointStyle,R,f),F&&(P[0].mrc=3);var ae=$.selectAll("g.pointtext").data(B?P:[]);ae.enter().append("g").classed("pointtext",!0).append("text").attr("transform",S),ae.exit().remove(),ae.selectAll("text").call(b.textPointStyle,R,f)}).each(function(N){var P=N[0].trace,R=k.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(P.visible&&P.type==="candlestick"?[N,N]:[]);R.enter().append("path").classed("legendcandle",!0).attr("d",function(A,q){return q?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",S).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(A,q){var j=k.select(this),X=P[q?"increasing":"decreasing"],F=O(void 0,X.line,5,2);j.style("stroke-width",F+"px").call(c.fill,X.fillcolor),F&&c.stroke(j,X.line.color)})}).each(function(N){var P=N[0].trace,R=k.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(P.visible&&P.type==="ohlc"?[N,N]:[]);R.enter().append("path").classed("legendohlc",!0).attr("d",function(A,q){return q?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",S).style("stroke-miterlimit",1),R.exit().remove(),R.each(function(A,q){var j=k.select(this),X=P[q?"increasing":"decreasing"],F=O(void 0,X.line,5,2);j.style("fill","none").call(b.dashLine,X.line.dash,F),F&&c.stroke(j,X.line.color)})})}},66540:function(L,T,e){e(76052),L.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"}}},44248:function(L,T,e){var k=e(24040),v=e(7316),n=e(79811),w=e(9224),b=e(4016).eraseActiveShape,c=e(3400),a=c._,t=L.exports={};function o(y,m){var x,_,S=m.currentTarget,O=S.getAttribute("data-attr"),h=S.getAttribute("data-val")||!0,M=y._fullLayout,N={},P=n.list(y,null,!0),R=M._cartesianSpikesEnabled;if(O==="zoom"){var A,q=h==="in"?.5:2,j=(1+q)/2,X=(1-q)/2;for(_=0;_<P.length;_++)if(!(x=P[_]).fixedrange)if(A=x._name,h==="auto")N[A+".autorange"]=!0;else if(h==="reset")x._rangeInitial0===void 0&&x._rangeInitial1===void 0?N[A+".autorange"]=!0:x._rangeInitial0===void 0?(N[A+".autorange"]=x._autorangeInitial,N[A+".range"]=[null,x._rangeInitial1]):x._rangeInitial1===void 0?(N[A+".range"]=[x._rangeInitial0,null],N[A+".autorange"]=x._autorangeInitial):N[A+".range"]=[x._rangeInitial0,x._rangeInitial1],x._showSpikeInitial!==void 0&&(N[A+".showspikes"]=x._showSpikeInitial,R!=="on"||x._showSpikeInitial||(R="off"));else{var F=[x.r2l(x.range[0]),x.r2l(x.range[1])],W=[j*F[0]+X*F[1],j*F[1]+X*F[0]];N[A+".range[0]"]=x.l2r(W[0]),N[A+".range[1]"]=x.l2r(W[1])}}else O!=="hovermode"||h!=="x"&&h!=="y"||(h=M._isHoriz?"y":"x",S.setAttribute("data-val",h)),N[O]=h;M._cartesianSpikesEnabled=R,k.call("_guiRelayout",y,N)}function i(y,m){for(var x=m.currentTarget,_=x.getAttribute("data-attr"),S=x.getAttribute("data-val")||!0,O=y._fullLayout._subplots.gl3d||[],h={},M=_.split("."),N=0;N<O.length;N++)h[O[N]+"."+M[1]]=S;var P=S==="pan"?S:"zoom";h.dragmode=P,k.call("_guiRelayout",y,h)}function s(y,m){for(var x=m.currentTarget.getAttribute("data-attr"),_=x==="resetLastSave",S=x==="resetDefault",O=y._fullLayout,h=O._subplots.gl3d||[],M={},N=0;N<h.length;N++){var P,R=h[N],A=R+".camera",q=R+".aspectratio",j=R+".aspectmode",X=O[R]._scene;_?(M[A+".up"]=X.viewInitial.up,M[A+".eye"]=X.viewInitial.eye,M[A+".center"]=X.viewInitial.center,P=!0):S&&(M[A+".up"]=null,M[A+".eye"]=null,M[A+".center"]=null,P=!0),P&&(M[q+".x"]=X.viewInitial.aspectratio.x,M[q+".y"]=X.viewInitial.aspectratio.y,M[q+".z"]=X.viewInitial.aspectratio.z,M[j]=X.viewInitial.aspectmode)}k.call("_guiRelayout",y,M)}function l(y,m){var x=m.currentTarget,_=x._previousVal,S=y._fullLayout,O=S._subplots.gl3d||[],h=["xaxis","yaxis","zaxis"],M={},N={};if(_)N=_,x._previousVal=null;else{for(var P=0;P<O.length;P++){var R=O[P],A=S[R],q=R+".hovermode";M[q]=A.hovermode,N[q]=!1;for(var j=0;j<3;j++){var X=h[j],F=R+"."+X+".showspikes";N[F]=!1,M[F]=A[X].showspikes}}x._previousVal=M}return N}function u(y,m){for(var x=m.currentTarget,_=x.getAttribute("data-attr"),S=x.getAttribute("data-val")||!0,O=y._fullLayout,h=O._subplots.geo||[],M=0;M<h.length;M++){var N=h[M],P=O[N];if(_==="zoom"){var R=P.projection.scale,A=S==="in"?2*R:.5*R;k.call("_guiRelayout",y,N+".projection.scale",A)}}_==="reset"&&C(y,"geo")}function d(y){var m=y._fullLayout;return!m.hovermode&&(m._has("cartesian")?m._isHoriz?"y":"x":"closest")}function g(y){var m=d(y);k.call("_guiRelayout",y,"hovermode",m)}function f(y,m){for(var x=m.currentTarget.getAttribute("data-val"),_=y._fullLayout,S=_._subplots.mapbox||[],O={},h=0;h<S.length;h++){var M=S[h],N=_[M].zoom,P=x==="in"?1.05*N:N/1.05;O[M+".zoom"]=P}k.call("_guiRelayout",y,O)}function C(y,m){for(var x=y._fullLayout,_=x._subplots[m]||[],S={},O=0;O<_.length;O++)for(var h=_[O],M=x[h]._subplot.viewInitial,N=Object.keys(M),P=0;P<N.length;P++){var R=N[P];S[h+"."+R]=M[R]}k.call("_guiRelayout",y,S)}t.toImage={name:"toImage",title:function(y){var m=(y._context.toImageButtonOptions||{}).format||"png";return a(y,m==="png"?"Download plot as a png":"Download plot")},icon:w.camera,click:function(y){var m=y._context.toImageButtonOptions,x={format:m.format||"png"};c.notifier(a(y,"Taking snapshot - this may take a few seconds"),"long"),x.format!=="svg"&&c.isIE()&&(c.notifier(a(y,"IE only supports svg. Changing format to svg."),"long"),x.format="svg"),["filename","width","height","scale"].forEach(function(_){_ in m&&(x[_]=m[_])}),k.call("downloadImage",y,x).then(function(_){c.notifier(a(y,"Snapshot succeeded")+" - "+_,"long")}).catch(function(){c.notifier(a(y,"Sorry, there was a problem downloading your snapshot!"),"long")})}},t.sendDataToCloud={name:"sendDataToCloud",title:function(y){return a(y,"Edit in Chart Studio")},icon:w.disk,click:function(y){v.sendDataToCloud(y)}},t.editInChartStudio={name:"editInChartStudio",title:function(y){return a(y,"Edit in Chart Studio")},icon:w.pencil,click:function(y){v.sendDataToCloud(y)}},t.zoom2d={name:"zoom2d",_cat:"zoom",title:function(y){return a(y,"Zoom")},attr:"dragmode",val:"zoom",icon:w.zoombox,click:o},t.pan2d={name:"pan2d",_cat:"pan",title:function(y){return a(y,"Pan")},attr:"dragmode",val:"pan",icon:w.pan,click:o},t.select2d={name:"select2d",_cat:"select",title:function(y){return a(y,"Box Select")},attr:"dragmode",val:"select",icon:w.selectbox,click:o},t.lasso2d={name:"lasso2d",_cat:"lasso",title:function(y){return a(y,"Lasso Select")},attr:"dragmode",val:"lasso",icon:w.lasso,click:o},t.drawclosedpath={name:"drawclosedpath",title:function(y){return a(y,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:w.drawclosedpath,click:o},t.drawopenpath={name:"drawopenpath",title:function(y){return a(y,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:w.drawopenpath,click:o},t.drawline={name:"drawline",title:function(y){return a(y,"Draw line")},attr:"dragmode",val:"drawline",icon:w.drawline,click:o},t.drawrect={name:"drawrect",title:function(y){return a(y,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:w.drawrect,click:o},t.drawcircle={name:"drawcircle",title:function(y){return a(y,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:w.drawcircle,click:o},t.eraseshape={name:"eraseshape",title:function(y){return a(y,"Erase active shape")},icon:w.eraseshape,click:b},t.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(y){return a(y,"Zoom in")},attr:"zoom",val:"in",icon:w.zoom_plus,click:o},t.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(y){return a(y,"Zoom out")},attr:"zoom",val:"out",icon:w.zoom_minus,click:o},t.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(y){return a(y,"Autoscale")},attr:"zoom",val:"auto",icon:w.autoscale,click:o},t.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(y){return a(y,"Reset axes")},attr:"zoom",val:"reset",icon:w.home,click:o},t.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(y){return a(y,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:w.tooltip_basic,gravity:"ne",click:o},t.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(y){return a(y,"Compare data on hover")},attr:"hovermode",val:function(y){return y._fullLayout._isHoriz?"y":"x"},icon:w.tooltip_compare,gravity:"ne",click:o},t.zoom3d={name:"zoom3d",_cat:"zoom",title:function(y){return a(y,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:w.zoombox,click:i},t.pan3d={name:"pan3d",_cat:"pan",title:function(y){return a(y,"Pan")},attr:"scene.dragmode",val:"pan",icon:w.pan,click:i},t.orbitRotation={name:"orbitRotation",title:function(y){return a(y,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:w["3d_rotate"],click:i},t.tableRotation={name:"tableRotation",title:function(y){return a(y,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:w["z-axis"],click:i},t.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(y){return a(y,"Reset camera to default")},attr:"resetDefault",icon:w.home,click:s},t.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(y){return a(y,"Reset camera to last save")},attr:"resetLastSave",icon:w.movie,click:s},t.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(y){return a(y,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:w.tooltip_basic,gravity:"ne",click:function(y,m){var x=l(y,m);k.call("_guiRelayout",y,x)}},t.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(y){return a(y,"Zoom in")},attr:"zoom",val:"in",icon:w.zoom_plus,click:u},t.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(y){return a(y,"Zoom out")},attr:"zoom",val:"out",icon:w.zoom_minus,click:u},t.resetGeo={name:"resetGeo",_cat:"reset",title:function(y){return a(y,"Reset")},attr:"reset",val:null,icon:w.autoscale,click:u},t.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(y){return a(y,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:w.tooltip_basic,gravity:"ne",click:g},t.hoverClosestGl2d={name:"hoverClosestGl2d",_cat:"hoverclosest",title:function(y){return a(y,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:w.tooltip_basic,gravity:"ne",click:g},t.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(y){return a(y,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:w.tooltip_basic,gravity:"ne",click:g},t.resetViewSankey={name:"resetSankeyGroup",title:function(y){return a(y,"Reset view")},icon:w.home,click:function(y){for(var m={"node.groups":[],"node.x":[],"node.y":[]},x=0;x<y._fullData.length;x++){var _=y._fullData[x]._viewInitial;m["node.groups"].push(_.node.groups.slice()),m["node.x"].push(_.node.x.slice()),m["node.y"].push(_.node.y.slice())}k.call("restyle",y,m)}},t.toggleHover={name:"toggleHover",title:function(y){return a(y,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:w.tooltip_basic,gravity:"ne",click:function(y,m){var x=l(y,m);x.hovermode=d(y),k.call("_guiRelayout",y,x)}},t.resetViews={name:"resetViews",title:function(y){return a(y,"Reset views")},icon:w.home,click:function(y,m){var x=m.currentTarget;x.setAttribute("data-attr","zoom"),x.setAttribute("data-val","reset"),o(y,m),x.setAttribute("data-attr","resetLastSave"),s(y,m),C(y,"geo"),C(y,"mapbox")}},t.toggleSpikelines={name:"toggleSpikelines",title:function(y){return a(y,"Toggle Spike Lines")},icon:w.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(y){var m=y._fullLayout,x=m._cartesianSpikesEnabled;m._cartesianSpikesEnabled=x==="on"?"off":"on",k.call("_guiRelayout",y,function(_){for(var S=_._fullLayout._cartesianSpikesEnabled==="on",O=n.list(_,null,!0),h={},M=0;M<O.length;M++){var N=O[M];h[N._name+".showspikes"]=!!S||N._showSpikeInitial}return h}(y))}},t.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(y){return a(y,"Reset view")},attr:"reset",icon:w.home,click:function(y){C(y,"mapbox")}},t.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(y){return a(y,"Zoom in")},attr:"zoom",val:"in",icon:w.zoom_plus,click:f},t.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(y){return a(y,"Zoom out")},attr:"zoom",val:"out",icon:w.zoom_minus,click:f}},76052:function(L,T,e){var k=e(44248),v=Object.keys(k),n=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],w=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(n),b=[];v.forEach(function(c){(function(a){if(w.indexOf(a._cat||a.name)===-1){var t=a.name,o=(a._cat||a.name).toLowerCase();b.indexOf(t)===-1&&b.push(t),b.indexOf(o)===-1&&b.push(o)}})(k[c])}),b.sort(),L.exports={DRAW_MODES:n,backButtons:w,foreButtons:b}},90824:function(L,T,e){var k=e(3400),v=e(76308),n=e(31780),w=e(66540);L.exports=function(b,c){var a=b.modebar||{},t=n.newContainer(c,"modebar");function o(s,l){return k.coerce(a,t,w,s,l)}o("orientation"),o("bgcolor",v.addOpacity(c.paper_bgcolor,.5));var i=v.contrast(v.rgb(c.modebar.bgcolor));o("color",v.addOpacity(i,.3)),o("activecolor",v.addOpacity(i,.7)),o("uirevision",c.uirevision),o("add"),o("remove")}},45460:function(L,T,e){L.exports={moduleType:"component",name:"modebar",layoutAttributes:e(66540),supplyLayoutDefaults:e(90824),manage:e(18816)}},18816:function(L,T,e){var k=e(79811),v=e(43028),n=e(24040),w=e(10624).isUnifiedHover,b=e(66400),c=e(44248),a=e(76052).DRAW_MODES,t=e(3400).extendDeep;L.exports=function(o){var i=o._fullLayout,s=o._context,l=i._modeBar;if(s.displayModeBar||s.watermark){if(!Array.isArray(s.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(s.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var u,d=s.modeBarButtons;u=Array.isArray(d)&&d.length?function(g){for(var f=t([],g),C=0;C<f.length;C++)for(var y=f[C],m=0;m<y.length;m++){var x=y[m];if(typeof x=="string"){if(c[x]===void 0)throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "));f[C][m]=c[x]}}return f}(d):!s.displayModeBar&&s.watermark?[]:function(g){var f=g._fullLayout,C=g._fullData,y=g._context;function m(be,_e){if(typeof _e=="string"){if(_e.toLowerCase()===be.toLowerCase())return!0}else{var we=_e.name,Ce=_e._cat||_e.name;if(we===be||Ce===be.toLowerCase())return!0}return!1}var x=f.modebar.add;typeof x=="string"&&(x=[x]);var _=f.modebar.remove;typeof _=="string"&&(_=[_]);var S=y.modeBarButtonsToAdd.concat(x.filter(function(be){for(var _e=0;_e<y.modeBarButtonsToRemove.length;_e++)if(m(be,y.modeBarButtonsToRemove[_e]))return!1;return!0})),O=y.modeBarButtonsToRemove.concat(_.filter(function(be){for(var _e=0;_e<y.modeBarButtonsToAdd.length;_e++)if(m(be,y.modeBarButtonsToAdd[_e]))return!1;return!0})),h=f._has("cartesian"),M=f._has("gl3d"),N=f._has("geo"),P=f._has("pie"),R=f._has("funnelarea"),A=f._has("gl2d"),q=f._has("ternary"),j=f._has("mapbox"),X=f._has("polar"),F=f._has("smith"),W=f._has("sankey"),Y=function(be){for(var _e=k.list({_fullLayout:be},null,!0),we=0;we<_e.length;we++)if(!_e[we].fixedrange)return!1;return!0}(f),B=w(f.hovermode),G=[];function J(be){if(be.length){for(var _e=[],we=0;we<be.length;we++){for(var Ce=be[we],Se=c[Ce],Pe=Se.name.toLowerCase(),Ne=(Se._cat||Se.name).toLowerCase(),Oe=!1,pe=0;pe<O.length;pe++){var fe=O[pe].toLowerCase();if(fe===Pe||fe===Ne){Oe=!0;break}}Oe||_e.push(c[Ce])}G.push(_e)}}var se=["toImage"];y.showEditInChartStudio?se.push("editInChartStudio"):y.showSendToCloud&&se.push("sendDataToCloud"),J(se);var re=[],ne=[],$=[],te=[];(h||A||P||R||q)+N+M+j+X+F>1?(ne=["toggleHover"],$=["resetViews"]):N?(re=["zoomInGeo","zoomOutGeo"],ne=["hoverClosestGeo"],$=["resetGeo"]):M?(ne=["hoverClosest3d"],$=["resetCameraDefault3d","resetCameraLastSave3d"]):j?(re=["zoomInMapbox","zoomOutMapbox"],ne=["toggleHover"],$=["resetViewMapbox"]):A?ne=["hoverClosestGl2d"]:P?ne=["hoverClosestPie"]:W?(ne=["hoverClosestCartesian","hoverCompareCartesian"],$=["resetViewSankey"]):ne=["toggleHover"],h&&(ne=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(be){for(var _e=0;_e<be.length;_e++)if(!n.traceIs(be[_e],"noHover"))return!1;return!0}(C)||B)&&(ne=[]),!h&&!A||Y||(re=["zoomIn2d","zoomOut2d","autoScale2d"],$[0]!=="resetViews"&&($=["resetScale2d"])),M?te=["zoom3d","pan3d","orbitRotation","tableRotation"]:(h||A)&&!Y||q?te=["zoom2d","pan2d"]:j||N?te=["pan2d"]:X&&(te=["zoom2d"]),function(be){for(var _e=!1,we=0;we<be.length&&!_e;we++){var Ce=be[we];Ce._module&&Ce._module.selectPoints&&(n.traceIs(Ce,"scatter-like")?(v.hasMarkers(Ce)||v.hasText(Ce))&&(_e=!0):n.traceIs(Ce,"box-violin")&&Ce.boxpoints!=="all"&&Ce.points!=="all"||(_e=!0))}return _e}(C)&&te.push("select2d","lasso2d");var ae=[],ce=function(be){ae.indexOf(be)===-1&&ne.indexOf(be)!==-1&&ae.push(be)};if(Array.isArray(S)){for(var ue=[],de=0;de<S.length;de++){var me=S[de];typeof me=="string"?(me=me.toLowerCase(),a.indexOf(me)!==-1?(f._has("mapbox")||f._has("cartesian"))&&te.push(me):me==="togglespikelines"?ce("toggleSpikelines"):me==="togglehover"?ce("toggleHover"):me==="hovercompare"?ce("hoverCompareCartesian"):me==="hoverclosest"?(ce("hoverClosestCartesian"),ce("hoverClosestGeo"),ce("hoverClosest3d"),ce("hoverClosestGl2d"),ce("hoverClosestPie")):me==="v1hovermode"&&(ce("toggleHover"),ce("hoverClosestCartesian"),ce("hoverCompareCartesian"),ce("hoverClosestGeo"),ce("hoverClosest3d"),ce("hoverClosestGl2d"),ce("hoverClosestPie"))):ue.push(me)}S=ue}return J(te),J(re.concat($)),J(ae),function(be,_e){if(_e.length)if(Array.isArray(_e[0]))for(var we=0;we<_e.length;we++)be.push(_e[we]);else be.push(_e);return be}(G,S)}(o),l?l.update(o,u):i._modeBar=b(o,u)}else l&&(l.destroy(),delete i._modeBar)}},66400:function(L,T,e){var k=e(33428),v=e(38248),n=e(3400),w=e(9224),b=e(25788).version,c=new DOMParser;function a(o){this.container=o.container,this.element=document.createElement("div"),this.update(o.graphInfo,o.buttons),this.container.appendChild(this.element)}var t=a.prototype;t.update=function(o,i){this.graphInfo=o;var s=this.graphInfo._context,l=this.graphInfo._fullLayout,u="modebar-"+l._uid;this.element.setAttribute("id",u),this._uid=u,this.element.className="modebar",s.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),l.modebar.orientation==="v"&&(this.element.className+=" vertical",i=i.reverse());var d=l.modebar,g=s.displayModeBar==="hover"?".js-plotly-plot .plotly:hover ":"";n.deleteRelatedStyleRule(u),n.addRelatedStyleRule(u,g+"#"+u+" .modebar-group","background-color: "+d.bgcolor),n.addRelatedStyleRule(u,"#"+u+" .modebar-btn .icon path","fill: "+d.color),n.addRelatedStyleRule(u,"#"+u+" .modebar-btn:hover .icon path","fill: "+d.activecolor),n.addRelatedStyleRule(u,"#"+u+" .modebar-btn.active .icon path","fill: "+d.activecolor);var f=!this.hasButtons(i),C=this.hasLogo!==s.displaylogo,y=this.locale!==s.locale;if(this.locale=s.locale,(f||C||y)&&(this.removeAllButtons(),this.updateButtons(i),s.watermark||s.displaylogo)){var m=this.getLogo();s.watermark&&(m.className=m.className+" watermark"),l.modebar.orientation==="v"?this.element.insertBefore(m,this.element.childNodes[0]):this.element.appendChild(m),this.hasLogo=!0}this.updateActiveButton()},t.updateButtons=function(o){var i=this;this.buttons=o,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(s){var l=i.createGroup();s.forEach(function(u){var d=u.name;if(!d)throw new Error("must provide button 'name' in button config");if(i.buttonsNames.indexOf(d)!==-1)throw new Error("button name '"+d+"' is taken");i.buttonsNames.push(d);var g=i.createButton(u);i.buttonElements.push(g),l.appendChild(g)}),i.element.appendChild(l)})},t.createGroup=function(){var o=document.createElement("div");return o.className="modebar-group",o},t.createButton=function(o){var i=this,s=document.createElement("a");s.setAttribute("rel","tooltip"),s.className="modebar-btn";var l=o.title;l===void 0?l=o.name:typeof l=="function"&&(l=l(this.graphInfo)),(l||l===0)&&s.setAttribute("data-title",l),o.attr!==void 0&&s.setAttribute("data-attr",o.attr);var u=o.val;if(u!==void 0&&(typeof u=="function"&&(u=u(this.graphInfo)),s.setAttribute("data-val",u)),typeof o.click!="function")throw new Error("must provide button 'click' function in button config");s.addEventListener("click",function(g){o.click(i.graphInfo,g),i.updateActiveButton(g.currentTarget)}),s.setAttribute("data-toggle",o.toggle||!1),o.toggle&&k.select(s).classed("active",!0);var d=o.icon;return typeof d=="function"?s.appendChild(d()):s.appendChild(this.createIcon(d||w.question)),s.setAttribute("data-gravity",o.gravity||"n"),s},t.createIcon=function(o){var i,s=v(o.height)?Number(o.height):o.ascent-o.descent,l="http://www.w3.org/2000/svg";if(o.path){(i=document.createElementNS(l,"svg")).setAttribute("viewBox",[0,0,o.width,s].join(" ")),i.setAttribute("class","icon");var u=document.createElementNS(l,"path");u.setAttribute("d",o.path),o.transform?u.setAttribute("transform",o.transform):o.ascent!==void 0&&u.setAttribute("transform","matrix(1 0 0 -1 0 "+o.ascent+")"),i.appendChild(u)}return o.svg&&(i=c.parseFromString(o.svg,"application/xml").childNodes[0]),i.setAttribute("height","1em"),i.setAttribute("width","1em"),i},t.updateActiveButton=function(o){var i=this.graphInfo._fullLayout,s=o!==void 0?o.getAttribute("data-attr"):null;this.buttonElements.forEach(function(l){var u=l.getAttribute("data-val")||!0,d=l.getAttribute("data-attr"),g=l.getAttribute("data-toggle")==="true",f=k.select(l);if(g)d===s&&f.classed("active",!f.classed("active"));else{var C=d===null?d:n.nestedProperty(i,d).get();f.classed("active",C===u)}})},t.hasButtons=function(o){var i=this.buttons;if(!i||o.length!==i.length)return!1;for(var s=0;s<o.length;++s){if(o[s].length!==i[s].length)return!1;for(var l=0;l<o[s].length;l++)if(o[s][l].name!==i[s][l].name)return!1}return!0},t.getLogo=function(){var o=this.createGroup(),i=document.createElement("a");return i.href="https://plotly.com/",i.target="_blank",i.setAttribute("data-title",n._(this.graphInfo,"Produced with Plotly.js")+" (v"+b+")"),i.className="modebar-btn plotlyjsicon modebar-btn--logo",i.appendChild(this.createIcon(w.newplotlylogo)),o.appendChild(i),o},t.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},t.destroy=function(){n.removeElement(this.container.querySelector(".modebar")),n.deleteRelatedStyleRule(this._uid)},L.exports=function(o,i){var s=o._fullLayout,l=new a({graphInfo:o,container:s._modebardiv.node(),buttons:i});return s._privateplot&&k.select(l.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),l}},26680:function(L,T,e){var k=e(25376),v=e(22548),n=(0,e(31780).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"});L.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:k({editType:"plot"}),bgcolor:{valType:"color",dflt:v.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:v.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}},85984:function(L){L.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},22148:function(L,T,e){var k=e(3400),v=e(76308),n=e(31780),w=e(51272),b=e(26680),c=e(85984);function a(t,o,i,s){var l=s.calendar;function u(g,f){return k.coerce(t,o,b.buttons,g,f)}if(u("visible")){var d=u("step");d!=="all"&&(!l||l==="gregorian"||d!=="month"&&d!=="year"?u("stepmode"):o.stepmode="backward",u("count")),u("label")}}L.exports=function(t,o,i,s,l){var u=t.rangeselector||{},d=n.newContainer(o,"rangeselector");function g(y,m){return k.coerce(u,d,b,y,m)}if(g("visible",w(u,d,{name:"buttons",handleItemDefaults:a,calendar:l}).length>0)){var f=function(y,m,x){for(var _=x.filter(function(M){return m[M].anchor===y._id}),S=0,O=0;O<_.length;O++){var h=m[_[O]].domain;h&&(S=Math.max(h[1],S))}return[y.domain[0],S+c.yPad]}(o,i,s);g("x",f[0]),g("y",f[1]),k.noneOrAll(t,o,["x","y"]),g("xanchor"),g("yanchor"),k.coerceFont(g,"font",i.font);var C=g("bgcolor");g("activecolor",v.contrast(C,c.lightAmount,c.darkAmount)),g("bordercolor"),g("borderwidth")}}},50216:function(L,T,e){var k=e(33428),v=e(24040),n=e(7316),w=e(76308),b=e(43616),c=e(3400),a=c.strTranslate,t=e(72736),o=e(79811),i=e(84284),s=i.LINE_SPACING,l=i.FROM_TL,u=i.FROM_BR,d=e(85984),g=e(48040);function f(m){return m._id}function C(m,x,_){var S=c.ensureSingle(m,"rect","selector-rect",function(O){O.attr("shape-rendering","crispEdges")});S.attr({rx:d.rx,ry:d.ry}),S.call(w.stroke,x.bordercolor).call(w.fill,function(O,h){return h._isActive||h._isHovered?O.activecolor:O.bgcolor}(x,_)).style("stroke-width",x.borderwidth+"px")}function y(m,x,_,S){var O,h;c.ensureSingle(m,"text","selector-text",function(M){M.attr("text-anchor","middle")}).call(b.font,x.font).text((O=_,h=S._fullLayout._meta,O.label?h?c.templateString(O.label,h):O.label:O.step==="all"?"all":O.count+O.step.charAt(0))).call(function(M){t.convertToTspans(M,S)})}L.exports=function(m){var x=m._fullLayout._infolayer.selectAll(".rangeselector").data(function(_){for(var S=o.list(_,"x",!0),O=[],h=0;h<S.length;h++){var M=S[h];M.rangeselector&&M.rangeselector.visible&&O.push(M)}return O}(m),f);x.enter().append("g").classed("rangeselector",!0),x.exit().remove(),x.style({cursor:"pointer","pointer-events":"all"}),x.each(function(_){var S=k.select(this),O=_,h=O.rangeselector,M=S.selectAll("g.button").data(c.filterVisible(h.buttons));M.enter().append("g").classed("button",!0),M.exit().remove(),M.each(function(N){var P=k.select(this),R=g(O,N);N._isActive=function(A,q,j){if(q.step==="all")return A.autorange===!0;var X=Object.keys(j);return A.range[0]===j[X[0]]&&A.range[1]===j[X[1]]}(O,N,R),P.call(C,h,N),P.call(y,h,N,m),P.on("click",function(){m._dragged||v.call("_guiRelayout",m,R)}),P.on("mouseover",function(){N._isHovered=!0,P.call(C,h,N)}),P.on("mouseout",function(){N._isHovered=!1,P.call(C,h,N)})}),function(N,P,R,A,q){var j=0,X=0,F=R.borderwidth;P.each(function(){var se=k.select(this).select(".selector-text"),re=R.font.size*s,ne=Math.max(re*t.lineCount(se),16)+3;X=Math.max(X,ne)}),P.each(function(){var se=k.select(this),re=se.select(".selector-rect"),ne=se.select(".selector-text"),$=ne.node()&&b.bBox(ne.node()).width,te=R.font.size*s,ae=t.lineCount(ne),ce=Math.max($+10,d.minButtonWidth);se.attr("transform",a(F+j,F)),re.attr({x:0,y:0,width:ce,height:X}),t.positionText(ne,ce/2,X/2-(ae-1)*te/2+3),j+=ce+5});var W=N._fullLayout._size,Y=W.l+W.w*R.x,B=W.t+W.h*(1-R.y),G="left";c.isRightAnchor(R)&&(Y-=j,G="right"),c.isCenterAnchor(R)&&(Y-=j/2,G="center");var J="top";c.isBottomAnchor(R)&&(B-=X,J="bottom"),c.isMiddleAnchor(R)&&(B-=X/2,J="middle"),j=Math.ceil(j),X=Math.ceil(X),Y=Math.round(Y),B=Math.round(B),n.autoMargin(N,A+"-range-selector",{x:R.x,y:R.y,l:j*l[G],r:j*u[G],b:X*u[J],t:X*l[J]}),q.attr("transform",a(Y,B))}(m,M,h,O._name,S)})}},48040:function(L,T,e){var k=e(73220),v=e(3400).titleCase;L.exports=function(n,w){var b=n._name,c={};if(w.step==="all")c[b+".autorange"]=!0;else{var a=function(t,o){var i,s=t.range,l=new Date(t.r2l(s[1])),u=o.step,d=k["utc"+v(u)],g=o.count;switch(o.stepmode){case"backward":i=t.l2r(+d.offset(l,-g));break;case"todate":var f=d.offset(l,-g);i=t.l2r(+d.ceil(f))}return[i,s[1]]}(n,w);c[b+".range[0]"]=a[0],c[b+".range[1]"]=a[1]}return c}},41152:function(L,T,e){L.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:e(26680)}}},layoutAttributes:e(26680),handleDefaults:e(22148),draw:e(50216)}},11200:function(L,T,e){var k=e(22548);L.exports={bgcolor:{valType:"color",dflt:k.background,editType:"plot"},bordercolor:{valType:"color",dflt:k.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"}},26652:function(L,T,e){var k=e(79811).list,v=e(19280).getAutoRange,n=e(74636);L.exports=function(w){for(var b=k(w,"x",!0),c=0;c<b.length;c++){var a=b[c],t=a[n.name];t&&t.visible&&t.autorange&&(t._input.autorange=!0,t._input.range=t.range=v(w,a))}}},74636:function(L){L.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}},94040:function(L,T,e){var k=e(3400),v=e(31780),n=e(79811),w=e(11200),b=e(10936);L.exports=function(c,a,t){var o=c[t],i=a[t];if(o.rangeslider||a._requestRangeslider[i._id]){k.isPlainObject(o.rangeslider)||(o.rangeslider={});var s,l,u=o.rangeslider,d=v.newContainer(i,"rangeslider");if(S("visible")){S("bgcolor",a.plot_bgcolor),S("bordercolor"),S("borderwidth"),S("thickness"),S("autorange",!i.isValidRange(u.range)),S("range");var g=a._subplots;if(g)for(var f=g.cartesian.filter(function(h){return h.substr(0,h.indexOf("y"))===n.name2id(t)}).map(function(h){return h.substr(h.indexOf("y"),h.length)}),C=k.simpleMap(f,n.id2name),y=0;y<C.length;y++){var m=C[y];s=u[m]||{},l=v.newContainer(d,m,"yaxis");var x,_=a[m];s.range&&_.isValidRange(s.range)&&(x="fixed"),O("rangemode",x)!=="match"&&O("range",_.range.slice())}d._input=u}}function S(h,M){return k.coerce(u,d,w,h,M)}function O(h,M){return k.coerce(s,l,b,h,M)}}},20060:function(L,T,e){var k=e(33428),v=e(24040),n=e(7316),w=e(3400),b=w.strTranslate,c=e(43616),a=e(76308),t=e(81668),o=e(57952),i=e(79811),s=e(86476),l=e(93972),u=e(74636);function d(_){return typeof _.clientX=="number"?_.clientX:_.touches&&_.touches.length>0?_.touches[0].clientX:0}function g(_,S,O,h){var M=w.ensureSingle(_,"rect",u.bgClassName,function(A){A.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),N=h.borderwidth%2==0?h.borderwidth:h.borderwidth-1,P=-h._offsetShift,R=c.crispRound(S,h.borderwidth);M.attr({width:h._width+N,height:h._height+N,transform:b(P,P),"stroke-width":R}).call(a.stroke,h.bordercolor).call(a.fill,h.bgcolor)}function f(_,S,O,h){var M=S._fullLayout;w.ensureSingleById(M._topdefs,"clipPath",h._clipId,function(N){N.append("rect").attr({x:0,y:0})}).select("rect").attr({width:h._width,height:h._height})}function C(_,S,O,h){var M,N=S.calcdata,P=_.selectAll("g."+u.rangePlotClassName).data(O._subplotsWith,w.identity);P.enter().append("g").attr("class",function(R){return u.rangePlotClassName+" "+R}).call(c.setClipUrl,h._clipId,S),P.order(),P.exit().remove(),P.each(function(R,A){var q=k.select(this),j=A===0,X=i.getFromId(S,R,"y"),F=X._name,W=h[F],Y={data:[],layout:{xaxis:{type:O.type,domain:[0,1],range:h.range.slice(),calendar:O.calendar},width:h._width,height:h._height,margin:{t:0,b:0,l:0,r:0}},_context:S._context};O.rangebreaks&&(Y.layout.xaxis.rangebreaks=O.rangebreaks),Y.layout[F]={type:X.type,domain:[0,1],range:W.rangemode!=="match"?W.range.slice():X.range.slice(),calendar:X.calendar},X.rangebreaks&&(Y.layout[F].rangebreaks=X.rangebreaks),n.supplyDefaults(Y);var B=Y._fullLayout.xaxis,G=Y._fullLayout[F];B.clearCalc(),B.setScale(),G.clearCalc(),G.setScale();var J={id:R,plotgroup:q,xaxis:B,yaxis:G,isRangePlot:!0};j?M=J:(J.mainplot="xy",J.mainplotinfo=M),o.rangePlot(S,J,function(se,re){for(var ne=[],$=0;$<se.length;$++){var te=se[$],ae=te[0].trace;ae.xaxis+ae.yaxis===re&&ne.push(te)}return ne}(N,R))})}function y(_,S,O,h,M){w.ensureSingle(_,"rect",u.maskMinClassName,function(N){N.attr({x:0,y:0,"shape-rendering":"crispEdges"})}).attr("height",h._height).call(a.fill,u.maskColor),w.ensureSingle(_,"rect",u.maskMaxClassName,function(N){N.attr({y:0,"shape-rendering":"crispEdges"})}).attr("height",h._height).call(a.fill,u.maskColor),M.rangemode!=="match"&&(w.ensureSingle(_,"rect",u.maskMinOppAxisClassName,function(N){N.attr({y:0,"shape-rendering":"crispEdges"})}).attr("width",h._width).call(a.fill,u.maskOppAxisColor),w.ensureSingle(_,"rect",u.maskMaxOppAxisClassName,function(N){N.attr({y:0,"shape-rendering":"crispEdges"})}).attr("width",h._width).style("border-top",u.maskOppBorder).call(a.fill,u.maskOppAxisColor))}function m(_,S,O,h){S._context.staticPlot||w.ensureSingle(_,"rect",u.slideBoxClassName,function(M){M.attr({y:0,cursor:u.slideBoxCursor,"shape-rendering":"crispEdges"})}).attr({height:h._height,fill:u.slideBoxFill})}function x(_,S,O,h){var M=w.ensureSingle(_,"g",u.grabberMinClassName),N=w.ensureSingle(_,"g",u.grabberMaxClassName),P={x:0,width:u.handleWidth,rx:u.handleRadius,fill:a.background,stroke:a.defaultLine,"stroke-width":u.handleStrokeWidth,"shape-rendering":"crispEdges"},R={y:Math.round(h._height/4),height:Math.round(h._height/2)};w.ensureSingle(M,"rect",u.handleMinClassName,function(q){q.attr(P)}).attr(R),w.ensureSingle(N,"rect",u.handleMaxClassName,function(q){q.attr(P)}).attr(R);var A={width:u.grabAreaWidth,x:0,y:0,fill:u.grabAreaFill,cursor:S._context.staticPlot?void 0:u.grabAreaCursor};w.ensureSingle(M,"rect",u.grabAreaMinClassName,function(q){q.attr(A)}).attr("height",h._height),w.ensureSingle(N,"rect",u.grabAreaMaxClassName,function(q){q.attr(A)}).attr("height",h._height)}L.exports=function(_){for(var S=_._fullLayout,O=S._rangeSliderData,h=0;h<O.length;h++){var M=O[h][u.name];M._clipId=M._id+"-"+S._uid}var N=S._infolayer.selectAll("g."+u.containerClassName).data(O,function(P){return P._name});N.exit().each(function(P){var R=P[u.name];S._topdefs.select("#"+R._clipId).remove()}).remove(),O.length!==0&&(N.enter().append("g").classed(u.containerClassName,!0).attr("pointer-events","all"),N.each(function(P){var R=k.select(this),A=P[u.name],q=S[i.id2name(P.anchor)],j=A[i.id2name(P.anchor)];if(A.range){var X,F=w.simpleMap(A.range,P.r2l),W=w.simpleMap(P.range,P.r2l);X=W[0]<W[1]?[Math.min(F[0],W[0]),Math.max(F[1],W[1])]:[Math.max(F[0],W[0]),Math.min(F[1],W[1])],A.range=A._input.range=w.simpleMap(X,P.l2r)}P.cleanRange("rangeslider.range");var Y=S._size,B=P.domain;A._width=Y.w*(B[1]-B[0]);var G=Math.round(Y.l+Y.w*B[0]),J=Math.round(Y.t+Y.h*(1-P._counterDomainMin)+(P.side==="bottom"?P._depth:0)+A._offsetShift+u.extraPad);R.attr("transform",b(G,J)),A._rl=w.simpleMap(A.range,P.r2l);var se=A._rl[0],re=A._rl[1],ne=re-se;if(A.p2d=function(_e){return _e/A._width*ne+se},A.d2p=function(_e){return(_e-se)/ne*A._width},P.rangebreaks){var $=P.locateBreaks(se,re);if($.length){var te,ae,ce=0;for(te=0;te<$.length;te++)ce+=(ae=$[te]).max-ae.min;var ue=A._width/(re-se-ce),de=[-ue*se];for(te=0;te<$.length;te++)ae=$[te],de.push(de[de.length-1]-ue*(ae.max-ae.min));for(A.d2p=function(_e){for(var we=de[0],Ce=0;Ce<$.length;Ce++){var Se=$[Ce];if(_e>=Se.max)we=de[Ce+1];else if(_e<Se.min)break}return we+ue*_e},te=0;te<$.length;te++)(ae=$[te]).pmin=A.d2p(ae.min),ae.pmax=A.d2p(ae.max);A.p2d=function(_e){for(var we=de[0],Ce=0;Ce<$.length;Ce++){var Se=$[Ce];if(_e>=Se.pmax)we=de[Ce+1];else if(_e<Se.pmin)break}return(_e-we)/ue}}}if(j.rangemode!=="match"){var me=q.r2l(j.range[0]),be=q.r2l(j.range[1])-me;A.d2pOppAxis=function(_e){return(_e-me)/be*A._height}}R.call(g,_,P,A).call(f,_,P,A).call(C,_,P,A).call(y,_,P,A,j).call(m,_,P,A).call(x,_,P,A),function(_e,we,Ce,Se){if(!we._context.staticPlot){var Pe=_e.select("rect."+u.slideBoxClassName).node(),Ne=_e.select("rect."+u.grabAreaMinClassName).node(),Oe=_e.select("rect."+u.grabAreaMaxClassName).node();_e.on("mousedown",pe),_e.on("touchstart",pe)}function pe(){var fe=k.event,xe=fe.target,ze=d(fe),Le=ze-_e.node().getBoundingClientRect().left,Ue=Se.d2p(Ce._rl[0]),Re=Se.d2p(Ce._rl[1]),Fe=s.coverSlip();function ve(Ee){var je,Be,Ie,Ze=+d(Ee)-ze;switch(xe){case Pe:if(Ie="ew-resize",Ue+Ze>Ce._length||Re+Ze<0)return;je=Ue+Ze,Be=Re+Ze;break;case Ne:if(Ie="col-resize",Ue+Ze>Ce._length)return;je=Ue+Ze,Be=Re;break;case Oe:if(Ie="col-resize",Re+Ze<0)return;je=Ue,Be=Re+Ze;break;default:Ie="ew-resize",je=Le,Be=Le+Ze}if(Be<je){var He=Be;Be=je,je=He}Se._pixelMin=je,Se._pixelMax=Be,l(k.select(Fe),Ie),function(at,ft,ut,_t){function Nt(lt){return ut.l2r(w.constrain(lt,_t._rl[0],_t._rl[1]))}var Tt=Nt(_t.p2d(_t._pixelMin)),st=Nt(_t.p2d(_t._pixelMax));window.requestAnimationFrame(function(){v.call("_guiRelayout",ft,ut._name+".range",[Tt,st])})}(0,we,Ce,Se)}function ke(){Fe.removeEventListener("mousemove",ve),Fe.removeEventListener("mouseup",ke),this.removeEventListener("touchmove",ve),this.removeEventListener("touchend",ke),w.removeElement(Fe)}this.addEventListener("touchmove",ve),this.addEventListener("touchend",ke),Fe.addEventListener("mousemove",ve),Fe.addEventListener("mouseup",ke)}}(R,_,P,A),function(_e,we,Ce,Se,Pe,Ne){var Oe=u.handleWidth/2;function pe(Ee){return w.constrain(Ee,0,Se._width)}function fe(Ee){return w.constrain(Ee,0,Se._height)}function xe(Ee){return w.constrain(Ee,-Oe,Se._width+Oe)}var ze=pe(Se.d2p(Ce._rl[0])),Le=pe(Se.d2p(Ce._rl[1]));if(_e.select("rect."+u.slideBoxClassName).attr("x",ze).attr("width",Le-ze),_e.select("rect."+u.maskMinClassName).attr("width",ze),_e.select("rect."+u.maskMaxClassName).attr("x",Le).attr("width",Se._width-Le),Ne.rangemode!=="match"){var Ue=Se._height-fe(Se.d2pOppAxis(Pe._rl[1])),Re=Se._height-fe(Se.d2pOppAxis(Pe._rl[0]));_e.select("rect."+u.maskMinOppAxisClassName).attr("x",ze).attr("height",Ue).attr("width",Le-ze),_e.select("rect."+u.maskMaxOppAxisClassName).attr("x",ze).attr("y",Re).attr("height",Se._height-Re).attr("width",Le-ze),_e.select("rect."+u.slideBoxClassName).attr("y",Ue).attr("height",Re-Ue)}var Fe=.5,ve=Math.round(xe(ze-Oe))-Fe,ke=Math.round(xe(Le-Oe))+Fe;_e.select("g."+u.grabberMinClassName).attr("transform",b(ve,Fe)),_e.select("g."+u.grabberMaxClassName).attr("transform",b(ke,Fe))}(R,0,P,A,q,j),P.side==="bottom"&&t.draw(_,P._id+"title",{propContainer:P,propName:P._name+".title",placeholder:S._dfltTitle.x,attributes:{x:P._offset+P._length/2,y:J+A._height+A._offsetShift+10+1.5*P.title.font.size,"text-anchor":"middle"}})}))}},97944:function(L,T,e){var k=e(79811),v=e(72736),n=e(74636),w=e(84284).LINE_SPACING,b=n.name;function c(a){var t=a&&a[b];return t&&t.visible}T.isVisible=c,T.makeData=function(a){var t=k.list({_fullLayout:a},"x",!0),o=a.margin,i=[];if(!a._has("gl2d"))for(var s=0;s<t.length;s++){var l=t[s];if(c(l)){i.push(l);var u=l[b];u._id=b+l._id,u._height=(a.height-o.b-o.t)*u.thickness,u._offsetShift=Math.floor(u.borderwidth/2)}}a._rangeSliderData=i},T.autoMarginOpts=function(a,t){var o=a._fullLayout,i=t[b],s=t._id.charAt(0),l=0,u=0;return t.side==="bottom"&&(l=t._depth,t.title.text!==o._dfltTitle[s]&&(u=1.5*t.title.font.size+10+i._offsetShift,u+=(t.title.text.match(v.BR_TAG_ALL)||[]).length*t.title.font.size*w)),{x:0,y:t._counterDomainMin,l:0,r:0,t:0,b:i._height+l+Math.max(o.margin.b,u),pad:n.extraPad+2*i._offsetShift}}},49692:function(L,T,e){var k=e(3400),v=e(11200),n=e(10936),w=e(97944);L.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:k.extendFlat({},v,{yaxis:n})}}},layoutAttributes:e(11200),handleDefaults:e(94040),calcAutorange:e(26652),draw:e(20060),isVisible:w.isVisible,makeData:w.makeData,autoMarginOpts:w.autoMarginOpts}},10936:function(L){L.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"}},93956:function(L,T,e){var k=e(13916),v=e(52904).line,n=e(98192).u,w=e(92880).extendFlat,b=e(67824).overrideAll,c=e(31780).templatedArray;e(36208),L.exports=b(c("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:w({},k.xref,{}),yref:w({},k.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:v.color,width:w({},v.width,{min:1,dflt:1}),dash:w({},n,{dflt:"dot"})}}),"arraydraw","from-root")},83280:function(L){L.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}},74224:function(L,T,e){var k=e(3400),v=e(54460),n=e(51272),w=e(93956),b=e(65152);function c(a,t,o){function i(P,R){return k.coerce(a,t,w,P,R)}var s=i("path"),l=i("type",s?"path":"rect")!=="path";l&&delete t.path,i("opacity"),i("line.color"),i("line.width"),i("line.dash");for(var u=["x","y"],d=0;d<2;d++){var g,f,C,y=u[d],m={_fullLayout:o},x=v.coerceRef(a,t,m,y);if((g=v.getFromId(m,x))._selectionIndices.push(t._index),C=b.rangeToShapePosition(g),f=b.shapePositionToRange(g),l){var _=y+"0",S=y+"1",O=a[_],h=a[S];a[_]=f(a[_],!0),a[S]=f(a[S],!0),v.coercePosition(t,m,i,x,_),v.coercePosition(t,m,i,x,S);var M=t[_],N=t[S];M!==void 0&&N!==void 0&&(t[_]=C(M),t[S]=C(N),a[_]=O,a[S]=h)}}l&&k.noneOrAll(a,t,["x0","x1","y0","y1"])}L.exports=function(a,t){n(a,t,{name:"selections",handleItemDefaults:c});for(var o=t.selections,i=0;i<o.length;i++){var s=o[i];s&&s.path===void 0&&(s.x0!==void 0&&s.x1!==void 0&&s.y0!==void 0&&s.y1!==void 0||(t.selections[i]=null))}}},23640:function(L,T,e){var k=e(9856).readPaths,v=e(55496),n=e(1936).clearOutlineControllers,w=e(76308),b=e(43616),c=e(31780).arrayEditor,a=e(65152),t=a.getPathString;function o(d){var g=d._fullLayout;for(var f in n(d),g._selectionLayer.selectAll("path").remove(),g._plots){var C=g._plots[f].selectionLayer;C&&C.selectAll("path").remove()}for(var y=0;y<g.selections.length;y++)s(d,y)}function i(d){return d._context.editSelection}function s(d,g){d._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+g+'"]').remove();var f=a.makeSelectionsOptionsAndPlotinfo(d,g),C=f.options,y=f.plotinfo;C._input&&function(m){var x=t(d,C),_={"data-index":g,"fill-rule":"evenodd",d:x},S=C.opacity,O="rgba(0,0,0,0)",h=C.line.color||w.contrast(d._fullLayout.plot_bgcolor),M=C.line.width,N=C.line.dash;M||(M=5,N="solid");var P=i(d)&&d._fullLayout._activeSelectionIndex===g;P&&(O=d._fullLayout.activeselection.fillcolor,S=d._fullLayout.activeselection.opacity);for(var R=[],A=1;A>=0;A--){var q=m.append("path").attr(_).style("opacity",A?.1:S).call(w.stroke,h).call(w.fill,O).call(b.dashLine,A?"solid":N,A?4+M:M);if(l(q,d,C),P){var j=c(d.layout,"selections",C);q.style({cursor:"move"});var X={element:q.node(),plotinfo:y,gd:d,editHelpers:j,isActiveSelection:!0},F=k(x,d);v(F,q,X)}else q.style("pointer-events",A?"all":"none");R[A]=q}var W=R[0];R[1].node().addEventListener("click",function(){return function(Y,B){if(i(Y)){var G=+B.node().getAttribute("data-index");if(G>=0){if(G===Y._fullLayout._activeSelectionIndex)return void u(Y);Y._fullLayout._activeSelectionIndex=G,Y._fullLayout._deactivateSelection=u,o(Y)}}}(d,W)})}(d._fullLayout._selectionLayer)}function l(d,g,f){var C=f.xref+f.yref;b.setClipUrl(d,"clip"+g._fullLayout._uid+C,g)}function u(d){i(d)&&d._fullLayout._activeSelectionIndex>=0&&(n(d),delete d._fullLayout._activeSelectionIndex,o(d))}L.exports={draw:o,drawOne:s,activateLastSelection:function(d){if(i(d)){var g=d._fullLayout.selections.length-1;d._fullLayout._activeSelectionIndex=g,d._fullLayout._deactivateSelection=u,o(d)}}}},34200:function(L,T,e){var k=e(98192).u,v=e(92880).extendFlat;L.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:v({},k,{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"}}},81004:function(L){L.exports=function(T,e,k){k("newselection.mode"),k("newselection.line.width")&&(k("newselection.line.color"),k("newselection.line.dash")),k("activeselection.fillcolor"),k("activeselection.opacity")}},5968:function(L,T,e){var k=e(72760).selectMode,v=e(1936).clearOutline,n=e(9856),w=n.readPaths,b=n.writePaths,c=n.fixDatesForPaths;L.exports=function(a,t){if(a.length){var o=a[0][0];if(o){var i=o.getAttribute("d"),s=t.gd,l=s._fullLayout.newselection,u=t.plotinfo,d=u.xaxis,g=u.yaxis,f=t.isActiveSelection,C=t.dragmode,y=(s.layout||{}).selections||[];if(!k(C)&&f!==void 0){var m=s._fullLayout._activeSelectionIndex;if(m<y.length)switch(s._fullLayout.selections[m].type){case"rect":C="select";break;case"path":C="lasso"}}var x,_=w(i,s,u,f),S={xref:d._id,yref:g._id,opacity:l.opacity,line:{color:l.line.color,width:l.line.width,dash:l.line.dash}};_.length===1&&(x=_[0]),x&&x.length===5&&C==="select"?(S.type="rect",S.x0=x[0][1],S.y0=x[0][2],S.x1=x[2][1],S.y1=x[2][2]):(S.type="path",d&&g&&c(_,d,g),S.path=b(_),x=null),v(s);for(var O=t.editHelpers,h=(O||{}).modifyItem,M=[],N=0;N<y.length;N++){var P=s._fullLayout.selections[N];if(P){if(M[N]=P._input,f!==void 0&&N===s._fullLayout._activeSelectionIndex){var R=S;switch(P.type){case"rect":h("x0",R.x0),h("x1",R.x1),h("y0",R.y0),h("y1",R.y1);break;case"path":h("path",R.path)}}}else M[N]=P}return f===void 0?(M.push(S),M):O?O.getUpdateObj():{}}}}},5840:function(L,T,e){var k=e(3400).strTranslate;function v(n,w){switch(n.type){case"log":return n.p2d(w);case"date":return n.p2r(w,0,n.calendar);default:return n.p2r(w)}}L.exports={p2r:v,r2p:function(n,w){switch(n.type){case"log":return n.d2p(w);case"date":return n.r2p(w,0,n.calendar);default:return n.r2p(w)}},axValue:function(n){var w=n._id.charAt(0)==="y"?1:0;return function(b){return v(n,b[w])}},getTransform:function(n){return k(n.xaxis._offset,n.yaxis._offset)}}},22676:function(L,T,e){var k=e(23640),v=e(43156);L.exports={moduleType:"component",name:"selections",layoutAttributes:e(93956),supplyLayoutDefaults:e(74224),supplyDrawNewSelectionDefaults:e(81004),includeBasePlot:e(36632)("selections"),draw:k.draw,drawOne:k.drawOne,reselect:v.reselect,prepSelect:v.prepSelect,clearOutline:v.clearOutline,clearSelectionsCache:v.clearSelectionsCache,selectOnClick:v.selectOnClick}},43156:function(L,T,e){var k=e(14756),v=e(61456),n=e(24040),w=e(43616).dashStyle,b=e(76308),c=e(93024),a=e(10624).makeEventData,t=e(72760),o=t.freeMode,i=t.rectMode,s=t.drawMode,l=t.openMode,u=t.selectMode,d=e(65152),g=e(85448),f=e(55496),C=e(1936).clearOutline,y=e(9856),m=y.handleEllipse,x=y.readPaths,_=e(93940).newShapes,S=e(5968),O=e(23640).activateLastSelection,h=e(3400),M=h.sorterAsc,N=e(92065),P=e(91200),R=e(79811).getFromId,A=e(73696),q=e(39172).redrawReglTraces,j=e(83280),X=j.MINSELECT,F=N.filter,W=N.tester,Y=e(5840),B=Y.p2r,G=Y.axValue,J=Y.getTransform;function se(ve){return ve.subplot!==void 0}function re(ve,ke,Ee,je,Be,Ie,Ze){var He,at,ft,ut,_t,Nt,Tt,st,lt,Vt=ke._hoverdata,jt=ke._fullLayout.clickmode.indexOf("event")>-1,Kt=[];if(function(et){return et&&Array.isArray(et)&&et[0].hoverOnBox!==!0}(Vt)){ae(ve,ke,Ie);var It=function(et,ht){var dt,De,Ge=et[0],pt=-1,nt=[];for(De=0;De<ht.length;De++)if(dt=ht[De],Ge.fullData._expandedIndex===dt.cd[0].trace._expandedIndex){if(Ge.hoverOnBox===!0)break;Ge.pointNumber!==void 0?pt=Ge.pointNumber:Ge.binNumber!==void 0&&(pt=Ge.binNumber,nt=Ge.pointNumbers);break}return{pointNumber:pt,pointNumbers:nt,searchInfo:dt}}(Vt,He=de(ke,Ee,je,Be));if(It.pointNumbers.length>0?function(et,ht){var dt,De,Ge,pt=[];for(Ge=0;Ge<et.length;Ge++)(dt=et[Ge]).cd[0].trace.selectedpoints&&dt.cd[0].trace.selectedpoints.length>0&&pt.push(dt);if(pt.length===1&&pt[0]===ht.searchInfo&&(De=ht.searchInfo.cd[0].trace).selectedpoints.length===ht.pointNumbers.length){for(Ge=0;Ge<ht.pointNumbers.length;Ge++)if(De.selectedpoints.indexOf(ht.pointNumbers[Ge])<0)return!1;return!0}return!1}(He,It):function(et){var ht,dt,De=0;for(dt=0;dt<et.length;dt++)if((ht=et[dt].cd[0].trace).selectedpoints&&(ht.selectedpoints.length>1||(De+=ht.selectedpoints.length)>1))return!1;return De===1}(He)&&(Nt=be(It))){for(Ze&&Ze.remove(),lt=0;lt<He.length;lt++)(at=He[lt])._module.selectPoints(at,!1);_e(ke,He),ce(Ie),jt&&Fe(ke)}else{for(Tt=ve.shiftKey&&(Nt!==void 0?Nt:be(It)),ft=function(et,ht,dt){return{pointNumber:et,searchInfo:ht,subtract:!!dt}}(It.pointNumber,It.searchInfo,Tt),ut=te(Ie.selectionDefs.concat([ft])),lt=0;lt<He.length;lt++)if(_t=Ce(He[lt]._module.selectPoints(He[lt],ut),He[lt]),Kt.length)for(var $e=0;$e<_t.length;$e++)Kt.push(_t[$e]);else Kt=_t;if(_e(ke,He,st={points:Kt}),ft&&Ie&&Ie.selectionDefs.push(ft),Ze){var tt=Ie.mergedPolygons,Xe=l(Ie.dragmode);f(Se(tt,Xe),Ze,Ie)}jt&&Re(ke,st)}}}function ne(ve){return"pointNumber"in ve&&"searchInfo"in ve}function $(ve){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(ke,Ee,je,Be){var Ie=ve.searchInfo.cd[0].trace._expandedIndex;return Be.cd[0].trace._expandedIndex===Ie&&je===ve.pointNumber},isRect:!1,degenerate:!1,subtract:!!ve.subtract}}function te(ve){if(ve.length){for(var ke=[],Ee=ne(ve[0])?0:ve[0][0][0],je=Ee,Be=ne(ve[0])?0:ve[0][0][1],Ie=Be,Ze=0;Ze<ve.length;Ze++)if(ne(ve[Ze]))ke.push($(ve[Ze]));else{var He=W(ve[Ze]);He.subtract=!!ve[Ze].subtract,ke.push(He),Ee=Math.min(Ee,He.xmin),je=Math.max(je,He.xmax),Be=Math.min(Be,He.ymin),Ie=Math.max(Ie,He.ymax)}return{xmin:Ee,xmax:je,ymin:Be,ymax:Ie,pts:[],contains:function(at,ft,ut,_t){for(var Nt=!1,Tt=0;Tt<ke.length;Tt++)ke[Tt].contains(at,ft,ut,_t)&&(Nt=!ke[Tt].subtract);return Nt},isRect:!1,degenerate:!1}}}function ae(ve,ke,Ee){var je=ke._fullLayout,Be=Ee.plotinfo,Ie=Ee.dragmode,Ze=je._lastSelectedSubplot&&je._lastSelectedSubplot===Be.id,He=(ve.shiftKey||ve.altKey)&&!(s(Ie)&&l(Ie));Ze&&He&&Be.selection&&Be.selection.selectionDefs&&!Ee.selectionDefs?(Ee.selectionDefs=Be.selection.selectionDefs,Ee.mergedPolygons=Be.selection.mergedPolygons):He&&Be.selection||ce(Ee),Ze||(C(ke),je._lastSelectedSubplot=Be.id)}function ce(ve,ke){var Ee=ve.dragmode,je=ve.plotinfo,Be=ve.gd;(function(_t){return _t._fullLayout._activeShapeIndex>=0})(Be)&&Be._fullLayout._deactivateShape(Be),function(_t){return _t._fullLayout._activeSelectionIndex>=0}(Be)&&Be._fullLayout._deactivateSelection(Be);var Ie=Be._fullLayout._zoomlayer,Ze=s(Ee),He=u(Ee);if(Ze||He){var at,ft,ut=Ie.selectAll(".select-outline-"+je.id);ut&&Be._fullLayout._outlining&&(Ze&&(at=_(ut,ve)),at&&n.call("_guiRelayout",Be,{shapes:at}),He&&!se(ve)&&(ft=S(ut,ve)),ft&&(Be._fullLayout._noEmitSelectedAtStart=!0,n.call("_guiRelayout",Be,{selections:ft}).then(function(){ke&&O(Be)})),Be._fullLayout._outlining=!1)}je.selection={},je.selection.selectionDefs=ve.selectionDefs=[],je.selection.mergedPolygons=ve.mergedPolygons=[]}function ue(ve){return ve._id}function de(ve,ke,Ee,je){if(!ve.calcdata)return[];var Be,Ie,Ze,He=[],at=ke.map(ue),ft=Ee.map(ue);for(Ze=0;Ze<ve.calcdata.length;Ze++)if((Ie=(Be=ve.calcdata[Ze])[0].trace).visible===!0&&Ie._module&&Ie._module.selectPoints)if(!se({subplot:je})||Ie.subplot!==je&&Ie.geo!==je)if(Ie.type==="splom"){if(Ie._xaxes[at[0]]&&Ie._yaxes[ft[0]]){var ut=me(Ie._module,Be,ke[0],Ee[0]);ut.scene=ve._fullLayout._splomScenes[Ie.uid],He.push(ut)}}else if(Ie.type==="sankey"){var _t=me(Ie._module,Be,ke[0],Ee[0]);He.push(_t)}else{if(!(at.indexOf(Ie.xaxis)!==-1||Ie._xA&&Ie._xA.overlaying)||!(ft.indexOf(Ie.yaxis)!==-1||Ie._yA&&Ie._yA.overlaying))continue;He.push(me(Ie._module,Be,R(ve,Ie.xaxis),R(ve,Ie.yaxis)))}else He.push(me(Ie._module,Be,ke[0],Ee[0]));return He}function me(ve,ke,Ee,je){return{_module:ve,cd:ke,xaxis:Ee,yaxis:je}}function be(ve){var ke=ve.searchInfo.cd[0].trace,Ee=ve.pointNumber,je=ve.pointNumbers,Be=je.length>0?je[0]:Ee;return!!ke.selectedpoints&&ke.selectedpoints.indexOf(Be)>-1}function _e(ve,ke,Ee){var je,Be;for(je=0;je<ke.length;je++){var Ie=ke[je].cd[0].trace._fullInput,Ze=ve._fullLayout._tracePreGUI[Ie.uid]||{};Ze.selectedpoints===void 0&&(Ze.selectedpoints=Ie._input.selectedpoints||null)}if(Ee){var He=Ee.points||[];for(je=0;je<ke.length;je++)(Be=ke[je].cd[0].trace)._input.selectedpoints=Be._fullInput.selectedpoints=[],Be._fullInput!==Be&&(Be.selectedpoints=[]);for(var at=0;at<He.length;at++){var ft=He[at],ut=ft.data,_t=ft.fullData,Nt=ft.pointIndex,Tt=ft.pointIndices;Tt?([].push.apply(ut.selectedpoints,Tt),Be._fullInput!==Be&&[].push.apply(_t.selectedpoints,Tt)):(ut.selectedpoints.push(Nt),Be._fullInput!==Be&&_t.selectedpoints.push(Nt))}}else for(je=0;je<ke.length;je++)delete(Be=ke[je].cd[0].trace).selectedpoints,delete Be._input.selectedpoints,Be._fullInput!==Be&&delete Be._fullInput.selectedpoints;(function(st,lt){for(var Vt=!1,jt=0;jt<lt.length;jt++){var Kt=lt[jt],It=Kt.cd;n.traceIs(It[0].trace,"regl")&&(Vt=!0);var $e=Kt._module,tt=$e.styleOnSelect||$e.style;tt&&(tt(st,It,It[0].node3),It[0].nodeRangePlot3&&tt(st,It,It[0].nodeRangePlot3))}Vt&&(A(st),q(st))})(ve,ke)}function we(ve,ke,Ee){for(var je=(Ee?k.difference:k.union)({regions:ve},{regions:[ke]}).regions.reverse(),Be=0;Be<je.length;Be++){var Ie=je[Be];Ie.subtract=xe(Ie,je.slice(0,Be))}return je}function Ce(ve,ke){if(Array.isArray(ve))for(var Ee=ke.cd,je=ke.cd[0].trace,Be=0;Be<ve.length;Be++)ve[Be]=a(ve[Be],je,Ee);return ve}function Se(ve,ke){for(var Ee=[],je=0;je<ve.length;je++){Ee[je]=[];for(var Be=0;Be<ve[je].length;Be++){Ee[je][Be]=[],Ee[je][Be][0]=Be?"L":"M";for(var Ie=0;Ie<ve[je][Be].length;Ie++)Ee[je][Be].push(ve[je][Be][Ie])}ke||Ee[je].push(["Z",Ee[je][0][1],Ee[je][0][2]])}return Ee}function Pe(ve,ke){for(var Ee,je,Be=[],Ie=[],Ze=0;Ze<ke.length;Ze++){var He=ke[Ze];je=He._module.selectPoints(He,ve),Ie.push(je),Ee=Ce(je,He),Be=Be.concat(Ee)}return Be}function Ne(ve,ke,Ee,je,Be){var Ie,Ze,He,at=!!je;Be&&(Ie=Be.plotinfo,Ze=Be.xaxes[0]._id,He=Be.yaxes[0]._id);var ft=[],ut=[],_t=fe(ve),Nt=ve._fullLayout;if(Ie){var Tt=Nt._zoomlayer,st=Nt.dragmode,lt=s(st),Vt=u(st);if(lt||Vt){var jt=R(ve,Ze,"x"),Kt=R(ve,He,"y");if(jt&&Kt){var It=Tt.selectAll(".select-outline-"+Ie.id);if(It&&ve._fullLayout._outlining&&It.length){for(var $e=It[0][0].getAttribute("d"),tt=x($e,ve,Ie),Xe=[],et=0;et<tt.length;et++){for(var ht=tt[et],dt=[],De=0;De<ht.length;De++)dt.push([ze(jt,ht[De][1]),ze(Kt,ht[De][2])]);dt.xref=Ze,dt.yref=He,dt.subtract=xe(dt,Xe),Xe.push(dt)}_t=_t.concat(Xe)}}}}var Ge=Ze&&He?[Ze+He]:Nt._subplots.cartesian;(function(Wn){var Gn=Wn.calcdata;if(Gn)for(var jn=0;jn<Gn.length;jn++){var er=Gn[jn][0].trace,Qn=Wn._fullLayout._splomScenes;if(Qn){var vr=Qn[er.uid];vr&&(vr.selectBatch=[])}}})(ve);for(var pt={},nt=0;nt<Ge.length;nt++){var bt=Ge[nt],wt=bt.indexOf("y"),St=bt.slice(0,wt),vt=bt.slice(wt),Pt=Ze&&He?Ee:void 0;if(Pt=pe(_t,St,vt,Pt)){var Lt=je;if(!at){var Ct=R(ve,St,"x"),Rt=R(ve,vt,"y");Lt=de(ve,[Ct],[Rt],bt);for(var At=0;At<Lt.length;At++){var Bt=Lt[At],nn=Bt.cd[0],hn=nn.trace;if(Bt._module.name==="scattergl"&&!nn.t.xpx){var Ht=hn.x,Qt=hn.y,un=hn._length;nn.t.xpx=[],nn.t.ypx=[];for(var In=0;In<un;In++)nn.t.xpx[In]=Ct.c2p(Ht[In]),nn.t.ypx[In]=Rt.c2p(Qt[In])}Bt._module.name==="splom"&&(pt[hn.uid]||(pt[hn.uid]=!0))}}var zn=Pe(Pt,Lt);ft=ft.concat(zn),ut=ut.concat(Lt)}}var wn={points:ft};_e(ve,ut,wn);var rn=Nt.clickmode.indexOf("event")>-1&&ke;if(!Ie&&ke){var vn=fe(ve,!0);if(vn.length){var dn=vn[0].xref,_n=vn[0].yref;if(dn&&_n){var Un=Le(vn);Ue([R(ve,dn,"x"),R(ve,_n,"y")])(wn,Un)}}ve._fullLayout._noEmitSelectedAtStart?ve._fullLayout._noEmitSelectedAtStart=!1:rn&&Re(ve,wn),Nt._reselect=!1}if(!Ie&&Nt._deselect){var An=Nt._deselect;(function(Wn,Gn,jn){for(var er=0;er<jn.length;er++){var Qn=jn[er];if(Qn.xaxis&&Qn.xaxis._id===Wn&&Qn.yaxis&&Qn.yaxis._id===Gn)return!0}return!1})(Ze=An.xref,He=An.yref,ut)||Oe(ve,Ze,He,je),rn&&(wn.points.length?Re(ve,wn):Fe(ve)),Nt._deselect=!1}return{eventData:wn,selectionTesters:Ee}}function Oe(ve,ke,Ee,je){je=de(ve,[R(ve,ke,"x")],[R(ve,Ee,"y")],ke+Ee);for(var Be=0;Be<je.length;Be++){var Ie=je[Be];Ie._module.selectPoints(Ie,!1)}_e(ve,je)}function pe(ve,ke,Ee,je){for(var Be,Ie=0;Ie<ve.length;Ie++){var Ze=ve[Ie];ke===Ze.xref&&Ee===Ze.yref&&(Be?je=te(Be=we(Be,Ze,!!Ze.subtract)):(Be=[Ze],je=W(Ze)))}return je}function fe(ve,ke){for(var Ee=[],je=ve._fullLayout,Be=je.selections,Ie=Be.length,Ze=0;Ze<Ie;Ze++)if(!ke||Ze===je._activeSelectionIndex){var He=Be[Ze];if(He){var at,ft,ut,_t,Nt,Tt=He.xref,st=He.yref,lt=R(ve,Tt,"x"),Vt=R(ve,st,"y");if(He.type==="rect"){Nt=[];var jt=ze(lt,He.x0),Kt=ze(lt,He.x1),It=ze(Vt,He.y0),$e=ze(Vt,He.y1);Nt=[[jt,It],[jt,$e],[Kt,$e],[Kt,It]],at=Math.min(jt,Kt),ft=Math.max(jt,Kt),ut=Math.min(It,$e),_t=Math.max(It,$e),Nt.xmin=at,Nt.xmax=ft,Nt.ymin=ut,Nt.ymax=_t,Nt.xref=Tt,Nt.yref=st,Nt.subtract=!1,Nt.isRect=!0,Ee.push(Nt)}else if(He.type==="path")for(var tt=He.path.split("Z"),Xe=[],et=0;et<tt.length;et++){var ht=tt[et];if(ht){ht+="Z";var dt=d.extractPathCoords(ht,g.paramIsX,"raw"),De=d.extractPathCoords(ht,g.paramIsY,"raw");at=1/0,ft=-1/0,ut=1/0,_t=-1/0,Nt=[];for(var Ge=0;Ge<dt.length;Ge++){var pt=ze(lt,dt[Ge]),nt=ze(Vt,De[Ge]);Nt.push([pt,nt]),at=Math.min(pt,at),ft=Math.max(pt,ft),ut=Math.min(nt,ut),_t=Math.max(nt,_t)}Nt.xmin=at,Nt.xmax=ft,Nt.ymin=ut,Nt.ymax=_t,Nt.xref=Tt,Nt.yref=st,Nt.subtract=xe(Nt,Xe),Xe.push(Nt),Ee.push(Nt)}}}}return Ee}function xe(ve,ke){for(var Ee=!1,je=0;je<ke.length;je++)for(var Be=ke[je],Ie=0;Ie<ve.length;Ie++)if(v(ve[Ie],Be)){Ee=!Ee;break}return Ee}function ze(ve,ke){return ve.type==="date"&&(ke=ke.replace("_"," ")),ve.type==="log"?ve.c2p(ke):ve.r2p(ke,null,ve.calendar)}function Le(ve){for(var ke=ve.length,Ee=[],je=0;je<ke;je++){var Be=ve[je];Ee=(Ee=Ee.concat(Be)).concat([Be[0]])}return(Ie=Ee).isRect=Ie.length===5&&Ie[0][0]===Ie[4][0]&&Ie[0][1]===Ie[4][1]&&Ie[0][0]===Ie[1][0]&&Ie[2][0]===Ie[3][0]&&Ie[0][1]===Ie[3][1]&&Ie[1][1]===Ie[2][1]||Ie[0][1]===Ie[1][1]&&Ie[2][1]===Ie[3][1]&&Ie[0][0]===Ie[3][0]&&Ie[1][0]===Ie[2][0],Ie.isRect&&(Ie.xmin=Math.min(Ie[0][0],Ie[2][0]),Ie.xmax=Math.max(Ie[0][0],Ie[2][0]),Ie.ymin=Math.min(Ie[0][1],Ie[2][1]),Ie.ymax=Math.max(Ie[0][1],Ie[2][1])),Ie;var Ie}function Ue(ve){return function(ke,Ee){for(var je,Be,Ie=0;Ie<ve.length;Ie++){var Ze=ve[Ie],He=Ze._id,at=He.charAt(0);if(Ee.isRect){je||(je={});var ft=Ee[at+"min"],ut=Ee[at+"max"];ft!==void 0&&ut!==void 0&&(je[He]=[B(Ze,ft),B(Ze,ut)].sort(M))}else Be||(Be={}),Be[He]=Ee.map(G(Ze))}je&&(ke.range=je),Be&&(ke.lassoPoints=Be)}}function Re(ve,ke){ke&&(ke.selections=(ve.layout||{}).selections||[]),ve.emit("plotly_selected",ke)}function Fe(ve){ve.emit("plotly_deselect",null)}L.exports={reselect:Ne,prepSelect:function(ve,ke,Ee,je,Be){var Ie=!se(je),Ze=o(Be),He=i(Be),at=l(Be),ft=s(Be),ut=u(Be),_t=Be==="drawcircle",Nt=Be==="drawline"||_t,Tt=je.gd,st=Tt._fullLayout,lt=ut&&st.newselection.mode==="immediate"&&Ie,Vt=st._zoomlayer,jt=je.element.getBoundingClientRect(),Kt=je.plotinfo,It=J(Kt),$e=ke-jt.left,tt=Ee-jt.top;st._calcInverseTransform(Tt);var Xe=h.apply3DTransform(st._invTransform)($e,tt);$e=Xe[0],tt=Xe[1];var et,ht,dt,De,Ge,pt,nt,bt=st._invScaleX,wt=st._invScaleY,St=$e,vt=tt,Pt="M"+$e+","+tt,Lt=je.xaxes[0],Ct=je.yaxes[0],Rt=Lt._length,At=Ct._length,Bt=ve.altKey&&!(s(Be)&&at);ae(ve,Tt,je),Ze&&(et=F([[$e,tt]],j.BENDPX));var nn=Vt.selectAll("path.select-outline-"+Kt.id).data([1]),hn=ft?st.newshape:st.newselection;ft&&(je.hasText=hn.label.text||hn.label.texttemplate);var Ht=ft&&!at?hn.fillcolor:"rgba(0,0,0,0)",Qt=hn.line.color||(Ie?b.contrast(Tt._fullLayout.plot_bgcolor):"#7f7f7f");nn.enter().append("path").attr("class","select-outline select-outline-"+Kt.id).style({opacity:ft?hn.opacity/2:1,"stroke-dasharray":w(hn.line.dash,hn.line.width),"stroke-width":hn.line.width+"px","shape-rendering":"crispEdges"}).call(b.stroke,Qt).call(b.fill,Ht).attr("fill-rule","evenodd").classed("cursor-move",!!ft).attr("transform",It).attr("d",Pt+"Z");var un=Vt.append("path").attr("class","zoombox-corners").style({fill:b.background,stroke:b.defaultLine,"stroke-width":1}).attr("transform",It).attr("d","M0,0Z");if(ft&&je.hasText){var In=Vt.select(".label-temp");In.empty()&&(In=Vt.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var zn=st._uid+j.SELECTID,wn=[],rn=de(Tt,je.xaxes,je.yaxes,je.subplot);lt&&!ve.shiftKey&&(je._clearSubplotSelections=function(){if(Ie){var dn=Lt._id,_n=Ct._id;Oe(Tt,dn,_n,rn);for(var Un=(Tt.layout||{}).selections||[],An=[],Wn=!1,Gn=0;Gn<Un.length;Gn++){var jn=st.selections[Gn];jn.xref!==dn||jn.yref!==_n?An.push(Un[Gn]):Wn=!0}Wn&&(Tt._fullLayout._noEmitSelectedAtStart=!0,n.call("_guiRelayout",Tt,{selections:An}))}});var vn=function(dn){return dn.plotinfo.fillRangeItems||Ue(dn.xaxes.concat(dn.yaxes))}(je);je.moveFn=function(dn,_n){je._clearSubplotSelections&&(je._clearSubplotSelections(),je._clearSubplotSelections=void 0),St=Math.max(0,Math.min(Rt,bt*dn+$e)),vt=Math.max(0,Math.min(At,wt*_n+tt));var Un=Math.abs(St-$e),An=Math.abs(vt-tt);if(He){var Wn,Gn,jn;if(ut){var er=st.selectdirection;switch(Wn=er==="any"?An<Math.min(.6*Un,X)?"h":Un<Math.min(.6*An,X)?"v":"d":er){case"h":Gn=_t?At/2:0,jn=At;break;case"v":Gn=_t?Rt/2:0,jn=Rt}}if(ft)switch(st.newshape.drawdirection){case"vertical":Wn="h",Gn=_t?At/2:0,jn=At;break;case"horizontal":Wn="v",Gn=_t?Rt/2:0,jn=Rt;break;case"ortho":Un<An?(Wn="h",Gn=tt,jn=vt):(Wn="v",Gn=$e,jn=St);break;default:Wn="d"}Wn==="h"?((De=Nt?m(_t,[St,Gn],[St,jn]):[[$e,Gn],[$e,jn],[St,jn],[St,Gn]]).xmin=Nt?St:Math.min($e,St),De.xmax=Nt?St:Math.max($e,St),De.ymin=Math.min(Gn,jn),De.ymax=Math.max(Gn,jn),un.attr("d","M"+De.xmin+","+(tt-X)+"h-4v"+2*X+"h4ZM"+(De.xmax-1)+","+(tt-X)+"h4v"+2*X+"h-4Z")):Wn==="v"?((De=Nt?m(_t,[Gn,vt],[jn,vt]):[[Gn,tt],[Gn,vt],[jn,vt],[jn,tt]]).xmin=Math.min(Gn,jn),De.xmax=Math.max(Gn,jn),De.ymin=Nt?vt:Math.min(tt,vt),De.ymax=Nt?vt:Math.max(tt,vt),un.attr("d","M"+($e-X)+","+De.ymin+"v-4h"+2*X+"v4ZM"+($e-X)+","+(De.ymax-1)+"v4h"+2*X+"v-4Z")):Wn==="d"&&((De=Nt?m(_t,[$e,tt],[St,vt]):[[$e,tt],[$e,vt],[St,vt],[St,tt]]).xmin=Math.min($e,St),De.xmax=Math.max($e,St),De.ymin=Math.min(tt,vt),De.ymax=Math.max(tt,vt),un.attr("d","M0,0Z"))}else Ze&&(et.addPt([St,vt]),De=et.filtered);if(je.selectionDefs&&je.selectionDefs.length?(dt=we(je.mergedPolygons,De,Bt),De.subtract=Bt,ht=te(je.selectionDefs.concat([De]))):(dt=[De],ht=W(De)),f(Se(dt,at),nn,je),ut){var Qn,vr=Ne(Tt,!1),wr=vr.eventData?vr.eventData.points.slice():[];vr=Ne(Tt,!1,ht,rn,je),ht=vr.selectionTesters,nt=vr.eventData,Qn=et?et.filtered:Le(dt),P.throttle(zn,j.SELECTDELAY,function(){for(var Sr=(wn=Pe(ht,rn)).slice(),dr=0;dr<wr.length;dr++){for(var Gr=wr[dr],Zt=!1,pn=0;pn<Sr.length;pn++)if(Sr[pn].curveNumber===Gr.curveNumber&&Sr[pn].pointNumber===Gr.pointNumber){Zt=!0;break}Zt||Sr.push(Gr)}Sr.length&&(nt||(nt={}),nt.points=Sr),vn(nt,Qn),function(Ln,Tn){Ln.emit("plotly_selecting",Tn)}(Tt,nt)})}},je.clickFn=function(dn,_n){if(un.remove(),Tt._fullLayout._activeShapeIndex>=0)Tt._fullLayout._deactivateShape(Tt);else if(!ft){var Un=st.clickmode;P.done(zn).then(function(){if(P.clear(zn),dn===2){for(nn.remove(),Ge=0;Ge<rn.length;Ge++)(pt=rn[Ge])._module.selectPoints(pt,!1);if(_e(Tt,rn),ce(je),Fe(Tt),rn.length){var An=rn[0].xaxis,Wn=rn[0].yaxis;if(An&&Wn){for(var Gn=[],jn=Tt._fullLayout.selections,er=0;er<jn.length;er++){var Qn=jn[er];Qn&&(Qn.xref===An._id&&Qn.yref===Wn._id||Gn.push(Qn))}Gn.length<jn.length&&(Tt._fullLayout._noEmitSelectedAtStart=!0,n.call("_guiRelayout",Tt,{selections:Gn}))}}}else Un.indexOf("select")>-1&&re(_n,Tt,je.xaxes,je.yaxes,je.subplot,je,nn),Un==="event"&&Re(Tt,void 0);c.click(Tt,_n,Kt.id)}).catch(h.error)}},je.doneFn=function(){un.remove(),P.done(zn).then(function(){P.clear(zn),!lt&&De&&je.selectionDefs&&(De.subtract=Bt,je.selectionDefs.push(De),je.mergedPolygons.length=0,[].push.apply(je.mergedPolygons,dt)),(lt||ft)&&ce(je,lt),je.doneFnCompleted&&je.doneFnCompleted(wn),ut&&Re(Tt,nt)}).catch(h.error)}},clearOutline:C,clearSelectionsCache:ce,selectOnClick:re}},46056:function(L,T,e){var k=e(13916),v=e(25376),n=e(52904).line,w=e(98192).u,b=e(92880).extendFlat,c=e(31780).templatedArray,a=(e(36208),e(45464)),t=e(21776).ye,o=e(97728);L.exports=c("shape",{visible:b({},a.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:b({},a.legend,{editType:"calc+arraydraw"}),legendgroup:b({},a.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:b({},a.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:v({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:b({},a.legendrank,{editType:"calc+arraydraw"}),legendwidth:b({},a.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:b({},k.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"},yref:b({},k.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"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:b({},n.color,{editType:"arraydraw"}),width:b({},n.width,{editType:"calc+arraydraw"}),dash:b({},w,{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:t({},{keys:Object.keys(o)}),font:v({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"})},96084:function(L,T,e){var k=e(3400),v=e(54460),n=e(85448),w=e(65152);function b(o){return a(o.line.width,o.xsizemode,o.x0,o.x1,o.path,!1)}function c(o){return a(o.line.width,o.ysizemode,o.y0,o.y1,o.path,!0)}function a(o,i,s,l,u,d){var g=o/2,f=d;if(i==="pixel"){var C=u?w.extractPathCoords(u,d?n.paramIsY:n.paramIsX):[s,l],y=k.aggNums(Math.max,null,C),m=k.aggNums(Math.min,null,C),x=m<0?Math.abs(m)+g:g,_=y>0?y+g:g;return{ppad:g,ppadplus:f?x:_,ppadminus:f?_:x}}return{ppad:g}}function t(o,i,s,l,u){var d=o.type==="category"||o.type==="multicategory"?o.r2c:o.d2c;if(i!==void 0)return[d(i),d(s)];if(l){var g,f,C,y,m=1/0,x=-1/0,_=l.match(n.segmentRE);for(o.type==="date"&&(d=w.decodeDate(d)),g=0;g<_.length;g++)(f=u[_[g].charAt(0)].drawn)!==void 0&&(!(C=_[g].substr(1).match(n.paramRE))||C.length<f||((y=d(C[f]))<m&&(m=y),y>x&&(x=y)));return x>=m?[m,x]:void 0}}L.exports=function(o){var i=o._fullLayout,s=k.filterVisible(i.shapes);if(s.length&&o._fullData.length)for(var l=0;l<s.length;l++){var u,d,g=s[l];g._extremes={};var f=v.getRefType(g.xref),C=v.getRefType(g.yref);if(g.xref!=="paper"&&f!=="domain"){var y=g.xsizemode==="pixel"?g.xanchor:g.x0,m=g.xsizemode==="pixel"?g.xanchor:g.x1;(d=t(u=v.getFromId(o,g.xref),y,m,g.path,n.paramIsX))&&(g._extremes[u._id]=v.findExtremes(u,d,b(g)))}if(g.yref!=="paper"&&C!=="domain"){var x=g.ysizemode==="pixel"?g.yanchor:g.y0,_=g.ysizemode==="pixel"?g.yanchor:g.y1;(d=t(u=v.getFromId(o,g.yref),x,_,g.path,n.paramIsY))&&(g._extremes[u._id]=v.findExtremes(u,d,c(g)))}}}},85448:function(L){L.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}}},43712:function(L,T,e){var k=e(3400),v=e(54460),n=e(51272),w=e(46056),b=e(65152);function c(a,t,o){function i(Y,B){return k.coerce(a,t,w,Y,B)}if(t._isShape=!0,i("visible")){i("showlegend")&&(i("legend"),i("legendwidth"),i("legendgroup"),i("legendgrouptitle.text"),k.coerceFont(i,"legendgrouptitle.font"),i("legendrank"));var s=i("path"),l=i("type",s?"path":"rect"),u=l!=="path";u&&delete t.path,i("editable"),i("layer"),i("opacity"),i("fillcolor"),i("fillrule"),i("line.width")&&(i("line.color"),i("line.dash"));for(var d=i("xsizemode"),g=i("ysizemode"),f=["x","y"],C=0;C<2;C++){var y,m,x,_=f[C],S=_+"anchor",O=_==="x"?d:g,h={_fullLayout:o},M=v.coerceRef(a,t,h,_,void 0,"paper");if(v.getRefType(M)==="range"?((y=v.getFromId(h,M))._shapeIndices.push(t._index),x=b.rangeToShapePosition(y),m=b.shapePositionToRange(y)):m=x=k.identity,u){var N=_+"0",P=_+"1",R=a[N],A=a[P];a[N]=m(a[N],!0),a[P]=m(a[P],!0),O==="pixel"?(i(N,0),i(P,10)):(v.coercePosition(t,h,i,M,N,.25),v.coercePosition(t,h,i,M,P,.75)),t[N]=x(t[N]),t[P]=x(t[P]),a[N]=R,a[P]=A}if(O==="pixel"){var q=a[S];a[S]=m(a[S],!0),v.coercePosition(t,h,i,M,S,.25),t[S]=x(t[S]),a[S]=q}}u&&k.noneOrAll(a,t,["x0","x1","y0","y1"]);var j,X,F=l==="line";if(u&&(j=i("label.texttemplate")),j||(X=i("label.text")),X||j){i("label.textangle");var W=i("label.textposition",F?"middle":"middle center");i("label.xanchor"),i("label.yanchor",function(Y,B){return Y?"bottom":B.indexOf("top")!==-1?"top":B.indexOf("bottom")!==-1?"bottom":"middle"}(F,W)),i("label.padding"),k.coerceFont(i,"label.font",o.font)}}}L.exports=function(a,t){n(a,t,{name:"shapes",handleItemDefaults:c})}},60728:function(L,T,e){var k=e(3400),v=e(54460),n=e(72736),w=e(43616),b=e(9856).readPaths,c=e(65152),a=c.getPathString,t=e(97728),o=e(84284).FROM_TL;L.exports=function(i,s,l,u){if(u.selectAll(".shape-label").remove(),l.label.text||l.label.texttemplate){var d;if(l.label.texttemplate){var g={};if(l.type!=="path"){var f=v.getFromId(i,l.xref),C=v.getFromId(i,l.yref);for(var y in t){var m=t[y](l,f,C);m!==void 0&&(g[y]=m)}}d=k.texttemplateStringForShapes(l.label.texttemplate,{},i._fullLayout._d3locale,g)}else d=l.label.text;var x,_,S,O,h={"data-index":s},M=l.label.font,N=u.append("g").attr(h).classed("shape-label",!0).append("text").attr({"data-notex":1}).classed("shape-label-text",!0).text(d);if(l.path){var P=a(i,l),R=b(P,i);x=1/0,S=1/0,_=-1/0,O=-1/0;for(var A=0;A<R.length;A++)for(var q=0;q<R[A].length;q++)for(var j=R[A][q],X=1;X<j.length;X+=2){var F=j[X],W=j[X+1];x=Math.min(x,F),_=Math.max(_,F),S=Math.min(S,W),O=Math.max(O,W)}}else{var Y=v.getFromId(i,l.xref),B=v.getRefType(l.xref),G=v.getFromId(i,l.yref),J=v.getRefType(l.yref),se=c.getDataToPixel(i,Y,!1,B),re=c.getDataToPixel(i,G,!0,J);x=se(l.x0),_=se(l.x1),S=re(l.y0),O=re(l.y1)}var ne=l.label.textangle;ne==="auto"&&(ne=l.type==="line"?function(ue,de,me,be){var _e,we;return we=Math.abs(me-ue),_e=me>=ue?de-be:be-de,-180/Math.PI*Math.atan2(_e,we)}(x,S,_,O):0),N.call(function(ue){return ue.call(w.font,M).attr({}),n.convertToTspans(ue,i),ue});var $=function(ue,de,me,be,_e,we,Ce){var Se,Pe,Ne,Oe,pe=_e.label.textposition,fe=_e.label.textangle,xe=_e.label.padding,ze=_e.type,Le=Math.PI/180*we,Ue=Math.sin(Le),Re=Math.cos(Le),Fe=_e.label.xanchor,ve=_e.label.yanchor;if(ze==="line"){pe==="start"?(Se=ue,Pe=de):pe==="end"?(Se=me,Pe=be):(Se=(ue+me)/2,Pe=(de+be)/2),Fe==="auto"&&(Fe=pe==="start"?fe==="auto"?me>ue?"left":me<ue?"right":"center":me>ue?"right":me<ue?"left":"center":pe==="end"?fe==="auto"?me>ue?"right":me<ue?"left":"center":me>ue?"left":me<ue?"right":"center":"center");var ke={bottom:-1,middle:0,top:1};if(fe==="auto"){var Ee=ke[ve];Ne=-xe*Ue*Ee,Oe=xe*Re*Ee}else Ne=xe*{left:1,center:0,right:-1}[Fe],Oe=xe*ke[ve];Se+=Ne,Pe+=Oe}else Ne=xe+3,pe.indexOf("right")!==-1?(Se=Math.max(ue,me)-Ne,Fe==="auto"&&(Fe="right")):pe.indexOf("left")!==-1?(Se=Math.min(ue,me)+Ne,Fe==="auto"&&(Fe="left")):(Se=(ue+me)/2,Fe==="auto"&&(Fe="center")),Pe=pe.indexOf("top")!==-1?Math.min(de,be):pe.indexOf("bottom")!==-1?Math.max(de,be):(de+be)/2,Oe=xe,ve==="bottom"?Pe-=Oe:ve==="top"&&(Pe+=Oe);var je=o[ve],Be=_e.label.font.size,Ie=Ce.height;return{textx:Se+(Ie*je-Be)*Ue,texty:Pe+-(Ie*je-Be)*Re,xanchor:Fe}}(x,S,_,O,l,ne,w.bBox(N.node())),te=$.textx,ae=$.texty,ce=$.xanchor;N.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[ce],y:ae,x:te,transform:"rotate("+ne+","+te+","+ae+")"}).call(n.positionText,te,ae)}}},55496:function(L,T,e){var k=e(3400).strTranslate,v=e(86476),n=e(72760),w=n.drawMode,b=n.selectMode,c=e(24040),a=e(76308),t=e(7e3),o=t.i000,i=t.i090,s=t.i180,l=t.i270,u=e(1936).clearOutlineControllers,d=e(9856),g=d.pointsOnRectangle,f=d.pointsOnEllipse,C=d.writePaths,y=e(93940).newShapes,m=e(93940).createShapeObj,x=e(5968),_=e(60728);function S(O,h){var M,N,P,R=O[h][1],A=O[h][2],q=O.length;return N=O[M=(h+1)%q][1],P=O[M][2],N===R&&P===A&&(N=O[M=(h+2)%q][1],P=O[M][2]),[M,N,P]}L.exports=function O(h,M,N,P){P||(P=0);var R=N.gd;function A(){O(h,M,N,P++),(f(h[0])||N.hasText)&&q({redrawing:!0})}function q(_e){var we={};N.isActiveShape!==void 0&&(N.isActiveShape=!1,we=y(M,N)),N.isActiveSelection!==void 0&&(N.isActiveSelection=!1,we=x(M,N),R._fullLayout._reselect=!0),Object.keys(we).length&&c.call((_e||{}).redrawing?"relayout":"_guiRelayout",R,we)}var j,X,F,W,Y,B=R._fullLayout._zoomlayer,G=N.dragmode,J=w(G),se=b(G);if((J||se)&&(R._fullLayout._outlining=!0),u(R),M.attr("d",C(h)),P||!N.isActiveShape&&!N.isActiveSelection||(Y=function(_e,we){for(var Ce=0;Ce<we.length;Ce++){var Se=we[Ce];_e[Ce]=[];for(var Pe=0;Pe<Se.length;Pe++){_e[Ce][Pe]=[];for(var Ne=0;Ne<Se[Pe].length;Ne++)_e[Ce][Pe][Ne]=Se[Pe][Ne]}}return _e}([],h),function(_e){j=[];for(var we=0;we<h.length;we++){var Ce=h[we],Se=g(Ce),Pe=!Se&&f(Ce);j[we]=[];for(var Ne=Ce.length,Oe=0;Oe<Ne;Oe++)if(Ce[Oe][0]!=="Z"&&(!Pe||Oe===o||Oe===i||Oe===s||Oe===l)){var pe,fe=Se&&N.isActiveSelection;fe&&(pe=S(Ce,Oe));var xe=Ce[Oe][1],ze=Ce[Oe][2],Le=_e.append(fe?"rect":"circle").attr("data-i",we).attr("data-j",Oe).style({fill:a.background,stroke:a.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(fe){var Ue=pe[1]-xe,Re=pe[2]-ze,Fe=Re?5:Math.max(Math.min(25,Math.abs(Ue)-5),5),ve=Ue?5:Math.max(Math.min(25,Math.abs(Re)-5),5);Le.classed(Re?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",Fe).attr("height",ve).attr("x",xe-Fe/2).attr("y",ze-ve/2).attr("transform",k(Ue/2,Re/2))}else Le.classed("cursor-grab",!0).attr("r",5).attr("cx",xe).attr("cy",ze);j[we][Oe]={element:Le.node(),gd:R,prepFn:$,doneFn:ae,clickFn:ce},v.init(j[we][Oe])}}}(B.append("g").attr("class","outline-controllers")),function(){X=[],h.length&&(X[0]={element:M[0][0],gd:R,prepFn:de,doneFn:me,clickFn:be},v.init(X[0]))}()),J&&N.hasText){var re=B.select(".label-temp"),ne=m(M,N,N.dragmode);_(R,"label-temp",ne,re)}function $(_e){F=+_e.srcElement.getAttribute("data-i"),W=+_e.srcElement.getAttribute("data-j"),j[F][W].moveFn=te}function te(_e,we){if(h.length){var Ce=Y[F][W][1],Se=Y[F][W][2],Pe=h[F],Ne=Pe.length;if(g(Pe)){var Oe=_e,pe=we;N.isActiveSelection&&(S(Pe,W)[1]===Pe[W][1]?pe=0:Oe=0);for(var fe=0;fe<Ne;fe++)if(fe!==W){var xe=Pe[fe];xe[1]===Pe[W][1]&&(xe[1]=Ce+Oe),xe[2]===Pe[W][2]&&(xe[2]=Se+pe)}if(Pe[W][1]=Ce+Oe,Pe[W][2]=Se+pe,!g(Pe))for(var ze=0;ze<Ne;ze++)for(var Le=0;Le<Pe[ze].length;Le++)Pe[ze][Le]=Y[F][ze][Le]}else Pe[W][1]=Ce+_e,Pe[W][2]=Se+we;A()}}function ae(){q()}function ce(_e,we){if(_e===2){F=+we.srcElement.getAttribute("data-i"),W=+we.srcElement.getAttribute("data-j");var Ce=h[F];g(Ce)||f(Ce)||function(){if(h.length&&h[F]&&h[F].length){for(var Se=[],Pe=0;Pe<h[F].length;Pe++)Pe!==W&&Se.push(h[F][Pe]);Se.length>1&&(Se.length!==2||Se[1][0]!=="Z")&&(W===0&&(Se[0][0]="M"),h[F]=Se,A(),q())}}()}}function ue(_e,we){(function(Ce,Se){if(h.length)for(var Pe=0;Pe<h.length;Pe++)for(var Ne=0;Ne<h[Pe].length;Ne++)for(var Oe=0;Oe+2<h[Pe][Ne].length;Oe+=2)h[Pe][Ne][Oe+1]=Y[Pe][Ne][Oe+1]+Ce,h[Pe][Ne][Oe+2]=Y[Pe][Ne][Oe+2]+Se})(_e,we),A()}function de(_e){(F=+_e.srcElement.getAttribute("data-i"))||(F=0),X[F].moveFn=ue}function me(){q()}function be(_e){_e===2&&function(we){if(b(we._fullLayout.dragmode)){u(we);var Ce=we._fullLayout._activeSelectionIndex,Se=(we.layout||{}).selections||[];if(Ce<Se.length){for(var Pe=[],Ne=0;Ne<Se.length;Ne++)Ne!==Ce&&Pe.push(Se[Ne]);delete we._fullLayout._activeSelectionIndex;var Oe=we._fullLayout.selections[Ce];we._fullLayout._deselect={xref:Oe.xref,yref:Oe.yref},c.call("_guiRelayout",we,{selections:Pe})}}}(R)}}},4016:function(L,T,e){var k=e(33428),v=e(24040),n=e(3400),w=e(54460),b=e(9856).readPaths,c=e(55496),a=e(60728),t=e(1936).clearOutlineControllers,o=e(76308),i=e(43616),s=e(31780).arrayEditor,l=e(86476),u=e(93972),d=e(85448),g=e(65152),f=g.getPathString;function C(h){var M=h._fullLayout;for(var N in M._shapeUpperLayer.selectAll("path").remove(),M._shapeLowerLayer.selectAll("path").remove(),M._shapeUpperLayer.selectAll("text").remove(),M._shapeLowerLayer.selectAll("text").remove(),M._plots){var P=M._plots[N].shapelayer;P&&(P.selectAll("path").remove(),P.selectAll("text").remove())}for(var R=0;R<M.shapes.length;R++)M.shapes[R].visible===!0&&x(h,R)}function y(h){return!!h._fullLayout._outlining}function m(h){return!h._context.edits.shapePosition}function x(h,M){h._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+M+'"]').remove();var N=g.makeShapesOptionsAndPlotinfo(h,M),P=N.options,R=N.plotinfo;function A(q){var j=f(h,P),X={"data-index":M,"fill-rule":P.fillrule,d:j},F=P.opacity,W=P.fillcolor,Y=P.line.width?P.line.color:"rgba(0,0,0,0)",B=P.line.width,G=P.line.dash;B||P.editable!==!0||(B=5,G="solid");var J=j[j.length-1]!=="Z",se=m(h)&&P.editable&&h._fullLayout._activeShapeIndex===M;se&&(W=J?"rgba(0,0,0,0)":h._fullLayout.activeshape.fillcolor,F=h._fullLayout.activeshape.opacity);var re,ne=q.append("g").classed("shape-group",!0).attr({"data-index":M}),$=ne.append("path").attr(X).style("opacity",F).call(o.stroke,Y).call(o.fill,W).call(i.dashLine,G,B);if(_(ne,h,P),a(h,M,P,ne),(se||h._context.edits.shapePosition)&&(re=s(h.layout,"shapes",P)),se){$.style({cursor:"move"});var te={element:$.node(),plotinfo:R,gd:h,editHelpers:re,hasText:P.label.text||P.label.texttemplate,isActiveShape:!0},ae=b(j,h);c(ae,$,te)}else h._context.edits.shapePosition?function(ce,ue,de,me,be,_e){var we,Ce,Se,Pe,Ne,Oe,pe,fe,xe,ze,Le,Ue,Re,Fe,ve,ke,Ee=10,je=10,Be=de.xsizemode==="pixel",Ie=de.ysizemode==="pixel",Ze=de.type==="line",He=de.type==="path",at=_e.modifyItem,ft=k.select(ue.node().parentNode),ut=w.getFromId(ce,de.xref),_t=w.getRefType(de.xref),Nt=w.getFromId(ce,de.yref),Tt=w.getRefType(de.yref),st=g.getDataToPixel(ce,ut,!1,_t),lt=g.getDataToPixel(ce,Nt,!0,Tt),Vt=g.getPixelToData(ce,ut,!1,_t),jt=g.getPixelToData(ce,Nt,!0,Tt),Kt=Ze?function(){var dt=10,De=Math.max(de.line.width,dt),Ge=be.append("g").attr("data-index",me).attr("drag-helper",!0);Ge.append("path").attr("d",ue.attr("d")).style({cursor:"move","stroke-width":De,"stroke-opacity":"0"});var pt={"fill-opacity":"0"},nt=Math.max(De/2,dt);return Ge.append("circle").attr({"data-line-point":"start-point",cx:Be?st(de.xanchor)+de.x0:st(de.x0),cy:Ie?lt(de.yanchor)-de.y0:lt(de.y0),r:nt}).style(pt).classed("cursor-grab",!0),Ge.append("circle").attr({"data-line-point":"end-point",cx:Be?st(de.xanchor)+de.x1:st(de.x1),cy:Ie?lt(de.yanchor)-de.y1:lt(de.y1),r:nt}).style(pt).classed("cursor-grab",!0),Ge}():ue,It={element:Kt.node(),gd:ce,prepFn:function(dt){y(ce)||(Be&&(Ne=st(de.xanchor)),Ie&&(Oe=lt(de.yanchor)),de.type==="path"?ve=de.path:(we=Be?de.x0:st(de.x0),Ce=Ie?de.y0:lt(de.y0),Se=Be?de.x1:st(de.x1),Pe=Ie?de.y1:lt(de.y1)),we<Se?(xe=we,Re="x0",ze=Se,Fe="x1"):(xe=Se,Re="x1",ze=we,Fe="x0"),!Ie&&Ce<Pe||Ie&&Ce>Pe?(pe=Ce,Le="y0",fe=Pe,Ue="y1"):(pe=Pe,Le="y1",fe=Ce,Ue="y0"),$e(dt),et(be,de),function(De,Ge,pt){var nt=Ge.xref,bt=Ge.yref,wt=w.getFromId(pt,nt),St=w.getFromId(pt,bt),vt="";nt==="paper"||wt.autorange||(vt+=nt),bt==="paper"||St.autorange||(vt+=bt),i.setClipUrl(De,vt?"clip"+pt._fullLayout._uid+vt:null,pt)}(ue,de,ce),It.moveFn=ke==="move"?tt:Xe,It.altKey=dt.altKey)},doneFn:function(){y(ce)||(u(ue),ht(be),_(ue,ce,de),v.call("_guiRelayout",ce,_e.getUpdateObj()))},clickFn:function(){y(ce)||ht(be)}};function $e(dt){if(y(ce))ke=null;else if(Ze)ke=dt.target.tagName==="path"?"move":dt.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var De=It.element.getBoundingClientRect(),Ge=De.right-De.left,pt=De.bottom-De.top,nt=dt.clientX-De.left,bt=dt.clientY-De.top,wt=!He&&Ge>Ee&&pt>je&&!dt.shiftKey?l.getCursor(nt/Ge,1-bt/pt):"move";u(ue,wt),ke=wt.split("-")[0]}}function tt(dt,De){if(de.type==="path"){var Ge=function(bt){return bt},pt=Ge,nt=Ge;Be?at("xanchor",de.xanchor=Vt(Ne+dt)):(pt=function(bt){return Vt(st(bt)+dt)},ut&&ut.type==="date"&&(pt=g.encodeDate(pt))),Ie?at("yanchor",de.yanchor=jt(Oe+De)):(nt=function(bt){return jt(lt(bt)+De)},Nt&&Nt.type==="date"&&(nt=g.encodeDate(nt))),at("path",de.path=S(ve,pt,nt))}else Be?at("xanchor",de.xanchor=Vt(Ne+dt)):(at("x0",de.x0=Vt(we+dt)),at("x1",de.x1=Vt(Se+dt))),Ie?at("yanchor",de.yanchor=jt(Oe+De)):(at("y0",de.y0=jt(Ce+De)),at("y1",de.y1=jt(Pe+De)));ue.attr("d",f(ce,de)),et(be,de),a(ce,me,de,ft)}function Xe(dt,De){if(He){var Ge=function(Qt){return Qt},pt=Ge,nt=Ge;Be?at("xanchor",de.xanchor=Vt(Ne+dt)):(pt=function(Qt){return Vt(st(Qt)+dt)},ut&&ut.type==="date"&&(pt=g.encodeDate(pt))),Ie?at("yanchor",de.yanchor=jt(Oe+De)):(nt=function(Qt){return jt(lt(Qt)+De)},Nt&&Nt.type==="date"&&(nt=g.encodeDate(nt))),at("path",de.path=S(ve,pt,nt))}else if(Ze){if(ke==="resize-over-start-point"){var bt=we+dt,wt=Ie?Ce-De:Ce+De;at("x0",de.x0=Be?bt:Vt(bt)),at("y0",de.y0=Ie?wt:jt(wt))}else if(ke==="resize-over-end-point"){var St=Se+dt,vt=Ie?Pe-De:Pe+De;at("x1",de.x1=Be?St:Vt(St)),at("y1",de.y1=Ie?vt:jt(vt))}}else{var Pt=function(Qt){return ke.indexOf(Qt)!==-1},Lt=Pt("n"),Ct=Pt("s"),Rt=Pt("w"),At=Pt("e"),Bt=Lt?pe+De:pe,nn=Ct?fe+De:fe,hn=Rt?xe+dt:xe,Ht=At?ze+dt:ze;Ie&&(Lt&&(Bt=pe-De),Ct&&(nn=fe-De)),(!Ie&&nn-Bt>je||Ie&&Bt-nn>je)&&(at(Le,de[Le]=Ie?Bt:jt(Bt)),at(Ue,de[Ue]=Ie?nn:jt(nn))),Ht-hn>Ee&&(at(Re,de[Re]=Be?hn:Vt(hn)),at(Fe,de[Fe]=Be?Ht:Vt(Ht)))}ue.attr("d",f(ce,de)),et(be,de),a(ce,me,de,ft)}function et(dt,De){(Be||Ie)&&function(){var Ge=De.type!=="path",pt=dt.selectAll(".visual-cue").data([0]);pt.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":1}).classed("visual-cue",!0);var nt=st(Be?De.xanchor:n.midRange(Ge?[De.x0,De.x1]:g.extractPathCoords(De.path,d.paramIsX))),bt=lt(Ie?De.yanchor:n.midRange(Ge?[De.y0,De.y1]:g.extractPathCoords(De.path,d.paramIsY)));if(nt=g.roundPositionForSharpStrokeRendering(nt,1),bt=g.roundPositionForSharpStrokeRendering(bt,1),Be&&Ie){var wt="M"+(nt-1-1)+","+(bt-1-1)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";pt.attr("d",wt)}else if(Be){var St="M"+(nt-1-1)+","+(bt-9-1)+"v18 h2 v-18 Z";pt.attr("d",St)}else{var vt="M"+(nt-9-1)+","+(bt-1-1)+"h18 v2 h-18 Z";pt.attr("d",vt)}}()}function ht(dt){dt.selectAll(".visual-cue").remove()}l.init(It),Kt.node().onmousemove=$e}(h,$,P,M,q,re):P.editable===!0&&$.style("pointer-events",J||o.opacity(W)*F<=.5?"stroke":"all");$.node().addEventListener("click",function(){return function(ce,ue){if(m(ce)){var de=+ue.node().getAttribute("data-index");if(de>=0){if(de===ce._fullLayout._activeShapeIndex)return void O(ce);ce._fullLayout._activeShapeIndex=de,ce._fullLayout._deactivateShape=O,C(ce)}}}(h,$)})}P._input&&P.visible===!0&&(P.layer!=="below"?A(h._fullLayout._shapeUpperLayer):P.xref==="paper"||P.yref==="paper"?A(h._fullLayout._shapeLowerLayer):R._hadPlotinfo?A((R.mainplotinfo||R).shapelayer):A(h._fullLayout._shapeLowerLayer))}function _(h,M,N){var P=(N.xref+N.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");i.setClipUrl(h,P?"clip"+M._fullLayout._uid+P:null,M)}function S(h,M,N){return h.replace(d.segmentRE,function(P){var R=0,A=P.charAt(0),q=d.paramIsX[A],j=d.paramIsY[A],X=d.numParams[A];return A+P.substr(1).replace(d.paramRE,function(F){return R>=X||(q[R]?F=M(F):j[R]&&(F=N(F)),R++),F})})}function O(h){m(h)&&h._fullLayout._activeShapeIndex>=0&&(t(h),delete h._fullLayout._activeShapeIndex,C(h))}L.exports={draw:C,drawOne:x,eraseActiveShape:function(h){if(m(h)){t(h);var M=h._fullLayout._activeShapeIndex,N=(h.layout||{}).shapes||[];if(M<N.length){for(var P=[],R=0;R<N.length;R++)R!==M&&P.push(N[R]);return delete h._fullLayout._activeShapeIndex,v.call("_guiRelayout",h,{shapes:P})}}},drawLabel:a}},92872:function(L,T,e){var k=e(67824).overrideAll,v=e(45464),n=e(25376),w=e(98192).u,b=e(92880).extendFlat,c=e(21776).ye,a=e(97728);L.exports=k({newshape:{visible:b({},v.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:b({},v.legend,{}),legendgroup:b({},v.legendgroup,{}),legendgrouptitle:{text:b({},v.legendgrouptitle.text,{}),font:n({})},legendrank:b({},v.legendrank,{}),legendwidth:b({},v.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:b({},w,{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"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:b({},v.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:c({newshape:!0},{keys:Object.keys(a)}),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")},7e3:function(L){L.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)}},65144:function(L,T,e){var k=e(76308),v=e(3400);L.exports=function(n,w,b){if(b("newshape.visible"),b("newshape.name"),b("newshape.showlegend"),b("newshape.legend"),b("newshape.legendwidth"),b("newshape.legendgroup"),b("newshape.legendgrouptitle.text"),v.coerceFont(b,"newshape.legendgrouptitle.font"),b("newshape.legendrank"),b("newshape.drawdirection"),b("newshape.layer"),b("newshape.fillcolor"),b("newshape.fillrule"),b("newshape.opacity"),b("newshape.line.width")){var c=(n||{}).plot_bgcolor||"#FFF";b("newshape.line.color",k.contrast(c)),b("newshape.line.dash")}var a=n.dragmode==="drawline",t=b("newshape.label.text"),o=b("newshape.label.texttemplate");if(t||o){b("newshape.label.textangle");var i=b("newshape.label.textposition",a?"middle":"middle center");b("newshape.label.xanchor"),b("newshape.label.yanchor",function(s,l){return s?"bottom":l.indexOf("top")!==-1?"top":l.indexOf("bottom")!==-1?"bottom":"middle"}(a,i)),b("newshape.label.padding"),v.coerceFont(b,"newshape.label.font",w.font)}b("activeshape.fillcolor"),b("activeshape.opacity")}},9856:function(L,T,e){var k=e(21984),v=e(7e3),n=v.CIRCLE_SIDES,w=v.SQRT2,b=e(5840),c=b.p2r,a=b.r2p,t=[0,3,4,5,6,1,2],o=[0,3,4,1,2];function i(l,u){return Math.abs(l-u)<=1e-6}function s(l,u){var d=u[1]-l[1],g=u[2]-l[2];return Math.sqrt(d*d+g*g)}T.writePaths=function(l){var u=l.length;if(!u)return"M0,0Z";for(var d="",g=0;g<u;g++)for(var f=l[g].length,C=0;C<f;C++){var y=l[g][C][0];if(y==="Z")d+="Z";else for(var m=l[g][C].length,x=0;x<m;x++){var _=x;y==="Q"||y==="S"?_=o[x]:y==="C"&&(_=t[x]),d+=l[g][C][_],x>0&&x<m-1&&(d+=",")}}return d},T.readPaths=function(l,u,d,g){var f,C,y,m=k(l),x=[],_=-1,S=0,O=0,h=function(){C=S,y=O};h();for(var M=0;M<m.length;M++){var N,P,R,A,q=[],j=m[M][0],X=j;switch(j){case"M":x[++_]=[],S=+m[M][1],O=+m[M][2],q.push([X,S,O]),h();break;case"Q":case"S":N=+m[M][1],R=+m[M][2],S=+m[M][3],O=+m[M][4],q.push([X,S,O,N,R]);break;case"C":N=+m[M][1],R=+m[M][2],P=+m[M][3],A=+m[M][4],S=+m[M][5],O=+m[M][6],q.push([X,S,O,N,R,P,A]);break;case"T":case"L":S=+m[M][1],O=+m[M][2],q.push([X,S,O]);break;case"H":X="L",S=+m[M][1],q.push([X,S,O]);break;case"V":X="L",O=+m[M][1],q.push([X,S,O]);break;case"A":X="L";var F=+m[M][1],W=+m[M][2];+m[M][4]||(F=-F,W=-W);var Y=S-F,B=O;for(f=1;f<=n/2;f++){var G=2*Math.PI*f/n;q.push([X,Y+F*Math.cos(G),B+W*Math.sin(G)])}break;case"Z":S===C&&O===y||(S=C,O=y,q.push([X,S,O]))}for(var J=(d||{}).domain,se=u._fullLayout._size,re=d&&d.xsizemode==="pixel",ne=d&&d.ysizemode==="pixel",$=g===!1,te=0;te<q.length;te++){for(f=0;f+2<7;f+=2){var ae=q[te][f+1],ce=q[te][f+2];ae!==void 0&&ce!==void 0&&(S=ae,O=ce,d&&(d.xaxis&&d.xaxis.p2r?($&&(ae-=d.xaxis._offset),ae=re?a(d.xaxis,d.xanchor)+ae:c(d.xaxis,ae)):($&&(ae-=se.l),J?ae=J.x[0]+ae/se.w:ae/=se.w),d.yaxis&&d.yaxis.p2r?($&&(ce-=d.yaxis._offset),ce=ne?a(d.yaxis,d.yanchor)-ce:c(d.yaxis,ce)):($&&(ce-=se.t),ce=J?J.y[1]-ce/se.h:1-ce/se.h)),q[te][f+1]=ae,q[te][f+2]=ce)}x[_].push(q[te].slice())}}return x},T.pointsOnRectangle=function(l){if(l.length!==5)return!1;for(var u=1;u<3;u++)if(!i(l[0][u]-l[1][u],l[3][u]-l[2][u])||!i(l[0][u]-l[3][u],l[1][u]-l[2][u]))return!1;return!(!i(l[0][1],l[1][1])&&!i(l[0][1],l[3][1])||!(s(l[0],l[1])*s(l[0],l[3])))},T.pointsOnEllipse=function(l){var u=l.length;if(u!==n+1)return!1;u=n;for(var d=0;d<u;d++){var g=(2*u-d)%u,f=(u/2+g)%u,C=(u/2+d)%u;if(!i(s(l[d],l[C]),s(l[g],l[f])))return!1}return!0},T.handleEllipse=function(l,u,d){if(!l)return[u,d];var g=T.ellipseOver({x0:u[0],y0:u[1],x1:d[0],y1:d[1]}),f=(g.x1+g.x0)/2,C=(g.y1+g.y0)/2,y=(g.x1-g.x0)/2,m=(g.y1-g.y0)/2;y||(y=m/=w),m||(m=y/=w);for(var x=[],_=0;_<n;_++){var S=2*_*Math.PI/n;x.push([f+y*Math.cos(S),C+m*Math.sin(S)])}return x},T.ellipseOver=function(l){var u=l.x0,d=l.y0,g=l.x1,f=l.y1,C=g-u,y=f-d,m=((u-=C)+g)/2,x=((d-=y)+f)/2;return{x0:m-(C*=w),y0:x-(y*=w),x1:m+C,y1:x+y}},T.fixDatesForPaths=function(l,u,d){var g=u.type==="date",f=d.type==="date";if(!g&&!f)return l;for(var C=0;C<l.length;C++)for(var y=0;y<l[C].length;y++)for(var m=0;m+2<l[C][y].length;m+=2)g&&(l[C][y][m+1]=l[C][y][m+1].replace(" ","_")),f&&(l[C][y][m+2]=l[C][y][m+2].replace(" ","_"));return l}},93940:function(L,T,e){var k=e(72760),v=k.drawMode,n=k.openMode,w=e(7e3),b=w.i000,c=w.i090,a=w.i180,t=w.i270,o=w.cos45,i=w.sin45,s=e(5840),l=s.p2r,u=s.r2p,d=e(1936).clearOutline,g=e(9856),f=g.readPaths,C=g.writePaths,y=g.ellipseOver,m=g.fixDatesForPaths;function x(_,S,O){var h,M=_[0][0],N=S.gd,P=M.getAttribute("d"),R=N._fullLayout.newshape,A=S.plotinfo,q=S.isActiveShape,j=A.xaxis,X=A.yaxis,F=!!A.domain||!A.xaxis,W=!!A.domain||!A.yaxis,Y=n(O),B=f(P,N,A,q),G={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:F?"paper":j._id,yref:W?"paper":X._id,layer:R.layer,opacity:R.opacity,line:{color:R.line.color,width:R.line.width,dash:R.line.dash}};if(Y||(G.fillcolor=R.fillcolor,G.fillrule=R.fillrule),B.length===1&&(h=B[0]),h&&h.length===5&&O==="drawrect")G.type="rect",G.x0=h[0][1],G.y0=h[0][2],G.x1=h[2][1],G.y1=h[2][2];else if(h&&O==="drawline")G.type="line",G.x0=h[0][1],G.y0=h[0][2],G.x1=h[1][1],G.y1=h[1][2];else if(h&&O==="drawcircle"){G.type="circle";var J=h[b][1],se=h[c][1],re=h[a][1],ne=h[t][1],$=h[b][2],te=h[c][2],ae=h[a][2],ce=h[t][2],ue=A.xaxis&&(A.xaxis.type==="date"||A.xaxis.type==="log"),de=A.yaxis&&(A.yaxis.type==="date"||A.yaxis.type==="log");ue&&(J=u(A.xaxis,J),se=u(A.xaxis,se),re=u(A.xaxis,re),ne=u(A.xaxis,ne)),de&&($=u(A.yaxis,$),te=u(A.yaxis,te),ae=u(A.yaxis,ae),ce=u(A.yaxis,ce));var me=(se+ne)/2,be=($+ae)/2,_e=y({x0:me,y0:be,x1:me+(ne-se+re-J)/2*o,y1:be+(ce-te+ae-$)/2*i});ue&&(_e.x0=l(A.xaxis,_e.x0),_e.x1=l(A.xaxis,_e.x1)),de&&(_e.y0=l(A.yaxis,_e.y0),_e.y1=l(A.yaxis,_e.y1)),G.x0=_e.x0,G.y0=_e.y0,G.x1=_e.x1,G.y1=_e.y1}else G.type="path",j&&X&&m(B,j,X),G.path=C(B),h=null;return G}L.exports={newShapes:function(_,S){if(_.length&&_[0][0]){var O=S.gd,h=S.isActiveShape,M=S.dragmode,N=(O.layout||{}).shapes||[];if(!v(M)&&h!==void 0){var P=O._fullLayout._activeShapeIndex;if(P<N.length)switch(O._fullLayout.shapes[P].type){case"rect":M="drawrect";break;case"circle":M="drawcircle";break;case"line":M="drawline";break;case"path":var R=N[P].path||"";M=R[R.length-1]==="Z"?"drawclosedpath":"drawopenpath"}}var A=x(_,S,M);d(O);for(var q=S.editHelpers,j=(q||{}).modifyItem,X=[],F=0;F<N.length;F++){var W=O._fullLayout.shapes[F];if(X[F]=W._input,h!==void 0&&F===O._fullLayout._activeShapeIndex){var Y=A;switch(W.type){case"line":case"rect":case"circle":j("x0",Y.x0),j("x1",Y.x1),j("y0",Y.y0),j("y1",Y.y1);break;case"path":j("path",Y.path)}}}return h===void 0?(X.push(A),X):q?q.getUpdateObj():{}}},createShapeObj:x}},1936:function(L){L.exports={clearOutlineControllers:function(T){var e=T._fullLayout._zoomlayer;e&&e.selectAll(".outline-controllers").remove()},clearOutline:function(T){var e=T._fullLayout._zoomlayer;e&&e.selectAll(".select-outline").remove(),T._fullLayout._outlining=!1}}},65152:function(L,T,e){var k=e(85448),v=e(3400),n=e(54460);T.rangeToShapePosition=function(w){return w.type==="log"?w.r2d:function(b){return b}},T.shapePositionToRange=function(w){return w.type==="log"?w.d2r:function(b){return b}},T.decodeDate=function(w){return function(b){return b.replace&&(b=b.replace("_"," ")),w(b)}},T.encodeDate=function(w){return function(b){return w(b).replace(" ","_")}},T.extractPathCoords=function(w,b,c){var a=[];return w.match(k.segmentRE).forEach(function(t){var o=b[t.charAt(0)].drawn;if(o!==void 0){var i=t.substr(1).match(k.paramRE);if(i&&!(i.length<o)){var s=i[o],l=c?s:v.cleanNumber(s);a.push(l)}}}),a},T.getDataToPixel=function(w,b,c,a){var t,o=w._fullLayout._size;if(b)if(a==="domain")t=function(s){return b._length*(c?1-s:s)+b._offset};else{var i=T.shapePositionToRange(b);t=function(s){return b._offset+b.r2p(i(s,!0))},b.type==="date"&&(t=T.decodeDate(t))}else t=c?function(s){return o.t+o.h*(1-s)}:function(s){return o.l+o.w*s};return t},T.getPixelToData=function(w,b,c,a){var t,o=w._fullLayout._size;if(b)if(a==="domain")t=function(s){var l=(s-b._offset)/b._length;return c?1-l:l};else{var i=T.rangeToShapePosition(b);t=function(s){return i(b.p2r(s-b._offset))}}else t=c?function(s){return 1-(s-o.t)/o.h}:function(s){return(s-o.l)/o.w};return t},T.roundPositionForSharpStrokeRendering=function(w,b){var c=Math.round(b%2)===1,a=Math.round(w);return c?a+.5:a},T.makeShapesOptionsAndPlotinfo=function(w,b){var c=w._fullLayout.shapes[b]||{},a=w._fullLayout._plots[c.xref+c.yref];return a?a._hadPlotinfo=!0:(a={},c.xref&&c.xref!=="paper"&&(a.xaxis=w._fullLayout[c.xref+"axis"]),c.yref&&c.yref!=="paper"&&(a.yaxis=w._fullLayout[c.yref+"axis"])),a.xsizemode=c.xsizemode,a.ysizemode=c.ysizemode,a.xanchor=c.xanchor,a.yanchor=c.yanchor,{options:c,plotinfo:a}},T.makeSelectionsOptionsAndPlotinfo=function(w,b){var c=w._fullLayout.selections[b]||{},a=w._fullLayout._plots[c.xref+c.yref];return a?a._hadPlotinfo=!0:(a={},c.xref&&(a.xaxis=w._fullLayout[c.xref+"axis"]),c.yref&&(a.yaxis=w._fullLayout[c.yref+"axis"])),{options:c,plotinfo:a}},T.getPathString=function(w,b){var c,a,t,o,i,s,l,u,d=b.type,g=n.getRefType(b.xref),f=n.getRefType(b.yref),C=n.getFromId(w,b.xref),y=n.getFromId(w,b.yref),m=w._fullLayout._size;if(C?g==="domain"?a=function(R){return C._offset+C._length*R}:(c=T.shapePositionToRange(C),a=function(R){return C._offset+C.r2p(c(R,!0))}):a=function(R){return m.l+m.w*R},y?f==="domain"?o=function(R){return y._offset+y._length*(1-R)}:(t=T.shapePositionToRange(y),o=function(R){return y._offset+y.r2p(t(R,!0))}):o=function(R){return m.t+m.h*(1-R)},d==="path")return C&&C.type==="date"&&(a=T.decodeDate(a)),y&&y.type==="date"&&(o=T.decodeDate(o)),function(R,A,q){var j=R.path,X=R.xsizemode,F=R.ysizemode,W=R.xanchor,Y=R.yanchor;return j.replace(k.segmentRE,function(B){var G=0,J=B.charAt(0),se=k.paramIsX[J],re=k.paramIsY[J],ne=k.numParams[J],$=B.substr(1).replace(k.paramRE,function(te){return se[G]?te=X==="pixel"?A(W)+Number(te):A(te):re[G]&&(te=F==="pixel"?q(Y)-Number(te):q(te)),++G>ne&&(te="X"),te});return G>ne&&($=$.replace(/[\s,]*X.*/,""),v.log("Ignoring extra params in segment "+B)),J+$})}(b,a,o);if(b.xsizemode==="pixel"){var x=a(b.xanchor);i=x+b.x0,s=x+b.x1}else i=a(b.x0),s=a(b.x1);if(b.ysizemode==="pixel"){var _=o(b.yanchor);l=_-b.y0,u=_-b.y1}else l=o(b.y0),u=o(b.y1);if(d==="line")return"M"+i+","+l+"L"+s+","+u;if(d==="rect")return"M"+i+","+l+"H"+s+"V"+u+"H"+i+"Z";var S=(i+s)/2,O=(l+u)/2,h=Math.abs(S-i),M=Math.abs(O-l),N="A"+h+","+M,P=S+h+","+O;return"M"+P+N+" 0 1,1 "+S+","+(O-M)+N+" 0 0,1 "+P+"Z"}},41592:function(L,T,e){var k=e(4016);L.exports={moduleType:"component",name:"shapes",layoutAttributes:e(46056),supplyLayoutDefaults:e(43712),supplyDrawNewShapeDefaults:e(65144),includeBasePlot:e(36632)("shapes"),calcAutorange:e(96084),draw:k.draw,drawOne:k.drawOne}},97728:function(L){function T(n,w){return w?w.d2l(n):n}function e(n,w){return w?w.l2d(n):n}function k(n,w){return T(n.x1,w)-T(n.x0,w)}function v(n,w,b){return T(n.y1,b)-T(n.y0,b)}L.exports={x0:function(n){return n.x0},x1:function(n){return n.x1},y0:function(n){return n.y0},y1:function(n){return n.y1},slope:function(n,w,b){return n.type!=="line"?void 0:v(n,0,b)/k(n,w)},dx:k,dy:v,width:function(n,w){return Math.abs(k(n,w))},height:function(n,w,b){return Math.abs(v(n,0,b))},length:function(n,w,b){return n.type!=="line"?void 0:Math.sqrt(Math.pow(k(n,w),2)+Math.pow(v(n,0,b),2))},xcenter:function(n,w){return e((T(n.x1,w)+T(n.x0,w))/2,w)},ycenter:function(n,w,b){return e((T(n.y1,b)+T(n.y0,b))/2,b)}}},89861:function(L,T,e){var k=e(25376),v=e(66741),n=e(92880).extendDeepAll,w=e(67824).overrideAll,b=e(85656),c=e(31780).templatedArray,a=e(60876),t=c("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}});L.exports=w(c("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:t,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(v({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:b.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:k({})},font:k({}),activebgcolor:{valType:"color",dflt:a.gripBgActiveColor},bgcolor:{valType:"color",dflt:a.railBgColor},bordercolor:{valType:"color",dflt:a.railBorderColor},borderwidth:{valType:"number",min:0,dflt:a.railBorderWidth},ticklen:{valType:"number",min:0,dflt:a.tickLength},tickcolor:{valType:"color",dflt:a.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:a.minorTickLength}}),"arraydraw","from-root")},60876:function(L){L.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}},8132:function(L,T,e){var k=e(3400),v=e(51272),n=e(89861),w=e(60876).name,b=n.steps;function c(t,o,i){function s(f,C){return k.coerce(t,o,n,f,C)}for(var l=v(t,o,{name:"steps",handleItemDefaults:a}),u=0,d=0;d<l.length;d++)l[d].visible&&u++;if(u<2?o.visible=!1:s("visible")){o._stepCount=u;var g=o._visibleSteps=k.filterVisible(l);(l[s("active")]||{}).visible||(o.active=g[0]._index),s("x"),s("y"),k.noneOrAll(t,o,["x","y"]),s("xanchor"),s("yanchor"),s("len"),s("lenmode"),s("pad.t"),s("pad.r"),s("pad.b"),s("pad.l"),k.coerceFont(s,"font",i.font),s("currentvalue.visible")&&(s("currentvalue.xanchor"),s("currentvalue.prefix"),s("currentvalue.suffix"),s("currentvalue.offset"),k.coerceFont(s,"currentvalue.font",o.font)),s("transition.duration"),s("transition.easing"),s("bgcolor"),s("activebgcolor"),s("bordercolor"),s("borderwidth"),s("ticklen"),s("tickwidth"),s("tickcolor"),s("minorticklen")}}function a(t,o){function i(l,u){return k.coerce(t,o,b,l,u)}if(t.method==="skip"||Array.isArray(t.args)?i("visible"):o.visible=!1){i("method"),i("args");var s=i("label","step-"+o._index);i("value",s),i("execute")}}L.exports=function(t,o){v(t,o,{name:w,handleItemDefaults:c})}},79664:function(L,T,e){var k=e(33428),v=e(7316),n=e(76308),w=e(43616),b=e(3400),c=b.strTranslate,a=e(72736),t=e(31780).arrayEditor,o=e(60876),i=e(84284),s=i.LINE_SPACING,l=i.FROM_TL,u=i.FROM_BR;function d(q){return o.autoMarginIdRoot+q._index}function g(q){return q._index}function f(q,j){var X=w.tester.selectAll("g."+o.labelGroupClass).data(j._visibleSteps);X.enter().append("g").classed(o.labelGroupClass,!0);var F=0,W=0;X.each(function(te){var ae=m(k.select(this),{step:te},j).node();if(ae){var ce=w.bBox(ae);W=Math.max(W,ce.height),F=Math.max(F,ce.width)}}),X.remove();var Y=j._dims={};Y.inputAreaWidth=Math.max(o.railWidth,o.gripHeight);var B=q._fullLayout._size;Y.lx=B.l+B.w*j.x,Y.ly=B.t+B.h*(1-j.y),j.lenmode==="fraction"?Y.outerLength=Math.round(B.w*j.len):Y.outerLength=j.len,Y.inputAreaStart=0,Y.inputAreaLength=Math.round(Y.outerLength-j.pad.l-j.pad.r);var G=(Y.inputAreaLength-2*o.stepInset)/(j._stepCount-1),J=F+o.labelPadding;if(Y.labelStride=Math.max(1,Math.ceil(J/G)),Y.labelHeight=W,Y.currentValueMaxWidth=0,Y.currentValueHeight=0,Y.currentValueTotalHeight=0,Y.currentValueMaxLines=1,j.currentvalue.visible){var se=w.tester.append("g");X.each(function(te){var ae=C(se,j,te.label),ce=ae.node()&&w.bBox(ae.node())||{width:0,height:0},ue=a.lineCount(ae);Y.currentValueMaxWidth=Math.max(Y.currentValueMaxWidth,Math.ceil(ce.width)),Y.currentValueHeight=Math.max(Y.currentValueHeight,Math.ceil(ce.height)),Y.currentValueMaxLines=Math.max(Y.currentValueMaxLines,ue)}),Y.currentValueTotalHeight=Y.currentValueHeight+j.currentvalue.offset,se.remove()}Y.height=Y.currentValueTotalHeight+o.tickOffset+j.ticklen+o.labelOffset+Y.labelHeight+j.pad.t+j.pad.b;var re="left";b.isRightAnchor(j)&&(Y.lx-=Y.outerLength,re="right"),b.isCenterAnchor(j)&&(Y.lx-=Y.outerLength/2,re="center");var ne="top";b.isBottomAnchor(j)&&(Y.ly-=Y.height,ne="bottom"),b.isMiddleAnchor(j)&&(Y.ly-=Y.height/2,ne="middle"),Y.outerLength=Math.ceil(Y.outerLength),Y.height=Math.ceil(Y.height),Y.lx=Math.round(Y.lx),Y.ly=Math.round(Y.ly);var $={y:j.y,b:Y.height*u[ne],t:Y.height*l[ne]};j.lenmode==="fraction"?($.l=0,$.xl=j.x-j.len*l[re],$.r=0,$.xr=j.x+j.len*u[re]):($.x=j.x,$.l=Y.outerLength*l[re],$.r=Y.outerLength*u[re]),v.autoMargin(q,d(j),$)}function C(q,j,X){if(j.currentvalue.visible){var F,W,Y=j._dims;switch(j.currentvalue.xanchor){case"right":F=Y.inputAreaLength-o.currentValueInset-Y.currentValueMaxWidth,W="left";break;case"center":F=.5*Y.inputAreaLength,W="middle";break;default:F=o.currentValueInset,W="left"}var B=b.ensureSingle(q,"text",o.labelClass,function($){$.attr({"text-anchor":W,"data-notex":1})}),G=j.currentvalue.prefix?j.currentvalue.prefix:"";if(typeof X=="string")G+=X;else{var J=j.steps[j.active].label,se=j._gd._fullLayout._meta;se&&(J=b.templateString(J,se)),G+=J}j.currentvalue.suffix&&(G+=j.currentvalue.suffix),B.call(w.font,j.currentvalue.font).text(G).call(a.convertToTspans,j._gd);var re=a.lineCount(B),ne=(Y.currentValueMaxLines+1-re)*j.currentvalue.font.size*s;return a.positionText(B,F,ne),B}}function y(q,j,X){b.ensureSingle(q,"rect",o.gripRectClass,function(F){F.call(O,j,q,X).style("pointer-events","all")}).attr({width:o.gripWidth,height:o.gripHeight,rx:o.gripRadius,ry:o.gripRadius}).call(n.stroke,X.bordercolor).call(n.fill,X.bgcolor).style("stroke-width",X.borderwidth+"px")}function m(q,j,X){var F=b.ensureSingle(q,"text",o.labelClass,function(B){B.attr({"text-anchor":"middle","data-notex":1})}),W=j.step.label,Y=X._gd._fullLayout._meta;return Y&&(W=b.templateString(W,Y)),F.call(w.font,X.font).text(W).call(a.convertToTspans,X._gd),F}function x(q,j){var X=b.ensureSingle(q,"g",o.labelsClass),F=j._dims,W=X.selectAll("g."+o.labelGroupClass).data(F.labelSteps);W.enter().append("g").classed(o.labelGroupClass,!0),W.exit().remove(),W.each(function(Y){var B=k.select(this);B.call(m,Y,j),w.setTranslate(B,N(j,Y.fraction),o.tickOffset+j.ticklen+j.font.size*s+o.labelOffset+F.currentValueTotalHeight)})}function _(q,j,X,F,W){var Y=Math.round(F*(X._stepCount-1)),B=X._visibleSteps[Y]._index;B!==X.active&&S(q,j,X,B,!0,W)}function S(q,j,X,F,W,Y){var B=X.active;X.active=F,t(q.layout,o.name,X).applyUpdate("active",F);var G=X.steps[X.active];j.call(M,X,Y),j.call(C,X),q.emit("plotly_sliderchange",{slider:X,step:X.steps[X.active],interaction:W,previousActive:B}),G&&G.method&&W&&(j._nextMethod?(j._nextMethod.step=G,j._nextMethod.doCallback=W,j._nextMethod.doTransition=Y):(j._nextMethod={step:G,doCallback:W,doTransition:Y},j._nextMethodRaf=window.requestAnimationFrame(function(){var J=j._nextMethod.step;J.method&&(J.execute&&v.executeAPICommand(q,J.method,J.args),j._nextMethod=null,j._nextMethodRaf=null)})))}function O(q,j,X){if(!j._context.staticPlot){var F=X.node(),W=k.select(j);q.on("mousedown",B),q.on("touchstart",B)}function Y(){return X.data()[0]}function B(){var G=Y();j.emit("plotly_sliderstart",{slider:G});var J=X.select("."+o.gripRectClass);k.event.stopPropagation(),k.event.preventDefault(),J.call(n.fill,G.activebgcolor);var se=P(G,k.mouse(F)[0]);function re(){var $=Y(),te=P($,k.mouse(F)[0]);_(j,X,$,te,!1)}function ne(){var $=Y();$._dragging=!1,J.call(n.fill,$.bgcolor),W.on("mouseup",null),W.on("mousemove",null),W.on("touchend",null),W.on("touchmove",null),j.emit("plotly_sliderend",{slider:$,step:$.steps[$.active]})}_(j,X,G,se,!0),G._dragging=!0,W.on("mousemove",re),W.on("touchmove",re),W.on("mouseup",ne),W.on("touchend",ne)}}function h(q,j){var X=q.selectAll("rect."+o.tickRectClass).data(j._visibleSteps),F=j._dims;X.enter().append("rect").classed(o.tickRectClass,!0),X.exit().remove(),X.attr({width:j.tickwidth+"px","shape-rendering":"crispEdges"}),X.each(function(W,Y){var B=Y%F.labelStride==0,G=k.select(this);G.attr({height:B?j.ticklen:j.minorticklen}).call(n.fill,j.tickcolor),w.setTranslate(G,N(j,Y/(j._stepCount-1))-.5*j.tickwidth,(B?o.tickOffset:o.minorTickOffset)+F.currentValueTotalHeight)})}function M(q,j,X){for(var F=q.select("rect."+o.gripRectClass),W=0,Y=0;Y<j._stepCount;Y++)if(j._visibleSteps[Y]._index===j.active){W=Y;break}var B=N(j,W/(j._stepCount-1));if(!j._invokingCommand){var G=F;X&&j.transition.duration>0&&(G=G.transition().duration(j.transition.duration).ease(j.transition.easing)),G.attr("transform",c(B-.5*o.gripWidth,j._dims.currentValueTotalHeight))}}function N(q,j){var X=q._dims;return X.inputAreaStart+o.stepInset+(X.inputAreaLength-2*o.stepInset)*Math.min(1,Math.max(0,j))}function P(q,j){var X=q._dims;return Math.min(1,Math.max(0,(j-o.stepInset-X.inputAreaStart)/(X.inputAreaLength-2*o.stepInset-2*X.inputAreaStart)))}function R(q,j,X){var F=X._dims,W=b.ensureSingle(q,"rect",o.railTouchRectClass,function(Y){Y.call(O,j,q,X).style("pointer-events","all")});W.attr({width:F.inputAreaLength,height:Math.max(F.inputAreaWidth,o.tickOffset+X.ticklen+F.labelHeight)}).call(n.fill,X.bgcolor).attr("opacity",0),w.setTranslate(W,0,F.currentValueTotalHeight)}function A(q,j){var X=j._dims,F=X.inputAreaLength-2*o.railInset,W=b.ensureSingle(q,"rect",o.railRectClass);W.attr({width:F,height:o.railWidth,rx:o.railRadius,ry:o.railRadius,"shape-rendering":"crispEdges"}).call(n.stroke,j.bordercolor).call(n.fill,j.bgcolor).style("stroke-width",j.borderwidth+"px"),w.setTranslate(W,o.railInset,.5*(X.inputAreaWidth-o.railWidth)+X.currentValueTotalHeight)}L.exports=function(q){var j=q._context.staticPlot,X=q._fullLayout,F=function(se,re){for(var ne=se[o.name],$=[],te=0;te<ne.length;te++){var ae=ne[te];ae.visible&&(ae._gd=re,$.push(ae))}return $}(X,q),W=X._infolayer.selectAll("g."+o.containerClassName).data(F.length>0?[0]:[]);function Y(se){se._commandObserver&&(se._commandObserver.remove(),delete se._commandObserver),v.autoMargin(q,d(se))}if(W.enter().append("g").classed(o.containerClassName,!0).style("cursor",j?null:"ew-resize"),W.exit().each(function(){k.select(this).selectAll("g."+o.groupClassName).each(Y)}).remove(),F.length!==0){var B=W.selectAll("g."+o.groupClassName).data(F,g);B.enter().append("g").classed(o.groupClassName,!0),B.exit().each(Y).remove();for(var G=0;G<F.length;G++){var J=F[G];f(q,J)}B.each(function(se){var re=k.select(this);(function(ne){var $=ne._dims;$.labelSteps=[];for(var te=ne._stepCount,ae=0;ae<te;ae+=$.labelStride)$.labelSteps.push({fraction:ae/(te-1),step:ne._visibleSteps[ae]})})(se),v.manageCommandObserver(q,se,se._visibleSteps,function(ne){var $=re.data()[0];$.active!==ne.index&&($._dragging||S(q,re,$,ne.index,!1,!0))}),function(ne,$,te){(te.steps[te.active]||{}).visible||(te.active=te._visibleSteps[0]._index),$.call(C,te).call(A,te).call(x,te).call(h,te).call(R,ne,te).call(y,ne,te);var ae=te._dims;w.setTranslate($,ae.lx+te.pad.l,ae.ly+te.pad.t),$.call(M,te,!1),$.call(C,te)}(q,k.select(this),se)})}}},97544:function(L,T,e){var k=e(60876);L.exports={moduleType:"component",name:k.name,layoutAttributes:e(89861),supplyLayoutDefaults:e(8132),draw:e(79664)}},81668:function(L,T,e){var k=e(33428),v=e(38248),n=e(7316),w=e(24040),b=e(3400),c=b.strTranslate,a=e(43616),t=e(76308),o=e(72736),i=e(13448),s=e(84284).OPPOSITE_SIDE,l=/ [XY][0-9]* /;L.exports={draw:function(u,d,g){var f,C=g.propContainer,y=g.propName,m=g.placeholder,x=g.traceIndex,_=g.avoid||{},S=g.attributes,O=g.transform,h=g.containerGroup,M=u._fullLayout,N=1,P=!1,R=C.title,A=(R&&R.text?R.text:"").trim(),q=R&&R.font?R.font:{},j=q.family,X=q.size,F=q.color;y==="title.text"?f="titleText":y.indexOf("axis")!==-1?f="axisTitleText":y.indexOf(!0)&&(f="colorbarTitleText");var W=u._context.edits[f];A===""?N=0:A.replace(l," % ")===m.replace(l," % ")&&(N=.2,P=!0,W||(A="")),g._meta?A=b.templateString(A,g._meta):M._meta&&(A=b.templateString(A,M._meta));var Y,B=A||W;h||(h=b.ensureSingle(M._infolayer,"g","g-"+d),Y=M._hColorbarMoveTitle);var G=h.selectAll("text").data(B?[0]:[]);if(G.enter().append("text"),G.text(A).attr("class",d),G.exit().remove(),!B)return h;function J(ne){b.syncOrAsync([se,re],ne)}function se(ne){var $;return!O&&Y&&(O={}),O?($="",O.rotate&&($+="rotate("+[O.rotate,S.x,S.y]+")"),(O.offset||Y)&&($+=c(0,(O.offset||0)-(Y||0)))):$=null,ne.attr("transform",$),ne.style({"font-family":j,"font-size":k.round(X,2)+"px",fill:t.rgb(F),opacity:N*t.opacity(F),"font-weight":n.fontWeight}).attr(S).call(o.convertToTspans,u),n.previousPromises(u)}function re(ne){var $=k.select(ne.node().parentNode);if(_&&_.selection&&_.side&&A){$.attr("transform",null);var te=s[_.side],ae=_.side==="left"||_.side==="top"?-1:1,ce=v(_.pad)?_.pad:2,ue=a.bBox($.node()),de={t:0,b:0,l:0,r:0},me=u._fullLayout._reservedMargin;for(var be in me)for(var _e in me[be]){var we=me[be][_e];de[_e]=Math.max(de[_e],we)}var Ce={left:de.l,top:de.t,right:M.width-de.r,bottom:M.height-de.b},Se=_.maxShift||ae*(Ce[_.side]-ue[_.side]),Pe=0;if(Se<0)Pe=Se;else{var Ne=_.offsetLeft||0,Oe=_.offsetTop||0;ue.left-=Ne,ue.right-=Ne,ue.top-=Oe,ue.bottom-=Oe,_.selection.each(function(){var fe=a.bBox(this);b.bBoxIntersect(ue,fe,ce)&&(Pe=Math.max(Pe,ae*(fe[_.side]-ue[te])+ce))}),Pe=Math.min(Se,Pe),C._titleScoot=Math.abs(Pe)}if(Pe>0||Se<0){var pe={left:[-Pe,0],right:[Pe,0],top:[0,-Pe],bottom:[0,Pe]}[_.side];$.attr("transform",c(pe[0],pe[1]))}}}return G.call(J),W&&(A?G.on(".opacity",null):(N=0,P=!0,G.text(m).on("mouseover.opacity",function(){k.select(this).transition().duration(i.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){k.select(this).transition().duration(i.HIDE_PLACEHOLDER).style("opacity",0)})),G.call(o.makeEditable,{gd:u}).on("edit",function(ne){x!==void 0?w.call("_guiRestyle",u,y,ne,x):w.call("_guiRelayout",u,y,ne)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(J)}).on("input",function(ne){this.text(ne||" ").call(o.positionText,S.x,S.y)})),G.classed("js-placeholder",P),h}}},88444:function(L,T,e){var k=e(25376),v=e(22548),n=e(92880).extendFlat,w=e(67824).overrideAll,b=e(66741),c=e(31780).templatedArray,a=c("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}});L.exports=w(c("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:a,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(b({editType:"arraydraw"}),{}),font:k({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:v.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},73712:function(L){L.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:"▼"}}},91384:function(L,T,e){var k=e(3400),v=e(51272),n=e(88444),w=e(73712).name,b=n.buttons;function c(t,o,i){function s(l,u){return k.coerce(t,o,n,l,u)}s("visible",v(t,o,{name:"buttons",handleItemDefaults:a}).length>0)&&(s("active"),s("direction"),s("type"),s("showactive"),s("x"),s("y"),k.noneOrAll(t,o,["x","y"]),s("xanchor"),s("yanchor"),s("pad.t"),s("pad.r"),s("pad.b"),s("pad.l"),k.coerceFont(s,"font",i.font),s("bgcolor",i.paper_bgcolor),s("bordercolor"),s("borderwidth"))}function a(t,o){function i(s,l){return k.coerce(t,o,b,s,l)}i("visible",t.method==="skip"||Array.isArray(t.args))&&(i("method"),i("args"),i("args2"),i("label"),i("execute"))}L.exports=function(t,o){v(t,o,{name:w,handleItemDefaults:c})}},14420:function(L,T,e){var k=e(33428),v=e(7316),n=e(76308),w=e(43616),b=e(3400),c=e(72736),a=e(31780).arrayEditor,t=e(84284).LINE_SPACING,o=e(73712),i=e(37400);function s(N){return N._index}function l(N,P){return+N.attr(o.menuIndexAttrName)===P._index}function u(N,P,R,A,q,j,X,F){P.active=X,a(N.layout,o.name,P).applyUpdate("active",X),P.type==="buttons"?g(N,A,null,null,P):P.type==="dropdown"&&(q.attr(o.menuIndexAttrName,"-1"),d(N,A,q,j,P),F||g(N,A,q,j,P))}function d(N,P,R,A,q){var j=b.ensureSingle(P,"g",o.headerClassName,function(G){G.style("pointer-events","all")}),X=q._dims,F=q.active,W=q.buttons[F]||o.blankHeaderOpts,Y={y:q.pad.t,yPad:0,x:q.pad.l,xPad:0,index:0},B={width:X.headerWidth,height:X.headerHeight};j.call(f,q,W,N).call(h,q,Y,B),b.ensureSingle(P,"text",o.headerArrowClassName,function(G){G.attr("text-anchor","end").call(w.font,q.font).text(o.arrowSymbol[q.direction])}).attr({x:X.headerWidth-o.arrowOffsetX+q.pad.l,y:X.headerHeight/2+o.textOffsetY+q.pad.t}),j.on("click",function(){R.call(M,String(l(R,q)?-1:q._index)),g(N,P,R,A,q)}),j.on("mouseover",function(){j.call(x)}),j.on("mouseout",function(){j.call(_,q)}),w.setTranslate(P,X.lx,X.ly)}function g(N,P,R,A,q){R||(R=P).attr("pointer-events","all");var j=function($){return+$.attr(o.menuIndexAttrName)==-1}(R)&&q.type!=="buttons"?[]:q.buttons,X=q.type==="dropdown"?o.dropdownButtonClassName:o.buttonClassName,F=R.selectAll("g."+X).data(b.filterVisible(j)),W=F.enter().append("g").classed(X,!0),Y=F.exit();q.type==="dropdown"?(W.attr("opacity","0").transition().attr("opacity","1"),Y.transition().attr("opacity","0").remove()):Y.remove();var B=0,G=0,J=q._dims,se=["up","down"].indexOf(q.direction)!==-1;q.type==="dropdown"&&(se?G=J.headerHeight+o.gapButtonHeader:B=J.headerWidth+o.gapButtonHeader),q.type==="dropdown"&&q.direction==="up"&&(G=-o.gapButtonHeader+o.gapButton-J.openHeight),q.type==="dropdown"&&q.direction==="left"&&(B=-o.gapButtonHeader+o.gapButton-J.openWidth);var re={x:J.lx+B+q.pad.l,y:J.ly+G+q.pad.t,yPad:o.gapButton,xPad:o.gapButton,index:0},ne={l:re.x+q.borderwidth,t:re.y+q.borderwidth};F.each(function($,te){var ae=k.select(this);ae.call(f,q,$,N).call(h,q,re),ae.on("click",function(){k.event.defaultPrevented||($.execute&&($.args2&&q.active===te?(u(N,q,0,P,R,A,-1),v.executeAPICommand(N,$.method,$.args2)):(u(N,q,0,P,R,A,te),v.executeAPICommand(N,$.method,$.args))),N.emit("plotly_buttonclicked",{menu:q,button:$,active:q.active}))}),ae.on("mouseover",function(){ae.call(x)}),ae.on("mouseout",function(){ae.call(_,q),F.call(m,q)})}),F.call(m,q),se?(ne.w=Math.max(J.openWidth,J.headerWidth),ne.h=re.y-ne.t):(ne.w=re.x-ne.l,ne.h=Math.max(J.openHeight,J.headerHeight)),ne.direction=q.direction,A&&(F.size()?function($,te,ae,ce,ue,de){var me,be,_e,we=ue.direction,Ce=we==="up"||we==="down",Se=ue._dims,Pe=ue.active;if(Ce)for(be=0,_e=0;_e<Pe;_e++)be+=Se.heights[_e]+o.gapButton;else for(me=0,_e=0;_e<Pe;_e++)me+=Se.widths[_e]+o.gapButton;ce.enable(de,me,be),ce.hbar&&ce.hbar.attr("opacity","0").transition().attr("opacity","1"),ce.vbar&&ce.vbar.attr("opacity","0").transition().attr("opacity","1")}(0,0,0,A,q,ne):function($){var te=!!$.hbar,ae=!!$.vbar;te&&$.hbar.transition().attr("opacity","0").each("end",function(){te=!1,ae||$.disable()}),ae&&$.vbar.transition().attr("opacity","0").each("end",function(){ae=!1,te||$.disable()})}(A))}function f(N,P,R,A){N.call(C,P).call(y,P,R,A)}function C(N,P){b.ensureSingle(N,"rect",o.itemRectClassName,function(R){R.attr({rx:o.rx,ry:o.ry,"shape-rendering":"crispEdges"})}).call(n.stroke,P.bordercolor).call(n.fill,P.bgcolor).style("stroke-width",P.borderwidth+"px")}function y(N,P,R,A){var q=b.ensureSingle(N,"text",o.itemTextClassName,function(F){F.attr({"text-anchor":"start","data-notex":1})}),j=R.label,X=A._fullLayout._meta;X&&(j=b.templateString(j,X)),q.call(w.font,P.font).text(j).call(c.convertToTspans,A)}function m(N,P){var R=P.active;N.each(function(A,q){var j=k.select(this);q===R&&P.showactive&&j.select("rect."+o.itemRectClassName).call(n.fill,o.activeColor)})}function x(N){N.select("rect."+o.itemRectClassName).call(n.fill,o.hoverColor)}function _(N,P){N.select("rect."+o.itemRectClassName).call(n.fill,P.bgcolor)}function S(N,P){var R=P._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},A=w.tester.selectAll("g."+o.dropdownButtonClassName).data(b.filterVisible(P.buttons));A.enter().append("g").classed(o.dropdownButtonClassName,!0);var q=["up","down"].indexOf(P.direction)!==-1;A.each(function(B,G){var J=k.select(this);J.call(f,P,B,N);var se=J.select("."+o.itemTextClassName),re=se.node()&&w.bBox(se.node()).width,ne=Math.max(re+o.textPadX,o.minWidth),$=P.font.size*t,te=c.lineCount(se),ae=Math.max($*te,o.minHeight)+o.textOffsetY;ae=Math.ceil(ae),ne=Math.ceil(ne),R.widths[G]=ne,R.heights[G]=ae,R.height1=Math.max(R.height1,ae),R.width1=Math.max(R.width1,ne),q?(R.totalWidth=Math.max(R.totalWidth,ne),R.openWidth=R.totalWidth,R.totalHeight+=ae+o.gapButton,R.openHeight+=ae+o.gapButton):(R.totalWidth+=ne+o.gapButton,R.openWidth+=ne+o.gapButton,R.totalHeight=Math.max(R.totalHeight,ae),R.openHeight=R.totalHeight)}),q?R.totalHeight-=o.gapButton:R.totalWidth-=o.gapButton,R.headerWidth=R.width1+o.arrowPadX,R.headerHeight=R.height1,P.type==="dropdown"&&(q?(R.width1+=o.arrowPadX,R.totalHeight=R.height1):R.totalWidth=R.width1,R.totalWidth+=o.arrowPadX),A.remove();var j=R.totalWidth+P.pad.l+P.pad.r,X=R.totalHeight+P.pad.t+P.pad.b,F=N._fullLayout._size;R.lx=F.l+F.w*P.x,R.ly=F.t+F.h*(1-P.y);var W="left";b.isRightAnchor(P)&&(R.lx-=j,W="right"),b.isCenterAnchor(P)&&(R.lx-=j/2,W="center");var Y="top";b.isBottomAnchor(P)&&(R.ly-=X,Y="bottom"),b.isMiddleAnchor(P)&&(R.ly-=X/2,Y="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),v.autoMargin(N,O(P),{x:P.x,y:P.y,l:j*({right:1,center:.5}[W]||0),r:j*({left:1,center:.5}[W]||0),b:X*({top:1,middle:.5}[Y]||0),t:X*({bottom:1,middle:.5}[Y]||0)})}function O(N){return o.autoMarginIdRoot+N._index}function h(N,P,R,A){A=A||{};var q=N.select("."+o.itemRectClassName),j=N.select("."+o.itemTextClassName),X=P.borderwidth,F=R.index,W=P._dims;w.setTranslate(N,X+R.x,X+R.y);var Y=["up","down"].indexOf(P.direction)!==-1,B=A.height||(Y?W.heights[F]:W.height1);q.attr({x:0,y:0,width:A.width||(Y?W.width1:W.widths[F]),height:B});var G=P.font.size*t,J=(c.lineCount(j)-1)*G/2;c.positionText(j,o.textOffsetX,B/2-J+o.textOffsetY),Y?R.y+=W.heights[F]+R.yPad:R.x+=W.widths[F]+R.xPad,R.index++}function M(N,P){N.attr(o.menuIndexAttrName,P||"-1").selectAll("g."+o.dropdownButtonClassName).remove()}L.exports=function(N){var P=N._fullLayout,R=b.filterVisible(P[o.name]);function A(G){v.autoMargin(N,O(G))}var q=P._menulayer.selectAll("g."+o.containerClassName).data(R.length>0?[0]:[]);if(q.enter().append("g").classed(o.containerClassName,!0).style("cursor","pointer"),q.exit().each(function(){k.select(this).selectAll("g."+o.headerGroupClassName).each(A)}).remove(),R.length!==0){var j=q.selectAll("g."+o.headerGroupClassName).data(R,s);j.enter().append("g").classed(o.headerGroupClassName,!0);for(var X=b.ensureSingle(q,"g",o.dropdownButtonGroupClassName,function(G){G.style("pointer-events","all")}),F=0;F<R.length;F++){var W=R[F];S(N,W)}var Y="updatemenus"+P._uid,B=new i(N,X,Y);j.enter().size()&&(X.node().parentNode.appendChild(X.node()),X.call(M)),j.exit().each(function(G){X.call(M),A(G)}).remove(),j.each(function(G){var J=k.select(this),se=G.type==="dropdown"?X:null;v.manageCommandObserver(N,G,G.buttons,function(re){u(N,G,G.buttons[re.index],J,se,B,re.index,!0)}),G.type==="dropdown"?(d(N,J,X,B,G),l(X,G)&&g(N,J,X,B,G)):g(N,J,null,null,G)})}}},76908:function(L,T,e){var k=e(73712);L.exports={moduleType:"component",name:k.name,layoutAttributes:e(88444),supplyLayoutDefaults:e(91384),draw:e(14420)}},37400:function(L,T,e){L.exports=b;var k=e(33428),v=e(76308),n=e(43616),w=e(3400);function b(c,a,t){this.gd=c,this.container=a,this.id=t,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})}b.barWidth=2,b.barLength=20,b.barRadius=2,b.barPad=1,b.barColor="#808BA4",b.prototype.enable=function(c,a,t){var o=this.gd._fullLayout,i=o.width,s=o.height;this.position=c;var l,u,d,g,f=this.position.l,C=this.position.w,y=this.position.t,m=this.position.h,x=this.position.direction,_=x==="down",S=x==="left",O=x==="up",h=C,M=m;_||S||x==="right"||O||(this.position.direction="down",_=!0),_||O?(u=(l=f)+h,_?(d=y,M=(g=Math.min(d+M,s))-d):M=(g=y+M)-(d=Math.max(g-M,0))):(g=(d=y)+M,S?h=(u=f+h)-(l=Math.max(u-h,0)):(l=f,h=(u=Math.min(l+h,i))-l)),this._box={l,t:d,w:h,h:M};var N=C>h,P=b.barLength+2*b.barPad,R=b.barWidth+2*b.barPad,A=f,q=y+m;q+R>s&&(q=s-R);var j=this.container.selectAll("rect.scrollbar-horizontal").data(N?[0]:[]);j.exit().on(".drag",null).remove(),j.enter().append("rect").classed("scrollbar-horizontal",!0).call(v.fill,b.barColor),N?(this.hbar=j.attr({rx:b.barRadius,ry:b.barRadius,x:A,y:q,width:P,height:R}),this._hbarXMin=A+P/2,this._hbarTranslateMax=h-P):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var X=m>M,F=b.barWidth+2*b.barPad,W=b.barLength+2*b.barPad,Y=f+C,B=y;Y+F>i&&(Y=i-F);var G=this.container.selectAll("rect.scrollbar-vertical").data(X?[0]:[]);G.exit().on(".drag",null).remove(),G.enter().append("rect").classed("scrollbar-vertical",!0).call(v.fill,b.barColor),X?(this.vbar=G.attr({rx:b.barRadius,ry:b.barRadius,x:Y,y:B,width:F,height:W}),this._vbarYMin=B+W/2,this._vbarTranslateMax=M-W):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var J=this.id,se=l-.5,re=X?u+F+.5:u+.5,ne=d-.5,$=N?g+R+.5:g+.5,te=o._topdefs.selectAll("#"+J).data(N||X?[0]:[]);if(te.exit().remove(),te.enter().append("clipPath").attr("id",J).append("rect"),N||X?(this._clipRect=te.select("rect").attr({x:Math.floor(se),y:Math.floor(ne),width:Math.ceil(re)-Math.floor(se),height:Math.ceil($)-Math.floor(ne)}),this.container.call(n.setClipUrl,J,this.gd),this.bg.attr({x:f,y,width:C,height:m})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(n.setClipUrl,null),delete this._clipRect),N||X){var ae=k.behavior.drag().on("dragstart",function(){k.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ae);var ce=k.behavior.drag().on("dragstart",function(){k.event.sourceEvent.preventDefault(),k.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));N&&this.hbar.on(".drag",null).call(ce),X&&this.vbar.on(".drag",null).call(ce)}this.setTranslate(a,t)},b.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)},b.prototype._onBoxDrag=function(){var c=this.translateX,a=this.translateY;this.hbar&&(c-=k.event.dx),this.vbar&&(a-=k.event.dy),this.setTranslate(c,a)},b.prototype._onBoxWheel=function(){var c=this.translateX,a=this.translateY;this.hbar&&(c+=k.event.deltaY),this.vbar&&(a+=k.event.deltaY),this.setTranslate(c,a)},b.prototype._onBarDrag=function(){var c=this.translateX,a=this.translateY;if(this.hbar){var t=c+this._hbarXMin,o=t+this._hbarTranslateMax;c=(w.constrain(k.event.x,t,o)-t)/(o-t)*(this.position.w-this._box.w)}if(this.vbar){var i=a+this._vbarYMin,s=i+this._vbarTranslateMax;a=(w.constrain(k.event.y,i,s)-i)/(s-i)*(this.position.h-this._box.h)}this.setTranslate(c,a)},b.prototype.setTranslate=function(c,a){var t=this.position.w-this._box.w,o=this.position.h-this._box.h;if(c=w.constrain(c||0,0,t),a=w.constrain(a||0,0,o),this.translateX=c,this.translateY=a,this.container.call(n.setTranslate,this._box.l-this.position.l-c,this._box.t-this.position.t-a),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+c-.5),y:Math.floor(this.position.t+a-.5)}),this.hbar){var i=c/t;this.hbar.call(n.setTranslate,c+i*this._hbarTranslateMax,a)}if(this.vbar){var s=a/o;this.vbar.call(n.setTranslate,c,a+s*this._vbarTranslateMax)}}},84284:function(L){L.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"}}},36208:function(L){L.exports={axisRefDescription:function(T,e,k){return["If set to a",T,"axis id (e.g. *"+T+"* or","*"+T+"2*), the `"+T+"` position refers to a",T,"coordinate. If set to *paper*, the `"+T+"`","position refers to the distance from the",e,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",e,"("+k+"). If set to a",T,"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",e,"of the domain of that axis: e.g.,","*"+T+"2 domain* refers to the domain of the second",T," axis and a",T,"position of 0.5 refers to the","point between the",e,"and the",k,"of the domain of the","second",T,"axis."].join(" ")}}},48164:function(L){L.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},26880:function(L){L.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"}},69104:function(L){L.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},99168:function(L){L.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]}},87792:function(L){L.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},13448:function(L){L.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},39032:function(L){L.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,EPOCHJD:24405875e-1,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},2264:function(L,T){T.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"]],T.STYLE=T.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")},9616:function(L,T){T.xmlns="http://www.w3.org/2000/xmlns/",T.svg="http://www.w3.org/2000/svg",T.xlink="http://www.w3.org/1999/xlink",T.svgAttrs={xmlns:T.svg,"xmlns:xlink":T.xlink}},64884:function(L,T,e){T.version=e(25788).version,e(88324),e(79288);for(var k=e(24040),v=T.register=k.register,n=e(22448),w=Object.keys(n),b=0;b<w.length;b++){var c=w[b];c.charAt(0)!=="_"&&(T[c]=n[c]),v({moduleType:"apiMethod",name:c,fn:n[c]})}v(e(65875)),v([e(79180),e(56864),e(22676),e(41592),e(7402),e(76908),e(97544),e(49692),e(41152),e(12704),e(64968),e(8932),e(55080),e(2780),e(93024),e(45460)]),v([e(6580),e(11680)]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(v(window.PlotlyLocales),delete window.PlotlyLocales),T.Icons=e(9224);var a=e(93024),t=e(7316);T.Plots={resize:t.resize,graphJson:t.graphJson,sendDataToCloud:t.sendDataToCloud},T.Fx={hover:a.hover,unhover:a.unhover,loneHover:a.loneHover,loneUnhover:a.loneUnhover},T.Snapshot=e(78904),T.PlotSchema=e(73060)},9224:function(L){L.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("")}}},98308:function(L,T){T.isLeftAnchor=function(e){return e.xanchor==="left"||e.xanchor==="auto"&&e.x<=.3333333333333333},T.isCenterAnchor=function(e){return e.xanchor==="center"||e.xanchor==="auto"&&e.x>.3333333333333333&&e.x<.6666666666666666},T.isRightAnchor=function(e){return e.xanchor==="right"||e.xanchor==="auto"&&e.x>=.6666666666666666},T.isTopAnchor=function(e){return e.yanchor==="top"||e.yanchor==="auto"&&e.y>=.6666666666666666},T.isMiddleAnchor=function(e){return e.yanchor==="middle"||e.yanchor==="auto"&&e.y>.3333333333333333&&e.y<.6666666666666666},T.isBottomAnchor=function(e){return e.yanchor==="bottom"||e.yanchor==="auto"&&e.y<=.3333333333333333}},11864:function(L,T,e){var k=e(20435),v=k.mod,n=k.modHalf,w=Math.PI,b=2*w;function c(i){return Math.abs(i[1]-i[0])>b-1e-14}function a(i,s){return n(s-i,b)}function t(i,s){if(c(s))return!0;var l,u;s[0]<s[1]?(l=s[0],u=s[1]):(l=s[1],u=s[0]),(l=v(l,b))>(u=v(u,b))&&(u+=b);var d=v(i,b),g=d+b;return d>=l&&d<=u||g>=l&&g<=u}function o(i,s,l,u,d,g,f){d=d||0,g=g||0;var C,y,m,x,_,S=c([l,u]);function O(P,R){return[P*Math.cos(R)+d,g-P*Math.sin(R)]}S?(C=0,y=w,m=b):l<u?(C=l,m=u):(C=u,m=l),i<s?(x=i,_=s):(x=s,_=i);var h,M=Math.abs(m-C)<=w?0:1;function N(P,R,A){return"A"+[P,P]+" "+[0,M,A]+" "+O(P,R)}return S?h=x===null?"M"+O(_,C)+N(_,y,0)+N(_,m,0)+"Z":"M"+O(x,C)+N(x,y,0)+N(x,m,0)+"ZM"+O(_,C)+N(_,y,1)+N(_,m,1)+"Z":x===null?(h="M"+O(_,C)+N(_,m,0),f&&(h+="L0,0Z")):h="M"+O(x,C)+"L"+O(_,C)+N(_,m,0)+"L"+O(x,m)+N(x,C,1)+"Z",h}L.exports={deg2rad:function(i){return i/180*w},rad2deg:function(i){return i/w*180},angleDelta:a,angleDist:function(i,s){return Math.abs(a(i,s))},isFullCircle:c,isAngleInsideSector:t,isPtInsideSector:function(i,s,l,u){return!!t(s,u)&&(l[0]<l[1]?(d=l[0],g=l[1]):(d=l[1],g=l[0]),i>=d&&i<=g);var d,g},pathArc:function(i,s,l,u,d){return o(null,i,s,l,u,d,0)},pathSector:function(i,s,l,u,d){return o(null,i,s,l,u,d,1)},pathAnnulus:function(i,s,l,u,d,g){return o(i,s,l,u,d,g,1)}}},38116:function(L,T,e){var k=e(83160).decode,v=e(63620),n=Array.isArray,w=ArrayBuffer,b=DataView;function c(s){return w.isView(s)&&!(s instanceof b)}function a(s){return n(s)||c(s)}T.isTypedArray=c,T.isArrayOrTypedArray=a,T.isArray1D=function(s){return!a(s[0])},T.ensureArray=function(s,l){return n(s)||(s=[]),s.length=l,s};var t={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 o(s){return s.constructor===ArrayBuffer}function i(s,l,u){if(a(s)){if(a(s[0])){for(var d=u,g=0;g<s.length;g++)d=l(d,s[g].length);return d}return s.length}return 0}t.uint8c=t.u1c,t.uint8=t.u1,t.int8=t.i1,t.uint16=t.u2,t.int16=t.i2,t.uint32=t.u4,t.int32=t.i4,t.float32=t.f4,t.float64=t.f8,T.isArrayBuffer=o,T.decodeTypedArraySpec=function(s){var l=[],u=function(P){return{bdata:P.bdata,dtype:P.dtype,shape:P.shape}}(s),d=u.dtype,g=t[d];if(!g)throw new Error('Error in dtype: "'+d+'"');var f=g.BYTES_PER_ELEMENT,C=u.bdata;o(C)||(C=k(C));var y=u.shape===void 0?[C.byteLength/f]:(""+u.shape).split(",");y.reverse();var m,x,_=y.length,S=+y[0],O=f*S,h=0;if(_===1)l=new g(C);else if(_===2)for(m=+y[1],x=0;x<m;x++)l[x]=new g(C,h,S),h+=O;else{if(_!==3)throw new Error("ndim: "+_+'is not supported with the shape:"'+u.shape+'"');m=+y[1];for(var M=+y[2],N=0;N<M;N++)for(l[N]=[],x=0;x<m;x++)l[N][x]=new g(C,h,S),h+=O}return l.bdata=u.bdata,l.dtype=u.dtype,l.shape=y.reverse().join(","),s._inputArray=l,l},T.isTypedArraySpec=function(s){return v(s)&&s.hasOwnProperty("dtype")&&typeof s.dtype=="string"&&s.hasOwnProperty("bdata")&&(typeof s.bdata=="string"||o(s.bdata))&&(s.shape===void 0||s.hasOwnProperty("shape")&&(typeof s.shape=="string"||typeof s.shape=="number"))},T.concat=function(){var s,l,u,d,g,f,C,y,m=[],x=!0,_=0;for(u=0;u<arguments.length;u++)(f=(d=arguments[u]).length)&&(l?m.push(d):(l=d,g=f),n(d)?s=!1:(x=!1,_?s!==d.constructor&&(s=!1):s=d.constructor),_+=f);if(!_)return[];if(!m.length)return l;if(x)return l.concat.apply(l,m);if(s){for((C=new s(_)).set(l),u=0;u<m.length;u++)d=m[u],C.set(d,g),g+=d.length;return C}for(C=new Array(_),y=0;y<l.length;y++)C[y]=l[y];for(u=0;u<m.length;u++){for(d=m[u],y=0;y<d.length;y++)C[g+y]=d[y];g+=y}return C},T.maxRowLength=function(s){return i(s,Math.max,0)},T.minRowLength=function(s){return i(s,Math.min,1/0)}},54037:function(L,T,e){var k=e(38248),v=e(39032).BADNUM,n=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;L.exports=function(w){return typeof w=="string"&&(w=w.replace(n,"")),k(w)?Number(w):v}},73696:function(L){L.exports=function(T){var e=T._fullLayout;e._glcanvas&&e._glcanvas.size()&&e._glcanvas.each(function(k){k.regl&&k.regl.clear({color:!0,depth:!0})})}},75352:function(L){L.exports=function(T){T._responsiveChartHandler&&(window.removeEventListener("resize",T._responsiveChartHandler),delete T._responsiveChartHandler)}},63064:function(L,T,e){var k=e(38248),v=e(49760),n=e(45464),w=e(88304),b=e(76308),c=e(13448).DESELECTDIM,a=e(22296),t=e(53756).counter,o=e(20435).modHalf,i=e(38116).isArrayOrTypedArray,s=e(38116).isTypedArraySpec,l=e(38116).decodeTypedArraySpec;function u(d,g){var f=T.valObjectMeta[g.valType];if(g.arrayOk&&i(d))return!0;if(f.validateFunction)return f.validateFunction(d,g);var C={},y=C,m={set:function(x){y=x}};return f.coerceFunction(d,m,C,g),y!==C}T.valObjectMeta={data_array:{coerceFunction:function(d,g,f){g.set(i(d)?d:s(d)?l(d):f)}},enumerated:{coerceFunction:function(d,g,f,C){C.coerceNumber&&(d=+d),C.values.indexOf(d)===-1?g.set(f):g.set(d)},validateFunction:function(d,g){g.coerceNumber&&(d=+d);for(var f=g.values,C=0;C<f.length;C++){var y=String(f[C]);if(y.charAt(0)==="/"&&y.charAt(y.length-1)==="/"){if(new RegExp(y.substr(1,y.length-2)).test(d))return!0}else if(d===f[C])return!0}return!1}},boolean:{coerceFunction:function(d,g,f){d===!0||d===!1?g.set(d):g.set(f)}},number:{coerceFunction:function(d,g,f,C){!k(d)||C.min!==void 0&&d<C.min||C.max!==void 0&&d>C.max?g.set(f):g.set(+d)}},integer:{coerceFunction:function(d,g,f,C){d%1||!k(d)||C.min!==void 0&&d<C.min||C.max!==void 0&&d>C.max?g.set(f):g.set(+d)}},string:{coerceFunction:function(d,g,f,C){if(typeof d!="string"){var y=typeof d=="number";C.strict!==!0&&y?g.set(String(d)):g.set(f)}else C.noBlank&&!d?g.set(f):g.set(d)}},color:{coerceFunction:function(d,g,f){v(d).isValid()?g.set(d):g.set(f)}},colorlist:{coerceFunction:function(d,g,f){Array.isArray(d)&&d.length&&d.every(function(C){return v(C).isValid()})?g.set(d):g.set(f)}},colorscale:{coerceFunction:function(d,g,f){g.set(w.get(d,f))}},angle:{coerceFunction:function(d,g,f){d==="auto"?g.set("auto"):k(d)?g.set(o(+d,360)):g.set(f)}},subplotid:{coerceFunction:function(d,g,f,C){var y=C.regex||t(f);typeof d=="string"&&y.test(d)?g.set(d):g.set(f)},validateFunction:function(d,g){var f=g.dflt;return d===f||typeof d=="string"&&!!t(f).test(d)}},flaglist:{coerceFunction:function(d,g,f,C){if((C.extras||[]).indexOf(d)===-1)if(typeof d=="string"){for(var y=d.split("+"),m=0;m<y.length;){var x=y[m];C.flags.indexOf(x)===-1||y.indexOf(x)<m?y.splice(m,1):m++}y.length?g.set(y.join("+")):g.set(f)}else g.set(f);else g.set(d)}},any:{coerceFunction:function(d,g,f){d===void 0?g.set(f):g.set(s(d)?l(d):d)}},info_array:{coerceFunction:function(d,g,f,C){function y(X,F,W){var Y,B={set:function(G){Y=G}};return W===void 0&&(W=F.dflt),T.valObjectMeta[F.valType].coerceFunction(X,B,W,F),Y}if(s(d)&&(d=l(d)),i(d)){var m,x,_,S,O,h,M=C.dimensions===2||C.dimensions==="1-2"&&Array.isArray(d)&&i(d[0]),N=C.items,P=[],R=Array.isArray(N),A=R&&M&&i(N[0]),q=M&&R&&!A,j=R&&!q?N.length:d.length;if(f=Array.isArray(f)?f:[],M)for(m=0;m<j;m++)for(P[m]=[],_=i(d[m])?d[m]:[],O=q?N.length:R?N[m].length:_.length,x=0;x<O;x++)S=q?N[x]:R?N[m][x]:N,(h=y(_[x],S,(f[m]||[])[x]))!==void 0&&(P[m][x]=h);else for(m=0;m<j;m++)(h=y(d[m],R?N[m]:N,f[m]))!==void 0&&(P[m]=h);g.set(P)}else g.set(f)},validateFunction:function(d,g){if(!i(d))return!1;var f=g.items,C=Array.isArray(f),y=g.dimensions===2;if(!g.freeLength&&d.length!==f.length)return!1;for(var m=0;m<d.length;m++)if(y){if(!i(d[m])||!g.freeLength&&d[m].length!==f[m].length)return!1;for(var x=0;x<d[m].length;x++)if(!u(d[m][x],C?f[m][x]:f))return!1}else if(!u(d[m],C?f[m]:f))return!1;return!0}}},T.coerce=function(d,g,f,C,y){var m=a(f,C).get(),x=a(d,C),_=a(g,C),S=x.get(),O=g._template;if(S===void 0&&O&&(S=a(O,C).get(),O=0),y===void 0&&(y=m.dflt),m.arrayOk){if(i(S))return _.set(S),S;if(s(S))return S=l(S),_.set(S),S}var h=T.valObjectMeta[m.valType].coerceFunction;h(S,_,y,m);var M=_.get();return O&&M===y&&!u(S,m)&&(h(S=a(O,C).get(),_,y,m),M=_.get()),M},T.coerce2=function(d,g,f,C,y){var m=a(d,C),x=T.coerce(d,g,f,C,y);return m.get()!=null&&x},T.coerceFont=function(d,g,f){var C={};return f=f||{},C.family=d(g+".family",f.family),C.size=d(g+".size",f.size),C.color=d(g+".color",f.color),C},T.coercePattern=function(d,g,f,C){if(d(g+".shape")){d(g+".solidity"),d(g+".size");var y=d(g+".fillmode")==="overlay";if(!C){var m=d(g+".bgcolor",y?f:void 0);d(g+".fgcolor",y?b.contrast(m):f)}d(g+".fgopacity",y?.5:1)}},T.coerceHoverinfo=function(d,g,f){var C,y=g._module.attributes,m=y.hoverinfo?y:n,x=m.hoverinfo;if(f._dataLength===1){var _=x.dflt==="all"?x.flags.slice():x.dflt.split("+");_.splice(_.indexOf("name"),1),C=_.join("+")}return T.coerce(d,g,m,"hoverinfo",C)},T.coerceSelectionMarkerOpacity=function(d,g){if(d.marker){var f,C,y=d.marker.opacity;y!==void 0&&(i(y)||d.selected||d.unselected||(f=y,C=c*y),g("selected.marker.opacity",f),g("unselected.marker.opacity",C))}},T.validate=u},67555:function(L,T,e){var k,v,n=e(94336).Yn,w=e(38248),b=e(24248),c=e(20435).mod,a=e(39032),t=a.BADNUM,o=a.ONEDAY,i=a.ONEHOUR,s=a.ONEMIN,l=a.ONESEC,u=a.EPOCHJD,d=e(24040),g=e(94336).E9,f=/^\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,C=/^\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,y=new Date().getFullYear()-70;function m(j){return j&&d.componentsRegistry.calendars&&typeof j=="string"&&j!=="gregorian"}function x(j,X){return String(j+Math.pow(10,X)).substr(1)}T.dateTick0=function(j,X){var F=function(Y,B){return m(Y)?B?d.getComponentMethod("calendars","CANONICAL_SUNDAY")[Y]:d.getComponentMethod("calendars","CANONICAL_TICK")[Y]:B?"2000-01-02":"2000-01-01"}(j,!!X);if(X<2)return F;var W=T.dateTime2ms(F,j);return W+=o*(X-1),T.ms2DateTime(W,0,j)},T.dfltRange=function(j){return m(j)?d.getComponentMethod("calendars","DFLTRANGE")[j]:["2000-01-01","2001-01-01"]},T.isJSDate=function(j){return typeof j=="object"&&j!==null&&typeof j.getTime=="function"},T.dateTime2ms=function(j,X){if(T.isJSDate(j)){var F=j.getTimezoneOffset()*s,W=(j.getUTCMinutes()-j.getMinutes())*s+(j.getUTCSeconds()-j.getSeconds())*l+(j.getUTCMilliseconds()-j.getMilliseconds());if(W){var Y=3*s;F=F-Y/2+c(W-F+Y/2,Y)}return(j=Number(j)-F)>=k&&j<=v?j:t}if(typeof j!="string"&&typeof j!="number")return t;j=String(j);var B=m(X),G=j.charAt(0);!B||G!=="G"&&G!=="g"||(j=j.substr(1),X="");var J=B&&X.substr(0,7)==="chinese",se=j.match(J?C:f);if(!se)return t;var re=se[1],ne=se[3]||"1",$=Number(se[5]||1),te=Number(se[7]||0),ae=Number(se[9]||0),ce=Number(se[11]||0);if(B){if(re.length===2)return t;var ue;re=Number(re);try{var de=d.getComponentMethod("calendars","getCal")(X);if(J){var me=ne.charAt(ne.length-1)==="i";ne=parseInt(ne,10),ue=de.newDate(re,de.toMonthIndex(re,ne,me),$)}else ue=de.newDate(re,Number(ne),$)}catch{return t}return ue?(ue.toJD()-u)*o+te*i+ae*s+ce*l:t}re=re.length===2?(Number(re)+2e3-y)%100+y:Number(re),ne-=1;var be=new Date(Date.UTC(2e3,ne,$,te,ae));return be.setUTCFullYear(re),be.getUTCMonth()!==ne||be.getUTCDate()!==$?t:be.getTime()+ce*l},k=T.MIN_MS=T.dateTime2ms("-9999"),v=T.MAX_MS=T.dateTime2ms("9999-12-31 23:59:59.9999"),T.isDateTime=function(j,X){return T.dateTime2ms(j,X)!==t};var _=90*o,S=3*i,O=5*s;function h(j,X,F,W,Y){if((X||F||W||Y)&&(j+=" "+x(X,2)+":"+x(F,2),(W||Y)&&(j+=":"+x(W,2),Y))){for(var B=4;Y%10==0;)B-=1,Y/=10;j+="."+x(Y,B)}return j}T.ms2DateTime=function(j,X,F){if(typeof j!="number"||!(j>=k&&j<=v))return t;X||(X=0);var W,Y,B,G,J,se,re=Math.floor(10*c(j+.05,1)),ne=Math.round(j-re/10);if(m(F)){var $=Math.floor(ne/o)+u,te=Math.floor(c(j,o));try{W=d.getComponentMethod("calendars","getCal")(F).fromJD($).formatDate("yyyy-mm-dd")}catch{W=g("G%Y-%m-%d")(new Date(ne))}if(W.charAt(0)==="-")for(;W.length<11;)W="-0"+W.substr(1);else for(;W.length<10;)W="0"+W;Y=X<_?Math.floor(te/i):0,B=X<_?Math.floor(te%i/s):0,G=X<S?Math.floor(te%s/l):0,J=X<O?te%l*10+re:0}else se=new Date(ne),W=g("%Y-%m-%d")(se),Y=X<_?se.getUTCHours():0,B=X<_?se.getUTCMinutes():0,G=X<S?se.getUTCSeconds():0,J=X<O?10*se.getUTCMilliseconds()+re:0;return h(W,Y,B,G,J)},T.ms2DateTimeLocal=function(j){if(!(j>=k+o&&j<=v-o))return t;var X=Math.floor(10*c(j+.05,1)),F=new Date(Math.round(j-X/10));return h(n("%Y-%m-%d")(F),F.getHours(),F.getMinutes(),F.getSeconds(),10*F.getUTCMilliseconds()+X)},T.cleanDate=function(j,X,F){if(j===t)return X;if(T.isJSDate(j)||typeof j=="number"&&isFinite(j)){if(m(F))return b.error("JS Dates and milliseconds are incompatible with world calendars",j),X;if(!(j=T.ms2DateTimeLocal(+j))&&X!==void 0)return X}else if(!T.isDateTime(j,F))return b.error("unrecognized date",j),X;return j};var M=/%\d?f/g,N=/%h/g,P={1:"1",2:"1",3:"2",4:"2"};function R(j,X,F,W){j=j.replace(M,function(B){var G=Math.min(+B.charAt(1)||6,6);return(X/1e3%1+2).toFixed(G).substr(2).replace(/0+$/,"")||"0"});var Y=new Date(Math.floor(X+.05));if(j=j.replace(N,function(){return P[F("%q")(Y)]}),m(W))try{j=d.getComponentMethod("calendars","worldCalFmt")(j,X,W)}catch{return"Invalid"}return F(j)(Y)}var A=[59,59.9,59.99,59.999,59.9999];T.formatDate=function(j,X,F,W,Y,B){if(Y=m(Y)&&Y,!X)if(F==="y")X=B.year;else if(F==="m")X=B.month;else{if(F!=="d")return function(G,J){var se=c(G+.05,o),re=x(Math.floor(se/i),2)+":"+x(c(Math.floor(se/s),60),2);if(J!=="M"){w(J)||(J=0);var ne=(100+Math.min(c(G/l,60),A[J])).toFixed(J).substr(1);J>0&&(ne=ne.replace(/0+$/,"").replace(/[\.]$/,"")),re+=":"+ne}return re}(j,F)+`
53
53
  `+R(B.dayMonthYear,j,W,Y);X=B.dayMonth+`
54
54
  `+B.year}return R(X,j,W,Y)};var q=3*o;T.incrementMonth=function(j,X,F){F=m(F)&&F;var W=c(j,o);if(j=Math.round(j-W),F)try{var Y=Math.round(j/o)+u,B=d.getComponentMethod("calendars","getCal")(F),G=B.fromJD(Y);return X%12?B.add(G,X,"m"):B.add(G,X/12,"y"),(G.toJD()-u)*o+W}catch{b.error("invalid ms "+j+" in calendar "+F)}var J=new Date(j+q);return J.setUTCMonth(J.getUTCMonth()+X)+W-q},T.findExactDates=function(j,X){for(var F,W,Y=0,B=0,G=0,J=0,se=m(X)&&d.getComponentMethod("calendars","getCal")(X),re=0;re<j.length;re++)if(W=j[re],w(W)){if(!(W%o))if(se)try{(F=se.fromJD(W/o+u)).day()===1?F.month()===1?Y++:B++:G++}catch{}else(F=new Date(W)).getUTCDate()===1?F.getUTCMonth()===0?Y++:B++:G++}else J++;G+=B+=Y;var ne=j.length-J;return{exactYears:Y/ne,exactMonths:B/ne,exactDays:G/ne}}},52200:function(L,T,e){var k=e(33428),v=e(24248),n=e(52248),w=e(36524);function b(i){var s=i&&i.parentNode;s&&s.removeChild(i)}function c(i,s,l){var u="plotly.js-style-"+i,d=document.getElementById(u);d||((d=document.createElement("style")).setAttribute("id",u),d.appendChild(document.createTextNode("")),document.head.appendChild(d));var g=d.sheet;g.insertRule?g.insertRule(s+"{"+l+"}",0):g.addRule?g.addRule(s,l,0):v.warn("addStyleRule failed")}function a(i){var s=window.getComputedStyle(i,null),l=s.getPropertyValue("-webkit-transform")||s.getPropertyValue("-moz-transform")||s.getPropertyValue("-ms-transform")||s.getPropertyValue("-o-transform")||s.getPropertyValue("transform");return l==="none"?null:l.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(u){return+u})}function t(i){for(var s=[];o(i);)s.push(i),i=i.parentNode;return s}function o(i){return i&&(i instanceof Element||i instanceof HTMLElement)}L.exports={getGraphDiv:function(i){var s;if(typeof i=="string"){if((s=document.getElementById(i))===null)throw new Error("No DOM element with id '"+i+"' exists on the page.");return s}if(i==null)throw new Error("DOM element provided is null or undefined");return i},isPlotDiv:function(i){var s=k.select(i);return s.node()instanceof HTMLElement&&s.size()&&s.classed("js-plotly-plot")},removeElement:b,addStyleRule:function(i,s){c("global",i,s)},addRelatedStyleRule:c,deleteRelatedStyleRule:function(i){var s="plotly.js-style-"+i,l=document.getElementById(s);l&&b(l)},getFullTransformMatrix:function(i){var s=t(i),l=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return s.forEach(function(u){var d=a(u);if(d){var g=n.convertCssMatrix(d);l=w.multiply(l,l,g)}}),l},getElementTransformMatrix:a,getElementAndAncestors:t,equalDomRects:function(i,s){return i&&s&&i.top===s.top&&i.left===s.left&&i.right===s.right&&i.bottom===s.bottom}}},95924:function(L,T,e){var k=e(61252).EventEmitter,v={init:function(n){if(n._ev instanceof k)return n;var w=new k,b=new k;return n._ev=w,n._internalEv=b,n.on=w.on.bind(w),n.once=w.once.bind(w),n.removeListener=w.removeListener.bind(w),n.removeAllListeners=w.removeAllListeners.bind(w),n._internalOn=b.on.bind(b),n._internalOnce=b.once.bind(b),n._removeInternalListener=b.removeListener.bind(b),n._removeAllInternalListeners=b.removeAllListeners.bind(b),n.emit=function(c,a){typeof jQuery<"u"&&jQuery(n).trigger(c,a),w.emit(c,a),b.emit(c,a)},n},triggerHandler:function(n,w,b){var c,a;typeof jQuery<"u"&&(c=jQuery(n).triggerHandler(w,b));var t=n._ev;if(!t)return c;var o,i=t._events[w];if(!i)return c;function s(l){return l.listener?(t.removeListener(w,l.listener),l.fired?void 0:(l.fired=!0,l.listener.apply(t,[b]))):l.apply(t,[b])}for(i=Array.isArray(i)?i:[i],o=0;o<i.length-1;o++)s(i[o]);return a=s(i[o]),c!==void 0?c:a},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}};L.exports=v},92880:function(L,T,e){var k=e(63620),v=Array.isArray;function n(w,b,c,a){var t,o,i,s,l,u,d,g=w[0],f=w.length;if(f===2&&v(g)&&v(w[1])&&g.length===0){if(d=function(y,m){var x,_;for(x=0;x<y.length;x++){if((_=y[x])!==null&&typeof _=="object")return!1;_!==void 0&&(m[x]=_)}return!0}(w[1],g),d)return g;g.splice(0,g.length)}for(var C=1;C<f;C++)for(o in t=w[C])i=g[o],s=t[o],a&&v(s)?g[o]=s:b&&s&&(k(s)||(l=v(s)))?(l?(l=!1,u=i&&v(i)?i:[]):u=i&&k(i)?i:{},g[o]=n([u,s],b,c,a)):(s!==void 0||c)&&(g[o]=s);return g}T.extendFlat=function(){return n(arguments,!1,!1,!1)},T.extendDeep=function(){return n(arguments,!0,!1,!1)},T.extendDeepAll=function(){return n(arguments,!0,!0,!1)},T.extendDeepNoArrays=function(){return n(arguments,!0,!1,!0)}},68944:function(L){L.exports=function(T){for(var e={},k=[],v=0,n=0;n<T.length;n++){var w=T[n];e[w]!==1&&(e[w]=1,k[v++]=w)}return k}},43880:function(L){function T(k){return k.visible===!0}function e(k){var v=k[0].trace;return v.visible===!0&&v._length!==0}L.exports=function(k){for(var v,n=(v=k,Array.isArray(v)&&Array.isArray(v[0])&&v[0][0]&&v[0][0].trace?e:T),w=[],b=0;b<k.length;b++){var c=k[b];n(c)&&w.push(c)}return w}},27144:function(L,T,e){var k=e(33428),v=e(36116),n=e(40440),w=e(77844),b=e(42428),c=e(35536),a=e(24248),t=e(63620),o=e(22296),i=e(92065),s=Object.keys(v),l={"ISO-3":c,"USA-states":c,"country names":function(d){for(var g=0;g<s.length;g++){var f=s[g];if(new RegExp(v[f]).test(d.trim().toLowerCase()))return f}return a.log("Unrecognized country name: "+d+"."),!1}};function u(d){var g=d.geojson,f=window.PlotlyGeoAssets||{},C=typeof g=="string"?f[g]:g;return t(C)?C:(a.error("Oops ... something went wrong when fetching "+g),!1)}L.exports={locationToFeature:function(d,g,f){if(!g||typeof g!="string")return!1;var C,y,m,x=l[d](g);if(x){if(d==="USA-states")for(C=[],m=0;m<f.length;m++)(y=f[m]).properties&&y.properties.gu&&y.properties.gu==="USA"&&C.push(y);else C=f;for(m=0;m<C.length;m++)if((y=C[m]).id===x)return y;a.log(["Location with id",x,"does not have a matching topojson feature at this resolution."].join(" "))}return!1},feature2polygons:function(d){var g,f,C,y,m=d.geometry,x=m.coordinates,_=d.id,S=[];function O(h){for(var M=0;M<h.length-1;M++)if(h[M][0]>0&&h[M+1][0]<0)return M;return null}switch(g=_==="RUS"||_==="FJI"?function(h){var M;if(O(h)===null)M=h;else for(M=new Array(h.length),y=0;y<h.length;y++)M[y]=[h[y][0]<0?h[y][0]+360:h[y][0],h[y][1]];S.push(i.tester(M))}:_==="ATA"?function(h){var M=O(h);if(M===null)return S.push(i.tester(h));var N=new Array(h.length+1),P=0;for(y=0;y<h.length;y++)y>M?N[P++]=[h[y][0]+360,h[y][1]]:y===M?(N[P++]=h[y],N[P++]=[h[y][0],-90]):N[P++]=h[y];var R=i.tester(N);R.pts.pop(),S.push(R)}:function(h){S.push(i.tester(h))},m.type){case"MultiPolygon":for(f=0;f<x.length;f++)for(C=0;C<x[f].length;C++)g(x[f][C]);break;case"Polygon":for(f=0;f<x.length;f++)g(x[f])}return S},getTraceGeojson:u,extractTraceFeature:function(d){var g=d[0].trace,f=u(g);if(!f)return!1;var C,y={},m=[];for(C=0;C<g._length;C++){var x=d[C];(x.loc||x.loc===0)&&(y[x.loc]=x)}function _(h){var M=o(h,g.featureidkey||"id").get(),N=y[M];if(N){var P=h.geometry;if(P.type==="Polygon"||P.type==="MultiPolygon"){var R={type:"Feature",id:M,geometry:P,properties:{}};R.properties.ct=function(A){var q,j=A.geometry;if(j.type==="MultiPolygon")for(var X=j.coordinates,F=0,W=0;W<X.length;W++){var Y={type:"Polygon",coordinates:X[W]},B=n.default(Y);B>F&&(F=B,q=Y)}else q=j;return w.default(q).geometry.coordinates}(R),N.fIn=h,N.fOut=R,m.push(R)}else a.log(["Location",N.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete y[M]}switch(f.type){case"FeatureCollection":var S=f.features;for(C=0;C<S.length;C++)_(S[C]);break;case"Feature":_(f);break;default:return a.warn(["Invalid GeoJSON type",(f.type||"none")+".","Traces with locationmode *geojson-id* only support","*FeatureCollection* and *Feature* types."].join(" ")),!1}for(var O in y)a.log(["Location *"+O+"*","does not have a matching feature with id-key","*"+g.featureidkey+"*."].join(" "));return m},fetchTraceGeoData:function(d){var g=window.PlotlyGeoAssets||{},f=[];function C(_){return new Promise(function(S,O){k.json(_,function(h,M){if(h){delete g[_];var N=h.status===404?'GeoJSON at URL "'+_+'" does not exist.':"Unexpected error while fetching from "+_;return O(new Error(N))}return g[_]=M,S(M)})})}function y(_){return new Promise(function(S,O){var h=0,M=setInterval(function(){return g[_]&&g[_]!=="pending"?(clearInterval(M),S(g[_])):h>100?(clearInterval(M),O("Unexpected error while fetching from "+_)):void h++},50)})}for(var m=0;m<d.length;m++){var x=d[m][0].trace.geojson;typeof x=="string"&&(g[x]?g[x]==="pending"&&f.push(y(x)):(g[x]="pending",f.push(C(x))))}return f},computeBbox:function(d){return b.default(d)}}},44808:function(L,T,e){var k=e(39032).BADNUM;T.calcTraceToLineCoords=function(v){for(var n=v[0].trace.connectgaps,w=[],b=[],c=0;c<v.length;c++){var a=v[c].lonlat;a[0]!==k?b.push(a):!n&&b.length>0&&(w.push(b),b=[])}return b.length>0&&w.push(b),w},T.makeLine=function(v){return v.length===1?{type:"LineString",coordinates:v[0]}:{type:"MultiLineString",coordinates:v}},T.makePolygon=function(v){if(v.length===1)return{type:"Polygon",coordinates:v};for(var n=new Array(v.length),w=0;w<v.length;w++)n[w]=[v[w]];return{type:"MultiPolygon",coordinates:n}},T.makeBlank=function(){return{type:"Point",coordinates:[]}}},92348:function(L,T,e){var k,v,n,w=e(20435).mod;function b(a,t,o,i,s,l,u,d){var g=o-a,f=s-a,C=u-s,y=i-t,m=l-t,x=d-l,_=g*x-C*y;if(_===0)return null;var S=(f*x-C*m)/_,O=(f*y-g*m)/_;return O<0||O>1||S<0||S>1?null:{x:a+g*S,y:t+y*S}}function c(a,t,o,i,s){var l=i*a+s*t;if(l<0)return i*i+s*s;if(l>o){var u=i-a,d=s-t;return u*u+d*d}var g=i*t-s*a;return g*g/o}T.segmentsIntersect=b,T.segmentDistance=function(a,t,o,i,s,l,u,d){if(b(a,t,o,i,s,l,u,d))return 0;var g=o-a,f=i-t,C=u-s,y=d-l,m=g*g+f*f,x=C*C+y*y,_=Math.min(c(g,f,m,s-a,l-t),c(g,f,m,u-a,d-t),c(C,y,x,a-s,t-l),c(C,y,x,o-s,i-l));return Math.sqrt(_)},T.getTextLocation=function(a,t,o,i){if(a===v&&i===n||(k={},v=a,n=i),k[o])return k[o];var s=a.getPointAtLength(w(o-i/2,t)),l=a.getPointAtLength(w(o+i/2,t)),u=Math.atan((l.y-s.y)/(l.x-s.x)),d=a.getPointAtLength(w(o,t)),g={x:(4*d.x+s.x+l.x)/6,y:(4*d.y+s.y+l.y)/6,theta:u};return k[o]=g,g},T.clearLocationCache=function(){v=null},T.getVisibleSegment=function(a,t,o){var i,s,l=t.left,u=t.right,d=t.top,g=t.bottom,f=0,C=a.getTotalLength(),y=C;function m(_){var S=a.getPointAtLength(_);_===0?i=S:_===C&&(s=S);var O=S.x<l?l-S.x:S.x>u?S.x-u:0,h=S.y<d?d-S.y:S.y>g?S.y-g:0;return Math.sqrt(O*O+h*h)}for(var x=m(f);x;){if((f+=x+o)>y)return;x=m(f)}for(x=m(y);x;){if(f>(y-=x+o))return;x=m(y)}return{min:f,max:y,len:y-f,total:C,isClosed:f===0&&y===C&&Math.abs(i.x-s.x)<.1&&Math.abs(i.y-s.y)<.1}},T.findPointOnPath=function(a,t,o,i){for(var s,l,u,d=(i=i||{}).pathLength||a.getTotalLength(),g=i.tolerance||.001,f=i.iterationLimit||30,C=a.getPointAtLength(0)[o]>a.getPointAtLength(d)[o]?-1:1,y=0,m=0,x=d;y<f;){if(s=(m+x)/2,u=(l=a.getPointAtLength(s))[o]-t,Math.abs(u)<g)return l;C*u>0?x=s:m=s,y++}return l}},33040:function(L,T,e){var k=e(38248),v=e(49760),n=e(72160),w=e(8932),b=e(22548).defaultLine,c=e(38116).isArrayOrTypedArray,a=n(b);function t(s,l){var u=s;return u[3]*=l,u}function o(s){if(k(s))return a;var l=n(s);return l.length?l:a}function i(s){return k(s)?s:1}L.exports={formatColor:function(s,l,u){var d=s.color;d&&d._inputArray&&(d=d._inputArray);var g,f,C,y,m,x=c(d),_=c(l),S=w.extractOpts(s),O=[];if(g=S.colorscale!==void 0?w.makeColorScaleFuncFromTrace(s):o,f=x?function(M,N){return M[N]===void 0?a:n(g(M[N]))}:o,C=_?function(M,N){return M[N]===void 0?1:i(M[N])}:i,x||_)for(var h=0;h<u;h++)y=f(d,h),m=C(l,h),O[h]=t(y,m);else O=t(n(d),l);return O},parseColorScale:function(s){var l=w.extractOpts(s),u=l.colorscale;return l.reversescale&&(u=w.flipScale(l.colorscale)),u.map(function(d){var g=d[0],f=v(d[1]).toRgb();return{index:g,rgb:[f.r,f.g,f.b,f.a]}})}}},71688:function(L,T,e){var k=e(35536);function v(n){return[n]}L.exports={keyFun:function(n){return n.key},repeat:v,descend:k,wrap:v,unwrap:function(n){return n[0]}}},35536:function(L){L.exports=function(T){return T}},1396:function(L){L.exports=function(T,e){if(!e)return T;var k=1/Math.abs(e),v=k>1?(k*T+k*e)/k:T+e,n=String(v).length;if(n>16){var w=String(e).length;if(n>=String(T).length+w){var b=parseFloat(v).toPrecision(12);b.indexOf("e+")===-1&&(v=+b)}}return v}},3400:function(L,T,e){var k=e(33428),v=e(94336).E9,n=e(57624).E9,w=e(38248),b=e(39032),c=b.FP_SAFE,a=-c,t=b.BADNUM,o=L.exports={};o.adjustFormat=function(te){return!te||/^\d[.]\df/.test(te)||/[.]\d%/.test(te)?te:te==="0.f"?"~f":/^\d%/.test(te)?"~%":/^\ds/.test(te)?"~s":!/^[~,.0$]/.test(te)&&/[&fps]/.test(te)?"~"+te:te};var i={};o.warnBadFormat=function(te){var ae=String(te);i[ae]||(i[ae]=1,o.warn('encountered bad format: "'+ae+'"'))},o.noFormat=function(te){return String(te)},o.numberFormat=function(te){var ae;try{ae=n(o.adjustFormat(te))}catch{return o.warnBadFormat(te),o.noFormat}return ae},o.nestedProperty=e(22296),o.keyedContainer=e(37804),o.relativeAttr=e(23193),o.isPlainObject=e(63620),o.toLogRange=e(36896),o.relinkPrivateKeys=e(51528);var s=e(38116);o.isArrayBuffer=s.isArrayBuffer,o.isTypedArray=s.isTypedArray,o.isArrayOrTypedArray=s.isArrayOrTypedArray,o.isArray1D=s.isArray1D,o.ensureArray=s.ensureArray,o.concat=s.concat,o.maxRowLength=s.maxRowLength,o.minRowLength=s.minRowLength;var l=e(20435);o.mod=l.mod,o.modHalf=l.modHalf;var u=e(63064);o.valObjectMeta=u.valObjectMeta,o.coerce=u.coerce,o.coerce2=u.coerce2,o.coerceFont=u.coerceFont,o.coercePattern=u.coercePattern,o.coerceHoverinfo=u.coerceHoverinfo,o.coerceSelectionMarkerOpacity=u.coerceSelectionMarkerOpacity,o.validate=u.validate;var d=e(67555);o.dateTime2ms=d.dateTime2ms,o.isDateTime=d.isDateTime,o.ms2DateTime=d.ms2DateTime,o.ms2DateTimeLocal=d.ms2DateTimeLocal,o.cleanDate=d.cleanDate,o.isJSDate=d.isJSDate,o.formatDate=d.formatDate,o.incrementMonth=d.incrementMonth,o.dateTick0=d.dateTick0,o.dfltRange=d.dfltRange,o.findExactDates=d.findExactDates,o.MIN_MS=d.MIN_MS,o.MAX_MS=d.MAX_MS;var g=e(14952);o.findBin=g.findBin,o.sorterAsc=g.sorterAsc,o.sorterDes=g.sorterDes,o.distinctVals=g.distinctVals,o.roundUp=g.roundUp,o.sort=g.sort,o.findIndexOfMin=g.findIndexOfMin,o.sortObjectKeys=e(95376);var f=e(63084);o.aggNums=f.aggNums,o.len=f.len,o.mean=f.mean,o.median=f.median,o.midRange=f.midRange,o.variance=f.variance,o.stdev=f.stdev,o.interp=f.interp;var C=e(52248);o.init2dArray=C.init2dArray,o.transposeRagged=C.transposeRagged,o.dot=C.dot,o.translationMatrix=C.translationMatrix,o.rotationMatrix=C.rotationMatrix,o.rotationXYMatrix=C.rotationXYMatrix,o.apply3DTransform=C.apply3DTransform,o.apply2DTransform=C.apply2DTransform,o.apply2DTransform2=C.apply2DTransform2,o.convertCssMatrix=C.convertCssMatrix,o.inverseTransformMatrix=C.inverseTransformMatrix;var y=e(11864);o.deg2rad=y.deg2rad,o.rad2deg=y.rad2deg,o.angleDelta=y.angleDelta,o.angleDist=y.angleDist,o.isFullCircle=y.isFullCircle,o.isAngleInsideSector=y.isAngleInsideSector,o.isPtInsideSector=y.isPtInsideSector,o.pathArc=y.pathArc,o.pathSector=y.pathSector,o.pathAnnulus=y.pathAnnulus;var m=e(98308);o.isLeftAnchor=m.isLeftAnchor,o.isCenterAnchor=m.isCenterAnchor,o.isRightAnchor=m.isRightAnchor,o.isTopAnchor=m.isTopAnchor,o.isMiddleAnchor=m.isMiddleAnchor,o.isBottomAnchor=m.isBottomAnchor;var x=e(92348);o.segmentsIntersect=x.segmentsIntersect,o.segmentDistance=x.segmentDistance,o.getTextLocation=x.getTextLocation,o.clearLocationCache=x.clearLocationCache,o.getVisibleSegment=x.getVisibleSegment,o.findPointOnPath=x.findPointOnPath;var _=e(92880);o.extendFlat=_.extendFlat,o.extendDeep=_.extendDeep,o.extendDeepAll=_.extendDeepAll,o.extendDeepNoArrays=_.extendDeepNoArrays;var S=e(24248);o.log=S.log,o.warn=S.warn,o.error=S.error;var O=e(53756);o.counterRegex=O.counter;var h=e(91200);o.throttle=h.throttle,o.throttleDone=h.done,o.clearThrottle=h.clear;var M=e(52200);function N(te){var ae={};for(var ce in te)for(var ue=te[ce],de=0;de<ue.length;de++)ae[ue[de]]=+ce;return ae}o.getGraphDiv=M.getGraphDiv,o.isPlotDiv=M.isPlotDiv,o.removeElement=M.removeElement,o.addStyleRule=M.addStyleRule,o.addRelatedStyleRule=M.addRelatedStyleRule,o.deleteRelatedStyleRule=M.deleteRelatedStyleRule,o.getFullTransformMatrix=M.getFullTransformMatrix,o.getElementTransformMatrix=M.getElementTransformMatrix,o.getElementAndAncestors=M.getElementAndAncestors,o.equalDomRects=M.equalDomRects,o.clearResponsive=e(75352),o.preserveDrawingBuffer=e(34296),o.makeTraceGroups=e(30988),o._=e(98356),o.notifier=e(41792),o.filterUnique=e(68944),o.filterVisible=e(43880),o.pushUnique=e(52416),o.increment=e(1396),o.cleanNumber=e(54037),o.ensureNumber=function(te){return w(te)?(te=Number(te))>c||te<a?t:te:t},o.isIndex=function(te,ae){return!(ae!==void 0&&te>=ae)&&w(te)&&te>=0&&te%1==0},o.noop=e(16628),o.identity=e(35536),o.repeat=function(te,ae){for(var ce=new Array(ae),ue=0;ue<ae;ue++)ce[ue]=te;return ce},o.swapAttrs=function(te,ae,ce,ue){ce||(ce="x"),ue||(ue="y");for(var de=0;de<ae.length;de++){var me=ae[de],be=o.nestedProperty(te,me.replace("?",ce)),_e=o.nestedProperty(te,me.replace("?",ue)),we=be.get();be.set(_e.get()),_e.set(we)}},o.raiseToTop=function(te){te.parentNode.appendChild(te)},o.cancelTransition=function(te){return te.transition().duration(0)},o.constrain=function(te,ae,ce){return ae>ce?Math.max(ce,Math.min(ae,te)):Math.max(ae,Math.min(ce,te))},o.bBoxIntersect=function(te,ae,ce){return ce=ce||0,te.left<=ae.right+ce&&ae.left<=te.right+ce&&te.top<=ae.bottom+ce&&ae.top<=te.bottom+ce},o.simpleMap=function(te,ae,ce,ue,de){for(var me=te.length,be=new Array(me),_e=0;_e<me;_e++)be[_e]=ae(te[_e],ce,ue,de);return be},o.randstr=function te(ae,ce,ue,de){if(ue||(ue=16),ce===void 0&&(ce=24),ce<=0)return"0";var me,be,_e=Math.log(Math.pow(2,ce))/Math.log(ue),we="";for(me=2;_e===1/0;me*=2)_e=Math.log(Math.pow(2,ce/me))/Math.log(ue)*me;var Ce=_e-Math.floor(_e);for(me=0;me<Math.floor(_e);me++)we=Math.floor(Math.random()*ue).toString(ue)+we;Ce&&(be=Math.pow(ue,Ce),we=Math.floor(Math.random()*be).toString(ue)+we);var Se=parseInt(we,ue);return ae&&ae[we]||Se!==1/0&&Se>=Math.pow(2,ce)?de>10?(o.warn("randstr failed uniqueness"),we):te(ae,ce,ue,(de||0)+1):we},o.OptionControl=function(te,ae){te||(te={}),ae||(ae="opt");var ce={optionList:[],_newoption:function(ue){ue[ae]=te,ce[ue.name]=ue,ce.optionList.push(ue)}};return ce["_"+ae]=te,ce},o.smooth=function(te,ae){if((ae=Math.round(ae)||0)<2)return te;var ce,ue,de,me,be=te.length,_e=2*be,we=2*ae-1,Ce=new Array(we),Se=new Array(be);for(ce=0;ce<we;ce++)Ce[ce]=(1-Math.cos(Math.PI*(ce+1)/ae))/(2*ae);for(ce=0;ce<be;ce++){for(me=0,ue=0;ue<we;ue++)(de=ce+ue+1-ae)<-be?de-=_e*Math.round(de/_e):de>=_e&&(de-=_e*Math.floor(de/_e)),de<0?de=-1-de:de>=be&&(de=_e-1-de),me+=te[de]*Ce[ue];Se[ce]=me}return Se},o.syncOrAsync=function(te,ae,ce){var ue;function de(){return o.syncOrAsync(te,ae,ce)}for(;te.length;)if((ue=(0,te.splice(0,1)[0])(ae))&&ue.then)return ue.then(de);return ce&&ce(ae)},o.stripTrailingSlash=function(te){return te.substr(-1)==="/"?te.substr(0,te.length-1):te},o.noneOrAll=function(te,ae,ce){if(te){var ue,de=!1,me=!0;for(ue=0;ue<ce.length;ue++)te[ce[ue]]!=null?de=!0:me=!1;if(de&&!me)for(ue=0;ue<ce.length;ue++)te[ce[ue]]=ae[ce[ue]]}},o.mergeArray=function(te,ae,ce,ue){var de=typeof ue=="function";if(o.isArrayOrTypedArray(te))for(var me=Math.min(te.length,ae.length),be=0;be<me;be++){var _e=te[be];ae[be][ce]=de?ue(_e):_e}},o.mergeArrayCastPositive=function(te,ae,ce){return o.mergeArray(te,ae,ce,function(ue){var de=+ue;return isFinite(de)&&de>0?de:0})},o.fillArray=function(te,ae,ce,ue){if(ue=ue||o.identity,o.isArrayOrTypedArray(te))for(var de=0;de<ae.length;de++)ae[de][ce]=ue(te[de])},o.castOption=function(te,ae,ce,ue){ue=ue||o.identity;var de=o.nestedProperty(te,ce).get();return o.isArrayOrTypedArray(de)?Array.isArray(ae)&&o.isArrayOrTypedArray(de[ae[0]])?ue(de[ae[0]][ae[1]]):ue(de[ae]):de},o.extractOption=function(te,ae,ce,ue){if(ce in te)return te[ce];var de=o.nestedProperty(ae,ue).get();return Array.isArray(de)?void 0:de},o.tagSelected=function(te,ae,ce){var ue,de,me=ae.selectedpoints,be=ae._indexToPoints;be&&(ue=N(be));for(var _e=0;_e<me.length;_e++){var we=me[_e];if(o.isIndex(we)||o.isArrayOrTypedArray(we)&&o.isIndex(we[0])&&o.isIndex(we[1])){var Ce=ue?ue[we]:we,Se=ce?ce[Ce]:Ce;(de=Se)!==void 0&&de<te.length&&(te[Se].selected=1)}}},o.selIndices2selPoints=function(te){var ae=te.selectedpoints,ce=te._indexToPoints;if(ce){for(var ue=N(ce),de=[],me=0;me<ae.length;me++){var be=ae[me];if(o.isIndex(be)){var _e=ue[be];o.isIndex(_e)&&de.push(_e)}}return de}return ae},o.getTargetArray=function(te,ae){var ce=ae.target;if(typeof ce=="string"&&ce){var ue=o.nestedProperty(te,ce).get();return!!o.isArrayOrTypedArray(ue)&&ue}return!!o.isArrayOrTypedArray(ce)&&ce},o.minExtend=function te(ae,ce,ue){var de={};typeof ce!="object"&&(ce={});var me,be,_e,we=ue==="pieLike"?-1:3,Ce=Object.keys(ae);for(me=0;me<Ce.length;me++)_e=ae[be=Ce[me]],be.charAt(0)!=="_"&&typeof _e!="function"&&(be==="module"?de[be]=_e:Array.isArray(_e)?de[be]=be==="colorscale"||we===-1?_e.slice():_e.slice(0,we):o.isTypedArray(_e)?de[be]=we===-1?_e.subarray():_e.subarray(0,we):de[be]=_e&&typeof _e=="object"?te(ae[be],ce[be],ue):_e);for(Ce=Object.keys(ce),me=0;me<Ce.length;me++)typeof(_e=ce[be=Ce[me]])=="object"&&be in de&&typeof de[be]=="object"||(de[be]=_e);return de},o.titleCase=function(te){return te.charAt(0).toUpperCase()+te.substr(1)},o.containsAny=function(te,ae){for(var ce=0;ce<ae.length;ce++)if(te.indexOf(ae[ce])!==-1)return!0;return!1},o.isIE=function(){return window.navigator.msSaveBlob!==void 0};var P=/Version\/[\d\.]+.*Safari/;o.isSafari=function(){return P.test(window.navigator.userAgent)};var R=/iPad|iPhone|iPod/;o.isIOS=function(){return R.test(window.navigator.userAgent)};var A=/Firefox\/(\d+)\.\d+/;o.getFirefoxVersion=function(){var te=A.exec(window.navigator.userAgent);if(te&&te.length===2){var ae=parseInt(te[1]);if(!isNaN(ae))return ae}return null},o.isD3Selection=function(te){return te instanceof k.selection},o.ensureSingle=function(te,ae,ce,ue){var de=te.select(ae+(ce?"."+ce:""));if(de.size())return de;var me=te.append(ae);return ce&&me.classed(ce,!0),ue&&me.call(ue),me},o.ensureSingleById=function(te,ae,ce,ue){var de=te.select(ae+"#"+ce);if(de.size())return de;var me=te.append(ae).attr("id",ce);return ue&&me.call(ue),me},o.objectFromPath=function(te,ae){for(var ce,ue=te.split("."),de=ce={},me=0;me<ue.length;me++){var be=ue[me],_e=null,we=ue[me].match(/(.*)\[([0-9]+)\]/);we?(be=we[1],_e=we[2],ce=ce[be]=[],me===ue.length-1?ce[_e]=ae:ce[_e]={},ce=ce[_e]):(me===ue.length-1?ce[be]=ae:ce[be]={},ce=ce[be])}return de};var q=/^([^\[\.]+)\.(.+)?/,j=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function X(te){return te.slice(0,2)==="__"}o.expandObjectPaths=function(te){var ae,ce,ue,de,me,be,_e;if(typeof te=="object"&&!Array.isArray(te)){for(ce in te)if(te.hasOwnProperty(ce))if(ae=ce.match(q)){if(de=te[ce],X(ue=ae[1]))continue;delete te[ce],te[ue]=o.extendDeepNoArrays(te[ue]||{},o.objectFromPath(ce,o.expandObjectPaths(de))[ue])}else if(ae=ce.match(j)){if(de=te[ce],X(ue=ae[1]))continue;if(me=parseInt(ae[2]),delete te[ce],te[ue]=te[ue]||[],ae[3]===".")_e=ae[4],be=te[ue][me]=te[ue][me]||{},o.extendDeepNoArrays(be,o.objectFromPath(_e,o.expandObjectPaths(de)));else{if(X(ue))continue;te[ue][me]=o.expandObjectPaths(de)}}else{if(X(ce))continue;te[ce]=o.expandObjectPaths(te[ce])}}return te},o.numSeparate=function(te,ae,ce){if(ce||(ce=!1),typeof ae!="string"||ae.length===0)throw new Error("Separator string required for formatting!");typeof te=="number"&&(te=String(te));var ue=/(\d+)(\d{3})/,de=ae.charAt(0),me=ae.charAt(1),be=te.split("."),_e=be[0],we=be.length>1?de+be[1]:"";if(me&&(be.length>1||_e.length>4||ce))for(;ue.test(_e);)_e=_e.replace(ue,"$1"+me+"$2");return _e+we},o.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var F=/^\w*$/;o.templateString=function(te,ae){var ce={};return te.replace(o.TEMPLATE_STRING_REGEX,function(ue,de){var me;return F.test(de)?me=ae[de]:(ce[de]=ce[de]||o.nestedProperty(ae,de).get,me=ce[de]()),o.isValidTextValue(me)?me:""})};var W={max:10,count:0,name:"hovertemplate"};o.hovertemplateString=function(){return se.apply(W,arguments)};var Y={max:10,count:0,name:"texttemplate"};o.texttemplateString=function(){return se.apply(Y,arguments)};var B=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/,G={max:10,count:0,name:"texttemplate",parseMultDiv:!0};o.texttemplateStringForShapes=function(){return se.apply(G,arguments)};var J=/^[:|\|]/;function se(te,ae,ce){var ue=this,de=arguments;ae||(ae={});var me={};return te.replace(o.TEMPLATE_STRING_REGEX,function(be,_e,we){var Ce=_e==="_xother"||_e==="_yother",Se=_e==="_xother_"||_e==="_yother_",Pe=_e==="xother_"||_e==="yother_",Ne=_e==="xother"||_e==="yother"||Ce||Pe||Se,Oe=_e;(Ce||Se)&&(Oe=Oe.substring(1)),(Pe||Se)&&(Oe=Oe.substring(0,Oe.length-1));var pe,fe,xe,ze=null,Le=null;if(ue.parseMultDiv){var Ue=function(ke){var Ee=ke.match(B);return Ee?{key:Ee[1],op:Ee[2],number:Number(Ee[3])}:{key:ke,op:null,number:null}}(Oe);Oe=Ue.key,ze=Ue.op,Le=Ue.number}if(Ne){if((pe=ae[Oe])===void 0)return""}else for(xe=3;xe<de.length;xe++)if(fe=de[xe]){if(fe.hasOwnProperty(Oe)){pe=fe[Oe];break}if(F.test(Oe)||(pe=o.nestedProperty(fe,Oe).get(),(pe=me[Oe]||o.nestedProperty(fe,Oe).get())&&(me[Oe]=pe)),pe!==void 0)break}if(pe!==void 0&&(ze==="*"&&(pe*=Le),ze==="/"&&(pe/=Le)),pe===void 0&&ue)return ue.count<ue.max&&(o.warn("Variable '"+Oe+"' in "+ue.name+" could not be found!"),pe=be),ue.count===ue.max&&o.warn("Too many "+ue.name+" warnings - additional warnings will be suppressed"),ue.count++,be;if(we){var Re;if(we[0]===":"&&(pe=(Re=ce?ce.numberFormat:o.numberFormat)(we.replace(J,""))(pe)),we[0]==="|"){Re=ce?ce.timeFormat:v;var Fe=o.dateTime2ms(pe);pe=o.formatDate(Fe,we.replace(J,""),!1,Re)}}else{var ve=Oe+"Label";ae.hasOwnProperty(ve)&&(pe=ae[ve])}return Ne&&(pe="("+pe+")",(Ce||Se)&&(pe=" "+pe),(Pe||Se)&&(pe+=" ")),pe})}o.subplotSort=function(te,ae){for(var ce=Math.min(te.length,ae.length)+1,ue=0,de=0,me=0;me<ce;me++){var be=te.charCodeAt(me)||0,_e=ae.charCodeAt(me)||0,we=be>=48&&be<=57,Ce=_e>=48&&_e<=57;if(we&&(ue=10*ue+be-48),Ce&&(de=10*de+_e-48),!we||!Ce){if(ue!==de)return ue-de;if(be!==_e)return be-_e}}return de-ue};var re=2e9;o.seedPseudoRandom=function(){re=2e9},o.pseudoRandom=function(){var te=re;return re=(69069*re+1)%4294967296,Math.abs(re-te)<429496729?o.pseudoRandom():re/4294967296},o.fillText=function(te,ae,ce){var ue=Array.isArray(ce)?function(be){ce.push(be)}:function(be){ce.text=be},de=o.extractOption(te,ae,"htx","hovertext");if(o.isValidTextValue(de))return ue(de);var me=o.extractOption(te,ae,"tx","text");return o.isValidTextValue(me)?ue(me):void 0},o.isValidTextValue=function(te){return te||te===0},o.formatPercent=function(te,ae){ae=ae||0;for(var ce=(Math.round(100*te*Math.pow(10,ae))*Math.pow(.1,ae)).toFixed(ae)+"%",ue=0;ue<ae;ue++)ce.indexOf(".")!==-1&&(ce=(ce=ce.replace("0%","%")).replace(".%","%"));return ce},o.isHidden=function(te){var ae=window.getComputedStyle(te).display;return!ae||ae==="none"},o.strTranslate=function(te,ae){return te||ae?"translate("+te+","+ae+")":""},o.strRotate=function(te){return te?"rotate("+te+")":""},o.strScale=function(te){return te!==1?"scale("+te+")":""},o.getTextTransform=function(te){var ae=te.noCenter,ce=te.textX,ue=te.textY,de=te.targetX,me=te.targetY,be=te.anchorX||0,_e=te.anchorY||0,we=te.rotate,Ce=te.scale;return Ce?Ce>1&&(Ce=1):Ce=0,o.strTranslate(de-Ce*(ce+be),me-Ce*(ue+_e))+o.strScale(Ce)+(we?"rotate("+we+(ae?"":" "+ce+" "+ue)+")":"")},o.setTransormAndDisplay=function(te,ae){te.attr("transform",o.getTextTransform(ae)),te.style("display",ae.scale?null:"none")},o.ensureUniformFontSize=function(te,ae){var ce=o.extendFlat({},ae);return ce.size=Math.max(ae.size,te._fullLayout.uniformtext.minsize||0),ce},o.join2=function(te,ae,ce){var ue=te.length;return ue>1?te.slice(0,-1).join(ae)+ce+te[ue-1]:te.join(ae)},o.bigFont=function(te){return Math.round(1.2*te)};var ne=o.getFirefoxVersion(),$=ne!==null&&ne<86;o.getPositionFromD3Event=function(){return $?[k.event.layerX,k.event.layerY]:[k.event.offsetX,k.event.offsetY]}},63620:function(L){L.exports=function(T){return window&&window.process&&window.process.versions?Object.prototype.toString.call(T)==="[object Object]":Object.prototype.toString.call(T)==="[object Object]"&&Object.getPrototypeOf(T).hasOwnProperty("hasOwnProperty")}},37804:function(L,T,e){var k=e(22296),v=/^\w*$/;L.exports=function(n,w,b,c){var a,t,o;b=b||"name",c=c||"value";var i={};w&&w.length?(o=k(n,w),t=o.get()):t=n,w=w||"";var s={};if(t)for(a=0;a<t.length;a++)s[t[a][b]]=a;var l=v.test(c),u={set:function(d,g){var f=g===null?4:0;if(!t){if(!o||f===4)return;t=[],o.set(t)}var C=s[d];if(C===void 0){if(f===4)return;f|=3,C=t.length,s[d]=C}else g!==(l?t[C][c]:k(t[C],c).get())&&(f|=2);var y=t[C]=t[C]||{};return y[b]=d,l?y[c]=g:k(y,c).set(g),g!==null&&(f&=-5),i[C]=i[C]|f,u},get:function(d){if(t){var g=s[d];return g===void 0?void 0:l?t[g][c]:k(t[g],c).get()}},rename:function(d,g){var f=s[d];return f===void 0||(i[f]=1|i[f],s[g]=f,delete s[d],t[f][b]=g),u},remove:function(d){var g=s[d];if(g===void 0)return u;var f=t[g];if(Object.keys(f).length>2)return i[g]=2|i[g],u.set(d,null);if(l){for(a=g;a<t.length;a++)i[a]=3|i[a];for(a=g;a<t.length;a++)s[t[a][b]]--;t.splice(g,1),delete s[d]}else k(f,c).set(null),i[g]=6|i[g];return u},constructUpdate:function(){for(var d,g,f={},C=Object.keys(i),y=0;y<C.length;y++)g=C[y],d=w+"["+g+"]",t[g]?(1&i[g]&&(f[d+"."+b]=t[g][b]),2&i[g]&&(f[d+"."+c]=l?4&i[g]?null:t[g][c]:4&i[g]?null:k(t[g],c).get())):f[d]=null;return f}};return u}},98356:function(L,T,e){var k=e(24040);L.exports=function(v,n){for(var w=v._context.locale,b=0;b<2;b++){for(var c=v._context.locales,a=0;a<2;a++){var t=(c[w]||{}).dictionary;if(t){var o=t[n];if(o)return o}c=k.localeRegistry}var i=w.split("-")[0];if(i===w)break;w=i}return n}},24248:function(L,T,e){var k=e(20556).dfltConfig,v=e(41792),n=L.exports={};n.log=function(){var w;if(k.logging>1){var b=["LOG:"];for(w=0;w<arguments.length;w++)b.push(arguments[w]);console.trace.apply(console,b)}if(k.notifyOnLogging>1){var c=[];for(w=0;w<arguments.length;w++)c.push(arguments[w]);v(c.join("<br>"),"long")}},n.warn=function(){var w;if(k.logging>0){var b=["WARN:"];for(w=0;w<arguments.length;w++)b.push(arguments[w]);console.trace.apply(console,b)}if(k.notifyOnLogging>0){var c=[];for(w=0;w<arguments.length;w++)c.push(arguments[w]);v(c.join("<br>"),"stick")}},n.error=function(){var w;if(k.logging>0){var b=["ERROR:"];for(w=0;w<arguments.length;w++)b.push(arguments[w]);console.error.apply(console,b)}if(k.notifyOnLogging>0){var c=[];for(w=0;w<arguments.length;w++)c.push(arguments[w]);v(c.join("<br>"),"stick")}}},30988:function(L,T,e){var k=e(33428);L.exports=function(v,n,w){var b=v.selectAll("g."+w.replace(/\s/g,".")).data(n,function(a){return a[0].trace.uid});b.exit().remove(),b.enter().append("g").attr("class",w),b.order();var c=v.classed("rangeplot")?"nodeRangePlot3":"node3";return b.each(function(a){a[0][c]=k.select(this)}),b}},52248:function(L,T,e){var k=e(36524);T.init2dArray=function(v,n){for(var w=new Array(v),b=0;b<v;b++)w[b]=new Array(n);return w},T.transposeRagged=function(v){var n,w,b=0,c=v.length;for(n=0;n<c;n++)b=Math.max(b,v[n].length);var a=new Array(b);for(n=0;n<b;n++)for(a[n]=new Array(c),w=0;w<c;w++)a[n][w]=v[w][n];return a},T.dot=function(v,n){if(!v.length||!n.length||v.length!==n.length)return null;var w,b,c=v.length;if(v[0].length)for(w=new Array(c),b=0;b<c;b++)w[b]=T.dot(v[b],n);else if(n[0].length){var a=T.transposeRagged(n);for(w=new Array(a.length),b=0;b<a.length;b++)w[b]=T.dot(v,a[b])}else for(w=0,b=0;b<c;b++)w+=v[b]*n[b];return w},T.translationMatrix=function(v,n){return[[1,0,v],[0,1,n],[0,0,1]]},T.rotationMatrix=function(v){var n=v*Math.PI/180;return[[Math.cos(n),-Math.sin(n),0],[Math.sin(n),Math.cos(n),0],[0,0,1]]},T.rotationXYMatrix=function(v,n,w){return T.dot(T.dot(T.translationMatrix(n,w),T.rotationMatrix(v)),T.translationMatrix(-n,-w))},T.apply3DTransform=function(v){return function(){var n=arguments,w=arguments.length===1?n[0]:[n[0],n[1],n[2]||0];return T.dot(v,[w[0],w[1],w[2],1]).slice(0,3)}},T.apply2DTransform=function(v){return function(){var n=arguments;n.length===3&&(n=n[0]);var w=arguments.length===1?n[0]:[n[0],n[1]];return T.dot(v,[w[0],w[1],1]).slice(0,2)}},T.apply2DTransform2=function(v){var n=T.apply2DTransform(v);return function(w){return n(w.slice(0,2)).concat(n(w.slice(2,4)))}},T.convertCssMatrix=function(v){if(v){var n=v.length;if(n===16)return v;if(n===6)return[v[0],v[1],0,0,v[2],v[3],0,0,0,0,1,0,v[4],v[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},T.inverseTransformMatrix=function(v){var n=[];return k.invert(n,v),[[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]]]}},20435:function(L){L.exports={mod:function(T,e){var k=T%e;return k<0?k+e:k},modHalf:function(T,e){return Math.abs(T)>e/2?T-Math.round(T/e)*e:T}}},22296:function(L,T,e){var k=e(38248),v=e(38116).isArrayOrTypedArray;function n(i,s){return function(){var l,u,d,g,f,C=i;for(g=0;g<s.length-1;g++){if((l=s[g])===-1){for(u=!0,d=[],f=0;f<C.length;f++)d[f]=n(C[f],s.slice(g+1))(),d[f]!==d[0]&&(u=!1);return u?d[0]:d}if(typeof l=="number"&&!v(C)||typeof(C=C[l])!="object"||C===null)return}if(typeof C=="object"&&C!==null&&(d=C[s[g]])!==null)return d}}L.exports=function(i,s){if(k(s))s=String(s);else if(typeof s!="string"||s.substr(s.length-4)==="[-1]")throw"bad property string";var l,u,d,g,f=s.split(".");for(g=0;g<f.length;g++)if(String(f[g]).slice(0,2)==="__")throw"bad property string";for(g=0;g<f.length;){if(l=String(f[g]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(l[1])f[g]=l[1];else{if(g!==0)throw"bad property string";f.splice(0,1)}for(u=l[2].substr(1,l[2].length-2).split("]["),d=0;d<u.length;d++)g++,f.splice(g,0,Number(u[d]))}g++}return typeof i!="object"?function(C,y,m){return{set:function(){throw"bad container"},get:function(){},astr:y,parts:m,obj:C}}(i,s,f):{set:c(i,f,s),get:n(i,f),astr:s,parts:f,obj:i}};var w=/(^|\.)args\[/;function b(i,s){return i===void 0||i===null&&!s.match(w)}function c(i,s,l){return function(u){var d,g,f=i,C="",y=b(u,l);for(g=0;g<s.length-1;g++){if(typeof(d=s[g])=="number"&&!v(f))throw"array index but container is not an array";if(d===-1){if(y=!t(f,s.slice(g+1),u,l))break;return}if(!o(f,d,s[g+1],y))break;if(typeof(f=f[d])!="object"||f===null)throw"container is not an object";C=a(C,d)}if(y){if(g===s.length-1&&(delete f[s[g]],Array.isArray(f)&&+s[g]==f.length-1))for(;f.length&&f[f.length-1]===void 0;)f.pop()}else f[s[g]]=u}}function a(i,s){var l=s;return k(s)?l="["+s+"]":i&&(l="."+s),i+l}function t(i,s,l,u){var d,g=v(l),f=!0,C=l,y=u.replace("-1",0),m=!g&&b(l,y),x=s[0];for(d=0;d<i.length;d++)y=u.replace("-1",d),g&&(m=b(C=l[d%l.length],y)),m&&(f=!1),o(i,d,x,m)&&c(i[d],s,u.replace("-1",d))(C);return f}function o(i,s,l,u){if(i[s]===void 0){if(u)return!1;i[s]=typeof l=="number"?[]:{}}return!0}},16628:function(L){L.exports=function(){}},41792:function(L,T,e){var k=e(33428),v=e(38248),n=[];L.exports=function(w,b){if(n.indexOf(w)===-1){n.push(w);var c=1e3;v(b)?c=b:b==="long"&&(c=3e3);var a=k.select("body").selectAll(".plotly-notifier").data([0]);a.enter().append("div").classed("plotly-notifier",!0),a.selectAll(".notifier-note").data(n).enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(o){var i=k.select(this);i.append("button").classed("notifier-close",!0).html("&times;").on("click",function(){i.transition().call(t)});for(var s=i.append("p"),l=o.split(/<br\s*\/?>/g),u=0;u<l.length;u++)u&&s.append("br"),s.append("span").text(l[u]);b==="stick"?i.transition().duration(350).style("opacity",1):i.transition().duration(700).style("opacity",1).transition().delay(c).call(t)})}function t(o){o.duration(700).style("opacity",0).each("end",function(i){var s=n.indexOf(i);s!==-1&&n.splice(s,1),k.select(this).remove()})}}},72213:function(L,T,e){var k=e(93972),v="data-savedcursor";L.exports=function(n,w){var b=n.attr(v);if(w){if(!b){for(var c=(n.attr("class")||"").split(" "),a=0;a<c.length;a++){var t=c[a];t.indexOf("cursor-")===0&&n.attr(v,t.substr(7)).classed(t,!1)}n.attr(v)||n.attr(v,"!!")}k(n,w)}else b&&(n.attr(v,null),b==="!!"?k(n):k(n,b))}},92065:function(L,T,e){var k=e(52248).dot,v=e(39032).BADNUM,n=L.exports={};n.tester=function(w){var b,c=w.slice(),a=c[0][0],t=a,o=c[0][1],i=o;for(c[c.length-1][0]===c[0][0]&&c[c.length-1][1]===c[0][1]||c.push(c[0]),b=1;b<c.length;b++)a=Math.min(a,c[b][0]),t=Math.max(t,c[b][0]),o=Math.min(o,c[b][1]),i=Math.max(i,c[b][1]);var s,l=!1;c.length===5&&(c[0][0]===c[1][0]?c[2][0]===c[3][0]&&c[0][1]===c[3][1]&&c[1][1]===c[2][1]&&(l=!0,s=function(g){return g[0]===c[0][0]}):c[0][1]===c[1][1]&&c[2][1]===c[3][1]&&c[0][0]===c[3][0]&&c[1][0]===c[2][0]&&(l=!0,s=function(g){return g[1]===c[0][1]}));var u=!0,d=c[0];for(b=1;b<c.length;b++)if(d[0]!==c[b][0]||d[1]!==c[b][1]){u=!1;break}return{xmin:a,xmax:t,ymin:o,ymax:i,pts:c,contains:l?function(g,f){var C=g[0],y=g[1];return!(C===v||C<a||C>t||y===v||y<o||y>i||f&&s(g))}:function(g,f){var C=g[0],y=g[1];if(C===v||C<a||C>t||y===v||y<o||y>i)return!1;var m,x,_,S,O,h=c.length,M=c[0][0],N=c[0][1],P=0;for(m=1;m<h;m++)if(x=M,_=N,M=c[m][0],N=c[m][1],!(C<(S=Math.min(x,M))||C>Math.max(x,M)||y>Math.max(_,N)))if(y<Math.min(_,N))C!==S&&P++;else{if(y===(O=M===x?y:_+(C-x)*(N-_)/(M-x)))return m!==1||!f;y<=O&&C!==S&&P++}return P%2==1},isRect:l,degenerate:u}},n.isSegmentBent=function(w,b,c,a){var t,o,i,s=w[b],l=[w[c][0]-s[0],w[c][1]-s[1]],u=k(l,l),d=Math.sqrt(u),g=[-l[1]/d,l[0]/d];for(t=b+1;t<c;t++)if(o=[w[t][0]-s[0],w[t][1]-s[1]],(i=k(o,l))<0||i>u||Math.abs(k(o,g))>a)return!0;return!1},n.filter=function(w,b){var c=[w[0]],a=0,t=0;function o(i){w.push(i);var s=c.length,l=a;c.splice(t+1);for(var u=l+1;u<w.length;u++)(u===w.length-1||n.isSegmentBent(w,l,u+1,b))&&(c.push(w[u]),c.length<s-2&&(a=u,t=c.length-1),l=u)}return w.length>1&&o(w.pop()),{addPt:o,raw:w,filtered:c}}},5048:function(L,T,e){var k=e(16576),v=e(28624);L.exports=function(n,w,b){var c=n._fullLayout,a=!0;return c._glcanvas.each(function(t){if(t.regl)t.regl.preloadCachedCode(b);else if(!t.pick||c._has("parcoords")){try{t.regl=v({canvas:this,attributes:{antialias:!t.pick,preserveDrawingBuffer:!0},pixelRatio:n._context.plotGlPixelRatio||e.g.devicePixelRatio,extensions:w||[],cachedCode:b||{}})}catch{a=!1}t.regl||(a=!1),a&&this.addEventListener("webglcontextlost",function(o){n&&n.emit&&n.emit("plotly_webglcontextlost",{event:o,layer:t.key})},!1)}}),a||k({container:c._glcontainer.node()}),a}},34296:function(L,T,e){var k=e(38248),v=e(25928);L.exports=function(n){var w;if(typeof(w=n&&n.hasOwnProperty("userAgent")?n.userAgent:function(){var s;return typeof navigator<"u"&&(s=navigator.userAgent),s&&s.headers&&typeof s.headers["user-agent"]=="string"&&(s=s.headers["user-agent"]),s}())!="string")return!0;var b=v({ua:{headers:{"user-agent":w}},tablet:!0,featureDetect:!1});if(!b){for(var c=w.split(" "),a=1;a<c.length;a++)if(c[a].indexOf("Safari")!==-1)for(var t=a-1;t>-1;t--){var o=c[t];if(o.substr(0,8)==="Version/"){var i=o.substr(8).split(".")[0];if(k(i)&&(i=+i),i>=13)return!0}}}return b}},52416:function(L){L.exports=function(T,e){if(e instanceof RegExp){for(var k=e.toString(),v=0;v<T.length;v++)if(T[v]instanceof RegExp&&T[v].toString()===k)return T;T.push(e)}else!e&&e!==0||T.indexOf(e)!==-1||T.push(e);return T}},94552:function(L,T,e){var k=e(3400),v=e(20556).dfltConfig,n={add:function(w,b,c,a,t){var o,i;w.undoQueue=w.undoQueue||{index:0,queue:[],sequence:!1},i=w.undoQueue.index,w.autoplay?w.undoQueue.inSequence||(w.autoplay=!1):(!w.undoQueue.sequence||w.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},w.undoQueue.queue.splice(i,w.undoQueue.queue.length-i,o),w.undoQueue.index+=1):o=w.undoQueue.queue[i-1],w.undoQueue.beginSequence=!1,o&&(o.undo.calls.unshift(b),o.undo.args.unshift(c),o.redo.calls.push(a),o.redo.args.push(t)),w.undoQueue.queue.length>v.queueLength&&(w.undoQueue.queue.shift(),w.undoQueue.index--))},startSequence:function(w){w.undoQueue=w.undoQueue||{index:0,queue:[],sequence:!1},w.undoQueue.sequence=!0,w.undoQueue.beginSequence=!0},stopSequence:function(w){w.undoQueue=w.undoQueue||{index:0,queue:[],sequence:!1},w.undoQueue.sequence=!1,w.undoQueue.beginSequence=!1},undo:function(w){var b,c;if(!(w.undoQueue===void 0||isNaN(w.undoQueue.index)||w.undoQueue.index<=0)){for(w.undoQueue.index--,b=w.undoQueue.queue[w.undoQueue.index],w.undoQueue.inSequence=!0,c=0;c<b.undo.calls.length;c++)n.plotDo(w,b.undo.calls[c],b.undo.args[c]);w.undoQueue.inSequence=!1,w.autoplay=!1}},redo:function(w){var b,c;if(!(w.undoQueue===void 0||isNaN(w.undoQueue.index)||w.undoQueue.index>=w.undoQueue.queue.length)){for(b=w.undoQueue.queue[w.undoQueue.index],w.undoQueue.inSequence=!0,c=0;c<b.redo.calls.length;c++)n.plotDo(w,b.redo.calls[c],b.redo.args[c]);w.undoQueue.inSequence=!1,w.autoplay=!1,w.undoQueue.index++}},plotDo:function(w,b,c){w.autoplay=!0,c=function(a,t){for(var o,i=[],s=0;s<t.length;s++)o=t[s],i[s]=o===a?o:typeof o=="object"?Array.isArray(o)?k.extendDeep([],o):k.extendDeepAll({},o):o;return i}(w,c),b.apply(null,c)}};L.exports=n},53756:function(L,T){T.counter=function(e,k,v,n){var w=(k||"")+(v?"":"$"),b=n===!1?"":"^";return e==="xy"?new RegExp(b+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+w):new RegExp(b+e+"([2-9]|[1-9][0-9]+)?"+w)}},23193:function(L){var T=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,e=/^[^\.\[\]]+$/;L.exports=function(k,v){for(;v;){var n=k.match(T);if(n)k=n[1];else{if(!k.match(e))throw new Error("bad relativeAttr call:"+[k,v]);k=""}if(v.charAt(0)!=="^")break;v=v.slice(1)}return k&&v.charAt(0)!=="["?k+"."+v:k+v}},51528:function(L,T,e){var k=e(38116).isArrayOrTypedArray,v=e(63620);L.exports=function n(w,b){for(var c in b){var a=b[c],t=w[c];if(t!==a)if(c.charAt(0)==="_"||typeof a=="function"){if(c in w)continue;w[c]=a}else if(k(a)&&k(t)&&v(a[0])){if(c==="customdata"||c==="ids")continue;for(var o=Math.min(a.length,t.length),i=0;i<o;i++)t[i]!==a[i]&&v(a[i])&&v(t[i])&&n(t[i],a[i])}else v(a)&&v(t)&&(n(t,a),Object.keys(t).length||delete w[c])}}},14952:function(L,T,e){var k=e(38248),v=e(24248),n=e(35536),w=e(39032).BADNUM,b=1e-9;function c(i,s){return i<s}function a(i,s){return i<=s}function t(i,s){return i>s}function o(i,s){return i>=s}T.findBin=function(i,s,l){if(k(s.start))return l?Math.ceil((i-s.start)/s.size-b)-1:Math.floor((i-s.start)/s.size+b);var u,d,g=0,f=s.length,C=0,y=f>1?(s[f-1]-s[0])/(f-1):1;for(d=y>=0?l?c:a:l?o:t,i+=y*b*(l?-1:1)*(y>=0?1:-1);g<f&&C++<100;)d(s[u=Math.floor((g+f)/2)],i)?g=u+1:f=u;return C>90&&v.log("Long binary search..."),g-1},T.sorterAsc=function(i,s){return i-s},T.sorterDes=function(i,s){return s-i},T.distinctVals=function(i){var s,l=i.slice();for(l.sort(T.sorterAsc),s=l.length-1;s>-1&&l[s]===w;s--);for(var u,d=l[s]-l[0]||1,g=d/(s||1)/1e4,f=[],C=0;C<=s;C++){var y=l[C],m=y-u;u===void 0?(f.push(y),u=y):m>g&&(d=Math.min(d,m),f.push(y),u=y)}return{vals:f,minDiff:d}},T.roundUp=function(i,s,l){for(var u,d=0,g=s.length-1,f=0,C=l?0:1,y=l?1:0,m=l?Math.ceil:Math.floor;d<g&&f++<100;)s[u=m((d+g)/2)]<=i?d=u+C:g=u-y;return s[d]},T.sort=function(i,s){for(var l=0,u=0,d=1;d<i.length;d++){var g=s(i[d],i[d-1]);if(g<0?l=1:g>0&&(u=1),l&&u)return i.sort(s)}return u?i:i.reverse()},T.findIndexOfMin=function(i,s){s=s||n;for(var l,u=1/0,d=0;d<i.length;d++){var g=s(i[d]);g<u&&(u=g,l=d)}return l}},93972:function(L){L.exports=function(T,e){(T.attr("class")||"").split(" ").forEach(function(k){k.indexOf("cursor-")===0&&T.classed(k,!1)}),e&&T.classed("cursor-"+e,!0)}},16576:function(L,T,e){var k=e(76308),v=function(){};L.exports=function(n){for(var w in n)typeof n[w]=="function"&&(n[w]=v);n.destroy=function(){n.container.parentNode.removeChild(n.container)};var b=document.createElement("div");b.className="no-webgl",b.style.cursor="pointer",b.style.fontSize="24px",b.style.color=k.defaults[0],b.style.position="absolute",b.style.left=b.style.top="0px",b.style.width=b.style.height="100%",b.style["background-color"]=k.lightLine,b.style["z-index"]=30;var c=document.createElement("p");return c.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",c.style.position="relative",c.style.top="50%",c.style.left="50%",c.style.height="30%",c.style.width="50%",c.style.margin="-15% 0 0 -25%",b.appendChild(c),n.container.appendChild(b),n.container.style.background="#FFFFFF",n.container.onclick=function(){window.open("https://get.webgl.org")},!1}},95376:function(L){L.exports=function(T){return Object.keys(T).sort()}},63084:function(L,T,e){var k=e(38248),v=e(38116).isArrayOrTypedArray;T.aggNums=function(n,w,b,c){var a,t;if((!c||c>b.length)&&(c=b.length),k(w)||(w=!1),v(b[0])){for(t=new Array(c),a=0;a<c;a++)t[a]=T.aggNums(n,w,b[a]);b=t}for(a=0;a<c;a++)k(w)?k(b[a])&&(w=n(+w,+b[a])):w=b[a];return w},T.len=function(n){return T.aggNums(function(w){return w+1},0,n)},T.mean=function(n,w){return w||(w=T.len(n)),T.aggNums(function(b,c){return b+c},0,n)/w},T.midRange=function(n){if(n!==void 0&&n.length!==0)return(T.aggNums(Math.max,null,n)+T.aggNums(Math.min,null,n))/2},T.variance=function(n,w,b){return w||(w=T.len(n)),k(b)||(b=T.mean(n,w)),T.aggNums(function(c,a){return c+Math.pow(a-b,2)},0,n)/w},T.stdev=function(n,w,b){return Math.sqrt(T.variance(n,w,b))},T.median=function(n){var w=n.slice().sort();return T.interp(w,.5)},T.interp=function(n,w){if(!k(w))throw"n should be a finite number";if((w=w*n.length-.5)<0)return n[0];if(w>n.length-1)return n[n.length-1];var b=w%1;return b*n[Math.ceil(w)]+(1-b)*n[Math.floor(w)]}},43080:function(L,T,e){var k=e(72160);L.exports=function(v){return v?k(v):[0,0,0,1]}},9188:function(L,T,e){var k=e(2264),v=e(43616),n=e(3400),w=null;L.exports=function(){if(w!==null)return w;w=!1;var b=n.isIE()||n.isSafari()||n.isIOS();if(window.navigator.userAgent&&!b){var c=Array.from(k.CSS_DECLARATIONS).reverse(),a=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof a=="function")w=c.some(function(i){return a.apply(null,i)});else{var t=v.tester.append("image").attr("style",k.STYLE),o=window.getComputedStyle(t.node()).imageRendering;w=c.some(function(i){var s=i[1];return o===s||o===s.toLowerCase()}),t.remove()}}return w}},72736:function(L,T,e){var k=e(33428),v=e(3400),n=v.strTranslate,w=e(9616),b=e(84284).LINE_SPACING,c=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;T.convertToTspans=function(j,X,F){var W=j.text(),Y=!j.attr("data-notex")&&X&&X._context.typesetMath&&typeof MathJax<"u"&&W.match(c),B=k.select(j.node().parentNode);if(!B.empty()){var G=j.attr("class")?j.attr("class").split(" ")[0]:"text";return G+="-math",B.selectAll("svg."+G).remove(),B.selectAll("g."+G+"-group").remove(),j.style("display",null).attr({"data-unformatted":W,"data-math":"N"}),Y?(X&&X._promises||[]).push(new Promise(function(se){j.style("display","none");var re=parseInt(j.node().style.fontSize,10),ne={fontSize:re};(function($,te,ae){var ce,ue,de,me,be=parseInt((MathJax.version||"").split(".")[0]);if(be===2||be===3){var _e=function(){var Ce="math-output-"+v.randstr({},64),Se=(me=k.select("body").append("div").attr({id:Ce}).style({visibility:"hidden",position:"absolute","font-size":te.fontSize+"px"}).text($.replace(a,"\\lt ").replace(t,"\\gt "))).node();return be===2?MathJax.Hub.Typeset(Se):MathJax.typeset([Se])},we=function(){var Ce=me.select(be===2?".MathJax_SVG":".MathJax"),Se=!Ce.empty()&&me.select("svg").node();if(Se){var Pe,Ne=Se.getBoundingClientRect();Pe=be===2?k.select("body").select("#MathJax_SVG_glyphs"):Ce.select("defs"),ae(Ce,Pe,Ne)}else v.log("There was an error in the tex syntax.",$),ae();me.remove()};be===2?MathJax.Hub.Queue(function(){return ue=v.extendDeepAll({},MathJax.Hub.config),de=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:o},displayAlign:"left"})},function(){if((ce=MathJax.Hub.config.menuSettings.renderer)!=="SVG")return MathJax.Hub.setRenderer("SVG")},_e,we,function(){if(ce!=="SVG")return MathJax.Hub.setRenderer(ce)},function(){return de!==void 0&&(MathJax.Hub.processSectionDelay=de),MathJax.Hub.Config(ue)}):be===3&&(ue=v.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=o,(ce=MathJax.config.startup.output)!=="svg"&&(MathJax.config.startup.output="svg"),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){_e(),we(),ce!=="svg"&&(MathJax.config.startup.output=ce),MathJax.config=ue}))}else v.warn("No MathJax version:",MathJax.version)})(Y[2],ne,function($,te,ae){B.selectAll("svg."+G).remove(),B.selectAll("g."+G+"-group").remove();var ce=$&&$.select("svg");if(!ce||!ce.node())return J(),void se();var ue=B.append("g").classed(G+"-group",!0).attr({"pointer-events":"none","data-unformatted":W,"data-math":"Y"});ue.node().appendChild(ce.node()),te&&te.node()&&ce.node().insertBefore(te.node().cloneNode(!0),ce.node().firstChild);var de=ae.width,me=ae.height;ce.attr({class:G,height:me,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var be=j.node().style.fill||"black",_e=ce.select("g");_e.attr({fill:be,stroke:be});var we=_e.node().getBoundingClientRect(),Ce=we.width,Se=we.height;(Ce>de||Se>me)&&(ce.style("overflow","hidden"),Ce=(we=ce.node().getBoundingClientRect()).width,Se=we.height);var Pe=+j.attr("x"),Ne=+j.attr("y"),Oe=-(re||j.node().getBoundingClientRect().height)/4;if(G[0]==="y")ue.attr({transform:"rotate("+[-90,Pe,Ne]+")"+n(-Ce/2,Oe-Se/2)});else if(G[0]==="l")Ne=Oe-Se/2;else if(G[0]==="a"&&G.indexOf("atitle")!==0)Pe=0,Ne=Oe;else{var pe=j.attr("text-anchor");Pe-=Ce*(pe==="middle"?.5:pe==="end"?1:0),Ne=Ne+Oe-Se/2}ce.attr({x:Pe,y:Ne}),F&&F.call(j,ue),se(ue)})})):J(),j}function J(){B.empty()||(G=j.attr("class")+"-math",B.select("svg."+G).remove()),j.text("").style("white-space","pre");var se=function(re,ne){ne=ne.replace(g," ");var $,te=!1,ae=[],ce=-1;function ue(){ce++;var Le=document.createElementNS(w.svg,"tspan");k.select(Le).attr({class:"line",dy:ce*b+"em"}),re.appendChild(Le),$=Le;var Ue=ae;if(ae=[{node:Le}],Ue.length>1)for(var Re=1;Re<Ue.length;Re++)de(Ue[Re])}function de(Le){var Ue,Re=Le.type,Fe={};if(Re==="a"){Ue="a";var ve=Le.target,ke=Le.href,Ee=Le.popup;ke&&(Fe={"xlink:xlink:show":ve==="_blank"||ve.charAt(0)!=="_"?"new":"replace",target:ve,"xlink:xlink:href":ke},Ee&&(Fe.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+Ee+'");return false;'))}else Ue="tspan";Le.style&&(Fe.style=Le.style);var je=document.createElementNS(w.svg,Ue);if(Re==="sup"||Re==="sub"){me($,u),$.appendChild(je);var Be=document.createElementNS(w.svg,"tspan");me(Be,u),k.select(Be).attr("dy",l[Re]),Fe.dy=s[Re],$.appendChild(je),$.appendChild(Be)}else $.appendChild(je);k.select(je).attr(Fe),$=Le.node=je,ae.push(Le)}function me(Le,Ue){Le.appendChild(document.createTextNode(Ue))}function be(Le){if(ae.length!==1){var Ue=ae.pop();Le!==Ue.type&&v.log("Start tag <"+Ue.type+"> doesnt match end tag <"+Le+">. Pretending it did match.",ne),$=ae[ae.length-1].node}else v.log("Ignoring unexpected end tag </"+Le+">.",ne)}y.test(ne)?ue():($=re,ae=[{node:re}]);for(var _e=ne.split(f),we=0;we<_e.length;we++){var Ce=_e[we],Se=Ce.match(C),Pe=Se&&Se[2].toLowerCase(),Ne=i[Pe];if(Pe==="br")ue();else if(Ne===void 0)me($,P(Ce));else if(Se[1])be(Pe);else{var Oe=Se[4],pe={type:Pe},fe=O(Oe,m);if(fe?(fe=fe.replace(h,"$1 fill:"),Ne&&(fe+=";"+Ne)):Ne&&(fe=Ne),fe&&(pe.style=fe),Pe==="a"){te=!0;var xe=O(Oe,x);if(xe){var ze=R(xe);ze&&(pe.href=ze,pe.target=O(Oe,_)||"_blank",pe.popup=O(Oe,S))}}de(pe)}}return te}(j.node(),W);se&&j.style("pointer-events","all"),T.positionText(j),F&&F.call(j)}};var a=/(<|&lt;|&#60;)/g,t=/(>|&gt;|&#62;)/g,o=[["$","$"],["\\(","\\)"]],i={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},s={sub:"0.3em",sup:"-0.6em"},l={sub:"-0.21em",sup:"0.42em"},u="​",d=["http:","https:","mailto:","",void 0,":"],g=T.NEWLINES=/(\r\n?|\n)/g,f=/(<[^<>]*>)/,C=/<(\/?)([^ >]*)(\s+(.*))?>/i,y=/<br(\s+.*)?>/i;T.BR_TAG_ALL=/<br(\s+.*)?>/gi;var m=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,x=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,_=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,S=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function O(j,X){if(!j)return null;var F=j.match(X),W=F&&(F[3]||F[4]);return W&&P(W)}var h=/(^|;)\s*color:/;T.plainText=function(j,X){for(var F=(X=X||{}).len!==void 0&&X.len!==-1?X.len:1/0,W=X.allowedTags!==void 0?X.allowedTags:["br"],Y=j.split(f),B=[],G="",J=0,se=0;se<Y.length;se++){var re=Y[se],ne=re.match(C),$=ne&&ne[2].toLowerCase();if($)W.indexOf($)!==-1&&(B.push(re),G=$);else{var te=re.length;if(J+te<F)B.push(re),J+=te;else if(J<F){var ae=F-J;G&&(G!=="br"||ae<=3||te<=3)&&B.pop(),F>3?B.push(re.substr(0,ae-3)+"..."):B.push(re.substr(0,ae));break}G=""}}return B.join("")};var M={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},N=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function P(j){return j.replace(N,function(X,F){return(F.charAt(0)==="#"?function(W){if(!(W>1114111)){var Y=String.fromCodePoint;if(Y)return Y(W);var B=String.fromCharCode;return W<=65535?B(W):B(55232+(W>>10),W%1024+56320)}}(F.charAt(1)==="x"?parseInt(F.substr(2),16):parseInt(F.substr(1),10)):M[F])||X})}function R(j){var X=encodeURI(decodeURI(j)),F=document.createElement("a"),W=document.createElement("a");F.href=j,W.href=X;var Y=F.protocol,B=W.protocol;return d.indexOf(Y)!==-1&&d.indexOf(B)!==-1?X:""}function A(j,X,F){var W,Y,B,G=F.horizontalAlign,J=F.verticalAlign||"top",se=j.node().getBoundingClientRect(),re=X.node().getBoundingClientRect();return Y=J==="bottom"?function(){return se.bottom-W.height}:J==="middle"?function(){return se.top+(se.height-W.height)/2}:function(){return se.top},B=G==="right"?function(){return se.right-W.width}:G==="center"?function(){return se.left+(se.width-W.width)/2}:function(){return se.left},function(){W=this.node().getBoundingClientRect();var ne=B()-re.left,$=Y()-re.top,te=F.gd||{};if(F.gd){te._fullLayout._calcInverseTransform(te);var ae=v.apply3DTransform(te._fullLayout._invTransform)(ne,$);ne=ae[0],$=ae[1]}return this.style({top:$+"px",left:ne+"px","z-index":1e3}),this}}T.convertEntities=P,T.sanitizeHTML=function(j){j=j.replace(g," ");for(var X=document.createElement("p"),F=X,W=[],Y=j.split(f),B=0;B<Y.length;B++){var G=Y[B],J=G.match(C),se=J&&J[2].toLowerCase();if(se in i)if(J[1])W.length&&(F=W.pop());else{var re=J[4],ne=O(re,m),$=ne?{style:ne}:{};if(se==="a"){var te=O(re,x);if(te){var ae=R(te);if(ae){$.href=ae;var ce=O(re,_);ce&&($.target=ce)}}}var ue=document.createElement(se);F.appendChild(ue),k.select(ue).attr($),F=ue,W.push(ue)}else F.appendChild(document.createTextNode(P(G)))}return X.innerHTML},T.lineCount=function(j){return j.selectAll("tspan.line").size()||1},T.positionText=function(j,X,F){return j.each(function(){var W=k.select(this);function Y(J,se){return se===void 0?(se=W.attr(J))===null&&(W.attr(J,0),se=0):W.attr(J,se),se}var B=Y("x",X),G=Y("y",F);this.nodeName==="text"&&W.selectAll("tspan.line").attr({x:B,y:G})})};var q="1px ";T.makeTextShadow=function(j){return q+q+q+j+", -"+q+"-"+q+q+j+", "+q+"-"+q+q+j+", -"+q+q+q+j},T.makeEditable=function(j,X){var F=X.gd,W=X.delegate,Y=k.dispatch("edit","input","cancel"),B=W||j;if(j.style({"pointer-events":W?"none":"all"}),j.size()!==1)throw new Error("boo");function G(){var se,re,ne,$,te;se=k.select(F).select(".svg-container"),re=se.append("div"),ne=j.node().style,$=parseFloat(ne.fontSize||12),(te=X.text)===void 0&&(te=j.attr("data-unformatted")),re.classed("plugin-editable editable",!0).style({position:"absolute","font-family":ne.fontFamily||"Arial","font-size":$,color:X.fill||ne.fill||"black",opacity:1,"background-color":X.background||"transparent",outline:"#ffffff33 1px solid",margin:[-$/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(te).call(A(j,se,X)).on("blur",function(){F._editing=!1,j.text(this.textContent).style({opacity:1});var ue,de=k.select(this).attr("class");(ue=de?"."+de.split(" ")[0]+"-math-group":"[class*=-math-group]")&&k.select(j.node().parentNode).select(ue).style({opacity:0});var me=this.textContent;k.select(this).transition().duration(0).remove(),k.select(document).on("mouseup",null),Y.edit.call(j,me)}).on("focus",function(){var ue=this;F._editing=!0,k.select(document).on("mouseup",function(){if(k.event.target===ue)return!1;document.activeElement===re.node()&&re.node().blur()})}).on("keyup",function(){k.event.which===27?(F._editing=!1,j.style({opacity:1}),k.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),Y.cancel.call(j,this.textContent)):(Y.input.call(j,this.textContent),k.select(this).call(A(j,se,X)))}).on("keydown",function(){k.event.which===13&&this.blur()}).call(J),j.style({opacity:0});var ae,ce=B.attr("class");(ae=ce?"."+ce.split(" ")[0]+"-math-group":"[class*=-math-group]")&&k.select(j.node().parentNode).select(ae).style({opacity:0})}function J(se){var re=se.node(),ne=document.createRange();ne.selectNodeContents(re);var $=window.getSelection();$.removeAllRanges(),$.addRange(ne),re.focus()}return X.immediate?G():B.on("click",G),k.rebind(j,Y,"on")}},91200:function(L,T){var e={};function k(v){v&&v.timer!==null&&(clearTimeout(v.timer),v.timer=null)}T.throttle=function(v,n,w){var b=e[v],c=Date.now();if(!b){for(var a in e)e[a].ts<c-6e4&&delete e[a];b=e[v]={ts:0,timer:null}}function t(){w(),b.ts=Date.now(),b.onDone&&(b.onDone(),b.onDone=null)}k(b),c>b.ts+n?t():b.timer=setTimeout(function(){t(),b.timer=null},n)},T.done=function(v){var n=e[v];return n&&n.timer?new Promise(function(w){var b=n.onDone;n.onDone=function(){b&&b(),w(),n.onDone=null}}):Promise.resolve()},T.clear=function(v){if(v)k(e[v]),delete e[v];else for(var n in e)T.clear(n)}},36896:function(L,T,e){var k=e(38248);L.exports=function(v,n){if(v>0)return Math.log(v)/Math.LN10;var w=Math.log(Math.min(n[0],n[1]))/Math.LN10;return k(w)||(w=Math.log(Math.max(n[0],n[1]))/Math.LN10-6),w}},59972:function(L,T,e){var k=L.exports={},v=e(79552).locationmodeToLayer,n=e(55712).NO;k.getTopojsonName=function(w){return[w.scope.replace(/ /g,"-"),"_",w.resolution.toString(),"m"].join("")},k.getTopojsonPath=function(w,b){return w+b+".json"},k.getTopojsonFeatures=function(w,b){var c=v[w.locationmode],a=b.objects[c];return n(b,a).features}},11680:function(L){L.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},6580:function(L){L.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"}}},69820:function(L,T,e){var k=e(24040);L.exports=function(v){for(var n,w,b=k.layoutArrayContainers,c=k.layoutArrayRegexes,a=v.split("[")[0],t=0;t<c.length;t++)if((w=v.match(c[t]))&&w.index===0){n=w[0];break}if(n||(n=b[b.indexOf(a)]),!n)return!1;var o=v.substr(n.length);return o?!!(w=o.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&&{array:n,index:Number(w[1]),property:w[3]||""}:{array:n,index:"",property:""}}},67824:function(L,T,e){var k=e(92880).extendFlat,v=e(63620),n={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},w={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},b=n.flags.slice().concat(["fullReplot"]),c=w.flags.slice().concat("layoutReplot");function a(i){for(var s={},l=0;l<i.length;l++)s[i[l]]=!1;return s}function t(i,s,l){var u=k({},i);for(var d in u){var g=u[d];v(g)&&(u[d]=o(g,s,0,d))}return l==="from-root"&&(u.editType=s),u}function o(i,s,l,u){if(i.valType){var d=k({},i);if(d.editType=s,Array.isArray(i.items)){d.items=new Array(i.items.length);for(var g=0;g<i.items.length;g++)d.items[g]=o(i.items[g],s)}return d}return t(i,s,u.charAt(0)==="_"?"nested":"from-root")}L.exports={traces:n,layout:w,traceFlags:function(){return a(b)},layoutFlags:function(){return a(c)},update:function(i,s){var l=s.editType;if(l&&l!=="none")for(var u=l.split("+"),d=0;d<u.length;d++)i[u[d]]=!0},overrideAll:t}},93404:function(L,T,e){var k=e(38248),v=e(61784),n=e(24040),w=e(3400),b=e(7316),c=e(79811),a=e(76308),t=c.cleanId,o=c.getFromTrace,i=n.traceIs;function s(x,_){var S=x[_],O=_.charAt(0);S&&S!=="paper"&&(x[_]=t(S,O,!0))}function l(x){function _(S,O){var h=x[S],M=x.title&&x.title[O];h&&!M&&(x.title||(x.title={}),x.title[O]=x[S],delete x[S])}x&&(typeof x.title!="string"&&typeof x.title!="number"||(x.title={text:x.title}),_("titlefont","font"),_("titleposition","position"),_("titleside","side"),_("titleoffset","offset"))}function u(x){if(!w.isPlainObject(x))return!1;var _=x.name;return delete x.name,delete x.showlegend,(typeof _=="string"||typeof _=="number")&&String(_)}function d(x,_,S,O){if(S&&!O)return x;if(O&&!S||!x.trim())return _;if(!_.trim())return x;var h,M=Math.min(x.length,_.length);for(h=0;h<M&&x.charAt(h)===_.charAt(h);h++);return x.substr(0,h).trim()}function g(x){var _="middle",S="center";return typeof x=="string"&&(x.indexOf("top")!==-1?_="top":x.indexOf("bottom")!==-1&&(_="bottom"),x.indexOf("left")!==-1?S="left":x.indexOf("right")!==-1&&(S="right")),_+" "+S}function f(x,_){return _ in x&&typeof x[_]=="object"&&Object.keys(x[_]).length===0}T.clearPromiseQueue=function(x){Array.isArray(x._promises)&&x._promises.length>0&&w.log("Clearing previous rejected promises from queue."),x._promises=[]},T.cleanLayout=function(x){var _,S;x||(x={}),x.xaxis1&&(x.xaxis||(x.xaxis=x.xaxis1),delete x.xaxis1),x.yaxis1&&(x.yaxis||(x.yaxis=x.yaxis1),delete x.yaxis1),x.scene1&&(x.scene||(x.scene=x.scene1),delete x.scene1);var O=(b.subplotsRegistry.cartesian||{}).attrRegex,h=(b.subplotsRegistry.polar||{}).attrRegex,M=(b.subplotsRegistry.ternary||{}).attrRegex,N=(b.subplotsRegistry.gl3d||{}).attrRegex,P=Object.keys(x);for(_=0;_<P.length;_++){var R=P[_];if(O&&O.test(R)){var A=x[R];A.anchor&&A.anchor!=="free"&&(A.anchor=t(A.anchor)),A.overlaying&&(A.overlaying=t(A.overlaying)),A.type||(A.isdate?A.type="date":A.islog?A.type="log":A.isdate===!1&&A.islog===!1&&(A.type="linear")),A.autorange!=="withzero"&&A.autorange!=="tozero"||(A.autorange=!0,A.rangemode="tozero"),A.insiderange&&delete A.range,delete A.islog,delete A.isdate,delete A.categories,f(A,"domain")&&delete A.domain,A.autotick!==void 0&&(A.tickmode===void 0&&(A.tickmode=A.autotick?"auto":"linear"),delete A.autotick),l(A)}else if(h&&h.test(R))l(x[R].radialaxis);else if(M&&M.test(R)){var q=x[R];l(q.aaxis),l(q.baxis),l(q.caxis)}else if(N&&N.test(R)){var j=x[R],X=j.cameraposition;if(Array.isArray(X)&&X[0].length===4){var F=X[0],W=X[1],Y=X[2],B=v([],F),G=[];for(S=0;S<3;++S)G[S]=W[S]+Y*B[2+4*S];j.camera={eye:{x:G[0],y:G[1],z:G[2]},center:{x:W[0],y:W[1],z:W[2]},up:{x:0,y:0,z:1}},delete j.cameraposition}l(j.xaxis),l(j.yaxis),l(j.zaxis)}}var J=Array.isArray(x.annotations)?x.annotations.length:0;for(_=0;_<J;_++){var se=x.annotations[_];w.isPlainObject(se)&&(se.ref&&(se.ref==="paper"?(se.xref="paper",se.yref="paper"):se.ref==="data"&&(se.xref="x",se.yref="y"),delete se.ref),s(se,"xref"),s(se,"yref"))}var re=Array.isArray(x.shapes)?x.shapes.length:0;for(_=0;_<re;_++){var ne=x.shapes[_];w.isPlainObject(ne)&&(s(ne,"xref"),s(ne,"yref"))}var $=Array.isArray(x.images)?x.images.length:0;for(_=0;_<$;_++){var te=x.images[_];w.isPlainObject(te)&&(s(te,"xref"),s(te,"yref"))}var ae=x.legend;return ae&&(ae.x>3?(ae.x=1.02,ae.xanchor="left"):ae.x<-2&&(ae.x=-.02,ae.xanchor="right"),ae.y>3?(ae.y=1.02,ae.yanchor="bottom"):ae.y<-2&&(ae.y=-.02,ae.yanchor="top")),l(x),x.dragmode==="rotate"&&(x.dragmode="orbit"),a.clean(x),x.template&&x.template.layout&&T.cleanLayout(x.template.layout),x},T.cleanData=function(x){for(var _=0;_<x.length;_++){var S,O=x[_];if(O.type==="histogramy"&&"xbins"in O&&!("ybins"in O)&&(O.ybins=O.xbins,delete O.xbins),O.error_y&&"opacity"in O.error_y){var h=a.defaults,M=O.error_y.color||(i(O,"bar")?a.defaultLine:h[_%h.length]);O.error_y.color=a.addOpacity(a.rgb(M),a.opacity(M)*O.error_y.opacity),delete O.error_y.opacity}if("bardir"in O&&(O.bardir!=="h"||!i(O,"bar")&&O.type.substr(0,9)!=="histogram"||(O.orientation="h",T.swapXYData(O)),delete O.bardir),O.type==="histogramy"&&T.swapXYData(O),O.type!=="histogramx"&&O.type!=="histogramy"||(O.type="histogram"),"scl"in O&&!("colorscale"in O)&&(O.colorscale=O.scl,delete O.scl),"reversescl"in O&&!("reversescale"in O)&&(O.reversescale=O.reversescl,delete O.reversescl),O.xaxis&&(O.xaxis=t(O.xaxis,"x")),O.yaxis&&(O.yaxis=t(O.yaxis,"y")),i(O,"gl3d")&&O.scene&&(O.scene=b.subplotsRegistry.gl3d.cleanId(O.scene)),!i(O,"pie-like")&&!i(O,"bar-like"))if(Array.isArray(O.textposition))for(S=0;S<O.textposition.length;S++)O.textposition[S]=g(O.textposition[S]);else O.textposition&&(O.textposition=g(O.textposition));var N=n.getModule(O);if(N&&N.colorbar){var P=N.colorbar.container,R=P?O[P]:O;R&&R.colorscale&&(R.colorscale==="YIGnBu"&&(R.colorscale="YlGnBu"),R.colorscale==="YIOrRd"&&(R.colorscale="YlOrRd"))}if(O.type==="surface"&&w.isPlainObject(O.contours)){var A=["x","y","z"];for(S=0;S<A.length;S++){var q=O.contours[A[S]];w.isPlainObject(q)&&(q.highlightColor&&(q.highlightcolor=q.highlightColor,delete q.highlightColor),q.highlightWidth&&(q.highlightwidth=q.highlightWidth,delete q.highlightWidth))}}if(O.type==="candlestick"||O.type==="ohlc"){var j=(O.increasing||{}).showlegend!==!1,X=(O.decreasing||{}).showlegend!==!1,F=u(O.increasing),W=u(O.decreasing);if(F!==!1&&W!==!1){var Y=d(F,W,j,X);Y&&(O.name=Y)}else!F&&!W||O.name||(O.name=F||W)}if(Array.isArray(O.transforms)){var B=O.transforms;for(S=0;S<B.length;S++){var G=B[S];if(w.isPlainObject(G))switch(G.type){case"filter":G.filtersrc&&(G.target=G.filtersrc,delete G.filtersrc),G.calendar&&(G.valuecalendar||(G.valuecalendar=G.calendar),delete G.calendar);break;case"groupby":if(G.styles=G.styles||G.style,G.styles&&!Array.isArray(G.styles)){var J=G.styles,se=Object.keys(J);G.styles=[];for(var re=0;re<se.length;re++)G.styles.push({target:se[re],value:J[se[re]]})}}}}f(O,"line")&&delete O.line,"marker"in O&&(f(O.marker,"line")&&delete O.marker.line,f(O,"marker")&&delete O.marker),a.clean(O),O.autobinx&&(delete O.autobinx,delete O.xbins),O.autobiny&&(delete O.autobiny,delete O.ybins),l(O),O.colorbar&&l(O.colorbar),O.marker&&O.marker.colorbar&&l(O.marker.colorbar),O.line&&O.line.colorbar&&l(O.line.colorbar),O.aaxis&&l(O.aaxis),O.baxis&&l(O.baxis)}},T.swapXYData=function(x){var _;if(w.swapAttrs(x,["?","?0","d?","?bins","nbins?","autobin?","?src","error_?"]),Array.isArray(x.z)&&Array.isArray(x.z[0])&&(x.transpose?delete x.transpose:x.transpose=!0),x.error_x&&x.error_y){var S=x.error_y,O="copy_ystyle"in S?S.copy_ystyle:!(S.color||S.thickness||S.width);w.swapAttrs(x,["error_?.copy_ystyle"]),O&&w.swapAttrs(x,["error_?.color","error_?.thickness","error_?.width"])}if(typeof x.hoverinfo=="string"){var h=x.hoverinfo.split("+");for(_=0;_<h.length;_++)h[_]==="x"?h[_]="y":h[_]==="y"&&(h[_]="x");x.hoverinfo=h.join("+")}},T.coerceTraceIndices=function(x,_){if(k(_))return[_];if(!Array.isArray(_)||!_.length)return x.data.map(function(h,M){return M});if(Array.isArray(_)){for(var S=[],O=0;O<_.length;O++)w.isIndex(_[O],x.data.length)?S.push(_[O]):w.warn("trace index (",_[O],") is not a number or is out of bounds");return S}return _},T.manageArrayContainers=function(x,_,S){var O=x.obj,h=x.parts,M=h.length,N=h[M-1],P=k(N);if(P&&_===null){var R=h.slice(0,M-1).join(".");w.nestedProperty(O,R).get().splice(N,1)}else P&&x.get()===void 0&&x.get()===void 0&&(S[x.astr]=null),x.set(_)};var C=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function y(x){var _=x.search(C);if(_>0)return x.substr(0,_)}T.hasParent=function(x,_){for(var S=y(_);S;){if(S in x)return!0;S=y(S)}return!1};var m=["x","y","z"];T.clearAxisTypes=function(x,_,S){for(var O=0;O<_.length;O++)for(var h=x._fullData[O],M=0;M<3;M++){var N=o(x,h,m[M]);if(N&&N.type!=="log"){var P=N._name,R=N._id.substr(1);if(R.substr(0,5)==="scene"){if(S[R]!==void 0)continue;P=R+"."+P}var A=P+".type";S[P]===void 0&&S[A]===void 0&&w.nestedProperty(x.layout,A).set(null)}}}},22448:function(L,T,e){var k=e(36424);T._doPlot=k._doPlot,T.newPlot=k.newPlot,T.restyle=k.restyle,T.relayout=k.relayout,T.redraw=k.redraw,T.update=k.update,T._guiRestyle=k._guiRestyle,T._guiRelayout=k._guiRelayout,T._guiUpdate=k._guiUpdate,T._storeDirectGUIEdit=k._storeDirectGUIEdit,T.react=k.react,T.extendTraces=k.extendTraces,T.prependTraces=k.prependTraces,T.addTraces=k.addTraces,T.deleteTraces=k.deleteTraces,T.moveTraces=k.moveTraces,T.purge=k.purge,T.addFrames=k.addFrames,T.deleteFrames=k.deleteFrames,T.animate=k.animate,T.setPlotConfig=k.setPlotConfig;var v=e(52200).getGraphDiv,n=e(4016).eraseActiveShape;T.deleteActiveShape=function(b){return n(v(b))},T.toImage=e(67024),T.validate=e(21480),T.downloadImage=e(39792);var w=e(94828);T.makeTemplate=w.makeTemplate,T.validateTemplate=w.validateTemplate},17680:function(L,T,e){var k=e(63620),v=e(16628),n=e(24248),w=e(14952).sorterAsc,b=e(24040);T.containerArrayMatch=e(69820);var c=T.isAddVal=function(t){return t==="add"||k(t)},a=T.isRemoveVal=function(t){return t===null||t==="remove"};T.applyContainerArrayChanges=function(t,o,i,s,l){var u=o.astr,d=b.getComponentMethod(u,"supplyLayoutDefaults"),g=b.getComponentMethod(u,"draw"),f=b.getComponentMethod(u,"drawOne"),C=s.replot||s.recalc||d===v||g===v,y=t.layout,m=t._fullLayout;if(i[""]){Object.keys(i).length>1&&n.warn("Full array edits are incompatible with other edits",u);var x=i[""][""];if(a(x))o.set(null);else{if(!Array.isArray(x))return n.warn("Unrecognized full array edit value",u,x),!0;o.set(x)}return!C&&(d(y,m),g(t),!0)}var _,S,O,h,M,N,P,R,A=Object.keys(i).map(Number).sort(w),q=o.get(),j=q||[],X=l(m,u).get(),F=[],W=-1,Y=j.length;for(_=0;_<A.length;_++)if(h=i[O=A[_]],M=Object.keys(h),N=h[""],P=c(N),O<0||O>j.length-(P?0:1))n.warn("index out of range",u,O);else if(N!==void 0)M.length>1&&n.warn("Insertion & removal are incompatible with edits to the same index.",u,O),a(N)?F.push(O):P?(N==="add"&&(N={}),j.splice(O,0,N),X&&X.splice(O,0,{})):n.warn("Unrecognized full object edit value",u,O,N),W===-1&&(W=O);else for(S=0;S<M.length;S++)R=u+"["+O+"].",l(j[O],M[S],R).set(h[M[S]]);for(_=F.length-1;_>=0;_--)j.splice(F[_],1),X&&X.splice(F[_],1);if(j.length?q||o.set(j):o.set(null),C)return!1;if(d(y,m),f!==v){var B;if(W===-1)B=A;else{for(Y=Math.max(j.length,Y),B=[],_=0;_<A.length&&!((O=A[_])>=W);_++)B.push(O);for(_=W;_<Y;_++)B.push(_)}for(_=0;_<B.length;_++)f(t,B[_])}else g(t);return!0}},36424:function(L,T,e){var k=e(33428),v=e(38248),n=e(52264),w=e(3400),b=w.nestedProperty,c=e(95924),a=e(94552),t=e(24040),o=e(73060),i=e(7316),s=e(54460),l=e(96312),u=e(94724),d=e(43616),g=e(76308),f=e(42464).initInteractions,C=e(9616),y=e(22676).clearOutline,m=e(20556).dfltConfig,x=e(17680),_=e(93404),S=e(39172),O=e(67824),h=e(33816).AX_NAME_PATTERN,M=0;function N(Le){var Ue=Le._fullLayout;Ue._redrawFromAutoMarginCount?Ue._redrawFromAutoMarginCount--:Le.emit("plotly_afterplot")}function P(Le,Ue){try{Le._fullLayout._paper.style("background",Ue)}catch(Re){w.error(Re)}}function R(Le,Ue){P(Le,g.combine(Ue,"white"))}function A(Le,Ue){if(!Le._context){Le._context=w.extendDeep({},m);var Re=k.select("base");Le._context._baseUrl=Re.size()&&Re.attr("href")?window.location.href.split("#")[0]:""}var Fe,ve,ke,Ee=Le._context;if(Ue){for(ve=Object.keys(Ue),Fe=0;Fe<ve.length;Fe++)(ke=ve[Fe])!=="editable"&&ke!=="edits"&&ke in Ee&&(ke==="setBackground"&&Ue[ke]==="opaque"?Ee[ke]=R:Ee[ke]=Ue[ke]);Ue.plot3dPixelRatio&&!Ee.plotGlPixelRatio&&(Ee.plotGlPixelRatio=Ee.plot3dPixelRatio);var je=Ue.editable;if(je!==void 0)for(Ee.editable=je,ve=Object.keys(Ee.edits),Fe=0;Fe<ve.length;Fe++)Ee.edits[ve[Fe]]=je;if(Ue.edits)for(ve=Object.keys(Ue.edits),Fe=0;Fe<ve.length;Fe++)(ke=ve[Fe])in Ee.edits&&(Ee.edits[ke]=Ue.edits[ke]);Ee._exportedPlot=Ue._exportedPlot}Ee.staticPlot&&(Ee.editable=!1,Ee.edits={},Ee.autosizable=!1,Ee.scrollZoom=!1,Ee.doubleClick=!1,Ee.showTips=!1,Ee.showLink=!1,Ee.displayModeBar=!1),Ee.displayModeBar!=="hover"||n||(Ee.displayModeBar=!0),Ee.setBackground!=="transparent"&&typeof Ee.setBackground=="function"||(Ee.setBackground=P),Ee._hasZeroHeight=Ee._hasZeroHeight||Le.clientHeight===0,Ee._hasZeroWidth=Ee._hasZeroWidth||Le.clientWidth===0;var Be=Ee.scrollZoom,Ie=Ee._scrollZoom={};if(Be===!0)Ie.cartesian=1,Ie.gl3d=1,Ie.geo=1,Ie.mapbox=1;else if(typeof Be=="string"){var Ze=Be.split("+");for(Fe=0;Fe<Ze.length;Fe++)Ie[Ze[Fe]]=1}else Be!==!1&&(Ie.gl3d=1,Ie.geo=1,Ie.mapbox=1)}function q(Le,Ue){var Re,Fe,ve=Ue+1,ke=[];for(Re=0;Re<Le.length;Re++)(Fe=Le[Re])<0?ke.push(ve+Fe):ke.push(Fe);return ke}function j(Le,Ue,Re){var Fe,ve;for(Fe=0;Fe<Ue.length;Fe++){if((ve=Ue[Fe])!==parseInt(ve,10))throw new Error("all values in "+Re+" must be integers");if(ve>=Le.data.length||ve<-Le.data.length)throw new Error(Re+" must be valid indices for gd.data.");if(Ue.indexOf(ve,Fe+1)>-1||ve>=0&&Ue.indexOf(-Le.data.length+ve)>-1||ve<0&&Ue.indexOf(Le.data.length+ve)>-1)throw new Error("each index in "+Re+" must be unique.")}}function X(Le,Ue,Re){if(!Array.isArray(Le.data))throw new Error("gd.data must be an array.");if(Ue===void 0)throw new Error("currentIndices is a required argument.");if(Array.isArray(Ue)||(Ue=[Ue]),j(Le,Ue,"currentIndices"),Re===void 0||Array.isArray(Re)||(Re=[Re]),Re!==void 0&&j(Le,Re,"newIndices"),Re!==void 0&&Ue.length!==Re.length)throw new Error("current and new indices must be of equal length.")}function F(Le,Ue,Re,Fe,ve){(function(at,ft,ut,_t){var Nt=w.isPlainObject(_t);if(!Array.isArray(at.data))throw new Error("gd.data must be an array");if(!w.isPlainObject(ft))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 Tt in j(at,ut,"indices"),ft){if(!Array.isArray(ft[Tt])||ft[Tt].length!==ut.length)throw new Error("attribute "+Tt+" must be an array of length equal to indices array length");if(Nt&&(!(Tt in _t)||!Array.isArray(_t[Tt])||_t[Tt].length!==ft[Tt].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")}})(Le,Ue,Re,Fe);for(var ke=function(at,ft,ut,_t){var Nt,Tt,st,lt,Vt,jt=w.isPlainObject(_t),Kt=[];for(var It in Array.isArray(ut)||(ut=[ut]),ut=q(ut,at.data.length-1),ft)for(var $e=0;$e<ut.length;$e++){if(Nt=at.data[ut[$e]],Tt=(st=b(Nt,It)).get(),lt=ft[It][$e],!w.isArrayOrTypedArray(lt))throw new Error("attribute: "+It+" index: "+$e+" must be an array");if(!w.isArrayOrTypedArray(Tt))throw new Error("cannot extend missing or non-array attribute: "+It);if(Tt.constructor!==lt.constructor)throw new Error("cannot extend array with an array of a different type: "+It);Vt=jt?_t[It][$e]:_t,v(Vt)||(Vt=-1),Kt.push({prop:st,target:Tt,insert:lt,maxp:Math.floor(Vt)})}return Kt}(Le,Ue,Re,Fe),Ee={},je={},Be=0;Be<ke.length;Be++){var Ie=ke[Be].prop,Ze=ke[Be].maxp,He=ve(ke[Be].target,ke[Be].insert,Ze);Ie.set(He[0]),Array.isArray(Ee[Ie.astr])||(Ee[Ie.astr]=[]),Ee[Ie.astr].push(He[1]),Array.isArray(je[Ie.astr])||(je[Ie.astr]=[]),je[Ie.astr].push(ke[Be].target.length)}return{update:Ee,maxPoints:je}}function W(Le,Ue){var Re=new Le.constructor(Le.length+Ue.length);return Re.set(Le),Re.set(Ue,Le.length),Re}function Y(Le,Ue,Re,Fe){Le=w.getGraphDiv(Le),_.clearPromiseQueue(Le);var ve={};if(typeof Ue=="string")ve[Ue]=Re;else{if(!w.isPlainObject(Ue))return w.warn("Restyle fail.",Ue,Re,Fe),Promise.reject();ve=w.extendFlat({},Ue),Fe===void 0&&(Fe=Re)}Object.keys(ve).length&&(Le.changed=!0);var ke=_.coerceTraceIndices(Le,Fe),Ee=se(Le,ve,ke),je=Ee.flags;je.calc&&(Le.calcdata=void 0),je.clearAxisTypes&&_.clearAxisTypes(Le,ke,{});var Be=[];je.fullReplot?Be.push(T._doPlot):(Be.push(i.previousPromises),i.supplyDefaults(Le),je.markerSize&&(i.doCalcdata(Le),te(Be)),je.style&&Be.push(S.doTraceStyle),je.colorbars&&Be.push(S.doColorBars),Be.push(N)),Be.push(i.rehover,i.redrag,i.reselect),a.add(Le,Y,[Le,Ee.undoit,Ee.traces],Y,[Le,Ee.redoit,Ee.traces]);var Ie=w.syncOrAsync(Be,Le);return Ie&&Ie.then||(Ie=Promise.resolve()),Ie.then(function(){return Le.emit("plotly_restyle",Ee.eventData),Le})}function B(Le){return Le===void 0?null:Le}function G(Le,Ue){return Ue?function(Re,Fe,ve){var ke=b(Re,Fe),Ee=ke.set;return ke.set=function(je){J((ve||"")+Fe,ke.get(),je,Le),Ee(je)},ke}:b}function J(Le,Ue,Re,Fe){if(Array.isArray(Ue)||Array.isArray(Re))for(var ve=Array.isArray(Ue)?Ue:[],ke=Array.isArray(Re)?Re:[],Ee=Math.max(ve.length,ke.length),je=0;je<Ee;je++)J(Le+"["+je+"]",ve[je],ke[je],Fe);else if(w.isPlainObject(Ue)||w.isPlainObject(Re)){var Be=w.isPlainObject(Ue)?Ue:{},Ie=w.isPlainObject(Re)?Re:{},Ze=w.extendFlat({},Be,Ie);for(var He in Ze)J(Le+"."+He,Be[He],Ie[He],Fe)}else Fe[Le]===void 0&&(Fe[Le]=B(Ue))}function se(Le,Ue,Re){var Fe,ve=Le._fullLayout,ke=Le._fullData,Ee=Le.data,je=ve._guiEditing,Be=G(ve._preGUI,je),Ie=w.extendDeepAll({},Ue);re(Ue);var Ze,He=O.traceFlags(),at={},ft={};function ut(){return Re.map(function(){})}function _t(Ht){var Qt=s.id2name(Ht);Ze.indexOf(Qt)===-1&&Ze.push(Qt)}function Nt(Ht){return"LAYOUT"+Ht+".autorange"}function Tt(Ht){return"LAYOUT"+Ht+".range"}function st(Ht){for(var Qt=Ht;Qt<ke.length;Qt++)if(ke[Qt]._input===Ee[Ht])return ke[Qt]}function lt(Ht,Qt,un){if(Array.isArray(Ht))Ht.forEach(function(wn){lt(wn,Qt,un)});else if(!(Ht in Ue)&&!_.hasParent(Ue,Ht)){var In;if(Ht.substr(0,6)==="LAYOUT")In=Be(Le.layout,Ht.replace("LAYOUT",""));else{var zn=Re[un];In=G(ve._tracePreGUI[st(zn)._fullInput.uid],je)(Ee[zn],Ht)}Ht in ft||(ft[Ht]=ut()),ft[Ht][un]===void 0&&(ft[Ht][un]=B(In.get())),Qt!==void 0&&In.set(Qt)}}function Vt(Ht){return function(Qt){return ke[Qt][Ht]}}function jt(Ht){return function(Qt,un){return Qt===!1?ke[Re[un]][Ht]:null}}for(var Kt in Ue){if(_.hasParent(Ue,Kt))throw new Error("cannot set "+Kt+" and a parent attribute simultaneously");var It,$e,tt,Xe,et,ht,dt=Ue[Kt];if(Kt!=="autobinx"&&Kt!=="autobiny"||(Kt=Kt.charAt(Kt.length-1)+"bins",dt=Array.isArray(dt)?dt.map(jt(Kt)):dt===!1?Re.map(Vt(Kt)):null),at[Kt]=dt,Kt.substr(0,6)!=="LAYOUT"){for(ft[Kt]=ut(),Fe=0;Fe<Re.length;Fe++)if(It=Ee[Re[Fe]],$e=st(Re[Fe]),Xe=(tt=G(ve._tracePreGUI[$e._fullInput.uid],je)(It,Kt)).get(),(et=Array.isArray(dt)?dt[Fe%dt.length]:dt)!==void 0){var De=tt.parts[tt.parts.length-1],Ge=Kt.substr(0,Kt.length-De.length-1),pt=Ge?Ge+".":"",nt=Ge?b($e,Ge).get():$e;if((ht=o.getTraceValObject($e,tt.parts))&&ht.impliedEdits&&et!==null)for(var bt in ht.impliedEdits)lt(w.relativeAttr(Kt,bt),ht.impliedEdits[bt],Fe);else if(De!=="thicknessmode"&&De!=="lenmode"||Xe===et||et!=="fraction"&&et!=="pixels"||!nt){if(Kt==="type"&&(et==="pie"!=(Xe==="pie")||et==="funnelarea"!=(Xe==="funnelarea"))){var wt="x",St="y";et!=="bar"&&Xe!=="bar"||It.orientation!=="h"||(wt="y",St="x"),w.swapAttrs(It,["?","?src"],"labels",wt),w.swapAttrs(It,["d?","?0"],"label",wt),w.swapAttrs(It,["?","?src"],"values",St),Xe==="pie"||Xe==="funnelarea"?(b(It,"marker.color").set(b(It,"marker.colors").get()),ve._pielayer.selectAll("g.trace").remove()):t.traceIs(It,"cartesian")&&b(It,"marker.colors").set(b(It,"marker.color").get())}}else{var vt=ve._size,Pt=nt.orient,Lt=Pt==="top"||Pt==="bottom";if(De==="thicknessmode"){var Ct=Lt?vt.h:vt.w;lt(pt+"thickness",nt.thickness*(et==="fraction"?1/Ct:Ct),Fe)}else{var Rt=Lt?vt.w:vt.h;lt(pt+"len",nt.len*(et==="fraction"?1/Rt:Rt),Fe)}}if(ft[Kt][Fe]=B(Xe),["swapxy","swapxyaxes","orientation","orientationaxes"].indexOf(Kt)!==-1){if(Kt==="orientation"){tt.set(et);var At=It.x&&!It.y?"h":"v";if((tt.get()||At)===$e.orientation)continue}else Kt==="orientationaxes"&&(It.orientation={v:"h",h:"v"}[$e.orientation]);_.swapXYData(It),He.calc=He.clearAxisTypes=!0}else i.dataArrayContainers.indexOf(tt.parts[0])!==-1?(_.manageArrayContainers(tt,et,ft),He.calc=!0):(ht?ht.arrayOk&&!t.traceIs($e,"regl")&&(w.isArrayOrTypedArray(et)||w.isArrayOrTypedArray(Xe))?He.calc=!0:O.update(He,ht):He.calc=!0,tt.set(et))}if(["swapxyaxes","orientationaxes"].indexOf(Kt)!==-1&&s.swap(Le,Re),Kt==="orientationaxes"){var Bt=b(Le.layout,"hovermode"),nn=Bt.get();nn==="x"?Bt.set("y"):nn==="y"?Bt.set("x"):nn==="x unified"?Bt.set("y unified"):nn==="y unified"&&Bt.set("x unified")}if(["orientation","type"].indexOf(Kt)!==-1){for(Ze=[],Fe=0;Fe<Re.length;Fe++){var hn=Ee[Re[Fe]];t.traceIs(hn,"cartesian")&&(_t(hn.xaxis||"x"),_t(hn.yaxis||"y"))}lt(Ze.map(Nt),!0,0),lt(Ze.map(Tt),[0,1],0)}}else tt=Be(Le.layout,Kt.replace("LAYOUT","")),ft[Kt]=[B(tt.get())],tt.set(Array.isArray(dt)?dt[0]:dt),He.calc=!0}return(He.calc||He.plot)&&(He.fullReplot=!0),{flags:He,undoit:ft,redoit:at,traces:Re,eventData:w.extendDeepNoArrays([],[Ie,Re])}}function re(Le){var Ue,Re,Fe,ve=w.counterRegex("axis",".title",!1,!1),ke=/colorbar\.title$/,Ee=Object.keys(Le);for(Ue=0;Ue<Ee.length;Ue++)Re=Ee[Ue],Fe=Le[Re],Re!=="title"&&!ve.test(Re)&&!ke.test(Re)||typeof Fe!="string"&&typeof Fe!="number"?Re.indexOf("titlefont")>-1&&Re.indexOf("grouptitlefont")===-1?je(Re,Re.replace("titlefont","title.font")):Re.indexOf("titleposition")>-1?je(Re,Re.replace("titleposition","title.position")):Re.indexOf("titleside")>-1?je(Re,Re.replace("titleside","title.side")):Re.indexOf("titleoffset")>-1&&je(Re,Re.replace("titleoffset","title.offset")):je(Re,Re.replace("title","title.text"));function je(Be,Ie){Le[Ie]=Le[Be],delete Le[Be]}}function ne(Le,Ue,Re){Le=w.getGraphDiv(Le),_.clearPromiseQueue(Le);var Fe={};if(typeof Ue=="string")Fe[Ue]=Re;else{if(!w.isPlainObject(Ue))return w.warn("Relayout fail.",Ue,Re),Promise.reject();Fe=w.extendFlat({},Ue)}Object.keys(Fe).length&&(Le.changed=!0);var ve=de(Le,Fe),ke=ve.flags;ke.calc&&(Le.calcdata=void 0);var Ee=[i.previousPromises];ke.layoutReplot?Ee.push(S.layoutReplot):Object.keys(Fe).length&&($(Le,ke,ve)||i.supplyDefaults(Le),ke.legend&&Ee.push(S.doLegend),ke.layoutstyle&&Ee.push(S.layoutStyles),ke.axrange&&te(Ee,ve.rangesAltered),ke.ticks&&Ee.push(S.doTicksRelayout),ke.modebar&&Ee.push(S.doModeBar),ke.camera&&Ee.push(S.doCamera),ke.colorbars&&Ee.push(S.doColorBars),Ee.push(N)),Ee.push(i.rehover,i.redrag,i.reselect),a.add(Le,ne,[Le,ve.undoit],ne,[Le,ve.redoit]);var je=w.syncOrAsync(Ee,Le);return je&&je.then||(je=Promise.resolve(Le)),je.then(function(){return Le.emit("plotly_relayout",ve.eventData),Le})}function $(Le,Ue,Re){var Fe,ve,ke=Le._fullLayout;if(!Ue.axrange)return!1;for(var Ee in Ue)if(Ee!=="axrange"&&Ue[Ee])return!1;var je=function(ft,ut){return w.coerce(Fe,ve,u,ft,ut)},Be={};for(var Ie in Re.rangesAltered){var Ze=s.id2name(Ie);if(Fe=Le.layout[Ze],ve=ke[Ze],l(Fe,ve,je,Be),ve._matchGroup){for(var He in ve._matchGroup)if(He!==Ie){var at=ke[s.id2name(He)];at.autorange=ve.autorange,at.range=ve.range.slice(),at._input.range=ve.range.slice()}}}return!0}function te(Le,Ue){var Re=Ue?function(Fe){var ve=[];for(var ke in Ue){var Ee=s.getFromId(Fe,ke);if(ve.push(ke),(Ee.ticklabelposition||"").indexOf("inside")!==-1&&Ee._anchorAxis&&ve.push(Ee._anchorAxis._id),Ee._matchGroup)for(var je in Ee._matchGroup)Ue[je]||ve.push(je)}return s.draw(Fe,ve,{skipTitle:!0})}:function(Fe){return s.draw(Fe,"redraw")};Le.push(y,S.doAutoRangeAndConstraints,Re,S.drawData,S.finalDraw)}var ae=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,ce=/^[xyz]axis[0-9]*\.autorange$/,ue=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function de(Le,Ue){var Re,Fe,ve,ke=Le.layout,Ee=Le._fullLayout,je=Ee._guiEditing,Be=G(Ee._preGUI,je),Ie=Object.keys(Ue),Ze=s.list(Le),He=w.extendDeepAll({},Ue),at={};for(re(Ue),Ie=Object.keys(Ue),Fe=0;Fe<Ie.length;Fe++)if(Ie[Fe].indexOf("allaxes")===0){for(ve=0;ve<Ze.length;ve++){var ft=Ze[ve]._id.substr(1),ut=ft.indexOf("scene")!==-1?ft+".":"",_t=Ie[Fe].replace("allaxes",ut+Ze[ve]._name);Ue[_t]||(Ue[_t]=Ue[Ie[Fe]])}delete Ue[Ie[Fe]]}var Nt=O.layoutFlags(),Tt={},st={};function lt(wn,rn){if(Array.isArray(wn))wn.forEach(function(dn){lt(dn,rn)});else if(!(wn in Ue)&&!_.hasParent(Ue,wn)){var vn=Be(ke,wn);wn in st||(st[wn]=B(vn.get())),rn!==void 0&&vn.set(rn)}}var Vt,jt={};function Kt(wn){var rn=s.name2id(wn.split(".")[0]);return jt[rn]=1,rn}for(var It in Ue){if(_.hasParent(Ue,It))throw new Error("cannot set "+It+" and a parent attribute simultaneously");for(var $e=Be(ke,It),tt=Ue[It],Xe=$e.parts.length-1;Xe>0&&typeof $e.parts[Xe]!="string";)Xe--;var et=$e.parts[Xe],ht=$e.parts[Xe-1]+"."+et,dt=$e.parts.slice(0,Xe).join("."),De=b(Le.layout,dt).get(),Ge=b(Ee,dt).get(),pt=$e.get();if(tt!==void 0){Tt[It]=tt,st[It]=et==="reverse"?tt:B(pt);var nt=o.getLayoutValObject(Ee,$e.parts);if(nt&&nt.impliedEdits&&tt!==null)for(var bt in nt.impliedEdits)lt(w.relativeAttr(It,bt),nt.impliedEdits[bt]);if(["width","height"].indexOf(It)!==-1)if(tt){lt("autosize",null);var wt=It==="height"?"width":"height";lt(wt,Ee[wt])}else Ee[It]=Le._initialAutoSize[It];else if(It==="autosize")lt("width",tt?null:Ee.width),lt("height",tt?null:Ee.height);else if(ht.match(ae))Kt(ht),b(Ee,dt+"._inputRange").set(null);else if(ht.match(ce)){Kt(ht),b(Ee,dt+"._inputRange").set(null);var St=b(Ee,dt).get();St._inputDomain&&(St._input.domain=St._inputDomain.slice())}else ht.match(ue)&&b(Ee,dt+"._inputDomain").set(null);if(et==="type"){Vt=De;var vt=Ge.type==="linear"&&tt==="log",Pt=Ge.type==="log"&&tt==="linear";if(vt||Pt){if(Vt&&Vt.range)if(Ge.autorange)vt&&(Vt.range=Vt.range[1]>Vt.range[0]?[1,2]:[2,1]);else{var Lt=Vt.range[0],Ct=Vt.range[1];vt?(Lt<=0&&Ct<=0&&lt(dt+".autorange",!0),Lt<=0?Lt=Ct/1e6:Ct<=0&&(Ct=Lt/1e6),lt(dt+".range[0]",Math.log(Lt)/Math.LN10),lt(dt+".range[1]",Math.log(Ct)/Math.LN10)):(lt(dt+".range[0]",Math.pow(10,Lt)),lt(dt+".range[1]",Math.pow(10,Ct)))}else lt(dt+".autorange",!0);Array.isArray(Ee._subplots.polar)&&Ee._subplots.polar.length&&Ee[$e.parts[0]]&&$e.parts[1]==="radialaxis"&&delete Ee[$e.parts[0]]._subplot.viewInitial["radialaxis.range"],t.getComponentMethod("annotations","convertCoords")(Le,Ge,tt,lt),t.getComponentMethod("images","convertCoords")(Le,Ge,tt,lt)}else lt(dt+".autorange",!0),lt(dt+".range",null);b(Ee,dt+"._inputRange").set(null)}else if(et.match(h)){var Rt=b(Ee,It).get(),At=(tt||{}).type;At&&At!=="-"||(At="linear"),t.getComponentMethod("annotations","convertCoords")(Le,Rt,At,lt),t.getComponentMethod("images","convertCoords")(Le,Rt,At,lt)}var Bt=x.containerArrayMatch(It);if(Bt){Re=Bt.array,Fe=Bt.index;var nn=Bt.property,hn=nt||{editType:"calc"};Fe!==""&&nn===""&&(x.isAddVal(tt)?st[It]=null:x.isRemoveVal(tt)?st[It]=(b(ke,Re).get()||[])[Fe]:w.warn("unrecognized full object value",Ue)),O.update(Nt,hn),at[Re]||(at[Re]={});var Ht=at[Re][Fe];Ht||(Ht=at[Re][Fe]={}),Ht[nn]=tt,delete Ue[It]}else et==="reverse"?(De.range?De.range.reverse():(lt(dt+".autorange",!0),De.range=[1,0]),Ge.autorange?Nt.calc=!0:Nt.plot=!0):(It==="dragmode"&&(tt===!1&&pt!==!1||tt!==!1&&pt===!1)||Ee._has("scatter-like")&&Ee._has("regl")&&It==="dragmode"&&(tt==="lasso"||tt==="select")&&pt!=="lasso"&&pt!=="select"||Ee._has("gl2d")?Nt.plot=!0:nt?O.update(Nt,nt):Nt.calc=!0,$e.set(tt))}}for(Re in at)x.applyContainerArrayChanges(Le,Be(ke,Re),at[Re],Nt,Be)||(Nt.plot=!0);for(var Qt in jt){var un=(Vt=s.getFromId(Le,Qt))&&Vt._constraintGroup;if(un)for(var In in Nt.calc=!0,un)jt[In]||(s.getFromId(Le,In)._constraintShrinkable=!0)}(me(Le)||Ue.height||Ue.width)&&(Nt.plot=!0);var zn=Ee.shapes;for(Fe=0;Fe<zn.length;Fe++)if(zn[Fe].showlegend){Nt.calc=!0;break}return(Nt.plot||Nt.calc)&&(Nt.layoutReplot=!0),{flags:Nt,rangesAltered:jt,undoit:st,redoit:Tt,eventData:He}}function me(Le){var Ue=Le._fullLayout,Re=Ue.width,Fe=Ue.height;return Le.layout.autosize&&i.plotAutoSize(Le,Le.layout,Ue),Ue.width!==Re||Ue.height!==Fe}function be(Le,Ue,Re,Fe){Le=w.getGraphDiv(Le),_.clearPromiseQueue(Le),w.isPlainObject(Ue)||(Ue={}),w.isPlainObject(Re)||(Re={}),Object.keys(Ue).length&&(Le.changed=!0),Object.keys(Re).length&&(Le.changed=!0);var ve=_.coerceTraceIndices(Le,Fe),ke=se(Le,w.extendFlat({},Ue),ve),Ee=ke.flags,je=de(Le,w.extendFlat({},Re)),Be=je.flags;(Ee.calc||Be.calc)&&(Le.calcdata=void 0),Ee.clearAxisTypes&&_.clearAxisTypes(Le,ve,Re);var Ie=[];Be.layoutReplot?Ie.push(S.layoutReplot):Ee.fullReplot?Ie.push(T._doPlot):(Ie.push(i.previousPromises),$(Le,Be,je)||i.supplyDefaults(Le),Ee.style&&Ie.push(S.doTraceStyle),(Ee.colorbars||Be.colorbars)&&Ie.push(S.doColorBars),Be.legend&&Ie.push(S.doLegend),Be.layoutstyle&&Ie.push(S.layoutStyles),Be.axrange&&te(Ie,je.rangesAltered),Be.ticks&&Ie.push(S.doTicksRelayout),Be.modebar&&Ie.push(S.doModeBar),Be.camera&&Ie.push(S.doCamera),Ie.push(N)),Ie.push(i.rehover,i.redrag,i.reselect),a.add(Le,be,[Le,ke.undoit,je.undoit,ke.traces],be,[Le,ke.redoit,je.redoit,ke.traces]);var Ze=w.syncOrAsync(Ie,Le);return Ze&&Ze.then||(Ze=Promise.resolve(Le)),Ze.then(function(){return Le.emit("plotly_update",{data:ke.eventData,layout:je.eventData}),Le})}function _e(Le){return function(Ue){Ue._fullLayout._guiEditing=!0;var Re=Le.apply(null,arguments);return Ue._fullLayout._guiEditing=!1,Re}}var we=[{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:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],Ce=[{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 Se(Le,Ue){for(var Re=0;Re<Ue.length;Re++){var Fe=Ue[Re],ve=Le.match(Fe.pattern);if(ve){var ke=ve[1]||"";return{head:ke,tail:Le.substr(ke.length+1),attr:Fe.attr}}}}function Pe(Le,Ue){var Re=b(Ue,Le).get();if(Re!==void 0)return Re;var Fe=Le.split(".");for(Fe.pop();Fe.length>1;)if(Fe.pop(),(Re=b(Ue,Fe.join(".")+".uirevision").get())!==void 0)return Re;return Ue.uirevision}function Ne(Le,Ue){for(var Re=0;Re<Ue.length;Re++)if(Ue[Re]._fullInput.uid===Le)return Re;return-1}function Oe(Le,Ue,Re){for(var Fe=0;Fe<Ue.length;Fe++)if(Ue[Fe].uid===Le)return Fe;return!Ue[Re]||Ue[Re].uid?-1:Re}function pe(Le,Ue){var Re=w.isPlainObject(Le),Fe=Array.isArray(Le);return Re||Fe?(Re&&w.isPlainObject(Ue)||Fe&&Array.isArray(Ue))&&JSON.stringify(Le)===JSON.stringify(Ue):Le===Ue}function fe(Le,Ue,Re,Fe){var ve,ke,Ee,je=Fe.getValObject,Be=Fe.flags,Ie=Fe.immutable,Ze=Fe.inArray,He=Fe.arrayIndex;function at(){var De=ve.editType;Ze&&De.indexOf("arraydraw")!==-1?w.pushUnique(Be.arrays[Ze],He):(O.update(Be,ve),De!=="none"&&Be.nChanges++,Fe.transition&&ve.anim&&Be.nChangesAnim++,(ae.test(Ee)||ce.test(Ee))&&(Be.rangesAltered[Re[0]]=1),ue.test(Ee)&&b(Ue,"_inputDomain").set(null),ke==="datarevision"&&(Be.newDataRevision=1))}function ft(De){return De.valType==="data_array"||De.arrayOk}for(ke in Le){if(Be.calc&&!Fe.transition)return;var ut=Le[ke],_t=Ue[ke],Nt=Re.concat(ke);if(Ee=Nt.join("."),ke.charAt(0)!=="_"&&typeof ut!="function"&&ut!==_t){if((ke==="tick0"||ke==="dtick")&&Re[0]!=="geo"){var Tt=Ue.tickmode;if(Tt==="auto"||Tt==="array"||!Tt)continue}if((ke!=="range"||!Ue.autorange)&&(ke!=="zmin"&&ke!=="zmax"||Ue.type!=="contourcarpet")&&(ve=je(Nt))&&(!ve._compareAsJSON||JSON.stringify(ut)!==JSON.stringify(_t))){var st,lt=ve.valType,Vt=ft(ve),jt=Array.isArray(ut),Kt=Array.isArray(_t);if(jt&&Kt){var It="_input_"+ke,$e=Le[It],tt=Ue[It];if(Array.isArray($e)&&$e===tt)continue}if(_t===void 0)Vt&&jt?Be.calc=!0:at();else if(ve._isLinkedToArray){var Xe=[],et=!1;Ze||(Be.arrays[ke]=Xe);var ht=Math.min(ut.length,_t.length),dt=Math.max(ut.length,_t.length);if(ht!==dt){if(ve.editType!=="arraydraw"){at();continue}et=!0}for(st=0;st<ht;st++)fe(ut[st],_t[st],Nt.concat(st),w.extendFlat({inArray:ke,arrayIndex:st},Fe));if(et)for(st=ht;st<dt;st++)Xe.push(st)}else!lt&&w.isPlainObject(ut)?fe(ut,_t,Nt,Fe):Vt?jt&&Kt?(Ie&&(Be.calc=!0),(Ie||Fe.newDataRevision)&&at()):jt!==Kt?Be.calc=!0:at():jt&&Kt&&ut.length===_t.length&&String(ut)===String(_t)||at()}}}for(ke in Ue)if(!(ke in Le)&&ke.charAt(0)!=="_"&&typeof Ue[ke]!="function"){if(ft(ve=je(Re.concat(ke)))&&Array.isArray(Ue[ke]))return void(Be.calc=!0);at()}}function xe(Le,Ue){var Re;for(Re in Le)if(Re.charAt(0)!=="_"){var Fe=Le[Re],ve=Ue[Re];if(Fe!==ve)if(w.isPlainObject(Fe)&&w.isPlainObject(ve)){if(xe(Fe,ve))return!0}else{if(!Array.isArray(Fe)||!Array.isArray(ve)||Fe.length!==ve.length)return!0;for(var ke=0;ke<Fe.length;ke++)if(Fe[ke]!==ve[ke]&&(!w.isPlainObject(Fe[ke])||!w.isPlainObject(ve[ke])||xe(Fe[ke],ve[ke])))return!0}}}function ze(Le){var Ue=Le._fullLayout,Re=Le.getBoundingClientRect();if(!w.equalDomRects(Re,Ue._lastBBox)){var Fe=Ue._invTransform=w.inverseTransformMatrix(w.getFullTransformMatrix(Le));Ue._invScaleX=Math.sqrt(Fe[0][0]*Fe[0][0]+Fe[0][1]*Fe[0][1]+Fe[0][2]*Fe[0][2]),Ue._invScaleY=Math.sqrt(Fe[1][0]*Fe[1][0]+Fe[1][1]*Fe[1][1]+Fe[1][2]*Fe[1][2]),Ue._lastBBox=Re}}T.animate=function(Le,Ue,Re){if(Le=w.getGraphDiv(Le),!w.isPlotDiv(Le))throw new Error("This element is not a Plotly plot: "+Le+". It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/");var Fe=Le._transitionData;Fe._frameQueue||(Fe._frameQueue=[]);var ve=(Re=i.supplyAnimationDefaults(Re)).transition,ke=Re.frame;function Ee(Ie){return Array.isArray(ve)?Ie>=ve.length?ve[0]:ve[Ie]:ve}function je(Ie){return Array.isArray(ke)?Ie>=ke.length?ke[0]:ke[Ie]:ke}function Be(Ie,Ze){var He=0;return function(){if(Ie&&++He===Ze)return Ie()}}return Fe._frameWaitingCnt===void 0&&(Fe._frameWaitingCnt=0),new Promise(function(Ie,Ze){function He(){Le.emit("plotly_animating"),Fe._lastFrameAt=-1/0,Fe._timeToNext=0,Fe._runningTransitions=0,Fe._currentFrame=null;var It=function(){Fe._animationRaf=window.requestAnimationFrame(It),Date.now()-Fe._lastFrameAt>Fe._timeToNext&&function(){Fe._currentFrame&&Fe._currentFrame.onComplete&&Fe._currentFrame.onComplete();var $e=Fe._currentFrame=Fe._frameQueue.shift();if($e){var tt=$e.name?$e.name.toString():null;Le._fullLayout._currentFrame=tt,Fe._lastFrameAt=Date.now(),Fe._timeToNext=$e.frameOpts.duration,i.transition(Le,$e.frame.data,$e.frame.layout,_.coerceTraceIndices(Le,$e.frame.traces),$e.frameOpts,$e.transitionOpts).then(function(){$e.onComplete&&$e.onComplete()}),Le.emit("plotly_animatingframe",{name:tt,frame:$e.frame,animation:{frame:$e.frameOpts,transition:$e.transitionOpts}})}else Le.emit("plotly_animated"),window.cancelAnimationFrame(Fe._animationRaf),Fe._animationRaf=null}()};It()}var at,ft,ut=0;function _t(It){return Array.isArray(ve)?ut>=ve.length?It.transitionOpts=ve[ut]:It.transitionOpts=ve[0]:It.transitionOpts=ve,ut++,It}var Nt=[],Tt=Ue==null,st=Array.isArray(Ue);if(Tt||st||!w.isPlainObject(Ue)){if(Tt||["string","number"].indexOf(typeof Ue)!==-1)for(at=0;at<Fe._frames.length;at++)(ft=Fe._frames[at])&&(Tt||String(ft.group)===String(Ue))&&Nt.push({type:"byname",name:String(ft.name),data:_t({name:ft.name})});else if(st)for(at=0;at<Ue.length;at++){var lt=Ue[at];["number","string"].indexOf(typeof lt)!==-1?(lt=String(lt),Nt.push({type:"byname",name:lt,data:_t({name:lt})})):w.isPlainObject(lt)&&Nt.push({type:"object",data:_t(w.extendFlat({},lt))})}}else Nt.push({type:"object",data:_t(w.extendFlat({},Ue))});for(at=0;at<Nt.length;at++)if((ft=Nt[at]).type==="byname"&&!Fe._frameHash[ft.data.name])return w.warn('animate failure: frame not found: "'+ft.data.name+'"'),void Ze();["next","immediate"].indexOf(Re.mode)!==-1&&function(){if(Fe._frameQueue.length!==0){for(;Fe._frameQueue.length;){var It=Fe._frameQueue.pop();It.onInterrupt&&It.onInterrupt()}Le.emit("plotly_animationinterrupted",[])}}(),Re.direction==="reverse"&&Nt.reverse();var Vt=Le._fullLayout._currentFrame;if(Vt&&Re.fromcurrent){var jt=-1;for(at=0;at<Nt.length;at++)if((ft=Nt[at]).type==="byname"&&ft.name===Vt){jt=at;break}if(jt>0&&jt<Nt.length-1){var Kt=[];for(at=0;at<Nt.length;at++)ft=Nt[at],(Nt[at].type!=="byname"||at>jt)&&Kt.push(ft);Nt=Kt}}Nt.length>0?function(It){if(It.length!==0){for(var $e=0;$e<It.length;$e++){var tt;tt=It[$e].type==="byname"?i.computeFrame(Le,It[$e].name):It[$e].data;var Xe=je($e),et=Ee($e);et.duration=Math.min(et.duration,Xe.duration);var ht={frame:tt,name:It[$e].name,frameOpts:Xe,transitionOpts:et};$e===It.length-1&&(ht.onComplete=Be(Ie,2),ht.onInterrupt=Ze),Fe._frameQueue.push(ht)}Re.mode==="immediate"&&(Fe._lastFrameAt=-1/0),Fe._animationRaf||He()}}(Nt):(Le.emit("plotly_animated"),Ie())})},T.addFrames=function(Le,Ue,Re){if(Le=w.getGraphDiv(Le),Ue==null)return Promise.resolve();if(!w.isPlotDiv(Le))throw new Error("This element is not a Plotly plot: "+Le+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var Fe,ve,ke,Ee,je=Le._transitionData._frames,Be=Le._transitionData._frameHash;if(!Array.isArray(Ue))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+Ue);var Ie=je.length+2*Ue.length,Ze=[],He={};for(Fe=Ue.length-1;Fe>=0;Fe--)if(w.isPlainObject(Ue[Fe])){var at=Ue[Fe].name,ft=(Be[at]||He[at]||{}).name,ut=Ue[Fe].name,_t=Be[ft]||He[ft];ft&&ut&&typeof ut=="number"&&_t&&M<5&&(M++,w.warn('addFrames: overwriting frame "'+(Be[ft]||He[ft]).name+'" with a frame whose name of type "number" also equates to "'+ft+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),M===5&&w.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.")),He[at]={name:at},Ze.push({frame:i.supplyFrameDefaults(Ue[Fe]),index:Re&&Re[Fe]!==void 0&&Re[Fe]!==null?Re[Fe]:Ie+Fe})}Ze.sort(function(It,$e){return It.index>$e.index?-1:It.index<$e.index?1:0});var Nt=[],Tt=[],st=je.length;for(Fe=Ze.length-1;Fe>=0;Fe--){if(typeof(ve=Ze[Fe].frame).name=="number"&&w.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!ve.name)for(;Be[ve.name="frame "+Le._transitionData._counter++];);if(Be[ve.name]){for(ke=0;ke<je.length&&(je[ke]||{}).name!==ve.name;ke++);Nt.push({type:"replace",index:ke,value:ve}),Tt.unshift({type:"replace",index:ke,value:je[ke]})}else Ee=Math.max(0,Math.min(Ze[Fe].index,st)),Nt.push({type:"insert",index:Ee,value:ve}),Tt.unshift({type:"delete",index:Ee}),st++}var lt=i.modifyFrames,Vt=i.modifyFrames,jt=[Le,Tt],Kt=[Le,Nt];return a&&a.add(Le,lt,jt,Vt,Kt),i.modifyFrames(Le,Nt)},T.deleteFrames=function(Le,Ue){if(Le=w.getGraphDiv(Le),!w.isPlotDiv(Le))throw new Error("This element is not a Plotly plot: "+Le);var Re,Fe,ve=Le._transitionData._frames,ke=[],Ee=[];if(!Ue)for(Ue=[],Re=0;Re<ve.length;Re++)Ue.push(Re);for((Ue=Ue.slice()).sort(),Re=Ue.length-1;Re>=0;Re--)Fe=Ue[Re],ke.push({type:"delete",index:Fe}),Ee.unshift({type:"insert",index:Fe,value:ve[Fe]});var je=i.modifyFrames,Be=i.modifyFrames,Ie=[Le,Ee],Ze=[Le,ke];return a&&a.add(Le,je,Ie,Be,Ze),i.modifyFrames(Le,ke)},T.addTraces=function Le(Ue,Re,Fe){Ue=w.getGraphDiv(Ue);var ve,ke,Ee=[],je=T.deleteTraces,Be=Le,Ie=[Ue,Ee],Ze=[Ue,Re];for(function(He,at,ft){var ut,_t;if(!Array.isArray(He.data))throw new Error("gd.data must be an array.");if(at===void 0)throw new Error("traces must be defined.");for(Array.isArray(at)||(at=[at]),ut=0;ut<at.length;ut++)if(typeof(_t=at[ut])!="object"||Array.isArray(_t)||_t===null)throw new Error("all values in traces array must be non-array objects");if(ft===void 0||Array.isArray(ft)||(ft=[ft]),ft!==void 0&&ft.length!==at.length)throw new Error("if indices is specified, traces.length must equal indices.length")}(Ue,Re,Fe),Array.isArray(Re)||(Re=[Re]),Re=Re.map(function(He){return w.extendFlat({},He)}),_.cleanData(Re),ve=0;ve<Re.length;ve++)Ue.data.push(Re[ve]);for(ve=0;ve<Re.length;ve++)Ee.push(-Re.length+ve);if(Fe===void 0)return ke=T.redraw(Ue),a.add(Ue,je,Ie,Be,Ze),ke;Array.isArray(Fe)||(Fe=[Fe]);try{X(Ue,Ee,Fe)}catch(He){throw Ue.data.splice(Ue.data.length-Re.length,Re.length),He}return a.startSequence(Ue),a.add(Ue,je,Ie,Be,Ze),ke=T.moveTraces(Ue,Ee,Fe),a.stopSequence(Ue),ke},T.deleteTraces=function Le(Ue,Re){Ue=w.getGraphDiv(Ue);var Fe,ve,ke=[],Ee=T.addTraces,je=Le,Be=[Ue,ke,Re],Ie=[Ue,Re];if(Re===void 0)throw new Error("indices must be an integer or array of integers.");for(Array.isArray(Re)||(Re=[Re]),j(Ue,Re,"indices"),(Re=q(Re,Ue.data.length-1)).sort(w.sorterDes),Fe=0;Fe<Re.length;Fe+=1)ve=Ue.data.splice(Re[Fe],1)[0],ke.push(ve);var Ze=T.redraw(Ue);return a.add(Ue,Ee,Be,je,Ie),Ze},T.extendTraces=function Le(Ue,Re,Fe,ve){var ke=F(Ue=w.getGraphDiv(Ue),Re,Fe,ve,function(Be,Ie,Ze){var He,at;if(w.isTypedArray(Be))if(Ze<0){var ft=new Be.constructor(0),ut=W(Be,Ie);Ze<0?(He=ut,at=ft):(He=ft,at=ut)}else if(He=new Be.constructor(Ze),at=new Be.constructor(Be.length+Ie.length-Ze),Ze===Ie.length)He.set(Ie),at.set(Be);else if(Ze<Ie.length){var _t=Ie.length-Ze;He.set(Ie.subarray(_t)),at.set(Be),at.set(Ie.subarray(0,_t),Be.length)}else{var Nt=Ze-Ie.length,Tt=Be.length-Nt;He.set(Be.subarray(Tt)),He.set(Ie,Nt),at.set(Be.subarray(0,Tt))}else He=Be.concat(Ie),at=Ze>=0&&Ze<He.length?He.splice(0,He.length-Ze):[];return[He,at]}),Ee=T.redraw(Ue),je=[Ue,ke.update,Fe,ke.maxPoints];return a.add(Ue,T.prependTraces,je,Le,arguments),Ee},T.moveTraces=function Le(Ue,Re,Fe){var ve,ke=[],Ee=[],je=Le,Be=Le,Ie=[Ue=w.getGraphDiv(Ue),Fe,Re],Ze=[Ue,Re,Fe];if(X(Ue,Re,Fe),Re=Array.isArray(Re)?Re:[Re],Fe===void 0)for(Fe=[],ve=0;ve<Re.length;ve++)Fe.push(-Re.length+ve);for(Fe=Array.isArray(Fe)?Fe:[Fe],Re=q(Re,Ue.data.length-1),Fe=q(Fe,Ue.data.length-1),ve=0;ve<Ue.data.length;ve++)Re.indexOf(ve)===-1&&ke.push(Ue.data[ve]);for(ve=0;ve<Re.length;ve++)Ee.push({newIndex:Fe[ve],trace:Ue.data[Re[ve]]});for(Ee.sort(function(at,ft){return at.newIndex-ft.newIndex}),ve=0;ve<Ee.length;ve+=1)ke.splice(Ee[ve].newIndex,0,Ee[ve].trace);Ue.data=ke;var He=T.redraw(Ue);return a.add(Ue,je,Ie,Be,Ze),He},T.prependTraces=function Le(Ue,Re,Fe,ve){var ke=F(Ue=w.getGraphDiv(Ue),Re,Fe,ve,function(Be,Ie,Ze){var He,at;if(w.isTypedArray(Be))if(Ze<=0){var ft=new Be.constructor(0),ut=W(Ie,Be);Ze<0?(He=ut,at=ft):(He=ft,at=ut)}else if(He=new Be.constructor(Ze),at=new Be.constructor(Be.length+Ie.length-Ze),Ze===Ie.length)He.set(Ie),at.set(Be);else if(Ze<Ie.length){var _t=Ie.length-Ze;He.set(Ie.subarray(0,_t)),at.set(Ie.subarray(_t)),at.set(Be,_t)}else{var Nt=Ze-Ie.length;He.set(Ie),He.set(Be.subarray(0,Nt),Ie.length),at.set(Be.subarray(Nt))}else He=Ie.concat(Be),at=Ze>=0&&Ze<He.length?He.splice(Ze,He.length):[];return[He,at]}),Ee=T.redraw(Ue),je=[Ue,ke.update,Fe,ke.maxPoints];return a.add(Ue,T.extendTraces,je,Le,arguments),Ee},T.newPlot=function(Le,Ue,Re,Fe){return Le=w.getGraphDiv(Le),i.cleanPlot([],{},Le._fullData||[],Le._fullLayout||{}),i.purge(Le),T._doPlot(Le,Ue,Re,Fe)},T._doPlot=function(Le,Ue,Re,Fe){var ve;if(Le=w.getGraphDiv(Le),c.init(Le),w.isPlainObject(Ue)){var ke=Ue;Ue=ke.data,Re=ke.layout,Fe=ke.config,ve=ke.frames}if(c.triggerHandler(Le,"plotly_beforeplot",[Ue,Re,Fe])===!1)return Promise.reject();Ue||Re||w.isPlotDiv(Le)||w.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",Le),A(Le,Fe),Re||(Re={}),k.select(Le).classed("js-plotly-plot",!0),d.makeTester(),Array.isArray(Le._promises)||(Le._promises=[]);var Ee=(Le.data||[]).length===0&&Array.isArray(Ue);Array.isArray(Ue)&&(_.cleanData(Ue),Ee?Le.data=Ue:Le.data.push.apply(Le.data,Ue),Le.empty=!1),Le.layout&&!Ee||(Le.layout=_.cleanLayout(Re)),i.supplyDefaults(Le);var je=Le._fullLayout,Be=je._has("cartesian");je._replotting=!0,(Ee||je._shouldCreateBgLayer)&&(function(Tt){var st=k.select(Tt),lt=Tt._fullLayout;if(lt._calcInverseTransform=ze,lt._calcInverseTransform(Tt),lt._container=st.selectAll(".plot-container").data([0]),lt._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),lt._paperdiv=lt._container.selectAll(".svg-container").data([0]),lt._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),lt._glcontainer=lt._paperdiv.selectAll(".gl-container").data([{}]),lt._glcontainer.enter().append("div").classed("gl-container",!0),lt._paperdiv.selectAll(".main-svg").remove(),lt._paperdiv.select(".modebar-container").remove(),lt._paper=lt._paperdiv.insert("svg",":first-child").classed("main-svg",!0),lt._toppaper=lt._paperdiv.append("svg").classed("main-svg",!0),lt._modebardiv=lt._paperdiv.append("div"),delete lt._modeBar,lt._hoverpaper=lt._paperdiv.append("svg").classed("main-svg",!0),!lt._uid){var Vt={};k.selectAll("defs").each(function(){this.id&&(Vt[this.id.split("-")[1]]=1)}),lt._uid=w.randstr(Vt)}lt._paperdiv.selectAll(".main-svg").attr(C.svgAttrs),lt._defs=lt._paper.append("defs").attr("id","defs-"+lt._uid),lt._clips=lt._defs.append("g").classed("clips",!0),lt._topdefs=lt._toppaper.append("defs").attr("id","topdefs-"+lt._uid),lt._topclips=lt._topdefs.append("g").classed("clips",!0),lt._bgLayer=lt._paper.append("g").classed("bglayer",!0),lt._draggers=lt._paper.append("g").classed("draglayer",!0);var jt=lt._paper.append("g").classed("layer-below",!0);lt._imageLowerLayer=jt.append("g").classed("imagelayer",!0),lt._shapeLowerLayer=jt.append("g").classed("shapelayer",!0),lt._cartesianlayer=lt._paper.append("g").classed("cartesianlayer",!0),lt._polarlayer=lt._paper.append("g").classed("polarlayer",!0),lt._smithlayer=lt._paper.append("g").classed("smithlayer",!0),lt._ternarylayer=lt._paper.append("g").classed("ternarylayer",!0),lt._geolayer=lt._paper.append("g").classed("geolayer",!0),lt._funnelarealayer=lt._paper.append("g").classed("funnelarealayer",!0),lt._pielayer=lt._paper.append("g").classed("pielayer",!0),lt._iciclelayer=lt._paper.append("g").classed("iciclelayer",!0),lt._treemaplayer=lt._paper.append("g").classed("treemaplayer",!0),lt._sunburstlayer=lt._paper.append("g").classed("sunburstlayer",!0),lt._indicatorlayer=lt._toppaper.append("g").classed("indicatorlayer",!0),lt._glimages=lt._paper.append("g").classed("glimages",!0);var Kt=lt._toppaper.append("g").classed("layer-above",!0);lt._imageUpperLayer=Kt.append("g").classed("imagelayer",!0),lt._shapeUpperLayer=Kt.append("g").classed("shapelayer",!0),lt._selectionLayer=lt._toppaper.append("g").classed("selectionlayer",!0),lt._infolayer=lt._toppaper.append("g").classed("infolayer",!0),lt._menulayer=lt._toppaper.append("g").classed("menulayer",!0),lt._zoomlayer=lt._toppaper.append("g").classed("zoomlayer",!0),lt._hoverlayer=lt._hoverpaper.append("g").classed("hoverlayer",!0),lt._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),Tt.emit("plotly_framework")}(Le),je._shouldCreateBgLayer&&delete je._shouldCreateBgLayer),d.initGradients(Le),d.initPatterns(Le),Ee&&s.saveShowSpikeInitial(Le);var Ie=!Le.calcdata||Le.calcdata.length!==(Le._fullData||[]).length;Ie&&i.doCalcdata(Le);for(var Ze=0;Ze<Le.calcdata.length;Ze++)Le.calcdata[Ze][0].trace=Le._fullData[Ze];Le._context.responsive?Le._responsiveChartHandler||(Le._responsiveChartHandler=function(){w.isHidden(Le)||i.resize(Le)},window.addEventListener("resize",Le._responsiveChartHandler)):w.clearResponsive(Le);var He=w.extendFlat({},je._size),at=0;function ft(){if(i.clearAutoMarginIds(Le),S.drawMarginPushers(Le),s.allowAutoMargin(Le),Le._fullLayout.title.text&&Le._fullLayout.title.automargin&&i.allowAutoMargin(Le,"title.automargin"),je._has("pie"))for(var Tt=Le._fullData,st=0;st<Tt.length;st++){var lt=Tt[st];lt.type==="pie"&&lt.automargin&&i.allowAutoMargin(Le,"pie."+lt.uid+".automargin")}return i.doAutoMargin(Le),i.previousPromises(Le)}function ut(){Le._transitioning||(S.doAutoRangeAndConstraints(Le),Ee&&s.saveRangeInitial(Le),t.getComponentMethod("rangeslider","calcAutorange")(Le))}var _t=[i.previousPromises,function(){if(ve)return T.addFrames(Le,ve)},function Tt(){for(var st=je._basePlotModules,lt=0;lt<st.length;lt++)st[lt].drawFramework&&st[lt].drawFramework(Le);!je._glcanvas&&je._has("gl")&&(je._glcanvas=je._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],function(It){return It.key}),je._glcanvas.enter().append("canvas").attr("class",function(It){return"gl-canvas gl-canvas-"+It.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var Vt=Le._context.plotGlPixelRatio;if(je._glcanvas){je._glcanvas.attr("width",je.width*Vt).attr("height",je.height*Vt).style("width",je.width+"px").style("height",je.height+"px");var jt=je._glcanvas.data()[0].regl;if(jt&&(Math.floor(je.width*Vt)!==jt._gl.drawingBufferWidth||Math.floor(je.height*Vt)!==jt._gl.drawingBufferHeight)){var Kt="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(!at)return w.log(Kt+" Clearing graph and plotting again."),i.cleanPlot([],{},Le._fullData,je),i.supplyDefaults(Le),je=Le._fullLayout,i.doCalcdata(Le),at++,Tt();w.error(Kt)}}return je.modebar.orientation==="h"?je._modebardiv.style("height",null).style("width","100%"):je._modebardiv.style("width",null).style("height",je.height+"px"),i.previousPromises(Le)},ft,function(){if(i.didMarginChange(He,je._size))return w.syncOrAsync([ft,S.layoutStyles],Le)}];Be&&_t.push(function(){if(Ie)return w.syncOrAsync([t.getComponentMethod("shapes","calcAutorange"),t.getComponentMethod("annotations","calcAutorange"),ut],Le);ut()}),_t.push(S.layoutStyles),Be&&_t.push(function(){return s.draw(Le,Ee?"":"redraw")},function(Tt){var st=Tt._fullLayout._insideTickLabelsUpdaterange;if(st)return Tt._fullLayout._insideTickLabelsUpdaterange=void 0,ne(Tt,st).then(function(){s.saveRangeInitial(Tt,!0)})}),_t.push(S.drawData,S.finalDraw,f,i.addLinks,i.rehover,i.redrag,i.reselect,i.doAutoMargin,i.previousPromises);var Nt=w.syncOrAsync(_t,Le);return Nt&&Nt.then||(Nt=Promise.resolve()),Nt.then(function(){return N(Le),Le})},T.purge=function(Le){var Ue=(Le=w.getGraphDiv(Le))._fullLayout||{},Re=Le._fullData||[];return i.cleanPlot([],{},Re,Ue),i.purge(Le),c.purge(Le),Ue._container&&Ue._container.remove(),delete Le._context,Le},T.react=function(Le,Ue,Re,Fe){var ve,ke;Le=w.getGraphDiv(Le),_.clearPromiseQueue(Le);var Ee=Le._fullData,je=Le._fullLayout;if(w.isPlotDiv(Le)&&Ee&&je){if(w.isPlainObject(Ue)){var Be=Ue;Ue=Be.data,Re=Be.layout,Fe=Be.config,ve=Be.frames}var Ie=!1;if(Fe){var Ze=w.extendDeep({},Le._context);Le._context=void 0,A(Le,Fe),Ie=xe(Ze,Le._context)}Le.data=Ue||[],_.cleanData(Le.data),Le.layout=Re||{},_.cleanLayout(Le.layout),function(dt,De,Ge,pt){var nt,bt,wt,St,vt,Pt,Lt,Ct,Rt,At,Bt=pt._preGUI,nn=[],hn={},Ht={};for(nt in Bt){if(vt=Se(nt,we)){if(Rt=vt.head,At=vt.tail,bt=vt.attr||Rt+".uirevision",(St=(wt=b(pt,bt).get())&&Pe(bt,De))&&St===wt){if((Pt=Bt[nt])===null&&(Pt=void 0),pe(Ct=(Lt=b(De,nt)).get(),Pt)){Ct===void 0&&At==="autorange"&&nn.push(Rt),Lt.set(B(b(pt,nt).get()));continue}if(At==="autorange"||At.substr(0,6)==="range["){var Qt=Bt[Rt+".range[0]"],un=Bt[Rt+".range[1]"],In=Bt[Rt+".autorange"];if(In||In===null&&Qt===null&&un===null){if(!(Rt in hn)){var zn=b(De,Rt).get();hn[Rt]=zn&&(zn.autorange||zn.autorange!==!1&&(!zn.range||zn.range.length!==2))}if(hn[Rt]){Lt.set(B(b(pt,nt).get()));continue}}}}}else w.warn("unrecognized GUI edit: "+nt);delete Bt[nt],vt&&vt.tail.substr(0,6)==="range["&&(Ht[vt.head]=1)}for(var wn=0;wn<nn.length;wn++){var rn=nn[wn];if(Ht[rn]){var vn=b(De,rn).get();vn&&delete vn.autorange}}var dn=pt._tracePreGUI;for(var _n in dn){var Un,An=dn[_n],Wn=null;for(nt in An){if(!Wn){var Gn=Ne(_n,Ge);if(Gn<0){delete dn[_n];break}var jn=Oe(_n,dt,(Un=Ge[Gn]._fullInput).index);if(jn<0){delete dn[_n];break}Wn=dt[jn]}if(vt=Se(nt,Ce)){if(vt.attr?St=(wt=b(pt,vt.attr).get())&&Pe(vt.attr,De):(wt=Un.uirevision,(St=Wn.uirevision)===void 0&&(St=De.uirevision)),St&&St===wt&&((Pt=An[nt])===null&&(Pt=void 0),pe(Ct=(Lt=b(Wn,nt)).get(),Pt))){Lt.set(B(b(Un,nt).get()));continue}}else w.warn("unrecognized GUI edit: "+nt+" in trace uid "+_n);delete An[nt]}}}(Le.data,Le.layout,Ee,je),i.supplyDefaults(Le,{skipUpdateCalc:!0});var He=Le._fullData,at=Le._fullLayout,ft=at.datarevision===void 0,ut=at.transition,_t=function(dt,De,Ge,pt,nt){var bt=O.layoutFlags();return bt.arrays={},bt.rangesAltered={},bt.nChanges=0,bt.nChangesAnim=0,fe(De,Ge,[],{getValObject:function(wt){return o.getLayoutValObject(Ge,wt)},flags:bt,immutable:pt,transition:nt,gd:dt}),(bt.plot||bt.calc)&&(bt.layoutReplot=!0),nt&&bt.nChanges&&bt.nChangesAnim&&(bt.anim=bt.nChanges===bt.nChangesAnim?"all":"some"),bt}(Le,je,at,ft,ut),Nt=_t.newDataRevision,Tt=function(dt,De,Ge,pt,nt,bt){var wt=De.length===Ge.length;if(!nt&&!wt)return{fullReplot:!0,calc:!0};var St,vt,Pt=O.traceFlags();Pt.arrays={},Pt.nChanges=0,Pt.nChangesAnim=0;var Lt={getValObject:function(Rt){var At=o.getTraceValObject(vt,Rt);return!vt._module.animatable&&At.anim&&(At.anim=!1),At},flags:Pt,immutable:pt,transition:nt,newDataRevision:bt,gd:dt},Ct={};for(St=0;St<De.length;St++)if(Ge[St]){if(vt=Ge[St]._fullInput,i.hasMakesDataTransform(vt)&&(vt=Ge[St]),Ct[vt.uid])continue;Ct[vt.uid]=1,fe(De[St]._fullInput,vt,[],Lt)}return(Pt.calc||Pt.plot)&&(Pt.fullReplot=!0),nt&&Pt.nChanges&&Pt.nChangesAnim&&(Pt.anim=Pt.nChanges===Pt.nChangesAnim&&wt?"all":"some"),Pt}(Le,Ee,He,ft,ut,Nt);if(me(Le)&&(_t.layoutReplot=!0),Tt.calc||_t.calc){Le.calcdata=void 0;for(var st=Object.getOwnPropertyNames(at),lt=0;lt<st.length;lt++){var Vt=st[lt],jt=Vt.substring(0,5);if(jt==="xaxis"||jt==="yaxis"){var Kt=at[Vt]._emptyCategories;Kt&&Kt()}}}else i.supplyDefaultsUpdateCalc(Le.calcdata,He);var It=[];if(ve&&(Le._transitionData={},i.createTransitionData(Le),It.push(function(){return T.addFrames(Le,ve)})),at.transition&&!Ie&&(Tt.anim||_t.anim))_t.ticks&&It.push(S.doTicksRelayout),i.doCalcdata(Le),S.doAutoRangeAndConstraints(Le),It.push(function(){return i.transitionFromReact(Le,Tt,_t,je)});else if(Tt.fullReplot||_t.layoutReplot||Ie)Le._fullLayout._skipDefaults=!0,It.push(T._doPlot);else{for(var $e in _t.arrays){var tt=_t.arrays[$e];if(tt.length){var Xe=t.getComponentMethod($e,"drawOne");if(Xe!==w.noop)for(var et=0;et<tt.length;et++)Xe(Le,tt[et]);else{var ht=t.getComponentMethod($e,"draw");if(ht===w.noop)throw new Error("cannot draw components: "+$e);ht(Le)}}}It.push(i.previousPromises),Tt.style&&It.push(S.doTraceStyle),(Tt.colorbars||_t.colorbars)&&It.push(S.doColorBars),_t.legend&&It.push(S.doLegend),_t.layoutstyle&&It.push(S.layoutStyles),_t.axrange&&te(It),_t.ticks&&It.push(S.doTicksRelayout),_t.modebar&&It.push(S.doModeBar),_t.camera&&It.push(S.doCamera),It.push(N)}It.push(i.rehover,i.redrag,i.reselect),(ke=w.syncOrAsync(It,Le))&&ke.then||(ke=Promise.resolve(Le))}else ke=T.newPlot(Le,Ue,Re,Fe);return ke.then(function(){return Le.emit("plotly_react",{data:Ue,layout:Re}),Le})},T.redraw=function(Le){if(Le=w.getGraphDiv(Le),!w.isPlotDiv(Le))throw new Error("This element is not a Plotly plot: "+Le);return _.cleanData(Le.data),_.cleanLayout(Le.layout),Le.calcdata=void 0,T._doPlot(Le).then(function(){return Le.emit("plotly_redraw"),Le})},T.relayout=ne,T.restyle=Y,T.setPlotConfig=function(Le){return w.extendFlat(m,Le)},T.update=be,T._guiRelayout=_e(ne),T._guiRestyle=_e(Y),T._guiUpdate=_e(be),T._storeDirectGUIEdit=function(Le,Ue,Re){for(var Fe in Re)J(Fe,b(Le,Fe).get(),Re[Fe],Ue)}},20556:function(L){var T={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"],extras:[!0,!1],dflt:"gl3d+geo+mapbox"},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:{}}},e={};(function k(v,n){for(var w in v){var b=v[w];b.valType?n[w]=b.dflt:(n[w]||(n[w]={}),k(b,n[w]))}})(T,e),L.exports={configAttributes:T,dfltConfig:e}},73060:function(L,T,e){var k=e(24040),v=e(3400),n=e(45464),w=e(64859),b=e(16672),c=e(85656),a=e(20556).configAttributes,t=e(67824),o=v.extendDeepAll,i=v.isPlainObject,s=v.isArrayOrTypedArray,l=v.nestedProperty,u=v.valObjectMeta,d="_isSubplotObj",g="_isLinkedToArray",f="_deprecated",C=[d,g,"_arrayAttrRegexps",f];function y(h,M,N){if(!h)return!1;if(h._isLinkedToArray){if(m(M[N]))N++;else if(N<M.length)return!1}for(;N<M.length;N++){var P=h[M[N]];if(!i(P)||(h=P,N===M.length-1))break;if(h._isLinkedToArray){if(!m(M[++N]))return!1}else if(h.valType==="info_array"){var R=M[++N];if(!m(R))return!1;var A=h.items;if(Array.isArray(A)){if(R>=A.length)return!1;if(h.dimensions===2){if(N++,M.length===N)return h;var q=M[N];if(!m(q))return!1;h=A[R][q]}else h=A[R]}else h=A}}return h}function m(h){return h===Math.round(h)&&h>=0}function x(){var h,M,N={};for(h in o(N,w),k.subplotsRegistry)if((M=k.subplotsRegistry[h]).layoutAttributes)if(Array.isArray(M.attr))for(var P=0;P<M.attr.length;P++)S(N,M,M.attr[P]);else S(N,M,M.attr==="subplot"?M.name:M.attr);for(h in k.componentsRegistry){var R=(M=k.componentsRegistry[h]).schema;if(R&&(R.subplots||R.layout)){var A=R.subplots;if(A&&A.xaxis&&!A.yaxis)for(var q in A.xaxis)delete N.yaxis[q];delete N.xaxis.shift,delete N.xaxis.autoshift}else M.name==="colorscale"?o(N,M.layoutAttributes):M.layoutAttributes&&O(N,M.layoutAttributes,M.name)}return{layoutAttributes:_(N)}}function _(h){return function(M){T.crawl(M,function(N,P,R){T.isValObject(N)?N.arrayOk!==!0&&N.valType!=="data_array"||(R[P+"src"]={valType:"string",editType:"none"}):i(N)&&(N.role="object")})}(h),function(M){T.crawl(M,function(N,P,R){if(N){var A=N[g];A&&(delete N[g],R[P]={items:{}},R[P].items[A]=N,R[P].role="object")}})}(h),function(M){(function N(P){for(var R in P)if(i(P[R]))N(P[R]);else if(Array.isArray(P[R]))for(var A=0;A<P[R].length;A++)N(P[R][A]);else P[R]instanceof RegExp&&(P[R]=P[R].toString())})(M)}(h),h}function S(h,M,N){var P=l(h,N),R=o({},M.layoutAttributes);R[d]=!0,P.set(R)}function O(h,M,N){var P=l(h,N);P.set(o(P.get()||{},M))}T.IS_SUBPLOT_OBJ=d,T.IS_LINKED_TO_ARRAY=g,T.DEPRECATED=f,T.UNDERSCORE_ATTRS=C,T.get=function(){var h={};k.allTypes.forEach(function(P){h[P]=function(R){var A,q;q=(A=k.modules[R]._module).basePlotModule;var j={type:null},X=o({},n),F=o({},A.attributes);T.crawl(F,function(B,G,J,se,re){l(X,re).set(void 0),B===void 0&&l(F,re).set(void 0)}),o(j,X),k.traceIs(R,"noOpacity")&&delete j.opacity,k.traceIs(R,"showLegend")||(delete j.showlegend,delete j.legendgroup),k.traceIs(R,"noHover")&&(delete j.hoverinfo,delete j.hoverlabel),A.selectPoints||delete j.selectedpoints,o(j,F),q.attributes&&o(j,q.attributes),j.type=R;var W={meta:A.meta||{},categories:A.categories||{},animatable:!!A.animatable,type:R,attributes:_(j)};if(A.layoutAttributes){var Y={};o(Y,A.layoutAttributes),W.layoutAttributes=_(Y)}return A.animatable||T.crawl(W,function(B){T.isValObject(B)&&"anim"in B&&delete B.anim}),W}(P)});var M,N={};return Object.keys(k.transformsRegistry).forEach(function(P){N[P]=function(R){var A=k.transformsRegistry[R],q=o({},A.attributes);return Object.keys(k.componentsRegistry).forEach(function(j){var X=k.componentsRegistry[j];X.schema&&X.schema.transforms&&X.schema.transforms[R]&&Object.keys(X.schema.transforms[R]).forEach(function(F){O(q,X.schema.transforms[R][F],F)})}),{attributes:_(q)}}(P)}),{defs:{valObjects:u,metaKeys:C.concat(["description","role","editType","impliedEdits"]),editType:{traces:t.traces,layout:t.layout},impliedEdits:{}},traces:h,layout:x(),transforms:N,frames:(M={frames:o({},b)},_(M),M.frames),animation:_(c),config:_(a)}},T.crawl=function(h,M,N,P){var R=N||0;P=P||"",Object.keys(h).forEach(function(A){var q=h[A];if(C.indexOf(A)===-1){var j=(P?P+".":"")+A;M(q,A,h,R,j),T.isValObject(q)||i(q)&&A!=="impliedEdits"&&T.crawl(q,M,R+1,j)}})},T.isValObject=function(h){return h&&h.valType!==void 0},T.findArrayAttributes=function(h){var M,N,P=[],R=[],A=[];function q(B,G,J,se){R=R.slice(0,se).concat([G]),A=A.slice(0,se).concat([B&&B._isLinkedToArray]),B&&(B.valType==="data_array"||B.arrayOk===!0)&&(R[se-1]!=="colorbar"||G!=="ticktext"&&G!=="tickvals")&&j(M,0,"")}function j(B,G,J){var se=B[R[G]],re=J+R[G];if(G===R.length-1)s(se)&&P.push(N+re);else if(A[G]){if(Array.isArray(se))for(var ne=0;ne<se.length;ne++)i(se[ne])&&j(se[ne],G+1,re+"["+ne+"].")}else i(se)&&j(se,G+1,re+".")}M=h,N="",T.crawl(n,q),h._module&&h._module.attributes&&T.crawl(h._module.attributes,q);var X=h.transforms;if(X)for(var F=0;F<X.length;F++){var W=X[F],Y=W._module;Y&&(N="transforms["+F+"].",M=W,T.crawl(Y.attributes,q))}return P},T.getTraceValObject=function(h,M){var N,P,R=M[0],A=1;if(R==="transforms"){if(M.length===1)return n.transforms;var q=h.transforms;if(!Array.isArray(q)||!q.length)return!1;var j=M[1];if(!m(j)||j>=q.length)return!1;P=(N=(k.transformsRegistry[q[j].type]||{}).attributes)&&N[M[2]],A=3}else{var X=h._module;if(X||(X=(k.modules[h.type||n.type.dflt]||{})._module),!X)return!1;if(!(P=(N=X.attributes)&&N[R])){var F=X.basePlotModule;F&&F.attributes&&(P=F.attributes[R])}P||(P=n[R])}return y(P,M,A)},T.getLayoutValObject=function(h,M){var N=function(P,R){var A,q,j,X,F=P._basePlotModules;if(F){var W;for(A=0;A<F.length;A++){if((j=F[A]).attrRegex&&j.attrRegex.test(R)){if(j.layoutAttrOverrides)return j.layoutAttrOverrides;!W&&j.layoutAttributes&&(W=j.layoutAttributes)}var Y=j.baseLayoutAttrOverrides;if(Y&&R in Y)return Y[R]}if(W)return W}var B=P._modules;if(B){for(A=0;A<B.length;A++)if((X=B[A].layoutAttributes)&&R in X)return X[R]}for(q in k.componentsRegistry){if((j=k.componentsRegistry[q]).name==="colorscale"&&R.indexOf("coloraxis")===0)return j.layoutAttributes[R];if(!j.schema&&R===j.name)return j.layoutAttributes}return R in w&&w[R]}(h,M[0]);return y(N,M,1)}},31780:function(L,T,e){var k=e(3400),v=e(45464),n="templateitemname",w={name:{valType:"string",editType:"none"}};function b(a){return a&&typeof a=="string"}function c(a){var t=a.length-1;return a.charAt(t)!=="s"&&k.warn("bad argument to arrayDefaultKey: "+a),a.substr(0,a.length-1)+"defaults"}w[n]={valType:"string",editType:"calc"},T.templatedArray=function(a,t){return t._isLinkedToArray=a,t.name=w.name,t[n]=w[n],t},T.traceTemplater=function(a){var t,o,i={};for(t in a)o=a[t],Array.isArray(o)&&o.length&&(i[t]=0);return{newTrace:function(s){var l={type:t=k.coerce(s,{},v,"type"),_template:null};if(t in i){o=a[t];var u=i[t]%o.length;i[t]++,l._template=o[u]}return l}}},T.newContainer=function(a,t,o){var i=a._template,s=i&&(i[t]||o&&i[o]);return k.isPlainObject(s)||(s=null),a[t]={_template:s}},T.arrayTemplater=function(a,t,o){var i=a._template,s=i&&i[c(t)],l=i&&i[t];Array.isArray(l)&&l.length||(l=[]);var u={};return{newItem:function(d){var g={name:d.name,_input:d},f=g[n]=d[n];if(!b(f))return g._template=s,g;for(var C=0;C<l.length;C++){var y=l[C];if(y.name===f)return u[f]=1,g._template=y,g}return g[o]=d[o]||!1,g._template=!1,g},defaultItems:function(){for(var d=[],g=0;g<l.length;g++){var f=l[g],C=f.name;if(b(C)&&!u[C]){var y={_template:f,name:C,_input:{_templateitemname:C}};y[n]=f[n],d.push(y),u[C]=1}}return d}}},T.arrayDefaultKey=c,T.arrayEditor=function(a,t,o){var i=(k.nestedProperty(a,t).get()||[]).length,s=o._index,l=s>=i&&(o._input||{})._templateitemname;l&&(s=i);var u,d=t+"["+s+"]";function g(){u={},l&&(u[d]={},u[d][n]=l)}function f(y,m){l?k.nestedProperty(u[d],y).set(m):u[d+"."+y]=m}function C(){var y=u;return g(),y}return g(),{modifyBase:function(y,m){u[y]=m},modifyItem:f,getUpdateObj:C,applyUpdate:function(y,m){y&&f(y,m);var x=C();for(var _ in x)k.nestedProperty(a,_).set(x[_])}}}},39172:function(L,T,e){var k=e(33428),v=e(24040),n=e(7316),w=e(3400),b=e(72736),c=e(73696),a=e(76308),t=e(43616),o=e(81668),i=e(45460),s=e(54460),l=e(84284),u=e(71888),d=u.enforce,g=u.clean,f=e(19280).doAutoRange,C="start";function y(O,h,M){for(var N=0;N<M.length;N++){var P=M[N][0],R=M[N][1];if(!(P[0]>=O[1]||P[1]<=O[0])&&R[0]<h[1]&&R[1]>h[0])return!0}return!1}function m(O){var h,M,N,P,R,A,q=O._fullLayout,j=q._size,X=j.p,F=s.list(O,"",!0);if(q._paperdiv.style({width:O._context.responsive&&q.autosize&&!O._context._hasZeroWidth&&!O.layout.width?"100%":q.width+"px",height:O._context.responsive&&q.autosize&&!O._context._hasZeroHeight&&!O.layout.height?"100%":q.height+"px"}).selectAll(".main-svg").call(t.setSize,q.width,q.height),O._context.setBackground(O,q.paper_bgcolor),T.drawMainTitle(O),i.manage(O),!q._has("cartesian"))return n.previousPromises(O);function W(Ie,Ze,He){var at=Ie._lw/2;return Ie._id.charAt(0)==="x"?Ze?He==="top"?Ze._offset-X-at:Ze._offset+Ze._length+X+at:j.t+j.h*(1-(Ie.position||0))+at%1:Ze?He==="right"?Ze._offset+Ze._length+X+at:Ze._offset-X-at:j.l+j.w*(Ie.position||0)+at%1}for(h=0;h<F.length;h++){var Y=(P=F[h])._anchorAxis;P._linepositions={},P._lw=t.crispRound(O,P.linewidth,1),P._mainLinePosition=W(P,Y,P.side),P._mainMirrorPosition=P.mirror&&Y?W(P,Y,l.OPPOSITE_SIDE[P.side]):null}var B=[],G=[],J=[],se=a.opacity(q.paper_bgcolor)===1&&a.opacity(q.plot_bgcolor)===1&&q.paper_bgcolor===q.plot_bgcolor;for(M in q._plots)if((N=q._plots[M]).mainplot)N.bg&&N.bg.remove(),N.bg=void 0;else{var re=N.xaxis.domain,ne=N.yaxis.domain,$=N.plotgroup;if(y(re,ne,J)){var te=$.node(),ae=N.bg=w.ensureSingle($,"rect","bg");te.insertBefore(ae.node(),te.childNodes[0]),G.push(M)}else $.select("rect.bg").remove(),J.push([re,ne]),se||(B.push(M),G.push(M))}var ce,ue,de,me,be,_e,we,Ce,Se,Pe,Ne,Oe,pe,fe=q._bgLayer.selectAll(".bg").data(B);for(fe.enter().append("rect").classed("bg",!0),fe.exit().remove(),fe.each(function(Ie){q._plots[Ie].bg=k.select(this)}),h=0;h<G.length;h++)N=q._plots[G[h]],R=N.xaxis,A=N.yaxis,N.bg&&R._offset!==void 0&&A._offset!==void 0&&N.bg.call(t.setRect,R._offset-X,A._offset-X,R._length+2*X,A._length+2*X).call(a.fill,q.plot_bgcolor).style("stroke-width",0);if(!q._hasOnlyLargeSploms)for(M in q._plots){N=q._plots[M],R=N.xaxis,A=N.yaxis;var xe,ze,Le=N.clipId="clip"+q._uid+M+"plot",Ue=w.ensureSingleById(q._clips,"clipPath",Le,function(Ie){Ie.classed("plotclip",!0).append("rect")});N.clipRect=Ue.select("rect").attr({width:R._length,height:A._length}),t.setTranslate(N.plot,R._offset,A._offset),N._hasClipOnAxisFalse?(xe=null,ze=Le):(xe=Le,ze=null),t.setClipUrl(N.plot,xe,O),N.layerClipId=ze}function Re(Ie){return"M"+ce+","+Ie+"H"+ue}function Fe(Ie){return"M"+R._offset+","+Ie+"h"+R._length}function ve(Ie){return"M"+Ie+","+Ce+"V"+we}function ke(Ie){return A._shift!==void 0&&(Ie+=A._shift),"M"+Ie+","+A._offset+"v"+A._length}function Ee(Ie,Ze,He){if(!Ie.showline||M!==Ie._mainSubplot)return"";if(!Ie._anchorAxis)return He(Ie._mainLinePosition);var at=Ze(Ie._mainLinePosition);return Ie.mirror&&(at+=Ze(Ie._mainMirrorPosition)),at}for(M in q._plots){N=q._plots[M],R=N.xaxis,A=N.yaxis;var je="M0,0";x(R,M)&&(be=S(R,"left",A,F),ce=R._offset-(be?X+be:0),_e=S(R,"right",A,F),ue=R._offset+R._length+(_e?X+_e:0),de=W(R,A,"bottom"),me=W(R,A,"top"),!(pe=!R._anchorAxis||M!==R._mainSubplot)||R.mirror!=="allticks"&&R.mirror!=="all"||(R._linepositions[M]=[de,me]),je=Ee(R,Re,Fe),pe&&R.showline&&(R.mirror==="all"||R.mirror==="allticks")&&(je+=Re(de)+Re(me)),N.xlines.style("stroke-width",R._lw+"px").call(a.stroke,R.showline?R.linecolor:"rgba(0,0,0,0)")),N.xlines.attr("d",je);var Be="M0,0";x(A,M)&&(Ne=S(A,"bottom",R,F),we=A._offset+A._length+(Ne?X:0),Oe=S(A,"top",R,F),Ce=A._offset-(Oe?X:0),Se=W(A,R,"left"),Pe=W(A,R,"right"),!(pe=!A._anchorAxis||M!==A._mainSubplot)||A.mirror!=="allticks"&&A.mirror!=="all"||(A._linepositions[M]=[Se,Pe]),Be=Ee(A,ve,ke),pe&&A.showline&&(A.mirror==="all"||A.mirror==="allticks")&&(Be+=ve(Se)+ve(Pe)),N.ylines.style("stroke-width",A._lw+"px").call(a.stroke,A.showline?A.linecolor:"rgba(0,0,0,0)")),N.ylines.attr("d",Be)}return s.makeClipPaths(O),n.previousPromises(O)}function x(O,h){return(O.ticks||O.showline)&&(h===O._mainSubplot||O.mirror==="all"||O.mirror==="allticks")}function _(O,h,M){if(!M.showline||!M._lw)return!1;if(M.mirror==="all"||M.mirror==="allticks")return!0;var N=M._anchorAxis;if(!N)return!1;var P=l.FROM_BL[h];return M.side===h?N.domain[P]===O.domain[P]:M.mirror&&N.domain[1-P]===O.domain[1-P]}function S(O,h,M,N){if(_(O,h,M))return M._lw;for(var P=0;P<N.length;P++){var R=N[P];if(R._mainAxis===M._mainAxis&&_(O,h,R))return R._lw}return 0}T.layoutStyles=function(O){return w.syncOrAsync([n.doAutoMargin,m],O)},T.drawMainTitle=function(O){var h,M=O._fullLayout.title,N=O._fullLayout,P=function(B){var G=B.title,J="middle";return w.isRightAnchor(G)?J="end":w.isLeftAnchor(G)&&(J=C),J}(N),R=function(B){var G=B.title,J="0em";return w.isTopAnchor(G)?J=l.CAP_SHIFT+"em":w.isMiddleAnchor(G)&&(J=l.MID_SHIFT+"em"),J}(N),A=function(B,G){var J=B.title,se=B._size,re=0;return G!=="0em"&&G?G===l.CAP_SHIFT+"em"&&(re=J.pad.t):re=-J.pad.b,J.y==="auto"?se.t/2:J.yref==="paper"?se.t+se.h-se.h*J.y+re:B.height-B.height*J.y+re}(N,R),q=function(B,G){var J=B.title,se=B._size,re=0;return G===C?re=J.pad.l:G==="end"&&(re=-J.pad.r),J.xref==="paper"?se.l+se.w*J.x+re:B.width*J.x+re}(N,P);if(o.draw(O,"gtitle",{propContainer:N,propName:"title.text",placeholder:N._dfltTitle.plot,attributes:{x:q,y:A,"text-anchor":P,dy:R}}),M.text&&M.automargin){var j=k.selectAll(".gtitle"),X=t.bBox(j.node()).height,F=function(B,G,J){var se=G.y,re=G.yanchor,ne=se>.5?"t":"b",$=B._fullLayout.margin[ne],te=0;return G.yref==="paper"?te=J+G.pad.t+G.pad.b:G.yref==="container"&&(te=function(ae,ce,ue,de,me){var be=0;return ue==="middle"&&(be+=me/2),ae==="t"?(ue==="top"&&(be+=me),be+=de-ce*de):(ue==="bottom"&&(be+=me),be+=ce*de),be}(ne,se,re,B._fullLayout.height,J)+G.pad.t+G.pad.b),te>$?te:0}(O,M,X);if(F>0){(function(B,G,J,se){var re="title.automargin",ne=B._fullLayout.title,$=ne.y>.5?"t":"b",te={x:ne.x,y:ne.y,t:0,b:0},ae={};ne.yref==="paper"&&function(ce,ue,de,me,be){var _e=ue.yref==="paper"?ce._fullLayout._size.h:ce._fullLayout.height,we=w.isTopAnchor(ue)?me:me-be,Ce=de==="b"?_e-we:we;return!(w.isTopAnchor(ue)&&de==="t"||w.isBottomAnchor(ue)&&de==="b")&&Ce<be}(B,ne,$,G,se)?te[$]=J:ne.yref==="container"&&(ae[$]=J,B._fullLayout._reservedMargin[re]=ae),n.allowAutoMargin(B,re),n.autoMargin(B,re,te)})(O,A,F,X),j.attr({x:q,y:A,"text-anchor":P,dy:(h=M.yanchor,h==="top"?l.CAP_SHIFT+.3+"em":h==="bottom"?"-0.3em":l.MID_SHIFT+"em")}).call(b.positionText,q,A);var W=(M.text.match(b.BR_TAG_ALL)||[]).length;if(W){var Y=l.LINE_SPACING*W+l.MID_SHIFT;M.y===0&&(Y=-Y),j.selectAll(".line").each(function(){var B=+this.getAttribute("dy").slice(0,-2)-Y+"em";this.setAttribute("dy",B)})}}}},T.doTraceStyle=function(O){var h,M=O.calcdata,N=[];for(h=0;h<M.length;h++){var P=M[h],R=P[0]||{},A=R.trace||{},q=A._module||{},j=q.arraysToCalcdata;j&&j(P,A);var X=q.editStyle;X&&N.push({fn:X,cd0:R})}if(N.length){for(h=0;h<N.length;h++){var F=N[h];F.fn(O,F.cd0)}c(O),T.redrawReglTraces(O)}return n.style(O),v.getComponentMethod("legend","draw")(O),n.previousPromises(O)},T.doColorBars=function(O){return v.getComponentMethod("colorbar","draw")(O),n.previousPromises(O)},T.layoutReplot=function(O){var h=O.layout;return O.layout=void 0,v.call("_doPlot",O,"",h)},T.doLegend=function(O){return v.getComponentMethod("legend","draw")(O),n.previousPromises(O)},T.doTicksRelayout=function(O){return s.draw(O,"redraw"),O._fullLayout._hasOnlyLargeSploms&&(v.subplotsRegistry.splom.updateGrid(O),c(O),T.redrawReglTraces(O)),T.drawMainTitle(O),n.previousPromises(O)},T.doModeBar=function(O){var h=O._fullLayout;i.manage(O);for(var M=0;M<h._basePlotModules.length;M++){var N=h._basePlotModules[M].updateFx;N&&N(O)}return n.previousPromises(O)},T.doCamera=function(O){for(var h=O._fullLayout,M=h._subplots.gl3d,N=0;N<M.length;N++){var P=h[M[N]];P._scene.setViewport(P)}},T.drawData=function(O){var h=O._fullLayout;c(O);for(var M=h._basePlotModules,N=0;N<M.length;N++)M[N].plot(O);return T.redrawReglTraces(O),n.style(O),v.getComponentMethod("selections","draw")(O),v.getComponentMethod("shapes","draw")(O),v.getComponentMethod("annotations","draw")(O),v.getComponentMethod("images","draw")(O),h._replotting=!1,n.previousPromises(O)},T.redrawReglTraces=function(O){var h=O._fullLayout;if(h._has("regl")){var M,N,P=O._fullData,R=[],A=[];for(h._hasOnlyLargeSploms&&h._splomGrid.draw(),M=0;M<P.length;M++){var q=P[M];q.visible===!0&&q._length!==0&&(q.type==="splom"?h._splomScenes[q.uid].draw():q.type==="scattergl"?w.pushUnique(R,q.xaxis+q.yaxis):q.type==="scatterpolargl"&&w.pushUnique(A,q.subplot))}for(M=0;M<R.length;M++)(N=h._plots[R[M]])._scene&&N._scene.draw();for(M=0;M<A.length;M++)(N=h[A[M]]._subplot)._scene&&N._scene.draw()}},T.doAutoRangeAndConstraints=function(O){for(var h,M=s.list(O,"",!0),N={},P=0;P<M.length;P++)if(!N[(h=M[P])._id]){N[h._id]=1,g(O,h),f(O,h);var R=h._matchGroup;if(R)for(var A in R){var q=s.getFromId(O,A);f(O,q,h.range),N[A]=1}}d(O)},T.finalDraw=function(O){v.getComponentMethod("rangeslider","draw")(O),v.getComponentMethod("rangeselector","draw")(O)},T.drawMarginPushers=function(O){v.getComponentMethod("legend","draw")(O),v.getComponentMethod("rangeselector","draw")(O),v.getComponentMethod("sliders","draw")(O),v.getComponentMethod("updatemenus","draw")(O),v.getComponentMethod("colorbar","draw")(O)}},94828:function(L,T,e){var k=e(3400),v=k.isPlainObject,n=e(73060),w=e(7316),b=e(45464),c=e(31780),a=e(20556).dfltConfig;function t(f,C){f=k.extendDeep({},f);var y,m,x=Object.keys(f).sort();function _(N,P,R){if(v(P)&&v(N))t(N,P);else if(Array.isArray(P)&&Array.isArray(N)){var A=c.arrayTemplater({_template:f},R);for(m=0;m<P.length;m++){var q=P[m],j=A.newItem(q)._template;j&&t(j,q)}var X=A.defaultItems();for(m=0;m<X.length;m++)P.push(X[m]._template);for(m=0;m<P.length;m++)delete P[m].templateitemname}}for(y=0;y<x.length;y++){var S=x[y],O=f[S];if(S in C?_(O,C[S],S):C[S]=O,o(S)===S)for(var h in C){var M=o(h);h===M||M!==S||h in f||_(O,C[h],S)}}}function o(f){return f.replace(/[0-9]+$/,"")}function i(f,C,y,m,x){var _=x&&y(x);for(var S in f){var O=f[S],h=u(f,S,m),M=u(f,S,x),N=y(M);if(!N){var P=o(S);P!==S&&(N=y(M=u(f,P,x)))}if(!(_&&_===N||!N||N._noTemplating||N.valType==="data_array"||N.arrayOk&&Array.isArray(O)))if(!N.valType&&v(O))i(O,C,y,h,M);else if(N._isLinkedToArray&&Array.isArray(O))for(var R=!1,A=0,q={},j=0;j<O.length;j++){var X=O[j];if(v(X)){var F=X.name;if(F)q[F]||(i(X,C,y,u(O,A,h),u(O,A,M)),A++,q[F]=1);else if(!R){var W=u(f,c.arrayDefaultKey(S),m),Y=u(O,A,h);i(X,C,y,Y,u(O,A,M));var B=k.nestedProperty(C,Y);k.nestedProperty(C,W).set(B.get()),B.set(null),R=!0}}}else k.nestedProperty(C,h).set(O)}}function s(f,C){return n.getLayoutValObject(f,k.nestedProperty({},C).parts)}function l(f,C){return n.getTraceValObject(f,k.nestedProperty({},C).parts)}function u(f,C,y){return y?Array.isArray(f)?y+"["+C+"]":y+"."+C:C}function d(f){for(var C=0;C<f.length;C++)if(v(f[C]))return!0}function g(f){var C;switch(f.code){case"data":C="The template has no key data.";break;case"layout":C="The template has no key layout.";break;case"missing":C=f.path?"There are no templates for item "+f.path+" with name "+f.templateitemname:"There are no templates for trace "+f.index+", of type "+f.traceType+".";break;case"unused":C=f.path?"The template item at "+f.path+" was not used in constructing the plot.":f.dataCount?"Some of the templates of type "+f.traceType+" were not used. The template has "+f.templateCount+" traces, the data only has "+f.dataCount+" of this type.":"The template has "+f.templateCount+" traces of type "+f.traceType+" but there are none in the data.";break;case"reused":C="Some of the templates of type "+f.traceType+" were used more than once. The template has "+f.templateCount+" traces, the data has "+f.dataCount+" of this type."}return f.msg=C,f}T.makeTemplate=function(f){f=k.isPlainObject(f)?f:k.getGraphDiv(f),f=k.extendDeep({_context:a},{data:f.data,layout:f.layout}),w.supplyDefaults(f);var C=f.data||[],y=f.layout||{};y._basePlotModules=f._fullLayout._basePlotModules,y._modules=f._fullLayout._modules;var m={data:{},layout:{}};C.forEach(function(A){var q={};i(A,q,l.bind(null,A));var j=k.coerce(A,{},b,"type"),X=m.data[j];X||(X=m.data[j]=[]),X.push(q)}),i(y,m.layout,s.bind(null,y)),delete m.layout.template;var x=y.template;if(v(x)){var _,S,O,h,M,N,P=x.layout;v(P)&&t(P,m.layout);var R=x.data;if(v(R)){for(S in m.data)if(O=R[S],Array.isArray(O)){for(N=(M=m.data[S]).length,h=O.length,_=0;_<N;_++)t(O[_%h],M[_]);for(_=N;_<h;_++)M.push(k.extendDeep({},O[_]))}for(S in R)S in m.data||(m.data[S]=k.extendDeep([],R[S]))}}return m},T.validateTemplate=function(f,C){var y=k.extendDeep({},{_context:a,data:f.data,layout:f.layout}),m=y.layout||{};v(C)||(C=m.template||{});var x=C.layout,_=C.data,S=[];y.layout=m,y.layout.template=C,w.supplyDefaults(y);var O=y._fullLayout,h=y._fullData,M={};if(v(x)?(function X(F,W){for(var Y in F)if(Y.charAt(0)!=="_"&&v(F[Y])){var B,G=o(Y),J=[];for(B=0;B<W.length;B++)J.push(u(F,Y,W[B])),G!==Y&&J.push(u(F,G,W[B]));for(B=0;B<J.length;B++)M[J[B]]=1;X(F[Y],J)}}(O,["layout"]),function X(F,W){for(var Y in F)if(Y.indexOf("defaults")===-1&&v(F[Y])){var B=u(F,Y,W);M[B]?X(F[Y],B):S.push({code:"unused",path:B})}}(x,"layout")):S.push({code:"layout"}),v(_)){for(var N,P={},R=0;R<h.length;R++){var A=h[R];P[N=A.type]=(P[N]||0)+1,A._fullInput._template||S.push({code:"missing",index:A._fullInput.index,traceType:N})}for(N in _){var q=_[N].length,j=P[N]||0;q>j?S.push({code:"unused",traceType:N,templateCount:q,dataCount:j}):j>q&&S.push({code:"reused",traceType:N,templateCount:q,dataCount:j})}}else S.push({code:"data"});if(function X(F,W){for(var Y in F)if(Y.charAt(0)!=="_"){var B=F[Y],G=u(F,Y,W);v(B)?(Array.isArray(F)&&B._template===!1&&B.templateitemname&&S.push({code:"missing",path:G,templateitemname:B.templateitemname}),X(B,G)):Array.isArray(B)&&d(B)&&X(B,G)}}({data:h,layout:O},""),S.length)return S.map(g)}},67024:function(L,T,e){var k=e(38248),v=e(36424),n=e(7316),w=e(3400),b=e(81792),c=e(37164),a=e(63268),t=e(25788).version,o={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}};L.exports=function(i,s){var l,u,d,g;function f(j){return!(j in s)||w.validate(s[j],o[j])}if(s=s||{},w.isPlainObject(i)?(l=i.data||[],u=i.layout||{},d=i.config||{},g={}):(i=w.getGraphDiv(i),l=w.extendDeep([],i.data),u=w.extendDeep({},i.layout),d=i._context,g=i._fullLayout||{}),!f("width")&&s.width!==null||!f("height")&&s.height!==null)throw new Error("Height and width should be pixel values.");if(!f("format"))throw new Error("Export format is not "+w.join2(o.format.values,", "," or ")+".");var C={};function y(j,X){return w.coerce(s,C,o,j,X)}var m=y("format"),x=y("width"),_=y("height"),S=y("scale"),O=y("setBackground"),h=y("imageDataOnly"),M=document.createElement("div");M.style.position="absolute",M.style.left="-5000px",document.body.appendChild(M);var N=w.extendFlat({},u);x?N.width=x:s.width===null&&k(g.width)&&(N.width=g.width),_?N.height=_:s.height===null&&k(g.height)&&(N.height=g.height);var P=w.extendFlat({},d,{_exportedPlot:!0,staticPlot:!0,setBackground:O}),R=b.getRedrawFunc(M);function A(){return new Promise(function(j){setTimeout(j,b.getDelay(M._fullLayout))})}function q(){return new Promise(function(j,X){var F=c(M,m,S),W=M._fullLayout.width,Y=M._fullLayout.height;function B(){v.purge(M),document.body.removeChild(M)}if(m==="full-json"){var G=n.graphJson(M,!1,"keepdata","object",!0,!0);return G.version=t,G=JSON.stringify(G),B(),j(h?G:b.encodeJSON(G))}if(B(),m==="svg")return j(h?F:b.encodeSVG(F));var J=document.createElement("canvas");J.id=w.randstr(),a({format:m,width:W,height:Y,scale:S,canvas:J,svg:F,promise:!0}).then(j).catch(X)})}return new Promise(function(j,X){v.newPlot(M,l,N,P).then(R).then(A).then(q).then(function(F){j(function(W){return h?W.replace(b.IMAGE_URL_PREFIX,""):W}(F))}).catch(function(F){X(F)})})}},21480:function(L,T,e){var k=e(3400),v=e(7316),n=e(73060),w=e(20556).dfltConfig,b=k.isPlainObject,c=Array.isArray,a=k.isArrayOrTypedArray;function t(f,C,y,m,x,_){_=_||[];for(var S=Object.keys(f),O=0;O<S.length;O++){var h=S[O];if(h!=="transforms"){var M=_.slice();M.push(h);var N=f[h],P=C[h],R=u(y,h),A=(R||{}).valType,q=A==="info_array",j=A==="colorscale",X=(R||{}).items;if(l(y,h))if(b(N)&&b(P)&&A!=="any")t(N,P,R,m,x,M);else if(q&&c(N)){N.length>P.length&&m.push(s("unused",x,M.concat(P.length)));var F,W,Y,B,G,J=P.length,se=Array.isArray(X);if(se&&(J=Math.min(J,X.length)),R.dimensions===2)for(W=0;W<J;W++)if(c(N[W])){N[W].length>P[W].length&&m.push(s("unused",x,M.concat(W,P[W].length)));var re=P[W].length;for(F=0;F<(se?Math.min(re,X[W].length):re);F++)Y=se?X[W][F]:X,B=N[W][F],G=P[W][F],k.validate(B,Y)?G!==B&&G!==+B&&m.push(s("dynamic",x,M.concat(W,F),B,G)):m.push(s("value",x,M.concat(W,F),B))}else m.push(s("array",x,M.concat(W),N[W]));else for(W=0;W<J;W++)Y=se?X[W]:X,B=N[W],G=P[W],k.validate(B,Y)?G!==B&&G!==+B&&m.push(s("dynamic",x,M.concat(W),B,G)):m.push(s("value",x,M.concat(W),B))}else if(R.items&&!q&&c(N)){var ne,$,te=X[Object.keys(X)[0]],ae=[];for(ne=0;ne<P.length;ne++){var ce=P[ne]._index||ne;if(($=M.slice()).push(ce),b(N[ce])&&b(P[ne])){ae.push(ce);var ue=N[ce],de=P[ne];b(ue)&&ue.visible!==!1&&de.visible===!1?m.push(s("invisible",x,$)):t(ue,de,te,m,x,$)}}for(ne=0;ne<N.length;ne++)($=M.slice()).push(ne),b(N[ne])?ae.indexOf(ne)===-1&&m.push(s("unused",x,$)):m.push(s("object",x,$,N[ne]))}else!b(N)&&b(P)?m.push(s("object",x,M,N)):a(N)||!a(P)||q||j?h in C?k.validate(N,R)?R.valType==="enumerated"&&(R.coerceNumber&&N!==+P||N!==P)&&m.push(s("dynamic",x,M,N,P)):m.push(s("value",x,M,N)):m.push(s("unused",x,M,N)):m.push(s("array",x,M,N));else m.push(s("schema",x,M))}}return m}L.exports=function(f,C){f===void 0&&(f=[]),C===void 0&&(C={});var y,m,x=n.get(),_=[],S={_context:k.extendFlat({},w)};c(f)?(S.data=k.extendDeep([],f),y=f):(S.data=[],y=[],_.push(s("array","data"))),b(C)?(S.layout=k.extendDeep({},C),m=C):(S.layout={},m={},arguments.length>1&&_.push(s("object","layout"))),v.supplyDefaults(S);for(var O=S._fullData,h=y.length,M=0;M<h;M++){var N=y[M],P=["data",M];if(b(N)){var R=O[M],A=R.type,q=x.traces[A].attributes;q.type={valType:"enumerated",values:[A]},R.visible===!1&&N.visible!==!1&&_.push(s("invisible",P)),t(N,R,q,_,P);var j=N.transforms,X=R.transforms;if(j){c(j)||_.push(s("array",P,["transforms"])),P.push("transforms");for(var F=0;F<j.length;F++){var W=["transforms",F],Y=j[F].type;if(b(j[F])){var B=x.transforms[Y]?x.transforms[Y].attributes:{};B.type={valType:"enumerated",values:Object.keys(x.transforms)},t(j[F],X[F],B,_,P,W)}else _.push(s("object",P,W))}}}else _.push(s("object",P))}var G=S._fullLayout,J=function(se,re){for(var ne=se.layout.layoutAttributes,$=0;$<re.length;$++){var te=re[$],ae=se.traces[te.type],ce=ae.layoutAttributes;ce&&(te.subplot?k.extendFlat(ne[ae.attributes.subplot.dflt],ce):k.extendFlat(ne,ce))}return ne}(x,O);return t(m,G,J,_,"layout"),_.length===0?void 0:_};var o={object:function(f,C){return(f==="layout"&&C===""?"The layout argument":f[0]==="data"&&C===""?"Trace "+f[1]+" in the data argument":i(f)+"key "+C)+" must be linked to an object container"},array:function(f,C){return(f==="data"?"The data argument":i(f)+"key "+C)+" must be linked to an array container"},schema:function(f,C){return i(f)+"key "+C+" is not part of the schema"},unused:function(f,C,y){var m=b(y)?"container":"key";return i(f)+m+" "+C+" did not get coerced"},dynamic:function(f,C,y,m){return[i(f)+"key",C,"(set to '"+y+"')","got reset to","'"+m+"'","during defaults."].join(" ")},invisible:function(f,C){return(C?i(f)+"item "+C:"Trace "+f[1])+" got defaulted to be not visible"},value:function(f,C,y){return[i(f)+"key "+C,"is set to an invalid value ("+y+")"].join(" ")}};function i(f){return c(f)?"In data trace "+f[1]+", ":"In "+f+", "}function s(f,C,y,m,x){var _,S;y=y||"",c(C)?(_=C[0],S=C[1]):(_=C,S=null);var O=function(M){if(!c(M))return String(M);for(var N="",P=0;P<M.length;P++){var R=M[P];typeof R=="number"?N=N.substr(0,N.length-1)+"["+R+"]":N+=R,P<M.length-1&&(N+=".")}return N}(y),h=o[f](C,O,m,x);return k.log(h),{code:f,container:_,trace:S,path:y,astr:O,msg:h}}function l(f,C){var y=g(C),m=y.keyMinusId,x=y.id;return!!(m in f&&f[m]._isSubplotObj&&x)||C in f}function u(f,C){return C in f?f[C]:f[g(C).keyMinusId]}var d=k.counterRegex("([a-z]+)");function g(f){var C=f.match(d);return{keyMinusId:C&&C[1],id:C&&C[2]}}},85656:function(L){L.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"}}}},51272:function(L,T,e){var k=e(3400),v=e(31780);L.exports=function(n,w,b){var c,a,t=b.name,o=b.inclusionAttr||"visible",i=w[t],s=k.isArrayOrTypedArray(n[t])?n[t]:[],l=w[t]=[],u=v.arrayTemplater(w,t,o);for(c=0;c<s.length;c++){var d=s[c];k.isPlainObject(d)?a=u.newItem(d):(a=u.newItem({}))[o]=!1,a._index=c,a[o]!==!1&&b.handleItemDefaults(d,a,w,b),l.push(a)}var g=u.defaultItems();for(c=0;c<g.length;c++)(a=g[c])._index=l.length,b.handleItemDefaults({},a,w,b,{}),l.push(a);if(k.isArrayOrTypedArray(i)){var f=Math.min(i.length,l.length);for(c=0;c<f;c++)k.relinkPrivateKeys(l[c],i[c])}return l}},45464:function(L,T,e){var k=e(25376),v=e(55756);L.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:k({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:v.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"}}},1220:function(L,T,e){var k=e(38248),v=e(3400),n=v.dateTime2ms,w=v.incrementMonth,b=e(39032).ONEAVGMONTH;L.exports=function(c,a,t,o){if(a.type!=="date")return{vals:o};var i=c[t+"periodalignment"];if(!i)return{vals:o};var s,l=c[t+"period"];if(k(l)){if((l=+l)<=0)return{vals:o}}else if(typeof l=="string"&&l.charAt(0)==="M"){var u=+l.substring(1);if(!(u>0&&Math.round(u)===u))return{vals:o};s=u}for(var d=a.calendar,g=i==="start",f=i==="end",C=c[t+"period0"],y=n(C,d)||0,m=[],x=[],_=[],S=o.length,O=0;O<S;O++){var h,M,N,P=o[O];if(s){for(h=Math.round((P-y)/(s*b)),N=w(y,s*h,d);N>P;)N=w(N,-s,d);for(;N<=P;)N=w(N,s,d);M=w(N,-s,d)}else{for(N=y+(h=Math.round((P-y)/l))*l;N>P;)N-=l;for(;N<=P;)N+=l;M=N-l}m[O]=g?M:f?N:(M+N)/2,x[O]=M,_[O]=N}return{vals:m,starts:x,ends:_}}},26720:function(L){L.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},19280:function(L,T,e){var k=e(33428),v=e(38248),n=e(3400),w=e(39032).FP_SAFE,b=e(24040),c=e(43616),a=e(79811),t=a.getFromId,o=a.isLinked;function i(O,h){var M,N,P=[],R=O._fullLayout,A=l(R,h,0),q=l(R,h,1),j=d(O,h),X=j.min,F=j.max;if(X.length===0||F.length===0)return n.simpleMap(h.range,h.r2l);var W=X[0].val,Y=F[0].val;for(M=1;M<X.length&&W===Y;M++)W=Math.min(W,X[M].val);for(M=1;M<F.length&&W===Y;M++)Y=Math.max(Y,F[M].val);var B=h.autorange,G=B==="reversed"||B==="min reversed"||B==="max reversed";if(!G&&h.range){var J=n.simpleMap(h.range,h.r2l);G=J[1]<J[0]}h.autorange==="reversed"&&(h.autorange=!0);var se,re,ne,$,te,ae,ce=h.rangemode,ue=ce==="tozero",de=ce==="nonnegative",me=h._length,be=me/10,_e=0;for(M=0;M<X.length;M++)for(se=X[M],N=0;N<F.length;N++)(ae=(re=F[N]).val-se.val-s(h,se.val,re.val))>0&&((te=me-A(se)-q(re))>be?ae/te>_e&&(ne=se,$=re,_e=ae/te):ae/me>_e&&(ne={val:se.val,nopad:1},$={val:re.val,nopad:1},_e=ae/me));if(W===Y){var we=W-1,Ce=W+1;if(ue)if(W===0)P=[0,1];else{var Se=(W>0?F:X).reduce(function(Ne,Oe){return Math.max(Ne,q(Oe))},0),Pe=W/(1-Math.min(.5,Se/me));P=W>0?[0,Pe]:[Pe,0]}else P=de?[Math.max(0,we),Math.max(1,Ce)]:[we,Ce]}else ue?(ne.val>=0&&(ne={val:0,nopad:1}),$.val<=0&&($={val:0,nopad:1})):de&&(ne.val-_e*A(ne)<0&&(ne={val:0,nopad:1}),$.val<=0&&($={val:1,nopad:1})),_e=($.val-ne.val-s(h,se.val,re.val))/(me-A(ne)-q($)),P=[ne.val-_e*A(ne),$.val+_e*q($)];return P=S(P,h),h.limitRange&&h.limitRange(),G&&P.reverse(),n.simpleMap(P,h.l2r||Number)}function s(O,h,M){var N=0;if(O.rangebreaks)for(var P=O.locateBreaks(h,M),R=0;R<P.length;R++){var A=P[R];N+=A.max-A.min}return N}function l(O,h,M){var N=.05*h._length,P=h._anchorAxis||{};if((h.ticklabelposition||"").indexOf("inside")!==-1||(P.ticklabelposition||"").indexOf("inside")!==-1){var R=h.isReversed();if(!R){var A=n.simpleMap(h.range,h.r2l);R=A[1]<A[0]}R&&(M=!M)}var q=0;return o(O,h._id)||(q=function(j,X,F){var W=0,Y=X._id.charAt(0)==="x";for(var B in j._plots){var G=j._plots[B];if(X._id===G.xaxis._id||X._id===G.yaxis._id){var J=(Y?G.yaxis:G.xaxis)||{};if((J.ticklabelposition||"").indexOf("inside")!==-1&&(!F&&(J.side==="left"||J.side==="bottom")||F&&(J.side==="top"||J.side==="right"))){if(J._vals){var se=n.deg2rad(J._tickAngles[J._id+"tick"]||0),re=Math.abs(Math.cos(se)),ne=Math.abs(Math.sin(se));if(!J._vals[0].bb){var $=J._id+"tick";J._selections[$].each(function(de){var me=k.select(this);me.select(".text-math-group").empty()&&(de.bb=c.bBox(me.node()))})}for(var te=0;te<J._vals.length;te++){var ae=J._vals[te].bb;if(ae){var ce=2*u+ae.width,ue=2*u+ae.height;W=Math.max(W,Y?Math.max(ce*re,ue*ne):Math.max(ue*re,ce*ne))}}}J.ticks==="inside"&&J.ticklabelposition==="inside"&&(W+=J.ticklen||0)}}}return W}(O,h,M)),N=Math.max(q,N),h.constrain==="domain"&&h._inputDomain&&(N*=(h._inputDomain[1]-h._inputDomain[0])/(h.domain[1]-h.domain[0])),function(j){return j.nopad?0:j.pad+(j.extrapad?N:q)}}L.exports={applyAutorangeOptions:S,getAutoRange:i,makePadFn:l,doAutoRange:function(O,h,M){if(h.setScale(),h.autorange){h.range=M?M.slice():i(O,h),h._r=h.range.slice(),h._rl=n.simpleMap(h._r,h.r2l);var N=h._input,P={};P[h._attr+".range"]=h.range,P[h._attr+".autorange"]=h.autorange,b.call("_storeDirectGUIEdit",O.layout,O._fullLayout._preGUI,P),N.range=h.range.slice(),N.autorange=h.autorange}var R=h._anchorAxis;if(R&&R.rangeslider){var A=R.rangeslider[h._name];A&&A.rangemode==="auto"&&(A.range=i(O,h)),R._input.rangeslider[h._name]=n.extendFlat({},A)}},findExtremes:function(O,h,M){M||(M={}),O._m||O.setScale();var N,P,R,A,q,j,X,F,W,Y=[],B=[],G=h.length,J=M.padded||!1,se=M.tozero&&(O.type==="linear"||O.type==="-"),re=O.type==="log",ne=!1,$=M.vpadLinearized||!1;function te(we){if(Array.isArray(we))return ne=!0,function(Se){return Math.max(Number(we[Se]||0),0)};var Ce=Math.max(Number(we||0),0);return function(){return Ce}}var ae=te((O._m>0?M.ppadplus:M.ppadminus)||M.ppad||0),ce=te((O._m>0?M.ppadminus:M.ppadplus)||M.ppad||0),ue=te(M.vpadplus||M.vpad),de=te(M.vpadminus||M.vpad);if(!ne){if(F=1/0,W=-1/0,re)for(N=0;N<G;N++)(P=h[N])<F&&P>0&&(F=P),P>W&&P<w&&(W=P);else for(N=0;N<G;N++)(P=h[N])<F&&P>-w&&(F=P),P>W&&P<w&&(W=P);h=[F,W],G=2}var me={tozero:se,extrapad:J};function be(we){R=h[we],v(R)&&(j=ae(we),X=ce(we),$?(A=O.c2l(R)-de(we),q=O.c2l(R)+ue(we)):(F=R-de(we),W=R+ue(we),re&&F<W/10&&(F=W/10),A=O.c2l(F),q=O.c2l(W)),se&&(A=Math.min(0,A),q=Math.max(0,q)),y(A)&&g(Y,A,X,me),y(q)&&f(B,q,j,me))}var _e=Math.min(6,G);for(N=0;N<_e;N++)be(N);for(N=G-1;N>=_e;N--)be(N);return{min:Y,max:B,opts:M}},concatExtremes:d};var u=3;function d(O,h,M){var N,P,R,A=h._id,q=O._fullData,j=O._fullLayout,X=[],F=[];function W(se,re){for(N=0;N<re.length;N++){var ne=se[re[N]],$=(ne._extremes||{})[A];if(ne.visible===!0&&$){for(P=0;P<$.min.length;P++)R=$.min[P],g(X,R.val,R.pad,{extrapad:R.extrapad});for(P=0;P<$.max.length;P++)R=$.max[P],f(F,R.val,R.pad,{extrapad:R.extrapad})}}}if(W(q,h._traceIndices),W(j.annotations||[],h._annIndices||[]),W(j.shapes||[],h._shapeIndices||[]),h._matchGroup&&!M){for(var Y in h._matchGroup)if(Y!==h._id){var B=t(O,Y),G=d(O,B,!0),J=h._length/B._length;for(P=0;P<G.min.length;P++)R=G.min[P],g(X,R.val,R.pad*J,{extrapad:R.extrapad});for(P=0;P<G.max.length;P++)R=G.max[P],f(F,R.val,R.pad*J,{extrapad:R.extrapad})}}return{min:X,max:F}}function g(O,h,M,N){C(O,h,M,N,m)}function f(O,h,M,N){C(O,h,M,N,x)}function C(O,h,M,N,P){for(var R=N.tozero,A=N.extrapad,q=!0,j=0;j<O.length&&q;j++){var X=O[j];if(P(X.val,h)&&X.pad>=M&&(X.extrapad||!A)){q=!1;break}P(h,X.val)&&X.pad<=M&&(A||!X.extrapad)&&(O.splice(j,1),j--)}if(q){var F=R&&h===0;O.push({val:h,pad:F?0:M,extrapad:!F&&A})}}function y(O){return v(O)&&Math.abs(O)<w}function m(O,h){return O<=h}function x(O,h){return O>=h}function _(O,h,M){return h===void 0||M===void 0||(h=O.d2l(h))<O.d2l(M)}function S(O,h){if(!h||!h.autorangeoptions)return O;var M=O[0],N=O[1],P=h.autorangeoptions.include;if(P!==void 0){var R=h.d2l(M),A=h.d2l(N);n.isArrayOrTypedArray(P)||(P=[P]);for(var q=0;q<P.length;q++){var j=h.d2l(P[q]);R>=j&&(R=j,M=j),A<=j&&(A=j,N=j)}}return M=function(X,F){var W=F.autorangeoptions;return W&&W.minallowed!==void 0&&_(F,W.minallowed,W.maxallowed)?W.minallowed:W&&W.clipmin!==void 0&&_(F,W.clipmin,W.clipmax)?Math.max(X,F.d2l(W.clipmin)):X}(M,h),N=function(X,F){var W=F.autorangeoptions;return W&&W.maxallowed!==void 0&&_(F,W.minallowed,W.maxallowed)?W.maxallowed:W&&W.clipmax!==void 0&&_(F,W.clipmin,W.clipmax)?Math.min(X,F.d2l(W.clipmax)):X}(N,h),[M,N]}},76808:function(L){L.exports=function(T,e,k){var v,n;if(k){var w=e==="reversed"||e==="min reversed"||e==="max reversed";v=k[w?1:0],n=k[w?0:1]}var b=T("autorangeoptions.minallowed",n===null?v:void 0),c=T("autorangeoptions.maxallowed",v===null?n:void 0);b===void 0&&T("autorangeoptions.clipmin"),c===void 0&&T("autorangeoptions.clipmax"),T("autorangeoptions.include")}},54460:function(L,T,e){var k=e(33428),v=e(38248),n=e(7316),w=e(24040),b=e(3400),c=b.strTranslate,a=e(72736),t=e(81668),o=e(76308),i=e(43616),s=e(94724),l=e(98728),u=e(39032),d=u.ONEMAXYEAR,g=u.ONEAVGYEAR,f=u.ONEMINYEAR,C=u.ONEMAXQUARTER,y=u.ONEAVGQUARTER,m=u.ONEMINQUARTER,x=u.ONEMAXMONTH,_=u.ONEAVGMONTH,S=u.ONEMINMONTH,O=u.ONEWEEK,h=u.ONEDAY,M=h/2,N=u.ONEHOUR,P=u.ONEMIN,R=u.ONESEC,A=u.MINUS_SIGN,q=u.BADNUM,j={K:"zeroline"},X={K:"gridline",L:"path"},F={K:"minor-gridline",L:"path"},W={K:"tick",L:"path"},Y={K:"tick",L:"text"},B={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},G=e(84284),J=G.MID_SHIFT,se=G.CAP_SHIFT,re=G.LINE_SPACING,ne=G.OPPOSITE_SIDE,$=L.exports={};$.setConvert=e(78344);var te=e(52976),ae=e(79811),ce=ae.idSort,ue=ae.isLinked;$.id2name=ae.id2name,$.name2id=ae.name2id,$.cleanId=ae.cleanId,$.list=ae.list,$.listIds=ae.listIds,$.getFromId=ae.getFromId,$.getFromTrace=ae.getFromTrace;var de=e(19280);$.getAutoRange=de.getAutoRange,$.findExtremes=de.findExtremes;var me=1e-4;function be(De){var Ge=(De[1]-De[0])*me;return[De[0]-Ge,De[1]+Ge]}$.coerceRef=function(De,Ge,pt,nt,bt,wt){var St=nt.charAt(nt.length-1),vt=pt._fullLayout._subplots[St+"axis"],Pt=nt+"ref",Lt={};return bt||(bt=vt[0]||(typeof wt=="string"?wt:wt[0])),wt||(wt=bt),vt=vt.concat(vt.map(function(Ct){return Ct+" domain"})),Lt[Pt]={valType:"enumerated",values:vt.concat(wt?typeof wt=="string"?[wt]:wt:[]),dflt:bt},b.coerce(De,Ge,Lt,Pt)},$.getRefType=function(De){return De===void 0?De:De==="paper"?"paper":De==="pixel"?"pixel":/( domain)$/.test(De)?"domain":"range"},$.coercePosition=function(De,Ge,pt,nt,bt,wt){var St,vt;if($.getRefType(nt)!=="range")St=b.ensureNumber,vt=pt(bt,wt);else{var Pt=$.getFromId(Ge,nt);vt=pt(bt,wt=Pt.fraction2r(wt)),St=Pt.cleanPos}De[bt]=St(vt)},$.cleanPosition=function(De,Ge,pt){return(pt==="paper"||pt==="pixel"?b.ensureNumber:$.getFromId(Ge,pt).cleanPos)(De)},$.redrawComponents=function(De,Ge){Ge=Ge||$.listIds(De);var pt=De._fullLayout;function nt(bt,wt,St,vt){for(var Pt=w.getComponentMethod(bt,wt),Lt={},Ct=0;Ct<Ge.length;Ct++)for(var Rt=pt[$.id2name(Ge[Ct])][St],At=0;At<Rt.length;At++){var Bt=Rt[At];if(!Lt[Bt]&&(Pt(De,Bt),Lt[Bt]=1,vt))return}}nt("annotations","drawOne","_annIndices"),nt("shapes","drawOne","_shapeIndices"),nt("images","draw","_imgIndices",!0),nt("selections","drawOne","_selectionIndices")};var _e=$.getDataConversions=function(De,Ge,pt,nt){var bt,wt=pt==="x"||pt==="y"||pt==="z"?pt:nt;if(b.isArrayOrTypedArray(wt)){if(bt={type:te(nt,void 0,{autotypenumbers:De._fullLayout.autotypenumbers}),_categories:[]},$.setConvert(bt),bt.type==="category")for(var St=0;St<nt.length;St++)bt.d2c(nt[St])}else bt=$.getFromTrace(De,Ge,wt);return bt?{d2c:bt.d2c,c2d:bt.c2d}:wt==="ids"?{d2c:Ce,c2d:Ce}:{d2c:we,c2d:we}};function we(De){return+De}function Ce(De){return String(De)}function Se(De,Ge){return Math.abs((De/Ge+.5)%1-.5)<.001}function Pe(De,Ge){return Math.abs(De/Ge-1)<.001}function Ne(De){return+De.substring(1)}function Oe(De,Ge){return De.rangebreaks&&(Ge=Ge.filter(function(pt){return De.maskBreaks(pt.x)!==q})),Ge}function pe(De){var Ge=De._mainAxis,pt=[];if(Ge._vals){for(var nt=0;nt<Ge._vals.length;nt++)if(!Ge._vals[nt].noTick){var bt=Ge.l2p(Ge._vals[nt].x),wt=De.p2l(bt),St=$.tickText(De,wt);Ge._vals[nt].minor&&(St.minor=!0,St.text=""),pt.push(St)}}return Oe(De,pt)}function fe(De,Ge){var pt=be(b.simpleMap(De.range,De.r2l)),nt=Math.min(pt[0],pt[1]),bt=Math.max(pt[0],pt[1]),wt=De.type==="category"?De.d2l_noadd:De.d2l;De.type==="log"&&String(De.dtick).charAt(0)!=="L"&&(De.dtick="L"+Math.pow(10,Math.floor(Math.min(De.range[0],De.range[1]))-1));for(var St=[],vt=0;vt<=1;vt++)if((Ge===void 0||!(Ge&&vt||Ge===!1&&!vt))&&(!vt||De.minor)){var Pt=vt?De.minor.tickvals:De.tickvals,Lt=vt?[]:De.ticktext;if(Pt){b.isArrayOrTypedArray(Lt)||(Lt=[]);for(var Ct=0;Ct<Pt.length;Ct++){var Rt=wt(Pt[Ct]);if(Rt>nt&&Rt<bt){var At=Lt[Ct]===void 0?$.tickText(De,Rt):je(De,Rt,String(Lt[Ct]));vt&&(At.minor=!0,At.text=""),St.push(At)}}}}return Oe(De,St)}$.getDataToCoordFunc=function(De,Ge,pt,nt){return _e(De,Ge,pt,nt).d2c},$.counterLetter=function(De){var Ge=De.charAt(0);return Ge==="x"?"y":Ge==="y"?"x":void 0},$.minDtick=function(De,Ge,pt,nt){["log","category","multicategory"].indexOf(De.type)===-1&&nt?De._minDtick===void 0?(De._minDtick=Ge,De._forceTick0=pt):De._minDtick&&((De._minDtick/Ge+1e-6)%1<2e-6&&((pt-De._forceTick0)/Ge%1+1.000001)%1<2e-6?(De._minDtick=Ge,De._forceTick0=pt):((Ge/De._minDtick+1e-6)%1>2e-6||((pt-De._forceTick0)/De._minDtick%1+1.000001)%1>2e-6)&&(De._minDtick=0)):De._minDtick=0},$.saveRangeInitial=function(De,Ge){for(var pt=$.list(De,"",!0),nt=!1,bt=0;bt<pt.length;bt++){var wt=pt[bt],St=wt._rangeInitial0===void 0&&wt._rangeInitial1===void 0,vt=St||wt.range[0]!==wt._rangeInitial0||wt.range[1]!==wt._rangeInitial1,Pt=wt.autorange;(St&&Pt!==!0||Ge&&vt)&&(wt._rangeInitial0=Pt==="min"||Pt==="max reversed"?void 0:wt.range[0],wt._rangeInitial1=Pt==="max"||Pt==="min reversed"?void 0:wt.range[1],wt._autorangeInitial=Pt,nt=!0)}return nt},$.saveShowSpikeInitial=function(De,Ge){for(var pt=$.list(De,"",!0),nt=!1,bt="on",wt=0;wt<pt.length;wt++){var St=pt[wt],vt=St._showSpikeInitial===void 0,Pt=vt||St.showspikes!==St._showspikes;(vt||Ge&&Pt)&&(St._showSpikeInitial=St.showspikes,nt=!0),bt!=="on"||St.showspikes||(bt="off")}return De._fullLayout._cartesianSpikesEnabled=bt,nt},$.autoBin=function(De,Ge,pt,nt,bt,wt){var St,vt=b.aggNums(Math.min,null,De),Pt=b.aggNums(Math.max,null,De);if(Ge.type==="category"||Ge.type==="multicategory")return{start:vt-.5,end:Pt+.5,size:Math.max(1,Math.round(wt)||1),_dataSpan:Pt-vt};if(bt||(bt=Ge.calendar),St=Ge.type==="log"?{type:"linear",range:[vt,Pt]}:{type:Ge.type,range:b.simpleMap([vt,Pt],Ge.c2r,0,bt),calendar:bt},$.setConvert(St),wt=wt&&l.dtick(wt,St.type))St.dtick=wt,St.tick0=l.tick0(void 0,St.type,bt);else{var Lt;if(pt)Lt=(Pt-vt)/pt;else{var Ct=b.distinctVals(De),Rt=Math.pow(10,Math.floor(Math.log(Ct.minDiff)/Math.LN10)),At=Rt*b.roundUp(Ct.minDiff/Rt,[.9,1.9,4.9,9.9],!0);Lt=Math.max(At,2*b.stdev(De)/Math.pow(De.length,nt?.25:.4)),v(Lt)||(Lt=1)}$.autoTicks(St,Lt)}var Bt,nn=St.dtick,hn=$.tickIncrement($.tickFirst(St),nn,"reverse",bt);if(typeof nn=="number")hn=function(Ht,Qt,un,In,zn){var wn=0,rn=0,vn=0,dn=0;function _n(Gn){return(1+100*(Gn-Ht)/un.dtick)%100<2}for(var Un=0;Un<Qt.length;Un++)Qt[Un]%1==0?vn++:v(Qt[Un])||dn++,_n(Qt[Un])&&wn++,_n(Qt[Un]+un.dtick/2)&&rn++;var An=Qt.length-dn;if(vn===An&&un.type!=="date")un.dtick<1?Ht=In-.5*un.dtick:(Ht-=.5)+un.dtick<In&&(Ht+=un.dtick);else if(rn<.1*An&&(wn>.3*An||_n(In)||_n(zn))){var Wn=un.dtick/2;Ht+=Ht+Wn<In?Wn:-Wn}return Ht}(hn,De,St,vt,Pt),Bt=hn+(1+Math.floor((Pt-hn)/nn))*nn;else for(St.dtick.charAt(0)==="M"&&(hn=function(Ht,Qt,un,In,zn){var wn=b.findExactDates(Qt,zn);if(wn.exactDays>.8){var rn=Number(un.substr(1));wn.exactYears>.8&&rn%12==0?Ht=$.tickIncrement(Ht,"M6","reverse")+1.5*h:wn.exactMonths>.8?Ht=$.tickIncrement(Ht,"M1","reverse")+15.5*h:Ht-=M;var vn=$.tickIncrement(Ht,un);if(vn<=In)return vn}return Ht}(hn,De,nn,vt,bt)),Bt=hn;Bt<=Pt;)Bt=$.tickIncrement(Bt,nn,!1,bt);return{start:Ge.c2r(hn,0,bt),end:Ge.c2r(Bt,0,bt),size:nn,_dataSpan:Pt-vt}},$.prepMinorTicks=function(De,Ge,pt){if(!Ge.minor.dtick){delete De.dtick;var nt,bt=Ge.dtick&&v(Ge._tmin);if(bt){var wt=$.tickIncrement(Ge._tmin,Ge.dtick,!0);nt=[Ge._tmin,.99*wt+.01*Ge._tmin]}else{var St=b.simpleMap(Ge.range,Ge.r2l);nt=[St[0],.8*St[0]+.2*St[1]]}if(De.range=b.simpleMap(nt,Ge.l2r),De._isMinor=!0,$.prepTicks(De,pt),bt){var vt=v(Ge.dtick),Pt=v(De.dtick),Lt=vt?Ge.dtick:+Ge.dtick.substring(1),Ct=Pt?De.dtick:+De.dtick.substring(1);vt&&Pt?Se(Lt,Ct)?Lt===2*O&&Ct===2*h&&(De.dtick=O):Lt===2*O&&Ct===3*h?De.dtick=O:Lt!==O||(Ge._input.minor||{}).nticks?Pe(Lt/Ct,2.5)?De.dtick=Lt/2:De.dtick=Lt:De.dtick=h:String(Ge.dtick).charAt(0)==="M"?Pt?De.dtick="M1":Se(Lt,Ct)?Lt>=12&&Ct===2&&(De.dtick="M3"):De.dtick=Ge.dtick:String(De.dtick).charAt(0)==="L"?String(Ge.dtick).charAt(0)==="L"?Se(Lt,Ct)||(De.dtick=Pe(Lt/Ct,2.5)?Ge.dtick/2:Ge.dtick):De.dtick="D1":De.dtick==="D2"&&+Ge.dtick>1&&(De.dtick=1)}De.range=Ge.range}Ge.minor._tick0Init===void 0&&(De.tick0=Ge.tick0)},$.prepTicks=function(De,Ge){var pt=b.simpleMap(De.range,De.r2l,void 0,void 0,Ge);if(De.tickmode==="auto"||!De.dtick){var nt,bt=De.nticks;bt||(De.type==="category"||De.type==="multicategory"?(nt=De.tickfont?b.bigFont(De.tickfont.size||12):15,bt=De._length/nt):(nt=De._id.charAt(0)==="y"?40:80,bt=b.constrain(De._length/nt,4,9)+1),De._name==="radialaxis"&&(bt*=2)),De.minor&&De.minor.tickmode!=="array"||De.tickmode==="array"&&(bt*=100),De._roughDTick=Math.abs(pt[1]-pt[0])/bt,$.autoTicks(De,De._roughDTick),De._minDtick>0&&De.dtick<2*De._minDtick&&(De.dtick=De._minDtick,De.tick0=De.l2r(De._forceTick0))}De.ticklabelmode==="period"&&function(wt){var St;function vt(){return!(v(wt.dtick)||wt.dtick.charAt(0)!=="M")}var Pt=vt(),Lt=$.getTickFormat(wt);if(Lt){var Ct=wt._dtickInit!==wt.dtick;/%[fLQsSMX]/.test(Lt)||(/%[HI]/.test(Lt)?(St=N,Ct&&!Pt&&wt.dtick<N&&(wt.dtick=N)):/%p/.test(Lt)?(St=M,Ct&&!Pt&&wt.dtick<M&&(wt.dtick=M)):/%[Aadejuwx]/.test(Lt)?(St=h,Ct&&!Pt&&wt.dtick<h&&(wt.dtick=h)):/%[UVW]/.test(Lt)?(St=O,Ct&&!Pt&&wt.dtick<O&&(wt.dtick=O)):/%[Bbm]/.test(Lt)?(St=_,Ct&&(Pt?Ne(wt.dtick)<1:wt.dtick<S)&&(wt.dtick="M1")):/%[q]/.test(Lt)?(St=y,Ct&&(Pt?Ne(wt.dtick)<3:wt.dtick<m)&&(wt.dtick="M3")):/%[Yy]/.test(Lt)&&(St=g,Ct&&(Pt?Ne(wt.dtick)<12:wt.dtick<f)&&(wt.dtick="M12")))}(Pt=vt())&&wt.tick0===wt._dowTick0&&(wt.tick0=wt._rawTick0),wt._definedDelta=St}(De),De.tick0||(De.tick0=De.type==="date"?"2000-01-01":0),De.type==="date"&&De.dtick<.1&&(De.dtick=.1),Ee(De)},$.calcTicks=function(De,Ge){for(var pt,nt,bt=De.type,wt=De.calendar,St=De.ticklabelstep,vt=De.ticklabelmode==="period",Pt=b.simpleMap(De.range,De.r2l,void 0,void 0,Ge),Lt=Pt[1]<Pt[0],Ct=Math.min(Pt[0],Pt[1]),Rt=Math.max(Pt[0],Pt[1]),At=Math.max(1e3,De._length||0),Bt=[],nn=[],hn=[],Ht=[],Qt=De.minor&&(De.minor.ticks||De.minor.showgrid),un=1;un>=(Qt?0:1);un--){var In=!un;un?(De._dtickInit=De.dtick,De._tick0Init=De.tick0):(De.minor._dtickInit=De.minor.dtick,De.minor._tick0Init=De.minor.tick0);var zn=un?De:b.extendFlat({},De,De.minor);if(In?$.prepMinorTicks(zn,De,Ge):$.prepTicks(zn,Ge),zn.tickmode!=="array")if(zn.tickmode!=="sync"){var wn=be(Pt),rn=wn[0],vn=wn[1],dn=v(zn.dtick),_n=bt==="log"&&!(dn||zn.dtick.charAt(0)==="L"),Un=$.tickFirst(zn,Ge);if(un){if(De._tmin=Un,Un<rn!==Lt)break;bt!=="category"&&bt!=="multicategory"||(vn=Lt?Math.max(-.5,vn):Math.min(De._categories.length-.5,vn))}var An,Wn,Gn=null,jn=Un;un&&(dn?Wn=De.dtick:bt==="date"?typeof De.dtick=="string"&&De.dtick.charAt(0)==="M"&&(Wn=_*De.dtick.substring(1)):Wn=De._roughDTick,An=Math.round((De.r2l(jn)-De.r2l(De.tick0))/Wn)-1);var er=zn.dtick;for(zn.rangebreaks&&zn._tick0Init!==zn.tick0&&(jn=Xe(jn,De),Lt||(jn=$.tickIncrement(jn,er,!Lt,wt))),un&&vt&&(jn=$.tickIncrement(jn,er,!Lt,wt),An--);Lt?jn>=vn:jn<=vn;jn=$.tickIncrement(jn,er,Lt,wt)){if(un&&An++,zn.rangebreaks&&!Lt){if(jn<rn)continue;if(zn.maskBreaks(jn)===q&&Xe(jn,zn)>=Rt)break}if(hn.length>At||jn===Gn)break;Gn=jn;var Qn={value:jn};un?(_n&&jn!==(0|jn)&&(Qn.simpleLabel=!0),St>1&&An%St&&(Qn.skipLabel=!0),hn.push(Qn)):(Qn.minor=!0,Ht.push(Qn))}}else hn=[],Bt=pe(De);else un?(hn=[],Bt=fe(De,!In)):(Ht=[],nn=fe(De,!In))}if(Qt&&!(De.minor.ticks==="inside"&&De.ticks==="outside"||De.minor.ticks==="outside"&&De.ticks==="inside")){for(var vr=hn.map(function(qt){return qt.value}),wr=[],Sr=0;Sr<Ht.length;Sr++){var dr=Ht[Sr],Gr=dr.value;if(vr.indexOf(Gr)===-1){for(var Zt=!1,pn=0;!Zt&&pn<hn.length;pn++)1e7+hn[pn].value===1e7+Gr&&(Zt=!0);Zt||wr.push(dr)}}Ht=wr}if(vt&&function(qt,tn,cn){for(var On=0;On<qt.length;On++){var Cn=qt[On].value,Mn=On,xn=On+1;On<qt.length-1?(Mn=On,xn=On+1):On>0?(Mn=On-1,xn=On):(Mn=On,xn=On);var sn,ln=qt[Mn].value,fn=qt[xn].value,gn=Math.abs(fn-ln),Fn=cn||gn,Bn=0;Fn>=f?Bn=gn>=f&&gn<=d?gn:g:cn===y&&Fn>=m?Bn=gn>=m&&gn<=C?gn:y:Fn>=S?Bn=gn>=S&&gn<=x?gn:_:cn===O&&Fn>=O?Bn=O:Fn>=h?Bn=h:cn===M&&Fn>=M?Bn=M:cn===N&&Fn>=N&&(Bn=N),Bn>=gn&&(Bn=gn,sn=!0);var $n=Cn+Bn;if(tn.rangebreaks&&Bn>0){for(var tr=0,pr=0;pr<84;pr++){var sr=(pr+.5)/84;tn.maskBreaks(Cn*(1-sr)+sr*$n)!==q&&tr++}(Bn*=tr/84)||(qt[On].drop=!0),sn&&gn>O&&(Bn=gn)}(Bn>0||On===0)&&(qt[On].periodX=Cn+Bn/2)}}(hn,De,De._definedDelta),De.rangebreaks){var Ln=De._id.charAt(0)==="y",Tn=1;De.tickmode==="auto"&&(Tn=De.tickfont?De.tickfont.size:12);var qn=NaN;for(pt=hn.length-1;pt>-1;pt--)if(hn[pt].drop)hn.splice(pt,1);else{hn[pt].value=Xe(hn[pt].value,De);var rr=De.c2p(hn[pt].value);(Ln?qn>rr-Tn:qn<rr+Tn)?hn.splice(Lt?pt+1:pt,1):qn=rr}}tt(De)&&Math.abs(Pt[1]-Pt[0])===360&&hn.pop(),De._tmax=(hn[hn.length-1]||{}).value,De._prevDateHead="",De._inCalcTicks=!0;var Zn,Yn,gr=function(qt){qt.text="",De._prevDateHead=nt};for(hn=hn.concat(Ht),pt=0;pt<hn.length;pt++){var en=hn[pt].minor,kn=hn[pt].value;en?nn.push({x:kn,minor:!0}):(nt=De._prevDateHead,Zn=$.tickText(De,kn,!1,hn[pt].simpleLabel),(Yn=hn[pt].periodX)!==void 0&&(Zn.periodX=Yn,(Yn>Rt||Yn<Ct)&&(Yn>Rt&&(Zn.periodX=Rt),Yn<Ct&&(Zn.periodX=Ct),gr(Zn))),hn[pt].skipLabel&&gr(Zn),Bt.push(Zn))}return Bt=Bt.concat(nn),De._inCalcTicks=!1,vt&&Bt.length&&(Bt[0].noTick=!0),Bt};var xe=[2,5,10],ze=[1,2,3,6,12],Le=[1,2,5,10,15,30],Ue=[1,2,3,7,14],Re=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],Fe=[-.301,0,.301,.699,1],ve=[15,30,45,90,180];function ke(De,Ge,pt){return Ge*b.roundUp(De/Ge,pt)}function Ee(De){var Ge=De.dtick;if(De._tickexponent=0,v(Ge)||typeof Ge=="string"||(Ge=1),De.type!=="category"&&De.type!=="multicategory"||(De._tickround=null),De.type==="date"){var pt=De.r2l(De.tick0),nt=De.l2r(pt).replace(/(^-|i)/g,""),bt=nt.length;if(String(Ge).charAt(0)==="M")bt>10||nt.substr(5)!=="01-01"?De._tickround="d":De._tickround=+Ge.substr(1)%12==0?"y":"m";else if(Ge>=h&&bt<=10||Ge>=15*h)De._tickround="d";else if(Ge>=P&&bt<=16||Ge>=N)De._tickround="M";else if(Ge>=R&&bt<=19||Ge>=P)De._tickround="S";else{var wt=De.l2r(pt+Ge).replace(/^-/,"").length;De._tickround=Math.max(bt,wt)-20,De._tickround<0&&(De._tickround=4)}}else if(v(Ge)||Ge.charAt(0)==="L"){var St=De.range.map(De.r2d||Number);v(Ge)||(Ge=Number(Ge.substr(1))),De._tickround=2-Math.floor(Math.log(Ge)/Math.LN10+.01);var vt=Math.max(Math.abs(St[0]),Math.abs(St[1])),Pt=Math.floor(Math.log(vt)/Math.LN10+.01),Lt=De.minexponent===void 0?3:De.minexponent;Math.abs(Pt)>Lt&&(Ie(De.exponentformat)&&!Ze(Pt)?De._tickexponent=3*Math.round((Pt-1)/3):De._tickexponent=Pt)}else De._tickround=null}function je(De,Ge,pt){var nt=De.tickfont||{};return{x:Ge,dx:0,dy:0,text:pt||"",fontSize:nt.size,font:nt.family,fontColor:nt.color}}$.autoTicks=function(De,Ge,pt){var nt;function bt(Rt){return Math.pow(Rt,Math.floor(Math.log(Ge)/Math.LN10))}if(De.type==="date"){De.tick0=b.dateTick0(De.calendar,0);var wt=2*Ge;if(wt>g)Ge/=g,nt=bt(10),De.dtick="M"+12*ke(Ge,nt,xe);else if(wt>_)Ge/=_,De.dtick="M"+ke(Ge,1,ze);else if(wt>h){if(De.dtick=ke(Ge,h,De._hasDayOfWeekBreaks?[1,2,7,14]:Ue),!pt){var St=$.getTickFormat(De),vt=De.ticklabelmode==="period";vt&&(De._rawTick0=De.tick0),/%[uVW]/.test(St)?De.tick0=b.dateTick0(De.calendar,2):De.tick0=b.dateTick0(De.calendar,1),vt&&(De._dowTick0=De.tick0)}}else wt>N?De.dtick=ke(Ge,N,ze):wt>P?De.dtick=ke(Ge,P,Le):wt>R?De.dtick=ke(Ge,R,Le):(nt=bt(10),De.dtick=ke(Ge,nt,xe))}else if(De.type==="log"){De.tick0=0;var Pt=b.simpleMap(De.range,De.r2l);if(De._isMinor&&(Ge*=1.5),Ge>.7)De.dtick=Math.ceil(Ge);else if(Math.abs(Pt[1]-Pt[0])<1){var Lt=1.5*Math.abs((Pt[1]-Pt[0])/Ge);Ge=Math.abs(Math.pow(10,Pt[1])-Math.pow(10,Pt[0]))/Lt,nt=bt(10),De.dtick="L"+ke(Ge,nt,xe)}else De.dtick=Ge>.3?"D2":"D1"}else De.type==="category"||De.type==="multicategory"?(De.tick0=0,De.dtick=Math.ceil(Math.max(Ge,1))):tt(De)?(De.tick0=0,nt=1,De.dtick=ke(Ge,nt,ve)):(De.tick0=0,nt=bt(10),De.dtick=ke(Ge,nt,xe));if(De.dtick===0&&(De.dtick=1),!v(De.dtick)&&typeof De.dtick!="string"){var Ct=De.dtick;throw De.dtick=1,"ax.dtick error: "+String(Ct)}},$.tickIncrement=function(De,Ge,pt,nt){var bt=pt?-1:1;if(v(Ge))return b.increment(De,bt*Ge);var wt=Ge.charAt(0),St=bt*Number(Ge.substr(1));if(wt==="M")return b.incrementMonth(De,St,nt);if(wt==="L")return Math.log(Math.pow(10,De)+St)/Math.LN10;if(wt==="D"){var vt=Ge==="D2"?Fe:Re,Pt=De+.01*bt,Lt=b.roundUp(b.mod(Pt,1),vt,pt);return Math.floor(Pt)+Math.log(k.round(Math.pow(10,Lt),1))/Math.LN10}throw"unrecognized dtick "+String(Ge)},$.tickFirst=function(De,Ge){var pt=De.r2l||Number,nt=b.simpleMap(De.range,pt,void 0,void 0,Ge),bt=nt[1]<nt[0],wt=bt?Math.floor:Math.ceil,St=be(nt)[0],vt=De.dtick,Pt=pt(De.tick0);if(v(vt)){var Lt=wt((St-Pt)/vt)*vt+Pt;return De.type!=="category"&&De.type!=="multicategory"||(Lt=b.constrain(Lt,0,De._categories.length-1)),Lt}var Ct=vt.charAt(0),Rt=Number(vt.substr(1));if(Ct==="M"){for(var At,Bt,nn,hn=0,Ht=Pt;hn<10;){if(((At=$.tickIncrement(Ht,vt,bt,De.calendar))-St)*(Ht-St)<=0)return bt?Math.min(Ht,At):Math.max(Ht,At);Bt=(St-(Ht+At)/2)/(At-Ht),nn=Ct+(Math.abs(Math.round(Bt))||1)*Rt,Ht=$.tickIncrement(Ht,nn,Bt<0?!bt:bt,De.calendar),hn++}return b.error("tickFirst did not converge",De),Ht}if(Ct==="L")return Math.log(wt((Math.pow(10,St)-Pt)/Rt)*Rt+Pt)/Math.LN10;if(Ct==="D"){var Qt=vt==="D2"?Fe:Re,un=b.roundUp(b.mod(St,1),Qt,bt);return Math.floor(St)+Math.log(k.round(Math.pow(10,un),1))/Math.LN10}throw"unrecognized dtick "+String(vt)},$.tickText=function(De,Ge,pt,nt){var bt,wt=je(De,Ge),St=De.tickmode==="array",vt=pt||St,Pt=De.type,Lt=Pt==="category"?De.d2l_noadd:De.d2l;if(St&&b.isArrayOrTypedArray(De.ticktext)){var Ct=b.simpleMap(De.range,De.r2l),Rt=(Math.abs(Ct[1]-Ct[0])-(De._lBreaks||0))/1e4;for(bt=0;bt<De.ticktext.length&&!(Math.abs(Ge-Lt(De.tickvals[bt]))<Rt);bt++);if(bt<De.ticktext.length)return wt.text=String(De.ticktext[bt]),wt}function At(Ht){if(Ht===void 0)return!0;if(pt)return Ht==="none";var Qt={first:De._tmin,last:De._tmax}[Ht];return Ht!=="all"&&Ge!==Qt}var Bt=pt?"never":De.exponentformat!=="none"&&At(De.showexponent)?"hide":"";if(Pt==="date"?function(Ht,Qt,un,In){var zn=Ht._tickround,wn=un&&Ht.hoverformat||$.getTickFormat(Ht);(In=!wn&&In)&&(zn=v(zn)?4:{y:"m",m:"d",d:"M",M:"S",S:4}[zn]);var rn,vn=b.formatDate(Qt.x,wn,zn,Ht._dateFormat,Ht.calendar,Ht._extraFormat),dn=vn.indexOf(`
55
55
  `);if(dn!==-1&&(rn=vn.substr(dn+1),vn=vn.substr(0,dn)),In&&(rn===void 0||vn!=="00:00:00"&&vn!=="00:00"?vn.length===8&&(vn=vn.replace(/:00$/,"")):(vn=rn,rn="")),rn)if(un)zn==="d"?vn+=", "+rn:vn=rn+(vn?", "+vn:"");else if(Ht._inCalcTicks&&Ht._prevDateHead===rn){var _n=et(Ht),Un=Ht._trueSide||Ht.side;(!_n&&Un==="top"||_n&&Un==="bottom")&&(vn+="<br> ")}else Ht._prevDateHead=rn,vn+="<br>"+rn;Qt.text=vn}(De,wt,pt,vt):Pt==="log"?function(Ht,Qt,un,In,zn){var wn=Ht.dtick,rn=Qt.x,vn=Ht.tickformat,dn=typeof wn=="string"&&wn.charAt(0);if(zn==="never"&&(zn=""),In&&dn!=="L"&&(wn="L3",dn="L"),vn||dn==="L")Qt.text=He(Math.pow(10,rn),Ht,zn,In);else if(v(wn)||dn==="D"&&b.mod(rn+.01,1)<.1){var _n=Math.round(rn),Un=Math.abs(_n),An=Ht.exponentformat;An==="power"||Ie(An)&&Ze(_n)?(Qt.text=_n===0?1:_n===1?"10":"10<sup>"+(_n>1?"":A)+Un+"</sup>",Qt.fontSize*=1.25):(An==="e"||An==="E")&&Un>2?Qt.text="1"+An+(_n>0?"+":A)+Un:(Qt.text=He(Math.pow(10,rn),Ht,"","fakehover"),wn==="D1"&&Ht._id.charAt(0)==="y"&&(Qt.dy-=Qt.fontSize/6))}else{if(dn!=="D")throw"unrecognized dtick "+String(wn);Qt.text=String(Math.round(Math.pow(10,b.mod(rn,1)))),Qt.fontSize*=.75}if(Ht.dtick==="D1"){var Wn=String(Qt.text).charAt(0);Wn!=="0"&&Wn!=="1"||(Ht._id.charAt(0)==="y"?Qt.dx-=Qt.fontSize/4:(Qt.dy+=Qt.fontSize/2,Qt.dx+=(Ht.range[1]>Ht.range[0]?1:-1)*Qt.fontSize*(rn<0?.5:.25)))}}(De,wt,0,vt,Bt):Pt==="category"?function(Ht,Qt){var un=Ht._categories[Math.round(Qt.x)];un===void 0&&(un=""),Qt.text=String(un)}(De,wt):Pt==="multicategory"?function(Ht,Qt,un){var In=Math.round(Qt.x),zn=Ht._categories[In]||[],wn=zn[1]===void 0?"":String(zn[1]),rn=zn[0]===void 0?"":String(zn[0]);un?Qt.text=rn+" - "+wn:(Qt.text=wn,Qt.text2=rn)}(De,wt,pt):tt(De)?function(Ht,Qt,un,In,zn){if(Ht.thetaunit!=="radians"||un)Qt.text=He(Qt.x,Ht,zn,In);else{var wn=Qt.x/180;if(wn===0)Qt.text="0";else{var rn=function(dn){function _n(Gn,jn){return Math.abs(Gn-jn)<=1e-6}var Un=function(Gn){for(var jn=1;!_n(Math.round(Gn*jn)/jn,Gn);)jn*=10;return jn}(dn),An=dn*Un,Wn=Math.abs(function Gn(jn,er){return _n(er,0)?jn:Gn(er,jn%er)}(An,Un));return[Math.round(An/Wn),Math.round(Un/Wn)]}(wn);if(rn[1]>=100)Qt.text=He(b.deg2rad(Qt.x),Ht,zn,In);else{var vn=Qt.x<0;rn[1]===1?rn[0]===1?Qt.text="π":Qt.text=rn[0]+"π":Qt.text=["<sup>",rn[0],"</sup>","⁄","<sub>",rn[1],"</sub>","π"].join(""),vn&&(Qt.text=A+Qt.text)}}}}(De,wt,pt,vt,Bt):function(Ht,Qt,un,In,zn){zn==="never"?zn="":Ht.showexponent==="all"&&Math.abs(Qt.x/Ht.dtick)<1e-6&&(zn="hide"),Qt.text=He(Qt.x,Ht,zn,In)}(De,wt,0,vt,Bt),nt||(De.tickprefix&&!At(De.showtickprefix)&&(wt.text=De.tickprefix+wt.text),De.ticksuffix&&!At(De.showticksuffix)&&(wt.text+=De.ticksuffix)),De.labelalias&&De.labelalias.hasOwnProperty(wt.text)){var nn=De.labelalias[wt.text];typeof nn=="string"&&(wt.text=nn)}if(De.tickson==="boundaries"||De.showdividers){var hn=function(Ht){var Qt=De.l2p(Ht);return Qt>=0&&Qt<=De._length?Ht:null};wt.xbnd=[hn(wt.x-.5),hn(wt.x+De.dtick-.5)]}return wt},$.hoverLabelText=function(De,Ge,pt){pt&&(De=b.extendFlat({},De,{hoverformat:pt}));var nt=b.isArrayOrTypedArray(Ge)?Ge[0]:Ge,bt=b.isArrayOrTypedArray(Ge)?Ge[1]:void 0;if(bt!==void 0&&bt!==nt)return $.hoverLabelText(De,nt,pt)+" - "+$.hoverLabelText(De,bt,pt);var wt=De.type==="log"&&nt<=0,St=$.tickText(De,De.c2l(wt?-nt:nt),"hover").text;return wt?nt===0?"0":A+St:St};var Be=["f","p","n","μ","m","","k","M","G","T"];function Ie(De){return De==="SI"||De==="B"}function Ze(De){return De>14||De<-15}function He(De,Ge,pt,nt){var bt=De<0,wt=Ge._tickround,St=pt||Ge.exponentformat||"B",vt=Ge._tickexponent,Pt=$.getTickFormat(Ge),Lt=Ge.separatethousands;if(nt){var Ct={exponentformat:St,minexponent:Ge.minexponent,dtick:Ge.showexponent==="none"?Ge.dtick:v(De)&&Math.abs(De)||1,range:Ge.showexponent==="none"?Ge.range.map(Ge.r2d):[0,De||1]};Ee(Ct),wt=(Number(Ct._tickround)||0)+4,vt=Ct._tickexponent,Ge.hoverformat&&(Pt=Ge.hoverformat)}if(Pt)return Ge._numFormat(Pt)(De).replace(/-/g,A);var Rt,At=Math.pow(10,-wt)/2;if(St==="none"&&(vt=0),(De=Math.abs(De))<At)De="0",bt=!1;else{if(De+=At,vt&&(De*=Math.pow(10,-vt),wt+=vt),wt===0)De=String(Math.floor(De));else if(wt<0){De=(De=String(Math.round(De))).substr(0,De.length+wt);for(var Bt=wt;Bt<0;Bt++)De+="0"}else{var nn=(De=String(De)).indexOf(".")+1;nn&&(De=De.substr(0,nn+wt).replace(/\.?0+$/,""))}De=b.numSeparate(De,Ge._separators,Lt)}return vt&&St!=="hide"&&(Ie(St)&&Ze(vt)&&(St="power"),Rt=vt<0?A+-vt:St!=="power"?"+"+vt:String(vt),St==="e"||St==="E"?De+=St+Rt:St==="power"?De+="×10<sup>"+Rt+"</sup>":St==="B"&&vt===9?De+="B":Ie(St)&&(De+=Be[vt/3+5])),bt?A+De:De}function at(De,Ge){if(De){var pt=Object.keys(B).reduce(function(nt,bt){return Ge.indexOf(bt)!==-1&&B[bt].forEach(function(wt){nt[wt]=1}),nt},{});Object.keys(De).forEach(function(nt){pt[nt]||(nt.length===1?De[nt]=0:delete De[nt])})}}function ft(De,Ge){for(var pt=[],nt={},bt=0;bt<Ge.length;bt++){var wt=Ge[bt];nt[wt.text2]?nt[wt.text2].push(wt.x):nt[wt.text2]=[wt.x]}for(var St in nt)pt.push(je(De,b.interp(nt[St],.5),St));return pt}function ut(De){return De.periodX!==void 0?De.periodX:De.x}function _t(De){return[De.text,De.x,De.axInfo,De.font,De.fontSize,De.fontColor].join("_")}function Nt(De){var Ge=De.title.font.size,pt=(De.title.text.match(a.BR_TAG_ALL)||[]).length;return De.title.hasOwnProperty("standoff")?pt?Ge*(se+pt*re):Ge*se:pt?Ge*(pt+1)*re:Ge}function Tt(De,Ge){var pt=De.l2p(Ge);return pt>1&&pt<De._length-1}function st(De){var Ge=k.select(De),pt=Ge.select(".text-math-group");return pt.empty()?Ge.select("text"):pt}function lt(De){return De._id+".automargin"}function Vt(De){return lt(De)+".mirror"}function jt(De){return De._id+".rangeslider"}function Kt(De,Ge){for(var pt=0;pt<Ge.length;pt++)De.indexOf(Ge[pt])===-1&&De.push(Ge[pt])}function It(De,Ge,pt){var nt,bt,wt=[],St=[],vt=De.layout;for(nt=0;nt<Ge.length;nt++)wt.push($.getFromId(De,Ge[nt]));for(nt=0;nt<pt.length;nt++)St.push($.getFromId(De,pt[nt]));var Pt=Object.keys(s),Lt=["anchor","domain","overlaying","position","side","tickangle","editType"],Ct=["linear","log"];for(nt=0;nt<Pt.length;nt++){var Rt=Pt[nt],At=wt[0][Rt],Bt=St[0][Rt],nn=!0,hn=!1,Ht=!1;if(Rt.charAt(0)!=="_"&&typeof At!="function"&&Lt.indexOf(Rt)===-1){for(bt=1;bt<wt.length&&nn;bt++){var Qt=wt[bt][Rt];Rt==="type"&&Ct.indexOf(At)!==-1&&Ct.indexOf(Qt)!==-1&&At!==Qt?hn=!0:Qt!==At&&(nn=!1)}for(bt=1;bt<St.length&&nn;bt++){var un=St[bt][Rt];Rt==="type"&&Ct.indexOf(Bt)!==-1&&Ct.indexOf(un)!==-1&&Bt!==un?Ht=!0:St[bt][Rt]!==Bt&&(nn=!1)}nn&&(hn&&(vt[wt[0]._name].type="linear"),Ht&&(vt[St[0]._name].type="linear"),$e(vt,Rt,wt,St,De._fullLayout._dfltTitle))}}for(nt=0;nt<De._fullLayout.annotations.length;nt++){var In=De._fullLayout.annotations[nt];Ge.indexOf(In.xref)!==-1&&pt.indexOf(In.yref)!==-1&&b.swapAttrs(vt.annotations[nt],["?"])}}function $e(De,Ge,pt,nt,bt){var wt,St=b.nestedProperty,vt=St(De[pt[0]._name],Ge).get(),Pt=St(De[nt[0]._name],Ge).get();for(Ge==="title"&&(vt&&vt.text===bt.x&&(vt.text=bt.y),Pt&&Pt.text===bt.y&&(Pt.text=bt.x)),wt=0;wt<pt.length;wt++)St(De,pt[wt]._name+"."+Ge).set(Pt);for(wt=0;wt<nt.length;wt++)St(De,nt[wt]._name+"."+Ge).set(vt)}function tt(De){return De._id==="angularaxis"}function Xe(De,Ge){for(var pt=Ge._rangebreaks.length,nt=0;nt<pt;nt++){var bt=Ge._rangebreaks[nt];if(De>=bt.min&&De<bt.max)return bt.max}return De}function et(De){return(De.ticklabelposition||"").indexOf("inside")!==-1}function ht(De,Ge){et(De._anchorAxis||{})&&De._hideCounterAxisInsideTickLabels&&De._hideCounterAxisInsideTickLabels(Ge)}function dt(De,Ge,pt,nt){var bt,wt=De.anchor==="free"||De.overlaying!==void 0&&De.overlaying!==!1?De.overlaying:De._id;bt=nt?De.side==="right"?Ge:-Ge:Ge,wt in pt||(pt[wt]={}),De.side in pt[wt]||(pt[wt][De.side]=0),pt[wt][De.side]+=bt}$.getTickFormat=function(De){var Ge,pt,nt,bt,wt,St,vt,Pt;function Lt(At){return typeof At!="string"?At:Number(At.replace("M",""))*_}function Ct(At,Bt){var nn=["L","D"];if(typeof At==typeof Bt){if(typeof At=="number")return At-Bt;var hn=nn.indexOf(At.charAt(0)),Ht=nn.indexOf(Bt.charAt(0));return hn===Ht?Number(At.replace(/(L|D)/g,""))-Number(Bt.replace(/(L|D)/g,"")):hn-Ht}return typeof At=="number"?1:-1}function Rt(At,Bt){var nn=Bt[0]===null,hn=Bt[1]===null,Ht=Ct(At,Bt[0])>=0,Qt=Ct(At,Bt[1])<=0;return(nn||Ht)&&(hn||Qt)}if(De.tickformatstops&&De.tickformatstops.length>0)switch(De.type){case"date":case"linear":for(Ge=0;Ge<De.tickformatstops.length;Ge++)if((nt=De.tickformatstops[Ge]).enabled&&(bt=De.dtick,wt=nt.dtickrange,St=void 0,vt=void 0,Pt=void 0,St=Lt||function(At){return At},vt=wt[0],Pt=wt[1],(!vt&&typeof vt!="number"||St(vt)<=St(bt))&&(!Pt&&typeof Pt!="number"||St(Pt)>=St(bt)))){pt=nt;break}break;case"log":for(Ge=0;Ge<De.tickformatstops.length;Ge++)if((nt=De.tickformatstops[Ge]).enabled&&Rt(De.dtick,nt.dtickrange)){pt=nt;break}}return pt?pt.value:De.tickformat},$.getSubplots=function(De,Ge){var pt=De._fullLayout._subplots,nt=pt.cartesian.concat(pt.gl2d||[]),bt=Ge?$.findSubplotsWithAxis(nt,Ge):nt;return bt.sort(function(wt,St){var vt=wt.substr(1).split("y"),Pt=St.substr(1).split("y");return vt[0]===Pt[0]?+vt[1]-+Pt[1]:+vt[0]-+Pt[0]}),bt},$.findSubplotsWithAxis=function(De,Ge){for(var pt=new RegExp(Ge._id.charAt(0)==="x"?"^"+Ge._id+"y":Ge._id+"$"),nt=[],bt=0;bt<De.length;bt++){var wt=De[bt];pt.test(wt)&&nt.push(wt)}return nt},$.makeClipPaths=function(De){var Ge=De._fullLayout;if(!Ge._hasOnlyLargeSploms){var pt,nt,bt={_offset:0,_length:Ge.width,_id:""},wt={_offset:0,_length:Ge.height,_id:""},St=$.list(De,"x",!0),vt=$.list(De,"y",!0),Pt=[];for(pt=0;pt<St.length;pt++)for(Pt.push({x:St[pt],y:wt}),nt=0;nt<vt.length;nt++)pt===0&&Pt.push({x:bt,y:vt[nt]}),Pt.push({x:St[pt],y:vt[nt]});var Lt=Ge._clips.selectAll(".axesclip").data(Pt,function(Ct){return Ct.x._id+Ct.y._id});Lt.enter().append("clipPath").classed("axesclip",!0).attr("id",function(Ct){return"clip"+Ge._uid+Ct.x._id+Ct.y._id}).append("rect"),Lt.exit().remove(),Lt.each(function(Ct){k.select(this).select("rect").attr({x:Ct.x._offset||0,y:Ct.y._offset||0,width:Ct.x._length||1,height:Ct.y._length||1})})}},$.draw=function(De,Ge,pt){var nt=De._fullLayout;Ge==="redraw"&&nt._paper.selectAll("g.subplot").each(function(vt){var Pt=vt[0],Lt=nt._plots[Pt];if(Lt){var Ct=Lt.xaxis,Rt=Lt.yaxis;Lt.xaxislayer.selectAll("."+Ct._id+"tick").remove(),Lt.yaxislayer.selectAll("."+Rt._id+"tick").remove(),Lt.xaxislayer.selectAll("."+Ct._id+"tick2").remove(),Lt.yaxislayer.selectAll("."+Rt._id+"tick2").remove(),Lt.xaxislayer.selectAll("."+Ct._id+"divider").remove(),Lt.yaxislayer.selectAll("."+Rt._id+"divider").remove(),Lt.minorGridlayer&&Lt.minorGridlayer.selectAll("path").remove(),Lt.gridlayer&&Lt.gridlayer.selectAll("path").remove(),Lt.zerolinelayer&&Lt.zerolinelayer.selectAll("path").remove(),nt._infolayer.select(".g-"+Ct._id+"title").remove(),nt._infolayer.select(".g-"+Rt._id+"title").remove()}});var bt=Ge&&Ge!=="redraw"?Ge:$.listIds(De),wt=$.list(De).filter(function(vt){return vt.autoshift}).map(function(vt){return vt.overlaying});bt.map(function(vt){var Pt=$.getFromId(De,vt);if(Pt.tickmode==="sync"&&Pt.overlaying){var Lt=bt.findIndex(function(Ct){return Ct===Pt.overlaying});Lt>=0&&bt.unshift(bt.splice(Lt,1).shift())}});var St={false:{left:0,right:0}};return b.syncOrAsync(bt.map(function(vt){return function(){if(vt){var Pt=$.getFromId(De,vt);pt||(pt={}),pt.axShifts=St,pt.overlayingShiftedAx=wt;var Lt=$.drawOne(De,Pt,pt);return Pt._shiftPusher&&dt(Pt,Pt._fullDepth||0,St,!0),Pt._r=Pt.range.slice(),Pt._rl=b.simpleMap(Pt._r,Pt.r2l),Lt}}}))},$.drawOne=function(De,Ge,pt){var nt,bt,wt,St=(pt=pt||{}).axShifts||{},vt=pt.overlayingShiftedAx||[];Ge.setScale();var Pt=De._fullLayout,Lt=Ge._id,Ct=Lt.charAt(0),Rt=$.counterLetter(Lt),At=Pt._plots[Ge._mainSubplot];if(At){if(Ge._shiftPusher=Ge.autoshift||vt.indexOf(Ge._id)!==-1||vt.indexOf(Ge.overlaying)!==-1,Ge._shiftPusher&Ge.anchor==="free"){var Bt=Ge.linewidth/2||0;Ge.ticks==="inside"&&(Bt+=Ge.ticklen),dt(Ge,Bt,St,!0),dt(Ge,Ge.shift||0,St,!1)}pt.skipTitle===!0&&Ge._shift!==void 0||(Ge._shift=function(xn,sn){return xn.autoshift?sn[xn.overlaying][xn.side]:xn.shift||0}(Ge,St));var nn=At[Ct+"axislayer"],hn=Ge._mainLinePosition,Ht=hn+=Ge._shift,Qt=Ge._mainMirrorPosition,un=Ge._vals=$.calcTicks(Ge),In=[Ge.mirror,Ht,Qt].join("_");for(nt=0;nt<un.length;nt++)un[nt].axInfo=In;Ge._selections={},Ge._tickAngles&&(Ge._prevTickAngles=Ge._tickAngles),Ge._tickAngles={},Ge._depth=null;var zn={};if(Ge.visible){var wn,rn,vn=$.makeTransTickFn(Ge),dn=$.makeTransTickLabelFn(Ge),_n=Ge.ticks==="inside",Un=Ge.ticks==="outside";if(Ge.tickson==="boundaries"){var An=function(xn,sn){var ln,fn=[],gn=function(Fn,Bn){var $n=Fn.xbnd?Fn.xbnd[Bn]:Fn.x;$n!==null&&fn.push(b.extendFlat({},Fn,{x:$n}))};if(sn.length){for(ln=0;ln<sn.length;ln++)gn(sn[ln],0);gn(sn[ln-1],1)}return fn}(0,un);rn=$.clipEnds(Ge,An),wn=_n?rn:An}else rn=$.clipEnds(Ge,un),wn=_n&&Ge.ticklabelmode!=="period"?rn:un;var Wn,Gn=Ge._gridVals=rn,jn=function(xn,sn){var ln,fn,gn=[],Fn=sn.length&&sn[sn.length-1].x<sn[0].x,Bn=function(tr,pr){var sr=tr.xbnd[pr];sr!==null&&gn.push(b.extendFlat({},tr,{x:sr}))};if(xn.showdividers&&sn.length){for(ln=0;ln<sn.length;ln++){var $n=sn[ln];$n.text2!==fn&&Bn($n,Fn?1:0),fn=$n.text2}Bn(sn[ln-1],Fn?0:1)}return gn}(Ge,un);if(!Pt._hasOnlyLargeSploms){var er=Ge._subplotsWith,Qn={};for(nt=0;nt<er.length;nt++){bt=er[nt];var vr=(wt=Pt._plots[bt])[Rt+"axis"],wr=vr._mainAxis._id;if(!Qn[wr]){Qn[wr]=1;var Sr=Ct==="x"?"M0,"+vr._offset+"v"+vr._length:"M"+vr._offset+",0h"+vr._length;$.drawGrid(De,Ge,{vals:Gn,counterAxis:vr,layer:wt.gridlayer.select("."+Lt),minorLayer:wt.minorGridlayer.select("."+Lt),path:Sr,transFn:vn}),$.drawZeroLine(De,Ge,{counterAxis:vr,layer:wt.zerolinelayer,path:Sr,transFn:vn})}}}var dr=$.getTickSigns(Ge),Gr=$.getTickSigns(Ge,"minor");if(Ge.ticks||Ge.minor&&Ge.minor.ticks){var Zt,pn,Ln,Tn,qn=$.makeTickPath(Ge,Ht,dr[2]),rr=$.makeTickPath(Ge,Ht,Gr[2],{minor:!0});if(Ge._anchorAxis&&Ge.mirror&&Ge.mirror!==!0?(Zt=$.makeTickPath(Ge,Qt,dr[3]),pn=$.makeTickPath(Ge,Qt,Gr[3],{minor:!0}),Ln=qn+Zt,Tn=rr+pn):(Zt="",pn="",Ln=qn,Tn=rr),Ge.showdividers&&Un&&Ge.tickson==="boundaries"){var Zn={};for(nt=0;nt<jn.length;nt++)Zn[jn[nt].x]=1;Wn=function(xn){return Zn[xn.x]?Zt:Ln}}else Wn=function(xn){return xn.minor?Tn:Ln}}if($.drawTicks(De,Ge,{vals:wn,layer:nn,path:Wn,transFn:vn}),Ge.mirror==="allticks"){var Yn=Object.keys(Ge._linepositions||{});for(nt=0;nt<Yn.length;nt++){bt=Yn[nt],wt=Pt._plots[bt];var gr=Ge._linepositions[bt]||[],en=gr[0],kn=gr[1],qt=gr[2],tn=$.makeTickPath(Ge,en,qt?dr[0]:Gr[0],{minor:qt})+$.makeTickPath(Ge,kn,qt?dr[1]:Gr[1],{minor:qt});$.drawTicks(De,Ge,{vals:wn,layer:wt[Ct+"axislayer"],path:tn,transFn:vn})}}var cn=[];if(cn.push(function(){return $.drawLabels(De,Ge,{vals:un,layer:nn,plotinfo:wt,transFn:dn,labelFns:$.makeLabelFns(Ge,Ht)})}),Ge.type==="multicategory"){var On={x:2,y:10}[Ct];cn.push(function(){var xn={x:"height",y:"width"}[Ct],sn=Mn()[xn]+On+(Ge._tickAngles[Lt+"tick"]?Ge.tickfont.size*re:0);return $.drawLabels(De,Ge,{vals:ft(Ge,un),layer:nn,cls:Lt+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:vn,labelFns:$.makeLabelFns(Ge,Ht+sn*dr[4])})}),cn.push(function(){return Ge._depth=dr[4]*(Mn("tick2")[Ge.side]-Ht),function(xn,sn,ln){var fn=sn._id+"divider",gn=ln.vals,Fn=ln.layer.selectAll("path."+fn).data(gn,_t);Fn.exit().remove(),Fn.enter().insert("path",":first-child").classed(fn,1).classed("crisp",1).call(o.stroke,sn.dividercolor).style("stroke-width",i.crispRound(xn,sn.dividerwidth,1)+"px"),Fn.attr("transform",ln.transFn).attr("d",ln.path)}(De,Ge,{vals:jn,layer:nn,path:$.makeTickPath(Ge,Ht,dr[4],{len:Ge._depth}),transFn:vn})})}else Ge.title.hasOwnProperty("standoff")&&cn.push(function(){Ge._depth=dr[4]*(Mn()[Ge.side]-Ht)});var Cn=w.getComponentMethod("rangeslider","isVisible")(Ge);return pt.skipTitle||Cn&&Ge.side==="bottom"||cn.push(function(){return function(xn,sn){var ln,fn=xn._fullLayout,gn=sn._id,Fn=gn.charAt(0),Bn=sn.title.font.size;if(sn.title.hasOwnProperty("standoff"))ln=sn._depth+sn.title.standoff+Nt(sn);else{var $n=et(sn);if(sn.type==="multicategory")ln=sn._depth;else{var tr=1.5*Bn;$n&&(tr=.5*Bn,sn.ticks==="outside"&&(tr+=sn.ticklen)),ln=10+tr+(sn.linewidth?sn.linewidth-1:0)}$n||(ln+=Fn==="x"?sn.side==="top"?Bn*(sn.showticklabels?1:0):Bn*(sn.showticklabels?1.5:.5):sn.side==="right"?Bn*(sn.showticklabels?1:.5):Bn*(sn.showticklabels?.5:0))}var pr,sr,br,mr,lr=$.getPxPosition(xn,sn);if(Fn==="x"?(sr=sn._offset+sn._length/2,br=sn.side==="top"?lr-ln:lr+ln):(br=sn._offset+sn._length/2,sr=sn.side==="right"?lr+ln:lr-ln,pr={rotate:"-90",offset:0}),sn.type!=="multicategory"){var Mr=sn._selections[sn._id+"tick"];if(mr={selection:Mr,side:sn.side},Mr&&Mr.node()&&Mr.node().parentNode){var _r=i.getTranslate(Mr.node().parentNode);mr.offsetLeft=_r.x,mr.offsetTop=_r.y}sn.title.hasOwnProperty("standoff")&&(mr.pad=0)}return sn._titleStandoff=ln,t.draw(xn,gn+"title",{propContainer:sn,propName:sn._name+".title.text",placeholder:fn._dfltTitle[Fn],avoid:mr,transform:pr,attributes:{x:sr,y:br,"text-anchor":"middle"}})}(De,Ge)}),cn.push(function(){var xn,sn,ln,fn,gn=Ge.side.charAt(0),Fn=ne[Ge.side].charAt(0),Bn=$.getPxPosition(De,Ge),$n=Un?Ge.ticklen:0;(Ge.automargin||Cn||Ge._shiftPusher)&&(Ge.type==="multicategory"?xn=Mn("tick2"):(xn=Mn(),Ct==="x"&&gn==="b"&&(Ge._depth=Math.max(xn.width>0?xn.bottom-Bn:0,$n))));var tr=0,pr=0;if(Ge._shiftPusher&&(tr=Math.max($n,xn.height>0?gn==="l"?Bn-xn.left:xn.right-Bn:0),Ge.title.text!==Pt._dfltTitle[Ct]&&(pr=(Ge._titleStandoff||0)+(Ge._titleScoot||0),gn==="l"&&(pr+=Nt(Ge))),Ge._fullDepth=Math.max(tr,pr)),Ge.automargin){sn={x:0,y:0,r:0,l:0,t:0,b:0};var sr=[0,1],br=typeof Ge._shift=="number"?Ge._shift:0;if(Ct==="x"){if(gn==="b"?sn[gn]=Ge._depth:(sn[gn]=Ge._depth=Math.max(xn.width>0?Bn-xn.top:0,$n),sr.reverse()),xn.width>0){var mr=xn.right-(Ge._offset+Ge._length);mr>0&&(sn.xr=1,sn.r=mr);var lr=Ge._offset-xn.left;lr>0&&(sn.xl=0,sn.l=lr)}}else if(gn==="l"?(Ge._depth=Math.max(xn.height>0?Bn-xn.left:0,$n),sn[gn]=Ge._depth-br):(Ge._depth=Math.max(xn.height>0?xn.right-Bn:0,$n),sn[gn]=Ge._depth+br,sr.reverse()),xn.height>0){var Mr=xn.bottom-(Ge._offset+Ge._length);Mr>0&&(sn.yb=0,sn.b=Mr);var _r=Ge._offset-xn.top;_r>0&&(sn.yt=1,sn.t=_r)}sn[Rt]=Ge.anchor==="free"?Ge.position:Ge._anchorAxis.domain[sr[0]],Ge.title.text!==Pt._dfltTitle[Ct]&&(sn[gn]+=Nt(Ge)+(Ge.title.standoff||0)),Ge.mirror&&Ge.anchor!=="free"&&((ln={x:0,y:0,r:0,l:0,t:0,b:0})[Fn]=Ge.linewidth,Ge.mirror&&Ge.mirror!==!0&&(ln[Fn]+=$n),Ge.mirror===!0||Ge.mirror==="ticks"?ln[Rt]=Ge._anchorAxis.domain[sr[1]]:Ge.mirror!=="all"&&Ge.mirror!=="allticks"||(ln[Rt]=[Ge._counterDomainMin,Ge._counterDomainMax][sr[1]]))}Cn&&(fn=w.getComponentMethod("rangeslider","autoMarginOpts")(De,Ge)),typeof Ge.automargin=="string"&&(at(sn,Ge.automargin),at(ln,Ge.automargin)),n.autoMargin(De,lt(Ge),sn),n.autoMargin(De,Vt(Ge),ln),n.autoMargin(De,jt(Ge),fn)}),b.syncOrAsync(cn)}}function Mn(xn){var sn=Lt+(xn||"tick");return zn[sn]||(zn[sn]=function(ln,fn){var gn,Fn,Bn,$n;return ln._selections[fn].size()?(gn=1/0,Fn=-1/0,Bn=1/0,$n=-1/0,ln._selections[fn].each(function(){var tr=st(this),pr=i.bBox(tr.node().parentNode);gn=Math.min(gn,pr.top),Fn=Math.max(Fn,pr.bottom),Bn=Math.min(Bn,pr.left),$n=Math.max($n,pr.right)})):(gn=0,Fn=0,Bn=0,$n=0),{top:gn,bottom:Fn,left:Bn,right:$n,height:Fn-gn,width:$n-Bn}}(Ge,sn)),zn[sn]}},$.getTickSigns=function(De,Ge){var pt=De._id.charAt(0),nt={x:"top",y:"right"}[pt],bt=De.side===nt?1:-1,wt=[-1,1,bt,-bt];return(Ge?(De.minor||{}).ticks:De.ticks)!=="inside"==(pt==="x")&&(wt=wt.map(function(St){return-St})),De.side&&wt.push({l:-1,t:-1,r:1,b:1}[De.side.charAt(0)]),wt},$.makeTransTickFn=function(De){return De._id.charAt(0)==="x"?function(Ge){return c(De._offset+De.l2p(Ge.x),0)}:function(Ge){return c(0,De._offset+De.l2p(Ge.x))}},$.makeTransTickLabelFn=function(De){var Ge=function(bt){var wt=bt.ticklabelposition||"",St=function(Qt){return wt.indexOf(Qt)!==-1},vt=St("top"),Pt=St("left"),Lt=St("right"),Ct=St("bottom"),Rt=St("inside"),At=Ct||Pt||vt||Lt;if(!At&&!Rt)return[0,0];var Bt=bt.side,nn=At?(bt.tickwidth||0)/2:0,hn=3,Ht=bt.tickfont?bt.tickfont.size:12;return(Ct||vt)&&(nn+=Ht*se,hn+=(bt.linewidth||0)/2),(Pt||Lt)&&(nn+=(bt.linewidth||0)/2,hn+=3),Rt&&Bt==="top"&&(hn-=Ht*(1-se)),(Pt||vt)&&(nn=-nn),Bt!=="bottom"&&Bt!=="right"||(hn=-hn),[At?nn:0,Rt?hn:0]}(De),pt=Ge[0],nt=Ge[1];return De._id.charAt(0)==="x"?function(bt){return c(pt+De._offset+De.l2p(ut(bt)),nt)}:function(bt){return c(nt,pt+De._offset+De.l2p(ut(bt)))}},$.makeTickPath=function(De,Ge,pt,nt){nt||(nt={});var bt=nt.minor;if(bt&&!De.minor)return"";var wt=nt.len!==void 0?nt.len:bt?De.minor.ticklen:De.ticklen,St=De._id.charAt(0),vt=(De.linewidth||1)/2;return St==="x"?"M0,"+(Ge+vt*pt)+"v"+wt*pt:"M"+(Ge+vt*pt)+",0h"+wt*pt},$.makeLabelFns=function(De,Ge,pt){var nt=De.ticklabelposition||"",bt=function(An){return nt.indexOf(An)!==-1},wt=bt("top"),St=bt("left"),vt=bt("right"),Pt=bt("bottom")||St||wt||vt,Lt=bt("inside"),Ct=nt==="inside"&&De.ticks==="inside"||!Lt&&De.ticks==="outside"&&De.tickson!=="boundaries",Rt=0,At=0,Bt=Ct?De.ticklen:0;if(Lt?Bt*=-1:Pt&&(Bt=0),Ct&&(Rt+=Bt,pt)){var nn=b.deg2rad(pt);Rt=Bt*Math.cos(nn)+1,At=Bt*Math.sin(nn)}De.showticklabels&&(Ct||De.showline)&&(Rt+=.2*De.tickfont.size);var hn,Ht,Qt,un,In,zn={labelStandoff:Rt+=(De.linewidth||1)/2*(Lt?-1:1),labelShift:At},wn=0,rn=De.side,vn=De._id.charAt(0),dn=De.tickangle;if(vn==="x")un=(In=!Lt&&rn==="bottom"||Lt&&rn==="top")?1:-1,Lt&&(un*=-1),hn=At*un,Ht=Ge+Rt*un,Qt=In?1:-.2,Math.abs(dn)===90&&(Lt?Qt+=J:Qt=dn===-90&&rn==="bottom"?se:dn===90&&rn==="top"?J:.5,wn=J/2*(dn/90)),zn.xFn=function(An){return An.dx+hn+wn*An.fontSize},zn.yFn=function(An){return An.dy+Ht+An.fontSize*Qt},zn.anchorFn=function(An,Wn){if(Pt){if(St)return"end";if(vt)return"start"}return v(Wn)&&Wn!==0&&Wn!==180?Wn*un<0!==Lt?"end":"start":"middle"},zn.heightFn=function(An,Wn,Gn){return Wn<-60||Wn>60?-.5*Gn:De.side==="top"!==Lt?-Gn:0};else if(vn==="y"){if(un=(In=!Lt&&rn==="left"||Lt&&rn==="right")?1:-1,Lt&&(un*=-1),hn=Rt,Ht=At*un,Qt=0,Lt||Math.abs(dn)!==90||(Qt=dn===-90&&rn==="left"||dn===90&&rn==="right"?se:.5),Lt){var _n=v(dn)?+dn:0;if(_n!==0){var Un=b.deg2rad(_n);wn=Math.abs(Math.sin(Un))*se*un,Qt=0}}zn.xFn=function(An){return An.dx+Ge-(hn+An.fontSize*Qt)*un+wn*An.fontSize},zn.yFn=function(An){return An.dy+Ht+An.fontSize*J},zn.anchorFn=function(An,Wn){return v(Wn)&&Math.abs(Wn)===90?"middle":In?"end":"start"},zn.heightFn=function(An,Wn,Gn){return De.side==="right"&&(Wn*=-1),Wn<-30?-Gn:Wn<30?-.5*Gn:0}}return zn},$.drawTicks=function(De,Ge,pt){pt=pt||{};var nt=Ge._id+"tick",bt=[].concat(Ge.minor&&Ge.minor.ticks?pt.vals.filter(function(St){return St.minor&&!St.noTick}):[]).concat(Ge.ticks?pt.vals.filter(function(St){return!St.minor&&!St.noTick}):[]),wt=pt.layer.selectAll("path."+nt).data(bt,_t);wt.exit().remove(),wt.enter().append("path").classed(nt,1).classed("ticks",1).classed("crisp",pt.crisp!==!1).each(function(St){return o.stroke(k.select(this),St.minor?Ge.minor.tickcolor:Ge.tickcolor)}).style("stroke-width",function(St){return i.crispRound(De,St.minor?Ge.minor.tickwidth:Ge.tickwidth,1)+"px"}).attr("d",pt.path).style("display",null),ht(Ge,[W]),wt.attr("transform",pt.transFn)},$.drawGrid=function(De,Ge,pt){if(pt=pt||{},Ge.tickmode!=="sync"){var nt=Ge._id+"grid",bt=Ge.minor&&Ge.minor.showgrid,wt=bt?pt.vals.filter(function(Qt){return Qt.minor}):[],St=Ge.showgrid?pt.vals.filter(function(Qt){return!Qt.minor}):[],vt=pt.counterAxis;if(vt&&$.shouldShowZeroLine(De,Ge,vt))for(var Pt=Ge.tickmode==="array",Lt=0;Lt<St.length;Lt++){var Ct=St[Lt].x;if(Pt?!Ct:Math.abs(Ct)<Ge.dtick/100){if(St=St.slice(0,Lt).concat(St.slice(Lt+1)),!Pt)break;Lt--}}Ge._gw=i.crispRound(De,Ge.gridwidth,1);for(var Rt=bt?i.crispRound(De,Ge.minor.gridwidth,1):0,At=pt.layer,Bt=pt.minorLayer,nn=1;nn>=0;nn--){var hn=nn?At:Bt;if(hn){var Ht=hn.selectAll("path."+nt).data(nn?St:wt,_t);Ht.exit().remove(),Ht.enter().append("path").classed(nt,1).classed("crisp",pt.crisp!==!1),Ht.attr("transform",pt.transFn).attr("d",pt.path).each(function(Qt){return o.stroke(k.select(this),Qt.minor?Ge.minor.gridcolor:Ge.gridcolor||"#ddd")}).style("stroke-dasharray",function(Qt){return i.dashStyle(Qt.minor?Ge.minor.griddash:Ge.griddash,Qt.minor?Ge.minor.gridwidth:Ge.gridwidth)}).style("stroke-width",function(Qt){return(Qt.minor?Rt:Ge._gw)+"px"}).style("display",null),typeof pt.path=="function"&&Ht.attr("d",pt.path)}}ht(Ge,[X,F])}},$.drawZeroLine=function(De,Ge,pt){pt=pt||pt;var nt=Ge._id+"zl",bt=$.shouldShowZeroLine(De,Ge,pt.counterAxis),wt=pt.layer.selectAll("path."+nt).data(bt?[{x:0,id:Ge._id}]:[]);wt.exit().remove(),wt.enter().append("path").classed(nt,1).classed("zl",1).classed("crisp",pt.crisp!==!1).each(function(){pt.layer.selectAll("path").sort(function(St,vt){return ce(St.id,vt.id)})}),wt.attr("transform",pt.transFn).attr("d",pt.path).call(o.stroke,Ge.zerolinecolor||o.defaultLine).style("stroke-width",i.crispRound(De,Ge.zerolinewidth,Ge._gw||1)+"px").style("display",null),ht(Ge,[j])},$.drawLabels=function(De,Ge,pt){pt=pt||{};var nt=De._fullLayout,bt=Ge._id,wt=pt.cls||bt+"tick",St=pt.vals.filter(function(Qn){return Qn.text}),vt=pt.labelFns,Pt=pt.secondary?0:Ge.tickangle,Lt=(Ge._prevTickAngles||{})[wt],Ct=pt.layer.selectAll("g."+wt).data(Ge.showticklabels?St:[],_t),Rt=[];function At(Qn,vr){Qn.each(function(wr){var Sr=k.select(this),dr=Sr.select(".text-math-group"),Gr=vt.anchorFn(wr,vr),Zt=pt.transFn.call(Sr.node(),wr)+(v(vr)&&+vr!=0?" rotate("+vr+","+vt.xFn(wr)+","+(vt.yFn(wr)-wr.fontSize/2)+")":""),pn=a.lineCount(Sr),Ln=re*wr.fontSize,Tn=vt.heightFn(wr,v(vr)?+vr:0,(pn-1)*Ln);if(Tn&&(Zt+=c(0,Tn)),dr.empty()){var qn=Sr.select("text");qn.attr({transform:Zt,"text-anchor":Gr}),qn.style("opacity",1),Ge._adjustTickLabelsOverflow&&Ge._adjustTickLabelsOverflow()}else{var rr=i.bBox(dr.node()).width*{end:-.5,start:.5}[Gr];dr.attr("transform",Zt+c(rr,0))}})}Ct.enter().append("g").classed(wt,1).append("text").attr("text-anchor","middle").each(function(Qn){var vr=k.select(this),wr=De._promises.length;vr.call(a.positionText,vt.xFn(Qn),vt.yFn(Qn)).call(i.font,Qn.font,Qn.fontSize,Qn.fontColor).text(Qn.text).call(a.convertToTspans,De),De._promises[wr]?Rt.push(De._promises.pop().then(function(){At(vr,Pt)})):At(vr,Pt)}),ht(Ge,[Y]),Ct.exit().remove(),pt.repositionOnUpdate&&Ct.each(function(Qn){k.select(this).select("text").call(a.positionText,vt.xFn(Qn),vt.yFn(Qn))}),Ge._adjustTickLabelsOverflow=function(){var Qn=Ge.ticklabeloverflow;if(Qn&&Qn!=="allow"){var vr=Qn.indexOf("hide")!==-1,wr=Ge._id.charAt(0)==="x",Sr=0,dr=wr?De._fullLayout.width:De._fullLayout.height;if(Qn.indexOf("domain")!==-1){var Gr=b.simpleMap(Ge.range,Ge.r2l);Sr=Ge.l2p(Gr[0])+Ge._offset,dr=Ge.l2p(Gr[1])+Ge._offset}var Zt=Math.min(Sr,dr),pn=Math.max(Sr,dr),Ln=Ge.side,Tn=1/0,qn=-1/0;for(var rr in Ct.each(function(gr){var en=k.select(this);if(en.select(".text-math-group").empty()){var kn=i.bBox(en.node()),qt=0;wr?(kn.right>pn||kn.left<Zt)&&(qt=1):(kn.bottom>pn||kn.top+(Ge.tickangle?0:gr.fontSize/4)<Zt)&&(qt=1);var tn=en.select("text");qt?vr&&tn.style("opacity",0):(tn.style("opacity",1),Tn=Ln==="bottom"||Ln==="right"?Math.min(Tn,wr?kn.top:kn.left):-1/0,qn=Ln==="top"||Ln==="left"?Math.max(qn,wr?kn.bottom:kn.right):1/0)}}),nt._plots){var Zn=nt._plots[rr];if(Ge._id===Zn.xaxis._id||Ge._id===Zn.yaxis._id){var Yn=wr?Zn.yaxis:Zn.xaxis;Yn&&(Yn["_visibleLabelMin_"+Ge._id]=Tn,Yn["_visibleLabelMax_"+Ge._id]=qn)}}}},Ge._hideCounterAxisInsideTickLabels=function(Qn){var vr=Ge._id.charAt(0)==="x",wr=[];for(var Sr in nt._plots){var dr=nt._plots[Sr];Ge._id!==dr.xaxis._id&&Ge._id!==dr.yaxis._id||wr.push(vr?dr.yaxis:dr.xaxis)}wr.forEach(function(Gr,Zt){Gr&&et(Gr)&&(Qn||[j,F,X,W,Y]).forEach(function(pn){var Ln=pn.K==="tick"&&pn.L==="text"&&Ge.ticklabelmode==="period",Tn=nt._plots[Ge._mainSubplot];(pn.K===j.K?Tn.zerolinelayer.selectAll("."+Ge._id+"zl"):pn.K===F.K?Tn.minorGridlayer.selectAll("."+Ge._id):pn.K===X.K?Tn.gridlayer.selectAll("."+Ge._id):Tn[Ge._id.charAt(0)+"axislayer"]).each(function(){var qn=k.select(this);pn.L&&(qn=qn.selectAll(pn.L)),qn.each(function(rr){var Zn=Ge.l2p(Ln?ut(rr):rr.x)+Ge._offset,Yn=k.select(this);Zn<Ge["_visibleLabelMax_"+Gr._id]&&Zn>Ge["_visibleLabelMin_"+Gr._id]?Yn.style("display","none"):pn.K!=="tick"||Zt||Yn.style("display",null)})})})})},At(Ct,Lt+1?Lt:Pt);var Bt=null;Ge._selections&&(Ge._selections[wt]=Ct);var nn=[function(){return Rt.length&&Promise.all(Rt)}];Ge.automargin&&nt._redrawFromAutoMarginCount&&Lt===90?(Bt=Lt,nn.push(function(){At(Ct,Lt)})):nn.push(function(){if(At(Ct,Pt),St.length&&Ge.autotickangles&&(Ge.type!=="log"||String(Ge.dtick).charAt(0)!=="D")){Bt=Ge.autotickangles[0];var Qn,vr=0,wr=[],Sr=1;if(Ct.each(function(Cn){vr=Math.max(vr,Cn.fontSize);var Mn=Ge.l2p(Cn.x),xn=st(this),sn=i.bBox(xn.node());Sr=Math.max(Sr,a.lineCount(xn)),wr.push({top:0,bottom:10,height:10,left:Mn-sn.width/2,right:Mn+sn.width/2+2,width:sn.width+2})}),Ge.tickson!=="boundaries"&&!Ge.showdividers||pt.secondary){var dr=St.length,Gr=Math.abs((St[dr-1].x-St[0].x)*Ge._m)/(dr-1),Zt=Ge.ticklabelposition||"",pn=function(Cn){return Zt.indexOf(Cn)!==-1},Ln=pn("top"),Tn=pn("left"),qn=pn("right"),rr=pn("bottom")||Tn||Ln||qn?(Ge.tickwidth||0)+6:0,Zn=Gr,Yn=1.25*vr*Sr,gr=Zn/Math.sqrt(Math.pow(Zn,2)+Math.pow(Yn,2)),en=Ge.autotickangles.map(function(Cn){return Cn*Math.PI/180}),kn=en.find(function(Cn){return Math.abs(Math.cos(Cn))<=gr});kn===void 0&&(kn=en.reduce(function(Cn,Mn){return Math.abs(Math.cos(Cn))<Math.abs(Math.cos(Mn))?Cn:Mn},en[0]));var qt=kn*(180/Math.PI);for(Qn=0;Qn<wr.length-1;Qn++)if(b.bBoxIntersect(wr[Qn],wr[Qn+1],rr)){Bt=qt;break}}else{var tn=2;for(Ge.ticks&&(tn+=Ge.tickwidth/2),Qn=0;Qn<wr.length;Qn++){var cn=St&&St[Qn].xbnd?St[Qn].xbnd:[null,null],On=wr[Qn];if(cn[0]!==null&&On.left-Ge.l2p(cn[0])<tn||cn[1]!==null&&Ge.l2p(cn[1])-On.right<tn){Bt=90;break}}}Bt&&At(Ct,Bt)}}),Ge._tickAngles&&nn.push(function(){Ge._tickAngles[wt]=Bt===null?v(Pt)?Pt:0:Bt});var hn=function(){var Qn=0,vr=0;return Ct.each(function(wr,Sr){var dr,Gr=st(this);Gr.select(".text-math-group").empty()&&(Ge._vals[Sr]&&(dr=Ge._vals[Sr].bb||i.bBox(Gr.node()),Ge._vals[Sr].bb=dr),Qn=Math.max(Qn,dr.width),vr=Math.max(vr,dr.height))}),{labelsMaxW:Qn,labelsMaxH:vr}},Ht=Ge._anchorAxis;if(Ht&&(Ht.autorange||Ht.insiderange)&&et(Ge)&&!ue(nt,Ge._id)&&(nt._insideTickLabelsUpdaterange||(nt._insideTickLabelsUpdaterange={}),Ht.autorange&&(nt._insideTickLabelsUpdaterange[Ht._name+".autorange"]=Ht.autorange,nn.push(hn)),Ht.insiderange)){var Qt=hn(),un=Ge._id.charAt(0)==="y"?Qt.labelsMaxW:Qt.labelsMaxH;un+=6,Ge.ticklabelposition==="inside"&&(un+=Ge.ticklen||0);var In=Ge.side==="right"||Ge.side==="top"?1:-1,zn=In===1?1:0,wn=In===1?0:1,rn=[];rn[wn]=Ht.range[wn];var vn=Ht.range,dn=Ht.d2p(vn[zn]),_n=Ht.d2p(vn[wn]),Un=nt._insideTickLabelsUpdaterange[Ht._name+".range"];if(Un){var An=Ht.d2p(Un[zn]),Wn=Ht.d2p(Un[wn]),Gn=In*(Ge._id.charAt(0)==="y"?1:-1);Gn*dn<Gn*An&&(dn=An,rn[zn]=vn[zn]=Un[zn]),Gn*_n>Gn*Wn&&(_n=Wn,rn[wn]=vn[wn]=Un[wn])}var jn=Math.abs(_n-dn);jn-un>0?un*=1+un/(jn-=un):un=0,Ge._id.charAt(0)!=="y"&&(un=-un),rn[zn]=Ht.p2d(Ht.d2p(vn[zn])+In*un),Ht.autorange==="min"||Ht.autorange==="max reversed"?(rn[0]=null,Ht._rangeInitial0=void 0,Ht._rangeInitial1=void 0):Ht.autorange!=="max"&&Ht.autorange!=="min reversed"||(rn[1]=null,Ht._rangeInitial0=void 0,Ht._rangeInitial1=void 0),nt._insideTickLabelsUpdaterange[Ht._name+".range"]=rn}var er=b.syncOrAsync(nn);return er&&er.then&&De._promises.push(er),er},$.getPxPosition=function(De,Ge){var pt,nt=De._fullLayout._size,bt=Ge._id.charAt(0),wt=Ge.side;return Ge.anchor!=="free"?pt=Ge._anchorAxis:bt==="x"?pt={_offset:nt.t+(1-(Ge.position||0))*nt.h,_length:0}:bt==="y"&&(pt={_offset:nt.l+(Ge.position||0)*nt.w+Ge._shift,_length:0}),wt==="top"||wt==="left"?pt._offset:wt==="bottom"||wt==="right"?pt._offset+pt._length:void 0},$.shouldShowZeroLine=function(De,Ge,pt){var nt=b.simpleMap(Ge.range,Ge.r2l);return nt[0]*nt[1]<=0&&Ge.zeroline&&(Ge.type==="linear"||Ge.type==="-")&&!(Ge.rangebreaks&&Ge.maskBreaks(0)===q)&&(Tt(Ge,0)||!function(bt,wt,St,vt){var Pt=St._mainAxis;if(Pt){var Lt=bt._fullLayout,Ct=wt._id.charAt(0),Rt=$.counterLetter(wt._id),At=wt._offset+(Math.abs(vt[0])<Math.abs(vt[1])==(Ct==="x")?0:wt._length),Bt=Lt._plots[St._mainSubplot];if(!(Bt.mainplotinfo||Bt).overlays.length)return Qt(St);for(var nn=$.list(bt,Rt),hn=0;hn<nn.length;hn++){var Ht=nn[hn];if(Ht._mainAxis===Pt&&Qt(Ht))return!0}}function Qt(un){if(!un.showline||!un.linewidth)return!1;var In=Math.max((un.linewidth+wt.zerolinewidth)/2,1);function zn(vn){return typeof vn=="number"&&Math.abs(vn-At)<In}if(zn(un._mainLinePosition)||zn(un._mainMirrorPosition))return!0;var wn=un._linepositions||{};for(var rn in wn)if(zn(wn[rn][0])||zn(wn[rn][1]))return!0}}(De,Ge,pt,nt)||function(bt,wt){for(var St=bt._fullData,vt=wt._mainSubplot,Pt=wt._id.charAt(0),Lt=0;Lt<St.length;Lt++){var Ct=St[Lt];if(Ct.visible===!0&&Ct.xaxis+Ct.yaxis===vt&&(w.traceIs(Ct,"bar-like")&&Ct.orientation==={x:"h",y:"v"}[Pt]||Ct.fill&&Ct.fill.charAt(Ct.fill.length-1)===Pt))return!0}return!1}(De,Ge))},$.clipEnds=function(De,Ge){return Ge.filter(function(pt){return Tt(De,pt.x)})},$.allowAutoMargin=function(De){for(var Ge=$.list(De,"",!0),pt=0;pt<Ge.length;pt++){var nt=Ge[pt];nt.automargin&&(n.allowAutoMargin(De,lt(nt)),nt.mirror&&n.allowAutoMargin(De,Vt(nt))),w.getComponentMethod("rangeslider","isVisible")(nt)&&n.allowAutoMargin(De,jt(nt))}},$.swap=function(De,Ge){for(var pt=function(bt,wt){var St,vt,Pt=[];for(St=0;St<wt.length;St++){var Lt=[],Ct=bt._fullData[wt[St]].xaxis,Rt=bt._fullData[wt[St]].yaxis;if(Ct&&Rt){for(vt=0;vt<Pt.length;vt++)Pt[vt].x.indexOf(Ct)===-1&&Pt[vt].y.indexOf(Rt)===-1||Lt.push(vt);if(Lt.length){var At,Bt=Pt[Lt[0]];if(Lt.length>1)for(vt=1;vt<Lt.length;vt++)At=Pt[Lt[vt]],Kt(Bt.x,At.x),Kt(Bt.y,At.y);Kt(Bt.x,[Ct]),Kt(Bt.y,[Rt])}else Pt.push({x:[Ct],y:[Rt]})}}return Pt}(De,Ge),nt=0;nt<pt.length;nt++)It(De,pt[nt].x,pt[nt].y)}},52976:function(L,T,e){var k=e(38248),v=e(3400),n=e(39032).BADNUM,w=v.isArrayOrTypedArray,b=v.isDateTime,c=v.cleanNumber,a=Math.round;function t(i,s){return s?k(i):typeof i=="number"}function o(i){return Math.max(1,(i-1)/1e3)}L.exports=function(i,s,l){var u=i,d=l.noMultiCategory;if(w(u)&&!u.length)return"-";if(!d&&function(m){return w(m[0])&&w(m[1])}(u))return"multicategory";if(d&&Array.isArray(u[0])){for(var g=[],f=0;f<u.length;f++)if(w(u[f]))for(var C=0;C<u[f].length;C++)g.push(u[f][C]);u=g}if(function(m,x){for(var _=m.length,S=o(_),O=0,h=0,M={},N=0;N<_;N+=S){var P=m[a(N)],R=String(P);M[R]||(M[R]=1,b(P,x)&&O++,k(P)&&h++)}return O>2*h}(u,s))return"date";var y=l.autotypenumbers!=="strict";return function(m,x){for(var _=m.length,S=o(_),O=0,h=0,M={},N=0;N<_;N+=S){var P=m[a(N)],R=String(P);if(!M[R]){M[R]=1;var A=typeof P;A==="boolean"?h++:(x?c(P)!==n:A==="number")?O++:A==="string"&&h++}}return h>2*O}(u,y)?"category":function(m,x){for(var _=m.length,S=0;S<_;S++)if(t(m[S],x))return!0;return!1}(u,y)?"linear":"-"}},28336:function(L,T,e){var k=e(38248),v=e(24040),n=e(3400),w=e(31780),b=e(51272),c=e(94724),a=e(26332),t=e(25404),o=e(95936),i=e(42568),s=e(22416),l=e(42136),u=e(96312),d=e(78344),g=e(33816).WEEKDAY_PATTERN,f=e(33816).HOUR_PATTERN;function C(x,_,S){function O(j,X){return n.coerce(x,_,c.rangebreaks,j,X)}if(O("enabled")){var h=O("bounds");if(h&&h.length>=2){var M,N,P="";if(h.length===2){for(M=0;M<2;M++)if(N=m(h[M])){P=g;break}}var R=O("pattern",P);if(R===g)for(M=0;M<2;M++)(N=m(h[M]))&&(_.bounds[M]=h[M]=N-1);if(R)for(M=0;M<2;M++)switch(N=h[M],R){case g:if(!k(N)||(N=+N)!==Math.floor(N)||N<0||N>=7)return void(_.enabled=!1);_.bounds[M]=h[M]=N;break;case f:if(!k(N)||(N=+N)<0||N>24)return void(_.enabled=!1);_.bounds[M]=h[M]=N}if(S.autorange===!1){var A=S.range;if(A[0]<A[1]){if(h[0]<A[0]&&h[1]>A[1])return void(_.enabled=!1)}else if(h[0]>A[0]&&h[1]<A[1])return void(_.enabled=!1)}}else{var q=O("values");if(!q||!q.length)return void(_.enabled=!1);O("dvalue")}}}L.exports=function(x,_,S,O,h){var M,N=O.letter,P=O.font||{},R=O.splomStash||{},A=S("visible",!O.visibleDflt),q=_._template||{},j=_.type||q.type||"-";j==="date"&&(v.getComponentMethod("calendars","handleDefaults")(x,_,"calendar",O.calendar),O.noTicklabelmode||(M=S("ticklabelmode")));var X="";O.noTicklabelposition&&j!=="multicategory"||(X=n.coerce(x,_,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:M==="period"?["outside","inside"]:N==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),O.noTicklabeloverflow||S("ticklabeloverflow",X.indexOf("inside")!==-1?"hide past domain":j==="category"||j==="multicategory"?"allow":"hide past div"),d(_,h),u(x,_,S,O),s(x,_,S,O),j==="category"||O.noHover||S("hoverformat");var F=S("color"),W=F!==c.color.dflt?F:P.color,Y=R.label||h._dfltTitle[N];if(i(x,_,S,j,O),!A)return _;S("title.text",Y),n.coerceFont(S,"title.font",{family:P.family,size:n.bigFont(P.size),color:W}),a(x,_,S,j);var B=O.hasMinor;if(B&&(w.newContainer(_,"minor"),a(x,_,S,j,{isMinor:!0})),o(x,_,S,j,O),t(x,_,S,O),B){var G=O.isMinor;O.isMinor=!0,t(x,_,S,O),O.isMinor=G}l(x,_,S,{dfltColor:F,bgColor:O.bgColor,showGrid:O.showGrid,hasMinor:B,attributes:c}),!B||_.minor.ticks||_.minor.showgrid||delete _.minor,(_.showline||_.ticks)&&S("mirror");var J,se=j==="multicategory";if(O.noTickson||j!=="category"&&!se||!_.ticks&&!_.showgrid||(se&&(J="boundaries"),S("tickson",J)==="boundaries"&&delete _.ticklabelposition),se&&S("showdividers")&&(S("dividercolor"),S("dividerwidth")),j==="date")if(b(x,_,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:C}),_.rangebreaks.length){for(var re=0;re<_.rangebreaks.length;re++)if(_.rangebreaks[re].pattern===g){_._hasDayOfWeekBreaks=!0;break}if(d(_,h),h._has("scattergl")||h._has("splom"))for(var ne=0;ne<O.data.length;ne++){var $=O.data[ne];$.type!=="scattergl"&&$.type!=="splom"||($.visible=!1,n.warn($.type+" traces do not work on axes with rangebreaks. Setting trace "+$.index+" to `visible: false`."))}}else delete _.rangebreaks;return _};var y={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function m(x){if(typeof x=="string")return y[x.substr(0,3).toLowerCase()]}},29736:function(L,T,e){var k=e(26880),v=k.FORMAT_LINK,n=k.DATE_FORMAT_LINK;function w(c,a){return["Sets the "+c+" formatting rule"+(a?"for `"+a+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+v+"."].join(" ")}function b(c,a){return w(c,a)+[" 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(" ")}L.exports={axisHoverFormat:function(c,a){return{valType:"string",dflt:"",editType:"none",description:(a?w:b)("hover text",c)+["By default the values are formatted using "+(a?"generic number format":"`"+c+"axis.hoverformat`")+"."].join(" ")}},descriptionOnlyNumbers:w,descriptionWithDates:b}},79811:function(L,T,e){var k=e(24040),v=e(33816);function n(w,b){if(b&&b.length){for(var c=0;c<b.length;c++)if(b[c][w])return!0}return!1}T.id2name=function(w){if(typeof w=="string"&&w.match(v.AX_ID_PATTERN)){var b=w.split(" ")[0].substr(1);return b==="1"&&(b=""),w.charAt(0)+"axis"+b}},T.name2id=function(w){if(w.match(v.AX_NAME_PATTERN)){var b=w.substr(5);return b==="1"&&(b=""),w.charAt(0)+b}},T.cleanId=function(w,b,c){var a=/( domain)$/.test(w);if(typeof w=="string"&&w.match(v.AX_ID_PATTERN)&&(!b||w.charAt(0)===b)&&(!a||c)){var t=w.split(" ")[0].substr(1).replace(/^0+/,"");return t==="1"&&(t=""),w.charAt(0)+t+(a&&c?" domain":"")}},T.list=function(w,b,c){var a=w._fullLayout;if(!a)return[];var t,o=T.listIds(w,b),i=new Array(o.length);for(t=0;t<o.length;t++){var s=o[t];i[t]=a[s.charAt(0)+"axis"+s.substr(1)]}if(!c){var l=a._subplots.gl3d||[];for(t=0;t<l.length;t++){var u=a[l[t]];b?i.push(u[b+"axis"]):i.push(u.xaxis,u.yaxis,u.zaxis)}}return i},T.listIds=function(w,b){var c=w._fullLayout;if(!c)return[];var a=c._subplots;return b?a[b+"axis"]:a.xaxis.concat(a.yaxis)},T.getFromId=function(w,b,c){var a=w._fullLayout;return b=b===void 0||typeof b!="string"?b:b.replace(" domain",""),c==="x"?b=b.replace(/y[0-9]*/,""):c==="y"&&(b=b.replace(/x[0-9]*/,"")),a[T.id2name(b)]},T.getFromTrace=function(w,b,c){var a=w._fullLayout,t=null;if(k.traceIs(b,"gl3d")){var o=b.scene;o.substr(0,5)==="scene"&&(t=a[o][c+"axis"])}else t=T.getFromId(w,b[c+"axis"]||c);return t},T.idSort=function(w,b){var c=w.charAt(0),a=b.charAt(0);return c!==a?c>a?1:-1:+(w.substr(1)||1)-+(b.substr(1)||1)},T.ref2id=function(w){return!!/^[xyz]/.test(w)&&w.split(" ")[0]},T.isLinked=function(w,b){return n(b,w._axisMatchGroups)||n(b,w._axisConstraintGroups)}},22416:function(L,T,e){var k=e(38116).isTypedArraySpec;L.exports=function(v,n,w,b){if(n.type==="category"){var c,a=v.categoryarray,t=Array.isArray(a)&&a.length>0||k(a);t&&(c="array");var o,i=w("categoryorder",c);i==="array"&&(o=w("categoryarray")),t||i!=="array"||(i=n.categoryorder="trace"),i==="trace"?n._initialCategories=[]:i==="array"?n._initialCategories=o.slice():(o=function(s,l){var u,d,g,f=l.dataAttr||s._id.charAt(0),C={};if(l.axData)u=l.axData;else for(u=[],d=0;d<l.data.length;d++){var y=l.data[d];y[f+"axis"]===s._id&&u.push(y)}for(d=0;d<u.length;d++){var m=u[d][f];for(g=0;g<m.length;g++){var x=m[g];x!=null&&(C[x]=1)}}return Object.keys(C)}(n,b).sort(),i==="category ascending"?n._initialCategories=o:i==="category descending"&&(n._initialCategories=o.reverse()))}}},98728:function(L,T,e){var k=e(38248),v=e(3400),n=e(39032),w=n.ONEDAY,b=n.ONEWEEK;T.dtick=function(c,a){var t=a==="log",o=a==="date",i=a==="category",s=o?w:1;if(!c)return s;if(k(c))return(c=Number(c))<=0?s:i?Math.max(1,Math.round(c)):o?Math.max(.1,c):c;if(typeof c!="string"||!o&&!t)return s;var l=c.charAt(0),u=c.substr(1);return(u=k(u)?Number(u):0)<=0||!(o&&l==="M"&&u===Math.round(u)||t&&l==="L"||t&&l==="D"&&(u===1||u===2))?s:c},T.tick0=function(c,a,t,o){return a==="date"?v.cleanDate(c,v.dateTick0(t,o%b==0?1:0)):o!=="D1"&&o!=="D2"?k(c)?Number(c):0:void 0}},33816:function(L,T,e){var k=e(53756).counter;L.exports={idRegex:{x:k("x","( domain)?"),y:k("y","( domain)?")},attrRegex:k("[xy]axis"),xAxisMatch:k("xaxis"),yAxisMatch:k("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"}}},71888:function(L,T,e){var k=e(3400),v=e(19280),n=e(79811).id2name,w=e(94724),b=e(21160),c=e(78344),a=e(39032).ALMOST_EQUAL,t=e(84284).FROM_BL;function o(f,C,y){var m=y.axIds,x=y.layoutOut,_=y.hasImage,S=x._axisConstraintGroups,O=x._axisMatchGroups,h=C._id,M=h.charAt(0),N=((x._splomAxes||{})[M]||{})[h]||{},P=C._id,R=P.charAt(0)==="x";function A(te,ae){return k.coerce(f,C,w,te,ae)}C._matchGroup=null,C._constraintGroup=null,A("constrain",_?"domain":"range"),k.coerce(f,C,{constraintoward:{valType:"enumerated",values:R?["left","center","right"]:["bottom","middle","top"],dflt:R?"center":"middle"}},"constraintoward");var q,j,X=C.type,F=[];for(q=0;q<m.length;q++)(j=m[q])!==P&&x[n(j)].type===X&&F.push(j);var W=s(S,P);if(W){var Y=[];for(q=0;q<F.length;q++)W[j=F[q]]||Y.push(j);F=Y}var B,G,J=F.length;J&&(f.matches||N.matches)&&(B=k.coerce(f,C,{matches:{valType:"enumerated",values:F,dflt:F.indexOf(N.matches)!==-1?N.matches:void 0}},"matches"));var se=_&&!R?C.anchor:void 0;if(J&&!B&&(f.scaleanchor||se)&&(G=k.coerce(f,C,{scaleanchor:{valType:"enumerated",values:F.concat([!1])}},"scaleanchor",se)),B){C._matchGroup=l(O,P,B,1);var re=x[n(B)],ne=i(x,C)/i(x,re);R!==(B.charAt(0)==="x")&&(ne=(R?"x":"y")+ne),l(S,P,B,ne)}else f.matches&&m.indexOf(f.matches)!==-1&&k.warn("ignored "+C._name+'.matches: "'+f.matches+'" to avoid an infinite loop');if(G){var $=A("scaleratio");$||($=C.scaleratio=1),l(S,P,G,$)}else f.scaleanchor&&m.indexOf(f.scaleanchor)!==-1&&k.warn("ignored "+C._name+'.scaleanchor: "'+f.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function i(f,C){var y=C.domain;return y||(y=f[n(C.overlaying)].domain),y[1]-y[0]}function s(f,C){for(var y=0;y<f.length;y++)if(f[y][C])return f[y];return null}function l(f,C,y,m){var x,_,S,O,h,M=s(f,C);M===null?((M={})[C]=1,h=f.length,f.push(M)):h=f.indexOf(M);var N=Object.keys(M);for(x=0;x<f.length;x++)if(S=f[x],x!==h&&S[y]){var P=S[y];for(_=0;_<N.length;_++)S[O=N[_]]=u(P,u(m,M[O]));return void f.splice(h,1)}if(m!==1)for(_=0;_<N.length;_++){var R=N[_];M[R]=u(m,M[R])}M[y]=1}function u(f,C){var y,m,x="",_="";typeof f=="string"&&(y=(x=f.match(/^[xy]*/)[0]).length,f=+f.substr(y)),typeof C=="string"&&(m=(_=C.match(/^[xy]*/)[0]).length,C=+C.substr(m));var S=f*C;return y||m?y&&m&&x.charAt(0)!==_.charAt(0)?y===m?S:(y>m?x.substr(m):_.substr(y))+S:x+_+f*C:S}function d(f,C){for(var y=C._size,m=y.h/y.w,x={},_=Object.keys(f),S=0;S<_.length;S++){var O=_[S],h=f[O];if(typeof h=="string"){var M=h.match(/^[xy]*/)[0],N=M.length;h=+h.substr(N);for(var P=M.charAt(0)==="y"?m:1/m,R=0;R<N;R++)h*=P}x[O]=h}return x}function g(f,C){var y=f._inputDomain,m=t[f.constraintoward],x=y[0]+(y[1]-y[0])*m;f.domain=f._input.domain=[x+(y[0]-x)/C,x+(y[1]-x)/C],f.setScale()}T.handleDefaults=function(f,C,y){var m,x,_,S,O,h,M,N,P=y.axIds,R=y.axHasImage,A=C._axisConstraintGroups=[],q=C._axisMatchGroups=[];for(m=0;m<P.length;m++)o(O=f[S=n(P[m])],h=C[S],{axIds:P,layoutOut:C,hasImage:R[S]});function j(re,ne){for(m=0;m<re.length;m++)for(_ in x=re[m])C[n(_)][ne]=x}for(j(q,"_matchGroup"),m=0;m<A.length;m++)for(_ in x=A[m])if((h=C[n(_)]).fixedrange){for(var X in x){var F=n(X);(f[F]||{}).fixedrange===!1&&k.warn("fixedrange was specified as false for axis "+F+" but was overridden because another axis in its constraint group has fixedrange true"),C[F].fixedrange=!0}break}for(m=0;m<A.length;){for(_ in x=A[m]){(h=C[n(_)])._matchGroup&&Object.keys(h._matchGroup).length===Object.keys(x).length&&(A.splice(m,1),m--);break}m++}j(A,"_constraintGroup");var W=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],Y=!1,B=!1;function G(){N=h[M],M==="rangebreaks"&&(B=h._hasDayOfWeekBreaks)}for(m=0;m<q.length;m++){x=q[m];for(var J=0;J<W.length;J++){var se;for(_ in M=W[J],N=null,x)if(O=f[S=n(_)],h=C[S],M in h){if(!h.matches&&(se=h,M in O)){G();break}N===null&&M in O&&G()}if(M==="range"&&N&&O.range&&O.range.length===2&&O.range[0]!==null&&O.range[1]!==null&&(Y=!0),M==="autorange"&&N===null&&Y&&(N=!1),N===null&&M in se&&(N=se[M]),N!==null)for(_ in x)(h=C[n(_)])[M]=M==="range"?N.slice():N,M==="rangebreaks"&&(h._hasDayOfWeekBreaks=B,c(h,C))}}},T.enforce=function(f){var C,y,m,x,_,S,O,h,M=f._fullLayout,N=M._axisConstraintGroups||[];for(C=0;C<N.length;C++){m=d(N[C],M);var P=Object.keys(m),R=1/0,A=0,q=1/0,j={},X={},F=!1;for(y=0;y<P.length;y++)X[x=P[y]]=_=M[n(x)],_._inputDomain?_.domain=_._inputDomain.slice():_._inputDomain=_.domain.slice(),_._inputRange||(_._inputRange=_.range.slice()),_.setScale(),j[x]=S=Math.abs(_._m)/m[x],R=Math.min(R,S),_.constrain!=="domain"&&_._constraintShrinkable||(q=Math.min(q,S)),delete _._constraintShrinkable,A=Math.max(A,S),_.constrain==="domain"&&(F=!0);if(!(R>a*A)||F){for(y=0;y<P.length;y++)if(S=j[x=P[y]],O=(_=X[x]).constrain,S!==q||O==="domain")if(h=S/q,O==="range")b(_,h);else{var W=_._inputDomain,Y=(_.domain[1]-_.domain[0])/(W[1]-W[0]),B=(_.r2l(_.range[1])-_.r2l(_.range[0]))/(_.r2l(_._inputRange[1])-_.r2l(_._inputRange[0]));if((h/=Y)*B<1){_.domain=_._input.domain=W.slice(),b(_,h);continue}if(B<1&&(_.range=_._input.range=_._inputRange.slice(),h*=B),_.autorange){var G=_.r2l(_.range[0]),J=_.r2l(_.range[1]),se=(G+J)/2,re=se,ne=se,$=Math.abs(J-se),te=se-$*h*1.0001,ae=se+$*h*1.0001,ce=v.makePadFn(M,_,0),ue=v.makePadFn(M,_,1);g(_,h);var de,me,be=Math.abs(_._m),_e=v.concatExtremes(f,_),we=_e.min,Ce=_e.max;for(me=0;me<we.length;me++)(de=we[me].val-ce(we[me])/be)>te&&de<re&&(re=de);for(me=0;me<Ce.length;me++)(de=Ce[me].val+ue(Ce[me])/be)<ae&&de>ne&&(ne=de);h/=(ne-re)/(2*$),re=_.l2r(re),ne=_.l2r(ne),_.range=_._input.range=G<J?[re,ne]:[ne,re]}g(_,h)}}}},T.getAxisGroup=function(f,C){for(var y=f._axisMatchGroups,m=0;m<y.length;m++)if(y[m][C])return"g"+m;return C},T.clean=function(f,C){if(C._inputDomain){for(var y=!1,m=C._id,x=f._fullLayout._axisConstraintGroups,_=0;_<x.length;_++)if(x[_][m]){y=!0;break}y&&C.constrain==="domain"||(C._input.domain=C.domain=C._inputDomain,delete C._inputDomain)}}},51184:function(L,T,e){var k=e(33428),v=e(3400),n=v.numberFormat,w=e(49760),b=e(89184),c=e(24040),a=v.strTranslate,t=e(72736),o=e(76308),i=e(43616),s=e(93024),l=e(54460),u=e(93972),d=e(86476),g=e(72760),f=g.selectingOrDrawing,C=g.freeMode,y=e(84284).FROM_TL,m=e(73696),x=e(39172).redrawReglTraces,_=e(7316),S=e(79811).getFromId,O=e(22676).prepSelect,h=e(22676).clearOutline,M=e(22676).selectOnClick,N=e(21160),P=e(33816),R=P.MINDRAG,A=P.MINZOOM,q=!0;function j(de,me,be,_e){var we=v.ensureSingle(de.draglayer,me,be,function(Ce){Ce.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",de.id)});return we.call(u,_e),we.node()}function X(de,me,be,_e,we,Ce,Se){var Pe=j(de,"rect",me,be);return k.select(Pe).call(i.setRect,_e,we,Ce,Se),Pe}function F(de,me){for(var be=0;be<de.length;be++)if(!de[be].fixedrange)return me;return""}function W(de,me,be,_e,we){for(var Ce=0;Ce<de.length;Ce++){var Se=de[Ce];if(!Se.fixedrange)if(Se.rangebreaks){var Pe=Se._id.charAt(0)==="y",Ne=Pe?1-me:me,Oe=Pe?1-be:be;_e[Se._name+".range[0]"]=Se.l2r(Se.p2l(Ne*Se._length)),_e[Se._name+".range[1]"]=Se.l2r(Se.p2l(Oe*Se._length))}else{var pe=Se._rl[0],fe=Se._rl[1]-pe;_e[Se._name+".range[0]"]=Se.l2r(pe+fe*me),_e[Se._name+".range[1]"]=Se.l2r(pe+fe*be)}}if(we&&we.length){var xe=(me+(1-be))/2;W(we,xe,1-xe,_e,[])}}function Y(de,me){for(var be=0;be<de.length;be++){var _e=de[be];if(!_e.fixedrange){if(_e.rangebreaks){var we=_e._length,Ce=(_e.p2l(0+me)-_e.p2l(0)+(_e.p2l(we+me)-_e.p2l(we)))/2;_e.range=[_e.l2r(_e._rl[0]-Ce),_e.l2r(_e._rl[1]-Ce)]}else _e.range=[_e.l2r(_e._rl[0]-me/_e._m),_e.l2r(_e._rl[1]-me/_e._m)];_e.limitRange&&_e.limitRange()}}}function B(de){return 1-(de>=0?Math.min(de,.9):1/(1/Math.max(de,-.3)+3.222))}function G(de,me,be,_e,we){return de.append("path").attr("class","zoombox").style({fill:me>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",a(be,_e)).attr("d",we+"Z")}function J(de,me,be){return de.append("path").attr("class","zoombox-corners").style({fill:o.background,stroke:o.defaultLine,"stroke-width":1,opacity:0}).attr("transform",a(me,be)).attr("d","M0,0Z")}function se(de,me,be,_e,we,Ce){de.attr("d",_e+"M"+be.l+","+be.t+"v"+be.h+"h"+be.w+"v-"+be.h+"h-"+be.w+"Z"),re(de,me,we,Ce)}function re(de,me,be,_e){be||(de.transition().style("fill",_e>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),me.transition().style("opacity",1).duration(200))}function ne(de){k.select(de).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function $(de){q&&de.data&&de._context.showTips&&(v.notifier(v._(de,"Double-click to zoom back out"),"long"),q=!1)}function te(de){var me=Math.floor(Math.min(de.b-de.t,de.r-de.l,A)/2);return"M"+(de.l-3.5)+","+(de.t-.5+me)+"h3v"+-me+"h"+me+"v-3h-"+(me+3)+"ZM"+(de.r+3.5)+","+(de.t-.5+me)+"h-3v"+-me+"h"+-me+"v-3h"+(me+3)+"ZM"+(de.r+3.5)+","+(de.b+.5-me)+"h-3v"+me+"h"+-me+"v3h"+(me+3)+"ZM"+(de.l-3.5)+","+(de.b+.5-me)+"h3v"+me+"h"+me+"v3h-"+(me+3)+"Z"}function ae(de,me,be,_e,we){for(var Ce,Se,Pe,Ne,Oe=!1,pe={},fe={},xe=(we||{}).xaHash,ze=(we||{}).yaHash,Le=0;Le<me.length;Le++){var Ue=me[Le];for(Ce in be)if(Ue[Ce]){for(Pe in Ue)we&&(xe[Pe]||ze[Pe])||(Pe.charAt(0)==="x"?be:_e)[Pe]||(pe[Pe]=Ce);for(Se in _e)we&&(xe[Se]||ze[Se])||!Ue[Se]||(Oe=!0)}for(Se in _e)if(Ue[Se])for(Ne in Ue)we&&(xe[Ne]||ze[Ne])||(Ne.charAt(0)==="x"?be:_e)[Ne]||(fe[Ne]=Se)}Oe&&(v.extendFlat(pe,fe),fe={});var Re={},Fe=[];for(Pe in pe){var ve=S(de,Pe);Fe.push(ve),Re[ve._id]=ve}var ke={},Ee=[];for(Ne in fe){var je=S(de,Ne);Ee.push(je),ke[je._id]=je}return{xaHash:Re,yaHash:ke,xaxes:Fe,yaxes:Ee,xLinks:pe,yLinks:fe,isSubplotConstrained:Oe}}function ce(de,me){if(b){var be=de.onwheel!==void 0?"wheel":"mousewheel";de._onwheel&&de.removeEventListener(be,de._onwheel),de._onwheel=me,de.addEventListener(be,me,{passive:!1})}else de.onwheel!==void 0?de.onwheel=me:de.onmousewheel!==void 0?de.onmousewheel=me:de.isAddedWheelEvent||(de.isAddedWheelEvent=!0,de.addEventListener("wheel",me,{passive:!1}))}function ue(de){var me=[];for(var be in de)me.push(de[be]);return me}L.exports={makeDragBox:function(de,me,be,_e,we,Ce,Se,Pe){var Ne,Oe,pe,fe,xe,ze,Le,Ue,Re,Fe,ve,ke,Ee,je,Be,Ie,Ze,He,at,ft,ut,_t,Nt,Tt=de._fullLayout._zoomlayer,st=Se+Pe==="nsew",lt=(Se+Pe).length===1;function Vt(){if(Ne=me.xaxis,Oe=me.yaxis,Re=Ne._length,Fe=Oe._length,Le=Ne._offset,Ue=Oe._offset,(pe={})[Ne._id]=Ne,(fe={})[Oe._id]=Oe,Se&&Pe)for(var rn=me.overlays,vn=0;vn<rn.length;vn++){var dn=rn[vn].xaxis;pe[dn._id]=dn;var _n=rn[vn].yaxis;fe[_n._id]=_n}xe=ue(pe),ze=ue(fe),Ee=F(xe,Pe),je=F(ze,Se),Be=!je&&!Ee,ke=ae(de,de._fullLayout._axisMatchGroups,pe,fe);var Un=(ve=ae(de,de._fullLayout._axisConstraintGroups,pe,fe,ke)).isSubplotConstrained||ke.isSubplotConstrained;Ie=Pe||Un,Ze=Se||Un;var An=de._fullLayout;He=An._has("scattergl"),at=An._has("splom"),ft=An._has("svg")}be+=me.yaxis._shift,Vt();var jt=function(rn,vn,dn){return rn?rn==="nsew"?dn?"":vn==="pan"?"move":"crosshair":rn.toLowerCase()+"-resize":"pointer"}(je+Ee,de._fullLayout.dragmode,st),Kt=X(me,Se+Pe+"drag",jt,be,_e,we,Ce);if(Be&&!st)return Kt.onmousedown=null,Kt.style.pointerEvents="none",Kt;var It,$e,tt,Xe,et,ht,dt,De,Ge,pt,nt={element:Kt,gd:de,plotinfo:me};function bt(){nt.plotinfo.selection=!1,h(de)}function wt(rn,vn){var dn=nt.gd;if(dn._fullLayout._activeShapeIndex>=0)dn._fullLayout._deactivateShape(dn);else{var _n=dn._fullLayout.clickmode;if(ne(dn),rn!==2||lt||Ht(),st)_n.indexOf("select")>-1&&M(vn,dn,xe,ze,me.id,nt),_n.indexOf("event")>-1&&s.click(dn,vn,me.id);else if(rn===1&&lt){var Un=Se?Oe:Ne,An=Se==="s"||Pe==="w"?0:1,Wn=Un._name+".range["+An+"]",Gn=function(Qn,vr){var wr,Sr=Qn.range[vr],dr=Math.abs(Sr-Qn.range[1-vr]);return Qn.type==="date"?Sr:Qn.type==="log"?(wr=Math.ceil(Math.max(0,-Math.log(dr)/Math.LN10))+3,n("."+wr+"g")(Math.pow(10,Sr))):(wr=Math.floor(Math.log(Math.abs(Sr))/Math.LN10)-Math.floor(Math.log(dr)/Math.LN10)+4,n("."+String(wr)+"g")(Sr))}(Un,An),jn="left",er="middle";if(Un.fixedrange)return;Se?(er=Se==="n"?"top":"bottom",Un.side==="right"&&(jn="right")):Pe==="e"&&(jn="right"),dn._context.showAxisRangeEntryBoxes&&k.select(Kt).call(t.makeEditable,{gd:dn,immediate:!0,background:dn._fullLayout.paper_bgcolor,text:String(Gn),fill:Un.tickfont?Un.tickfont.color:"#444",horizontalAlign:jn,verticalAlign:er}).on("edit",function(Qn){var vr=Un.d2r(Qn);vr!==void 0&&c.call("_guiRelayout",dn,Wn,vr)})}}}function St(rn,vn){if(de._transitioningWithDuration)return!1;var dn=Math.max(0,Math.min(Re,_t*rn+It)),_n=Math.max(0,Math.min(Fe,Nt*vn+$e)),Un=Math.abs(dn-It),An=Math.abs(_n-$e);function Wn(){dt="",tt.r=tt.l,tt.t=tt.b,Ge.attr("d","M0,0Z")}if(tt.l=Math.min(It,dn),tt.r=Math.max(It,dn),tt.t=Math.min($e,_n),tt.b=Math.max($e,_n),ve.isSubplotConstrained)Un>A||An>A?(dt="xy",Un/Re>An/Fe?(An=Un*Fe/Re,$e>_n?tt.t=$e-An:tt.b=$e+An):(Un=An*Re/Fe,It>dn?tt.l=It-Un:tt.r=It+Un),Ge.attr("d",te(tt))):Wn();else if(ke.isSubplotConstrained)if(Un>A||An>A){dt="xy";var Gn=Math.min(tt.l/Re,(Fe-tt.b)/Fe),jn=Math.max(tt.r/Re,(Fe-tt.t)/Fe);tt.l=Gn*Re,tt.r=jn*Re,tt.b=(1-Gn)*Fe,tt.t=(1-jn)*Fe,Ge.attr("d",te(tt))}else Wn();else!je||An<Math.min(Math.max(.6*Un,R),A)?Un<R||!Ee?Wn():(tt.t=0,tt.b=Fe,dt="x",Ge.attr("d",function(er,Qn){return"M"+(er.l-.5)+","+(Qn-A-.5)+"h-3v"+(2*A+1)+"h3ZM"+(er.r+.5)+","+(Qn-A-.5)+"h3v"+(2*A+1)+"h-3Z"}(tt,$e))):!Ee||Un<Math.min(.6*An,A)?(tt.l=0,tt.r=Re,dt="y",Ge.attr("d",function(er,Qn){return"M"+(Qn-A-.5)+","+(er.t-.5)+"v-3h"+(2*A+1)+"v3ZM"+(Qn-A-.5)+","+(er.b+.5)+"v3h"+(2*A+1)+"v-3Z"}(tt,It))):(dt="xy",Ge.attr("d",te(tt)));tt.w=tt.r-tt.l,tt.h=tt.b-tt.t,dt&&(pt=!0),de._dragged=pt,se(De,Ge,tt,et,ht,Xe),vt(),de.emit("plotly_relayouting",ut),ht=!0}function vt(){ut={},dt!=="xy"&&dt!=="x"||(W(xe,tt.l/Re,tt.r/Re,ut,ve.xaxes),nn("x",ut)),dt!=="xy"&&dt!=="y"||(W(ze,(Fe-tt.b)/Fe,(Fe-tt.t)/Fe,ut,ve.yaxes),nn("y",ut))}function Pt(){vt(),ne(de),Qt(),$(de)}nt.prepFn=function(rn,vn,dn){var _n=nt.dragmode,Un=de._fullLayout.dragmode;Un!==_n&&(nt.dragmode=Un),Vt(),_t=de._fullLayout._invScaleX,Nt=de._fullLayout._invScaleY,Be||(st?rn.shiftKey?Un==="pan"?Un="zoom":f(Un)||(Un="pan"):rn.ctrlKey&&(Un="pan"):Un="pan"),C(Un)?nt.minDrag=1:nt.minDrag=void 0,f(Un)?(nt.xaxes=xe,nt.yaxes=ze,O(rn,vn,dn,nt,Un)):(nt.clickFn=wt,f(_n)&&bt(),Be||(Un==="zoom"?(nt.moveFn=St,nt.doneFn=Pt,nt.minDrag=1,function(An,Wn,Gn){var jn=Kt.getBoundingClientRect();It=Wn-jn.left,$e=Gn-jn.top,de._fullLayout._calcInverseTransform(de);var er=v.apply3DTransform(de._fullLayout._invTransform)(It,$e);It=er[0],$e=er[1],tt={l:It,r:It,w:0,t:$e,b:$e,h:0},Xe=de._hmpixcount?de._hmlumcount/de._hmpixcount:w(de._fullLayout.plot_bgcolor).getLuminance(),ht=!1,dt="xy",pt=!1,De=G(Tt,Xe,Le,Ue,et="M0,0H"+Re+"V"+Fe+"H0V0"),Ge=J(Tt,Le,Ue)}(0,vn,dn)):Un==="pan"&&(nt.moveFn=Bt,nt.doneFn=Qt))),de._fullLayout._redrag=function(){var An=de._dragdata;if(An&&An.element===Kt){var Wn=de._fullLayout.dragmode;f(Wn)||(Vt(),un([0,0,Re,Fe]),nt.moveFn(An.dx,An.dy))}}},d.init(nt);var Lt=[0,0,Re,Fe],Ct=null,Rt=P.REDRAWDELAY,At=me.mainplot?de._fullLayout._plots[me.mainplot]:me;function Bt(rn,vn){if(rn*=_t,vn*=Nt,!de._transitioningWithDuration){if(de._fullLayout._replotting=!0,Ee==="ew"||je==="ns"){var dn=Ee?-rn:0,_n=je?-vn:0;if(ke.isSubplotConstrained){if(Ee&&je){var Un=(rn/Re-vn/Fe)/2;dn=-(rn=Un*Re),_n=-(vn=-Un*Fe)}je?dn=-_n*Re/Fe:_n=-dn*Fe/Re}return Ee&&(Y(xe,rn),nn("x")),je&&(Y(ze,vn),nn("y")),un([dn,_n,Re,Fe]),hn(),void de.emit("plotly_relayouting",ut)}var An,Wn,Gn=Ee==="w"==(je==="n")?1:-1;if(Ee&&je&&(ve.isSubplotConstrained||ke.isSubplotConstrained)){var jn=(rn/Re+Gn*vn/Fe)/2;rn=jn*Re,vn=Gn*jn*Fe}if(Ee==="w"?rn=wr(xe,0,rn):Ee==="e"?rn=wr(xe,1,-rn):Ee||(rn=0),je==="n"?vn=wr(ze,1,vn):je==="s"?vn=wr(ze,0,-vn):je||(vn=0),An=Ee==="w"?rn:0,Wn=je==="n"?vn:0,ve.isSubplotConstrained&&!ke.isSubplotConstrained||ke.isSubplotConstrained&&Ee&&je&&Gn>0){var er;if(ke.isSubplotConstrained||!Ee&&je.length===1){for(er=0;er<xe.length;er++)xe[er].range=xe[er]._r.slice(),N(xe[er],1-vn/Fe);An=(rn=vn*Re/Fe)/2}if(ke.isSubplotConstrained||!je&&Ee.length===1){for(er=0;er<ze.length;er++)ze[er].range=ze[er]._r.slice(),N(ze[er],1-rn/Re);Wn=(vn=rn*Fe/Re)/2}}ke.isSubplotConstrained&&je||nn("x"),ke.isSubplotConstrained&&Ee||nn("y");var Qn=Re-rn,vr=Fe-vn;!ke.isSubplotConstrained||Ee&&je||(Ee?(Wn=An?0:rn*Fe/Re,vr=Qn*Fe/Re):(An=Wn?0:vn*Re/Fe,Qn=vr*Re/Fe)),un([An,Wn,Qn,vr]),hn(),de.emit("plotly_relayouting",ut)}function wr(Sr,dr,Gr){for(var Zt,pn,Ln=1-dr,Tn=0;Tn<Sr.length;Tn++){var qn=Sr[Tn];if(!qn.fixedrange){Zt=qn,pn=qn._rl[Ln]+(qn._rl[dr]-qn._rl[Ln])/B(Gr/qn._length);var rr=qn.l2r(pn);rr!==!1&&rr!==void 0&&(qn.range[dr]=rr)}}return Zt._length*(Zt._rl[dr]-pn)/(Zt._rl[dr]-Zt._rl[Ln])}}function nn(rn,vn){for(var dn=ke.isSubplotConstrained?{x:ze,y:xe}[rn]:ke[rn+"axes"],_n=ke.isSubplotConstrained?{x:xe,y:ze}[rn]:[],Un=0;Un<dn.length;Un++){var An=dn[Un],Wn=An._id,Gn=ke.xLinks[Wn]||ke.yLinks[Wn],jn=_n[0]||pe[Gn]||fe[Gn];jn&&(vn?(vn[An._name+".range[0]"]=vn[jn._name+".range[0]"],vn[An._name+".range[1]"]=vn[jn._name+".range[1]"]):An.range=jn.range.slice())}}function hn(){var rn,vn=[];function dn(Wn){for(rn=0;rn<Wn.length;rn++)Wn[rn].fixedrange||vn.push(Wn[rn]._id)}function _n(Wn,Gn){for(rn=0;rn<Wn.length;rn++){var jn=Wn[rn],er=jn[Gn];jn.fixedrange||er.tickmode!=="sync"||vn.push(er._id)}}for(Ie&&(dn(xe),dn(ve.xaxes),dn(ke.xaxes),_n(me.overlays,"xaxis")),Ze&&(dn(ze),dn(ve.yaxes),dn(ke.yaxes),_n(me.overlays,"yaxis")),ut={},rn=0;rn<vn.length;rn++){var Un=vn[rn],An=S(de,Un);l.drawOne(de,An,{skipTitle:!0}),ut[An._name+".range[0]"]=An.range[0],ut[An._name+".range[1]"]=An.range[1]}l.redrawComponents(de,vn)}function Ht(){if(!de._transitioningWithDuration){var rn=de._context.doubleClick,vn=[];Ee&&(vn=vn.concat(xe)),je&&(vn=vn.concat(ze)),ke.xaxes&&(vn=vn.concat(ke.xaxes)),ke.yaxes&&(vn=vn.concat(ke.yaxes));var dn,_n,Un={};if(rn==="reset+autosize")for(rn="autosize",_n=0;_n<vn.length;_n++){var An=(dn=vn[_n])._rangeInitial0,Wn=dn._rangeInitial1,Gn=An!==void 0||Wn!==void 0;if(Gn&&(An!==void 0&&An!==dn.range[0]||Wn!==void 0&&Wn!==dn.range[1])||!Gn&&dn.autorange!==!0){rn="reset";break}}if(rn==="autosize")for(_n=0;_n<vn.length;_n++)(dn=vn[_n]).fixedrange||(Un[dn._name+".autorange"]=!0);else if(rn==="reset"){for((Ee||ve.isSubplotConstrained)&&(vn=vn.concat(ve.xaxes)),je&&!ve.isSubplotConstrained&&(vn=vn.concat(ve.yaxes)),ve.isSubplotConstrained&&(Ee?je||(vn=vn.concat(ze)):vn=vn.concat(xe)),_n=0;_n<vn.length;_n++)if(!(dn=vn[_n]).fixedrange){var jn=dn._name,er=dn._autorangeInitial;dn._rangeInitial0===void 0&&dn._rangeInitial1===void 0?Un[jn+".autorange"]=!0:dn._rangeInitial0===void 0?(Un[jn+".autorange"]=er,Un[jn+".range"]=[null,dn._rangeInitial1]):dn._rangeInitial1===void 0?(Un[jn+".range"]=[dn._rangeInitial0,null],Un[jn+".autorange"]=er):Un[jn+".range"]=[dn._rangeInitial0,dn._rangeInitial1]}}de.emit("plotly_doubleclick",null),c.call("_guiRelayout",de,Un)}}function Qt(){un([0,0,Re,Fe]),v.syncOrAsync([_.previousPromises,function(){de._fullLayout._replotting=!1,c.call("_guiRelayout",de,ut)}],de)}function un(rn){var vn,dn,_n,Un,An=de._fullLayout,Wn=An._plots,Gn=An._subplots.cartesian;if(at&&c.subplotsRegistry.splom.drag(de),He){for(vn=0;vn<Gn.length;vn++)if(_n=(dn=Wn[Gn[vn]]).xaxis,Un=dn.yaxis,dn._scene){var jn=v.simpleMap(_n.range,_n.r2l),er=v.simpleMap(Un.range,Un.r2l);_n.limitRange&&_n.limitRange(),Un.limitRange&&Un.limitRange(),jn=_n.range,er=Un.range,dn._scene.update({range:[jn[0],er[0],jn[1],er[1]]})}}if((at||He)&&(m(de),x(de)),ft){var Qn=rn[2]/Ne._length,vr=rn[3]/Oe._length;for(vn=0;vn<Gn.length;vn++){_n=(dn=Wn[Gn[vn]]).xaxis,Un=dn.yaxis;var wr,Sr,dr,Gr,Zt=(Ie||ke.isSubplotConstrained)&&!_n.fixedrange&&pe[_n._id],pn=(Ze||ke.isSubplotConstrained)&&!Un.fixedrange&&fe[Un._id];if(Zt?(wr=Qn,dr=Pe||ke.isSubplotConstrained?rn[0]:wn(_n,wr)):ke.xaHash[_n._id]?(wr=Qn,dr=rn[0]*_n._length/Ne._length):ke.yaHash[_n._id]?(wr=vr,dr=je==="ns"?-rn[1]*_n._length/Oe._length:wn(_n,wr,{n:"top",s:"bottom"}[je])):dr=zn(_n,wr=In(_n,Qn,vr)),wr>1&&(_n.maxallowed!==void 0&&Ie===(_n.range[0]<_n.range[1]?"e":"w")||_n.minallowed!==void 0&&Ie===(_n.range[0]<_n.range[1]?"w":"e"))&&(wr=1,dr=0),pn?(Sr=vr,Gr=Se||ke.isSubplotConstrained?rn[1]:wn(Un,Sr)):ke.yaHash[Un._id]?(Sr=vr,Gr=rn[1]*Un._length/Oe._length):ke.xaHash[Un._id]?(Sr=Qn,Gr=Ee==="ew"?-rn[0]*Un._length/Ne._length:wn(Un,Sr,{e:"right",w:"left"}[Ee])):Gr=zn(Un,Sr=In(Un,Qn,vr)),Sr>1&&(Un.maxallowed!==void 0&&Ze===(Un.range[0]<Un.range[1]?"n":"s")||Un.minallowed!==void 0&&Ze===(Un.range[0]<Un.range[1]?"s":"n"))&&(Sr=1,Gr=0),wr||Sr){wr||(wr=1),Sr||(Sr=1);var Ln=_n._offset-dr/wr,Tn=Un._offset-Gr/Sr;dn.clipRect.call(i.setTranslate,dr,Gr).call(i.setScale,wr,Sr),dn.plot.call(i.setTranslate,Ln,Tn).call(i.setScale,1/wr,1/Sr),wr===dn.xScaleFactor&&Sr===dn.yScaleFactor||(i.setPointGroupScale(dn.zoomScalePts,wr,Sr),i.setTextPointsScale(dn.zoomScaleTxt,wr,Sr)),i.hideOutsideRangePoints(dn.clipOnAxisFalseTraces,dn),dn.xScaleFactor=wr,dn.yScaleFactor=Sr}}}}function In(rn,vn,dn){return rn.fixedrange?0:Ie&&ve.xaHash[rn._id]?vn:Ze&&(ve.isSubplotConstrained?ve.xaHash:ve.yaHash)[rn._id]?dn:0}function zn(rn,vn){return vn?(rn.range=rn._r.slice(),N(rn,vn),wn(rn,vn)):0}function wn(rn,vn,dn){return rn._length*(1-vn)*y[dn||rn.constraintoward||"middle"]}return Se.length*Pe.length!=1&&ce(Kt,function(rn){if(de._context._scrollZoom.cartesian||de._fullLayout._enablescrollzoom){if(bt(),de._transitioningWithDuration)return rn.preventDefault(),void rn.stopPropagation();Vt(),clearTimeout(Ct);var vn=-rn.deltaY;if(isFinite(vn)||(vn=rn.wheelDelta/10),isFinite(vn)){var dn,_n=Math.exp(-Math.min(Math.max(vn,-20),20)/200),Un=At.draglayer.select(".nsewdrag").node().getBoundingClientRect(),An=(rn.clientX-Un.left)/Un.width,Wn=(Un.bottom-rn.clientY)/Un.height;if(Ie){for(Pe||(An=.5),dn=0;dn<xe.length;dn++)Gn(xe[dn],An,_n);nn("x"),Lt[2]*=_n,Lt[0]+=Lt[2]*An*(1/_n-1)}if(Ze){for(Se||(Wn=.5),dn=0;dn<ze.length;dn++)Gn(ze[dn],Wn,_n);nn("y"),Lt[3]*=_n,Lt[1]+=Lt[3]*(1-Wn)*(1/_n-1)}un(Lt),hn(),de.emit("plotly_relayouting",ut),Ct=setTimeout(function(){de._fullLayout&&(Lt=[0,0,Re,Fe],Qt())},Rt),rn.preventDefault()}else v.log("Did not find wheel motion attributes: ",rn)}function Gn(jn,er,Qn){if(!jn.fixedrange){var vr=v.simpleMap(jn.range,jn.r2l),wr=vr[0]+(vr[1]-vr[0])*er;jn.range=vr.map(function(Sr){return jn.l2r(wr+(Sr-wr)*Qn)})}}}),Kt},makeDragger:j,makeRectDragger:X,makeZoombox:G,makeCorners:J,updateZoombox:se,xyCorners:te,transitionZoombox:re,removeZoombox:ne,showDoubleClickNotifier:$,attachWheelEventHandler:ce}},42464:function(L,T,e){var k=e(33428),v=e(93024),n=e(86476),w=e(93972),b=e(51184).makeDragBox,c=e(33816).DRAGGERSIZE;T.initInteractions=function(a){var t=a._fullLayout;if(a._context.staticPlot)k.select(a).selectAll(".drag").remove();else if(t._has("cartesian")||t._has("splom")){Object.keys(t._plots||{}).sort(function(i,s){if((t._plots[i].mainplot&&!0)===(t._plots[s].mainplot&&!0)){var l=i.split("y"),u=s.split("y");return l[0]===u[0]?Number(l[1]||1)-Number(u[1]||1):Number(l[0]||1)-Number(u[0]||1)}return t._plots[i].mainplot?1:-1}).forEach(function(i){var s=t._plots[i],l=s.xaxis,u=s.yaxis;if(!s.mainplot){var d=b(a,s,l._offset,u._offset,l._length,u._length,"ns","ew");d.onmousemove=function(C){a._fullLayout._rehover=function(){a._fullLayout._hoversubplot===i&&a._fullLayout._plots[i]&&v.hover(a,C,i)},v.hover(a,C,i),a._fullLayout._lasthover=d,a._fullLayout._hoversubplot=i},d.onmouseout=function(C){a._dragging||(a._fullLayout._hoversubplot=null,n.unhover(a,C))},a._context.showAxisDragHandles&&(b(a,s,l._offset-c,u._offset-c,c,c,"n","w"),b(a,s,l._offset+l._length,u._offset-c,c,c,"n","e"),b(a,s,l._offset-c,u._offset+u._length,c,c,"s","w"),b(a,s,l._offset+l._length,u._offset+u._length,c,c,"s","e"))}if(a._context.showAxisDragHandles){if(i===l._mainSubplot){var g=l._mainLinePosition;l.side==="top"&&(g-=c),b(a,s,l._offset+.1*l._length,g,.8*l._length,c,"","ew"),b(a,s,l._offset,g,.1*l._length,c,"","w"),b(a,s,l._offset+.9*l._length,g,.1*l._length,c,"","e")}if(i===u._mainSubplot){var f=u._mainLinePosition;u.side!=="right"&&(f-=c),b(a,s,f,u._offset+.1*u._length,c,.8*u._length,"ns",""),b(a,s,f,u._offset+.9*u._length,c,.1*u._length,"s",""),b(a,s,f,u._offset,c,.1*u._length,"n","")}}});var o=t._hoverlayer.node();o.onmousemove=function(i){i.target=a._fullLayout._lasthover,v.hover(a,i,t._hoversubplot)},o.onclick=function(i){i.target=a._fullLayout._lasthover,v.click(a,i)},o.onmousedown=function(i){a._fullLayout._lasthover.onmousedown(i)},T.updateFx(a)}},T.updateFx=function(a){var t=a._fullLayout,o=t.dragmode==="pan"?"move":"crosshair";w(t._draggers,o)}},36632:function(L,T,e){var k=e(24040),v=e(3400),n=e(79811);L.exports=function(w){return function(b,c){var a=b[w];if(Array.isArray(a))for(var t=k.subplotsRegistry.cartesian,o=t.idRegex,i=c._subplots,s=i.xaxis,l=i.yaxis,u=i.cartesian,d=c._has("cartesian")||c._has("gl2d"),g=0;g<a.length;g++){var f=a[g];if(v.isPlainObject(f)){var C=n.cleanId(f.xref,"x",!1),y=n.cleanId(f.yref,"y",!1),m=o.x.test(C),x=o.y.test(y);if(m||x){d||v.pushUnique(c._basePlotModules,t);var _=!1;m&&s.indexOf(C)===-1&&(s.push(C),_=!0),x&&l.indexOf(y)===-1&&(l.push(y),_=!0),_&&m&&x&&u.push(C+y)}}}}}},57952:function(L,T,e){var k=e(33428),v=e(24040),n=e(3400),w=e(7316),b=e(43616),c=e(84888)._M,a=e(79811),t=e(33816),o=e(9616),i=n.ensureSingle;function s(f,C,y){return n.ensureSingle(f,C,y,function(m){m.datum(y)})}function l(f,C,y,m,x){for(var _,S,O,h=t.traceLayerClasses,M=f._fullLayout,N=M._modules,P=[],R=[],A=0;A<N.length;A++){var q=(_=N[A]).name,j=v.modules[q].categories;if(j.svg){var X=_.layerName||q+"layer",F=_.plot;O=(S=c(y,F))[0],y=S[1],O.length&&P.push({i:h.indexOf(X),className:X,plotMethod:F,cdModule:O}),j.zoomScale&&R.push("."+X)}}P.sort(function(B,G){return B.i-G.i});var W=C.plot.selectAll("g.mlayer").data(P,function(B){return B.className});if(W.enter().append("g").attr("class",function(B){return B.className}).classed("mlayer",!0).classed("rangeplot",C.isRangePlot),W.exit().remove(),W.order(),W.each(function(B){var G=k.select(this),J=B.className;B.plotMethod(f,C,B.cdModule,G,m,x),t.clipOnAxisFalseQuery.indexOf("."+J)===-1&&b.setClipUrl(G,C.layerClipId,f)}),M._has("scattergl")&&(_=v.getModule("scattergl"),O=c(y,_)[0],_.plot(f,C,O)),!f._context.staticPlot&&(C._hasClipOnAxisFalse&&(C.clipOnAxisFalseTraces=C.plot.selectAll(t.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),R.length)){var Y=C.plot.selectAll(R.join(",")).selectAll(".trace");C.zoomScalePts=Y.selectAll("path.point"),C.zoomScaleTxt=Y.selectAll(".textpoint")}}function u(f,C){var y=C.plotgroup,m=C.id,x=t.layerValue2layerClass[C.xaxis.layer],_=t.layerValue2layerClass[C.yaxis.layer],S=f._fullLayout._hasOnlyLargeSploms;if(C.mainplot){var O=C.mainplotinfo,h=O.plotgroup,M=m+"-x",N=m+"-y";C.minorGridlayer=O.minorGridlayer,C.gridlayer=O.gridlayer,C.zerolinelayer=O.zerolinelayer,i(O.overlinesBelow,"path",M),i(O.overlinesBelow,"path",N),i(O.overaxesBelow,"g",M),i(O.overaxesBelow,"g",N),C.plot=i(O.overplot,"g",m),i(O.overlinesAbove,"path",M),i(O.overlinesAbove,"path",N),i(O.overaxesAbove,"g",M),i(O.overaxesAbove,"g",N),C.xlines=h.select(".overlines-"+x).select("."+M),C.ylines=h.select(".overlines-"+_).select("."+N),C.xaxislayer=h.select(".overaxes-"+x).select("."+M),C.yaxislayer=h.select(".overaxes-"+_).select("."+N)}else if(S)C.xlines=i(y,"path","xlines-above"),C.ylines=i(y,"path","ylines-above"),C.xaxislayer=i(y,"g","xaxislayer-above"),C.yaxislayer=i(y,"g","yaxislayer-above");else{var P=i(y,"g","layer-subplot");C.shapelayer=i(P,"g","shapelayer"),C.imagelayer=i(P,"g","imagelayer"),C.minorGridlayer=i(y,"g","minor-gridlayer"),C.gridlayer=i(y,"g","gridlayer"),C.zerolinelayer=i(y,"g","zerolinelayer"),i(y,"path","xlines-below"),i(y,"path","ylines-below"),C.overlinesBelow=i(y,"g","overlines-below"),i(y,"g","xaxislayer-below"),i(y,"g","yaxislayer-below"),C.overaxesBelow=i(y,"g","overaxes-below"),C.plot=i(y,"g","plot"),C.overplot=i(y,"g","overplot"),C.xlines=i(y,"path","xlines-above"),C.ylines=i(y,"path","ylines-above"),C.overlinesAbove=i(y,"g","overlines-above"),i(y,"g","xaxislayer-above"),i(y,"g","yaxislayer-above"),C.overaxesAbove=i(y,"g","overaxes-above"),C.xlines=y.select(".xlines-"+x),C.ylines=y.select(".ylines-"+_),C.xaxislayer=y.select(".xaxislayer-"+x),C.yaxislayer=y.select(".yaxislayer-"+_)}S||(s(C.minorGridlayer,"g",C.xaxis._id),s(C.minorGridlayer,"g",C.yaxis._id),C.minorGridlayer.selectAll("g").map(function(R){return R[0]}).sort(a.idSort),s(C.gridlayer,"g",C.xaxis._id),s(C.gridlayer,"g",C.yaxis._id),C.gridlayer.selectAll("g").map(function(R){return R[0]}).sort(a.idSort)),C.xlines.style("fill","none").classed("crisp",!0),C.ylines.style("fill","none").classed("crisp",!0)}function d(f,C){if(f){var y={};for(var m in f.each(function(O){var h=O[0];k.select(this).remove(),g(h,C),y[h]=!0}),C._plots)for(var x=C._plots[m].overlays||[],_=0;_<x.length;_++){var S=x[_];y[S.id]&&S.plot.selectAll(".trace").remove()}}}function g(f,C){C._draggers.selectAll("g."+f).remove(),C._defs.select("#clip"+C._uid+f+"plot").remove()}T.name="cartesian",T.attr=["xaxis","yaxis"],T.idRoot=["x","y"],T.idRegex=t.idRegex,T.attrRegex=t.attrRegex,T.attributes=e(26720),T.layoutAttributes=e(94724),T.supplyLayoutDefaults=e(67352),T.transitionAxes=e(73736),T.finalizeSubplots=function(f,C){var y,m,x,_=C._subplots,S=_.xaxis,O=_.yaxis,h=_.cartesian,M=h.concat(_.gl2d||[]),N={},P={};for(y=0;y<M.length;y++){var R=M[y].split("y");N[R[0]]=1,P["y"+R[1]]=1}for(y=0;y<S.length;y++)N[m=S[y]]||(x=(f[a.id2name(m)]||{}).anchor,t.idRegex.y.test(x)||(x="y"),h.push(m+x),M.push(m+x),P[x]||(P[x]=1,n.pushUnique(O,x)));for(y=0;y<O.length;y++)P[x=O[y]]||(m=(f[a.id2name(x)]||{}).anchor,t.idRegex.x.test(m)||(m="x"),h.push(m+x),M.push(m+x),N[m]||(N[m]=1,n.pushUnique(S,m)));if(!M.length){for(var A in m="",x="",f)t.attrRegex.test(A)&&(A.charAt(0)==="x"?(!m||+A.substr(5)<+m.substr(5))&&(m=A):(!x||+A.substr(5)<+x.substr(5))&&(x=A));m=m?a.name2id(m):"x",x=x?a.name2id(x):"y",S.push(m),O.push(x),h.push(m+x)}},T.plot=function(f,C,y,m){var x,_=f._fullLayout,S=_._subplots.cartesian,O=f.calcdata;if(!Array.isArray(C))for(C=[],x=0;x<O.length;x++)C.push(x);for(x=0;x<S.length;x++){for(var h,M=S[x],N=_._plots[M],P=[],R=0;R<O.length;R++){var A=O[R],q=A[0].trace;q.xaxis+q.yaxis===M&&((C.indexOf(q.index)!==-1||q.carpet)&&(h&&h[0].trace.xaxis+h[0].trace.yaxis===M&&["tonextx","tonexty","tonext"].indexOf(q.fill)!==-1&&P.indexOf(h)===-1&&P.push(h),P.push(A)),h=A)}l(f,N,P,y,m)}},T.clean=function(f,C,y,m){var x,_,S,O=m._plots||{},h=C._plots||{},M=m._subplots||{};if(m._hasOnlyLargeSploms&&!C._hasOnlyLargeSploms)for(S in O)(x=O[S]).plotgroup&&x.plotgroup.remove();var N=m._has&&m._has("gl"),P=C._has&&C._has("gl");if(N&&!P)for(S in O)(x=O[S])._scene&&x._scene.destroy();if(M.xaxis&&M.yaxis){var R=a.listIds({_fullLayout:m});for(_=0;_<R.length;_++){var A=R[_];C[a.id2name(A)]||m._infolayer.selectAll(".g-"+A+"title").remove()}}var q=m._has&&m._has("cartesian"),j=C._has&&C._has("cartesian");if(q&&!j)d(m._cartesianlayer.selectAll(".subplot"),m),m._defs.selectAll(".axesclip").remove(),delete m._axisConstraintGroups,delete m._axisMatchGroups;else if(M.cartesian)for(_=0;_<M.cartesian.length;_++){var X=M.cartesian[_];if(!h[X]){var F="."+X+",."+X+"-x,."+X+"-y";m._cartesianlayer.selectAll(F).remove(),g(X,m)}}},T.drawFramework=function(f){var C=f._fullLayout,y=function(x){var _,S,O,h,M,N,P=x._fullLayout,R=P._subplots.cartesian,A=R.length,q=[],j=[];for(_=0;_<A;_++){O=R[_],M=(h=P._plots[O]).xaxis,N=h.yaxis;var X=M._mainAxis,F=N._mainAxis,W=X._id+F._id,Y=P._plots[W];h.overlays=[],W!==O&&Y?(h.mainplot=W,h.mainplotinfo=Y,j.push(O)):(h.mainplot=void 0,h.mainplotinfo=void 0,q.push(O))}for(_=0;_<j.length;_++)O=j[_],(h=P._plots[O]).mainplotinfo.overlays.push(h);var B=q.concat(j),G=new Array(A);for(_=0;_<A;_++){O=B[_],M=(h=P._plots[O]).xaxis,N=h.yaxis;var J=[O,M.layer,N.layer,M.overlaying||"",N.overlaying||""];for(S=0;S<h.overlays.length;S++)J.push(h.overlays[S].id);G[_]=J}return G}(f),m=C._cartesianlayer.selectAll(".subplot").data(y,String);m.enter().append("g").attr("class",function(x){return"subplot "+x[0]}),m.order(),m.exit().call(d,C),m.each(function(x){var _=x[0],S=C._plots[_];S.plotgroup=k.select(this),u(f,S),S.draglayer=i(C._draggers,"g",_)})},T.rangePlot=function(f,C,y){u(f,C),l(f,C,y),w.style(f)},T.toSVG=function(f){var C=f._fullLayout._glimages,y=k.select(f).selectAll(".svg-container");y.filter(function(m,x){return x===y.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus").each(function(){var m=this,x=m.toDataURL("image/png");C.append("svg:image").attr({xmlns:o.svg,"xlink:href":x,preserveAspectRatio:"none",x:0,y:0,width:m.style.width,height:m.style.height})})},T.updateFx=e(42464).updateFx},94724:function(L,T,e){var k=e(25376),v=e(22548),n=e(98192).u,w=e(92880).extendFlat,b=e(31780).templatedArray,c=e(29736).descriptionWithDates,a=e(39032).ONEDAY,t=e(33816),o=t.HOUR_PATTERN,i=t.WEEKDAY_PATTERN,s={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},l=w({},s,{values:s.values.slice().concat(["sync"])});function u(M){return{valType:"integer",min:0,dflt:M?5:0,editType:"ticks"}}var d={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},g={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},f={valType:"data_array",editType:"ticks"},C={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function y(M){var N={valType:"number",min:0,editType:"ticks"};return M||(N.dflt=5),N}function m(M){var N={valType:"number",min:0,editType:"ticks"};return M||(N.dflt=1),N}var x={valType:"color",dflt:v.defaultLine,editType:"ticks"},_={valType:"color",dflt:v.lightLine,editType:"ticks"};function S(M){var N={valType:"number",min:0,editType:"ticks"};return M||(N.dflt=1),N}var O=w({},n,{editType:"ticks"}),h={valType:"boolean",editType:"ticks"};L.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:v.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:k({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:[t.idRegex.x.toString(),t.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:[t.idRegex.x.toString(),t.idRegex.y.toString()],editType:"calc"},rangebreaks:b("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:[i,o,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:a},editType:"calc"}),tickmode:l,nticks:u(),tick0:d,dtick:g,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:f,ticktext:{valType:"data_array",editType:"ticks"},ticks:C,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"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:y(),tickwidth:m(),tickcolor:x,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:w({},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:k({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:c("tick label")},tickformatstops:b("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:c("hover text")},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:v.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:h,gridcolor:_,gridwidth:S(),griddash:O,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:v.defaultLine,editType:"ticks"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:v.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",t.idRegex.x.toString(),t.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",t.idRegex.x.toString(),t.idRegex.y.toString()],editType:"plot"},minor:{tickmode:s,nticks:u("minor"),tick0:d,dtick:g,tickvals:f,ticks:C,ticklen:y("minor"),tickwidth:m("minor"),tickcolor:x,gridcolor:_,gridwidth:S("minor"),griddash:O,showgrid:h,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","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:k({editType:"ticks"})}}},67352:function(L,T,e){var k=e(3400),v=e(76308),n=e(10624).isUnifiedHover,w=e(41008),b=e(31780),c=e(64859),a=e(94724),t=e(14944),o=e(28336),i=e(71888),s=e(37668),l=e(79811),u=l.id2name,d=l.name2id,g=e(33816).AX_ID_PATTERN,f=e(24040),C=f.traceIs,y=f.getComponentMethod;function m(x,_,S){Array.isArray(x[_])?x[_].push(S):x[_]=[S]}L.exports=function(x,_,S){var O,h,M=_.autotypenumbers,N={},P={},R={},A={},q={},j={},X={},F={},W={},Y={};for(O=0;O<S.length;O++){var B=S[O];if(C(B,"cartesian")||C(B,"gl2d")){var G,J;if(B.xaxis)G=u(B.xaxis),m(N,G,B);else if(B.xaxes)for(h=0;h<B.xaxes.length;h++)m(N,u(B.xaxes[h]),B);if(B.yaxis)J=u(B.yaxis),m(N,J,B);else if(B.yaxes)for(h=0;h<B.yaxes.length;h++)m(N,u(B.yaxes[h]),B);B.type==="funnel"?B.orientation==="h"?(G&&(P[G]=!0),J&&(X[J]=!0)):J&&(R[J]=!0):B.type==="image"?(J&&(F[J]=!0),G&&(F[G]=!0)):(J&&(q[J]=!0,j[J]=!0),C(B,"carpet")&&(B.type!=="carpet"||B._cheater)||G&&(A[G]=!0)),B.type==="carpet"&&B._cheater&&G&&(P[G]=!0),C(B,"2dMap")&&(W[G]=!0,W[J]=!0),C(B,"oriented")&&(Y[B.orientation==="h"?J:G]=!0)}}var se=_._subplots,re=se.xaxis,ne=se.yaxis,$=k.simpleMap(re,u),te=k.simpleMap(ne,u),ae=$.concat(te),ce=v.background;re.length&&ne.length&&(ce=k.coerce(x,_,c,"plot_bgcolor"));var ue,de,me,be,_e,we=v.combine(ce,_.paper_bgcolor);function Ce(){var lt=N[ue]||[];_e._traceIndices=lt.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=de}function Se(lt,Vt){return k.coerce(be,_e,a,lt,Vt)}function Pe(lt,Vt){return k.coerce2(be,_e,a,lt,Vt)}function Ne(lt){return lt==="x"?ne:re}function Oe(lt,Vt){for(var jt=lt==="x"?$:te,Kt=[],It=0;It<jt.length;It++){var $e=jt[It];$e===Vt||(x[$e]||{}).overlaying||Kt.push(d($e))}return Kt}var pe={x:Ne("x"),y:Ne("y")},fe=pe.x.concat(pe.y),xe={},ze=[];function Le(){var lt=be.matches;g.test(lt)&&fe.indexOf(lt)===-1&&(xe[lt]=be.type,ze=Object.keys(xe))}var Ue=w(x,_),Re=n(Ue);for(O=0;O<ae.length;O++){ue=ae[O],de=d(ue),me=ue.charAt(0),k.isPlainObject(x[ue])||(x[ue]={}),be=x[ue],_e=b.newContainer(_,ue,me+"axis"),Ce();var Fe=me==="x"&&!A[ue]&&P[ue]||me==="y"&&!q[ue]&&R[ue],ve=me==="y"&&(!j[ue]&&X[ue]||F[ue]),ke={hasMinor:!0,letter:me,font:_.font,outerTicks:W[ue],showGrid:!Y[ue],data:N[ue]||[],bgColor:we,calendar:_.calendar,automargin:!0,visibleDflt:Fe,reverseDflt:ve,autotypenumbersDflt:M,splomStash:((_._splomAxes||{})[me]||{})[de],noAutotickangles:me==="y"};Se("uirevision",_.uirevision),t(be,_e,Se,ke),o(be,_e,Se,ke,_);var Ee=Re&&me===Ue.charAt(0),je=Pe("spikecolor",Re?_e.color:void 0),Be=Pe("spikethickness",Re?1.5:void 0),Ie=Pe("spikedash",Re?"dot":void 0),Ze=Pe("spikemode",Re?"across":void 0),He=Pe("spikesnap");Se("showspikes",!!(Ee||je||Be||Ie||Ze||He))||(delete _e.spikecolor,delete _e.spikethickness,delete _e.spikedash,delete _e.spikemode,delete _e.spikesnap);var at=u(be.overlaying),ft=[0,1];if(_[at]!==void 0){var ut=u(_[at].anchor);_[ut]!==void 0&&(ft=_[ut].domain)}s(be,_e,Se,{letter:me,counterAxes:pe[me],overlayableAxes:Oe(me,ue),grid:_.grid,overlayingDomain:ft}),Se("title.standoff"),Le(),_e._input=be}for(O=0;O<ze.length;){de=ze[O++],me=(ue=u(de)).charAt(0),k.isPlainObject(x[ue])||(x[ue]={}),be=x[ue],_e=b.newContainer(_,ue,me+"axis"),Ce();var _t={letter:me,font:_.font,outerTicks:W[ue],showGrid:!Y[ue],data:[],bgColor:we,calendar:_.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:M,splomStash:((_._splomAxes||{})[me]||{})[de]};Se("uirevision",_.uirevision),_e.type=xe[de]||"linear",o(be,_e,Se,_t,_),s(be,_e,Se,{letter:me,counterAxes:pe[me],overlayableAxes:Oe(me,ue),grid:_.grid}),Se("fixedrange"),Le(),_e._input=be}var Nt=y("rangeslider","handleDefaults"),Tt=y("rangeselector","handleDefaults");for(O=0;O<$.length;O++)ue=$[O],be=x[ue],_e=_[ue],Nt(x,_,ue),_e.type==="date"&&Tt(be,_e,_,te,_e.calendar),Se("fixedrange");for(O=0;O<te.length;O++){ue=te[O],be=x[ue],_e=_[ue];var st=_[u(_e.anchor)];Se("fixedrange",y("rangeslider","isVisible")(st))}i.handleDefaults(x,_,{axIds:fe.concat(ze).sort(l.idSort),axHasImage:F})}},42136:function(L,T,e){var k=e(49760).mix,v=e(22548),n=e(3400);L.exports=function(w,b,c,a){var t=(a=a||{}).dfltColor;function o(x,_){return n.coerce2(w,b,a.attributes,x,_)}var i=o("linecolor",t),s=o("linewidth");c("showline",a.showLine||!!i||!!s)||(delete b.linecolor,delete b.linewidth);var l=o("gridcolor",k(t,a.bgColor,a.blend||v.lightFraction).toRgbString()),u=o("gridwidth"),d=o("griddash");if(c("showgrid",a.showGrid||!!l||!!u||!!d)||(delete b.gridcolor,delete b.gridwidth,delete b.griddash),a.hasMinor){var g=o("minor.gridcolor",k(b.gridcolor,a.bgColor,67).toRgbString()),f=o("minor.gridwidth",b.gridwidth||1),C=o("minor.griddash",b.griddash||"solid");c("minor.showgrid",!!g||!!f||!!C)||(delete b.minor.gridcolor,delete b.minor.gridwidth,delete b.minor.griddash)}if(!a.noZeroLine){var y=o("zerolinecolor",t),m=o("zerolinewidth");c("zeroline",a.showGrid||!!y||!!m)||(delete b.zerolinecolor,delete b.zerolinewidth)}}},37668:function(L,T,e){var k=e(38248),v=e(3400);L.exports=function(n,w,b,c){var a,t,o,i,s,l,u=c.counterAxes||[],d=c.overlayableAxes||[],g=c.letter,f=c.grid,C=c.overlayingDomain;f&&(t=f._domains[g][f._axisMap[w._id]],a=f._anchors[w._id],t&&(o=f[g+"side"].split(" ")[0],i=f.domain[g][o==="right"||o==="top"?1:0])),t=t||[0,1],a=a||(k(n.position)?"free":u[0]||"free"),o=o||(g==="x"?"bottom":"left"),i=i||0,s=0,l=!1;var y=v.coerce(n,w,{anchor:{valType:"enumerated",values:["free"].concat(u),dflt:a}},"anchor"),m=v.coerce(n,w,{side:{valType:"enumerated",values:g==="x"?["bottom","top"]:["left","right"],dflt:o}},"side");y==="free"&&(g==="y"&&(b("autoshift")&&(i=m==="left"?C[0]:C[1],l=!w.automargin||w.automargin,s=m==="left"?-3:3),b("shift",s)),b("position",i)),b("automargin",l);var x=!1;if(d.length&&(x=v.coerce(n,w,{overlaying:{valType:"enumerated",values:[!1].concat(d),dflt:!1}},"overlaying")),!x){var _=b("domain",t);_[0]>_[1]-.000244140625&&(w.domain=t),v.noneOrAll(n.domain,w.domain,t),w.tickmode==="sync"&&(w.tickmode="auto")}return b("layer"),w}},42568:function(L,T,e){var k=e(85024);L.exports=function(v,n,w,b,c){c||(c={});var a=c.tickSuffixDflt,t=k(v);w("tickprefix")&&w("showtickprefix",t),w("ticksuffix",a)&&w("showticksuffix",t)}},96312:function(L,T,e){var k=e(76808);L.exports=function(v,n,w,b){var c=n._template||{},a=n.type||c.type||"-";w("minallowed"),w("maxallowed");var t,o=w("range");o||b.noInsiderange||a==="log"||(!(t=w("insiderange"))||t[0]!==null&&t[1]!==null||(n.insiderange=!1,t=void 0),t&&(o=w("range",t)));var i,s=n.getAutorangeDflt(o,b),l=w("autorange",s);!o||(o[0]!==null||o[1]!==null)&&(o[0]!==null&&o[1]!==null||l!=="reversed"&&l!==!0)&&(o[0]===null||l!=="min"&&l!=="max reversed")&&(o[1]===null||l!=="max"&&l!=="min reversed")||(o=void 0,delete n.range,n.autorange=!0,i=!0),i||(l=w("autorange",s=n.getAutorangeDflt(o,b))),l&&(k(w,l,o),a!=="linear"&&a!=="-"||w("rangemode")),n.cleanRange()}},21160:function(L,T,e){var k=e(84284).FROM_BL;L.exports=function(v,n,w){w===void 0&&(w=k[v.constraintoward||"center"]);var b=[v.r2l(v.range[0]),v.r2l(v.range[1])],c=b[0]+(b[1]-b[0])*w;v.range=v._input.range=[v.l2r(c+(b[0]-c)*n),v.l2r(c+(b[1]-c)*n)],v.setScale()}},78344:function(L,T,e){var k=e(33428),v=e(94336).E9,n=e(3400),w=n.numberFormat,b=e(38248),c=n.cleanNumber,a=n.ms2DateTime,t=n.dateTime2ms,o=n.ensureNumber,i=n.isArrayOrTypedArray,s=e(39032),l=s.FP_SAFE,u=s.BADNUM,d=s.LOG_CLIP,g=s.ONEWEEK,f=s.ONEDAY,C=s.ONEHOUR,y=s.ONEMIN,m=s.ONESEC,x=e(79811),_=e(33816),S=_.HOUR_PATTERN,O=_.WEEKDAY_PATTERN;function h(N){return Math.pow(10,N)}function M(N){return N!=null}L.exports=function(N,P){P=P||{};var R=N._id||"x",A=R.charAt(0);function q(ae,ce){if(ae>0)return Math.log(ae)/Math.LN10;if(ae<=0&&ce&&N.range&&N.range.length===2){var ue=N.range[0],de=N.range[1];return .5*(ue+de-2*d*Math.abs(ue-de))}return u}function j(ae,ce,ue,de){if((de||{}).msUTC&&b(ae))return+ae;var me=t(ae,ue||N.calendar);if(me===u){if(!b(ae))return u;ae=+ae;var be=Math.floor(10*n.mod(ae+.05,1)),_e=Math.round(ae-be/10);me=t(new Date(_e))+be/10}return me}function X(ae,ce,ue){return a(ae,ce,ue||N.calendar)}function F(ae){return N._categories[Math.round(ae)]}function W(ae){if(M(ae)){if(N._categoriesMap===void 0&&(N._categoriesMap={}),N._categoriesMap[ae]!==void 0)return N._categoriesMap[ae];N._categories.push(typeof ae=="number"?String(ae):ae);var ce=N._categories.length-1;return N._categoriesMap[ae]=ce,ce}return u}function Y(ae){if(N._categoriesMap)return N._categoriesMap[ae]}function B(ae){var ce=Y(ae);return ce!==void 0?ce:b(ae)?+ae:void 0}function G(ae){return b(ae)?+ae:Y(ae)}function J(ae,ce,ue){return k.round(ue+ce*ae,2)}function se(ae,ce,ue){return(ae-ue)/ce}var re=function(ae){return b(ae)?J(ae,N._m,N._b):u},ne=function(ae){return se(ae,N._m,N._b)};if(N.rangebreaks){var $=A==="y";re=function(ae){if(!b(ae))return u;var ce=N._rangebreaks.length;if(!ce)return J(ae,N._m,N._b);var ue=$;N.range[0]>N.range[1]&&(ue=!ue);for(var de=ue?-1:1,me=de*ae,be=0,_e=0;_e<ce;_e++){var we=de*N._rangebreaks[_e].min,Ce=de*N._rangebreaks[_e].max;if(me<we)break;if(!(me>Ce)){be=me<(we+Ce)/2?_e:_e+1;break}be=_e+1}var Se=N._B[be]||0;return isFinite(Se)?J(ae,N._m2,Se):0},ne=function(ae){var ce=N._rangebreaks.length;if(!ce)return se(ae,N._m,N._b);for(var ue=0,de=0;de<ce&&!(ae<N._rangebreaks[de].pmin);de++)ae>N._rangebreaks[de].pmax&&(ue=de+1);return se(ae,N._m2,N._B[ue])}}N.c2l=N.type==="log"?q:o,N.l2c=N.type==="log"?h:o,N.l2p=re,N.p2l=ne,N.c2p=N.type==="log"?function(ae,ce){return re(q(ae,ce))}:re,N.p2c=N.type==="log"?function(ae){return h(ne(ae))}:ne,["linear","-"].indexOf(N.type)!==-1?(N.d2r=N.r2d=N.d2c=N.r2c=N.d2l=N.r2l=c,N.c2d=N.c2r=N.l2d=N.l2r=o,N.d2p=N.r2p=function(ae){return N.l2p(c(ae))},N.p2d=N.p2r=ne,N.cleanPos=o):N.type==="log"?(N.d2r=N.d2l=function(ae,ce){return q(c(ae),ce)},N.r2d=N.r2c=function(ae){return h(c(ae))},N.d2c=N.r2l=c,N.c2d=N.l2r=o,N.c2r=q,N.l2d=h,N.d2p=function(ae,ce){return N.l2p(N.d2r(ae,ce))},N.p2d=function(ae){return h(ne(ae))},N.r2p=function(ae){return N.l2p(c(ae))},N.p2r=ne,N.cleanPos=o):N.type==="date"?(N.d2r=N.r2d=n.identity,N.d2c=N.r2c=N.d2l=N.r2l=j,N.c2d=N.c2r=N.l2d=N.l2r=X,N.d2p=N.r2p=function(ae,ce,ue){return N.l2p(j(ae,0,ue))},N.p2d=N.p2r=function(ae,ce,ue){return X(ne(ae),ce,ue)},N.cleanPos=function(ae){return n.cleanDate(ae,u,N.calendar)}):N.type==="category"?(N.d2c=N.d2l=W,N.r2d=N.c2d=N.l2d=F,N.d2r=N.d2l_noadd=B,N.r2c=function(ae){var ce=G(ae);return ce!==void 0?ce:N.fraction2r(.5)},N.l2r=N.c2r=o,N.r2l=G,N.d2p=function(ae){return N.l2p(N.r2c(ae))},N.p2d=function(ae){return F(ne(ae))},N.r2p=N.d2p,N.p2r=ne,N.cleanPos=function(ae){return typeof ae=="string"&&ae!==""?ae:o(ae)}):N.type==="multicategory"&&(N.r2d=N.c2d=N.l2d=F,N.d2r=N.d2l_noadd=B,N.r2c=function(ae){var ce=B(ae);return ce!==void 0?ce:N.fraction2r(.5)},N.r2c_just_indices=Y,N.l2r=N.c2r=o,N.r2l=B,N.d2p=function(ae){return N.l2p(N.r2c(ae))},N.p2d=function(ae){return F(ne(ae))},N.r2p=N.d2p,N.p2r=ne,N.cleanPos=function(ae){return Array.isArray(ae)||typeof ae=="string"&&ae!==""?ae:o(ae)},N.setupMultiCategory=function(ae){var ce,ue,de=N._traceIndices,me=N._matchGroup;if(me&&N._categories.length===0){for(var be in me)if(be!==R){var _e=P[x.id2name(be)];de=de.concat(_e._traceIndices)}}var we=[[0,{}],[0,{}]],Ce=[];for(ce=0;ce<de.length;ce++){var Se=ae[de[ce]];if(A in Se){var Pe=Se[A],Ne=Se._length||n.minRowLength(Pe);if(i(Pe[0])&&i(Pe[1]))for(ue=0;ue<Ne;ue++){var Oe=Pe[0][ue],pe=Pe[1][ue];M(Oe)&&M(pe)&&(Ce.push([Oe,pe]),Oe in we[0][1]||(we[0][1][Oe]=we[0][0]++),pe in we[1][1]||(we[1][1][pe]=we[1][0]++))}}}for(Ce.sort(function(fe,xe){var ze=we[0][1],Le=ze[fe[0]]-ze[xe[0]];if(Le)return Le;var Ue=we[1][1];return Ue[fe[1]]-Ue[xe[1]]}),ce=0;ce<Ce.length;ce++)W(Ce[ce])}),N.fraction2r=function(ae){var ce=N.r2l(N.range[0]),ue=N.r2l(N.range[1]);return N.l2r(ce+ae*(ue-ce))},N.r2fraction=function(ae){var ce=N.r2l(N.range[0]),ue=N.r2l(N.range[1]);return(N.r2l(ae)-ce)/(ue-ce)},N.limitRange=function(ae){var ce=N.minallowed,ue=N.maxallowed;if(ce!==void 0||ue!==void 0){ae||(ae="range");var de=n.nestedProperty(N,ae).get(),me=n.simpleMap(de,N.r2l),be=me[1]<me[0];be&&me.reverse();var _e=n.simpleMap([ce,ue],N.r2l);if(ce!==void 0&&me[0]<_e[0]&&(de[be?1:0]=ce),ue!==void 0&&me[1]>_e[1]&&(de[be?0:1]=ue),de[0]===de[1]){var we=N.l2r(ce),Ce=N.l2r(ue);if(ce!==void 0){var Se=we+1;ue!==void 0&&(Se=Math.min(Se,Ce)),de[be?1:0]=Se}if(ue!==void 0){var Pe=Ce+1;ce!==void 0&&(Pe=Math.max(Pe,we)),de[be?0:1]=Pe}}}},N.cleanRange=function(ae,ce){N._cleanRange(ae,ce),N.limitRange(ae)},N._cleanRange=function(ae,ce){ce||(ce={}),ae||(ae="range");var ue,de,me=n.nestedProperty(N,ae).get();if(de=(de=N.type==="date"?n.dfltRange(N.calendar):A==="y"?_.DFLTRANGEY:N._name==="realaxis"?[0,1]:ce.dfltRange||_.DFLTRANGEX).slice(),N.rangemode!=="tozero"&&N.rangemode!=="nonnegative"||(de[0]=0),me&&me.length===2){var be=me[0]===null,_e=me[1]===null;for(N.type!=="date"||N.autorange||(me[0]=n.cleanDate(me[0],u,N.calendar),me[1]=n.cleanDate(me[1],u,N.calendar)),ue=0;ue<2;ue++)if(N.type==="date"){if(!n.isDateTime(me[ue],N.calendar)){N[ae]=de;break}if(N.r2l(me[0])===N.r2l(me[1])){var we=n.constrain(N.r2l(me[0]),n.MIN_MS+1e3,n.MAX_MS-1e3);me[0]=N.l2r(we-1e3),me[1]=N.l2r(we+1e3);break}}else{if(!b(me[ue])){if(be||_e||!b(me[1-ue])){N[ae]=de;break}me[ue]=me[1-ue]*(ue?10:.1)}if(me[ue]<-l?me[ue]=-l:me[ue]>l&&(me[ue]=l),me[0]===me[1]){var Ce=Math.max(1,Math.abs(1e-6*me[0]));me[0]-=Ce,me[1]+=Ce}}}else n.nestedProperty(N,ae).set(de)},N.setScale=function(ae){var ce=P._size;if(N.overlaying){var ue=x.getFromId({_fullLayout:P},N.overlaying);N.domain=ue.domain}var de=ae&&N._r?"_r":"range",me=N.calendar;N.cleanRange(de);var be,_e,we=N.r2l(N[de][0],me),Ce=N.r2l(N[de][1],me),Se=A==="y";if(Se?(N._offset=ce.t+(1-N.domain[1])*ce.h,N._length=ce.h*(N.domain[1]-N.domain[0]),N._m=N._length/(we-Ce),N._b=-N._m*Ce):(N._offset=ce.l+N.domain[0]*ce.w,N._length=ce.w*(N.domain[1]-N.domain[0]),N._m=N._length/(Ce-we),N._b=-N._m*we),N._rangebreaks=[],N._lBreaks=0,N._m2=0,N._B=[],N.rangebreaks&&(N._rangebreaks=N.locateBreaks(Math.min(we,Ce),Math.max(we,Ce)),N._rangebreaks.length)){for(be=0;be<N._rangebreaks.length;be++)_e=N._rangebreaks[be],N._lBreaks+=Math.abs(_e.max-_e.min);var Pe=Se;we>Ce&&(Pe=!Pe),Pe&&N._rangebreaks.reverse();var Ne=Pe?-1:1;for(N._m2=Ne*N._length/(Math.abs(Ce-we)-N._lBreaks),N._B.push(-N._m2*(Se?Ce:we)),be=0;be<N._rangebreaks.length;be++)_e=N._rangebreaks[be],N._B.push(N._B[N._B.length-1]-Ne*N._m2*(_e.max-_e.min));for(be=0;be<N._rangebreaks.length;be++)(_e=N._rangebreaks[be]).pmin=re(_e.min),_e.pmax=re(_e.max)}if(!isFinite(N._m)||!isFinite(N._b)||N._length<0)throw P._replotting=!1,new Error("Something went wrong with axis scaling")},N.maskBreaks=function(ae){var ce,ue,de,me,be,_e=N.rangebreaks||[];_e._cachedPatterns||(_e._cachedPatterns=_e.map(function(Oe){return Oe.enabled&&Oe.bounds?n.simpleMap(Oe.bounds,Oe.pattern?c:N.d2c):null})),_e._cachedValues||(_e._cachedValues=_e.map(function(Oe){return Oe.enabled&&Oe.values?n.simpleMap(Oe.values,N.d2c).sort(n.sorterAsc):null}));for(var we=0;we<_e.length;we++){var Ce=_e[we];if(Ce.enabled){if(Ce.bounds){var Se=Ce.pattern;switch(ue=(ce=_e._cachedPatterns[we])[0],de=ce[1],Se){case O:me=(be=new Date(ae)).getUTCDay(),ue>de&&(de+=7,me<ue&&(me+=7));break;case S:me=(be=new Date(ae)).getUTCHours()+(be.getUTCMinutes()/60+be.getUTCSeconds()/3600+be.getUTCMilliseconds()/36e5),ue>de&&(de+=24,me<ue&&(me+=24));break;case"":me=ae}if(me>=ue&&me<de)return u}else for(var Pe=_e._cachedValues[we],Ne=0;Ne<Pe.length;Ne++)if(de=(ue=Pe[Ne])+Ce.dvalue,ae>=ue&&ae<de)return u}}return ae},N.locateBreaks=function(ae,ce){var ue,de,me,be,_e=[];if(!N.rangebreaks)return _e;var we=N.rangebreaks.slice().sort(function(Ue,Re){return Ue.pattern===O&&Re.pattern===S?-1:Re.pattern===O&&Ue.pattern===S?1:0}),Ce=function(Ue,Re){if((Ue=n.constrain(Ue,ae,ce))!==(Re=n.constrain(Re,ae,ce))){for(var Fe=!0,ve=0;ve<_e.length;ve++){var ke=_e[ve];Ue<ke.max&&Re>=ke.min&&(Ue<ke.min&&(ke.min=Ue),Re>ke.max&&(ke.max=Re),Fe=!1)}Fe&&_e.push({min:Ue,max:Re})}};for(ue=0;ue<we.length;ue++){var Se=we[ue];if(Se.enabled)if(Se.bounds){var Pe=ae,Ne=ce;Se.pattern&&(Pe=Math.floor(Pe)),me=(de=n.simpleMap(Se.bounds,Se.pattern?c:N.r2l))[0],be=de[1];var Oe,pe,fe=new Date(Pe);switch(Se.pattern){case O:pe=g,Oe=(be-me+(be<me?7:0))*f,Pe+=me*f-(fe.getUTCDay()*f+fe.getUTCHours()*C+fe.getUTCMinutes()*y+fe.getUTCSeconds()*m+fe.getUTCMilliseconds());break;case S:pe=f,Oe=(be-me+(be<me?24:0))*C,Pe+=me*C-(fe.getUTCHours()*C+fe.getUTCMinutes()*y+fe.getUTCSeconds()*m+fe.getUTCMilliseconds());break;default:Pe=Math.min(de[0],de[1]),Oe=pe=(Ne=Math.max(de[0],de[1]))-Pe}for(var xe=Pe;xe<Ne;xe+=pe)Ce(xe,xe+Oe)}else for(var ze=n.simpleMap(Se.values,N.d2c),Le=0;Le<ze.length;Le++)Ce(me=ze[Le],be=me+Se.dvalue)}return _e.sort(function(Ue,Re){return Ue.min-Re.min}),_e},N.makeCalcdata=function(ae,ce,ue){var de,me,be,_e,we=N.type,Ce=we==="date"&&ae[ce+"calendar"];if(ce in ae){if(de=ae[ce],_e=ae._length||n.minRowLength(de),n.isTypedArray(de)&&(we==="linear"||we==="log")){if(_e===de.length)return de;if(de.subarray)return de.subarray(0,_e)}if(we==="multicategory")return function(Ne,Oe){for(var pe=new Array(Oe),fe=0;fe<Oe;fe++){var xe=(Ne[0]||[])[fe],ze=(Ne[1]||[])[fe];pe[fe]=Y([xe,ze])}return pe}(de,_e);for(me=new Array(_e),be=0;be<_e;be++)me[be]=N.d2c(de[be],0,Ce,ue)}else{var Se=ce+"0"in ae?N.d2c(ae[ce+"0"],0,Ce):0,Pe=ae["d"+ce]?Number(ae["d"+ce]):1;for(de=ae[{x:"y",y:"x"}[ce]],_e=ae._length||de.length,me=new Array(_e),be=0;be<_e;be++)me[be]=Se+be*Pe}if(N.rangebreaks)for(be=0;be<_e;be++)me[be]=N.maskBreaks(me[be]);return me},N.isValidRange=function(ae,ce){return Array.isArray(ae)&&ae.length===2&&(ce&&ae[0]===null||b(N.r2l(ae[0])))&&(ce&&ae[1]===null||b(N.r2l(ae[1])))},N.getAutorangeDflt=function(ae,ce){var ue=!N.isValidRange(ae,"nullOk");return ue&&ce&&ce.reverseDflt?ue="reversed":ae&&(ae[0]===null&&ae[1]===null?ue=!0:ae[0]===null&&ae[1]!==null?ue="min":ae[0]!==null&&ae[1]===null&&(ue="max")),ue},N.isReversed=function(){var ae=N.autorange;return ae==="reversed"||ae==="min reversed"||ae==="max reversed"},N.isPtWithinRange=function(ae,ce){var ue=N.c2l(ae[A],null,ce),de=N.r2l(N.range[0]),me=N.r2l(N.range[1]);return de<me?de<=ue&&ue<=me:me<=ue&&ue<=de},N._emptyCategories=function(){N._categories=[],N._categoriesMap={}},N.clearCalc=function(){var ae=N._matchGroup;if(ae){var ce=null,ue=null;for(var de in ae){var me=P[x.id2name(de)];if(me._categories){ce=me._categories,ue=me._categoriesMap;break}}ce&&ue?(N._categories=ce,N._categoriesMap=ue):N._emptyCategories()}else N._emptyCategories();if(N._initialCategories)for(var be=0;be<N._initialCategories.length;be++)W(N._initialCategories[be])},N.sortByInitialCategories=function(){var ae=[];if(N._emptyCategories(),N._initialCategories)for(var ce=0;ce<N._initialCategories.length;ce++)W(N._initialCategories[ce]);ae=ae.concat(N._traceIndices);var ue=N._matchGroup;for(var de in ue)if(R!==de){var me=P[x.id2name(de)];me._categories=N._categories,me._categoriesMap=N._categoriesMap,ae=ae.concat(me._traceIndices)}return ae};var te=P._d3locale;N.type==="date"&&(N._dateFormat=te?te.timeFormat:v,N._extraFormat=P._extraFormat),N._separators=P.separators,N._numFormat=te?te.numberFormat:w,delete N._minDtick,delete N._forceTick0}},85024:function(L){L.exports=function(T){var e=["showexponent","showtickprefix","showticksuffix"].filter(function(k){return T[k]!==void 0});if(e.every(function(k){return T[k]===T[e[0]]})||e.length===1)return T[e[0]]}},95936:function(L,T,e){var k=e(3400),v=e(76308).contrast,n=e(94724),w=e(85024),b=e(51272);function c(a,t){function o(i,s){return k.coerce(a,t,n.tickformatstops,i,s)}o("enabled")&&(o("dtickrange"),o("value"))}L.exports=function(a,t,o,i,s){s||(s={});var l=o("labelalias");k.isPlainObject(l)||delete t.labelalias;var u=w(a);if(o("showticklabels")){var d=s.font||{},g=t.color,f=(t.ticklabelposition||"").indexOf("inside")!==-1?v(s.bgColor):g&&g!==n.color.dflt?g:d.color;if(k.coerceFont(o,"tickfont",{family:d.family,size:d.size,color:f}),s.noTicklabelstep||i==="multicategory"||i==="log"||o("ticklabelstep"),!s.noAng){var C=o("tickangle");s.noAutotickangles||C!=="auto"||o("autotickangles")}if(i!=="category"){var y=o("tickformat");b(a,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:c}),t.tickformatstops.length||delete t.tickformatstops,s.noExp||y||i==="date"||(o("showexponent",u),o("exponentformat"),o("minexponent"),o("separatethousands"))}}}},25404:function(L,T,e){var k=e(3400),v=e(94724);L.exports=function(n,w,b,c){var a=c.isMinor,t=a?n.minor||{}:n,o=a?w.minor:w,i=a?v.minor:v,s=a?"minor.":"",l=k.coerce2(t,o,i,"ticklen",a?.6*(w.ticklen||5):void 0),u=k.coerce2(t,o,i,"tickwidth",a?w.tickwidth||1:void 0),d=k.coerce2(t,o,i,"tickcolor",(a?w.tickcolor:void 0)||o.color);b(s+"ticks",!a&&c.outerTicks||l||u||d?"outside":"")||(delete o.ticklen,delete o.tickwidth,delete o.tickcolor)}},26332:function(L,T,e){var k=e(98728),v=e(3400).isArrayOrTypedArray,n=e(38116).isTypedArraySpec,w=e(38116).decodeTypedArraySpec;L.exports=function(b,c,a,t,o){o||(o={});var i=o.isMinor,s=i?b.minor||{}:b,l=i?c.minor:c,u=i?"minor.":"";function d(x){var _=s[x];return n(_)&&(_=w(_)),_!==void 0?_:(l._template||{})[x]}var g=d("tick0"),f=d("dtick"),C=d("tickvals"),y=a(u+"tickmode",v(C)?"array":f?"linear":"auto");if(y==="auto"||y==="sync")a(u+"nticks");else if(y==="linear"){var m=l.dtick=k.dtick(f,t);l.tick0=k.tick0(g,t,c.calendar,m)}else t!=="multicategory"&&(a(u+"tickvals")===void 0?l.tickmode="auto":i||a("ticktext"))}},73736:function(L,T,e){var k=e(33428),v=e(24040),n=e(3400),w=e(43616),b=e(54460);L.exports=function(c,a,t,o){var i=c._fullLayout;if(a.length!==0){var s,l,u,d;o&&(s=o());var g=k.ease(t.easing);return c._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(d),d=null,function(){for(var y={},m=0;m<a.length;m++){var x=a[m],_=x.plotinfo.xaxis,S=x.plotinfo.yaxis;x.xr0&&(y[_._name+".range"]=x.xr0.slice()),x.yr0&&(y[S._name+".range"]=x.yr0.slice())}return v.call("relayout",c,y).then(function(){for(var O=0;O<a.length;O++)f(a[O].plotinfo)})}()}),l=Date.now(),d=window.requestAnimationFrame(function y(){u=Date.now();for(var m=Math.min(1,(u-l)/t.duration),x=g(m),_=0;_<a.length;_++)C(a[_],x);u-l>t.duration?(function(){for(var S={},O=0;O<a.length;O++){var h=a[O],M=h.plotinfo.xaxis,N=h.plotinfo.yaxis;h.xr1&&(S[M._name+".range"]=h.xr1.slice()),h.yr1&&(S[N._name+".range"]=h.yr1.slice())}s&&s(),v.call("relayout",c,S).then(function(){for(var P=0;P<a.length;P++)f(a[P].plotinfo)})}(),d=window.cancelAnimationFrame(y)):d=window.requestAnimationFrame(y)}),Promise.resolve()}function f(y){var m=y.xaxis,x=y.yaxis;i._defs.select("#"+y.clipId+"> rect").call(w.setTranslate,0,0).call(w.setScale,1,1),y.plot.call(w.setTranslate,m._offset,x._offset).call(w.setScale,1,1);var _=y.plot.selectAll(".scatterlayer .trace");_.selectAll(".point").call(w.setPointGroupScale,1,1),_.selectAll(".textpoint").call(w.setTextPointsScale,1,1),_.call(w.hideOutsideRangePoints,y)}function C(y,m){var x=y.plotinfo,_=x.xaxis,S=x.yaxis,O=_._length,h=S._length,M=!!y.xr1,N=!!y.yr1,P=[];if(M){var R=n.simpleMap(y.xr0,_.r2l),A=n.simpleMap(y.xr1,_.r2l),q=R[1]-R[0],j=A[1]-A[0];P[0]=(R[0]*(1-m)+m*A[0]-R[0])/(R[1]-R[0])*O,P[2]=O*(1-m+m*j/q),_.range[0]=_.l2r(R[0]*(1-m)+m*A[0]),_.range[1]=_.l2r(R[1]*(1-m)+m*A[1])}else P[0]=0,P[2]=O;if(N){var X=n.simpleMap(y.yr0,S.r2l),F=n.simpleMap(y.yr1,S.r2l),W=X[1]-X[0],Y=F[1]-F[0];P[1]=(X[1]*(1-m)+m*F[1]-X[1])/(X[0]-X[1])*h,P[3]=h*(1-m+m*Y/W),S.range[0]=_.l2r(X[0]*(1-m)+m*F[0]),S.range[1]=S.l2r(X[1]*(1-m)+m*F[1])}else P[1]=0,P[3]=h;b.drawOne(c,_,{skipTitle:!0}),b.drawOne(c,S,{skipTitle:!0}),b.redrawComponents(c,[_._id,S._id]);var B=M?O/P[2]:1,G=N?h/P[3]:1,J=M?P[0]:0,se=N?P[1]:0,re=M?P[0]/P[2]*O:0,ne=N?P[1]/P[3]*h:0,$=_._offset-re,te=S._offset-ne;x.clipRect.call(w.setTranslate,J,se).call(w.setScale,1/B,1/G),x.plot.call(w.setTranslate,$,te).call(w.setScale,B,G),w.setPointGroupScale(x.zoomScalePts,1/B,1/G),w.setTextPointsScale(x.zoomScaleTxt,1/B,1/G)}b.redrawComponents(c)}},14944:function(L,T,e){var k=e(24040).traceIs,v=e(52976);function n(b){return{v:"x",h:"y"}[b.orientation||"v"]}function w(b,c){var a=n(b),t=k(b,"box-violin"),o=k(b._fullInput||{},"candlestick");return t&&!o&&c===a&&b[a]===void 0&&b[a+"0"]===void 0}L.exports=function(b,c,a,t){a("autotypenumbers",t.autotypenumbersDflt),a("type",(t.splomStash||{}).type)==="-"&&(function(o,i){if(o.type==="-"){var s,l=o._id,u=l.charAt(0);l.indexOf("scene")!==-1&&(l=u);var d=function(S,O,h){for(var M=0;M<S.length;M++){var N=S[M];if(N.type==="splom"&&N._length>0&&(N["_"+h+"axes"]||{})[O]||(N[h+"axis"]||h)===O&&(w(N,h)||(N[h]||[]).length||N[h+"0"]))return N}}(i,l,u);if(d)if(d.type!=="histogram"||u!=={v:"y",h:"x"}[d.orientation||"v"]){var g=u+"calendar",f=d[g],C={noMultiCategory:!k(d,"cartesian")||k(d,"noMultiCategory")};if(d.type==="box"&&d._hasPreCompStats&&u==={h:"x",v:"y"}[d.orientation||"v"]&&(C.noMultiCategory=!0),C.autotypenumbers=o.autotypenumbers,w(d,u)){var y=n(d),m=[];for(s=0;s<i.length;s++){var x=i[s];k(x,"box-violin")&&(x[u+"axis"]||u)===l&&(x[y]!==void 0?m.push(x[y][0]):x.name!==void 0?m.push(x.name):m.push("text"),x[g]!==f&&(f=void 0))}o.type=v(m,f,C)}else if(d.type==="splom"){var _=d.dimensions[d._axesDim[l]];_.visible&&(o.type=v(_.values,f,C))}else o.type=v(d[u]||[d[u+"0"]],f,C)}else o.type="linear"}}(c,t.data),c.type==="-"?c.type="linear":b.type=c.type)}},62460:function(L,T,e){var k=e(24040),v=e(3400);function n(a,t,o){var i,s,l,u=!1;if(t.type==="data")i=a._fullData[t.traces!==null?t.traces[0]:0];else{if(t.type!=="layout")return!1;i=a._fullLayout}return s=v.nestedProperty(i,t.prop).get(),(l=o[t.type]=o[t.type]||{}).hasOwnProperty(t.prop)&&l[t.prop]!==s&&(u=!0),l[t.prop]=s,{changed:u,value:s}}function w(a,t){var o=[],i=t[0],s={};if(typeof i=="string")s[i]=t[1];else{if(!v.isPlainObject(i))return o;s=i}return c(s,function(l,u,d){o.push({type:"layout",prop:l,value:d})},"",0),o}function b(a,t){var o,i,s,l,u=[];if(i=t[0],s=t[1],o=t[2],l={},typeof i=="string")l[i]=s;else{if(!v.isPlainObject(i))return u;l=i,o===void 0&&(o=s)}return o===void 0&&(o=null),c(l,function(d,g,f){var C,y;if(Array.isArray(f)){y=f.slice();var m=Math.min(y.length,a.data.length);o&&(m=Math.min(m,o.length)),C=[];for(var x=0;x<m;x++)C[x]=o?o[x]:x}else y=f,C=o?o.slice():null;if(C===null)Array.isArray(y)&&(y=y[0]);else if(Array.isArray(C)){if(!Array.isArray(y)){var _=y;y=[];for(var S=0;S<C.length;S++)y[S]=_}y.length=Math.min(C.length,y.length)}u.push({type:"data",prop:d,traces:C,value:y})},"",0),u}function c(a,t,o,i){Object.keys(a).forEach(function(s){var l=a[s];if(s[0]!=="_"){var u=o+(i>0?".":"")+s;v.isPlainObject(l)?c(l,t,u,i+1):t(u,s,l)}})}T.manageCommandObserver=function(a,t,o,i){var s={},l=!0;t&&t._commandObserver&&(s=t._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var u=T.hasSimpleAPICommandBindings(a,o,s.lookupTable);if(t&&t._commandObserver){if(u)return s;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,s}if(u){n(a,u,s.cache),s.check=function(){if(l){var f=n(a,u,s.cache);return f.changed&&i&&s.lookupTable[f.value]!==void 0&&(s.disable(),Promise.resolve(i({value:f.value,type:u.type,prop:u.prop,traces:u.traces,index:s.lookupTable[f.value]})).then(s.enable,s.enable)),f.changed}};for(var d=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],g=0;g<d.length;g++)a._internalOn(d[g],s.check);s.remove=function(){for(var f=0;f<d.length;f++)a._removeInternalListener(d[f],s.check)}}else v.log("Unable to automatically bind plot updates to API command"),s.lookupTable={},s.remove=function(){};return s.disable=function(){l=!1},s.enable=function(){l=!0},t&&(t._commandObserver=s),s},T.hasSimpleAPICommandBindings=function(a,t,o){var i,s,l=t.length;for(i=0;i<l;i++){var u,d=t[i],g=d.method,f=d.args;if(Array.isArray(f)||(f=[]),!g)return!1;var C=T.computeAPICommandBindings(a,g,f);if(C.length!==1)return!1;if(s){if((u=C[0]).type!==s.type||u.prop!==s.prop)return!1;if(Array.isArray(s.traces)){if(!Array.isArray(u.traces))return!1;u.traces.sort();for(var y=0;y<s.traces.length;y++)if(s.traces[y]!==u.traces[y])return!1}else if(u.prop!==s.prop)return!1}else s=C[0],Array.isArray(s.traces)&&s.traces.sort();var m=(u=C[0]).value;if(Array.isArray(m)){if(m.length!==1)return!1;m=m[0]}o&&(o[m]=i)}return s},T.executeAPICommand=function(a,t,o){if(t==="skip")return Promise.resolve();var i=k.apiMethodRegistry[t],s=[a];Array.isArray(o)||(o=[]);for(var l=0;l<o.length;l++)s.push(o[l]);return i.apply(null,s).catch(function(u){return v.warn("API call to Plotly."+t+" rejected.",u),Promise.reject(u)})},T.computeAPICommandBindings=function(a,t,o){var i;switch(Array.isArray(o)||(o=[]),t){case"restyle":i=b(a,o);break;case"relayout":i=w(0,o);break;case"update":i=b(a,[o[0],o[2]]).concat(w(0,[o[1]]));break;case"animate":i=function(s,l){return Array.isArray(l[0])&&l[0].length===1&&["string","number"].indexOf(typeof l[0][0])!==-1?[{type:"layout",prop:"_currentFrame",value:l[0][0].toString()}]:[]}(0,o);break;default:i=[]}return i}},86968:function(L,T,e){var k=e(92880).extendFlat;T.u=function(v,n){n=n||{};var w={valType:"info_array",editType:(v=v||{}).editType,items:[{valType:"number",min:0,max:1,editType:v.editType},{valType:"number",min:0,max:1,editType:v.editType}],dflt:[0,1]},b=(v.name&&v.name,v.trace,n.description&&n.description,{x:k({},w,{}),y:k({},w,{}),editType:v.editType});return v.noGridCell||(b.row={valType:"integer",min:0,dflt:0,editType:v.editType},b.column={valType:"integer",min:0,dflt:0,editType:v.editType}),b},T.Q=function(v,n,w,b){var c=b&&b.x||[0,1],a=b&&b.y||[0,1],t=n.grid;if(t){var o=w("domain.column");o!==void 0&&(o<t.columns?c=t._domains.x[o]:delete v.domain.column);var i=w("domain.row");i!==void 0&&(i<t.rows?a=t._domains.y[i]:delete v.domain.row)}var s=w("domain.x",c),l=w("domain.y",a);s[0]<s[1]||(v.domain.x=c.slice()),l[0]<l[1]||(v.domain.y=a.slice())}},25376:function(L){L.exports=function(T){var e=T.editType,k=T.colorEditType;k===void 0&&(k=e);var v={family:{valType:"string",noBlank:!0,strict:!0,editType:e},size:{valType:"number",min:1,editType:e},color:{valType:"color",editType:k},editType:e};return T.autoSize&&(v.size.dflt="auto"),T.autoColor&&(v.color.dflt="auto"),T.arrayOk&&(v.family.arrayOk=!0,v.size.arrayOk=!0,v.color.arrayOk=!0),v}},16672:function(L){L.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}},79552:function(L,T){T.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"},T.axesNames=["lonaxis","lataxis"],T.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},T.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180},T.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]}},T.clipPad=.001,T.precision=.1,T.landColor="#F0DC82",T.waterColor="#3399FF",T.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},T.sphereSVG={type:"Sphere"},T.fillLayers={ocean:1,land:1,lakes:1},T.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},T.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],T.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"],T.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}},43520:function(L,T,e){var k=e(33428),v=e(83356),n=v.geoPath,w=v.geoDistance,b=e(87108),c=e(24040),a=e(3400),t=a.strTranslate,o=e(76308),i=e(43616),s=e(93024),l=e(7316),u=e(54460),d=e(19280).getAutoRange,g=e(86476),f=e(22676).prepSelect,C=e(22676).clearOutline,y=e(22676).selectOnClick,m=e(79248),x=e(79552),_=e(27144),S=e(59972),O=e(55712).NO;function h(P){this.id=P.id,this.graphDiv=P.graphDiv,this.container=P.container,this.topojsonURL=P.topojsonURL,this.isStatic=P.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 M=h.prototype;function N(P,R){var A=x.clipPad,q=P[0]+A,j=P[1]-A,X=R[0]+A,F=R[1]-A;q>0&&j<0&&(j+=360);var W=(j-q)/4;return{type:"Polygon",coordinates:[[[q,X],[q,F],[q+W,F],[q+2*W,F],[q+3*W,F],[j,F],[j,X],[j-W,X],[j-2*W,X],[j-3*W,X],[q,X]]]}}L.exports=function(P){return new h(P)},M.plot=function(P,R,A,q){var j=this;if(q)return j.update(P,R,!0);j._geoCalcData=P,j._fullLayout=R;var X=R[this.id],F=[],W=!1;for(var Y in x.layerNameToAdjective)if(Y!=="frame"&&X["show"+Y]){W=!0;break}for(var B=!1,G=0;G<P.length;G++){var J=P[0][0].trace;J._geo=j,J.locationmode&&(W=!0);var se=J.marker;if(se){var re=se.angle,ne=se.angleref;(re||ne==="north"||ne==="previous")&&(B=!0)}}if(this._hasMarkerAngles=B,W){var $=S.getTopojsonName(X);j.topojson!==null&&$===j.topojsonName||(j.topojsonName=$,PlotlyGeoAssets.topojson[j.topojsonName]===void 0&&F.push(j.fetchTopojson()))}F=F.concat(_.fetchTraceGeoData(P)),A.push(new Promise(function(te,ae){Promise.all(F).then(function(){j.topojson=PlotlyGeoAssets.topojson[j.topojsonName],j.update(P,R),te()}).catch(ae)}))},M.fetchTopojson=function(){var P=this,R=S.getTopojsonPath(P.topojsonURL,P.topojsonName);return new Promise(function(A,q){k.json(R,function(j,X){if(j)return j.status===404?q(new Error(["plotly.js could not find topojson file at",R+".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):q(new Error(["unexpected error while fetching topojson file at",R].join(" ")));PlotlyGeoAssets.topojson[P.topojsonName]=X,A()})})},M.update=function(P,R,A){var q=R[this.id];this.hasChoropleth=!1;for(var j=0;j<P.length;j++){var X=P[j],F=X[0].trace;F.type==="choropleth"&&(this.hasChoropleth=!0),F.visible===!0&&F._length>0&&F._module.calcGeoJSON(X,R)}if(!A){if(this.updateProjection(P,R))return;this.viewInitial&&this.scope===q.scope||this.saveViewInitial(q)}this.scope=q.scope,this.updateBaseLayers(R,q),this.updateDims(R,q),this.updateFx(R,q),l.generalUpdatePerTraceModule(this.graphDiv,this,P,q);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 Y=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=Y.selectAll("path"),this._render()},M.updateProjection=function(P,R){var A=this.graphDiv,q=R[this.id],j=R._size,X=q.domain,F=q.projection,W=q.lonaxis,Y=q.lataxis,B=W._ax,G=Y._ax,J=this.projection=function(fe){var xe=fe.projection,ze=xe.type,Le=x.projNames[ze];Le="geo"+a.titleCase(Le);for(var Ue=(v[Le]||b[Le])(),Re=fe._isSatellite?180*Math.acos(1/xe.distance)/Math.PI:fe._isClipped?x.lonaxisSpan[ze]/2:null,Fe=["center","rotate","parallels","clipExtent"],ve=function(je){return je?Ue:[]},ke=0;ke<Fe.length;ke++){var Ee=Fe[ke];typeof Ue[Ee]!="function"&&(Ue[Ee]=ve)}return Ue.isLonLatOverEdges=function(je){if(Ue(je)===null)return!0;if(Re){var Be=Ue.rotate();return w(je,[-Be[0],-Be[1]])>Re*Math.PI/180}return!1},Ue.getPath=function(){return n().projection(Ue)},Ue.getBounds=function(je){return Ue.getPath().bounds(je)},Ue.precision(x.precision),fe._isSatellite&&Ue.tilt(xe.tilt).distance(xe.distance),Re&&Ue.clipAngle(Re-x.clipPad),Ue}(q),se=[[j.l+j.w*X.x[0],j.t+j.h*(1-X.y[1])],[j.l+j.w*X.x[1],j.t+j.h*(1-X.y[0])]],re=q.center||{},ne=F.rotation||{},$=W.range||[],te=Y.range||[];if(q.fitbounds){B._length=se[1][0]-se[0][0],G._length=se[1][1]-se[0][1],B.range=d(A,B),G.range=d(A,G);var ae=(B.range[0]+B.range[1])/2,ce=(G.range[0]+G.range[1])/2;if(q._isScoped)re={lon:ae,lat:ce};else if(q._isClipped){re={lon:ae,lat:ce},ne={lon:ae,lat:ce,roll:ne.roll};var ue=F.type,de=x.lonaxisSpan[ue]/2||180,me=x.lataxisSpan[ue]/2||90;$=[ae-de,ae+de],te=[ce-me,ce+me]}else re={lon:ae,lat:ce},ne={lon:ae,lat:ne.lat,roll:ne.roll}}J.center([re.lon-ne.lon,re.lat-ne.lat]).rotate([-ne.lon,-ne.lat,ne.roll]).parallels(F.parallels);var be=N($,te);J.fitExtent(se,be);var _e=this.bounds=J.getBounds(be),we=this.fitScale=J.scale(),Ce=J.translate();if(q.fitbounds){var Se=J.getBounds(N(B.range,G.range)),Pe=Math.min((_e[1][0]-_e[0][0])/(Se[1][0]-Se[0][0]),(_e[1][1]-_e[0][1])/(Se[1][1]-Se[0][1]));isFinite(Pe)?J.scale(Pe*we):a.warn("Something went wrong during"+this.id+"fitbounds computations.")}else J.scale(F.scale*we);var Ne=this.midPt=[(_e[0][0]+_e[1][0])/2,(_e[0][1]+_e[1][1])/2];if(J.translate([Ce[0]+(Ne[0]-Ce[0]),Ce[1]+(Ne[1]-Ce[1])]).clipExtent(_e),q._isAlbersUsa){var Oe=J([re.lon,re.lat]),pe=J.translate();J.translate([pe[0]-(Oe[0]-pe[0]),pe[1]-(Oe[1]-pe[1])])}},M.updateBaseLayers=function(P,R){var A=this,q=A.topojson,j=A.layers,X=A.basePaths;function F(J){return J==="lonaxis"||J==="lataxis"}function W(J){return!!x.lineLayers[J]}function Y(J){return!!x.fillLayers[J]}var B=(this.hasChoropleth?x.layersForChoropleth:x.layers).filter(function(J){return W(J)||Y(J)?R["show"+J]:!F(J)||R[J].showgrid}),G=A.framework.selectAll(".layer").data(B,String);G.exit().each(function(J){delete j[J],delete X[J],k.select(this).remove()}),G.enter().append("g").attr("class",function(J){return"layer "+J}).each(function(J){var se=j[J]=k.select(this);J==="bg"?A.bgRect=se.append("rect").style("pointer-events","all"):F(J)?X[J]=se.append("path").style("fill","none"):J==="backplot"?se.append("g").classed("choroplethlayer",!0):J==="frontplot"?se.append("g").classed("scatterlayer",!0):W(J)?X[J]=se.append("path").style("fill","none").style("stroke-miterlimit",2):Y(J)&&(X[J]=se.append("path").style("stroke","none"))}),G.order(),G.each(function(J){var se=X[J],re=x.layerNameToAdjective[J];J==="frame"?se.datum(x.sphereSVG):W(J)||Y(J)?se.datum(O(q,q.objects[J])):F(J)&&se.datum(function(ne,$,te){var ae,ce,ue,de=$[ne],me=x.scopeDefaults[$.scope];ne==="lonaxis"?(ae=me.lonaxisRange,ce=me.lataxisRange,ue=function(pe,fe){return[pe,fe]}):ne==="lataxis"&&(ae=me.lataxisRange,ce=me.lonaxisRange,ue=function(pe,fe){return[fe,pe]});var be={type:"linear",range:[ae[0],ae[1]-1e-6],tick0:de.tick0,dtick:de.dtick};u.setConvert(be,te);var _e=u.calcTicks(be);$.isScoped||ne!=="lonaxis"||_e.pop();for(var we=_e.length,Ce=new Array(we),Se=0;Se<we;Se++)for(var Pe=_e[Se].x,Ne=Ce[Se]=[],Oe=ce[0];Oe<ce[1]+2.5;Oe+=2.5)Ne.push(ue(Pe,Oe));return{type:"MultiLineString",coordinates:Ce}}(J,R,P)).call(o.stroke,R[J].gridcolor).call(i.dashLine,R[J].griddash,R[J].gridwidth),W(J)?se.call(o.stroke,R[re+"color"]).call(i.dashLine,"",R[re+"width"]):Y(J)&&se.call(o.fill,R[re+"color"])})},M.updateDims=function(P,R){var A=this.bounds,q=(R.framewidth||0)/2,j=A[0][0]-q,X=A[0][1]-q,F=A[1][0]-j+q,W=A[1][1]-X+q;i.setRect(this.clipRect,j,X,F,W),this.bgRect.call(i.setRect,j,X,F,W).call(o.fill,R.bgcolor),this.xaxis._offset=j,this.xaxis._length=F,this.yaxis._offset=X,this.yaxis._length=W},M.updateFx=function(P,R){var A=this,q=A.graphDiv,j=A.bgRect,X=P.dragmode,F=P.clickmode;if(!A.isStatic){var W={element:A.bgRect.node(),gd:q,plotinfo:{id:A.id,xaxis:A.xaxis,yaxis:A.yaxis,fillRangeItems:function(B,G){G.isRect?(B.range={})[A.id]=[Y([G.xmin,G.ymin]),Y([G.xmax,G.ymax])]:(B.lassoPoints={})[A.id]=G.map(Y)}},xaxes:[A.xaxis],yaxes:[A.yaxis],subplot:A.id,clickFn:function(B){B===2&&C(q)}};X==="pan"?(j.node().onmousedown=null,j.call(m(A,R)),j.on("dblclick.zoom",function(){var B=A.viewInitial,G={};for(var J in B)G[A.id+"."+J]=B[J];c.call("_guiRelayout",q,G),q.emit("plotly_doubleclick",null)}),q._context._scrollZoom.geo||j.on("wheel.zoom",null)):X!=="select"&&X!=="lasso"||(j.on(".zoom",null),W.prepFn=function(B,G,J){f(B,G,J,W,X)},g.init(W)),j.on("mousemove",function(){var B=A.projection.invert(a.getPositionFromD3Event());if(!B)return g.unhover(q,k.event);A.xaxis.p2c=function(){return B[0]},A.yaxis.p2c=function(){return B[1]},s.hover(q,k.event,A.id)}),j.on("mouseout",function(){q._dragging||g.unhover(q,k.event)}),j.on("click",function(){X!=="select"&&X!=="lasso"&&(F.indexOf("select")>-1&&y(k.event,q,[A.xaxis],[A.yaxis],A.id,W),F.indexOf("event")>-1&&s.click(q,k.event))})}function Y(B){return A.projection.invert([B[0]+A.xaxis._offset,B[1]+A.yaxis._offset])}},M.makeFramework=function(){var P=this,R=P.graphDiv,A=R._fullLayout,q="clip"+A._uid+P.id;P.clipDef=A._clips.append("clipPath").attr("id",q),P.clipRect=P.clipDef.append("rect"),P.framework=k.select(P.container).append("g").attr("class","geo "+P.id).call(i.setClipUrl,q,R),P.project=function(j){var X=P.projection(j);return X?[X[0]-P.xaxis._offset,X[1]-P.yaxis._offset]:[null,null]},P.xaxis={_id:"x",c2p:function(j){return P.project(j)[0]}},P.yaxis={_id:"y",c2p:function(j){return P.project(j)[1]}},P.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},u.setConvert(P.mockAxis,A)},M.saveViewInitial=function(P){var R,A=P.center||{},q=P.projection,j=q.rotation||{};this.viewInitial={fitbounds:P.fitbounds,"projection.scale":q.scale},R=P._isScoped?{"center.lon":A.lon,"center.lat":A.lat}:P._isClipped?{"projection.rotation.lon":j.lon,"projection.rotation.lat":j.lat}:{"center.lon":A.lon,"center.lat":A.lat,"projection.rotation.lon":j.lon},a.extendFlat(this.viewInitial,R)},M.render=function(P){this._hasMarkerAngles&&P?this.plot(this._geoCalcData,this._fullLayout,[],!0):this._render()},M._render=function(){var P,R=this.projection,A=R.getPath();function q(X){var F=R(X.lonlat);return F?t(F[0],F[1]):null}function j(X){return R.isLonLatOverEdges(X.lonlat)?"none":null}for(P in this.basePaths)this.basePaths[P].attr("d",A);for(P in this.dataPaths)this.dataPaths[P].attr("d",function(X){return A(X.geojson)});for(P in this.dataPoints)this.dataPoints[P].attr("display",j).attr("transform",q)}},10816:function(L,T,e){var k=e(84888).KY,v=e(3400).counterRegex,n=e(43520),w="geo",b=v(w),c={};c[w]={valType:"subplotid",dflt:w,editType:"calc"},L.exports={attr:w,name:w,idRoot:w,idRegex:b,attrRegex:b,attributes:c,layoutAttributes:e(40384),supplyLayoutDefaults:e(86920),plot:function(a){for(var t=a._fullLayout,o=a.calcdata,i=t._subplots[w],s=0;s<i.length;s++){var l=i[s],u=k(o,w,l),d=t[l]._subplot;d||(d=n({id:l,graphDiv:a,container:t._geolayer.node(),topojsonURL:a._context.topojsonURL,staticPlot:a._context.staticPlot}),t[l]._subplot=d),d.plot(u,t,a._promises)}},updateFx:function(a){for(var t=a._fullLayout,o=t._subplots[w],i=0;i<o.length;i++){var s=t[o[i]];s._subplot.updateFx(t,s)}},clean:function(a,t,o,i){for(var s=i._subplots[w]||[],l=0;l<s.length;l++){var u=s[l],d=i[u]._subplot;!t[u]&&d&&(d.framework.remove(),d.clipDef.remove())}}}},40384:function(L,T,e){var k=e(22548),v=e(86968).u,n=e(98192).u,w=e(79552),b=e(67824).overrideAll,c=e(95376),a={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:k.lightLine},gridwidth:{valType:"number",min:0,dflt:1},griddash:n};(L.exports=b({domain:v({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:c(w.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:c(w.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:k.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:w.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:w.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:w.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:w.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:k.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:k.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:k.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:k.background},lonaxis:a,lataxis:a},"plot","from-root")).uirevision={valType:"any",editType:"none"}},86920:function(L,T,e){var k=e(3400),v=e(168),n=e(84888).op,w=e(79552),b=e(40384),c=w.axesNames;function a(t,o,i,s){var l=n(s.fullData,"geo",s.id).map(function(ne){return ne._expandedIndex}),u=i("resolution"),d=i("scope"),g=w.scopeDefaults[d],f=i("projection.type",g.projType),C=o._isAlbersUsa=f==="albers usa";C&&(d=o.scope="usa");var y=o._isScoped=d!=="world",m=o._isSatellite=f==="satellite",x=o._isConic=f.indexOf("conic")!==-1||f==="albers",_=o._isClipped=!!w.lonaxisSpan[f];if(t.visible===!1){var S=k.extendDeep({},o._template);S.showcoastlines=!1,S.showcountries=!1,S.showframe=!1,S.showlakes=!1,S.showland=!1,S.showocean=!1,S.showrivers=!1,S.showsubunits=!1,S.lonaxis&&(S.lonaxis.showgrid=!1),S.lataxis&&(S.lataxis.showgrid=!1),o._template=S}for(var O=i("visible"),h=0;h<c.length;h++){var M,N=c[h],P=[30,10][h];if(y)M=g[N+"Range"];else{var R=w[N+"Span"],A=(R[f]||R["*"])/2,q=i("projection.rotation."+N.substr(0,3),g.projRotate[h]);M=[q-A,q+A]}var j=i(N+".range",M);i(N+".tick0"),i(N+".dtick",P),i(N+".showgrid",!!O&&void 0)&&(i(N+".gridcolor"),i(N+".gridwidth"),i(N+".griddash")),o[N]._ax={type:"linear",_id:N.slice(0,3),_traceIndices:l,setScale:k.identity,c2l:k.identity,r2l:k.identity,autorange:!0,range:j.slice(),_m:1,_input:{}}}var X=o.lonaxis.range,F=o.lataxis.range,W=X[0],Y=X[1];W>0&&Y<0&&(Y+=360);var B,G,J,se=(W+Y)/2;if(!C){var re=y?g.projRotate:[se,0,0];B=i("projection.rotation.lon",re[0]),i("projection.rotation.lat",re[1]),i("projection.rotation.roll",re[2]),i("showcoastlines",!y&&O)&&(i("coastlinecolor"),i("coastlinewidth")),i("showocean",!!O&&void 0)&&i("oceancolor")}C?(G=-96.6,J=38.7):(G=y?se:B,J=(F[0]+F[1])/2),i("center.lon",G),i("center.lat",J),m&&(i("projection.tilt"),i("projection.distance")),x&&i("projection.parallels",g.projParallels||[0,60]),i("projection.scale"),i("showland",!!O&&void 0)&&i("landcolor"),i("showlakes",!!O&&void 0)&&i("lakecolor"),i("showrivers",!!O&&void 0)&&(i("rivercolor"),i("riverwidth")),i("showcountries",y&&d!=="usa"&&O)&&(i("countrycolor"),i("countrywidth")),(d==="usa"||d==="north america"&&u===50)&&(i("showsubunits",O),i("subunitcolor"),i("subunitwidth")),y||i("showframe",O)&&(i("framecolor"),i("framewidth")),i("bgcolor"),i("fitbounds")&&(delete o.projection.scale,y?(delete o.center.lon,delete o.center.lat):_?(delete o.center.lon,delete o.center.lat,delete o.projection.rotation.lon,delete o.projection.rotation.lat,delete o.lonaxis.range,delete o.lataxis.range):(delete o.center.lon,delete o.center.lat,delete o.projection.rotation.lon))}L.exports=function(t,o,i){v(t,o,i,{type:"geo",attributes:b,handleDefaults:a,fullData:i,partition:"y"})}},79248:function(L,T,e){var k=e(33428),v=e(3400),n=e(24040),w=Math.PI/180,b=180/Math.PI,c={cursor:"pointer"},a={cursor:"auto"};function t(y,m){return k.behavior.zoom().translate(m.translate()).scale(m.scale())}function o(y,m,x){var _=y.id,S=y.graphDiv,O=S.layout,h=O[_],M=S._fullLayout,N=M[_],P={},R={};function A(q,j){P[_+"."+q]=v.nestedProperty(h,q).get(),n.call("_storeDirectGUIEdit",O,M._preGUI,P);var X=v.nestedProperty(N,q);X.get()!==j&&(X.set(j),v.nestedProperty(h,q).set(j),R[_+"."+q]=j)}x(A),A("projection.scale",m.scale()/y.fitScale),A("fitbounds",!1),S.emit("plotly_relayout",R)}function i(y,m){var x=t(0,m);function _(S){var O=m.invert(y.midPt);S("center.lon",O[0]),S("center.lat",O[1])}return x.on("zoomstart",function(){k.select(this).style(c)}).on("zoom",function(){m.scale(k.event.scale).translate(k.event.translate),y.render(!0);var S=m.invert(y.midPt);y.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":m.scale()/y.fitScale,"geo.center.lon":S[0],"geo.center.lat":S[1]})}).on("zoomend",function(){k.select(this).style(a),o(y,m,_)}),x}function s(y,m){var x,_,S,O,h,M,N,P,R,A=t(0,m);function q(X){return m.invert(X)}function j(X){var F=m.rotate(),W=m.invert(y.midPt);X("projection.rotation.lon",-F[0]),X("center.lon",W[0]),X("center.lat",W[1])}return A.on("zoomstart",function(){k.select(this).style(c),x=k.mouse(this),_=m.rotate(),S=m.translate(),O=_,h=q(x)}).on("zoom",function(){if(M=k.mouse(this),function(W){var Y=q(W);if(!Y)return!0;var B=m(Y);return Math.abs(B[0]-W[0])>2||Math.abs(B[1]-W[1])>2}(x))return A.scale(m.scale()),void A.translate(m.translate());m.scale(k.event.scale),m.translate([S[0],k.event.translate[1]]),h?q(M)&&(P=q(M),N=[O[0]+(P[0]-h[0]),_[1],_[2]],m.rotate(N),O=N):h=q(x=M),R=!0,y.render(!0);var X=m.rotate(),F=m.invert(y.midPt);y.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":m.scale()/y.fitScale,"geo.center.lon":F[0],"geo.center.lat":F[1],"geo.projection.rotation.lon":-X[0]})}).on("zoomend",function(){k.select(this).style(a),R&&o(y,m,j)}),A}function l(y,m){var x;m.rotate(),m.scale();var _=t(0,m),S=function(N){for(var P=0,R=arguments.length,A=[];++P<R;)A.push(arguments[P]);var q=k.dispatch.apply(null,A);return q.of=function(j,X){return function(F){var W;try{W=F.sourceEvent=k.event,F.target=N,k.event=F,q[F.type].apply(j,X)}finally{k.event=W}}},q}(_,"zoomstart","zoom","zoomend"),O=0,h=_.on;function M(N){var P=m.rotate();N("projection.rotation.lon",-P[0]),N("projection.rotation.lat",-P[1])}return _.on("zoomstart",function(){k.select(this).style(c);var N,P,R,A,q,j,X,F,W,Y,B,G=k.mouse(this),J=m.rotate(),se=J,re=m.translate(),ne=(P=.5*(N=J)[0]*w,R=.5*N[1]*w,A=.5*N[2]*w,q=Math.sin(P),j=Math.cos(P),X=Math.sin(R),F=Math.cos(R),W=Math.sin(A),[j*F*(Y=Math.cos(A))+q*X*W,q*F*Y-j*X*W,j*X*Y+q*F*W,j*F*W-q*X*Y]);x=u(m,G),h.call(_,"zoom",function(){var $,te,ae,ce,ue,de,me,be,_e,we,Ce=k.mouse(this);if(m.scale(k.event.scale),x){if(u(m,Ce)){m.rotate(J).translate(re);var Se=u(m,Ce),Pe=function(pe,fe){if(pe&&fe){var xe=function(Re,Fe){return[Re[1]*Fe[2]-Re[2]*Fe[1],Re[2]*Fe[0]-Re[0]*Fe[2],Re[0]*Fe[1]-Re[1]*Fe[0]]}(pe,fe),ze=Math.sqrt(C(xe,xe)),Le=.5*Math.acos(Math.max(-1,Math.min(1,C(pe,fe)))),Ue=Math.sin(Le)/ze;return ze&&[Math.cos(Le),xe[2]*Ue,-xe[1]*Ue,xe[0]*Ue]}}(x,Se),Ne=function(pe){return[Math.atan2(2*(pe[0]*pe[1]+pe[2]*pe[3]),1-2*(pe[1]*pe[1]+pe[2]*pe[2]))*b,Math.asin(Math.max(-1,Math.min(1,2*(pe[0]*pe[2]-pe[3]*pe[1]))))*b,Math.atan2(2*(pe[0]*pe[3]+pe[1]*pe[2]),1-2*(pe[2]*pe[2]+pe[3]*pe[3]))*b]}((ae=($=ne)[0],ce=$[1],ue=$[2],de=$[3],[ae*(me=(te=Pe)[0])-ce*(be=te[1])-ue*(_e=te[2])-de*(we=te[3]),ae*be+ce*me+ue*we-de*_e,ae*_e-ce*we+ue*me+de*be,ae*we+ce*_e-ue*be+de*me])),Oe=function(pe,fe,xe){var ze=f(fe,2,pe[0]);ze=f(ze,1,pe[1]),ze=f(ze,0,pe[2]-xe[2]);var Le,Ue,Re=fe[0],Fe=fe[1],ve=fe[2],ke=ze[0],Ee=ze[1],je=ze[2],Be=Math.atan2(Fe,Re)*b,Ie=Math.sqrt(Re*Re+Fe*Fe);Math.abs(Ee)>Ie?(Ue=(Ee>0?90:-90)-Be,Le=0):(Ue=Math.asin(Ee/Ie)*b-Be,Le=Math.sqrt(Ie*Ie-Ee*Ee));var Ze=180-Ue-2*Be,He=(Math.atan2(je,ke)-Math.atan2(ve,Le))*b,at=(Math.atan2(je,ke)-Math.atan2(ve,-Le))*b;return d(xe[0],xe[1],Ue,He)<=d(xe[0],xe[1],Ze,at)?[Ue,He,xe[2]]:[Ze,at,xe[2]]}(Ne,x,se);isFinite(Oe[0])&&isFinite(Oe[1])&&isFinite(Oe[2])||(Oe=se),m.rotate(Oe),se=Oe}}else x=u(m,G=Ce);S.of(this,arguments)({type:"zoom"})}),B=S.of(this,arguments),O++||B({type:"zoomstart"})}).on("zoomend",function(){var N;k.select(this).style(a),h.call(_,"zoom",null),N=S.of(this,arguments),--O||N({type:"zoomend"}),o(y,m,M)}).on("zoom.redraw",function(){y.render(!0);var N=m.rotate();y.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":m.scale()/y.fitScale,"geo.projection.rotation.lon":-N[0],"geo.projection.rotation.lat":-N[1]})}),k.rebind(_,S,"on")}function u(y,m){var x=y.invert(m);return x&&isFinite(x[0])&&isFinite(x[1])&&function(_){var S=_[0]*w,O=_[1]*w,h=Math.cos(O);return[h*Math.cos(S),h*Math.sin(S),Math.sin(O)]}(x)}function d(y,m,x,_){var S=g(x-y),O=g(_-m);return Math.sqrt(S*S+O*O)}function g(y){return(y%360+540)%360-180}function f(y,m,x){var _=x*w,S=y.slice(),O=m===0?1:0,h=m===2?1:2,M=Math.cos(_),N=Math.sin(_);return S[O]=y[O]*M-y[h]*N,S[h]=y[h]*M+y[O]*N,S}function C(y,m){for(var x=0,_=0,S=y.length;_<S;++_)x+=y[_]*m[_];return x}L.exports=function(y,m){var x=y.projection;return(m._isScoped?i:m._isClipped?l:s)(y,x)}},84888:function(L,T,e){var k=e(24040),v=e(33816).SUBPLOT_PATTERN;T.KY=function(n,w,b){var c=k.subplotsRegistry[w];if(!c)return[];for(var a=c.attr,t=[],o=0;o<n.length;o++){var i=n[o];i[0].trace[a]===b&&t.push(i)}return t},T._M=function(n,w){var b,c=[],a=[];if(!(b=typeof w=="string"?k.getModule(w).plot:typeof w=="function"?w:w.plot))return[c,n];for(var t=0;t<n.length;t++){var o=n[t],i=o[0].trace;i.visible===!0&&i._length!==0&&(i._module&&i._module.plot===b?c.push(o):a.push(o))}return[c,a]},T.op=function(n,w,b){if(!k.subplotsRegistry[w])return[];var c,a,t,o=k.subplotsRegistry[w].attr,i=[];if(w==="gl2d"){var s=b.match(v);a="x"+s[1],t="y"+s[2]}for(var l=0;l<n.length;l++)c=n[l],w==="gl2d"&&k.traceIs(c,"gl2d")?c[o[0]]===a&&c[o[1]]===t&&i.push(c):c[o]===b&&i.push(c);return i}},2428:function(L,T,e){var k=e(62644),v=e(97264),n=e(29128),w=e(33816),b=e(89184);function c(a,t){this.element=a,this.plot=t,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]}L.exports=function(a){var t=a.mouseContainer,o=a.glplot,i=new c(t,o);function s(){a.xaxis.autorange=!1,a.yaxis.autorange=!1}function l(u,d,g){var f,C,y=a.calcDataBox(),m=o.viewBox,x=i.lastPos[0],_=i.lastPos[1],S=w.MINDRAG*o.pixelRatio,O=w.MINZOOM*o.pixelRatio;function h(q,j,X){var F=Math.min(j,X),W=Math.max(j,X);F!==W?(y[q]=F,y[q+2]=W,i.dataBox=y,a.setRanges(y)):(a.selectBox.selectBox=[0,0,1,1],a.glplot.setDirty())}switch(d*=o.pixelRatio,g*=o.pixelRatio,g=m[3]-m[1]-g,a.fullLayout.dragmode){case"zoom":if(u){var M=d/(m[2]-m[0])*(y[2]-y[0])+y[0],N=g/(m[3]-m[1])*(y[3]-y[1])+y[1];i.boxInited||(i.boxStart[0]=M,i.boxStart[1]=N,i.dragStart[0]=d,i.dragStart[1]=g),i.boxEnd[0]=M,i.boxEnd[1]=N,i.boxInited=!0,i.boxEnabled||i.boxStart[0]===i.boxEnd[0]&&i.boxStart[1]===i.boxEnd[1]||(i.boxEnabled=!0);var P=Math.abs(i.dragStart[0]-d)<O,R=Math.abs(i.dragStart[1]-g)<O;if(!function(){for(var q=a.graphDiv._fullLayout._axisConstraintGroups,j=a.xaxis._id,X=a.yaxis._id,F=0;F<q.length;F++)if(q[F][j]!==-1){if(q[F][X]!==-1)return!0;break}return!1}()||P&&R)P&&(i.boxEnd[0]=i.boxStart[0]),R&&(i.boxEnd[1]=i.boxStart[1]);else{f=i.boxEnd[0]-i.boxStart[0],C=i.boxEnd[1]-i.boxStart[1];var A=(y[3]-y[1])/(y[2]-y[0]);Math.abs(f*A)>Math.abs(C)?(i.boxEnd[1]=i.boxStart[1]+Math.abs(f)*A*(C>=0?1:-1),i.boxEnd[1]<y[1]?(i.boxEnd[1]=y[1],i.boxEnd[0]=i.boxStart[0]+(y[1]-i.boxStart[1])/Math.abs(A)):i.boxEnd[1]>y[3]&&(i.boxEnd[1]=y[3],i.boxEnd[0]=i.boxStart[0]+(y[3]-i.boxStart[1])/Math.abs(A))):(i.boxEnd[0]=i.boxStart[0]+Math.abs(C)/A*(f>=0?1:-1),i.boxEnd[0]<y[0]?(i.boxEnd[0]=y[0],i.boxEnd[1]=i.boxStart[1]+(y[0]-i.boxStart[0])*Math.abs(A)):i.boxEnd[0]>y[2]&&(i.boxEnd[0]=y[2],i.boxEnd[1]=i.boxStart[1]+(y[2]-i.boxStart[0])*Math.abs(A)))}}else i.boxEnabled?(f=i.boxStart[0]!==i.boxEnd[0],C=i.boxStart[1]!==i.boxEnd[1],f||C?(f&&(h(0,i.boxStart[0],i.boxEnd[0]),a.xaxis.autorange=!1),C&&(h(1,i.boxStart[1],i.boxEnd[1]),a.yaxis.autorange=!1),a.relayoutCallback()):a.glplot.setDirty(),i.boxEnabled=!1,i.boxInited=!1):i.boxInited&&(i.boxInited=!1);break;case"pan":i.boxEnabled=!1,i.boxInited=!1,u?(i.panning||(i.dragStart[0]=d,i.dragStart[1]=g),Math.abs(i.dragStart[0]-d)<S&&(d=i.dragStart[0]),Math.abs(i.dragStart[1]-g)<S&&(g=i.dragStart[1]),f=(x-d)*(y[2]-y[0])/(o.viewBox[2]-o.viewBox[0]),C=(_-g)*(y[3]-y[1])/(o.viewBox[3]-o.viewBox[1]),y[0]+=f,y[2]+=f,y[1]+=C,y[3]+=C,a.setRanges(y),i.panning=!0,i.lastInputTime=Date.now(),s(),a.cameraChanged(),a.handleAnnotations()):i.panning&&(i.panning=!1,a.relayoutCallback())}i.lastPos[0]=d,i.lastPos[1]=g}return i.mouseListener=k(t,l),t.addEventListener("touchstart",function(u){var d=n(u.changedTouches[0],t);l(0,d[0],d[1]),l(1,d[0],d[1]),u.preventDefault()},!!b&&{passive:!1}),t.addEventListener("touchmove",function(u){u.preventDefault();var d=n(u.changedTouches[0],t);l(1,d[0],d[1]),u.preventDefault()},!!b&&{passive:!1}),t.addEventListener("touchend",function(u){l(0,i.lastPos[0],i.lastPos[1]),u.preventDefault()},!!b&&{passive:!1}),i.wheelListener=v(t,function(u,d){if(!a.scrollZoom)return!1;var g=a.calcDataBox(),f=o.viewBox,C=i.lastPos[0],y=i.lastPos[1],m=Math.exp(5*d/(f[3]-f[1])),x=C/(f[2]-f[0])*(g[2]-g[0])+g[0],_=y/(f[3]-f[1])*(g[3]-g[1])+g[1];return g[0]=(g[0]-x)*m+x,g[2]=(g[2]-x)*m+x,g[1]=(g[1]-_)*m+_,g[3]=(g[3]-_)*m+_,a.setRanges(g),i.lastInputTime=Date.now(),s(),a.cameraChanged(),a.handleAnnotations(),a.relayoutCallback(),!0},!0),i}},92568:function(L,T,e){var k=e(54460),v=e(43080);function n(c){this.scene=c,this.gl=c.gl,this.pixelRatio=c.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 w=n.prototype,b=["xaxis","yaxis"];w.merge=function(c){var a,t,o,i,s,l,u,d,g,f,C;for(this.titleEnable=!1,this.backgroundColor=v(c.plot_bgcolor),f=0;f<2;++f){var y=(a=b[f]).charAt(0);for(o=(t=c[this.scene[a]._name]).title.text===this.scene.fullLayout._dfltTitle[y]?"":t.title.text,C=0;C<=2;C+=2)this.labelEnable[f+C]=!1,this.labels[f+C]=o,this.labelColor[f+C]=v(t.title.font.color),this.labelFont[f+C]=t.title.font.family,this.labelSize[f+C]=t.title.font.size,this.labelPad[f+C]=this.getLabelPad(a,t),this.tickEnable[f+C]=!1,this.tickColor[f+C]=v((t.tickfont||{}).color),this.tickAngle[f+C]=t.tickangle==="auto"?0:Math.PI*-t.tickangle/180,this.tickPad[f+C]=this.getTickPad(t),this.tickMarkLength[f+C]=0,this.tickMarkWidth[f+C]=t.tickwidth||0,this.tickMarkColor[f+C]=v(t.tickcolor),this.borderLineEnable[f+C]=!1,this.borderLineColor[f+C]=v(t.linecolor),this.borderLineWidth[f+C]=t.linewidth||0;u=this.hasSharedAxis(t),s=this.hasAxisInDfltPos(a,t)&&!u,l=this.hasAxisInAltrPos(a,t)&&!u,i=t.mirror||!1,d=u?String(i).indexOf("all")!==-1:!!i,g=u?i==="allticks":String(i).indexOf("ticks")!==-1,s?this.labelEnable[f]=!0:l&&(this.labelEnable[f+2]=!0),s?this.tickEnable[f]=t.showticklabels:l&&(this.tickEnable[f+2]=t.showticklabels),(s||d)&&(this.borderLineEnable[f]=t.showline),(l||d)&&(this.borderLineEnable[f+2]=t.showline),(s||g)&&(this.tickMarkLength[f]=this.getTickMarkLength(t)),(l||g)&&(this.tickMarkLength[f+2]=this.getTickMarkLength(t)),this.gridLineEnable[f]=t.showgrid,this.gridLineColor[f]=v(t.gridcolor),this.gridLineWidth[f]=t.gridwidth,this.zeroLineEnable[f]=t.zeroline,this.zeroLineColor[f]=v(t.zerolinecolor),this.zeroLineWidth[f]=t.zerolinewidth}},w.hasSharedAxis=function(c){var a=this.scene,t=a.fullLayout._subplots.gl2d;return k.findSubplotsWithAxis(t,c).indexOf(a.id)!==0},w.hasAxisInDfltPos=function(c,a){var t=a.side;return c==="xaxis"?t==="bottom":c==="yaxis"?t==="left":void 0},w.hasAxisInAltrPos=function(c,a){var t=a.side;return c==="xaxis"?t==="top":c==="yaxis"?t==="right":void 0},w.getLabelPad=function(c,a){var t=1.5,o=a.title.font.size,i=a.showticklabels;return c==="xaxis"?a.side==="top"?o*(t+(i?1:0))-10:o*(t+(i?.5:0))-10:c==="yaxis"?a.side==="right"?10+o*(t+(i?1:.5)):10+o*(t+(i?.5:0)):void 0},w.getTickPad=function(c){return c.ticks==="outside"?10+c.ticklen:15},w.getTickMarkLength=function(c){if(!c.ticks)return 0;var a=c.ticklen;return c.ticks==="inside"?-a:a},L.exports=function(c){return new n(c)}},39952:function(L,T,e){var k=e(67824).overrideAll,v=e(17188),n=e(64859),w=e(9616),b=e(33816),c=e(57952),a=e(65460),t=e(84888).op;T.name="gl2d",T.attr=["xaxis","yaxis"],T.idRoot=["x","y"],T.idRegex=b.idRegex,T.attrRegex=b.attrRegex,T.attributes=e(26720),T.supplyLayoutDefaults=function(o,i,s){i._has("cartesian")||c.supplyLayoutDefaults(o,i,s)},T.layoutAttrOverrides=k(c.layoutAttributes,"plot","from-root"),T.baseLayoutAttrOverrides=k({plot_bgcolor:n.plot_bgcolor,hoverlabel:a.hoverlabel},"plot","nested"),T.plot=function(o){for(var i=o._fullLayout,s=o._fullData,l=i._subplots.gl2d,u=0;u<l.length;u++){var d=l[u],g=i._plots[d],f=t(s,"gl2d",d),C=g._scene2d;C===void 0&&(C=new v({id:d,graphDiv:o,container:o.querySelector(".gl-container"),staticPlot:o._context.staticPlot,plotGlPixelRatio:o._context.plotGlPixelRatio},i),g._scene2d=C),C.plot(f,o.calcdata,i,o.layout)}},T.clean=function(o,i,s,l){for(var u=l._subplots.gl2d||[],d=0;d<u.length;d++){var g=u[d],f=l._plots[g];f._scene2d&&t(o,"gl2d",g).length===0&&(f._scene2d.destroy(),delete l._plots[g])}c.clean.apply(this,arguments)},T.drawFramework=function(o){o._context.staticPlot||c.drawFramework(o)},T.toSVG=function(o){for(var i=o._fullLayout,s=i._subplots.gl2d,l=0;l<s.length;l++){var u=i._plots[s[l]]._scene2d,d=u.toImage("png");i._glimages.append("svg:image").attr({xmlns:w.svg,"xlink:href":d,x:0,y:0,width:"100%",height:"100%",preserveAspectRatio:"none"}),u.destroy()}},T.updateFx=function(o){for(var i=o._fullLayout,s=i._subplots.gl2d,l=0;l<s.length;l++)i._plots[s[l]]._scene2d.updateFx(i.dragmode)}},17188:function(L,T,e){var k,v,n=e(24040),w=e(54460),b=e(93024),c=e(67792).gl_plot2d,a=e(67792).gl_spikes2d,t=e(67792).gl_select_box,o=e(5408),i=e(92568),s=e(2428),l=e(16576),u=e(71888),d=u.enforce,g=u.clean,f=e(19280).doAutoRange,C=e(72760),y=C.drawMode,m=C.selectMode,x=["xaxis","yaxis"],_=e(33816).SUBPLOT_PATTERN;function S(h,M){this.container=h.container,this.graphDiv=h.graphDiv,this.pixelRatio=h.plotGlPixelRatio||window.devicePixelRatio,this.id=h.id,this.staticPlot=!!h.staticPlot,this.scrollZoom=this.graphDiv._context._scrollZoom.cartesian,this.fullData=null,this.updateRefs(M),this.makeFramework(),this.stopped||(this.glplotOptions=i(this),this.glplotOptions.merge(M),this.glplot=c(this.glplotOptions),this.camera=s(this),this.traces={},this.spikes=a(this.glplot),this.selectBox=t(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())}L.exports=S;var O=S.prototype;O.makeFramework=function(){if(this.staticPlot){if(!(v||(k=document.createElement("canvas"),v=o({canvas:k,preserveDrawingBuffer:!1,premultipliedAlpha:!0,antialias:!0}))))throw new Error("Error creating static canvas/context for image server");this.canvas=k,this.gl=v}else{var h=this.container.querySelector(".gl-canvas-focus"),M=o({canvas:h,preserveDrawingBuffer:!0,premultipliedAlpha:!0});if(!M)return l(this),void(this.stopped=!0);this.canvas=h,this.gl=M}var N=this.canvas;N.style.width="100%",N.style.height="100%",N.style.position="absolute",N.style.top="0px",N.style.left="0px",N.style["pointer-events"]="none",this.updateSize(N);var P=this.svgContainer=document.createElementNS("http://www.w3.org/2000/svg","svg");P.style.position="absolute",P.style.top=P.style.left="0px",P.style.width=P.style.height="100%",P.style["z-index"]=20,P.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 A=this.container;A.appendChild(P),A.appendChild(R);var q=this;R.addEventListener("mouseout",function(){q.isMouseOver=!1,q.unhover()}),R.addEventListener("mouseover",function(){q.isMouseOver=!0})},O.toImage=function(h){h||(h="png"),this.stopped=!0,this.staticPlot&&this.container.appendChild(k),this.updateSize(this.canvas);var M=this.glplot.gl,N=M.drawingBufferWidth,P=M.drawingBufferHeight;M.clearColor(1,1,1,0),M.clear(M.COLOR_BUFFER_BIT|M.DEPTH_BUFFER_BIT),this.glplot.setDirty(),this.glplot.draw(),M.bindFramebuffer(M.FRAMEBUFFER,null);var R=new Uint8Array(N*P*4);M.readPixels(0,0,N,P,M.RGBA,M.UNSIGNED_BYTE,R);for(var A=0,q=P-1;A<q;++A,--q)for(var j=0;j<N;++j)for(var X=0;X<4;++X){var F=R[4*(N*A+j)+X];R[4*(N*A+j)+X]=R[4*(N*q+j)+X],R[4*(N*q+j)+X]=F}var W=document.createElement("canvas");W.width=N,W.height=P;var Y,B=W.getContext("2d",{willReadFrequently:!0}),G=B.createImageData(N,P);switch(G.data.set(R),B.putImageData(G,0,0),h){case"jpeg":Y=W.toDataURL("image/jpeg");break;case"webp":Y=W.toDataURL("image/webp");break;default:Y=W.toDataURL("image/png")}return this.staticPlot&&this.container.removeChild(k),Y},O.updateSize=function(h){h||(h=this.canvas);var M=this.pixelRatio,N=this.fullLayout,P=N.width,R=N.height,A=0|Math.ceil(M*P),q=0|Math.ceil(M*R);return h.width===A&&h.height===q||(h.width=A,h.height=q),h},O.computeTickMarks=function(){this.xaxis.setScale(),this.yaxis.setScale();for(var h=[w.calcTicks(this.xaxis),w.calcTicks(this.yaxis)],M=0;M<2;++M)for(var N=0;N<h[M].length;++N)h[M][N].text=h[M][N].text+"";return h},O.updateRefs=function(h){this.fullLayout=h;var M=this.id.match(_),N="xaxis"+M[1],P="yaxis"+M[2];this.xaxis=this.fullLayout[N],this.yaxis=this.fullLayout[P]},O.relayoutCallback=function(){var h=this.graphDiv,M=this.xaxis,N=this.yaxis,P=h.layout,R={},A=R[M._name+".range"]=M.range.slice(),q=R[N._name+".range"]=N.range.slice();R[M._name+".autorange"]=M.autorange,R[N._name+".autorange"]=N.autorange,n.call("_storeDirectGUIEdit",h.layout,h._fullLayout._preGUI,R);var j=P[M._name];j.range=A,j.autorange=M.autorange;var X=P[N._name];X.range=q,X.autorange=N.autorange,R.lastInputTime=this.camera.lastInputTime,h.emit("plotly_relayout",R)},O.cameraChanged=function(){var h=this.camera;this.glplot.setDataBox(this.calcDataBox());var M=this.computeTickMarks();(function(N,P){for(var R=0;R<2;++R){var A=N[R],q=P[R];if(A.length!==q.length)return!0;for(var j=0;j<A.length;++j)if(A[j].x!==q[j].x)return!0}return!1})(M,this.glplotOptions.ticks)&&(this.glplotOptions.ticks=M,this.glplotOptions.dataBox=h.dataBox,this.glplot.update(this.glplotOptions),this.handleAnnotations())},O.handleAnnotations=function(){for(var h=this.graphDiv,M=this.fullLayout.annotations,N=0;N<M.length;N++){var P=M[N];P.xref===this.xaxis._id&&P.yref===this.yaxis._id&&n.getComponentMethod("annotations","drawOne")(h,N)}},O.destroy=function(){if(this.glplot){var h=this.traces;h&&Object.keys(h).map(function(M){h[M].dispose(),delete h[M]}),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}},O.plot=function(h,M,N){var P=this.glplot;this.updateRefs(N),this.xaxis.clearCalc(),this.yaxis.clearCalc(),this.updateTraces(h,M),this.updateFx(N.dragmode);var R=N.width,A=N.height;this.updateSize(this.canvas);var q=this.glplotOptions;q.merge(N),q.screenBox=[0,0,R,A];var j={_fullLayout:{_axisConstraintGroups:N._axisConstraintGroups,xaxis:this.xaxis,yaxis:this.yaxis,_size:N._size}};g(j,this.xaxis),g(j,this.yaxis);var X,F,W=N._size,Y=this.xaxis.domain,B=this.yaxis.domain;for(q.viewBox=[W.l+Y[0]*W.w,W.b+B[0]*W.h,R-W.r-(1-Y[1])*W.w,A-W.t-(1-B[1])*W.h],this.mouseContainer.style.width=W.w*(Y[1]-Y[0])+"px",this.mouseContainer.style.height=W.h*(B[1]-B[0])+"px",this.mouseContainer.height=W.h*(B[1]-B[0]),this.mouseContainer.style.left=W.l+Y[0]*W.w+"px",this.mouseContainer.style.top=W.t+(1-B[1])*W.h+"px",F=0;F<2;++F)(X=this[x[F]])._length=q.viewBox[F+2]-q.viewBox[F],f(this.graphDiv,X),X.setScale();d(j),q.ticks=this.computeTickMarks(),q.dataBox=this.calcDataBox(),q.merge(N),P.update(q),this.glplot.draw()},O.calcDataBox=function(){var h=this.xaxis,M=this.yaxis,N=h.range,P=M.range,R=h.r2l,A=M.r2l;return[R(N[0]),A(P[0]),R(N[1]),A(P[1])]},O.setRanges=function(h){var M=this.xaxis,N=this.yaxis,P=M.l2r,R=N.l2r;M.range=[P(h[0]),P(h[2])],N.range=[R(h[1]),R(h[3])]},O.updateTraces=function(h,M){var N,P,R,A=Object.keys(this.traces);this.fullData=h;e:for(N=0;N<A.length;N++){var q=A[N],j=this.traces[q];for(P=0;P<h.length;P++)if((R=h[P]).uid===q&&R.type===j.type)continue e;j.dispose(),delete this.traces[q]}for(N=0;N<h.length;N++){R=h[N];var X=M[N],F=this.traces[R.uid];F?F.update(R,X):(F=R._module.plot(this,R,X),this.traces[R.uid]=F)}this.glplot.objects.sort(function(W,Y){return W._trace.index-Y._trace.index})},O.updateFx=function(h){m(h)||y(h)?(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=h==="pan"?"move":h==="zoom"?"crosshair":null},O.emitPointAction=function(h,M){for(var N,P=h.trace.uid,R=h.pointIndex,A=0;A<this.fullData.length;A++)this.fullData[A].uid===P&&(N=this.fullData[A]);var q={x:h.traceCoord[0],y:h.traceCoord[1],curveNumber:N.index,pointNumber:R,data:N._input,fullData:this.fullData,xaxis:this.xaxis,yaxis:this.yaxis};b.appendArrayPointValue(q,N,R),this.graphDiv.emit(M,{points:[q]})},O.draw=function(){if(!this.stopped){requestAnimationFrame(this.redraw);var h=this.glplot,M=this.camera,N=M.mouseListener,P=this.lastButtonState===1&&N.buttons===0,R=this.fullLayout;this.lastButtonState=N.buttons,this.cameraChanged();var A,q=N.x*h.pixelRatio,j=this.canvas.height-h.pixelRatio*N.y;if(M.boxEnabled&&R.dragmode==="zoom"){this.selectBox.enabled=!0;for(var X=this.selectBox.selectBox=[Math.min(M.boxStart[0],M.boxEnd[0]),Math.min(M.boxStart[1],M.boxEnd[1]),Math.max(M.boxStart[0],M.boxEnd[0]),Math.max(M.boxStart[1],M.boxEnd[1])],F=0;F<2;F++)M.boxStart[F]===M.boxEnd[F]&&(X[F]=h.dataBox[F],X[F+2]=h.dataBox[F+2]);h.setDirty()}else if(!M.panning&&this.isMouseOver){this.selectBox.enabled=!1;var W=R._size,Y=this.xaxis.domain,B=this.yaxis.domain,G=(A=h.pick(q/h.pixelRatio+W.l+Y[0]*W.w,j/h.pixelRatio-(W.t+(1-B[1])*W.h)))&&A.object._trace.handlePick(A);if(G&&P&&this.emitPointAction(G,"plotly_click"),A&&A.object._trace.hoverinfo!=="skip"&&R.hovermode&&G&&(!this.lastPickResult||this.lastPickResult.traceUid!==G.trace.uid||this.lastPickResult.dataCoord[0]!==G.dataCoord[0]||this.lastPickResult.dataCoord[1]!==G.dataCoord[1])){var J=G;this.lastPickResult={traceUid:G.trace?G.trace.uid:null,dataCoord:G.dataCoord.slice()},this.spikes.update({center:A.dataCoord}),J.screenCoord=[((h.viewBox[2]-h.viewBox[0])*(A.dataCoord[0]-h.dataBox[0])/(h.dataBox[2]-h.dataBox[0])+h.viewBox[0])/h.pixelRatio,(this.canvas.height-(h.viewBox[3]-h.viewBox[1])*(A.dataCoord[1]-h.dataBox[1])/(h.dataBox[3]-h.dataBox[1])-h.viewBox[1])/h.pixelRatio],this.emitPointAction(G,"plotly_hover");var se=this.fullData[J.trace.index]||{},re=J.pointIndex,ne=b.castHoverinfo(se,R,re);if(ne&&ne!=="all"){var $=ne.split("+");$.indexOf("x")===-1&&(J.traceCoord[0]=void 0),$.indexOf("y")===-1&&(J.traceCoord[1]=void 0),$.indexOf("z")===-1&&(J.traceCoord[2]=void 0),$.indexOf("text")===-1&&(J.textLabel=void 0),$.indexOf("name")===-1&&(J.name=void 0)}b.loneHover({x:J.screenCoord[0],y:J.screenCoord[1],xLabel:this.hoverFormatter("xaxis",J.traceCoord[0]),yLabel:this.hoverFormatter("yaxis",J.traceCoord[1]),zLabel:J.traceCoord[2],text:J.textLabel,name:J.name,color:b.castHoverOption(se,re,"bgcolor")||J.color,borderColor:b.castHoverOption(se,re,"bordercolor"),fontFamily:b.castHoverOption(se,re,"font.family"),fontSize:b.castHoverOption(se,re,"font.size"),fontColor:b.castHoverOption(se,re,"font.color"),nameLength:b.castHoverOption(se,re,"namelength"),textAlign:b.castHoverOption(se,re,"align")},{container:this.svgContainer,gd:this.graphDiv})}}A||this.unhover(),h.draw()}},O.unhover=function(){this.lastPickResult&&(this.spikes.update({}),this.lastPickResult=null,this.graphDiv.emit("plotly_unhover"),b.loneUnhover(this.svgContainer))},O.hoverFormatter=function(h,M){if(M!==void 0){var N=this[h];return w.tickText(N,N.c2l(M),"hover").text}}},12536:function(L,T,e){var k=e(67824).overrideAll,v=e(65460),n=e(98432),w=e(84888).op,b=e(3400),c=e(9616),a="gl3d",t="scene";T.name=a,T.attr=t,T.idRoot=t,T.idRegex=T.attrRegex=b.counterRegex("scene"),T.attributes=e(6636),T.layoutAttributes=e(346),T.baseLayoutAttrOverrides=k({hoverlabel:v.hoverlabel},"plot","nested"),T.supplyLayoutDefaults=e(5208),T.plot=function(o){for(var i=o._fullLayout,s=o._fullData,l=i._subplots[a],u=0;u<l.length;u++){var d=l[u],g=w(s,a,d),f=i[d],C=f.camera,y=f._scene;y||(y=new n({id:d,graphDiv:o,container:o.querySelector(".gl-container"),staticPlot:o._context.staticPlot,plotGlPixelRatio:o._context.plotGlPixelRatio,camera:C},i),f._scene=y),y.viewInitial||(y.viewInitial={up:{x:C.up.x,y:C.up.y,z:C.up.z},eye:{x:C.eye.x,y:C.eye.y,z:C.eye.z},center:{x:C.center.x,y:C.center.y,z:C.center.z}}),y.plot(g,i,o.layout)}},T.clean=function(o,i,s,l){for(var u=l._subplots[a]||[],d=0;d<u.length;d++){var g=u[d];!i[g]&&l[g]._scene&&(l[g]._scene.destroy(),l._infolayer&&l._infolayer.selectAll(".annotation-"+g).remove())}},T.toSVG=function(o){for(var i=o._fullLayout,s=i._subplots[a],l=i._size,u=0;u<s.length;u++){var d=i[s[u]],g=d.domain,f=d._scene,C=f.toImage("png");i._glimages.append("svg:image").attr({xmlns:c.svg,"xlink:href":C,x:l.l+l.w*g.x[0],y:l.t+l.h*(1-g.y[1]),width:l.w*(g.x[1]-g.x[0]),height:l.h*(g.y[1]-g.y[0]),preserveAspectRatio:"none"}),f.destroy()}},T.cleanId=function(o){if(o.match(/^scene[0-9]*$/)){var i=o.substr(5);return i==="1"&&(i=""),t+i}},T.updateFx=function(o){for(var i=o._fullLayout,s=i._subplots[a],l=0;l<s.length;l++)i[s[l]]._scene.updateFx(i.dragmode,i.hovermode)}},6636:function(L){L.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}},86140:function(L,T,e){var k=e(76308),v=e(94724),n=e(92880).extendFlat,w=e(67824).overrideAll;L.exports=w({visible:v.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:k.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:v.color,categoryorder:v.categoryorder,categoryarray:v.categoryarray,title:{text:v.title.text,font:v.title.font},type:n({},v.type,{values:["-","linear","log","date","category"]}),autotypenumbers:v.autotypenumbers,autorange:v.autorange,autorangeoptions:{minallowed:v.autorangeoptions.minallowed,maxallowed:v.autorangeoptions.maxallowed,clipmin:v.autorangeoptions.clipmin,clipmax:v.autorangeoptions.clipmax,include:v.autorangeoptions.include,editType:"plot"},rangemode:v.rangemode,minallowed:v.minallowed,maxallowed:v.maxallowed,range:n({},v.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:v.minor.tickmode,nticks:v.nticks,tick0:v.tick0,dtick:v.dtick,tickvals:v.tickvals,ticktext:v.ticktext,ticks:v.ticks,mirror:v.mirror,ticklen:v.ticklen,tickwidth:v.tickwidth,tickcolor:v.tickcolor,showticklabels:v.showticklabels,labelalias:v.labelalias,tickfont:v.tickfont,tickangle:v.tickangle,tickprefix:v.tickprefix,showtickprefix:v.showtickprefix,ticksuffix:v.ticksuffix,showticksuffix:v.showticksuffix,showexponent:v.showexponent,exponentformat:v.exponentformat,minexponent:v.minexponent,separatethousands:v.separatethousands,tickformat:v.tickformat,tickformatstops:v.tickformatstops,hoverformat:v.hoverformat,showline:v.showline,linecolor:v.linecolor,linewidth:v.linewidth,showgrid:v.showgrid,gridcolor:n({},v.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:v.gridwidth,zeroline:v.zeroline,zerolinecolor:v.zerolinecolor,zerolinewidth:v.zerolinewidth,_deprecated:{title:v._deprecated.title,titlefont:v._deprecated.titlefont}},"plot","from-root")},64380:function(L,T,e){var k=e(49760).mix,v=e(3400),n=e(31780),w=e(86140),b=e(14944),c=e(28336),a=["xaxis","yaxis","zaxis"];L.exports=function(t,o,i){var s,l;function u(f,C){return v.coerce(s,l,w,f,C)}for(var d=0;d<a.length;d++){var g=a[d];s=t[g]||{},(l=n.newContainer(o,g))._id=g[0]+i.scene,l._name=g,b(s,l,u,i),c(s,l,u,{font:i.font,letter:g[0],data:i.data,showGrid:!0,noAutotickangles:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelstep:!0,noTicklabelposition:!0,noTicklabeloverflow:!0,noInsiderange:!0,bgColor:i.bgColor,calendar:i.calendar},i.fullLayout),u("gridcolor",k(l.color,i.bgColor,72.72727272727273).toRgbString()),u("title.text",g[0]),l.setScale=v.noop,u("showspikes")&&(u("spikesides"),u("spikethickness"),u("spikecolor",l.color)),u("showaxeslabels"),u("showbackground")&&u("backgroundcolor")}}},44728:function(L,T,e){var k=e(43080),v=e(3400),n=["xaxis","yaxis","zaxis"];function w(){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.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.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()}w.prototype.merge=function(b,c){for(var a=this,t=0;t<3;++t){var o=c[n[t]];o.visible?(a.labels[t]=b._meta?v.templateString(o.title.text,b._meta):o.title.text,"font"in o.title&&(o.title.font.color&&(a.labelColor[t]=k(o.title.font.color)),o.title.font.family&&(a.labelFont[t]=o.title.font.family),o.title.font.size&&(a.labelSize[t]=o.title.font.size)),"showline"in o&&(a.lineEnable[t]=o.showline),"linecolor"in o&&(a.lineColor[t]=k(o.linecolor)),"linewidth"in o&&(a.lineWidth[t]=o.linewidth),"showgrid"in o&&(a.gridEnable[t]=o.showgrid),"gridcolor"in o&&(a.gridColor[t]=k(o.gridcolor)),"gridwidth"in o&&(a.gridWidth[t]=o.gridwidth),o.type==="log"?a.zeroEnable[t]=!1:"zeroline"in o&&(a.zeroEnable[t]=o.zeroline),"zerolinecolor"in o&&(a.zeroLineColor[t]=k(o.zerolinecolor)),"zerolinewidth"in o&&(a.zeroLineWidth[t]=o.zerolinewidth),"ticks"in o&&o.ticks?a.lineTickEnable[t]=!0:a.lineTickEnable[t]=!1,"ticklen"in o&&(a.lineTickLength[t]=a._defaultLineTickLength[t]=o.ticklen),"tickcolor"in o&&(a.lineTickColor[t]=k(o.tickcolor)),"tickwidth"in o&&(a.lineTickWidth[t]=o.tickwidth),"tickangle"in o&&(a.tickAngle[t]=o.tickangle==="auto"?-3600:Math.PI*-o.tickangle/180),"showticklabels"in o&&(a.tickEnable[t]=o.showticklabels),"tickfont"in o&&(o.tickfont.color&&(a.tickColor[t]=k(o.tickfont.color)),o.tickfont.family&&(a.tickFont[t]=o.tickfont.family),o.tickfont.size&&(a.tickSize[t]=o.tickfont.size)),"mirror"in o?["ticks","all","allticks"].indexOf(o.mirror)!==-1?(a.lineTickMirror[t]=!0,a.lineMirror[t]=!0):o.mirror===!0?(a.lineTickMirror[t]=!1,a.lineMirror[t]=!0):(a.lineTickMirror[t]=!1,a.lineMirror[t]=!1):a.lineMirror[t]=!1,"showbackground"in o&&o.showbackground!==!1?(a.backgroundEnable[t]=!0,a.backgroundColor[t]=k(o.backgroundcolor)):a.backgroundEnable[t]=!1):(a.tickEnable[t]=!1,a.labelEnable[t]=!1,a.lineEnable[t]=!1,a.lineTickEnable[t]=!1,a.gridEnable[t]=!1,a.zeroEnable[t]=!1,a.backgroundEnable[t]=!1)}},L.exports=function(b,c){var a=new w;return a.merge(b,c),a}},5208:function(L,T,e){var k=e(3400),v=e(76308),n=e(24040),w=e(168),b=e(64380),c=e(346),a=e(84888).op,t="gl3d";function o(i,s,l,u){for(var d=l("bgcolor"),g=v.combine(d,u.paper_bgcolor),f=["up","center","eye"],C=0;C<f.length;C++)l("camera."+f[C]+".x"),l("camera."+f[C]+".y"),l("camera."+f[C]+".z");l("camera.projection.type");var y=!!l("aspectratio.x")&&!!l("aspectratio.y")&&!!l("aspectratio.z"),m=l("aspectmode",y?"manual":"auto");y||(i.aspectratio=s.aspectratio={x:1,y:1,z:1},m==="manual"&&(s.aspectmode="auto"),i.aspectmode=s.aspectmode);var x=a(u.fullData,t,u.id);b(i,s,{font:u.font,scene:u.id,data:x,bgColor:g,calendar:u.calendar,autotypenumbersDflt:u.autotypenumbersDflt,fullLayout:u.fullLayout}),n.getComponentMethod("annotations3d","handleDefaults")(i,s,u);var _=u.getDfltFromLayout("dragmode");if(_!==!1&&!_)if(_="orbit",i.camera&&i.camera.up){var S=i.camera.up.x,O=i.camera.up.y,h=i.camera.up.z;h!==0&&(S&&O&&h?h/Math.sqrt(S*S+O*O+h*h)>.999&&(_="turntable"):_="turntable")}else _="turntable";l("dragmode",_),l("hovermode",u.getDfltFromLayout("hovermode"))}L.exports=function(i,s,l){var u=s._basePlotModules.length>1;w(i,s,l,{type:t,attributes:c,handleDefaults:o,fullLayout:s,font:s.font,fullData:l,getDfltFromLayout:function(d){if(!u)return k.validate(i[d],c[d])?i[d]:void 0},autotypenumbersDflt:s.autotypenumbers,paper_bgcolor:s.paper_bgcolor,calendar:s.calendar})}},346:function(L,T,e){var k=e(86140),v=e(86968).u,n=e(92880).extendFlat,w=e(3400).counterRegex;function b(c,a,t){return{x:{valType:"number",dflt:c,editType:"camera"},y:{valType:"number",dflt:a,editType:"camera"},z:{valType:"number",dflt:t,editType:"camera"},editType:"camera"}}L.exports={_arrayAttrRegexps:[w("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:n(b(0,0,1),{}),center:n(b(0,0,0),{}),eye:n(b(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:v({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:k,yaxis:k,zaxis:k,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"}}}},9020:function(L,T,e){var k=e(43080),v=["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(w){for(var b=0;b<3;++b){var c=w[v[b]];c.visible?(this.enabled[b]=c.showspikes,this.colors[b]=k(c.spikecolor),this.drawSides[b]=c.spikesides,this.lineWidth[b]=c.spikethickness):(this.enabled[b]=!1,this.drawSides[b]=!1)}},L.exports=function(w){var b=new n;return b.merge(w),b}},87152:function(L,T,e){L.exports=function(b){for(var c=b.axesOptions,a=b.glplot.axesPixels,t=b.fullSceneLayout,o=[[],[],[]],i=0;i<3;++i){var s=t[n[i]];if(s._length=(a[i].hi-a[i].lo)*a[i].pixelsPerDataUnit/b.dataScale[i],Math.abs(s._length)===1/0||isNaN(s._length))o[i]=[];else{s._input_range=s.range.slice(),s.range[0]=a[i].lo/b.dataScale[i],s.range[1]=a[i].hi/b.dataScale[i],s._m=1/(b.dataScale[i]*a[i].pixelsPerDataUnit),s.range[0]===s.range[1]&&(s.range[0]-=1,s.range[1]+=1);var l=s.tickmode;if(s.tickmode==="auto"){s.tickmode="linear";var u=s.nticks||v.constrain(s._length/40,4,9);k.autoTicks(s,Math.abs(s.range[1]-s.range[0])/u)}for(var d=k.calcTicks(s,{msUTC:!0}),g=0;g<d.length;++g)d[g].x=d[g].x*b.dataScale[i],s.type==="date"&&(d[g].text=d[g].text.replace(/\<br\>/g," "));o[i]=d,s.tickmode=l}}for(c.ticks=o,i=0;i<3;++i)for(w[i]=.5*(b.glplot.bounds[0][i]+b.glplot.bounds[1][i]),g=0;g<2;++g)c.bounds[g][i]=b.glplot.bounds[g][i];b.contourLevels=function(f){for(var C=new Array(3),y=0;y<3;++y){for(var m=f[y],x=new Array(m.length),_=0;_<m.length;++_)x[_]=m[_].x;C[y]=x}return C}(o)};var k=e(54460),v=e(3400),n=["xaxis","yaxis","zaxis"],w=[0,0,0]},94424:function(L){function T(e,k){var v,n,w=[0,0,0,0];for(v=0;v<4;++v)for(n=0;n<4;++n)w[n]+=e[4*v+n]*k[v];return w}L.exports=function(e,k){return T(e.projection,T(e.view,T(e.model,[k[0],k[1],k[2],1])))}},98432:function(L,T,e){var k,v,n=e(67792).gl_plot3d,w=n.createCamera,b=n.createScene,c=e(5408),a=e(89184),t=e(24040),o=e(3400),i=o.preserveDrawingBuffer(),s=e(54460),l=e(93024),u=e(43080),d=e(16576),g=e(94424),f=e(44728),C=e(9020),y=e(87152),m=e(19280).applyAutorangeOptions,x=!1;function _(N,P){var R=document.createElement("div"),A=N.container;this.graphDiv=N.graphDiv;var q=document.createElementNS("http://www.w3.org/2000/svg","svg");q.style.position="absolute",q.style.top=q.style.left="0px",q.style.width=q.style.height="100%",q.style["z-index"]=20,q.style["pointer-events"]="none",R.appendChild(q),this.svgContainer=q,R.id=N.id,R.style.position="absolute",R.style.top=R.style.left="0px",R.style.width=R.style.height="100%",A.appendChild(R),this.fullLayout=P,this.id=N.id||"scene",this.fullSceneLayout=P[this.id],this.plotArgs=[[],{},{}],this.axesOptions=f(P,P[this.id]),this.spikeOptions=C(P[this.id]),this.container=R,this.staticMode=!!N.staticPlot,this.pixelRatio=this.pixelRatio||N.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=t.getComponentMethod("annotations3d","convert"),this.drawAnnotations=t.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var S=_.prototype;S.prepareOptions=function(){var N=this,P={canvas:N.canvas,gl:N.gl,glOptions:{preserveDrawingBuffer:i,premultipliedAlpha:!0,antialias:!0},container:N.container,axes:N.axesOptions,spikes:N.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:N.camera,pixelRatio:N.pixelRatio};if(N.staticMode){if(!(v||(k=document.createElement("canvas"),v=c({canvas:k,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error("error creating static canvas/context for image server");P.gl=v,P.canvas=k}return P};var O=!0;S.tryCreatePlot=function(){var N=this,P=N.prepareOptions(),R=!0;try{N.glplot=b(P)}catch{if(N.staticMode||!O||i)R=!1;else{o.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{i=P.glOptions.preserveDrawingBuffer=!0,N.glplot=b(P)}catch{i=P.glOptions.preserveDrawingBuffer=!1,R=!1}}}return O=!1,R},S.initializeGLCamera=function(){var N=this,P=N.fullSceneLayout.camera,R=P.projection.type==="orthographic";N.camera=w(N.container,{center:[P.center.x,P.center.y,P.center.z],eye:[P.eye.x,P.eye.y,P.eye.z],up:[P.up.x,P.up.y,P.up.z],_ortho:R,zoomMin:.01,zoomMax:100,mode:"orbit"})},S.initializeGLPlot=function(){var N=this;if(N.initializeGLCamera(),!N.tryCreatePlot())return d(N);N.traces={},N.make4thDimension();var P=N.graphDiv,R=P.layout,A=function(){var j={};return N.isCameraChanged(R)&&(j[N.id+".camera"]=N.getCamera()),N.isAspectChanged(R)&&(j[N.id+".aspectratio"]=N.glplot.getAspectratio(),R[N.id].aspectmode!=="manual"&&(N.fullSceneLayout.aspectmode=R[N.id].aspectmode=j[N.id+".aspectmode"]="manual")),j},q=function(j){if(j.fullSceneLayout.dragmode!==!1){var X=A();j.saveLayout(R),j.graphDiv.emit("plotly_relayout",X)}};return N.glplot.canvas&&(N.glplot.canvas.addEventListener("mouseup",function(){q(N)}),N.glplot.canvas.addEventListener("touchstart",function(){x=!0}),N.glplot.canvas.addEventListener("wheel",function(j){if(P._context._scrollZoom.gl3d){if(N.camera._ortho){var X=j.deltaX>j.deltaY?1.1:.9090909090909091,F=N.glplot.getAspectratio();N.glplot.setAspectratio({x:X*F.x,y:X*F.y,z:X*F.z})}q(N)}},!!a&&{passive:!1}),N.glplot.canvas.addEventListener("mousemove",function(){if(N.fullSceneLayout.dragmode!==!1&&N.camera.mouseListener.buttons!==0){var j=A();N.graphDiv.emit("plotly_relayouting",j)}}),N.staticMode||N.glplot.canvas.addEventListener("webglcontextlost",function(j){P&&P.emit&&P.emit("plotly_webglcontextlost",{event:j,layer:N.id})},!1)),N.glplot.oncontextloss=function(){N.recoverContext()},N.glplot.onrender=function(){N.render()},!0},S.render=function(){var N,P=this,R=P.graphDiv,A=P.svgContainer,q=P.container.getBoundingClientRect();R._fullLayout._calcInverseTransform(R);var j=R._fullLayout._invScaleX,X=R._fullLayout._invScaleY,F=q.width*j,W=q.height*X;A.setAttributeNS(null,"viewBox","0 0 "+F+" "+W),A.setAttributeNS(null,"width",F),A.setAttributeNS(null,"height",W),y(P),P.glplot.axes.update(P.axesOptions);for(var Y=Object.keys(P.traces),B=null,G=P.glplot.selection,J=0;J<Y.length;++J)(N=P.traces[Y[J]]).data.hoverinfo!=="skip"&&N.handlePick(G)&&(B=N),N.setContourLevels&&N.setContourLevels();function se(Ce,Se,Pe){var Ne=P.fullSceneLayout[Ce+"axis"];return Ne.type!=="log"&&(Se=Ne.d2l(Se)),s.hoverLabelText(Ne,Se,Pe)}if(B!==null){var re=g(P.glplot.cameraParams,G.dataCoordinate);N=B.data;var ne,$=R._fullData[N.index],te=G.index,ae={xLabel:se("x",G.traceCoordinate[0],N.xhoverformat),yLabel:se("y",G.traceCoordinate[1],N.yhoverformat),zLabel:se("z",G.traceCoordinate[2],N.zhoverformat)},ce=l.castHoverinfo($,P.fullLayout,te),ue=(ce||"").split("+"),de=ce&&ce==="all";$.hovertemplate||de||(ue.indexOf("x")===-1&&(ae.xLabel=void 0),ue.indexOf("y")===-1&&(ae.yLabel=void 0),ue.indexOf("z")===-1&&(ae.zLabel=void 0),ue.indexOf("text")===-1&&(G.textLabel=void 0),ue.indexOf("name")===-1&&(B.name=void 0));var me=[];N.type==="cone"||N.type==="streamtube"?(ae.uLabel=se("x",G.traceCoordinate[3],N.uhoverformat),(de||ue.indexOf("u")!==-1)&&me.push("u: "+ae.uLabel),ae.vLabel=se("y",G.traceCoordinate[4],N.vhoverformat),(de||ue.indexOf("v")!==-1)&&me.push("v: "+ae.vLabel),ae.wLabel=se("z",G.traceCoordinate[5],N.whoverformat),(de||ue.indexOf("w")!==-1)&&me.push("w: "+ae.wLabel),ae.normLabel=G.traceCoordinate[6].toPrecision(3),(de||ue.indexOf("norm")!==-1)&&me.push("norm: "+ae.normLabel),N.type==="streamtube"&&(ae.divergenceLabel=G.traceCoordinate[7].toPrecision(3),(de||ue.indexOf("divergence")!==-1)&&me.push("divergence: "+ae.divergenceLabel)),G.textLabel&&me.push(G.textLabel),ne=me.join("<br>")):N.type==="isosurface"||N.type==="volume"?(ae.valueLabel=s.hoverLabelText(P._mockAxis,P._mockAxis.d2l(G.traceCoordinate[3]),N.valuehoverformat),me.push("value: "+ae.valueLabel),G.textLabel&&me.push(G.textLabel),ne=me.join("<br>")):ne=G.textLabel;var be={x:G.traceCoordinate[0],y:G.traceCoordinate[1],z:G.traceCoordinate[2],data:$._input,fullData:$,curveNumber:$.index,pointNumber:te};l.appendArrayPointValue(be,$,te),N._module.eventData&&(be=$._module.eventData(be,G,$,{},te));var _e={points:[be]};if(P.fullSceneLayout.hovermode){var we=[];l.loneHover({trace:$,x:(.5+.5*re[0]/re[3])*F,y:(.5-.5*re[1]/re[3])*W,xLabel:ae.xLabel,yLabel:ae.yLabel,zLabel:ae.zLabel,text:ne,name:B.name,color:l.castHoverOption($,te,"bgcolor")||B.color,borderColor:l.castHoverOption($,te,"bordercolor"),fontFamily:l.castHoverOption($,te,"font.family"),fontSize:l.castHoverOption($,te,"font.size"),fontColor:l.castHoverOption($,te,"font.color"),nameLength:l.castHoverOption($,te,"namelength"),textAlign:l.castHoverOption($,te,"align"),hovertemplate:o.castOption($,te,"hovertemplate"),hovertemplateLabels:o.extendFlat({},be,ae),eventData:[be]},{container:A,gd:R,inOut_bbox:we}),be.bbox=we[0]}G.distance<5&&(G.buttons||x)?R.emit("plotly_click",_e):R.emit("plotly_hover",_e),this.oldEventData=_e}else l.loneUnhover(A),this.oldEventData&&R.emit("plotly_unhover",this.oldEventData),this.oldEventData=void 0;P.drawAnnotations(P)},S.recoverContext=function(){var N=this;N.glplot.dispose();var P=function(){N.glplot.gl.isContextLost()?requestAnimationFrame(P):N.initializeGLPlot()?N.plot.apply(N,N.plotArgs):o.error("Catastrophic and unrecoverable WebGL error. Context lost.")};requestAnimationFrame(P)};var h=["xaxis","yaxis","zaxis"];function M(N,P,R){for(var A=N.fullSceneLayout,q=0;q<3;q++){var j=h[q],X=j.charAt(0),F=A[j],W=P[X],Y=P[X+"calendar"],B=P["_"+X+"length"];if(o.isArrayOrTypedArray(W))for(var G,J=0;J<(B||W.length);J++)if(o.isArrayOrTypedArray(W[J]))for(var se=0;se<W[J].length;++se)G=F.d2l(W[J][se],0,Y),!isNaN(G)&&isFinite(G)&&(R[0][q]=Math.min(R[0][q],G),R[1][q]=Math.max(R[1][q],G));else G=F.d2l(W[J],0,Y),!isNaN(G)&&isFinite(G)&&(R[0][q]=Math.min(R[0][q],G),R[1][q]=Math.max(R[1][q],G));else R[0][q]=Math.min(R[0][q],0),R[1][q]=Math.max(R[1][q],B-1)}}S.plot=function(N,P,R){var A=this;if(A.plotArgs=[N,P,R],!A.glplot.contextLost){var q,j,X,F,W,Y,B=P[A.id],G=R[A.id];A.fullLayout=P,A.fullSceneLayout=B,A.axesOptions.merge(P,B),A.spikeOptions.merge(B),A.setViewport(B),A.updateFx(B.dragmode,B.hovermode),A.camera.enableWheel=A.graphDiv._context._scrollZoom.gl3d,A.glplot.setClearColor(u(B.bgcolor)),A.setConvert(W),N?Array.isArray(N)||(N=[N]):N=[];var J=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(X=0;X<N.length;++X)(q=N[X]).visible===!0&&q._length!==0&&M(this,q,J);(function(Re,Fe){for(var ve=Re.fullSceneLayout,ke=ve.annotations||[],Ee=0;Ee<3;Ee++)for(var je=h[Ee],Be=je.charAt(0),Ie=ve[je],Ze=0;Ze<ke.length;Ze++){var He=ke[Ze];if(He.visible){var at=Ie.r2l(He[Be]);!isNaN(at)&&isFinite(at)&&(Fe[0][Ee]=Math.min(Fe[0][Ee],at),Fe[1][Ee]=Math.max(Fe[1][Ee],at))}}})(this,J);var se=[1,1,1];for(F=0;F<3;++F)J[1][F]===J[0][F]?se[F]=1:se[F]=1/(J[1][F]-J[0][F]);for(A.dataScale=se,A.convertAnnotations(this),X=0;X<N.length;++X)(q=N[X]).visible===!0&&q._length!==0&&((j=A.traces[q.uid])?j.data.type===q.type?j.update(q):(j.dispose(),j=q._module.plot(this,q),A.traces[q.uid]=j):(j=q._module.plot(this,q),A.traces[q.uid]=j),j.name=q.name);var re=Object.keys(A.traces);e:for(X=0;X<re.length;++X){for(F=0;F<N.length;++F)if(N[F].uid===re[X]&&N[F].visible===!0&&N[F]._length!==0)continue e;(j=A.traces[re[X]]).dispose(),delete A.traces[re[X]]}A.glplot.objects.sort(function(Re,Fe){return Re._trace.data.index-Fe._trace.data.index});var ne,$=[[0,0,0],[0,0,0]],te=[],ae={};for(X=0;X<3;++X){var ce;if((Y=(W=B[h[X]]).type)in ae?(ae[Y].acc*=se[X],ae[Y].count+=1):ae[Y]={acc:se[X],count:1},W.autorange){$[0][X]=1/0,$[1][X]=-1/0;var ue=A.glplot.objects,de=A.fullSceneLayout.annotations||[],me=W._name.charAt(0);for(F=0;F<ue.length;F++){var be=ue[F],_e=be.bounds,we=be._trace.data._pad||0;be.constructor.name==="ErrorBars"&&W._lowerLogErrorBound?$[0][X]=Math.min($[0][X],W._lowerLogErrorBound):$[0][X]=Math.min($[0][X],_e[0][X]/se[X]-we),$[1][X]=Math.max($[1][X],_e[1][X]/se[X]+we)}for(F=0;F<de.length;F++){var Ce=de[F];if(Ce.visible){var Se=W.r2l(Ce[me]);$[0][X]=Math.min($[0][X],Se),$[1][X]=Math.max($[1][X],Se)}}if("rangemode"in W&&W.rangemode==="tozero"&&($[0][X]=Math.min($[0][X],0),$[1][X]=Math.max($[1][X],0)),$[0][X]>$[1][X])$[0][X]=-1,$[1][X]=1;else{var Pe=$[1][X]-$[0][X];$[0][X]-=Pe/32,$[1][X]+=Pe/32}if(ce=[$[0][X],$[1][X]],ce=m(ce,W),$[0][X]=ce[0],$[1][X]=ce[1],W.isReversed()){var Ne=$[0][X];$[0][X]=$[1][X],$[1][X]=Ne}}else ce=W.range,$[0][X]=W.r2l(ce[0]),$[1][X]=W.r2l(ce[1]);$[0][X]===$[1][X]&&($[0][X]-=1,$[1][X]+=1),te[X]=$[1][X]-$[0][X],W.range=[$[0][X],$[1][X]],W.limitRange(),A.glplot.setBounds(X,{min:W.range[0]*se[X],max:W.range[1]*se[X]})}var Oe=B.aspectmode;if(Oe==="cube")ne=[1,1,1];else if(Oe==="manual"){var pe=B.aspectratio;ne=[pe.x,pe.y,pe.z]}else{if(Oe!=="auto"&&Oe!=="data")throw new Error("scene.js aspectRatio was not one of the enumerated types");var fe=[1,1,1];for(X=0;X<3;++X){var xe=ae[Y=(W=B[h[X]]).type];fe[X]=Math.pow(xe.acc,1/xe.count)/se[X]}ne=Oe==="data"||Math.max.apply(null,fe)/Math.min.apply(null,fe)<=4?fe:[1,1,1]}B.aspectratio.x=G.aspectratio.x=ne[0],B.aspectratio.y=G.aspectratio.y=ne[1],B.aspectratio.z=G.aspectratio.z=ne[2],A.glplot.setAspectratio(B.aspectratio),A.viewInitial.aspectratio||(A.viewInitial.aspectratio={x:B.aspectratio.x,y:B.aspectratio.y,z:B.aspectratio.z}),A.viewInitial.aspectmode||(A.viewInitial.aspectmode=B.aspectmode);var ze=B.domain||null,Le=P._size||null;if(ze&&Le){var Ue=A.container.style;Ue.position="absolute",Ue.left=Le.l+ze.x[0]*Le.w+"px",Ue.top=Le.t+(1-ze.y[1])*Le.h+"px",Ue.width=Le.w*(ze.x[1]-ze.x[0])+"px",Ue.height=Le.h*(ze.y[1]-ze.y[0])+"px"}A.glplot.redraw()}},S.destroy=function(){var N=this;N.glplot&&(N.camera.mouseListener.enabled=!1,N.container.removeEventListener("wheel",N.camera.wheelListener),N.camera=null,N.glplot.dispose(),N.container.parentNode.removeChild(N.container),N.glplot=null)},S.getCamera=function(){var N,P=this;return P.camera.view.recalcMatrix(P.camera.view.lastT()),{up:{x:(N=P.camera).up[0],y:N.up[1],z:N.up[2]},center:{x:N.center[0],y:N.center[1],z:N.center[2]},eye:{x:N.eye[0],y:N.eye[1],z:N.eye[2]},projection:{type:N._ortho===!0?"orthographic":"perspective"}}},S.setViewport=function(N){var P,R=this,A=N.camera;R.camera.lookAt.apply(this,[[(P=A).eye.x,P.eye.y,P.eye.z],[P.center.x,P.center.y,P.center.z],[P.up.x,P.up.y,P.up.z]]),R.glplot.setAspectratio(N.aspectratio),A.projection.type==="orthographic"!==R.camera._ortho&&(R.glplot.redraw(),R.glplot.clearRGBA(),R.glplot.dispose(),R.initializeGLPlot())},S.isCameraChanged=function(N){var P=this.getCamera(),R=o.nestedProperty(N,this.id+".camera").get();function A(F,W,Y,B){var G=["up","center","eye"],J=["x","y","z"];return W[G[Y]]&&F[G[Y]][J[B]]===W[G[Y]][J[B]]}var q=!1;if(R===void 0)q=!0;else{for(var j=0;j<3;j++)for(var X=0;X<3;X++)if(!A(P,R,j,X)){q=!0;break}(!R.projection||P.projection&&P.projection.type!==R.projection.type)&&(q=!0)}return q},S.isAspectChanged=function(N){var P=this.glplot.getAspectratio(),R=o.nestedProperty(N,this.id+".aspectratio").get();return R===void 0||R.x!==P.x||R.y!==P.y||R.z!==P.z},S.saveLayout=function(N){var P,R,A,q,j,X,F=this,W=F.fullLayout,Y=F.isCameraChanged(N),B=F.isAspectChanged(N),G=Y||B;if(G){var J={};Y&&(P=F.getCamera(),A=(R=o.nestedProperty(N,F.id+".camera")).get(),J[F.id+".camera"]=A),B&&(q=F.glplot.getAspectratio(),X=(j=o.nestedProperty(N,F.id+".aspectratio")).get(),J[F.id+".aspectratio"]=X),t.call("_storeDirectGUIEdit",N,W._preGUI,J),Y&&(R.set(P),o.nestedProperty(W,F.id+".camera").set(P)),B&&(j.set(q),o.nestedProperty(W,F.id+".aspectratio").set(q),F.glplot.redraw())}return G},S.updateFx=function(N,P){var R=this,A=R.camera;if(A)if(N==="orbit")A.mode="orbit",A.keyBindingMode="rotate";else if(N==="turntable"){A.up=[0,0,1],A.mode="turntable",A.keyBindingMode="rotate";var q=R.graphDiv,j=q._fullLayout,X=R.fullSceneLayout.camera,F=X.up.x,W=X.up.y,Y=X.up.z;if(Y/Math.sqrt(F*F+W*W+Y*Y)<.999){var B=R.id+".camera.up",G={x:0,y:0,z:1},J={};J[B]=G;var se=q.layout;t.call("_storeDirectGUIEdit",se,j._preGUI,J),X.up=G,o.nestedProperty(se,B).set(G)}}else A.keyBindingMode=N;R.fullSceneLayout.hovermode=P},S.toImage=function(N){var P=this;N||(N="png"),P.staticMode&&P.container.appendChild(k),P.glplot.redraw();var R=P.glplot.gl,A=R.drawingBufferWidth,q=R.drawingBufferHeight;R.bindFramebuffer(R.FRAMEBUFFER,null);var j=new Uint8Array(A*q*4);R.readPixels(0,0,A,q,R.RGBA,R.UNSIGNED_BYTE,j),function(B,G,J){for(var se=0,re=J-1;se<re;++se,--re)for(var ne=0;ne<G;++ne)for(var $=0;$<4;++$){var te=4*(G*se+ne)+$,ae=4*(G*re+ne)+$,ce=B[te];B[te]=B[ae],B[ae]=ce}}(j,A,q),function(B,G,J){for(var se=0;se<J;++se)for(var re=0;re<G;++re){var ne=4*(G*se+re),$=B[ne+3];if($>0)for(var te=255/$,ae=0;ae<3;++ae)B[ne+ae]=Math.min(te*B[ne+ae],255)}}(j,A,q);var X=document.createElement("canvas");X.width=A,X.height=q;var F,W=X.getContext("2d",{willReadFrequently:!0}),Y=W.createImageData(A,q);switch(Y.data.set(j),W.putImageData(Y,0,0),N){case"jpeg":F=X.toDataURL("image/jpeg");break;case"webp":F=X.toDataURL("image/webp");break;default:F=X.toDataURL("image/png")}return P.staticMode&&P.container.removeChild(k),F},S.setConvert=function(){for(var N=0;N<3;N++){var P=this.fullSceneLayout[h[N]];s.setConvert(P,this.fullLayout),P.setScale=o.noop}},S.make4thDimension=function(){var N=this,P=N.graphDiv._fullLayout;N._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},s.setConvert(N._mockAxis,P)},L.exports=_},52094:function(L){L.exports=function(T,e,k,v){v=v||T.length;for(var n=new Array(v),w=0;w<v;w++)n[w]=[T[w],e[w],k[w]];return n}},64859:function(L,T,e){var k=e(25376),v=e(85656),n=e(22548),w=e(92872),b=e(34200),c=e(66741),a=e(92880).extendFlat,t=k({editType:"calc"});t.family.dflt='"Open Sans", verdana, arial, sans-serif',t.size.dflt=12,t.color.dflt=n.defaultLine,L.exports={font:t,title:{text:{valType:"string",editType:"layoutstyle"},font:k({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:a(c({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:w.newshape,activeshape:w.activeshape,newselection:b.newselection,activeselection:b.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:a({},v.transition,{editType:"none"}),_deprecated:{title:{valType:"string",editType:"layoutstyle"},titlefont:k({editType:"layoutstyle"})}}},47552:function(L,T,e){var k=e(95376),v="1.13.4",n='© <a target="_blank" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',w=['© <a target="_blank" href="https://carto.com/">Carto</a>',n].join(" "),b=['Map tiles by <a target="_blank" href="https://stamen.com">Stamen Design</a>','under <a target="_blank" href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>',"|",'Data by <a target="_blank" href="https://openstreetmap.org">OpenStreetMap</a> contributors','under <a target="_blank" href="https://www.openstreetmap.org/copyright">ODbL</a>'].join(" "),c={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:n,tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.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":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:w,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:w,tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:b,tiles:["https://tiles.stadiamaps.com/tiles/stamen_terrain/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:b,tiles:["https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}.png?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:['Map tiles by <a target="_blank" href="https://stamen.com">Stamen Design</a>','under <a target="_blank" href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>',"|",'Data by <a target="_blank" href="https://openstreetmap.org">OpenStreetMap</a> contributors','under <a target="_blank" href="https://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>'].join(" "),tiles:["https://tiles.stadiamaps.com/tiles/stamen_watercolor/{z}/{x}/{y}.jpg?api_key="],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}],glyphs:"https://fonts.openmaptiles.org/{fontstack}/{range}.pbf"}},a=k(c);L.exports={requiredVersion:v,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:c,styleValuesNonMapbox:a,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install @plotly/mapbox-gl@"+v+"."].join(`