MCPcopy Index your code
hub / github.com/plotly/plotly.py / uB

Function uB

plotly/package_data/plotly.min.js:20–20  ·  view source on GitHub ↗
(e,t,r)

Source from the content-addressed store, hash-verified

18`)};function ot(dr){return dr.map(Xt).join(X)}function Xt(dr){return Te.test(dr)?'"'+dr.replace(/\"/g,'""')+'"':dr}return Ve},e.csv=e.dsv(",","text/csv"),e.tsv=e.dsv(" ","text/tab-separated-values");var _n,ya,ea,Ma,_o=this[j(this,"requestAnimationFrame")]||function(X){setTimeout(X,17)};e.timer=function(){No.apply(this,arguments)};function No(X,se,Te){var qe=arguments.length;qe<2&&(se=0),qe<3&&(Te=Date.now());var Ve=Te+se,Ye={c:X,t:Ve,n:null};return ya?ya.n=Ye:_n=Ye,ya=Ye,ea||(Ma=clearTimeout(Ma),ea=1,_o(po)),Ye}function po(){var X=Lo(),se=ko()-X;se>24?(isFinite(se)&&(clearTimeout(Ma),Ma=setTimeout(po,se)),ea=0):(ea=1,_o(po))}e.timer.flush=function(){Lo(),ko()};function Lo(){for(var X=Date.now(),se=_n;se;)X>=se.t&&se.c(X-se.t)&&(se.c=null),se=se.n;return X}function ko(){for(var X,se=_n,Te=1/0;se;)se.c?(se.t<Te&&(Te=se.t),se=(X=se).n):se=X?X.n=se.n:_n=se.n;return ya=X,Te}e.round=function(X,se){return se?Math.round(X*(se=Math.pow(10,se)))/se:Math.round(X)},e.geom={};function Ds(X){return X[0]}function Fs(X){return X[1]}e.geom.hull=function(X){var se=Ds,Te=Fs;if(arguments.length)return qe(X);function qe(Ve){if(Ve.length<3)return[];var Ye=hi(se),Pt=hi(Te),ot,Xt=Ve.length,dr=[],pr=[];for(ot=0;ot<Xt;ot++)dr.push([+Ye.call(this,Ve[ot],ot),+Pt.call(this,Ve[ot],ot),ot]);for(dr.sort(ul),ot=0;ot<Xt;ot++)pr.push([dr[ot][0],-dr[ot][1]]);var Ur=ll(dr),zr=ll(pr),gi=zr[0]===Ur[0],xi=zr[zr.length-1]===Ur[Ur.length-1],Wr=[];for(ot=Ur.length-1;ot>=0;--ot)Wr.push(Ve[dr[Ur[ot]][2]]);for(ot=+gi;ot<zr.length-xi;++ot)Wr.push(Ve[dr[zr[ot]][2]]);return Wr}return qe.x=function(Ve){return arguments.length?(se=Ve,qe):se},qe.y=function(Ve){return arguments.length?(Te=Ve,qe):Te},qe};function ll(X){for(var se=X.length,Te=[0,1],qe=2,Ve=2;Ve<se;Ve++){for(;qe>1&&Ir(X[Te[qe-2]],X[Te[qe-1]],X[Ve])<=0;)--qe;Te[qe++]=Ve}return Te.slice(0,qe)}function ul(X,se){return X[0]-se[0]||X[1]-se[1]}e.geom.polygon=function(X){return re(X,zl),X};var zl=e.geom.polygon.prototype=[];zl.area=function(){for(var X=-1,se=this.length,Te,qe=this[se-1],Ve=0;++X<se;)Te=qe,qe=this[X],Ve+=Te[1]*qe[0]-Te[0]*qe[1];return Ve*.5},zl.centroid=function(X){var se=-1,Te=this.length,qe=0,Ve=0,Ye,Pt=this[Te-1],ot;for(arguments.length||(X=-1/(6*this.area()));++se<Te;)Ye=Pt,Pt=this[se],ot=Ye[0]*Pt[1]-Pt[0]*Ye[1],qe+=(Ye[0]+Pt[0])*ot,Ve+=(Ye[1]+Pt[1])*ot;return[qe*X,Ve*X]},zl.clip=function(X){for(var se,Te=As(X),qe=-1,Ve=this.length-As(this),Ye,Pt,ot=this[Ve-1],Xt,dr,pr;++qe<Ve;){for(se=X.slice(),X.length=0,Xt=this[qe],dr=se[(Pt=se.length-Te)-1],Ye=-1;++Ye<Pt;)pr=se[Ye],us(pr,ot,Xt)?(us(dr,ot,Xt)||X.push(il(dr,pr,ot,Xt)),X.push(pr)):us(dr,ot,Xt)&&X.push(il(dr,pr,ot,Xt)),dr=pr;Te&&X.push(X[0]),ot=Xt}return X};function us(X,se,Te){return(Te[0]-se[0])*(X[1]-se[1])<(Te[1]-se[1])*(X[0]-se[0])}function il(X,se,Te,qe){var Ve=X[0],Ye=Te[0],Pt=se[0]-Ve,ot=qe[0]-Ye,Xt=X[1],dr=Te[1],pr=se[1]-Xt,Ur=qe[1]-dr,zr=(ot*(Xt-dr)-Ur*(Ve-Ye))/(Ur*Pt-ot*pr);return[Ve+zr*Pt,Xt+zr*pr]}function As(X){var se=X[0],Te=X[X.length-1];return!(se[0]-Te[0]||se[1]-Te[1])}var cl,Ks,zs,Io=[],ls,Yl,Su=[];function nc(){qs(this),this.edge=this.site=this.circle=null}function bs(X){var se=Io.pop()||new nc;return se.site=X,se}function Rn(X){qo(X),zs.remove(X),Io.push(X),qs(X)}function _a(X){var se=X.circle,Te=se.x,qe=se.cy,Ve={x:Te,y:qe},Ye=X.P,Pt=X.N,ot=[X];Rn(X);for(var Xt=Ye;Xt.circle&&p(Te-Xt.circle.x)<Je&&p(qe-Xt.circle.cy)<Je;)Ye=Xt.P,ot.unshift(Xt),Rn(Xt),Xt=Ye;ot.unshift(Xt),qo(Xt);for(var dr=Pt;dr.circle&&p(Te-dr.circle.x)<Je&&p(qe-dr.circle.cy)<Je;)Pt=dr.N,ot.push(dr),Rn(dr),dr=Pt;ot.push(dr),qo(dr);var pr=ot.length,Ur;for(Ur=1;Ur<pr;++Ur)dr=ot[Ur],Xt=ot[Ur-1],pl(dr.edge,Xt.site,dr.site,Ve);Xt=ot[0],dr=ot[pr-1],dr.edge=nf(Xt.site,dr.site,null,Ve),oa(Xt),oa(dr)}function Vu(X){for(var se=X.x,Te=X.y,qe,Ve,Ye,Pt,ot=zs._;ot;)if(Ye=ql(ot,Te)-se,Ye>Je)ot=ot.L;else if(Pt=se-xo(ot,Te),Pt>Je){if(!ot.R){qe=ot;break}ot=ot.R}else{Ye>-Je?(qe=ot.P,Ve=ot):Pt>-Je?(qe=ot,Ve=ot.N):qe=Ve=ot;break}var Xt=bs(X);if(zs.insert(qe,Xt),!(!qe&&!Ve)){if(qe===Ve){qo(qe),Ve=bs(qe.site),zs.insert(Xt,Ve),Xt.edge=Ve.edge=nf(qe.site,Xt.site),oa(qe),oa(Ve);return}if(!Ve){Xt.edge=nf(qe.site,Xt.site);return}qo(qe),qo(Ve);var dr=qe.site,pr=dr.x,Ur=dr.y,zr=X.x-pr,gi=X.y-Ur,xi=Ve.site,Wr=xi.x-pr,ii=xi.y-Ur,di=2*(zr*ii-gi*Wr),Li=zr*zr+gi*gi,Ti=Wr*Wr+ii*ii,Qr={x:(ii*Li-gi*Ti)/di+pr,y:(zr*Ti-Wr*Li)/di+Ur};pl(Ve.edge,dr,xi,Qr),Xt.edge=nf(dr,X,null,Qr),Ve.edge=nf(X,xi,null,Qr),oa(qe),oa(Ve)}}function ql(X,se){var Te=X.site,qe=Te.x,Ve=Te.y,Ye=Ve-se;if(!Ye)return qe;var Pt=X.P;if(!Pt)return-1/0;Te=Pt.site;var ot=Te.x,Xt=Te.y,dr=Xt-se;if(!dr)return ot;var pr=ot-qe,Ur=1/Ye-1/dr,zr=pr/dr;return Ur?(-zr+Math.sqrt(zr*zr-2*Ur*(pr*pr/(-2*dr)-Xt+dr/2+Ve-Ye/2)))/Ur+qe:(qe+ot)/2}function xo(X,se){var Te=X.N;if(Te)return ql(Te,se);var qe=X.site;return qe.y===se?qe.x:1/0}function Kl(X){this.site=X,this.edges=[]}Kl.prototype.prepare=function(){for(var X=this.edges,se=X.length,Te;se--;)Te=X[se].edge,(!Te.b||!Te.a)&&X.splice(se,1);return X.sort(Hl),X.length};function Ns(X){for(var se=X[0][0],Te=X[1][0],qe=X[0][1],Ve=X[1][1],Ye,Pt,ot,Xt,dr=Ks,pr=dr.length,Ur,zr,gi,xi,Wr,ii;pr--;)if(Ur=dr[pr],!(!Ur||!Ur.prepare()))for(gi=Ur.edges,xi=gi.length,zr=0;zr<xi;)ii=gi[zr].end(),ot=ii.x,Xt=ii.y,Wr=gi[++zr%xi].start(),Ye=Wr.x,Pt=Wr.y,(p(ot-Ye)>Je||p(Xt-Pt)>Je)&&(gi.splice(zr,0,new Zc(Vf(Ur.site,ii,p(ot-se)<Je&&Ve-Xt>Je?{x:se,y:p(Ye-se)<Je?Pt:Ve}:p(Xt-Ve)<Je&&Te-ot>Je?{x:p(Pt-Ve)<Je?Ye:Te,y:Ve}:p(ot-Te)<Je&&Xt-qe>Je?{x:Te,y:p(Ye-Te)<Je?Pt:qe}:p(Xt-qe)<Je&&ot-se>Je?{x:p(Pt-qe)<Je?Ye:se,y:qe}:null),Ur.site,null)),++xi)}function Hl(X,se){return se.angle-X.angle}function ac(){qs(this),this.x=this.y=this.arc=this.site=this.cy=null}function oa(X){var se=X.P,Te=X.N;if(!(!se||!Te)){var qe=se.site,Ve=X.site,Ye=Te.site;if(qe!==Ye){var Pt=Ve.x,ot=Ve.y,Xt=qe.x-Pt,dr=qe.y-ot,pr=Ye.x-Pt,ii=Ye.y-ot,Ur=2*(Xt*ii-dr*pr);if(!(Ur>=-We)){var zr=Xt*Xt+dr*dr,gi=pr*pr+ii*ii,xi=(ii*zr-dr*gi)/Ur,Wr=(Xt*gi-pr*zr)/Ur,ii=Wr+ot,di=Su.pop()||new ac;di.arc=X,di.site=Ve,di.x=xi+Pt,di.y=ii+Math.sqrt(xi*xi+Wr*Wr),di.cy=ii,X.circle=di;for(var Li=null,Ti=Yl._;Ti;)if(di.y<Ti.y||di.y===Ti.y&&di.x<=Ti.x)if(Ti.L)Ti=Ti.L;else{Li=Ti.P;break}else if(Ti.R)Ti=Ti.R;else{Li=Ti;break}Yl.insert(Li,di),Li||(ls=di)}}}}function qo(X){var se=X.circle;se&&(se.P||(ls=se.N),Yl.remove(se),Su.push(se),qs(se),X.circle=null)}function Oo(X,se,Te,qe){return function(Ve){var Ye=Ve.a,Pt=Ve.b,ot=Ye.x,Xt=Ye.y,dr=Pt.x,pr=Pt.y,Ur=0,zr=1,gi=dr-ot,xi=pr-Xt,Wr;if(Wr=X-ot,!(!gi&&Wr>0)){if(Wr/=gi,gi<0){if(Wr<Ur)return;Wr<zr&&(zr=Wr)}else if(gi>0){if(Wr>zr)return;Wr>Ur&&(Ur=Wr)}if(Wr=Te-ot,!(!gi&&Wr<0)){if(Wr/=gi,gi<0){if(Wr>zr)return;Wr>Ur&&(Ur=Wr)}else if(gi>0){if(Wr<Ur)return;Wr<zr&&(zr=Wr)}if(Wr=se-Xt,!(!xi&&Wr>0)){if(Wr/=xi,xi<0){if(Wr<Ur)return;Wr<zr&&(zr=Wr)}else if(xi>0){if(Wr>zr)return;Wr>Ur&&(Ur=Wr)}if(Wr=qe-Xt,!(!xi&&Wr<0)){if(Wr/=xi,xi<0){if(Wr>zr)return;Wr>Ur&&(Ur=Wr)}else if(xi>0){if(Wr<Ur)return;Wr<zr&&(zr=Wr)}return Ur>0&&(Ve.a={x:ot+Ur*gi,y:Xt+Ur*xi}),zr<1&&(Ve.b={x:ot+zr*gi,y:Xt+zr*xi}),Ve}}}}}}function Ol(X){for(var se=cl,Te=Oo(X[0][0],X[0][1],X[1][0],X[1][1]),qe=se.length,Ve;qe--;)Ve=se[qe],(!Pc(Ve,X)||!Te(Ve)||p(Ve.a.x-Ve.b.x)<Je&&p(Ve.a.y-Ve.b.y)<Je)&&(Ve.a=Ve.b=null,se.splice(qe,1))}function Pc(X,se){var Te=X.b;if(Te)return!0;var qe=X.a,Ve=se[0][0],Ye=se[1][0],Pt=se[0][1],ot=se[1][1],Xt=X.l,dr=X.r,pr=Xt.x,Ur=Xt.y,zr=dr.x,gi=dr.y,xi=(pr+zr)/2,Wr=(Ur+gi)/2,ii,di;if(gi===Ur){if(xi<Ve||xi>=Ye)return;if(pr>zr){if(!qe)qe={x:xi,y:Pt};else if(qe.y>=ot)return;Te={x:xi,y:ot}}else{if(!qe)qe={x:xi,y:ot};else if(qe.y<Pt)return;Te={x:xi,y:Pt}}}else if(ii=(pr-zr)/(gi-Ur),di=Wr-ii*xi,ii<-1||ii>1)if(pr>zr){if(!qe)qe={x:(Pt-di)/ii,y:Pt};else if(qe.y>=ot)return;Te={x:(ot-di)/ii,y:ot}}else{if(!qe)qe={x:(ot-di)/ii,y:ot};else if(qe.y<Pt)return;Te={x:(Pt-di)/ii,y:Pt}}else if(Ur<gi){if(!qe)qe={x:Ve,y:ii*Ve+di};else if(qe.x>=Ye)return;Te={x:Ye,y:ii*Ye+di}}else{if(!qe)qe={x:Ye,y:ii*Ye+di};else if(qe.x<Ve)return;Te={x:Ve,y:ii*Ve+di}}return X.a=qe,X.b=Te,!0}function Do(X,se){this.l=X,this.r=se,this.a=this.b=null}function nf(X,se,Te,qe){var Ve=new Do(X,se);return cl.push(Ve),Te&&pl(Ve,X,se,Te),qe&&pl(Ve,se,X,qe),Ks[X.i].edges.push(new Zc(Ve,X,se)),Ks[se.i].edges.push(new Zc(Ve,se,X)),Ve}function Vf(X,se,Te){var qe=new Do(X,null);return qe.a=se,qe.b=Te,cl.push(qe),qe}function pl(X,se,Te,qe){!X.a&&!X.b?(X.a=qe,X.l=se,X.r=Te):X.l===Te?X.b=qe:X.a=qe}function Zc(X,se,Te){var qe=X.a,Ve=X.b;this.edge=X,this.site=se,this.angle=Te?Math.atan2(Te.y-se.y,Te.x-se.x):X.l===se?Math.atan2(Ve.x-qe.x,qe.y-Ve.y):Math.atan2(qe.x-Ve.x,Ve.y-qe.y)}Zc.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function Jl(){this._=null}function qs(X){X.U=X.C=X.L=X.R=X.P=X.N=null}Jl.prototype={insert:function(X,se){var Te,qe,Ve;if(X){if(se.P=X,se.N=X.N,X.N&&(X.N.P=se),X.N=se,X.R){for(X=X.R;X.L;)X=X.L;X.L=se}else X.R=se;Te=X}else this._?(X=Cf(this._),se.P=null,se.N=X,X.P=X.L=se,Te=X):(se.P=se.N=null,this._=se,Te=null);for(se.L=se.R=null,se.U=Te,se.C=!0,X=se;Te&&Te.C;)qe=Te.U,Te===qe.L?(Ve=qe.R,Ve&&Ve.C?(Te.C=Ve.C=!1,qe.C=!0,X=qe):(X===Te.R&&(yu(this,Te),X=Te,Te=X.U),Te.C=!1,qe.C=!0,oc(this,qe))):(Ve=qe.L,Ve&&Ve.C?(Te.C=Ve.C=!1,qe.C=!0,X=qe):(X===Te.L&&(oc(this,Te),X=Te,Te=X.U),Te.C=!1,qe.C=!0,yu(this,qe))),Te=X.U;this._.C=!1},remove:function(X){X.N&&(X.N.P=X.P),X.P&&(X.P.N=X.N),X.N=X.P=null;var se=X.U,Te,qe=X.L,Ve=X.R,Ye,Pt;if(qe?Ve?Ye=Cf(Ve):Ye=qe:Ye=Ve,se?se.L===X?se.L=Ye:se.R=Ye:this._=Ye,qe&&Ve?(Pt=Ye.C,Ye.C=X.C,Ye.L=qe,qe.U=Ye,Ye!==Ve?(se=Ye.U,Ye.U=X.U,X=Ye.R,se.L=X,Ye.R=Ve,Ve.U=Ye):(Ye.U=se,se=Ye,X=Ye.R)):(Pt=X.C,X=Ye),X&&(X.U=se),!Pt){if(X&&X.C){X.C=!1;return}do{if(X===this._)break;if(X===se.L){if(Te=se.R,Te.C&&(Te.C=!1,se.C=!0,yu(this,se),Te=se.R),Te.L&&Te.L.C||Te.R&&Te.R.C){(!Te.R||!Te.R.C)&&(Te.L.C=!1,Te.C=!0,oc(this,Te),Te=se.R),Te.C=se.C,se.C=Te.R.C=!1,yu(this,se),X=this._;break}}else if(Te=se.L,Te.C&&(Te.C=!1,se.C=!0,oc(this,se),Te=se.L),Te.L&&Te.L.C||Te.R&&Te.R.C){(!Te.L||!Te.L.C)&&(Te.R.C=!1,Te.C=!0,yu(this,Te),Te=se.L),Te.C=se.C,se.C=Te.L.C=!1,oc(this,se),X=this._;break}Te.C=!0,X=se,se=se.U}while(!X.C);X&&(X.C=!1)}}};function yu(X,se){var Te=se,qe=se.R,Ve=Te.U;Ve?Ve.L===Te?Ve.L=qe:Ve.R=qe:X._=qe,qe.U=Ve,Te.U=qe,Te.R=qe.L,Te.R&&(Te.R.U=Te),qe.L=Te}function oc(X,se){var Te=se,qe=se.L,Ve=Te.U;Ve?Ve.L===Te?Ve.L=qe:Ve.R=qe:X._=qe,qe.U=Ve,Te.U=qe,Te.L=qe.R,Te.L&&(Te.L.U=Te),qe.R=Te}function Cf(X){for(;X.L;)X=X.L;return X}function sc(X,se){var Te=X.sort(jh).pop(),qe,Ve,Ye;for(cl=[],Ks=new Array(X.length),zs=new Jl,Yl=new Jl;;)if(Ye=ls,Te&&(!Ye||Te.y<Ye.y||Te.y===Ye.y&&Te.x<Ye.x))(Te.x!==qe||Te.y!==Ve)&&(Ks[Te.i]=new Kl(Te),Vu(Te),qe=Te.x,Ve=Te.y),Te=X.pop();else if(Ye)_a(Ye.arc);else break;se&&(Ol(se),Ns(se));var Pt={cells:Ks,edges:cl};return zs=Yl=cl=Ks=null,Pt}function jh(X,se){return se.y-X.y||se.x-X.x}e.geom.voronoi=function(X){var se=Ds,Te=Fs,qe=se,Ve=Te,Ye=Lf;if(X)return Pt(X);function Pt(Xt){var dr=new Array(Xt.length),pr=Ye[0][0],Ur=Ye[0][1],zr=Ye[1][0],gi=Ye[1][1];return sc(ot(Xt),Ye).cells.forEach(function(xi,Wr){var ii=xi.edges,di=xi.site,Li=dr[Wr]=ii.length?ii.map(function(Ti){var Qr=Ti.start();return[Qr.x,Qr.y]}):di.x>=pr&&di.x<=zr&&di.y>=Ur&&di.y<=gi?[[pr,gi],[zr,gi],[zr,Ur],[pr,Ur]]:[];Li.point=Xt[Wr]}),dr}function ot(Xt){return Xt.map(function(dr,pr){return{x:Math.round(qe(dr,pr)/Je)*Je,y:Math.round(Ve(dr,pr)/Je)*Je,i:pr}})}return Pt.links=function(Xt){return sc(ot(Xt)).edges.filter(function(dr){return dr.l&&dr.r}).map(function(dr){return{source:Xt[dr.l.i],target:Xt[dr.r.i]}})},Pt.triangles=function(Xt){var dr=[];return sc(ot(Xt)).cells.forEach(function(pr,Ur){for(var zr=pr.site,gi=pr.edges.sort(Hl),xi=-1,Wr=gi.length,ii,di,Li=gi[Wr-1].edge,Ti=Li.l===zr?Li.r:Li.l;++xi<Wr;)ii=Li,di=Ti,Li=gi[xi].edge,Ti=Li.l===zr?Li.r:Li.l,Ur<di.i&&Ur<Ti.i&&cs(zr,di,Ti)<0&&dr.push([Xt[Ur],Xt[di.i],Xt[Ti.i]])}),dr},Pt.x=function(Xt){return arguments.length?(qe=hi(se=Xt),Pt):se},Pt.y=function(Xt){return arguments.length?(Ve=hi(Te=Xt),Pt):Te},Pt.clipExtent=function(Xt){return arguments.length?(Ye=Xt==null?Lf:Xt,Pt):Ye===Lf?null:Ye},Pt.size=function(Xt){return arguments.length?Pt.clipExtent(Xt&&[[0,0],Xt]):Ye===Lf?null:Ye&&Ye[1]},Pt};var Lf=[[-1e6,-1e6],[1e6,1e6]];function cs(X,se,Te){return(X.x-Te.x)*(se.y-X.y)-(X.x-se.x)*(Te.y-X.y)}e.geom.delaunay=function(X){return e.geom.voronoi().triangles(X)},e.geom.quadtree=function(X,se,Te,qe,Ve){var Ye=Ds,Pt=Fs,ot;if(ot=arguments.length)return Ye=af,Pt=Gf,ot===3&&(Ve=Te,qe=se,Te=se=0),Xt(X);function Xt(dr){var pr,Ur=hi(Ye),zr=hi(Pt),gi,xi,Wr,ii,di,Li,Ti,Qr;if(se!=null)di=se,Li=Te,Ti=qe,Qr=Ve;else if(Ti=Qr=-(di=Li=1/0),gi=[],xi=[],ii=dr.length,ot)for(Wr=0;Wr<ii;++Wr)pr=dr[Wr],pr.x<di&&(di=pr.x),pr.y<Li&&(Li=pr.y),pr.x>Ti&&(Ti=pr.x),pr.y>Qr&&(Qr=pr.y),gi.push(pr.x),xi.push(pr.y);else for(Wr=0;Wr<ii;++Wr){var Pn=+Ur(pr=dr[Wr],Wr),kn=+zr(pr,Wr);Pn<di&&(di=Pn),kn<Li&&(Li=kn),Pn>Ti&&(Ti=Pn),kn>Qr&&(Qr=kn),gi.push(Pn),xi.push(kn)}var Bn=Ti-di,na=Qr-Li;Bn>na?Qr=Li+Bn:Ti=di+na;function Ea(Da,go,Is,Ms,Xs,Un,ja,Fo){if(!(isNaN(Is)||isNaN(Ms)))if(Da.leaf){var Uo=Da.x,$s=Da.y;if(Uo!=null)if(p(Uo-Is)+p($s-Ms)<.01)Ia(Da,go,Is,Ms,Xs,Un,ja,Fo);else{var Sl=Da.point;Da.x=Da.y=Da.point=null,Ia(Da,Sl,Uo,$s,Xs,Un,ja,Fo),Ia(Da,go,Is,Ms,Xs,Un,ja,Fo)}else Da.x=Is,Da.y=Ms,Da.point=go}else Ia(Da,go,Is,Ms,Xs,Un,ja,Fo)}function Ia(Da,go,Is,Ms,Xs,Un,ja,Fo){var Uo=(Xs+ja)*.5,$s=(Un+Fo)*.5,Sl=Is>=Uo,bu=Ms>=$s,dl=bu<<1|Sl;Da.leaf=!1,Da=Da.nodes[dl]||(Da.nodes[dl]=$l()),Sl?Xs=Uo:ja=Uo,bu?Un=$s:Fo=$s,Ea(Da,go,Is,Ms,Xs,Un,ja,Fo)}var yo=$l();if(yo.add=function(Da){Ea(yo,Da,+Ur(Da,++Wr),+zr(Da,Wr),di,Li,Ti,Qr)},yo.visit=function(Da){fl(Da,yo,di,Li,Ti,Qr)},yo.find=function(Da){return lc(yo,Da[0],Da[1],di,Li,Ti,Qr)},Wr=-1,se==null){for(;++Wr<ii;)Ea(yo,dr[Wr],gi[Wr],xi[Wr],di,Li,Ti,Qr);--Wr}else dr.forEach(yo.add);return gi=xi=dr=pr=null,yo}return Xt.x=function(dr){return arguments.length?(Ye=dr,Xt):Ye},Xt.y=function(dr){return arguments.length?(Pt=dr,Xt):Pt},Xt.extent=function(dr){return arguments.length?(dr==null?se=Te=qe=Ve=null:(se=+dr[0][0],Te=+dr[0][1],qe=+dr[1][0],Ve=+dr[1][1]),Xt):se==null?null:[[se,Te],[qe,Ve]]},Xt.size=function(dr){return arguments.length?(dr==null?se=Te=qe=Ve=null:(se=Te=0,qe=+dr[0],Ve=+dr[1]),Xt):se==null?null:[qe-se,Ve-Te]},Xt};function af(X){return X.x}function Gf(X){return X.y}function $l(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function fl(X,se,Te,qe,Ve,Ye){if(!X(se,Te,qe,Ve,Ye)){var Pt=(Te+Ve)*.5,ot=(qe+Ye)*.5,Xt=se.nodes;Xt[0]&&fl(X,Xt[0],Te,qe,Pt,ot),Xt[1]&&fl(X,Xt[1],Pt,qe,Ve,ot),Xt[2]&&fl(X,Xt[2],Te,ot,Pt,Ye),Xt[3]&&fl(X,Xt[3],Pt,ot,Ve,Ye)}}function lc(X,se,Te,qe,Ve,Ye,Pt){var ot=1/0,Xt;return function dr(pr,Ur,zr,gi,xi){if(!(Ur>Ye||zr>Pt||gi<qe||xi<Ve)){if(Wr=pr.point){var Wr,ii=se-pr.x,di=Te-pr.y,Li=ii*ii+di*di;if(Li<ot){var Ti=Math.sqrt(ot=Li);qe=se-Ti,Ve=Te-Ti,Ye=se+Ti,Pt=Te+Ti,Xt=Wr}}for(var Qr=pr.nodes,Pn=(Ur+gi)*.5,kn=(zr+xi)*.5,Bn=se>=Pn,na=Te>=kn,Ea=na<<1|Bn,Ia=Ea+4;Ea<Ia;++Ea)if(pr=Qr[Ea&3])switch(Ea&3){case 0:dr(pr,Ur,zr,Pn,kn);break;case 1:dr(pr,Pn,zr,gi,kn);break;case 2:dr(pr,Ur,kn,Pn,xi);break;case 3:dr(pr,Pn,kn,gi,xi);break}}}(X,qe,Ve,Ye,Pt),Xt}e.interpolateRgb=Fu;function Fu(X,se){X=e.rgb(X),se=e.rgb(se);var Te=X.r,qe=X.g,Ve=X.b,Ye=se.r-Te,Pt=se.g-qe,ot=se.b-Ve;return function(Xt){return"#"+jn(Math.round(Te+Ye*Xt))+jn(Math.round(qe+Pt*Xt))+jn(Math.round(Ve+ot*Xt))}}e.interpolateObject=Es;function Es(X,se){var Te={},qe={},Ve;for(Ve in X)Ve in se?Te[Ve]=xl(X[Ve],se[Ve]):qe[Ve]=X[Ve];for(Ve in se)Ve in X||(qe[Ve]=se[Ve]);return function(Ye){for(Ve in Te)qe[Ve]=Te[Ve](Ye);return qe}}e.interpolateNumber=Hs;function Hs(X,se){return X=+X,se=+se,function(Te){return X*(1-Te)+se*Te}}e.interpolateString=Go;function Go(X,se){var Te=ps.lastIndex=uc.lastIndex=0,qe,Ve,Ye,Pt=-1,ot=[],Xt=[];for(X=X+"",se=se+"";(qe=ps.exec(X))&&(Ve=uc.exec(se));)(Ye=Ve.index)>Te&&(Ye=se.slice(Te,Ye),ot[Pt]?ot[Pt]+=Ye:ot[++Pt]=Ye),(qe=qe[0])===(Ve=Ve[0])?ot[Pt]?ot[Pt]+=Ve:ot[++Pt]=Ve:(ot[++Pt]=null,Xt.push({i:Pt,x:Hs(qe,Ve)})),Te=uc.lastIndex;return Te<se.length&&(Ye=se.slice(Te),ot[Pt]?ot[Pt]+=Ye:ot[++Pt]=Ye),ot.length<2?Xt[0]?(se=Xt[0].x,function(dr){return se(dr)+""}):function(){return se}:(se=Xt.length,function(dr){for(var pr=0,Ur;pr<se;++pr)ot[(Ur=Xt[pr]).i]=Ur.x(dr);return ot.join("")})}var ps=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,uc=new RegExp(ps.source,"g");e.interpolate=xl;function xl(X,se){for(var Te=e.interpolators.length,qe;--Te>=0&&!(qe=e.interpolators[Te](X,se)););return qe}e.interpolators=[function(X,se){var Te=typeof se;return(Te==="string"?Jr.has(se.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(se)?Fu:Go:se instanceof Jn?Fu:Array.isArray(se)?Gu:Te==="object"&&isNaN(se)?Es:Hs)(X,se)}],e.interpolateArray=Gu;function Gu(X,se){var Te=[],qe=[],Ve=X.length,Ye=se.length,Pt=Math.min(X.length,se.length),ot;for(ot=0;ot<Pt;++ot)Te.push(xl(X[ot],se[ot]));for(;ot<Ve;++ot)qe[ot]=X[ot];for(;ot<Ye;++ot)qe[ot]=se[ot];return function(Xt){for(ot=0;ot<Pt;++ot)qe[ot]=Te[ot](Xt);return qe}}var Os=function(){return G},od=e.map({linear:Os,poly:Hf,quad:function(){return of},cubic:function(){return Hu},sin:function(){return Ic},exp:function(){return yf},circle:function(){return Bl},elastic:Ah,back:Qf,bounce:function(){return _f}}),Po=e.map({in:G,out:Ko,"in-out":Pa,"out-in":function(X){return Pa(Ko(X))}});e.ease=function(X){var se=X.indexOf("-"),Te=se>=0?X.slice(0,se):X,qe=se>=0?X.slice(se+1):"in";return Te=od.get(Te)||Os,qe=Po.get(qe)||G,sd(qe(Te.apply(null,t.call(arguments,1))))};function sd(X){return function(se){return se<=0?0:se>=1?1:X(se)}}function Ko(X){return function(se){return 1-X(1-se)}}function Pa(X){return function(se){return .5*(se<.5?X(2*se):2-X(2-2*se))}}function of(X){return X*X}function Hu(X){return X*X*X}function bl(X){if(X<=0)return 0;if(X>=1)return 1;var se=X*X,Te=se*X;return 4*(X<.5?Te:3*(X-se)+Te-.75)}function Hf(X){return function(se){return Math.pow(se,X)}}function Ic(X){return 1-Math.cos(X*Kt)}function yf(X){return Math.pow(2,10*(X-1))}function Bl(X){return 1-Math.sqrt(1-X*X)}function Ah(X,se){var Te;return arguments.length<2&&(se=.45),arguments.length?Te=se/xt*Math.asin(1/X):(X=1,Te=se/4),function(qe){return 1+X*Math.pow(2,-10*qe)*Math.sin((qe-Te)*xt/se)}}function Qf(X){return X||(X=1.70158),function(se){return se*se*((X+1)*se-X)}}function _f(X){return X<1/2.75?7.5625*X*X:X<2/2.75?7.5625*(X-=1.5/2.75)*X+.75:X<2.5/2.75?7.5625*(X-=2.25/2.75)*X+.9375:7.5625*(X-=2.625/2.75)*X+.984375}e.interpolateHcl=Yc;function Yc(X,se){X=e.hcl(X),se=e.hcl(se);var Te=X.h,qe=X.c,Ve=X.l,Ye=se.h-Te,Pt=se.c-qe,ot=se.l-Ve;return isNaN(Pt)&&(Pt=0,qe=isNaN(qe)?se.c:qe),isNaN(Ye)?(Ye=0,Te=isNaN(Te)?se.h:Te):Ye>180?Ye-=360:Ye<-180&&(Ye+=360),function(Xt){return Xr(Te+Ye*Xt,qe+Pt*Xt,Ve+ot*Xt)+""}}e.interpolateHsl=eh;function eh(X,se){X=e.hsl(X),se=e.hsl(se);var Te=X.h,qe=X.s,Ve=X.l,Ye=se.h-Te,Pt=se.s-qe,ot=se.l-Ve;return isNaN(Pt)&&(Pt=0,qe=isNaN(qe)?se.s:qe),isNaN(Ye)?(Ye=0,Te=isNaN(Te)?se.h:Te):Ye>180?Ye-=360:Ye<-180&&(Ye+=360),function(Xt){return tr(Te+Ye*Xt,qe+Pt*Xt,Ve+ot*Xt)+""}}e.interpolateLab=th;function th(X,se){X=e.lab(X),se=e.lab(se);var Te=X.l,qe=X.a,Ve=X.b,Ye=se.l-Te,Pt=se.a-qe,ot=se.b-Ve;return function(Xt){return yn(Te+Ye*Xt,qe+Pt*Xt,Ve+ot*Xt)+""}}e.interpolateRound=ju;function ju(X,se){return se-=X,function(Te){return Math.round(X+se*Te)}}e.transform=function(X){var se=n.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(Te){if(Te!=null){se.setAttribute("transform",Te);var qe=se.transform.baseVal.consolidate()}return new jf(qe?qe.matrix:Kc)})(X)};function jf(X){var se=[X.a,X.b],Te=[X.c,X.d],qe=sf(se),Ve=cc(se,Te),Ye=sf(Nl(Te,se,-Ve))||0;se[0]*Te[1]<Te[0]*se[1]&&(se[0]*=-1,se[1]*=-1,qe*=-1,Ve*=-1),this.rotate=(qe?Math.atan2(se[1],se[0]):Math.atan2(-Te[0],Te[1]))*Mr,this.translate=[X.e,X.f],this.scale=[qe,Ye],this.skew=Ye?Math.atan2(Ve,Ye)*Mr:0}jf.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function cc(X,se){return X[0]*se[0]+X[1]*se[1]}function sf(X){var se=Math.sqrt(cc(X,X));return se&&(X[0]/=se,X[1]/=se),se}function Nl(X,se,Te){return X[0]+=Te*se[0],X[1]+=Te*se[1],X}var Kc={a:1,b:0,c:0,d:1,e:0,f:0};e.interpolateTransform=lf;function Rc(X){return X.length?X.pop()+",":""}function gs(X,se,Te,qe){if(X[0]!==se[0]||X[1]!==se[1]){var Ve=Te.push("translate(",null,",",null,")");qe.push({i:Ve-4,x:Hs(X[0],se[0])},{i:Ve-2,x:Hs(X[1],se[1])})}else(se[0]||se[1])&&Te.push("translate("+se+")")}function Wf(X,se,Te,qe){X!==se?(X-se>180?se+=360:se-X>180&&(X+=360),qe.push({i:Te.push(Rc(Te)+"rotate(",null,")")-2,x:Hs(X,se)})):se&&Te.push(Rc(Te)+"rotate("+se+")")}function Wh(X,se,Te,qe){X!==se?qe.push({i:Te.push(Rc(Te)+"skewX(",null,")")-2,x:Hs(X,se)}):se&&Te.push(Rc(Te)+"skewX("+se+")")}function rh(X,se,Te,qe){if(X[0]!==se[0]||X[1]!==se[1]){var Ve=Te.push(Rc(Te)+"scale(",null,",",null,")");qe.push({i:Ve-4,x:Hs(X[0],se[0])},{i:Ve-2,x:Hs(X[1],se[1])})}else(se[0]!==1||se[1]!==1)&&Te.push(Rc(Te)+"scale("+se+")")}function lf(X,se){var Te=[],qe=[];return X=e.transform(X),se=e.transform(se),gs(X.translate,se.translate,Te,qe),Wf(X.rotate,se.rotate,Te,qe),Wh(X.skew,se.skew,Te,qe),rh(X.scale,se.scale,Te,qe),X=se=null,function(Ve){for(var Ye=-1,Pt=qe.length,ot;++Ye<Pt;)Te[(ot=qe[Ye]).i]=ot.x(Ve);return Te.join("")}}function Sh(X,se){return se=(se-=X=+X)||1/se,function(Te){return(Te-X)/se}}function Mu(X,se){return se=(se-=X=+X)||1/se,function(Te){return Math.max(0,Math.min(1,(Te-X)/se))}}e.layout={},e.layout.bundle=function(){return function(X){for(var se=[],Te=-1,qe=X.length;++Te<qe;)se.push(ih(X[Te]));return se}};function ih(X){for(var se=X.source,Te=X.target,qe=Eu(se,Te),Ve=[se];se!==qe;)se=se.parent,Ve.push(se);for(var Ye=Ve.length;Te!==qe;)Ve.splice(Ye,0,Te),Te=Te.parent;return Ve}function js(X){for(var se=[],Te=X.parent;Te!=null;)se.push(X),X=Te,Te=Te.parent;return se.push(X),se}function Eu(X,se){if(X===se)return X;for(var Te=js(X),qe=js(se),Ve=Te.pop(),Ye=qe.pop(),Pt=null;Ve===Ye;)Pt=Ve,Ve=Te.pop(),Ye=qe.pop();return Pt}e.layout.chord=function(){var X={},se,Te,qe,Ve,Ye=0,Pt,ot,Xt;function dr(){var Ur={},zr=[],gi=e.range(Ve),xi=[],Wr,ii,di,Li,Ti;for(se=[],Te=[],Wr=0,Li=-1;++Li<Ve;){for(ii=0,Ti=-1;++Ti<Ve;)ii+=qe[Li][Ti];zr.push(ii),xi.push(e.range(Ve)),Wr+=ii}for(Pt&&gi.sort(function(yo,Da){return Pt(zr[yo],zr[Da])}),ot&&xi.forEach(function(yo,Da){yo.sort(function(go,Is){return ot(qe[Da][go],qe[Da][Is])})}),Wr=(xt-Ye*Ve)/Wr,ii=0,Li=-1;++Li<Ve;){for(di=ii,Ti=-1;++Ti<Ve;){var Qr=gi[Li],Pn=xi[Qr][Ti],kn=qe[Qr][Pn],Bn=ii,na=ii+=kn*Wr;Ur[Qr+"-"+Pn]={index:Qr,subindex:Pn,startAngle:Bn,endAngle:na,value:kn}}Te[Qr]={index:Qr,startAngle:di,endAngle:ii,value:zr[Qr]},ii+=Ye}for(Li=-1;++Li<Ve;)for(Ti=Li-1;++Ti<Ve;){var Ea=Ur[Li+"-"+Ti],Ia=Ur[Ti+"-"+Li];(Ea.value||Ia.value)&&se.push(Ea.value<Ia.value?{source:Ia,target:Ea}:{source:Ea,target:Ia})}Xt&&pr()}function pr(){se.sort(function(Ur,zr){return Xt((Ur.source.value+Ur.target.value)/2,(zr.source.value+zr.target.value)/2)})}return X.matrix=function(Ur){return arguments.length?(Ve=(qe=Ur)&&qe.length,se=Te=null,X):qe},X.padding=function(Ur){return arguments.length?(Ye=Ur,se=Te=null,X):Ye},X.sortGroups=function(Ur){return arguments.length?(Pt=Ur,se=Te=null,X):Pt},X.sortSubgroups=function(Ur){return arguments.length?(ot=Ur,se=null,X):ot},X.sortChords=function(Ur){return arguments.length?(Xt=Ur,se&&pr(),X):Xt},X.chords=function(){return se||dr(),se},X.groups=function(){return Te||dr(),Te},X},e.layout.force=function(){var X={},se=e.dispatch("start","tick","end"),Te,qe=[1,1],Ve,Ye,Pt=.9,ot=nl,Xt=nh,dr=-30,pr=Mh,Ur=.1,zr=.64,gi=[],xi=[],Wr,ii,di;function Li(Qr){return function(Pn,kn,Bn,na){if(Pn.point!==Qr){var Ea=Pn.cx-Qr.x,Ia=Pn.cy-Qr.y,yo=na-kn,Da=Ea*Ea+Ia*Ia;if(yo*yo/zr<Da){if(Da<pr){var go=Pn.charge/Da;Qr.px-=Ea*go,Qr.py-=Ia*go}return!0}if(Pn.point&&Da&&Da<pr){var go=Pn.pointCharge/Da;Qr.px-=Ea*go,Qr.py-=Ia*go}}return!Pn.charge}}X.tick=function(){if((Ye*=.99)<.005)return Te=null,se.end({type:"end",alpha:Ye=0}),!0;var Qr=gi.length,Pn=xi.length,kn,Bn,na,Ea,Ia,yo,Da,go,Is;for(Bn=0;Bn<Pn;++Bn)na=xi[Bn],Ea=na.source,Ia=na.target,go=Ia.x-Ea.x,Is=Ia.y-Ea.y,(yo=go*go+Is*Is)&&(yo=Ye*ii[Bn]*((yo=Math.sqrt(yo))-Wr[Bn])/yo,go*=yo,Is*=yo,Ia.x-=go*(Da=Ea.weight+Ia.weight?Ea.weight/(Ea.weight+Ia.weight):.5),Ia.y-=Is*Da,Ea.x+=go*(Da=1-Da),Ea.y+=Is*Da);if((Da=Ye*Ur)&&(go=qe[0]/2,Is=qe[1]/2,Bn=-1,Da))for(;++Bn<Qr;)na=gi[Bn],na.x+=(go-na.x)*Da,na.y+=(Is-na.y)*Da;if(dr)for(_u(kn=e.geom.quadtree(gi),Ye,di),Bn=-1;++Bn<Qr;)(na=gi[Bn]).fixed||kn.visit(Li(na));for(Bn=-1;++Bn<Qr;)na=gi[Bn],na.fixed?(na.x=na.px,na.y=na.py):(na.x-=(na.px-(na.px=na.x))*Pt,na.y-=(na.py-(na.py=na.y))*Pt);se.tick({type:"tick",alpha:Ye})},X.nodes=function(Qr){return arguments.length?(gi=Qr,X):gi},X.links=function(Qr){return arguments.length?(xi=Qr,X):xi},X.size=function(Qr){return arguments.length?(qe=Qr,X):qe},X.linkDistance=function(Qr){return arguments.length?(ot=typeof Qr=="function"?Qr:+Qr,X):ot},X.distance=X.linkDistance,X.linkStrength=function(Qr){return arguments.length?(Xt=typeof Qr=="function"?Qr:+Qr,X):Xt},X.friction=function(Qr){return arguments.length?(Pt=+Qr,X):Pt},X.charge=function(Qr){return arguments.length?(dr=typeof Qr=="function"?Qr:+Qr,X):dr},X.chargeDistance=function(Qr){return arguments.length?(pr=Qr*Qr,X):Math.sqrt(pr)},X.gravity=function(Qr){return arguments.length?(Ur=+Qr,X):Ur},X.theta=function(Qr){return arguments.length?(zr=Qr*Qr,X):Math.sqrt(zr)},X.alpha=function(Qr){return arguments.length?(Qr=+Qr,Ye?Qr>0?Ye=Qr:(Te.c=null,Te.t=NaN,Te=null,se.end({type:"end",alpha:Ye=0})):Qr>0&&(se.start({type:"start",alpha:Ye=Qr}),Te=No(X.tick)),X):Ye},X.start=function(){var Qr,Pn=gi.length,kn=xi.length,Bn=qe[0],na=qe[1],Ea,Ia;for(Qr=0;Qr<Pn;++Qr)(Ia=gi[Qr]).index=Qr,Ia.weight=0;for(Qr=0;Qr<kn;++Qr)Ia=xi[Qr],typeof Ia.source=="number"&&(Ia.source=gi[Ia.source]),typeof Ia.target=="number"&&(Ia.target=gi[Ia.target]),++Ia.source.weight,++Ia.target.weight;for(Qr=0;Qr<Pn;++Qr)Ia=gi[Qr],isNaN(Ia.x)&&(Ia.x=yo("x",Bn)),isNaN(Ia.y)&&(Ia.y=yo("y",na)),isNaN(Ia.px)&&(Ia.px=Ia.x),isNaN(Ia.py)&&(Ia.py=Ia.y);if(Wr=[],typeof ot=="function")for(Qr=0;Qr<kn;++Qr)Wr[Qr]=+ot.call(this,xi[Qr],Qr);else for(Qr=0;Qr<kn;++Qr)Wr[Qr]=ot;if(ii=[],typeof Xt=="function")for(Qr=0;Qr<kn;++Qr)ii[Qr]=+Xt.call(this,xi[Qr],Qr);else for(Qr=0;Qr<kn;++Qr)ii[Qr]=Xt;if(di=[],typeof dr=="function")for(Qr=0;Qr<Pn;++Qr)di[Qr]=+dr.call(this,gi[Qr],Qr);else for(Qr=0;Qr<Pn;++Qr)di[Qr]=dr;function yo(Da,go){if(!Ea){for(Ea=new Array(Pn),Xs=0;Xs<Pn;++Xs)Ea[Xs]=[];for(Xs=0;Xs<kn;++Xs){var Is=xi[Xs];Ea[Is.source.index].push(Is.target),Ea[Is.target.index].push(Is.source)}}for(var Ms=Ea[Qr],Xs=-1,Un=Ms.length,ja;++Xs<Un;)if(!isNaN(ja=Ms[Xs][Da]))return ja;return Math.random()*go}return X.resume()},X.resume=function(){return X.alpha(.1)},X.stop=function(){return X.alpha(0)},X.drag=function(){if(Ve||(Ve=e.behavior.drag().origin(G).on("dragstart.force",Dc).on("drag.force",Ti).on("dragend.force",ks)),!arguments.length)return Ve;this.on("mouseover.force",bc).on("mouseout.force",hu).call(Ve)};function Ti(Qr){Qr.px=e.event.x,Qr.py=e.event.y,X.resume()}return e.rebind(X,se,"on")};function Dc(X){X.fixed|=2}function ks(X){X.fixed&=-7}function bc(X){X.fixed|=4,X.px=X.x,X.py=X.y}function hu(X){X.fixed&=-5}function _u(X,se,Te){var qe=0,Ve=0;if(X.charge=0,!X.leaf)for(var Ye=X.nodes,Pt=Ye.length,ot=-1,Xt;++ot<Pt;)Xt=Ye[ot],Xt!=null&&(_u(Xt,se,Te),X.charge+=Xt.charge,qe+=Xt.charge*Xt.cx,Ve+=Xt.charge*Xt.cy);if(X.point){X.leaf||(X.point.x+=Math.random()-.5,X.point.y+=Math.random()-.5);var dr=se*Te[X.point.index];X.charge+=X.pointCharge=dr,qe+=dr*X.point.x,Ve+=dr*X.point.y}X.cx=qe/X.charge,X.cy=Ve/X.charge}var nl=20,nh=1,Mh=1/0;e.layout.hierarchy=function(){var X=Pf,se=bd,Te=xf;function qe(Ve){var Ye=[Ve],Pt=[],ot;for(Ve.depth=0;(ot=Ye.pop())!=null;)if(Pt.push(ot),(dr=se.call(qe,ot,ot.depth))&&(Xt=dr.length)){for(var Xt,dr,pr;--Xt>=0;)Ye.push(pr=dr[Xt]),pr.parent=ot,pr.depth=ot.depth+1;Te&&(ot.value=0),ot.children=dr}else Te&&(ot.value=+Te.call(qe,ot,ot.depth)||0),delete ot.children;return wc(Ve,function(Ur){var zr,gi;X&&(zr=Ur.children)&&zr.sort(X),Te&&(gi=Ur.parent)&&(gi.value+=Ur.value)}),Pt}return qe.sort=function(Ve){return arguments.length?(X=Ve,qe):X},qe.children=function(Ve){return arguments.length?(se=Ve,qe):se},qe.value=function(Ve){return arguments.length?(Te=Ve,qe):Te},qe.revalue=function(Ve){return Te&&(Fc(Ve,function(Ye){Ye.children&&(Ye.value=0)}),wc(Ve,function(Ye){var Pt;Ye.children||(Ye.value=+Te.call(qe,Ye,Ye.depth)||0),(Pt=Ye.parent)&&(Pt.value+=Ye.value)})),Ve},qe};function zu(X,se){return e.rebind(X,se,"sort","children","value"),X.nodes=X,X.links=qu,X}function Fc(X,se){for(var Te=[X];(X=Te.pop())!=null;)if(se(X),(Ve=X.children)&&(qe=Ve.length))for(var qe,Ve;--qe>=0;)Te.push(Ve[qe])}function wc(X,se){for(var Te=[X],qe=[];(X=Te.pop())!=null;)if(qe.push(X),(Pt=X.children)&&(Ye=Pt.length))for(var Ve=-1,Ye,Pt;++Ve<Ye;)Te.push(Pt[Ve]);for(;(X=qe.pop())!=null;)se(X)}function bd(X){return X.children}function xf(X){return X.value}function Pf(X,se){return se.value-X.value}function qu(X){return e.merge(X.map(function(se){return(se.children||[]).map(function(Te){return{source:se,target:Te}})}))}e.layout.partition=function(){var X=e.layout.hierarchy(),se=[1,1];function Te(Ye,Pt,ot,Xt){var dr=Ye.children;if(Ye.x=Pt,Ye.y=Ye.depth*Xt,Ye.dx=ot,Ye.dy=Xt,dr&&(Ur=dr.length)){var pr=-1,Ur,zr,gi;for(ot=Ye.value?ot/Ye.value:0;++pr<Ur;)Te(zr=dr[pr],Pt,gi=zr.value*ot,Xt),Pt+=gi}}function qe(Ye){var Pt=Ye.children,ot=0;if(Pt&&(dr=Pt.length))for(var Xt=-1,dr;++Xt<dr;)ot=Math.max(ot,qe(Pt[Xt]));return 1+ot}function Ve(Ye,Pt){var ot=X.call(this,Ye,Pt);return Te(ot[0],0,se[0],se[1]/qe(ot[0])),ot}return Ve.size=function(Ye){return arguments.length?(se=Ye,Ve):se},zu(Ve,X)},e.layout.pie=function(){var X=Number,se=bf,Te=0,qe=xt,Ve=0;function Ye(Pt){var ot=Pt.length,Xt=Pt.map(function(Li,Ti){return+X.call(Ye,Li,Ti)}),dr=+(typeof Te=="function"?Te.apply(this,arguments):Te),pr=(typeof qe=="function"?qe.apply(this,arguments):qe)-dr,Ur=Math.min(Math.abs(pr)/ot,+(typeof Ve=="function"?Ve.apply(this,arguments):Ve)),zr=Ur*(pr<0?-1:1),gi=e.sum(Xt),xi=gi?(pr-ot*zr)/gi:0,Wr=e.range(ot),ii=[],di;return se!=null&&Wr.sort(se===bf?function(Li,Ti){return Xt[Ti]-Xt[Li]}:function(Li,Ti){return se(Pt[Li],Pt[Ti])}),Wr.forEach(function(Li){ii[Li]={data:Pt[Li],value:di=Xt[Li],startAngle:dr,endAngle:dr+=di*xi+zr,padAngle:Ur}}),ii}return Ye.value=function(Pt){return arguments.length?(X=Pt,Ye):X},Ye.sort=function(Pt){return arguments.length?(se=Pt,Ye):se},Ye.startAngle=function(Pt){return arguments.length?(Te=Pt,Ye):Te},Ye.endAngle=function(Pt){return arguments.length?(qe=Pt,Ye):qe},Ye.padAngle=function(Pt){return arguments.length?(Ve=Pt,Ye):Ve},Ye};var bf={};e.layout.stack=function(){var X=G,se=du,Te=ku,qe=Xh,Ve=jl,Ye=uf;function Pt(ot,Xt){if(!(xi=ot.length))return ot;var dr=ot.map(function(Li,Ti){return X.call(Pt,Li,Ti)}),pr=dr.map(function(Li){return Li.map(function(Ti,Qr){return[Ve.call(Pt,Ti,Qr),Ye.call(Pt,Ti,Qr)]})}),Ur=se.call(Pt,pr,Xt);dr=e.permute(dr,Ur),pr=e.permute(pr,Ur);var zr=Te.call(Pt,pr,Xt),gi=dr[0].length,xi,Wr,ii,di;for(ii=0;ii<gi;++ii)for(qe.call(Pt,dr[0][ii],di=zr[ii],pr[0][ii][1]),Wr=1;Wr<xi;++Wr)qe.call(Pt,dr[Wr][ii],di+=pr[Wr-1][ii][1],pr[Wr][ii][1]);return ot}return Pt.values=function(ot){return arguments.length?(X=ot,Pt):X},Pt.order=function(ot){return arguments.length?(se=typeof ot=="function"?ot:If.get(ot)||du,Pt):se},Pt.offset=function(ot){return arguments.length?(Te=typeof ot=="function"?ot:Cs.get(ot)||ku,Pt):Te},Pt.x=function(ot){return arguments.length?(Ve=ot,Pt):Ve},Pt.y=function(ot){return arguments.length?(Ye=ot,Pt):Ye},Pt.out=function(ot){return arguments.length?(qe=ot,Pt):qe},Pt};function jl(X){return X.x}function uf(X){return X.y}function Xh(X,se,Te){X.y0=se,X.y=Te}var If=e.map({"inside-out":function(X){var se=X.length,Te,qe,Ve=X.map(Xf),Ye=X.map(Us),Pt=e.range(se).sort(function(Ur,zr){return Ve[Ur]-Ve[zr]}),ot=0,Xt=0,dr=[],pr=[];for(Te=0;Te<se;++Te)qe=Pt[Te],ot<Xt?(ot+=Ye[qe],dr.push(qe)):(Xt+=Ye[qe],pr.push(qe));return pr.reverse().concat(dr)},reverse:function(X){return e.range(X.length).reverse()},default:du}),Cs=e.map({silhouette:function(X){var se=X.length,Te=X[0].length,qe=[],Ve=0,Ye,Pt,ot,Xt=[];for(Pt=0;Pt<Te;++Pt){for(Ye=0,ot=0;Ye<se;Ye++)ot+=X[Ye][Pt][1];ot>Ve&&(Ve=ot),qe.push(ot)}for(Pt=0;Pt<Te;++Pt)Xt[Pt]=(Ve-qe[Pt])/2;return Xt},wiggle:function(X){var se=X.length,Te=X[0],qe=Te.length,Ve,Ye,Pt,ot,Xt,dr,pr,Ur,zr,gi=[];for(gi[0]=Ur=zr=0,Ye=1;Ye<qe;++Ye){for(Ve=0,ot=0;Ve<se;++Ve)ot+=X[Ve][Ye][1];for(Ve=0,Xt=0,pr=Te[Ye][0]-Te[Ye-1][0];Ve<se;++Ve){for(Pt=0,dr=(X[Ve][Ye][1]-X[Ve][Ye-1][1])/(2*pr);Pt<Ve;++Pt)dr+=(X[Pt][Ye][1]-X[Pt][Ye-1][1])/pr;Xt+=dr*X[Ve][Ye][1]}gi[Ye]=Ur-=ot?Xt/ot*pr:0,Ur<zr&&(zr=Ur)}for(Ye=0;Ye<qe;++Ye)gi[Ye]-=zr;return gi},expand:function(X){var se=X.length,Te=X[0].length,qe=1/se,Ve,Ye,Pt,ot=[];for(Ye=0;Ye<Te;++Ye){for(Ve=0,Pt=0;Ve<se;Ve++)Pt+=X[Ve][Ye][1];if(Pt)for(Ve=0;Ve<se;Ve++)X[Ve][Ye][1]/=Pt;else for(Ve=0;Ve<se;Ve++)X[Ve][Ye][1]=qe}for(Ye=0;Ye<Te;++Ye)ot[Ye]=0;return ot},zero:ku});function du(X){return e.range(X.length)}function ku(X){for(var se=-1,Te=X[0].length,qe=[];++se<Te;)qe[se]=0;return qe}function Xf(X){for(var se=1,Te=0,qe=X[0][1],Ve,Ye=X.length;se<Ye;++se)(Ve=X[se][1])>qe&&(Te=se,qe=Ve);return Te}function Us(X){return X.reduce(wf,0)}function wf(X,se){return X+se[1]}e.layout.histogram=function(){var X=!0,se=Number,Te=Rf,qe=zc;function Ve(Ye,zr){for(var ot=[],Xt=Ye.map(se,this),dr=Te.call(this,Xt,zr),pr=qe.call(this,dr,Xt,zr),Ur,zr=-1,gi=Xt.length,xi=pr.length-1,Wr=X?1:1/gi,ii;++zr<xi;)Ur=ot[zr]=[],Ur.dx=pr[zr+1]-(Ur.x=pr[zr]),Ur.y=0;if(xi>0)for(zr=-1;++zr<gi;)ii=Xt[zr],ii>=dr[0]&&ii<=dr[1]&&(Ur=ot[e.bisect(pr,ii,1,xi)-1],Ur.y+=Wr,Ur.push(Ye[zr]));return ot}return Ve.value=function(Ye){return arguments.length?(se=Ye,Ve):se},Ve.range=function(Ye){return arguments.length?(Te=hi(Ye),Ve):Te},Ve.bins=function(Ye){return arguments.length?(qe=typeof Ye=="number"?function(Pt){return Wu(Pt,Ye)}:hi(Ye),Ve):qe},Ve.frequency=function(Ye){return arguments.length?(X=!!Ye,Ve):X},Ve};function zc(X,se){return Wu(X,Math.ceil(Math.log(se.length)/Math.LN2+1))}function Wu(X,se){for(var Te=-1,qe=+X[0],Ve=(X[1]-qe)/se,Ye=[];++Te<=se;)Ye[Te]=Ve*Te+qe;return Ye}function Rf(X){return[e.min(X),e.max(X)]}e.layout.pack=function(){var X=e.layout.hierarchy().sort(Xu),se=0,Te=[1,1],qe;function Ve(Ye,Pt){var ot=X.call(this,Ye,Pt),Xt=ot[0],dr=Te[0],pr=Te[1],Ur=qe==null?Math.sqrt:typeof qe=="function"?qe:function(){return qe};if(Xt.x=Xt.y=0,wc(Xt,function(gi){gi.r=+Ur(gi.value)}),wc(Xt,ah),se){var zr=se*(qe?1:Math.max(2*Xt.r/dr,2*Xt.r/pr))/2;wc(Xt,function(gi){gi.r+=zr}),wc(Xt,ah),wc(Xt,function(gi){gi.r-=zr})}return Tc(Xt,dr/2,pr/2,qe?1:1/Math.max(2*Xt.r/dr,2*Xt.r/pr)),ot}return Ve.size=function(Ye){return arguments.length?(Te=Ye,Ve):Te},Ve.radius=function(Ye){return arguments.length?(qe=Ye==null||typeof Ye=="function"?Ye:+Ye,Ve):qe},Ve.padding=function(Ye){return arguments.length?(se=+Ye,Ve):se},zu(Ve,X)};function Xu(X,se){return X.value-se.value}function cf(X,se){var Te=X._pack_next;X._pack_next=se,se._pack_prev=X,se._pack_next=Te,Te._pack_prev=se}function Zf(X,se){X._pack_next=se,se._pack_prev=X}function Wl(X,se){var Te=se.x-X.x,qe=se.y-X.y,Ve=X.r+se.r;return .999*Ve*Ve>Te*Te+qe*qe}function ah(X){if(!(se=X.children)||!(zr=se.length))return;var se,Te=1/0,qe=-1/0,Ve=1/0,Ye=-1/0,Pt,ot,Xt,dr,pr,Ur,zr;function gi(Qr){Te=Math.min(Qr.x-Qr.r,Te),qe=Math.max(Qr.x+Qr.r,qe),Ve=Math.min(Qr.y-Qr.r,Ve),Ye=Math.max(Qr.y+Qr.r,Ye)}if(se.forEach(Zu),Pt=se[0],Pt.x=-Pt.r,Pt.y=0,gi(Pt),zr>1&&(ot=se[1],ot.x=ot.r,ot.y=0,gi(ot),zr>2))for(Xt=se[2],wl(Pt,ot,Xt),gi(Xt),cf(Pt,Xt),Pt._pack_prev=Xt,cf(Xt,ot),ot=Pt._pack_next,dr=3;dr<zr;dr++){wl(Pt,ot,Xt=se[dr]);var xi=0,Wr=1,ii=1;for(pr=ot._pack_next;pr!==ot;pr=pr._pack_next,Wr++)if(Wl(pr,Xt)){xi=1;break}if(xi==1)for(Ur=Pt._pack_prev;Ur!==pr._pack_prev&&!Wl(Ur,Xt);Ur=Ur._pack_prev,ii++);xi?(Wr<ii||Wr==ii&&ot.r<Pt.r?Zf(Pt,ot=pr):Zf(Pt=Ur,ot),dr--):(cf(Pt,Xt),ot=Xt,gi(Xt))}var di=(Te+qe)/2,Li=(Ve+Ye)/2,Ti=0;for(dr=0;dr<zr;dr++)Xt=se[dr],Xt.x-=di,Xt.y-=Li,Ti=Math.max(Ti,Xt.r+Math.sqrt(Xt.x*Xt.x+Xt.y*Xt.y));X.r=Ti,se.forEach(qc)}function Zu(X){X._pack_next=X._pack_prev=X}function qc(X){delete X._pack_next,delete X._pack_prev}function Tc(X,se,Te,qe){var Ve=X.children;if(X.x=se+=qe*X.x,X.y=Te+=qe*X.y,X.r*=qe,Ve)for(var Ye=-1,Pt=Ve.length;++Ye<Pt;)Tc(Ve[Ye],se,Te,qe)}function wl(X,se,Te){var qe=X.r+Te.r,Ve=se.x-X.x,Ye=se.y-X.y;if(qe&&(Ve||Ye)){var Pt=se.r+Te.r,ot=Ve*Ve+Ye*Ye;Pt*=Pt,qe*=qe;var Xt=.5+(qe-Pt)/(2*ot),dr=Math.sqrt(Math.max(0,2*Pt*(qe+ot)-(qe-=ot)*qe-Pt*Pt))/(2*ot);Te.x=X.x+Xt*Ve+dr*Ye,Te.y=X.y+Xt*Ye-dr*Ve}else Te.x=X.x+qe,Te.y=X.y}e.layout.tree=function(){var X=e.layout.hierarchy().sort(null).value(null),se=vu,Te=[1,1],qe=null;function Ve(pr,Ur){var zr=X.call(this,pr,Ur),gi=zr[0],xi=Ye(gi);if(wc(xi,Pt),xi.parent.m=-xi.z,Fc(xi,ot),qe)Fc(gi,dr);else{var Wr=gi,ii=gi,di=gi;Fc(gi,function(Pn){Pn.x<Wr.x&&(Wr=Pn),Pn.x>ii.x&&(ii=Pn),Pn.depth>di.depth&&(di=Pn)});var Li=se(Wr,ii)/2-Wr.x,Ti=Te[0]/(ii.x+se(ii,Wr)/2+Li),Qr=Te[1]/(di.depth||1);Fc(gi,function(Pn){Pn.x=(Pn.x+Li)*Ti,Pn.y=Pn.depth*Qr})}return zr}function Ye(pr){for(var Ur={A:null,children:[pr]},zr=[Ur],gi;(gi=zr.pop())!=null;)for(var xi=gi.children,Wr,ii=0,di=xi.length;ii<di;++ii)zr.push((xi[ii]=Wr={_:xi[ii],parent:gi,children:(Wr=xi[ii].children)&&Wr.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:ii}).a=Wr);return Ur.children[0]}function Pt(pr){var Ur=pr.children,zr=pr.parent.children,gi=pr.i?zr[pr.i-1]:null;if(Ur.length){Bc(pr);var xi=(Ur[0].z+Ur[Ur.length-1].z)/2;gi?(pr.z=gi.z+se(pr._,gi._),pr.m=pr.z-xi):pr.z=xi}else gi&&(pr.z=gi.z+se(pr._,gi._));pr.parent.A=Xt(pr,gi,pr.parent.A||zr[0])}function ot(pr){pr._.x=pr.z+pr.parent.m,pr.m+=pr.parent.m}function Xt(pr,Ur,zr){if(Ur){for(var gi=pr,xi=pr,Wr=Ur,ii=gi.parent.children[0],di=gi.m,Li=xi.m,Ti=Wr.m,Qr=ii.m,Pn;Wr=ff(Wr),gi=Oc(gi),Wr&&gi;)ii=Oc(ii),xi=ff(xi),xi.a=pr,Pn=Wr.z+Ti-gi.z-di+se(Wr._,gi._),Pn>0&&(fc(kt(Wr,pr,zr),pr,Pn),di+=Pn,Li+=Pn),Ti+=Wr.m,di+=gi.m,Qr+=ii.m,Li+=xi.m;Wr&&!ff(xi)&&(xi.t=Wr,xi.m+=Ti-Li),gi&&!Oc(ii)&&(ii.t=gi,ii.m+=di-Qr,zr=pr)}return zr}function dr(pr){pr.x*=Te[0],pr.y=pr.depth*Te[1]}return Ve.separation=function(pr){return arguments.length?(se=pr,Ve):se},Ve.size=function(pr){return arguments.length?(qe=(Te=pr)==null?dr:null,Ve):qe?null:Te},Ve.nodeSize=function(pr){return arguments.length?(qe=(Te=pr)==null?null:dr,Ve):qe?Te:null},zu(Ve,X)};function vu(X,se){return X.parent==se.parent?1:2}function Oc(X){var se=X.children;return se.length?se[0]:X.t}function ff(X){var se=X.children,Te;return(Te=se.length)?se[Te-1]:X.t}function fc(X,se,Te){var qe=Te/(se.i-X.i);se.c-=qe,se.s+=Te,X.c+=qe,se.z+=Te,se.m+=Te}function Bc(X){for(var se=0,Te=0,qe=X.children,Ve=qe.length,Ye;--Ve>=0;)Ye=qe[Ve],Ye.z+=se,Ye.m+=se,se+=Ye.s+(Te+=Ye.c)}function kt(X,se,Te){return X.a.parent===se.parent?X.a:Te}e.layout.cluster=function(){var X=e.layout.hierarchy().sort(null).value(null),se=vu,Te=[1,1],qe=!1;function Ve(Ye,Pt){var ot=X.call(this,Ye,Pt),Xt=ot[0],dr,pr=0;wc(Xt,function(Wr){var ii=Wr.children;ii&&ii.length?(Wr.x=Er(ii),Wr.y=Zt(ii)):(Wr.x=dr?pr+=se(Wr,dr):0,Wr.y=0,dr=Wr)});var Ur=xr(Xt),zr=Kr(Xt),gi=Ur.x-se(Ur,zr)/2,xi=zr.x+se(zr,Ur)/2;return wc(Xt,qe?function(Wr){Wr.x=(Wr.x-Xt.x)*Te[0],Wr.y=(Xt.y-Wr.y)*Te[1]}:function(Wr){Wr.x=(Wr.x-gi)/(xi-gi)*Te[0],Wr.y=(1-(Xt.y?Wr.y/Xt.y:1))*Te[1]}),ot}return Ve.separation=function(Ye){return arguments.length?(se=Ye,Ve):se},Ve.size=function(Ye){return arguments.length?(qe=(Te=Ye)==null,Ve):qe?null:Te},Ve.nodeSize=function(Ye){return arguments.length?(qe=(Te=Ye)!=null,Ve):qe?Te:null},zu(Ve,X)};function Zt(X){return 1+e.max(X,function(se){return se.y})}function Er(X){return X.reduce(function(se,Te){return se+Te.x},0)/X.length}function xr(X){var se=X.children;return se&&se.length?xr(se[0]):X}function Kr(X){var se=X.children,Te;return se&&(Te=se.length)?Kr(se[Te-1]):X}e.layout.treemap=function(){var X=e.layout.hierarchy(),se=Math.round,Te=[1,1],qe=null,Ve=Mi,Ye=!1,Pt,ot="squarify",Xt=.5*(1+Math.sqrt(5));function dr(Wr,ii){for(var di=-1,Li=Wr.length,Ti,Qr;++di<Li;)Qr=(Ti=Wr[di]).value*(ii<0?0:ii),Ti.area=isNaN(Qr)||Qr<=0?0:Qr}function pr(Wr){var ii=Wr.children;if(ii&&ii.length){var di=Ve(Wr),Li=[],Ti=ii.slice(),Qr,Pn=1/0,kn,Bn=ot==="slice"?di.dx:ot==="dice"?di.dy:ot==="slice-dice"?Wr.depth&1?di.dy:di.dx:Math.min(di.dx,di.dy),na;for(dr(Ti,di.dx*di.dy/Wr.value),Li.area=0;(na=Ti.length)>0;)Li.push(Qr=Ti[na-1]),Li.area+=Qr.area,ot!=="squarify"||(kn=zr(Li,Bn))<=Pn?(Ti.pop(),Pn=kn):(Li.area-=Li.pop().area,gi(Li,Bn,di,!1),Bn=Math.min(di.dx,di.dy),Li.length=Li.area=0,Pn=1/0);Li.length&&(gi(Li,Bn,di,!0),Li.length=Li.area=0),ii.forEach(pr)}}function Ur(Wr){var ii=Wr.children;if(ii&&ii.length){var di=Ve(Wr),Li=ii.slice(),Ti,Qr=[];for(dr(Li,di.dx*di.dy/Wr.value),Qr.area=0;Ti=Li.pop();)Qr.push(Ti),Qr.area+=Ti.area,Ti.z!=null&&(gi(Qr,Ti.z?di.dx:di.dy,di,!Li.length),Qr.length=Qr.area=0);ii.forEach(Ur)}}function zr(Wr,ii){for(var di=Wr.area,Li,Ti=0,Qr=1/0,Pn=-1,kn=Wr.length;++Pn<kn;)(Li=Wr[Pn].area)&&(Li<Qr&&(Qr=Li),Li>Ti&&(Ti=Li));return di*=di,ii*=ii,di?Math.max(ii*Ti*Xt/di,di/(ii*Qr*Xt)):1/0}function gi(Wr,ii,di,Li){var Ti=-1,Qr=Wr.length,Pn=di.x,kn=di.y,Bn=ii?se(Wr.area/ii):0,na;if(ii==di.dx){for((Li||Bn>di.dy)&&(Bn=di.dy);++Ti<Qr;)na=Wr[Ti],na.x=Pn,na.y=kn,na.dy=Bn,Pn+=na.dx=Math.min(di.x+di.dx-Pn,Bn?se(na.area/Bn):0);na.z=!0,na.dx+=di.x+di.dx-Pn,di.y+=Bn,di.dy-=Bn}else{for((Li||Bn>di.dx)&&(Bn=di.dx);++Ti<Qr;)na=Wr[Ti],na.x=Pn,na.y=kn,na.dx=Bn,kn+=na.dy=Math.min(di.y+di.dy-kn,Bn?se(na.area/Bn):0);na.z=!1,na.dy+=di.y+di.dy-kn,di.x+=Bn,di.dx-=Bn}}function xi(Wr){var ii=Pt||X(Wr),di=ii[0];return di.x=di.y=0,di.value?(di.dx=Te[0],di.dy=Te[1]):di.dx=di.dy=0,Pt&&X.revalue(di),dr([di],di.dx*di.dy/di.value),(Pt?Ur:pr)(di),Ye&&(Pt=ii),ii}return xi.size=function(Wr){return arguments.length?(Te=Wr,xi):Te},xi.padding=function(Wr){if(!arguments.length)return qe;function ii(Ti){var Qr=Wr.call(xi,Ti,Ti.depth);return Qr==null?Mi(Ti):Wi(Ti,typeof Qr=="number"?[Qr,Qr,Qr,Qr]:Qr)}function di(Ti){return Wi(Ti,Wr)}var Li;return Ve=(qe=Wr)==null?Mi:(Li=typeof Wr)=="function"?ii:(Li==="number"&&(Wr=[Wr,Wr,Wr,Wr]),di),xi},xi.round=function(Wr){return arguments.length?(se=Wr?Math.round:Number,xi):se!=Number},xi.sticky=function(Wr){return arguments.length?(Ye=Wr,Pt=null,xi):Ye},xi.ratio=function(Wr){return arguments.length?(Xt=Wr,xi):Xt},xi.mode=function(Wr){return arguments.length?(ot=Wr+"",xi):ot},zu(xi,X)};function Mi(X){return{x:X.x,y:X.y,dx:X.dx,dy:X.dy}}function Wi(X,se){var Te=X.x+se[3],qe=X.y+se[0],Ve=X.dx-se[1]-se[3],Ye=X.dy-se[0]-se[2];return Ve<0&&(Te+=Ve/2,Ve=0),Ye<0&&(qe+=Ye/2,Ye=0),{x:Te,y:qe,dx:Ve,dy:Ye}}e.random={normal:function(X,se){var Te=arguments.length;return Te<2&&(se=1),Te<1&&(X=0),function(){var qe,Ve,Ye;do qe=Math.random()*2-1,Ve=Math.random()*2-1,Ye=qe*qe+Ve*Ve;while(!Ye||Ye>1);return X+se*qe*Math.sqrt(-2*Math.log(Ye)/Ye)}},logNormal:function(){var X=e.random.normal.apply(e,arguments);return function(){return Math.exp(X())}},bates:function(X){var se=e.random.irwinHall(X);return function(){return se()/X}},irwinHall:function(X){return function(){for(var se=0,Te=0;Te<X;Te++)se+=Math.random();return se}}},e.scale={};function dn(X){var se=X[0],Te=X[X.length-1];return se<Te?[se,Te]:[Te,se]}function wn(X){return X.rangeExtent?X.rangeExtent():dn(X.range())}function On(X,se,Te,qe){var Ve=Te(X[0],X[1]),Ye=qe(se[0],se[1]);return function(Pt){return Ye(Ve(Pt))}}function Yi(X,se){var Te=0,qe=X.length-1,Ve=X[Te],Ye=X[qe],Pt;return Ye<Ve&&(Pt=Te,Te=qe,qe=Pt,Pt=Ve,Ve=Ye,Ye=Pt),X[Te]=se.floor(Ve),X[qe]=se.ceil(Ye),X}function $i(X){return X?{floor:function(se){return Math.floor(se/X)*X},ceil:function(se){return Math.ceil(se/X)*X}}:an}var an={floor:G,ceil:G};function Fi(X,se,Te,qe){var Ve=[],Ye=[],Pt=0,ot=Math.min(X.length,se.length)-1;for(X[ot]<X[0]&&(X=X.slice().reverse(),se=se.slice().reverse());++Pt<=ot;)Ve.push(Te(X[Pt-1],X[Pt])),Ye.push(qe(se[Pt-1],se[Pt]));return function(Xt){var dr=e.bisect(X,Xt,1,ot)-1;return Ye[dr](Ve[dr](Xt))}}e.scale.linear=function(){return ta([0,1],[0,1],xl,!1)};function ta(X,se,Te,qe){var Ve,Ye;function Pt(){var Xt=Math.min(X.length,se.length)>2?Fi:On,dr=qe?Mu:Sh;return Ve=Xt(X,se,dr,Te),Ye=Xt(se,X,dr,xl),ot}function ot(Xt){return Ve(Xt)}return ot.invert=function(Xt){return Ye(Xt)},ot.domain=function(Xt){return arguments.length?(X=Xt.map(Number),Pt()):X},ot.range=function(Xt){return arguments.length?(se=Xt,Pt()):se},ot.rangeRound=function(Xt){return ot.range(Xt).interpolate(ju)},ot.clamp=function(Xt){return arguments.length?(qe=Xt,Pt()):qe},ot.interpolate=function(Xt){return arguments.length?(Te=Xt,Pt()):Te},ot.ticks=function(Xt){return Ua(X,Xt)},ot.tickFormat=function(Xt,dr){return d3_scale_linearTickFormat(X,Xt,dr)},ot.nice=function(Xt){return Ra(X,Xt),Pt()},ot.copy=function(){return ta(X,se,Te,qe)},Pt()}function Ca(X,se){return e.rebind(X,se,"range","rangeRound","interpolate","clamp")}function Ra(X,se){return Yi(X,$i(La(X,se)[2])),Yi(X,$i(La(X,se)[2])),X}function La(X,se){se==null&&(se=10);var Te=dn(X),qe=Te[1]-Te[0],Ve=Math.pow(10,Math.floor(Math.log(qe/se)/Math.LN10)),Ye=se/qe*Ve;return Ye<=.15?Ve*=10:Ye<=.35?Ve*=5:Ye<=.75&&(Ve*=2),Te[0]=Math.ceil(Te[0]/Ve)*Ve,Te[1]=Math.floor(Te[1]/Ve)*Ve+Ve*.5,Te[2]=Ve,Te}function Ua(X,se){return e.range.apply(e,La(X,se))}var Zn={s:1,g:1,p:1,r:1,e:1};function Dn(X){return-Math.floor(Math.log(X)/Math.LN10+.01)}function Ka(X,se){var Te=Dn(se[2]);return X in Zn?Math.abs(Te-Dn(Math.max(p(se[0]),p(se[1]))))+ +(X!=="e"):Te-(X==="%")*2}e.scale.log=function(){return bo(e.scale.linear().domain([0,1]),10,!0,[1,10])};function bo(X,se,Te,qe){function Ve(ot){return(Te?Math.log(ot<0?0:ot):-Math.log(ot>0?0:-ot))/Math.log(se)}function Ye(ot){return Te?Math.pow(se,ot):-Math.pow(se,-ot)}function Pt(ot){return X(Ve(ot))}return Pt.invert=function(ot){return Ye(X.invert(ot))},Pt.domain=function(ot){return arguments.length?(Te=ot[0]>=0,X.domain((qe=ot.map(Number)).map(Ve)),Pt):qe},Pt.base=function(ot){return arguments.length?(se=+ot,X.domain(qe.map(Ve)),Pt):se},Pt.nice=function(){var ot=Yi(qe.map(Ve),Te?Math:Zo);return X.domain(ot),qe=ot.map(Ye),Pt},Pt.ticks=function(){var ot=dn(qe),Xt=[],dr=ot[0],pr=ot[1],Ur=Math.floor(Ve(dr)),zr=Math.ceil(Ve(pr)),gi=se%1?2:se;if(isFinite(zr-Ur)){if(Te){for(;Ur<zr;Ur++)for(var xi=1;xi<gi;xi++)Xt.push(Ye(Ur)*xi);Xt.push(Ye(Ur))}else for(Xt.push(Ye(Ur));Ur++<zr;)for(var xi=gi-1;xi>0;xi--)Xt.push(Ye(Ur)*xi);for(Ur=0;Xt[Ur]<dr;Ur++);for(zr=Xt.length;Xt[zr-1]>pr;zr--);Xt=Xt.slice(Ur,zr)}return Xt},Pt.copy=function(){return bo(X.copy(),se,Te,qe)},Ca(Pt,X)}var Zo={floor:function(X){return-Math.ceil(-X)},ceil:function(X){return-Math.floor(-X)}};e.scale.pow=function(){return Ss(e.scale.linear(),1,[0,1])};function Ss(X,se,Te){var qe=as(se),Ve=as(1/se);function Ye(Pt){return X(qe(Pt))}return Ye.invert=function(Pt){return Ve(X.invert(Pt))},Ye.domain=function(Pt){return arguments.length?(X.domain((Te=Pt.map(Number)).map(qe)),Ye):Te},Ye.ticks=function(Pt){return Ua(Te,Pt)},Ye.tickFormat=function(Pt,ot){return d3_scale_linearTickFormat(Te,Pt,ot)},Ye.nice=function(Pt){return Ye.domain(Ra(Te,Pt))},Ye.exponent=function(Pt){return arguments.length?(qe=as(se=Pt),Ve=as(1/se),X.domain(Te.map(qe)),Ye):se},Ye.copy=function(){return Ss(X.copy(),se,Te)},Ca(Ye,X)}function as(X){return function(se){return se<0?-Math.pow(-se,X):Math.pow(se,X)}}e.scale.sqrt=function(){return e.scale.pow().exponent(.5)},e.scale.ordinal=function(){return ws([],{t:"range",a:[[]]})};function ws(X,se){var Te,qe,Ve;function Ye(ot){return qe[((Te.get(ot)||(se.t==="range"?Te.set(ot,X.push(ot)):NaN))-1)%qe.length]}function Pt(ot,Xt){return e.range(X.length).map(function(dr){return ot+Xt*dr})}return Ye.domain=function(ot){if(!arguments.length)return X;X=[],Te=new T;for(var Xt=-1,dr=ot.length,pr;++Xt<dr;)Te.has(pr=ot[Xt])||Te.set(pr,X.push(pr));return Ye[se.t].apply(Ye,se.a)},Ye.range=function(ot){return arguments.length?(qe=ot,Ve=0,se={t:"range",a:arguments},Ye):qe},Ye.rangePoints=function(ot,Xt){arguments.length<2&&(Xt=0);var dr=ot[0],pr=ot[1],Ur=X.length<2?(dr=(dr+pr)/2,0):(pr-dr)/(X.length-1+Xt);return qe=Pt(dr+Ur*Xt/2,Ur),Ve=0,se={t:"rangePoints",a:arguments},Ye},Ye.rangeRoundPoints=function(ot,Xt){arguments.length<2&&(Xt=0);var dr=ot[0],pr=ot[1],Ur=X.length<2?(dr=pr=Math.round((dr+pr)/2),0):(pr-dr)/(X.length-1+Xt)|0;return qe=Pt(dr+Math.round(Ur*Xt/2+(pr-dr-(X.length-1+Xt)*Ur)/2),Ur),Ve=0,se={t:"rangeRoundPoints",a:arguments},Ye},Ye.rangeBands=function(ot,Xt,dr){arguments.length<2&&(Xt=0),arguments.length<3&&(dr=Xt);var pr=ot[1]<ot[0],Ur=ot[pr-0],zr=ot[1-pr],gi=(zr-Ur)/(X.length-Xt+2*dr);return qe=Pt(Ur+gi*dr,gi),pr&&qe.reverse(),Ve=gi*(1-Xt),se={t:"rangeBands",a:arguments},Ye},Ye.rangeRoundBands=function(ot,Xt,dr){arguments.length<2&&(Xt=0),arguments.length<3&&(dr=Xt);var pr=ot[1]<ot[0],Ur=ot[pr-0],zr=ot[1-pr],gi=Math.floor((zr-Ur)/(X.length-Xt+2*dr));return qe=Pt(Ur+Math.round((zr-Ur-(X.length-Xt)*gi)/2),gi),pr&&qe.reverse(),Ve=Math.round(gi*(1-Xt)),se={t:"rangeRoundBands",a:arguments},Ye},Ye.rangeBand=function(){return Ve},Ye.rangeExtent=function(){return dn(se.a[0])},Ye.copy=function(){return ws(X,se)},Ye.domain(X)}e.scale.category10=function(){return e.scale.ordinal().range(Ho)},e.scale.category20=function(){return e.scale.ordinal().range(ml)},e.scale.category20b=function(){return e.scale.ordinal().range(Ws)},e.scale.category20c=function(){return e.scale.ordinal().range(Ls)};var Ho=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Xo),ml=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Xo),Ws=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Xo),Ls=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Xo);e.scale.quantile=function(){return va([],[])};function va(X,se){var Te;function qe(){var Ye=0,Pt=se.length;for(Te=[];++Ye<Pt;)Te[Ye-1]=e.quantile(X,Ye/Pt);return Ve}function Ve(Ye){if(!isNaN(Ye=+Ye))return se[e.bisect(Te,Ye)]}return Ve.domain=function(Ye){return arguments.length?(X=Ye.map(h).filter(d).sort(f),qe()):X},Ve.range=function(Ye){return arguments.length?(se=Ye,qe()):se},Ve.quantiles=function(){return Te},Ve.invertExtent=function(Ye){return Ye=se.indexOf(Ye),Ye<0?[NaN,NaN]:[Ye>0?Te[Ye-1]:X[0],Ye<Te.length?Te[Ye]:X[X.length-1]]},Ve.copy=function(){return va(X,se)},qe()}e.scale.quantize=function(){return no(0,1,[0,1])};function no(X,se,Te){var qe,Ve;function Ye(ot){return Te[Math.max(0,Math.min(Ve,Math.floor(qe*(ot-X))))]}function Pt(){return qe=Te.length/(se-X),Ve=Te.length-1,Ye}return Ye.domain=function(ot){return arguments.length?(X=+ot[0],se=+ot[ot.length-1],Pt()):[X,se]},Ye.range=function(ot){return arguments.length?(Te=ot,Pt()):Te},Ye.invertExtent=function(ot){return ot=Te.indexOf(ot),ot=ot<0?NaN:ot/qe+X,[ot,ot+1/qe]},Ye.copy=function(){return no(X,se,Te)},Pt()}e.scale.threshold=function(){return ys([.5],[0,1])};function ys(X,se){function Te(qe){if(qe<=qe)return se[e.bisect(X,qe)]}return Te.domain=function(qe){return arguments.length?(X=qe,Te):X},Te.range=function(qe){return arguments.length?(se=qe,Te):se},Te.invertExtent=function(qe){return qe=se.indexOf(qe),[X[qe-1],X[qe]]},Te.copy=function(){return ys(X,se)},Te}e.scale.identity=function(){return rs([0,1])};function rs(X){function se(Te){return+Te}return se.invert=se,se.domain=se.range=function(Te){return arguments.length?(X=Te.map(se),se):X},se.ticks=function(Te){return Ua(X,Te)},se.tickFormat=function(Te,qe){return d3_scale_linearTickFormat(X,Te,qe)},se.copy=function(){return rs(X)},se}e.svg={};function Ql(){return 0}e.svg.arc=function(){var X=Yu,se=Nc,Te=Ql,qe=Cu,Ve=pu,Ye=Uc,Pt=xu;function ot(){var dr=Math.max(0,+X.apply(this,arguments)),pr=Math.max(0,+se.apply(this,arguments)),Ur=Ve.apply(this,arguments)-Kt,zr=Ye.apply(this,arguments)-Kt,gi=Math.abs(zr-Ur),xi=Ur>zr?0:1;if(pr<dr&&(Wr=pr,pr=dr,dr=Wr),gi>=At)return Xt(pr,xi)+(dr?Xt(dr,1-xi):"")+"Z";var Wr,ii,di,Li,Ti=0,Qr=0,Pn,kn,Bn,na,Ea,Ia,yo,Da,go=[];if((Li=(+Pt.apply(this,arguments)||0)/2)&&(di=qe===Cu?Math.sqrt(dr*dr+pr*pr):+qe.apply(this,arguments),xi||(Qr*=-1),pr&&(Qr=_i(di/pr*Math.sin(Li))),dr&&(Ti=_i(di/dr*Math.sin(Li)))),pr){Pn=pr*Math.cos(Ur+Qr),kn=pr*Math.sin(Ur+Qr),Bn=pr*Math.cos(zr-Qr),na=pr*Math.sin(zr-Qr);var Is=Math.abs(zr-Ur-2*Qr)<=et?0:1;if(Qr&&Ac(Pn,kn,Bn,na)===xi^Is){var Ms=(Ur+zr)/2;Pn=pr*Math.cos(Ms),kn=pr*Math.sin(Ms),Bn=na=null}}else Pn=kn=0;if(dr){Ea=dr*Math.cos(zr-Ti),Ia=dr*Math.sin(zr-Ti),yo=dr*Math.cos(Ur+Ti),Da=dr*Math.sin(Ur+Ti);var Xs=Math.abs(Ur-zr+2*Ti)<=et?0:1;if(Ti&&Ac(Ea,Ia,yo,Da)===1-xi^Xs){var Un=(Ur+zr)/2;Ea=dr*Math.cos(Un),Ia=dr*Math.sin(Un),yo=Da=null}}else Ea=Ia=0;if(gi>Je&&(Wr=Math.min(Math.abs(pr-dr)/2,+Te.apply(this,arguments)))>.001){ii=dr<pr^xi?0:1;var ja=Wr,Fo=Wr;if(gi<et){var Uo=yo==null?[Ea,Ia]:Bn==null?[Pn,kn]:il([Pn,kn],[yo,Da],[Bn,na],[Ea,Ia]),$s=Pn-Uo[0],Sl=kn-Uo[1],bu=Bn-Uo[0],dl=na-Uo[1],Sc=1/Math.sin(Math.acos(($s*bu+Sl*dl)/(Math.sqrt($s*$s+Sl*Sl)*Math.sqrt(bu*bu+dl*dl)))/2),Me=Math.sqrt(Uo[0]*Uo[0]+Uo[1]*Uo[1]);Fo=Math.min(Wr,(dr-Me)/(Sc-1)),ja=Math.min(Wr,(pr-Me)/(Sc+1))}if(Bn!=null){var bt=Va(yo==null?[Ea,Ia]:[yo,Da],[Pn,kn],pr,ja,xi),Ot=Va([Bn,na],[Ea,Ia],pr,ja,xi);Wr===ja?go.push("M",bt[0],"A",ja,",",ja," 0 0,",ii," ",bt[1],"A",pr,",",pr," 0 ",1-xi^Ac(bt[1][0],bt[1][1],Ot[1][0],Ot[1][1]),",",xi," ",Ot[1],"A",ja,",",ja," 0 0,",ii," ",Ot[0]):go.push("M",bt[0],"A",ja,",",ja," 0 1,",ii," ",Ot[0])}else go.push("M",Pn,",",kn);if(yo!=null){var Lr=Va([Pn,kn],[yo,Da],dr,-Fo,xi),Vr=Va([Ea,Ia],Bn==null?[Pn,kn]:[Bn,na],dr,-Fo,xi);Wr===Fo?go.push("L",Vr[0],"A",Fo,",",Fo," 0 0,",ii," ",Vr[1],"A",dr,",",dr," 0 ",xi^Ac(Vr[1][0],Vr[1][1],Lr[1][0],Lr[1][1]),",",1-xi," ",Lr[1],"A",Fo,",",Fo," 0 0,",ii," ",Lr[0]):go.push("L",Vr[0],"A",Fo,",",Fo," 0 0,",ii," ",Lr[0])}else go.push("L",Ea,",",Ia)}else go.push("M",Pn,",",kn),Bn!=null&&go.push("A",pr,",",pr," 0 ",Is,",",xi," ",Bn,",",na),go.push("L",Ea,",",Ia),yo!=null&&go.push("A",dr,",",dr," 0 ",Xs,",",1-xi," ",yo,",",Da);return go.push("Z"),go.join("")}function Xt(dr,pr){return"M0,"+dr+"A"+dr+","+dr+" 0 1,"+pr+" 0,"+-dr+"A"+dr+","+dr+" 0 1,"+pr+" 0,"+dr}return ot.innerRadius=function(dr){return arguments.length?(X=hi(dr),ot):X},ot.outerRadius=function(dr){return arguments.length?(se=hi(dr),ot):se},ot.cornerRadius=function(dr){return arguments.length?(Te=hi(dr),ot):Te},ot.padRadius=function(dr){return arguments.length?(qe=dr==Cu?Cu:hi(dr),ot):qe},ot.startAngle=function(dr){return arguments.length?(Ve=hi(dr),ot):Ve},ot.endAngle=function(dr){return arguments.length?(Ye=hi(dr),ot):Ye},ot.padAngle=function(dr){return arguments.length?(Pt=hi(dr),ot):Pt},ot.centroid=function(){var dr=(+X.apply(this,arguments)+ +se.apply(this,arguments))/2,pr=(+Ve.apply(this,arguments)+ +Ye.apply(this,arguments))/2-Kt;return[Math.cos(pr)*dr,Math.sin(pr)*dr]},ot};var Cu="auto";function Yu(X){return X.innerRadius}function Nc(X){return X.outerRadius}function pu(X){return X.startAngle}function Uc(X){return X.endAngle}function xu(X){return X&&X.padAngle}function Ac(X,se,Te,qe){return(X-Te)*se-(se-qe)*X>0?0:1}function Va(X,se,Te,qe,Ve){var Ye=X[0]-se[0],Pt=X[1]-se[1],ot=(Ve?qe:-qe)/Math.sqrt(Ye*Ye+Pt*Pt),Xt=ot*Pt,dr=-ot*Ye,pr=X[0]+Xt,Ur=X[1]+dr,zr=se[0]+Xt,gi=se[1]+dr,xi=(pr+zr)/2,Wr=(Ur+gi)/2,ii=zr-pr,di=gi-Ur,Li=ii*ii+di*di,Ti=Te-qe,Qr=pr*gi-zr*Ur,Pn=(di<0?-1:1)*Math.sqrt(Math.max(0,Ti*Ti*Li-Qr*Qr)),kn=(Qr*di-ii*Pn)/Li,Bn=(-Qr*ii-di*Pn)/Li,na=(Qr*di+ii*Pn)/Li,Ea=(-Qr*ii+di*Pn)/Li,Ia=kn-xi,yo=Bn-Wr,Da=na-xi,go=Ea-Wr;return Ia*Ia+yo*yo>Da*Da+go*go&&(kn=na,Bn=Ea),[[kn-Xt,Bn-dr],[kn*Te/Ti,Bn*Te/Ti]]}function oo(){return!0}function Vc(X){var se=Ds,Te=Fs,qe=oo,Ve=Ku,Ye=Ve.key,Pt=.7;function ot(Xt){var dr=[],pr=[],Ur=-1,zr=Xt.length,gi,xi=hi(se),Wr=hi(Te);function ii(){dr.push("M",Ve(X(pr),Pt))}for(;++Ur<zr;)qe.call(this,gi=Xt[Ur],Ur)?pr.push([+xi.call(this,gi,Ur),+Wr.call(this,gi,Ur)]):pr.length&&(ii(),pr=[]);return pr.length&&ii(),dr.length?dr.join(""):null}return ot.x=function(Xt){return arguments.length?(se=Xt,ot):se},ot.y=function(Xt){return arguments.length?(Te=Xt,ot):Te},ot.defined=function(Xt){return arguments.length?(qe=Xt,ot):qe},ot.interpolate=function(Xt){return arguments.length?(typeof Xt=="function"?Ye=Ve=Xt:Ye=(Ve=hc.get(Xt)||Ku).key,ot):Ye},ot.tension=function(Xt){return arguments.length?(Pt=Xt,ot):Pt},ot}e.svg.line=function(){return Vc(G)};var hc=e.map({linear:Ku,"linear-closed":ue,step:w,"step-before":B,"step-after":Q,basis:Mt,"basis-open":Jt,"basis-closed":$t,bundle:yr,cardinal:Fe,"cardinal-open":ee,"cardinal-closed":le,monotone:qt});hc.forEach(function(X,se){se.key=X,se.closed=/-closed$/.test(X)});function Ku(X){return X.length>1?X.join("L"):X+"Z"}function ue(X){return X.join("L")+"Z"}function w(X){for(var se=0,Te=X.length,qe=X[0],Ve=[qe[0],",",qe[1]];++se<Te;)Ve.push("H",(qe[0]+(qe=X[se])[0])/2,"V",qe[1]);return Te>1&&Ve.push("H",qe[0]),Ve.join("")}function B(X){for(var se=0,Te=X.length,qe=X[0],Ve=[qe[0],",",qe[1]];++se<Te;)Ve.push("V",(qe=X[se])[1],"H",qe[0]);return Ve.join("")}function Q(X){for(var se=0,Te=X.length,qe=X[0],Ve=[qe[0],",",qe[1]];++se<Te;)Ve.push("H",(qe=X[se])[0],"V",qe[1]);return Ve.join("")}function ee(X,se){return X.length<4?Ku(X):X[1]+Ze(X.slice(1,-1),ut(X,se))}function le(X,se){return X.length<3?ue(X):X[0]+Ze((X.push(X[0]),X),ut([X[X.length-2]].concat(X,[X[1]]),se))}function Fe(X,se){return X.length<3?Ku(X):X[0]+Ze(X,ut(X,se))}function Ze(X,se){if(se.length<1||X.length!=se.length&&X.length!=se.length+2)return Ku(X);var Te=X.length!=se.length,qe="",Ve=X[0],Ye=X[1],Pt=se[0],ot=Pt,Xt=1;if(Te&&(qe+="Q"+(Ye[0]-Pt[0]*2/3)+","+(Ye[1]-Pt[1]*2/3)+","+Ye[0]+","+Ye[1],Ve=X[1],Xt=2),se.length>1){ot=se[1],Ye=X[Xt],Xt++,qe+="C"+(Ve[0]+Pt[0])+","+(Ve[1]+Pt[1])+","+(Ye[0]-ot[0])+","+(Ye[1]-ot[1])+","+Ye[0]+","+Ye[1];for(var dr=2;dr<se.length;dr++,Xt++)Ye=X[Xt],ot=se[dr],qe+="S"+(Ye[0]-ot[0])+","+(Ye[1]-ot[1])+","+Ye[0]+","+Ye[1]}if(Te){var pr=X[Xt];qe+="Q"+(Ye[0]+ot[0]*2/3)+","+(Ye[1]+ot[1]*2/3)+","+pr[0]+","+pr[1]}return qe}function ut(X,se){for(var Te=[],qe=(1-se)/2,Ve,Ye=X[0],Pt=X[1],ot=1,Xt=X.length;++ot<Xt;)Ve=Ye,Ye=Pt,Pt=X[ot],Te.push([qe*(Pt[0]-Ve[0]),qe*(Pt[1]-Ve[1])]);return Te}function Mt(X){if(X.length<3)return Ku(X);var se=1,Te=X.length,qe=X[0],Ve=qe[0],Ye=qe[1],Pt=[Ve,Ve,Ve,(qe=X[1])[0]],ot=[Ye,Ye,Ye,qe[1]],Xt=[Ve,",",Ye,"L",Cr(Ie,Pt),",",Cr(Ie,ot)];for(X.push(X[Te-1]);++se<=Te;)qe=X[se],Pt.shift(),Pt.push(qe[0]),ot.shift(),ot.push(qe[1]),ze(Xt,Pt,ot);return X.pop(),Xt.push("L",qe),Xt.join("")}function Jt(X){if(X.length<4)return Ku(X);for(var se=[],Te=-1,qe=X.length,Ve,Ye=[0],Pt=[0];++Te<3;)Ve=X[Te],Ye.push(Ve[0]),Pt.push(Ve[1]);for(se.push(Cr(Ie,Ye)+","+Cr(Ie,Pt)),--Te;++Te<qe;)Ve=X[Te],Ye.shift(),Ye.push(Ve[0]),Pt.shift(),Pt.push(Ve[1]),ze(se,Ye,Pt);return se.join("")}function $t(X){for(var se,Te=-1,qe=X.length,Ve=qe+4,Ye,Pt=[],ot=[];++Te<4;)Ye=X[Te%qe],Pt.push(Ye[0]),ot.push(Ye[1]);for(se=[Cr(Ie,Pt),",",Cr(Ie,ot)],--Te;++Te<Ve;)Ye=X[Te%qe],Pt.shift(),Pt.push(Ye[0]),ot.shift(),ot.push(Ye[1]),ze(se,Pt,ot);return se.join("")}function yr(X,se){var Te=X.length-1;if(Te)for(var qe=X[0][0],Ve=X[0][1],Ye=X[Te][0]-qe,Pt=X[Te][1]-Ve,ot=-1,Xt,dr;++ot<=Te;)Xt=X[ot],dr=ot/Te,Xt[0]=se*Xt[0]+(1-se)*(qe+dr*Ye),Xt[1]=se*Xt[1]+(1-se)*(Ve+dr*Pt);return Mt(X)}function Cr(X,se){return X[0]*se[0]+X[1]*se[1]+X[2]*se[2]+X[3]*se[3]}var ve=[0,2/3,1/3,0],xe=[0,1/3,2/3,0],Ie=[0,1/6,2/3,1/6];function ze(X,se,Te){X.push("C",Cr(ve,se),",",Cr(ve,Te),",",Cr(xe,se),",",Cr(xe,Te),",",Cr(Ie,se),",",Cr(Ie,Te))}function Qe(X,se){return(se[1]-X[1])/(se[0]-X[0])}function Xe(X){for(var se=0,Te=X.length-1,qe=[],Ve=X[0],Ye=X[1],Pt=qe[0]=Qe(Ve,Ye);++se<Te;)qe[se]=(Pt+(Pt=Qe(Ve=Ye,Ye=X[se+1])))/2;return qe[se]=Pt,qe}function nt(X){for(var se=[],Te,qe,Ve,Ye,Pt=Xe(X),ot=-1,Xt=X.length-1;++ot<Xt;)Te=Qe(X[ot],X[ot+1]),p(Te)<Je?Pt[ot]=Pt[ot+1]=0:(qe=Pt[ot]/Te,Ve=Pt[ot+1]/Te,Ye=qe*qe+Ve*Ve,Ye>9&&(Ye=Te*3/Math.sqrt(Ye),Pt[ot]=Ye*qe,Pt[ot+1]=Ye*Ve));for(ot=-1;++ot<=Xt;)Ye=(X[Math.min(Xt,ot+1)][0]-X[Math.max(0,ot-1)][0])/(6*(1+Pt[ot]*Pt[ot])),se.push([Ye||0,Pt[ot]*Ye||0]);return se}function qt(X){return X.length<3?Ku(X):X[0]+Ze(X,nt(X))}e.svg.line.radial=function(){var X=Vc(Wt);return X.radius=X.x,delete X.x,X.angle=X.y,delete X.y,X};function Wt(X){for(var se,Te=-1,qe=X.length,Ve,Ye;++Te<qe;)se=X[Te],Ve=se[0],Ye=se[1]-Kt,se[0]=Ve*Math.cos(Ye),se[1]=Ve*Math.sin(Ye);return X}function nr(X){var se=Ds,Te=Ds,qe=0,Ve=Fs,Ye=oo,Pt=Ku,ot=Pt.key,Xt=Pt,dr="L",pr=.7;function Ur(zr){var gi=[],xi=[],Wr=[],ii=-1,di=zr.length,Li,Ti=hi(se),Qr=hi(qe),Pn=se===Te?function(){return Bn}:hi(Te),kn=qe===Ve?function(){return na}:hi(Ve),Bn,na;function Ea(){gi.push("M",Pt(X(Wr),pr),dr,Xt(X(xi.reverse()),pr),"Z")}for(;++ii<di;)Ye.call(this,Li=zr[ii],ii)?(xi.push([Bn=+Ti.call(this,Li,ii),na=+Qr.call(this,Li,ii)]),Wr.push([+Pn.call(this,Li,ii),+kn.call(this,Li,ii)])):xi.length&&(Ea(),xi=[],Wr=[]);return xi.length&&Ea(),gi.length?gi.join(""):null}return Ur.x=function(zr){return arguments.length?(se=Te=zr,Ur):Te},Ur.x0=function(zr){return arguments.length?(se=zr,Ur):se},Ur.x1=function(zr){return arguments.length?(Te=zr,Ur):Te},Ur.y=function(zr){return arguments.length?(qe=Ve=zr,Ur):Ve},Ur.y0=function(zr){return arguments.length?(qe=zr,Ur):qe},Ur.y1=function(zr){return arguments.length?(Ve=zr,Ur):Ve},Ur.defined=function(zr){return arguments.length?(Ye=zr,Ur):Ye},Ur.interpolate=function(zr){return arguments.length?(typeof zr=="function"?ot=Pt=zr:ot=(Pt=hc.get(zr)||Ku).key,Xt=Pt.reverse||Pt,dr=Pt.closed?"M":"L",Ur):ot},Ur.tension=function(zr){return arguments.length?(pr=zr,Ur):pr},Ur}B.reverse=Q,Q.reverse=B,e.svg.area=function(){return nr(G)},e.svg.area.radial=function(){var X=nr(Wt);return X.radius=X.x,delete X.x,X.innerRadius=X.x0,delete X.x0,X.outerRadius=X.x1,delete X.x1,X.angle=X.y,delete X.y,X.startAngle=X.y0,delete X.y0,X.endAngle=X.y1,delete X.y1,X};function fr(X){return X.source}function br(X){return X.target}e.svg.chord=function(){var X=fr,se=br,Te=Fr,qe=pu,Ve=Uc;function Ye(pr,Ur){var zr=Pt(this,X,pr,Ur),gi=Pt(this,se,pr,Ur);return"M"+zr.p0+Xt(zr.r,zr.p1,zr.a1-zr.a0)+(ot(zr,gi)?dr(zr.r,zr.p1,zr.r,zr.p0):dr(zr.r,zr.p1,gi.r,gi.p0)+Xt(gi.r,gi.p1,gi.a1-gi.a0)+dr(gi.r,gi.p1,zr.r,zr.p0))+"Z"}function Pt(pr,Ur,zr,gi){var xi=Ur.call(pr,zr,gi),Wr=Te.call(pr,xi,gi),ii=qe.call(pr,xi,gi)-Kt,di=Ve.call(pr,xi,gi)-Kt;return{r:Wr,a0:ii,a1:di,p0:[Wr*Math.cos(ii),Wr*Math.sin(ii)],p1:[Wr*Math.cos(di),Wr*Math.sin(di)]}}function ot(pr,Ur){return pr.a0==Ur.a0&&pr.a1==Ur.a1}function Xt(pr,Ur,zr){return"A"+pr+","+pr+" 0 "+ +(zr>et)+",1 "+Ur}function dr(pr,Ur,zr,gi){return"Q 0,0 "+gi}return Ye.radius=function(pr){return arguments.length?(Te=hi(pr),Ye):Te},Ye.source=function(pr){return arguments.length?(X=hi(pr),Ye):X},Ye.target=function(pr){return arguments.length?(se=hi(pr),Ye):se},Ye.startAngle=function(pr){return arguments.length?(qe=hi(pr),Ye):qe},Ye.endAngle=function(pr){return arguments.length?(Ve=hi(pr),Ye):Ve},Ye};function Fr(X){return X.radius}e.svg.diagonal=function(){var X=fr,se=br,Te=Hr;function qe(Ve,Ye){var Pt=X.call(this,Ve,Ye),ot=se.call(this,Ve,Ye),Xt=(Pt.y+ot.y)/2,dr=[Pt,{x:Pt.x,y:Xt},{x:ot.x,y:Xt},ot];return dr=dr.map(Te),"M"+dr[0]+"C"+dr[1]+" "+dr[2]+" "+dr[3]}return qe.source=function(Ve){return arguments.length?(X=hi(Ve),qe):X},qe.target=function(Ve){return arguments.length?(se=hi(Ve),qe):se},qe.projection=function(Ve){return arguments.length?(Te=Ve,qe):Te},qe};function Hr(X){return[X.x,X.y]}e.svg.diagonal.radial=function(){var X=e.svg.diagonal(),se=Hr,Te=X.projection;return X.projection=function(qe){return arguments.length?Te(ri(se=qe)):se},X};function ri(X){return function(){var se=X.apply(this,arguments),Te=se[0],qe=se[1]-Kt;return[Te*Math.cos(qe),Te*Math.sin(qe)]}}e.svg.symbol=function(){var X=cn,se=Ci;function Te(qe,Ve){return(Ln.get(X.call(this,qe,Ve))||sn)(se.call(this,qe,Ve))}return Te.type=function(qe){return arguments.length?(X=hi(qe),Te):X},Te.size=function(qe){return arguments.length?(se=hi(qe),Te):se},Te};function Ci(){return 64}function cn(){return"circle"}function sn(X){var se=Math.sqrt(X/et);return"M0,"+se+"A"+se+","+se+" 0 1,1 0,"+-se+"A"+se+","+se+" 0 1,1 0,"+se+"Z"}var Ln=e.map({circle:sn,cross:function(X){var se=Math.sqrt(X/5)/2;return"M"+-3*se+","+-se+"H"+-se+"V"+-3*se+"H"+se+"V"+-se+"H"+3*se+"V"+se+"H"+se+"V"+3*se+"H"+-se+"V"+se+"H"+-3*se+"Z"},diamond:function(X){var se=Math.sqrt(X/(2*Aa)),Te=se*Aa;return"M0,"+-se+"L"+Te+",0 0,"+se+" "+-Te+",0Z"},square:function(X){var se=Math.sqrt(X)/2;return"M"+-se+","+-se+"L"+se+","+-se+" "+se+","+se+" "+-se+","+se+"Z"},"triangle-down":function(X){var se=Math.sqrt(X/Yn),Te=se*Yn/2;return"M0,"+Te+"L"+se+","+-Te+" "+-se+","+-Te+"Z"},"triangle-up":function(X){var se=Math.sqrt(X/Yn),Te=se*Yn/2;return"M0,"+-Te+"L"+se+","+Te+" "+-se+","+Te+"Z"}});e.svg.symbolTypes=Ln.keys();var Yn=Math.sqrt(3),Aa=Math.tan(30*Qt);Le.transition=function(X){for(var se=Bo||++mo,Te=To(X),qe=[],Ve,Ye,Pt=Ps||{time:Date.now(),ease:bl,delay:0,duration:250},ot=-1,Xt=this.length;++ot<Xt;){qe.push(Ve=[]);for(var dr=this[ot],pr=-1,Ur=dr.length;++pr<Ur;)(Ye=dr[pr])&&hl(Ye,pr,Te,se,Pt),Ve.push(Ye)}return Co(qe,Te,se)},Le.interrupt=function(X){return this.each(X==null?fa:$a(To(X)))};var fa=$a(To());function $a(X){return function(){var se,Te,qe;(se=this[X])&&(qe=se[Te=se.active])&&(qe.timer.c=null,qe.timer.t=NaN,--se.count?delete se[Te]:delete this[X],se.active+=.5,qe.event&&qe.event.interrupt.call(this,this.__data__,qe.index))}}function Co(X,se,Te){return re(X,Qa),X.namespace=se,X.id=Te,X}var Qa=[],mo=0,Bo,Ps;Qa.call=Le.call,Qa.empty=Le.empty,Qa.node=Le.node,Qa.size=Le.size,e.transition=function(X,se){return X&&X.transition?Bo?X.transition(se):X:e.selection().transition(X)},e.transition.prototype=Qa,Qa.select=function(X){var se=this.id,Te=this.namespace,qe=[],Ve,Ye,Pt;X=me(X);for(var ot=-1,Xt=this.length;++ot<Xt;){qe.push(Ve=[]);for(var dr=this[ot],pr=-1,Ur=dr.length;++pr<Ur;)(Pt=dr[pr])&&(Ye=X.call(Pt,Pt.__data__,pr,ot))?("__data__"in Pt&&(Ye.__data__=Pt.__data__),hl(Ye,pr,Te,se,Pt[Te][se]),Ve.push(Ye)):Ve.push(null)}return Co(qe,Te,se)},Qa.selectAll=function(X){var se=this.id,Te=this.namespace,qe=[],Ve,Ye,Pt,ot,Xt;X=Pe(X);for(var dr=-1,pr=this.length;++dr<pr;)for(var Ur=this[dr],zr=-1,gi=Ur.length;++zr<gi;)if(Pt=Ur[zr]){Xt=Pt[Te][se],Ye=X.call(Pt,Pt.__data__,zr,dr),qe.push(Ve=[]);for(var xi=-1,Wr=Ye.length;++xi<Wr;)(ot=Ye[xi])&&hl(ot,xi,Te,se,Xt),Ve.push(ot)}return Co(qe,Te,se)},Qa.filter=function(X){var se=[],Te,qe,Ve;typeof X!="function"&&(X=Ae(X));for(var Ye=0,Pt=this.length;Ye<Pt;Ye++){se.push(Te=[]);for(var qe=this[Ye],ot=0,Xt=qe.length;ot<Xt;ot++)(Ve=qe[ot])&&X.call(Ve,Ve.__data__,ot,Ye)&&Te.push(Ve)}return Co(se,this.namespace,this.id)},Qa.tween=function(X,se){var Te=this.id,qe=this.namespace;return arguments.length<2?this.node()[qe][Te].tween.get(X):St(this,se==null?function(Ve){Ve[qe][Te].tween.remove(X)}:function(Ve){Ve[qe][Te].tween.set(X,se)})};function Ts(X,se,Te,qe){var Ve=X.id,Ye=X.namespace;return St(X,typeof Te=="function"?function(Pt,ot,Xt){Pt[Ye][Ve].tween.set(se,qe(Te.call(Pt,Pt.__data__,ot,Xt)))}:(Te=qe(Te),function(Pt){Pt[Ye][Ve].tween.set(se,Te)}))}Qa.attr=function(X,se){if(arguments.length<2){for(se in X)this.attr(se,X[se]);return this}var Te=X=="transform"?lf:xl,qe=e.ns.qualify(X);function Ve(){this.removeAttribute(qe)}function Ye(){this.removeAttributeNS(qe.space,qe.local)}function Pt(Xt){return Xt==null?Ve:(Xt+="",function(){var dr=this.getAttribute(qe),pr;return dr!==Xt&&(pr=Te(dr,Xt),function(Ur){this.setAttribute(qe,pr(Ur))})})}function ot(Xt){return Xt==null?Ye:(Xt+="",function(){var dr=this.getAttributeNS(qe.space,qe.local),pr;return dr!==Xt&&(pr=Te(dr,Xt),function(Ur){this.setAttributeNS(qe.space,qe.local,pr(Ur))})})}return Ts(this,"attr."+X,se,qe.local?ot:Pt)},Qa.attrTween=function(X,se){var Te=e.ns.qualify(X);function qe(Ye,Pt){var ot=se.call(this,Ye,Pt,this.getAttribute(Te));return ot&&function(Xt){this.setAttribute(Te,ot(Xt))}}function Ve(Ye,Pt){var ot=se.call(this,Ye,Pt,this.getAttributeNS(Te.space,Te.local));return ot&&function(Xt){this.setAttributeNS(Te.space,Te.local,ot(Xt))}}return this.tween("attr."+X,Te.local?Ve:qe)},Qa.style=function(X,se,Te){var qe=arguments.length;if(qe<3){if(typeof X!="string"){qe<2&&(se="");for(Te in X)this.style(Te,X[Te],se);return this}Te=""}function Ve(){this.style.removeProperty(X)}function Ye(Pt){return Pt==null?Ve:(Pt+="",function(){var ot=a(this).getComputedStyle(this,null).getPropertyValue(X),Xt;return ot!==Pt&&(Xt=xl(ot,Pt),function(dr){this.style.setProperty(X,Xt(dr),Te)})})}return Ts(this,"style."+X,se,Ye)},Qa.styleTween=function(X,se,Te){arguments.length<3&&(Te="");function qe(Ve,Ye){var Pt=se.call(this,Ve,Ye,a(this).getComputedStyle(this,null).getPropertyValue(X));return Pt&&function(ot){this.style.setProperty(X,Pt(ot),Te)}}return this.tween("style."+X,qe)},Qa.text=function(X){return Ts(this,"text",X,wo)};function wo(X){return X==null&&(X=""),function(){this.textContent=X}}Qa.remove=function(){var X=this.namespace;return this.each("end.transition",function(){var se;this[X].count<2&&(se=this.parentNode)&&se.removeChild(this)})},Qa.ease=function(X){var se=this.id,Te=this.namespace;return arguments.length<1?this.node()[Te][se].ease:(typeof X!="function"&&(X=e.ease.apply(e,arguments)),St(this,function(qe){qe[Te][se].ease=X}))},Qa.delay=function(X){var se=this.id,Te=this.namespace;return arguments.length<1?this.node()[Te][se].delay:St(this,typeof X=="function"?function(qe,Ve,Ye){qe[Te][se].delay=+X.call(qe,qe.__data__,Ve,Ye)}:(X=+X,function(qe){qe[Te][se].delay=X}))},Qa.duration=function(X){var se=this.id,Te=this.namespace;return arguments.length<1?this.node()[Te][se].duration:St(this,typeof X=="function"?function(qe,Ve,Ye){qe[Te][se].duration=Math.max(1,X.call(qe,qe.__data__,Ve,Ye))}:(X=Math.max(1,X),function(qe){qe[Te][se].duration=X}))},Qa.each=function(X,se){var Te=this.id,qe=this.namespace;if(arguments.length<2){var Ve=Ps,Ye=Bo;try{Bo=Te,St(this,function(Pt,ot,Xt){Ps=Pt[qe][Te],X.call(Pt,Pt.__data__,ot,Xt)})}finally{Ps=Ve,Bo=Ye}}else St(this,function(Pt){var ot=Pt[qe][Te];(ot.event||(ot.event=e.dispatch("start","end","interrupt"))).on(X,se)});return this},Qa.transition=function(){for(var X=this.id,se=++mo,Te=this.namespace,qe=[],Ve,Ye,Pt,ot,Xt=0,dr=this.length;Xt<dr;Xt++){qe.push(Ve=[]);for(var Ye=this[Xt],pr=0,Ur=Ye.length;pr<Ur;pr++)(Pt=Ye[pr])&&(ot=Pt[Te][X],hl(Pt,pr,Te,se,{time:ot.time,ease:ot.ease,delay:ot.delay+ot.duration,duration:ot.duration})),Ve.push(Pt)}return Co(qe,Te,se)};function To(X){return X==null?"__transition__":"__transition_"+X+"__"}function hl(X,se,Te,qe,Ve){var Ye=X[Te]||(X[Te]={active:0,count:0}),Pt=Ye[qe],ot,Xt,dr,pr,Ur;function zr(Wr){var ii=Pt.delay;if(Xt.t=ii+ot,ii<=Wr)return gi(Wr-ii);Xt.c=gi}function gi(Wr){var ii=Ye.active,di=Ye[ii];di&&(di.timer.c=null,di.timer.t=NaN,--Ye.count,delete Ye[ii],di.event&&di.event.interrupt.call(X,X.__data__,di.index));for(var Li in Ye)if(+Li<qe){var Ti=Ye[Li];Ti.timer.c=null,Ti.timer.t=NaN,--Ye.count,delete Ye[Li]}Xt.c=xi,No(function(){return Xt.c&&xi(Wr||1)&&(Xt.c=null,Xt.t=NaN),1},0,ot),Ye.active=qe,Pt.event&&Pt.event.start.call(X,X.__data__,se),Ur=[],Pt.tween.forEach(function(Qr,Pn){(Pn=Pn.call(X,X.__data__,se))&&Ur.push(Pn)}),pr=Pt.ease,dr=Pt.duration}function xi(Wr){for(var ii=Wr/dr,di=pr(ii),Li=Ur.length;Li>0;)Ur[--Li].call(X,di);if(ii>=1)return Pt.event&&Pt.event.end.call(X,X.__data__,se),--Ye.count?delete Ye[qe]:delete X[Te],1}Pt||(ot=Ve.time,Xt=No(zr,0,ot),Pt=Ye[qe]={tween:new T,time:ot,timer:Xt,delay:Ve.delay,duration:Ve.duration,ease:Ve.ease,index:se},Ve=null,++Ye.count)}e.svg.axis=function(){var X=e.scale.linear(),se=Ul,Te=6,qe=6,Ve=3,Ye=[10],Pt=null,ot;function Xt(dr){dr.each(function(){var pr=e.select(this),Ur=this.__chart__||X,zr=this.__chart__=X.copy(),gi=Pt==null?zr.ticks?zr.ticks.apply(zr,Ye):zr.domain():Pt,xi=ot==null?zr.tickFormat?zr.tickFormat.apply(zr,Ye):G:ot,Wr=pr.selectAll(".tick").data(gi,zr),ii=Wr.enter().insert("g",".domain").attr("class","tick").style("opacity",Je),di=e.transition(Wr.exit()).style("opacity",Je).remove(),Li=e.transition(Wr.order()).style("opacity",1),Ti=Math.max(Te,0)+Ve,Qr,Pn=wn(zr),kn=pr.selectAll(".domain").data([0]),Bn=(kn.enter().append("path").attr("class","domain"),e.transition(kn));ii.append("line"),ii.append("text");var na=ii.select("line"),Ea=Li.select("line"),Ia=Wr.select("text").text(xi),yo=ii.select("text"),Da=Li.select("text"),go=se==="top"||se==="left"?-1:1,Is,Ms,Xs,Un;if(se==="bottom"||se==="top"?(Qr=au,Is="x",Xs="y",Ms="x2",Un="y2",Ia.attr("dy",go<0?"0em":".71em").style("text-anchor","middle"),Bn.attr("d","M"+Pn[0]+","+go*qe+"V0H"+Pn[1]+"V"+go*qe)):(Qr=Js,Is="y",Xs="x",Ms="y2",Un="x2",Ia.attr("dy",".32em").style("text-anchor",go<0?"end":"start"),Bn.attr("d","M"+go*qe+","+Pn[0]+"H0V"+Pn[1]+"H"+go*qe)),na.attr(Un,go*Te),yo.attr(Xs,go*Ti),Ea.attr(Ms,0).attr(Un,go*Te),Da.attr(Is,0).attr(Xs,go*Ti),zr.rangeBand){var ja=zr,Fo=ja.rangeBand()/2;Ur=zr=function(Uo){return ja(Uo)+Fo}}else Ur.rangeBand?Ur=zr:di.call(Qr,zr,Ur);ii.call(Qr,Ur,zr),Li.call(Qr,zr,zr)})}return Xt.scale=function(dr){return arguments.length?(X=dr,Xt):X},Xt.orient=function(dr){return arguments.length?(se=dr in Lu?dr+"":Ul,Xt):se},Xt.ticks=function(){return arguments.length?(Ye=r(arguments),Xt):Ye},Xt.tickValues=function(dr){return arguments.length?(Pt=dr,Xt):Pt},Xt.tickFormat=function(dr){return arguments.length?(ot=dr,Xt):ot},Xt.tickSize=function(dr){var pr=arguments.length;return pr?(Te=+dr,qe=+arguments[pr-1],Xt):Te},Xt.innerTickSize=function(dr){return arguments.length?(Te=+dr,Xt):Te},Xt.outerTickSize=function(dr){return arguments.length?(qe=+dr,Xt):qe},Xt.tickPadding=function(dr){return arguments.length?(Ve=+dr,Xt):Ve},Xt.tickSubdivide=function(){return arguments.length&&Xt},Xt};var Ul="bottom",Lu={top:1,right:1,bottom:1,left:1};function au(X,se,Te){X.attr("transform",function(qe){var Ve=se(qe);return"translate("+(isFinite(Ve)?Ve:Te(qe))+",0)"})}function Js(X,se,Te){X.attr("transform",function(qe){var Ve=se(qe);return"translate(0,"+(isFinite(Ve)?Ve:Te(qe))+")"})}e.svg.brush=function(){var X=Ce(pr,"brushstart","brush","brushend"),se=null,Te=null,qe=[0,0],Ve=[0,0],Ye,Pt,ot=!0,Xt=!0,dr=dc[0];function pr(Wr){Wr.each(function(){var ii=e.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",xi).on("touchstart.brush",xi),di=ii.selectAll(".background").data([0]);di.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),ii.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var Li=ii.selectAll(".resize").data(dr,G);Li.exit().remove(),Li.enter().append("g").attr("class",function(kn){return"resize "+kn}).style("cursor",function(kn){return eu[kn]}).append("rect").attr("x",function(kn){return/[ew]$/.test(kn)?-3:null}).attr("y",function(kn){return/^[ns]/.test(kn)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),Li.style("display",pr.empty()?"none":null);var Ti=e.transition(ii),Qr=e.transition(di),Pn;se&&(Pn=wn(se),Qr.attr("x",Pn[0]).attr("width",Pn[1]-Pn[0]),zr(Ti)),Te&&(Pn=wn(Te),Qr.attr("y",Pn[0]).attr("height",Pn[1]-Pn[0]),gi(Ti)),Ur(Ti)})}pr.event=function(Wr){Wr.each(function(){var ii=X.of(this,arguments),di={x:qe,y:Ve,i:Ye,j:Pt},Li=this.__chart__||di;this.__chart__=di,Bo?e.select(this).transition().each("start.brush",function(){Ye=Li.i,Pt=Li.j,qe=Li.x,Ve=Li.y,ii({type:"brushstart"})}).tween("brush:brush",function(){var Ti=Gu(qe,di.x),Qr=Gu(Ve,di.y);return Ye=Pt=null,function(Pn){qe=di.x=Ti(Pn),Ve=di.y=Qr(Pn),ii({type:"brush",mode:"resize"})}}).each("end.brush",function(){Ye=di.i,Pt=di.j,ii({type:"brush",mode:"resize"}),ii({type:"brushend"})}):(ii({type:"brushstart"}),ii({type:"brush",mode:"resize"}),ii({type:"brushend"}))})};function Ur(Wr){Wr.selectAll(".resize").attr("transform",function(ii){return"translate("+qe[+/e$/.test(ii)]+","+Ve[+/^s/.test(ii)]+")"})}function zr(Wr){Wr.select(".extent").attr("x",qe[0]),Wr.selectAll(".extent,.n>rect,.s>rect").attr("width",qe[1]-qe[0])}function gi(Wr){Wr.select(".extent").attr("y",Ve[0]),Wr.selectAll(".extent,.e>rect,.w>rect").attr("height",Ve[1]-Ve[0])}function xi(){var Wr=this,ii=e.select(e.event.target),di=X.of(Wr,arguments),Li=e.select(Wr),Ti=ii.datum(),Qr=!/^(n|s)$/.test(Ti)&&se,Pn=!/^(e|w)$/.test(Ti)&&Te,kn=ii.classed("extent"),Bn=qr(Wr),na,Ea=e.mouse(Wr),Ia,yo=e.select(a(Wr)).on("keydown.brush",Is).on("keyup.brush",Ms);if(e.event.changedTouches?yo.on("touchmove.brush",Xs).on("touchend.brush",ja):yo.on("mousemove.brush",Xs).on("mouseup.brush",ja),Li.interrupt().selectAll("*").interrupt(),kn)Ea[0]=qe[0]-Ea[0],Ea[1]=Ve[0]-Ea[1];else if(Ti){var Da=+/w$/.test(Ti),go=+/^n/.test(Ti);Ia=[qe[1-Da]-Ea[0],Ve[1-go]-Ea[1]],Ea[0]=qe[Da],Ea[1]=Ve[go]}else e.event.altKey&&(na=Ea.slice());Li.style("pointer-events","none").selectAll(".resize").style("display",null),e.select("body").style("cursor",ii.style("cursor")),di({type:"brushstart"}),Xs();function Is(){e.event.keyCode==32&&(kn||(na=null,Ea[0]-=qe[1],Ea[1]-=Ve[1],kn=2),_e())}function Ms(){e.event.keyCode==32&&kn==2&&(Ea[0]+=qe[1],Ea[1]+=Ve[1],kn=0,_e())}function Xs(){var Fo=e.mouse(Wr),Uo=!1;Ia&&(Fo[0]+=Ia[0],Fo[1]+=Ia[1]),kn||(e.event.altKey?(na||(na=[(qe[0]+qe[1])/2,(Ve[0]+Ve[1])/2]),Ea[0]=qe[+(Fo[0]<na[0])],Ea[1]=Ve[+(Fo[1]<na[1])]):na=null),Qr&&Un(Fo,se,0)&&(zr(Li),Uo=!0),Pn&&Un(Fo,Te,1)&&(gi(Li),Uo=!0),Uo&&(Ur(Li),di({type:"brush",mode:kn?"move":"resize"}))}function Un(Fo,Uo,$s){var Sl=wn(Uo),bu=Sl[0],dl=Sl[1],Sc=Ea[$s],Me=$s?Ve:qe,bt=Me[1]-Me[0],Ot,Lr;if(kn&&(bu-=Sc,dl-=bt+Sc),Ot=($s?Xt:ot)?Math.max(bu,Math.min(dl,Fo[$s])):Fo[$s],kn?Lr=(Ot+=Sc)+bt:(na&&(Sc=Math.max(bu,Math.min(dl,2*na[$s]-Ot))),Sc<Ot?(Lr=Ot,Ot=Sc):Lr=Sc),Me[0]!=Ot||Me[1]!=Lr)return $s?Pt=null:Ye=null,Me[0]=Ot,Me[1]=Lr,!0}function ja(){Xs(),Li.style("pointer-events","all").selectAll(".resize").style("display",pr.empty()?"none":null),e.select("body").style("cursor",null),yo.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),Bn(),di({type:"brushend"})}}return pr.x=function(Wr){return arguments.length?(se=Wr,dr=dc[!se<<1|!Te],pr):se},pr.y=function(Wr){return arguments.length?(Te=Wr,dr=dc[!se<<1|!Te],pr):Te},pr.clamp=function(Wr){return arguments.length?(se&&Te?(ot=!!Wr[0],Xt=!!Wr[1]):se?ot=!!Wr:Te&&(Xt=!!Wr),pr):se&&Te?[ot,Xt]:se?ot:Te?Xt:null},pr.extent=function(Wr){var ii,di,Li,Ti,Qr;return arguments.length?(se&&(ii=Wr[0],di=Wr[1],Te&&(ii=ii[0],di=di[0]),Ye=[ii,di],se.invert&&(ii=se(ii),di=se(di)),di<ii&&(Qr=ii,ii=di,di=Qr),(ii!=qe[0]||di!=qe[1])&&(qe=[ii,di])),Te&&(Li=Wr[0],Ti=Wr[1],se&&(Li=Li[1],Ti=Ti[1]),Pt=[Li,Ti],Te.invert&&(Li=Te(Li),Ti=Te(Ti)),Ti<Li&&(Qr=Li,Li=Ti,Ti=Qr),(Li!=Ve[0]||Ti!=Ve[1])&&(Ve=[Li,Ti])),pr):(se&&(Ye?(ii=Ye[0],di=Ye[1]):(ii=qe[0],di=qe[1],se.invert&&(ii=se.invert(ii),di=se.invert(di)),di<ii&&(Qr=ii,ii=di,di=Qr))),Te&&(Pt?(Li=Pt[0],Ti=Pt[1]):(Li=Ve[0],Ti=Ve[1],Te.invert&&(Li=Te.invert(Li),Ti=Te.invert(Ti)),Ti<Li&&(Qr=Li,Li=Ti,Ti=Qr))),se&&Te?[[ii,Li],[di,Ti]]:se?[ii,di]:Te&&[Li,Ti])},pr.clear=function(){return pr.empty()||(qe=[0,0],Ve=[0,0],Ye=Pt=null),pr},pr.empty=function(){return!!se&&qe[0]==qe[1]||!!Te&&Ve[0]==Ve[1]},e.rebind(pr,X,"on")};var eu={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},dc=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];e.text=hn(function(X){return X.responseText}),e.json=function(X,se){return Sn(X,"application/json",Tl,se)};function Tl(X){return JSON.parse(X.responseText)}e.html=function(X,se){return Sn(X,"text/html",Al,se)};function Al(X){var se=n.createRange();return se.selectNode(n.body),se.createContextualFragment(X.responseText)}e.xml=hn(function(X){return X.responseXML}),typeof _6=="object"&&_6.exports?_6.exports=e:this.d3=e}).apply(self)});var Eq=ye((x6,Tee)=>{(function(e,t){typeof x6=="object"&&typeof Tee!="undefined"?t(x6):(e=e||self,t(e.d3=e.d3||{}))})(x6,function(e){"use strict";var t=new Date,r=new Date;function n(Ae,rt,St,Tt){function dt(Et){return Ae(Et=arguments.length===0?new Date:new Date(+Et)),Et}return dt.floor=function(Et){return Ae(Et=new Date(+Et)),Et},dt.ceil=function(Et){return Ae(Et=new Date(Et-1)),rt(Et,1),Ae(Et),Et},dt.round=function(Et){var pt=dt(Et),jt=dt.ceil(Et);return Et-pt<jt-Et?pt:jt},dt.offset=function(Et,pt){return rt(Et=new Date(+Et),pt==null?1:Math.floor(pt)),Et},dt.range=function(Et,pt,jt){var or=[],mr;if(Et=dt.ceil(Et),jt=jt==null?1:Math.floor(jt),!(Et<pt)||!(jt>0))return or;do or.push(mr=new Date(+Et)),rt(Et,jt),Ae(Et);while(mr<Et&&Et<pt);return or},dt.filter=function(Et){return n(function(pt){if(pt>=pt)for(;Ae(pt),!Et(pt);)pt.setTime(pt-1)},function(pt,jt){if(pt>=pt)if(jt<0)for(;++jt<=0;)for(;rt(pt,-1),!Et(pt););else for(;--jt>=0;)for(;rt(pt,1),!Et(pt););})},St&&(dt.count=function(Et,pt){return t.setTime(+Et),r.setTime(+pt),Ae(t),Ae(r),Math.floor(St(t,r))},dt.every=function(Et){return Et=Math.floor(Et),!isFinite(Et)||!(Et>0)?null:Et>1?dt.filter(Tt?function(pt){return Tt(pt)%Et===0}:function(pt){return dt.count(0,pt)%Et===0}):dt}),dt}var i=n(function(){},function(Ae,rt){Ae.setTime(+Ae+rt)},function(Ae,rt){return rt-Ae});i.every=function(Ae){return Ae=Math.floor(Ae),!isFinite(Ae)||!(Ae>0)?null:Ae>1?n(function(rt){rt.setTime(Math.floor(rt/Ae)*Ae)},function(rt,St){rt.setTime(+rt+St*Ae)},function(rt,St){return(St-rt)/Ae}):i};var a=i.range,o=1e3,s=6e4,l=36e5,u=864e5,c=6048e5,f=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds())},function(Ae,rt){Ae.setTime(+Ae+rt*o)},function(Ae,rt){return(rt-Ae)/o},function(Ae){return Ae.getUTCSeconds()}),h=f.range,d=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o)},function(Ae,rt){Ae.setTime(+Ae+rt*s)},function(Ae,rt){return(rt-Ae)/s},function(Ae){return Ae.getMinutes()}),v=d.range,m=n(function(Ae){Ae.setTime(Ae-Ae.getMilliseconds()-Ae.getSeconds()*o-Ae.getMinutes()*s)},function(Ae,rt){Ae.setTime(+Ae+rt*l)},function(Ae,rt){return(rt-Ae)/l},function(Ae){return Ae.getHours()}),b=m.range,p=n(function(Ae){Ae.setHours(0,0,0,0)},function(Ae,rt){Ae.setDate(Ae.getDate()+rt)},function(Ae,rt){return(rt-Ae-(rt.getTimezoneOffset()-Ae.getTimezoneOffset())*s)/u},function(Ae){return Ae.getDate()-1}),k=p.range;function M(Ae){return n(function(rt){rt.setDate(rt.getDate()-(rt.getDay()+7-Ae)%7),rt.setHours(0,0,0,0)},function(rt,St){rt.setDate(rt.getDate()+St*7)},function(rt,St){return(St-rt-(St.getTimezoneOffset()-rt.getTimezoneOffset())*s)/c})}var T=M(0),L=M(1),x=M(2),C=M(3),S=M(4),g=M(5),P=M(6),E=T.range,z=L.range,q=x.range,V=C.range,G=S.range,Z=g.range,j=P.range,N=n(function(Ae){Ae.setDate(1),Ae.setHours(0,0,0,0)},function(Ae,rt){Ae.setMonth(Ae.getMonth()+rt)},function(Ae,rt){return rt.getMonth()-Ae.getMonth()+(rt.getFullYear()-Ae.getFullYear())*12},function(Ae){return Ae.getMonth()}),H=N.range,ie=n(function(Ae){Ae.setMonth(0,1),Ae.setHours(0,0,0,0)},function(Ae,rt){Ae.setFullYear(Ae.getFullYear()+rt)},function(Ae,rt){return rt.getFullYear()-Ae.getFullYear()},function(Ae){return Ae.getFullYear()});ie.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(rt){rt.setFullYear(Math.floor(rt.getFullYear()/Ae)*Ae),rt.setMonth(0,1),rt.setHours(0,0,0,0)},function(rt,St){rt.setFullYear(rt.getFullYear()+St*Ae)})};var ae=ie.range,_e=n(function(Ae){Ae.setUTCSeconds(0,0)},function(Ae,rt){Ae.setTime(+Ae+rt*s)},function(Ae,rt){return(rt-Ae)/s},function(Ae){return Ae.getUTCMinutes()}),Ee=_e.range,Ce=n(function(Ae){Ae.setUTCMinutes(0,0,0)},function(Ae,rt){Ae.setTime(+Ae+rt*l)},function(Ae,rt){return(rt-Ae)/l},function(Ae){return Ae.getUTCHours()}),ge=Ce.range,re=n(function(Ae){Ae.setUTCHours(0,0,0,0)},function(Ae,rt){Ae.setUTCDate(Ae.getUTCDate()+rt)},function(Ae,rt){return(rt-Ae)/u},function(Ae){return Ae.getUTCDate()-1}),Se=re.range;function ke(Ae){return n(function(rt){rt.setUTCDate(rt.getUTCDate()-(rt.getUTCDay()+7-Ae)%7),rt.setUTCHours(0,0,0,0)},function(rt,St){rt.setUTCDate(rt.getUTCDate()+St*7)},function(rt,St){return(St-rt)/c})}var be=ke(0),Be=ke(1),Le=ke(2),me=ke(3),Pe=ke(4),ce=ke(5),He=ke(6),lt=be.range,mt=Be.range,Ht=Le.range,at=me.range,ct=Pe.range,ar=ce.range,Vt=He.range,rr=n(function(Ae){Ae.setUTCDate(1),Ae.setUTCHours(0,0,0,0)},function(Ae,rt){Ae.setUTCMonth(Ae.getUTCMonth()+rt)},function(Ae,rt){return rt.getUTCMonth()-Ae.getUTCMonth()+(rt.getUTCFullYear()-Ae.getUTCFullYear())*12},function(Ae){return Ae.getUTCMonth()}),tt=rr.range,je=n(function(Ae){Ae.setUTCMonth(0,1),Ae.setUTCHours(0,0,0,0)},function(Ae,rt){Ae.setUTCFullYear(Ae.getUTCFullYear()+rt)},function(Ae,rt){return rt.getUTCFullYear()-Ae.getUTCFullYear()},function(Ae){return Ae.getUTCFullYear()});je.every=function(Ae){return!isFinite(Ae=Math.floor(Ae))||!(Ae>0)?null:n(function(rt){rt.setUTCFullYear(Math.floor(rt.getUTCFullYear()/Ae)*Ae),rt.setUTCMonth(0,1),rt.setUTCHours(0,0,0,0)},function(rt,St){rt.setUTCFullYear(rt.getUTCFullYear()+St*Ae)})};var Ue=je.range;e.timeDay=p,e.timeDays=k,e.timeFriday=g,e.timeFridays=Z,e.timeHour=m,e.timeHours=b,e.timeInterval=n,e.timeMillisecond=i,e.timeMilliseconds=a,e.timeMinute=d,e.timeMinutes=v,e.timeMonday=L,e.timeMondays=z,e.timeMonth=N,e.timeMonths=H,e.timeSaturday=P,e.timeSaturdays=j,e.timeSecond=f,e.timeSeconds=h,e.timeSunday=T,e.timeSundays=E,e.timeThursday=S,e.timeThursdays=G,e.timeTuesday=x,e.timeTuesdays=q,e.timeWednesday=C,e.timeWednesdays=V,e.timeWeek=T,e.timeWeeks=E,e.timeYear=ie,e.timeYears=ae,e.utcDay=re,e.utcDays=Se,e.utcFriday=ce,e.utcFridays=ar,e.utcHour=Ce,e.utcHours=ge,e.utcMillisecond=i,e.utcMilliseconds=a,e.utcMinute=_e,e.utcMinutes=Ee,e.utcMonday=Be,e.utcMondays=mt,e.utcMonth=rr,e.utcMonths=tt,e.utcSaturday=He,e.utcSaturdays=Vt,e.utcSecond=f,e.utcSeconds=h,e.utcSunday=be,e.utcSundays=lt,e.utcThursday=Pe,e.utcThursdays=ct,e.utcTuesday=Le,e.utcTuesdays=Ht,e.utcWednesday=me,e.utcWednesdays=at,e.utcWeek=be,e.utcWeeks=lt,e.utcYear=je,e.utcYears=Ue,Object.defineProperty(e,"__esModule",{value:!0})})});var d3=ye((b6,Aee)=>{(function(e,t){typeof b6=="object"&&typeof Aee!="undefined"?t(b6,Eq()):(e=e||self,t(e.d3=e.d3||{},e.d3))})(b6,function(e,t){"use strict";function r(Ge){if(0<=Ge.y&&Ge.y<100){var Je=new Date(-1,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L);return Je.setFullYear(Ge.y),Je}return new Date(Ge.y,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L)}function n(Ge){if(0<=Ge.y&&Ge.y<100){var Je=new Date(Date.UTC(-1,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L));return Je.setUTCFullYear(Ge.y),Je}return new Date(Date.UTC(Ge.y,Ge.m,Ge.d,Ge.H,Ge.M,Ge.S,Ge.L))}function i(Ge,Je,We){return{y:Ge,m:Je,d:We,H:0,M:0,S:0,L:0}}function a(Ge){var Je=Ge.dateTime,We=Ge.date,et=Ge.time,xt=Ge.periods,At=Ge.days,Kt=Ge.shortDays,Qt=Ge.months,Mr=Ge.shortMonths,Gr=h(xt),Ir=d(xt),Yr=h(At),_i=d(At),Pi=h(Kt),ai=d(Kt),mi=h(Qt),un=d(Qt),Fn=h(Mr),An=d(Mr),Hn={a:Zi,A:en,b:fn,B:yn,c:null,d:N,e:N,f:Ee,H,I:ie,j:ae,L:_e,m:Ce,M:ge,p:Mn,q:Ba,Q:pt,s:jt,S:re,u:Se,U:ke,V:be,w:Be,W:Le,x:null,X:null,y:me,Y:Pe,Z:ce,"%":Et},Qn={a:ua,A:ma,b:Wa,B:Fa,c:null,d:He,e:He,f:ct,H:lt,I:mt,j:Ht,L:at,m:ar,M:Vt,p:Xo,q:da,Q:pt,s:jt,S:rr,u:tt,U:je,V:Ue,w:Ae,W:rt,x:null,X:null,y:St,Y:Tt,Z:dt,"%":Et},Vi={a:tr,A:ir,b:wr,B:Xr,c:ti,d:S,e:S,f:V,H:P,I:P,j:g,L:q,m:C,M:E,p:wt,q:x,Q:Z,s:j,S:z,u:m,U:b,V:p,w:v,W:k,x:$r,X:Ri,y:T,Y:M,Z:L,"%":G};Hn.x=Kn(We,Hn),Hn.X=Kn(et,Hn),Hn.c=Kn(Je,Hn),Qn.x=Kn(We,Qn),Qn.X=Kn(et,Qn),Qn.c=Kn(Je,Qn);function Kn(jn,Ha){return function(vo){var Gn=[],Ct=-1,Sr=0,Jr=jn.length,hi,hn,Sn;for(vo instanceof Date||(vo=new Date(+vo));++Ct<Jr;)jn.charCodeAt(Ct)===37&&(Gn.push(jn.slice(Sr,Ct)),(hn=o[hi=jn.charAt(++Ct)])!=null?hi=jn.charAt(++Ct):hn=hi==="e"?" ":"0",(Sn=Ha[hi])&&(hi=Sn(vo,hn)),Gn.push(hi),Sr=Ct+1);return Gn.push(jn.slice(Sr,Ct)),Gn.join("")}}function Jn(jn,Ha){return function(vo){var Gn=i(1900,void 0,1),Ct=Gt(Gn,jn,vo+="",0),Sr,Jr;if(Ct!=vo.length)return null;if("Q"in Gn)return new Date(Gn.Q);if("s"in Gn)return new Date(Gn.s*1e3+("L"in Gn?Gn.L:0));if(Ha&&!("Z"in Gn)&&(Gn.Z=0),"p"in Gn&&(Gn.H=Gn.H%12+Gn.p*12),Gn.m===void 0&&(Gn.m="q"in Gn?Gn.q:0),"V"in Gn){if(Gn.V<1||Gn.V>53)return null;"w"in Gn||(Gn.w=1),"Z"in Gn?(Sr=n(i(Gn.y,0,1)),Jr=Sr.getUTCDay(),Sr=Jr>4||Jr===0?t.utcMonday.ceil(Sr):t.utcMonday(Sr),Sr=t.utcDay.offset(Sr,(Gn.V-1)*7),Gn.y=Sr.getUTCFullYear(),Gn.m=Sr.getUTCMonth(),Gn.d=Sr.getUTCDate()+(Gn.w+6)%7):(Sr=r(i(Gn.y,0,1)),Jr=Sr.getDay(),Sr=Jr>4||Jr===0?t.timeMonday.ceil(Sr):t.timeMonday(Sr),Sr=t.timeDay.offset(Sr,(Gn.V-1)*7),Gn.y=Sr.getFullYear(),Gn.m=Sr.getMonth(),Gn.d=Sr.getDate()+(Gn.w+6)%7)}else("W"in Gn||"U"in Gn)&&("w"in Gn||(Gn.w="u"in Gn?Gn.u%7:"W"in Gn?1:0),Jr="Z"in Gn?n(i(Gn.y,0,1)).getUTCDay():r(i(Gn.y,0,1)).getDay(),Gn.m=0,Gn.d="W"in Gn?(Gn.w+6)%7+Gn.W*7-(Jr+5)%7:Gn.w+Gn.U*7-(Jr+6)%7);return"Z"in Gn?(Gn.H+=Gn.Z/100|0,Gn.M+=Gn.Z%100,n(Gn)):r(Gn)}}function Gt(jn,Ha,vo,Gn){for(var Ct=0,Sr=Ha.length,Jr=vo.length,hi,hn;Ct<Sr;){if(Gn>=Jr)return-1;if(hi=Ha.charCodeAt(Ct++),hi===37){if(hi=Ha.charAt(Ct++),hn=Vi[hi in o?Ha.charAt(Ct++):hi],!hn||(Gn=hn(jn,vo,Gn))<0)return-1}else if(hi!=vo.charCodeAt(Gn++))return-1}return Gn}function wt(jn,Ha,vo){var Gn=Gr.exec(Ha.slice(vo));return Gn?(jn.p=Ir[Gn[0].toLowerCase()],vo+Gn[0].length):-1}function tr(jn,Ha,vo){var Gn=Pi.exec(Ha.slice(vo));return Gn?(jn.w=ai[Gn[0].toLowerCase()],vo+Gn[0].length):-1}function ir(jn,Ha,vo){var Gn=Yr.exec(Ha.slice(vo));return Gn?(jn.w=_i[Gn[0].toLowerCase()],vo+Gn[0].length):-1}function wr(jn,Ha,vo){var Gn=Fn.exec(Ha.slice(vo));return Gn?(jn.m=An[Gn[0].toLowerCase()],vo+Gn[0].length):-1}function Xr(jn,Ha,vo){var Gn=mi.exec(Ha.slice(vo));return Gn?(jn.m=un[Gn[0].toLowerCase()],vo+Gn[0].length):-1}function ti(jn,Ha,vo){return Gt(jn,Je,Ha,vo)}function $r(jn,Ha,vo){return Gt(jn,We,Ha,vo)}function Ri(jn,Ha,vo){return Gt(jn,et,Ha,vo)}function Zi(jn){return Kt[jn.getDay()]}function en(jn){return At[jn.getDay()]}function fn(jn){return Mr[jn.getMonth()]}function yn(jn){return Qt[jn.getMonth()]}function Mn(jn){return xt[+(jn.getHours()>=12)]}function Ba(jn){return 1+~~(jn.getMonth()/3)}function ua(jn){return Kt[jn.getUTCDay()]}function ma(jn){return At[jn.getUTCDay()]}function Wa(jn){return Mr[jn.getUTCMonth()]}function Fa(jn){return Qt[jn.getUTCMonth()]}function Xo(jn){return xt[+(jn.getUTCHours()>=12)]}function da(jn){return 1+~~(jn.getUTCMonth()/3)}return{format:function(jn){var Ha=Kn(jn+="",Hn);return Ha.toString=function(){return jn},Ha},parse:function(jn){var Ha=Jn(jn+="",!1);return Ha.toString=function(){return jn},Ha},utcFormat:function(jn){var Ha=Kn(jn+="",Qn);return Ha.toString=function(){return jn},Ha},utcParse:function(jn){var Ha=Jn(jn+="",!0);return Ha.toString=function(){return jn},Ha}}}var o={"-":"",_:" ",0:"0"},s=/^\s*\d+/,l=/^%/,u=/[\\^$*+?|[\]().{}]/g;function c(Ge,Je,We){var et=Ge<0?"-":"",xt=(et?-Ge:Ge)+"",At=xt.length;return et+(At<We?new Array(We-At+1).join(Je)+xt:xt)}function f(Ge){return Ge.replace(u,"\\$&")}function h(Ge){return new RegExp("^(?:"+Ge.map(f).join("|")+")","i")}function d(Ge){for(var Je={},We=-1,et=Ge.length;++We<et;)Je[Ge[We].toLowerCase()]=We;return Je}function v(Ge,Je,We){var et=s.exec(Je.slice(We,We+1));return et?(Ge.w=+et[0],We+et[0].length):-1}function m(Ge,Je,We){var et=s.exec(Je.slice(We,We+1));return et?(Ge.u=+et[0],We+et[0].length):-1}function b(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.U=+et[0],We+et[0].length):-1}function p(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.V=+et[0],We+et[0].length):-1}function k(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.W=+et[0],We+et[0].length):-1}function M(Ge,Je,We){var et=s.exec(Je.slice(We,We+4));return et?(Ge.y=+et[0],We+et[0].length):-1}function T(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.y=+et[0]+(+et[0]>68?1900:2e3),We+et[0].length):-1}function L(Ge,Je,We){var et=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Je.slice(We,We+6));return et?(Ge.Z=et[1]?0:-(et[2]+(et[3]||"00")),We+et[0].length):-1}function x(Ge,Je,We){var et=s.exec(Je.slice(We,We+1));return et?(Ge.q=et[0]*3-3,We+et[0].length):-1}function C(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.m=et[0]-1,We+et[0].length):-1}function S(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.d=+et[0],We+et[0].length):-1}function g(Ge,Je,We){var et=s.exec(Je.slice(We,We+3));return et?(Ge.m=0,Ge.d=+et[0],We+et[0].length):-1}function P(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.H=+et[0],We+et[0].length):-1}function E(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.M=+et[0],We+et[0].length):-1}function z(Ge,Je,We){var et=s.exec(Je.slice(We,We+2));return et?(Ge.S=+et[0],We+et[0].length):-1}function q(Ge,Je,We){var et=s.exec(Je.slice(We,We+3));return et?(Ge.L=+et[0],We+et[0].length):-1}function V(Ge,Je,We){var et=s.exec(Je.slice(We,We+6));return et?(Ge.L=Math.floor(et[0]/1e3),We+et[0].length):-1}function G(Ge,Je,We){var et=l.exec(Je.slice(We,We+1));return et?We+et[0].length:-1}function Z(Ge,Je,We){var et=s.exec(Je.slice(We));return et?(Ge.Q=+et[0],We+et[0].length):-1}function j(Ge,Je,We){var et=s.exec(Je.slice(We));return et?(Ge.s=+et[0],We+et[0].length):-1}function N(Ge,Je){return c(Ge.getDate(),Je,2)}function H(Ge,Je){return c(Ge.getHours(),Je,2)}function ie(Ge,Je){return c(Ge.getHours()%12||12,Je,2)}function ae(Ge,Je){return c(1+t.timeDay.count(t.timeYear(Ge),Ge),Je,3)}function _e(Ge,Je){return c(Ge.getMilliseconds(),Je,3)}function Ee(Ge,Je){return _e(Ge,Je)+"000"}function Ce(Ge,Je){return c(Ge.getMonth()+1,Je,2)}function ge(Ge,Je){return c(Ge.getMinutes(),Je,2)}function re(Ge,Je){return c(Ge.getSeconds(),Je,2)}function Se(Ge){var Je=Ge.getDay();return Je===0?7:Je}function ke(Ge,Je){return c(t.timeSunday.count(t.timeYear(Ge)-1,Ge),Je,2)}function be(Ge,Je){var We=Ge.getDay();return Ge=We>=4||We===0?t.timeThursday(Ge):t.timeThursday.ceil(Ge),c(t.timeThursday.count(t.timeYear(Ge),Ge)+(t.timeYear(Ge).getDay()===4),Je,2)}function Be(Ge){return Ge.getDay()}function Le(Ge,Je){return c(t.timeMonday.count(t.timeYear(Ge)-1,Ge),Je,2)}function me(Ge,Je){return c(Ge.getFullYear()%100,Je,2)}function Pe(Ge,Je){return c(Ge.getFullYear()%1e4,Je,4)}function ce(Ge){var Je=Ge.getTimezoneOffset();return(Je>0?"-":(Je*=-1,"+"))+c(Je/60|0,"0",2)+c(Je%60,"0",2)}function He(Ge,Je){return c(Ge.getUTCDate(),Je,2)}function lt(Ge,Je){return c(Ge.getUTCHours(),Je,2)}function mt(Ge,Je){return c(Ge.getUTCHours()%12||12,Je,2)}function Ht(Ge,Je){return c(1+t.utcDay.count(t.utcYear(Ge),Ge),Je,3)}function at(Ge,Je){return c(Ge.getUTCMilliseconds(),Je,3)}function ct(Ge,Je){return at(Ge,Je)+"000"}function ar(Ge,Je){return c(Ge.getUTCMonth()+1,Je,2)}function Vt(Ge,Je){return c(Ge.getUTCMinutes(),Je,2)}function rr(Ge,Je){return c(Ge.getUTCSeconds(),Je,2)}function tt(Ge){var Je=Ge.getUTCDay();return Je===0?7:Je}function je(Ge,Je){return c(t.utcSunday.count(t.utcYear(Ge)-1,Ge),Je,2)}function Ue(Ge,Je){var We=Ge.getUTCDay();return Ge=We>=4||We===0?t.utcThursday(Ge):t.utcThursday.ceil(Ge),c(t.utcThursday.count(t.utcYear(Ge),Ge)+(t.utcYear(Ge).getUTCDay()===4),Je,2)}function Ae(Ge){return Ge.getUTCDay()}function rt(Ge,Je){return c(t.utcMonday.count(t.utcYear(Ge)-1,Ge),Je,2)}function St(Ge,Je){return c(Ge.getUTCFullYear()%100,Je,2)}function Tt(Ge,Je){return c(Ge.getUTCFullYear()%1e4,Je,4)}function dt(){return"+0000"}function Et(){return"%"}function pt(Ge){return+Ge}function jt(Ge){return Math.floor(+Ge/1e3)}var or;mr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],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"]});function mr(Ge){return or=a(Ge),e.timeFormat=or.format,e.timeParse=or.parse,e.utcFormat=or.utcFormat,e.utcParse=or.utcParse,or}var Ar="%Y-%m-%dT%H:%M:%S.%LZ";function ei(Ge){return Ge.toISOString()}var qr=Date.prototype.toISOString?ei:e.utcFormat(Ar);function jr(Ge){var Je=new Date(Ge);return isNaN(Je)?null:Je}var gt=+new Date("2000-01-01T00:00:00.000Z")?jr:e.utcParse(Ar);e.isoFormat=qr,e.isoParse=gt,e.timeFormatDefaultLocale=mr,e.timeFormatLocale=a,Object.defineProperty(e,"__esModule",{value:!0})})});var kq=ye((w6,See)=>{(function(e,t){typeof w6=="object"&&typeof See!="undefined"?t(w6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e.d3=e.d3||{}))})(w6,function(e){"use strict";function t(C){return Math.abs(C=Math.round(C))>=1e21?C.toLocaleString("en").replace(/,/g,""):C.toString(10)}function r(C,S){if((g=(C=S?C.toExponential(S-1):C.toExponential()).indexOf("e"))<0)return null;var g,P=C.slice(0,g);return[P.length>1?P[0]+P.slice(2):P,+C.slice(g+1)]}function n(C){return C=r(Math.abs(C)),C?C[1]:NaN}function i(C,S){return function(g,P){for(var E=g.length,z=[],q=0,V=C[0],G=0;E>0&&V>0&&(G+V+1>P&&(V=Math.max(1,P-G)),z.push(g.substring(E-=V,E+V)),!((G+=V+1)>P));)V=C[q=(q+1)%C.length];return z.reverse().join(S)}}function a(C){return function(S){return S.replace(/[0-9]/g,function(g){return C[+g]})}}var o=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function s(C){if(!(S=o.exec(C)))throw new Error("invalid format: "+C);var S;return new l({fill:S[1],align:S[2],sign:S[3],symbol:S[4],zero:S[5],width:S[6],comma:S[7],precision:S[8]&&S[8].slice(1),trim:S[9],type:S[10]})}s.prototype=l.prototype;function l(C){this.fill=C.fill===void 0?" ":C.fill+"",this.align=C.align===void 0?">":C.align+"",this.sign=C.sign===void 0?"-":C.sign+"",this.symbol=C.symbol===void 0?"":C.symbol+"",this.zero=!!C.zero,this.width=C.width===void 0?void 0:+C.width,this.comma=!!C.comma,this.precision=C.precision===void 0?void 0:+C.precision,this.trim=!!C.trim,this.type=C.type===void 0?"":C.type+""}l.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u(C){e:for(var S=C.length,g=1,P=-1,E;g<S;++g)switch(C[g]){case".":P=E=g;break;case"0":P===0&&(P=g),E=g;break;default:if(!+C[g])break e;P>0&&(P=0);break}return P>0?C.slice(0,P)+C.slice(E+1):C}var c;function f(C,S){var g=r(C,S);if(!g)return C+"";var P=g[0],E=g[1],z=E-(c=Math.max(-8,Math.min(8,Math.floor(E/3)))*3)+1,q=P.length;return z===q?P:z>q?P+new Array(z-q+1).join("0"):z>0?P.slice(0,z)+"."+P.slice(z):"0."+new Array(1-z).join("0")+r(C,Math.max(0,S+z-1))[0]}function h(C,S){var g=r(C,S);if(!g)return C+"";var P=g[0],E=g[1];return E<0?"0."+new Array(-E).join("0")+P:P.length>E+1?P.slice(0,E+1)+"."+P.slice(E+1):P+new Array(E-P.length+2).join("0")}var d={"%":function(C,S){return(C*100).toFixed(S)},b:function(C){return Math.round(C).toString(2)},c:function(C){return C+""},d:t,e:function(C,S){return C.toExponential(S)},f:function(C,S){return C.toFixed(S)},g:function(C,S){return C.toPrecision(S)},o:function(C){return Math.round(C).toString(8)},p:function(C,S){return h(C*100,S)},r:h,s:f,X:function(C){return Math.round(C).toString(16).toUpperCase()},x:function(C){return Math.round(C).toString(16)}};function v(C){return C}var m=Array.prototype.map,b=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function p(C){var S=C.grouping===void 0||C.thousands===void 0?v:i(m.call(C.grouping,Number),C.thousands+""),g=C.currency===void 0?"":C.currency[0]+"",P=C.currency===void 0?"":C.currency[1]+"",E=C.decimal===void 0?".":C.decimal+"",z=C.numerals===void 0?v:a(m.call(C.numerals,String)),q=C.percent===void 0?"%":C.percent+"",V=C.minus===void 0?"-":C.minus+"",G=C.nan===void 0?"NaN":C.nan+"";function Z(N){N=s(N);var H=N.fill,ie=N.align,ae=N.sign,_e=N.symbol,Ee=N.zero,Ce=N.width,ge=N.comma,re=N.precision,Se=N.trim,ke=N.type;ke==="n"?(ge=!0,ke="g"):d[ke]||(re===void 0&&(re=12),Se=!0,ke="g"),(Ee||H==="0"&&ie==="=")&&(Ee=!0,H="0",ie="=");var be=_e==="$"?g:_e==="#"&&/[boxX]/.test(ke)?"0"+ke.toLowerCase():"",Be=_e==="$"?P:/[%p]/.test(ke)?q:"",Le=d[ke],me=/[defgprs%]/.test(ke);re=re===void 0?6:/[gprs]/.test(ke)?Math.max(1,Math.min(21,re)):Math.max(0,Math.min(20,re));function Pe(ce){var He=be,lt=Be,mt,Ht,at;if(ke==="c")lt=Le(ce)+lt,ce="";else{ce=+ce;var ct=ce<0||1/ce<0;if(ce=isNaN(ce)?G:Le(Math.abs(ce),re),Se&&(ce=u(ce)),ct&&+ce==0&&ae!=="+"&&(ct=!1),He=(ct?ae==="("?ae:V:ae==="-"||ae==="("?"":ae)+He,lt=(ke==="s"?b[8+c/3]:"")+lt+(ct&&ae==="("?")":""),me){for(mt=-1,Ht=ce.length;++mt<Ht;)if(at=ce.charCodeAt(mt),48>at||at>57){lt=(at===46?E+ce.slice(mt+1):ce.slice(mt))+lt,ce=ce.slice(0,mt);break}}}ge&&!Ee&&(ce=S(ce,1/0));var ar=He.length+ce.length+lt.length,Vt=ar<Ce?new Array(Ce-ar+1).join(H):"";switch(ge&&Ee&&(ce=S(Vt+ce,Vt.length?Ce-lt.length:1/0),Vt=""),ie){case"<":ce=He+ce+lt+Vt;break;case"=":ce=He+Vt+ce+lt;break;case"^":ce=Vt.slice(0,ar=Vt.length>>1)+He+ce+lt+Vt.slice(ar);break;default:ce=Vt+He+ce+lt;break}return z(ce)}return Pe.toString=function(){return N+""},Pe}function j(N,H){var ie=Z((N=s(N),N.type="f",N)),ae=Math.max(-8,Math.min(8,Math.floor(n(H)/3)))*3,_e=Math.pow(10,-ae),Ee=b[8+ae/3];return function(Ce){return ie(_e*Ce)+Ee}}return{format:Z,formatPrefix:j}}var k;M({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function M(C){return k=p(C),e.format=k.format,e.formatPrefix=k.formatPrefix,k}function T(C){return Math.max(0,-n(Math.abs(C)))}function L(C,S){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(n(S)/3)))*3-n(Math.abs(C)))}function x(C,S){return C=Math.abs(C),S=Math.abs(S)-C,Math.max(0,n(S)-n(C))+1}e.FormatSpecifier=l,e.formatDefaultLocale=M,e.formatLocale=p,e.formatSpecifier=s,e.precisionFixed=T,e.precisionPrefix=L,e.precisionRound=x,Object.defineProperty(e,"__esModule",{value:!0})})});var Eee=ye((Mrr,Mee)=>{"use strict";Mee.exports=function(e){for(var t=e.length,r,n=0;n<t;n++)if(r=e.charCodeAt(n),(r<9||r>13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0}});var Eo=ye((Err,kee)=>{"use strict";var Ctt=Eee();kee.exports=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&Ctt(r))return!1}else if(t!=="number")return!1;return e-e<1}});var fs=ye((krr,Cee)=>{"use strict";Cee.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE*1e-4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,ONEMILLI:1,ONEMICROSEC:.001,EPOCHJD:24405875e-1,ALMOST_EQUAL:1-1e-6,LOG_CLIP:10,MINUS_SIGN:"\u2212"}});var Cq=ye((T6,Lee)=>{(function(e,t){typeof T6=="object"&&typeof Lee!="undefined"?t(T6):(e=typeof globalThis!="undefined"?globalThis:e||self,t(e["base64-arraybuffer"]={}))})(T6,function(e){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),n=0;n<t.length;n++)r[t.charCodeAt(n)]=n;var i=function(o){var s=new Uint8Array(o),l,u=s.length,c="";for(l=0;l<u;l+=3)c+=t[s[l]>>2],c+=t[(s[l]&3)<<4|s[l+1]>>4],c+=t[(s[l+1]&15)<<2|s[l+2]>>6],c+=t[s[l+2]&63];return u%3===2?c=c.substring(0,c.length-1)+"=":u%3===1&&(c=c.substring(0,c.length-2)+"=="),c},a=function(o){var s=o.length*.75,l=o.length,u,c=0,f,h,d,v;o[o.length-1]==="="&&(s--,o[o.length-2]==="="&&s--);var m=new ArrayBuffer(s),b=new Uint8Array(m);for(u=0;u<l;u+=4)f=r[o.charCodeAt(u)],h=r[o.charCodeAt(u+1)],d=r[o.charCodeAt(u+2)],v=r[o.charCodeAt(u+3)],b[c++]=f<<2|h>>4,b[c++]=(h&15)<<4|d>>2,b[c++]=(d&3)<<6|v&63;return m};e.decode=a,e.encode=i,Object.defineProperty(e,"__esModule",{value:!0})})});var Ay=ye((Crr,Pee)=>{"use strict";Pee.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")}});var Yd=ye(xg=>{"use strict";var Ltt=Cq().decode,Ptt=Ay(),Lq=Array.isArray,Itt=ArrayBuffer,Rtt=DataView;function Iee(e){return Itt.isView(e)&&!(e instanceof Rtt)}xg.isTypedArray=Iee;function A6(e){return Lq(e)||Iee(e)}xg.isArrayOrTypedArray=A6;function Dtt(e){return!A6(e[0])}xg.isArray1D=Dtt;xg.ensureArray=function(e,t){return Lq(e)||(e=[]),e.length=t,e};var Ld={u1c:typeof Uint8ClampedArray=="undefined"?void 0:Uint8ClampedArray,i1:typeof Int8Array=="undefined"?void 0:Int8Array,u1:typeof Uint8Array=="undefined"?void 0:Uint8Array,i2:typeof Int16Array=="undefined"?void 0:Int16Array,u2:typeof Uint16Array=="undefined"?void 0:Uint16Array,i4:typeof Int32Array=="undefined"?void 0:Int32Array,u4:typeof Uint32Array=="undefined"?void 0:Uint32Array,f4:typeof Float32Array=="undefined"?void 0:Float32Array,f8:typeof Float64Array=="undefined"?void 0:Float64Array};Ld.uint8c=Ld.u1c;Ld.uint8=Ld.u1;Ld.int8=Ld.i1;Ld.uint16=Ld.u2;Ld.int16=Ld.i2;Ld.uint32=Ld.u4;Ld.int32=Ld.i4;Ld.float32=Ld.f4;Ld.float64=Ld.f8;function Pq(e){return e.constructor===ArrayBuffer}xg.isArrayBuffer=Pq;xg.decodeTypedArraySpec=function(e){var t=[],r=Ftt(e),n=r.dtype,i=Ld[n];if(!i)throw new Error('Error in dtype: "'+n+'"');var a=i.BYTES_PER_ELEMENT,o=r.bdata;Pq(o)||(o=Ltt(o));var s=r.shape===void 0?[o.byteLength/a]:(""+r.shape).split(",");s.reverse();var l=s.length,u,c,f=+s[0],h=a*f,d=0;if(l===1)t=new i(o);else if(l===2)for(u=+s[1],c=0;c<u;c++)t[c]=new i(o,d,f),d+=h;else if(l===3){u=+s[1];for(var v=+s[2],m=0;m<v;m++)for(t[m]=[],c=0;c<u;c++)t[m][c]=new i(o,d,f),d+=h}else throw new Error("ndim: "+l+'is not supported with the shape:"'+r.shape+'"');return t.bdata=r.bdata,t.dtype=r.dtype,t.shape=s.reverse().join(","),e._inputArray=t,t};xg.isTypedArraySpec=function(e){return Ptt(e)&&e.hasOwnProperty("dtype")&&typeof e.dtype=="string"&&e.hasOwnProperty("bdata")&&(typeof e.bdata=="string"||Pq(e.bdata))&&(e.shape===void 0||e.hasOwnProperty("shape")&&(typeof e.shape=="string"||typeof e.shape=="number"))};function Ftt(e){return{bdata:e.bdata,dtype:e.dtype,shape:e.shape}}xg.concat=function(){var e=[],t=!0,r=0,n,i,a,o,s,l,u,c;for(a=0;a<arguments.length;a++)o=arguments[a],l=o.length,l&&(i?e.push(o):(i=o,s=l),Lq(o)?n=!1:(t=!1,r?n!==o.constructor&&(n=!1):n=o.constructor),r+=l);if(!r)return[];if(!e.length)return i;if(t)return i.concat.apply(i,e);if(n){for(u=new n(r),u.set(i),a=0;a<e.length;a++)o=e[a],u.set(o,s),s+=o.length;return u}for(u=new Array(r),c=0;c<i.length;c++)u[c]=i[c];for(a=0;a<e.length;a++){for(o=e[a],c=0;c<o.length;c++)u[s+c]=o[c];s+=c}return u};xg.maxRowLength=function(e){return Ree(e,Math.max,0)};xg.minRowLength=function(e){return Ree(e,Math.min,1/0)};function Ree(e,t,r){if(A6(e))if(A6(e[0])){for(var n=r,i=0;i<e.length;i++)n=t(n,e[i].length);return n}else return e.length;return 0}});var zS=ye((Prr,Oee)=>{"use strict";var Dee=Eo(),Rq=Yd().isArrayOrTypedArray;Oee.exports=function(t,r){if(Dee(r))r=String(r);else if(typeof r!="string"||r.slice(-4)==="[-1]")throw"bad property string";var n=r.split("."),i,a,o,s;for(s=0;s<n.length;s++)if(String(n[s]).slice(0,2)==="__")throw"bad property string";for(s=0;s<n.length;){if(i=String(n[s]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),i){if(i[1])n[s]=i[1];else if(s===0)n.splice(0,1);else throw"bad property string";for(a=i[2].slice(1,-1).split("]["),o=0;o<a.length;o++)s++,n.splice(s,0,Number(a[o]))}s++}return typeof t!="object"?Btt(t,r,n):{set:zee(t,n,r),get:Fee(t,n),astr:r,parts:n,obj:t}};function Fee(e,t){return function(r){var n=e,i,a,o,s,l;for(s=0;s<t.length-1;s++){if(i=t[s],i===-1){for(a=!0,o=[],l=0;l<n.length;l++)o[l]=Fee(n[l],t.slice(s+1))(r),o[l]!==o[0]&&(a=!1);return a?o[0]:o}if(typeof i=="number"&&!Rq(n)||(n=n[i],typeof n!="object"||n===null))return}if(!(typeof n!="object"||n===null)&&(o=n[t[s]],!(!r&&o===null)))return o}}var ztt=/(^|\.)args\[/;function Iq(e,t){return e===void 0||e===null&&!t.match(ztt)}function zee(e,t,r){return function(n){var i=e,a="",o=[[e,a]],s=Iq(n,r),l,u;for(u=0;u<t.length-1;u++){if(l=t[u],typeof l=="number"&&!Rq(i))throw"array index but container is not an array";if(l===-1){if(s=!Ott(i,t.slice(u+1),n,r),s)break;return}if(!qee(i,l,t[u+1],s))break;if(i=i[l],typeof i!="object"||i===null)throw"container is not an object";a=qtt(a,l),o.push([i,a])}if(s){if(u===t.length-1&&(delete i[t[u]],Array.isArray(i)&&+t[u]===i.length-1))for(;i.length&&i[i.length-1]===void 0;)i.pop()}else i[t[u]]=n}}function qtt(e,t){var r=t;return Dee(t)?r="["+t+"]":e&&(r="."+t),e+r}function Ott(e,t,r,n){var i=Rq(r),a=!0,o=r,s=n.replace("-1",0),l=i?!1:Iq(r,s),u=t[0],c;for(c=0;c<e.length;c++)s=n.replace("-1",c),i&&(o=r[c%r.length],l=Iq(o,s)),l&&(a=!1),qee(e,c,u,l)&&zee(e[c],t,n.replace("-1",c))(o);return a}function qee(e,t,r,n){if(e[t]===void 0){if(n)return!1;typeof r=="number"?e[t]=[]:e[t]={}}return!0}function Btt(e,t,r){return{set:function(){throw"bad container"},get:function(){},astr:t,parts:r,obj:e}}});var Vee=ye((Irr,Uee)=>{"use strict";var v3=zS(),Ntt=/^\w*$/,Utt=0,Bee=1,S6=2,Nee=3,mb=4;Uee.exports=function(t,r,n,i){n=n||"name",i=i||"value";var a,o,s,l={};r&&r.length?(s=v3(t,r),o=s.get()):o=t,r=r||"";var u={};if(o)for(a=0;a<o.length;a++)u[o[a][n]]=a;var c=Ntt.test(i),f={set:function(h,d){var v=d===null?mb:Utt;if(!o){if(!s||v===mb)return;o=[],s.set(o)}var m=u[h];if(m===void 0){if(v===mb)return;v=v|Nee,m=o.length,u[h]=m}else d!==(c?o[m][i]:v3(o[m],i).get())&&(v=v|S6);var b=o[m]=o[m]||{};return b[n]=h,c?b[i]=d:v3(b,i).set(d),d!==null&&(v=v&~mb),l[m]=l[m]|v,f},get:function(h){if(o){var d=u[h];if(d!==void 0)return c?o[d][i]:v3(o[d],i).get()}},rename:function(h,d){var v=u[h];return v===void 0||(l[v]=l[v]|Bee,u[d]=v,delete u[h],o[v][n]=d),f},remove:function(h){var d=u[h];if(d===void 0)return f;var v=o[d];if(Object.keys(v).length>2)return l[d]=l[d]|S6,f.set(h,null);if(c){for(a=d;a<o.length;a++)l[a]=l[a]|Nee;for(a=d;a<o.length;a++)u[o[a][n]]--;o.splice(d,1),delete u[h]}else v3(v,i).set(null),l[d]=l[d]|S6|mb;return f},constructUpdate:function(){for(var h,d,v={},m=Object.keys(l),b=0;b<m.length;b++)d=m[b],h=r+"["+d+"]",o[d]?(l[d]&Bee&&(v[h+"."+n]=o[d][n]),l[d]&S6&&(c?v[h+"."+i]=l[d]&mb?null:o[d][i]:v[h+"."+i]=l[d]&mb?null:v3(o[d],i).get())):v[h]=null;return v}};return f}});var Hee=ye((Rrr,Gee)=>{"use strict";var Vtt=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,Gtt=/^[^\.\[\]]+$/;Gee.exports=function(e,t){for(;t;){var r=e.match(Vtt);if(r)e=r[1];else if(e.match(Gtt))e="";else throw new Error("bad relativeAttr call:"+[e,t]);if(t.charAt(0)==="^")t=t.slice(1);else break}return e&&t.charAt(0)!=="["?e+"."+t:e+t}});var M6=ye((Drr,jee)=>{"use strict";var Htt=Eo();jee.exports=function(t,r){if(t>0)return Math.log(t)/Math.LN10;var n=Math.log(Math.min(r[0],r[1]))/Math.LN10;return Htt(n)||(n=Math.log(Math.max(r[0],r[1]))/Math.LN10-6),n}});var Zee=ye((Frr,Xee)=>{"use strict";var Wee=Yd().isArrayOrTypedArray,qS=Ay();Xee.exports=function e(t,r){for(var n in r){var i=r[n],a=t[n];if(a!==i)if(n.charAt(0)==="_"||typeof i=="function"){if(n in t)continue;t[n]=i}else if(Wee(i)&&Wee(a)&&qS(i[0])){if(n==="customdata"||n==="ids")continue;for(var o=Math.min(i.length,a.length),s=0;s<o;s++)a[s]!==i[s]&&qS(i[s])&&qS(a[s])&&e(a[s],i[s])}else qS(i)&&qS(a)&&(e(a,i),Object.keys(a).length||delete t[n])}}});var p3=ye((zrr,Yee)=>{"use strict";function jtt(e,t){var r=e%t;return r<0?r+t:r}function Wtt(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}Yee.exports={mod:jtt,modHalf:Wtt}});var fd=ye((qrr,E6)=>{(function(e){var t=/^\s+/,r=/\s+$/,n=0,i=e.round,a=e.min,o=e.max,s=e.random;function l(me,Pe){if(me=me||"",Pe=Pe||{},me instanceof l)return me;if(!(this instanceof l))return new l(me,Pe);var ce=u(me);this._originalInput=me,this._r=ce.r,this._g=ce.g,this._b=ce.b,this._a=ce.a,this._roundA=i(100*this._a)/100,this._format=Pe.format||ce.format,this._gradientType=Pe.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=ce.ok,this._tc_id=n++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var me=this.toRgb();return(me.r*299+me.g*587+me.b*114)/1e3},getLuminance:function(){var me=this.toRgb(),Pe,ce,He,lt,mt,Ht;return Pe=me.r/255,ce=me.g/255,He=me.b/255,Pe<=.03928?lt=Pe/12.92:lt=e.pow((Pe+.055)/1.055,2.4),ce<=.03928?mt=ce/12.92:mt=e.pow((ce+.055)/1.055,2.4),He<=.03928?Ht=He/12.92:Ht=e.pow((He+.055)/1.055,2.4),.2126*lt+.7152*mt+.0722*Ht},setAlpha:function(me){return this._a=N(me),this._roundA=i(100*this._a)/100,this},toHsv:function(){var me=d(this._r,this._g,this._b);return{h:me.h*360,s:me.s,v:me.v,a:this._a}},toHsvString:function(){var me=d(this._r,this._g,this._b),Pe=i(me.h*360),ce=i(me.s*100),He=i(me.v*100);return this._a==1?"hsv("+Pe+", "+ce+"%, "+He+"%)":"hsva("+Pe+", "+ce+"%, "+He+"%, "+this._roundA+")"},toHsl:function(){var me=f(this._r,this._g,this._b);return{h:me.h*360,s:me.s,l:me.l,a:this._a}},toHslString:function(){var me=f(this._r,this._g,this._b),Pe=i(me.h*360),ce=i(me.s*100),He=i(me.l*100);return this._a==1?"hsl("+Pe+", "+ce+"%, "+He+"%)":"hsla("+Pe+", "+ce+"%, "+He+"%, "+this._roundA+")"},toHex:function(me){return m(this._r,this._g,this._b,me)},toHexString:function(me){return"#"+this.toHex(me)},toHex8:function(me){return b(this._r,this._g,this._b,this._a,me)},toHex8String:function(me){return"#"+this.toHex8(me)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(H(this._r,255)*100)+"%",g:i(H(this._g,255)*100)+"%",b:i(H(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+i(H(this._r,255)*100)+"%, "+i(H(this._g,255)*100)+"%, "+i(H(this._b,255)*100)+"%)":"rgba("+i(H(this._r,255)*100)+"%, "+i(H(this._g,255)*100)+"%, "+i(H(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Z[m(this._r,this._g,this._b,!0)]||!1},toFilter:function(me){var Pe="#"+p(this._r,this._g,this._b,this._a),ce=Pe,He=this._gradientType?"GradientType = 1, ":"";if(me){var lt=l(me);ce="#"+p(lt._r,lt._g,lt._b,lt._a)}return"progid:DXImageTransform.Microsoft.gradient("+He+"startColorstr="+Pe+",endColorstr="+ce+")"},toString:function(me){var Pe=!!me;me=me||this._format;var ce=!1,He=this._a<1&&this._a>=0,lt=!Pe&&He&&(me==="hex"||me==="hex6"||me==="hex3"||me==="hex4"||me==="hex8"||me==="name");return lt?me==="name"&&this._a===0?this.toName():this.toRgbString():(me==="rgb"&&(ce=this.toRgbString()),me==="prgb"&&(ce=this.toPercentageRgbString()),(me==="hex"||me==="hex6")&&(ce=this.toHexString()),me==="hex3"&&(ce=this.toHexString(!0)),me==="hex4"&&(ce=this.toHex8String(!0)),me==="hex8"&&(ce=this.toHex8String()),me==="name"&&(ce=this.toName()),me==="hsl"&&(ce=this.toHslString()),me==="hsv"&&(ce=this.toHsvString()),ce||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(me,Pe){var ce=me.apply(null,[this].concat([].slice.call(Pe)));return this._r=ce._r,this._g=ce._g,this._b=ce._b,this.setAlpha(ce._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(k,arguments)},saturate:function(){return this._applyModification(M,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(me,Pe){return me.apply(null,[this].concat([].slice.call(Pe)))},analogous:function(){return this._applyCombination(q,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(V,arguments)},splitcomplement:function(){return this._applyCombination(z,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(E,arguments)}},l.fromRatio=function(me,Pe){if(typeof me=="object"){var ce={};for(var He in me)me.hasOwnProperty(He)&&(He==="a"?ce[He]=me[He]:ce[He]=ge(me[He]));me=ce}return l(me,Pe)};function u(me){var Pe={r:0,g:0,b:0},ce=1,He=null,lt=null,mt=null,Ht=!1,at=!1;return typeof me=="string"&&(me=Be(me)),typeof me=="object"&&(be(me.r)&&be(me.g)&&be(me.b)?(Pe=c(me.r,me.g,me.b),Ht=!0,at=String(me.r).substr(-1)==="%"?"prgb":"rgb"):be(me.h)&&be(me.s)&&be(me.v)?(He=ge(me.s),lt=ge(me.v),Pe=v(me.h,He,lt),Ht=!0,at="hsv"):be(me.h)&&be(me.s)&&be(me.l)&&(He=ge(me.s),mt=ge(me.l),Pe=h(me.h,He,mt),Ht=!0,at="hsl"),me.hasOwnProperty("a")&&(ce=me.a)),ce=N(ce),{ok:Ht,format:me.format||at,r:a(255,o(Pe.r,0)),g:a(255,o(Pe.g,0)),b:a(255,o(Pe.b,0)),a:ce}}function c(me,Pe,ce){return{r:H(me,255)*255,g:H(Pe,255)*255,b:H(ce,255)*255}}function f(me,Pe,ce){me=H(me,255),Pe=H(Pe,255),ce=H(ce,255);var He=o(me,Pe,ce),lt=a(me,Pe,ce),mt,Ht,at=(He+lt)/2;if(He==lt)mt=Ht=0;else{var ct=He-lt;switch(Ht=at>.5?ct/(2-He-lt):ct/(He+lt),He){case me:mt=(Pe-ce)/ct+(Pe<ce?6:0);break;case Pe:mt=(ce-me)/ct+2;break;case ce:mt=(me-Pe)/ct+4;break}mt/=6}return{h:mt,s:Ht,l:at}}function h(me,Pe,ce){var He,lt,mt;me=H(me,360),Pe=H(Pe,100),ce=H(ce,100);function Ht(ar,Vt,rr){return rr<0&&(rr+=1),rr>1&&(rr-=1),rr<1/6?ar+(Vt-ar)*6*rr:rr<1/2?Vt:rr<2/3?ar+(Vt-ar)*(2/3-rr)*6:ar}if(Pe===0)He=lt=mt=ce;else{var at=ce<.5?ce*(1+Pe):ce+Pe-ce*Pe,ct=2*ce-at;He=Ht(ct,at,me+1/3),lt=Ht(ct,at,me),mt=Ht(ct,at,me-1/3)}return{r:He*255,g:lt*255,b:mt*255}}function d(me,Pe,ce){me=H(me,255),Pe=H(Pe,255),ce=H(ce,255);var He=o(me,Pe,ce),lt=a(me,Pe,ce),mt,Ht,at=He,ct=He-lt;if(Ht=He===0?0:ct/He,He==lt)mt=0;else{switch(He){case me:mt=(Pe-ce)/ct+(Pe<ce?6:0);break;case Pe:mt=(ce-me)/ct+2;break;case ce:mt=(me-Pe)/ct+4;break}mt/=6}return{h:mt,s:Ht,v:at}}function v(me,Pe,ce){me=H(me,360)*6,Pe=H(Pe,100),ce=H(ce,100);var He=e.floor(me),lt=me-He,mt=ce*(1-Pe),Ht=ce*(1-lt*Pe),at=ce*(1-(1-lt)*Pe),ct=He%6,ar=[ce,Ht,mt,mt,at,ce][ct],Vt=[at,ce,ce,Ht,mt,mt][ct],rr=[mt,mt,at,ce,ce,Ht][ct];return{r:ar*255,g:Vt*255,b:rr*255}}function m(me,Pe,ce,He){var lt=[Ce(i(me).toString(16)),Ce(i(Pe).toString(16)),Ce(i(ce).toString(16))];return He&&lt[0].charAt(0)==lt[0].charAt(1)&&lt[1].charAt(0)==lt[1].charAt(1)&&lt[2].charAt(0)==lt[2].charAt(1)?lt[0].charAt(0)+lt[1].charAt(0)+lt[2].charAt(0):lt.join("")}function b(me,Pe,ce,He,lt){var mt=[Ce(i(me).toString(16)),Ce(i(Pe).toString(16)),Ce(i(ce).toString(16)),Ce(re(He))];return lt&&mt[0].charAt(0)==mt[0].charAt(1)&&mt[1].charAt(0)==mt[1].charAt(1)&&mt[2].charAt(0)==mt[2].charAt(1)&&mt[3].charAt(0)==mt[3].charAt(1)?mt[0].charAt(0)+mt[1].charAt(0)+mt[2].charAt(0)+mt[3].charAt(0):mt.join("")}function p(me,Pe,ce,He){var lt=[Ce(re(He)),Ce(i(me).toString(16)),Ce(i(Pe).toString(16)),Ce(i(ce).toString(16))];return lt.join("")}l.equals=function(me,Pe){return!me||!Pe?!1:l(me).toRgbString()==l(Pe).toRgbString()},l.random=function(){return l.fromRatio({r:s(),g:s(),b:s()})};function k(me,Pe){Pe=Pe===0?0:Pe||10;var ce=l(me).toHsl();return ce.s-=Pe/100,ce.s=ie(ce.s),l(ce)}function M(me,Pe){Pe=Pe===0?0:Pe||10;var ce=l(me).toHsl();return ce.s+=Pe/100,ce.s=ie(ce.s),l(ce)}function T(me){return l(me).desaturate(100)}function L(me,Pe){Pe=Pe===0?0:Pe||10;var ce=l(me).toHsl();return ce.l+=Pe/100,ce.l=ie(ce.l),l(ce)}function x(me,Pe){Pe=Pe===0?0:Pe||10;var ce=l(me).toRgb();return ce.r=o(0,a(255,ce.r-i(255*-(Pe/100)))),ce.g=o(0,a(255,ce.g-i(255*-(Pe/100)))),ce.b=o(0,a(255,ce.b-i(255*-(Pe/100)))),l(ce)}function C(me,Pe){Pe=Pe===0?0:Pe||10;var ce=l(me).toHsl();return ce.l-=Pe/100,ce.l=ie(ce.l),l(ce)}function S(me,Pe){var ce=l(me).toHsl(),He=(ce.h+Pe)%360;return ce.h=He<0?360+He:He,l(ce)}function g(me){var Pe=l(me).toHsl();return Pe.h=(Pe.h+180)%360,l(Pe)}function P(me){var Pe=l(me).toHsl(),ce=Pe.h;return[l(me),l({h:(ce+120)%360,s:Pe.s,l:Pe.l}),l({h:(ce+240)%360,s:Pe.s,l:Pe.l})]}function E(me){var Pe=l(me).toHsl(),ce=Pe.h;return[l(me),l({h:(ce+90)%360,s:Pe.s,l:Pe.l}),l({h:(ce+180)%360,s:Pe.s,l:Pe.l}),l({h:(ce+270)%360,s:Pe.s,l:Pe.l})]}function z(me){var Pe=l(me).toHsl(),ce=Pe.h;return[l(me),l({h:(ce+72)%360,s:Pe.s,l:Pe.l}),l({h:(ce+216)%360,s:Pe.s,l:Pe.l})]}function q(me,Pe,ce){Pe=Pe||6,ce=ce||30;var He=l(me).toHsl(),lt=360/ce,mt=[l(me)];for(He.h=(He.h-(lt*Pe>>1)+720)%360;--Pe;)He.h=(He.h+lt)%360,mt.push(l(He));return mt}function V(me,Pe){Pe=Pe||6;for(var ce=l(me).toHsv(),He=ce.h,lt=ce.s,mt=ce.v,Ht=[],at=1/Pe;Pe--;)Ht.push(l({h:He,s:lt,v:mt})),mt=(mt+at)%1;return Ht}l.mix=function(me,Pe,ce){ce=ce===0?0:ce||50;var He=l(me).toRgb(),lt=l(Pe).toRgb(),mt=ce/100,Ht={r:(lt.r-He.r)*mt+He.r,g:(lt.g-He.g)*mt+He.g,b:(lt.b-He.b)*mt+He.b,a:(lt.a-He.a)*mt+He.a};return l(Ht)},l.readability=function(me,Pe){var ce=l(me),He=l(Pe);return(e.max(ce.getLuminance(),He.getLuminance())+.05)/(e.min(ce.getLuminance(),He.getLuminance())+.05)},l.isReadable=function(me,Pe,ce){var He=l.readability(me,Pe),lt,mt;switch(mt=!1,lt=Le(ce),lt.level+lt.size){case"AAsmall":case"AAAlarge":mt=He>=4.5;break;case"AAlarge":mt=He>=3;break;case"AAAsmall":mt=He>=7;break}return mt},l.mostReadable=function(me,Pe,ce){var He=null,lt=0,mt,Ht,at,ct;ce=ce||{},Ht=ce.includeFallbackColors,at=ce.level,ct=ce.size;for(var ar=0;ar<Pe.length;ar++)mt=l.readability(me,Pe[ar]),mt>lt&&(lt=mt,He=l(Pe[ar]));return l.isReadable(me,He,{level:at,size:ct})||!Ht?He:(ce.includeFallbackColors=!1,l.mostReadable(me,["#fff","#000"],ce))};var G=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Z=l.hexNames=j(G);function j(me){var Pe={};for(var ce in me)me.hasOwnProperty(ce)&&(Pe[me[ce]]=ce);return Pe}function N(me){return me=parseFloat(me),(isNaN(me)||me<0||me>1)&&(me=1),me}function H(me,Pe){_e(me)&&(me="100%");var ce=Ee(me);return me=a(Pe,o(0,parseFloat(me))),ce&&(me=parseInt(me*Pe,10)/100),e.abs(me-Pe)<1e-6?1:me%Pe/parseFloat(Pe)}function ie(me){return a(1,o(0,me))}function ae(me){return parseInt(me,16)}function _e(me){return typeof me=="string"&&me.indexOf(".")!=-1&&parseFloat(me)===1}function Ee(me){return typeof me=="string"&&me.indexOf("%")!=-1}function Ce(me){return me.length==1?"0"+me:""+me}function ge(me){return me<=1&&(me=me*100+"%"),me}function re(me){return e.round(parseFloat(me)*255).toString(16)}function Se(me){return ae(me)/255}var ke=function(){var me="[-\\+]?\\d+%?",Pe="[-\\+]?\\d*\\.\\d+%?",ce="(?:"+Pe+")|(?:"+me+")",He="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?",lt="[\\s|\\(]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")[,|\\s]+("+ce+")\\s*\\)?";return{CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+He),rgba:new RegExp("rgba"+lt),hsl:new RegExp("hsl"+He),hsla:new RegExp("hsla"+lt),hsv:new RegExp("hsv"+He),hsva:new RegExp("hsva"+lt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function be(me){return!!ke.CSS_UNIT.exec(me)}function Be(me){me=me.replace(t,"").replace(r,"").toLowerCase();var Pe=!1;if(G[me])me=G[me],Pe=!0;else if(me=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ce;return(ce=ke.rgb.exec(me))?{r:ce[1],g:ce[2],b:ce[3]}:(ce=ke.rgba.exec(me))?{r:ce[1],g:ce[2],b:ce[3],a:ce[4]}:(ce=ke.hsl.exec(me))?{h:ce[1],s:ce[2],l:ce[3]}:(ce=ke.hsla.exec(me))?{h:ce[1],s:ce[2],l:ce[3],a:ce[4]}:(ce=ke.hsv.exec(me))?{h:ce[1],s:ce[2],v:ce[3]}:(ce=ke.hsva.exec(me))?{h:ce[1],s:ce[2],v:ce[3],a:ce[4]}:(ce=ke.hex8.exec(me))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),a:Se(ce[4]),format:Pe?"name":"hex8"}:(ce=ke.hex6.exec(me))?{r:ae(ce[1]),g:ae(ce[2]),b:ae(ce[3]),format:Pe?"name":"hex"}:(ce=ke.hex4.exec(me))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),a:Se(ce[4]+""+ce[4]),format:Pe?"name":"hex8"}:(ce=ke.hex3.exec(me))?{r:ae(ce[1]+""+ce[1]),g:ae(ce[2]+""+ce[2]),b:ae(ce[3]+""+ce[3]),format:Pe?"name":"hex"}:!1}function Le(me){var Pe,ce;return me=me||{level:"AA",size:"small"},Pe=(me.level||"AA").toUpperCase(),ce=(me.size||"small").toLowerCase(),Pe!=="AA"&&Pe!=="AAA"&&(Pe="AA"),ce!=="small"&&ce!=="large"&&(ce="small"),{level:Pe,size:ce}}typeof E6!="undefined"&&E6.exports?E6.exports=l:window.tinycolor=l})(Math)});var Ao=ye(NS=>{"use strict";var Kee=Ay(),OS=Array.isArray;function Xtt(e,t){var r,n;for(r=0;r<e.length;r++){if(n=e[r],n!==null&&typeof n=="object")return!1;n!==void 0&&(t[r]=n)}return!0}NS.extendFlat=function(){return BS(arguments,!1,!1,!1)};NS.extendDeep=function(){return BS(arguments,!0,!1,!1)};NS.extendDeepAll=function(){return BS(arguments,!0,!0,!1)};NS.extendDeepNoArrays=function(){return BS(arguments,!0,!1,!0)};function BS(e,t,r,n){var i=e[0],a=e.length,o,s,l,u,c,f,h;if(a===2&&OS(i)&&OS(e[1])&&i.length===0){if(h=Xtt(e[1],i),h)return i;i.splice(0,i.length)}for(var d=1;d<a;d++){o=e[d];for(s in o)l=i[s],u=o[s],n&&OS(u)?i[s]=u:t&&u&&(Kee(u)||(c=OS(u)))?(c?(c=!1,f=l&&OS(l)?l:[]):f=l&&Kee(l)?l:{},i[s]=BS([f,u],t,r,n)):(typeof u!="undefined"||r)&&(i[s]=u)}return i}});var ec=ye((Brr,Jee)=>{"use strict";Jee.exports=function(e){var t=e.variantValues,r=e.editType,n=e.colorEditType;n===void 0&&(n=r);var i={editType:r,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};e.noNumericWeightValues&&(i.valType="enumerated",i.values=i.extras,i.extras=void 0,i.min=void 0,i.max=void 0);var a={family:{valType:"string",noBlank:!0,strict:!0,editType:r},size:{valType:"number",min:1,editType:r},color:{valType:"color",editType:n},weight:i,style:{editType:r,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:e.noFontVariant?void 0:{editType:r,valType:"enumerated",values:t||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:e.noFontTextcase?void 0:{editType:r,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:e.noFontLineposition?void 0:{editType:r,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:e.noFontShadow?void 0:{editType:r,valType:"string",dflt:e.autoShadowDflt?"auto":"none"},editType:r};return e.autoSize&&(a.size.dflt="auto"),e.autoColor&&(a.color.dflt="auto"),e.arrayOk&&(a.family.arrayOk=!0,a.weight.arrayOk=!0,a.style.arrayOk=!0,e.noFontVariant||(a.variant.arrayOk=!0),e.noFontTextcase||(a.textcase.arrayOk=!0),e.noFontLineposition||(a.lineposition.arrayOk=!0),e.noFontShadow||(a.shadow.arrayOk=!0),a.size.arrayOk=!0,a.color.arrayOk=!0),a}});var US=ye((Nrr,$ee)=>{"use strict";$ee.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}});var W1=ye((Urr,tte)=>{"use strict";var Qee=US(),ete=ec(),Dq=ete({editType:"none"});Dq.family.dflt=Qee.HOVERFONT;Dq.size.dflt=Qee.HOVERFONTSIZE;tte.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"},hoversort:{valType:"enumerated",values:["trace","value descending","value ascending"],dflt:"trace",editType:"none"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoveranywhere:{valType:"boolean",dflt:!1,editType:"none"},clickanywhere:{valType:"boolean",dflt:!1,editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:Dq,grouptitlefont:ete({editType:"none"}),align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},showarrow:{valType:"boolean",dflt:!0,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}});var g3=ye((Vrr,rte)=>{"use strict";var Ztt=ec(),VS=W1().hoverlabel,GS=Ao().extendFlat;rte.exports={hoverlabel:{bgcolor:GS({},VS.bgcolor,{arrayOk:!0}),bordercolor:GS({},VS.bordercolor,{arrayOk:!0}),font:Ztt({arrayOk:!0,editType:"none"}),align:GS({},VS.align,{arrayOk:!0}),namelength:GS({},VS.namelength,{arrayOk:!0}),showarrow:GS({},VS.showarrow),editType:"none"}}});var Gl=ye((Grr,ite)=>{"use strict";var Ytt=ec(),Ktt=g3();ite.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:Ytt({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:Ktt.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},uirevision:{valType:"any",editType:"none"}}});var yb=ye((Hrr,ote)=>{"use strict";var Jtt=fd(),k6={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)"]]},nte=k6.RdBu;function $tt(e,t){if(t||(t=nte),!e)return t;function r(){try{e=k6[e]||JSON.parse(e)}catch(n){e=t}}return typeof e=="string"&&(r(),typeof e=="string"&&r()),ate(e)?e:t}function ate(e){var t=0;if(!Array.isArray(e)||e.length<2||!e[0]||!e[e.length-1]||+e[0][0]!=0||+e[e.length-1][0]!=1)return!1;for(var r=0;r<e.length;r++){var n=e[r];if(n.length!==2||+n[0]<t||!Jtt(n[1]).isValid())return!1;t=+n[0]}return!0}function Qtt(e){return k6[e]!==void 0?!0:ate(e)}ote.exports={scales:k6,defaultScale:nte,get:$tt,isValid:Qtt}});var Ih=ye(_b=>{"use strict";_b.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];_b.defaultLine="#444";_b.lightLine="#eee";_b.background="#fff";_b.borderLine="#BEC8D9";_b.lightFraction=100*10/11});var ka=ye((Wrr,ste)=>{"use strict";var wp=fd(),ert=Eo(),trt=Yd().isTypedArray,hd=ste.exports={},C6=Ih();hd.defaults=C6.defaults;var rrt=hd.defaultLine=C6.defaultLine;hd.lightLine=C6.lightLine;var zq=hd.background=C6.background;hd.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"};hd.rgb=function(e){return hd.tinyRGB(wp(e))};hd.opacity=function(e){return e?wp(e).getAlpha():0};hd.addOpacity=function(e,t){var r=wp(e).toRgb();return"rgba("+Math.round(r.r)+", "+Math.round(r.g)+", "+Math.round(r.b)+", "+t+")"};hd.combine=function(e,t){var r=wp(e).toRgb();if(r.a===1)return wp(e).toRgbString();var n=wp(t||zq).toRgb(),i=n.a===1?n:{r:255*(1-n.a)+n.r*n.a,g:255*(1-n.a)+n.g*n.a,b:255*(1-n.a)+n.b*n.a},a={r:i.r*(1-r.a)+r.r*r.a,g:i.g*(1-r.a)+r.g*r.a,b:i.b*(1-r.a)+r.b*r.a};return wp(a).toRgbString()};hd.interpolate=function(e,t,r){var n=wp(e).toRgb(),i=wp(t).toRgb(),a={r:r*n.r+(1-r)*i.r,g:r*n.g+(1-r)*i.g,b:r*n.b+(1-r)*i.b};return wp(a).toRgbString()};hd.contrast=function(e,t,r){var n=wp(e);n.getAlpha()!==1&&(n=wp(hd.combine(e,zq)));var i=n.isDark()?t?n.lighten(t):zq:r?n.darken(r):rrt;return i.toString()};hd.stroke=function(e,t){var r=wp(t);e.style({stroke:hd.tinyRGB(r),"stroke-opacity":r.getAlpha()})};hd.fill=function(e,t){var r=wp(t);e.style({fill:hd.tinyRGB(r),"fill-opacity":r.getAlpha()})};hd.clean=function(e){if(!(!e||typeof e!="object")){var t=Object.keys(e),r,n,i,a;for(r=0;r<t.length;r++)if(i=t[r],a=e[i],i.slice(-5)==="color")if(Array.isArray(a))for(n=0;n<a.length;n++)a[n]=Fq(a[n]);else e[i]=Fq(a);else if(i.slice(-10)==="colorscale"&&Array.isArray(a))for(n=0;n<a.length;n++)Array.isArray(a[n])&&(a[n][1]=Fq(a[n][1]));else if(Array.isArray(a)){var o=a[0];if(!Array.isArray(o)&&o&&typeof o=="object")for(n=0;n<a.length;n++)hd.clean(a[n])}else a&&typeof a=="object"&&!trt(a)&&hd.clean(a)}};function Fq(e){if(ert(e)||typeof e!="string")return e;var t=e.trim();if(t.slice(0,3)!=="rgb")return e;var r=t.match(/^rgba?\s*\(([^()]*)\)$/);if(!r)return e;var n=r[1].trim().split(/\s*[\s,]\s*/),i=t.charAt(3)==="a"&&n.length===4;if(!i&&n.length!==3)return e;for(var a=0;a<n.length;a++){if(!n[a].length||(n[a]=Number(n[a]),!(n[a]>=0)))return e;if(a===3)n[a]>1&&(n[a]=1);else if(n[a]>=1)return e}var o=Math.round(n[0]*255)+", "+Math.round(n[1]*255)+", "+Math.round(n[2]*255);return i?"rgba("+o+", "+n[3]+")":"rgb("+o+")"}});var X1=ye((Xrr,lte)=>{"use strict";lte.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}});var m3=ye(ute=>{"use strict";ute.counter=function(e,t,r,n){var i=(t||"")+(r?"":"$"),a=n===!1?"":"^";return e==="xy"?new RegExp(a+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+i):new RegExp(a+e+"([2-9]|[1-9][0-9]+)?"+i)}});var dte=ye(Tp=>{"use strict";var qq=Eo(),cte=fd(),fte=Ao().extendFlat,irt=Gl(),nrt=yb(),art=ka(),ort=X1().DESELECTDIM,y3=zS(),hte=m3().counter,srt=p3().modHalf,bg=Yd().isArrayOrTypedArray,Z1=Yd().isTypedArraySpec,Y1=Yd().decodeTypedArraySpec;Tp.valObjectMeta={data_array:{coerceFunction:function(e,t,r){t.set(bg(e)?e:Z1(e)?Y1(e):r)}},enumerated:{coerceFunction:function(e,t,r,n){n.coerceNumber&&(e=+e),n.values.indexOf(e)===-1?t.set(r):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var r=t.values,n=0;n<r.length;n++){var i=String(r[n]);if(i.charAt(0)==="/"&&i.charAt(i.length-1)==="/"){var a=new RegExp(i.slice(1,-1));if(a.test(e))return!0}else if(e===r[n])return!0}return!1}},boolean:{coerceFunction:function(e,t,r,n){let i=a=>a===!0||a===!1;i(e)||n.arrayOk&&Array.isArray(e)&&e.length>0&&e.every(i)?t.set(e):t.set(r)}},number:{coerceFunction:function(e,t,r,n){Z1(e)&&(e=Y1(e)),!qq(e)||n.min!==void 0&&e<n.min||n.max!==void 0&&e>n.max?t.set(r):t.set(+e)}},integer:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}Z1(e)&&(e=Y1(e)),e%1||!qq(e)||n.min!==void 0&&e<n.min||n.max!==void 0&&e>n.max?t.set(r):t.set(+e)}},string:{coerceFunction:function(e,t,r,n){if(typeof e!="string"){var i=typeof e=="number";n.strict===!0||!i?t.set(r):t.set(String(e))}else n.noBlank&&!e?t.set(r):t.set(e)}},color:{coerceFunction:function(e,t,r){Z1(e)&&(e=Y1(e)),cte(e).isValid()?t.set(e):t.set(r)}},colorlist:{coerceFunction:function(e,t,r){function n(i){return cte(i).isValid()}!Array.isArray(e)||!e.length?t.set(r):e.every(n)?t.set(e):t.set(r)}},colorscale:{coerceFunction:function(e,t,r){t.set(nrt.get(e,r))}},angle:{coerceFunction:function(e,t,r){Z1(e)&&(e=Y1(e)),e==="auto"?t.set("auto"):qq(e)?t.set(srt(+e,360)):t.set(r)}},subplotid:{coerceFunction:function(e,t,r,n){var i=n.regex||hte(r);let a=o=>typeof o=="string"&&i.test(o);a(e)||n.arrayOk&&bg(e)&&e.length>0&&e.every(a)?t.set(e):t.set(r)},validateFunction:function(e,t){var r=t.dflt;return e===r?!0:typeof e!="string"?!1:!!hte(r).test(e)}},flaglist:{coerceFunction:function(e,t,r,n){if((n.extras||[]).indexOf(e)!==-1){t.set(e);return}if(typeof e!="string"){t.set(r);return}for(var i=e.split("+"),a=0;a<i.length;){var o=i[a];n.flags.indexOf(o)===-1||i.indexOf(o)<a?i.splice(a,1):a++}i.length?t.set(i.join("+")):t.set(r)}},any:{coerceFunction:function(e,t,r){e===void 0?t.set(r):t.set(Z1(e)?Y1(e):e)}},info_array:{coerceFunction:function(e,t,r,n){function i(k,M,T){var L,x={set:function(C){L=C}};return T===void 0&&(T=M.dflt),Tp.valObjectMeta[M.valType].coerceFunction(k,x,T,M),L}if(Z1(e)&&(e=Y1(e)),!bg(e)){t.set(r);return}var a=n.dimensions===2||n.dimensions==="1-2"&&Array.isArray(e)&&bg(e[0]),o=n.items,s=[],l=Array.isArray(o),u=l&&a&&bg(o[0]),c=a&&l&&!u,f=l&&!c?o.length:e.length,h,d,v,m,b,p;if(r=Array.isArray(r)?r:[],a)for(h=0;h<f;h++)for(s[h]=[],v=bg(e[h])?e[h]:[],c?b=o.length:l?b=o[h].length:b=v.length,d=0;d<b;d++)c?m=o[d]:l?m=o[h][d]:m=o,p=i(v[d],m,(r[h]||[])[d]),p!==void 0&&(s[h][d]=p);else for(h=0;h<f;h++)p=i(e[h],l?o[h]:o,r[h]),p!==void 0&&(s[h]=p);t.set(s)},validateFunction:function(e,t){if(!bg(e))return!1;var r=t.items,n=Array.isArray(r),i=t.dimensions===2;if(!t.freeLength&&e.length!==r.length)return!1;for(var a=0;a<e.length;a++)if(i){if(!bg(e[a])||!t.freeLength&&e[a].length!==r[a].length)return!1;for(var o=0;o<e[a].length;o++)if(!L6(e[a][o],n?r[a][o]:r))return!1}else if(!L6(e[a],n?r[a]:r))return!1;return!0}}};Tp.coerce=function(e,t,r,n,i){var a=y3(r,n).get(),o=y3(e,n),s=y3(t,n),l=o.get(),u=t._template;if(l===void 0&&u&&(l=y3(u,n).get(),u=0),i===void 0&&(i=a.dflt),a.arrayOk){if(bg(l))return s.set(l),l;if(Z1(l))return l=Y1(l),s.set(l),l}var c=Tp.valObjectMeta[a.valType].coerceFunction;c(l,s,i,a);var f=s.get();return u&&f===i&&!L6(l,a)&&(l=y3(u,n).get(),c(l,s,i,a),f=s.get()),f};Tp.coerce2=function(e,t,r,n,i){var a=y3(e,n),o=Tp.coerce(e,t,r,n,i),s=a.get();return s!=null?o:!1};Tp.coerceFont=function(e,t,r,n){n||(n={}),r=fte({},r),r=fte(r,n.overrideDflt||{});var i={family:e(t+".family",r.family),size:e(t+".size",r.size),color:e(t+".color",r.color),weight:e(t+".weight",r.weight),style:e(t+".style",r.style)};if(n.noFontVariant||(i.variant=e(t+".variant",r.variant)),n.noFontLineposition||(i.lineposition=e(t+".lineposition",r.lineposition)),n.noFontTextcase||(i.textcase=e(t+".textcase",r.textcase)),!n.noFontShadow){var a=r.shadow;a==="none"&&n.autoShadowDflt&&(a="auto"),i.shadow=e(t+".shadow",a)}return i};Tp.coercePattern=function(e,t,r,n){var i=e(t+".shape"),a;if(i||(a=e(t+".path")),i||a){i&&e(t+".solidity"),e(t+".size");var o=e(t+".fillmode"),s=o==="overlay";if(!n){var l=e(t+".bgcolor",s?r:void 0);e(t+".fgcolor",s?art.contrast(l):r)}e(t+".fgopacity",s?.5:1)}};Tp.coerceHoverinfo=function(e,t,r){var n=t._module.attributes,i=n.hoverinfo?n:irt,a=i.hoverinfo,o;if(r._dataLength===1){var s=a.dflt==="all"?a.flags.slice():a.dflt.split("+");s.splice(s.indexOf("name"),1),o=s.join("+")}return Tp.coerce(e,t,i,"hoverinfo",o)};Tp.coerceSelectionMarkerOpacity=function(e,t){if(e.marker){var r=e.marker.opacity;if(r!==void 0){var n,i;!bg(r)&&!e.selected&&!e.unselected&&(n=r,i=ort*r),t("selected.marker.opacity",n),t("unselected.marker.opacity",i)}}};function L6(e,t){var r=Tp.valObjectMeta[t.valType];if(t.arrayOk&&bg(e))return!0;if(r.validateFunction)return r.validateFunction(e,t);var n={},i=n,a={set:function(o){i=o}};return r.coerceFunction(e,a,n,t),i!==n}Tp.validate=L6});var xb=ye((Krr,mte)=>{"use strict";var vte={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},displayNotifier:{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/un/"},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},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},pte={};function gte(e,t){for(var r in e){var n=e[r];n.valType?t[r]=n.dflt:(t[r]||(t[r]={}),gte(n,t[r]))}}gte(vte,pte);mte.exports={configAttributes:vte,dfltConfig:pte}});var Bq=ye((Jrr,yte)=>{"use strict";var Oq=qa(),lrt=Eo(),HS=[];yte.exports=function(e,t,r){var s;if(((s=r==null?void 0:r._context)==null?void 0:s.displayNotifier)===!1||HS.indexOf(e)!==-1)return;HS.push(e);var n=1e3;lrt(t)?n=t:t==="long"&&(n=3e3);var i=Oq.select("body").selectAll(".plotly-notifier").data([0]);i.enter().append("div").classed("plotly-notifier",!0);var a=i.selectAll(".notifier-note").data(HS);function o(l){l.duration(700).style("opacity",0).each("end",function(u){var c=HS.indexOf(u);c!==-1&&HS.splice(c,1),Oq.select(this).remove()})}a.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(l){var u=Oq.select(this);u.append("button").classed("notifier-close",!0).html("&times;").on("click",function(){u.transition().call(o)});for(var c=u.append("p"),f=l.split(/<br\s*\/?>/g),h=0;h<f.length;h++)h&&c.append("br"),c.append("span").text(f[h]);t==="stick"?u.transition().duration(350).style("opacity",1):u.transition().duration(700).style("opacity",1).transition().delay(n).call(o)})}});var K1=ye(($rr,_te)=>{"use strict";var _3=xb().dfltConfig,Nq=Bq(),Uq=_te.exports={};Uq.log=function(){var e;if(_3.logging>1){var t=["LOG:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.trace.apply(console,t)}if(_3.notifyOnLogging>1){var r=[];for(e=0;e<arguments.length;e++)r.push(arguments[e]);Nq(r.join("<br>"),"long")}};Uq.warn=function(){var e;if(_3.logging>0){var t=["WARN:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.trace.apply(console,t)}if(_3.notifyOnLogging>0){var r=[];for(e=0;e<arguments.length;e++)r.push(arguments[e]);Nq(r.join("<br>"),"stick")}};Uq.error=function(){var e;if(_3.logging>0){var t=["ERROR:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);console.error.apply(console,t)}if(_3.notifyOnLogging>0){var r=[];for(e=0;e<arguments.length;e++)r.push(arguments[e]);Nq(r.join("<br>"),"stick")}}});var P6=ye((Qrr,xte)=>{"use strict";xte.exports=function(){}});var Vq=ye((eir,bte)=>{"use strict";bte.exports=function(t,r){if(r instanceof RegExp){for(var n=r.toString(),i=0;i<t.length;i++)if(t[i]instanceof RegExp&&t[i].toString()===n)return t;t.push(r)}else(r||r===0)&&t.indexOf(r)===-1&&t.push(r);return t}});var Tte=ye((tir,wte)=>{wte.exports=urt;function urt(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Ste=ye((rir,Ate)=>{Ate.exports=crt;function crt(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}});var Ete=ye((iir,Mte)=>{Mte.exports=frt;function frt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var Gq=ye((nir,kte)=>{kte.exports=hrt;function hrt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var Lte=ye((air,Cte)=>{Cte.exports=drt;function drt(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],s=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=s}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}});var Ite=ye((oir,Pte)=>{Pte.exports=vrt;function vrt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],d=t[11],v=t[12],m=t[13],b=t[14],p=t[15],k=r*s-n*o,M=r*l-i*o,T=r*u-a*o,L=n*l-i*s,x=n*u-a*s,C=i*u-a*l,S=c*m-f*v,g=c*b-h*v,P=c*p-d*v,E=f*b-h*m,z=f*p-d*m,q=h*p-d*b,V=k*q-M*z+T*E+L*P-x*g+C*S;return V?(V=1/V,e[0]=(s*q-l*z+u*E)*V,e[1]=(i*z-n*q-a*E)*V,e[2]=(m*C-b*x+p*L)*V,e[3]=(h*x-f*C-d*L)*V,e[4]=(l*P-o*q-u*g)*V,e[5]=(r*q-i*P+a*g)*V,e[6]=(b*T-v*C-p*M)*V,e[7]=(c*C-h*T+d*M)*V,e[8]=(o*z-s*P+u*S)*V,e[9]=(n*P-r*z-a*S)*V,e[10]=(v*x-m*T+p*k)*V,e[11]=(f*T-c*x-d*k)*V,e[12]=(s*g-o*E-l*S)*V,e[13]=(r*E-n*g+i*S)*V,e[14]=(m*M-v*L-b*k)*V,e[15]=(c*L-f*M+h*k)*V,e):null}});var Dte=ye((sir,Rte)=>{Rte.exports=prt;function prt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],h=t[10],d=t[11],v=t[12],m=t[13],b=t[14],p=t[15];return e[0]=s*(h*p-d*b)-f*(l*p-u*b)+m*(l*d-u*h),e[1]=-(n*(h*p-d*b)-f*(i*p-a*b)+m*(i*d-a*h)),e[2]=n*(l*p-u*b)-s*(i*p-a*b)+m*(i*u-a*l),e[3]=-(n*(l*d-u*h)-s*(i*d-a*h)+f*(i*u-a*l)),e[4]=-(o*(h*p-d*b)-c*(l*p-u*b)+v*(l*d-u*h)),e[5]=r*(h*p-d*b)-c*(i*p-a*b)+v*(i*d-a*h),e[6]=-(r*(l*p-u*b)-o*(i*p-a*b)+v*(i*u-a*l)),e[7]=r*(l*d-u*h)-o*(i*d-a*h)+c*(i*u-a*l),e[8]=o*(f*p-d*m)-c*(s*p-u*m)+v*(s*d-u*f),e[9]=-(r*(f*p-d*m)-c*(n*p-a*m)+v*(n*d-a*f)),e[10]=r*(s*p-u*m)-o*(n*p-a*m)+v*(n*u-a*s),e[11]=-(r*(s*d-u*f)-o*(n*d-a*f)+c*(n*u-a*s)),e[12]=-(o*(f*b-h*m)-c*(s*b-l*m)+v*(s*h-l*f)),e[13]=r*(f*b-h*m)-c*(n*b-i*m)+v*(n*h-i*f),e[14]=-(r*(s*b-l*m)-o*(n*b-i*m)+v*(n*l-i*s)),e[15]=r*(s*h-l*f)-o*(n*h-i*f)+c*(n*l-i*s),e}});var zte=ye((lir,Fte)=>{Fte.exports=grt;function grt(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],f=e[10],h=e[11],d=e[12],v=e[13],m=e[14],b=e[15],p=t*o-r*a,k=t*s-n*a,M=t*l-i*a,T=r*s-n*o,L=r*l-i*o,x=n*l-i*s,C=u*v-c*d,S=u*m-f*d,g=u*b-h*d,P=c*m-f*v,E=c*b-h*v,z=f*b-h*m;return p*z-k*E+M*P+T*g-L*S+x*C}});var Ote=ye((uir,qte)=>{qte.exports=mrt;function mrt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=t[9],d=t[10],v=t[11],m=t[12],b=t[13],p=t[14],k=t[15],M=r[0],T=r[1],L=r[2],x=r[3];return e[0]=M*n+T*s+L*f+x*m,e[1]=M*i+T*l+L*h+x*b,e[2]=M*a+T*u+L*d+x*p,e[3]=M*o+T*c+L*v+x*k,M=r[4],T=r[5],L=r[6],x=r[7],e[4]=M*n+T*s+L*f+x*m,e[5]=M*i+T*l+L*h+x*b,e[6]=M*a+T*u+L*d+x*p,e[7]=M*o+T*c+L*v+x*k,M=r[8],T=r[9],L=r[10],x=r[11],e[8]=M*n+T*s+L*f+x*m,e[9]=M*i+T*l+L*h+x*b,e[10]=M*a+T*u+L*d+x*p,e[11]=M*o+T*c+L*v+x*k,M=r[12],T=r[13],L=r[14],x=r[15],e[12]=M*n+T*s+L*f+x*m,e[13]=M*i+T*l+L*h+x*b,e[14]=M*a+T*u+L*d+x*p,e[15]=M*o+T*c+L*v+x*k,e}});var Nte=ye((cir,Bte)=>{Bte.exports=yrt;function yrt(e,t,r){var n=r[0],i=r[1],a=r[2],o,s,l,u,c,f,h,d,v,m,b,p;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],s=t[1],l=t[2],u=t[3],c=t[4],f=t[5],h=t[6],d=t[7],v=t[8],m=t[9],b=t[10],p=t[11],e[0]=o,e[1]=s,e[2]=l,e[3]=u,e[4]=c,e[5]=f,e[6]=h,e[7]=d,e[8]=v,e[9]=m,e[10]=b,e[11]=p,e[12]=o*n+c*i+v*a+t[12],e[13]=s*n+f*i+m*a+t[13],e[14]=l*n+h*i+b*a+t[14],e[15]=u*n+d*i+p*a+t[15]),e}});var Vte=ye((fir,Ute)=>{Ute.exports=_rt;function _rt(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}});var Hte=ye((hir,Gte)=>{Gte.exports=xrt;function xrt(e,t,r,n){var i=n[0],a=n[1],o=n[2],s=Math.sqrt(i*i+a*a+o*o),l,u,c,f,h,d,v,m,b,p,k,M,T,L,x,C,S,g,P,E,z,q,V,G;return Math.abs(s)<1e-6?null:(s=1/s,i*=s,a*=s,o*=s,l=Math.sin(r),u=Math.cos(r),c=1-u,f=t[0],h=t[1],d=t[2],v=t[3],m=t[4],b=t[5],p=t[6],k=t[7],M=t[8],T=t[9],L=t[10],x=t[11],C=i*i*c+u,S=a*i*c+o*l,g=o*i*c-a*l,P=i*a*c-o*l,E=a*a*c+u,z=o*a*c+i*l,q=i*o*c+a*l,V=a*o*c-i*l,G=o*o*c+u,e[0]=f*C+m*S+M*g,e[1]=h*C+b*S+T*g,e[2]=d*C+p*S+L*g,e[3]=v*C+k*S+x*g,e[4]=f*P+m*E+M*z,e[5]=h*P+b*E+T*z,e[6]=d*P+p*E+L*z,e[7]=v*P+k*E+x*z,e[8]=f*q+m*V+M*G,e[9]=h*q+b*V+T*G,e[10]=d*q+p*V+L*G,e[11]=v*q+k*V+x*G,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}});var Wte=ye((dir,jte)=>{jte.exports=brt;function brt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+u*n,e[5]=o*i+c*n,e[6]=s*i+f*n,e[7]=l*i+h*n,e[8]=u*i-a*n,e[9]=c*i-o*n,e[10]=f*i-s*n,e[11]=h*i-l*n,e}});var Zte=ye((vir,Xte)=>{Xte.exports=wrt;function wrt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[8],c=t[9],f=t[10],h=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-u*n,e[1]=o*i-c*n,e[2]=s*i-f*n,e[3]=l*i-h*n,e[8]=a*n+u*i,e[9]=o*n+c*i,e[10]=s*n+f*i,e[11]=l*n+h*i,e}});var Kte=ye((pir,Yte)=>{Yte.exports=Trt;function Trt(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],s=t[2],l=t[3],u=t[4],c=t[5],f=t[6],h=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+u*n,e[1]=o*i+c*n,e[2]=s*i+f*n,e[3]=l*i+h*n,e[4]=u*i-a*n,e[5]=c*i-o*n,e[6]=f*i-s*n,e[7]=h*i-l*n,e}});var $te=ye((gir,Jte)=>{Jte.exports=Art;function Art(e,t,r){var n,i,a,o=r[0],s=r[1],l=r[2],u=Math.sqrt(o*o+s*s+l*l);return Math.abs(u)<1e-6?null:(u=1/u,o*=u,s*=u,l*=u,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=s*o*a+l*n,e[2]=l*o*a-s*n,e[3]=0,e[4]=o*s*a-l*n,e[5]=s*s*a+i,e[6]=l*s*a+o*n,e[7]=0,e[8]=o*l*a+s*n,e[9]=s*l*a-o*n,e[10]=l*l*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}});var ere=ye((mir,Qte)=>{Qte.exports=Srt;function Srt(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],s=n+n,l=i+i,u=a+a,c=n*s,f=n*l,h=n*u,d=i*l,v=i*u,m=a*u,b=o*s,p=o*l,k=o*u;return e[0]=1-(d+m),e[1]=f+k,e[2]=h-p,e[3]=0,e[4]=f-k,e[5]=1-(c+m),e[6]=v+b,e[7]=0,e[8]=h+p,e[9]=v-b,e[10]=1-(c+d),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}});var rre=ye((yir,tre)=>{tre.exports=Mrt;function Mrt(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var nre=ye((_ir,ire)=>{ire.exports=Ert;function Ert(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}});var ore=ye((xir,are)=>{are.exports=krt;function krt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var lre=ye((bir,sre)=>{sre.exports=Crt;function Crt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var cre=ye((wir,ure)=>{ure.exports=Lrt;function Lrt(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var hre=ye((Tir,fre)=>{fre.exports=Prt;function Prt(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,s=n+n,l=i+i,u=r*o,c=n*o,f=n*s,h=i*o,d=i*s,v=i*l,m=a*o,b=a*s,p=a*l;return e[0]=1-f-v,e[1]=c+p,e[2]=h-b,e[3]=0,e[4]=c-p,e[5]=1-u-v,e[6]=d+m,e[7]=0,e[8]=h+b,e[9]=d-m,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}});var vre=ye((Air,dre)=>{dre.exports=Irt;function Irt(e,t,r,n,i,a,o){var s=1/(r-t),l=1/(i-n),u=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*l,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(i+n)*l,e[10]=(o+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*u,e[15]=0,e}});var gre=ye((Sir,pre)=>{pre.exports=Rrt;function Rrt(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}});var yre=ye((Mir,mre)=>{mre.exports=Drt;function Drt(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(i+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-s)*l*.5),e[9]=(i-a)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}});var xre=ye((Eir,_re)=>{_re.exports=Frt;function Frt(e,t,r,n,i,a,o){var s=1/(t-r),l=1/(n-i),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*l,e[14]=(o+a)*u,e[15]=1,e}});var wre=ye((kir,bre)=>{var zrt=Gq();bre.exports=qrt;function qrt(e,t,r,n){var i,a,o,s,l,u,c,f,h,d,v=t[0],m=t[1],b=t[2],p=n[0],k=n[1],M=n[2],T=r[0],L=r[1],x=r[2];return Math.abs(v-T)<1e-6&&Math.abs(m-L)<1e-6&&Math.abs(b-x)<1e-6?zrt(e):(c=v-T,f=m-L,h=b-x,d=1/Math.sqrt(c*c+f*f+h*h),c*=d,f*=d,h*=d,i=k*h-M*f,a=M*c-p*h,o=p*f-k*c,d=Math.sqrt(i*i+a*a+o*o),d?(d=1/d,i*=d,a*=d,o*=d):(i=0,a=0,o=0),s=f*o-h*a,l=h*i-c*o,u=c*a-f*i,d=Math.sqrt(s*s+l*l+u*u),d?(d=1/d,s*=d,l*=d,u*=d):(s=0,l=0,u=0),e[0]=i,e[1]=s,e[2]=c,e[3]=0,e[4]=a,e[5]=l,e[6]=f,e[7]=0,e[8]=o,e[9]=u,e[10]=h,e[11]=0,e[12]=-(i*v+a*m+o*b),e[13]=-(s*v+l*m+u*b),e[14]=-(c*v+f*m+h*b),e[15]=1,e)}});var Are=ye((Cir,Tre)=>{Tre.exports=Ort;function Ort(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}});var Hq=ye((Lir,Sre)=>{Sre.exports={create:Tte(),clone:Ste(),copy:Ete(),identity:Gq(),transpose:Lte(),invert:Ite(),adjoint:Dte(),determinant:zte(),multiply:Ote(),translate:Nte(),scale:Vte(),rotate:Hte(),rotateX:Wte(),rotateY:Zte(),rotateZ:Kte(),fromRotation:$te(),fromRotationTranslation:ere(),fromScaling:rre(),fromTranslation:nre(),fromXRotation:ore(),fromYRotation:lre(),fromZRotation:cre(),fromQuat:hre(),frustum:vre(),perspective:gre(),perspectiveFromFieldOfView:yre(),ortho:xre(),lookAt:wre(),str:Are()}});var I6=ye(fh=>{"use strict";var Brt=Hq();fh.init2dArray=function(e,t){for(var r=new Array(e),n=0;n<e;n++)r[n]=new Array(t);return r};fh.transposeRagged=function(e){var t=0,r=e.length,n,i;for(n=0;n<r;n++)t=Math.max(t,e[n].length);var a=new Array(t);for(n=0;n<t;n++)for(a[n]=new Array(r),i=0;i<r;i++)a[n][i]=e[i][n];return a};fh.dot=function(e,t){if(!(e.length&&t.length)||e.length!==t.length)return null;var r=e.length,n,i;if(e[0].length)for(n=new Array(r),i=0;i<r;i++)n[i]=fh.dot(e[i],t);else if(t[0].length){var a=fh.transposeRagged(t);for(n=new Array(a.length),i=0;i<a.length;i++)n[i]=fh.dot(e,a[i])}else for(n=0,i=0;i<r;i++)n+=e[i]*t[i];return n};fh.translationMatrix=function(e,t){return[[1,0,e],[0,1,t],[0,0,1]]};fh.rotationMatrix=function(e){var t=e*Math.PI/180;return[[Math.cos(t),-Math.sin(t),0],[Math.sin(t),Math.cos(t),0],[0,0,1]]};fh.rotationXYMatrix=function(e,t,r){return fh.dot(fh.dot(fh.translationMatrix(t,r),fh.rotationMatrix(e)),fh.translationMatrix(-t,-r))};fh.apply3DTransform=function(e){return function(){var t=arguments,r=arguments.length===1?t[0]:[t[0],t[1],t[2]||0];return fh.dot(e,[r[0],r[1],r[2],1]).slice(0,3)}};fh.apply2DTransform=function(e){return function(){var t=arguments;t.length===3&&(t=t[0]);var r=arguments.length===1?t[0]:[t[0],t[1]];return fh.dot(e,[r[0],r[1],1]).slice(0,2)}};fh.apply2DTransform2=function(e){var t=fh.apply2DTransform(e);return function(r){return t(r.slice(0,2)).concat(t(r.slice(2,4)))}};fh.convertCssMatrix=function(e){if(e){var t=e.length;if(t===16)return e;if(t===6)return[e[0],e[1],0,0,e[2],e[3],0,0,0,0,1,0,e[4],e[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]};fh.inverseTransformMatrix=function(e){var t=[];return Brt.invert(t,e),[[t[0],t[1],t[2],t[3]],[t[4],t[5],t[6],t[7]],[t[8],t[9],t[10],t[11]],[t[12],t[13],t[14],t[15]]]}});var jS=ye((Iir,Pre)=>{"use strict";var Nrt=qa(),Mre=K1(),Urt=I6(),Vrt=Hq();function Grt(e){var t;if(typeof e=="string"){if(t=document.getElementById(e),t===null)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}else if(e==null)throw new Error("DOM element provided is null or undefined");return e}function Hrt(e){var t=Nrt.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function Ere(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function jrt(e,t){kre("global",e,t)}function kre(e,t,r){var n="plotly.js-style-"+e,i=document.getElementById(n);if(!(i&&i.matches(".no-inline-styles"))){i||(i=document.createElement("style"),i.setAttribute("id",n),i.appendChild(document.createTextNode("")),document.head.appendChild(i));var a=i.sheet;a?a.insertRule?a.insertRule(t+"{"+r+"}",0):a.addRule?a.addRule(t,r,0):Mre.warn("addStyleRule failed"):Mre.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function Wrt(e){var t="plotly.js-style-"+e,r=document.getElementById(t);r&&Ere(r)}function Xrt(e,t,r,n,i,a){var o=n.split(":"),s=i.split(":"),l="data-btn-style-event-added";a||(a=document),a.querySelectorAll(e).forEach(function(u){u.getAttribute(l)||(u.addEventListener("mouseenter",function(){var c=this.querySelector(r);c&&(c.style[o[0]]=o[1])}),u.addEventListener("mouseleave",function(){var c=this.querySelector(r);c&&(t&&this.matches(t)?c.style[o[0]]=o[1]:c.style[s[0]]=s[1])}),u.setAttribute(l,!0))})}function Zrt(e){var t=Lre(e),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return t.forEach(function(n){var i=Cre(n);if(i){var a=Urt.convertCssMatrix(i);r=Vrt.multiply(r,r,a)}}),r}function Cre(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("-webkit-transform")||t.getPropertyValue("-moz-transform")||t.getPropertyValue("-ms-transform")||t.getPropertyValue("-o-transform")||t.getPropertyValue("transform");return r==="none"?null:r.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(n){return+n})}function Lre(e){for(var t=[];Yrt(e);)t.push(e),e=e.parentNode,typeof ShadowRoot=="function"&&e instanceof ShadowRoot&&(e=e.host);return t}function Yrt(e){return e&&(e instanceof Element||e instanceof HTMLElement)}function Krt(e,t){return e&&t&&e.top===t.top&&e.left===t.left&&e.right===t.right&&e.bottom===t.bottom}Pre.exports={getGraphDiv:Grt,isPlotDiv:Hrt,removeElement:Ere,addStyleRule:jrt,addRelatedStyleRule:kre,deleteRelatedStyleRule:Wrt,setStyleOnHover:Xrt,getFullTransformMatrix:Zrt,getElementTransformMatrix:Cre,getElementAndAncestors:Lre,equalDomRects:Krt}});var WS=ye((Rir,Ire)=>{"use strict";Ire.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"}}}});var mc=ye((Dir,Bre)=>{"use strict";var Dre=Ao().extendFlat,Jrt=Ay(),Fre={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},zre={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},$rt=Fre.flags.slice().concat(["fullReplot"]),Qrt=zre.flags.slice().concat("layoutReplot");Bre.exports={traces:Fre,layout:zre,traceFlags:function(){return Rre($rt)},layoutFlags:function(){return Rre(Qrt)},update:function(e,t){var r=t.editType;if(r&&r!=="none")for(var n=r.split("+"),i=0;i<n.length;i++)e[n[i]]=!0},overrideAll:qre};function Rre(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=!1;return t}function qre(e,t,r){var n=Dre({},e);for(var i in n){var a=n[i];Jrt(a)&&(n[i]=Ore(a,t,r,i))}return r==="from-root"&&(n.editType=t),n}function Ore(e,t,r,n){if(e.valType){var i=Dre({},e);if(i.editType=t,Array.isArray(e.items)){i.items=new Array(e.items.length);for(var a=0;a<e.items.length;a++)i.items[a]=Ore(e.items[a],t,"from-root")}return i}else return qre(e,t,n.charAt(0)==="_"?"nested":"from-root")}});var Pd=ye(jq=>{"use strict";jq.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"};jq.pattern={shape:{valType:"enumerated",values:["","/","\\","x","-","|","+","."],dflt:"",arrayOk:!0,editType:"style"},path:{valType:"string",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"}});var Wq=ye((zir,Nre)=>{"use strict";Nre.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"}});var Ll=ye(x3=>{"use strict";var{DATE_FORMAT_LINK:eit,FORMAT_LINK:tit}=Wq(),rit=["Variables that can't be found will be replaced with the specifier.",'For example, a template of "data: %{x}, %{y}" will result in a value of "data: 1, %{y}" if x is 1 and y is missing.',"Variables with an undefined value will be replaced with the fallback value."].join(" ");function iit({supportOther:e}={}){return["Variables are inserted using %{variable},",'for example "y: %{y}"'+(e?" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown.":"."),`Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".`,tit,"for details on the formatting syntax.",`Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".`,eit,"for details on the date formatting syntax.",rit].join(" ")}x3.templateFormatStringDescription=iit;x3.hovertemplateAttrs=({editType:e="none",arrayOk:t}={},r={})=>_g({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});x3.texttemplateAttrs=({editType:e="calc",arrayOk:t}={},r={})=>_g({valType:"string",dflt:"",editType:e},t!==!1?{arrayOk:!0}:{});x3.shapeTexttemplateAttrs=({editType:e="arraydraw",newshape:t}={},r={})=>({valType:"string",dflt:"",editType:e});x3.templatefallbackAttrs=({editType:e="none"}={})=>({valType:"any",dflt:"-",editType:e})});var F6=ye((Bir,Wre)=>{"use strict";function J1(e,t){return t?t.d2l(e):e}function Ure(e,t){return t?t.l2d(e):e}function nit(e){return e.x0}function ait(e){return e.x1}function oit(e){return e.y0}function sit(e){return e.y1}function Vre(e){return e.x0shift||0}function Gre(e){return e.x1shift||0}function Hre(e){return e.y0shift||0}function jre(e){return e.y1shift||0}function R6(e,t){return J1(e.x1,t)+Gre(e)-J1(e.x0,t)-Vre(e)}function D6(e,t,r){return J1(e.y1,r)+jre(e)-J1(e.y0,r)-Hre(e)}function lit(e,t){return Math.abs(R6(e,t))}function uit(e,t,r){return Math.abs(D6(e,t,r))}function cit(e,t,r){return e.type!=="line"?void 0:Math.sqrt(Math.pow(R6(e,t),2)+Math.pow(D6(e,t,r),2))}function fit(e,t){return Ure((J1(e.x1,t)+Gre(e)+J1(e.x0,t)+Vre(e))/2,t)}function hit(e,t,r){return Ure((J1(e.y1,r)+jre(e)+J1(e.y0,r)+Hre(e))/2,r)}function dit(e,t,r){return e.type!=="line"?void 0:D6(e,t,r)/R6(e,t)}var vit=["x0","x1","y0","y1","dy","height","ycenter"],pit=["x0","x1","y0","y1","dx","width","xcenter"];Wre.exports={x0:nit,x1:ait,y0:oit,y1:sit,slope:dit,dx:R6,dy:D6,width:lit,height:uit,length:cit,xcenter:fit,ycenter:hit,simpleXVariables:vit,simpleYVariables:pit}});var Yre=ye((Nir,Zre)=>{"use strict";var git=mc().overrideAll,bb=Gl(),Xre=ec(),mit=Pd().dash,$1=Ao().extendFlat,{shapeTexttemplateAttrs:yit,templatefallbackAttrs:_it}=Ll(),xit=F6();Zre.exports=git({newshape:{visible:$1({},bb.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:$1({},bb.legend,{}),legendgroup:$1({},bb.legendgroup,{}),legendgrouptitle:{text:$1({},bb.legendgrouptitle.text,{}),font:Xre({})},legendrank:$1({},bb.legendrank,{}),legendwidth:$1({},bb.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:$1({},mit,{dflt:"solid"})},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd"},opacity:{valType:"number",min:0,max:1,dflt:1},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal"},name:$1({},bb.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:yit({newshape:!0},{keys:Object.keys(xit)}),texttemplatefallback:_it({editType:"arraydraw"}),font:Xre({}),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)",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5}}},"none","from-root")});var Jre=ye((Uir,Kre)=>{"use strict";var bit=Pd().dash,wit=Ao().extendFlat;Kre.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:wit({},bit,{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"}}});var z6=ye((Vir,$re)=>{"use strict";$re.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}});var b3=ye((Gir,rie)=>{"use strict";var Xq=ec(),Tit=WS(),q6=Ih(),Qre=Yre(),eie=Jre(),Ait=z6(),tie=Ao().extendFlat,O6=Xq({editType:"calc"});O6.family.dflt='"Open Sans", verdana, arial, sans-serif';O6.size.dflt=12;O6.color.dflt=q6.defaultLine;rie.exports={font:O6,title:{text:{valType:"string",editType:"layoutstyle"},font:Xq({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:Xq({editType:"layoutstyle"}),editType:"layoutstyle"},xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:tie(Ait({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:q6.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:q6.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:q6.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:Qre.newshape,activeshape:Qre.activeshape,newselection:eie.newselection,activeselection:eie.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:tie({},Tit.transition,{editType:"none"})}});var iie=ye(()=>{(function(){if(!document.getElementById("8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc")){var e=document.createElement("style");e.id="8431bff7cc77ea8693f8122c6e0981316b936a0a4930625e08b1512d134062bc",e.textContent=`.maplibregl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.maplibregl-canvas{left:0;position:absolute;top:0}.maplibregl-map:fullscreen{height:100%;width:100%}.maplibregl-ctrl-group button.maplibregl-ctrl-compass{touch-action:none}.maplibregl-canvas-container.maplibregl-interactive,.maplibregl-ctrl-group button.maplibregl-ctrl-compass{cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-canvas-container.maplibregl-interactive.maplibregl-track-pointer{cursor:pointer}.maplibregl-canvas-container.maplibregl-interactive:active,.maplibregl-ctrl-group button.maplibregl-ctrl-compass:active{cursor:grabbing}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-canvas-container.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:pinch-zoom}.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan,.maplibregl-canvas-container.maplibregl-touch-zoom-rotate.maplibregl-touch-drag-pan .maplibregl-canvas{touch-action:none}.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures,.maplibregl-canvas-container.maplibregl-touch-drag-pan.maplibregl-cooperative-gestures .maplibregl-canvas{touch-action:pan-x pan-y}.maplibregl-ctrl-bottom-left,.maplibregl-ctrl-bottom-right,.maplibregl-ctrl-top-left,.maplibregl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.maplibregl-ctrl-top-left{left:0;top:0}.maplibregl-ctrl-top-right{right:0;top:0}.maplibregl-ctrl-bottom-left{bottom:0;left:0}.maplibregl-ctrl-bottom-right{bottom:0;right:0}.maplibregl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.maplibregl-ctrl-top-left .maplibregl-ctrl{float:left;margin:10px 0 0 10px}.maplibregl-ctrl-top-right .maplibregl-ctrl{float:right;margin:10px 10px 0 0}.maplibregl-ctrl-bottom-left .maplibregl-ctrl{float:left;margin:0 0 10px 10px}.maplibregl-ctrl-bottom-right .maplibregl-ctrl{float:right;margin:0 10px 10px 0}.maplibregl-ctrl-group{background:#fff;border-radius:4px}.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (forced-colors:active){.maplibregl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.maplibregl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.maplibregl-ctrl-group button+button{border-top:1px solid #ddd}.maplibregl-ctrl button .maplibregl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (forced-colors:active){.maplibregl-ctrl-icon{background-color:transparent}.maplibregl-ctrl-group button+button{border-top:1px solid ButtonText}}.maplibregl-ctrl button::-moz-focus-inner{border:0;padding:0}.maplibregl-ctrl-attrib-button:focus,.maplibregl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl button:disabled{cursor:not-allowed}.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon{opacity:.25}.maplibregl-ctrl button:not(:disabled):hover{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.maplibregl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.maplibregl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.maplibregl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.maplibregl-ctrl-group button:focus:only-child{border-radius:inherit}.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-fullscreen .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-shrink .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-compass .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='m10.5 14 4-8 4 8z'/%3E%3Cpath fill='%23ccc' d='m10.5 16 4 8 4-8z'/%3E%3C/svg%3E")}}.maplibregl-ctrl button.maplibregl-ctrl-terrain .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%23333' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-terrain-enabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='%2333b5e5' viewBox='0 0 22 22'%3E%3Cpath d='m1.754 13.406 4.453-4.851 3.09 3.09 3.281 3.277.969-.969-3.309-3.312 3.844-4.121 6.148 6.886h1.082v-.855l-7.207-8.07-4.84 5.187L6.169 6.57l-5.48 5.965v.871ZM.688 16.844h20.625v1.375H.688Zm0 0'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23333' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23aaa' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-waiting .maplibregl-ctrl-icon{animation:maplibregl-spin 2s linear infinite}@media (forced-colors:active){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23fff' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23999' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-active-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e58978' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%2333b5e5' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate.maplibregl-ctrl-geolocate-background-error .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23e54e33' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl button.maplibregl-ctrl-geolocate .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E")}.maplibregl-ctrl button.maplibregl-ctrl-geolocate:disabled .maplibregl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' fill='%23666' viewBox='0 0 20 20'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1m0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath fill='red' d='m14 5 1 1-9 9-1-1z'/%3E%3C/svg%3E")}}@keyframes maplibregl-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.maplibregl-ctrl-logo.maplibregl-compact{width:14px}@media (forced-colors:active){a.maplibregl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}@media (forced-colors:active) and (prefers-color-scheme:light){a.maplibregl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='23' fill='none'%3E%3Cpath fill='%23000' fill-opacity='.4' fill-rule='evenodd' d='M17.408 16.796h-1.827l2.501-12.095h.198l3.324 6.533.988 2.19.988-2.19 3.258-6.533h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.929 5.644h-.098l-2.914-5.644-.757-1.71-.345 1.71zm1.958-3.42-.726 3.663a1.255 1.255 0 0 1-1.232 1.011h-1.827a1.255 1.255 0 0 1-1.229-1.509l2.501-12.095a1.255 1.255 0 0 1 1.23-1.001h.197a1.25 1.25 0 0 1 1.12.685l3.19 6.273 3.125-6.263a1.25 1.25 0 0 1 1.123-.695h.181a1.255 1.255 0 0 1 1.227.991l1.443 6.71a5 5 0 0 1 .314-.787l.009-.016a4.6 4.6 0 0 1 1.777-1.887c.782-.46 1.668-.667 2.611-.667a4.6 4.6 0 0 1 1.7.32l.306.134c.21-.16.474-.256.759-.256h1.694a1.255 1.255 0 0 1 1.212.925 1.255 1.255 0 0 1 1.212-.925h1.711c.284 0 .545.094.755.252.613-.3 1.312-.45 2.075-.45 1.356 0 2.557.445 3.482 1.4q.47.48.763 1.064V4.701a1.255 1.255 0 0 1 1.255-1.255h1.86A1.255 1.255 0 0 1 54.44 4.7v9.194h2.217c.19 0 .37.043.532.118v-4.77c0-.356.147-.678.385-.906a2.42 2.42 0 0 1-.682-1.71c0-.665.267-1.253.735-1.7a2.45 2.45 0 0 1 1.722-.674 2.43 2.43 0 0 1 1.705.675q.318.302.504.683V4.7a1.255 1.255 0 0 1 1.255-1.255h1.744A1.255 1.255 0 0 1 65.812 4.7v3.335a4.8 4.8 0 0 1 1.526-.246c.938 0 1.817.214 2.59.69a4.47 4.47 0 0 1 1.67 1.743v-.98a1.255 1.255 0 0 1 1.256-1.256h1.777c.233 0 .451.064.639.174a3.4 3.4 0 0 1 1.567-.372c.346 0 .861.02 1.285.232a1.25 1.25 0 0 1 .689 1.004 4.7 4.7 0 0 1 .853-.588c.795-.44 1.675-.647 2.61-.647 1.385 0 2.65.39 3.525 1.396.836.938 1.168 2.173 1.168 3.528q-.001.515-.056 1.051a1.255 1.255 0 0 1-.947 1.09l.408.952a1.255 1.255 0 0 1-.477 1.552c-.418.268-.92.463-1.458.612-.613.171-1.304.244-2.049.244-1.06 0-2.043-.207-2.886-.698l-.015-.008c-.798-.48-1.419-1.135-1.818-1.963l-.004-.008a5.8 5.8 0 0 1-.548-2.512q0-.429.053-.843a1.3 1.3 0 0 1-.333-.086l-.166-.004c-.223 0-.426.062-.643.228-.03.024-.142.139-.142.59v3.883a1.255 1.255 0 0 1-1.256 1.256h-1.777a1.255 1.255 0 0 1-1.256-1.256V15.69l-.032.057a4.8 4.8 0 0 1-1.86 1.833 5.04 5.04 0 0 1-2.484.634 4.5 4.5 0 0 1-1.935-.424 1.25 1.25 0 0 1-.764.258h-1.71a1.255 1.255 0 0 1-1.256-1.255V7.687a2.4 2.4 0 0 1-.428.625c.253.23.412.561.412.93v7.553a1.255 1.255 0 0 1-1.256 1.255h-1.843a1.25 1.25 0 0 1-.894-.373c-.228.23-.544.373-.894.373H51.32a1.255 1.255 0 0 1-1.256-1.255v-1.251l-.061.117a4.7 4.7 0 0 1-1.782 1.884 4.77 4.77 0 0 1-2.485.67 5.6 5.6 0 0 1-1.485-.188l.009 2.764a1.255 1.255 0 0 1-1.255 1.259h-1.729a1.255 1.255 0 0 1-1.255-1.255v-3.537a1.255 1.255 0 0 1-1.167.793h-1.679a1.25 1.25 0 0 1-.77-.263 4.5 4.5 0 0 1-1.945.429c-.885 0-1.724-.21-2.495-.632l-.017-.01a5 5 0 0 1-1.081-.836 1.255 1.255 0 0 1-1.254 1.312h-1.81a1.255 1.255 0 0 1-1.228-.99l-.782-3.625-2.044 3.939a1.25 1.25 0 0 1-1.115.676h-.098a1.25 1.25 0 0 1-1.116-.68l-2.061-3.994zM35.92 16.63l.207-.114.223-.15q.493-.356.735-.785l.061-.118.033 1.332h1.678V9.242h-1.694l-.033 1.267q-.133-.329-.526-.658l-.032-.028a3.2 3.2 0 0 0-.668-.428l-.27-.12a3.3 3.3 0 0 0-1.235-.23q-1.136-.001-1.974.493a3.36 3.36 0 0 0-1.3 1.382q-.445.89-.444 2.074 0 1.2.51 2.107a3.8 3.8 0 0 0 1.382 1.381 3.9 3.9 0 0 0 1.893.477q.795 0 1.455-.33zm-2.789-5.38q-.576.675-.575 1.762 0 1.102.559 1.794.576.675 1.645.675a2.25 2.25 0 0 0 .934-.19 2.2 2.2 0 0 0 .468-.29l.178-.161a2.2 2.2 0 0 0 .397-.561q.244-.5.244-1.15v-.115q0-.708-.296-1.267l-.043-.077a2.2 2.2 0 0 0-.633-.709l-.13-.086-.047-.028a2.1 2.1 0 0 0-1.073-.285q-1.052 0-1.629.692zm2.316 2.706c.163-.17.28-.407.28-.83v-.114c0-.292-.06-.508-.15-.68a.96.96 0 0 0-.353-.389.85.85 0 0 0-.464-.127c-.4 0-.56.114-.664.239l-.01.012c-.148.174-.275.45-.275.945 0 .506.122.801.27.99.097.11.266.224.68.224.303 0 .504-.09.687-.269zm7.545 1.705a2.6 2.6 0 0 0 .331.423q.319.33.755.548l.173.074q.65.255 1.49.255 1.02 0 1.844-.493a3.45 3.45 0 0 0 1.316-1.4q.493-.904.493-2.089 0-1.909-.988-2.913-.988-1.02-2.584-1.02-.898 0-1.575.347a3 3 0 0 0-.415.262l-.199.166a3.4 3.4 0 0 0-.64.82V9.242h-1.712v11.553h1.729l-.017-5.134zm.53-1.138q.206.29.48.5l.155.11.053.034q.51.296 1.119.297 1.07 0 1.645-.675.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.435 0-.835.16a2 2 0 0 0-.284.136 2 2 0 0 0-.363.254 2.2 2.2 0 0 0-.46.569l-.082.162a2.6 2.6 0 0 0-.213 1.072v.115q0 .707.296 1.267l.135.211zm.964-.818a1.1 1.1 0 0 0 .367.385.94.94 0 0 0 .476.118c.423 0 .59-.117.687-.23.159-.194.28-.478.28-.95 0-.53-.133-.8-.266-.952l-.021-.025c-.078-.094-.231-.221-.68-.221a1 1 0 0 0-.503.135l-.012.007a.86.86 0 0 0-.335.343c-.073.133-.132.324-.132.614v.115a1.4 1.4 0 0 0 .14.66zm15.7-6.222q.347-.346.346-.856a1.05 1.05 0 0 0-.345-.79 1.18 1.18 0 0 0-.84-.329q-.51 0-.855.33a1.05 1.05 0 0 0-.346.79q0 .51.346.855.345.346.856.346.51 0 .839-.346zm4.337 9.314.033-1.332q.191.403.59.747l.098.081a4 4 0 0 0 .316.224l.223.122a3.2 3.2 0 0 0 1.44.322 3.8 3.8 0 0 0 1.875-.477 3.5 3.5 0 0 0 1.382-1.366q.527-.89.526-2.09 0-1.184-.444-2.073a3.24 3.24 0 0 0-1.283-1.399q-.823-.51-1.942-.51a3.5 3.5 0 0 0-1.527.344l-.086.043-.165.09a3 3 0 0 0-.33.214q-.432.315-.656.707a2 2 0 0 0-.099.198l.082-1.283V4.701h-1.744v12.095zm.473-2.509a2.5 2.5 0 0 0 .566.7q.117.098.245.18l.144.08a2.1 2.1 0 0 0 .975.232q1.07 0 1.645-.675.576-.69.576-1.778 0-1.102-.576-1.777-.56-.691-1.645-.692a2.2 2.2 0 0 0-1.015.235q-.22.113-.415.282l-.15.142a2.1 2.1 0 0 0-.42.594q-.223.479-.223 1.1v.115q0 .705.293 1.26zm2.616-.293c.157-.191.28-.479.28-.967 0-.51-.13-.79-.276-.961l-.021-.026c-.082-.1-.232-.225-.67-.225a.87.87 0 0 0-.681.279l-.012.011c-.154.155-.274.38-.274.807v.115c0 .285.057.499.144.669a1.1 1.1 0 0 0 .367.405c.137.082.28.123.455.123.423 0 .59-.118.686-.23zm8.266-3.013q.345-.13.724-.14l.069-.002q.493 0 .642.099l.247-1.794q-.196-.099-.717-.099a2.3 2.3 0 0 0-.545.063 2 2 0 0 0-.411.148 2.2 2.2 0 0 0-.4.249 2.5 2.5 0 0 0-.485.499 2.7 2.7 0 0 0-.32.581l-.05.137v-1.48h-1.778v7.553h1.777v-3.884q0-.546.159-.943a1.5 1.5 0 0 1 .466-.636 2.5 2.5 0 0 1 .399-.253 2 2 0 0 1 .224-.099zm9.784 2.656.05-.922q0-1.743-.856-2.698-.838-.97-2.584-.97-1.119-.001-2.007.493a3.46 3.46 0 0 0-1.4 1.382q-.493.906-.493 2.106 0 1.07.428 1.975.428.89 1.332 1.432.906.526 2.255.526.973 0 1.668-.185l.044-.012.135-.04q.613-.184.984-.421l-.542-1.267q-.3.162-.642.274l-.297.087q-.51.131-1.3.131-.954 0-1.497-.444a1.6 1.6 0 0 1-.192-.193q-.366-.44-.512-1.234l-.004-.021zm-5.427-1.256-.003.022h3.752v-.138q-.011-.727-.288-1.118a1 1 0 0 0-.156-.176q-.46-.428-1.316-.428-.986 0-1.494.604-.379.45-.494 1.234zm-27.053 2.77V4.7h-1.86v12.095h5.333V15.15zm7.103-5.908v7.553h-1.843V9.242h1.843z'/%3E%3Cpath fill='%23fff' d='m19.63 11.151-.757-1.71-.345 1.71-1.12 5.644h-1.827L18.083 4.7h.197l3.325 6.533.988 2.19.988-2.19L26.839 4.7h.181l2.6 12.095h-1.81l-1.218-5.644-.362-1.71-.658 1.71-2.93 5.644h-.098l-2.913-5.644zm14.836 5.81q-1.02 0-1.893-.478a3.8 3.8 0 0 1-1.381-1.382q-.51-.906-.51-2.106 0-1.185.444-2.074a3.36 3.36 0 0 1 1.3-1.382q.839-.494 1.974-.494a3.3 3.3 0 0 1 1.234.231 3.3 3.3 0 0 1 .97.575q.396.33.527.659l.033-1.267h1.694v7.553H37.18l-.033-1.332q-.279.593-1.02 1.053a3.17 3.17 0 0 1-1.662.444zm.296-1.482q.938 0 1.58-.642.642-.66.642-1.711v-.115q0-.708-.296-1.267a2.2 2.2 0 0 0-.807-.872 2.1 2.1 0 0 0-1.119-.313q-1.053 0-1.629.692-.575.675-.575 1.76 0 1.103.559 1.795.577.675 1.645.675zm6.521-6.237h1.711v1.4q.906-1.597 2.83-1.597 1.596 0 2.584 1.02.988 1.005.988 2.914 0 1.185-.493 2.09a3.46 3.46 0 0 1-1.316 1.399 3.5 3.5 0 0 1-1.844.493q-.954 0-1.662-.329a2.67 2.67 0 0 1-1.086-.97l.017 5.134h-1.728zm4.048 6.22q1.07 0 1.645-.674.577-.69.576-1.762 0-1.119-.576-1.777-.558-.675-1.645-.675-.592 0-1.12.296-.51.28-.822.823-.296.527-.296 1.234v.115q0 .708.296 1.267.313.543.823.855.51.296 1.119.297z'/%3E%3Cpath fill='%23e1e3e9' d='M51.325 4.7h1.86v10.45h3.473v1.646h-5.333zm7.12 4.542h1.843v7.553h-1.843zm.905-1.415a1.16 1.16 0 0 1-.856-.346 1.17 1.17 0 0 1-.346-.856 1.05 1.05 0 0 1 .346-.79q.346-.329.856-.329.494 0 .839.33a1.05 1.05 0 0 1 .345.79 1.16 1.16 0 0 1-.345.855q-.33.346-.84.346zm7.875 9.133a3.17 3.17 0 0 1-1.662-.444q-.723-.46-1.004-1.053l-.033 1.332h-1.71V4.701h1.743v4.657l-.082 1.283q.279-.658 1.086-1.119a3.5 3.5 0 0 1 1.778-.477q1.119 0 1.942.51a3.24 3.24 0 0 1 1.283 1.4q.445.888.444 2.072 0 1.201-.526 2.09a3.5 3.5 0 0 1-1.382 1.366 3.8 3.8 0 0 1-1.876.477zm-.296-1.481q1.069 0 1.645-.675.577-.69.577-1.778 0-1.102-.577-1.776-.56-.691-1.645-.692a2.12 2.12 0 0 0-1.58.659q-.642.641-.642 1.694v.115q0 .71.296 1.267a2.4 2.4 0 0 0 .807.872 2.1 2.1 0 0 0 1.119.313zm5.927-6.237h1.777v1.481q.263-.757.856-1.217a2.14 2.14 0 0 1 1.349-.46q.527 0 .724.098l-.247 1.794q-.149-.099-.642-.099-.774 0-1.416.494-.626.493-.626 1.58v3.883h-1.777V9.242zm9.534 7.718q-1.35 0-2.255-.526-.904-.543-1.332-1.432a4.6 4.6 0 0 1-.428-1.975q0-1.2.493-2.106a3.46 3.46 0 0 1 1.4-1.382q.889-.495 2.007-.494 1.744 0 2.584.97.855.956.856 2.7 0 .444-.05.92h-5.43q.18 1.005.708 1.45.542.443 1.497.443.79 0 1.3-.131a4 4 0 0 0 .938-.362l.542 1.267q-.411.263-1.119.46-.708.198-1.711.197zm1.596-4.558q.016-1.02-.444-1.432-.46-.428-1.316-.428-1.728 0-1.991 1.86z'/%3E%3Cpath d='M5.074 15.948a.484.657 0 0 0-.486.659v1.84a.484.657 0 0 0 .486.659h4.101a.484.657 0 0 0 .486-.659v-1.84a.484.657 0 0 0-.486-.659zm3.56 1.16H5.617v.838h3.017z' style='fill:%23fff;fill-rule:evenodd;stroke-width:1.03600001'/%3E%3Cg style='stroke-width:1.12603545'%3E%3Cpath d='M-9.408-1.416c-3.833-.025-7.056 2.912-7.08 6.615-.02 3.08 1.653 4.832 3.107 6.268.903.892 1.721 1.74 2.32 2.902l-.525-.004c-.543-.003-.992.304-1.24.639a1.87 1.87 0 0 0-.362 1.121l-.011 1.877c-.003.402.104.787.347 1.125.244.338.688.653 1.23.656l4.142.028c.542.003.99-.306 1.238-.641a1.87 1.87 0 0 0 .363-1.121l.012-1.875a1.87 1.87 0 0 0-.348-1.127c-.243-.338-.688-.653-1.23-.656l-.518-.004c.597-1.145 1.425-1.983 2.348-2.87 1.473-1.414 3.18-3.149 3.2-6.226-.016-3.59-2.923-6.684-6.993-6.707m-.006 1.1v.002c3.274.02 5.92 2.532 5.9 5.6-.017 2.706-1.39 4.026-2.863 5.44-1.034.994-2.118 2.033-2.814 3.633-.018.041-.052.055-.075.065q-.013.004-.02.01a.34.34 0 0 1-.226.084.34.34 0 0 1-.224-.086l-.092-.077c-.699-1.615-1.768-2.669-2.781-3.67-1.454-1.435-2.797-2.762-2.78-5.478.02-3.067 2.7-5.545 5.975-5.523m-.02 2.826c-1.62-.01-2.944 1.315-2.955 2.96-.01 1.646 1.295 2.988 2.916 2.999h.002c1.621.01 2.943-1.316 2.953-2.961.011-1.646-1.294-2.988-2.916-2.998m-.005 1.1c1.017.006 1.829.83 1.822 1.89s-.83 1.874-1.848 1.867c-1.018-.006-1.829-.83-1.822-1.89s.83-1.874 1.848-1.868m-2.155 11.857 4.14.025c.271.002.49.305.487.676l-.013 1.875c-.003.37-.224.67-.495.668l-4.14-.025c-.27-.002-.487-.306-.485-.676l.012-1.875c.003-.37.224-.67.494-.668' style='color:%23000;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:%23000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:evenodd;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:%23000;solid-opacity:1;vector-effect:none;fill:%23000;fill-opacity:.4;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-9.415-.316C-12.69-.338-15.37 2.14-15.39 5.207c-.017 2.716 1.326 4.041 2.78 5.477 1.013 1 2.081 2.055 2.78 3.67l.092.076a.34.34 0 0 0 .225.086.34.34 0 0 0 .227-.083l.019-.01c.022-.009.057-.024.074-.064.697-1.6 1.78-2.64 2.814-3.634 1.473-1.414 2.847-2.733 2.864-5.44.02-3.067-2.627-5.58-5.901-5.601m-.057 8.784c1.621.011 2.944-1.315 2.955-2.96.01-1.646-1.295-2.988-2.916-2.999-1.622-.01-2.945 1.315-2.955 2.96s1.295 2.989 2.916 3' style='clip-rule:evenodd;fill:%23e1e3e9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3Cpath d='M-11.594 15.465c-.27-.002-.492.297-.494.668l-.012 1.876c-.003.371.214.673.485.675l4.14.027c.271.002.492-.298.495-.668l.012-1.877c.003-.37-.215-.672-.485-.674z' style='clip-rule:evenodd;fill:%23fff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2.47727823;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:.4' transform='translate(15.553 2.85)scale(.88807)'/%3E%3C/g%3E%3C/svg%3E")}}.maplibregl-ctrl.maplibregl-ctrl-attrib{background-color:hsla(0,0%,100%,.5);margin:0;padding:0 5px}@media screen{.maplibregl-ctrl-attrib.maplibregl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;color:#000;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.maplibregl-ctrl-attrib.maplibregl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact-show,.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner{display:none}.maplibregl-ctrl-attrib-button{background-color:hsla(0,0%,100%,.5);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;list-style:none}.maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button::-webkit-details-marker{display:none}.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-top-left .maplibregl-ctrl-attrib-button{left:0}.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button,.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-inner{display:block}.maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button{background-color:rgb(0 0 0/5%)}.maplibregl-ctrl-bottom-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;right:0}.maplibregl-ctrl-top-right>.maplibregl-ctrl-attrib.maplibregl-compact:after{right:0;top:0}.maplibregl-ctrl-top-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{left:0;top:0}.maplibregl-ctrl-bottom-left>.maplibregl-ctrl-attrib.maplibregl-compact:after{bottom:0;left:0}}@media screen and (forced-colors:active){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (forced-colors:active) and (prefers-color-scheme:light){.maplibregl-ctrl-attrib.maplibregl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill-rule='evenodd' viewBox='0 0 20 20'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.maplibregl-ctrl-attrib a{color:rgba(0,0,0,.75);text-decoration:none}.maplibregl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.maplibregl-attrib-empty{display:none}.maplibregl-ctrl-scale{background-color:hsla(0,0%,100%,.75);border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px}.maplibregl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.maplibregl-popup-anchor-top,.maplibregl-popup-anchor-top-left,.maplibregl-popup-anchor-top-right{flex-direction:column}.maplibregl-popup-anchor-bottom,.maplibregl-popup-anchor-bottom-left,.maplibregl-popup-anchor-bottom-right{flex-direction:column-reverse}.maplibregl-popup-anchor-left{flex-direction:row}.maplibregl-popup-anchor-right{flex-direction:row-reverse}.maplibregl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.maplibregl-popup-anchor-top .maplibregl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.maplibregl-popup-anchor-top-left .maplibregl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.maplibregl-popup-anchor-top-right .maplibregl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.maplibregl-popup-anchor-bottom .maplibregl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.maplibregl-popup-anchor-left .maplibregl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.maplibregl-popup-anchor-right .maplibregl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.maplibregl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.maplibregl-popup-close-button:hover{background-color:rgb(0 0 0/5%)}.maplibregl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.1);padding:15px 10px;pointer-events:auto;position:relative}.maplibregl-popup-anchor-top-left .maplibregl-popup-content{border-top-left-radius:0}.maplibregl-popup-anchor-top-right .maplibregl-popup-content{border-top-right-radius:0}.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content{border-bottom-left-radius:0}.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content{border-bottom-right-radius:0}.maplibregl-popup-track-pointer{display:none}.maplibregl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.maplibregl-map:hover .maplibregl-popup-track-pointer{display:flex}.maplibregl-map:active .maplibregl-popup-track-pointer{display:none}.maplibregl-marker{left:0;position:absolute;top:0;transition:opacity .2s;will-change:transform}.maplibregl-user-location-dot,.maplibregl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.maplibregl-user-location-dot:before{animation:maplibregl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.maplibregl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px rgba(0,0,0,.35);box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}@keyframes maplibregl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.maplibregl-user-location-dot-stale{background-color:#aaa}.maplibregl-user-location-dot-stale:after{display:none}.maplibregl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.maplibregl-crosshair,.maplibregl-crosshair .maplibregl-interactive,.maplibregl-crosshair .maplibregl-interactive:active{cursor:crosshair}.maplibregl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}.maplibregl-cooperative-gesture-screen{align-items:center;background:rgba(0,0,0,.4);color:#fff;display:flex;font-size:1.4em;inset:0;justify-content:center;line-height:1.2;opacity:0;padding:1rem;pointer-events:none;position:absolute;transition:opacity 1s ease 1s;z-index:99999}.maplibregl-cooperative-gesture-screen.maplibregl-show{opacity:1;transition:opacity .05s}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:none}@media (hover:none),(width <= 480px){.maplibregl-cooperative-gesture-screen .maplibregl-desktop-message{display:none}.maplibregl-cooperative-gesture-screen .maplibregl-mobile-message{display:block}}.maplibregl-pseudo-fullscreen{height:100%!important;left:0!important;position:fixed!important;top:0!important;width:100%!important;z-index:99999}`,document.head.appendChild(e)}})()});var Oa=ye(el=>{"use strict";var w3=K1(),nie=P6(),aie=Vq(),Sit=Ay(),Mit=jS().addStyleRule,oie=Ao(),Eit=Gl(),kit=b3(),Cit=oie.extendFlat,Zq=oie.extendDeepAll;el.modules={};el.allCategories={};el.allTypes=[];el.subplotsRegistry={};el.componentsRegistry={};el.layoutArrayContainers=[];el.layoutArrayRegexes=[];el.traceLayoutAttributes={};el.localeRegistry={};el.apiMethodRegistry={};el.collectableSubplotTypes=null;el.register=function(t){if(el.collectableSubplotTypes=null,t)t&&!Array.isArray(t)&&(t=[t]);else throw new Error("No argument passed to Plotly.register.");for(var r=0;r<t.length;r++){var n=t[r];if(!n)throw new Error("Invalid module was attempted to be registered!");switch(n.moduleType){case"trace":Lit(n);break;case"transform":Rit(n);break;case"component":Iit(n);break;case"locale":Dit(n);break;case"apiMethod":var i=n.name;el.apiMethodRegistry[i]=n.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}};el.getModule=function(e){var t=el.modules[cie(e)];return t?t._module:!1};el.traceIs=function(e,t){if(e=cie(e),e==="various")return!1;var r=el.modules[e];return r||(e&&w3.log("Unrecognized trace type "+e+"."),r=el.modules[Eit.type.dflt]),!!r.categories[t]};el.getComponentMethod=function(e,t){var r=el.componentsRegistry[e];return r&&r[t]||nie};el.call=function(){var e=arguments[0],t=[].slice.call(arguments,1);return el.apiMethodRegistry[e].apply(null,t)};function Lit(e){var t=e.name,r=e.categories,n=e.meta;if(el.modules[t]){w3.log("Type "+t+" already registered");return}el.subplotsRegistry[e.basePlotModule.name]||Pit(e.basePlotModule);for(var i={},a=0;a<r.length;a++)i[r[a]]=!0,el.allCategories[r[a]]=!0;el.modules[t]={_module:e,categories:i},n&&Object.keys(n).length&&(el.modules[t].meta=n),el.allTypes.push(t);for(var o in el.componentsRegistry)lie(o,t);e.layoutAttributes&&Cit(el.traceLayoutAttributes,e.layoutAttributes);var s=e.basePlotModule,l=s.name;if(l==="mapbox"){var u=s.constants.styleRules;for(var c in u)Mit(".js-plotly-plot .plotly .mapboxgl-"+c,u[c])}l==="map"&&iie(),(l==="geo"||l==="mapbox"||l==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function Pit(e){var t=e.name;if(el.subplotsRegistry[t]){w3.log("Plot type "+t+" already registered.");return}sie(e),el.subplotsRegistry[t]=e;for(var r in el.componentsRegistry)uie(r,e.name)}function Iit(e){if(typeof e.name!="string")throw new Error("Component module *name* must be a string.");var t=e.name;el.componentsRegistry[t]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&aie(el.layoutArrayContainers,t),sie(e));for(var r in el.modules)lie(t,r);for(var n in el.subplotsRegistry)uie(t,n);e.schema&&e.schema.layout&&Zq(kit,e.schema.layout)}function Rit(e){if(typeof e.name!="string")throw new Error("Transform module *name* must be a string.");var t="Transform module "+e.name,r=typeof e.transform=="function",n=typeof e.calcTransform=="function";if(!r&&!n)throw new Error(t+" is missing a *transform* or *calcTransform* method.");r&&n&&w3.log([t+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),Sit(e.attributes)||w3.log(t+" registered without an *attributes* object."),typeof e.supplyDefaults!="function"&&w3.log(t+" registered without a *supplyDefaults* method.")}function Dit(e){var t=e.name,r=t.split("-")[0],n=e.dictionary,i=e.format,a=n&&Object.keys(n).length,o=i&&Object.keys(i).length,s=el.localeRegistry,l=s[t];if(l||(s[t]=l={}),r!==t){var u=s[r];u||(s[r]=u={}),a&&u.dictionary===l.dictionary&&(u.dictionary=n),o&&u.format===l.format&&(u.format=i)}a&&(l.dictionary=n),o&&(l.format=i)}function sie(e){if(e.layoutAttributes){var t=e.layoutAttributes._arrayAttrRegexps;if(t)for(var r=0;r<t.length;r++)aie(el.layoutArrayRegexes,t[r])}}function lie(e,t){var r=el.componentsRegistry[e].schema;if(!(!r||!r.traces)){var n=r.traces[t];n&&Zq(el.modules[t]._module.attributes,n)}}function uie(e,t){var r=el.componentsRegistry[e].schema;if(!(!r||!r.subplots)){var n=el.subplotsRegistry[t],i=n.layoutAttributes,a=n.attr==="subplot"?n.name:n.attr;Array.isArray(a)&&(a=a[0]);var o=r.subplots[a];i&&o&&Zq(i,o)}}function cie(e){return typeof e=="object"&&(e=e.type),e}});var _ie=ye(hh=>{"use strict";var Fit=d3().timeFormat,mie=Eo(),Yq=K1(),e_=p3().mod,S3=fs(),_0=S3.BADNUM,Ap=S3.ONEDAY,XS=S3.ONEHOUR,Q1=S3.ONEMIN,A3=S3.ONESEC,ZS=S3.EPOCHJD,Sy=Oa(),fie=d3().utcFormat,zit=/^\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,qit=/^\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,hie=new Date().getFullYear()-70;function My(e){return e&&Sy.componentsRegistry.calendars&&typeof e=="string"&&e!=="gregorian"}hh.dateTick0=function(e,t){var r=Oit(e,!!t);if(t<2)return r;var n=hh.dateTime2ms(r,e);return n+=Ap*(t-1),hh.ms2DateTime(n,0,e)};function Oit(e,t){return My(e)?t?Sy.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:Sy.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}hh.dfltRange=function(e){return My(e)?Sy.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]};hh.isJSDate=function(e){return typeof e=="object"&&e!==null&&typeof e.getTime=="function"};var N6,U6;hh.dateTime2ms=function(e,t){if(hh.isJSDate(e)){var r=e.getTimezoneOffset()*Q1,n=(e.getUTCMinutes()-e.getMinutes())*Q1+(e.getUTCSeconds()-e.getSeconds())*A3+(e.getUTCMilliseconds()-e.getMilliseconds());if(n){var i=3*Q1;r=r-i/2+e_(n-r+i/2,i)}return e=Number(e)-r,e>=N6&&e<=U6?e:_0}if(typeof e!="string"&&typeof e!="number")return _0;e=String(e);var a=My(t),o=e.charAt(0);a&&(o==="G"||o==="g")&&(e=e.slice(1),t="");var s=a&&t.slice(0,7)==="chinese",l=e.match(s?qit:zit);if(!l)return _0;var u=l[1],c=l[3]||"1",f=Number(l[5]||1),h=Number(l[7]||0),d=Number(l[9]||0),v=Number(l[11]||0);if(a){if(u.length===2)return _0;u=Number(u);var m;try{var b=Sy.getComponentMethod("calendars","getCal")(t);if(s){var p=c.charAt(c.length-1)==="i";c=parseInt(c,10),m=b.newDate(u,b.toMonthIndex(u,c,p),f)}else m=b.newDate(u,Number(c),f)}catch(M){return _0}return m?(m.toJD()-ZS)*Ap+h*XS+d*Q1+v*A3:_0}u.length===2?u=(Number(u)+2e3-hie)%100+hie:u=Number(u),c-=1;var k=new Date(Date.UTC(2e3,c,f,h,d));return k.setUTCFullYear(u),k.getUTCMonth()!==c||k.getUTCDate()!==f?_0:k.getTime()+v*A3};N6=hh.MIN_MS=hh.dateTime2ms("-9999");U6=hh.MAX_MS=hh.dateTime2ms("9999-12-31 23:59:59.9999");hh.isDateTime=function(e,t){return hh.dateTime2ms(e,t)!==_0};function T3(e,t){return String(e+Math.pow(10,t)).slice(1)}var B6=90*Ap,die=3*XS,vie=5*Q1;hh.ms2DateTime=function(e,t,r){if(typeof e!="number"||!(e>=N6&&e<=U6))return _0;t||(t=0);var n=Math.floor(e_(e+.05,1)*10),i=Math.round(e-n/10),a,o,s,l,u,c;if(My(r)){var f=Math.floor(i/Ap)+ZS,h=Math.floor(e_(e,Ap));try{a=Sy.getComponentMethod("calendars","getCal")(r).fromJD(f).formatDate("yyyy-mm-dd")}catch(d){a=fie("G%Y-%m-%d")(new Date(i))}if(a.charAt(0)==="-")for(;a.length<11;)a="-0"+a.slice(1);else for(;a.length<10;)a="0"+a;o=t<B6?Math.floor(h/XS):0,s=t<B6?Math.floor(h%XS/Q1):0,l=t<die?Math.floor(h%Q1/A3):0,u=t<vie?h%A3*10+n:0}else c=new Date(i),a=fie("%Y-%m-%d")(c),o=t<B6?c.getUTCHours():0,s=t<B6?c.getUTCMinutes():0,l=t<die?c.getUTCSeconds():0,u=t<vie?c.getUTCMilliseconds()*10+n:0;return yie(a,o,s,l,u)};hh.ms2DateTimeLocal=function(e){if(!(e>=N6+Ap&&e<=U6-Ap))return _0;var t=Math.floor(e_(e+.05,1)*10),r=new Date(Math.round(e-t/10)),n=Fit("%Y-%m-%d")(r),i=r.getHours(),a=r.getMinutes(),o=r.getSeconds(),s=r.getUTCMilliseconds()*10+t;return yie(n,i,a,o,s)};function yie(e,t,r,n,i){if((t||r||n||i)&&(e+=" "+T3(t,2)+":"+T3(r,2),(n||i)&&(e+=":"+T3(n,2),i))){for(var a=4;i%10===0;)a-=1,i/=10;e+="."+T3(i,a)}return e}hh.cleanDate=function(e,t,r){if(e===_0)return t;if(hh.isJSDate(e)||typeof e=="number"&&isFinite(e)){if(My(r))return Yq.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=hh.ms2DateTimeLocal(+e),!e&&t!==void 0)return t}else if(!hh.isDateTime(e,r))return Yq.error("unrecognized date",e),t;return e};var Bit=/%\d?f/g,Nit=/%h/g,Uit={1:"1",2:"1",3:"2",4:"2"};function pie(e,t,r,n){e=e.replace(Bit,function(a){var o=Math.min(+a.charAt(1)||6,6),s=(t/1e3%1+2).toFixed(o).slice(2).replace(/0+$/,"")||"0";return s});var i=new Date(Math.floor(t+.05));if(e=e.replace(Nit,function(){return Uit[r("%q")(i)]}),My(n))try{e=Sy.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(a){return"Invalid"}return r(e)(i)}var Vit=[59,59.9,59.99,59.999,59.9999];function Git(e,t){var r=e_(e+.05,Ap),n=T3(Math.floor(r/XS),2)+":"+T3(e_(Math.floor(r/Q1),60),2);if(t!=="M"){mie(t)||(t=0);var i=Math.min(e_(e/A3,60),Vit[t]),a=(100+i).toFixed(t).slice(1);t>0&&(a=a.replace(/0+$/,"").replace(/[\.]$/,"")),n+=":"+a}return n}hh.formatDate=function(e,t,r,n,i,a){if(i=My(i)&&i,!t)if(r==="y")t=a.year;else if(r==="m")t=a.month;else if(r==="d")t=a.dayMonth+`
19`+a.year;else return Git(e,r)+`
20`+pie(a.dayMonthYear,e,n,i);return pie(t,e,n,i)};var gie=3*Ap;hh.incrementMonth=function(e,t,r){r=My(r)&&r;var n=e_(e,Ap);if(e=Math.round(e-n),r)try{var i=Math.round(e/Ap)+ZS,a=Sy.getComponentMethod("calendars","getCal")(r),o=a.fromJD(i);return t%12?a.add(o,t,"m"):a.add(o,t/12,"y"),(o.toJD()-ZS)*Ap+n}catch(l){Yq.error("invalid ms "+e+" in calendar "+r)}var s=new Date(e+gie);return s.setUTCMonth(s.getUTCMonth()+t)+n-gie};hh.findExactDates=function(e,t){for(var r=0,n=0,i=0,a=0,o,s,l=My(t)&&Sy.getComponentMethod("calendars","getCal")(t),u=0;u<e.length;u++){if(s=e[u],!mie(s)){a++;continue}if(!(s%Ap))if(l)try{o=l.fromJD(s/Ap+ZS),o.day()===1?o.month()===1?r++:n++:i++}catch(f){}else o=new Date(s),o.getUTCDate()===1?o.getUTCMonth()===0?r++:n++:i++}n+=r,i+=n;var c=e.length-a;return{exactYears:r/c,exactMonths:n/c,exactDays:i/c}}});var YS=ye((Zir,xie)=>{"use strict";xie.exports=function(t){return t}});var V6=ye(Ey=>{"use strict";var Hit=Eo(),jit=K1(),Wit=YS(),Xit=fs().BADNUM,Kq=1e-9;Ey.findBin=function(e,t,r){if(Hit(t.start))return r?Math.ceil((e-t.start)/t.size-Kq)-1:Math.floor((e-t.start)/t.size+Kq);var n=0,i=t.length,a=0,o=i>1?(t[i-1]-t[0])/(i-1):1,s,l;for(o>=0?l=r?Zit:Yit:l=r?Jit:Kit,e+=o*Kq*(r?-1:1)*(o>=0?1:-1);n<i&&a++<100;)s=Math.floor((n+i)/2),l(t[s],e)?n=s+1:i=s;return a>90&&jit.log("Long binary search..."),n-1};function Zit(e,t){return e<t}function Yit(e,t){return e<=t}function Kit(e,t){return e>t}function Jit(e,t){return e>=t}Ey.sorterAsc=function(e,t){return e-t};Ey.sorterDes=function(e,t){return t-e};Ey.distinctVals=function(e){var t=e.slice();t.sort(Ey.sorterAsc);var r;for(r=t.length-1;r>-1&&t[r]===Xit;r--);for(var n=t[r]-t[0]||1,i=n/(r||1)/1e4,a=[],o,s=0;s<=r;s++){var l=t[s],u=l-o;o===void 0?(a.push(l),o=l):u>i&&(n=Math.min(n,u),a.push(l),o=l)}return{vals:a,minDiff:n}};Ey.roundUp=function(e,t,r){for(var n=0,i=t.length-1,a,o=0,s=r?0:1,l=r?1:0,u=r?Math.ceil:Math.floor;n<i&&o++<100;)a=u((n+i)/2),t[a]<=e?n=a+s:i=a-l;return t[n]};Ey.sort=function(e,t){for(var r=0,n=0,i=1;i<e.length;i++){var a=t(e[i],e[i-1]);if(a<0?r=1:a>0&&(n=1),r&&n)return e.sort(t)}return n?e:e.reverse()};Ey.findIndexOfMin=function(e,t){t=t||Wit;for(var r=1/0,n,i=0;i<e.length;i++){var a=t(e[i]);a<r&&(r=a,n=i)}return n}});var t_=ye((Kir,bie)=>{"use strict";bie.exports=function(t){return Object.keys(t).sort()}});var wie=ye(dh=>{"use strict";var KS=Eo(),$it=Yd().isArrayOrTypedArray;dh.aggNums=function(e,t,r,n){var i,a;if((!n||n>r.length)&&(n=r.length),KS(t)||(t=!1),$it(r[0])){for(a=new Array(n),i=0;i<n;i++)a[i]=dh.aggNums(e,t,r[i]);r=a}for(i=0;i<n;i++)KS(t)?KS(r[i])&&(t=e(+t,+r[i])):t=r[i];return t};dh.len=function(e){return dh.aggNums(function(t){return t+1},0,e)};dh.mean=function(e,t){return t||(t=dh.len(e)),dh.aggNums(function(r,n){return r+n},0,e)/t};dh.geometricMean=function(e,t){return t||(t=dh.len(e)),Math.pow(dh.aggNums(function(r,n){return r*n},1,e),1/t)};dh.midRange=function(e){if(!(e===void 0||e.length===0))return(dh.aggNums(Math.max,null,e)+dh.aggNums(Math.min,null,e))/2};dh.variance=function(e,t,r){return t||(t=dh.len(e)),KS(r)||(r=dh.mean(e,t)),dh.aggNums(function(n,i){return n+Math.pow(i-r,2)},0,e)/t};dh.stdev=function(e,t,r){return Math.sqrt(dh.variance(e,t,r))};dh.median=function(e){var t=e.slice().sort();return dh.interp(t,.5)};dh.interp=function(e,t){if(!KS(t))throw"n should be a finite number";if(t=t*e.length-.5,t<0)return e[0];if(t>e.length-1)return e[e.length-1];var r=t%1;return r*e[Math.ceil(t)]+(1-r)*e[Math.floor(t)]}});var Eie=ye(($ir,Mie)=>{"use strict";var Tie=p3(),Jq=Tie.mod,Qit=Tie.modHalf,JS=Math.PI,r_=2*JS;function ent(e){return e/180*JS}function tnt(e){return e/JS*180}function $q(e){return Math.abs(e[1]-e[0])>r_-1e-14}function Aie(e,t){return Qit(t-e,r_)}function rnt(e,t){return Math.abs(Aie(e,t))}function Sie(e,t){if($q(t))return!0;var r,n;t[0]<t[1]?(r=t[0],n=t[1]):(r=t[1],n=t[0]),r=Jq(r,r_),n=Jq(n,r_),r>n&&(n+=r_);var i=Jq(e,r_),a=i+r_;return i>=r&&i<=n||a>=r&&a<=n}function int(e,t,r,n){if(!Sie(t,n))return!1;var i,a;return r[0]<r[1]?(i=r[0],a=r[1]):(i=r[1],a=r[0]),e>=i&&e<=a}function Qq(e,t,r,n,i,a,o){i=i||0,a=a||0;var s=$q([r,n]),l,u,c,f,h;s?(l=0,u=JS,c=r_):r<n?(l=r,c=n):(l=n,c=r),e<t?(f=e,h=t):(f=t,h=e);function d(p,k){return[p*Math.cos(k)+i,a-p*Math.sin(k)]}var v=Math.abs(c-l)<=JS?0:1;function m(p,k,M){return"A"+[p,p]+" "+[0,v,M]+" "+d(p,k)}var b;return s?f===null?b="M"+d(h,l)+m(h,u,0)+m(h,c,0)+"Z":b="M"+d(f,l)+m(f,u,0)+m(f,c,0)+"ZM"+d(h,l)+m(h,u,1)+m(h,c,1)+"Z":f===null?(b="M"+d(h,l)+m(h,c,0),o&&(b+="L0,0Z")):b="M"+d(f,l)+"L"+d(h,l)+m(h,c,0)+"L"+d(f,c)+m(f,l,1)+"Z",b}function nnt(e,t,r,n,i){return Qq(null,e,t,r,n,i,0)}function ant(e,t,r,n,i){return Qq(null,e,t,r,n,i,1)}function ont(e,t,r,n,i,a){return Qq(e,t,r,n,i,a,1)}Mie.exports={deg2rad:ent,rad2deg:tnt,angleDelta:Aie,angleDist:rnt,isFullCircle:$q,isAngleInsideSector:Sie,isPtInsideSector:int,pathArc:nnt,pathSector:ant,pathAnnulus:ont}});var kie=ye(wb=>{"use strict";wb.isLeftAnchor=function(t){return t.xanchor==="left"||t.xanchor==="auto"&&t.x<=1/3};wb.isCenterAnchor=function(t){return t.xanchor==="center"||t.xanchor==="auto"&&t.x>1/3&&t.x<2/3};wb.isRightAnchor=function(t){return t.xanchor==="right"||t.xanchor==="auto"&&t.x>=2/3};wb.isTopAnchor=function(t){return t.yanchor==="top"||t.yanchor==="auto"&&t.y>=2/3};wb.isMiddleAnchor=function(t){return t.yanchor==="middle"||t.yanchor==="auto"&&t.y>1/3&&t.y<2/3};wb.isBottomAnchor=function(t){return t.yanchor==="bottom"||t.yanchor==="auto"&&t.y<=1/3}});var Pie=ye(Tb=>{"use strict";var eO=p3().mod;Tb.segmentsIntersect=Lie;function Lie(e,t,r,n,i,a,o,s){var l=r-e,u=i-e,c=o-i,f=n-t,h=a-t,d=s-a,v=l*d-c*f;if(v===0)return null;var m=(u*d-c*h)/v,b=(u*f-l*h)/v;return b<0||b>1||m<0||m>1?null:{x:e+l*m,y:t+f*m}}Tb.segmentDistance=function(t,r,n,i,a,o,s,l){if(Lie(t,r,n,i,a,o,s,l))return 0;var u=n-t,c=i-r,f=s-a,h=l-o,d=u*u+c*c,v=f*f+h*h,m=Math.min(G6(u,c,d,a-t,o-r),G6(u,c,d,s-t,l-r),G6(f,h,v,t-a,r-o),G6(f,h,v,n-a,i-o));return Math.sqrt(m)};function G6(e,t,r,n,i){var a=n*e+i*t;if(a<0)return n*n+i*i;if(a>r){var o=n-e,s=i-t;return o*o+s*s}else{var l=n*t-i*e;return l*l/r}}var H6,tO,Cie;Tb.getTextLocation=function(t,r,n,i){if((t!==tO||i!==Cie)&&(H6={},tO=t,Cie=i),H6[n])return H6[n];var a=t.getPointAtLength(eO(n-i/2,r)),o=t.getPointAtLength(eO(n+i/2,r)),s=Math.atan((o.y-a.y)/(o.x-a.x)),l=t.getPointAtLength(eO(n,r)),u=(l.x*4+a.x+o.x)/6,c=(l.y*4+a.y+o.y)/6,f={x:u,y:c,theta:s};return H6[n]=f,f};Tb.clearLocationCache=function(){tO=null};Tb.getVisibleSegment=function(t,r,n){var i=r.left,a=r.right,o=r.top,s=r.bottom,l=0,u=t.getTotalLength(),c=u,f,h;function d(m){var b=t.getPointAtLength(m);m===0?f=b:m===u&&(h=b);var p=b.x<i?i-b.x:b.x>a?b.x-a:0,k=b.y<o?o-b.y:b.y>s?b.y-s:0;return Math.sqrt(p*p+k*k)}for(var v=d(l);v;){if(l+=v+n,l>c)return;v=d(l)}for(v=d(c);v;){if(c-=v+n,l>c)return;v=d(c)}return{min:l,max:c,len:c-l,total:u,isClosed:l===0&&c===u&&Math.abs(f.x-h.x)<.1&&Math.abs(f.y-h.y)<.1}};Tb.findPointOnPath=function(t,r,n,i){i=i||{};for(var a=i.pathLength||t.getTotalLength(),o=i.tolerance||.001,s=i.iterationLimit||30,l=t.getPointAtLength(0)[n]>t.getPointAtLength(a)[n]?-1:1,u=0,c=0,f=a,h,d,v;u<s;){if(h=(c+f)/2,d=t.getPointAtLength(h),v=d[n]-r,Math.abs(v)<o)return d;l*v>0?f=h:c=h,u++}return d}});var j6=ye($S=>{"use strict";var ky={};$S.throttle=function(t,r,n){var i=ky[t],a=Date.now();if(!i){for(var o in ky)ky[o].ts<a-6e4&&delete ky[o];i=ky[t]={ts:0,timer:null}}Iie(i);function s(){n(),i.ts=Date.now(),i.onDone&&(i.onDone(),i.onDone=null)}if(a>i.ts+r){s();return}i.timer=setTimeout(function(){s(),i.timer=null},r)};$S.done=function(e){var t=ky[e];return!t||!t.timer?Promise.resolve():new Promise(function(r){var n=t.onDone;t.onDone=function(){n&&n(),r(),t.onDone=null}})};$S.clear=function(e){if(e)Iie(ky[e]),delete ky[e];else for(var t in ky)$S.clear(t)};function Iie(e){e&&e.timer!==null&&(clearTimeout(e.timer),e.timer=null)}});var Die=ye((rnr,Rie)=>{"use strict";Rie.exports=function(t){t._responsiveChartHandler&&(window.removeEventListener("resize",t._responsiveChartHandler),delete t._responsiveChartHandler)}});var Fie=ye((inr,W6)=>{"use strict";W6.exports=rO;W6.exports.isMobile=rO;W6.exports.default=rO;var snt=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,lnt=/CrOS/,unt=/android|ipad|playbook|silk/i;function rO(e){e||(e={});let t=e.ua;if(!t&&typeof navigator!="undefined"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=snt.test(t)&&!lnt.test(t)||!!e.tablet&&unt.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}});var qie=ye((nnr,zie)=>{"use strict";var cnt=Eo(),fnt=Fie();zie.exports=function(t){var r;if(t&&t.hasOwnProperty("userAgent")?r=t.userAgent:r=hnt(),typeof r!="string")return!0;var n=fnt({ua:{headers:{"user-agent":r}},tablet:!0,featureDetect:!1});if(!n)for(var i=r.split(" "),a=1;a<i.length;a++){var o=i[a];if(o.indexOf("Safari")!==-1)for(var s=a-1;s>-1;s--){var l=i[s];if(l.slice(0,8)==="Version/"){var u=l.slice(8).split(".")[0];if(cnt(u)&&(u=+u),u>=13)return!0}}}return n};function hnt(){var e;return typeof navigator!="undefined"&&(e=navigator.userAgent),e&&e.headers&&typeof e.headers["user-agent"]=="string"&&(e=e.headers["user-agent"]),e}});var Bie=ye((anr,Oie)=>{"use strict";var dnt=qa();Oie.exports=function(t,r,n){var i=t.selectAll("g."+n.replace(/\s/g,".")).data(r,function(o){return o[0].trace.uid});i.exit().remove(),i.enter().append("g").attr("class",n),i.order();var a=t.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each(function(o){o[0][a]=dnt.select(this)}),i}});var Uie=ye((onr,Nie)=>{"use strict";var vnt=Oa();Nie.exports=function(t,r){for(var n=t._context.locale,i=0;i<2;i++){for(var a=t._context.locales,o=0;o<2;o++){var s=(a[n]||{}).dictionary;if(s){var l=s[r];if(l)return l}a=vnt.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return r}});var iO=ye((snr,Vie)=>{"use strict";Vie.exports=function(t){for(var r={},n=[],i=0,a=0;a<t.length;a++){var o=t[a];r[o]!==1&&(r[o]=1,n[i++]=o)}return n}});var Hie=ye((lnr,Gie)=>{"use strict";Gie.exports=function(t){for(var r=mnt(t)?gnt:pnt,n=[],i=0;i<t.length;i++){var a=t[i];r(a)&&n.push(a)}return n};function pnt(e){return e.visible===!0}function gnt(e){var t=e[0].trace;return t.visible===!0&&t._length!==0}function mnt(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}});var Wie=ye((unr,jie)=>{"use strict";jie.exports=function(t,r){if(!r)return t;var n=1/Math.abs(r),i=n>1?(n*t+n*r)/n:t+r,a=String(i).length;if(a>16){var o=String(r).length,s=String(t).length;if(a>=s+o){var l=parseFloat(i).toPrecision(12);l.indexOf("e+")===-1&&(i=+l)}}return i}});var Zie=ye((cnr,Xie)=>{"use strict";var ynt=Eo(),_nt=fs().BADNUM,xnt=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;Xie.exports=function(t){return typeof t=="string"&&(t=t.replace(xnt,"")),ynt(t)?Number(t):_nt}});var Pr=ye((fnr,sne)=>{"use strict";var QS=qa(),bnt=d3().utcFormat,wnt=kq().format,ene=Eo(),tne=fs(),rne=tne.FP_SAFE,Tnt=-rne,Yie=tne.BADNUM,Ai=sne.exports={};Ai.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:t==="0.f"?"~f":/^\d%/.test(t)?"~%":/^\ds/.test(t)?"~s":!/^[~,.0$]/.test(t)&&/[&fps]/.test(t)?"~"+t:t};var Kie={};Ai.warnBadFormat=function(e){var t=String(e);Kie[t]||(Kie[t]=1,Ai.warn('encountered bad format: "'+t+'"'))};Ai.noFormat=function(e){return String(e)};Ai.numberFormat=function(e){var t;try{t=wnt(Ai.adjustFormat(e))}catch(r){return Ai.warnBadFormat(e),Ai.noFormat}return t};Ai.nestedProperty=zS();Ai.keyedContainer=Vee();Ai.relativeAttr=Hee();Ai.isPlainObject=Ay();Ai.toLogRange=M6();Ai.relinkPrivateKeys=Zee();var i_=Yd();Ai.isArrayBuffer=i_.isArrayBuffer;Ai.isTypedArray=i_.isTypedArray;Ai.isArrayOrTypedArray=i_.isArrayOrTypedArray;Ai.isArray1D=i_.isArray1D;Ai.ensureArray=i_.ensureArray;Ai.concat=i_.concat;Ai.maxRowLength=i_.maxRowLength;Ai.minRowLength=i_.minRowLength;var ine=p3();Ai.mod=ine.mod;Ai.modHalf=ine.modHalf;var n_=dte();Ai.valObjectMeta=n_.valObjectMeta;Ai.coerce=n_.coerce;Ai.coerce2=n_.coerce2;Ai.coerceFont=n_.coerceFont;Ai.coercePattern=n_.coercePattern;Ai.coerceHoverinfo=n_.coerceHoverinfo;Ai.coerceSelectionMarkerOpacity=n_.coerceSelectionMarkerOpacity;Ai.validate=n_.validate;var jp=_ie();Ai.dateTime2ms=jp.dateTime2ms;Ai.isDateTime=jp.isDateTime;Ai.ms2DateTime=jp.ms2DateTime;Ai.ms2DateTimeLocal=jp.ms2DateTimeLocal;Ai.cleanDate=jp.cleanDate;Ai.isJSDate=jp.isJSDate;Ai.formatDate=jp.formatDate;Ai.incrementMonth=jp.incrementMonth;Ai.dateTick0=jp.dateTick0;Ai.dfltRange=jp.dfltRange;Ai.findExactDates=jp.findExactDates;Ai.MIN_MS=jp.MIN_MS;Ai.MAX_MS=jp.MAX_MS;var Ab=V6();Ai.findBin=Ab.findBin;Ai.sorterAsc=Ab.sorterAsc;Ai.sorterDes=Ab.sorterDes;Ai.distinctVals=Ab.distinctVals;Ai.roundUp=Ab.roundUp;Ai.sort=Ab.sort;Ai.findIndexOfMin=Ab.findIndexOfMin;Ai.sortObjectKeys=t_();var Cy=wie();Ai.aggNums=Cy.aggNums;Ai.len=Cy.len;Ai.mean=Cy.mean;Ai.geometricMean=Cy.geometricMean;Ai.median=Cy.median;Ai.midRange=Cy.midRange;Ai.variance=Cy.variance;Ai.stdev=Cy.stdev;Ai.interp=Cy.interp;var wg=I6();Ai.init2dArray=wg.init2dArray;Ai.transposeRagged=wg.transposeRagged;Ai.dot=wg.dot;Ai.translationMatrix=wg.translationMatrix;Ai.rotationMatrix=wg.rotationMatrix;Ai.rotationXYMatrix=wg.rotationXYMatrix;Ai.apply3DTransform=wg.apply3DTransform;Ai.apply2DTransform=wg.apply2DTransform;Ai.apply2DTransform2=wg.apply2DTransform2;Ai.convertCssMatrix=wg.convertCssMatrix;Ai.inverseTransformMatrix=wg.inverseTransformMatrix;var gm=Eie();Ai.deg2rad=gm.deg2rad;Ai.rad2deg=gm.rad2deg;Ai.angleDelta=gm.angleDelta;Ai.angleDist=gm.angleDist;Ai.isFullCircle=gm.isFullCircle;Ai.isAngleInsideSector=gm.isAngleInsideSector;Ai.isPtInsideSector=gm.isPtInsideSector;Ai.pathArc=gm.pathArc;Ai.pathSector=gm.pathSector;Ai.pathAnnulus=gm.pathAnnulus;var E3=kie();Ai.isLeftAnchor=E3.isLeftAnchor;Ai.isCenterAnchor=E3.isCenterAnchor;Ai.isRightAnchor=E3.isRightAnchor;Ai.isTopAnchor=E3.isTopAnchor;Ai.isMiddleAnchor=E3.isMiddleAnchor;Ai.isBottomAnchor=E3.isBottomAnchor;var k3=Pie();Ai.segmentsIntersect=k3.segmentsIntersect;Ai.segmentDistance=k3.segmentDistance;Ai.getTextLocation=k3.getTextLocation;Ai.clearLocationCache=k3.clearLocationCache;Ai.getVisibleSegment=k3.getVisibleSegment;Ai.findPointOnPath=k3.findPointOnPath;var Y6=Ao();Ai.extendFlat=Y6.extendFlat;Ai.extendDeep=Y6.extendDeep;Ai.extendDeepAll=Y6.extendDeepAll;Ai.extendDeepNoArrays=Y6.extendDeepNoArrays;var nO=K1();Ai.log=nO.log;Ai.warn=nO.warn;Ai.error=nO.error;var Ant=m3();Ai.counterRegex=Ant.counter;var aO=j6();Ai.throttle=aO.throttle;Ai.throttleDone=aO.done;Ai.clearThrottle=aO.clear;var Tg=jS();Ai.getGraphDiv=Tg.getGraphDiv;Ai.isPlotDiv=Tg.isPlotDiv;Ai.removeElement=Tg.removeElement;Ai.addStyleRule=Tg.addStyleRule;Ai.addRelatedStyleRule=Tg.addRelatedStyleRule;Ai.deleteRelatedStyleRule=Tg.deleteRelatedStyleRule;Ai.setStyleOnHover=Tg.setStyleOnHover;Ai.getFullTransformMatrix=Tg.getFullTransformMatrix;Ai.getElementTransformMatrix=Tg.getElementTransformMatrix;Ai.getElementAndAncestors=Tg.getElementAndAncestors;Ai.equalDomRects=Tg.equalDomRects;Ai.clearResponsive=Die();Ai.preserveDrawingBuffer=qie();Ai.makeTraceGroups=Bie();Ai._=Uie();Ai.notifier=Bq();Ai.filterUnique=iO();Ai.filterVisible=Hie();Ai.pushUnique=Vq();Ai.increment=Wie();Ai.cleanNumber=Zie();Ai.ensureNumber=function(t){return ene(t)?(t=Number(t),t>rne||t<Tnt?Yie:t):Yie};Ai.isIndex=function(e,t){return t!==void 0&&e>=t?!1:ene(e)&&e>=0&&e%1===0};Ai.noop=P6();Ai.identity=YS();Ai.repeat=function(e,t){for(var r=new Array(t),n=0;n<t;n++)r[n]=e;return r};Ai.swapAttrs=function(e,t,r,n){r||(r="x"),n||(n="y");for(var i=0;i<t.length;i++){var a=t[i],o=Ai.nestedProperty(e,a.replace("?",r)),s=Ai.nestedProperty(e,a.replace("?",n)),l=o.get();o.set(s.get()),s.set(l)}};Ai.raiseToTop=function(t){t.parentNode.appendChild(t)};Ai.cancelTransition=function(e){return e.transition().duration(0)};Ai.constrain=function(e,t,r){return t>r?Math.max(r,Math.min(t,e)):Math.max(t,Math.min(r,e))};Ai.bBoxIntersect=function(e,t,r){return r=r||0,e.left<=t.right+r&&t.left<=e.right+r&&e.top<=t.bottom+r&&t.top<=e.bottom+r};Ai.simpleMap=function(e,t,r,n,i){for(var a=e.length,o=new Array(a),s=0;s<a;s++)o[s]=t(e[s],r,n,i);return o};Ai.randstr=function e(t,r,n,i){if(n||(n=16),r===void 0&&(r=24),r<=0)return"0";var a=Math.log(Math.pow(2,r))/Math.log(n),o="",s,l,u;for(s=2;a===1/0;s*=2)a=Math.log(Math.pow(2,r/s))/Math.log(n)*s;var c=a-Math.floor(a);for(s=0;s<Math.floor(a);s++)u=Math.floor(Math.random()*n).toString(n),o=u+o;c&&(l=Math.pow(n,c),u=Math.floor(Math.random()*l).toString(n),o=u+o);var f=parseInt(o,n);return t&&t[o]||f!==1/0&&f>=Math.pow(2,r)?i>10?(Ai.warn("randstr failed uniqueness"),o):e(t,r,n,(i||0)+1):o};Ai.OptionControl=function(e,t){e||(e={}),t||(t="opt");var r={};return r.optionList=[],r._newoption=function(n){n[t]=e,r[n.name]=n,r.optionList.push(n)},r["_"+t]=e,r};Ai.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var r=e.length,n=2*r,i=2*t-1,a=new Array(i),o=new Array(r),s,l,u,c;for(s=0;s<i;s++)a[s]=(1-Math.cos(Math.PI*(s+1)/t))/(2*t);for(s=0;s<r;s++){for(c=0,l=0;l<i;l++)u=s+l+1-t,u<-r?u-=n*Math.round(u/n):u>=n&&(u-=n*Math.floor(u/n)),u<0?u=-1-u:u>=r&&(u=n-1-u),c+=e[u]*a[l];o[s]=c}return o};Ai.syncOrAsync=function(e,t,r){var n,i;function a(){return Ai.syncOrAsync(e,t,r)}for(;e.length;)if(i=e.splice(0,1)[0],n=i(t),n&&n.then)return n.then(a);return r&&r(t)};Ai.stripTrailingSlash=function(e){return e.slice(-1)==="/"?e.slice(0,-1):e};Ai.noneOrAll=function(e,t,r){if(e){var n=!1,i=!0,a,o;for(a=0;a<r.length;a++)o=e[r[a]],o!=null?n=!0:i=!1;if(n&&!i)for(a=0;a<r.length;a++)e[r[a]]=t[r[a]]}};Ai.mergeArray=function(e,t,r,n){var i=typeof n=="function";if(Ai.isArrayOrTypedArray(e))for(var a=Math.min(e.length,t.length),o=0;o<a;o++){var s=e[o];t[o][r]=i?n(s):s}};Ai.mergeArrayCastPositive=function(e,t,r){return Ai.mergeArray(e,t,r,function(n){var i=+n;return isFinite(i)&&i>0?i:0})};Ai.fillArray=function(e,t,r,n){if(n=n||Ai.identity,Ai.isArrayOrTypedArray(e))for(var i=0;i<t.length;i++)t[i][r]=n(e[i])};Ai.castOption=function(e,t,r,n){n=n||Ai.identity;var i=Ai.nestedProperty(e,r).get();return Ai.isArrayOrTypedArray(i)?Array.isArray(t)&&Ai.isArrayOrTypedArray(i[t[0]])?n(i[t[0]][t[1]]):n(i[t]):i};Ai.extractOption=function(e,t,r,n){if(r in e)return e[r];var i=Ai.nestedProperty(t,n).get();if(!Array.isArray(i))return i};function nne(e){var t={};for(var r in e)for(var n=e[r],i=0;i<n.length;i++)t[n[i]]=+r;return t}Ai.tagSelected=function(e,t,r){var n=t.selectedpoints,i=t._indexToPoints,a;i&&(a=nne(i));function o(f){return f!==void 0&&f<e.length}for(var s=0;s<n.length;s++){var l=n[s];if(Ai.isIndex(l)||Ai.isArrayOrTypedArray(l)&&Ai.isIndex(l[0])&&Ai.isIndex(l[1])){var u=a?a[l]:l,c=r?r[u]:u;o(c)&&(e[c].selected=1)}}};Ai.selIndices2selPoints=function(e){var t=e.selectedpoints,r=e._indexToPoints;if(r){for(var n=nne(r),i=[],a=0;a<t.length;a++){var o=t[a];if(Ai.isIndex(o)){var s=n[o];Ai.isIndex(s)&&i.push(s)}}return i}else return t};Ai.getTargetArray=function(e,t){var r=t.target;if(typeof r=="string"&&r){var n=Ai.nestedProperty(e,r).get();return Ai.isArrayOrTypedArray(n)?n:!1}else if(Ai.isArrayOrTypedArray(r))return r;return!1};function ane(e,t,r){var n={};typeof t!="object"&&(t={});var i=r==="pieLike"?-1:3,a=Object.keys(e),o,s,l;for(o=0;o<a.length;o++)s=a[o],l=e[s],!(s.charAt(0)==="_"||typeof l=="function")&&(s==="module"?n[s]=l:Array.isArray(l)?s==="colorscale"||i===-1?n[s]=l.slice():n[s]=l.slice(0,i):Ai.isTypedArray(l)?i===-1?n[s]=l.subarray():n[s]=l.subarray(0,i):l&&typeof l=="object"?n[s]=ane(e[s],t[s],r):n[s]=l);for(a=Object.keys(t),o=0;o<a.length;o++)s=a[o],l=t[s],(typeof l!="object"||!(s in n)||typeof n[s]!="object")&&(n[s]=l);return n}Ai.minExtend=ane;Ai.titleCase=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};Ai.containsAny=function(e,t){for(var r=0;r<t.length;r++)if(e.indexOf(t[r])!==-1)return!0;return!1};var Snt=/Version\/[\d\.]+.*Safari/;Ai.isSafari=function(){return Snt.test(window.navigator.userAgent)};var Mnt=/iPad|iPhone|iPod/;Ai.isIOS=function(){return Mnt.test(window.navigator.userAgent)};var Ent=/Macintosh.+AppleWebKit.+Gecko\)$/;Ai.isMacWKWebView=()=>Ent.test(window.navigator.userAgent);var knt=/Firefox\/(\d+)\.\d+/;Ai.getFirefoxVersion=function(){var e=knt.exec(window.navigator.userAgent);if(e&&e.length===2){var t=parseInt(e[1]);if(!isNaN(t))return t}return null};Ai.isD3Selection=function(e){return e instanceof QS.selection};Ai.ensureSingle=function(e,t,r,n){var i=e.select(t+(r?"."+r:""));if(i.size())return i;var a=e.append(t);return r&&a.classed(r,!0),n&&a.call(n),a};Ai.ensureSingleById=function(e,t,r,n){var i=e.select(t+"#"+r);if(i.size())return i;var a=e.append(t).attr("id",r);return n&&a.call(n),a};Ai.objectFromPath=function(e,t){for(var r=e.split("."),n,i=n={},a=0;a<r.length;a++){var o=r[a],s=null,l=r[a].match(/(.*)\[([0-9]+)\]/);l?(o=l[1],s=l[2],n=n[o]=[],a===r.length-1?n[s]=t:n[s]={},n=n[s]):(a===r.length-1?n[o]=t:n[o]={},n=n[o])}return i};var Cnt=/^([^\[\.]+)\.(.+)?/,Lnt=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function X6(e){return e.slice(0,2)==="__"}Ai.expandObjectPaths=function(e){var t,r,n,i,a,o,s;if(typeof e=="object"&&!Array.isArray(e)){for(r in e)if(e.hasOwnProperty(r))if(t=r.match(Cnt)){if(i=e[r],n=t[1],X6(n))continue;delete e[r],e[n]=Ai.extendDeepNoArrays(e[n]||{},Ai.objectFromPath(r,Ai.expandObjectPaths(i))[n])}else if(t=r.match(Lnt)){if(i=e[r],n=t[1],X6(n))continue;if(a=parseInt(t[2]),delete e[r],e[n]=e[n]||[],t[3]===".")s=t[4],o=e[n][a]=e[n][a]||{},Ai.extendDeepNoArrays(o,Ai.objectFromPath(s,Ai.expandObjectPaths(i)));else{if(X6(n))continue;e[n][a]=Ai.expandObjectPaths(i)}}else{if(X6(r))continue;e[r]=Ai.expandObjectPaths(e[r])}}return e};Ai.numSeparate=function(e,t,r){if(r||(r=!1),typeof t!="string"||t.length===0)throw new Error("Separator string required for formatting!");typeof e=="number"&&(e=String(e));var n=/(\d+)(\d{3})/,i=t.charAt(0),a=t.charAt(1),o=e.split("."),s=o[0],l=o.length>1?i+o[1]:"";if(a&&(o.length>1||s.length>4||r))for(;n.test(s);)s=s.replace(n,"$1"+a+"$2");return s+l};Ai.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var one=/^\w*$/;Ai.templateString=function(e,t){var r={};return e.replace(Ai.TEMPLATE_STRING_REGEX,function(n,i){var a;return one.test(i)?a=t[i]:(r[i]=r[i]||Ai.nestedProperty(t,i).get,a=r[i](!0)),a!==void 0?a:""})};var Pnt={max:10,count:0,name:"hovertemplate"};Ai.hovertemplateString=e=>oO(j1(_g({},e),{opts:Pnt}));var Int={max:10,count:0,name:"texttemplate"};Ai.texttemplateString=e=>oO(j1(_g({},e),{opts:Int}));var Rnt=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function Dnt(e){var t=e.match(Rnt);return t?{key:t[1],op:t[2],number:Number(t[3])}:{key:e,op:null,number:null}}var Fnt={max:10,count:0,name:"texttemplate",parseMultDiv:!0};Ai.texttemplateStringForShapes=e=>oO(j1(_g({},e),{opts:Fnt}));var Jie=/^[:|\|]/;function oO({data:e=[],locale:t,fallback:r,labels:n={},opts:i,template:a}){return a.replace(Ai.TEMPLATE_STRING_REGEX,(o,s,l)=>{let u=["xother","yother"].includes(s),c=["_xother","_yother"].includes(s),f=["_xother_","_yother_"].includes(s),h=["xother_","yother_"].includes(s),d=u||c||h||f;(c||f)&&(s=s.substring(1)),(h||f)&&(s=s.substring(0,s.length-1));let v=null,m=null;if(i.parseMultDiv){var b=Dnt(s);s=b.key,v=b.op,m=b.number}let p;if(d){if(n[s]===void 0)return"";p=n[s]}else for(let L of e)if(L){if(L.hasOwnProperty(s)){p=L[s];break}if(one.test(s)||(p=Ai.nestedProperty(L,s).get(!0)),p!==void 0)break}if(p===void 0){let{count:L,max:x,name:C}=i,S=r===!1?o:r;return L<x&&Ai.warn([`Variable '${s}' in ${C} could not be found!`,"Please verify that the template is correct.",`Using value: '${S}'.`].join(" ")),L===x&&Ai.warn(`Too many '${C}' warnings - additional warnings will be suppressed.`),i.count++,S}if(v==="*"&&(p*=m),v==="/"&&(p/=m),l){var k;if(l[0]===":"&&(k=t?t.numberFormat:Ai.numberFormat,p!==""&&(p=k(l.replace(Jie,""))(p))),l[0]==="|"){k=t?t.timeFormat:bnt;var M=Ai.dateTime2ms(p);p=Ai.formatDate(M,l.replace(Jie,""),!1,k)}}else{var T=s+"Label";n.hasOwnProperty(T)&&(p=n[T])}return d&&(p="("+p+")",(c||f)&&(p=" "+p),(h||f)&&(p=p+" ")),p})}var Z6=48,$ie=57;Ai.subplotSort=function(e,t){for(var r=Math.min(e.length,t.length)+1,n=0,i=0,a=0;a<r;a++){var o=e.charCodeAt(a)||0,s=t.charCodeAt(a)||0,l=o>=Z6&&o<=$ie,u=s>=Z6&&s<=$ie;if(l&&(n=10*n+o-Z6),u&&(i=10*i+s-Z6),!l||!u){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var M3=2e9;Ai.seedPseudoRandom=function(){M3=2e9};Ai.pseudoRandom=function(){var e=M3;return M3=(69069*M3+1)%4294967296,Math.abs(M3-e)<429496729?Ai.pseudoRandom():M3/4294967296};Ai.fillText=function(e,t,r){var n=Array.isArray(r)?function(o){r.push(o)}:function(o){r.text=o},i=Ai.extractOption(e,t,"htx","hovertext");if(Ai.isValidTextValue(i))return n(i);var a=Ai.extractOption(e,t,"tx","text");if(Ai.isValidTextValue(a))return n(a)};Ai.isValidTextValue=function(e){return e||e===0};Ai.formatPercent=function(e,t){t=t||0;for(var r=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",n=0;n<t;n++)r.indexOf(".")!==-1&&(r=r.replace("0%","%"),r=r.replace(".%","%"));return r};Ai.isHidden=function(e){var t=window.getComputedStyle(e).display;return!t||t==="none"};Ai.strTranslate=function(e,t){return e||t?"translate("+e+","+t+")":""};Ai.strRotate=function(e){return e?"rotate("+e+")":""};Ai.strScale=function(e){return e!==1?"scale("+e+")":""};Ai.getTextTransform=function(e){var t=e.noCenter,r=e.textX,n=e.textY,i=e.targetX,a=e.targetY,o=e.anchorX||0,s=e.anchorY||0,l=e.rotate,u=e.scale;return u?u>1&&(u=1):u=0,Ai.strTranslate(i-u*(r+o),a-u*(n+s))+Ai.strScale(u)+(l?"rotate("+l+(t?"":" "+r+" "+n)+")":"")};Ai.setTransormAndDisplay=function(e,t){e.attr("transform",Ai.getTextTransform(t)),e.style("display",t.scale?null:"none")};Ai.ensureUniformFontSize=function(e,t){var r=Ai.extendFlat({},t);return r.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),r};Ai.join2=function(e,t,r){var n=e.length;return n>1?e.slice(0,-1).join(t)+r+e[n-1]:e.join(t)};Ai.bigFont=function(e){return Math.round(1.2*e)};var Qie=Ai.getFirefoxVersion(),znt=Qie!==null&&Qie<86;Ai.getPositionFromD3Event=function(){return znt?[QS.event.layerX,QS.event.layerY]:[QS.event.offsetX,QS.event.offsetY]}});var cne=ye(()=>{"use strict";var qnt=Pr(),lne={"X,X div":'direction:ltr;font-family:"Open Sans",verdana,arial,sans-serif;margin:0;padding:0;border: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 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:focus-within .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-group a":"display:grid;place-content:center;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;border:none;background:rgba(0,0,0,0);","X .modebar-btn svg":"position:relative;","X .modebar-btn:focus-visible":"outline:1px solid #000;outline-offset:1px;border-radius:3px;","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(sO in lne)une=sO.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),qnt.addStyleRule(une,lne[sO]);var une,sO});var lO=ye((pnr,fne)=>{fne.exports=!0});var cO=ye((gnr,hne)=>{"use strict";var Ont=lO(),uO;typeof window.matchMedia=="function"?uO=!window.matchMedia("(hover: none)").matches:uO=Ont;hne.exports=uO});var Sb=ye((mnr,fO)=>{"use strict";var C3=typeof Reflect=="object"?Reflect:null,dne=C3&&typeof C3.apply=="function"?C3.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},K6;C3&&typeof C3.ownKeys=="function"?K6=C3.ownKeys:Object.getOwnPropertySymbols?K6=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:K6=function(t){return Object.getOwnPropertyNames(t)};function Bnt(e){console&&console.warn&&console.warn(e)}var pne=Number.isNaN||function(t){return t!==t};function Jc(){Jc.init.call(this)}fO.exports=Jc;fO.exports.once=Gnt;Jc.EventEmitter=Jc;Jc.prototype._events=void 0;Jc.prototype._eventsCount=0;Jc.prototype._maxListeners=void 0;var vne=10;function J6(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Jc,"defaultMaxListeners",{enumerable:!0,get:function(){return vne},set:function(e){if(typeof e!="number"||e<0||pne(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");vne=e}});Jc.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Jc.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||pne(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function gne(e){return e._maxListeners===void 0?Jc.defaultMaxListeners:e._maxListeners}Jc.prototype.getMaxListeners=function(){return gne(this)};Jc.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[t];if(l===void 0)return!1;if(typeof l=="function")dne(l,this,r);else for(var u=l.length,c=bne(l,u),n=0;n<u;++n)dne(c[n],this,r);return!0};function mne(e,t,r,n){var i,a,o;if(J6(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),o===void 0)o=a[t]=r,++e._eventsCount;else if(typeof o=="function"?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),i=gne(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=o.length,Bnt(s)}return e}Jc.prototype.addListener=function(t,r){return mne(this,t,r,!1)};Jc.prototype.on=Jc.prototype.addListener;Jc.prototype.prependListener=function(t,r){return mne(this,t,r,!0)};function Nnt(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function yne(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Nnt.bind(n);return i.listener=r,n.wrapFn=i,i}Jc.prototype.once=function(t,r){return J6(r),this.on(t,yne(this,t,r)),this};Jc.prototype.prependOnceListener=function(t,r){return J6(r),this.prependListener(t,yne(this,t,r)),this};Jc.prototype.removeListener=function(t,r){var n,i,a,o,s;if(J6(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){s=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():Unt(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,s||r)}return this};Jc.prototype.off=Jc.prototype.removeListener;Jc.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i<a.length;++i)o=a[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function _ne(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?Vnt(i):bne(i,i.length)}Jc.prototype.listeners=function(t){return _ne(this,t,!0)};Jc.prototype.rawListeners=function(t){return _ne(this,t,!1)};Jc.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):xne.call(e,t)};Jc.prototype.listenerCount=xne;function xne(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Jc.prototype.eventNames=function(){return this._eventsCount>0?K6(this._events):[]};function bne(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function Unt(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function Vnt(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function Gnt(e,t){return new Promise(function(r,n){function i(o){e.removeListener(t,a),n(o)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}wne(e,t,a,{once:!0}),t!=="error"&&Hnt(e,i,{once:!0})})}function Hnt(e,t,r){typeof e.on=="function"&&wne(e,"error",t,r)}function wne(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(a){n.once&&e.removeEventListener(t,i),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}});var L3=ye((ynr,Tne)=>{"use strict";var hO=Sb().EventEmitter,jnt={init:function(e){if(e._ev instanceof hO)return e;var t=new hO,r=new hO;return e._ev=t,e._internalEv=r,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=r.on.bind(r),e._internalOnce=r.once.bind(r),e._removeInternalListener=r.removeListener.bind(r),e._removeAllInternalListeners=r.removeAllListeners.bind(r),e.emit=function(n,i){t.emit(n,i),r.emit(n,i)},typeof e.addEventListener=="function"&&e.addEventListener("wheel",()=>{},{passive:!0}),e},triggerHandler:function(e,t,r){var n,i=e._ev;if(!i)return;var a=i._events[t];if(!a)return;function o(l){if(l.listener){if(i.removeListener(t,l.listener),!l.fired)return l.fired=!0,l.listener.apply(i,[r])}else return l.apply(i,[r])}a=Array.isArray(a)?a:[a];var s;for(s=0;s<a.length-1;s++)o(a[s]);return n=o(a[s]),n},purge:function(e){return delete e._ev,delete e.on,delete e.once,delete e.removeListener,delete e.removeAllListeners,delete e.emit,delete e._ev,delete e._internalEv,delete e._internalOn,delete e._internalOnce,delete e._removeInternalListener,delete e._removeAllInternalListeners,e}};Tne.exports=jnt});var Mne=ye((_nr,Sne)=>{"use strict";var Ane=Pr(),Wnt=xb().dfltConfig;function Xnt(e,t){for(var r=[],n,i=0;i<t.length;i++)n=t[i],n===e?r[i]=n:typeof n=="object"?r[i]=Array.isArray(n)?Ane.extendDeep([],n):Ane.extendDeepAll({},n):r[i]=n;return r}var Ly={};Ly.add=function(e,t,r,n,i){var a,o;if(e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},o=e.undoQueue.index,e.autoplay){e.undoQueue.inSequence||(e.autoplay=!1);return}!e.undoQueue.sequence||e.undoQueue.beginSequence?(a={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(o,e.undoQueue.queue.length-o,a),e.undoQueue.index+=1):a=e.undoQueue.queue[o-1],e.undoQueue.beginSequence=!1,a&&(a.undo.calls.unshift(t),a.undo.args.unshift(r),a.redo.calls.push(n),a.redo.args.push(i)),e.undoQueue.queue.length>Wnt.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)};Ly.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0};Ly.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1};Ly.undo=function(t){var r,n;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index<=0)){for(t.undoQueue.index--,r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n<r.undo.calls.length;n++)Ly.plotDo(t,r.undo.calls[n],r.undo.args[n]);t.undoQueue.inSequence=!1,t.autoplay=!1}};Ly.redo=function(t){var r,n;if(!(t.undoQueue===void 0||isNaN(t.undoQueue.index)||t.undoQueue.index>=t.undoQueue.queue.length)){for(r=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,n=0;n<r.redo.calls.length;n++)Ly.plotDo(t,r.redo.calls[n],r.redo.args[n]);t.undoQueue.inSequence=!1,t.autoplay=!1,t.undoQueue.index++}};Ly.plotDo=function(e,t,r){e.autoplay=!0,r=Xnt(e,r),t.apply(null,r)};Sne.exports=Ly});var dO=ye((xnr,Ene)=>{"use strict";Ene.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}});var R3=ye(ed=>{"use strict";var x0=Oa(),eM=Pr(),Q6=Gl(),vO=b3(),Znt=dO(),Ynt=WS(),Knt=xb().configAttributes,kne=mc(),Ag=eM.extendDeepAll,P3=eM.isPlainObject,Jnt=eM.isArrayOrTypedArray,eL=eM.nestedProperty,$nt=eM.valObjectMeta,pO="_isSubplotObj",tL="_isLinkedToArray",Qnt="_arrayAttrRegexps",Lne="_deprecated",gO=[pO,tL,Qnt,Lne];ed.IS_SUBPLOT_OBJ=pO;ed.IS_LINKED_TO_ARRAY=tL;ed.DEPRECATED=Lne;ed.UNDERSCORE_ATTRS=gO;ed.get=function(){var e={};return x0.allTypes.forEach(function(t){e[t]=tat(t)}),{defs:{valObjects:$nt,metaKeys:gO.concat(["description","role","editType","impliedEdits"]),editType:{traces:kne.traces,layout:kne.layout},impliedEdits:{}},traces:e,layout:rat(),frames:iat(),animation:I3(Ynt),config:I3(Knt)}};ed.crawl=function(e,t,r,n){var i=r||0;n=n||"",Object.keys(e).forEach(function(a){var o=e[a];if(gO.indexOf(a)===-1){var s=(n?n+".":"")+a;t(o,a,e,i,s),!ed.isValObject(o)&&P3(o)&&a!=="impliedEdits"&&ed.crawl(o,t,i+1,s)}})};ed.isValObject=function(e){return e&&e.valType!==void 0};ed.findArrayAttributes=function(e){var t=[],r=[],n=[],i,a;function o(l,u,c,f){r=r.slice(0,f).concat([u]),n=n.slice(0,f).concat([l&&l._isLinkedToArray]);var h=l&&(l.valType==="data_array"||l.arrayOk===!0)&&!(r[f-1]==="colorbar"&&(u==="ticktext"||u==="tickvals"));h&&s(i,0,"")}function s(l,u,c){var f=l[r[u]],h=c+r[u];if(u===r.length-1)Jnt(f)&&t.push(a+h);else if(n[u]){if(Array.isArray(f))for(var d=0;d<f.length;d++)P3(f[d])&&s(f[d],u+1,h+"["+d+"].")}else P3(f)&&s(f,u+1,h+".")}return i=e,a="",ed.crawl(Q6,o),e._module&&e._module.attributes&&ed.crawl(e._module.attributes,o),t};ed.getTraceValObject=function(e,t){var r=t[0],n=1,i,a,o=e._module;if(o||(o=(x0.modules[e.type||Q6.type.dflt]||{})._module),!o)return!1;if(i=o.attributes,a=i&&i[r],!a){var s=o.basePlotModule;s&&s.attributes&&(a=s.attributes[r])}return a||(a=Q6[r]),Pne(a,t,n)};ed.getLayoutValObject=function(e,t){var r=eat(e,t[0]);return Pne(r,t,1)};function eat(e,t){var r,n,i,a,o=e._basePlotModules;if(o){var s;for(r=0;r<o.length;r++){if(i=o[r],i.attrRegex&&i.attrRegex.test(t)){if(i.layoutAttrOverrides)return i.layoutAttrOverrides;!s&&i.layoutAttributes&&(s=i.layoutAttributes)}var l=i.baseLayoutAttrOverrides;if(l&&t in l)return l[t]}if(s)return s}var u=e._modules;if(u){for(r=0;r<u.length;r++)if(a=u[r].layoutAttributes,a&&t in a)return a[t]}for(n in x0.componentsRegistry){if(i=x0.componentsRegistry[n],i.name==="colorscale"&&t.indexOf("coloraxis")===0)return i.layoutAttributes[t];if(!i.schema&&t===i.name)return i.layoutAttributes}return t in vO?vO[t]:!1}function Pne(e,t,r){if(!e)return!1;if(e._isLinkedToArray){if($6(t[r]))r++;else if(r<t.length)return!1}for(;r<t.length;r++){var n=e[t[r]];if(P3(n))e=n;else break;if(r===t.length-1)break;if(e._isLinkedToArray){if(r++,!$6(t[r]))return!1}else if(e.valType==="info_array"){r++;var i=t[r];if(!$6(i))return!1;var a=e.items;if(Array.isArray(a)){if(i>=a.length)return!1;if(e.dimensions===2){if(r++,t.length===r)return e;var o=t[r];if(!$6(o))return!1;e=a[i][o]}else e=a[i]}else e=a}}return e}function $6(e){return e===Math.round(e)&&e>=0}function tat(e){var t,r;t=x0.modules[e]._module,r=t.basePlotModule;var n={};n.type=null;var i=Ag({},Q6),a=Ag({},t.attributes);ed.crawl(a,function(l,u,c,f,h){eL(i,h).set(void 0),l===void 0&&eL(a,h).set(void 0)}),Ag(n,i),x0.traceIs(e,"noOpacity")&&delete n.opacity,x0.traceIs(e,"showLegend")||(delete n.showlegend,delete n.legendgroup),x0.traceIs(e,"noHover")&&(delete n.hoverinfo,delete n.hoverlabel),t.selectPoints||delete n.selectedpoints,Ag(n,a),r.attributes&&Ag(n,r.attributes),n.type=e;var o={meta:t.meta||{},categories:t.categories||{},animatable:!!t.animatable,type:e,attributes:I3(n)};if(t.layoutAttributes){var s={};Ag(s,t.layoutAttributes),o.layoutAttributes=I3(s)}return t.animatable||ed.crawl(o,function(l){ed.isValObject(l)&&"anim"in l&&delete l.anim}),o}function rat(){var e={},t,r;Ag(e,vO);for(t in x0.subplotsRegistry)if(r=x0.subplotsRegistry[t],!!r.layoutAttributes)if(Array.isArray(r.attr))for(var n=0;n<r.attr.length;n++)Cne(e,r,r.attr[n]);else{var i=r.attr==="subplot"?r.name:r.attr;Cne(e,r,i)}for(t in x0.componentsRegistry){r=x0.componentsRegistry[t];var a=r.schema;if(a&&(a.subplots||a.layout)){var o=a.subplots;if(o&&o.xaxis&&!o.yaxis)for(var s in o.xaxis)delete e.yaxis[s];delete e.xaxis.shift,delete e.xaxis.autoshift}else r.name==="colorscale"?Ag(e,r.layoutAttributes):r.layoutAttributes&&sat(e,r.layoutAttributes,r.name)}return{layoutAttributes:I3(e)}}function iat(){var e={frames:Ag({},Znt)};return I3(e),e.frames}function I3(e){return nat(e),aat(e),oat(e),e}function nat(e){function t(n){return{valType:"string",editType:"none"}}function r(n,i,a){ed.isValObject(n)?(n.arrayOk===!0||n.valType==="data_array")&&(a[i+"src"]=t(i)):P3(n)&&(n.role="object")}ed.crawl(e,r)}function aat(e){function t(r,n,i){if(r){var a=r[tL];a&&(delete r[tL],i[n]={items:{}},i[n].items[a]=r,i[n].role="object")}}ed.crawl(e,t)}function oat(e){function t(r){for(var n in r)if(P3(r[n]))t(r[n]);else if(Array.isArray(r[n]))for(var i=0;i<r[n].length;i++)t(r[n][i]);else r[n]instanceof RegExp&&(r[n]=r[n].toString())}t(e)}function Cne(e,t,r){var n=eL(e,r),i=Ag({},t.layoutAttributes);i[pO]=!0,n.set(i)}function sat(e,t,r){var n=eL(e,r);n.set(Ag(n.get()||{},t))}});var vl=ye(Mb=>{"use strict";var D3=Pr(),lat=Gl(),a_="templateitemname",mO={name:{valType:"string",editType:"none"}};mO[a_]={valType:"string",editType:"calc"};Mb.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=mO.name,t[a_]=mO[a_],t};Mb.traceTemplater=function(e){var t={},r,n;for(r in e)n=e[r],Array.isArray(n)&&n.length&&(t[r]=0);function i(a){r=D3.coerce(a,{},lat,"type");var o={type:r,_template:null};if(r in t){n=e[r];var s=t[r]%n.length;t[r]++,o._template=n[s]}return o}return{newTrace:i}};Mb.newContainer=function(e,t,r){var n=e._template,i=n&&(n[t]||r&&n[r]);D3.isPlainObject(i)||(i=null);var a=e[t]={_template:i};return a};Mb.arrayTemplater=function(e,t,r){var n=e._template,i=n&&n[Rne(t)],a=n&&n[t];(!Array.isArray(a)||!a.length)&&(a=[]);var o={};function s(u){var c={name:u.name,_input:u},f=c[a_]=u[a_];if(!Ine(f))return c._template=i,c;for(var h=0;h<a.length;h++){var d=a[h];if(d.name===f)return o[f]=1,c._template=d,c}return c[r]=u[r]||!1,c._template=!1,c}function l(){for(var u=[],c=0;c<a.length;c++){var f=a[c],h=f.name;if(Ine(h)&&!o[h]){var d={_template:f,name:h,_input:{_templateitemname:h}};d[a_]=f[a_],u.push(d),o[h]=1}}return u}return{newItem:s,defaultItems:l}};function Ine(e){return e&&typeof e=="string"}function Rne(e){var t=e.length-1;return e.charAt(t)!=="s"&&D3.warn("bad argument to arrayDefaultKey: "+e),e.slice(0,-1)+"defaults"}Mb.arrayDefaultKey=Rne;Mb.arrayEditor=function(e,t,r){var n=(D3.nestedProperty(e,t).get()||[]).length,i=r._index,a=i>=n&&(r._input||{})._templateitemname;a&&(i=n);var o=t+"["+i+"]",s;function l(){s={},a&&(s[o]={},s[o][a_]=a)}l();function u(d,v){s[d]=v}function c(d,v){a?D3.nestedProperty(s[o],d).set(v):s[o+"."+d]=v}function f(){var d=s;return l(),d}function h(d,v){d&&c(d,v);var m=f();for(var b in m)D3.nestedProperty(e,b).set(m[b])}return{modifyBase:u,modifyItem:c,getUpdateObj:f,applyUpdate:h}}});var Rh=ye((Tnr,Dne)=>{"use strict";var tM=m3().counter;Dne.exports={idRegex:{x:tM("x","( domain)?"),y:tM("y","( domain)?")},attrRegex:tM("[xy]axis"),xAxisMatch:tM("xaxis"),yAxisMatch:tM("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINZOOM:20,DRAGGERSIZE:20,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"},zindexSeparator:"z"}});var df=ye(Sp=>{"use strict";var uat=Oa(),yO=Rh();Sp.id2name=function(t){if(!(typeof t!="string"||!t.match(yO.AX_ID_PATTERN))){var r=t.split(" ")[0].slice(1);return r==="1"&&(r=""),t.charAt(0)+"axis"+r}};Sp.name2id=function(t){if(t.match(yO.AX_NAME_PATTERN)){var r=t.slice(5);return r==="1"&&(r=""),t.charAt(0)+r}};Sp.cleanId=function(t,r,n){var i=/( domain)$/.test(t);if(!(typeof t!="string"||!t.match(yO.AX_ID_PATTERN))&&!(r&&t.charAt(0)!==r)&&!(i&&!n)){var a=t.split(" ")[0].slice(1).replace(/^0+/,"");return a==="1"&&(a=""),t.charAt(0)+a+(i&&n?" domain":"")}};Sp.list=function(e,t,r){var n=e._fullLayout;if(!n)return[];var i=Sp.listIds(e,t),a=new Array(i.length),o;for(o=0;o<i.length;o++){var s=i[o];a[o]=n[s.charAt(0)+"axis"+s.slice(1)]}if(!r){var l=n._subplots.gl3d||[];for(o=0;o<l.length;o++){var u=n[l[o]];t?a.push(u[t+"axis"]):a.push(u.xaxis,u.yaxis,u.zaxis)}}return a};Sp.listIds=function(e,t){var r=e._fullLayout;if(!r)return[];var n=r._subplots;return t?n[t+"axis"]:n.xaxis.concat(n.yaxis)};Sp.getFromId=function(e,t,r){var n=e._fullLayout;return t=t===void 0||typeof t!="string"?t:t.replace(" domain",""),r==="x"?t=t.replace(/y[0-9]*/,""):r==="y"&&(t=t.replace(/x[0-9]*/,"")),n[Sp.id2name(t)]};Sp.getFromTrace=function(e,t,r){var n=e._fullLayout,i=null;if(uat.traceIs(t,"gl3d")){var a=t.scene;a.slice(0,5)==="scene"&&(i=n[a][r+"axis"])}else i=Sp.getFromId(e,t[r+"axis"]||r);return i};Sp.idSort=function(e,t){var r=e.charAt(0),n=t.charAt(0);return r!==n?r>n?1:-1:+(e.slice(1)||1)-+(t.slice(1)||1)};Sp.ref2id=function(e){return/^[xyz]/.test(e)?e.split(" ")[0]:!1};function Fne(e,t){if(t&&t.length){for(var r=0;r<t.length;r++)if(t[r][e])return!0}return!1}Sp.isLinked=function(e,t){return Fne(t,e._axisMatchGroups)||Fne(t,e._axisConstraintGroups)}});var o_=ye((Snr,zne)=>{"use strict";function cat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function fat(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._outlining=!1}zne.exports={clearOutlineControllers:cat,clearOutline:fat}});var rL=ye((Mnr,qne)=>{"use strict";qne.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}});var Id=ye(nL=>{"use strict";var iL=Oa(),Enr=Rh().SUBPLOT_PATTERN;nL.getSubplotCalcData=function(e,t,r){var n=iL.subplotsRegistry[t];if(!n)return[];for(var i=n.attr,a=[],o=0;o<e.length;o++){var s=e[o],l=s[0].trace;l[i]===r&&a.push(s)}return a};nL.getModuleCalcData=function(e,t,r){var n=[],i=[],a;if(typeof t=="string"?a=iL.getModule(t).plot:typeof t=="function"?a=t:a=t.plot,!a)return[n,e];for(var o=r,s=0;s<e.length;s++){var l=e[s],u=l[0].trace,c=u.zorder!==void 0;u.visible!==!0||u._length===0||(u._module&&u._module.plot===a&&(!c||u.zorder===o)?n.push(l):i.push(l))}return[n,i]};nL.getSubplotData=function(t,r,n){if(!iL.subplotsRegistry[r])return[];for(var i=iL.subplotsRegistry[r].attr,a=[],o,s,l,u=0;u<t.length;u++)o=t[u],o[i]===n&&a.push(o);return a}});var Une=ye(Eb=>{"use strict";var hat=Oa(),F3=Pr();Eb.manageCommandObserver=function(e,t,r,n){var i={},a=!0;t&&t._commandObserver&&(i=t._commandObserver),i.cache||(i.cache={}),i.lookupTable={};var o=Eb.hasSimpleAPICommandBindings(e,r,i.lookupTable);if(t&&t._commandObserver){if(o)return i;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,i}if(o){One(e,o,i.cache),i.check=function(){if(a){var c=One(e,o,i.cache);return c.changed&&n&&i.lookupTable[c.value]!==void 0&&(i.disable(),Promise.resolve(n({value:c.value,type:o.type,prop:o.prop,traces:o.traces,index:i.lookupTable[c.value]})).then(i.enable,i.enable)),c.changed}};for(var s=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],l=0;l<s.length;l++)e._internalOn(s[l],i.check);i.remove=function(){for(var u=0;u<s.length;u++)e._removeInternalListener(s[u],i.check)}}else F3.log("Unable to automatically bind plot updates to API command"),i.lookupTable={},i.remove=function(){};return i.disable=function(){a=!1},i.enable=function(){a=!0},t&&(t._commandObserver=i),i};Eb.hasSimpleAPICommandBindings=function(e,t,r){var n,i=t.length,a;for(n=0;n<i;n++){var o,s=t[n],l=s.method,u=s.args;if(Array.isArray(u)||(u=[]),!l)return!1;var c=Eb.computeAPICommandBindings(e,l,u);if(c.length!==1)return!1;if(!a)a=c[0],Array.isArray(a.traces)&&a.traces.sort();else{if(o=c[0],o.type!==a.type||o.prop!==a.prop)return!1;if(Array.isArray(a.traces))if(Array.isArray(o.traces)){o.traces.sort();for(var f=0;f<a.traces.length;f++)if(a.traces[f]!==o.traces[f])return!1}else return!1;else if(o.prop!==a.prop)return!1}o=c[0];var h=o.value;if(Array.isArray(h))if(h.length===1)h=h[0];else return!1;r&&(r[h]=n)}return a};function One(e,t,r){var n,i,a,o=!1;if(t.type==="data")n=e._fullData[t.traces!==null?t.traces[0]:0];else if(t.type==="layout")n=e._fullLayout;else return!1;return i=F3.nestedProperty(n,t.prop).get(),a=r[t.type]=r[t.type]||{},a.hasOwnProperty(t.prop)&&a[t.prop]!==i&&(o=!0),a[t.prop]=i,{changed:o,value:i}}Eb.executeAPICommand=function(e,t,r){if(t==="skip")return Promise.resolve();var n=hat.apiMethodRegistry[t],i=[e];Array.isArray(r)||(r=[]);for(var a=0;a<r.length;a++)i.push(r[a]);return n.apply(null,i).catch(function(o){return F3.warn("API call to Plotly."+t+" rejected.",o),Promise.reject(o)})};Eb.computeAPICommandBindings=function(e,t,r){var n;switch(Array.isArray(r)||(r=[]),t){case"restyle":n=Nne(e,r);break;case"relayout":n=Bne(e,r);break;case"update":n=Nne(e,[r[0],r[2]]).concat(Bne(e,[r[1]]));break;case"animate":n=dat(e,r);break;default:n=[]}return n};function dat(e,t){return Array.isArray(t[0])&&t[0].length===1&&["string","number"].indexOf(typeof t[0][0])!==-1?[{type:"layout",prop:"_currentFrame",value:t[0][0].toString()}]:[]}function Bne(e,t){var r=[],n=t[0],i={};if(typeof n=="string")i[n]=t[1];else if(F3.isPlainObject(n))i=n;else return r;return _O(i,function(a,o,s){r.push({type:"layout",prop:a,value:s})},"",0),r}function Nne(e,t){var r,n,i,a,o=[];if(n=t[0],i=t[1],r=t[2],a={},typeof n=="string")a[n]=i;else if(F3.isPlainObject(n))a=n,r===void 0&&(r=i);else return o;return r===void 0&&(r=null),_O(a,function(s,l,u){var c,f;if(Array.isArray(u)){f=u.slice();var h=Math.min(f.length,e.data.length);r&&(h=Math.min(h,r.length)),c=[];for(var d=0;d<h;d++)c[d]=r?r[d]:d}else f=u,c=r?r.slice():null;if(c===null)Array.isArray(f)&&(f=f[0]);else if(Array.isArray(c)){if(!Array.isArray(f)){var v=f;f=[];for(var m=0;m<c.length;m++)f[m]=v}f.length=Math.min(c.length,f.length)}o.push({type:"data",prop:s,traces:c,value:f})},"",0),o}function _O(e,t,r,n){Object.keys(e).forEach(function(i){var a=e[i];if(i[0]!=="_"){var o=r+(n>0?".":"")+i;F3.isPlainObject(a)?_O(a,t,o,n+1):t(o,i,a)}})}});var Mc=ye((Lnr,tae)=>{"use strict";var Zne=qa(),vat=d3().timeFormatLocale,pat=kq().formatLocale,rM=Eo(),gat=Cq(),Xl=Oa(),Yne=R3(),mat=vl(),Na=Pr(),Kne=ka(),Vne=fs().BADNUM,Mp=df(),yat=o_().clearOutline,_at=rL(),xO=WS(),xat=dO(),bat=Id().getModuleCalcData,Gne=Na.relinkPrivateKeys,kb=Na._,xa=tae.exports={};Na.extendFlat(xa,Xl);xa.attributes=Gl();xa.attributes.type.values=xa.allTypes;xa.fontAttrs=ec();xa.layoutAttributes=b3();var oL=Une();xa.executeAPICommand=oL.executeAPICommand;xa.computeAPICommandBindings=oL.computeAPICommandBindings;xa.manageCommandObserver=oL.manageCommandObserver;xa.hasSimpleAPICommandBindings=oL.hasSimpleAPICommandBindings;xa.redrawText=function(e){return e=Na.getGraphDiv(e),new Promise(function(t){setTimeout(function(){e._fullLayout&&(Xl.getComponentMethod("annotations","draw")(e),Xl.getComponentMethod("legend","draw")(e),Xl.getComponentMethod("colorbar","draw")(e),t(xa.previousPromises(e)))},300)})};xa.resize=function(e){e=Na.getGraphDiv(e);var t,r=new Promise(function(n,i){(!e||Na.isHidden(e))&&i(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout(function(){if(!e.layout||e.layout.width&&e.layout.height||Na.isHidden(e)){n(e);return}delete e.layout.width,delete e.layout.height;var a=e.changed;e.autoplay=!0,Xl.call("relayout",e,{autosize:!0}).then(function(){e.changed=a,e._resolveResize===n&&(delete e._resolveResize,n(e))})},100)});return t&&t(r),r};xa.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})};xa.addLinks=function(e){if(!(!e._context.showLink&&!e._context.showSources)){var t=e._fullLayout,r=Na.ensureSingle(t._paper,"text","js-plot-link-container",function(l){l.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:Kne.defaultLine,"pointer-events":"all"}).each(function(){var u=Zne.select(this);u.append("tspan").classed("js-link-to-tool",!0),u.append("tspan").classed("js-link-spacer",!0),u.append("tspan").classed("js-sourcelinks",!0)})}),n=r.node(),i={y:t._paper.attr("height")-9};document.body.contains(n)&&n.getComputedTextLength()>=t.width-20?(i["text-anchor"]="start",i.x=5):(i["text-anchor"]="end",i.x=t._paper.attr("width")-7),r.attr(i);var a=r.select(".js-link-to-tool"),o=r.select(".js-link-spacer"),s=r.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&wat(e,a),o.text(a.text()&&s.text()?" - ":"")}};function wat(e,t){t.text("");var r=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" \xBB");if(e._context.sendData)r.on("click",function(){xa.sendDataToCloud(e)});else{var n=window.location.pathname.split("/"),i=window.location.search;r.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+n[2].split(".")[0]+"/"+n[1]+i})}}xa.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var r=Zne.select(e).append("div").attr("id","hiddenform").style("display","none"),n=r.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),i=n.append("input").attr({type:"text",name:"data"});return i.node().value=xa.graphJson(e,!1,"keepdata"),n.node().submit(),r.remove(),e.emit("plotly_afterexport"),!1}};var Tat=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],Aat=["year","month","dayMonth","dayMonthYear"];xa.supplyDefaults=function(e,t){var r=t&&t.skipUpdateCalc,n=e._fullLayout||{};if(n._skipDefaults){delete n._skipDefaults;return}var i=e._fullLayout={},a=e.layout||{},o=e._fullData||[],s=e._fullData=[],l=e.data||[],u=e.calcdata||[],c=e._context||{},f;e._transitionData||xa.createTransitionData(e),i._dfltTitle={plot:kb(e,"Click to enter Plot title"),subtitle:kb(e,"Click to enter Plot subtitle"),x:kb(e,"Click to enter X axis title"),y:kb(e,"Click to enter Y axis title"),colorbar:kb(e,"Click to enter Colorscale title"),annotation:kb(e,"new text")},i._traceWord=kb(e,"trace");var h=Hne(e,Tat);if(i._mapboxAccessToken=c.mapboxAccessToken,n._initialAutoSizeIsDone){var d=n.width,v=n.height;xa.supplyLayoutGlobalDefaults(a,i,h),a.width||(i.width=d),a.height||(i.height=v),xa.sanitizeMargins(i)}else{xa.supplyLayoutGlobalDefaults(a,i,h);var m=!a.width||!a.height,b=i.autosize,p=c.autosizable,k=m&&(b||p);k?xa.plotAutoSize(e,a,i):m&&xa.sanitizeMargins(i),!b&&m&&(a.width=i.width,a.height=i.height)}i._d3locale=Eat(h,i.separators),i._extraFormat=Hne(e,Aat),i._initialAutoSizeIsDone=!0,i._dataLength=l.length,i._modules=[],i._visibleModules=[],i._basePlotModules=[];var M=i._subplots=Mat(),T=i._splomAxes={x:{},y:{}},L=i._splomSubplots={};i._splomGridDflt={},i._scatterStackOpts={},i._firstScatter={},i._alignmentOpts={},i._colorAxes={},i._requestRangeslider={},i._traceUids=Sat(o,l),xa.supplyDataDefaults(l,s,a,i);var x=Object.keys(T.x),C=Object.keys(T.y);if(x.length>1&&C.length>1){for(Xl.getComponentMethod("grid","sizeDefaults")(a,i),f=0;f<x.length;f++)Na.pushUnique(M.xaxis,x[f]);for(f=0;f<C.length;f++)Na.pushUnique(M.yaxis,C[f]);for(var S in L)Na.pushUnique(M.cartesian,S)}if(i._has=xa._hasPlotType.bind(i),o.length===s.length)for(f=0;f<s.length;f++)Gne(s[f],o[f]);xa.supplyLayoutModuleDefaults(a,i,s,e._transitionData);var g=i._visibleModules,P=[];for(f=0;f<g.length;f++){var E=g[f].crossTraceDefaults;E&&Na.pushUnique(P,E)}for(f=0;f<P.length;f++)P[f](s,i);i._hasOnlyLargeSploms=i._basePlotModules.length===1&&i._basePlotModules[0].name==="splom"&&x.length>15&&C.length>15&&i.shapes.length===0&&i.images.length===0,xa.linkSubplots(s,i,o,n),xa.cleanPlot(s,i,o,n);var z=!!(n._has&&n._has("cartesian")),q=!!(i._has&&i._has("cartesian")),V=z,G=q;V&&!G?n._bgLayer.remove():G&&!V&&(i._shouldCreateBgLayer=!0),n._zoomlayer&&!e._dragging&&yat({_fullLayout:n}),kat(s,i),Gne(i,n),Xl.getComponentMethod("colorscale","crossTraceDefaults")(s,i),i._preGUI||(i._preGUI={}),i._tracePreGUI||(i._tracePreGUI={});var Z=i._tracePreGUI,j={},N;for(N in Z)j[N]="old";for(f=0;f<s.length;f++)N=s[f]._fullInput.uid,j[N]||(Z[N]={}),j[N]="new";for(N in j)j[N]==="old"&&delete Z[N];Jne(i),Xl.getComponentMethod("rangeslider","makeData")(i),!r&&u.length===s.length&&xa.supplyDefaultsUpdateCalc(u,s)};xa.supplyDefaultsUpdateCalc=function(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=(e[r]||[])[0];if(i&&i.trace){var a=i.trace;if(a._hasCalcTransform){var o=a._arrayAttrs,s,l,u;for(s=0;s<o.length;s++)l=o[s],u=Na.nestedProperty(a,l).get().slice(),Na.nestedProperty(n,l).set(u)}i.trace=n}}};function Sat(e,t){var r=t.length,n=[],i,a;for(i=0;i<e.length;i++){var o=e[i]._fullInput;o!==a&&n.push(o),a=o}var s=n.length,l=new Array(r),u={};function c(d,v){l[v]=d,u[d]=1}function f(d,v){if(d&&typeof d=="string"&&!u[d])return c(d,v),!0}for(i=0;i<r;i++){var h=t[i].uid;typeof h=="number"&&(h=String(h)),!f(h,i)&&(i<s&&f(n[i].uid,i)||c(Na.randstr(u),i))}return l}function Mat(){var e=Xl.collectableSubplotTypes,t={},r,n;if(!e){e=[];var i=Xl.subplotsRegistry;for(var a in i){var o=i[a],s=o.attr;if(s&&(e.push(a),Array.isArray(s)))for(n=0;n<s.length;n++)Na.pushUnique(e,s[n])}}for(r=0;r<e.length;r++)t[e[r]]=[];return t}function Hne(e,t){var r=e._context.locale;r||(r="en-US");var n=!1,i={};function a(f){for(var h=!0,d=0;d<t.length;d++){var v=t[d];i[v]||(f[v]?i[v]=f[v]:h=!1)}h&&(n=!0)}for(var o=0;o<2;o++){for(var s=e._context.locales,l=0;l<2;l++){var u=(s[r]||{}).format;if(u&&(a(u),n))break;s=Xl.localeRegistry}var c=r.split("-")[0];if(n||c===r)break;r=c}return n||a(Xl.localeRegistry.en.format),i}function Eat(e,t){return e.decimal=t.charAt(0),e.thousands=t.charAt(1),{numberFormat:function(r){try{r=pat(e).format(Na.adjustFormat(r))}catch(n){return Na.warnBadFormat(r),Na.noFormat}return r},timeFormat:vat(e).utcFormat}}function kat(e,t){var r,n=[];t.meta&&(r=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var i=0;i<e.length;i++){var a=e[i];a.meta?n[a.index]=a._meta={meta:a.meta}:t.meta&&(a._meta={meta:t.meta}),t.meta&&(a._meta.layout={meta:t.meta})}n.length&&(r||(r=t._meta={}),r.data=n)}xa.createTransitionData=function(e){e._transitionData||(e._transitionData={}),e._transitionData._frames||(e._transitionData._frames=[]),e._transitionData._frameHash||(e._transitionData._frameHash={}),e._transitionData._counter||(e._transitionData._counter=0),e._transitionData._interruptCallbacks||(e._transitionData._interruptCallbacks=[])};xa._hasPlotType=function(e){var t,r=this._basePlotModules||[];for(t=0;t<r.length;t++)if(r[t].name===e)return!0;var n=this._modules||[];for(t=0;t<n.length;t++){var i=n[t].name;if(i===e)return!0;var a=Xl.modules[i];if(a&&a.categories[e])return!0}return!1};xa.cleanPlot=function(e,t,r,n){var i,a,o=n._basePlotModules||[];for(i=0;i<o.length;i++){var s=o[i];s.clean&&s.clean(e,t,r,n)}var l=n._has&&n._has("gl"),u=t._has&&t._has("gl");l&&!u&&n._glcontainer!==void 0&&(n._glcontainer.selectAll(".gl-canvas").remove(),n._glcontainer.selectAll(".no-webgl").remove(),n._glcanvas=null);var c=!!n._infolayer;e:for(i=0;i<r.length;i++){var f=r[i],h=f.uid;for(a=0;a<e.length;a++){var d=e[a];if(h===d.uid)continue e}c&&n._infolayer.select(".cb"+h).remove()}};xa.linkSubplots=function(e,t,r,n){var i,a,o=n._plots||{},s=t._plots={},l=t._subplots,u={_fullData:e,_fullLayout:t},c=l.cartesian||[];for(i=0;i<c.length;i++){var f=c[i],h=o[f],d=Mp.getFromId(u,f,"x"),v=Mp.getFromId(u,f,"y"),m;for(h?m=s[f]=h:(m=s[f]={},m.id=f),d._counterAxes.push(v._id),v._counterAxes.push(d._id),d._subplotsWith.push(f),v._subplotsWith.push(f),m.xaxis=d,m.yaxis=v,m._hasClipOnAxisFalse=!1,a=0;a<e.length;a++){var b=e[a];if(b.xaxis===m.xaxis._id&&b.yaxis===m.yaxis._id&&b.cliponaxis===!1){m._hasClipOnAxisFalse=!0;break}}}var p=Mp.list(u,null,!0),k;for(i=0;i<p.length;i++){k=p[i];var M=null;k.overlaying&&(M=Mp.getFromId(u,k.overlaying),M&&M.overlaying&&(k.overlaying=!1,M=null)),k._mainAxis=M||k,M&&(k.domain=M.domain.slice()),k._anchorAxis=k.anchor==="free"?null:Mp.getFromId(u,k.anchor)}for(i=0;i<p.length;i++)if(k=p[i],k._counterAxes.sort(Mp.idSort),k._subplotsWith.sort(Na.subplotSort),k._mainSubplot=Cat(k,t),k._counterAxes.length&&(k.spikemode&&k.spikemode.indexOf("across")!==-1||k.automargin&&k.mirror&&k.anchor!=="free"||Xl.getComponentMethod("rangeslider","isVisible")(k))){var T=1,L=0;for(a=0;a<k._counterAxes.length;a++){var x=Mp.getFromId(u,k._counterAxes[a]);T=Math.min(T,x.domain[0]),L=Math.max(L,x.domain[1])}T<L&&(k._counterDomainMin=T,k._counterDomainMax=L)}};function Cat(e,t){var r={_fullLayout:t},n=e._id.charAt(0)==="x",i=e._mainAxis._anchorAxis,a="",o="",s="";if(i&&(s=i._mainAxis._id,a=n?e._id+s:s+e._id),!a||!t._plots[a]){a="";for(var l=e._counterAxes,u=0;u<l.length;u++){var c=l[u],f=n?e._id+c:c+e._id;o||(o=f);var h=Mp.getFromId(r,c);if(s&&h.overlaying===s){a=f;break}}}return a||o}xa.clearExpandedTraceDefaultColors=function(e){var t,r,n;function i(o,s,l,u){r[u]=s,r.length=u+1,o.valType==="color"&&o.dflt===void 0&&t.push(r.join("."))}for(r=[],t=e._module._colorAttrs,t||(e._module._colorAttrs=t=[],Yne.crawl(e._module.attributes,i)),n=0;n<t.length;n++){var a=Na.nestedProperty(e,"_input."+t[n]);a.get()||Na.nestedProperty(e,t[n]).set(null)}};xa.supplyDataDefaults=function(e,t,r,n){var i=n._modules,a=n._visibleModules,o=n._basePlotModules,s=0,l=0,u,c,f;n._transformModules=[];function h(k){t.push(k);var M=k._module;M&&(Na.pushUnique(i,M),k.visible===!0&&Na.pushUnique(a,M),Na.pushUnique(o,k._module.basePlotModule),s++,k._input.visible!==!1&&l++)}var d={},v=[],m=(r.template||{}).data||{},b=mat.traceTemplater(m);for(u=0;u<e.length;u++)f=e[u],c=b.newTrace(f),c.uid=n._traceUids[u],xa.supplyTraceDefaults(f,c,l,n,u),c.index=u,c._input=f,c._fullInput=c,h(c),Xl.traceIs(c,"carpetAxis")&&(d[c.carpet]=c),Xl.traceIs(c,"carpetDependent")&&v.push(u);for(u=0;u<v.length;u++)if(c=t[v[u]],!!c.visible){var p=d[c.carpet];if(c._carpet=p,!p||!p.visible){c.visible=!1;continue}c.xaxis=p.xaxis,c.yaxis=p.yaxis}};xa.supplyAnimationDefaults=function(e){e=e||{};var t,r={};function n(i,a){return Na.coerce(e||{},r,xO,i,a)}if(n("mode"),n("direction"),n("fromcurrent"),Array.isArray(e.frame))for(r.frame=[],t=0;t<e.frame.length;t++)r.frame[t]=xa.supplyAnimationFrameDefaults(e.frame[t]||{});else r.frame=xa.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(r.transition=[],t=0;t<e.transition.length;t++)r.transition[t]=xa.supplyAnimationTransitionDefaults(e.transition[t]||{});else r.transition=xa.supplyAnimationTransitionDefaults(e.transition||{});return r};xa.supplyAnimationFrameDefaults=function(e){var t={};function r(n,i){return Na.coerce(e||{},t,xO.frame,n,i)}return r("duration"),r("redraw"),t};xa.supplyAnimationTransitionDefaults=function(e){var t={};function r(n,i){return Na.coerce(e||{},t,xO.transition,n,i)}return r("duration"),r("easing"),t};xa.supplyFrameDefaults=function(e){var t={};function r(n,i){return Na.coerce(e,t,xat,n,i)}return r("group"),r("name"),r("traces"),r("baseframe"),r("data"),r("layout"),t};xa.supplyTraceDefaults=function(e,t,r,n,i){var a=n.colorway||Kne.defaults,o=a[r%a.length],s;function l(M,T){return Na.coerce(e,t,xa.attributes,M,T)}var u=l("visible");l("type"),l("name",n._traceWord+" "+i),l("uirevision",n.uirevision);var c=xa.getModule(t);if(t._module=c,c){var f=c.basePlotModule,h=f.attr,d=f.attributes;if(h&&d){var v=n._subplots,m="";if(Array.isArray(h))for(s=0;s<h.length;s++){var b=h[s],p=Na.coerce(e,t,d,b);v[b]&&Na.pushUnique(v[b],p),m+=p}else m=Na.coerce(e,t,d,h);v[f.name]&&Na.pushUnique(v[f.name],m)}}if(u&&(l("customdata"),l("ids"),l("meta"),Xl.traceIs(t,"showLegend")?(Na.coerce(e,t,c.attributes.showlegend?c.attributes:xa.attributes,"showlegend"),Na.coerce(e,t,c.attributes.legend?c.attributes:xa.attributes,"legend"),l("legendwidth"),l("legendgroup"),l("legendgrouptitle.text"),Na.coerce(e,t,c.attributes.legend?c.attributes:xa.attributes,"legendrank"),t._dfltShowLegend=!0):t._dfltShowLegend=!1,c&&c.supplyDefaults(e,t,o,n),Xl.traceIs(t,"noOpacity")||l("opacity"),Xl.traceIs(t,"notLegendIsolatable")&&(t.visible=!!t.visible),Xl.traceIs(t,"noHover")||(t.hovertemplate||Na.coerceHoverinfo(e,t,n),t.type!=="parcats"&&Xl.getComponentMethod("fx","supplyDefaults")(e,t,o,n)),c&&c.selectPoints)){var k=l("selectedpoints");Na.isTypedArray(k)&&(t.selectedpoints=Array.from(k))}return t};xa.supplyLayoutGlobalDefaults=function(e,t,r){function n(f,h){return Na.coerce(e,t,xa.layoutAttributes,f,h)}var i=e.template;Na.isPlainObject(i)&&(t.template=i,t._template=i.layout,t._dataTemplate=i.data),n("autotypenumbers");var a=Na.coerceFont(n,"font"),o=a.size;Na.coerceFont(n,"title.font",a,{overrideDflt:{size:Math.round(o*1.4)}}),n("title.text",t._dfltTitle.plot),n("title.xref");var s=n("title.yref");n("title.pad.t"),n("title.pad.r"),n("title.pad.b"),n("title.pad.l");var l=n("title.automargin");n("title.x"),n("title.xanchor"),n("title.y"),n("title.yanchor"),n("title.subtitle.text",t._dfltTitle.subtitle),Na.coerceFont(n,"title.subtitle.font",a,{overrideDflt:{size:Math.round(t.title.font.size*.7)}}),l&&(s==="paper"&&(t.title.y!==0&&(t.title.y=1),t.title.yanchor==="auto"&&(t.title.yanchor=t.title.y===0?"top":"bottom")),s==="container"&&(t.title.y==="auto"&&(t.title.y=1),t.title.yanchor==="auto"&&(t.title.yanchor=t.title.y<.5?"bottom":"top")));var u=n("uniformtext.mode");u&&n("uniformtext.minsize"),n("autosize",!(e.width&&e.height)),n("width"),n("height"),n("minreducedwidth"),n("minreducedheight"),n("margin.l"),n("margin.r"),n("margin.t"),n("margin.b"),n("margin.pad"),n("margin.autoexpand"),e.width&&e.height&&xa.sanitizeMargins(t),Xl.getComponentMethod("grid","sizeDefaults")(e,t),n("paper_bgcolor"),n("separators",r.decimal+r.thousands),n("hidesources"),n("colorway"),n("datarevision");var c=n("uirevision");n("editrevision",c),n("selectionrevision",c),Xl.getComponentMethod("modebar","supplyLayoutDefaults")(e,t),Xl.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,t,n),Xl.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(e,t,n),n("meta"),Na.isPlainObject(e.transition)&&(n("transition.duration"),n("transition.easing"),n("transition.ordering")),Xl.getComponentMethod("calendars","handleDefaults")(e,t,"calendar"),Xl.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,t,n),Na.coerce(e,t,_at,"scattermode")};function aL(e){return typeof e=="string"&&e.slice(-2)==="px"&&parseFloat(e)}xa.plotAutoSize=function(t,r,n){var i=t._context||{},a=i.frameMargins,o,s,l=Na.isPlotDiv(t);if(l&&t.emit("plotly_autosize"),i.fillFrame)o=window.innerWidth,s=window.innerHeight,document.body.style.overflow="hidden";else{var u=l?window.getComputedStyle(t):{};if(o=aL(u.width)||aL(u.maxWidth)||n.width,s=aL(u.height)||aL(u.maxHeight)||n.height,rM(a)&&a>0){var c=1-2*a;o=Math.round(c*o),s=Math.round(c*s)}}var f=xa.layoutAttributes.width.min,h=xa.layoutAttributes.height.min;o<f&&(o=f),s<h&&(s=h);var d=!r.width&&Math.abs(n.width-o)>1,v=!r.height&&Math.abs(n.height-s)>1;(v||d)&&(d&&(n.width=o),v&&(n.height=s)),t._initialAutoSize||(t._initialAutoSize={width:o,height:s}),xa.sanitizeMargins(n)};xa.supplyLayoutModuleDefaults=function(e,t,r,n){var i=Xl.componentsRegistry,a=t._basePlotModules,o,s,l,u=Xl.subplotsRegistry.cartesian;for(o in i)l=i[o],l.includeBasePlot&&l.includeBasePlot(e,t);a.length||a.push(u),t._has("cartesian")&&(Xl.getComponentMethod("grid","contentDefaults")(e,t),u.finalizeSubplots(e,t));for(var c in t._subplots)t._subplots[c].sort(Na.subplotSort);for(s=0;s<a.length;s++)l=a[s],l.supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,r);var f=t._modules;for(s=0;s<f.length;s++)l=f[s],l.supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,r);var h=t._transformModules;for(s=0;s<h.length;s++)l=h[s],l.supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,r,n);for(o in i)l=i[o],l.supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,r)};xa.purge=function(e){var t=e._fullLayout||{};t._glcontainer!==void 0&&(t._glcontainer.selectAll(".gl-canvas").remove(),t._glcontainer.remove(),t._glcanvas=null),t._modeBar&&t._modeBar.destroy(),e._transitionData&&(e._transitionData._interruptCallbacks&&(e._transitionData._interruptCallbacks.length=0),e._transitionData._animationRaf&&window.cancelAnimationFrame(e._transitionData._animationRaf)),Na.clearThrottle(),Na.clearResponsive(e),delete e.data,delete e.layout,delete e._fullData,delete e._fullLayout,delete e.calcdata,delete e.empty,delete e.fid,delete e.undoqueue,delete e.undonum,delete e.autoplay,delete e.changed,delete e._promises,delete e._redrawTimer,delete e._hmlumcount,delete e._hmpixcount,delete e._transitionData,delete e._transitioning,delete e._initialAutoSize,delete e._transitioningWithDuration,delete e._dragging,delete e._dragged,delete e._dragdata,delete e._hoverdata,delete e._snapshotInProgress,delete e._editing,delete e._mouseDownTime,delete e._legendMouseDownTime,e.removeAllListeners&&e.removeAllListeners()};xa.style=function(e){var t=e._fullLayout._visibleModules,r=[],n;for(n=0;n<t.length;n++){var i=t[n];i.style&&Na.pushUnique(r,i.style)}for(n=0;n<r.length;n++)r[n](e)};xa.sanitizeMargins=function(e){if(!(!e||!e.margin)){var t=e.width,r=e.height,n=e.margin,i=t-(n.l+n.r),a=r-(n.t+n.b),o;i<0&&(o=(t-1)/(n.l+n.r),n.l=Math.floor(o*n.l),n.r=Math.floor(o*n.r)),a<0&&(o=(r-1)/(n.t+n.b),n.t=Math.floor(o*n.t),n.b=Math.floor(o*n.b))}};xa.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}};xa.allowAutoMargin=function(e,t){e._fullLayout._pushmarginIds[t]=1};function Jne(e){var t=e.margin;if(!e._size){var r=e._size={l:Math.round(t.l),r:Math.round(t.r),t:Math.round(t.t),b:Math.round(t.b),p:Math.round(t.pad)};r.w=Math.round(e.width)-r.l-r.r,r.h=Math.round(e.height)-r.t-r.b}e._pushmargin||(e._pushmargin={}),e._pushmarginIds||(e._pushmarginIds={}),e._reservedMargin||(e._reservedMargin={})}var $ne=2,Qne=2;xa.autoMargin=function(e,t,r){var n=e._fullLayout,i=n.width,a=n.height,o=n.margin,s=n.minreducedwidth,l=n.minreducedheight,u=Na.constrain(i-o.l-o.r,$ne,s),c=Na.constrain(a-o.t-o.b,Qne,l),f=Math.max(0,i-u),h=Math.max(0,a-c),d=n._pushmargin,v=n._pushmarginIds;if(o.autoexpand!==!1){if(!r)delete d[t],delete v[t];else{var m=r.pad;if(m===void 0&&(m=Math.min(12,o.l,o.r,o.t,o.b)),f){var b=(r.l+r.r)/f;b>1&&(r.l/=b,r.r/=b)}if(h){var p=(r.t+r.b)/h;p>1&&(r.t/=p,r.b/=p)}var k=r.xl!==void 0?r.xl:r.x,M=r.xr!==void 0?r.xr:r.x,T=r.yt!==void 0?r.yt:r.y,L=r.yb!==void 0?r.yb:r.y;d[t]={l:{val:k,size:r.l+m},r:{val:M,size:r.r+m},b:{val:L,size:r.b+m},t:{val:T,size:r.t+m}},v[t]=1}if(!n._replotting)return xa.doAutoMargin(e)}};function Lat(e){if("_redrawFromAutoMarginCount"in e._fullLayout)return!1;var t=Mp.list(e,"",!0);for(var r in t)if(t[r].autoshift||t[r].shift)return!0;return!1}xa.doAutoMargin=function(e){var t=e._fullLayout,r=t.width,n=t.height;t._size||(t._size={}),Jne(t);var i=t._size,a=t.margin,o={t:0,b:0,l:0,r:0},s=Na.extendFlat({},i),l=a.l,u=a.r,c=a.t,f=a.b,h=t._pushmargin,d=t._pushmarginIds,v=t.minreducedwidth,m=t.minreducedheight;if(a.autoexpand!==!1){for(var b in h)d[b]||delete h[b];var p=e._fullLayout._reservedMargin;for(var k in p)for(var M in p[k]){var T=p[k][M];o[M]=Math.max(o[M],T)}h.base={l:{val:0,size:l},r:{val:1,size:u},t:{val:1,size:c},b:{val:0,size:f}};for(var L in o){var x=0;for(var C in h)C!=="base"&&rM(h[C][L].size)&&(x=h[C][L].size>x?h[C][L].size:x);var S=Math.max(0,a[L]-x);o[L]=Math.max(0,o[L]-S)}for(var g in h){var P=h[g].l||{},E=h[g].b||{},z=P.val,q=P.size,V=E.val,G=E.size,Z=r-o.r-o.l,j=n-o.t-o.b;for(var N in h){if(rM(q)&&h[N].r){var H=h[N].r.val,ie=h[N].r.size;if(H>z){var ae=(q*H+(ie-Z)*z)/(H-z),_e=(ie*(1-z)+(q-Z)*(1-H))/(H-z);ae+_e>l+u&&(l=ae,u=_e)}}if(rM(G)&&h[N].t){var Ee=h[N].t.val,Ce=h[N].t.size;if(Ee>V){var ge=(G*Ee+(Ce-j)*V)/(Ee-V),re=(Ce*(1-V)+(G-j)*(1-Ee))/(Ee-V);ge+re>f+c&&(f=ge,c=re)}}}}}var Se=Na.constrain(r-a.l-a.r,$ne,v),ke=Na.constrain(n-a.t-a.b,Qne,m),be=Math.max(0,r-Se),Be=Math.max(0,n-ke);if(be){var Le=(l+u)/be;Le>1&&(l/=Le,u/=Le)}if(Be){var me=(f+c)/Be;me>1&&(f/=me,c/=me)}if(i.l=Math.round(l)+o.l,i.r=Math.round(u)+o.r,i.t=Math.round(c)+o.t,i.b=Math.round(f)+o.b,i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!t._replotting&&(xa.didMarginChange(s,i)||Lat(e))){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var Pe=3*(1+Object.keys(d).length);if(t._redrawFromAutoMarginCount<Pe)return Xl.call("_doPlot",e);t._size=s,Na.warn("Too many auto-margin redraws.")}Pat(e)};function Pat(e){var t=Mp.list(e,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(r){for(var n=0;n<t.length;n++){var i=t[n][r];i&&i()}})}var jne=["l","r","t","b","p","w","h"];xa.didMarginChange=function(e,t){for(var r=0;r<jne.length;r++){var n=jne[r],i=e[n],a=t[n];if(!rM(i)||Math.abs(a-i)>1)return!0}return!1};xa.graphJson=function(e,t,r,n,i,a){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&xa.supplyDefaults(e);var o=i?e._fullData:e.data,s=i?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function u(h,d){if(typeof h=="function")return d?"_function_":null;if(Na.isPlainObject(h)){var v={},m;return Object.keys(h).sort().forEach(function(M){if(["_","["].indexOf(M.charAt(0))===-1){if(typeof h[M]=="function"){d&&(v[M]="_function");return}if(r==="keepdata"){if(M.slice(-3)==="src")return}else if(r==="keepstream"){if(m=h[M+"src"],typeof m=="string"&&m.indexOf(":")>0&&!Na.isPlainObject(h.stream))return}else if(r!=="keepall"&&(m=h[M+"src"],typeof m=="string"&&m.indexOf(":")>0))return;v[M]=u(h[M],d)}}),v}var b=Array.isArray(h),p=Na.isTypedArray(h);if((b||p)&&h.dtype&&h.shape){var k=h.bdata;return u({dtype:h.dtype,shape:h.shape,bdata:Na.isArrayBuffer(k)?gat.encode(k):k},d)}return b?h.map(function(M){return u(M,d)}):p?Na.simpleMap(h,Na.identity):Na.isJSDate(h)?Na.ms2DateTimeLocal(+h):h}var c={data:(o||[]).map(function(h){var d=u(h);return t&&delete d.fit,d})};if(!t&&(c.layout=u(s),i)){var f=s._size;c.layout.computed={margin:{b:f.b,l:f.l,r:f.r,t:f.t}}}return l&&(c.frames=u(l)),a&&(c.config=u(e._context,!0)),n==="object"?c:JSON.stringify(c)};xa.modifyFrames=function(e,t){var r,n,i,a=e._transitionData._frames,o=e._transitionData._frameHash;for(r=0;r<t.length;r++)switch(n=t[r],n.type){case"replace":i=n.value;var s=(a[n.index]||{}).name,l=i.name;a[n.index]=o[l]=i,l!==s&&(delete o[s],o[l]=i);break;case"insert":i=n.value,o[i.name]=i,a.splice(n.index,0,i);break;case"delete":i=a[n.index],delete o[i.name],a.splice(n.index,1);break}return Promise.resolve()};xa.computeFrame=function(e,t){var r=e._transitionData._frameHash,n,i,a,o;if(!t)throw new Error("computeFrame must be given a string frame name");var s=r[t.toString()];if(!s)return!1;for(var l=[s],u=[s.name];s.baseframe&&(s=r[s.baseframe.toString()])&&u.indexOf(s.name)===-1;)l.push(s),u.push(s.name);for(var c={};s=l.pop();)if(s.layout&&(c.layout=xa.extendLayout(c.layout,s.layout)),s.data){if(c.data||(c.data=[]),i=s.traces,!i)for(i=[],n=0;n<s.data.length;n++)i[n]=n;for(c.traces||(c.traces=[]),n=0;n<s.data.length;n++)a=i[n],a!=null&&(o=c.traces.indexOf(a),o===-1&&(o=c.data.length,c.traces[o]=a),c.data[o]=xa.extendTrace(c.data[o],s.data[n]))}return c};xa.recomputeFrameHash=function(e){for(var t=e._transitionData._frameHash={},r=e._transitionData._frames,n=0;n<r.length;n++){var i=r[n];i&&i.name&&(t[i.name]=i)}};xa.extendObjectWithContainers=function(e,t,r){var n,i,a,o,s,l,u,c,f=Na.extendDeepNoArrays({},t||{}),h=Na.expandObjectPaths(f),d={};if(r&&r.length)for(a=0;a<r.length;a++)n=Na.nestedProperty(h,r[a]),i=n.get(),i===void 0?Na.nestedProperty(d,r[a]).set(null):(n.set(null),Na.nestedProperty(d,r[a]).set(i));if(e=Na.extendDeepNoArrays(e||{},h),r&&r.length){for(a=0;a<r.length;a++)if(s=Na.nestedProperty(d,r[a]),u=s.get(),!!u){for(l=Na.nestedProperty(e,r[a]),c=l.get(),Array.isArray(c)||(c=[],l.set(c)),o=0;o<u.length;o++){var v=u[o];v===null?c[o]=null:c[o]=xa.extendObjectWithContainers(c[o],v)}l.set(c)}}return e};xa.dataArrayContainers=["transforms","dimensions"];xa.layoutArrayContainers=Xl.layoutArrayContainers;xa.extendTrace=function(e,t){return xa.extendObjectWithContainers(e,t,xa.dataArrayContainers)};xa.extendLayout=function(e,t){return xa.extendObjectWithContainers(e,t,xa.layoutArrayContainers)};xa.transition=function(e,t,r,n,i,a){var o={redraw:i.redraw},s={},l=[];return o.prepareFn=function(){for(var u=Array.isArray(t)?t.length:0,c=n.slice(0,u),f=0;f<c.length;f++){var h=c[f],d=e._fullData[h],v=d._module;if(v){if(v.animatable){var m=v.basePlotModule.name;s[m]||(s[m]=[]),s[m].push(h)}e.data[c[f]]=xa.extendTrace(e.data[c[f]],t[f])}}var b=Na.expandObjectPaths(Na.extendDeepNoArrays({},r)),p=/^[xy]axis[0-9]*$/;for(var k in b)p.test(k)&&delete b[k].range;xa.extendLayout(e.layout,b),delete e.calcdata,xa.supplyDefaults(e),xa.doCalcdata(e);var M=Na.expandObjectPaths(r);if(M){var T=e._fullLayout._plots;for(var L in T){var x=T[L],C=x.xaxis,S=x.yaxis,g=C.range.slice(),P=S.range.slice(),E=null,z=null,q=null,V=null;Array.isArray(M[C._name+".range"])?E=M[C._name+".range"].slice():Array.isArray((M[C._name]||{}).range)&&(E=M[C._name].range.slice()),Array.isArray(M[S._name+".range"])?z=M[S._name+".range"].slice():Array.isArray((M[S._name]||{}).range)&&(z=M[S._name].range.slice()),g&&E&&(C.r2l(g[0])!==C.r2l(E[0])||C.r2l(g[1])!==C.r2l(E[1]))&&(q={xr0:g,xr1:E}),P&&z&&(S.r2l(P[0])!==S.r2l(z[0])||S.r2l(P[1])!==S.r2l(z[1]))&&(V={yr0:P,yr1:z}),(q||V)&&l.push(Na.extendFlat({plotinfo:x},q,V))}}return Promise.resolve()},o.runFn=function(u){var c,f=e._fullLayout._basePlotModules,h=l.length,d;if(r)for(d=0;d<f.length;d++)f[d].transitionAxes&&f[d].transitionAxes(e,l,a,u);h?(c=Na.extendFlat({},a),c.duration=0,delete s.cartesian):c=a;for(var v in s){var m=s[v],b=e._fullData[m[0]]._module;b.basePlotModule.plot(e,m,c,u)}},eae(e,a,o)};xa.transitionFromReact=function(e,t,r,n){var i=e._fullLayout,a=i.transition,o={},s=[];return o.prepareFn=function(){var l=i._plots;o.redraw=!1,t.anim==="some"&&(o.redraw=!0),r.anim==="some"&&(o.redraw=!0);for(var u in l){var c=l[u],f=c.xaxis,h=c.yaxis,d=n[f._name].range.slice(),v=n[h._name].range.slice(),m=f.range.slice(),b=h.range.slice();f.setScale(),h.setScale();var p=null,k=null;(f.r2l(d[0])!==f.r2l(m[0])||f.r2l(d[1])!==f.r2l(m[1]))&&(p={xr0:d,xr1:m}),(h.r2l(v[0])!==h.r2l(b[0])||h.r2l(v[1])!==h.r2l(b[1]))&&(k={yr0:v,yr1:b}),(p||k)&&s.push(Na.extendFlat({plotinfo:c},p,k))}return Promise.resolve()},o.runFn=function(l){for(var u=e._fullData,c=e._fullLayout,f=c._basePlotModules,h,d,v,m=[],b=0;b<u.length;b++)m.push(b);function p(){if(e._fullLayout)for(var M=0;M<f.length;M++)f[M].transitionAxes&&f[M].transitionAxes(e,s,h,l)}function k(){if(e._fullLayout)for(var M=0;M<f.length;M++)f[M].plot(e,v,d,l)}s.length&&t.anim?a.ordering==="traces first"?(h=Na.extendFlat({},a,{duration:0}),v=m,d=a,setTimeout(p,a.duration),k()):(h=a,v=null,d=Na.extendFlat({},a,{duration:0}),setTimeout(k,h.duration),p()):s.length?(h=a,p()):t.anim&&(v=m,d=a,k())},eae(e,a,o)};function eae(e,t,r){var n=!1;function i(f){var h=Promise.resolve();if(!f)return h;for(;f.length;)h=h.then(f.shift());return h}function a(f){if(f)for(;f.length;)f.shift()}function o(){return e.emit("plotly_transitioning",[]),new Promise(function(f){e._transitioning=!0,t.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){n=!0}),r.redraw&&e._transitionData._interruptCallbacks.push(function(){return Xl.call("redraw",e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var h=0,d=0;function v(){return h++,function(){d++,!n&&d===h&&s(f)}}r.runFn(v),setTimeout(v())})}function s(f){if(e._transitionData)return a(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(r.redraw)return Xl.call("redraw",e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(f)}function l(){if(e._transitionData)return e._transitioning=!1,i(e._transitionData._interruptCallbacks)}var u=[xa.previousPromises,l,r.prepareFn,xa.rehover,xa.reselect,o],c=Na.syncOrAsync(u,e);return(!c||!c.then)&&(c=Promise.resolve()),c.then(function(){return e})}xa.doCalcdata=function(e,t){var r=Mp.list(e),n=e._fullData,i=e._fullLayout,a,o,s,l,u=new Array(n.length),c=(e.calcdata||[]).slice();for(e.calcdata=u,i._numBoxes=0,i._numViolins=0,i._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,i._piecolormap={},i._sunburstcolormap={},i._treemapcolormap={},i._iciclecolormap={},i._funnelareacolormap={},s=0;s<n.length;s++)if(Array.isArray(t)&&t.indexOf(s)===-1){u[s]=c[s];continue}for(s=0;s<n.length;s++)a=n[s],a._arrayAttrs=Yne.findArrayAttributes(a),a._extremes={};var f=i._subplots.polar||[];for(s=0;s<f.length;s++)r.push(i[f[s]].radialaxis,i[f[s]].angularaxis);for(var h in i._colorAxes){var d=i[h];d.cauto!==!1&&(delete d.cmin,delete d.cmax)}var v=!1;function m(k){if(a=n[k],o=a._module,a.visible===!0&&a.transforms){if(o&&o.calc){var M=o.calc(e,a);M[0]&&M[0].t&&M[0].t._scene&&delete M[0].t._scene.dirty}for(l=0;l<a.transforms.length;l++){var T=a.transforms[l];o=transformsRegistry[T.type],o&&o.calcTransform&&(a._hasCalcTransform=!0,v=!0,o.calcTransform(e,a,T))}}}function b(k,M){if(a=n[k],o=a._module,!!o.isContainer===M){var T=[];if(a.visible===!0&&a._length!==0){delete a._indexToPoints;var L=a.transforms||[];for(l=L.length-1;l>=0;l--)if(L[l].enabled){a._indexToPoints=L[l]._indexToPoints;break}o&&o.calc&&(T=o.calc(e,a))}(!Array.isArray(T)||!T[0])&&(T=[{x:Vne,y:Vne}]),T[0].t||(T[0].t={}),T[0].trace=a,u[k]=T}}for(Wne(r,n,i),s=0;s<n.length;s++)b(s,!0);for(s=0;s<n.length;s++)m(s);for(v&&Wne(r,n,i),s=0;s<n.length;s++)b(s,!0);for(s=0;s<n.length;s++)b(s,!1);Xne(e);var p=Rat(r,e);if(p.length){for(i._numBoxes=0,i._numViolins=0,s=0;s<p.length;s++)b(p[s],!0);for(s=0;s<p.length;s++)b(p[s],!1);Xne(e)}Xl.getComponentMethod("fx","calc")(e),Xl.getComponentMethod("errorbars","calc")(e)};var Iat=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function Rat(e,t){var r=[],n,i,a,o,s;function l(N,H,ie){var ae=H._id.charAt(0);if(N==="histogram2dcontour"){var _e=H._counterAxes[0],Ee=Mp.getFromId(t,_e),Ce=ae==="x"||_e==="x"&&Ee.type==="category",ge=ae==="y"||_e==="y"&&Ee.type==="category";return function(re,Se){return re===0||Se===0||Ce&&re===ie[Se].length-1||ge&&Se===ie.length-1?-1:(ae==="y"?Se:re)-1}}else return function(re,Se){return ae==="y"?Se:re}}var u={min:function(N){return Na.aggNums(Math.min,null,N)},max:function(N){return Na.aggNums(Math.max,null,N)},sum:function(N){return Na.aggNums(function(H,ie){return H+ie},null,N)},total:function(N){return Na.aggNums(function(H,ie){return H+ie},null,N)},mean:function(N){return Na.mean(N)},"geometric mean":function(N){return Na.geometricMean(N)},median:function(N){return Na.median(N)}};function c(N,H){return N[1]-H[1]}function f(N,H){return H[1]-N[1]}for(n=0;n<e.length;n++){var h=e[n];if(h.type==="category"){var d=h.categoryorder.match(Iat);if(d){var v=d[1],m=d[2],b=h._id.charAt(0),p=b==="x",k=[];for(i=0;i<h._categories.length;i++)k.push([h._categories[i],[]]);for(i=0;i<h._traceIndices.length;i++){var M=h._traceIndices[i],T=t._fullData[M];if(T.visible===!0){var L=T.type;Xl.traceIs(T,"histogram")&&(delete T._xautoBinFinished,delete T._yautoBinFinished);var x=L==="splom",C=L==="scattergl",S=t.calcdata[M];for(a=0;a<S.length;a++){var g=S[a],P,E;if(x){var z=T._axesDim[h._id];if(!p){var q=T._diag[z][0];q&&(h=t._fullLayout[Mp.id2name(q)])}var V=g.trace.dimensions[z].values;for(o=0;o<V.length;o++)for(P=h._categoriesMap[V[o]],s=0;s<g.trace.dimensions.length;s++)if(s!==z){var G=g.trace.dimensions[s];k[P][1].push(G.values[o])}}else if(C){for(o=0;o<g.t.x.length;o++)p?(P=g.t.x[o],E=g.t.y[o]):(P=g.t.y[o],E=g.t.x[o]),k[P][1].push(E);g.t&&g.t._scene&&delete g.t._scene.dirty}else if(g.hasOwnProperty("z")){E=g.z;var Z=l(T.type,h,E);for(o=0;o<E.length;o++)for(s=0;s<E[o].length;s++)P=Z(s,o),P+1&&k[P][1].push(E[o][s])}else for(P=g.p,P===void 0&&(P=g[b]),E=g.s,E===void 0&&(E=g.v),E===void 0&&(E=p?g.y:g.x),Array.isArray(E)||(E===void 0?E=[]:E=[E]),o=0;o<E.length;o++)k[P][1].push(E[o])}}}h._categoriesValue=k;var j=[];for(i=0;i<k.length;i++)j.push([k[i][0],u[v](k[i][1])]);j.sort(m==="descending"?f:c),h._categoriesAggregatedValue=j,h._initialCategories=j.map(function(N){return N[0]}),r=r.concat(h.sortByInitialCategories())}}}return r}function Wne(e,t,r){var n={};function i(l){l.clearCalc(),l.type==="multicategory"&&l.setupMultiCategory(t),n[l._id]=1}Na.simpleMap(e,i);for(var a=r._axisMatchGroups||[],o=0;o<a.length;o++)for(var s in a[o])n[s]||i(r[Mp.id2name(s)])}function Xne(e){var t=e._fullLayout,r=t._visibleModules,n={},i,a,o;for(a=0;a<r.length;a++){var s=r[a],l=s.crossTraceCalc;if(l){var u=s.basePlotModule.name;n[u]?Na.pushUnique(n[u],l):n[u]=[l]}}for(o in n){var c=n[o],f=t._subplots[o];if(Array.isArray(f))for(i=0;i<f.length;i++){var h=f[i],d=o==="cartesian"?t._plots[h]:t[h];for(a=0;a<c.length;a++)c[a](e,d,h)}else for(a=0;a<c.length;a++)c[a](e)}}xa.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()};xa.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()};xa.reselect=function(e){var t=e._fullLayout,r=(e.layout||{}).selections,n=t._previousSelections;t._previousSelections=r;var i=t._reselect||JSON.stringify(r)!==JSON.stringify(n);Xl.getComponentMethod("selections","reselect")(e,i)};xa.generalUpdatePerTraceModule=function(e,t,r,n){var i=t.traceHash,a={},o;for(o=0;o<r.length;o++){var s=r[o],l=s[0].trace;l.visible&&(a[l.type]=a[l.type]||[],a[l.type].push(s))}for(var u in i)if(!a[u]){var c=i[u][0],f=c[0].trace;f.visible=!1,a[u]=[c]}for(var h in a){var d=a[h],v=d[0][0].trace._module;v.plot(e,t,Na.filterVisible(d),n)}t.traceHash=a};xa.plotBasePlot=function(e,t,r,n,i){var a=Xl.getModule(e),o=bat(t.calcdata,a)[0];a.plot(t,o,n,i)};xa.cleanBasePlot=function(e,t,r,n,i){var a=i._has&&i._has(e),o=r._has&&r._has(e);a&&!o&&i["_"+e+"layer"].selectAll("g.trace").remove()}});var Wp=ye(Cb=>{"use strict";Cb.xmlns="http://www.w3.org/2000/xmlns/";Cb.svg="http://www.w3.org/2000/svg";Cb.xlink="http://www.w3.org/1999/xlink";Cb.svgAttrs={xmlns:Cb.svg,"xmlns:xlink":Cb.xlink}});var Dh=ye((Inr,rae)=>{"use strict";rae.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"}}});var Zl=ye(b0=>{"use strict";var Fh=qa(),Py=Pr(),Dat=Py.strTranslate,bO=Wp(),Fat=Dh().LINE_SPACING,zat=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;b0.convertToTspans=function(e,t,r){var n=e.text(),i=!e.attr("data-notex")&&t&&t._context.typesetMath&&typeof MathJax!="undefined"&&n.match(zat),a=Fh.select(e.node().parentNode);if(a.empty())return;var o=e.attr("class")?e.attr("class").split(" ")[0]:"text";o+="-math",a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove(),e.style("display",null).attr({"data-unformatted":n,"data-math":"N"});function s(){a.empty()||(o=e.attr("class")+"-math",a.select("svg."+o).remove()),e.text("").style("white-space","pre");var l=Yat(e.node(),n);l&&e.style("pointer-events","all"),b0.positionText(e),r&&r.call(e)}return i?(t&&t._promises||[]).push(new Promise(function(l){e.style("display","none");var u=parseInt(e.node().style.fontSize,10),c={fontSize:u};Nat(i[2],c,function(f,h,d){a.selectAll("svg."+o).remove(),a.selectAll("g."+o+"-group").remove();var v=f&&f.select("svg");if(!v||!v.node()){s(),l();return}var m=a.append("g").classed(o+"-group",!0).attr({"pointer-events":"none","data-unformatted":n,"data-math":"Y"});m.node().appendChild(v.node()),h&&h.node()&&v.node().insertBefore(h.node().cloneNode(!0),v.node().firstChild);var b=d.width,p=d.height;v.attr({class:o,height:p,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var k=e.node().style.fill||"black",M=v.select("g");M.attr({fill:k,stroke:k});var T=M.node().getBoundingClientRect(),L=T.width,x=T.height;(L>b||x>p)&&(v.style("overflow","hidden"),T=v.node().getBoundingClientRect(),L=T.width,x=T.height);var C=+e.attr("x"),S=+e.attr("y"),g=u||e.node().getBoundingClientRect().height,P=-g/4;if(o[0]==="y")m.attr({transform:"rotate("+[-90,C,S]+")"+Dat(-L/2,P-x/2)});else if(o[0]==="l")S=P-x/2;else if(o[0]==="a"&&o.indexOf("atitle")!==0)C=0,S=P;else{var E=e.attr("text-anchor");C=C-L*(E==="middle"?.5:E==="end"?1:0),S=S+P-x/2}v.attr({x:C,y:S}),r&&r.call(e,m),l(m)})})):s(),e};var qat=/(<|&lt;|&#60;)/g,Oat=/(>|&gt;|&#62;)/g;function Bat(e){return e.replace(qat,"\\lt ").replace(Oat,"\\gt ")}var iae=[["$","$"],["\\(","\\)"]];function Nat(e,t,r){var n=parseInt((MathJax.version||"").split(".")[0]);if(n!==2&&n!==3){Py.warn("No MathJax version:",MathJax.version);return}var i,a,o,s,l=function(){return a=Py.extendDeepAll({},MathJax.Hub.config),o=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:iae},displayAlign:"left"})},u=function(){a=Py.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=iae},c=function(){if(i=MathJax.Hub.config.menuSettings.renderer,i!=="SVG")return MathJax.Hub.setRenderer("SVG")},f=function(){i=MathJax.config.startup.output,i!=="svg"&&(MathJax.config.startup.output="svg")},h=function(){var k="math-output-"+Py.randstr({},64);s=Fh.select("body").append("div").attr({id:k}).style({visibility:"hidden",position:"absolute","font-size":t.fontSize+"px"}).text(Bat(e));var M=s.node();return n===2?MathJax.Hub.Typeset(M):MathJax.typeset([M])},d=function(){var k=s.select(n===2?".MathJax_SVG":".MathJax"),M=!k.empty()&&s.select("svg").node();if(!M)Py.log("There was an error in the tex syntax.",e),r();else{var T=M.getBoundingClientRect(),L;n===2?L=Fh.select("body").select("#MathJax_SVG_glyphs"):L=k.select("defs"),r(k,L,T)}s.remove()},v=function(){if(i!=="SVG")return MathJax.Hub.setRenderer(i)},m=function(){i!=="svg"&&(MathJax.config.startup.output=i)},b=function(){return o!==void 0&&(MathJax.Hub.processSectionDelay=o),MathJax.Hub.Config(a)},p=function(){MathJax.config=a};n===2?MathJax.Hub.Queue(l,c,h,d,v,b):n===3&&(u(),f(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){h(),d(),m(),p()}))}var sae={sup:"font-size:70%",sub:"font-size:70%",s:"text-decoration:line-through",u:"text-decoration:underline",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},Uat={sub:"0.3em",sup:"-0.6em"},Vat={sub:"-0.21em",sup:"0.42em"},nae="\u200B",aae=["http:","https:","mailto:","",void 0,":"],lae=b0.NEWLINES=/(\r\n?|\n)/g,TO=/(<[^<>]*>)/,AO=/<(\/?)([^ >]*)(\s+(.*))?>/i,Gat=/<br(\s+.*)?>/i;b0.BR_TAG_ALL=/<br(\s+.*)?>/gi;var uae=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,cae=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,fae=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,Hat=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function Lb(e,t){if(!e)return null;var r=e.match(t),n=r&&(r[3]||r[4]);return n&&sL(n)}var jat=/(^|;)\s*color:/;b0.plainText=function(e,t){t=t||{};for(var r=t.len!==void 0&&t.len!==-1?t.len:1/0,n=t.allowedTags!==void 0?t.allowedTags:["br"],i="...",a=i.length,o=e.split(TO),s=[],l="",u=0,c=0;c<o.length;c++){var f=o[c],h=f.match(AO),d=h&&h[2].toLowerCase();if(d)n.indexOf(d)!==-1&&(s.push(f),l=d);else{var v=f.length;if(u+v<r)s.push(f),u+=v;else if(u<r){var m=r-u;l&&(l!=="br"||m<=a||v<=a)&&s.pop(),r>a?s.push(f.slice(0,Math.max(0,m-a))+i):s.push(f.slice(0,m));break}l=""}}return s.join("")};var Wat={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},Xat=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function sL(e){return e.replace(Xat,function(t,r){var n;return r.charAt(0)==="#"?n=Zat(r.charAt(1)==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10)):n=Wat[r],n||t})}b0.convertEntities=sL;function Zat(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var r=String.fromCharCode;return e<=65535?r(e):r((e>>10)+55232,e%1024+56320)}}function Yat(e,t){t=t.replace(lae," ");var r=!1,n=[],i,a=-1;function o(){a++;var x=document.createElementNS(bO.svg,"tspan");Fh.select(x).attr({class:"line",dy:a*Fat+"em"}),e.appendChild(x),i=x;var C=n;if(n=[{node:x}],C.length>1)for(var S=1;S<C.length;S++)s(C[S])}function s(x){var C=x.type,S={},g;if(C==="a"){g="a";var P=x.target,E=x.href,z=x.popup;E&&(S={"xlink:xlink:show":P==="_blank"||P.charAt(0)!=="_"?"new":"replace",target:P,"xlink:xlink:href":E},z&&(S.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+z+'");return false;'))}else g="tspan";x.style&&(S.style=x.style);var q=document.createElementNS(bO.svg,g);if(C==="sup"||C==="sub"){l(i,nae),i.appendChild(q);var V=document.createElementNS(bO.svg,"tspan");l(V,nae),Fh.select(V).attr("dy",Vat[C]),S.dy=Uat[C],i.appendChild(q),i.appendChild(V)}else i.appendChild(q);Fh.select(q).attr(S),i=x.node=q,n.push(x)}function l(x,C){x.appendChild(document.createTextNode(C))}function u(x){if(n.length===1){Py.log("Ignoring unexpected end tag </"+x+">.",t);return}var C=n.pop();x!==C.type&&Py.log("Start tag <"+C.type+"> doesnt match end tag <"+x+">. Pretending it did match.",t),i=n[n.length-1].node}var c=Gat.test(t);c?o():(i=e,n=[{node:e}]);for(var f=t.split(TO),h=0;h<f.length;h++){var d=f[h],v=d.match(AO),m=v&&v[2].toLowerCase(),b=sae[m];if(m==="br")o();else if(b===void 0)l(i,sL(d));else if(v[1])u(m);else{var p=v[4],k={type:m},M=Lb(p,uae);if(M?(M=M.replace(jat,"$1 fill:"),b&&(M+=";"+b)):b&&(M=b),M&&(k.style=M),m==="a"){r=!0;var T=Lb(p,cae);if(T){var L=hae(T);L&&(k.href=L,k.target=Lb(p,fae)||"_blank",k.popup=Lb(p,Hat))}}s(k)}}return r}function hae(e){var t=encodeURI(decodeURI(e)),r=document.createElement("a"),n=document.createElement("a");r.href=e,n.href=t;var i=r.protocol,a=n.protocol;return aae.indexOf(i)!==-1&&aae.indexOf(a)!==-1?t:""}b0.sanitizeHTML=function(t){t=t.replace(lae," ");for(var r=document.createElement("p"),n=r,i=[],a=t.split(TO),o=0;o<a.length;o++){var s=a[o],l=s.match(AO),u=l&&l[2].toLowerCase();if(u in sae)if(l[1])i.length&&(n=i.pop());else{var c=l[4],f=Lb(c,uae),h=f?{style:f}:{};if(u==="a"){var d=Lb(c,cae);if(d){var v=hae(d);if(v){h.href=v;var m=Lb(c,fae);m&&(h.target=m)}}}var b=document.createElement(u);n.appendChild(b),Fh.select(b).attr(h),n=b,i.push(b)}else n.appendChild(document.createTextNode(sL(s)))}var p="innerHTML";return r[p]};b0.lineCount=function(t){return t.selectAll("tspan.line").size()||1};b0.positionText=function(t,r,n){return t.each(function(){var i=Fh.select(this);function a(l,u){return u===void 0?(u=i.attr(l),u===null&&(i.attr(l,0),u=0)):i.attr(l,u),u}var o=a("x",r),s=a("y",n);this.nodeName==="text"&&i.selectAll("tspan.line").attr({x:o,y:s})})};function oae(e,t,r){var n=r.horizontalAlign,i=r.verticalAlign||"top",a=e.node().getBoundingClientRect(),o=t.node().getBoundingClientRect(),s,l,u;return i==="bottom"?l=function(){return a.bottom-s.height}:i==="middle"?l=function(){return a.top+(a.height-s.height)/2}:l=function(){return a.top},n==="right"?u=function(){return a.right-s.width}:n==="center"?u=function(){return a.left+(a.width-s.width)/2}:u=function(){return a.left},function(){s=this.node().getBoundingClientRect();var c=u()-o.left,f=l()-o.top,h=r.gd||{};if(r.gd){h._fullLayout._calcInverseTransform(h);var d=Py.apply3DTransform(h._fullLayout._invTransform)(c,f);c=d[0],f=d[1]}return this.style({top:f+"px",left:c+"px","z-index":1e3}),this}}var wO="1px ";b0.makeTextShadow=function(e){var t=wO,r=wO,n=wO;return t+r+n+e+", -"+t+"-"+r+n+e+", "+t+"-"+r+n+e+", -"+t+r+n+e};b0.makeEditable=function(e,t){var r=t.gd,n=t.delegate,i=Fh.dispatch("edit","input","cancel"),a=n||e;if(e.style({"pointer-events":n?"none":"all"}),e.size()!==1)throw new Error("boo");function o(){l(),e.style({opacity:0});var u=a.attr("class"),c;u?c="."+u.split(" ")[0]+"-math-group":c="[class*=-math-group]",c&&Fh.select(e.node().parentNode).select(c).style({opacity:0})}function s(u){var c=u.node(),f=document.createRange();f.selectNodeContents(c);var h=window.getSelection();h.removeAllRanges(),h.addRange(f),c.focus()}function l(){var u=Fh.select(r),c=u.select(".svg-container"),f=c.append("div"),h=e.node().style,d=parseFloat(h.fontSize||12),v=t.text;v===void 0&&(v=e.attr("data-unformatted")),f.classed("plugin-editable editable",!0).style({position:"absolute","font-family":h.fontFamily||"Arial","font-size":d,color:t.fill||h.fill||"black",opacity:1,"background-color":t.background||"transparent",outline:"#ffffff33 1px solid",margin:[-d/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(v).call(oae(e,c,t)).on("blur",function(){r._editing=!1,e.text(this.textContent).style({opacity:1});var m=Fh.select(this).attr("class"),b;m?b="."+m.split(" ")[0]+"-math-group":b="[class*=-math-group]",b&&Fh.select(e.node().parentNode).select(b).style({opacity:0});var p=this.textContent;Fh.select(this).transition().duration(0).remove(),Fh.select(document).on("mouseup",null),i.edit.call(e,p)}).on("focus",function(){var m=this;r._editing=!0,Fh.select(document).on("mouseup",function(){if(Fh.event.target===m)return!1;document.activeElement===f.node()&&f.node().blur()})}).on("keyup",function(){Fh.event.which===27?(r._editing=!1,e.style({opacity:1}),Fh.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),i.cancel.call(e,this.textContent)):(i.input.call(e,this.textContent),Fh.select(this).call(oae(e,c,t)))}).on("keydown",function(){Fh.event.which===13&&this.blur()}).call(s)}return t.immediate?o():a.on("click",o),Fh.rebind(e,i,"on")}});var pv=ye((Dnr,xae)=>{"use strict";var Kat=qa(),uL=fd(),nM=Eo(),lL=Pr(),dae=ka(),Jat=yb().isValid;function $at(e,t,r){var n=t?lL.nestedProperty(e,t).get()||{}:e,i=n[r||"color"];i&&i._inputArray&&(i=i._inputArray);var a=!1;if(lL.isArrayOrTypedArray(i)){for(var o=0;o<i.length;o++)if(nM(i[o])){a=!0;break}}return lL.isPlainObject(n)&&(a||n.showscale===!0||nM(n.cmin)&&nM(n.cmax)||Jat(n.colorscale)||lL.isPlainObject(n.colorbar))}var vae=["showscale","autocolorscale","colorscale","reversescale","colorbar"],iM=["min","max","mid","auto"];function gae(e){var t=e._colorAx,r=t||e,n={},i,a,o;for(a=0;a<vae.length;a++)o=vae[a],n[o]=r[o];if(t)for(i="c",a=0;a<iM.length;a++)o=iM[a],n[o]=r["c"+o];else{var s;for(a=0;a<iM.length;a++){if(o=iM[a],s="c"+o,s in r){n[o]=r[s];continue}s="z"+o,s in r&&(n[o]=r[s])}i=s.charAt(0)}return n._sync=function(l,u){var c=iM.indexOf(l)!==-1?i+l:l;r[c]=r["_"+c]=u},n}function mae(e){for(var t=gae(e),r=t.min,n=t.max,i=t.reversescale?yae(t.colorscale):t.colorscale,a=i.length,o=new Array(a),s=new Array(a),l=0;l<a;l++){var u=i[l];o[l]=r+u[0]*(n-r),s[l]=u[1]}return{domain:o,range:s}}function yae(e){for(var t=e.length,r=new Array(t),n=t-1,i=0;n>=0;n--,i++){var a=e[n];r[i]=[1-a[0],a[1]]}return r}function _ae(e,t){t=t||{};for(var r=e.domain,n=e.range,i=n.length,a=new Array(i),o=0;o<i;o++){var s=uL(n[o]).toRgb();a[o]=[s.r,s.g,s.b,s.a]}var l=Kat.scale.linear().domain(r).range(a).clamp(!0),u=t.noNumericCheck,c=t.returnArray,f;return u&&c?f=l:u?f=function(h){return pae(l(h))}:c?f=function(h){return nM(h)?l(h):uL(h).isValid()?h:dae.defaultLine}:f=function(h){return nM(h)?pae(l(h)):uL(h).isValid()?h:dae.defaultLine},f.domain=l.domain,f.range=function(){return n},f}function Qat(e,t){return _ae(mae(e),t)}function pae(e){var t={r:e[0],g:e[1],b:e[2],a:e[3]};return uL(t).toRgbString()}xae.exports={hasColorscale:$at,extractOpts:gae,extractScale:mae,flipScale:yae,makeColorScaleFunc:_ae,makeColorScaleFuncFromTrace:Qat}});var vf=ye((Fnr,Tae)=>{"use strict";var bae=Wq(),eot=bae.FORMAT_LINK,tot=bae.DATE_FORMAT_LINK;function rot(e,t){return{valType:"string",dflt:"",editType:"none",description:(t?SO:wae)("hover text",e)+["By default the values are formatted using "+(t?"generic number format":"`"+e+"axis.hoverformat`")+"."].join(" ")}}function SO(e,t){return["Sets the "+e+" formatting rule"+(t?"for `"+t+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+eot+"."].join(" ")}function wae(e,t){return SO(e,t)+[" And for dates see: "+tot+".","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(" ")}Tae.exports={axisHoverFormat:rot,descriptionOnlyNumbers:SO,descriptionWithDates:wae}});var Rd=ye((qnr,Nae)=>{"use strict";var Aae=ec(),z3=Ih(),Bae=Pd().dash,EO=Ao().extendFlat,Sae=vl().templatedArray,znr=Ll().templateFormatStringDescription,Mae=vf().descriptionWithDates,iot=fs().ONEDAY,mm=Rh(),not=mm.HOUR_PATTERN,aot=mm.WEEKDAY_PATTERN,MO={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},oot=EO({},MO,{values:MO.values.slice().concat(["sync"])});function Eae(e){return{valType:"integer",min:0,dflt:e?5:0,editType:"ticks"}}var kae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Cae={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},Lae={valType:"data_array",editType:"ticks"},Pae={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function Iae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=5),t}function Rae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var Dae={valType:"color",dflt:z3.defaultLine,editType:"ticks"},Fae={valType:"color",dflt:z3.lightLine,editType:"ticks"};function zae(e){var t={valType:"number",min:0,editType:"ticks"};return e||(t.dflt=1),t}var qae=EO({},Bae,{editType:"ticks"}),Oae={valType:"boolean",editType:"ticks"};Nae.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:z3.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:Aae({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"},modebardisable:{valType:"flaglist",flags:["autoscale","zoominout"],extras:["none"],dflt:"none",editType:"modebar"},insiderange:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},scaleanchor:{valType:"enumerated",values:[mm.idRegex.x.toString(),mm.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:[mm.idRegex.x.toString(),mm.idRegex.y.toString()],editType:"calc"},rangebreaks:Sae("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:[aot,not,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:iot},editType:"calc"}),tickmode:oot,nticks:Eae(),tick0:kae,dtick:Cae,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:Lae,ticktext:{valType:"data_array",editType:"ticks"},ticks:Pae,tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},ticklabelposition:{valType:"enumerated",values:["outside","inside","outside top","inside top","outside left","inside left","outside right","inside right","outside bottom","inside bottom"],dflt:"outside",editType:"calc"},ticklabeloverflow:{valType:"enumerated",values:["allow","hide past div","hide past domain"],editType:"calc"},ticklabelshift:{valType:"integer",dflt:0,editType:"ticks"},ticklabelstandoff:{valType:"integer",dflt:0,editType:"ticks"},ticklabelindex:{valType:"integer",arrayOk:!0,editType:"calc"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:Iae(),tickwidth:Rae(),tickcolor:Dae,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:EO({},Bae,{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:Aae({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","SI extended"],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:Mae("tick label")},tickformatstops:Sae("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:Mae("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:z3.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:Oae,gridcolor:Fae,gridwidth:zae(),griddash:qae,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:z3.defaultLine,editType:"ticks"},zerolinelayer:{valType:"enumerated",values:["above traces","below traces"],dflt:"below traces",editType:"plot"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:z3.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",mm.idRegex.x.toString(),mm.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",mm.idRegex.x.toString(),mm.idRegex.y.toString()],editType:"plot"},minor:{tickmode:MO,nticks:Eae("minor"),tick0:kae,dtick:Cae,tickvals:Lae,ticks:Pae,ticklen:Iae("minor"),tickwidth:Rae("minor"),tickcolor:Dae,gridcolor:Fae,gridwidth:zae("minor"),griddash:qae,showgrid:Oae,editType:"ticks"},minorloglabels:{valType:"enumerated",values:["small digits","complete","none"],dflt:"small digits",editType:"calc"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},autoshift:{valType:"boolean",dflt:!1,editType:"plot"},shift:{valType:"number",editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","geometric mean ascending","geometric mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc"}});var cL=ye((Onr,Gae)=>{"use strict";var $c=Rd(),Uae=ec(),Vae=Ao().extendFlat,sot=mc().overrideAll;Gae.exports=sot({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:$c.linecolor,outlinewidth:$c.linewidth,bordercolor:$c.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:$c.minor.tickmode,nticks:$c.nticks,tick0:$c.tick0,dtick:$c.dtick,tickvals:$c.tickvals,ticktext:$c.ticktext,ticks:Vae({},$c.ticks,{dflt:""}),ticklabeloverflow:Vae({},$c.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:$c.ticklen,tickwidth:$c.tickwidth,tickcolor:$c.tickcolor,ticklabelstep:$c.ticklabelstep,showticklabels:$c.showticklabels,labelalias:$c.labelalias,tickfont:Uae({}),tickangle:$c.tickangle,tickformat:$c.tickformat,tickformatstops:$c.tickformatstops,tickprefix:$c.tickprefix,showtickprefix:$c.showtickprefix,ticksuffix:$c.ticksuffix,showticksuffix:$c.showticksuffix,separatethousands:$c.separatethousands,exponentformat:$c.exponentformat,minexponent:$c.minexponent,showexponent:$c.showexponent,title:{text:{valType:"string"},font:Uae({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")});var Tu=ye((Nnr,jae)=>{"use strict";var lot=cL(),uot=m3().counter,cot=t_(),Hae=yb().scales,Bnr=cot(Hae);function fL(e){return"`"+e+"`"}jae.exports=function(t,r){t=t||"",r=r||{};var n=r.cLetter||"c",i="onlyIfNumerical"in r?r.onlyIfNumerical:!!t,a="noScale"in r?r.noScale:t==="marker.line",o="showScaleDflt"in r?r.showScaleDflt:n==="z",s=typeof r.colorscaleDflt=="string"?Hae[r.colorscaleDflt]:null,l=r.editTypeOverride||"",u=t?t+".":"",c,f;"colorAttr"in r?(c=r.colorAttr,f=r.colorAttr):(c={z:"z",c:"color"}[n],f="in "+fL(u+c));var h=i?" Has an effect only if "+f+" is set to a numerical array.":"",d=n+"auto",v=n+"min",m=n+"max",b=n+"mid",p=fL(u+d),k=fL(u+v),M=fL(u+m),T=k+" and "+M,L={};L[v]=L[m]=void 0;var x={};x[d]=!1;var C={};return c==="color"&&(C.color={valType:"color",arrayOk:!0,editType:l||"style"},r.anim&&(C.color.anim=!0)),C[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:L},C[v]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:x},C[m]={valType:"number",dflt:null,editType:l||"plot",impliedEdits:x},C[b]={valType:"number",dflt:null,editType:"calc",impliedEdits:L},C.colorscale={valType:"colorscale",editType:"calc",dflt:s,impliedEdits:{autocolorscale:!1}},C.autocolorscale={valType:"boolean",dflt:r.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},C.reversescale={valType:"boolean",dflt:!1,editType:"plot"},a||(C.showscale={valType:"boolean",dflt:o,editType:"calc"},C.colorbar=lot),r.noColorAxis||(C.coloraxis={valType:"subplotid",regex:uot("coloraxis"),dflt:null,editType:"calc"}),C}});var CO=ye((Unr,Wae)=>{"use strict";var fot=Ao().extendFlat,hot=Tu(),kO=yb().scales;Wae.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:kO.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:kO.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:kO.RdBu,editType:"calc"}},coloraxis:fot({_isSubplotObj:!0,editType:"calc"},hot("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}});var LO=ye((Vnr,Xae)=>{"use strict";var dot=Pr();Xae.exports=function(t){return dot.isPlainObject(t.colorbar)}});var RO=ye(IO=>{"use strict";var PO=Eo(),Zae=Pr(),Yae=fs(),vot=Yae.ONEDAY,pot=Yae.ONEWEEK;IO.dtick=function(e,t){var r=t==="log",n=t==="date",i=t==="category",a=n?vot:1;if(!e)return a;if(PO(e))return e=Number(e),e<=0?a:i?Math.max(1,Math.round(e)):n?Math.max(.1,e):e;if(typeof e!="string"||!(n||r))return a;var o=e.charAt(0),s=e.slice(1);return s=PO(s)?Number(s):0,s<=0||!(n&&o==="M"&&s===Math.round(s)||r&&o==="L"||r&&o==="D"&&(s===1||s===2))?a:e};IO.tick0=function(e,t,r,n){if(t==="date")return Zae.cleanDate(e,Zae.dateTick0(r,n%pot===0?1:0));if(!(n==="D1"||n==="D2"))return PO(e)?Number(e):0}});var Pb=ye((Hnr,Jae)=>{"use strict";var Kae=RO(),got=Pr().isArrayOrTypedArray,mot=Yd().isTypedArraySpec,yot=Yd().decodeTypedArraySpec;Jae.exports=function(t,r,n,i,a){a||(a={});var o=a.isMinor,s=o?t.minor||{}:t,l=o?r.minor:r,u=o?"minor.":"";function c(k){var M=s[k];return mot(M)&&(M=yot(M)),M!==void 0?M:(l._template||{})[k]}var f=c("tick0"),h=c("dtick"),d=c("tickvals"),v=got(d)?"array":h?"linear":"auto",m=n(u+"tickmode",v);if(m==="auto"||m==="sync")n(u+"nticks");else if(m==="linear"){var b=l.dtick=Kae.dtick(h,i);l.tick0=Kae.tick0(f,i,r.calendar,b)}else if(i!=="multicategory"){var p=n(u+"tickvals");p===void 0?l.tickmode="auto":o||n("ticktext")}}});var q3=ye((jnr,Qae)=>{"use strict";var DO=Pr(),$ae=Rd();Qae.exports=function(t,r,n,i){var a=i.isMinor,o=a?t.minor||{}:t,s=a?r.minor:r,l=a?$ae.minor:$ae,u=a?"minor.":"",c=DO.coerce2(o,s,l,"ticklen",a?(r.ticklen||5)*.6:void 0),f=DO.coerce2(o,s,l,"tickwidth",a?r.tickwidth||1:void 0),h=DO.coerce2(o,s,l,"tickcolor",(a?r.tickcolor:void 0)||s.color),d=n(u+"ticks",!a&&i.outerTicks||c||f||h?"outside":"");d||(delete s.ticklen,delete s.tickwidth,delete s.tickcolor)}});var FO=ye((Wnr,eoe)=>{"use strict";eoe.exports=function(t){var r=["showexponent","showtickprefix","showticksuffix"],n=r.filter(function(a){return t[a]!==void 0}),i=function(a){return t[a]===t[n[0]]};if(n.every(i)||n.length===1)return t[n[0]]}});var Kd=ye((Xnr,toe)=>{"use strict";var hL=Pr(),_ot=vl();toe.exports=function(t,r,n){var i=n.name,a=n.inclusionAttr||"visible",o=r[i],s=hL.isArrayOrTypedArray(t[i])?t[i]:[],l=r[i]=[],u=_ot.arrayTemplater(r,i,a),c,f;for(c=0;c<s.length;c++){var h=s[c];hL.isPlainObject(h)?f=u.newItem(h):(f=u.newItem({}),f[a]=!1),f._index=c,f[a]!==!1&&n.handleItemDefaults(h,f,r,n),l.push(f)}var d=u.defaultItems();for(c=0;c<d.length;c++)f=d[c],f._index=l.length,n.handleItemDefaults({},f,r,n,{}),l.push(f);if(hL.isArrayOrTypedArray(o)){var v=Math.min(o.length,l.length);for(c=0;c<v;c++)hL.relinkPrivateKeys(l[c],o[c])}return l}});var s_=ye((Znr,ioe)=>{"use strict";var zO=Pr(),xot=ka().contrast,roe=Rd(),bot=FO(),wot=Kd();ioe.exports=function(t,r,n,i,a){a||(a={});var o=n("labelalias");zO.isPlainObject(o)||delete r.labelalias;var s=bot(t),l=n("showticklabels");if(l){a.noTicklabelshift||n("ticklabelshift"),a.noTicklabelstandoff||n("ticklabelstandoff");var u=a.font||{},c=r.color,f=r.ticklabelposition||"",h=f.indexOf("inside")!==-1?xot(a.bgColor):c&&c!==roe.color.dflt?c:u.color;if(zO.coerceFont(n,"tickfont",u,{overrideDflt:{color:h}}),!a.noTicklabelstep&&i!=="multicategory"&&i!=="log"&&n("ticklabelstep"),!a.noAng){var d=n("tickangle");!a.noAutotickangles&&d==="auto"&&n("autotickangles")}if(i!=="category"){var v=n("tickformat");wot(t,r,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:Tot}),r.tickformatstops.length||delete r.tickformatstops,!a.noExp&&!v&&i!=="date"&&(n("showexponent",s),n("exponentformat"),n("minexponent"),n("separatethousands"))}!a.noMinorloglabels&&i==="log"&&n("minorloglabels")}};function Tot(e,t){function r(i,a){return zO.coerce(e,t,roe.tickformatstops,i,a)}var n=r("enabled");n&&(r("dtickrange"),r("value"))}});var l_=ye((Ynr,noe)=>{"use strict";var Aot=FO();noe.exports=function(t,r,n,i,a){a||(a={});var o=a.tickSuffixDflt,s=Aot(t),l=n("tickprefix");l&&n("showtickprefix",s);var u=n("ticksuffix",o);u&&n("showticksuffix",s)}});var qO=ye((Knr,aoe)=>{"use strict";var u_=Pr(),Sot=vl(),Mot=Pb(),Eot=q3(),kot=s_(),Cot=l_(),Lot=cL();aoe.exports=function(t,r,n){var i=Sot.newContainer(r,"colorbar"),a=t.colorbar||{};function o(E,z){return u_.coerce(a,i,Lot,E,z)}var s=n.margin||{t:0,b:0,l:0,r:0},l=n.width-s.l-s.r,u=n.height-s.t-s.b,c=o("orientation"),f=c==="v",h=o("thicknessmode");o("thickness",h==="fraction"?30/(f?l:u):30);var d=o("lenmode");o("len",d==="fraction"?1:f?u:l);var v=o("yref"),m=o("xref"),b=v==="paper",p=m==="paper",k,M,T,L="left";f?(T="middle",L=p?"left":"right",k=p?1.02:1,M=.5):(T=b?"bottom":"top",L="center",k=.5,M=b?1.02:1),u_.coerce(a,i,{x:{valType:"number",min:p?-2:0,max:p?3:1,dflt:k}},"x"),u_.coerce(a,i,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:M}},"y"),o("xanchor",L),o("xpad"),o("yanchor",T),o("ypad"),u_.noneOrAll(a,i,["x","y"]),o("outlinecolor"),o("outlinewidth"),o("bordercolor"),o("borderwidth"),o("bgcolor");var x=u_.coerce(a,i,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:f?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");o("ticklabeloverflow",x.indexOf("inside")!==-1?"hide past domain":"hide past div"),Mot(a,i,o,"linear");var C=n.font,S={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:C};x.indexOf("inside")!==-1&&(S.bgColor="black"),Cot(a,i,o,"linear",S),kot(a,i,o,"linear",S),Eot(a,i,o,"linear",S),o("title.text",n._dfltTitle.colorbar);var g=i.showticklabels?i.tickfont:C,P=u_.extendFlat({},C,{family:g.family,size:u_.bigFont(g.size)});u_.coerceFont(o,"title.font",P),o("title.side",f?"top":"right")}});var td=ye((Jnr,loe)=>{"use strict";var ooe=Eo(),BO=Pr(),Pot=LO(),Iot=qO(),soe=yb().isValid,Rot=Oa().traceIs;function OO(e,t){var r=t.slice(0,t.length-1);return t?BO.nestedProperty(e,r).get()||{}:e}loe.exports=function e(t,r,n,i,a){var o=a.prefix,s=a.cLetter,l="_module"in r,u=OO(t,o),c=OO(r,o),f=OO(r._template||{},o)||{},h=function(){return delete t.coloraxis,delete r.coloraxis,e(t,r,n,i,a)};if(l){var d=n._colorAxes||{},v=i(o+"coloraxis");if(v){var m=Rot(r,"contour")&&BO.nestedProperty(r,"contours.coloring").get()||"heatmap",b=d[v];b?(b[2].push(h),b[0]!==m&&(b[0]=!1,BO.warn(["Ignoring coloraxis:",v,"setting","as it is linked to incompatible colorscales."].join(" ")))):d[v]=[m,r,[h]];return}}var p=u[s+"min"],k=u[s+"max"],M=ooe(p)&&ooe(k)&&p<k,T=i(o+s+"auto",!M);T?i(o+s+"mid"):(i(o+s+"min"),i(o+s+"max"));var L=u.colorscale,x=f.colorscale,C;if(L!==void 0&&(C=!soe(L)),x!==void 0&&(C=!soe(x)),i(o+"autocolorscale",C),i(o+"colorscale"),i(o+"reversescale"),o!=="marker.line."){var S;o&&l&&(S=Pot(u));var g=i(o+"showscale",S);g&&(o&&f&&(c._template=f),Iot(u,c,n))}}});var hoe=ye(($nr,foe)=>{"use strict";var uoe=Pr(),Dot=vl(),coe=CO(),Fot=td();foe.exports=function(t,r){function n(f,h){return uoe.coerce(t,r,coe,f,h)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var i=r._colorAxes,a,o;function s(f,h){return uoe.coerce(a,o,coe.coloraxis,f,h)}for(var l in i){var u=i[l];if(u[0])a=t[l]||{},o=Dot.newContainer(r,l,"coloraxis"),o._name=l,Fot(a,o,r,s,{prefix:"",cLetter:"c"});else{for(var c=0;c<u[2].length;c++)u[2][c]();delete r._colorAxes[l]}}}});var voe=ye((Qnr,doe)=>{"use strict";var zot=Pr(),qot=pv().hasColorscale,Oot=pv().extractOpts;doe.exports=function(t,r){function n(c,f){var h=c["_"+f];h!==void 0&&(c[f]=h)}function i(c,f){var h=f.container?zot.nestedProperty(c,f.container).get():c;if(h)if(h.coloraxis)h._colorAx=r[h.coloraxis];else{var d=Oot(h),v=d.auto;(v||d.min===void 0)&&n(h,f.min),(v||d.max===void 0)&&n(h,f.max),d.autocolorscale&&n(h,"colorscale")}}for(var a=0;a<t.length;a++){var o=t[a],s=o._module.colorbar;if(s)if(Array.isArray(s))for(var l=0;l<s.length;l++)i(o,s[l]);else i(o,s);qot(o,"marker.line")&&i(o,{container:"marker.line",min:"cmin",max:"cmax"})}for(var u in r._colorAxes)i(r[u],{min:"cmin",max:"cmax"})}});var gv=ye((ear,goe)=>{"use strict";var poe=Eo(),NO=Pr(),Bot=pv().extractOpts;goe.exports=function(t,r,n){var i=t._fullLayout,a=n.vals,o=n.containerStr,s=o?NO.nestedProperty(r,o).get():r,l=Bot(s),u=l.auto!==!1,c=l.min,f=l.max,h=l.mid,d=function(){return NO.aggNums(Math.min,null,a)},v=function(){return NO.aggNums(Math.max,null,a)};if(c===void 0?c=d():u&&(s._colorAx&&poe(c)?c=Math.min(c,d()):c=d()),f===void 0?f=v():u&&(s._colorAx&&poe(f)?f=Math.max(f,v()):f=v()),u&&h!==void 0&&(f-h>h-c?c=h-(f-h):f-h<h-c&&(f=h+(h-c))),c===f&&(c-=.5,f+=.5),l._sync("min",c),l._sync("max",f),l.autocolorscale){var m;c*f<0?m=i.colorscale.diverging:c>=0?m=i.colorscale.sequential:m=i.colorscale.sequentialminus,l._sync("colorscale",m)}}});var tc=ye((tar,moe)=>{"use strict";var dL=yb(),O3=pv();moe.exports={moduleType:"component",name:"colorscale",attributes:Tu(),layoutAttributes:CO(),supplyLayoutDefaults:hoe(),handleDefaults:td(),crossTraceDefaults:voe(),calc:gv(),scales:dL.scales,defaultScale:dL.defaultScale,getScale:dL.get,isValidScale:dL.isValid,hasColorscale:O3.hasColorscale,extractOpts:O3.extractOpts,extractScale:O3.extractScale,flipScale:O3.flipScale,makeColorScaleFunc:O3.makeColorScaleFunc,makeColorScaleFuncFromTrace:O3.makeColorScaleFuncFromTrace}});var Ru=ye((rar,_oe)=>{"use strict";var yoe=Pr(),Not=Yd().isTypedArraySpec;_oe.exports={hasLines:function(e){return e.visible&&e.mode&&e.mode.indexOf("lines")!==-1},hasMarkers:function(e){return e.visible&&(e.mode&&e.mode.indexOf("markers")!==-1||e.type==="splom")},hasText:function(e){return e.visible&&e.mode&&e.mode.indexOf("text")!==-1},isBubble:function(e){var t=e.marker;return yoe.isPlainObject(t)&&(yoe.isArrayOrTypedArray(t.size)||Not(t.size))}}});var B3=ye((iar,xoe)=>{"use strict";var Uot=Eo();xoe.exports=function(t,r){r||(r=2);var n=t.marker,i=n.sizeref||1,a=n.sizemin||0,o=n.sizemode==="area"?function(s){return Math.sqrt(s/i)}:function(s){return s/i};return function(s){var l=o(s/r);return Uot(l)&&l>0?Math.max(l,a):0}}});var ip=ye(mv=>{"use strict";var vL=Pr();mv.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo};mv.isTraceInSubplots=function(e,t){if(e.type==="splom"){for(var r=e.xaxes||[],n=e.yaxes||[],i=0;i<r.length;i++)for(var a=0;a<n.length;a++)if(t.indexOf(r[i]+n[a])!==-1)return!0;return!1}return t.indexOf(mv.getSubplot(e))!==-1};mv.flat=function(e,t){for(var r=new Array(e.length),n=0;n<e.length;n++)r[n]=t;return r};mv.p2c=function(e,t){for(var r=new Array(e.length),n=0;n<e.length;n++)r[n]=e[n].p2c(t);return r};mv.getDistanceFunction=function(e,t,r,n){return e==="closest"?n||mv.quadrature(t,r):e.charAt(0)==="x"?t:r};mv.getClosest=function(e,t,r){if(r.index!==!1)r.index>=0&&r.index<e.length?r.distance=0:r.index=!1;else for(var n=1/0,i=e.length,a=0;a<i;a++)n=t(e[a]),n<=r.distance&&(r.index=a,r.distance=n);return r};mv.inbox=function(e,t,r){return e*t<0||e===0?r:1/0};mv.quadrature=function(e,t){return function(r){var n=e(r),i=t(r);return Math.sqrt(n*n+i*i)}};mv.makeEventData=function(e,t,r){var n="index"in e?e.index:e.pointNumber,i={data:t._input,fullData:t,curveNumber:t.index,pointNumber:n};if(t._indexToPoints){var a=t._indexToPoints[n];a.length===1?i.pointIndex=a[0]:i.pointIndices=a}else i.pointIndex=n;return t._module.eventData?i=t._module.eventData(i,e,t,r,n):("xVal"in e?i.x=e.xVal:"x"in e&&(i.x=e.x),"yVal"in e?i.y=e.yVal:"y"in e&&(i.y=e.y),e.xa&&(i.xaxis=e.xa),e.ya&&(i.yaxis=e.ya),e.zLabelVal!==void 0&&(i.z=e.zLabelVal)),mv.appendArrayPointValue(i,t,n),i};mv.appendArrayPointValue=function(e,t,r){var n=t._arrayAttrs;if(n)for(var i=0;i<n.length;i++){var a=n[i],o=boe(a);if(e[o]===void 0){var s=vL.nestedProperty(t,a).get(),l=woe(s,r);l!==void 0&&(e[o]=l)}}};mv.appendArrayMultiPointValues=function(e,t,r){var n=t._arrayAttrs;if(n)for(var i=0;i<n.length;i++){var a=n[i],o=boe(a);if(e[o]===void 0){for(var s=vL.nestedProperty(t,a).get(),l=new Array(r.length),u=0;u<r.length;u++)l[u]=woe(s,r[u]);e[o]=l}}};var Vot={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function boe(e){return Vot[e]||e}function woe(e,t){if(Array.isArray(t)){if(vL.isArrayOrTypedArray(e)&&vL.isArrayOrTypedArray(e[t[0]]))return e[t[0]][t[1]]}else return e[t]}var Got={x:!0,y:!0},Hot={"x unified":!0,"y unified":!0};mv.isUnifiedHover=function(e){return typeof e!="string"?!1:!!Hot[e]};mv.isXYhover=function(e){return typeof e!="string"?!1:!!Got[e]}});var aM=ye((aar,Toe)=>{Toe.exports=Wot;var UO={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},jot=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function Wot(e){var t=[];return e.replace(jot,function(r,n,i){var a=n.toLowerCase();for(i=Zot(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==UO[a])return i.unshift(n),t.push(i);if(i.length<UO[a])throw new Error("malformed path data");t.push([n].concat(i.splice(0,UO[a])))}}),t}var Xot=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function Zot(e){var t=e.match(Xot);return t?t.map(Number):[]}});var Loe=ye((oar,Coe)=>{"use strict";var Yot=aM(),ca=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)},hs="M0,0Z",Aoe=Math.sqrt(2),c_=Math.sqrt(3),VO=Math.PI,GO=Math.cos,HO=Math.sin;Coe.exports={circle:{n:0,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i="M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z";return r?vs(t,r,i):i}},square:{n:1,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")}},diamond:{n:2,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.3,2);return vs(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"Z")}},cross:{n:3,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.4,2),i=ca(e*1.2,2);return vs(t,r,"M"+i+","+n+"H"+n+"V"+i+"H-"+n+"V"+n+"H-"+i+"V-"+n+"H-"+n+"V-"+i+"H"+n+"V-"+n+"H"+i+"Z")}},x:{n:4,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.8/Aoe,2),i="l"+n+","+n,a="l"+n+",-"+n,o="l-"+n+",-"+n,s="l-"+n+","+n;return vs(t,r,"M0,"+n+i+a+o+a+o+s+o+s+i+s+i+"Z")}},"triangle-up":{n:5,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2/c_,2),i=ca(e/2,2),a=ca(e,2);return vs(t,r,"M-"+n+","+i+"H"+n+"L0,-"+a+"Z")}},"triangle-down":{n:6,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2/c_,2),i=ca(e/2,2),a=ca(e,2);return vs(t,r,"M-"+n+",-"+i+"H"+n+"L0,"+a+"Z")}},"triangle-left":{n:7,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2/c_,2),i=ca(e/2,2),a=ca(e,2);return vs(t,r,"M"+i+",-"+n+"V"+n+"L-"+a+",0Z")}},"triangle-right":{n:8,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2/c_,2),i=ca(e/2,2),a=ca(e,2);return vs(t,r,"M-"+i+",-"+n+"V"+n+"L"+a+",0Z")}},"triangle-ne":{n:9,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.6,2),i=ca(e*1.2,2);return vs(t,r,"M-"+i+",-"+n+"H"+n+"V"+i+"Z")}},"triangle-se":{n:10,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.6,2),i=ca(e*1.2,2);return vs(t,r,"M"+n+",-"+i+"V"+n+"H-"+i+"Z")}},"triangle-sw":{n:11,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.6,2),i=ca(e*1.2,2);return vs(t,r,"M"+i+","+n+"H-"+n+"V-"+i+"Z")}},"triangle-nw":{n:12,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.6,2),i=ca(e*1.2,2);return vs(t,r,"M-"+n+","+i+"V-"+n+"H"+i+"Z")}},pentagon:{n:13,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.951,2),i=ca(e*.588,2),a=ca(-e,2),o=ca(e*-.309,2),s=ca(e*.809,2);return vs(t,r,"M"+n+","+o+"L"+i+","+s+"H-"+i+"L-"+n+","+o+"L0,"+a+"Z")}},hexagon:{n:14,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e/2,2),a=ca(e*c_/2,2);return vs(t,r,"M"+a+",-"+i+"V"+i+"L0,"+n+"L-"+a+","+i+"V-"+i+"L0,-"+n+"Z")}},hexagon2:{n:15,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e/2,2),a=ca(e*c_/2,2);return vs(t,r,"M-"+i+","+a+"H"+i+"L"+n+",0L"+i+",-"+a+"H-"+i+"L-"+n+",0Z")}},octagon:{n:16,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.924,2),i=ca(e*.383,2);return vs(t,r,"M-"+i+",-"+n+"H"+i+"L"+n+",-"+i+"V"+i+"L"+i+","+n+"H-"+i+"L-"+n+","+i+"V-"+i+"Z")}},star:{n:17,f:function(e,t,r){if(ds(t))return hs;var n=e*1.4,i=ca(n*.225,2),a=ca(n*.951,2),o=ca(n*.363,2),s=ca(n*.588,2),l=ca(-n,2),u=ca(n*-.309,2),c=ca(n*.118,2),f=ca(n*.809,2),h=ca(n*.382,2);return vs(t,r,"M"+i+","+u+"H"+a+"L"+o+","+c+"L"+s+","+f+"L0,"+h+"L-"+s+","+f+"L-"+o+","+c+"L-"+a+","+u+"H-"+i+"L0,"+l+"Z")}},hexagram:{n:18,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.66,2),i=ca(e*.38,2),a=ca(e*.76,2);return vs(t,r,"M-"+a+",0l-"+i+",-"+n+"h"+a+"l"+i+",-"+n+"l"+i+","+n+"h"+a+"l-"+i+","+n+"l"+i+","+n+"h-"+a+"l-"+i+","+n+"l-"+i+",-"+n+"h-"+a+"Z")}},"star-triangle-up":{n:19,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*c_*.8,2),i=ca(e*.8,2),a=ca(e*1.6,2),o=ca(e*4,2),s="A "+o+","+o+" 0 0 1 ";return vs(t,r,"M-"+n+","+i+s+n+","+i+s+"0,-"+a+s+"-"+n+","+i+"Z")}},"star-triangle-down":{n:20,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*c_*.8,2),i=ca(e*.8,2),a=ca(e*1.6,2),o=ca(e*4,2),s="A "+o+","+o+" 0 0 1 ";return vs(t,r,"M"+n+",-"+i+s+"-"+n+",-"+i+s+"0,"+a+s+n+",-"+i+"Z")}},"star-square":{n:21,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.1,2),i=ca(e*2,2),a="A "+i+","+i+" 0 0 1 ";return vs(t,r,"M-"+n+",-"+n+a+"-"+n+","+n+a+n+","+n+a+n+",-"+n+a+"-"+n+",-"+n+"Z")}},"star-diamond":{n:22,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.4,2),i=ca(e*1.9,2),a="A "+i+","+i+" 0 0 1 ";return vs(t,r,"M-"+n+",0"+a+"0,"+n+a+n+",0"+a+"0,-"+n+a+"-"+n+",0Z")}},"diamond-tall":{n:23,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*.7,2),i=ca(e*1.4,2);return vs(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},"diamond-wide":{n:24,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.4,2),i=ca(e*.7,2);return vs(t,r,"M0,"+i+"L"+n+",0L0,-"+i+"L-"+n+",0Z")}},hourglass:{n:25,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+","+n+"H-"+n+"L"+n+",-"+n+"H-"+n+"Z")},noDot:!0},bowtie:{n:26,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+","+n+"V-"+n+"L-"+n+","+n+"V-"+n+"Z")},noDot:!0},"circle-cross":{n:27,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e/Aoe,2);return vs(t,r,"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i+"M"+n+",0A"+n+","+n+" 0 1,1 0,-"+n+"A"+n+","+n+" 0 0,1 "+n+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+n+","+n+"H-"+n+"V-"+n+"H"+n+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.3,2);return vs(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM0,-"+n+"V"+n+"M-"+n+",0H"+n)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.3,2),i=ca(e*.65,2);return vs(t,r,"M"+n+",0L0,"+n+"L-"+n+",0L0,-"+n+"ZM-"+i+",-"+i+"L"+i+","+i+"M-"+i+","+i+"L"+i+",-"+i)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.4,2);return vs(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.2,2),i=ca(e*.85,2);return vs(t,r,"M0,"+n+"V-"+n+"M"+n+",0H-"+n+"M"+i+","+i+"L-"+i+",-"+i+"M"+i+",-"+i+"L-"+i+","+i)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e,t,r){if(ds(t))return hs;var n=ca(e/2,2),i=ca(e,2);return vs(t,r,"M"+n+","+i+"V-"+i+"M"+(n-i)+",-"+i+"V"+i+"M"+i+","+n+"H-"+i+"M-"+i+","+(n-i)+"H"+i)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return vs(t,r,"M-"+n+","+a+"L0,0M"+n+","+a+"L0,0M0,-"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return vs(t,r,"M-"+n+",-"+a+"L0,0M"+n+",-"+a+"L0,0M0,"+i+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return vs(t,r,"M"+a+","+n+"L0,0M"+a+",-"+n+"L0,0M-"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.2,2),i=ca(e*1.6,2),a=ca(e*.8,2);return vs(t,r,"M-"+a+","+n+"L0,0M-"+a+",-"+n+"L0,0M"+i+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.4,2);return vs(t,r,"M"+n+",0H-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*1.4,2);return vs(t,r,"M0,"+n+"V-"+n)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+",-"+n+"L-"+n+","+n)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2);return vs(t,r,"M"+n+","+n+"L-"+n+",-"+n)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e*2,2);return vs(t,r,"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e*2,2);return vs(t,r,"M0,0L-"+n+",-"+i+"H"+n+"Z")},noDot:!0},"arrow-left":{n:47,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2,2),i=ca(e,2);return vs(t,r,"M0,0L"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-right":{n:48,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2,2),i=ca(e,2);return vs(t,r,"M0,0L-"+n+",-"+i+"V"+i+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e*2,2);return vs(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+","+i+"H"+n+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e,t,r){if(ds(t))return hs;var n=ca(e,2),i=ca(e*2,2);return vs(t,r,"M-"+n+",0H"+n+"M0,0L-"+n+",-"+i+"H"+n+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2,2),i=ca(e,2);return vs(t,r,"M0,-"+i+"V"+i+"M0,0L"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e,t,r){if(ds(t))return hs;var n=ca(e*2,2),i=ca(e,2);return vs(t,r,"M0,-"+i+"V"+i+"M0,0L-"+n+",-"+i+"V"+i+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(e,t,r){if(ds(t))return hs;var n=VO/2.5,i=2*e*GO(n),a=2*e*HO(n);return vs(t,r,"M0,0L"+-i+","+a+"L"+i+","+a+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(e,t,r){if(ds(t))return hs;var n=VO/4,i=2*e*GO(n),a=2*e*HO(n);return vs(t,r,"M0,0L"+-i+","+a+"A "+2*e+","+2*e+" 0 0 1 "+i+","+a+"Z")},backoff:.4,noDot:!0}};function ds(e){return e===null}var Soe,Moe,Eoe,koe;function vs(e,t,r){if((!e||e%360===0)&&!t)return r;if(Eoe===e&&koe===t&&Soe===r)return Moe;Eoe=e,koe=t,Soe=r;function n(b,p){var k=GO(b),M=HO(b),T=p[0],L=p[1]+(t||0);return[T*k-L*M,T*M+L*k]}for(var i=e/180*VO,a=0,o=0,s=Yot(r),l="",u=0;u<s.length;u++){var c=s[u],f=c[0],h=a,d=o;if(f==="M"||f==="L")a=+c[1],o=+c[2];else if(f==="m"||f==="l")a+=+c[1],o+=+c[2];else if(f==="H")a=+c[1];else if(f==="h")a+=+c[1];else if(f==="V")o=+c[1];else if(f==="v")o+=+c[1];else if(f==="A"){a=+c[1],o=+c[2];var v=n(i,[+c[6],+c[7]]);c[6]=v[0],c[7]=v[1],c[3]=+c[3]+e}(f==="H"||f==="V")&&(f="L"),(f==="h"||f==="v")&&(f="l"),(f==="m"||f==="l")&&(a-=h,o-=d);var m=n(i,[a,o]);(f==="H"||f==="V")&&(f="L"),(f==="M"||f==="L"||f==="m"||f==="l")&&(c[1]=m[0],c[2]=m[1]),c[0]=f,l+=c[0]+c.slice(1).join(",")}return Moe=l,l}});var So=ye((sar,Koe)=>{"use strict";var dd=qa(),Du=Pr(),Kot=Du.numberFormat,Fb=Eo(),KO=fd(),gL=Oa(),Jd=ka(),Jot=tc(),sM=Du.strTranslate,mL=Zl(),$ot=Wp(),Qot=Dh(),est=Qot.LINE_SPACING,Noe=X1().DESELECTDIM,tst=Ru(),rst=B3(),ist=ip().appendArrayPointValue,Ta=Koe.exports={};Ta.font=function(e,t){var r=t.variant,n=t.style,i=t.weight,a=t.color,o=t.size,s=t.family,l=t.shadow,u=t.lineposition,c=t.textcase;s&&e.style("font-family",s),o+1&&e.style("font-size",o+"px"),a&&e.call(Jd.fill,a),i&&e.style("font-weight",i),n&&e.style("font-style",n),r&&e.style("font-variant",r),c&&e.style("text-transform",jO(ast(c))),l&&e.style("text-shadow",l==="auto"?mL.makeTextShadow(Jd.contrast(a)):jO(l)),u&&e.style("text-decoration-line",jO(ost(u)))};function jO(e){return e==="none"?void 0:e}var nst={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function ast(e){return nst[e]}function ost(e){return e.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}Ta.setPosition=function(e,t,r){e.attr("x",t).attr("y",r)};Ta.setSize=function(e,t,r){e.attr("width",t).attr("height",r)};Ta.setRect=function(e,t,r,n,i){e.call(Ta.setPosition,t,r).call(Ta.setSize,n,i)};Ta.translatePoint=function(e,t,r,n){var i=r.c2p(e.x),a=n.c2p(e.y);if(Fb(i)&&Fb(a)&&t.node())t.node().nodeName==="text"?t.attr("x",i).attr("y",a):t.attr("transform",sM(i,a));else return!1;return!0};Ta.translatePoints=function(e,t,r){e.each(function(n){var i=dd.select(this);Ta.translatePoint(n,i,t,r)})};Ta.hideOutsideRangePoint=function(e,t,r,n,i,a){t.attr("display",r.isPtWithinRange(e,i)&&n.isPtWithinRange(e,a)?null:"none")};Ta.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var r=t.xaxis,n=t.yaxis;e.each(function(i){var a=i[0].trace,o=a.xcalendar,s=a.ycalendar,l=gL.traceIs(a,"bar-like")?".bartext":".point,.textpoint";e.selectAll(l).each(function(u){Ta.hideOutsideRangePoint(u,dd.select(this),r,n,o,s)})})}};Ta.crispRound=function(e,t,r){return!t||!Fb(t)?r||0:e._context.staticPlot?t:t<1?1:Math.round(t)};Ta.singleLineStyle=function(e,t,r,n,i){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||"";Jd.stroke(t,n||a.color),Ta.dashLine(t,s,o)};Ta.lineGroupStyle=function(e,t,r,n){e.style("fill","none").each(function(i){var a=(((i||[])[0]||{}).trace||{}).line||{},o=t||a.width||0,s=n||a.dash||"";dd.select(this).call(Jd.stroke,r||a.color).call(Ta.dashLine,s,o)})};Ta.dashLine=function(e,t,r){r=+r||0,t=Ta.dashStyle(t,r),e.style({"stroke-dasharray":t,"stroke-width":r+"px"})};Ta.dashStyle=function(e,t){t=+t||1;var r=Math.max(t,3);return e==="solid"?e="":e==="dot"?e=r+"px,"+r+"px":e==="dash"?e=3*r+"px,"+3*r+"px":e==="longdash"?e=5*r+"px,"+5*r+"px":e==="dashdot"?e=3*r+"px,"+r+"px,"+r+"px,"+r+"px":e==="longdashdot"&&(e=5*r+"px,"+2*r+"px,"+r+"px,"+2*r+"px"),e};function Uoe(e,t,r,n){var i=t.fillpattern,a=t.fillgradient,o=Ta.getPatternAttr,s=i&&(o(i.shape,0,"")||o(i.path,0,""));if(s){var l=o(i.bgcolor,0,null),u=o(i.fgcolor,0,null),c=i.fgopacity,f=o(i.size,0,8),h=o(i.solidity,0,.3),d=t.uid;Ta.pattern(e,"point",r,d,s,f,h,void 0,i.fillmode,l,u,c)}else if(a&&a.type!=="none"){var v=a.type,m="scatterfill-"+t.uid;if(n&&(m="legendfill-"+t.uid),!n&&(a.start!==void 0||a.stop!==void 0)){var b,p;v==="horizontal"?(b={x:a.start,y:0},p={x:a.stop,y:0}):v==="vertical"&&(b={x:0,y:a.start},p={x:0,y:a.stop}),b.x=t._xA.c2p(b.x===void 0?t._extremes.x.min[0].val:b.x,!0),b.y=t._yA.c2p(b.y===void 0?t._extremes.y.min[0].val:b.y,!0),p.x=t._xA.c2p(p.x===void 0?t._extremes.x.max[0].val:p.x,!0),p.y=t._yA.c2p(p.y===void 0?t._extremes.y.max[0].val:p.y,!0),e.call(Hoe,r,m,"linear",a.colorscale,"fill",b,p,!0,!1)}else v==="horizontal"&&(v=v+"reversed"),e.call(Ta.gradient,r,m,v,a.colorscale,"fill")}else t.fillcolor&&e.call(Jd.fill,t.fillcolor)}Ta.singleFillStyle=function(e,t){var r=dd.select(e.node()),n=r.data(),i=((n[0]||[])[0]||{}).trace||{};Uoe(e,i,t,!1)};Ta.fillGroupStyle=function(e,t,r){e.style("stroke-width",0).each(function(n){var i=dd.select(this);n[0].trace&&Uoe(i,n[0].trace,t,r)})};var Poe=Loe();Ta.symbolNames=[];Ta.symbolFuncs=[];Ta.symbolBackOffs=[];Ta.symbolNeedLines={};Ta.symbolNoDot={};Ta.symbolNoFill={};Ta.symbolList=[];Object.keys(Poe).forEach(function(e){var t=Poe[e],r=t.n;Ta.symbolList.push(r,String(r),e,r+100,String(r+100),e+"-open"),Ta.symbolNames[r]=e,Ta.symbolFuncs[r]=t.f,Ta.symbolBackOffs[r]=t.backoff||0,t.needLine&&(Ta.symbolNeedLines[r]=!0),t.noDot?Ta.symbolNoDot[r]=!0:Ta.symbolList.push(r+200,String(r+200),e+"-dot",r+300,String(r+300),e+"-open-dot"),t.noFill&&(Ta.symbolNoFill[r]=!0)});var sst=Ta.symbolNames.length,lst="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";Ta.symbolNumber=function(e){if(Fb(e))e=+e;else if(typeof e=="string"){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=Ta.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=sst||e>=400?0:Math.floor(Math.max(e,0))};function Voe(e,t,r,n){var i=e%100;return Ta.symbolFuncs[i](t,r,n)+(e>=200?lst:"")}var Ioe=Kot("~f"),Goe={radial:{type:"radial"},radialreversed:{type:"radial",reversed:!0},horizontal:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0}},horizontalreversed:{type:"linear",start:{x:1,y:0},stop:{x:0,y:0},reversed:!0},vertical:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0}},verticalreversed:{type:"linear",start:{x:0,y:1},stop:{x:0,y:0},reversed:!0}};Ta.gradient=function(e,t,r,n,i,a){var o=Goe[n];return Hoe(e,t,r,o.type,i,a,o.start,o.stop,!1,o.reversed)};function Hoe(e,t,r,n,i,a,o,s,l,u){var c=i.length,f;n==="linear"?f={node:"linearGradient",attrs:{x1:o.x,y1:o.y,x2:s.x,y2:s.y,gradientUnits:l?"userSpaceOnUse":"objectBoundingBox"},reversed:u}:n==="radial"&&(f={node:"radialGradient",reversed:u});for(var h=new Array(c),d=0;d<c;d++)f.reversed?h[c-1-d]=[Ioe((1-i[d][0])*100),i[d][1]]:h[d]=[Ioe(i[d][0]*100),i[d][1]];var v=t._fullLayout,m="g"+v._uid+"-"+r,b=v._defs.select(".gradients").selectAll("#"+m).data([n+h.join(";")],Du.identity);b.exit().remove(),b.enter().append(f.node).each(function(){var p=dd.select(this);f.attrs&&p.attr(f.attrs),p.attr("id",m);var k=p.selectAll("stop").data(h);k.exit().remove(),k.enter().append("stop"),k.each(function(M){var T=KO(M[1]);dd.select(this).attr({offset:M[0]+"%","stop-color":Jd.tinyRGB(T),"stop-opacity":T.getAlpha()})})}),e.style(a,JO(m,t)).style(a+"-opacity",null),e.classed("gradient_filled",!0)}Ta.pattern=function(e,t,r,n,i,a,o,s,l,u,c,f){var h=t==="legend";s&&(l==="overlay"?(u=s,c=Jd.contrast(u)):(u=void 0,c=s));var d=r._fullLayout,v="p"+d._uid+"-"+n,m,b,p=function(q,V,G,Z,j){return Z+(j-Z)*(q-V)/(G-V)},k,M,T,L,x={},C=KO(c),S=Jd.tinyRGB(C),g=C.getAlpha(),P=f*g;switch(i){case"/":m=a*Math.sqrt(2),b=a*Math.sqrt(2),k="M-"+m/4+","+b/4+"l"+m/2+",-"+b/2+"M0,"+b+"L"+m+",0M"+m/4*3+","+b/4*5+"l"+m/2+",-"+b/2,M=o*a,L="path",x={d:k,opacity:P,stroke:S,"stroke-width":M+"px"};break;case"\\":m=a*Math.sqrt(2),b=a*Math.sqrt(2),k="M"+m/4*3+",-"+b/4+"l"+m/2+","+b/2+"M0,0L"+m+","+b+"M-"+m/4+","+b/4*3+"l"+m/2+","+b/2,M=o*a,L="path",x={d:k,opacity:P,stroke:S,"stroke-width":M+"px"};break;case"x":m=a*Math.sqrt(2),b=a*Math.sqrt(2),k="M-"+m/4+","+b/4+"l"+m/2+",-"+b/2+"M0,"+b+"L"+m+",0M"+m/4*3+","+b/4*5+"l"+m/2+",-"+b/2+"M"+m/4*3+",-"+b/4+"l"+m/2+","+b/2+"M0,0L"+m+","+b+"M-"+m/4+","+b/4*3+"l"+m/2+","+b/2,M=a-a*Math.sqrt(1-o),L="path",x={d:k,opacity:P,stroke:S,"stroke-width":M+"px"};break;case"|":m=a,b=a,L="path",k="M"+m/2+",0L"+m/2+","+b,M=o*a,L="path",x={d:k,opacity:P,stroke:S,"stroke-width":M+"px"};break;case"-":m=a,b=a,L="path",k="M0,"+b/2+"L"+m+","+b/2,M=o*a,L="path",x={d:k,opacity:P,stroke:S,"stroke-width":M+"px"};break;case"+":m=a,b=a,L="path",k="M"+m/2+",0L"+m/2+","+b+"M0,"+b/2+"L"+m+","+b/2,M=a-a*Math.sqrt(1-o),L="path",x={d:k,opacity:P,stroke:S,"stroke-width":M+"px"};break;case".":m=a,b=a,o<Math.PI/4?T=Math.sqrt(o*a*a/Math.PI):T=p(o,Math.PI/4,1,a/2,a/Math.sqrt(2)),L="circle",x={cx:m/2,cy:b/2,r:T,opacity:P,fill:S};break;default:m=a,b=a,L="path",x={d:i,opacity:P,fill:S};break}var E=[i||"noSh",u||"noBg",c||"noFg",a,o].join(";"),z=d._defs.select(".patterns").selectAll("#"+v).data([E],Du.identity);z.exit().remove(),z.enter().append("pattern").each(function(){var q=dd.select(this);if(q.attr({id:v,width:m+"px",height:b+"px",patternUnits:"userSpaceOnUse",patternTransform:h?"scale(0.8)":""}),u){var V=KO(u),G=Jd.tinyRGB(V),Z=V.getAlpha(),j=q.selectAll("rect").data([0]);j.exit().remove(),j.enter().append("rect").attr({width:m+"px",height:b+"px",fill:G,"fill-opacity":Z})}var N=q.selectAll(L).data([0]);N.exit().remove(),N.enter().append(L).attr(x)}),e.style("fill",JO(v,r)).style("fill-opacity",null),e.classed("pattern_filled",!0)};Ta.initGradients=function(e){var t=e._fullLayout,r=Du.ensureSingle(t._defs,"g","gradients");r.selectAll("linearGradient,radialGradient").remove(),dd.select(e).selectAll(".gradient_filled").classed("gradient_filled",!1)};Ta.initPatterns=function(e){var t=e._fullLayout,r=Du.ensureSingle(t._defs,"g","patterns");r.selectAll("pattern").remove(),dd.select(e).selectAll(".pattern_filled").classed("pattern_filled",!1)};Ta.getPatternAttr=function(e,t,r){return e&&Du.isArrayOrTypedArray(e)?t<e.length?e[t]:r:e};Ta.pointStyle=function(e,t,r,n){if(e.size()){var i=Ta.makePointStyleFns(t);e.each(function(a){Ta.singlePointStyle(a,dd.select(this),t,i,r,n)})}};Ta.singlePointStyle=function(e,t,r,n,i,a){var o=r.marker,s=o.line;if(a&&a.i>=0&&e.i===void 0&&(e.i=a.i),t.style("opacity",n.selectedOpacityFn?n.selectedOpacityFn(e):e.mo===void 0?o.opacity:e.mo),n.ms2mrc){var l;e.ms==="various"||o.size==="various"?l=3:l=n.ms2mrc(e.ms),e.mrc=l,n.selectedSizeFn&&(l=e.mrc=n.selectedSizeFn(e));var u=Ta.symbolNumber(e.mx||o.symbol)||0;e.om=u%200>=100;var c=QO(e,r),f=$O(e,r);t.attr("d",Voe(u,l,c,f))}var h=!1,d,v,m;if(e.so)m=s.outlierwidth,v=s.outliercolor,d=o.outliercolor;else{var b=(s||{}).width;m=(e.mlw+1||b+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in e?v=e.mlcc=n.lineScale(e.mlc):Du.isArrayOrTypedArray(s.color)?v=Jd.defaultLine:v=s.color,Du.isArrayOrTypedArray(o.color)&&(d=Jd.defaultLine,h=!0),"mc"in e?d=e.mcc=n.markerScale(e.mc):d=o.color||o.colors||"rgba(0,0,0,0)",n.selectedColorFn&&(d=n.selectedColorFn(e))}let p=e.mld||(s||{}).dash;if(p&&Ta.dashLine(t,p,m),e.om)t.call(Jd.stroke,d).style({"stroke-width":(m||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:m)+"px");var k=o.gradient,M=e.mgt;M?h=!0:M=k&&k.type,Du.isArrayOrTypedArray(M)&&(M=M[0],Goe[M]||(M=0));var T=o.pattern,L=Ta.getPatternAttr,x=T&&(L(T.shape,e.i,"")||L(T.path,e.i,""));if(M&&M!=="none"){var C=e.mgc;C?h=!0:C=k.color;var S=r.uid;h&&(S+="-"+e.i),Ta.gradient(t,i,S,M,[[0,C],[1,d]],"fill")}else if(x){var g=!1,P=T.fgcolor;!P&&a&&a.color&&(P=a.color,g=!0);var E=L(P,e.i,a&&a.color||null),z=L(T.bgcolor,e.i,null),q=T.fgopacity,V=L(T.size,e.i,8),G=L(T.solidity,e.i,.3);g=g||e.mcc||Du.isArrayOrTypedArray(T.shape)||Du.isArrayOrTypedArray(T.path)||Du.isArrayOrTypedArray(T.bgcolor)||Du.isArrayOrTypedArray(T.fgcolor)||Du.isArrayOrTypedArray(T.size)||Du.isArrayOrTypedArray(T.solidity);var Z=r.uid;g&&(Z+="-"+e.i),Ta.pattern(t,"point",i,Z,x,V,G,e.mcc,T.fillmode,z,E,q)}else Du.isArrayOrTypedArray(d)?Jd.fill(t,d[e.i]):Jd.fill(t,d);m&&Jd.stroke(t,v)}};Ta.makePointStyleFns=function(e){var t={},r=e.marker;return t.markerScale=Ta.tryColorscale(r,""),t.lineScale=Ta.tryColorscale(r,"line"),gL.traceIs(e,"symbols")&&(t.ms2mrc=tst.isBubble(e)?rst(e):function(){return(r.size||6)/2}),e.selectedpoints&&Du.extendFlat(t,Ta.makeSelectedPointStyleFns(e)),t};Ta.makeSelectedPointStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.marker||{},a=r.marker||{},o=n.marker||{},s=i.opacity,l=a.opacity,u=o.opacity,c=l!==void 0,f=u!==void 0;(Du.isArrayOrTypedArray(s)||c||f)&&(t.selectedOpacityFn=function(T){var L=T.mo===void 0?i.opacity:T.mo;return T.selected?c?l:L:f?u:Noe*L});var h=i.color,d=a.color,v=o.color;(d||v)&&(t.selectedColorFn=function(T){var L=T.mcc||h;return T.selected?d||L:v||L});var m=i.size,b=a.size,p=o.size,k=b!==void 0,M=p!==void 0;return gL.traceIs(e,"symbols")&&(k||M)&&(t.selectedSizeFn=function(T){var L=T.mrc||m/2;return T.selected?k?b/2:L:M?p/2:L}),t};Ta.makeSelectedTextStyleFns=function(e){var t={},r=e.selected||{},n=e.unselected||{},i=e.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,l=a.color,u=o.color;return t.selectedTextColorFn=function(c){var f=c.tc||s;return c.selected?l||f:u||(l?f:Jd.addOpacity(f,Noe))},t};Ta.selectedPointStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Ta.makeSelectedPointStyleFns(t),n=t.marker||{},i=[];r.selectedOpacityFn&&i.push(function(a,o){a.style("opacity",r.selectedOpacityFn(o))}),r.selectedColorFn&&i.push(function(a,o){Jd.fill(a,r.selectedColorFn(o))}),r.selectedSizeFn&&i.push(function(a,o){var s=o.mx||n.symbol||0,l=r.selectedSizeFn(o);a.attr("d",Voe(Ta.symbolNumber(s),l,QO(o,t),$O(o,t))),o.mrc2=l}),i.length&&e.each(function(a){for(var o=dd.select(this),s=0;s<i.length;s++)i[s](o,a)})}};Ta.tryColorscale=function(e,t){var r=t?Du.nestedProperty(e,t).get():e;if(r){var n=r.color;if((r.colorscale||r._colorAx)&&Du.isArrayOrTypedArray(n))return Jot.makeColorScaleFuncFromTrace(r)}return Du.identity};var WO={start:1,end:-1,middle:0,bottom:1,top:-1};function joe(e,t,r,n,i){var a=dd.select(e.node().parentNode),o=t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle",s=t.indexOf("left")!==-1?"end":t.indexOf("right")!==-1?"start":"middle",l=n?n/.8+1:0,u=(mL.lineCount(e)-1)*est+1,c=WO[s]*l,f=r*.75+WO[o]*l+(WO[o]-1)*u*r/2;e.attr("text-anchor",s),i||a.attr("transform",sM(c,f))}function Woe(e,t){var r=e.ts||t.textfont.size;return Fb(r)&&r>0?r:0}Ta.textPointStyle=function(e,t,r){if(e.size()){var n;if(t.selectedpoints){var i=Ta.makeSelectedTextStyleFns(t);n=i.selectedTextColorFn}var a=t.texttemplate,o=r._fullLayout;e.each(function(s){var l=dd.select(this),u=a?Du.extractOption(s,t,"txt","texttemplate"):Du.extractOption(s,t,"tx","text");if(!u&&u!==0){l.remove();return}if(a){var c=t._module.formatLabels,f=c?c(s,t,o):{},h={};ist(h,t,s.i),u=Du.texttemplateString({data:[h,s,t._meta],fallback:t.texttemplatefallback,labels:f,locale:o._d3locale,template:u})}var d=s.tp||t.textposition,v=Woe(s,t),m=n?n(s):s.tc||t.textfont.color;l.call(Ta.font,{family:s.tf||t.textfont.family,weight:s.tw||t.textfont.weight,style:s.ty||t.textfont.style,variant:s.tv||t.textfont.variant,textcase:s.tC||t.textfont.textcase,lineposition:s.tE||t.textfont.lineposition,shadow:s.tS||t.textfont.shadow,size:v,color:m}).text(u).call(mL.convertToTspans,r).call(joe,d,v,s.mrc)})}};Ta.selectedTextStyle=function(e,t){if(!(!e.size()||!t.selectedpoints)){var r=Ta.makeSelectedTextStyleFns(t);e.each(function(n){var i=dd.select(this),a=r.selectedTextColorFn(n),o=n.tp||t.textposition,s=Woe(n,t);Jd.fill(i,a);var l=gL.traceIs(t,"bar-like");joe(i,o,s,n.mrc2||n.mrc,l)})}};var Roe=.5;Ta.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var r="M"+e[0],n=[],i;for(i=1;i<e.length-1;i++)n.push(pL(e[i-1],e[i],e[i+1],t));for(r+="Q"+n[0][0]+" "+e[1],i=2;i<e.length-1;i++)r+="C"+n[i-2][1]+" "+n[i-1][0]+" "+e[i];return r+="Q"+n[e.length-3][1]+" "+e[e.length-1],r};Ta.smoothclosed=function(e,t){if(e.length<3)return"M"+e.join("L")+"Z";var r="M"+e[0],n=e.length-1,i=[pL(e[n],e[0],e[1],t)],a;for(a=1;a<n;a++)i.push(pL(e[a-1],e[a],e[a+1],t));for(i.push(pL(e[n-1],e[n],e[0],t)),a=1;a<=n;a++)r+="C"+i[a-1][1]+" "+i[a][0]+" "+e[a];return r+="C"+i[n][1]+" "+i[0][0]+" "+e[0]+"Z",r};var Xoe,Zoe;function N3(e,t,r){return r&&(e=Yoe(e)),t?Db(e[1]):Rb(e[0])}function Rb(e){var t=dd.round(e,2);return Xoe=t,t}function Db(e){var t=dd.round(e,2);return Zoe=t,t}function pL(e,t,r,n){var i=e[0]-t[0],a=e[1]-t[1],o=r[0]-t[0],s=r[1]-t[1],l=Math.pow(i*i+a*a,Roe/2),u=Math.pow(o*o+s*s,Roe/2),c=(u*u*i-l*l*o)*n,f=(u*u*a-l*l*s)*n,h=3*u*(l+u),d=3*l*(l+u);return[[Rb(t[0]+(h&&c/h)),Db(t[1]+(h&&f/h))],[Rb(t[0]-(d&&c/d)),Db(t[1]-(d&&f/d))]]}var ust={hv:function(e,t,r){return"H"+Rb(t[0])+"V"+N3(t,1,r)},vh:function(e,t,r){return"V"+Db(t[1])+"H"+N3(t,0,r)},hvh:function(e,t,r){return"H"+Rb((e[0]+t[0])/2)+"V"+Db(t[1])+"H"+N3(t,0,r)},vhv:function(e,t,r){return"V"+Db((e[1]+t[1])/2)+"H"+Rb(t[0])+"V"+N3(t,1,r)}},cst=function(e,t,r){return"L"+N3(t,0,r)+","+N3(t,1,r)};Ta.steps=function(e){var t=ust[e]||cst;return function(r){for(var n="M"+Rb(r[0][0])+","+Db(r[0][1]),i=r.length,a=1;a<i;a++)n+=t(r[a-1],r[a],a===i-1);return n}};function Yoe(e,t){var r=e.backoff,n=e.trace,i=e.d,a=e.i;if(r&&n&&n.marker&&n.marker.angle%360===0&&n.line&&n.line.shape!=="spline"){var o=Du.isArrayOrTypedArray(r),s=e,l=t?t[0]:Xoe||0,u=t?t[1]:Zoe||0,c=s[0],f=s[1],h=c-l,d=f-u,v=Math.atan2(d,h),m=o?r[a]:r;if(m==="auto"){var b=s.i;n.type==="scatter"&&b--;var p=s.marker,k=p.symbol;Du.isArrayOrTypedArray(k)&&(k=k[b]);var M=p.size;Du.isArrayOrTypedArray(M)&&(M=M[b]),m=p?Ta.symbolBackOffs[Ta.symbolNumber(k)]*M:0,m+=Ta.getMarkerStandoff(i[b],n)||0}var T=c-m*Math.cos(v),L=f-m*Math.sin(v);(T<=c&&T>=l||T>=c&&T<=l)&&(L<=f&&L>=u||L>=f&&L<=u)&&(e=[T,L])}return e}Ta.applyBackoff=Yoe;Ta.makeTester=function(){var e=Du.ensureSingleById(dd.select("body"),"svg","js-plotly-tester",function(r){r.attr($ot.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),t=Du.ensureSingle(e,"path","js-reference-point",function(r){r.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});Ta.tester=e,Ta.testref=t};Ta.savedBBoxes={};var XO=0,fst=1e4;Ta.bBox=function(e,t,r){r||(r=Doe(e));var n;if(r){if(n=Ta.savedBBoxes[r],n)return Du.extendFlat({},n)}else if(e.childNodes.length===1){var i=e.childNodes[0];if(r=Doe(i),r){var a=+i.getAttribute("x")||0,o=+i.getAttribute("y")||0,s=i.getAttribute("transform");if(!s){var l=Ta.bBox(i,!1,r);return a&&(l.left+=a,l.right+=a),o&&(l.top+=o,l.bottom+=o),l}if(r+="~"+a+"~"+o+"~"+s,n=Ta.savedBBoxes[r],n)return Du.extendFlat({},n)}}var u,c;t?u=e:(c=Ta.tester.node(),u=e.cloneNode(!0),c.appendChild(u)),dd.select(u).attr("transform",null).call(mL.positionText,0,0);var f=u.getBoundingClientRect(),h=Ta.testref.node().getBoundingClientRect();t||c.removeChild(u);var d={height:f.height,width:f.width,left:f.left-h.left,top:f.top-h.top,right:f.right-h.left,bottom:f.bottom-h.top};return XO>=fst&&(Ta.savedBBoxes={},XO=0),r&&(Ta.savedBBoxes[r]=d),XO++,Du.extendFlat({},d)};function Doe(e){var t=e.getAttribute("data-unformatted");if(t!==null)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}Ta.setClipUrl=function(e,t,r){e.attr("clip-path",JO(t,r))};function JO(e,t){if(!e)return null;var r=t._context,n=r._exportedPlot?"":r._baseUrl||"";return n?"url('"+n+"#"+e+"')":"url(#"+e+")"}Ta.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||0,y:+i[1]||0}};Ta.setTranslate=function(e,t,r){var n=/(\btranslate\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||0,r=r||0,o=o.replace(n,"").trim(),o+=sM(t,r),o=o.trim(),e[a]("transform",o),o};Ta.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,r=e.attr?"attr":"getAttribute",n=e[r]("transform")||"",i=n.replace(t,function(a,o,s){return[o,s].join(" ")}).split(" ");return{x:+i[0]||1,y:+i[1]||1}};Ta.setScale=function(e,t,r){var n=/(\bscale\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||1,r=r||1,o=o.replace(n,"").trim(),o+="scale("+t+","+r+")",o=o.trim(),e[a]("transform",o),o};var hst=/\s*sc.*/;Ta.setPointGroupScale=function(e,t,r){if(t=t||1,r=r||1,!!e){var n=t===1&&r===1?"":"scale("+t+","+r+")";e.each(function(){var i=(this.getAttribute("transform")||"").replace(hst,"");i+=n,i=i.trim(),this.setAttribute("transform",i)})}};var dst=/translate\([^)]*\)\s*$/;Ta.setTextPointsScale=function(e,t,r){e&&e.each(function(){var n,i=dd.select(this),a=i.select("text");if(a.node()){var o=parseFloat(a.attr("x")||0),s=parseFloat(a.attr("y")||0),l=(i.attr("transform")||"").match(dst);t===1&&r===1?n=[]:n=[sM(o,s),"scale("+t+","+r+")",sM(-o,-s)],l&&n.push(l),i.attr("transform",n.join(""))}})};function $O(e,t){var r;return e&&(r=e.mf),r===void 0&&(r=t.marker&&t.marker.standoff||0),!t._geo&&!t._xA?-r:r}Ta.getMarkerStandoff=$O;var oM=Math.atan2,Ib=Math.cos,U3=Math.sin;function Foe(e,t){var r=t[0],n=t[1];return[r*Ib(e)-n*U3(e),r*U3(e)+n*Ib(e)]}var zoe,qoe,Ooe,Boe,ZO,YO;function QO(e,t){var r=e.ma;r===void 0&&(r=t.marker.angle,(!r||Du.isArrayOrTypedArray(r))&&(r=0));var n,i,a=t.marker.angleref;if(a==="previous"||a==="north"){if(t._geo){var o=t._geo.project(e.lonlat);n=o[0],i=o[1]}else{var s=t._xA,l=t._yA;if(s&&l)n=s.c2p(e.x),i=l.c2p(e.y);else return 90}if(t._geo){var u=e.lonlat[0],c=e.lonlat[1],f=t._geo.project([u,c+1e-5]),h=t._geo.project([u+1e-5,c]),d=oM(h[1]-i,h[0]-n),v=oM(f[1]-i,f[0]-n),m;if(a==="north")m=r/180*Math.PI;else if(a==="previous"){var b=u/180*Math.PI,p=c/180*Math.PI,k=zoe/180*Math.PI,M=qoe/180*Math.PI,T=k-b,L=Ib(M)*U3(T),x=U3(M)*Ib(p)-Ib(M)*U3(p)*Ib(T);m=-oM(L,x)-Math.PI,zoe=u,qoe=c}var C=Foe(d,[Ib(m),0]),S=Foe(v,[U3(m),0]);r=oM(C[1]+S[1],C[0]+S[0])/Math.PI*180,a==="previous"&&!(YO===t.uid&&e.i===ZO+1)&&(r=null)}if(a==="previous"&&!t._geo)if(YO===t.uid&&e.i===ZO+1&&Fb(n)&&Fb(i)){var g=n-Ooe,P=i-Boe,E=t.line&&t.line.shape||"",z=E.slice(E.length-1);z==="h"&&(P=0),z==="v"&&(g=0),r+=oM(P,g)/Math.PI*180+90}else r=null}return Ooe=n,Boe=i,ZO=e.i,YO=t.uid,r}Ta.getMarkerAngle=QO});var qb=ye((lar,ese)=>{"use strict";var V3=qa(),vst=Eo(),pst=Mc(),eB=Oa(),zb=Pr(),Joe=zb.strTranslate,yL=So(),_L=ka(),G3=Zl(),$oe=X1(),gst=Dh().OPPOSITE_SIDE,Qoe=/ [XY][0-9]* /,tB=1.6,rB=1.6;function mst(e,t,r){var n=e._fullLayout,i=r.propContainer,a=r.propName,o=r.placeholder,s=r.traceIndex,l=r.avoid||{},u=r.attributes,c=r.transform,f=r.containerGroup,h=1,d=i.title,v=(d&&d.text?d.text:"").trim(),m=!1,b=d&&d.font?d.font:{},p=b.family,k=b.size,M=b.color,T=b.weight,L=b.style,x=b.variant,C=b.textcase,S=b.lineposition,g=b.shadow,P=r.subtitlePropName,E=!!P,z=r.subtitlePlaceholder,q=(i.title||{}).subtitle||{text:"",font:{}},V=(q.text||"").trim(),G=!1,Z=1,j=q.font,N=j.family,H=j.size,ie=j.color,ae=j.weight,_e=j.style,Ee=j.variant,Ce=j.textcase,ge=j.lineposition,re=j.shadow,Se;a==="title.text"?Se="titleText":a.indexOf("axis")!==-1?Se="axisTitleText":a.indexOf("colorbar")!==-1&&(Se="colorbarTitleText");var ke=e._context.edits[Se];function be(Vt,rr){return Vt===void 0||rr===void 0?!1:Vt.replace(Qoe," % ")===rr.replace(Qoe," % ")}v===""?h=0:be(v,o)&&(ke||(v=""),h=.2,m=!0),E&&(V===""?Z=0:be(V,z)&&(ke||(V=""),Z=.2,G=!0)),r._meta?v=zb.templateString(v,r._meta):n._meta&&(v=zb.templateString(v,n._meta));var Be=v||V||ke,Le;f||(f=zb.ensureSingle(n._infolayer,"g","g-"+t),Le=n._hColorbarMoveTitle);var me=f.selectAll("text."+t).data(Be?[0]:[]);me.enter().append("text"),me.text(v).attr("class",t),me.exit().remove();var Pe=null,ce=t+"-subtitle",He=V||ke;if(E&&(Pe=f.selectAll("text."+ce).data(He?[0]:[]),Pe.enter().append("text"),Pe.text(V).attr("class",ce),Pe.exit().remove()),!Be)return f;function lt(Vt,rr){zb.syncOrAsync([mt,Ht],{title:Vt,subtitle:rr})}function mt(Vt){var rr=Vt.title,tt=Vt.subtitle,je;!c&&Le&&(c={}),c?(je="",c.rotate&&(je+="rotate("+[c.rotate,u.x,u.y]+")"),(c.offset||Le)&&(je+=Joe(0,(c.offset||0)-(Le||0)))):je=null,rr.attr("transform",je);function Ue(Et){if(Et){var pt=V3.select(Et.node().parentNode).select("."+ce);if(!pt.empty()){var jt=Et.node().getBBox();if(jt.height){var or=jt.y+jt.height+tB*H;pt.attr("y",or)}}}}if(rr.style("opacity",h*_L.opacity(M)).call(yL.font,{color:_L.rgb(M),size:V3.round(k,2),family:p,weight:T,style:L,variant:x,textcase:C,shadow:g,lineposition:S}).attr(u).call(G3.convertToTspans,e,Ue),tt&&!tt.empty()){var Ae=f.select("."+t+"-math-group"),rt=rr.node().getBBox(),St=Ae.node()?Ae.node().getBBox():void 0,Tt=St?St.y+St.height+tB*H:rt.y+rt.height+rB*H,dt=zb.extendFlat({},u,{y:Tt});tt.attr("transform",je),tt.style("opacity",Z*_L.opacity(ie)).call(yL.font,{color:_L.rgb(ie),size:V3.round(H,2),family:N,weight:ae,style:_e,variant:Ee,textcase:Ce,shadow:re,lineposition:ge}).attr(dt).call(G3.convertToTspans,e)}return pst.previousPromises(e)}function Ht(Vt){var rr=Vt.title,tt=V3.select(rr.node().parentNode);if(l&&l.selection&&l.side&&v){tt.attr("transform",null);var je=gst[l.side],Ue=l.side==="left"||l.side==="top"?-1:1,Ae=vst(l.pad)?l.pad:2,rt=yL.bBox(tt.node()),St={t:0,b:0,l:0,r:0},Tt=e._fullLayout._reservedMargin;for(var dt in Tt)for(var Et in Tt[dt]){var pt=Tt[dt][Et];St[Et]=Math.max(St[Et],pt)}var jt={left:St.l,top:St.t,right:n.width-St.r,bottom:n.height-St.b},or=l.maxShift||Ue*(jt[l.side]-rt[l.side]),mr=0;if(or<0)mr=or;else{var Ar=l.offsetLeft||0,ei=l.offsetTop||0;rt.left-=Ar,rt.right-=Ar,rt.top-=ei,rt.bottom-=ei,l.selection.each(function(){var jr=yL.bBox(this);zb.bBoxIntersect(rt,jr,Ae)&&(mr=Math.max(mr,Ue*(jr[l.side]-rt[je])+Ae))}),mr=Math.min(or,mr),i._titleScoot=Math.abs(mr)}if(mr>0||or<0){var qr={left:[-mr,0],right:[mr,0],top:[0,-mr],bottom:[0,mr]}[l.side];tt.attr("transform",Joe(qr[0],qr[1]))}}}me.call(lt,Pe);function at(Vt,rr){Vt.text(rr).on("mouseover.opacity",function(){V3.select(this).transition().duration($oe.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){V3.select(this).transition().duration($oe.HIDE_PLACEHOLDER).style("opacity",0)})}if(ke&&(v?me.on(".opacity",null):(at(me,o),m=!0),me.call(G3.makeEditable,{gd:e}).on("edit",function(Vt){s!==void 0?eB.call("_guiRestyle",e,a,Vt,s):eB.call("_guiRelayout",e,a,Vt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(lt)}).on("input",function(Vt){this.text(Vt||" ").call(G3.positionText,u.x,u.y)}),E)){if(E&&!v){var ct=me.node().getBBox(),ar=ct.y+ct.height+rB*H;Pe.attr("y",ar)}V?Pe.on(".opacity",null):(at(Pe,z),G=!0),Pe.call(G3.makeEditable,{gd:e}).on("edit",function(Vt){eB.call("_guiRelayout",e,"title.subtitle.text",Vt)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(lt)}).on("input",function(Vt){this.text(Vt||" ").call(G3.positionText,Pe.attr("x"),Pe.attr("y"))})}return me.classed("js-placeholder",m),Pe&&!Pe.empty()&&Pe.classed("js-placeholder",G),f}ese.exports={draw:mst,SUBTITLE_PADDING_EM:rB,SUBTITLE_PADDING_MATHJAX_EM:tB}});var xm=ye((uar,ase)=>{"use strict";var yst=qa(),_st=d3().utcFormat,yc=Pr(),xst=yc.numberFormat,ym=Eo(),f_=yc.cleanNumber,bst=yc.ms2DateTime,tse=yc.dateTime2ms,_m=yc.ensureNumber,rse=yc.isArrayOrTypedArray,h_=fs(),xL=h_.FP_SAFE,Sg=h_.BADNUM,wst=h_.LOG_CLIP,Tst=h_.ONEWEEK,bL=h_.ONEDAY,wL=h_.ONEHOUR,ise=h_.ONEMIN,nse=h_.ONESEC,TL=df(),ML=Rh(),AL=ML.HOUR_PATTERN,SL=ML.WEEKDAY_PATTERN;function lM(e){return Math.pow(10,e)}function iB(e){return e!=null}ase.exports=function(t,r){r=r||{};var n=t._id||"x",i=n.charAt(0);function a(T,L){if(T>0)return Math.log(T)/Math.LN10;if(T<=0&&L&&t.range&&t.range.length===2){var x=t.range[0],C=t.range[1];return .5*(x+C-2*wst*Math.abs(x-C))}else return Sg}function o(T,L,x,C){if((C||{}).msUTC&&ym(T))return+T;var S=tse(T,x||t.calendar);if(S===Sg)if(ym(T)){T=+T;var g=Math.floor(yc.mod(T+.05,1)*10),P=Math.round(T-g/10);S=tse(new Date(P))+g/10}else return Sg;return S}function s(T,L,x){return bst(T,L,x||t.calendar)}function l(T){return t._categories[Math.round(T)]}function u(T){if(iB(T)){if(t._categoriesMap===void 0&&(t._categoriesMap={}),t._categoriesMap[T]!==void 0)return t._categoriesMap[T];t._categories.push(typeof T=="number"?String(T):T);var L=t._categories.length-1;return t._categoriesMap[T]=L,L}return Sg}function c(T,L){for(var x=new Array(L),C=0;C<L;C++){var S=(T[0]||[])[C],g=(T[1]||[])[C];x[C]=f([S,g])}return x}function f(T){if(t._categoriesMap)return t._categoriesMap[T]}function h(T){var L=f(T);if(L!==void 0)return L;if(ym(T))return+T}function d(T){return ym(T)?+T:f(T)}function v(T,L,x){return yst.round(x+L*T,2)}function m(T,L,x){return(T-x)/L}var b=function(L){return ym(L)?v(L,t._m,t._b):Sg},p=function(T){return m(T,t._m,t._b)};if(t.rangebreaks){var k=i==="y";b=function(T){if(!ym(T))return Sg;var L=t._rangebreaks.length;if(!L)return v(T,t._m,t._b);var x=k;t.range[0]>t.range[1]&&(x=!x);for(var C=x?-1:1,S=C*T,g=0,P=0;P<L;P++){var E=C*t._rangebreaks[P].min,z=C*t._rangebreaks[P].max;if(S<E)break;if(S>z)g=P+1;else{g=S<(E+z)/2?P:P+1;break}}var q=t._B[g]||0;return isFinite(q)?v(T,t._m2,q):0},p=function(T){var L=t._rangebreaks.length;if(!L)return m(T,t._m,t._b);for(var x=0,C=0;C<L&&!(T<t._rangebreaks[C].pmin);C++)T>t._rangebreaks[C].pmax&&(x=C+1);return m(T,t._m2,t._B[x])}}t.c2l=t.type==="log"?a:_m,t.l2c=t.type==="log"?lM:_m,t.l2p=b,t.p2l=p,t.c2p=t.type==="log"?function(T,L){return b(a(T,L))}:b,t.p2c=t.type==="log"?function(T){return lM(p(T))}:p,["linear","-"].indexOf(t.type)!==-1?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=f_,t.c2d=t.c2r=t.l2d=t.l2r=_m,t.d2p=t.r2p=function(T){return t.l2p(f_(T))},t.p2d=t.p2r=p,t.cleanPos=_m):t.type==="log"?(t.d2r=t.d2l=function(T,L){return a(f_(T),L)},t.r2d=t.r2c=function(T){return lM(f_(T))},t.d2c=t.r2l=f_,t.c2d=t.l2r=_m,t.c2r=a,t.l2d=lM,t.d2p=function(T,L){return t.l2p(t.d2r(T,L))},t.p2d=function(T){return lM(p(T))},t.r2p=function(T){return t.l2p(f_(T))},t.p2r=p,t.cleanPos=_m):t.type==="date"?(t.d2r=t.r2d=yc.identity,t.d2c=t.r2c=t.d2l=t.r2l=o,t.c2d=t.c2r=t.l2d=t.l2r=s,t.d2p=t.r2p=function(T,L,x){return t.l2p(o(T,0,x))},t.p2d=t.p2r=function(T,L,x){return s(p(T),L,x)},t.cleanPos=function(T){return yc.cleanDate(T,Sg,t.calendar)}):t.type==="category"?(t.d2c=t.d2l=u,t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(T){var L=d(T);return L!==void 0?L:t.fraction2r(.5)},t.l2r=t.c2r=_m,t.r2l=d,t.d2p=function(T){return t.l2p(t.r2c(T))},t.p2d=function(T){return l(p(T))},t.r2p=t.d2p,t.p2r=p,t.cleanPos=function(T){return typeof T=="string"&&T!==""?T:_m(T)}):t.type==="multicategory"&&(t.r2d=t.c2d=t.l2d=l,t.d2r=t.d2l_noadd=h,t.r2c=function(T){var L=h(T);return L!==void 0?L:t.fraction2r(.5)},t.r2c_just_indices=f,t.l2r=t.c2r=_m,t.r2l=h,t.d2p=function(T){return t.l2p(t.r2c(T))},t.p2d=function(T){return l(p(T))},t.r2p=t.d2p,t.p2r=p,t.cleanPos=function(T){return Array.isArray(T)||typeof T=="string"&&T!==""?T:_m(T)},t.setupMultiCategory=function(T){var L=t._traceIndices,x,C,S=t._matchGroup;if(S&&t._categories.length===0){for(var g in S)if(g!==n){var P=r[TL.id2name(g)];L=L.concat(P._traceIndices)}}var E=[[0,{}],[0,{}]],z=[];for(x=0;x<L.length;x++){var q=T[L[x]];if(i in q){var V=q[i],G=q._length||yc.minRowLength(V);if(rse(V[0])&&rse(V[1]))for(C=0;C<G;C++){var Z=V[0][C],j=V[1][C];iB(Z)&&iB(j)&&(z.push([Z,j]),Z in E[0][1]||(E[0][1][Z]=E[0][0]++),j in E[1][1]||(E[1][1][j]=E[1][0]++))}}}for(z.sort(function(N,H){var ie=E[0][1],ae=ie[N[0]]-ie[H[0]];if(ae)return ae;var _e=E[1][1];return _e[N[1]]-_e[H[1]]}),x=0;x<z.length;x++)u(z[x])}),t.fraction2r=function(T){var L=t.r2l(t.range[0]),x=t.r2l(t.range[1]);return t.l2r(L+T*(x-L))},t.r2fraction=function(T){var L=t.r2l(t.range[0]),x=t.r2l(t.range[1]);return(t.r2l(T)-L)/(x-L)},t.limitRange=function(T){var L=t.minallowed,x=t.maxallowed;if(!(L===void 0&&x===void 0)){T||(T="range");var C=yc.nestedProperty(t,T).get(),S=yc.simpleMap(C,t.r2l),g=S[1]<S[0];g&&S.reverse();var P=yc.simpleMap([L,x],t.r2l);if(L!==void 0&&S[0]<P[0]&&(C[g?1:0]=L,S[0]=P[0]),x!==void 0&&S[1]>P[1]&&(C[g?0:1]=x,S[1]=P[1]),S[0]>=S[1])if(L!==void 0){var E=P[0]+1;x!==void 0&&(E=Math.min(E,P[1])),C[g?0:1]=t.l2r(E)}else x!==void 0&&(C[g?1:0]=t.l2r(P[1]-1))}},t.cleanRange=function(T,L){t._cleanRange(T,L),t.limitRange(T)},t._cleanRange=function(T,L){L||(L={}),T||(T="range");var x=yc.nestedProperty(t,T).get(),C,S;if(t.type==="date"?S=yc.dfltRange(t.calendar):i==="y"?S=ML.DFLTRANGEY:t._name==="realaxis"?S=[0,1]:S=L.dfltRange||ML.DFLTRANGEX,S=S.slice(),(t.rangemode==="tozero"||t.rangemode==="nonnegative")&&(S[0]=0),!x||x.length!==2){yc.nestedProperty(t,T).set(S);return}var g=x[0]===null,P=x[1]===null;for(t.type==="date"&&!t.autorange&&(x[0]=yc.cleanDate(x[0],Sg,t.calendar),x[1]=yc.cleanDate(x[1],Sg,t.calendar)),C=0;C<2;C++)if(t.type==="date"){if(!yc.isDateTime(x[C],t.calendar)){t[T]=S;break}if(t.r2l(x[0])===t.r2l(x[1])){var E=yc.constrain(t.r2l(x[0]),yc.MIN_MS+1e3,yc.MAX_MS-1e3);x[0]=t.l2r(E-1e3),x[1]=t.l2r(E+1e3);break}}else{if(!ym(x[C]))if(!(g||P)&&ym(x[1-C]))x[C]=x[1-C]*(C?10:.1);else{t[T]=S;break}if(x[C]<-xL?x[C]=-xL:x[C]>xL&&(x[C]=xL),x[0]===x[1]){var z=Math.max(1,Math.abs(x[0]*1e-6));x[0]-=z,x[1]+=z}}},t.setScale=function(T){var L=r._size;if(t.overlaying){var x=TL.getFromId({_fullLayout:r},t.overlaying);t.domain=x.domain}var C=T&&t._r?"_r":"range",S=t.calendar;t.cleanRange(C);var g=t.r2l(t[C][0],S),P=t.r2l(t[C][1],S),E=i==="y";if(E?(t._offset=L.t+(1-t.domain[1])*L.h,t._length=L.h*(t.domain[1]-t.domain[0]),t._m=t._length/(g-P),t._b=-t._m*P):(t._offset=L.l+t.domain[0]*L.w,t._length=L.w*(t.domain[1]-t.domain[0]),t._m=t._length/(P-g),t._b=-t._m*g),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks){var z,q;if(t._rangebreaks=t.locateBreaks(Math.min(g,P),Math.max(g,P)),t._rangebreaks.length){for(z=0;z<t._rangebreaks.length;z++)q=t._rangebreaks[z],t._lBreaks+=Math.abs(q.max-q.min);var V=E;g>P&&(V=!V),V&&t._rangebreaks.reverse();var G=V?-1:1;for(t._m2=G*t._length/(Math.abs(P-g)-t._lBreaks),t._B.push(-t._m2*(E?P:g)),z=0;z<t._rangebreaks.length;z++)q=t._rangebreaks[z],t._B.push(t._B[t._B.length-1]-G*t._m2*(q.max-q.min));for(z=0;z<t._rangebreaks.length;z++)q=t._rangebreaks[z],q.pmin=b(q.min),q.pmax=b(q.max)}}if(!isFinite(t._m)||!isFinite(t._b)||t._length<0)throw r._replotting=!1,new Error("Something went wrong with axis scaling")},t.maskBreaks=function(T){var L=t.rangebreaks||[],x,C,S,g,P;L._cachedPatterns||(L._cachedPatterns=L.map(function(ie){return ie.enabled&&ie.bounds?yc.simpleMap(ie.bounds,ie.pattern?f_:t.d2c):null})),L._cachedValues||(L._cachedValues=L.map(function(ie){return ie.enabled&&ie.values?yc.simpleMap(ie.values,t.d2c).sort(yc.sorterAsc):null}));for(var E=0;E<L.length;E++){var z=L[E];if(z.enabled){if(z.bounds){var q=z.pattern;switch(x=L._cachedPatterns[E],C=x[0],S=x[1],q){case SL:P=new Date(T),g=P.getUTCDay(),C>S&&(S+=7,g<C&&(g+=7));break;case AL:P=new Date(T);var V=P.getUTCHours(),G=P.getUTCMinutes(),Z=P.getUTCSeconds(),j=P.getUTCMilliseconds();g=V+(G/60+Z/3600+j/36e5),C>S&&(S+=24,g<C&&(g+=24));break;case"":g=T;break}if(g>=C&&g<S)return Sg}else for(var N=L._cachedValues[E],H=0;H<N.length;H++)if(C=N[H],S=C+z.dvalue,T>=C&&T<S)return Sg}}return T},t.locateBreaks=function(T,L){var x,C,S,g,P=[];if(!t.rangebreaks)return P;var E=t.rangebreaks.slice().sort(function(_e,Ee){return _e.pattern===SL&&Ee.pattern===AL?-1:Ee.pattern===SL&&_e.pattern===AL?1:0}),z=function(_e,Ee){if(_e=yc.constrain(_e,T,L),Ee=yc.constrain(Ee,T,L),_e!==Ee){for(var Ce=!0,ge=0;ge<P.length;ge++){var re=P[ge];_e<re.max&&Ee>=re.min&&(_e<re.min&&(re.min=_e),Ee>re.max&&(re.max=Ee),Ce=!1)}Ce&&P.push({min:_e,max:Ee})}};for(x=0;x<E.length;x++){var q=E[x];if(q.enabled)if(q.bounds){var V=T,G=L;q.pattern&&(V=Math.floor(V)),C=yc.simpleMap(q.bounds,q.pattern?f_:t.r2l),S=C[0],g=C[1];var Z=new Date(V),j,N;switch(q.pattern){case SL:N=Tst,j=((g<S?7:0)+(g-S))*bL,V+=S*bL-(Z.getUTCDay()*bL+Z.getUTCHours()*wL+Z.getUTCMinutes()*ise+Z.getUTCSeconds()*nse+Z.getUTCMilliseconds());break;case AL:N=bL,j=((g<S?24:0)+(g-S))*wL,V+=S*wL-(Z.getUTCHours()*wL+Z.getUTCMinutes()*ise+Z.getUTCSeconds()*nse+Z.getUTCMilliseconds());break;default:V=Math.min(C[0],C[1]),G=Math.max(C[0],C[1]),N=G-V,j=N}for(var H=V;H<G;H+=N)z(H,H+j)}else for(var ie=yc.simpleMap(q.values,t.d2c),ae=0;ae<ie.length;ae++)S=ie[ae],g=S+q.dvalue,z(S,g)}return P.sort(function(_e,Ee){return _e.min-Ee.min}),P},t.makeCalcdata=function(T,L,x){var C,S,g,P,E=t.type,z=E==="date"&&T[L+"calendar"];if(L in T){if(C=T[L],P=T._length||yc.minRowLength(C),yc.isTypedArray(C)&&(E==="linear"||E==="log")){if(P===C.length)return C;if(C.subarray)return C.subarray(0,P)}if(E==="multicategory")return c(C,P);for(S=new Array(P),g=0;g<P;g++)S[g]=t.d2c(C[g],0,z,x)}else{var q=L+"0"in T?t.d2c(T[L+"0"],0,z):0,V=T["d"+L]?Number(T["d"+L]):1;for(C=T[{x:"y",y:"x"}[L]],P=T._length||C.length,S=new Array(P),g=0;g<P;g++)S[g]=q+g*V}if(t.rangebreaks)for(g=0;g<P;g++)S[g]=t.maskBreaks(S[g]);return S},t.isValidRange=function(T,L){return Array.isArray(T)&&T.length===2&&(L&&T[0]===null||ym(t.r2l(T[0])))&&(L&&T[1]===null||ym(t.r2l(T[1])))},t.getAutorangeDflt=function(T,L){var x=!t.isValidRange(T,"nullOk");return x&&L&&L.reverseDflt?x="reversed":T&&(T[0]===null&&T[1]===null?x=!0:T[0]===null&&T[1]!==null?x="min":T[0]!==null&&T[1]===null&&(x="max")),x},t.isReversed=function(){var T=t.autorange;return T==="reversed"||T==="min reversed"||T==="max reversed"},t.isPtWithinRange=function(T,L){var x=t.c2l(T[i],null,L),C=t.r2l(t.range[0]),S=t.r2l(t.range[1]);return C<S?C<=x&&x<=S:S<=x&&x<=C},t._emptyCategories=function(){t._categories=[],t._categoriesMap={}},t.clearCalc=function(){var T=t._matchGroup;if(T){var L=null,x=null;for(var C in T){var S=r[TL.id2name(C)];if(S._categories){L=S._categories,x=S._categoriesMap;break}}L&&x?(t._categories=L,t._categoriesMap=x):t._emptyCategories()}else t._emptyCategories();if(t._initialCategories)for(var g=0;g<t._initialCategories.length;g++)u(t._initialCategories[g])},t.sortByInitialCategories=function(){var T=[];if(t._emptyCategories(),t._initialCategories)for(var L=0;L<t._initialCategories.length;L++)u(t._initialCategories[L]);T=T.concat(t._traceIndices);var x=t._matchGroup;for(var C in x)if(n!==C){var S=r[TL.id2name(C)];S._categories=t._categories,S._categoriesMap=t._categoriesMap,T=T.concat(S._traceIndices)}return T};var M=r._d3locale;t.type==="date"&&(t._dateFormat=M?M.timeFormat:_st,t._extraFormat=r._extraFormat),t._separators=r.separators,t._numFormat=M?M.numberFormat:xst,delete t._minDtick,delete t._forceTick0}});var H3=ye((car,use)=>{"use strict";var ose=Eo(),nB=Pr(),Ast=fs().BADNUM,EL=nB.isArrayOrTypedArray,Sst=nB.isDateTime,Mst=nB.cleanNumber,sse=Math.round;use.exports=function(t,r,n){var i=t,a=n.noMultiCategory;if(EL(i)&&!i.length)return"-";if(!a&&Pst(i))return"multicategory";if(a&&Array.isArray(i[0])){for(var o=[],s=0;s<i.length;s++)if(EL(i[s]))for(var l=0;l<i[s].length;l++)o.push(i[s][l]);i=o}if(Cst(i,r))return"date";var u=n.autotypenumbers!=="strict";return Lst(i,u)?"category":kst(i,u)?"linear":"-"};function Est(e,t){return t?ose(e):typeof e=="number"}function kst(e,t){for(var r=e.length,n=0;n<r;n++)if(Est(e[n],t))return!0;return!1}function Cst(e,t){for(var r=e.length,n=lse(r),i=0,a=0,o={},s=0;s<r;s+=n){var l=sse(s),u=e[l],c=String(u);o[c]||(o[c]=1,Sst(u,t)&&i++,ose(u)&&a++)}return i>a*2}function lse(e){return Math.max(1,(e-1)/1e3)}function Lst(e,t){for(var r=e.length,n=lse(r),i=0,a=0,o={},s=0;s<r;s+=n){var l=sse(s),u=e[l],c=String(u);if(!o[c]){o[c]=1;var f=typeof u;f==="boolean"?a++:(t?Mst(u)!==Ast:f==="number")?i++:f==="string"&&a++}}return a>i*2}function Pst(e){return EL(e[0])&&EL(e[1])}});var Mg=ye((far,mse)=>{"use strict";var Ist=qa(),dse=Eo(),d_=Pr(),kL=fs().FP_SAFE,Rst=Oa(),Dst=So(),vse=df(),Fst=vse.getFromId,zst=vse.isLinked;mse.exports={applyAutorangeOptions:gse,getAutoRange:aB,makePadFn:oB,doAutoRange:Ost,findExtremes:Bst,concatExtremes:uB};function aB(e,t){var r,n,i=[],a=e._fullLayout,o=oB(a,t,0),s=oB(a,t,1),l=uB(e,t),u=l.min,c=l.max;if(u.length===0||c.length===0)return d_.simpleMap(t.range,t.r2l);var f=u[0].val,h=c[0].val;for(r=1;r<u.length&&f===h;r++)f=Math.min(f,u[r].val);for(r=1;r<c.length&&f===h;r++)h=Math.max(h,c[r].val);var d=t.autorange,v=d==="reversed"||d==="min reversed"||d==="max reversed";if(!v&&t.range){var m=d_.simpleMap(t.range,t.r2l);v=m[1]<m[0]}t.autorange==="reversed"&&(t.autorange=!0);var b=t.rangemode,p=b==="tozero",k=b==="nonnegative",M=t._length,T=M/10,L=0,x,C,S,g,P,E;for(r=0;r<u.length;r++)for(x=u[r],n=0;n<c.length;n++)C=c[n],E=C.val-x.val-cse(t,x.val,C.val),E>0&&(P=M-o(x)-s(C),P>T?E/P>L&&(S=x,g=C,L=E/P):E/M>L&&(S={val:x.val,nopad:1},g={val:C.val,nopad:1},L=E/M));function z(j,N){return Math.max(j,s(N))}if(f===h){var q=f-1,V=f+1;if(p)if(f===0)i=[0,1];else{var G=(f>0?c:u).reduce(z,0),Z=f/(1-Math.min(.5,G/M));i=f>0?[0,Z]:[Z,0]}else k?i=[Math.max(0,q),Math.max(1,V)]:i=[q,V]}else p?(S.val>=0&&(S={val:0,nopad:1}),g.val<=0&&(g={val:0,nopad:1})):k&&(S.val-L*o(S)<0&&(S={val:0,nopad:1}),g.val<=0&&(g={val:1,nopad:1})),L=(g.val-S.val-cse(t,x.val,C.val))/(M-o(S)-s(g)),i=[S.val-L*o(S),g.val+L*s(g)];return i=gse(i,t),t.limitRange&&t.limitRange(),v&&i.reverse(),d_.simpleMap(i,t.l2r||Number)}function cse(e,t,r){var n=0;if(e.rangebreaks)for(var i=e.locateBreaks(t,r),a=0;a<i.length;a++){var o=i[a];n+=o.max-o.min}return n}function oB(e,t,r){var n=.05*t._length,i=t._anchorAxis||{};if((t.ticklabelposition||"").indexOf("inside")!==-1||(i.ticklabelposition||"").indexOf("inside")!==-1){var a=t.isReversed();if(!a){var o=d_.simpleMap(t.range,t.r2l);a=o[1]<o[0]}a&&(r=!r)}var s=0;return zst(e,t._id)||(s=qst(e,t,r)),n=Math.max(s,n),t.constrain==="domain"&&t._inputDomain&&(n*=(t._inputDomain[1]-t._inputDomain[0])/(t.domain[1]-t.domain[0])),function(u){return u.nopad?0:u.pad+(u.extrapad?n:s)}}var fse=3;function qst(e,t,r){var n=0,i=t._id.charAt(0)==="x";for(var a in e._plots){var o=e._plots[a];if(!(t._id!==o.xaxis._id&&t._id!==o.yaxis._id)){var s=(i?o.yaxis:o.xaxis)||{};if((s.ticklabelposition||"").indexOf("inside")!==-1&&(!r&&(s.side==="left"||s.side==="bottom")||r&&(s.side==="top"||s.side==="right"))){if(s._vals){var l=d_.deg2rad(s._tickAngles[s._id+"tick"]||0),u=Math.abs(Math.cos(l)),c=Math.abs(Math.sin(l));if(!s._vals[0].bb){var f=s._id+"tick",h=s._selections[f];h.each(function(k){var M=Ist.select(this),T=M.select(".text-math-group");T.empty()&&(k.bb=Dst.bBox(M.node()))})}for(var d=0;d<s._vals.length;d++){var v=s._vals[d],m=v.bb;if(m){var b=2*fse+m.width,p=2*fse+m.height;n=Math.max(n,i?Math.max(b*u,p*c):Math.max(p*u,b*c))}}}s.ticks==="inside"&&s.ticklabelposition==="inside"&&(n+=s.ticklen||0)}}}return n}function uB(e,t,r){var n=t._id,i=e._fullData,a=e._fullLayout,o=[],s=[],l,u,c;function f(b,p){for(l=0;l<p.length;l++){var k=b[p[l]],M=(k._extremes||{})[n];if(k.visible===!0&&M){for(u=0;u<M.min.length;u++)c=M.min[u],sB(o,c.val,c.pad,{extrapad:c.extrapad});for(u=0;u<M.max.length;u++)c=M.max[u],lB(s,c.val,c.pad,{extrapad:c.extrapad})}}}if(f(i,t._traceIndices),f(a.annotations||[],t._annIndices||[]),f(a.shapes||[],t._shapeIndices||[]),t._matchGroup&&!r){for(var h in t._matchGroup)if(h!==t._id){var d=Fst(e,h),v=uB(e,d,!0),m=t._length/d._length;for(u=0;u<v.min.length;u++)c=v.min[u],sB(o,c.val,c.pad*m,{extrapad:c.extrapad});for(u=0;u<v.max.length;u++)c=v.max[u],lB(s,c.val,c.pad*m,{extrapad:c.extrapad})}}return{min:o,max:s}}function Ost(e,t,r){if(t.setScale(),t.autorange){t.range=r?r.slice():aB(e,t),t._r=t.range.slice(),t._rl=d_.simpleMap(t._r,t.r2l);var n=t._input,i={};i[t._attr+".range"]=t.range,i[t._attr+".autorange"]=t.autorange,Rst.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,i),n.range=t.range.slice(),n.autorange=t.autorange}var a=t._anchorAxis;if(a&&a.rangeslider){var o=a.rangeslider[t._name];o&&o.rangemode==="auto"&&(o.range=aB(e,t)),a._input.rangeslider[t._name]=d_.extendFlat({},o)}}function Bst(e,t,r){r||(r={}),e._m||e.setScale();var n=[],i=[],a=t.length,o=r.padded||!1,s=r.tozero&&(e.type==="linear"||e.type==="-"),l=e.type==="log",u=!1,c=r.vpadLinearized||!1,f,h,d,v,m,b,p,k,M;function T(z){if(Array.isArray(z))return u=!0,function(V){return Math.max(Number(z[V]||0),0)};var q=Math.max(Number(z||0),0);return function(){return q}}var L=T((e._m>0?r.ppadplus:r.ppadminus)||r.ppad||0),x=T((e._m>0?r.ppadminus:r.ppadplus)||r.ppad||0),C=T(r.vpadplus||r.vpad),S=T(r.vpadminus||r.vpad);if(!u){if(k=1/0,M=-1/0,l)for(f=0;f<a;f++)h=t[f],h<k&&h>0&&(k=h),h>M&&h<kL&&(M=h);else for(f=0;f<a;f++)h=t[f],h<k&&h>-kL&&(k=h),h>M&&h<kL&&(M=h);t=[k,M],a=2}var g={tozero:s,extrapad:o};function P(z){d=t[z],dse(d)&&(b=L(z),p=x(z),c?(v=e.c2l(d)-S(z),m=e.c2l(d)+C(z)):(k=d-S(z),M=d+C(z),l&&k<M/10&&(k=M/10),v=e.c2l(k),m=e.c2l(M)),s&&(v=Math.min(0,v),m=Math.max(0,m)),hse(v)&&sB(n,v,p,g),hse(m)&&lB(i,m,b,g))}var E=Math.min(6,a);for(f=0;f<E;f++)P(f);for(f=a-1;f>=E;f--)P(f);return{min:n,max:i,opts:r}}function sB(e,t,r,n){pse(e,t,r,n,Nst)}function lB(e,t,r,n){pse(e,t,r,n,Ust)}function pse(e,t,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l<e.length&&s;l++){var u=e[l];if(i(u.val,t)&&u.pad>=r&&(u.extrapad||!o)){s=!1;break}else i(t,u.val)&&u.pad<=r&&(o||!u.extrapad)&&(e.splice(l,1),l--)}if(s){var c=a&&t===0;e.push({val:t,pad:c?0:r,extrapad:c?!1:o})}}function hse(e){return dse(e)&&Math.abs(e)<kL}function Nst(e,t){return e<=t}function Ust(e,t){return e>=t}function Vst(e,t){var r=t.autorangeoptions;return r&&r.minallowed!==void 0&&CL(t,r.minallowed,r.maxallowed)?r.minallowed:r&&r.clipmin!==void 0&&CL(t,r.clipmin,r.clipmax)?Math.max(e,t.d2l(r.clipmin)):e}function Gst(e,t){var r=t.autorangeoptions;return r&&r.maxallowed!==void 0&&CL(t,r.minallowed,r.maxallowed)?r.maxallowed:r&&r.clipmax!==void 0&&CL(t,r.clipmin,r.clipmax)?Math.min(e,t.d2l(r.clipmax)):e}function CL(e,t,r){return t!==void 0&&r!==void 0?(t=e.d2l(t),r=e.d2l(r),t<r):!0}function gse(e,t){if(!t||!t.autorangeoptions)return e;var r=e[0],n=e[1],i=t.autorangeoptions.include;if(i!==void 0){var a=t.d2l(r),o=t.d2l(n);d_.isArrayOrTypedArray(i)||(i=[i]);for(var s=0;s<i.length;s++){var l=t.d2l(i[s]);a>=l&&(a=l,r=l),o<=l&&(o=l,n=l)}}return r=Vst(r,t),n=Gst(n,t),[r,n]}});var ho=ye((dar,Nse)=>{"use strict";var w0=qa(),zh=Eo(),j3=Mc(),cM=Oa(),Wo=Pr(),W3=Wo.strTranslate,Ob=Zl(),Hst=qb(),fM=ka(),Xp=So(),jst=Rd(),yse=RO(),har=Rh(),$d=fs(),Wst=$d.ONEMAXYEAR,IL=$d.ONEAVGYEAR,RL=$d.ONEMINYEAR,Xst=$d.ONEMAXQUARTER,dB=$d.ONEAVGQUARTER,DL=$d.ONEMINQUARTER,Zst=$d.ONEMAXMONTH,X3=$d.ONEAVGMONTH,FL=$d.ONEMINMONTH,Zp=$d.ONEWEEK,qv=$d.ONEDAY,v_=qv/2,wm=$d.ONEHOUR,hM=$d.ONEMIN,zL=$d.ONESEC,Yst=$d.ONEMILLI,Kst=$d.ONEMICROSEC,Bb=$d.MINUS_SIGN,OL=$d.BADNUM,vB={K:"zeroline"},pB={K:"gridline",L:"path"},gB={K:"minor-gridline",L:"path"},Cse={K:"tick",L:"path"},_se={K:"tick",L:"text"},xse={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},BL=Dh(),uM=BL.MID_SHIFT,Nb=BL.CAP_SHIFT,dM=BL.LINE_SPACING,Jst=BL.OPPOSITE_SIDE,qL=3,$n=Nse.exports={};$n.setConvert=xm();var $st=H3(),Tm=df(),Qst=Tm.idSort,elt=Tm.isLinked;$n.id2name=Tm.id2name;$n.name2id=Tm.name2id;$n.cleanId=Tm.cleanId;$n.list=Tm.list;$n.listIds=Tm.listIds;$n.getFromId=Tm.getFromId;$n.getFromTrace=Tm.getFromTrace;var Lse=Mg();$n.getAutoRange=Lse.getAutoRange;$n.findExtremes=Lse.findExtremes;var tlt=1e-4;function xB(e){var t=(e[1]-e[0])*tlt;return[e[0]-t,e[1]+t]}$n.coerceRef=function(e,t,r,n,i,a){var o=n.charAt(n.length-1),s=r._fullLayout._subplots[o+"axis"],l=n+"ref",u={};return i||(i=s[0]||(typeof a=="string"?a:a[0])),a||(a=i),s=s.concat(s.map(function(c){return c+" domain"})),u[l]={valType:"enumerated",values:s.concat(a?typeof a=="string"?[a]:a:[]),dflt:i},Wo.coerce(e,t,u,l)};$n.coerceRefArray=function(e,t,r,n,i,a,o){let s=n.charAt(n.length-1);var l=r._fullLayout._subplots[s+"axis"];let u=n+"ref";var c=e[u];i||(i=l[0]||(typeof a=="string"?a:a[0])),l=l.concat(l.map(h=>h+" domain")),l=l.concat(a||[]),c.length>o?(Wo.warn("Array attribute "+u+" has more entries than expected, truncating to "+o),c=c.slice(0,o)):c.length<o&&(Wo.warn("Array attribute "+u+" has fewer entries than expected, extending with default value"),c=c.concat(Array(o-c.length).fill(i)));for(var f=0;f<c.length;f++)c[f]=Tm.cleanId(c[f],s,!0)||c[f],l.includes(c[f])||(c[f]=i);return t[u]=c,c};$n.getRefType=function(e){return e===void 0?e:Array.isArray(e)?"array":e==="paper"?"paper":e==="pixel"?"pixel":/( domain)$/.test(e)?"domain":"range"};$n.coercePosition=function(e,t,r,n,i,a){var o,s,l=$n.getRefType(n);if(l!=="range")o=Wo.ensureNumber,s=r(i,a);else{var u=$n.getFromId(t,n);a=u.fraction2r(a),s=r(i,a),o=u.cleanPos}e[i]=o(s)};$n.cleanPosition=function(e,t,r){var n=r==="paper"||r==="pixel"?Wo.ensureNumber:$n.getFromId(t,r).cleanPos;return n(e)};$n.redrawComponents=function(e,t){t=t||$n.listIds(e);var r=e._fullLayout;function n(i,a,o,s){for(var l=cM.getComponentMethod(i,a),u={},c=0;c<t.length;c++)for(var f=r[$n.id2name(t[c])],h=f[o],d=0;d<h.length;d++){var v=h[d];if(!u[v]&&(l(e,v),u[v]=1,s))return}}n("annotations","drawOne","_annIndices"),n("shapes","drawOne","_shapeIndices"),n("images","draw","_imgIndices",!0),n("selections","drawOne","_selectionIndices")};var rlt=$n.getDataConversions=function(e,t,r,n){var i,a=r==="x"||r==="y"||r==="z"?r:n;if(Wo.isArrayOrTypedArray(a)){if(i={type:$st(n,void 0,{autotypenumbers:e._fullLayout.autotypenumbers}),_categories:[]},$n.setConvert(i),i.type==="category")for(var o=0;o<n.length;o++)i.d2c(n[o])}else i=$n.getFromTrace(e,t,a);return i?{d2c:i.d2c,c2d:i.c2d}:a==="ids"?{d2c:wse,c2d:wse}:{d2c:bse,c2d:bse}};function bse(e){return+e}function wse(e){return String(e)}$n.getDataToCoordFunc=function(e,t,r,n){return rlt(e,t,r,n).d2c};$n.counterLetter=function(e){var t=e.charAt(0);if(t==="x")return"y";if(t==="y")return"x"};$n.minDtick=function(e,t,r,n){["log","category","multicategory"].indexOf(e.type)!==-1||!n?e._minDtick=0:e._minDtick===void 0?(e._minDtick=t,e._forceTick0=r):e._minDtick&&((e._minDtick/t+1e-6)%1<2e-6&&((r-e._forceTick0)/t%1+1.000001)%1<2e-6?(e._minDtick=t,e._forceTick0=r):((t/e._minDtick+1e-6)%1>2e-6||((r-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0))};$n.saveRangeInitial=function(e,t){for(var r=$n.list(e,"",!0),n=!1,i=0;i<r.length;i++){var a=r[i],o=a._rangeInitial0===void 0&&a._rangeInitial1===void 0,s=o||a.range[0]!==a._rangeInitial0||a.range[1]!==a._rangeInitial1,l=a.autorange;(o&&l!==!0||t&&s)&&(a._rangeInitial0=l==="min"||l==="max reversed"?void 0:a.range[0],a._rangeInitial1=l==="max"||l==="min reversed"?void 0:a.range[1],a._autorangeInitial=l,n=!0)}return n};$n.saveShowSpikeInitial=function(e,t){for(var r=$n.list(e,"",!0),n=!1,i="on",a=0;a<r.length;a++){var o=r[a],s=o._showSpikeInitial===void 0,l=s||o.showspikes!==o._showspikes;(s||t&&l)&&(o._showSpikeInitial=o.showspikes,n=!0),i==="on"&&!o.showspikes&&(i="off")}return e._fullLayout._cartesianSpikesEnabled=i,n};$n.autoBin=function(e,t,r,n,i,a){var o=Wo.aggNums(Math.min,null,e),s=Wo.aggNums(Math.max,null,e);if(t.type==="category"||t.type==="multicategory")return{start:o-.5,end:s+.5,size:Math.max(1,Math.round(a)||1),_dataSpan:s-o};i||(i=t.calendar);var l;if(t.type==="log"?l={type:"linear",range:[o,s]}:l={type:t.type,range:Wo.simpleMap([o,s],t.c2r,0,i),calendar:i},$n.setConvert(l),a=a&&yse.dtick(a,l.type),a)l.dtick=a,l.tick0=yse.tick0(void 0,l.type,i);else{var u;if(r)u=(s-o)/r;else{var c=Wo.distinctVals(e),f=Math.pow(10,Math.floor(Math.log(c.minDiff)/Math.LN10)),h=f*Wo.roundUp(c.minDiff/f,[.9,1.9,4.9,9.9],!0);u=Math.max(h,2*Wo.stdev(e)/Math.pow(e.length,n?.25:.4)),zh(u)||(u=1)}$n.autoTicks(l,u)}var d=l.dtick,v=$n.tickIncrement($n.tickFirst(l),d,"reverse",i),m,b;if(typeof d=="number")v=ilt(v,e,l,o,s),b=1+Math.floor((s-v)/d),m=v+b*d;else for(l.dtick.charAt(0)==="M"&&(v=nlt(v,e,d,o,i)),m=v,b=0;m<=s;)m=$n.tickIncrement(m,d,!1,i),b++;return{start:t.c2r(v,0,i),end:t.c2r(m,0,i),size:d,_dataSpan:s-o}};function ilt(e,t,r,n,i){var a=0,o=0,s=0,l=0;function u(d){return(1+(d-e)*100/r.dtick)%100<2}for(var c=0;c<t.length;c++)t[c]%1===0?s++:zh(t[c])||l++,u(t[c])&&a++,u(t[c]+r.dtick/2)&&o++;var f=t.length-l;if(s===f&&r.type!=="date")r.dtick<1?e=n-.5*r.dtick:(e-=.5,e+r.dtick<n&&(e+=r.dtick));else if(o<f*.1&&(a>f*.3||u(n)||u(i))){var h=r.dtick/2;e+=e+h<n?h:-h}return e}function nlt(e,t,r,n,i){var a=Wo.findExactDates(t,i),o=.8;if(a.exactDays>o){var s=Number(r.slice(1));a.exactYears>o&&s%12===0?e=$n.tickIncrement(e,"M6","reverse")+qv*1.5:a.exactMonths>o?e=$n.tickIncrement(e,"M1","reverse")+qv*15.5:e-=v_;var l=$n.tickIncrement(e,r);if(l<=n)return l}return e}$n.prepMinorTicks=function(e,t,r){var f,h;if(!((f=t.minor)!=null&&f.dtick)){delete e.dtick;var n=t.dtick&&zh(t._tmin),i;if(n){var a=$n.tickIncrement(t._tmin,t.dtick,!0);i=[t._tmin,a*.99+t._tmin*.01]}else{var o=Wo.simpleMap(t.range,t.r2l);i=[o[0],.8*o[0]+.2*o[1]]}if(e.range=Wo.simpleMap(i,t.l2r),e._isMinor=!0,$n.prepTicks(e,r),n){var s=zh(t.dtick),l=zh(e.dtick),u=s?t.dtick:+t.dtick.substring(1),c=l?e.dtick:+e.dtick.substring(1);s&&l?cB(u,c)?u===2*Zp&&c===2*qv&&(e.dtick=Zp):u===2*Zp&&c===3*qv?e.dtick=Zp:u===Zp&&!(t._input.minor||{}).nticks?e.dtick=qv:Tse(u/c,2.5)?e.dtick=u/2:e.dtick=u:String(t.dtick).charAt(0)==="M"?l?e.dtick="M1":cB(u,c)?u>=12&&c===2&&(e.dtick="M3"):e.dtick=t.dtick:String(e.dtick).charAt(0)==="L"?String(t.dtick).charAt(0)==="L"?cB(u,c)||(e.dtick=Tse(u/c,2.5)?t.dtick/2:t.dtick):e.dtick="D1":e.dtick==="D2"&&+t.dtick>1&&(e.dtick=1)}e.range=t.range}((h=t.minor)==null?void 0:h._tick0Init)===void 0&&(e.tick0=t.tick0)};function cB(e,t){return Math.abs((e/t+.5)%1-.5)<.001}function Tse(e,t){return Math.abs(e/t-1)<.001}$n.prepTicks=function(e,t){var r=Wo.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e.tickmode==="auto"||!e.dtick){var n=e.nticks,i;n||(e.type==="category"||e.type==="multicategory"?(i=e.tickfont?Wo.bigFont(e.tickfont.size||12):15,n=e._length/i):(i=e._id.charAt(0)==="y"?40:80,n=Wo.constrain(e._length/i,4,9)+1),e._name==="radialaxis"&&(n*=2)),e.minor&&e.minor.tickmode!=="array"||e.tickmode==="array"&&(n*=100),e._roughDTick=Math.abs(r[1]-r[0])/n,$n.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<e._minDtick*2&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}e.ticklabelmode==="period"&&alt(e),e.tick0||(e.tick0=e.type==="date"?"2000-01-01":0),e.type==="date"&&e.dtick<.1&&(e.dtick=.1),Dse(e)};function fB(e){return+e.substring(1)}function alt(e){var t;function r(){return!(zh(e.dtick)||e.dtick.charAt(0)!=="M")}var n=r(),i=$n.getTickFormat(e);if(i){var a=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(i)||(/%[HI]/.test(i)?(t=wm,a&&!n&&e.dtick<wm&&(e.dtick=wm)):/%p/.test(i)?(t=v_,a&&!n&&e.dtick<v_&&(e.dtick=v_)):/%[Aadejuwx]/.test(i)?(t=qv,a&&!n&&e.dtick<qv&&(e.dtick=qv)):/%[UVW]/.test(i)?(t=Zp,a&&!n&&e.dtick<Zp&&(e.dtick=Zp)):/%[Bbm]/.test(i)?(t=X3,a&&(n?fB(e.dtick)<1:e.dtick<FL)&&(e.dtick="M1")):/%[q]/.test(i)?(t=dB,a&&(n?fB(e.dtick)<3:e.dtick<DL)&&(e.dtick="M3")):/%[Yy]/.test(i)&&(t=IL,a&&(n?fB(e.dtick)<12:e.dtick<RL)&&(e.dtick="M12")))}n=r(),n&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=t}function olt(e,t,r){for(var n=0;n<e.length;n++){var i=e[n].value,a=n,o=n+1;n<e.length-1?(a=n,o=n+1):n>0?(a=n-1,o=n):(a=n,o=n);var s=e[a].value,l=e[o].value,u=Math.abs(l-s),c=r||u,f=0;c>=RL?u>=RL&&u<=Wst?f=u:f=IL:r===dB&&c>=DL?u>=DL&&u<=Xst?f=u:f=dB:c>=FL?u>=FL&&u<=Zst?f=u:f=X3:r===Zp&&c>=Zp?f=Zp:c>=qv?f=qv:r===v_&&c>=v_?f=v_:r===wm&&c>=wm&&(f=wm);var h;f>=u&&(f=u,h=!0);var d=i+f;if(t.rangebreaks&&f>0){for(var v=84,m=0,b=0;b<v;b++){var p=(b+.5)/v;t.maskBreaks(i*(1-p)+p*d)!==OL&&m++}f*=m/v,f||(e[n].drop=!0),h&&u>Zp&&(f=u)}(f>0||n===0)&&(e[n].periodX=i+f/2)}}$n.calcTicks=function(t,r){for(var n=t.type,i=t.calendar,a=t.ticklabelstep,o=t.ticklabelmode==="period",s=t.range[0]>t.range[1],l=!t.ticklabelindex||Wo.isArrayOrTypedArray(t.ticklabelindex)?t.ticklabelindex:[t.ticklabelindex],u=Wo.simpleMap(t.range,t.r2l,void 0,void 0,r),c=u[1]<u[0],f=Math.min(u[0],u[1]),h=Math.max(u[0],u[1]),d=Math.max(1e3,t._length||0),v=[],m=[],b=[],p=[],k=[],M=t.minor&&(t.minor.ticks||t.minor.showgrid),T=M||l,L=1;L>=(T?0:1);L--){var x=!L;L?(t._dtickInit=t.dtick,t._tick0Init=t.tick0):T&&(t.minor._dtickInit=t.minor.dtick,t.minor._tick0Init=t.minor.tick0);var C=L?t:Wo.extendFlat({},t,T?t.minor:{minor:{}});if(x?$n.prepMinorTicks(C,t,r):$n.prepTicks(C,r),C.tickmode==="array"){L?(b=[],v=Ase(t,!x)):(p=[],m=Ase(t,!x));continue}if(C.tickmode==="sync"){b=[],v=slt(t);continue}var S=xB(u),g=S[0],P=S[1],E=zh(C.dtick),z=n==="log"&&!(E||C.dtick.charAt(0)==="L"),q=$n.tickFirst(C,r);if(L){if(t._tmin=q,q<g!==c)break;(n==="category"||n==="multicategory")&&(P=c?Math.max(-.5,P):Math.min(t._categories.length-.5,P))}var V=null,G=q,Z;if(L){var j;E?j=t.dtick:n==="date"?typeof t.dtick=="string"&&t.dtick.charAt(0)==="M"&&(j=X3*t.dtick.substring(1)):j=t._roughDTick,Z=Math.round((t.r2l(G)-t.r2l(t.tick0))/j)-1}var N=C.dtick;for(C.rangebreaks&&C._tick0Init!==C.tick0&&(G=hB(G,t),c||(G=$n.tickIncrement(G,N,!c,i))),(L||l)&&o&&(G=$n.tickIncrement(G,N,!c,i),L&&Z--);c?G>=P:G<=P;G=$n.tickIncrement(G,N,c,i)){if(L&&Z++,C.rangebreaks&&!c){if(G<g)continue;if(C.maskBreaks(G)===OL&&hB(G,C)>=h)break}if(b.length>d||G===V)break;V=G;var H={value:G};L?(z&&G!==(G|0)&&(H.simpleLabel=!0),a>1&&Z%a&&(H.skipLabel=!0),b.push(H)):(H.minor=!0,p.push(H))}}if(!p||p.length<3)l=!1;else{var ie=(p[2].value-p[1].value)*(s?-1:1);Ilt(ie,t.tickformat)||(l=!1,p=p.slice(1))}if(!l)k=b;else{var ae=b.concat(p);o&&b.length&&(ae=ae.slice(1)),ae=ae.sort(function(Vt,rr){return Vt.value-rr.value}).filter(function(Vt,rr,tt){return rr===0||Vt.value!==tt[rr-1].value});var _e=ae.map(function(Vt,rr){return Vt.minor===void 0&&!Vt.skipLabel?rr:null}).filter(function(Vt){return Vt!==null});_e.forEach(function(Vt){l.map(function(rr){var tt=Vt+rr;tt>=0&&tt<ae.length&&Wo.pushUnique(k,ae[tt])})}),b.forEach(function(Vt){Vt.skipLabel=k.indexOf(Vt)===-1})}if(M){var Ee=t.minor.ticks==="inside"&&t.ticks==="outside"||t.minor.ticks==="outside"&&t.ticks==="inside";if(!Ee){for(var Ce=b.map(function(Vt){return Vt.value}),ge=[],re=0;re<p.length;re++){var Se=p[re],ke=Se.value;if(Ce.indexOf(ke)===-1){for(var be=!1,Be=0;!be&&Be<b.length;Be++)1e7+b[Be].value===1e7+ke&&(be=!0);be||ge.push(Se)}}p=ge}}o&&olt(k,t,t._definedDelta);var Le;if(t.rangebreaks){var me=t._id.charAt(0)==="y",Pe=1;t.tickmode==="auto"&&(Pe=t.tickfont?t.tickfont.size:12);var ce=NaN;for(Le=b.length-1;Le>-1;Le--){if(b[Le].drop){b.splice(Le,1);continue}b[Le].value=hB(b[Le].value,t);var He=t.c2p(b[Le].value);(me?ce>He-Pe:ce<He+Pe)?b.splice(c?Le+1:Le,1):ce=He}}AB(t)&&Math.abs(u[1]-u[0])===360&&b.pop(),t._tmax=(b[b.length-1]||{}).value,t._prevDateHead="",t._inCalcTicks=!0;var lt,mt=function(Vt){Vt.text="",t._prevDateHead=lt};b=b.concat(p);function Ht(Vt,rr){var tt=$n.tickText(Vt,rr.value,!1,rr.simpleLabel),je=rr.periodX;return je!==void 0&&(tt.periodX=je,(je>h||je<f)&&(je>h&&(tt.periodX=h),je<f&&(tt.periodX=f),mt(tt))),tt}var at;for(Le=0;Le<b.length;Le++){var ct=b[Le].minor,ar=b[Le].value;ct?(l&&k.indexOf(b[Le])!==-1?at=Ht(t,b[Le]):at={x:ar},at.minor=!0,m.push(at)):(lt=t._prevDateHead,at=Ht(t,b[Le]),b[Le].skipLabel&&mt(at),v.push(at))}return o&&l&&m.length&&(m[0].noTick=!0),v=v.concat(m),t._inCalcTicks=!1,o&&v.length&&(v[0].noTick=!0),v};function Pse(e,t){return e.rangebreaks&&(t=t.filter(function(r){return e.maskBreaks(r.x)!==OL})),t}function slt(e){var t=e._mainAxis,r=[];if(t._vals){for(var n=0;n<t._vals.length;n++)if(!t._vals[n].noTick){var i=t.l2p(t._vals[n].x),a=e.p2l(i),o=$n.tickText(e,a);t._vals[n].minor&&(o.minor=!0,o.text=""),r.push(o)}}return r=Pse(e,r),r}function Ase(e,t){var r=Wo.simpleMap(e.range,e.r2l),n=xB(r),i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),o=e.type==="category"?e.d2l_noadd:e.d2l;e.type==="log"&&String(e.dtick).charAt(0)!=="L"&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(var s=[],l=0;l<=1;l++)if(!(t!==void 0&&(t&&l||t===!1&&!l))&&!(l&&!e.minor)){var u=l?e.minor.tickvals:e.tickvals,c=l?[]:e.ticktext;if(u){Wo.isArrayOrTypedArray(c)||(c=[]);for(var f=0;f<u.length;f++){var h=o(u[f]);if(h>i&&h<a){var d=$n.tickText(e,h,!1,String(c[f]));l&&(d.minor=!0,d.text=""),s.push(d)}}}}return s=Pse(e,s),s}var LL=[2,5,10],Sse=[1,2,3,6,12],Mse=[1,2,5,10,15,30],llt=[1,2,3,7,14],Ise=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],Rse=[-.301,0,.301,.699,1],ult=[15,30,45,90,180];function bm(e,t,r){return t*Wo.roundUp(e/t,r)}$n.autoTicks=function(e,t,r){var n;function i(f){return Math.pow(f,Math.floor(Math.log(t)/Math.LN10))}if(e.type==="date"){e.tick0=Wo.dateTick0(e.calendar,0);var a=2*t;if(a>IL)t/=IL,n=i(10),e.dtick="M"+12*bm(t,n,LL);else if(a>X3)t/=X3,e.dtick="M"+bm(t,1,Sse);else if(a>qv){if(e.dtick=bm(t,qv,e._hasDayOfWeekBreaks?[1,2,7,14]:llt),!r){var o=$n.getTickFormat(e),s=e.ticklabelmode==="period";s&&(e._rawTick0=e.tick0),/%[uVW]/.test(o)?e.tick0=Wo.dateTick0(e.calendar,2):e.tick0=Wo.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}}else a>wm?e.dtick=bm(t,wm,Sse):a>hM?e.dtick=bm(t,hM,Mse):a>zL?e.dtick=bm(t,zL,Mse):(n=i(10),e.dtick=bm(t,n,LL))}else if(e.type==="log"){e.tick0=0;var l=Wo.simpleMap(e.range,e.r2l);if(e._isMinor&&(t*=1.5),t>.7)e.dtick=Math.ceil(t);else if(Math.abs(l[1]-l[0])<1){var u=1.5*Math.abs((l[1]-l[0])/t);t=Math.abs(Math.pow(10,l[1])-Math.pow(10,l[0]))/u,n=i(10),e.dtick="L"+bm(t,n,LL)}else e.dtick=t>.3?"D2":"D1"}else e.type==="category"||e.type==="multicategory"?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):AB(e)?(e.tick0=0,n=1,e.dtick=bm(t,n,ult)):(e.tick0=0,n=i(10),e.dtick=bm(t,n,LL));if(e.dtick===0&&(e.dtick=1),!zh(e.dtick)&&typeof e.dtick!="string"){var c=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(c)}};function Dse(e){var t=e.dtick;if(e._tickexponent=0,!zh(t)&&typeof t!="string"&&(t=1),(e.type==="category"||e.type==="multicategory")&&(e._tickround=null),e.type==="date"){var r=e.r2l(e.tick0),n=e.l2r(r).replace(/(^-|i)/g,""),i=n.length;if(String(t).charAt(0)==="M")i>10||n.slice(5)!=="01-01"?e._tickround="d":e._tickround=+t.slice(1)%12===0?"y":"m";else if(t>=qv&&i<=10||t>=qv*15)e._tickround="d";else if(t>=hM&&i<=16||t>=wm)e._tickround="M";else if(t>=zL&&i<=19||t>=hM)e._tickround="S";else{var a=e.l2r(r+t).replace(/^-/,"").length;e._tickround=Math.max(i,a)-20,e._tickround<0&&(e._tickround=4)}}else if(zh(t)||t.charAt(0)==="L"){var o=e.range.map(e.r2d||Number);zh(t)||(t=Number(t.slice(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),l=Math.floor(Math.log(s)/Math.LN10+.01),u=e.minexponent===void 0?3:e.minexponent;Math.abs(l)>u&&(Z3(e.exponentformat)&&e.exponentformat!=="SI extended"&&!bB(l)||Z3(e.exponentformat)&&e.exponentformat==="SI extended"&&!wB(l)?e._tickexponent=3*Math.round((l-1)/3):e._tickexponent=l)}else e._tickround=null}$n.tickIncrement=function(e,t,r,n){var i=r?-1:1;if(zh(t))return Wo.increment(e,i*t);var a=t.charAt(0),o=i*Number(t.slice(1));if(a==="M")return Wo.incrementMonth(e,o,n);if(a==="L")return Math.log(Math.pow(10,e)+o)/Math.LN10;if(a==="D"){var s=t==="D2"?Rse:Ise,l=e+i*.01,u=Wo.roundUp(Wo.mod(l,1),s,r);return Math.floor(l)+Math.log(w0.round(Math.pow(10,u),1))/Math.LN10}throw"unrecognized dtick "+String(t)};$n.tickFirst=function(e,t){var r=e.r2l||Number,n=Wo.simpleMap(e.range,r,void 0,void 0,t),i=n[1]<n[0],a=i?Math.floor:Math.ceil,o=xB(n)[0],s=e.dtick,l=r(e.tick0);if(zh(s)){var u=a((o-l)/s)*s+l;return(e.type==="category"||e.type==="multicategory")&&(u=Wo.constrain(u,0,e._categories.length-1)),u}var c=s.charAt(0),f=Number(s.slice(1));if(c==="M"){for(var h=0,d=l,v,m,b;h<10;){if(v=$n.tickIncrement(d,s,i,e.calendar),(v-o)*(d-o)<=0)return i?Math.min(d,v):Math.max(d,v);m=(o-(d+v)/2)/(v-d),b=c+(Math.abs(Math.round(m))||1)*f,d=$n.tickIncrement(d,b,m<0?!i:i,e.calendar),h++}return Wo.error("tickFirst did not converge",e),d}else{if(c==="L")return Math.log(a((Math.pow(10,o)-l)/f)*f+l)/Math.LN10;if(c==="D"){var p=s==="D2"?Rse:Ise,k=Wo.roundUp(Wo.mod(o,1),p,i);return Math.floor(o)+Math.log(w0.round(Math.pow(10,k),1))/Math.LN10}else throw"unrecognized dtick "+String(s)}};$n.tickText=function(e,t,r,n){var i=Fse(e,t),a=e.tickmode==="array",o=r||a,s=e.type,l=s==="category"?e.d2l_noadd:e.d2l,u,c=function(b){var p=e.l2p(b);return p>=0&&p<=e._length?b:null};if(a&&Wo.isArrayOrTypedArray(e.ticktext)){var f=Wo.simpleMap(e.range,e.r2l),h=(Math.abs(f[1]-f[0])-(e._lBreaks||0))/1e4;for(u=0;u<e.ticktext.length&&!(Math.abs(t-l(e.tickvals[u]))<h);u++);if(u<e.ticktext.length)return i.text=String(e.ticktext[u]),i.xbnd=[c(i.x-.5),c(i.x+e.dtick-.5)],i}function d(b){if(b===void 0)return!0;if(r)return b==="none";var p={first:e._tmin,last:e._tmax}[b];return b!=="all"&&t!==p}var v=r?"never":e.exponentformat!=="none"&&d(e.showexponent)?"hide":"";if(s==="date"?clt(e,i,r,o):s==="log"?flt(e,i,r,o,v):s==="category"?hlt(e,i):s==="multicategory"?dlt(e,i,r):AB(e)?plt(e,i,r,o,v):vlt(e,i,r,o,v),n||(e.tickprefix&&!d(e.showtickprefix)&&(i.text=e.tickprefix+i.text),e.ticksuffix&&!d(e.showticksuffix)&&(i.text+=e.ticksuffix)),e.labelalias&&e.labelalias.hasOwnProperty(i.text)){var m=e.labelalias[i.text];typeof m=="string"&&(i.text=m)}return(e.tickson==="boundaries"||e.showdividers)&&(i.xbnd=[c(i.x-.5),c(i.x+e.dtick-.5)]),i};$n.hoverLabelText=function(e,t,r){r&&(e=Wo.extendFlat({},e,{hoverformat:r}));var n=Wo.isArrayOrTypedArray(t)?t[0]:t,i=Wo.isArrayOrTypedArray(t)?t[1]:void 0;if(i!==void 0&&i!==n)return $n.hoverLabelText(e,n,r)+" - "+$n.hoverLabelText(e,i,r);var a=e.type==="log"&&n<=0,o=$n.tickText(e,e.c2l(a?-n:n),"hover").text;return a?n===0?"0":Bb+o:o};function Fse(e,t,r){var n=e.tickfont||{};return{x:t,dx:0,dy:0,text:r||"",fontSize:n.size,font:n.family,fontWeight:n.weight,fontStyle:n.style,fontVariant:n.variant,fontTextcase:n.textcase,fontLineposition:n.lineposition,fontShadow:n.shadow,fontColor:n.color}}function clt(e,t,r,n){var i=e._tickround,a=r&&e.hoverformat||$n.getTickFormat(e);n=!a&&n,n&&(zh(i)?i=4:i={y:"m",m:"d",d:"M",M:"S",S:4}[i]);var o=Wo.formatDate(t.x,a,i,e._dateFormat,e.calendar,e._extraFormat),s,l=o.indexOf(`
21`);if(l!==-1&&(s=o.slice(l+1),o=o.slice(0,l)),n&&(s!==void 0&&(o==="00:00:00"||o==="00:00")?(o=s,s=""):o.length===8&&(o=o.replace(/:00$/,""))),s)if(r)i==="d"?o+=", "+s:o=s+(o?", "+o:"");else if(!e._inCalcTicks||e._prevDateHead!==s)e._prevDateHead=s,o+="<br>"+s;else{var u=pM(e),c=e._trueSide||e.side;(!u&&c==="top"||u&&c==="bottom")&&(o+="<br> ")}t.text=o}function flt(e,t,r,n,i){var a=e.dtick,o=t.x,s=e.tickformat,l=typeof a=="string"&&a.charAt(0);if(i==="never"&&(i=""),n&&l!=="L"&&(a="L3",l="L"),s||l==="L")t.text=vM(Math.pow(10,o),e,i,n);else if(zh(a)||l==="D"&&(e.minorloglabels==="complete"||Wo.mod(o+.01,1)<.1)){var u;e.minorloglabels==="complete"&&!(Wo.mod(o+.01,1)<.1)&&(u=!0,t.fontSize*=.75);var c=Math.pow(10,o).toExponential(0),f=c.split("e"),h=+f[1],d=Math.abs(h),v=e.exponentformat;v==="power"||Z3(v)&&v!=="SI extended"&&bB(h)||Z3(v)&&v==="SI extended"&&wB(h)?(t.text=f[0],d>0&&(t.text+="x10"),t.text==="1x10"&&(t.text="10"),h!==0&&h!==1&&(t.text+="<sup>"+(h>0?"":Bb)+d+"</sup>"),t.fontSize*=1.25):(v==="e"||v==="E")&&d>2?t.text=f[0]+v+(h>0?"+":Bb)+d:(t.text=vM(Math.pow(10,o),e,"","fakehover"),a==="D1"&&e._id.charAt(0)==="y"&&(t.dy-=t.fontSize/6))}else if(l==="D")t.text=e.minorloglabels==="none"?"":String(Math.round(Math.pow(10,Wo.mod(o,1)))),t.fontSize*=.75;else throw"unrecognized dtick "+String(a);if(e.dtick==="D1"){var m=String(t.text).charAt(0);(m==="0"||m==="1")&&(e._id.charAt(0)==="y"?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function hlt(e,t){var r=e._categories[Math.round(t.x)];r===void 0&&(r=""),t.text=String(r)}function dlt(e,t,r){var n=Math.round(t.x),i=e._categories[n]||[],a=i[1]===void 0?"":String(i[1]),o=i[0]===void 0?"":String(i[0]);r?t.text=o+" - "+a:(t.text=a,t.text2=o)}function vlt(e,t,r,n,i){i==="never"?i="":e.showexponent==="all"&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=vM(t.x,e,i,n)}function plt(e,t,r,n,i){if(e.thetaunit==="radians"&&!r){var a=t.x/180;if(a===0)t.text="0";else{var o=glt(a);if(o[1]>=100)t.text=vM(Wo.deg2rad(t.x),e,i,n);else{var s=t.x<0;o[1]===1?o[0]===1?t.text="\u03C0":t.text=o[0]+"\u03C0":t.text=["<sup>",o[0],"</sup>","\u2044","<sub>",o[1],"</sub>","\u03C0"].join(""),s&&(t.text=Bb+t.text)}}}else t.text=vM(t.x,e,i,n)}function glt(e){function t(s,l){return Math.abs(s-l)<=1e-6}function r(s,l){return t(l,0)?s:r(l,s%l)}function n(s){for(var l=1;!t(Math.round(s*l)/l,s);)l*=10;return l}var i=n(e),a=e*i,o=Math.abs(r(a,i));return[Math.round(a/o),Math.round(i/o)]}var zse=["f","p","n","\u03BC","m","","k","M","G","T"],mlt=["q","r","y","z","a",...zse,"P","E","Z","Y","R","Q"],Z3=e=>["SI","SI extended","B"].includes(e);function bB(e){return e>14||e<-15}function wB(e){return e>32||e<-30}function ylt(e,t){return Z3(t)?!!(t==="SI extended"&&wB(e)||t!=="SI extended"&&bB(e)):!1}function vM(e,t,r,n){var i=e<0,a=t._tickround,o=r||t.exponentformat||"B",s=t._tickexponent,l=$n.getTickFormat(t),u=t.separatethousands;if(n){var c={exponentformat:o,minexponent:t.minexponent,dtick:t.showexponent==="none"?t.dtick:zh(e)&&Math.abs(e)||1,range:t.showexponent==="none"?t.range.map(t.r2d):[0,e||1]};Dse(c),a=(Number(c._tickround)||0)+4,s=c._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return t._numFormat(l)(e).replace(/-/g,Bb);var f=Math.pow(10,-a)/2;if(o==="none"&&(s=0),e=Math.abs(e),e<f)e="0",i=!1;else{if(e+=f,s&&(e*=Math.pow(10,-s),a+=s),a===0)e=String(Math.floor(e));else if(a<0){e=String(Math.round(e)),e=e.slice(0,Math.max(0,e.length+a));for(var h=a;h<0;h++)e+="0"}else{e=String(e);var d=e.indexOf(".")+1;d&&(e=e.slice(0,d+a).replace(/\.?0+$/,""))}e=Wo.numSeparate(e,t._separators,u)}if(s&&o!=="hide"){ylt(s,o)&&(o="power");var v;s<0?v=Bb+-s:o!=="power"?v="+"+s:v=String(s),o==="e"||o==="E"?e+=o+v:o==="power"?e+="\xD710<sup>"+v+"</sup>":o==="B"&&s===9?e+="B":Z3(o)&&(e+=o==="SI extended"?mlt[s/3+10]:zse[s/3+5])}return i?Bb+e:e}$n.getTickFormat=function(e){var t;function r(l){return typeof l!="string"?l:Number(l.replace("M",""))*X3}function n(l,u){var c=["L","D"];if(typeof l==typeof u){if(typeof l=="number")return l-u;var f=c.indexOf(l.charAt(0)),h=c.indexOf(u.charAt(0));return f===h?Number(l.replace(/(L|D)/g,""))-Number(u.replace(/(L|D)/g,"")):f-h}else return typeof l=="number"?1:-1}function i(l,u,c){var f=c||function(v){return v},h=u[0],d=u[1];return(!h&&typeof h!="number"||f(h)<=f(l))&&(!d&&typeof d!="number"||f(d)>=f(l))}function a(l,u){var c=u[0]===null,f=u[1]===null,h=n(l,u[0])>=0,d=n(l,u[1])<=0;return(c||h)&&(f||d)}var o,s;if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":{for(t=0;t<e.tickformatstops.length;t++)if(s=e.tickformatstops[t],s.enabled&&i(e.dtick,s.dtickrange,r)){o=s;break}break}case"log":{for(t=0;t<e.tickformatstops.length;t++)if(s=e.tickformatstops[t],s.enabled&&a(e.dtick,s.dtickrange)){o=s;break}break}default:}return o?o.value:e.tickformat};$n.getSubplots=function(e,t){var r=e._fullLayout._subplots,n=r.cartesian.concat(r.gl2d||[]),i=t?$n.findSubplotsWithAxis(n,t):n;return i.sort(function(a,o){var s=a.slice(1).split("y"),l=o.slice(1).split("y");return s[0]===l[0]?+s[1]-+l[1]:+s[0]-+l[0]}),i};$n.findSubplotsWithAxis=function(e,t){for(var r=new RegExp(t._id.charAt(0)==="x"?"^"+t._id+"y":t._id+"$"),n=[],i=0;i<e.length;i++){var a=e[i];r.test(a)&&n.push(a)}return n};$n.makeClipPaths=function(e){var t=e._fullLayout;if(!t._hasOnlyLargeSploms){var r={_offset:0,_length:t.width,_id:""},n={_offset:0,_length:t.height,_id:""},i=$n.list(e,"x",!0),a=$n.list(e,"y",!0),o=[],s,l;for(s=0;s<i.length;s++)for(o.push({x:i[s],y:n}),l=0;l<a.length;l++)s===0&&o.push({x:r,y:a[l]}),o.push({x:i[s],y:a[l]});var u=t._clips.selectAll(".axesclip").data(o,function(c){return c.x._id+c.y._id});u.enter().append("clipPath").classed("axesclip",!0).attr("id",function(c){return"clip"+t._uid+c.x._id+c.y._id}).append("rect"),u.exit().remove(),u.each(function(c){w0.select(this).select("rect").attr({x:c.x._offset||0,y:c.y._offset||0,width:c.x._length||1,height:c.y._length||1})})}};$n.draw=function(e,t,r){var n=e._fullLayout;t==="redraw"&&n._paper.selectAll("g.subplot").each(function(l){var u=l[0],c=n._plots[u];if(c){var f=c.xaxis,h=c.yaxis;c.xaxislayer.selectAll("."+f._id+"tick").remove(),c.yaxislayer.selectAll("."+h._id+"tick").remove(),c.xaxislayer.selectAll("."+f._id+"tick2").remove(),c.yaxislayer.selectAll("."+h._id+"tick2").remove(),c.xaxislayer.selectAll("."+f._id+"divider").remove(),c.yaxislayer.selectAll("."+h._id+"divider").remove(),c.minorGridlayer&&c.minorGridlayer.selectAll("path").remove(),c.gridlayer&&c.gridlayer.selectAll("path").remove(),c.zerolinelayer&&c.zerolinelayer.selectAll("path").remove(),c.zerolinelayerAbove&&c.zerolinelayerAbove.selectAll("path").remove(),n._infolayer.select(".g-"+f._id+"title").remove(),n._infolayer.select(".g-"+h._id+"title").remove()}});var i=!t||t==="redraw"?$n.listIds(e):t,a=$n.list(e),o=a.filter(function(l){return l.autoshift}).map(function(l){return l.overlaying});i.map(function(l){var u=$n.getFromId(e,l);if(u.tickmode==="sync"&&u.overlaying){var c=i.findIndex(function(f){return f===u.overlaying});c>=0&&i.unshift(i.splice(c,1).shift())}});var s={false:{left:0,right:0}};return Wo.syncOrAsync(i.map(function(l){return function(){if(l){var u=$n.getFromId(e,l);r||(r={}),r.axShifts=s,r.overlayingShiftedAx=o;var c=$n.drawOne(e,u,r);return u._shiftPusher&&_B(u,u._fullDepth||0,s,!0),u._r=u.range.slice(),u._rl=Wo.simpleMap(u._r,u.r2l),c}}}))};$n.drawOne=function(e,t,r){r=r||{};var n=r.axShifts||{},i=r.overlayingShiftedAx||[],a,o,s;t.setScale();var l=e._fullLayout,u=t._id,c=u.charAt(0),f=$n.counterLetter(u),h=l._plots[t._mainSubplot],d=t.zerolinelayer==="above traces";if(!h)return;if(t._shiftPusher=t.autoshift||i.indexOf(t._id)!==-1||i.indexOf(t.overlaying)!==-1,t._shiftPusher&t.anchor==="free"){var v=t.linewidth/2||0;t.ticks==="inside"&&(v+=t.ticklen),_B(t,v,n,!0),_B(t,t.shift||0,n,!1)}(r.skipTitle!==!0||t._shift===void 0)&&(t._shift=Plt(t,n));var m=h[c+"axislayer"],b=t._mainLinePosition,p=b+=t._shift,k=t._mainMirrorPosition,M=t._vals=$n.calcTicks(t),T=[t.mirror,p,k].join("_");for(a=0;a<M.length;a++)M[a].axInfo=T;t._selections={},t._tickAngles&&(t._prevTickAngles=t._tickAngles),t._tickAngles={},t._depth=null;var L={};function x(ct){var ar=u+(ct||"tick");return L[ar]||(L[ar]=wlt(t,ar,p)),L[ar]}if(t.visible){var C=$n.makeTransTickFn(t),S=$n.makeTransTickLabelFn(t),g,P,E=t.ticks==="inside",z=t.ticks==="outside";if(t.tickson==="boundaries"){var q=_lt(t,M);P=$n.clipEnds(t,q),g=E?P:q}else P=$n.clipEnds(t,M),g=E&&t.ticklabelmode!=="period"?P:M;var V=t._gridVals=P,G=blt(t,M);if(!l._hasOnlyLargeSploms){var Z=t._subplotsWith,j={};for(a=0;a<Z.length;a++){o=Z[a],s=l._plots[o];var N=s[f+"axis"],H=N._mainAxis._id;if(!j[H]){j[H]=1;var ie=c==="x"?"M0,"+N._offset+"v"+N._length:"M"+N._offset+",0h"+N._length;$n.drawGrid(e,t,{vals:V,counterAxis:N,layer:s.gridlayer.select("."+u),minorLayer:s.minorGridlayer.select("."+u),path:ie,transFn:C}),$n.drawZeroLine(e,t,{counterAxis:N,layer:d?s.zerolinelayerAbove:s.zerolinelayer,path:ie,transFn:C})}}}var ae,_e=$n.getTickSigns(t),Ee=$n.getTickSigns(t,"minor");if(t.ticks||t.minor&&t.minor.ticks){var Ce=$n.makeTickPath(t,p,_e[2]),ge=$n.makeTickPath(t,p,Ee[2],{minor:!0}),re,Se,ke,be;if(t._anchorAxis&&t.mirror&&t.mirror!==!0?(re=$n.makeTickPath(t,k,_e[3]),Se=$n.makeTickPath(t,k,Ee[3],{minor:!0}),ke=Ce+re,be=ge+Se):(re="",Se="",ke=Ce,be=ge),t.showdividers&&z&&t.tickson==="boundaries"){var Be={};for(a=0;a<G.length;a++)Be[G[a].x]=1;ae=function(ct){return Be[ct.x]?re:ke}}else ae=function(ct){return ct.minor?be:ke}}if($n.drawTicks(e,t,{vals:g,layer:m,path:ae,transFn:C}),t.mirror==="allticks"){var Le=Object.keys(t._linepositions||{});for(a=0;a<Le.length;a++){o=Le[a],s=l._plots[o];var me=t._linepositions[o]||[],Pe=me[0],ce=me[1],He=me[2],lt=$n.makeTickPath(t,Pe,He?_e[0]:Ee[0],{minor:He})+$n.makeTickPath(t,ce,He?_e[1]:Ee[1],{minor:He});$n.drawTicks(e,t,{vals:g,layer:s[c+"axislayer"],path:lt,transFn:C})}}var mt=[];if(mt.push(function(){return $n.drawLabels(e,t,{vals:M,layer:m,plotinfo:s,transFn:S,labelFns:$n.makeLabelFns(t,p)})}),t.type==="multicategory"){var Ht={x:2,y:10}[c];mt.push(function(){var ct={x:"height",y:"width"}[c],ar=x()[ct]+Ht+(t._tickAngles[u+"tick"]?t.tickfont.size*dM:0);return $n.drawLabels(e,t,{vals:xlt(t,M),layer:m,cls:u+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:C,labelFns:$n.makeLabelFns(t,p+ar*_e[4])})}),mt.push(function(){return t._depth=_e[4]*(x("tick2")[t.side]-p),Alt(e,t,{vals:G,layer:m,path:$n.makeTickPath(t,p,_e[4],{len:t._depth}),transFn:C})})}else t.title.hasOwnProperty("standoff")&&mt.push(function(){t._depth=_e[4]*(x()[t.side]-p)});var at=cM.getComponentMethod("rangeslider","isVisible")(t);return!r.skipTitle&&!(at&&t.side==="bottom")&&mt.push(function(){return Slt(e,t)}),mt.push(function(){var ct=t.side.charAt(0),ar=Jst[t.side].charAt(0),Vt=$n.getPxPosition(e,t),rr=z?t.ticklen:0,tt,je,Ue,Ae;(t.automargin||at||t._shiftPusher)&&(t.type==="multicategory"?tt=x("tick2"):(tt=x(),c==="x"&&ct==="b"&&(t._depth=Math.max(tt.width>0?tt.bottom-Vt:0,rr))));var rt=0,St=0;if(t._shiftPusher&&(rt=Math.max(rr,tt.height>0?ct==="l"?Vt-tt.left:tt.right-Vt:0),t.title.text!==l._dfltTitle[c]&&(St=(t._titleStandoff||0)+(t._titleScoot||0),ct==="l"&&(St+=kse(t))),t._fullDepth=Math.max(rt,St)),t.automargin){je={x:0,y:0,r:0,l:0,t:0,b:0};var Tt=[0,1],dt=typeof t._shift=="number"?t._shift:0;if(c==="x"){if(ct==="b"?je[ct]=t._depth:(je[ct]=t._depth=Math.max(tt.width>0?Vt-tt.top:0,rr),Tt.reverse()),tt.width>0){var Et=tt.right-(t._offset+t._length);Et>0&&(je.xr=1,je.r=Et);var pt=t._offset-tt.left;pt>0&&(je.xl=0,je.l=pt)}}else if(ct==="l"?(t._depth=Math.max(tt.height>0?Vt-tt.left:0,rr),je[ct]=t._depth-dt):(t._depth=Math.max(tt.height>0?tt.right-Vt:0,rr),je[ct]=t._depth+dt,Tt.reverse()),tt.height>0){var jt=tt.bottom-(t._offset+t._length);jt>0&&(je.yb=0,je.b=jt);var or=t._offset-tt.top;or>0&&(je.yt=1,je.t=or)}je[f]=t.anchor==="free"?t.position:t._anchorAxis.domain[Tt[0]],t.title.text!==l._dfltTitle[c]&&(je[ct]+=kse(t)+(t.title.standoff||0)),t.mirror&&t.anchor!=="free"&&(Ue={x:0,y:0,r:0,l:0,t:0,b:0},Ue[ar]=t.linewidth,t.mirror&&t.mirror!==!0&&(Ue[ar]+=rr),t.mirror===!0||t.mirror==="ticks"?Ue[f]=t._anchorAxis.domain[Tt[1]]:(t.mirror==="all"||t.mirror==="allticks")&&(Ue[f]=[t._counterDomainMin,t._counterDomainMax][Tt[1]]))}at&&(Ae=cM.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),typeof t.automargin=="string"&&(Ese(je,t.automargin),Ese(Ue,t.automargin)),j3.autoMargin(e,TB(t),je),j3.autoMargin(e,Ose(t),Ue),j3.autoMargin(e,Bse(t),Ae)}),Wo.syncOrAsync(mt)}};function Ese(e,t){if(e){var r=Object.keys(xse).reduce(function(n,i){return t.indexOf(i)!==-1&&xse[i].forEach(function(a){n[a]=1}),n},{});Object.keys(e).forEach(function(n){r[n]||(n.length===1?e[n]=0:delete e[n])})}}function _lt(e,t){var r=[],n,i=function(a,o){var s=a.xbnd[o];s!==null&&r.push(Wo.extendFlat({},a,{x:s}))};if(t.length){for(n=0;n<t.length;n++)i(t[n],0);i(t[n-1],1)}return r}function xlt(e,t){for(var r=[],n={},i=0;i<t.length;i++){var a=t[i];n[a.text2]?n[a.text2].push(a.x):n[a.text2]=[a.x]}for(var o in n)r.push(Fse(e,Wo.interp(n[o],.5),o));return r}function blt(e,t){var r=[],n,i,a=t.length&&t[t.length-1].x<t[0].x,o=function(l,u){var c=l.xbnd[u];c!==null&&r.push(Wo.extendFlat({},l,{x:c}))};if(e.showdividers&&t.length){for(n=0;n<t.length;n++){var s=t[n];s.text2!==i&&o(s,a?1:0),i=s.text2}o(t[n-1],a?0:1)}return r}function wlt(e,t,r){var n,i,a,o;if(e._selections[t].size())n=1/0,i=-1/0,a=1/0,o=-1/0,e._selections[t].each(function(){var l=yB(this);if(l.node().style.display!=="none"){var u=Xp.bBox(l.node().parentNode);n=Math.min(n,u.top),i=Math.max(i,u.bottom),a=Math.min(a,u.left),o=Math.max(o,u.right)}});else{var s=$n.makeLabelFns(e,r);n=i=s.yFn({dx:0,dy:0,fontSize:0}),a=o=s.xFn({dx:0,dy:0,fontSize:0})}return{top:n,bottom:i,left:a,right:o,height:i-n,width:o-a}}$n.getTickSigns=function(e,t){var r=e._id.charAt(0),n={x:"top",y:"right"}[r],i=e.side===n?1:-1,a=[-1,1,i,-i],o=t?(e.minor||{}).ticks:e.ticks;return o!=="inside"==(r==="x")&&(a=a.map(function(s){return-s})),e.side&&a.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),a};$n.makeTransTickFn=function(e){return e._id.charAt(0)==="x"?function(t){return W3(e._offset+e.l2p(t.x),0)}:function(t){return W3(0,e._offset+e.l2p(t.x))}};$n.makeTransTickLabelFn=function(e){var t=Tlt(e),r=e.ticklabelshift||0,n=e.ticklabelstandoff||0,i=t[0],a=t[1],o=e.range[0]>e.range[1],s=e.ticklabelposition&&e.ticklabelposition.indexOf("inside")!==-1,l=!s;if(r){var u=o?-1:1;r=r*u}if(n){var c=e.side,f=s&&(c==="top"||c==="left")||l&&(c==="bottom"||c==="right")?1:-1;n=n*f}return e._id.charAt(0)==="x"?function(h){return W3(i+e._offset+e.l2p(mB(h))+r,a+n)}:function(h){return W3(a+n,i+e._offset+e.l2p(mB(h))+r)}};function mB(e){return e.periodX!==void 0?e.periodX:e.x}function Tlt(e){var t=e.ticklabelposition||"",r=e.tickson||"",n=function(v){return t.indexOf(v)!==-1},i=n("top"),a=n("left"),o=n("right"),s=n("bottom"),l=n("inside"),u=r!=="boundaries"&&(s||a||i||o);if(!u&&!l)return[0,0];var c=e.side,f=u?(e.tickwidth||0)/2:0,h=qL,d=e.tickfont?e.tickfont.size:12;return(s||i)&&(f+=d*Nb,h+=(e.linewidth||0)/2),(a||o)&&(f+=(e.linewidth||0)/2,h+=qL),l&&c==="top"&&(h-=d*(1-Nb)),(a||i)&&(f=-f),(c==="bottom"||c==="right")&&(h=-h),[u?f:0,l?h:0]}$n.makeTickPath=function(e,t,r,n){n||(n={});var i=n.minor;if(i&&!e.minor)return"";var a=n.len!==void 0?n.len:i?e.minor.ticklen:e.ticklen,o=e._id.charAt(0),s=(e.linewidth||1)/2;return o==="x"?"M0,"+(t+s*r)+"v"+a*r:"M"+(t+s*r)+",0h"+a*r};$n.makeLabelFns=function(e,t,r){var n=e.ticklabelposition||"",i=e.tickson||"",a=function(q){return n.indexOf(q)!==-1},o=a("top"),s=a("left"),l=a("right"),u=a("bottom"),c=i!=="boundaries"&&(u||s||o||l),f=a("inside"),h=n==="inside"&&e.ticks==="inside"||!f&&e.ticks==="outside"&&i!=="boundaries",d=0,v=0,m=h?e.ticklen:0;if(f?m*=-1:c&&(m=0),h&&(d+=m,r)){var b=Wo.deg2rad(r);d=m*Math.cos(b)+1,v=m*Math.sin(b)}e.showticklabels&&(h||e.showline)&&(d+=.2*e.tickfont.size),d+=(e.linewidth||1)/2*(f?-1:1);var p={labelStandoff:d,labelShift:v},k,M,T,L,x=0,C=e.side,S=e._id.charAt(0),g=e.tickangle,P;if(S==="x")P=!f&&C==="bottom"||f&&C==="top",L=P?1:-1,f&&(L*=-1),k=v*L,M=t+d*L,T=P?1:-.2,Math.abs(g)===90&&(f?T+=uM:g===-90&&C==="bottom"?T=Nb:g===90&&C==="top"?T=uM:T=.5,x=uM/2*(g/90)),p.xFn=function(q){return q.dx+k+x*q.fontSize},p.yFn=function(q){return q.dy+M+q.fontSize*T},p.anchorFn=function(q,V){if(c){if(s)return"end";if(l)return"start"}return!zh(V)||V===0||V===180?"middle":V*L<0!==f?"end":"start"},p.heightFn=function(q,V,G){return V<-60||V>60?-.5*G:e.side==="top"!==f?-G:0};else if(S==="y"){if(P=!f&&C==="left"||f&&C==="right",L=P?1:-1,f&&(L*=-1),k=d,M=v*L,T=0,!f&&Math.abs(g)===90&&(g===-90&&C==="left"||g===90&&C==="right"?T=Nb:T=.5),f){var E=zh(g)?+g:0;if(E!==0){var z=Wo.deg2rad(E);x=Math.abs(Math.sin(z))*Nb*L,T=0}}p.xFn=function(q){return q.dx+t-(k+q.fontSize*T)*L+x*q.fontSize},p.yFn=function(q){return q.dy+M+q.fontSize*uM},p.anchorFn=function(q,V){return zh(V)&&Math.abs(V)===90?"middle":P?"end":"start"},p.heightFn=function(q,V,G){return e.side==="right"&&(V*=-1),V<-30?-G:V<30?-.5*G:0}}return p};function NL(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}$n.drawTicks=function(e,t,r){r=r||{};var n=t._id+"tick",i=[].concat(t.minor&&t.minor.ticks?r.vals.filter(function(o){return o.minor&&!o.noTick}):[]).concat(t.ticks?r.vals.filter(function(o){return!o.minor&&!o.noTick}):[]),a=r.layer.selectAll("path."+n).data(i,NL);a.exit().remove(),a.enter().append("path").classed(n,1).classed("ticks",1).classed("crisp",r.crisp!==!1).each(function(o){return fM.stroke(w0.select(this),o.minor?t.minor.tickcolor:t.tickcolor)}).style("stroke-width",function(o){return Xp.crispRound(e,o.minor?t.minor.tickwidth:t.tickwidth,1)+"px"}).attr("d",r.path).style("display",null),UL(t,[Cse]),a.attr("transform",r.transFn)};$n.drawGrid=function(e,t,r){if(r=r||{},t.tickmode!=="sync"){var n=t._id+"grid",i=t.minor&&t.minor.showgrid,a=i?r.vals.filter(function(p){return p.minor}):[],o=t.showgrid?r.vals.filter(function(p){return!p.minor}):[],s=r.counterAxis;if(s&&$n.shouldShowZeroLine(e,t,s))for(var l=t.tickmode==="array",u=0;u<o.length;u++){var c=o[u].x;if(l?!c:Math.abs(c)<t.dtick/100)if(o=o.slice(0,u).concat(o.slice(u+1)),l)u--;else break}t._gw=Xp.crispRound(e,t.gridwidth,1);for(var f=i?Xp.crispRound(e,t.minor.gridwidth,1):0,h=r.layer,d=r.minorLayer,v=1;v>=0;v--){var m=v?h:d;if(m){var b=m.selectAll("path."+n).data(v?o:a,NL);b.exit().remove(),b.enter().append("path").classed(n,1).classed("crisp",r.crisp!==!1),b.attr("transform",r.transFn).attr("d",r.path).each(function(p){return fM.stroke(w0.select(this),p.minor?t.minor.gridcolor:t.gridcolor||"#ddd")}).style("stroke-dasharray",function(p){return Xp.dashStyle(p.minor?t.minor.griddash:t.griddash,p.minor?t.minor.gridwidth:t.gridwidth)}).style("stroke-width",function(p){return(p.minor?f:t._gw)+"px"}).style("display",null),typeof r.path=="function"&&b.attr("d",r.path)}}UL(t,[pB,gB])}};$n.drawZeroLine=function(e,t,r){r=r||r;var n=t._id+"zl",i=$n.shouldShowZeroLine(e,t,r.counterAxis),a=r.layer.selectAll("path."+n).data(i?[{x:0,id:t._id}]:[]);a.exit().remove(),a.enter().append("path").classed(n,1).classed("zl",1).classed("crisp",r.crisp!==!1).each(function(){r.layer.selectAll("path").sort(function(o,s){return Qst(o.id,s.id)})}),a.attr("transform",r.transFn).attr("d",r.path).call(fM.stroke,t.zerolinecolor||fM.defaultLine).style("stroke-width",Xp.crispRound(e,t.zerolinewidth,t._gw||1)+"px").style("display",null),UL(t,[vB])};$n.drawLabels=function(e,t,r){r=r||{};var n=e._fullLayout,i=t._id,a=t.zerolinelayer==="above traces",o=r.cls||i+"tick",s=r.vals.filter(function(H){return H.text}),l=r.labelFns,u=r.secondary?0:t.tickangle,c=(t._prevTickAngles||{})[o],f=r.layer.selectAll("g."+o).data(t.showticklabels?s:[],NL),h=[];f.enter().append("g").classed(o,1).append("text").attr("text-anchor","middle").each(function(H){var ie=w0.select(this),ae=e._promises.length;ie.call(Ob.positionText,l.xFn(H),l.yFn(H)).call(Xp.font,{family:H.font,size:H.fontSize,color:H.fontColor,weight:H.fontWeight,style:H.fontStyle,variant:H.fontVariant,textcase:H.fontTextcase,lineposition:H.fontLineposition,shadow:H.fontShadow}).text(H.text).call(Ob.convertToTspans,e),e._promises[ae]?h.push(e._promises.pop().then(function(){d(ie,u)})):d(ie,u)}),UL(t,[_se]),f.exit().remove(),r.repositionOnUpdate&&f.each(function(H){w0.select(this).select("text").call(Ob.positionText,l.xFn(H),l.yFn(H))});function d(H,ie){H.each(function(ae){var _e=w0.select(this),Ee=_e.select(".text-math-group"),Ce=l.anchorFn(ae,ie),ge=r.transFn.call(_e.node(),ae)+(zh(ie)&&+ie!=0?" rotate("+ie+","+l.xFn(ae)+","+(l.yFn(ae)-ae.fontSize/2)+")":""),re=Ob.lineCount(_e),Se=dM*ae.fontSize,ke=l.heightFn(ae,zh(ie)?+ie:0,(re-1)*Se);if(ke&&(ge+=W3(0,ke)),Ee.empty()){var be=_e.select("text");be.attr({transform:ge,"text-anchor":Ce}),be.style("display",null),t._adjustTickLabelsOverflow&&t._adjustTickLabelsOverflow()}else{var Be=Xp.bBox(Ee.node()).width,Le=Be*{end:-.5,start:.5}[Ce];Ee.attr("transform",ge+W3(Le,0))}})}t._adjustTickLabelsOverflow=function(){var H=t.ticklabeloverflow;if(!(!H||H==="allow")){var ie=H.indexOf("hide")!==-1,ae=t._id.charAt(0)==="x",_e=0,Ee=ae?e._fullLayout.width:e._fullLayout.height;if(H.indexOf("domain")!==-1){var Ce=Wo.simpleMap(t.range,t.r2l);_e=t.l2p(Ce[0])+t._offset,Ee=t.l2p(Ce[1])+t._offset}var ge=Math.min(_e,Ee),re=Math.max(_e,Ee),Se=t.side,ke=1/0,be=-1/0;f.each(function(Pe){var ce=w0.select(this),He=ce.select(".text-math-group");if(He.empty()){var lt=Xp.bBox(ce.node()),mt=0;ae?(lt.right>re||lt.left<ge)&&(mt=1):(lt.bottom>re||lt.top+(t.tickangle?0:Pe.fontSize/4)<ge)&&(mt=1);var Ht=ce.select("text");mt?ie&&Ht.style("display","none"):Ht.node().style.display!=="none"&&(Ht.style("display",null),Se==="bottom"||Se==="right"?ke=Math.min(ke,ae?lt.top:lt.left):ke=-1/0,Se==="top"||Se==="left"?be=Math.max(be,ae?lt.bottom:lt.right):be=1/0)}});for(var Be in n._plots){var Le=n._plots[Be];if(!(t._id!==Le.xaxis._id&&t._id!==Le.yaxis._id)){var me=ae?Le.yaxis:Le.xaxis;me&&(me["_visibleLabelMin_"+t._id]=ke,me["_visibleLabelMax_"+t._id]=be)}}}},t._hideCounterAxisInsideTickLabels=function(H){var ie=t._id.charAt(0)==="x",ae=[];for(var _e in n._plots){var Ee=n._plots[_e];t._id!==Ee.xaxis._id&&t._id!==Ee.yaxis._id||ae.push(ie?Ee.yaxis:Ee.xaxis)}ae.forEach(function(Ce,ge){Ce&&pM(Ce)&&(H||[vB,gB,pB,Cse,_se]).forEach(function(re){var Se=re.K==="tick"&&re.L==="text"&&t.ticklabelmode==="period",ke=n._plots[t._mainSubplot],be;if(re.K===vB.K){var Be=a?ke.zerolinelayerAbove:ke.zerolinelayer;be=Be.selectAll("."+t._id+"zl")}else re.K===gB.K?be=ke.minorGridlayer.selectAll("."+t._id):re.K===pB.K?be=ke.gridlayer.selectAll("."+t._id):be=ke[t._id.charAt(0)+"axislayer"];be.each(function(){var Le=w0.select(this);re.L&&(Le=Le.selectAll(re.L)),Le.each(function(me){var Pe=t.l2p(Se?mB(me):me.x)+t._offset,ce=w0.select(this);Pe<t["_visibleLabelMax_"+Ce._id]&&Pe>t["_visibleLabelMin_"+Ce._id]?ce.style("display","none"):re.K==="tick"&&!ge&&ce.node().style.display!=="none"&&ce.style("display",null)})})})})},d(f,c+1?c:u);function v(){return h.length&&Promise.all(h)}var m=null;function b(){if(d(f,u),s.length&&t.autotickangles&&(t.type!=="log"||String(t.dtick).charAt(0)!=="D")){m=t.autotickangles[0];var H=0,ie=[],ae,_e=1;f.each(function(je){H=Math.max(H,je.fontSize);var Ue=t.l2p(je.x),Ae=yB(this),rt=Xp.bBox(Ae.node());_e=Math.max(_e,Ob.lineCount(Ae)),ie.push({top:0,bottom:10,height:10,left:Ue-rt.width/2,right:Ue+rt.width/2+2,width:rt.width+2})});var Ee=(t.tickson==="boundaries"||t.showdividers)&&!r.secondary,Ce=s.length,ge=Math.abs((s[Ce-1].x-s[0].x)*t._m)/(Ce-1),re=Ee?ge/2:ge,Se=Ee?t.ticklen:H*1.25*_e,ke=Math.sqrt(Math.pow(re,2)+Math.pow(Se,2)),be=re/ke,Be=t.autotickangles.map(function(je){return je*Math.PI/180}),Le=Be.find(function(je){return Math.abs(Math.cos(je))<=be});Le===void 0&&(Le=Be.reduce(function(je,Ue){return Math.abs(Math.cos(je))<Math.abs(Math.cos(Ue))?je:Ue},Be[0]));var me=Le*(180/Math.PI);if(Ee){var Pe=2;for(t.ticks&&(Pe+=t.tickwidth/2),ae=0;ae<ie.length;ae++){var ce=s[ae].xbnd,He=ie[ae];if(ce[0]!==null&&He.left-t.l2p(ce[0])<Pe||ce[1]!==null&&t.l2p(ce[1])-He.right<Pe){m=me;break}}}else{var lt=t.ticklabelposition||"",mt=t.tickson||"",Ht=function(je){return lt.indexOf(je)!==-1},at=Ht("top"),ct=Ht("left"),ar=Ht("right"),Vt=Ht("bottom"),rr=mt!=="boundaries"&&(Vt||ct||at||ar),tt=rr?(t.tickwidth||0)+2*qL:0;for(ae=0;ae<ie.length-1;ae++)if(Wo.bBoxIntersect(ie[ae],ie[ae+1],tt)){m=me;break}}m&&d(f,m)}}t._selections&&(t._selections[o]=f);var p=[v];t.automargin&&n._redrawFromAutoMarginCount&&c===90?(m=c,p.push(function(){d(f,c)})):p.push(b),t._tickAngles&&p.push(function(){t._tickAngles[o]=m===null?zh(u)?u:0:m});var k=function(){var H=0,ie=0;return f.each(function(ae,_e){var Ee=yB(this),Ce=Ee.select(".text-math-group");if(Ce.empty()){var ge;t._vals[_e]&&(ge=t._vals[_e].bb||Xp.bBox(Ee.node()),t._vals[_e].bb=ge),H=Math.max(H,ge.width),ie=Math.max(ie,ge.height)}}),{labelsMaxW:H,labelsMaxH:ie}},M=t._anchorAxis;if(M&&(M.autorange||M.insiderange)&&pM(t)&&!elt(n,t._id)&&(n._insideTickLabelsUpdaterange||(n._insideTickLabelsUpdaterange={}),M.autorange&&(n._insideTickLabelsUpdaterange[M._name+".autorange"]=M.autorange,p.push(k)),M.insiderange)){var T=k(),L=t._id.charAt(0)==="y"?T.labelsMaxW:T.labelsMaxH;L+=2*qL,t.ticklabelposition==="inside"&&(L+=t.ticklen||0);var x=t.side==="right"||t.side==="top"?1:-1,C=x===1?1:0,S=x===1?0:1,g=[];g[S]=M.range[S];var P=M.range,E=M.r2p(P[C]),z=M.r2p(P[S]),q=n._insideTickLabelsUpdaterange[M._name+".range"];if(q){var V=M.r2p(q[C]),G=M.r2p(q[S]),Z=x*(t._id.charAt(0)==="y"?1:-1);Z*E<Z*V&&(E=V,g[C]=P[C]=q[C]),Z*z>Z*G&&(z=G,g[S]=P[S]=q[S])}var j=Math.abs(z-E);j-L>0?(j-=L,L*=1+L/j):L=0,t._id.charAt(0)!=="y"&&(L=-L),g[C]=M.p2r(M.r2p(P[C])+x*L),M.autorange==="min"||M.autorange==="max reversed"?(g[0]=null,M._rangeInitial0=void 0,M._rangeInitial1=void 0):(M.autorange==="max"||M.autorange==="min reversed")&&(g[1]=null,M._rangeInitial0=void 0,M._rangeInitial1=void 0),n._insideTickLabelsUpdaterange[M._name+".range"]=g}var N=Wo.syncOrAsync(p);return N&&N.then&&e._promises.push(N),N};function Alt(e,t,r){var n=t._id+"divider",i=r.vals,a=r.layer.selectAll("path."+n).data(i,NL);a.exit().remove(),a.enter().insert("path",":first-child").classed(n,1).classed("crisp",1).call(fM.stroke,t.dividercolor).style("stroke-width",Xp.crispRound(e,t.dividerwidth,1)+"px"),a.attr("transform",r.transFn).attr("d",r.path)}$n.getPxPosition=function(e,t){var r=e._fullLayout._size,n=t._id.charAt(0),i=t.side,a;if(t.anchor!=="free"?a=t._anchorAxis:n==="x"?a={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:n==="y"&&(a={_offset:r.l+(t.position||0)*r.w+t._shift,_length:0}),i==="top"||i==="left")return a._offset;if(i==="bottom"||i==="right")return a._offset+a._length};function kse(e){var t=e.title.font.size,r=(e.title.text.match(Ob.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?t*(Nb+r*dM):r?t*(r+1)*dM:t}function Slt(e,t){var r=e._fullLayout,n=t._id,i=n.charAt(0),a=t.title.font.size,o,s=(t.title.text.match(Ob.BR_TAG_ALL)||[]).length;if(t.title.hasOwnProperty("standoff"))t.side==="bottom"||t.side==="right"?o=t._depth+t.title.standoff+a*Nb:(t.side==="top"||t.side==="left")&&(o=t._depth+t.title.standoff+a*(uM+s*dM));else{var l=pM(t);if(t.type==="multicategory")o=t._depth;else{var u=1.5*a;l&&(u=.5*a,t.ticks==="outside"&&(u+=t.ticklen)),o=10+u+(t.linewidth?t.linewidth-1:0)}l||(i==="x"?o+=t.side==="top"?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):o+=t.side==="right"?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0))}var c=$n.getPxPosition(e,t),f,h,d;i==="x"?(h=t._offset+t._length/2,d=t.side==="top"?c-o:c+o):(d=t._offset+t._length/2,h=t.side==="right"?c+o:c-o,f={rotate:"-90",offset:0});var v;if(t.type!=="multicategory"){var m=t._selections[t._id+"tick"];if(v={selection:m,side:t.side},m&&m.node()&&m.node().parentNode){var b=Xp.getTranslate(m.node().parentNode);v.offsetLeft=b.x,v.offsetTop=b.y}t.title.hasOwnProperty("standoff")&&(v.pad=0)}return t._titleStandoff=o,Hst.draw(e,n+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[i],avoid:v,transform:f,attributes:{x:h,y:d,"text-anchor":"middle"}})}$n.shouldShowZeroLine=function(e,t,r){var n=Wo.simpleMap(t.range,t.r2l);return n[0]*n[1]<=0&&t.zeroline&&(t.type==="linear"||t.type==="-")&&!(t.rangebreaks&&t.maskBreaks(0)===OL)&&(qse(t,0)||!Mlt(e,t,r,n)||Elt(e,t))};$n.clipEnds=function(e,t){return t.filter(function(r){return qse(e,r.x)})};function qse(e,t){var r=e.l2p(t);return r>1&&r<e._length-1}function Mlt(e,t,r,n){var i=r._mainAxis;if(!i)return;var a=e._fullLayout,o=t._id.charAt(0),s=$n.counterLetter(t._id),l=t._offset+(Math.abs(n[0])<Math.abs(n[1])==(o==="x")?0:t._length);function u(v){if(!v.showline||!v.linewidth)return!1;var m=Math.max((v.linewidth+t.zerolinewidth)/2,1);function b(M){return typeof M=="number"&&Math.abs(M-l)<m}if(b(v._mainLinePosition)||b(v._mainMirrorPosition))return!0;var p=v._linepositions||{};for(var k in p)if(b(p[k][0])||b(p[k][1]))return!0}var c=a._plots[r._mainSubplot];if(!(c.mainplotinfo||c).overlays.length)return u(r,l);for(var f=$n.list(e,s),h=0;h<f.length;h++){var d=f[h];if(d._mainAxis===i&&u(d,l))return!0}}function Elt(e,t){for(var r=e._fullData,n=t._mainSubplot,i=t._id.charAt(0),a=0;a<r.length;a++){var o=r[a];if(o.visible===!0&&o.xaxis+o.yaxis===n&&(cM.traceIs(o,"bar-like")&&o.orientation==={x:"h",y:"v"}[i]||o.fill&&o.fill.charAt(o.fill.length-1)===i))return!0}return!1}function yB(e){var t=w0.select(e),r=t.select(".text-math-group");return r.empty()?t.select("text"):r}$n.allowAutoMargin=function(e){for(var t=$n.list(e,"",!0),r=0;r<t.length;r++){var n=t[r];n.automargin&&(j3.allowAutoMargin(e,TB(n)),n.mirror&&j3.allowAutoMargin(e,Ose(n))),cM.getComponentMethod("rangeslider","isVisible")(n)&&j3.allowAutoMargin(e,Bse(n))}};function TB(e){return e._id+".automargin"}function Ose(e){return TB(e)+".mirror"}function Bse(e){return e._id+".rangeslider"}$n.swap=function(e,t){for(var r=klt(e,t),n=0;n<r.length;n++)Clt(e,r[n].x,r[n].y)};function klt(e,t){var r=[],n,i;for(n=0;n<t.length;n++){var a=[],o=e._fullData[t[n]].xaxis,s=e._fullData[t[n]].yaxis;if(!(!o||!s)){for(i=0;i<r.length;i++)(r[i].x.indexOf(o)!==-1||r[i].y.indexOf(s)!==-1)&&a.push(i);if(!a.length){r.push({x:[o],y:[s]});continue}var l=r[a[0]],u;if(a.length>1)for(i=1;i<a.length;i++)u=r[a[i]],PL(l.x,u.x),PL(l.y,u.y);PL(l.x,[o]),PL(l.y,[s])}}return r}function PL(e,t){for(var r=0;r<t.length;r++)e.indexOf(t[r])===-1&&e.push(t[r])}function Clt(e,t,r){var n=[],i=[],a=e.layout,o,s;for(o=0;o<t.length;o++)n.push($n.getFromId(e,t[o]));for(o=0;o<r.length;o++)i.push($n.getFromId(e,r[o]));var l=Object.keys(jst),u=["anchor","domain","overlaying","position","side","tickangle","editType"],c=["linear","log"];for(o=0;o<l.length;o++){var f=l[o],h=n[0][f],d=i[0][f],v=!0,m=!1,b=!1;if(!(f.charAt(0)==="_"||typeof h=="function"||u.indexOf(f)!==-1)){for(s=1;s<n.length&&v;s++){var p=n[s][f];f==="type"&&c.indexOf(h)!==-1&&c.indexOf(p)!==-1&&h!==p?m=!0:p!==h&&(v=!1)}for(s=1;s<i.length&&v;s++){var k=i[s][f];f==="type"&&c.indexOf(d)!==-1&&c.indexOf(k)!==-1&&d!==k?b=!0:i[s][f]!==d&&(v=!1)}v&&(m&&(a[n[0]._name].type="linear"),b&&(a[i[0]._name].type="linear"),Llt(a,f,n,i,e._fullLayout._dfltTitle))}}for(o=0;o<e._fullLayout.annotations.length;o++){var M=e._fullLayout.annotations[o];t.indexOf(M.xref)!==-1&&r.indexOf(M.yref)!==-1&&Wo.swapAttrs(a.annotations[o],["?"])}}function Llt(e,t,r,n,i){var a=Wo.nestedProperty,o=a(e[r[0]._name],t).get(),s=a(e[n[0]._name],t).get(),l;for(t==="title"&&(o&&o.text===i.x&&(o.text=i.y),s&&s.text===i.y&&(s.text=i.x)),l=0;l<r.length;l++)a(e,r[l]._name+"."+t).set(s);for(l=0;l<n.length;l++)a(e,n[l]._name+"."+t).set(o)}function AB(e){return e._id==="angularaxis"}function hB(e,t){for(var r=t._rangebreaks.length,n=0;n<r;n++){var i=t._rangebreaks[n];if(e>=i.min&&e<i.max)return i.max}return e}function pM(e){return(e.ticklabelposition||"").indexOf("inside")!==-1}function UL(e,t){pM(e._anchorAxis||{})&&e._hideCounterAxisInsideTickLabels&&e._hideCounterAxisInsideTickLabels(t)}function _B(e,t,r,n){var i=e.anchor!=="free"&&(e.overlaying===void 0||e.overlaying===!1)?e._id:e.overlaying,a;n?a=e.side==="right"?t:-t:a=t,i in r||(r[i]={}),e.side in r[i]||(r[i][e.side]=0),r[i][e.side]+=a}function Plt(e,t){return e.autoshift?t[e.overlaying][e.side]:e.shift||0}function Ilt(e,t){return/%f/.test(t)?e>=Kst:/%L/.test(t)?e>=Yst:/%[SX]/.test(t)?e>=zL:/%M/.test(t)?e>=hM:/%[HI]/.test(t)?e>=wm:/%p/.test(t)?e>=v_:/%[Aadejuwx]/.test(t)?e>=qv:/%[UVW]/.test(t)?e>=Zp:/%[Bbm]/.test(t)?e>=FL:/%[q]/.test(t)?e>=DL:/%[Yy]/.test(t)?e>=RL:!0}});var SB=ye((par,Use)=>{"use strict";Use.exports=function(t,r,n){var i,a;if(n){var o=r==="reversed"||r==="min reversed"||r==="max reversed";i=n[o?1:0],a=n[o?0:1]}var s=t("autorangeoptions.minallowed",a===null?i:void 0),l=t("autorangeoptions.maxallowed",i===null?a:void 0);s===void 0&&t("autorangeoptions.clipmin"),l===void 0&&t("autorangeoptions.clipmax"),t("autorangeoptions.include")}});var MB=ye((gar,Vse)=>{"use strict";var Rlt=SB();Vse.exports=function(t,r,n,i){var a=r._template||{},o=r.type||a.type||"-";n("minallowed"),n("maxallowed");var s=n("range");if(!s){var l;!i.noInsiderange&&o!=="log"&&(l=n("insiderange"),l&&(l[0]===null||l[1]===null)&&(r.insiderange=!1,l=void 0),l&&(s=n("range",l)))}var u=r.getAutorangeDflt(s,i),c=n("autorange",u),f;s&&(s[0]===null&&s[1]===null||(s[0]===null||s[1]===null)&&(c==="reversed"||c===!0)||s[0]!==null&&(c==="min"||c==="max reversed")||s[1]!==null&&(c==="max"||c==="min reversed"))&&(s=void 0,delete r.range,r.autorange=!0,f=!0),f||(u=r.getAutorangeDflt(s,i),c=n("autorange",u)),c&&(Rlt(n,c,s),(o==="linear"||o==="-")&&n("rangemode")),r.cleanRange()}});var Hse=ye((mar,Gse)=>{var Dlt={left:0,top:0};Gse.exports=Flt;function Flt(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=zlt(t);return r[0]=n-a.left,r[1]=i-a.top,r}function zlt(e){return e===window||e===document||e===document.body?Dlt:e.getBoundingClientRect()}});var VL=ye((yar,jse)=>{"use strict";var qlt=lO();function Olt(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(r){e=!1}return e}jse.exports=qlt&&Olt()});var Xse=ye((_ar,Wse)=>{"use strict";Wse.exports=function(t,r,n,i,a){var o=(t-n)/(i-n),s=o+r/(i-n),l=(o+s)/2;return a==="left"||a==="bottom"?o:a==="center"||a==="middle"?l:a==="right"||a==="top"?s:o<2/3-l?o:s>4/3-l?s:l}});var Kse=ye((xar,Yse)=>{"use strict";var Zse=Pr(),Blt=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];Yse.exports=function(t,r,n,i){return n==="left"?t=0:n==="center"?t=1:n==="right"?t=2:t=Zse.constrain(Math.floor(t*3),0,2),i==="bottom"?r=0:i==="middle"?r=1:i==="top"?r=2:r=Zse.constrain(Math.floor(r*3),0,2),Blt[r][t]}});var $se=ye((bar,Jse)=>{"use strict";var Nlt=L3(),Ult=j6(),Vlt=jS().getGraphDiv,Glt=US(),EB=Jse.exports={};EB.wrapped=function(e,t,r){e=Vlt(e),e._fullLayout&&Ult.clear(e._fullLayout._uid+Glt.HOVERID),EB.raw(e,t,r)};EB.raw=function(t,r){var n=t._fullLayout,i=t._hoverdata;r||(r={}),!(r.target&&!t._dragged&&Nlt.triggerHandler(t,"plotly_beforehover",r)===!1)&&(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),t._hoverdata=void 0,r.target&&i&&t.emit("plotly_unhover",{event:r,points:i}))}});var yv=ye((war,rle)=>{"use strict";var Hlt=Hse(),kB=cO(),jlt=VL(),Wlt=Pr().removeElement,Xlt=Rh(),Ub=rle.exports={};Ub.align=Xse();Ub.getCursor=Kse();var ele=$se();Ub.unhover=ele.wrapped;Ub.unhoverRaw=ele.raw;Ub.init=function(t){var r=t.gd,n=1,i=r._context.doubleClickDelay,a=t.element,o,s,l,u,c,f,h,d;r._mouseDownTime||(r._mouseDownTime=0),a.style.pointerEvents="all",a.onmousedown=b,jlt?(a._ontouchstart&&a.removeEventListener("touchstart",a._ontouchstart),a._ontouchstart=b,a.addEventListener("touchstart",b,{passive:!1})):a.ontouchstart=b;function v(M,T,L){return Math.abs(M)<L&&(M=0),Math.abs(T)<L&&(T=0),[M,T]}var m=t.clampFn||v;function b(M){r._dragged=!1,r._dragging=!0;var T=Qse(M);o=T[0],s=T[1],h=M.target,f=M,d=M.buttons===2||M.ctrlKey,typeof M.clientX=="undefined"&&typeof M.clientY=="undefined"&&(M.clientX=o,M.clientY=s),l=new Date().getTime(),l-r._mouseDownTime<i?n+=1:(n=1,r._mouseDownTime=l),t.prepFn&&t.prepFn(M,o,s),kB&&!d?(c=tle(),c.style.cursor=window.getComputedStyle(a).cursor):kB||(c=document,u=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(a).cursor),document.addEventListener("mouseup",k),document.addEventListener("touchend",k),t.dragmode!==!1&&(M.preventDefault(),document.addEventListener("mousemove",p),document.addEventListener("touchmove",p,{passive:!1}))}function p(M){M.preventDefault();var T=Qse(M),L=t.minDrag||Xlt.MINDRAG,x=m(T[0]-o,T[1]-s,L),C=x[0],S=x[1];(C||S)&&(r._dragged=!0,Ub.unhover(r,M)),r._dragged&&t.moveFn&&!d&&(r._dragdata={element:a,dx:C,dy:S},t.moveFn(C,S))}function k(M){if(delete r._dragdata,t.dragmode!==!1&&(M.preventDefault(),document.removeEventListener("mousemove",p),document.removeEventListener("touchmove",p)),document.removeEventListener("mouseup",k),document.removeEventListener("touchend",k),kB?Wlt(c):u&&(c.documentElement.style.cursor=u,u=null),!r._dragging){r._dragged=!1;return}if(r._dragging=!1,new Date().getTime()-r._mouseDownTime>i&&(n=Math.max(n-1,1)),r._dragged)t.doneFn&&t.doneFn();else{var T;f.target===h?T=f:(T={target:h,srcElement:h,toElement:h},Object.keys(f).concat(Object.keys(f.__proto__)).forEach(L=>{var x=f[L];!T[L]&&typeof x!="function"&&(T[L]=x)})),t.clickFn&&t.clickFn(n,T),d||h.dispatchEvent(new MouseEvent("click",M))}r._dragging=!1,r._dragged=!1}};function tle(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}Ub.coverSlip=tle;function Qse(e){return Hlt(e.changedTouches?e.changedTouches[0]:e,document.body)}});var Eg=ye((Tar,ile)=>{"use strict";ile.exports=function(t,r){(t.attr("class")||"").split(" ").forEach(function(n){n.indexOf("cursor-")===0&&t.classed(n,!1)}),r&&t.classed("cursor-"+r,!0)}});var ole=ye((Aar,ale)=>{"use strict";var CB=Eg(),gM="data-savedcursor",nle="!!";ale.exports=function(t,r){var n=t.attr(gM);if(r){if(!n){for(var i=(t.attr("class")||"").split(" "),a=0;a<i.length;a++){var o=i[a];o.indexOf("cursor-")===0&&t.attr(gM,o.slice(7)).classed(o,!1)}t.attr(gM)||t.attr(gM,nle)}CB(t,r)}else n&&(t.attr(gM,null),n===nle?CB(t):CB(t,n))}});var PB=ye((Sar,sle)=>{"use strict";var LB=ec(),Zlt=Ih();sle.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:Zlt.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:LB({editType:"legend"}),grouptitlefont:LB({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},entrywidth:{valType:"number",min:0,editType:"legend"},entrywidthmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels",editType:"legend"},indentation:{valType:"number",min:-15,dflt:0,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemwidth:{valType:"number",min:30,dflt:30,editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},groupclick:{valType:"enumerated",values:["toggleitem","togglegroup"],dflt:"togglegroup",editType:"legend"},titleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],editType:"legend"},titledoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],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:LB({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}});var yM=ye(mM=>{"use strict";mM.isGrouped=function(t){return(t.traceorder||"").indexOf("grouped")!==-1};mM.isVertical=function(t){return t.orientation!=="h"};mM.isReversed=function(t){return(t.traceorder||"").indexOf("reversed")!==-1};mM.getId=function(t){return t._id||"legend"}});var RB=ye((Ear,lle)=>{"use strict";var GL=Oa(),Yp=Pr(),Ylt=vl(),Klt=Gl(),Jlt=PB(),$lt=b3(),IB=yM();function Qlt(e,t,r,n,i){var a=t[e]||{},o=Ylt.newContainer(r,e);function s(H,ie){return Yp.coerce(a,o,Jlt,H,ie)}var l=Yp.coerceFont(s,"font",r.font);s("bgcolor",r.paper_bgcolor),s("bordercolor");var u=s("visible");if(!u)return;var c,f=function(H,ie){var ae=c._input,_e=c;return Yp.coerce(ae,_e,Klt,H,ie)},h=r.font||{},d=Yp.coerceFont(s,"grouptitlefont",h,{overrideDflt:{size:Math.round(h.size*1.1)}}),v=0,m=!1,b="normal",p=(r.shapes||[]).filter(function(H){return H.showlegend});function k(H){return GL.traceIs(H,"pie-like")&&H._length!=null&&(Array.isArray(H.legend)||Array.isArray(H.showlegend))}n.filter(k).forEach(function(H){H.visible&&v++;for(var ie=0;ie<H._length;ie++){var ae=(Array.isArray(H.legend)?H.legend[ie]:H.legend)||"legend";ae===e&&((Array.isArray(H.showlegend)?H.showlegend[ie]:H.showlegend)||H._dfltShowLegend)&&(m=!0,v++)}if(e==="legend"&&H._length>H.legend.length)for(var _e=H.legend.length;_e<H._length;_e++)m=!0,v++});for(var M=n.concat(p).filter(function(H){return!k(c)&&e===(H.legend||"legend")}),T=0;T<M.length;T++)if(c=M[T],!!c.visible){var L=c._isShape;(c.showlegend||c._dfltShowLegend&&!(c._module&&c._module.attributes&&c._module.attributes.showlegend&&c._module.attributes.showlegend.dflt===!1))&&(v++,c.showlegend&&(m=!0,(!L&&GL.traceIs(c,"pie-like")||c._input.showlegend===!0)&&v++),Yp.coerceFont(f,"legendgrouptitle.font",d)),(!L&&GL.traceIs(c,"bar")&&r.barmode==="stack"||["tonextx","tonexty"].indexOf(c.fill)!==-1)&&(b=IB.isGrouped({traceorder:b})?"grouped+reversed":"reversed"),c.legendgroup!==void 0&&c.legendgroup!==""&&(b=IB.isReversed({traceorder:b})?"reversed+grouped":"grouped")}var x=Yp.coerce(t,r,$lt,"showlegend",r.showlegend||m&&v>(e==="legend"?1:0));if(x===!1&&(r[e]=void 0),!(x===!1&&!a.uirevision)&&(s("uirevision",r.uirevision),x!==!1)){s("borderwidth");var C=s("orientation"),S=s("yref"),g=s("xref"),P=C==="h",E=S==="paper",z=g==="paper",q,V,G,Z="left";P?(q=0,GL.getComponentMethod("rangeslider","isVisible")(t.xaxis)?E?(V=1.1,G="bottom"):(V=1,G="top"):E?(V=-.1,G="top"):(V=0,G="bottom")):(V=1,G="auto",z?q=1.02:(q=1,Z="right")),Yp.coerce(a,o,{x:{valType:"number",editType:"legend",min:z?-2:0,max:z?3:1,dflt:q}},"x"),Yp.coerce(a,o,{y:{valType:"number",editType:"legend",min:E?-2:0,max:E?3:1,dflt:V}},"y"),s("traceorder",b),IB.isGrouped(r[e])&&s("tracegroupgap"),s("entrywidth"),s("entrywidthmode"),s("indentation"),s("itemsizing"),s("itemwidth"),s("itemclick"),s("itemdoubleclick"),s("groupclick"),s("xanchor",Z),s("yanchor",G),s("maxheight"),s("valign"),Yp.noneOrAll(a,o,["x","y"]);var j=s("title.text");if(j){s("title.side",P?"left":"top");var N=Yp.extendFlat({},l,{size:Yp.bigFont(l.size)});Yp.coerceFont(s,"title.font",N);let H=i>1;s("titleclick",H?"toggle":!1),s("titledoubleclick",H?"toggleothers":!1)}}}lle.exports=function(t,r,n){var i,a=n.slice(),o=r.shapes;if(o)for(i=0;i<o.length;i++){var s=o[i];if(s.showlegend){var l={_input:s._input,visible:s.visible,showlegend:s.showlegend,legend:s.legend};a.push(l)}}var u=["legend"];for(i=0;i<a.length;i++)Array.isArray(a[i].legend)?u=u.concat(a[i].legend):Yp.pushUnique(u,a[i].legend);for(r._legends=[],i=0;i<u.length;i++){var c=u[i];Qlt(c,t,r,a,u.length),r[c]&&(r[c]._id=c),r._legends.push(c)}}});var zB=ye(FB=>{"use strict";var p_=Oa(),DB=Pr(),eut=DB.pushUnique,tut=yM(),ule=!0;FB.handleItemClick=function(t,r,n,i){var a=r._fullLayout;if(r._dragged||r._editing)return;var o=t.data()[0][0];if(o.groupTitle&&o.noClick)return;var s=n.groupclick;i==="toggle"&&n.itemdoubleclick==="toggleothers"&&ule&&r.data&&r._context.showTips&&(DB.notifier(DB._(r,"Double-click on legend to isolate one trace"),"long",r),ule=!1);var l=s==="togglegroup",u=a.hiddenlabels?a.hiddenlabels.slice():[],c=r._fullData;let f=(a.shapes||[]).filter(at=>at.showlegend||at.legendgroup);var h=c.concat(f),d=o.trace;d._isShape&&(d=d._fullInput);var v=d.legendgroup,m,b,p,k,M,T,L={},x=[],C=[],S=[];function g(at,ct){var ar=x.indexOf(at),Vt=L.visible;return Vt||(Vt=L.visible=[]),x.indexOf(at)===-1&&(x.push(at),ar=x.length-1),Vt[ar]=ct,ar}var P=(a.shapes||[]).map(function(at){return at._input}),E=!1;function z(at,ct){P[at].visible=ct,E=!0}function q(at,ct){if(!(o.groupTitle&&!l)){var ar=at._fullInput||at,Vt=ar._isShape,rr=ar.index;rr===void 0&&(rr=ar._index);var tt=ar.visible===!1?!1:ct;Vt?z(rr,tt):g(rr,tt)}}var V=d.legend,G=d._fullInput,Z=G&&G._isShape;if(!Z&&p_.traceIs(d,"pie-like")){var j=o.label,N=u.indexOf(j);if(i==="toggle")N===-1?u.push(j):u.splice(N,1);else if(i==="toggleothers"){var H=N!==-1,ie=[];for(m=0;m<r.calcdata.length;m++){var ae=r.calcdata[m];for(b=0;b<ae.length;b++){var _e=ae[b],Ee=_e.label;V===ae[0].trace.legend&&j!==Ee&&(u.indexOf(Ee)===-1&&(H=!0),eut(u,Ee),ie.push(Ee))}}if(!H)for(var Ce=0;Ce<ie.length;Ce++){var ge=u.indexOf(ie[Ce]);ge!==-1&&u.splice(ge,1)}}p_.call("_guiRelayout",r,"hiddenlabels",u)}else{var re=v&&v.length,Se=[],ke;if(re)for(m=0;m<h.length;m++)ke=h[m],ke.visible&&ke.legendgroup===v&&Se.push(m);if(i==="toggle"){var be;switch(d.visible){case!0:be="legendonly";break;case!1:be=!1;break;case"legendonly":be=!0;break}if(re)if(l)for(m=0;m<h.length;m++){var Be=h[m];Be.visible!==!1&&Be.legendgroup===v&&q(Be,be)}else q(d,be);else q(d,be)}else if(i==="toggleothers"){var Le,me,Pe,ce,He,lt=!0;for(m=0;m<h.length;m++)if(He=h[m],Le=He===d,Pe=He.showlegend!==!0,!(Le||Pe)&&(me=re&&He.legendgroup===v,!me&&He.legend===V&&He.visible===!0&&!p_.traceIs(He,"notLegendIsolatable"))){lt=!1;break}for(m=0;m<h.length;m++)if(He=h[m],!(He.visible===!1||He.legend!==V)&&!p_.traceIs(He,"notLegendIsolatable"))switch(d.visible){case"legendonly":q(He,!0);break;case!0:ce=lt?!0:"legendonly",Le=He===d,Pe=He.showlegend!==!0&&!He.legendgroup,me=Le||re&&He.legendgroup===v,q(He,me||Pe?!0:ce);break}}for(m=0;m<C.length;m++)if(p=C[m],!!p){var mt=p.constructUpdate(),Ht=Object.keys(mt);for(b=0;b<Ht.length;b++)k=Ht[b],T=L[k]=L[k]||[],T[S[m]]=mt[k]}for(M=Object.keys(L),m=0;m<M.length;m++)for(k=M[m],b=0;b<x.length;b++)L[k].hasOwnProperty(b)||(L[k][b]=void 0);E?p_.call("_guiUpdate",r,L,{shapes:P},x):p_.call("_guiRestyle",r,L,x)}};FB.handleTitleClick=function(t,r,n){let i=t._fullLayout,a=t._fullData,o=tut.getId(r),s=(i.shapes||[]).filter(p=>p.showlegend||p.legendgroup),l=a.concat(s);function u(p){return(p.legend||"legend")===o}var c,f;if(n==="toggle")c=!l.some(function(k){return u(k)&&k.visible===!0}),f=!1;else{let p=l.some(function(k){return!u(k)&&k.visible===!0&&k.showlegend!==!1});c=!0,f=!p}let h={visible:[]},d=[],v=(i.shapes||[]).map(function(p){return p._input});for(var m=!1,b=0;b<l.length;b++){let p=l[b],k=u(p);if(!k){let L=p.showlegend!==!0&&!p.legendgroup;if(n==="toggle"||L)continue}let T=(k?c:f)?!0:"legendonly";p.visible!==!1&&p.visible!==T&&(p._isShape?(v[p._index].visible=T,m=!0):(d.push(p.index),h.visible.push(T)))}m?p_.call("_guiUpdate",t,h,{shapes:v},d):d.length&&p_.call("_guiRestyle",t,h,d)}});var qB=ye((Car,cle)=>{"use strict";cle.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}});var dle=ye((Lar,hle)=>{"use strict";var{isArrayOrTypedArray:OB}=Yd(),fle=Oa(),BB=yM();hle.exports=function(t,r,n){var i=r._inHover,a=BB.isGrouped(r),o=BB.isReversed(r),s={},l=[],u=!1,c={},f=0,h=0,d,v;function m(ie,ae,_e){if(r.visible!==!1&&!(n&&ie!==r._id))if(ae===""||!BB.isGrouped(r)){var Ee="~~i"+f;l.push(Ee),s[Ee]=[_e],f++}else l.indexOf(ae)===-1?(l.push(ae),u=!0,s[ae]=[_e]):s[ae].push(_e)}for(d=0;d<t.length;d++){var b=t[d],p=b[0],k=p.trace,M=k.legend,T=k.legendgroup;if(!(!i&&(!k.visible||!k.showlegend)))if(fle.traceIs(k,"pie-like")){var L=Array.isArray(k.legend),x=Array.isArray(k.showlegend);for(c[T]||(c[T]={}),v=0;v<b.length;v++)if(!(x&&k.showlegend[b[v].i]===!1)){L&&(M=k.legend[b[v].i]||"legend");var C=b[v].label;c[T][C]||(m(M,T,{label:C,color:b[v].color,i:b[v].i,trace:k,pts:b[v].pts}),c[T][C]=!0,h=Math.max(h,(C||"").length))}}else m(M,T,p),h=Math.max(h,(k.name||"").length)}if(!l.length)return[];var S=!u||!a,g=[];for(d=0;d<l.length;d++){var P=s[l[d]];S?g.push(P[0]):g.push(P)}for(S&&(g=[g]),d=0;d<g.length;d++){var E=1/0;for(v=0;v<g[d].length;v++){var z=g[d][v].trace.legendrank,q=OB(z)?Math.min(z):z;E>q&&(E=q)}g[d][0]._groupMinRank=E,g[d][0]._preGroupSort=d}var V=function(ie,ae){return ie[0]._groupMinRank-ae[0]._groupMinRank||ie[0]._preGroupSort-ae[0]._preGroupSort},G=function(ie,ae){var _e=OB(ie.trace.legendrank)?ie.trace.legendrank[ie.i]:ie.trace.legendrank,Ee=OB(ae.trace.legendrank)?ae.trace.legendrank[ae.i]:ae.trace.legendrank;return _e-Ee||ie._preSort-ae._preSort};for(g.forEach(function(ie,ae){ie[0]._preGroupSort=ae}),g.sort(V),d=0;d<g.length;d++){g[d].forEach(function(ie,ae){ie._preSort=ae}),g[d].sort(G);var Z=g[d][0].trace,j=null;for(v=0;v<g[d].length;v++){var N=g[d][v].trace.legendgrouptitle;if(N&&N.text){j=N,i&&(N.font=r._groupTitleFont);break}}if(o&&g[d].reverse(),j){var H=!1;for(v=0;v<g[d].length;v++)if(fle.traceIs(g[d][v].trace,"pie-like")){H=!0;break}g[d].unshift({i:-1,groupTitle:j,noClick:H,trace:{showlegend:Z.showlegend,legendgroup:Z.legendgroup,legend:Z.legend,visible:r.groupclick==="toggleitem"?!0:Z.visible}})}for(v=0;v<g[d].length;v++)g[d][v]=[g[d][v]]}return r._lgroupsLength=g.length,r._maxNameLength=h,g}});var g_=ye(Vb=>{"use strict";var HL=Pr();function vle(e){return e.indexOf("e")!==-1?e.replace(/[.]?0+e/,"e"):e.indexOf(".")!==-1?e.replace(/[.]?0+$/,""):e}Vb.formatPiePercent=function(t,r){var n=vle((t*100).toPrecision(3));return HL.numSeparate(n,r)+"%"};Vb.formatPieValue=function(t,r){var n=vle(t.toPrecision(10));return HL.numSeparate(n,r)};Vb.getFirstFilled=function(t,r){if(HL.isArrayOrTypedArray(t))for(var n=0;n<r.length;n++){var i=t[r[n]];if(i||i===0||i==="")return i}};Vb.castOption=function(t,r){if(HL.isArrayOrTypedArray(t))return Vb.getFirstFilled(t,r);if(t)return t};Vb.getRotationAngle=function(e){return(e==="auto"?0:e)*Math.PI/180}});var gle=ye((Iar,ple)=>{"use strict";var rut=So(),iut=ka();ple.exports=function(t,r,n,i){var a=n.marker.pattern;a&&a.shape?rut.pointStyle(t,n,i,r):iut.fill(t,r.color)}});var Y3=ye((Rar,_le)=>{"use strict";var mle=ka(),yle=g_().castOption,nut=gle();_le.exports=function(t,r,n,i){var a=n.marker.line,o=yle(a.color,r.pts)||mle.defaultLine,s=yle(a.width,r.pts)||0;t.call(nut,r,n,i).style("stroke-width",s).call(mle.stroke,o)}});var GB=ye((Dar,Sle)=>{"use strict";var Ov=qa(),NB=Oa(),_v=Pr(),xle=_v.strTranslate,Kp=So(),T0=ka(),UB=pv().extractOpts,jL=Ru(),aut=Y3(),out=g_().castOption,sut=qB(),ble=12,wle=5,Gb=2,lut=10,K3=5;Sle.exports=function(t,r,n){var i=r._fullLayout;n||(n=i.legend);var a=n.itemsizing==="constant",o=n.itemwidth,s=(o+sut.itemGap*2)/2,l=xle(s,0),u=function(C,S,g,P){var E;if(C+1)E=C;else if(S&&S.width>0)E=S.width;else return 0;return a?P:Math.min(E,g)};t.each(function(C){var S=Ov.select(this),g=_v.ensureSingle(S,"g","layers");g.style("opacity",C[0].trace.opacity);var P=n.indentation,E=n.valign,z=C[0].lineHeight,q=C[0].height;if(E==="middle"&&P===0||!z||!q)g.attr("transform",null);else{var V={top:1,bottom:-1}[E],G=V*(.5*(z-q+3))||0,Z=n.indentation;g.attr("transform",xle(Z,G))}var j=g.selectAll("g.legendfill").data([C]);j.enter().append("g").classed("legendfill",!0);var N=g.selectAll("g.legendlines").data([C]);N.enter().append("g").classed("legendlines",!0);var H=g.selectAll("g.legendsymbols").data([C]);H.enter().append("g").classed("legendsymbols",!0),H.selectAll("g.legendpoints").data([C]).enter().append("g").classed("legendpoints",!0)}).each(x).each(h).each(v).each(d).each(b).each(T).each(M).each(c).each(f).each(p).each(k);function c(C){var S=Tle(C),g=S.showFill,P=S.showLine,E=S.showGradientLine,z=S.showGradientFill,q=S.anyFill,V=S.anyLine,G=C[0],Z=G.trace,j,N,H=UB(Z),ie=H.colorscale,ae=H.reversescale,_e=function(be){if(be.size())if(g)Kp.fillGroupStyle(be,r,!0);else{var Be="legendfill-"+Z.uid;Kp.gradient(be,r,Be,VB(ae),ie,"fill")}},Ee=function(be){if(be.size()){var Be="legendline-"+Z.uid;Kp.lineGroupStyle(be),Kp.gradient(be,r,Be,VB(ae),ie,"stroke")}},Ce=jL.hasMarkers(Z)||!q?"M5,0":V?"M5,-2":"M5,-3",ge=Ov.select(this),re=ge.select(".legendfill").selectAll("path").data(g||z?[C]:[]);if(re.enter().append("path").classed("js-fill",!0),re.exit().remove(),re.attr("d",Ce+"h"+o+"v6h-"+o+"z").call(_e),P||E){var Se=u(void 0,Z.line,lut,wle);N=_v.minExtend(Z,{line:{width:Se}}),j=[_v.minExtend(G,{trace:N})]}var ke=ge.select(".legendlines").selectAll("path").data(P||E?[j]:[]);ke.enter().append("path").classed("js-line",!0),ke.exit().remove(),ke.attr("d",Ce+(E?"l"+o+",0.0001":"h"+o)).call(P?Kp.lineGroupStyle:Ee)}function f(C){var S=Tle(C),g=S.anyFill,P=S.anyLine,E=S.showLine,z=S.showMarker,q=C[0],V=q.trace,G=!z&&!P&&!g&&jL.hasText(V),Z,j;function N(re,Se,ke,be){var Be=_v.nestedProperty(V,re).get(),Le=_v.isArrayOrTypedArray(Be)&&Se?Se(Be):Be;if(a&&Le&&be!==void 0&&(Le=be),ke){if(Le<ke[0])return ke[0];if(Le>ke[1])return ke[1]}return Le}function H(re){return q._distinct&&q.index&&re[q.index]?re[q.index]:re[0]}if(z||G||E){var ie={},ae={};if(z){ie.mc=N("marker.color",H),ie.mx=N("marker.symbol",H),ie.mo=N("marker.opacity",_v.mean,[.2,1]),ie.mlc=N("marker.line.color",H),ie.mlw=N("marker.line.width",_v.mean,[0,5],Gb),ie.mld=V._isShape?"solid":N("marker.line.dash",H),ae.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var _e=N("marker.size",_v.mean,[2,16],ble);ie.ms=_e,ae.marker.size=_e}E&&(ae.line={width:N("line.width",H,[0,10],wle)}),G&&(ie.tx="Aa",ie.tp=N("textposition",H),ie.ts=10,ie.tc=N("textfont.color",H),ie.tf=N("textfont.family",H),ie.tw=N("textfont.weight",H),ie.ty=N("textfont.style",H),ie.tv=N("textfont.variant",H),ie.tC=N("textfont.textcase",H),ie.tE=N("textfont.lineposition",H),ie.tS=N("textfont.shadow",H)),Z=[_v.minExtend(q,ie)],j=_v.minExtend(V,ae),j.selectedpoints=null,j.texttemplate=null}var Ee=Ov.select(this).select("g.legendpoints"),Ce=Ee.selectAll("path.scatterpts").data(z?Z:[]);Ce.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",l),Ce.exit().remove(),Ce.call(Kp.pointStyle,j,r),z&&(Z[0].mrc=3);var ge=Ee.selectAll("g.pointtext").data(G?Z:[]);ge.enter().append("g").classed("pointtext",!0).append("text").attr("transform",l),ge.exit().remove(),ge.selectAll("text").call(Kp.textPointStyle,j,r)}function h(C){var S=C[0].trace,g=S.type==="waterfall";if(C[0]._distinct&&g){var P=C[0].trace[C[0].dir].marker;return C[0].mc=P.color,C[0].mlw=P.line.width,C[0].mlc=P.line.color,m(C,this,"waterfall")}var E=[];S.visible&&g&&(E=C[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 z=Ov.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(E);z.enter().append("path").classed("legendwaterfall",!0).attr("transform",l).style("stroke-miterlimit",1),z.exit().remove(),z.each(function(q){var V=Ov.select(this),G=S[q[0]].marker,Z=u(void 0,G.line,K3,Gb);V.attr("d",q[1]).style("stroke-width",Z+"px").call(T0.fill,G.color),Z&&V.call(T0.stroke,G.line.color)})}function d(C){m(C,this)}function v(C){m(C,this,"funnel")}function m(C,S,g){var P=C[0].trace,E=P.marker||{},z=E.line||{},q=E.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",V=g?P.visible&&P.type===g:NB.traceIs(P,"bar"),G=Ov.select(S).select("g.legendpoints").selectAll("path.legend"+g).data(V?[C]:[]);G.enter().append("path").classed("legend"+g,!0).attr("d",q).attr("transform",l),G.exit().remove(),G.each(function(Z){var j=Ov.select(this),N=Z[0],H=u(N.mlw,E.line,K3,Gb);j.style("stroke-width",H+"px");var ie=N.mcc;if(!n._inHover&&"mc"in N){var ae=UB(E),_e=ae.mid;_e===void 0&&(_e=(ae.max+ae.min)/2),ie=Kp.tryColorscale(E,"")(_e)}var Ee=ie||N.mc||E.color,Ce=E.pattern,ge=Kp.getPatternAttr,re=Ce&&(ge(Ce.shape,0,"")||ge(Ce.path,0,""));if(re){var Se=ge(Ce.bgcolor,0,null),ke=ge(Ce.fgcolor,0,null),be=Ce.fgopacity,Be=Ale(Ce.size,8,10),Le=Ale(Ce.solidity,.5,1),me="legend-"+P.uid;j.call(Kp.pattern,"legend",r,me,re,Be,Le,ie,Ce.fillmode,Se,ke,be)}else j.call(T0.fill,Ee);H&&T0.stroke(j,N.mlc||z.color)})}function b(C){var S=C[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendbox").data(S.visible&&NB.traceIs(S,"box-violin")?[C]:[]);g.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),g.exit().remove(),g.each(function(){var P=Ov.select(this);if((S.boxpoints==="all"||S.points==="all")&&T0.opacity(S.fillcolor)===0&&T0.opacity((S.line||{}).color)===0){var E=_v.minExtend(S,{marker:{size:a?ble:_v.constrain(S.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});g.call(Kp.pointStyle,E,r)}else{var z=u(void 0,S.line,K3,Gb);P.style("stroke-width",z+"px").call(T0.fill,S.fillcolor),z&&T0.stroke(P,S.line.color)}})}function p(C){var S=C[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(S.visible&&S.type==="candlestick"?[C,C]:[]);g.enter().append("path").classed("legendcandle",!0).attr("d",function(P,E){return E?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,E){var z=Ov.select(this),q=S[E?"increasing":"decreasing"],V=u(void 0,q.line,K3,Gb);z.style("stroke-width",V+"px").call(T0.fill,q.fillcolor),V&&T0.stroke(z,q.line.color)})}function k(C){var S=C[0].trace,g=Ov.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(S.visible&&S.type==="ohlc"?[C,C]:[]);g.enter().append("path").classed("legendohlc",!0).attr("d",function(P,E){return E?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",l).style("stroke-miterlimit",1),g.exit().remove(),g.each(function(P,E){var z=Ov.select(this),q=S[E?"increasing":"decreasing"],V=u(void 0,q.line,K3,Gb);z.style("fill","none").call(Kp.dashLine,q.line.dash,V),V&&T0.stroke(z,q.line.color)})}function M(C){L(C,this,"pie")}function T(C){L(C,this,"funnelarea")}function L(C,S,g){var P=C[0],E=P.trace,z=g?E.visible&&E.type===g:NB.traceIs(E,g),q=Ov.select(S).select("g.legendpoints").selectAll("path.legend"+g).data(z?[C]:[]);if(q.enter().append("path").classed("legend"+g,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",l),q.exit().remove(),q.size()){var V=E.marker||{},G=u(out(V.line.width,P.pts),V.line,K3,Gb),Z="pieLike",j=_v.minExtend(E,{marker:{line:{width:G}}},Z),N=_v.minExtend(P,{trace:j},Z);aut(q,N,j,r)}}function x(C){var S=C[0].trace,g,P=[];if(S.visible)switch(S.type){case"histogram2d":case"heatmap":P=[["M-15,-2V4H15V-2Z"]],g=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":P=[["M-6,-6V6H6V-6Z"]],g=!0;break;case"densitymapbox":case"densitymap":P=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],g="radial";break;case"cone":P=[["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"]],g=!1;break;case"streamtube":P=[["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"]],g=!1;break;case"surface":P=[["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"]],g=!0;break;case"mesh3d":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!1;break;case"volume":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],g=!0;break;case"isosurface":P=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],g=!1;break}var E=Ov.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(P);E.enter().append("path").classed("legend3dandfriends",!0).attr("transform",l).style("stroke-miterlimit",1),E.exit().remove(),E.each(function(z,q){var V=Ov.select(this),G=UB(S),Z=G.colorscale,j=G.reversescale,N=function(_e){if(_e.size()){var Ee="legendfill-"+S.uid;Kp.gradient(_e,r,Ee,VB(j,g==="radial"),Z,"fill")}},H;if(Z){if(!g){var ae=Z.length;H=q===0?Z[j?ae-1:0][1]:q===1?Z[j?0:ae-1][1]:Z[Math.floor((ae-1)/2)][1]}}else{var ie=S.vertexcolor||S.facecolor||S.color;H=_v.isArrayOrTypedArray(ie)?ie[q]||ie[0]:ie}V.attr("d",z[0]),H?V.call(T0.fill,H):V.call(N)})}};function VB(e,t){var r=t?"radial":"horizontal";return r+(e?"":"reversed")}function Tle(e){var t=e[0].trace,r=t.contours,n=jL.hasLines(t),i=jL.hasMarkers(t),a=t.visible&&t.fill&&t.fill!=="none",o=!1,s=!1;if(r){var l=r.coloring;l==="lines"?o=!0:n=l==="none"||l==="heatmap"||r.showlines,r.type==="constraint"?a=r._operation!=="=":(l==="fill"||l==="heatmap")&&(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function Ale(e,t,r){return e&&_v.isArrayOrTypedArray(e)?t:e>r?r:e}});var XB=ye((Far,Dle)=>{"use strict";var np=qa(),vh=Pr(),jB=Mc(),Hb=Oa(),ZL=L3(),HB=yv(),ph=So(),_M=ka(),jb=Zl(),Mle=zB().handleItemClick,Ele=zB().handleTitleClick,qh=qB(),WB=Dh(),Ile=WB.LINE_SPACING,$3=WB.FROM_TL,kle=WB.FROM_BR,Cle=dle(),uut=GB(),Q3=yM(),J3=1,cut=/^legend[0-9]*$/;Dle.exports=function(t,r){if(r)Lle(t,r);else{var n=t._fullLayout,i=n._legends,a=n._infolayer.selectAll('[class^="legend"]');a.each(function(){var u=np.select(this),c=u.attr("class"),f=c.split(" ")[0];f.match(cut)&&i.indexOf(f)===-1&&u.remove()});for(var o=0;o<i.length;o++){var s=i[o],l=t._fullLayout[s];Lle(t,l)}}};function fut(e,t,r){if(!(t.title.side!=="top center"&&t.title.side!=="top right")){var n=t.title.font,i=n.size*Ile,a=0,o=e.node(),s=ph.bBox(o).width;t.title.side==="top center"?a=.5*(t._width-2*r-2*qh.titlePad-s):t.title.side==="top right"&&(a=t._width-2*r-2*qh.titlePad-s),jb.positionText(e,r+qh.titlePad+a,r+i)}}function Lle(e,t){var r=t||{},n=e._fullLayout,i=Q3.getId(r),a,o,s=r._inHover;if(s?(o=r.layer,a="hover"):(o=n._infolayer,a=i),!!o){a+=n._uid,e._legendMouseDownTime||(e._legendMouseDownTime=0);var l;if(s){if(!r.entries)return;l=Cle(r.entries,r)}else{for(var u=(e.calcdata||[]).slice(),c=n.shapes,f=0;f<c.length;f++){var h=c[f];if(h.showlegend){var d={_isShape:!0,_fullInput:h,index:h._index,name:h.name||h.label.text||"shape "+h._index,legend:h.legend,legendgroup:h.legendgroup,legendgrouptitle:h.legendgrouptitle,legendrank:h.legendrank,legendwidth:h.legendwidth,showlegend:h.showlegend,visible:h.visible,opacity:h.opacity,mode:h.type==="line"?"lines":"markers",line:h.line,marker:{line:h.line,color:h.fillcolor,size:12,symbol:h.type==="rect"?"square":h.type==="circle"?"circle":"hexagon2"}};u.push([{trace:d}])}}l=n.showlegend&&Cle(u,r,n._legends.length>1)}var v=n.hiddenlabels||[];if(!s&&(!n.showlegend||!l.length))return o.selectAll("."+i).remove(),n._topdefs.select("#"+a).remove(),jB.autoMargin(e,i);var m=vh.ensureSingle(o,"g",i,function(S){s||S.attr("pointer-events","all")}),b=vh.ensureSingleById(n._topdefs,"clipPath",a,function(S){S.append("rect")}),p=vh.ensureSingle(m,"rect","bg",function(S){S.attr("shape-rendering","crispEdges")});p.call(_M.stroke,r.bordercolor).call(_M.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px");var k=vh.ensureSingle(m,"g","scrollbox"),M=r.title;r._titleWidth=0,r._titleHeight=0;var T;M.text?(T=vh.ensureSingle(k,"text",i+"titletext"),T.attr("text-anchor","start").call(ph.font,M.font).text(M.text),XL(T,k,e,r,J3),!s&&(r.titleclick||r.titledoubleclick)&&vut(k,e,r,i)):(k.selectAll("."+i+"titletext").remove(),k.selectAll("."+i+"titletoggle").remove());var L=vh.ensureSingle(m,"rect","scrollbar",function(S){S.attr(qh.scrollBarEnterAttrs).call(_M.fill,qh.scrollBarColor)}),x=k.selectAll("g.groups").data(l);x.enter().append("g").attr("class","groups"),x.exit().remove();var C=x.selectAll("g.traces").data(vh.identity);C.enter().append("g").attr("class","traces"),C.exit().remove(),C.style("opacity",function(S){let g=S[0],P=g.trace;if(g.groupTitle){let E=P.legendgroup,z=(n.shapes||[]).filter(function(V){return V.showlegend});return e._fullData.concat(z).some(function(V){return V.legendgroup===E&&(V.legend||"legend")===i&&V.visible===!0})?1:.5}return Hb.traceIs(P,"pie-like")?v.indexOf(S[0].label)!==-1?.5:1:P.visible==="legendonly"?.5:1}).each(function(){np.select(this).call(hut,e,r)}).call(uut,e,r).each(function(S){s||S[0].groupTitle&&r.groupclick==="toggleitem"||np.select(this).call(dut,e,i)}),vh.syncOrAsync([jB.previousPromises,function(){return mut(e,x,C,r,k)},function(){var S=n._size,g=r.borderwidth,P=r.xref==="paper",E=r.yref==="paper";if(M.text){let He=(n.shapes||[]).filter(function(mt){return mt.showlegend}),lt=e._fullData.concat(He).some(function(mt){let Ht=mt.legend||"legend";var at=Array.isArray(Ht)?Ht.includes(i):Ht===i;return at&&mt.visible===!0});T.style("opacity",lt?1:.5)}if(!s){var z,q;P?z=S.l+S.w*r.x-$3[YL(r)]*r._width:z=n.width*r.x-$3[YL(r)]*r._width,E?q=S.t+S.h*(1-r.y)-$3[KL(r)]*r._effHeight:q=n.height*(1-r.y)-$3[KL(r)]*r._effHeight;var V=yut(e,i,z,q);if(V)return;if(n.margin.autoexpand){var G=z,Z=q;z=P?vh.constrain(z,0,n.width-r._width):G,q=E?vh.constrain(q,0,n.height-r._effHeight):Z,z!==G&&vh.log("Constrain "+i+".x to make legend fit inside graph"),q!==Z&&vh.log("Constrain "+i+".y to make legend fit inside graph")}ph.setTranslate(m,z,q)}if(L.on(".drag",null),m.on("wheel",null),s||r._height<=r._maxHeight||e._context.staticPlot){var j=r._effHeight;s&&(j=r._height),p.attr({width:r._width-g,height:j-g,x:g/2,y:g/2}),ph.setTranslate(k,0,0),b.select("rect").attr({width:r._width-2*g,height:j-2*g,x:g,y:g}),ph.setClipUrl(k,a,e),ph.setRect(L,0,0,0,0),delete r._scrollY}else{var N=Math.max(qh.scrollBarMinHeight,r._effHeight*r._effHeight/r._height),H=r._effHeight-N-2*qh.scrollBarMargin,ie=r._height-r._effHeight,ae=H/ie,_e=Math.min(r._scrollY||0,ie);p.attr({width:r._width-2*g+qh.scrollBarWidth+qh.scrollBarMargin,height:r._effHeight-g,x:g/2,y:g/2}),b.select("rect").attr({width:r._width-2*g+qh.scrollBarWidth+qh.scrollBarMargin,height:r._effHeight-2*g,x:g,y:g+_e}),ph.setClipUrl(k,a,e),Be(_e,N,ae),m.on("wheel",function(){_e=vh.constrain(r._scrollY+np.event.deltaY/ie*H,0,ie),Be(_e,N,ae),_e!==0&&_e!==ie&&np.event.preventDefault()});var Ee,Ce,ge,re=function(He,lt,mt){var Ht=(mt-lt)/ae+He;return vh.constrain(Ht,0,ie)},Se=function(He,lt,mt){var Ht=(lt-mt)/ae+He;return vh.constrain(Ht,0,ie)},ke=np.behavior.drag().on("dragstart",function(){var He=np.event.sourceEvent;He.type==="touchstart"?Ee=He.changedTouches[0].clientY:Ee=He.clientY,ge=_e}).on("drag",function(){var He=np.event.sourceEvent;He.buttons===2||He.ctrlKey||(He.type==="touchmove"?Ce=He.changedTouches[0].clientY:Ce=He.clientY,_e=re(ge,Ee,Ce),Be(_e,N,ae))});L.call(ke);var be=np.behavior.drag().on("dragstart",function(){var He=np.event.sourceEvent;He.type==="touchstart"&&(Ee=He.changedTouches[0].clientY,ge=_e)}).on("drag",function(){var He=np.event.sourceEvent;He.type==="touchmove"&&(Ce=He.changedTouches[0].clientY,_e=Se(ge,Ee,Ce),Be(_e,N,ae))});k.call(be)}function Be(He,lt,mt){r._scrollY=e._fullLayout[i]._scrollY=He,ph.setTranslate(k,0,-He),ph.setRect(L,r._width,qh.scrollBarMargin+He*mt,qh.scrollBarWidth,lt),b.select("rect").attr("y",g+He)}if(e._context.edits.legendPosition){var Le,me,Pe,ce;m.classed("cursor-move",!0),HB.init({element:m.node(),gd:e,prepFn:function(He){if(He.target!==L.node()){var lt=ph.getTranslate(m);Pe=lt.x,ce=lt.y}},moveFn:function(He,lt){if(Pe!==void 0&&ce!==void 0){var mt=Pe+He,Ht=ce+lt;ph.setTranslate(m,mt,Ht),Le=HB.align(mt,r._width,S.l,S.l+S.w,r.xanchor),me=HB.align(Ht+r._height,-r._height,S.t+S.h,S.t,r.yanchor)}},doneFn:function(){if(Le!==void 0&&me!==void 0){var He={};He[i+".x"]=Le,He[i+".y"]=me,Hb.call("_guiRelayout",e,He)}},clickFn:function(He,lt){var mt=o.selectAll("g.traces").filter(function(){var Ht=this.getBoundingClientRect();return lt.clientX>=Ht.left&&lt.clientX<=Ht.right&&lt.clientY>=Ht.top&&lt.clientY<=Ht.bottom});mt.size()>0&&Rle(e,r,mt,He,lt)}})}}],e)}}function WL(e,t,r){var n=e[0],i=n.width,a=t.entrywidthmode,o=n.trace.legendwidth||t.entrywidth;return a==="fraction"?t._maxWidth*o:r+(o||i)}function Rle(e,t,r,n,i){var a=e._fullLayout,o=r.data()[0][0].trace,s=t.itemclick,l=t.itemdoubleclick,u={event:i,node:r.node(),curveNumber:o.index,expandedIndex:o.index,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:a};o._group&&(u.group=o._group),Hb.traceIs(o,"pie-like")&&(u.label=r.datum()[0].label);var c=ZL.triggerHandler(e,"plotly_legendclick",u);if(n===1){if(c===!1)return;t._clickTimeout=setTimeout(function(){e._fullLayout&&s&&Mle(r,e,t,s)},e._context.doubleClickDelay)}else if(n===2){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var f=ZL.triggerHandler(e,"plotly_legenddoubleclick",u);f!==!1&&c!==!1&&l&&Mle(r,e,t,l)}}function hut(e,t,r){var n=Q3.getId(r),i=e.data()[0][0],a=i.trace,o=Hb.traceIs(a,"pie-like"),s=!r._inHover&&t._context.edits.legendText&&!o,l=r._maxNameLength,u,c;i.groupTitle?(u=i.groupTitle.text,c=i.groupTitle.font):(c=r.font,r.entries?u=i.text:(u=o?i.label:a.name,a._meta&&(u=vh.templateString(u,a._meta))));var f=vh.ensureSingle(e,"text",n+"text");f.attr("text-anchor","start").call(ph.font,c).text(s?Ple(u,l):u);var h=r.indentation+r.itemwidth+qh.itemGap*2;jb.positionText(f,h,0),s?f.call(jb.makeEditable,{gd:t,text:u}).call(XL,e,t,r).on("edit",function(d){this.text(Ple(d,l)).call(XL,e,t,r);var v=i.trace._fullInput||{},m={};return m.name=d,v._isShape?Hb.call("_guiRelayout",t,"shapes["+a.index+"].name",m.name):Hb.call("_guiRestyle",t,m,a.index)}):XL(f,e,t,r)}function Ple(e,t){var r=Math.max(4,t);if(e&&e.trim().length>=r/2)return e;e=e||"";for(var n=r-e.length;n>0;n--)e+=" ";return e}function dut(e,t,r){var n=t._context.doubleClickDelay,i,a=1,o=vh.ensureSingle(e,"rect",r+"toggle",function(s){t._context.staticPlot||s.style("cursor","pointer").attr("pointer-events","all"),s.call(_M.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(o.on("mousedown",function(){i=new Date().getTime(),i-t._legendMouseDownTime<n?a+=1:(a=1,t._legendMouseDownTime=i)}),o.on("mouseup",function(){if(!(t._dragged||t._editing)){var s=t._fullLayout[r];new Date().getTime()-t._legendMouseDownTime>n&&(a=Math.max(a-1,1)),Rle(t,s,e,a,np.event)}}))}function vut(e,t,r,n){if(t._fullData.some(function(u){let c=u.legend||"legend";return(Array.isArray(c)?c.includes(n):c===n)&&Hb.traceIs(u,"pie-like")}))return;let a=t._context.doubleClickDelay;var o,s=1;let l=vh.ensureSingle(e,"rect",n+"titletoggle",function(u){t._context.staticPlot||u.style("cursor","pointer").attr("pointer-events","all"),u.call(_M.fill,"rgba(0,0,0,0)")});t._context.staticPlot||(l.on("mousedown",function(){o=new Date().getTime(),o-t._legendMouseDownTime<a?s+=1:(s=1,t._legendMouseDownTime=o)}),l.on("mouseup",function(){if(t._dragged||t._editing)return;new Date().getTime()-t._legendMouseDownTime>a&&(s=Math.max(s-1,1));let u={event:np.event,legendId:n,data:t.data,layout:t.layout,fullData:t._fullData,fullLayout:t._fullLayout};if(s===1&&r.titleclick){if(ZL.triggerHandler(t,"plotly_legendtitleclick",u)===!1)return;r._titleClickTimeout=setTimeout(function(){t._fullLayout&&Ele(t,r,r.titleclick)},a)}else s===2&&(r._titleClickTimeout&&clearTimeout(r._titleClickTimeout),t._legendMouseDownTime=0,ZL.triggerHandler(t,"plotly_legendtitledoubleclick",u)!==!1&&r.titledoubleclick&&Ele(t,r,r.titledoubleclick))}))}function XL(e,t,r,n,i){n._inHover&&e.attr("data-notex",!0),jb.convertToTspans(e,r,function(){put(t,r,n,i)})}function put(e,t,r,n){var i=e.data()[0][0],a=i&&i.trace.showlegend;if(Array.isArray(a)&&(a=a[i.i]!==!1),!r._inHover&&i&&!a){e.remove();return}var o=e.select("g[class*=math-group]"),s=o.node(),l=Q3.getId(r);r||(r=t._fullLayout[l]);var u=r.borderwidth,c;n===J3?c=r.title.font:i.groupTitle?c=i.groupTitle.font:c=r.font;var f=c.size*Ile,h,d;if(s){var v=ph.bBox(s);h=v.height,d=v.width,n===J3?ph.setTranslate(o,u,u+h*.75):ph.setTranslate(o,0,h*.25)}else{var m="."+l+(n===J3?"title":"")+"text",b=e.select(m),p=jb.lineCount(b),k=b.node();if(h=f*p,d=k?ph.bBox(k).width:0,n===J3)r.title.side==="left"&&(d+=qh.itemGap*2),jb.positionText(b,u+qh.titlePad,u+f);else{var M=qh.itemGap*2+r.indentation+r.itemwidth;i.groupTitle&&(M=qh.itemGap,d-=r.indentation+r.itemwidth),jb.positionText(b,M,-f*((p-1)/2-.3))}}n===J3?(r._titleWidth=d,r._titleHeight=h):(i.lineHeight=f,i.height=Math.max(h,16)+3,i.width=d)}function gut(e){var t=0,r=0,n=e.title.side;return n&&(n.indexOf("left")!==-1&&(t=e._titleWidth),n.indexOf("top")!==-1&&(r=e._titleHeight)),[t,r]}function mut(e,t,r,n,i){var a=e._fullLayout,o=Q3.getId(n);n||(n=a[o]);var s=a._size,l=Q3.isVertical(n),u=Q3.isGrouped(n),c=n.entrywidthmode==="fraction",f=n.borderwidth,h=2*f,d=qh.itemGap,v=n.indentation+n.itemwidth+d*2,m=2*(f+d),b=KL(n),p=n.y<0||n.y===0&&b==="top",k=n.y>1||n.y===1&&b==="bottom",M=n.tracegroupgap,T={};let{orientation:L,yref:x}=n,{maxheight:C}=n,S=p||k||L!=="v"||x!=="paper";C||(C=S?.5:1);let g=S?a.height:s.h;n._maxHeight=Math.max(C>1?C:C*g,30);var P=0;n._width=0,n._height=0;var E=gut(n);if(l)r.each(function(He){var lt=He[0].height;ph.setTranslate(this,f+E[0],f+E[1]+n._height+lt/2+d),n._height+=lt,n._width=Math.max(n._width,He[0].width)}),P=v+n._width,n._width+=d+v+h,n._height+=m,u&&(t.each(function(He,lt){ph.setTranslate(this,0,lt*n.tracegroupgap)}),n._height+=(n._lgroupsLength-1)*n.tracegroupgap);else{var z=YL(n),q=n.x<0||n.x===0&&z==="right",V=n.x>1||n.x===1&&z==="left",G=k||p,Z=a.width/2;n._maxWidth=Math.max(q?G&&z==="left"?s.l+s.w:Z:V?G&&z==="right"?s.r+s.w:Z:s.w,2*v);var j=0,N=0;r.each(function(He){var lt=WL(He,n,v);j=Math.max(j,lt),N+=lt}),P=null;var H=0;if(u){var ie=0,ae=0,_e=0;t.each(function(){var He=0,lt=0;np.select(this).selectAll("g.traces").each(function(Ht){var at=WL(Ht,n,v),ct=Ht[0].height;ph.setTranslate(this,E[0],E[1]+f+d+ct/2+lt),lt+=ct,He=Math.max(He,at),T[Ht[0].trace.legendgroup]=He});var mt=He+d;ae>0&&mt+f+ae>n._maxWidth?(H=Math.max(H,ae),ae=0,_e+=ie+M,ie=lt):ie=Math.max(ie,lt),ph.setTranslate(this,ae,_e),ae+=mt}),n._width=Math.max(H,ae)+f,n._height=_e+ie+m}else{var Ee=r.size(),Ce=N+h+(Ee-1)*d<n._maxWidth,ge=0,re=0,Se=0,ke=0;r.each(function(He){var lt=He[0].height,mt=WL(He,n,v,u),Ht=Ce?mt:j;c||(Ht+=d),Ht+f+re-d>=n._maxWidth&&(H=Math.max(H,ke),re=0,Se+=ge,n._height+=ge,ge=0),ph.setTranslate(this,E[0]+f+re,E[1]+f+Se+lt/2+d),ke=re+mt+d,re+=Ht,ge=Math.max(ge,lt)}),Ce?(n._width=re+h,n._height=ge+m):(n._width=Math.max(H,ke)+h,n._height+=ge+m)}}n._width=Math.ceil(Math.max(n._width+E[0],n._titleWidth+2*(f+qh.titlePad))),n._height=Math.ceil(Math.max(n._height+E[1],n._titleHeight+2*(f+qh.itemGap))),n._effHeight=Math.min(n._height,n._maxHeight);var be=e._context.edits,Be=be.legendText||be.legendPosition;r.each(function(He){var lt=np.select(this).select("."+o+"toggle"),mt=He[0].height,Ht=He[0].trace.legendgroup,at=WL(He,n,v);u&&Ht!==""&&(at=T[Ht]);var ct=Be?v:P||at;!l&&!c&&(ct+=d/2),ph.setRect(lt,0,-mt/2,ct,mt)});var Le=i.select("."+o+"titletext");Le.node()&&fut(Le,n,f);var me=i.select("."+o+"titletoggle");if(me.size()&&Le.node()){var Pe=Le.attr("x")||0,ce=qh.titlePad;ph.setRect(me,Pe-ce,f,n._titleWidth+2*ce,n._titleHeight+2*ce)}}function yut(e,t,r,n){var i=e._fullLayout,a=i[t],o=YL(a),s=KL(a),l=a.xref==="paper",u=a.yref==="paper";e._fullLayout._reservedMargin[t]={};var c=a.y<.5?"b":"t",f=a.x<.5?"l":"r",h={r:i.width-r,l:r+a._width,b:i.height-n,t:n+a._effHeight};if(l&&u)return jB.autoMargin(e,t,{x:a.x,y:a.y,l:a._width*$3[o],r:a._width*kle[o],b:a._effHeight*kle[s],t:a._effHeight*$3[s]});l?e._fullLayout._reservedMargin[t][c]=h[c]:u||a.orientation==="v"?e._fullLayout._reservedMargin[t][f]=h[f]:e._fullLayout._reservedMargin[t][c]=h[c]}function YL(e){return vh.isRightAnchor(e)?"right":vh.isCenterAnchor(e)?"center":"left"}function KL(e){return vh.isBottomAnchor(e)?"bottom":vh.isMiddleAnchor(e)?"middle":"top"}});var JB=ye(KB=>{"use strict";var Wb=qa(),Iy=Eo(),Fle=fd(),zf=Pr(),_ut=zf.pushUnique,ZB=zf.strTranslate,xut=zf.strRotate,but=L3(),A0=Zl(),wut=ole(),Am=So(),vd=ka(),JL=yv(),Sm=ho(),Tut=Rh().zindexSeparator,tT=Oa(),kg=ip(),Xb=US(),Aut=RB(),Sut=XB(),Gle=Xb.YANGLE,YB=Math.PI*Gle/180,Mut=1/Math.sin(YB),Eut=Math.cos(YB),kut=Math.sin(YB),Qc=Xb.HOVERARROWSIZE,sl=Xb.HOVERTEXTPAD,zle={box:!0,ohlc:!0,violin:!0,candlestick:!0},Cut={scatter:!0,scattergl:!0,splom:!0};function qle(e,t){return e.distance-t.distance}KB.hover=function(t,r,n,i){t=zf.getGraphDiv(t);var a=r.target;zf.throttle(t._fullLayout._uid+Xb.HOVERID,Xb.HOVERMINTIME,function(){Lut(t,r,n,i,a)})};KB.loneHover=function(t,r){var n=!0;Array.isArray(t)||(n=!1,t=[t]);var i=r.gd,a=Zle(i),o=Yle(i),s=t.map(function(b){var p=b._x0||b.x0||b.x||0,k=b._x1||b.x1||b.x||0,M=b._y0||b.y0||b.y||0,T=b._y1||b.y1||b.y||0,L=b.eventData;if(L){var x=Math.min(p,k),C=Math.max(p,k),S=Math.min(M,T),g=Math.max(M,T),P=b.trace;if(tT.traceIs(P,"gl3d")){var E=i._fullLayout[P.scene]._scene.container,z=E.offsetLeft,q=E.offsetTop;x+=z,C+=z,S+=q,g+=q}L.bbox={x0:x+o,x1:C+o,y0:S+a,y1:g+a},L.xPixel=(p+k)/2,L.yPixel=(M+T)/2,r.inOut_bbox&&r.inOut_bbox.push(L.bbox)}else L=!1;return{color:b.color||vd.defaultLine,x0:b.x0||b.x||0,x1:b.x1||b.x||0,y0:b.y0||b.y||0,y1:b.y1||b.y||0,xLabel:b.xLabel,yLabel:b.yLabel,zLabel:b.zLabel,text:b.text,name:b.name,idealAlign:b.idealAlign,borderColor:b.borderColor,fontFamily:b.fontFamily,fontSize:b.fontSize,fontColor:b.fontColor,fontWeight:b.fontWeight,fontStyle:b.fontStyle,fontVariant:b.fontVariant,nameLength:b.nameLength,textAlign:b.textAlign,trace:b.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:b.hovertemplate||!1,hovertemplateLabels:b.hovertemplateLabels||!1,eventData:L}}),l=!1,u=jle(s,{gd:i,hovermode:"closest",rotateLabels:l,bgColor:r.bgColor||vd.background,container:Wb.select(r.container),outerContainer:r.outerContainer||r.container}),c=u.hoverLabels,f=5,h=0,d=0;c.sort(function(b,p){return b.y0-p.y0}).each(function(b,p){var k=b.y0-b.by/2;k-f<h?b.offset=h-k+f:b.offset=0,h=k+b.by+b.offset,p===r.anchorIndex&&(d=b.offset)}).each(function(b){b.offset-=d});var v=i._fullLayout._invScaleX,m=i._fullLayout._invScaleY;return Xle(c,l,v,m),n?c:c.node()};function Lut(e,t,r,n,i){r||(r="xy"),typeof r=="string"&&(r=r.split(Tut)[0]);var a=Array.isArray(r)?r:[r],o,s=e._fullLayout,l=s.hoversubplots,u=s._plots||[],c=u[r],f=s._has("cartesian"),h=t.hovermode||s.hovermode,d=(h||"").charAt(0)==="x",v=(h||"").charAt(0)==="y",m,b;if(f&&(d||v)&&l==="axis"){for(var p=a.length,k=0;k<p;k++)if(o=a[k],u[o]){m=Sm.getFromId(e,o,"x"),b=Sm.getFromId(e,o,"y");var M=(d?m:b)._subplotsWith;if(M&&M.length)for(var T=0;T<M.length;T++)_ut(a,M[T])}}if(c&&l!=="single"){var L=c.overlays.map(function(Vi){return Vi.id});a=a.concat(L)}for(var x=a.length,C=new Array(x),S=new Array(x),g=!1,P=0;P<x;P++)if(o=a[P],u[o])g=!0,C[P]=u[o].xaxis,S[P]=u[o].yaxis;else if(s[o]&&s[o]._subplot){var E=s[o]._subplot;C[P]=E.xaxis,S[P]=E.yaxis}else{zf.warn("Unrecognized subplot: "+o);return}if(h&&!g&&(h="closest"),["x","y","closest","x unified","y unified"].indexOf(h)===-1||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return JL.unhoverRaw(e,t);var z=s.hoverdistance;z===-1&&(z=1/0);var q=s.spikedistance;q===-1&&(q=1/0);var V=[],G=[],Z,j,N,H,ie,ae,_e,Ee,Ce,ge,re,Se,ke,be={hLinePoint:null,vLinePoint:null},Be=!1;if(Array.isArray(t))for(h="array",N=0;N<t.length;N++)ie=e.calcdata[t[N].curveNumber||0],ie&&(ae=ie[0].trace,ie[0].trace.hoverinfo!=="skip"&&(G.push(ie),ae.orientation==="h"&&(Be=!0)));else{var Le=e.calcdata.slice();for(Le.sort(function(Vi,Kn){var Jn=Vi[0].trace.zorder||0,Gt=Kn[0].trace.zorder||0;return Jn-Gt}),H=0;H<Le.length;H++)ie=Le[H],ae=ie[0].trace,ae.hoverinfo!=="skip"&&kg.isTraceInSubplots(ae,a)&&(G.push(ie),ae.orientation==="h"&&(Be=!0));var me=!i,Pe,ce;if(me)"xpx"in t?Pe=t.xpx:Pe=C[0]._length/2,"ypx"in t?ce=t.ypx:ce=S[0]._length/2;else{if(but.triggerHandler(e,"plotly_beforehover",t)===!1)return;var He=i.getBoundingClientRect();Pe=t.clientX-He.left,ce=t.clientY-He.top,s._calcInverseTransform(e);var lt=zf.apply3DTransform(s._invTransform)(Pe,ce);if(Pe=lt[0],ce=lt[1],Pe<0||Pe>C[0]._length||ce<0||ce>S[0]._length)return JL.unhoverRaw(e,t)}if(t.pointerX=Pe+C[0]._offset,t.pointerY=ce+S[0]._offset,"xval"in t?Z=kg.flat(a,t.xval):Z=kg.p2c(C,Pe),"yval"in t?j=kg.flat(a,t.yval):j=kg.p2c(S,ce),!Iy(Z[0])||!Iy(j[0]))return zf.warn("Fx.hover failed",t,e),JL.unhoverRaw(e,t)}s.clickanywhere&&(e._hoverXVals=Z,e._hoverYVals=j,e._hoverXAxes=C,e._hoverYAxes=S);var mt=1/0;function Ht(Vi,Kn){for(H=0;H<G.length;H++)if(ie=G[H],!(!ie||!ie[0]||!ie[0].trace)&&(ae=ie[0].trace,!(ae.visible!==!0||ae._length===0)&&["carpet","contourcarpet"].indexOf(ae._module.name)===-1)){if(Ce=h,kg.isUnifiedHover(Ce)&&(Ce=Ce.charAt(0)),ae.type==="splom"?(Ee=0,_e=a[Ee]):(_e=kg.getSubplot(ae),Ee=a.indexOf(_e)),Se={cd:ie,trace:ae,xa:C[Ee],ya:S[Ee],maxHoverDistance:z,maxSpikeDistance:q,index:!1,distance:Math.min(mt,z),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:vd.defaultLine,name:ae.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},s[_e]&&(Se.subplot=s[_e]._subplot),s._splomScenes&&s._splomScenes[ae.uid]&&(Se.scene=s._splomScenes[ae.uid]),Ce==="array"){var Jn=t[H];"pointNumber"in Jn?(Se.index=Jn.pointNumber,Ce="closest"):(Ce="","xval"in Jn&&(ge=Jn.xval,Ce="x"),"yval"in Jn&&(re=Jn.yval,Ce=Ce?"closest":"y"))}else Vi!==void 0&&Kn!==void 0?(ge=Vi,re=Kn):(ge=Z[Ee],re=j[Ee]);if(ke=V.length,z!==0)if(ae._module&&ae._module.hoverPoints){var Gt=ae._module.hoverPoints(Se,ge,re,Ce,{finiteRange:!0,hoverLayer:s._hoverlayer,hoversubplots:l,gd:e});if(Gt)for(var wt,tr=0;tr<Gt.length;tr++)wt=Gt[tr],Iy(wt.x0)&&Iy(wt.y0)&&V.push(Dut(wt,h))}else zf.log("Unrecognized trace type in hover:",ae);if(h==="closest"&&V.length>ke&&(V.splice(0,ke),mt=V[0].distance),f&&q!==0&&V.length===0){Se.distance=q,Se.index=!1;var ir=ae._module.hoverPoints(Se,ge,re,"closest",{hoverLayer:s._hoverlayer});if(ir&&(ir=ir.filter(function(Zi){return Zi.spikeDistance<=q})),ir&&ir.length){var wr,Xr=ir.filter(function(Zi){return Zi.xa.showspikes&&Zi.xa.spikesnap!=="hovered data"});if(Xr.length){var ti=Xr[0];Iy(ti.x0)&&Iy(ti.y0)&&(wr=ct(ti),(!be.vLinePoint||be.vLinePoint.spikeDistance>wr.spikeDistance)&&(be.vLinePoint=wr))}var $r=ir.filter(function(Zi){return Zi.ya.showspikes&&Zi.ya.spikesnap!=="hovered data"});if($r.length){var Ri=$r[0];Iy(Ri.x0)&&Iy(Ri.y0)&&(wr=ct(Ri),(!be.hLinePoint||be.hLinePoint.spikeDistance>wr.spikeDistance)&&(be.hLinePoint=wr))}}}}}Ht();function at(Vi,Kn,Jn){for(var Gt=null,wt=1/0,tr,ir=0;ir<Vi.length;ir++)m&&m._id!==Vi[ir].xa._id||b&&b._id!==Vi[ir].ya._id||(tr=Vi[ir].spikeDistance,Jn&&ir===0&&(tr=-1/0),tr<=wt&&tr<=Kn&&(Gt=Vi[ir],wt=tr));return Gt}function ct(Vi){return Vi?{xa:Vi.xa,ya:Vi.ya,x:Vi.xSpike!==void 0?Vi.xSpike:(Vi.x0+Vi.x1)/2,y:Vi.ySpike!==void 0?Vi.ySpike:(Vi.y0+Vi.y1)/2,distance:Vi.distance,spikeDistance:Vi.spikeDistance,curveNumber:Vi.trace.index,color:Vi.color,pointNumber:Vi.index}:null}var ar={fullLayout:s,container:s._hoverlayer,event:t},Vt=e._spikepoints,rr={vLinePoint:be.vLinePoint,hLinePoint:be.hLinePoint};e._spikepoints=rr;var tt=function(){var Vi=V.filter(function(Jn){return m&&m._id===Jn.xa._id&&b&&b._id===Jn.ya._id}),Kn=V.filter(function(Jn){return!(m&&m._id===Jn.xa._id&&b&&b._id===Jn.ya._id)});Vi.sort(qle),Kn.sort(qle),V=Vi.concat(Kn),V=zut(V,h)};tt();var je=h.charAt(0),Ue=(je==="x"||je==="y")&&V[0]&&Cut[V[0].trace.type];if(f&&q!==0&&V.length!==0){var Ae=V.filter(function(Vi){return Vi.ya.showspikes}),rt=at(Ae,q,Ue);be.hLinePoint=ct(rt);var St=V.filter(function(Vi){return Vi.xa.showspikes}),Tt=at(St,q,Ue);be.vLinePoint=ct(Tt)}if(V.length===0){var dt=JL.unhoverRaw(e,t);if(f&&(be.hLinePoint!==null||be.vLinePoint!==null)&&Nle(Vt)&&Ble(e,be,ar),s.hoveranywhere&&!n&&i){var Et=e._hoverdata;Et&&Et.length&&(e.emit("plotly_unhover",{event:t,points:Et}),e._hoverdata=[]),Qn([])}return dt}if(f&&Nle(Vt)&&Ble(e,be,ar),kg.isXYhover(Ce)&&V[0].length!==0&&V[0].trace.type!=="splom"){var pt=V[0];zle[pt.trace.type]?V=V.filter(Vi=>Vi.trace.index===pt.trace.index):V=[pt];var jt=V.length,or=Vle("x",pt,s),mr=Vle("y",pt,s);Ht(or,mr);var Ar=[],ei={},qr=0,jr=function(Vi){var Kn=zle[Vi.trace.type]?Hle(Vi):Vi.trace.index;if(!ei[Kn])qr++,ei[Kn]=qr,Ar.push(Vi);else{var Jn=ei[Kn]-1,Gt=Ar[Jn];Jn>0&&Math.abs(Vi.distance)<Math.abs(Gt.distance)&&(Ar[Jn]=Vi)}},gt;for(gt=0;gt<jt;gt++)jr(V[gt]);for(gt=V.length-1;gt>jt-1;gt--)jr(V[gt]);V=Ar,tt()}var Ge=e._hoverdata,Je=[],We=Zle(e),et=Yle(e);for(let Vi of V){var xt=kg.makeEventData(Vi,Vi.trace,Vi.cd);if(Vi.hovertemplate!==!1){var At=!1;Vi.cd[Vi.index]&&Vi.cd[Vi.index].ht&&(At=Vi.cd[Vi.index].ht),Vi.hovertemplate=At||Vi.trace.hovertemplate||!1}if(Vi.xa&&Vi.ya){var Kt=Vi.x0+Vi.xa._offset,Qt=Vi.x1+Vi.xa._offset,Mr=Vi.y0+Vi.ya._offset,Gr=Vi.y1+Vi.ya._offset,Ir=Math.min(Kt,Qt),Yr=Math.max(Kt,Qt),_i=Math.min(Mr,Gr),Pi=Math.max(Mr,Gr);xt.bbox={x0:Ir+et,x1:Yr+et,y0:_i+We,y1:Pi+We},xt.xPixel=(Kt+Qt)/2,xt.yPixel=(Mr+Gr)/2}Vi.eventData=[xt],Je.push(xt)}e._hoverdata=Je;var ai=h==="y"&&(G.length>1||V.length>1)||h==="closest"&&Be&&V.length>1,mi=vd.combine(s.plot_bgcolor||vd.background,s.paper_bgcolor),un=jle(V,{gd:e,hovermode:h,rotateLabels:ai,bgColor:mi,container:s._hoverlayer,outerContainer:s._paper.node(),commonLabelOpts:s.hoverlabel,hoverdistance:s.hoverdistance}),Fn=un.hoverLabels;if(kg.isUnifiedHover(h)||(Iut(Fn,ai,s,un.commonLabelBoundingBox),Xle(Fn,ai,s._invScaleX,s._invScaleY)),i&&i.tagName){var An=tT.getComponentMethod("annotations","hasClickToShow")(e,Je);wut(Wb.select(i),An?"pointer":"")}var Hn=Fut(e,t,Ge);if(!i||n||!Hn&&!s.hoveranywhere)return;Ge&&Hn&&e.emit("plotly_unhover",{event:t,points:Ge}),Qn(e._hoverdata);function Qn(Vi){e.emit("plotly_hover",{event:t,points:Vi,xaxes:C,yaxes:S,xvals:Z,yvals:j})}}function Hle(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa?e.xa._id:"",e.ya?e.ya._id:""].join(",")}var Put=/<extra>([\s\S]*)<\/extra>/;function jle(e,t){var r=t.gd,n=r._fullLayout,i=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,l=t.outerContainer,u=t.commonLabelOpts||{};if(e.length===0)return[[]];var c=t.fontFamily||Xb.HOVERFONT,f=t.fontSize||Xb.HOVERFONTSIZE,h=t.fontWeight||n.font.weight,d=t.fontStyle||n.font.style,v=t.fontVariant||n.font.variant,m=t.fontTextcase||n.font.textcase,b=t.fontLineposition||n.font.lineposition,p=t.fontShadow||n.font.shadow,k=e[0],M=k.xa,T=k.ya,L=i.charAt(0),x=L+"Label",C=k[x];if(C===void 0&&M.type==="multicategory")for(var S=0;S<e.length&&(C=e[S][x],C===void 0);S++);var g=eT(r,l),P=g.top,E=g.width,z=g.height,q=C!==void 0&&k.distance<=t.hoverdistance&&(i==="x"||i==="y");if(q){var V=!0,G,Z;for(G=0;G<e.length;G++)if(V&&e[G].zLabel===void 0&&(V=!1),Z=e[G].hoverinfo||e[G].trace.hoverinfo,Z){var j=Array.isArray(Z)?Z:Z.split("+");if(j.indexOf("all")===-1&&j.indexOf(i)===-1){q=!1;break}}V&&(q=!1)}var N=s.selectAll("g.axistext").data(q?[0]:[]);N.enter().append("g").classed("axistext",!0),N.exit().remove();var H={minX:0,maxX:0,minY:0,maxY:0};if(N.each(function(){var dt=Wb.select(this),Et=zf.ensureSingle(dt,"path","",function(_i){_i.style({"stroke-width":"1px"})}),pt=zf.ensureSingle(dt,"text","",function(_i){_i.attr("data-notex",1)}),jt=u.bgcolor||vd.defaultLine,or=u.bordercolor||vd.contrast(jt),mr=vd.contrast(jt),Ar=u.font,ei={weight:Ar.weight||h,style:Ar.style||d,variant:Ar.variant||v,textcase:Ar.textcase||m,lineposition:Ar.lineposition||b,shadow:Ar.shadow||p,family:Ar.family||c,size:Ar.size||f,color:Ar.color||mr};Et.style({fill:jt,stroke:or}),pt.text(C).call(Am.font,ei).call(A0.positionText,0,0).call(A0.convertToTspans,r),dt.attr("transform","");var qr=eT(r,pt.node()),jr,gt;if(i==="x"){var Ge=M.side==="top"?"-":"";pt.attr("text-anchor","middle").call(A0.positionText,0,M.side==="top"?P-qr.bottom-Qc-sl:P-qr.top+Qc+sl),jr=M._offset+(k.x0+k.x1)/2,gt=T._offset+(M.side==="top"?0:T._length);var Je=qr.width/2+sl,We=jr;jr<Je?We=Je:jr>n.width-Je&&(We=n.width-Je),Et.attr("d","M"+(jr-We)+",0L"+(jr-We+Qc)+","+Ge+Qc+"H"+Je+"v"+Ge+(sl*2+qr.height)+"H"+-Je+"V"+Ge+Qc+"H"+(jr-We-Qc)+"Z"),jr=We,H.minX=jr-Je,H.maxX=jr+Je,M.side==="top"?(H.minY=gt-(sl*2+qr.height),H.maxY=gt-sl):(H.minY=gt+sl,H.maxY=gt+(sl*2+qr.height))}else{var et,xt,At;T.side==="right"?(et="start",xt=1,At="",jr=M._offset+M._length):(et="end",xt=-1,At="-",jr=M._offset),gt=T._offset+(k.y0+k.y1)/2,pt.attr("text-anchor",et),Et.attr("d","M0,0L"+At+Qc+","+Qc+"V"+(sl+qr.height/2)+"h"+At+(sl*2+qr.width)+"V-"+(sl+qr.height/2)+"H"+At+Qc+"V-"+Qc+"Z"),H.minY=gt-(sl+qr.height/2),H.maxY=gt+(sl+qr.height/2),T.side==="right"?(H.minX=jr+Qc,H.maxX=jr+Qc+(sl*2+qr.width)):(H.minX=jr-Qc-(sl*2+qr.width),H.maxX=jr-Qc);var Kt=qr.height/2,Qt=P-qr.top-Kt,Mr="clip"+n._uid+"commonlabel"+T._id,Gr;if(jr<qr.width+2*sl+Qc){Gr="M-"+(Qc+sl)+"-"+Kt+"h-"+(qr.width-sl)+"V"+Kt+"h"+(qr.width-sl)+"Z";var Ir=qr.width-jr+sl;A0.positionText(pt,Ir,Qt),et==="end"&&pt.selectAll("tspan").each(function(){var _i=Wb.select(this),Pi=Am.tester.append("text").text(_i.text()).call(Am.font,ei),ai=eT(r,Pi.node());Math.round(ai.width)<Math.round(qr.width)&&_i.attr("x",Ir-ai.width),Pi.remove()})}else A0.positionText(pt,xt*(sl+Qc),Qt),Gr=null;var Yr=n._topclips.selectAll("#"+Mr).data(Gr?[0]:[]);Yr.enter().append("clipPath").attr("id",Mr).append("path"),Yr.exit().remove(),Yr.select("path").attr("d",Gr),Am.setClipUrl(pt,Gr?Mr:null,r)}dt.attr("transform",ZB(jr,gt))}),kg.isUnifiedHover(i)){s.selectAll("g.hovertext").remove();let dt=e.filter(Et=>Et.hoverinfo!=="none");if(dt.length===0)return[];var ie=n.hoverlabel,ae=ie.font,_e=dt[0],Ee=((i==="x unified"?_e.xa:_e.ya).unifiedhovertitle||{}).text,Ce=Ee?zf.hovertemplateString({data:i==="x unified"?[{xa:_e.xa,x:_e.xVal}]:[{ya:_e.ya,y:_e.yVal}],fallback:_e.trace.hovertemplatefallback,locale:n._d3locale,template:Ee}):C,ge={showlegend:!0,legend:{title:{text:Ce,font:ae},font:ae,bgcolor:ie.bgcolor,bordercolor:ie.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:n.legend?n.legend.traceorder:void 0,orientation:"v"}},re={font:ae};Aut(ge,re,r._fullData);var Se=re.legend;Se.entries=[];for(var ke=0;ke<dt.length;ke++){var be=dt[ke];if(be.hoverinfo!=="none"){var Be=Ole(be,!0,i,n,C),Le=Be[0],me=Be[1];be.name=me,me!==""?be.text=me+" : "+Le:be.text=Le;var Pe=be.cd[be.index];Pe&&(Pe.mc&&(be.mc=Pe.mc),Pe.mcc&&(be.mc=Pe.mcc),Pe.mlc&&(be.mlc=Pe.mlc),Pe.mlcc&&(be.mlc=Pe.mlcc),Pe.mlw&&(be.mlw=Pe.mlw),Pe.mrc&&(be.mrc=Pe.mrc),Pe.dir&&(be.dir=Pe.dir)),be._distinct=!0,Se.entries.push([be])}}Se.entries.sort(function(Et,pt){var jt=n.hoversort;if(jt==="value descending"||jt==="value ascending"){var or=i.charAt(0)==="x"?"y":"x",mr=Et[0][or+"LabelVal"],Ar=pt[0][or+"LabelVal"];if(mr!==Ar)return jt==="value descending"?Ar-mr:mr-Ar}return Et[0].trace.index-pt[0].trace.index}),Se.layer=s,Se._inHover=!0,Se._groupTitleFont=ie.grouptitlefont,Sut(r,Se);var ce=s.select("g.legend"),He=eT(r,ce.node()),lt=He.width+2*sl,mt=He.height+2*sl,Ht=dt[0],at=(Ht.x0+Ht.x1)/2,ct=(Ht.y0+Ht.y1)/2,ar=!(tT.traceIs(Ht.trace,"bar-like")||tT.traceIs(Ht.trace,"box-violin")),Vt,rr;L==="y"?ar?(rr=ct-sl,Vt=ct+sl):(rr=Math.min.apply(null,dt.map(function(Et){return Math.min(Et.y0,Et.y1)})),Vt=Math.max.apply(null,dt.map(function(Et){return Math.max(Et.y0,Et.y1)}))):rr=Vt=zf.mean(dt.map(function(Et){return(Et.y0+Et.y1)/2}))-mt/2;var tt,je;L==="x"?ar?(tt=at+sl,je=at-sl):(tt=Math.max.apply(null,dt.map(function(Et){return Math.max(Et.x0,Et.x1)})),je=Math.min.apply(null,dt.map(function(Et){return Math.min(Et.x0,Et.x1)}))):tt=je=zf.mean(dt.map(function(Et){return(Et.x0+Et.x1)/2}))-lt/2;var Ue=M._offset,Ae=T._offset;Vt+=Ae,tt+=Ue,je+=Ue-lt,rr+=Ae-mt;var rt,St;return tt+lt<E&&tt>=0?rt=tt:je+lt<E&&je>=0?rt=je:Ue+lt<E?rt=Ue:tt-at<at-je+lt?rt=E-lt:rt=0,rt+=sl,Vt+mt<z&&Vt>=0?St=Vt:rr+mt<z&&rr>=0?St=rr:Ae+mt<z?St=Ae:Vt-ct<ct-rr+mt?St=z-mt:St=0,St+=sl,ce.attr("transform",ZB(rt-1,St-1)),ce}var Tt=s.selectAll("g.hovertext").data(e,function(dt){return Hle(dt)});return Tt.enter().append("g").classed("hovertext",!0).each(function(){var dt=Wb.select(this);dt.append("rect").call(vd.fill,vd.addOpacity(o,.8)),dt.append("text").classed("name",!0),dt.append("path").style("stroke-width","1px"),dt.append("text").classed("nums",!0).call(Am.font,{weight:h,style:d,variant:v,textcase:m,lineposition:b,shadow:p,family:c,size:f})}),Tt.exit().remove(),Tt.each(function(dt){var Et=Wb.select(this).attr("transform",""),pt=dt.color;Array.isArray(pt)&&(pt=pt[dt.eventData[0].pointNumber]);var jt=dt.bgcolor||pt,or=vd.combine(vd.opacity(jt)?jt:vd.defaultLine,o),mr=vd.combine(vd.opacity(pt)?pt:vd.defaultLine,o),Ar=dt.borderColor||vd.contrast(or),ei=Ole(dt,q,i,n,C,Et),qr=ei[0],jr=ei[1],gt=Et.select("text.nums").call(Am.font,{family:dt.fontFamily||c,size:dt.fontSize||f,color:dt.fontColor||Ar,weight:dt.fontWeight||h,style:dt.fontStyle||d,variant:dt.fontVariant||v,textcase:dt.fontTextcase||m,lineposition:dt.fontLineposition||b,shadow:dt.fontShadow||p}).text(qr).attr("data-notex",1).call(A0.positionText,0,0).call(A0.convertToTspans,r),Ge=Et.select("text.name"),Je=0,We=0;if(jr&&jr!==qr){Ge.call(Am.font,{family:dt.fontFamily||c,size:dt.fontSize||f,color:mr,weight:dt.fontWeight||h,style:dt.fontStyle||d,variant:dt.fontVariant||v,textcase:dt.fontTextcase||m,lineposition:dt.fontLineposition||b,shadow:dt.fontShadow||p}).text(jr).attr("data-notex",1).call(A0.positionText,0,0).call(A0.convertToTspans,r);var et=eT(r,Ge.node());Je=et.width+2*sl,We=et.height+2*sl}else Ge.remove(),Et.select("rect").remove();Et.select("path").style({fill:or,stroke:Ar});var xt=dt.xa._offset+(dt.x0+dt.x1)/2,At=dt.ya._offset+(dt.y0+dt.y1)/2,Kt=Math.abs(dt.x1-dt.x0),Qt=Math.abs(dt.y1-dt.y0),Mr=eT(r,gt.node()),Gr=Mr.width/n._invScaleX,Ir=Mr.height/n._invScaleY;dt.ty0=(P-Mr.top)/n._invScaleY,dt.bx=Gr+2*sl,dt.by=Math.max(Ir+2*sl,We),dt.anchor="start",dt.txwidth=Gr,dt.tx2width=Je,dt.offset=0;var Yr=(Gr+Qc+sl+Je)*n._invScaleX,_i,Pi;if(a)dt.pos=xt,_i=At+Qt/2+Yr<=z,Pi=At-Qt/2-Yr>=0,(dt.idealAlign==="top"||!_i)&&Pi?(At-=Qt/2,dt.anchor="end"):_i?(At+=Qt/2,dt.anchor="start"):dt.anchor="middle",dt.crossPos=At;else{if(dt.pos=At,_i=xt+Kt/2+Yr<=E,Pi=xt-Kt/2-Yr>=0,(dt.idealAlign==="left"||!_i)&&Pi)xt-=Kt/2,dt.anchor="end";else if(_i)xt+=Kt/2,dt.anchor="start";else{dt.anchor="middle";var ai=Yr/2,mi=xt+ai-E,un=xt-ai;mi>0&&(xt-=mi),un<0&&(xt+=-un)}dt.crossPos=xt}gt.attr("text-anchor",dt.anchor),Je&&Ge.attr("text-anchor",dt.anchor),Et.attr("transform",ZB(xt,At)+(a?xut(Gle):""))}),{hoverLabels:Tt,commonLabelBoundingBox:H}}function Ole(e,t,r,n,i,a){var f,h;var o="",s="";e.nameOverride!==void 0&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=zf.templateString(e.name,e.trace._meta)),o=Ule(e.name,e.nameLength));var l=r.charAt(0),u=l==="x"?"y":"x";e.zLabel!==void 0?(e.xLabel!==void 0&&(s+="x: "+e.xLabel+"<br>"),e.yLabel!==void 0&&(s+="y: "+e.yLabel+"<br>"),e.trace.type!=="choropleth"&&e.trace.type!=="choroplethmapbox"&&e.trace.type!=="choroplethmap"&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[l+"Label"]===i?s=e[u+"Label"]||"":e.xLabel===void 0?e.yLabel!==void 0&&e.trace.type!=="scattercarpet"&&(s=e.yLabel):e.yLabel===void 0?s=e.xLabel:s="("+e.xLabel+", "+e.yLabel+")",(e.text||e.text===0)&&!Array.isArray(e.text)&&(s+=(s?"<br>":"")+e.text),e.extraText!==void 0&&(s+=(s?"<br>":"")+e.extraText),a&&s===""&&!e.hovertemplate&&(o===""&&a.remove(),s=o),(h=(f=e.trace)==null?void 0:f.hoverlabel)!=null&&h.split&&(e.hovertemplate="");let{hovertemplate:c=!1}=e;if(c){let d=e.hovertemplateLabels||e;e[l+"Label"]!==i&&(d[l+"other"]=d[l+"Val"],d[l+"otherLabel"]=d[l+"Label"]),s=zf.hovertemplateString({data:[e.eventData[0]||{},e.trace._meta],fallback:e.trace.hovertemplatefallback,labels:d,locale:n._d3locale,template:c}),s=s.replace(Put,(v,m)=>(o=Ule(m,e.nameLength),""))}return[s,o]}function Iut(e,t,r,n){var i=t?"xa":"ya",a=t?"ya":"xa",o=0,s=1,l=e.size(),u=new Array(l),c=0,f=n.minX,h=n.maxX,d=n.minY,v=n.maxY,m=function(Z){return Z*r._invScaleX},b=function(Z){return Z*r._invScaleY};e.each(function(Z){var j=Z[i],N=Z[a],H=j._id.charAt(0)==="x",ie=j.range;c===0&&ie&&ie[0]>ie[1]!==H&&(s=-1);var ae=0,_e=H?r.width:r.height;if(r.hovermode==="x"||r.hovermode==="y"){var Ee=Wle(Z,t),Ce=Z.anchor,ge=Ce==="end"?-1:1,re,Se;if(Ce==="middle")re=Z.crossPos+(H?b(Ee.y-Z.by/2):m(Z.bx/2+Z.tx2width/2)),Se=re+(H?b(Z.by):m(Z.bx));else if(H)re=Z.crossPos+b(Qc+Ee.y)-b(Z.by/2-Qc),Se=re+b(Z.by);else{var ke=m(ge*Qc+Ee.x),be=ke+m(ge*Z.bx);re=Z.crossPos+Math.min(ke,be),Se=Z.crossPos+Math.max(ke,be)}H?d!==void 0&&v!==void 0&&Math.min(Se,v)-Math.max(re,d)>1&&(N.side==="left"?(ae=N._mainLinePosition,_e=r.width):_e=N._mainLinePosition):f!==void 0&&h!==void 0&&Math.min(Se,h)-Math.max(re,f)>1&&(N.side==="top"?(ae=N._mainLinePosition,_e=r.height):_e=N._mainLinePosition)}u[c++]=[{datum:Z,traceIndex:Z.trace.index,dp:0,pos:Z.pos,posref:Z.posref,size:Z.by*(H?Mut:1)/2,pmin:ae,pmax:_e}]}),u.sort(function(Z,j){return Z[0].posref-j[0].posref||s*(j[0].traceIndex-Z[0].traceIndex)});var p,k,M,T,L,x,C;function S(Z){var j=Z[0],N=Z[Z.length-1];if(k=j.pmin-j.pos-j.dp+j.size,M=N.pos+N.dp+N.size-j.pmax,k>.01){for(L=Z.length-1;L>=0;L--)Z[L].dp+=k;p=!1}if(!(M<.01)){if(k<-.01){for(L=Z.length-1;L>=0;L--)Z[L].dp-=M;p=!1}if(p){var H=0;for(T=0;T<Z.length;T++)x=Z[T],x.pos+x.dp+x.size>j.pmax&&H++;for(T=Z.length-1;T>=0&&!(H<=0);T--)x=Z[T],x.pos>j.pmax-1&&(x.del=!0,H--);for(T=0;T<Z.length&&!(H<=0);T++)if(x=Z[T],x.pos<j.pmin+1)for(x.del=!0,H--,M=x.size*2,L=Z.length-1;L>=0;L--)Z[L].dp-=M;for(T=Z.length-1;T>=0&&!(H<=0);T--)x=Z[T],x.pos+x.dp+x.size>j.pmax&&(x.del=!0,H--)}}}for(;!p&&o<=l;){for(o++,p=!0,T=0;T<u.length-1;){var g=u[T],P=u[T+1],E=g[g.length-1],z=P[0];if(k=E.pos+E.dp+E.size-z.pos-z.dp+z.size,k>.01){for(L=P.length-1;L>=0;L--)P[L].dp+=k;for(g.push.apply(g,P),u.splice(T+1,1),C=0,L=g.length-1;L>=0;L--)C+=g[L].dp;for(M=C/g.length,L=g.length-1;L>=0;L--)g[L].dp-=M;p=!1}else T++}u.forEach(S)}for(T=u.length-1;T>=0;T--){var q=u[T];for(L=q.length-1;L>=0;L--){var V=q[L],G=V.datum;G.offset=V.dp,G.del=V.del}}}function Wle(e,t){var r=0,n=e.offset;return t&&(n*=-kut,r=e.offset*Eut),{x:r,y:n}}function Rut(e){var t={start:1,end:-1,middle:0}[e.anchor],r=t*(Qc+sl),n=r+t*(e.txwidth+sl),i=e.anchor==="middle";return i&&(r-=e.tx2width/2,n+=e.txwidth/2+sl),{alignShift:t,textShiftX:r,text2ShiftX:n}}function Xle(e,t,r,n){var i=function(o){return o*r},a=function(o){return o*n};e.each(function(o){var s=Wb.select(this);if(o.del)return s.remove();var l=s.select("text.nums"),u=o.anchor,c=u==="end"?-1:1,f=Rut(o),h=Wle(o,t),d=h.x,v=h.y,m=u==="middle",b="hoverlabel"in o.trace?o.trace.hoverlabel.showarrow:!0,p;m?p="M-"+i(o.bx/2+o.tx2width/2)+","+a(v-o.by/2)+"h"+i(o.bx)+"v"+a(o.by)+"h-"+i(o.bx)+"Z":b?p="M0,0L"+i(c*Qc+d)+","+a(Qc+v)+"v"+a(o.by/2-Qc)+"h"+i(c*o.bx)+"v-"+a(o.by)+"H"+i(c*Qc+d)+"V"+a(v-Qc)+"Z":p="M"+i(c*Qc+d)+","+a(v-o.by/2)+"h"+i(c*o.bx)+"v"+a(o.by)+"h"+i(-c*o.bx)+"Z",s.select("path").attr("d",p);var k=d+f.textShiftX,M=v+o.ty0-o.by/2+sl,T=o.textAlign||"auto";T!=="auto"&&(T==="left"&&u!=="start"?(l.attr("text-anchor","start"),k=m?-o.bx/2-o.tx2width/2+sl:-o.bx-sl):T==="right"&&u!=="end"&&(l.attr("text-anchor","end"),k=m?o.bx/2-o.tx2width/2-sl:o.bx+sl)),l.call(A0.positionText,i(k),a(M)),o.tx2width&&(s.select("text.name").call(A0.positionText,i(f.text2ShiftX+f.alignShift*sl+d),a(v+o.ty0-o.by/2+sl)),s.select("rect").call(Am.setRect,i(f.text2ShiftX+(f.alignShift-1)*o.tx2width/2+d),a(v-o.by/2-1),i(o.tx2width),a(o.by+2)))})}function Dut(e,t){var r=e.index,n=e.trace||{},i=e.cd[0],a=e.cd[r]||{};function o(h){return h||Iy(h)&&h===0}var s=Array.isArray(r)?function(h,d){var v=zf.castOption(i,r,h);return o(v)?v:zf.extractOption({},n,"",d)}:function(h,d){return zf.extractOption(a,n,h,d)};function l(h,d,v){var m=s(d,v);o(m)&&(e[h]=m)}if(l("hoverinfo","hi","hoverinfo"),l("bgcolor","hbg","hoverlabel.bgcolor"),l("borderColor","hbc","hoverlabel.bordercolor"),l("fontFamily","htf","hoverlabel.font.family"),l("fontSize","hts","hoverlabel.font.size"),l("fontColor","htc","hoverlabel.font.color"),l("fontWeight","htw","hoverlabel.font.weight"),l("fontStyle","hty","hoverlabel.font.style"),l("fontVariant","htv","hoverlabel.font.variant"),l("nameLength","hnl","hoverlabel.namelength"),l("textAlign","hta","hoverlabel.align"),e.posref=t==="y"||t==="closest"&&n.orientation==="h"?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=zf.constrain(e.x0,0,e.xa._length),e.x1=zf.constrain(e.x1,0,e.xa._length),e.y0=zf.constrain(e.y0,0,e.ya._length),e.y1=zf.constrain(e.y1,0,e.ya._length),e.xLabelVal!==void 0&&(e.xLabel="xLabel"in e?e.xLabel:Sm.hoverLabelText(e.xa,e.xLabelVal,n.xhoverformat),e.xVal=e.xa.c2d(e.xLabelVal)),e.yLabelVal!==void 0&&(e.yLabel="yLabel"in e?e.yLabel:Sm.hoverLabelText(e.ya,e.yLabelVal,n.yhoverformat),e.yVal=e.ya.c2d(e.yLabelVal)),e.zLabelVal!==void 0&&e.zLabel===void 0&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!(e.xa.type==="log"&&e.xerr<=0)){var u=Sm.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;e.xerrneg!==void 0?e.xLabel+=" +"+u+" / -"+Sm.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" \xB1 "+u,t==="x"&&(e.distance+=1)}if(!isNaN(e.yerr)&&!(e.ya.type==="log"&&e.yerr<=0)){var c=Sm.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;e.yerrneg!==void 0?e.yLabel+=" +"+c+" / -"+Sm.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" \xB1 "+c,t==="y"&&(e.distance+=1)}var f=e.hoverinfo||e.trace.hoverinfo;return f&&f!=="all"&&(f=Array.isArray(f)?f:f.split("+"),f.indexOf("x")===-1&&(e.xLabel=void 0),f.indexOf("y")===-1&&(e.yLabel=void 0),f.indexOf("z")===-1&&(e.zLabel=void 0),f.indexOf("text")===-1&&(e.text=void 0),f.indexOf("name")===-1&&(e.name=void 0)),e}function Ble(e,t,r){var n=r.container,i=r.fullLayout,a=i._size,o=r.event,s=!!t.hLinePoint,l=!!t.vLinePoint,u,c;if(n.selectAll(".spikeline").remove(),!!(l||s)){var f=vd.combine(i.plot_bgcolor,i.paper_bgcolor);if(s){var h=t.hLinePoint,d,v;u=h&&h.xa,c=h&&h.ya;var m=c.spikesnap;m==="cursor"?(d=o.pointerX,v=o.pointerY):(d=u._offset+h.x,v=c._offset+h.y);var b=Fle.readability(h.color,f)<1.5?vd.contrast(f):h.color,p=c.spikemode,k=c.spikethickness,M=c.spikecolor||b,T=Sm.getPxPosition(e,c),L,x;if(p.indexOf("toaxis")!==-1||p.indexOf("across")!==-1){if(p.indexOf("toaxis")!==-1&&(L=T,x=d),p.indexOf("across")!==-1){var C=c._counterDomainMin,S=c._counterDomainMax;c.anchor==="free"&&(C=Math.min(C,c.position),S=Math.max(S,c.position)),L=a.l+C*a.w,x=a.l+S*a.w}n.insert("line",":first-child").attr({x1:L,x2:x,y1:v,y2:v,"stroke-width":k,stroke:M,"stroke-dasharray":Am.dashStyle(c.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:L,x2:x,y1:v,y2:v,"stroke-width":k+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}p.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:T+(c.side!=="right"?k:-k),cy:v,r:k,fill:M}).classed("spikeline",!0)}if(l){var g=t.vLinePoint,P,E;u=g&&g.xa,c=g&&g.ya;var z=u.spikesnap;z==="cursor"?(P=o.pointerX,E=o.pointerY):(P=u._offset+g.x,E=c._offset+g.y);var q=Fle.readability(g.color,f)<1.5?vd.contrast(f):g.color,V=u.spikemode,G=u.spikethickness,Z=u.spikecolor||q,j=Sm.getPxPosition(e,u),N,H;if(V.indexOf("toaxis")!==-1||V.indexOf("across")!==-1){if(V.indexOf("toaxis")!==-1&&(N=j,H=E),V.indexOf("across")!==-1){var ie=u._counterDomainMin,ae=u._counterDomainMax;u.anchor==="free"&&(ie=Math.min(ie,u.position),ae=Math.max(ae,u.position)),N=a.t+(1-ae)*a.h,H=a.t+(1-ie)*a.h}n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:H,"stroke-width":G,stroke:Z,"stroke-dasharray":Am.dashStyle(u.spikedash,G)}).classed("spikeline",!0).classed("crisp",!0),n.insert("line",":first-child").attr({x1:P,x2:P,y1:N,y2:H,"stroke-width":G+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0)}V.indexOf("marker")!==-1&&n.insert("circle",":first-child").attr({cx:P,cy:j-(u.side!=="top"?G:-G),r:G,fill:Z}).classed("spikeline",!0)}}}function Fut(e,t,r){if(!r||r.length!==e._hoverdata.length)return!0;for(var n=r.length-1;n>=0;n--){var i=r[n],a=e._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers)||i.binNumber!==a.binNumber)return!0}return!1}function Nle(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function Ule(e,t){return A0.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function zut(e,t){for(var r=t.charAt(0),n=[],i=[],a=[],o=0;o<e.length;o++){var s=e[o];tT.traceIs(s.trace,"bar-like")||tT.traceIs(s.trace,"box-violin")?a.push(s):s.trace[r+"period"]?i.push(s):n.push(s)}return n.concat(i).concat(a)}function Vle(e,t,r){var n=t[e+"a"],i=t[e+"Val"],a=t.cd[0];if(n.type==="category"||n.type==="multicategory")i=n._categoriesMap[i];else if(n.type==="date"){var o=t.trace[e+"periodalignment"];if(o){var s=t.cd[t.index],l=s[e+"Start"];l===void 0&&(l=s[e]);var u=s[e+"End"];u===void 0&&(u=s[e]);var c=u-l;o==="end"?i+=c:o==="middle"&&(i+=c/2)}i=n.d2c(i)}return a&&a.t&&a.t.posLetter===n._id&&(r.boxmode==="group"||r.violinmode==="group")&&(i+=a.t.dPos),i}var Zle=e=>e.offsetTop+e.clientTop,Yle=e=>e.offsetLeft+e.clientLeft;function eT(e,t){var r=e._fullLayout,n=t.getBoundingClientRect(),i=n.left,a=n.top,o=i+n.width,s=a+n.height,l=zf.apply3DTransform(r._invTransform)(i,a),u=zf.apply3DTransform(r._invTransform)(o,s),c=l[0],f=l[1],h=u[0],d=u[1];return{x:c,y:f,width:h-c,height:d-f,top:Math.min(f,d),left:Math.min(c,h),right:Math.max(c,h),bottom:Math.max(f,d)}}});var xM=ye((qar,Kle)=>{"use strict";var qut=Pr(),Out=ka(),But=ip().isUnifiedHover;Kle.exports=function(t,r,n,i){i=i||{};var a=r.legend;function o(s){i.font[s]||(i.font[s]=a?r.legend.font[s]:r.font[s])}r&&But(r.hovermode)&&(i.font||(i.font={}),o("size"),o("family"),o("color"),o("weight"),o("style"),o("variant"),a?(i.bgcolor||(i.bgcolor=Out.combine(r.legend.bgcolor,r.paper_bgcolor)),i.bordercolor||(i.bordercolor=r.legend.bordercolor)):i.bgcolor||(i.bgcolor=r.paper_bgcolor)),n("hoverlabel.bgcolor",i.bgcolor),n("hoverlabel.bordercolor",i.bordercolor),n("hoverlabel.namelength",i.namelength),n("hoverlabel.showarrow",i.showarrow),qut.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}});var $le=ye((Oar,Jle)=>{"use strict";var Nut=Pr(),Uut=xM(),Vut=W1();Jle.exports=function(t,r){function n(i,a){return Nut.coerce(t,r,Vut,i,a)}Uut(t,r,n)}});var tue=ye((Bar,eue)=>{"use strict";var Qle=Pr(),Gut=g3(),Hut=xM();eue.exports=function(t,r,n,i){function a(s,l){return Qle.coerce(t,r,Gut,s,l)}var o=Qle.extendFlat({},i.hoverlabel);r.hovertemplate&&(o.namelength=-1),Hut(t,r,a,o)}});var $B=ye((Nar,rue)=>{"use strict";var jut=Pr(),Wut=W1();rue.exports=function(t,r){function n(i,a){return r[i]!==void 0?r[i]:jut.coerce(t,r,Wut,i,a)}return n("clickmode"),n("hoversubplots"),n("hoveranywhere"),n("clickanywhere"),n("hovermode")}});var aue=ye((Uar,nue)=>{"use strict";var iue=Pr(),Xut=W1(),Zut=$B(),Yut=xM();nue.exports=function(t,r){function n(c,f){return iue.coerce(t,r,Xut,c,f)}var i=Zut(t,r);i&&(n("hoverdistance"),n("spikedistance"),i.indexOf("unified")!==-1&&n("hoversort"));var a=n("dragmode");a==="select"&&n("selectdirection");var o=r._has("mapbox"),s=r._has("map"),l=r._has("geo"),u=r._basePlotModules.length;r.dragmode==="zoom"&&((o||s||l)&&u===1||(o||s)&&l&&u===2)&&(r.dragmode="pan"),Yut(t,r,n),iue.coerceFont(n,"hoverlabel.grouptitlefont",r.hoverlabel.font)}});var lue=ye((Var,sue)=>{"use strict";var QB=Pr(),oue=Oa();sue.exports=function(t){var r=t.calcdata,n=t._fullLayout;function i(u){return function(c){return QB.coerceHoverinfo({hoverinfo:c},{_module:u._module},n)}}for(var a=0;a<r.length;a++){var o=r[a],s=o[0].trace;if(!oue.traceIs(s,"pie-like")){var l=oue.traceIs(s,"2dMap")?Kut:QB.fillArray;l(s.hoverinfo,o,"hi",i(s)),s.hovertemplate&&l(s.hovertemplate,o,"ht"),s.hoverlabel&&(l(s.hoverlabel.bgcolor,o,"hbg"),l(s.hoverlabel.bordercolor,o,"hbc"),l(s.hoverlabel.font.size,o,"hts"),l(s.hoverlabel.font.color,o,"htc"),l(s.hoverlabel.font.family,o,"htf"),l(s.hoverlabel.font.weight,o,"htw"),l(s.hoverlabel.font.style,o,"hty"),l(s.hoverlabel.font.variant,o,"htv"),l(s.hoverlabel.namelength,o,"hnl"),l(s.hoverlabel.align,o,"hta"),l(s.hoverlabel.showarrow,o,"htsa"))}}};function Kut(e,t,r,n){n=n||QB.identity,Array.isArray(e)&&(t[0][r]=n(e))}});var cue=ye((Gar,uue)=>{"use strict";var Jut=Oa(),$ut=JB().hover;uue.exports=function(t,r,n){var i=Jut.getComponentMethod("annotations","onClick")(t,t._hoverdata),a=t._fullLayout;n!==void 0&&$ut(t,r,n,!0);function o(){var l,u,c,f;var s={points:t._hoverdata,event:r};(l=s.xaxes)!=null||(s.xaxes=t._hoverXAxes),(u=s.yaxes)!=null||(s.yaxes=t._hoverYAxes),(c=s.xvals)!=null||(s.xvals=t._hoverXVals),(f=s.yvals)!=null||(s.yvals=t._hoverYVals),t.emit("plotly_click",s)}(t._hoverdata||a.clickanywhere)&&r&&r.target&&(t._hoverdata||(t._hoverdata=[]),i&&i.then?i.then(o):o(),r.stopImmediatePropagation&&r.stopImmediatePropagation())}});var ef=ye((Har,due)=>{"use strict";var Qut=qa(),$L=Pr(),ect=yv(),bM=ip(),fue=W1(),hue=JB();due.exports={moduleType:"component",name:"fx",constants:US(),schema:{layout:fue},attributes:g3(),layoutAttributes:fue,supplyLayoutGlobalDefaults:$le(),supplyDefaults:tue(),supplyLayoutDefaults:aue(),calc:lue(),getDistanceFunction:bM.getDistanceFunction,getClosest:bM.getClosest,inbox:bM.inbox,quadrature:bM.quadrature,appendArrayPointValue:bM.appendArrayPointValue,castHoverOption:rct,castHoverinfo:ict,hover:hue.hover,unhover:ect.unhover,loneHover:hue.loneHover,loneUnhover:tct,click:cue()};function tct(e){var t=$L.isD3Selection(e)?e:Qut.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function rct(e,t,r){return $L.castOption(e,t,"hoverlabel."+r)}function ict(e,t,r){function n(i){return $L.coerceHoverinfo({hoverinfo:i},{_module:e._module},t)}return $L.castOption(e,r,"hoverinfo",n)}});var Cg=ye(Ry=>{"use strict";Ry.selectMode=function(e){return e==="lasso"||e==="select"};Ry.drawMode=function(e){return e==="drawclosedpath"||e==="drawopenpath"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ry.openMode=function(e){return e==="drawline"||e==="drawopenpath"};Ry.rectMode=function(e){return e==="select"||e==="drawline"||e==="drawrect"||e==="drawcircle"};Ry.freeMode=function(e){return e==="lasso"||e==="drawclosedpath"||e==="drawopenpath"};Ry.selectingOrDrawing=function(e){return Ry.freeMode(e)||Ry.rectMode(e)}});var wM=ye((War,vue)=>{"use strict";vue.exports=function(t){var r=t._fullLayout;r._glcanvas&&r._glcanvas.size()&&r._glcanvas.each(function(n){n.regl&&n.regl.clear({color:!0,depth:!0})})}});var QL=ye((Xar,pue)=>{"use strict";pue.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'>"," <title>plotly-logomark</title>"," <g id='symbol'>"," <rect fill='#000' x='0' y='0' width='132' height='132' rx='18' ry='18'/>"," <circle fill='#9EF' cx='102' cy='30' r='6'/>"," <circle fill='#BAC' cx='78' cy='30' r='6'/>"," <circle fill='#BAC' cx='78' cy='54' r='6'/>"," <circle fill='#D69' cx='54' cy='30' r='6'/>"," <circle fill='#F26' cx='30' cy='30' r='6'/>"," <circle fill='#F26' cx='30' cy='54' r='6'/>"," <path fill='#FFF' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/>"," <path fill='#FFF' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/>"," <path fill='#FFF' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/>"," <path fill='#FFF' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/>"," </g>","</svg>"].join("")}}});var tP=ye((Zar,gue)=>{"use strict";var eP=32;gue.exports={CIRCLE_SIDES:eP,i000:0,i090:eP/4,i180:eP/2,i270:eP/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}});var rP=ye((Yar,yue)=>{"use strict";var nct=Pr().strTranslate;function mue(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function act(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function oct(e){var t=e._id.charAt(0)==="y"?1:0;return function(r){return mue(e,r[t])}}function sct(e){return nct(e.xaxis._offset,e.yaxis._offset)}yue.exports={p2r:mue,r2p:act,axValue:oct,getTransform:sct}});var m_=ye(Dy=>{"use strict";var lct=aM(),bue=tP(),rT=bue.CIRCLE_SIDES,eN=bue.SQRT2,wue=rP(),_ue=wue.p2r,xue=wue.r2p,uct=[0,3,4,5,6,1,2],cct=[0,3,4,1,2];Dy.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var r="",n=0;n<t;n++)for(var i=e[n].length,a=0;a<i;a++){var o=e[n][a][0];if(o==="Z")r+="Z";else for(var s=e[n][a].length,l=0;l<s;l++){var u=l;o==="Q"||o==="S"?u=cct[l]:o==="C"&&(u=uct[l]),r+=e[n][a][u],l>0&&l<s-1&&(r+=",")}}return r};Dy.readPaths=function(e,t,r,n){var i=lct(e),a=[],o=-1,s=function(){o++,a[o]=[]},l,u=0,c=0,f,h,d=function(){f=u,h=c};d();for(var v=0;v<i.length;v++){var m=[],b,p,k,M,T=i[v][0],L=T;switch(T){case"M":s(),u=+i[v][1],c=+i[v][2],m.push([L,u,c]),d();break;case"Q":case"S":b=+i[v][1],k=+i[v][2],u=+i[v][3],c=+i[v][4],m.push([L,u,c,b,k]);break;case"C":b=+i[v][1],k=+i[v][2],p=+i[v][3],M=+i[v][4],u=+i[v][5],c=+i[v][6],m.push([L,u,c,b,k,p,M]);break;case"T":case"L":u=+i[v][1],c=+i[v][2],m.push([L,u,c]);break;case"H":L="L",u=+i[v][1],m.push([L,u,c]);break;case"V":L="L",c=+i[v][1],m.push([L,u,c]);break;case"A":L="L";var x=+i[v][1],C=+i[v][2];+i[v][4]||(x=-x,C=-C);var S=u-x,g=c;for(l=1;l<=rT/2;l++){var P=2*Math.PI*l/rT;m.push([L,S+x*Math.cos(P),g+C*Math.sin(P)])}break;case"Z":(u!==f||c!==h)&&(u=f,c=h,m.push([L,u,c]));break}for(var E=(r||{}).domain,z=t._fullLayout._size,q=r&&r.xsizemode==="pixel",V=r&&r.ysizemode==="pixel",G=n===!1,Z=0;Z<m.length;Z++){for(l=0;l+2<7;l+=2){var j=m[Z][l+1],N=m[Z][l+2];j===void 0||N===void 0||(u=j,c=N,r&&(r.xaxis&&r.xaxis.p2r?(G&&(j-=r.xaxis._offset),q?j=xue(r.xaxis,r.xanchor)+j:j=_ue(r.xaxis,j)):(G&&(j-=z.l),E?j=E.x[0]+j/z.w:j=j/z.w),r.yaxis&&r.yaxis.p2r?(G&&(N-=r.yaxis._offset),V?N=xue(r.yaxis,r.yanchor)-N:N=_ue(r.yaxis,N)):(G&&(N-=z.t),E?N=E.y[1]-N/z.h:N=1-N/z.h)),m[Z][l+1]=j,m[Z][l+2]=N)}a[o].push(m[Z].slice())}}return a};function TM(e,t){return Math.abs(e-t)<=1e-6}function iP(e,t){var r=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+n*n)}Dy.pointsOnRectangle=function(e){var t=e.length;if(t!==5)return!1;for(var r=1;r<3;r++){var n=e[0][r]-e[1][r],i=e[3][r]-e[2][r];if(!TM(n,i))return!1;var a=e[0][r]-e[3][r],o=e[1][r]-e[2][r];if(!TM(a,o))return!1}return!TM(e[0][1],e[1][1])&&!TM(e[0][1],e[3][1])?!1:!!(iP(e[0],e[1])*iP(e[0],e[3]))};Dy.pointsOnEllipse=function(e){var t=e.length;if(t!==rT+1)return!1;t=rT;for(var r=0;r<t;r++){var n=(t*2-r)%t,i=(t/2+n)%t,a=(t/2+r)%t;if(!TM(iP(e[r],e[a]),iP(e[n],e[i])))return!1}return!0};Dy.handleEllipse=function(e,t,r){if(!e)return[t,r];var n=Dy.ellipseOver({x0:t[0],y0:t[1],x1:r[0],y1:r[1]}),i=(n.x1+n.x0)/2,a=(n.y1+n.y0)/2,o=(n.x1-n.x0)/2,s=(n.y1-n.y0)/2;o||(o=s=s/eN),s||(s=o=o/eN);for(var l=[],u=0;u<rT;u++){var c=u*2*Math.PI/rT;l.push([i+o*Math.cos(c),a+s*Math.sin(c)])}return l};Dy.ellipseOver=function(e){var t=e.x0,r=e.y0,n=e.x1,i=e.y1,a=n-t,o=i-r;t-=a,r-=o;var s=(t+n)/2,l=(r+i)/2,u=eN;return a*=u,o*=u,{x0:s-a,y0:l-o,x1:s+a,y1:l+o}};Dy.fixDatesForPaths=function(e,t,r){var n=t.type==="date",i=r.type==="date";if(!n&&!i)return e;for(var a=0;a<e.length;a++)for(var o=0;o<e[a].length;o++)for(var s=0;s+2<e[a][o].length;s+=2)n&&(e[a][o][s+1]=e[a][o][s+1].replace(" ","_")),i&&(e[a][o][s+2]=e[a][o][s+2].replace(" ","_"));return e}});var oP=ye((Jar,Pue)=>{"use strict";var Tue=df(),kue=Cg(),fct=kue.drawMode,hct=kue.openMode,iT=tP(),Aue=iT.i000,Sue=iT.i090,Mue=iT.i180,Eue=iT.i270,dct=iT.cos45,vct=iT.sin45,Cue=rP(),nP=Cue.p2r,y_=Cue.r2p,pct=o_(),gct=pct.clearOutline,aP=m_(),mct=aP.readPaths,yct=aP.writePaths,_ct=aP.ellipseOver,xct=aP.fixDatesForPaths;function bct(e,t){if(e.length){var r=e[0][0];if(r){var n=t.gd,i=t.isActiveShape,a=t.dragmode,o=(n.layout||{}).shapes||[];if(!fct(a)&&i!==void 0){var s=n._fullLayout._activeShapeIndex;if(s<o.length)switch(n._fullLayout.shapes[s].type){case"rect":a="drawrect";break;case"circle":a="drawcircle";break;case"line":a="drawline";break;case"path":var l=o[s].path||"";l[l.length-1]==="Z"?a="drawclosedpath":a="drawopenpath";break}}var u=Lue(e,t,a);gct(n);for(var c=t.editHelpers,f=(c||{}).modifyItem,h=[],d=0;d<o.length;d++){var v=n._fullLayout.shapes[d];if(h[d]=v._input,i!==void 0&&d===n._fullLayout._activeShapeIndex){var m=u;switch(v.type){case"line":case"rect":case"circle":var b=Tue.getFromId(n,v.xref);v.xref.charAt(0)==="x"&&b.type.includes("category")?(f("x0",m.x0-(v.x0shift||0)),f("x1",m.x1-(v.x1shift||0))):(f("x0",m.x0),f("x1",m.x1));var p=Tue.getFromId(n,v.yref);v.yref.charAt(0)==="y"&&p.type.includes("category")?(f("y0",m.y0-(v.y0shift||0)),f("y1",m.y1-(v.y1shift||0))):(f("y0",m.y0),f("y1",m.y1));break;case"path":f("path",m.path);break}}}return i===void 0?(h.push(u),h):c?c.getUpdateObj():{}}}}function Lue(e,t,r){var n=e[0][0],i=t.gd,a=n.getAttribute("d"),o=i._fullLayout.newshape,s=t.plotinfo,l=t.isActiveShape,u=s.xaxis,c=s.yaxis,f=!!s.domain||!s.xaxis,h=!!s.domain||!s.yaxis,d=hct(r),v=mct(a,i,s,l),m={editable:!0,visible:o.visible,name:o.name,showlegend:o.showlegend,legend:o.legend,legendwidth:o.legendwidth,legendgroup:o.legendgroup,legendgrouptitle:{text:o.legendgrouptitle.text,font:o.legendgrouptitle.font},legendrank:o.legendrank,label:o.label,xref:f?"paper":u._id,yref:h?"paper":c._id,layer:o.layer,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}};d||(m.fillcolor=o.fillcolor,m.fillrule=o.fillrule);var b;if(v.length===1&&(b=v[0]),b&&b.length===5&&r==="drawrect")m.type="rect",m.x0=b[0][1],m.y0=b[0][2],m.x1=b[2][1],m.y1=b[2][2];else if(b&&r==="drawline")m.type="line",m.x0=b[0][1],m.y0=b[0][2],m.x1=b[1][1],m.y1=b[1][2];else if(b&&r==="drawcircle"){m.type="circle";var p=b[Aue][1],k=b[Sue][1],M=b[Mue][1],T=b[Eue][1],L=b[Aue][2],x=b[Sue][2],C=b[Mue][2],S=b[Eue][2],g=s.xaxis&&(s.xaxis.type==="date"||s.xaxis.type==="log"),P=s.yaxis&&(s.yaxis.type==="date"||s.yaxis.type==="log");g&&(p=y_(s.xaxis,p),k=y_(s.xaxis,k),M=y_(s.xaxis,M),T=y_(s.xaxis,T)),P&&(L=y_(s.yaxis,L),x=y_(s.yaxis,x),C=y_(s.yaxis,C),S=y_(s.yaxis,S));var E=(k+T)/2,z=(L+C)/2,q=(T-k+M-p)/2,V=(S-x+C-L)/2,G=_ct({x0:E,y0:z,x1:E+q*dct,y1:z+V*vct});g&&(G.x0=nP(s.xaxis,G.x0),G.x1=nP(s.xaxis,G.x1)),P&&(G.y0=nP(s.yaxis,G.y0),G.y1=nP(s.yaxis,G.y1)),m.x0=G.x0,m.y0=G.y0,m.x1=G.x1,m.y1=G.y1}else m.type="path",u&&c&&xct(v,u,c),m.path=yct(v),b=null;return m}Pue.exports={newShapes:bct,createShapeObj:Lue}});var rN=ye(($ar,Iue)=>{"use strict";var wct=Cg(),Tct=wct.selectMode,Act=o_(),Sct=Act.clearOutline,tN=m_(),Mct=tN.readPaths,Ect=tN.writePaths,kct=tN.fixDatesForPaths;Iue.exports=function(t,r){if(t.length){var n=t[0][0];if(n){var i=n.getAttribute("d"),a=r.gd,o=a._fullLayout.newselection,s=r.plotinfo,l=s.xaxis,u=s.yaxis,c=r.isActiveSelection,f=r.dragmode,h=(a.layout||{}).selections||[];if(!Tct(f)&&c!==void 0){var d=a._fullLayout._activeSelectionIndex;if(d<h.length)switch(a._fullLayout.selections[d].type){case"rect":f="select";break;case"path":f="lasso";break}}var v=Mct(i,a,s,c),m={xref:l._id,yref:u._id,opacity:o.opacity,line:{color:o.line.color,width:o.line.width,dash:o.line.dash}},b;v.length===1&&(b=v[0]),b&&b.length===5&&f==="select"?(m.type="rect",m.x0=b[0][1],m.y0=b[0][2],m.x1=b[2][1],m.y1=b[2][2]):(m.type="path",l&&u&&kct(v,l,u),m.path=Ect(v),b=null),Sct(a);for(var p=r.editHelpers,k=(p||{}).modifyItem,M=[],T=0;T<h.length;T++){var L=a._fullLayout.selections[T];if(!L){M[T]=L;continue}if(M[T]=L._input,c!==void 0&&T===a._fullLayout._activeSelectionIndex){var x=m;switch(L.type){case"rect":k("x0",x.x0),k("x1",x.x1),k("y0",x.y0),k("y1",x.y1);break;case"path":k("path",x.path);break}}}return c===void 0?(M.push(m),M):p?p.getUpdateObj():{}}}}});var AM=ye((Qar,Rue)=>{"use strict";Rue.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:3},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}});var x_=ye(Dd=>{"use strict";var Em=AM(),Due=Pr(),__=ho();Dd.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}};Dd.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}};Dd.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}};Dd.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}};Dd.extractPathCoords=function(e,t,r){var n=[],i=e.match(Em.segmentRE);return i.forEach(function(a){var o=t[a.charAt(0)].drawn;if(o!==void 0){var s=a.slice(1).match(Em.paramRE);if(!(!s||s.length<o)){var l=s[o],u=r?l:Due.cleanNumber(l);n.push(u)}}}),n};Dd.countDefiningCoords=function(e,t,r){if(e!=="path")return 2;if(!t)return 0;let n=t.match(Em.segmentRE);if(!n)return 0;let i=r==="x"?Em.paramIsX:Em.paramIsY;return n.reduce((a,o)=>{let s=o.charAt(0),l=i[s].drawn!==void 0;return a+(l?1:0)},0)};Dd.getDataToPixel=function(e,t,r,n,i){var a=e._fullLayout._size,o;if(t)if(i==="domain")o=function(l){return t._length*(n?1-l:l)+t._offset};else{var s=Dd.shapePositionToRange(t);o=function(l){var u=Mm(t,r);return t._offset+t.r2p(s(l,!0))+u},t.type==="date"&&(o=Dd.decodeDate(o))}else n?o=function(l){return a.t+a.h*(1-l)}:o=function(l){return a.l+a.w*l};return o};Dd.getPixelToData=function(e,t,r,n){var i=e._fullLayout._size,a;if(t)if(n==="domain")a=function(s){var l=(s-t._offset)/t._length;return r?1-l:l};else{var o=Dd.rangeToShapePosition(t);a=function(s){return o(t.p2r(s-t._offset))}}else r?a=function(s){return 1-(s-i.t)/i.h}:a=function(s){return(s-i.l)/i.w};return a};Dd.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,n=Math.round(e);return r?n+.5:n};Dd.makeShapesOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},n=e._fullLayout._plots[r.xref+r.yref],i=!!n;return i?n._hadPlotinfo=!0:(n={},r.xref&&r.xref!=="paper"&&(n.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&r.yref!=="paper"&&(n.yaxis=e._fullLayout[r.yref+"axis"])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}};Dd.makeSelectionsOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.selections[t]||{},n=e._fullLayout._plots[r.xref+r.yref],i=!!n;return i?n._hadPlotinfo=!0:(n={},r.xref&&(n.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&(n.yaxis=e._fullLayout[r.yref+"axis"])),{options:r,plotinfo:n}};Dd.getPathString=function(e,t){let r=t.type,n=__.getRefType(t.xref),i=__.getRefType(t.yref),a=e._fullLayout._size;var o,s,l,u,c,f,h,d,v,m,b,p;function k(P,E,z,q){var V;if(P)if(E==="domain")q?V=function(G){return P._offset+P._length*(1-G)}:V=function(G){return P._offset+P._length*G};else{let G=Dd.shapePositionToRange(P);V=function(Z){return P._offset+P.r2p(G(Z,!0))},z==="path"&&P.type==="date"&&(V=Dd.decodeDate(V))}else q?V=function(G){return a.t+a.h*(1-G)}:V=function(G){return a.l+a.w*G};return V}if(n==="array"?(h=[],o=t.xref.map(function(P){return __.getFromId(e,P)}),h=t.xref.map(function(P,E){return k(o[E],__.getRefType(P),r,!1)})):(o=__.getFromId(e,t.xref),h=k(o,n,r,!1)),i==="array"?(d=[],s=t.yref.map(function(P){return __.getFromId(e,P)}),d=t.yref.map(function(P,E){return k(s[E],__.getRefType(P),r,!0)})):(s=__.getFromId(e,t.yref),d=k(s,i,r,!0)),r==="path")return Cct(t,h,d);if(n==="array")l=Mm(o[0],t.x0shift),u=Mm(o[1],t.x1shift),v=h[0](t.x0)+l,m=h[1](t.x1)+u;else if(l=Mm(o,t.x0shift),u=Mm(o,t.x1shift),t.xsizemode==="pixel"){let P=h(t.xanchor);v=P+t.x0+l,m=P+t.x1+u}else v=h(t.x0)+l,m=h(t.x1)+u;if(i==="array")c=Mm(s[0],t.y0shift),f=Mm(s[1],t.y1shift),b=d[0](t.y0)+c,p=d[1](t.y1)+f;else if(c=Mm(s,t.y0shift),f=Mm(s,t.y1shift),t.ysizemode==="pixel"){let P=d(t.yanchor);b=P-t.y0+c,p=P-t.y1+f}else b=d(t.y0)+c,p=d(t.y1)+f;if(r==="line")return"M"+v+","+b+"L"+m+","+p;if(r==="rect")return"M"+v+","+b+"H"+m+"V"+p+"H"+v+"Z";var M=(v+m)/2,T=(b+p)/2,L=Math.abs(M-v),x=Math.abs(T-b),C="A"+L+","+x,S=M+L+","+T,g=M+","+(T-x);return"M"+S+C+" 0 1,1 "+g+C+" 0 0,1 "+S+"Z"};function Cct(e,t,r){let n=e.path,i=e.xsizemode,a=e.ysizemode,o=e.xanchor,s=e.yanchor,l=Array.isArray(e.xref),u=Array.isArray(e.yref);var c=0,f=0;return n.replace(Em.segmentRE,function(h){var d=0,v=h.charAt(0),m=Em.paramIsX[v],b=Em.paramIsY[v],p=Em.numParams[v];let k=m.drawn!==void 0,M=b.drawn!==void 0,T=l?t[c]:t,L=u?r[f]:r;var x=h.slice(1).replace(Em.paramRE,function(C){return m[d]?i==="pixel"?C=T(o)+Number(C):C=T(C):b[d]&&(a==="pixel"?C=L(s)-Number(C):C=L(C)),d++,d>p&&(C="X"),C});return d>p&&(x=x.replace(/[\s,]*X.*/,""),Due.log("Ignoring extra params in segment "+h)),k&&c++,M&&f++,v+x})}Dd.getPixelShift=Mm;function Mm(e,t){t=t||0;var r=0;return t&&e&&(e.type==="category"||e.type==="multicategory")&&(r=(e.r2p(1)-e.r2p(0))*t),r}});var iN=ye((tor,que)=>{"use strict";var Lct=Pr(),km=ho(),Fue=Zl(),zue=So(),Pct=m_().readPaths,Zb=x_(),Ict=Zb.getPathString,SM=F6(),Rct=Dh().FROM_TL;que.exports=function(t,r,n,i){if(i.selectAll(".shape-label").remove(),!!(n.label.text||n.label.texttemplate)){var a;if(n.label.texttemplate){var o={};if(n.type!=="path"){var s=km.getFromId(t,n.xref),l=km.getFromId(t,n.yref);let ae=Array.isArray(n.xref),_e=Array.isArray(n.yref);for(var u in SM){var c=typeof SM[u]=="function",f=!ae||SM.simpleXVariables.includes(u),h=!_e||SM.simpleYVariables.includes(u);if(c&&f&&h){var d=SM[u](n,s,l);d!==void 0&&(o[u]=d)}}}a=Lct.texttemplateStringForShapes({data:[o],fallback:n.label.texttemplatefallback,locale:t._fullLayout._d3locale,template:n.label.texttemplate})}else a=n.label.text;var v={"data-index":r},m=n.label.font,b={"data-notex":1},p=i.append("g").attr(v).classed("shape-label",!0),k=p.append("text").attr(b).classed("shape-label-text",!0).text(a),M,T,L,x;if(n.path){var C=Ict(t,n),S=Pct(C,t);M=1/0,L=1/0,T=-1/0,x=-1/0;for(var g=0;g<S.length;g++)for(var P=0;P<S[g].length;P++)for(var E=S[g][P],z=1;z<E.length;z+=2){var q=E[z],V=E[z+1];M=Math.min(M,q),T=Math.max(T,q),L=Math.min(L,V),x=Math.max(x,V)}}else{let ae=Array.isArray(n.xref),_e=Array.isArray(n.yref),Ee=km.getFromId(t,ae?n.xref[0]:n.xref),Ce=km.getFromId(t,ae?n.xref[1]:n.xref),ge=km.getFromId(t,_e?n.yref[0]:n.yref),re=km.getFromId(t,_e?n.yref[1]:n.yref),Se=km.getRefType(ae?n.xref[0]:n.xref),ke=km.getRefType(ae?n.xref[1]:n.xref),be=km.getRefType(_e?n.yref[0]:n.yref),Be=km.getRefType(_e?n.yref[1]:n.yref),Le=(Pe,ce,He,lt)=>Zb.getDataToPixel(t,He,ce,!1,lt)(Pe),me=(Pe,ce,He,lt)=>Zb.getDataToPixel(t,He,ce,!0,lt)(Pe);if(n.xsizemode==="pixel"){let Pe=Le(n.xanchor,void 0,Ee,Se),ce=Zb.getPixelShift(Ee,n.x0shift),He=Zb.getPixelShift(Ee,n.x1shift);M=Pe+n.x0+ce,T=Pe+n.x1+He}else M=Le(n.x0,n.x0shift,Ee,Se),T=Le(n.x1,n.x1shift,Ce,ke);if(n.ysizemode==="pixel"){let Pe=me(n.yanchor,void 0,ge,be),ce=Zb.getPixelShift(ge,n.y0shift),He=Zb.getPixelShift(ge,n.y1shift);L=Pe-n.y0+ce,x=Pe-n.y1+He}else L=me(n.y0,n.y0shift,ge,be),x=me(n.y1,n.y1shift,re,Be)}var G=n.label.textangle;G==="auto"&&(n.type==="line"?G=Dct(M,L,T,x):G=0),k.call(function(ae){return ae.call(zue.font,m).attr({}),Fue.convertToTspans(ae,t),ae});var Z=zue.bBox(k.node()),j=Fct(M,L,T,x,n,G,Z),N=j.textx,H=j.texty,ie=j.xanchor;k.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[ie],y:H,x:N,transform:"rotate("+G+","+N+","+H+")"}).call(Fue.positionText,N,H)}};function Dct(e,t,r,n){var i,a;return a=Math.abs(r-e),r>=e?i=t-n:i=n-t,-180/Math.PI*Math.atan2(i,a)}function Fct(e,t,r,n,i,a,o){var s=i.label.textposition,l=i.label.textangle,u=i.label.padding,c=i.type,f=Math.PI/180*a,h=Math.sin(f),d=Math.cos(f),v=i.label.xanchor,m=i.label.yanchor,b,p,k,M;if(c==="line"){s==="start"?(b=e,p=t):s==="end"?(b=r,p=n):(b=(e+r)/2,p=(t+n)/2),v==="auto"&&(s==="start"?l==="auto"?r>e?v="left":r<e?v="right":v="center":r>e?v="right":r<e?v="left":v="center":s==="end"?l==="auto"?r>e?v="right":r<e?v="left":v="center":r>e?v="left":r<e?v="right":v="center":v="center");var T={left:1,center:0,right:-1},L={bottom:-1,middle:0,top:1};if(l==="auto"){var x=L[m];k=-u*h*x,M=u*d*x}else{var C=T[v],S=L[m];k=u*C,M=u*S}b=b+k,p=p+M}else k=u+3,s.indexOf("right")!==-1?(b=Math.max(e,r)-k,v==="auto"&&(v="right")):s.indexOf("left")!==-1?(b=Math.min(e,r)+k,v==="auto"&&(v="left")):(b=(e+r)/2,v==="auto"&&(v="center")),s.indexOf("top")!==-1?p=Math.min(t,n):s.indexOf("bottom")!==-1?p=Math.max(t,n):p=(t+n)/2,M=u,m==="bottom"?p=p-M:m==="top"&&(p=p+M);var g=Rct[m],P=i.label.font.size,E=o.height,z=(E*g-P)*h,q=-(E*g-P)*d;return{textx:b+z,texty:p+q,xanchor:v}}});var uP=ye((ror,jue)=>{"use strict";var zct=Pr(),qct=zct.strTranslate,Oue=yv(),Uue=Cg(),Oct=Uue.drawMode,Vue=Uue.selectMode,Gue=Oa(),Bue=ka(),lP=tP(),Bct=lP.i000,Nct=lP.i090,Uct=lP.i180,Vct=lP.i270,Gct=o_(),Hue=Gct.clearOutlineControllers,aN=m_(),sP=aN.pointsOnRectangle,nN=aN.pointsOnEllipse,Hct=aN.writePaths,jct=oP().newShapes,Wct=oP().createShapeObj,Xct=rN(),Zct=iN();jue.exports=function e(t,r,n,i){i||(i=0);var a=n.gd;function o(){e(t,r,n,i++),(nN(t[0])||n.hasText)&&s({redrawing:!0})}function s(j){var N={};n.isActiveShape!==void 0&&(n.isActiveShape=!1,N=jct(r,n)),n.isActiveSelection!==void 0&&(n.isActiveSelection=!1,N=Xct(r,n),a._fullLayout._reselect=!0),Object.keys(N).length&&Gue.call((j||{}).redrawing?"relayout":"_guiRelayout",a,N)}var l=a._fullLayout,u=l._zoomlayer,c=n.dragmode,f=Oct(c),h=Vue(c);(f||h)&&(a._fullLayout._outlining=!0),Hue(a),r.attr("d",Hct(t));var d,v,m,b,p;if(!i&&(n.isActiveShape||n.isActiveSelection)){p=Yct([],t);var k=u.append("g").attr("class","outline-controllers");P(k),Z()}if(f&&n.hasText){var M=u.select(".label-temp"),T=Wct(r,n,n.dragmode);Zct(a,"label-temp",T,M)}function L(j){m=+j.srcElement.getAttribute("data-i"),b=+j.srcElement.getAttribute("data-j"),d[m][b].moveFn=x}function x(j,N){if(t.length){var H=p[m][b][1],ie=p[m][b][2],ae=t[m],_e=ae.length;if(sP(ae)){var Ee=j,Ce=N;if(n.isActiveSelection){var ge=Nue(ae,b);ge[1]===ae[b][1]?Ce=0:Ee=0}for(var re=0;re<_e;re++)if(re!==b){var Se=ae[re];Se[1]===ae[b][1]&&(Se[1]=H+Ee),Se[2]===ae[b][2]&&(Se[2]=ie+Ce)}if(ae[b][1]=H+Ee,ae[b][2]=ie+Ce,!sP(ae))for(var ke=0;ke<_e;ke++)for(var be=0;be<ae[ke].length;be++)ae[ke][be]=p[m][ke][be]}else ae[b][1]=H+j,ae[b][2]=ie+N;o()}}function C(){s()}function S(){if(t.length&&t[m]&&t[m].length){for(var j=[],N=0;N<t[m].length;N++)N!==b&&j.push(t[m][N]);j.length>1&&!(j.length===2&&j[1][0]==="Z")&&(b===0&&(j[0][0]="M"),t[m]=j,o(),s())}}function g(j,N){if(j===2){m=+N.srcElement.getAttribute("data-i"),b=+N.srcElement.getAttribute("data-j");var H=t[m];!sP(H)&&!nN(H)&&S()}}function P(j){d=[];for(var N=0;N<t.length;N++){var H=t[N],ie=sP(H),ae=!ie&&nN(H);d[N]=[];for(var _e=H.length,Ee=0;Ee<_e;Ee++)if(H[Ee][0]!=="Z"&&!(ae&&Ee!==Bct&&Ee!==Nct&&Ee!==Uct&&Ee!==Vct)){var Ce=ie&&n.isActiveSelection,ge;Ce&&(ge=Nue(H,Ee));var re=H[Ee][1],Se=H[Ee][2],ke=j.append(Ce?"rect":"circle").attr("data-i",N).attr("data-j",Ee).style({fill:Bue.background,stroke:Bue.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(Ce){var be=ge[1]-re,Be=ge[2]-Se,Le=Be?5:Math.max(Math.min(25,Math.abs(be)-5),5),me=be?5:Math.max(Math.min(25,Math.abs(Be)-5),5);ke.classed(Be?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",Le).attr("height",me).attr("x",re-Le/2).attr("y",Se-me/2).attr("transform",qct(be/2,Be/2))}else ke.classed("cursor-grab",!0).attr("r",5).attr("cx",re).attr("cy",Se);d[N][Ee]={element:ke.node(),gd:a,prepFn:L,doneFn:C,clickFn:g},Oue.init(d[N][Ee])}}}function E(j,N){if(t.length)for(var H=0;H<t.length;H++)for(var ie=0;ie<t[H].length;ie++)for(var ae=0;ae+2<t[H][ie].length;ae+=2)t[H][ie][ae+1]=p[H][ie][ae+1]+j,t[H][ie][ae+2]=p[H][ie][ae+2]+N}function z(j,N){E(j,N),o()}function q(j){m=+j.srcElement.getAttribute("data-i"),m||(m=0),v[m].moveFn=z}function V(){s()}function G(j){j===2&&Kct(a)}function Z(){if(v=[],!!t.length){var j=0;v[j]={element:r[0][0],gd:a,prepFn:q,doneFn:V,clickFn:G},Oue.init(v[j])}}};function Yct(e,t){for(var r=0;r<t.length;r++){var n=t[r];e[r]=[];for(var i=0;i<n.length;i++){e[r][i]=[];for(var a=0;a<n[i].length;a++)e[r][i][a]=n[i][a]}}return e}function Nue(e,t){var r=e[t][1],n=e[t][2],i=e.length,a,o,s;return a=(t+1)%i,o=e[a][1],s=e[a][2],o===r&&s===n&&(a=(t+2)%i,o=e[a][1],s=e[a][2]),[a,o,s]}function Kct(e){if(Vue(e._fullLayout.dragmode)){Hue(e);var t=e._fullLayout._activeSelectionIndex,r=(e.layout||{}).selections||[];if(t<r.length){for(var n=[],i=0;i<r.length;i++)i!==t&&n.push(r[i]);delete e._fullLayout._activeSelectionIndex;var a=e._fullLayout.selections[t];e._fullLayout._deselect={xref:a.xref,yref:a.yref},Gue.call("_guiRelayout",e,{selections:n})}}}});var vP=ye((ior,tce)=>{"use strict";var Jct=qa(),Jue=Oa(),sN=Pr(),Yb=ho(),$ct=m_().readPaths,Qct=uP(),fP=iN(),$ue=o_().clearOutlineControllers,oN=ka(),hP=So(),eft=vl().arrayEditor,Wue=yv(),Xue=ef(),Zue=Eg(),Kb=AM(),Ep=x_(),lN=Ep.getPathString;tce.exports={draw:uN,drawOne:Que,eraseActiveShape:aft,drawLabel:fP};function uN(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeUpperLayer.selectAll("text").remove(),t._shapeLowerLayer.selectAll("text").remove();for(var r in t._plots){var n=t._plots[r].shapelayer;n&&(n.selectAll("path").remove(),n.selectAll("text").remove())}for(var i=0;i<t.shapes.length;i++)t.shapes[i].visible===!0&&Que(e,i)}function cP(e){return!!e._fullLayout._outlining}function dP(e){return!e._context.edits.shapePosition}function Que(e,t){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+t+'"]').remove();var r=Ep.makeShapesOptionsAndPlotinfo(e,t),n=r.options,i=r.plotinfo;if(!n._input||n.visible!==!0)return;let a=Array.isArray(n.xref)||Array.isArray(n.yref);if(n.layer==="above")s(e._fullLayout._shapeUpperLayer);else if(n.xref.includes("paper")||n.yref.includes("paper"))s(e._fullLayout._shapeLowerLayer);else if(n.layer==="between"&&!a)s(i.shapelayerBetween);else if(i._hadPlotinfo){var o=i.mainplotinfo||i;s(o.shapelayer)}else s(e._fullLayout._shapeLowerLayer);function s(l){var u=lN(e,n),c={"data-index":t,"fill-rule":n.fillrule,d:u},f=n.opacity,h=n.fillcolor,d=n.line.width?n.line.color:"rgba(0,0,0,0)",v=n.line.width,m=n.line.dash;!v&&n.editable===!0&&(v=5,m="solid");var b=u[u.length-1]!=="Z",p=dP(e)&&n.editable&&e._fullLayout._activeShapeIndex===t;p&&(h=b?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,f=e._fullLayout.activeshape.opacity);var k=l.append("g").classed("shape-group",!0).attr({"data-index":t}),M=k.append("path").attr(c).style("opacity",f).call(oN.stroke,d).call(oN.fill,h).call(hP.dashLine,m,v);ece(k,e,n),fP(e,t,n,k);var T;if((p||e._context.edits.shapePosition)&&(T=eft(e.layout,"shapes",n)),p){M.style({cursor:"move"});var L={element:M.node(),plotinfo:i,gd:e,editHelpers:T,hasText:n.label.text||n.label.texttemplate,isActiveShape:!0},x=$ct(u,e);Qct(x,M,L)}else e._context.edits.shapePosition?ift(e,M,n,t,l,T):n.editable===!0&&M.style("pointer-events",b||oN.opacity(h)*f<=.5?"stroke":"all");M.node().addEventListener("click",function(){return nft(e,M)}),tft(e,M,i)}}function tft(e,t,r){if(!(r!=null&&r.id))return;let n=t.node();function i(a){var l;let o=r.mainplotinfo||r,s=(l=o==null?void 0:o.draglayer)==null?void 0:l.select(".nsewdrag").node();return s?{clientX:a.clientX,clientY:a.clientY,target:s}:null}n.addEventListener("mousemove",a=>{if(!e._dragging&&e._fullLayout.hoveranywhere){let o=i(a);o&&Xue.hover(e,o,r.id)}}),n.addEventListener("click",a=>{if(!e._dragged&&e._fullLayout.clickanywhere){let o=i(a);o&&Xue.click(e,o,r.id)}})}function ece(e,t,r){let n=r.xref,i=r.yref;if(Array.isArray(n)||Array.isArray(i)){let a="clip"+t._fullLayout._uid+"shape"+r._index,o=rft(t,n,i);sN.ensureSingleById(t._fullLayout._clips,"clipPath",a,function(s){s.append("rect")}).select("rect").attr(o),hP.setClipUrl(e,a,t)}else{let a=(n+i).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");hP.setClipUrl(e,a?"clip"+t._fullLayout._uid+a:null,t)}}function rft(e,t,r){let n=e._fullLayout._size;function i(s,l){let u=(Array.isArray(s)?s:[s]).map(h=>Yb.getFromId(e,h)).filter(Boolean);if(!u.length)return l?[n.t,n.t+n.h]:[n.l,n.l+n.w];let c=u.map(function(h){return h._offset}),f=u.map(function(h){return h._offset+h._length});return[Math.min(...c),Math.max(...f)]}let a=i(t,!1),o=i(r,!0);return{x:a[0],y:o[0],width:a[1]-a[0],height:o[1]-o[0]}}function ift(e,t,r,n,i,a){var o=10,s=10,l=r.xsizemode==="pixel",u=r.ysizemode==="pixel",c=r.type==="line",f=r.type==="path",h=a.modifyItem,d,v,m,b,p,k,M,T,L,x,C,S,g,P,E,z=Jct.select(t.node().parentNode),q=Yb.getFromId(e,r.xref),V=Yb.getRefType(r.xref),G=Yb.getFromId(e,r.yref),Z=Yb.getRefType(r.yref),j=r.x0shift,N=r.x1shift,H=r.y0shift,ie=r.y1shift,ae=function(at,ct){var ar=Ep.getDataToPixel(e,q,ct,!1,V);return ar(at)},_e=function(at,ct){var ar=Ep.getDataToPixel(e,G,ct,!0,Z);return ar(at)},Ee=Ep.getPixelToData(e,q,!1,V),Ce=Ep.getPixelToData(e,G,!0,Z),ge=ke(),re={element:ge.node(),gd:e,prepFn:Le,doneFn:me,clickFn:Pe},Se;Wue.init(re),ge.node().onmousemove=Be;function ke(){return c?be():t}function be(){var at=10,ct=Math.max(r.line.width,at),ar=i.append("g").attr("data-index",n).attr("drag-helper",!0);ar.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":ct,"stroke-opacity":"0"});var Vt={"fill-opacity":"0"},rr=Math.max(ct/2,at);return ar.append("circle").attr({"data-line-point":"start-point",cx:l?ae(r.xanchor)+r.x0:ae(r.x0,j),cy:u?_e(r.yanchor)-r.y0:_e(r.y0,H),r:rr}).style(Vt).classed("cursor-grab",!0),ar.append("circle").attr({"data-line-point":"end-point",cx:l?ae(r.xanchor)+r.x1:ae(r.x1,N),cy:u?_e(r.yanchor)-r.y1:_e(r.y1,ie),r:rr}).style(Vt).classed("cursor-grab",!0),ar}function Be(at){if(cP(e)){Se=null;return}if(c)at.target.tagName==="path"?Se="move":Se=at.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ct=re.element.getBoundingClientRect(),ar=ct.right-ct.left,Vt=ct.bottom-ct.top,rr=at.clientX-ct.left,tt=at.clientY-ct.top,je=!f&&ar>o&&Vt>s&&!at.shiftKey?Wue.getCursor(rr/ar,1-tt/Vt):"move";Zue(t,je),Se=je.split("-")[0]}}function Le(at){cP(e)||(l&&(p=ae(r.xanchor)),u&&(k=_e(r.yanchor)),r.type==="path"?E=r.path:(d=l?r.x0:ae(r.x0),v=u?r.y0:_e(r.y0),m=l?r.x1:ae(r.x1),b=u?r.y1:_e(r.y1)),d<m?(L=d,g="x0",x=m,P="x1"):(L=m,g="x1",x=d,P="x0"),!u&&v<b||u&&v>b?(M=v,C="y0",T=b,S="y1"):(M=b,C="y1",T=v,S="y0"),Be(at),lt(i,r),Ht(t,r,e),re.moveFn=Se==="move"?ce:He,re.altKey=at.altKey)}function me(){cP(e)||(Zue(t),mt(i),ece(t,e,r),Jue.call("_guiRelayout",e,a.getUpdateObj()))}function Pe(){cP(e)||mt(i)}function ce(at,ct){if(r.type==="path"){var ar=function(tt){return tt},Vt=ar,rr=ar;l?h("xanchor",r.xanchor=Ee(p+at)):(Vt=function(je){return Ee(ae(je)+at)},q&&q.type==="date"&&(Vt=Ep.encodeDate(Vt))),u?h("yanchor",r.yanchor=Ce(k+ct)):(rr=function(je){return Ce(_e(je)+ct)},G&&G.type==="date"&&(rr=Ep.encodeDate(rr))),h("path",r.path=Yue(E,Vt,rr))}else l?h("xanchor",r.xanchor=Ee(p+at)):(h("x0",r.x0=Ee(d+at)),h("x1",r.x1=Ee(m+at))),u?h("yanchor",r.yanchor=Ce(k+ct)):(h("y0",r.y0=Ce(v+ct)),h("y1",r.y1=Ce(b+ct)));t.attr("d",lN(e,r)),lt(i,r),fP(e,n,r,z)}function He(at,ct){if(f){var ar=function(Ar){return Ar},Vt=ar,rr=ar;l?h("xanchor",r.xanchor=Ee(p+at)):(Vt=function(ei){return Ee(ae(ei)+at)},q&&q.type==="date"&&(Vt=Ep.encodeDate(Vt))),u?h("yanchor",r.yanchor=Ce(k+ct)):(rr=function(ei){return Ce(_e(ei)+ct)},G&&G.type==="date"&&(rr=Ep.encodeDate(rr))),h("path",r.path=Yue(E,Vt,rr))}else if(c){if(Se==="resize-over-start-point"){var tt=d+at,je=u?v-ct:v+ct;h("x0",r.x0=l?tt:Ee(tt)),h("y0",r.y0=u?je:Ce(je))}else if(Se==="resize-over-end-point"){var Ue=m+at,Ae=u?b-ct:b+ct;h("x1",r.x1=l?Ue:Ee(Ue)),h("y1",r.y1=u?Ae:Ce(Ae))}}else{var rt=function(Ar){return Se.indexOf(Ar)!==-1},St=rt("n"),Tt=rt("s"),dt=rt("w"),Et=rt("e"),pt=St?M+ct:M,jt=Tt?T+ct:T,or=dt?L+at:L,mr=Et?x+at:x;u&&(St&&(pt=M-ct),Tt&&(jt=T-ct)),(!u&&jt-pt>s||u&&pt-jt>s)&&(h(C,r[C]=u?pt:Ce(pt)),h(S,r[S]=u?jt:Ce(jt))),mr-or>o&&(h(g,r[g]=l?or:Ee(or)),h(P,r[P]=l?mr:Ee(mr)))}t.attr("d",lN(e,r)),lt(i,r),fP(e,n,r,z)}function lt(at,ct){(l||u)&&ar();function ar(){var Vt=ct.type!=="path",rr=at.selectAll(".visual-cue").data([0]),tt=1;rr.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":tt}).classed("visual-cue",!0);var je=ae(l?ct.xanchor:sN.midRange(Vt?[ct.x0,ct.x1]:Ep.extractPathCoords(ct.path,Kb.paramIsX))),Ue=_e(u?ct.yanchor:sN.midRange(Vt?[ct.y0,ct.y1]:Ep.extractPathCoords(ct.path,Kb.paramIsY)));if(je=Ep.roundPositionForSharpStrokeRendering(je,tt),Ue=Ep.roundPositionForSharpStrokeRendering(Ue,tt),l&&u){var Ae="M"+(je-1-tt)+","+(Ue-1-tt)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";rr.attr("d",Ae)}else if(l){var rt="M"+(je-1-tt)+","+(Ue-9-tt)+"v18 h2 v-18 Z";rr.attr("d",rt)}else{var St="M"+(je-9-tt)+","+(Ue-1-tt)+"h18 v2 h-18 Z";rr.attr("d",St)}}}function mt(at){at.selectAll(".visual-cue").remove()}function Ht(at,ct,ar){var Vt=ct.xref,rr=ct.yref,tt=Yb.getFromId(ar,Vt),je=Yb.getFromId(ar,rr),Ue="";Vt!=="paper"&&!tt.autorange&&(Ue+=Vt),rr!=="paper"&&!je.autorange&&(Ue+=rr),hP.setClipUrl(at,Ue?"clip"+ar._fullLayout._uid+Ue:null,ar)}}function Yue(e,t,r){return e.replace(Kb.segmentRE,function(n){var i=0,a=n.charAt(0),o=Kb.paramIsX[a],s=Kb.paramIsY[a],l=Kb.numParams[a],u=n.slice(1).replace(Kb.paramRE,function(c){return i>=l||(o[i]?c=t(c):s[i]&&(c=r(c)),i++),c});return a+u})}function nft(e,t){if(dP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex){Kue(e);return}e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=Kue,uN(e)}}}function Kue(e){if(dP(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&($ue(e),delete e._fullLayout._activeShapeIndex,uN(e))}}function aft(e){if(dP(e)){$ue(e);var t=e._fullLayout._activeShapeIndex,r=(e.layout||{}).shapes||[];if(t<r.length){for(var n=[],i=0;i<r.length;i++)i!==t&&n.push(r[i]);return delete e._fullLayout._activeShapeIndex,Jue.call("_guiRelayout",e,{shapes:n})}}}});var hN=ye((nor,cce)=>{"use strict";var S0=Oa(),rce=Mc(),ice=df(),Pl=QL(),oft=vP().eraseActiveShape,pP=Pr(),tl=pP._,Il=cce.exports={};Il.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},r=t.format||"png";return r==="png"?tl(e,"Download plot as a PNG"):tl(e,"Download plot")},icon:Pl.camera,click:function(e){var t=e._context.toImageButtonOptions,r={format:t.format||"png"};pP.notifier(tl(e,"Taking snapshot - this may take a few seconds"),"long",e),["filename","width","height","scale"].forEach(function(n){n in t&&(r[n]=t[n])}),S0.call("downloadImage",e,r).then(function(n){pP.notifier(tl(e,"Snapshot succeeded")+" - "+n,"long",e)}).catch(function(){pP.notifier(tl(e,"Sorry, there was a problem downloading your snapshot!"),"long",e)})}};Il.sendDataToCloud={name:"sendDataToCloud",title:function(e){return tl(e,"Edit in Chart Studio")},icon:Pl.disk,click:function(e){rce.sendDataToCloud(e)}};Il.editInChartStudio={name:"editInChartStudio",title:function(e){return tl(e,"Edit in Chart Studio")},icon:Pl.pencil,click:function(e){rce.sendDataToCloud(e)}};Il.zoom2d={name:"zoom2d",_cat:"zoom",title:function(e){return tl(e,"Zoom")},attr:"dragmode",val:"zoom",icon:Pl.zoombox,click:Bv};Il.pan2d={name:"pan2d",_cat:"pan",title:function(e){return tl(e,"Pan")},attr:"dragmode",val:"pan",icon:Pl.pan,click:Bv};Il.select2d={name:"select2d",_cat:"select",title:function(e){return tl(e,"Box Select")},attr:"dragmode",val:"select",icon:Pl.selectbox,click:Bv};Il.lasso2d={name:"lasso2d",_cat:"lasso",title:function(e){return tl(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:Pl.lasso,click:Bv};Il.drawclosedpath={name:"drawclosedpath",title:function(e){return tl(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:Pl.drawclosedpath,click:Bv};Il.drawopenpath={name:"drawopenpath",title:function(e){return tl(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:Pl.drawopenpath,click:Bv};Il.drawline={name:"drawline",title:function(e){return tl(e,"Draw line")},attr:"dragmode",val:"drawline",icon:Pl.drawline,click:Bv};Il.drawrect={name:"drawrect",title:function(e){return tl(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:Pl.drawrect,click:Bv};Il.drawcircle={name:"drawcircle",title:function(e){return tl(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:Pl.drawcircle,click:Bv};Il.eraseshape={name:"eraseshape",title:function(e){return tl(e,"Erase active shape")},icon:Pl.eraseshape,click:oft};Il.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(e){return tl(e,"Zoom in")},attr:"zoom",val:"in",icon:Pl.zoom_plus,click:Bv};Il.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(e){return tl(e,"Zoom out")},attr:"zoom",val:"out",icon:Pl.zoom_minus,click:Bv};Il.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(e){return tl(e,"Autoscale")},attr:"zoom",val:"auto",icon:Pl.autoscale,click:Bv};Il.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(e){return tl(e,"Reset axes")},attr:"zoom",val:"reset",icon:Pl.home,click:Bv};Il.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(e){return tl(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:Pl.tooltip_basic,gravity:"ne",click:Bv};Il.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(e){return tl(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:Pl.tooltip_compare,gravity:"ne",click:Bv};function Bv(e,t){var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,a=e._fullLayout,o={},s=ice.list(e,null,!0),l=a._cartesianSpikesEnabled,u,c;if(n==="zoom"){var f=i==="in"?.5:2,h=(1+f)/2,d=(1-f)/2,v,m;for(c=0;c<s.length;c++)if(u=s[c],m=u.modebardisable==="none"||u.modebardisable.indexOf(i==="auto"||i==="reset"?"autoscale":"zoominout")===-1,m&&!u.fixedrange)if(v=u._name,i==="auto")o[v+".autorange"]=!0;else if(i==="reset")u._rangeInitial0===void 0&&u._rangeInitial1===void 0?o[v+".autorange"]=!0:u._rangeInitial0===void 0?(o[v+".autorange"]=u._autorangeInitial,o[v+".range"]=[null,u._rangeInitial1]):u._rangeInitial1===void 0?(o[v+".range"]=[u._rangeInitial0,null],o[v+".autorange"]=u._autorangeInitial):o[v+".range"]=[u._rangeInitial0,u._rangeInitial1],u._showSpikeInitial!==void 0&&(o[v+".showspikes"]=u._showSpikeInitial,l==="on"&&!u._showSpikeInitial&&(l="off"));else{var b=[u.r2l(u.range[0]),u.r2l(u.range[1])],p=[h*b[0]+d*b[1],h*b[1]+d*b[0]];o[v+".range[0]"]=u.l2r(p[0]),o[v+".range[1]"]=u.l2r(p[1])}}else n==="hovermode"&&(i==="x"||i==="y")&&(i=a._isHoriz?"y":"x",r.setAttribute("data-val",i)),o[n]=i;a._cartesianSpikesEnabled=l,S0.call("_guiRelayout",e,o)}Il.zoom3d={name:"zoom3d",_cat:"zoom",title:function(e){return tl(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:Pl.zoombox,click:gP};Il.pan3d={name:"pan3d",_cat:"pan",title:function(e){return tl(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:Pl.pan,click:gP};Il.orbitRotation={name:"orbitRotation",title:function(e){return tl(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:Pl["3d_rotate"],click:gP};Il.tableRotation={name:"tableRotation",title:function(e){return tl(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:Pl["z-axis"],click:gP};function gP(e,t){for(var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,a=e._fullLayout._subplots.gl3d||[],o={},s=n.split("."),l=0;l<a.length;l++)o[a[l]+"."+s[1]]=i;var u=i==="pan"?i:"zoom";o.dragmode=u,S0.call("_guiRelayout",e,o)}Il.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(e){return tl(e,"Reset camera to default")},attr:"resetDefault",icon:Pl.home,click:cN};Il.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(e){return tl(e,"Reset camera to last save")},attr:"resetLastSave",icon:Pl.movie,click:cN};function cN(e,t){for(var r=t.currentTarget,n=r.getAttribute("data-attr"),i=n==="resetLastSave",a=n==="resetDefault",o=e._fullLayout,s=o._subplots.gl3d||[],l={},u=0;u<s.length;u++){var c=s[u],f=c+".camera",h=c+".aspectratio",d=c+".aspectmode",v=o[c]._scene,m;i?(l[f+".up"]=v.viewInitial.up,l[f+".eye"]=v.viewInitial.eye,l[f+".center"]=v.viewInitial.center,m=!0):a&&(l[f+".up"]=null,l[f+".eye"]=null,l[f+".center"]=null,m=!0),m&&(l[h+".x"]=v.viewInitial.aspectratio.x,l[h+".y"]=v.viewInitial.aspectratio.y,l[h+".z"]=v.viewInitial.aspectratio.z,l[d]=v.viewInitial.aspectmode)}S0.call("_guiRelayout",e,l)}Il.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(e){return tl(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:Pl.tooltip_basic,gravity:"ne",click:sft};function nce(e,t){var r=t.currentTarget,n=r._previousVal,i=e._fullLayout,a=i._subplots.gl3d||[],o=["xaxis","yaxis","zaxis"],s={},l={};if(n)l=n,r._previousVal=null;else{for(var u=0;u<a.length;u++){var c=a[u],f=i[c],h=c+".hovermode";s[h]=f.hovermode,l[h]=!1;for(var d=0;d<3;d++){var v=o[d],m=c+"."+v+".showspikes";l[m]=!1,s[m]=f[v].showspikes}}r._previousVal=s}return l}function sft(e,t){var r=nce(e,t);S0.call("_guiRelayout",e,r)}Il.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(e){return tl(e,"Zoom in")},attr:"zoom",val:"in",icon:Pl.zoom_plus,click:fN};Il.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(e){return tl(e,"Zoom out")},attr:"zoom",val:"out",icon:Pl.zoom_minus,click:fN};Il.resetGeo={name:"resetGeo",_cat:"reset",title:function(e){return tl(e,"Reset")},attr:"reset",val:null,icon:Pl.autoscale,click:fN};Il.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(e){return tl(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:Pl.tooltip_basic,gravity:"ne",click:oce};function fN(e,t){for(var r=t.currentTarget,n=r.getAttribute("data-attr"),i=r.getAttribute("data-val")||!0,a=e._fullLayout,o=a._subplots.geo||[],s=0;s<o.length;s++){var l=o[s],u=a[l];if(n==="zoom"){var c=u.projection.scale,f=i==="in"?2*c:.5*c;S0.call("_guiRelayout",e,l+".projection.scale",f)}}n==="reset"&&nT(e,"geo")}Il.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(e){return tl(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:Pl.tooltip_basic,gravity:"ne",click:oce};function ace(e){var t=e._fullLayout;return t.hovermode?!1:t._has("cartesian")?t._isHoriz?"y":"x":"closest"}function oce(e){var t=ace(e);S0.call("_guiRelayout",e,"hovermode",t)}Il.resetViewSankey={name:"resetSankeyGroup",title:function(e){return tl(e,"Reset view")},icon:Pl.home,click:function(e){for(var t={"node.groups":[],"node.x":[],"node.y":[]},r=0;r<e._fullData.length;r++){var n=e._fullData[r]._viewInitial;t["node.groups"].push(n.node.groups.slice()),t["node.x"].push(n.node.x.slice()),t["node.y"].push(n.node.y.slice())}S0.call("restyle",e,t)}};Il.toggleHover={name:"toggleHover",title:function(e){return tl(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:Pl.tooltip_basic,gravity:"ne",click:function(e,t){var r=nce(e,t);r.hovermode=ace(e),S0.call("_guiRelayout",e,r)}};Il.resetViews={name:"resetViews",title:function(e){return tl(e,"Reset views")},icon:Pl.home,click:function(e,t){var r=t.currentTarget;r.setAttribute("data-attr","zoom"),r.setAttribute("data-val","reset"),Bv(e,t),r.setAttribute("data-attr","resetLastSave"),cN(e,t),nT(e,"geo"),nT(e,"mapbox"),nT(e,"map")}};Il.toggleSpikelines={name:"toggleSpikelines",title:function(e){return tl(e,"Toggle Spike Lines")},icon:Pl.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var t=e._fullLayout,r=t._cartesianSpikesEnabled;t._cartesianSpikesEnabled=r==="on"?"off":"on",S0.call("_guiRelayout",e,lft(e))}};function lft(e){for(var t=e._fullLayout,r=t._cartesianSpikesEnabled==="on",n=ice.list(e,null,!0),i={},a=0;a<n.length;a++){var o=n[a];i[o._name+".showspikes"]=r?!0:o._showSpikeInitial}return i}Il.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(e){return tl(e,"Reset view")},attr:"reset",icon:Pl.home,click:function(e){nT(e,"mapbox")}};Il.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(e){return tl(e,"Reset view")},attr:"reset",icon:Pl.home,click:function(e){nT(e,"map")}};Il.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(e){return tl(e,"Zoom in")},attr:"zoom",val:"in",icon:Pl.zoom_plus,click:sce};Il.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(e){return tl(e,"Zoom in")},attr:"zoom",val:"in",icon:Pl.zoom_plus,click:lce};Il.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(e){return tl(e,"Zoom out")},attr:"zoom",val:"out",icon:Pl.zoom_minus,click:sce};Il.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(e){return tl(e,"Zoom out")},attr:"zoom",val:"out",icon:Pl.zoom_minus,click:lce};function sce(e,t){uce(e,t,"mapbox")}function lce(e,t){uce(e,t,"map")}function uce(e,t,r){for(var n=t.currentTarget,i=n.getAttribute("data-val"),a=e._fullLayout,o=a._subplots[r]||[],s=1.05,l={},u=0;u<o.length;u++){var c=o[u],f=a[c].zoom,h=i==="in"?s*f:f/s;l[c+".zoom"]=h}S0.call("_guiRelayout",e,l)}function nT(e,t){for(var r=e._fullLayout,n=r._subplots[t]||[],i={},a=0;a<n.length;a++)for(var o=n[a],s=r[o]._subplot,l=s.viewInitial,u=Object.keys(l),c=0;c<u.length;c++){var f=u[c];i[o+"."+f]=l[f]}S0.call("_guiRelayout",e,i)}});var dN=ye((aor,vce)=>{"use strict";var fce=hN(),uft=Object.keys(fce),hce=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],dce=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(hce),aT=[],cft=function(e){if(dce.indexOf(e._cat||e.name)===-1){var t=e.name,r=(e._cat||e.name).toLowerCase();aT.indexOf(t)===-1&&aT.push(t),aT.indexOf(r)===-1&&aT.push(r)}};uft.forEach(function(e){cft(fce[e])});aT.sort();vce.exports={DRAW_MODES:hce,backButtons:dce,foreButtons:aT}});var vN=ye((sor,pce)=>{"use strict";var oor=dN();pce.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"}}});var mce=ye((lor,gce)=>{"use strict";var fft=Pr(),MM=ka(),hft=vl(),dft=vN();gce.exports=function(t,r){var n=t.modebar||{},i=hft.newContainer(r,"modebar");function a(s,l){return fft.coerce(n,i,dft,s,l)}a("orientation"),a("bgcolor",MM.addOpacity(r.paper_bgcolor,.5));var o=MM.contrast(MM.rgb(r.modebar.bgcolor));a("color",MM.addOpacity(o,.3)),a("activecolor",MM.addOpacity(o,.7)),a("uirevision",r.uirevision),a("add"),a("remove")}});var bce=ye((uor,xce)=>{"use strict";var pN=qa(),vft=Eo(),mP=Pr(),yce=QL(),pft=m6().version,gft=new DOMParser;function _ce(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var Cm=_ce.prototype;Cm.update=function(e,t){this.graphInfo=e;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i="modebar-"+n._uid;this.element.setAttribute("id",i),this.element.setAttribute("role","toolbar"),this._uid=i,this.element.className="modebar modebar--custom",r.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),n.modebar.orientation==="v"&&(this.element.className+=" vertical",t=t.reverse());var a=n.modebar,o="#"+i+" .modebar-group";document.querySelectorAll(o).forEach(function(f){f.style.backgroundColor=a.bgcolor});var s=!this.hasButtons(t),l=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(s||l||u)&&(this.removeAllButtons(),this.updateButtons(t),r.watermark||r.displaylogo)){var c=this.getLogo();r.watermark&&(c.className=c.className+" watermark"),n.modebar.orientation==="v"?this.element.insertBefore(c,this.element.childNodes[0]):this.element.appendChild(c),this.hasLogo=!0}this.updateActiveButton(),mP.setStyleOnHover("#"+i+" .modebar-btn",".active",".icon path","fill: "+a.activecolor,"fill: "+a.color,this.element)};Cm.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(r){var n=t.createGroup();r.forEach(function(i){var a=i.name;if(!a)throw new Error("must provide button 'name' in button config");if(t.buttonsNames.indexOf(a)!==-1)throw new Error("button name '"+a+"' is taken");t.buttonsNames.push(a);var o=t.createButton(i);t.buttonElements.push(o),n.appendChild(o)}),t.element.appendChild(n)})};Cm.createGroup=function(){var e=document.createElement("div");e.className="modebar-group";var t=this.graphInfo._fullLayout.modebar;return e.style.backgroundColor=t.bgcolor,e};Cm.createButton=function(e){var t=this,r=document.createElement("button");r.setAttribute("type","button"),r.setAttribute("rel","tooltip"),r.className="modebar-btn";var n=e.title;n===void 0?n=e.name:typeof n=="function"&&(n=n(this.graphInfo)),(n||n===0)&&(r.setAttribute("data-title",n),r.setAttribute("aria-label",n)),e.attr!==void 0&&r.setAttribute("data-attr",e.attr);var i=e.val;i!==void 0&&(typeof i=="function"&&(i=i(this.graphInfo)),r.setAttribute("data-val",i));var a=e.click;if(typeof a!="function")throw new Error("must provide button 'click' function in button config");r.addEventListener("click",function(s){e.click(t.graphInfo,s),t.updateActiveButton(s.currentTarget)}),r.setAttribute("data-toggle",e.toggle||!1),e.toggle&&pN.select(r).classed("active",!0);var o=e.icon;return typeof o=="function"?r.appendChild(o()):r.appendChild(this.createIcon(o||yce.question)),r.setAttribute("data-gravity",e.gravity||"n"),r};Cm.createIcon=function(e){var t=vft(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg",n;if(e.path){n=document.createElementNS(r,"svg"),n.setAttribute("viewBox",[0,0,e.width,t].join(" ")),n.setAttribute("class","icon");var i=document.createElementNS(r,"path");i.setAttribute("d",e.path),e.transform?i.setAttribute("transform",e.transform):e.ascent!==void 0&&i.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),n.appendChild(i)}if(e.svg){var a=gft.parseFromString(e.svg,"application/xml");n=a.childNodes[0]}return n.setAttribute("height","1em"),n.setAttribute("width","1em"),n};Cm.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,r=e!==void 0?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(n){var i=n.getAttribute("data-val")||!0,a=n.getAttribute("data-attr"),o=n.getAttribute("data-toggle")==="true",s=pN.select(n),l=function(f,h){var d=t.modebar,v=f.querySelector(".icon path");v&&(h||f.matches(":hover")?v.style.fill=d.activecolor:v.style.fill=d.color)};if(o){if(a===r){var u=!s.classed("active");s.classed("active",u),l(n,u)}}else{var c=a===null?a:mP.nestedProperty(t,a).get();s.classed("active",c===i),l(n,c===i)}})};Cm.hasButtons=function(e){var t=this.buttons;if(!t||e.length!==t.length)return!1;for(var r=0;r<e.length;++r){if(e[r].length!==t[r].length)return!1;for(var n=0;n<e[r].length;n++)if(e[r][n].name!==t[r][n].name)return!1}return!0};function mft(e){return e+" (v"+pft+")"}Cm.getLogo=function(){var e=this.createGroup(),t=document.createElement("a");return t.href="https://plotly.com/",t.target="_blank",t.setAttribute("data-title",mft(mP._(this.graphInfo,"Produced with Plotly.js"))),t.className="modebar-btn plotlyjsicon modebar-btn--logo",t.appendChild(this.createIcon(yce.newplotlylogo)),e.appendChild(t),e};Cm.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1};Cm.destroy=function(){mP.removeElement(this.container.querySelector(".modebar"))};function yft(e,t){var r=e._fullLayout,n=new _ce({graphInfo:e,container:r._modebardiv.node(),buttons:t});return r._privateplot&&pN.select(n.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),n}xce.exports=yft});var Ace=ye((cor,Tce)=>{"use strict";var _ft=df(),wce=Ru(),gN=Oa(),xft=ip().isUnifiedHover,bft=bce(),yP=hN(),wft=dN().DRAW_MODES,Tft=Pr().extendDeep;Tce.exports=function(t){var r=t._fullLayout,n=t._context,i=r._modeBar;if(!n.displayModeBar&&!n.watermark){i&&(i.destroy(),delete r._modeBar);return}if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a=n.modeBarButtons,o;Array.isArray(a)&&a.length?o=Cft(a):!n.displayModeBar&&n.watermark?o=[]:o=Aft(t),i?i.update(t,o):r._modeBar=bft(t,o)};function Aft(e){var t=e._fullLayout,r=e._fullData,n=e._context;function i(N,H){if(typeof H=="string"){if(H.toLowerCase()===N.toLowerCase())return!0}else{var ie=H.name,ae=H._cat||H.name;if(ie===N||ae===N.toLowerCase())return!0}return!1}var a=t.modebar.add;typeof a=="string"&&(a=[a]);var o=t.modebar.remove;typeof o=="string"&&(o=[o]);var s=n.modeBarButtonsToAdd.concat(a.filter(function(N){for(var H=0;H<n.modeBarButtonsToRemove.length;H++)if(i(N,n.modeBarButtonsToRemove[H]))return!1;return!0})),l=n.modeBarButtonsToRemove.concat(o.filter(function(N){for(var H=0;H<n.modeBarButtonsToAdd.length;H++)if(i(N,n.modeBarButtonsToAdd[H]))return!1;return!0})),u=t._has("cartesian"),c=t._has("gl3d"),f=t._has("geo"),h=t._has("pie"),d=t._has("funnelarea"),v=t._has("ternary"),m=t._has("mapbox"),b=t._has("map"),p=t._has("polar"),k=t._has("smith"),M=t._has("sankey"),T=Sft(t),L=xft(t.hovermode),x=[];function C(N){if(N.length){for(var H=[],ie=0;ie<N.length;ie++){for(var ae=N[ie],_e=yP[ae],Ee=_e.name.toLowerCase(),Ce=(_e._cat||_e.name).toLowerCase(),ge=!1,re=0;re<l.length;re++){var Se=l[re].toLowerCase();if(Se===Ee||Se===Ce){ge=!0;break}}ge||H.push(yP[ae])}x.push(H)}}var S=["toImage"];n.showEditInChartStudio?S.push("editInChartStudio"):n.showSendToCloud&&S.push("sendDataToCloud"),C(S);var g=[],P=[],E=[],z=[];(u||h||d||v)+f+c+m+b+p+k>1?(P=["toggleHover"],E=["resetViews"]):f?(g=["zoomInGeo","zoomOutGeo"],P=["hoverClosestGeo"],E=["resetGeo"]):c?(P=["hoverClosest3d"],E=["resetCameraDefault3d","resetCameraLastSave3d"]):m?(g=["zoomInMapbox","zoomOutMapbox"],P=["toggleHover"],E=["resetViewMapbox"]):b?(g=["zoomInMap","zoomOutMap"],P=["toggleHover"],E=["resetViewMap"]):h?P=["hoverClosestPie"]:M?(P=["hoverClosestCartesian","hoverCompareCartesian"],E=["resetViewSankey"]):P=["toggleHover"],u&&P.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(Eft(r)||L)&&(P=[]),u&&!T&&(g=["zoomIn2d","zoomOut2d","autoScale2d"],E[0]!=="resetViews"&&(E=["resetScale2d"])),c?z=["zoom3d","pan3d","orbitRotation","tableRotation"]:u&&!T||v?z=["zoom2d","pan2d"]:m||b||f?z=["pan2d"]:p&&(z=["zoom2d"]),Mft(r)&&z.push("select2d","lasso2d");var q=[],V=function(N){q.indexOf(N)===-1&&P.indexOf(N)!==-1&&q.push(N)};if(Array.isArray(s)){for(var G=[],Z=0;Z<s.length;Z++){var j=s[Z];typeof j=="string"?(j=j.toLowerCase(),wft.indexOf(j)!==-1?(t._has("mapbox")||t._has("map")||t._has("cartesian"))&&z.push(j):j==="togglespikelines"?V("toggleSpikelines"):j==="togglehover"?V("toggleHover"):j==="hovercompare"?V("hoverCompareCartesian"):j==="hoverclosest"?(V("hoverClosestCartesian"),V("hoverClosestGeo"),V("hoverClosest3d"),V("hoverClosestPie")):j==="v1hovermode"&&(V("hoverClosestCartesian"),V("hoverCompareCartesian"),V("hoverClosestGeo"),V("hoverClosest3d"),V("hoverClosestPie"))):G.push(j)}s=G}return C(z),C(g.concat(E)),C(q),kft(x,s)}function Sft(e){for(var t=_ft.list({_fullLayout:e},null,!0),r=0;r<t.length;r++){var n=t[r].modebardisable;if(!t[r].fixedrange&&n!=="autoscale+zoominout"&&n!=="zoominout+autoscale")return!1}return!0}function Mft(e){for(var t=!1,r=0;r<e.length&&!t;r++){var n=e[r];!n._module||!n._module.selectPoints||(gN.traceIs(n,"scatter-like")?(wce.hasMarkers(n)||wce.hasText(n))&&(t=!0):gN.traceIs(n,"box-violin")?(n.boxpoints==="all"||n.points==="all")&&(t=!0):t=!0)}return t}function Eft(e){for(var t=0;t<e.length;t++)if(!gN.traceIs(e[t],"noHover"))return!1;return!0}function kft(e,t){if(t.length)if(Array.isArray(t[0]))for(var r=0;r<t.length;r++)e.push(t[r]);else e.push(t);return e}function Cft(e){for(var t=Tft([],e),r=0;r<t.length;r++)for(var n=t[r],i=0;i<n.length;i++){var a=n[i];if(typeof a=="string")if(yP[a]!==void 0)t[r][i]=yP[a];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return t}});var mN=ye((hor,Sce)=>{"use strict";Sce.exports={moduleType:"component",name:"modebar",layoutAttributes:vN(),supplyLayoutDefaults:mce(),manage:Ace()}});var yN=ye((dor,Mce)=>{"use strict";var Lft=Dh().FROM_BL;Mce.exports=function(t,r,n){n===void 0&&(n=Lft[t.constraintoward||"center"]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*n;t.range=t._input.range=[t.l2r(a+(i[0]-a)*r),t.l2r(a+(i[1]-a)*r)],t.setScale()}});var $b=ye(EM=>{"use strict";var Jb=Pr(),_N=Mg(),Lg=df().id2name,Pft=Rd(),Ece=yN(),Ift=xm(),Rft=fs().ALMOST_EQUAL,Dft=Dh().FROM_BL;EM.handleDefaults=function(e,t,r){var n=r.axIds,i=r.axHasImage,a=t._axisConstraintGroups=[],o=t._axisMatchGroups=[],s,l,u,c,f,h,d,v;for(s=0;s<n.length;s++)c=Lg(n[s]),f=e[c],h=t[c],Fft(f,h,{axIds:n,layoutOut:t,hasImage:i[c]});function m(S,g){for(s=0;s<S.length;s++){l=S[s];for(u in l)t[Lg(u)][g]=l}}for(m(o,"_matchGroup"),s=0;s<a.length;s++){l=a[s];for(u in l)if(h=t[Lg(u)],h.fixedrange){for(var b in l){var p=Lg(b);(e[p]||{}).fixedrange===!1&&Jb.warn("fixedrange was specified as false for axis "+p+" but was overridden because another axis in its constraint group has fixedrange true"),t[p].fixedrange=!0}break}}for(s=0;s<a.length;){l=a[s];for(u in l){h=t[Lg(u)],h._matchGroup&&Object.keys(h._matchGroup).length===Object.keys(l).length&&(a.splice(s,1),s--);break}s++}m(a,"_constraintGroup");var k=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],M=!1,T=!1;function L(){v=h[d],d==="rangebreaks"&&(T=h._hasDayOfWeekBreaks)}for(s=0;s<o.length;s++){l=o[s];for(var x=0;x<k.length;x++){d=k[x],v=null;var C;for(u in l)if(c=Lg(u),f=e[c],h=t[c],d in h){if(!h.matches&&(C=h,d in f)){L();break}v===null&&d in f&&L()}if(d==="range"&&v&&f.range&&f.range.length===2&&f.range[0]!==null&&f.range[1]!==null&&(M=!0),d==="autorange"&&v===null&&M&&(v=!1),v===null&&d in C&&(v=C[d]),v!==null)for(u in l)h=t[Lg(u)],h[d]=d==="range"?v.slice():v,d==="rangebreaks"&&(h._hasDayOfWeekBreaks=T,Ift(h,t))}}};function Fft(e,t,r){var n=r.axIds,i=r.layoutOut,a=r.hasImage,o=i._axisConstraintGroups,s=i._axisMatchGroups,l=t._id,u=l.charAt(0),c=((i._splomAxes||{})[u]||{})[l]||{},f=t._id,h=f.charAt(0)==="x";t._matchGroup=null,t._constraintGroup=null;function d(z,q){return Jb.coerce(e,t,Pft,z,q)}d("constrain",a?"domain":"range"),Jb.coerce(e,t,{constraintoward:{valType:"enumerated",values:h?["left","center","right"]:["bottom","middle","top"],dflt:h?"center":"middle"}},"constraintoward");var v=t.type,m,b,p=[];for(m=0;m<n.length;m++)if(b=n[m],b!==f){var k=i[Lg(b)];k.type===v&&p.push(b)}var M=Lce(o,f);if(M){var T=[];for(m=0;m<p.length;m++)b=p[m],M[b]||T.push(b);p=T}var L=p.length,x,C;L&&(e.matches||c.matches)&&(x=Jb.coerce(e,t,{matches:{valType:"enumerated",values:p,dflt:p.indexOf(c.matches)!==-1?c.matches:void 0}},"matches"));var S=a&&!h?t.anchor:void 0;if(L&&!x&&(e.scaleanchor||S)&&(C=Jb.coerce(e,t,{scaleanchor:{valType:"enumerated",values:p.concat([!1])}},"scaleanchor",S)),x){t._matchGroup=xN(s,f,x,1);var g=i[Lg(x)],P=kce(i,t)/kce(i,g);h!==(x.charAt(0)==="x")&&(P=(h?"x":"y")+P),xN(o,f,x,P)}else e.matches&&n.indexOf(e.matches)!==-1&&Jb.warn("ignored "+t._name+'.matches: "'+e.matches+'" to avoid an infinite loop');if(C){var E=d("scaleratio");E||(E=t.scaleratio=1),xN(o,f,C,E)}else e.scaleanchor&&n.indexOf(e.scaleanchor)!==-1&&Jb.warn("ignored "+t._name+'.scaleanchor: "'+e.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function kce(e,t){var r=t.domain;return r||(r=e[Lg(t.overlaying)].domain),r[1]-r[0]}function Lce(e,t){for(var r=0;r<e.length;r++)if(e[r][t])return e[r];return null}function xN(e,t,r,n){var i,a,o,s,l,u=Lce(e,t);u===null?(u={},u[t]=1,l=e.length,e.push(u)):l=e.indexOf(u);var c=Object.keys(u);for(i=0;i<e.length;i++)if(o=e[i],i!==l&&o[r]){var f=o[r];for(a=0;a<c.length;a++)s=c[a],o[s]=bN(f,bN(n,u[s]));e.splice(l,1);return}if(n!==1)for(a=0;a<c.length;a++){var h=c[a];u[h]=bN(n,u[h])}u[r]=1}function bN(e,t){var r="",n="",i,a;typeof e=="string"&&(r=e.match(/^[xy]*/)[0],i=r.length,e=+e.slice(i)),typeof t=="string"&&(n=t.match(/^[xy]*/)[0],a=n.length,t=+t.slice(a));var o=e*t;return!i&&!a?o:!i||!a||r.charAt(0)===n.charAt(0)?r+n+e*t:i===a?o:(i>a?r.slice(a):n.slice(i))+o}function zft(e,t){for(var r=t._size,n=r.h/r.w,i={},a=Object.keys(e),o=0;o<a.length;o++){var s=a[o],l=e[s];if(typeof l=="string"){var u=l.match(/^[xy]*/)[0],c=u.length;l=+l.slice(c);for(var f=u.charAt(0)==="y"?n:1/n,h=0;h<c;h++)l*=f}i[s]=l}return i}EM.enforce=function(t){var r=t._fullLayout,n=r._axisConstraintGroups||[],i,a,o,s,l,u,c,f;for(i=0;i<n.length;i++){o=zft(n[i],r);var h=Object.keys(o),d=1/0,v=0,m=1/0,b={},p={},k=!1;for(a=0;a<h.length;a++)s=h[a],p[s]=l=r[Lg(s)],l._inputDomain?l.domain=l._inputDomain.slice():l._inputDomain=l.domain.slice(),l._inputRange||(l._inputRange=l.range.slice()),l.setScale(),b[s]=u=Math.abs(l._m)/o[s],d=Math.min(d,u),(l.constrain==="domain"||!l._constraintShrinkable)&&(m=Math.min(m,u)),delete l._constraintShrinkable,v=Math.max(v,u),l.constrain==="domain"&&(k=!0);if(!(d>Rft*v&&!k)){for(a=0;a<h.length;a++)if(s=h[a],u=b[s],l=p[s],c=l.constrain,u!==m||c==="domain")if(f=u/m,c==="range")Ece(l,f);else{var M=l._inputDomain,T=(l.domain[1]-l.domain[0])/(M[1]-M[0]),L=(l.r2l(l.range[1])-l.r2l(l.range[0]))/(l.r2l(l._inputRange[1])-l.r2l(l._inputRange[0]));if(f/=T,f*L<1){l.domain=l._input.domain=M.slice(),Ece(l,f);continue}if(L<1&&(l.range=l._input.range=l._inputRange.slice(),f*=L),l.autorange){var x=l.r2l(l.range[0]),C=l.r2l(l.range[1]),S=(x+C)/2,g=S,P=S,E=Math.abs(C-S),z=S-E*f*1.0001,q=S+E*f*1.0001,V=_N.makePadFn(r,l,0),G=_N.makePadFn(r,l,1);Cce(l,f);var Z=Math.abs(l._m),j=_N.concatExtremes(t,l),N=j.min,H=j.max,ie,ae;for(ae=0;ae<N.length;ae++)ie=N[ae].val-V(N[ae])/Z,ie>z&&ie<g&&(g=ie);for(ae=0;ae<H.length;ae++)ie=H[ae].val+G(H[ae])/Z,ie<q&&ie>P&&(P=ie);var _e=(P-g)/(2*E);f/=_e,g=l.l2r(g),P=l.l2r(P),l.range=l._input.range=x<C?[g,P]:[P,g]}Cce(l,f)}}}};EM.getAxisGroup=function(t,r){for(var n=t._axisMatchGroups,i=0;i<n.length;i++){var a=n[i];if(a[r])return"g"+i}return r};EM.clean=function(t,r){if(r._inputDomain){for(var n=!1,i=r._id,a=t._fullLayout._axisConstraintGroups,o=0;o<a.length;o++)if(a[o][i]){n=!0;break}(!n||r.constrain!=="domain")&&(r._input.domain=r.domain=r._inputDomain,delete r._inputDomain)}};function Cce(e,t){var r=e._inputDomain,n=Dft[e.constraintoward],i=r[0]+(r[1]-r[0])*n;e.domain=e._input.domain=[i+(r[0]-i)/t,i+(r[1]-i)/t],e.setScale()}});var LM=ye(pd=>{"use strict";var xP=qa(),Nv=Oa(),Jp=Mc(),M0=Pr(),wN=Zl(),TN=wM(),kM=ka(),oT=So(),Pce=qb(),zce=mN(),CM=ho(),Fy=Dh(),qce=$b(),qft=qce.enforce,Oft=qce.clean,Ice=Mg().doAutoRange,Oce="start",Bft="middle",Bce="end",Nft=Rh().zindexSeparator;pd.layoutStyles=function(e){return M0.syncOrAsync([Jp.doAutoMargin,Vft],e)};function Uft(e,t,r){for(var n=0;n<r.length;n++){var i=r[n][0],a=r[n][1];if(!(i[0]>=e[1]||i[1]<=e[0])&&a[0]<t[1]&&a[1]>t[0])return!0}return!1}function Vft(e){var t=e._fullLayout,r=t._size,n=r.p,i=CM.list(e,"",!0),a,o,s,l,u,c;if(t._paperdiv.style({width:e._context.responsive&&t.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":t.width+"px",height:e._context.responsive&&t.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":t.height+"px"}).selectAll(".main-svg").call(oT.setSize,t.width,t.height),e._context.setBackground(e,t.paper_bgcolor),pd.drawMainTitle(e),zce.manage(e),!t._has("cartesian"))return Jp.previousPromises(e);function f(Le,me,Pe){var ce=Le._lw/2;if(Le._id.charAt(0)==="x"){if(me){if(Pe==="top")return me._offset-n-ce}else return r.t+r.h*(1-(Le.position||0))+ce%1;return me._offset+me._length+n+ce}if(me){if(Pe==="right")return me._offset+me._length+n+ce}else return r.l+r.w*(Le.position||0)+ce%1;return me._offset-n-ce}for(a=0;a<i.length;a++){l=i[a];var h=l._anchorAxis;l._linepositions={},l._lw=oT.crispRound(e,l.linewidth,1),l._mainLinePosition=f(l,h,l.side),l._mainMirrorPosition=l.mirror&&h?f(l,h,Fy.OPPOSITE_SIDE[l.side]):null}var d=[],v=[],m=[],b=kM.opacity(t.paper_bgcolor)===1&&kM.opacity(t.plot_bgcolor)===1&&t.paper_bgcolor===t.plot_bgcolor;for(o in t._plots)if(s=t._plots[o],s.mainplot)s.bg&&s.bg.remove(),s.bg=void 0;else{var p=s.xaxis.domain,k=s.yaxis.domain,M=s.plotgroup;if(Uft(p,k,m)&&o.indexOf(Nft)===-1){var T=M.node(),L=s.bg=M0.ensureSingle(M,"rect","bg");T.insertBefore(L.node(),T.childNodes[0]),v.push(o)}else M.select("rect.bg").remove(),m.push([p,k]),b||(d.push(o),v.push(o))}var x=t._bgLayer.selectAll(".bg").data(d);for(x.enter().append("rect").classed("bg",!0),x.exit().remove(),x.each(function(Le){t._plots[Le].bg=xP.select(this)}),a=0;a<v.length;a++)s=t._plots[v[a]],u=s.xaxis,c=s.yaxis,s.bg&&u._offset!==void 0&&c._offset!==void 0&&s.bg.call(oT.setRect,u._offset-n,c._offset-n,u._length+2*n,c._length+2*n).call(kM.fill,t.plot_bgcolor).style("stroke-width",0);if(!t._hasOnlyLargeSploms)for(o in t._plots){s=t._plots[o],u=s.xaxis,c=s.yaxis;var C=s.clipId="clip"+t._uid+o+"plot",S=M0.ensureSingleById(t._clips,"clipPath",C,function(Le){Le.classed("plotclip",!0).append("rect")});s.clipRect=S.select("rect").attr({width:u._length,height:c._length}),oT.setTranslate(s.plot,u._offset,c._offset);var g,P;s._hasClipOnAxisFalse?(g=null,P=C):(g=C,P=null),oT.setClipUrl(s.plot,g,e),s.layerClipId=P}var E,z,q,V,G,Z,j,N,H,ie,ae,_e,Ee;function Ce(Le){return"M"+E+","+Le+"H"+z}function ge(Le){return"M"+u._offset+","+Le+"h"+u._length}function re(Le){return"M"+Le+","+N+"V"+j}function Se(Le){return c._shift!==void 0&&(Le+=c._shift),"M"+Le+","+c._offset+"v"+c._length}function ke(Le,me,Pe){if(!Le.showline||o!==Le._mainSubplot)return"";if(!Le._anchorAxis)return Pe(Le._mainLinePosition);var ce=me(Le._mainLinePosition);return Le.mirror&&(ce+=me(Le._mainMirrorPosition)),ce}for(o in t._plots){s=t._plots[o],u=s.xaxis,c=s.yaxis;var be="M0,0";Rce(u,o)&&(G=_P(u,"left",c,i),E=u._offset-(G?n+G:0),Z=_P(u,"right",c,i),z=u._offset+u._length+(Z?n+Z:0),q=f(u,c,"bottom"),V=f(u,c,"top"),Ee=!u._anchorAxis||o!==u._mainSubplot,Ee&&(u.mirror==="allticks"||u.mirror==="all")&&(u._linepositions[o]=[q,V]),be=ke(u,Ce,ge),Ee&&u.showline&&(u.mirror==="all"||u.mirror==="allticks")&&(be+=Ce(q)+Ce(V)),s.xlines.style("stroke-width",u._lw+"px").call(kM.stroke,u.showline?u.linecolor:"rgba(0,0,0,0)")),s.xlines.attr("d",be);var Be="M0,0";Rce(c,o)&&(ae=_P(c,"bottom",u,i),j=c._offset+c._length+(ae?n:0),_e=_P(c,"top",u,i),N=c._offset-(_e?n:0),H=f(c,u,"left"),ie=f(c,u,"right"),Ee=!c._anchorAxis||o!==c._mainSubplot,Ee&&(c.mirror==="allticks"||c.mirror==="all")&&(c._linepositions[o]=[H,ie]),Be=ke(c,re,Se),Ee&&c.showline&&(c.mirror==="all"||c.mirror==="allticks")&&(Be+=re(H)+re(ie)),s.ylines.style("stroke-width",c._lw+"px").call(kM.stroke,c.showline?c.linecolor:"rgba(0,0,0,0)")),s.ylines.attr("d",Be)}return CM.makeClipPaths(e),Jp.previousPromises(e)}function Rce(e,t){return(e.ticks||e.showline)&&(t===e._mainSubplot||e.mirror==="all"||e.mirror==="allticks")}function Dce(e,t,r){if(!r.showline||!r._lw)return!1;if(r.mirror==="all"||r.mirror==="allticks")return!0;var n=r._anchorAxis;if(!n)return!1;var i=Fy.FROM_BL[t];return r.side===t?n.domain[i]===e.domain[i]:r.mirror&&n.domain[1-i]===e.domain[1-i]}function _P(e,t,r,n){if(Dce(e,t,r))return r._lw;for(var i=0;i<n.length;i++){var a=n[i];if(a._mainAxis===r._mainAxis&&Dce(e,t,a))return a._lw}return 0}pd.drawMainTitle=function(e){var t=e._fullLayout.title,r=e._fullLayout,n=Yft(r),i=Kft(r),a=Zft(r,i),o=Xft(r,n);if(Pce.draw(e,"gtitle",{propContainer:r,propName:"title.text",subtitlePropName:"title.subtitle.text",placeholder:r._dfltTitle.plot,subtitlePlaceholder:r._dfltTitle.subtitle,attributes:{x:o,y:a,"text-anchor":n,dy:i}}),t.text&&t.automargin){var s=xP.select(e).selectAll(".gtitle"),l=oT.bBox(xP.select(e).selectAll(".g-gtitle").node()).height,u=jft(e,t,l);if(u>0){Wft(e,a,u,l),s.attr({x:o,y:a,"text-anchor":n,dy:Fce(t.yanchor)}).call(wN.positionText,o,a);var c=(t.text.match(wN.BR_TAG_ALL)||[]).length;if(c){var f=Fy.LINE_SPACING*c+Fy.MID_SHIFT;t.y===0&&(f=-f),s.selectAll(".line").each(function(){var b=+this.getAttribute("dy").slice(0,-2)-f+"em";this.setAttribute("dy",b)})}var h=xP.select(e).selectAll(".gtitle-subtitle");if(h.node()){var d=s.node().getBBox(),v=d.y+d.height,m=v+Pce.SUBTITLE_PADDING_EM*t.subtitle.font.size;h.attr({x:o,y:m,"text-anchor":n,dy:Fce(t.yanchor)}).call(wN.positionText,o,m)}}}};function Gft(e,t,r,n,i){var a=t.yref==="paper"?e._fullLayout._size.h:e._fullLayout.height,o=M0.isTopAnchor(t)?n:n-i,s=r==="b"?a-o:o;return M0.isTopAnchor(t)&&r==="t"||M0.isBottomAnchor(t)&&r==="b"?!1:s<i}function Hft(e,t,r,n,i){var a=0;return r==="middle"&&(a+=i/2),e==="t"?(r==="top"&&(a+=i),a+=n-t*n):(r==="bottom"&&(a+=i),a+=t*n),a}function jft(e,t,r){var n=t.y,i=t.yanchor,a=n>.5?"t":"b",o=e._fullLayout.margin[a],s=0;return t.yref==="paper"?s=r+t.pad.t+t.pad.b:t.yref==="container"&&(s=Hft(a,n,i,e._fullLayout.height,r)+t.pad.t+t.pad.b),s>o?s:0}function Wft(e,t,r,n){var i="title.automargin",a=e._fullLayout.title,o=a.y>.5?"t":"b",s={x:a.x,y:a.y,t:0,b:0},l={};a.yref==="paper"&&Gft(e,a,o,t,n)?s[o]=r:a.yref==="container"&&(l[o]=r,e._fullLayout._reservedMargin[i]=l),Jp.allowAutoMargin(e,i),Jp.autoMargin(e,i,s)}function Xft(e,t){var r=e.title,n=e._size,i=0;switch(t===Oce?i=r.pad.l:t===Bce&&(i=-r.pad.r),r.xref){case"paper":return n.l+n.w*r.x+i;case"container":default:return e.width*r.x+i}}function Zft(e,t){var r=e.title,n=e._size,i=0;if(t==="0em"||!t?i=-r.pad.b:t===Fy.CAP_SHIFT+"em"&&(i=r.pad.t),r.y==="auto")return n.t/2;switch(r.yref){case"paper":return n.t+n.h-n.h*r.y+i;case"container":default:return e.height-e.height*r.y+i}}function Fce(e){return e==="top"?Fy.CAP_SHIFT+.3+"em":e==="bottom"?"-0.3em":Fy.MID_SHIFT+"em"}function Yft(e){var t=e.title,r=Bft;return M0.isRightAnchor(t)?r=Bce:M0.isLeftAnchor(t)&&(r=Oce),r}function Kft(e){var t=e.title,r="0em";return M0.isTopAnchor(t)?r=Fy.CAP_SHIFT+"em":M0.isMiddleAnchor(t)&&(r=Fy.MID_SHIFT+"em"),r}pd.doTraceStyle=function(e){var t=e.calcdata,r=[],n;for(n=0;n<t.length;n++){var i=t[n],a=i[0]||{},o=a.trace||{},s=o._module||{},l=s.arraysToCalcdata;l&&l(i,o);var u=s.editStyle;u&&r.push({fn:u,cd0:a})}if(r.length){for(n=0;n<r.length;n++){var c=r[n];c.fn(e,c.cd0)}TN(e),pd.redrawReglTraces(e)}return Jp.style(e),Nv.getComponentMethod("legend","draw")(e),Jp.previousPromises(e)};pd.doColorBars=function(e){return Nv.getComponentMethod("colorbar","draw")(e),Jp.previousPromises(e)};pd.layoutReplot=function(e){var t=e.layout;return e.layout=void 0,Nv.call("_doPlot",e,"",t)};pd.doLegend=function(e){return Nv.getComponentMethod("legend","draw")(e),Jp.previousPromises(e)};pd.doTicksRelayout=function(e){return CM.draw(e,"redraw"),e._fullLayout._hasOnlyLargeSploms&&(Nv.subplotsRegistry.splom.updateGrid(e),TN(e),pd.redrawReglTraces(e)),pd.drawMainTitle(e),Jp.previousPromises(e)};pd.doModeBar=function(e){var t=e._fullLayout;zce.manage(e);for(var r=0;r<t._basePlotModules.length;r++){var n=t._basePlotModules[r].updateFx;n&&n(e)}return Jp.previousPromises(e)};pd.doCamera=function(e){for(var t=e._fullLayout,r=t._subplots.gl3d,n=0;n<r.length;n++){var i=t[r[n]],a=i._scene;a.setViewport(i)}};pd.drawData=function(e){var t=e._fullLayout;TN(e);for(var r=t._basePlotModules,n=0;n<r.length;n++)r[n].plot(e);return pd.redrawReglTraces(e),Jp.style(e),Nv.getComponentMethod("selections","draw")(e),Nv.getComponentMethod("shapes","draw")(e),Nv.getComponentMethod("annotations","draw")(e),Nv.getComponentMethod("images","draw")(e),t._replotting=!1,Jp.previousPromises(e)};pd.redrawReglTraces=function(e){var t=e._fullLayout;if(t._has("regl")){var r=e._fullData,n=[],i=[],a,o;for(t._hasOnlyLargeSploms&&t._splomGrid.draw(),a=0;a<r.length;a++){var s=r[a];s.visible===!0&&s._length!==0&&(s.type==="splom"?t._splomScenes[s.uid].draw():s.type==="scattergl"?M0.pushUnique(n,s.xaxis+s.yaxis):s.type==="scatterpolargl"&&M0.pushUnique(i,s.subplot))}for(a=0;a<n.length;a++)o=t._plots[n[a]],o._scene&&o._scene.draw();for(a=0;a<i.length;a++)o=t[i[a]]._subplot,o._scene&&o._scene.draw()}};pd.doAutoRangeAndConstraints=function(e){for(var t=CM.list(e,"",!0),r,n={},i=0;i<t.length;i++)if(r=t[i],!n[r._id]){n[r._id]=1,Oft(e,r),Ice(e,r);var a=r._matchGroup;if(a)for(var o in a){var s=CM.getFromId(e,o);Ice(e,s,r.range),n[o]=1}}qft(e)};pd.finalDraw=function(e){Nv.getComponentMethod("rangeslider","draw")(e),Nv.getComponentMethod("rangeselector","draw")(e)};pd.drawMarginPushers=function(e){Nv.getComponentMethod("legend","draw")(e),Nv.getComponentMethod("rangeselector","draw")(e),Nv.getComponentMethod("sliders","draw")(e),Nv.getComponentMethod("updatemenus","draw")(e),Nv.getComponentMethod("colorbar","draw")(e)}});var MN=ye((gor,Hce)=>{"use strict";var Jft=m_().readPaths,$ft=uP(),Nce=o_().clearOutlineControllers,AN=ka(),Uce=So(),Qft=vl().arrayEditor,Vce=x_(),eht=Vce.getPathString;Hce.exports={draw:bP,drawOne:Gce,activateLastSelection:iht};function bP(e){var t=e._fullLayout;Nce(e),t._selectionLayer.selectAll("path").remove();for(var r in t._plots){var n=t._plots[r].selectionLayer;n&&n.selectAll("path").remove()}for(var i=0;i<t.selections.length;i++)Gce(e,i)}function wP(e){return e._context.editSelection}function Gce(e,t){e._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+t+'"]').remove();var r=Vce.makeSelectionsOptionsAndPlotinfo(e,t),n=r.options,i=r.plotinfo;if(!n._input)return;a(e._fullLayout._selectionLayer);function a(o){var s=eht(e,n),l={"data-index":t,"fill-rule":"evenodd",d:s},u=n.opacity,c="rgba(0,0,0,0)",f=n.line.color||AN.contrast(e._fullLayout.plot_bgcolor),h=n.line.width,d=n.line.dash;h||(h=5,d="solid");var v=wP(e)&&e._fullLayout._activeSelectionIndex===t;v&&(c=e._fullLayout.activeselection.fillcolor,u=e._fullLayout.activeselection.opacity);for(var m=[],b=1;b>=0;b--){var p=o.append("path").attr(l).style("opacity",b?.1:u).call(AN.stroke,f).call(AN.fill,c).call(Uce.dashLine,b?"solid":d,b?4+h:h);if(tht(p,e,n),v){var k=Qft(e.layout,"selections",n);p.style({cursor:"move"});var M={element:p.node(),plotinfo:i,gd:e,editHelpers:k,isActiveSelection:!0},T=Jft(s,e);$ft(T,p,M)}else p.style("pointer-events",b?"all":"none");m[b]=p}var L=m[0],x=m[1];x.node().addEventListener("click",function(){return rht(e,L)})}}function tht(e,t,r){var n=r.xref+r.yref;Uce.setClipUrl(e,"clip"+t._fullLayout._uid+n,t)}function rht(e,t){if(wP(e)){var r=t.node(),n=+r.getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeSelectionIndex){SN(e);return}e._fullLayout._activeSelectionIndex=n,e._fullLayout._deactivateSelection=SN,bP(e)}}}function iht(e){if(wP(e)){var t=e._fullLayout.selections.length-1;e._fullLayout._activeSelectionIndex=t,e._fullLayout._deactivateSelection=SN,bP(e)}}function SN(e){if(wP(e)){var t=e._fullLayout._activeSelectionIndex;t>=0&&(Nce(e),delete e._fullLayout._activeSelectionIndex,bP(e))}}});var Wce=ye((mor,jce)=>{function nht(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}jce.exports=nht});var Zce=ye((yor,Xce)=>{function aht(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],s=i[0],l=i[1],u=r[0],c=r[1];return(s-a)*(c-o)-(l-o)*(u-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],s=r[0]-n[0],l=i[1]-n[1],u=s*o+a*l;if(u<e)return!1;var c=o*o+l*l;return!(u-c>-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])<e},pointsSameY:function(r,n){return Math.abs(r[1]-n[1])<e},pointsSame:function(r,n){return t.pointsSameX(r,n)&&t.pointsSameY(r,n)},pointsCompare:function(r,n){return t.pointsSameX(r,n)?t.pointsSameY(r,n)?0:r[1]<n[1]?-1:1:r[0]<n[0]?-1:1},pointsCollinear:function(r,n,i){var a=r[0]-n[0],o=r[1]-n[1],s=n[0]-i[0],l=n[1]-i[1];return Math.abs(a*l-s*o)<e},linesIntersect:function(r,n,i,a){var o=n[0]-r[0],s=n[1]-r[1],l=a[0]-i[0],u=a[1]-i[1],c=o*u-s*l;if(Math.abs(c)<e)return!1;var f=r[0]-i[0],h=r[1]-i[1],d=(l*h-u*f)/c,v=(o*h-s*f)/c,m={alongA:0,alongB:0,pt:[r[0]+d*o,r[1]+d*s]};return d<=-e?m.alongA=-2:d<e?m.alongA=-1:d-1<=-e?m.alongA=0:d-1<e?m.alongA=1:m.alongA=2,v<=-e?m.alongB=-2:v<e?m.alongB=-1:v-1<=-e?m.alongB=0:v-1<e?m.alongB=1:m.alongB=2,m},pointInsideRegion:function(r,n){for(var i=r[0],a=r[1],o=n[n.length-1][0],s=n[n.length-1][1],l=!1,u=0;u<n.length;u++){var c=n[u][0],f=n[u][1];f-a>e!=s-a>e&&(o-c)*(a-f)/(s-f)+c-i>e&&(l=!l),o=c,s=f}return l}};return t}Xce.exports=aht});var Kce=ye((_or,Yce)=>{var oht={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};Yce.exports=oht});var $ce=ye((xor,Jce)=>{var PM=Kce();function sht(e,t,r){function n(v,m){return{id:r?r.segmentId():-1,start:v,end:m,myFill:{above:null,below:null},otherFill:null}}function i(v,m,b){return{id:r?r.segmentId():-1,start:v,end:m,myFill:{above:b.myFill.above,below:b.myFill.below},otherFill:null}}var a=PM.create();function o(v,m,b,p,k,M){var T=t.pointsCompare(m,k);return T!==0?T:t.pointsSame(b,M)?0:v!==p?v?1:-1:t.pointAboveOrOnLine(b,p?k:M,p?M:k)?1:-1}function s(v,m){a.insertBefore(v,function(b){var p=o(v.isStart,v.pt,m,b.isStart,b.pt,b.other.pt);return p<0})}function l(v,m){var b=PM.node({isStart:!0,pt:v.start,seg:v,primary:m,other:null,status:null});return s(b,v.end),b}function u(v,m,b){var p=PM.node({isStart:!1,pt:m.end,seg:m,primary:b,other:v,status:null});v.other=p,s(p,v.pt)}function c(v,m){var b=l(v,m);return u(b,v,m),b}function f(v,m){r&&r.segmentChop(v.seg,m),v.other.remove(),v.seg.end=m,v.other.pt=m,s(v.other,v.pt)}function h(v,m){var b=i(m,v.seg.end,v.seg);return f(v,m),c(b,v.primary)}function d(v,m){var b=PM.create();function p(G,Z){var j=G.seg.start,N=G.seg.end,H=Z.seg.start,ie=Z.seg.end;return t.pointsCollinear(j,H,ie)?t.pointsCollinear(N,H,ie)||t.pointAboveOrOnLine(N,H,ie)?1:-1:t.pointAboveOrOnLine(j,H,ie)?1:-1}function k(G){return b.findTransition(function(Z){var j=p(G,Z.ev);return j>0})}function M(G,Z){var j=G.seg,N=Z.seg,H=j.start,ie=j.end,ae=N.start,_e=N.end;r&&r.checkIntersection(j,N);var Ee=t.linesIntersect(H,ie,ae,_e);if(Ee===!1){if(!t.pointsCollinear(H,ie,ae)||t.pointsSame(H,_e)||t.pointsSame(ie,ae))return!1;var Ce=t.pointsSame(H,ae),ge=t.pointsSame(ie,_e);if(Ce&&ge)return Z;var re=!Ce&&t.pointBetween(H,ae,_e),Se=!ge&&t.pointBetween(ie,ae,_e);if(Ce)return Se?h(Z,ie):h(G,_e),Z;re&&(ge||(Se?h(Z,ie):h(G,_e)),h(Z,H))}else Ee.alongA===0&&(Ee.alongB===-1?h(G,ae):Ee.alongB===0?h(G,Ee.pt):Ee.alongB===1&&h(G,_e)),Ee.alongB===0&&(Ee.alongA===-1?h(Z,H):Ee.alongA===0?h(Z,Ee.pt):Ee.alongA===1&&h(Z,ie));return!1}for(var T=[];!a.isEmpty();){var L=a.getHead();if(r&&r.vert(L.pt[0]),L.isStart){let G=function(){if(C){var Z=M(L,C);if(Z)return Z}return S?M(L,S):!1};var V=G;r&&r.segmentNew(L.seg,L.primary);var x=k(L),C=x.before?x.before.ev:null,S=x.after?x.after.ev:null;r&&r.tempStatus(L.seg,C?C.seg:!1,S?S.seg:!1);var g=G();if(g){if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,P&&(g.seg.myFill.above=!g.seg.myFill.above)}else g.seg.otherFill=L.seg.myFill;r&&r.segmentUpdate(g.seg),L.other.remove(),L.remove()}if(a.getHead()!==L){r&&r.rewind(L.seg);continue}if(e){var P;L.seg.myFill.below===null?P=!0:P=L.seg.myFill.above!==L.seg.myFill.below,S?L.seg.myFill.below=S.seg.myFill.above:L.seg.myFill.below=v,P?L.seg.myFill.above=!L.seg.myFill.below:L.seg.myFill.above=L.seg.myFill.below}else if(L.seg.otherFill===null){var E;S?L.primary===S.primary?E=S.seg.otherFill.above:E=S.seg.myFill.above:E=L.primary?m:v,L.seg.otherFill={above:E,below:E}}r&&r.status(L.seg,C?C.seg:!1,S?S.seg:!1),L.other.status=x.insert(PM.node({ev:L}))}else{var z=L.status;if(z===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(b.exists(z.prev)&&b.exists(z.next)&&M(z.prev.ev,z.next.ev),r&&r.statusRemove(z.ev.seg),z.remove(),!L.primary){var q=L.seg.myFill;L.seg.myFill=L.seg.otherFill,L.seg.otherFill=q}T.push(L.seg)}a.getHead().remove()}return r&&r.done(),T}return e?{addRegion:function(v){for(var m,b=v[v.length-1],p=0;p<v.length;p++){m=b,b=v[p];var k=t.pointsCompare(m,b);k!==0&&c(n(k<0?m:b,k<0?b:m),!0)}},calculate:function(v){return d(v,!1)}}:{calculate:function(v,m,b,p){return v.forEach(function(k){c(i(k.start,k.end,k),!0)}),b.forEach(function(k){c(i(k.start,k.end,k),!1)}),d(m,p)}}}Jce.exports=sht});var efe=ye((bor,Qce)=>{function lht(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,s=a.end;if(t.pointsSame(o,s)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var l={index:0,matches_head:!1,matches_pt1:!1},u={index:0,matches_head:!1,matches_pt1:!1},c=l;function f(V,G,Z){return c.index=V,c.matches_head=G,c.matches_pt1=Z,c===l?(c=u,!1):(c=null,!0)}for(var h=0;h<n.length;h++){var d=n[h],v=d[0],m=d[1],b=d[d.length-1],p=d[d.length-2];if(t.pointsSame(v,o)){if(f(h,!0,!0))break}else if(t.pointsSame(v,s)){if(f(h,!0,!1))break}else if(t.pointsSame(b,o)){if(f(h,!1,!0))break}else if(t.pointsSame(b,s)&&f(h,!1,!1))break}if(c===l){n.push([o,s]),r&&r.chainNew(o,s);return}if(c===u){r&&r.chainMatch(l.index);var k=l.index,M=l.matches_pt1?s:o,T=l.matches_head,d=n[k],L=T?d[0]:d[d.length-1],x=T?d[1]:d[d.length-2],C=T?d[d.length-1]:d[0],S=T?d[d.length-2]:d[1];if(t.pointsCollinear(x,L,M)&&(T?(r&&r.chainRemoveHead(l.index,M),d.shift()):(r&&r.chainRemoveTail(l.index,M),d.pop()),L=x),t.pointsSame(C,M)){n.splice(k,1),t.pointsCollinear(S,C,L)&&(T?(r&&r.chainRemoveTail(l.index,L),d.pop()):(r&&r.chainRemoveHead(l.index,L),d.shift())),r&&r.chainClose(l.index),i.push(d);return}T?(r&&r.chainAddHead(l.index,M),d.unshift(M)):(r&&r.chainAddTail(l.index,M),d.push(M));return}function g(V){r&&r.chainReverse(V),n[V].reverse()}function P(V,G){var Z=n[V],j=n[G],N=Z[Z.length-1],H=Z[Z.length-2],ie=j[0],ae=j[1];t.pointsCollinear(H,N,ie)&&(r&&r.chainRemoveTail(V,N),Z.pop(),N=H),t.pointsCollinear(N,ie,ae)&&(r&&r.chainRemoveHead(G,ie),j.shift()),r&&r.chainJoin(V,G),n[V]=Z.concat(j),n.splice(G,1)}var E=l.index,z=u.index;r&&r.chainConnect(E,z);var q=n[E].length<n[z].length;l.matches_head?u.matches_head?q?(g(E),P(E,z)):(g(z),P(z,E)):P(z,E):u.matches_head?P(E,z):q?(g(E),P(z,E)):(g(z),P(E,z))}),i}Qce.exports=lht});var rfe=ye((wor,tfe)=>{function IM(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var uht={union:function(e,t){return IM(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return IM(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return IM(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return IM(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return IM(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};tfe.exports=uht});var nfe=ye((Tor,ife)=>{var cht={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(u){var c=u.slice(0,u.length-1);return e.segments({inverted:!1,regions:[c]})}for(var s=o(a[0]),l=1;l<a.length;l++)s=e.selectDifference(e.combine(s,o(a[l])));return s}if(t.type==="Polygon")return e.polygon(r(t.coordinates));if(t.type==="MultiPolygon"){for(var n=e.segments({inverted:!1,regions:[]}),i=0;i<t.coordinates.length;i++)n=e.selectUnion(e.combine(n,r(t.coordinates[i])));return e.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,r){r=e.polygon(e.segments(r));function n(d,v){return t.pointInsideRegion([(d[0][0]+d[1][0])*.5,(d[0][1]+d[1][1])*.5],v)}function i(d){return{region:d,children:[]}}var a=i(null);function o(d,v){for(var m=0;m<d.children.length;m++){var b=d.children[m];if(n(v,b.region)){o(b,v);return}}for(var p=i(v),m=0;m<d.children.length;m++){var b=d.children[m];n(b.region,v)&&(p.children.push(b),d.children.splice(m,1),m--)}d.children.push(p)}for(var s=0;s<r.regions.length;s++){var l=r.regions[s];l.length<3||o(a,l)}function u(d,v){for(var m=0,b=d[d.length-1][0],p=d[d.length-1][1],k=[],M=0;M<d.length;M++){var T=d[M][0],L=d[M][1];k.push([T,L]),m+=L*b-T*p,b=T,p=L}var x=m<0;return x!==v&&k.reverse(),k.push([k[0][0],k[0][1]]),k}var c=[];function f(d){var v=[u(d.region,!1)];c.push(v);for(var m=0;m<d.children.length;m++)v.push(h(d.children[m]))}function h(d){for(var v=0;v<d.children.length;v++)f(d.children[v]);return u(d.region,!0)}for(var s=0;s<a.children.length;s++)f(a.children[s]);return c.length<=0?{type:"Polygon",coordinates:[]}:c.length==1?{type:"Polygon",coordinates:c[0]}:{type:"MultiPolygon",coordinates:c}}};ife.exports=cht});var lfe=ye((Aor,sfe)=>{var fht=Wce(),hht=Zce(),afe=$ce(),dht=efe(),RM=rfe(),ofe=nfe(),E0=!1,DM=hht(),kp;kp={buildLog:function(e){return e===!0?E0=fht():e===!1&&(E0=!1),E0===!1?!1:E0.list},epsilon:function(e){return DM.epsilon(e)},segments:function(e){var t=afe(!0,DM,E0);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=afe(!1,DM,E0);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:RM.union(e.combined,E0),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:RM.intersect(e.combined,E0),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:RM.difference(e.combined,E0),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:RM.differenceRev(e.combined,E0),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:RM.xor(e.combined,E0),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:dht(e.segments,DM,E0),inverted:e.inverted}},polygonFromGeoJSON:function(e){return ofe.toPolygon(kp,e)},polygonToGeoJSON:function(e){return ofe.fromPolygon(kp,DM,e)},union:function(e,t){return FM(e,t,kp.selectUnion)},intersect:function(e,t){return FM(e,t,kp.selectIntersect)},difference:function(e,t){return FM(e,t,kp.selectDifference)},differenceRev:function(e,t){return FM(e,t,kp.selectDifferenceRev)},xor:function(e,t){return FM(e,t,kp.selectXor)}};function FM(e,t,r){var n=kp.segments(e),i=kp.segments(t),a=kp.combine(n,i),o=r(a);return kp.polygon(o)}typeof window=="object"&&(window.PolyBool=kp);sfe.exports=kp});var cfe=ye((Sor,ufe)=>{ufe.exports=function(t,r,n,i){var a=t[0],o=t[1],s=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var l=i-n,u=0,c=l-1;u<l;c=u++){var f=r[u+n][0],h=r[u+n][1],d=r[c+n][0],v=r[c+n][1],m=h>o!=v>o&&a<(d-f)*(o-h)/(v-h)+f;m&&(s=!s)}return s}});var zM=ye((Mor,ffe)=>{"use strict";var EN=I6().dot,TP=fs().BADNUM,AP=ffe.exports={};AP.tester=function(t){var r=t.slice(),n=r[0][0],i=n,a=r[0][1],o=a,s;for((r[r.length-1][0]!==r[0][0]||r[r.length-1][1]!==r[0][1])&&r.push(r[0]),s=1;s<r.length;s++)n=Math.min(n,r[s][0]),i=Math.max(i,r[s][0]),a=Math.min(a,r[s][1]),o=Math.max(o,r[s][1]);var l=!1,u;r.length===5&&(r[0][0]===r[1][0]?r[2][0]===r[3][0]&&r[0][1]===r[3][1]&&r[1][1]===r[2][1]&&(l=!0,u=function(v){return v[0]===r[0][0]}):r[0][1]===r[1][1]&&r[2][1]===r[3][1]&&r[0][0]===r[3][0]&&r[1][0]===r[2][0]&&(l=!0,u=function(v){return v[1]===r[0][1]}));function c(v,m){var b=v[0],p=v[1];return!(b===TP||b<n||b>i||p===TP||p<a||p>o||m&&u(v))}function f(v,m){var b=v[0],p=v[1];if(b===TP||b<n||b>i||p===TP||p<a||p>o)return!1;var k=r.length,M=r[0][0],T=r[0][1],L=0,x,C,S,g,P;for(x=1;x<k;x++)if(C=M,S=T,M=r[x][0],T=r[x][1],g=Math.min(C,M),!(b<g||b>Math.max(C,M)||p>Math.max(S,T)))if(p<Math.min(S,T))b!==g&&L++;else{if(M===C?P=p:P=S+(b-C)*(T-S)/(M-C),p===P)return!(x===1&&m);p<=P&&b!==g&&L++}return L%2===1}var h=!0,d=r[0];for(s=1;s<r.length;s++)if(d[0]!==r[s][0]||d[1]!==r[s][1]){h=!1;break}return{xmin:n,xmax:i,ymin:a,ymax:o,pts:r,contains:l?c:f,isRect:l,degenerate:h}};AP.isSegmentBent=function(t,r,n,i){var a=t[r],o=[t[n][0]-a[0],t[n][1]-a[1]],s=EN(o,o),l=Math.sqrt(s),u=[-o[1]/l,o[0]/l],c,f,h;for(c=r+1;c<n;c++)if(f=[t[c][0]-a[0],t[c][1]-a[1]],h=EN(f,o),h<0||h>s||Math.abs(EN(f,u))>i)return!0;return!1};AP.filter=function(t,r){var n=[t[0]],i=0,a=0;function o(l){t.push(l);var u=n.length,c=i;n.splice(a+1);for(var f=c+1;f<t.length;f++)(f===t.length-1||AP.isSegmentBent(t,c,f+1,r))&&(n.push(t[f]),n.length<u-2&&(i=f,a=n.length-1),c=f)}if(t.length>1){var s=t.pop();o(s)}return{addPt:o,raw:t,filtered:n}}});var dfe=ye((Eor,hfe)=>{"use strict";hfe.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}});var Ffe=ye((kor,Dfe)=>{"use strict";var vfe=lfe(),vht=cfe(),BM=Oa(),pht=So().dashStyle,qM=ka(),ght=ef(),mht=ip().makeEventData,HM=Cg(),yht=HM.freeMode,_ht=HM.rectMode,NM=HM.drawMode,PN=HM.openMode,IN=HM.selectMode,pfe=x_(),gfe=AM(),bfe=uP(),wfe=o_().clearOutline,Tfe=m_(),kN=Tfe.handleEllipse,xht=Tfe.readPaths,bht=oP().newShapes,wht=rN(),Tht=MN().activateLastSelection,MP=Pr(),Aht=MP.sorterAsc,Afe=zM(),OM=j6(),k0=df().getFromId,Sht=wM(),Mht=LM().redrawReglTraces,EP=dfe(),Lm=EP.MINSELECT,Eht=Afe.filter,RN=Afe.tester,DN=rP(),mfe=DN.p2r,kht=DN.axValue,Cht=DN.getTransform;function FN(e){return e.subplot!==void 0}function Lht(e,t,r,n,i){var a=!FN(n),o=yht(i),s=_ht(i),l=PN(i),u=NM(i),c=IN(i),f=i==="drawline",h=i==="drawcircle",d=f||h,v=n.gd,m=v._fullLayout,b=c&&m.newselection.mode==="immediate"&&a,p=m._zoomlayer,k=n.element.getBoundingClientRect(),M=n.plotinfo,T=Cht(M),L=t-k.left,x=r-k.top;m._calcInverseTransform(v);var C=MP.apply3DTransform(m._invTransform)(L,x);L=C[0],x=C[1];var S=m._invScaleX,g=m._invScaleY,P=L,E=x,z="M"+L+","+x,q=n.xaxes[0],V=n.yaxes[0],G=q._length,Z=V._length,j=e.altKey&&!(NM(i)&&l),N,H,ie,ae,_e,Ee,Ce;Mfe(e,v,n),o&&(N=Eht([[L,x]],EP.BENDPX));var ge=p.selectAll("path.select-outline-"+M.id).data([1]),re=u?m.newshape:m.newselection;u&&(n.hasText=re.label.text||re.label.texttemplate);var Se=u&&!l?re.fillcolor:"rgba(0,0,0,0)",ke=re.line.color||(a?qM.contrast(v._fullLayout.plot_bgcolor):"#7f7f7f");ge.enter().append("path").attr("class","select-outline select-outline-"+M.id).style({opacity:u?re.opacity/2:1,"stroke-dasharray":pht(re.line.dash,re.line.width),"stroke-width":re.line.width+"px","shape-rendering":"crispEdges"}).call(qM.stroke,ke).call(qM.fill,Se).attr("fill-rule","evenodd").classed("cursor-move",!!u).attr("transform",T).attr("d",z+"Z");var be=p.append("path").attr("class","zoombox-corners").style({fill:qM.background,stroke:qM.defaultLine,"stroke-width":1}).attr("transform",T).attr("d","M0,0Z");if(u&&n.hasText){var Be=p.select(".label-temp");Be.empty()&&(Be=p.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var Le=m._uid+EP.SELECTID,me=[],Pe=kP(v,n.xaxes,n.yaxes,n.subplot);b&&!e.shiftKey&&(n._clearSubplotSelections=function(){if(a){var He=q._id,lt=V._id;Pfe(v,He,lt,Pe);for(var mt=(v.layout||{}).selections||[],Ht=[],at=!1,ct=0;ct<mt.length;ct++){var ar=m.selections[ct];!ar||ar.xref!==He||ar.yref!==lt?Ht.push(mt[ct]):at=!0}at&&(v._fullLayout._noEmitSelectedAtStart=!0,BM.call("_guiRelayout",v,{selections:Ht}))}});var ce=Hht(n);n.moveFn=function(He,lt){n._clearSubplotSelections&&(n._clearSubplotSelections(),n._clearSubplotSelections=void 0),P=Math.max(0,Math.min(G,S*He+L)),E=Math.max(0,Math.min(Z,g*lt+x));var mt=Math.abs(P-L),Ht=Math.abs(E-x);if(s){var at,ct,ar;if(c){var Vt=m.selectdirection;switch(Vt==="any"?Ht<Math.min(mt*.6,Lm)?at="h":mt<Math.min(Ht*.6,Lm)?at="v":at="d":at=Vt,at){case"h":ct=h?Z/2:0,ar=Z;break;case"v":ct=h?G/2:0,ar=G;break}}if(u)switch(m.newshape.drawdirection){case"vertical":at="h",ct=h?Z/2:0,ar=Z;break;case"horizontal":at="v",ct=h?G/2:0,ar=G;break;case"ortho":mt<Ht?(at="h",ct=x,ar=E):(at="v",ct=L,ar=P);break;default:at="d"}at==="h"?(ae=d?kN(h,[P,ct],[P,ar]):[[L,ct],[L,ar],[P,ar],[P,ct]],ae.xmin=d?P:Math.min(L,P),ae.xmax=d?P:Math.max(L,P),ae.ymin=Math.min(ct,ar),ae.ymax=Math.max(ct,ar),be.attr("d","M"+ae.xmin+","+(x-Lm)+"h-4v"+2*Lm+"h4ZM"+(ae.xmax-1)+","+(x-Lm)+"h4v"+2*Lm+"h-4Z")):at==="v"?(ae=d?kN(h,[ct,E],[ar,E]):[[ct,x],[ct,E],[ar,E],[ar,x]],ae.xmin=Math.min(ct,ar),ae.xmax=Math.max(ct,ar),ae.ymin=d?E:Math.min(x,E),ae.ymax=d?E:Math.max(x,E),be.attr("d","M"+(L-Lm)+","+ae.ymin+"v-4h"+2*Lm+"v4ZM"+(L-Lm)+","+(ae.ymax-1)+"v4h"+2*Lm+"v-4Z")):at==="d"&&(ae=d?kN(h,[L,x],[P,E]):[[L,x],[L,E],[P,E],[P,x]],ae.xmin=Math.min(L,P),ae.xmax=Math.max(L,P),ae.ymin=Math.min(x,E),ae.ymax=Math.max(x,E),be.attr("d","M0,0Z"))}else o&&(N.addPt([P,E]),ae=N.filtered);if(n.selectionDefs&&n.selectionDefs.length?(ie=Efe(n.mergedPolygons,ae,j),ae.subtract=j,H=zN(n.selectionDefs.concat([ae]))):(ie=[ae],H=RN(ae)),bfe(Cfe(ie,l),ge,n),c){var rr=LN(v,!1),tt=rr.eventData?rr.eventData.points.slice():[];rr=LN(v,!1,H,Pe,n),H=rr.selectionTesters,Ce=rr.eventData;var je;N?je=N.filtered:je=Ife(ie),OM.throttle(Le,EP.SELECTDELAY,function(){me=Lfe(H,Pe);for(var Ue=me.slice(),Ae=0;Ae<tt.length;Ae++){for(var rt=tt[Ae],St=!1,Tt=0;Tt<Ue.length;Tt++)if(Ue[Tt].curveNumber===rt.curveNumber&&Ue[Tt].pointNumber===rt.pointNumber){St=!0;break}St||Ue.push(rt)}Ue.length&&(Ce||(Ce={}),Ce.points=Ue),ce(Ce,je),jht(v,Ce)})}},n.clickFn=function(He,lt){if(be.remove(),v._fullLayout._activeShapeIndex>=0){v._fullLayout._deactivateShape(v);return}if(!u){var mt=m.clickmode;OM.done(Le).then(function(){if(OM.clear(Le),He===2){for(ge.remove(),_e=0;_e<Pe.length;_e++)Ee=Pe[_e],Ee._module.selectPoints(Ee,!1);if(VM(v,Pe),UM(n),ON(v),Pe.length){var Ht=Pe[0].xaxis,at=Pe[0].yaxis;if(Ht&&at){for(var ct=[],ar=v._fullLayout.selections,Vt=0;Vt<ar.length;Vt++){var rr=ar[Vt];rr&&(rr.xref!==Ht._id||rr.yref!==at._id)&&ct.push(rr)}ct.length<ar.length&&(v._fullLayout._noEmitSelectedAtStart=!0,BM.call("_guiRelayout",v,{selections:ct}))}}}else mt.indexOf("select")>-1&&Sfe(lt,v,n.xaxes,n.yaxes,n.subplot,n,ge),mt==="event"&&GM(v,void 0);ght.click(v,lt,M.id)}).catch(MP.error)}},n.doneFn=function(){be.remove(),OM.done(Le).then(function(){OM.clear(Le),!b&&ae&&n.selectionDefs&&(ae.subtract=j,n.selectionDefs.push(ae),n.mergedPolygons.length=0,[].push.apply(n.mergedPolygons,ie)),(b||u)&&UM(n,b),n.doneFnCompleted&&n.doneFnCompleted(me),c&&GM(v,Ce)}).catch(MP.error)}}function Sfe(e,t,r,n,i,a,o){var s=t._hoverdata,l=t._fullLayout,u=l.clickmode,c=u.indexOf("event")>-1,f=[],h,d,v,m,b,p,k,M,T,L;if(Fht(s)){Mfe(e,t,a),h=kP(t,r,n,i);var x=zht(s,h),C=x.pointNumbers.length>0;if(C?qht(h,x):Oht(h)&&(k=_fe(x))){for(o&&o.remove(),L=0;L<h.length;L++)d=h[L],d._module.selectPoints(d,!1);VM(t,h),UM(a),c&&ON(t)}else{M=e.shiftKey&&(k!==void 0?k:_fe(x)),v=Pht(x.pointNumber,x.searchInfo,M);var S=a.selectionDefs.concat([v]);for(m=zN(S,m),L=0;L<h.length;L++)if(b=h[L]._module.selectPoints(h[L],m),p=kfe(b,h[L]),f.length)for(var g=0;g<p.length;g++)f.push(p[g]);else f=p;if(T={points:f},VM(t,h,T),v&&a&&a.selectionDefs.push(v),o){var P=a.mergedPolygons,E=PN(a.dragmode);bfe(Cfe(P,E),o,a)}c&&GM(t,T)}}}function Pht(e,t,r){return{pointNumber:e,searchInfo:t,subtract:!!r}}function CN(e){return"pointNumber"in e&&"searchInfo"in e}function Iht(e){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(t,r,n,i){var a=e.searchInfo.cd[0].trace.index,o=i.cd[0].trace.index;return o===a&&n===e.pointNumber},isRect:!1,degenerate:!1,subtract:!!e.subtract}}function zN(e){if(!e.length)return;for(var t=[],r=CN(e[0])?0:e[0][0][0],n=r,i=CN(e[0])?0:e[0][0][1],a=i,o=0;o<e.length;o++)if(CN(e[o]))t.push(Iht(e[o]));else{var s=RN(e[o]);s.subtract=!!e[o].subtract,t.push(s),r=Math.min(r,s.xmin),n=Math.max(n,s.xmax),i=Math.min(i,s.ymin),a=Math.max(a,s.ymax)}function l(u,c,f,h){for(var d=!1,v=0;v<t.length;v++)t[v].contains(u,c,f,h)&&(d=!t[v].subtract);return d}return{xmin:r,xmax:n,ymin:i,ymax:a,pts:[],contains:l,isRect:!1,degenerate:!1}}function Mfe(e,t,r){var n=t._fullLayout,i=r.plotinfo,a=r.dragmode,o=n._lastSelectedSubplot&&n._lastSelectedSubplot===i.id,s=(e.shiftKey||e.altKey)&&!(NM(a)&&PN(a));o&&s&&i.selection&&i.selection.selectionDefs&&!r.selectionDefs?(r.selectionDefs=i.selection.selectionDefs,r.mergedPolygons=i.selection.mergedPolygons):(!s||!i.selection)&&UM(r),o||(wfe(t),n._lastSelectedSubplot=i.id)}function Rht(e){return e._fullLayout._activeShapeIndex>=0}function Dht(e){return e._fullLayout._activeSelectionIndex>=0}function UM(e,t){var r=e.dragmode,n=e.plotinfo,i=e.gd;Rht(i)&&i._fullLayout._deactivateShape(i),Dht(i)&&i._fullLayout._deactivateSelection(i);var a=i._fullLayout,o=a._zoomlayer,s=NM(r),l=IN(r);if(s||l){var u=o.selectAll(".select-outline-"+n.id);if(u&&i._fullLayout._outlining){var c;s&&(c=bht(u,e)),c&&BM.call("_guiRelayout",i,{shapes:c});var f;l&&!FN(e)&&(f=wht(u,e)),f&&(i._fullLayout._noEmitSelectedAtStart=!0,BM.call("_guiRelayout",i,{selections:f}).then(function(){t&&Tht(i)})),i._fullLayout._outlining=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function yfe(e){return e._id}function kP(e,t,r,n){if(!e.calcdata)return[];var i=[],a=t.map(yfe),o=r.map(yfe),s,l,u;for(u=0;u<e.calcdata.length;u++)if(s=e.calcdata[u],l=s[0].trace,!(l.visible!==!0||!l._module||!l._module.selectPoints))if(FN({subplot:n})&&(l.subplot===n||l.geo===n))i.push(SP(l._module,s,t[0],r[0]));else if(l.type==="splom"){if(l._xaxes[a[0]]&&l._yaxes[o[0]]){var c=SP(l._module,s,t[0],r[0]);c.scene=e._fullLayout._splomScenes[l.uid],i.push(c)}}else if(l.type==="sankey"){var f=SP(l._module,s,t[0],r[0]);i.push(f)}else{if(a.indexOf(l.xaxis)===-1&&(!l._xA||!l._xA.overlaying)||o.indexOf(l.yaxis)===-1&&(!l._yA||!l._yA.overlaying))continue;i.push(SP(l._module,s,k0(e,l.xaxis),k0(e,l.yaxis)))}return i}function SP(e,t,r,n){return{_module:e,cd:t,xaxis:r,yaxis:n}}function Fht(e){return e&&Array.isArray(e)&&e[0].hoverOnBox!==!0}function zht(e,t){var r=e[0],n=-1,i=[],a,o;for(o=0;o<t.length;o++)if(a=t[o],r.fullData.index===a.cd[0].trace.index){if(r.hoverOnBox===!0)break;r.pointNumber!==void 0?n=r.pointNumber:r.binNumber!==void 0&&(n=r.binNumber,i=r.pointNumbers);break}return{pointNumber:n,pointNumbers:i,searchInfo:a}}function _fe(e){var t=e.searchInfo.cd[0].trace,r=e.pointNumber,n=e.pointNumbers,i=n.length>0,a=i?n[0]:r;return t.selectedpoints?t.selectedpoints.indexOf(a)>-1:!1}function qht(e,t){var r=[],n,i,a,o;for(o=0;o<e.length;o++)n=e[o],n.cd[0].trace.selectedpoints&&n.cd[0].trace.selectedpoints.length>0&&r.push(n);if(r.length===1&&(a=r[0]===t.searchInfo,a&&(i=t.searchInfo.cd[0].trace,i.selectedpoints.length===t.pointNumbers.length))){for(o=0;o<t.pointNumbers.length;o++)if(i.selectedpoints.indexOf(t.pointNumbers[o])<0)return!1;return!0}return!1}function Oht(e){var t=0,r,n,i;for(i=0;i<e.length;i++)if(r=e[i],n=r.cd[0].trace,n.selectedpoints&&(n.selectedpoints.length>1||(t+=n.selectedpoints.length,t>1)))return!1;return t===1}function VM(e,t,r){var n;for(n=0;n<t.length;n++){var i=t[n].cd[0].trace._fullInput,a=e._fullLayout._tracePreGUI[i.uid]||{};a.selectedpoints===void 0&&(a.selectedpoints=i._input.selectedpoints||null)}var o;if(r){var s=r.points||[];for(n=0;n<t.length;n++)o=t[n].cd[0].trace,o._input.selectedpoints=o._fullInput.selectedpoints=[],o._fullInput!==o&&(o.selectedpoints=[]);for(var l=0;l<s.length;l++){var u=s[l],c=u.data,f=u.fullData,h=u.pointIndex,d=u.pointIndices;d?([].push.apply(c.selectedpoints,d),o._fullInput!==o&&[].push.apply(f.selectedpoints,d)):(c.selectedpoints.push(h),o._fullInput!==o&&f.selectedpoints.push(h))}}else for(n=0;n<t.length;n++)o=t[n].cd[0].trace,delete o.selectedpoints,delete o._input.selectedpoints,o._fullInput!==o&&delete o._fullInput.selectedpoints;Bht(e,t)}function Bht(e,t){for(var r=!1,n=0;n<t.length;n++){var i=t[n],a=i.cd;BM.traceIs(a[0].trace,"regl")&&(r=!0);var o=i._module,s=o.styleOnSelect||o.style;s&&(s(e,a,a[0].node3),a[0].nodeRangePlot3&&s(e,a,a[0].nodeRangePlot3))}r&&(Sht(e),Mht(e))}function Efe(e,t,r){for(var n=r?vfe.difference:vfe.union,i=n({regions:e},{regions:[t]}),a=i.regions.reverse(),o=0;o<a.length;o++){var s=a[o];s.subtract=qN(s,a.slice(0,o))}return a}function kfe(e,t){if(Array.isArray(e))for(var r=t.cd,n=t.cd[0].trace,i=0;i<e.length;i++)e[i]=mht(e[i],n,r);return e}function Cfe(e,t){for(var r=[],n=0;n<e.length;n++){r[n]=[];for(var i=0;i<e[n].length;i++){r[n][i]=[],r[n][i][0]=i?"L":"M";for(var a=0;a<e[n][i].length;a++)r[n][i].push(e[n][i][a])}t||r[n].push(["Z",r[n][0][1],r[n][0][2]])}return r}function Lfe(e,t){for(var r=[],n,i=[],a,o=0;o<t.length;o++){var s=t[o];a=s._module.selectPoints(s,e),i.push(a),n=kfe(a,s),r=r.concat(n)}return r}function LN(e,t,r,n,i){var a=!!n,o,s,l;i&&(o=i.plotinfo,s=i.xaxes[0]._id,l=i.yaxes[0]._id);var u=[],c=[],f=xfe(e),h=e._fullLayout;if(o){var d=h._zoomlayer,v=h.dragmode,m=NM(v),b=IN(v);if(m||b){var p=k0(e,s,"x"),k=k0(e,l,"y");if(p&&k){var M=d.selectAll(".select-outline-"+o.id);if(M&&e._fullLayout._outlining&&M.length){for(var T=M[0][0],L=T.getAttribute("d"),x=xht(L,e,o),C=[],S=0;S<x.length;S++){for(var g=x[S],P=[],E=0;E<g.length;E++)P.push([b_(p,g[E][1]),b_(k,g[E][2])]);P.xref=s,P.yref=l,P.subtract=qN(P,C),C.push(P)}f=f.concat(C)}}}}var z=s&&l?[s+l]:h._subplots.cartesian;Nht(e);for(var q={},V=0;V<z.length;V++){var G=z[V],Z=G.indexOf("y"),j=G.slice(0,Z),N=G.slice(Z),H=s&&l?r:void 0;if(H=Vht(f,j,N,H),H){var ie=n;if(!a){var ae=k0(e,j,"x"),_e=k0(e,N,"y");ie=kP(e,[ae],[_e],G);for(var Ee=0;Ee<ie.length;Ee++){var Ce=ie[Ee],ge=Ce.cd[0],re=ge.trace;if(Ce._module.name==="scattergl"&&!ge.t.xpx){var Se=re.x,ke=re.y,be=re._length;ge.t.xpx=[],ge.t.ypx=[];for(var Be=0;Be<be;Be++)ge.t.xpx[Be]=ae.c2p(Se[Be]),ge.t.ypx[Be]=_e.c2p(ke[Be])}Ce._module.name==="splom"&&(q[re.uid]||(q[re.uid]=!0))}}var Le=Lfe(H,ie);u=u.concat(Le),c=c.concat(ie)}}var me={points:u};VM(e,c,me);var Pe=h.clickmode,ce=Pe.indexOf("event")>-1&&t;if(!o&&t){var He=xfe(e,!0);if(He.length){var lt=He[0].xref,mt=He[0].yref;if(lt&&mt){var Ht=Ife(He),at=Rfe([k0(e,lt,"x"),k0(e,mt,"y")]);at(me,Ht)}}e._fullLayout._noEmitSelectedAtStart?e._fullLayout._noEmitSelectedAtStart=!1:ce&&GM(e,me),h._reselect=!1}if(!o&&h._deselect){var ct=h._deselect;s=ct.xref,l=ct.yref,Uht(s,l,c)||Pfe(e,s,l,n),ce&&(me.points.length?GM(e,me):ON(e)),h._deselect=!1}return{eventData:me,selectionTesters:r}}function Nht(e){var t=e.calcdata;if(t)for(var r=0;r<t.length;r++){var n=t[r][0],i=n.trace,a=e._fullLayout._splomScenes;if(a){var o=a[i.uid];o&&(o.selectBatch=[])}}}function Uht(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];if(i.xaxis&&i.xaxis._id===e&&i.yaxis&&i.yaxis._id===t)return!0}return!1}function Pfe(e,t,r,n){n=kP(e,[k0(e,t,"x")],[k0(e,r,"y")],t+r);for(var i=0;i<n.length;i++){var a=n[i];a._module.selectPoints(a,!1)}VM(e,n)}function Vht(e,t,r,n){for(var i,a=0;a<e.length;a++){var o=e[a];if(!(t!==o.xref||r!==o.yref))if(i){var s=!!o.subtract;i=Efe(i,o,s),n=zN(i)}else i=[o],n=RN(o)}return n}function xfe(e,t){for(var r=[],n=e._fullLayout,i=n.selections,a=i.length,o=0;o<a;o++)if(!(t&&o!==n._activeSelectionIndex)){var s=i[o];if(s){var l=s.xref,u=s.yref,c=k0(e,l,"x"),f=k0(e,u,"y"),h,d,v,m,b;if(s.type==="rect"){b=[];var p=b_(c,s.x0),k=b_(c,s.x1),M=b_(f,s.y0),T=b_(f,s.y1);b=[[p,M],[p,T],[k,T],[k,M]],h=Math.min(p,k),d=Math.max(p,k),v=Math.min(M,T),m=Math.max(M,T),b.xmin=h,b.xmax=d,b.ymin=v,b.ymax=m,b.xref=l,b.yref=u,b.subtract=!1,b.isRect=!0,r.push(b)}else if(s.type==="path")for(var L=s.path.split("Z"),x=[],C=0;C<L.length;C++){var S=L[C];if(S){S+="Z";var g=pfe.extractPathCoords(S,gfe.paramIsX,"raw"),P=pfe.extractPathCoords(S,gfe.paramIsY,"raw");h=1/0,d=-1/0,v=1/0,m=-1/0,b=[];for(var E=0;E<g.length;E++){var z=b_(c,g[E]),q=b_(f,P[E]);b.push([z,q]),h=Math.min(z,h),d=Math.max(z,d),v=Math.min(q,v),m=Math.max(q,m)}b.xmin=h,b.xmax=d,b.ymin=v,b.ymax=m,b.xref=l,b.yref=u,b.subtract=qN(b,x),x.push(b),r.push(b)}}}}return r}function qN(e,t){for(var r=!1,n=0;n<t.length;n++)for(var i=t[n],a=0;a<e.length;a++)if(vht(e[a],i)){r=!r;break}return r}function b_(e,t){return e.type==="date"&&(t=t.replace("_"," ")),e.type==="log"?e.c2p(t):e.r2p(t,null,e.calendar)}function Ife(e){for(var t=e.length,r=[],n=0;n<t;n++){var i=e[n];r=r.concat(i),r=r.concat([i[0]])}return Ght(r)}function Ght(e){return e.isRect=e.length===5&&e[0][0]===e[4][0]&&e[0][1]===e[4][1]&&e[0][0]===e[1][0]&&e[2][0]===e[3][0]&&e[0][1]===e[3][1]&&e[1][1]===e[2][1]||e[0][1]===e[1][1]&&e[2][1]===e[3][1]&&e[0][0]===e[3][0]&&e[1][0]===e[2][0],e.isRect&&(e.xmin=Math.min(e[0][0],e[2][0]),e.xmax=Math.max(e[0][0],e[2][0]),e.ymin=Math.min(e[0][1],e[2][1]),e.ymax=Math.max(e[0][1],e[2][1])),e}function Rfe(e){return function(t,r){for(var n,i,a=0;a<e.length;a++){var o=e[a],s=o._id,l=s.charAt(0);if(r.isRect){n||(n={});var u=r[l+"min"],c=r[l+"max"];u!==void 0&&c!==void 0&&(n[s]=[mfe(o,u),mfe(o,c)].sort(Aht))}else i||(i={}),i[s]=r.map(kht(o))}n&&(t.range=n),i&&(t.lassoPoints=i)}}function Hht(e){var t=e.plotinfo;return t.fillRangeItems||Rfe(e.xaxes.concat(e.yaxes))}function jht(e,t){e.emit("plotly_selecting",t)}function GM(e,t){t&&(t.selections=(e.layout||{}).selections||[]),e.emit("plotly_selected",t)}function ON(e){e.emit("plotly_deselect",null)}Dfe.exports={reselect:LN,prepSelect:Lht,clearOutline:wfe,clearSelectionsCache:UM,selectOnClick:Sfe}});var BN=ye((Cor,zfe)=>{"use strict";zfe.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}]});var jM=ye((Lor,qfe)=>{"use strict";qfe.exports={axisRefDescription:function(e,t,r){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+r+"). If set to a",e,"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",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",r,"of the domain of the","second",e,"axis."].join(" ")}}});var Qb=ye((Ior,Nfe)=>{"use strict";var Ofe=BN(),Bfe=ec(),CP=Rh(),Wht=vl().templatedArray,Por=jM();Nfe.exports=Wht("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:Bfe({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:Ofe.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:Ofe.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",CP.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",CP.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",CP.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",CP.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:Bfe({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})});var Pm=ye((Ror,Ufe)=>{"use strict";Ufe.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}});var Pg=ye((Dor,Vfe)=>{"use strict";Vfe.exports=function(t){return{valType:"color",editType:"style",anim:!0}}});var pf=ye((For,Kfe)=>{"use strict";var Gfe=vf().axisHoverFormat,{hovertemplateAttrs:Xht,texttemplateAttrs:Zht,templatefallbackAttrs:Hfe}=Ll(),jfe=Tu(),Yht=ec(),Wfe=Pd().dash,Kht=Pd().pattern,Jht=So(),$ht=Pm(),WM=Ao().extendFlat,Qht=Pg();function Xfe(e){return{valType:"any",dflt:0,editType:"calc"}}function Zfe(e){return{valType:"any",editType:"calc"}}function Yfe(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}Kfe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:Xfe("x"),yperiod:Xfe("y"),xperiod0:Zfe("x0"),yperiod0:Zfe("y0"),xperiodalignment:Yfe("x"),yperiodalignment:Yfe("y"),xhoverformat:Gfe("x"),yhoverformat:Gfe("y"),offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:Zht(),texttemplatefallback:Hfe({editType:"calc"}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:Xht({},{keys:$ht.eventDataKeys}),hovertemplatefallback:Hfe(),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:WM({},Wfe,{editType:"style"}),backoff:{valType:"number",min:0,dflt:"auto",arrayOk:!0,editType:"plot"},simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:Qht(!0),fillgradient:WM({type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],dflt:"none",editType:"calc"},start:{valType:"number",editType:"calc"},stop:{valType:"number",editType:"calc"},colorscale:{valType:"colorscale",editType:"style"},editType:"calc"}),fillpattern:Kht,marker:WM({symbol:{valType:"enumerated",values:Jht.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},angle:{valType:"angle",dflt:0,arrayOk:!0,editType:"plot",anim:!1},angleref:{valType:"enumerated",values:["previous","up"],dflt:"up",editType:"plot",anim:!1},standoff:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"plot",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:WM({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:WM({},Wfe,{arrayOk:!0}),editType:"calc"},jfe("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},jfe("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:Yht({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}});var NN=ye((qor,Qfe)=>{"use strict";var Jfe=Qb(),$fe=pf().line,edt=Pd().dash,LP=Ao().extendFlat,tdt=mc().overrideAll,rdt=vl().templatedArray,zor=jM();Qfe.exports=tdt(rdt("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:LP({},Jfe.xref,{}),yref:LP({},Jfe.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:$fe.color,width:LP({},$fe.width,{min:1,dflt:1}),dash:LP({},edt,{dflt:"dot"})}}),"arraydraw","from-root")});var ihe=ye((Oor,rhe)=>{"use strict";var ehe=Pr(),PP=ho(),idt=Kd(),ndt=NN(),the=x_();rhe.exports=function(t,r){idt(t,r,{name:"selections",handleItemDefaults:adt});for(var n=r.selections,i=0;i<n.length;i++){var a=n[i];a&&a.path===void 0&&(a.x0===void 0||a.x1===void 0||a.y0===void 0||a.y1===void 0)&&(r.selections[i]=null)}};function adt(e,t,r){function n(x,C){return ehe.coerce(e,t,ndt,x,C)}var i=n("path"),a=i?"path":"rect",o=n("type",a),s=o!=="path";s&&delete t.path,n("opacity"),n("line.color"),n("line.width"),n("line.dash");for(var l=["x","y"],u=0;u<2;u++){var c=l[u],f={_fullLayout:r},h,d,v,m=PP.coerceRef(e,t,f,c);if(h=PP.getFromId(f,m),h._selectionIndices.push(t._index),v=the.rangeToShapePosition(h),d=the.shapePositionToRange(h),s){var b=c+"0",p=c+"1",k=e[b],M=e[p];e[b]=d(e[b],!0),e[p]=d(e[p],!0),PP.coercePosition(t,f,n,m,b),PP.coercePosition(t,f,n,m,p);var T=t[b],L=t[p];T!==void 0&&L!==void 0&&(t[b]=v(T),t[p]=v(L),e[b]=k,e[p]=M)}}s&&ehe.noneOrAll(e,t,["x0","x1","y0","y1"])}});var ahe=ye((Bor,nhe)=>{"use strict";nhe.exports=function(t,r,n){n("newselection.mode");var i=n("newselection.line.width");i&&(n("newselection.line.color"),n("newselection.line.dash")),n("activeselection.fillcolor"),n("activeselection.opacity")}});var XM=ye((Nor,lhe)=>{"use strict";var odt=Oa(),ohe=Pr(),she=df();lhe.exports=function(t){return function(n,i){var a=n[t];if(Array.isArray(a))for(var o=odt.subplotsRegistry.cartesian,s=o.idRegex,l=i._subplots,u=l.xaxis,c=l.yaxis,f=l.cartesian,h=i._has("cartesian"),d=0;d<a.length;d++){var v=a[d];if(ohe.isPlainObject(v)){var m=she.cleanId(v.xref,"x",!1),b=she.cleanId(v.yref,"y",!1),p=s.x.test(m),k=s.y.test(b);if(p||k){h||ohe.pushUnique(i._basePlotModules,o);var M=!1;p&&u.indexOf(m)===-1&&(u.push(m),M=!0),k&&c.indexOf(b)===-1&&(c.push(b),M=!0),M&&p&&k&&f.push(m+b)}}}}}});var qf=ye((Uor,che)=>{"use strict";var uhe=MN(),ZM=Ffe();che.exports={moduleType:"component",name:"selections",layoutAttributes:NN(),supplyLayoutDefaults:ihe(),supplyDrawNewSelectionDefaults:ahe(),includeBasePlot:XM()("selections"),draw:uhe.draw,drawOne:uhe.drawOne,reselect:ZM.reselect,prepSelect:ZM.prepSelect,clearOutline:ZM.clearOutline,clearSelectionsCache:ZM.clearSelectionsCache,selectOnClick:ZM.selectOnClick}});var XN=ye((Vor,Lhe)=>{"use strict";var jN=qa(),C0=Pr(),fhe=C0.numberFormat,sdt=fd(),ldt=VL(),IP=Oa(),xhe=C0.strTranslate,udt=Zl(),hhe=ka(),w_=So(),cdt=ef(),dhe=ho(),fdt=Eg(),hdt=yv(),bhe=Cg(),RP=bhe.selectingOrDrawing,ddt=bhe.freeMode,vdt=Dh().FROM_TL,pdt=wM(),gdt=LM().redrawReglTraces,mdt=Mc(),VN=df().getFromId,ydt=qf().prepSelect,_dt=qf().clearOutline,xdt=qf().selectOnClick,UN=yN(),WN=Rh(),vhe=WN.MINDRAG,ap=WN.MINZOOM,phe=!0;function bdt(e,t,r,n,i,a,o,s){var l=e._fullLayout._zoomlayer,u=o+s==="nsew",c=(o+s).length===1,f,h,d,v,m,b,p,k,M,T,L,x,C,S,g,P,E,z,q,V,G,Z,j;r+=t.yaxis._shift;function N(){if(f=t.xaxis,h=t.yaxis,M=f._length,T=h._length,p=f._offset,k=h._offset,d={},d[f._id]=f,v={},v[h._id]=h,o&&s)for(var Et=t.overlays,pt=0;pt<Et.length;pt++){var jt=Et[pt].xaxis;d[jt._id]=jt;var or=Et[pt].yaxis;v[or._id]=or}m=_he(d),b=_he(v),C=ghe(m,s),S=ghe(b,o),g=!S&&!C,x=yhe(e,e._fullLayout._axisMatchGroups,d,v),L=yhe(e,e._fullLayout._axisConstraintGroups,d,v,x);var mr=L.isSubplotConstrained||x.isSubplotConstrained;P=s||mr,E=o||mr;var Ar=e._fullLayout;z=Ar._has("scattergl"),q=Ar._has("splom"),V=Ar._has("svg")}N();var H=Adt(S+C,e._fullLayout.dragmode,u),ie=The(t,o+s+"drag",H,r,n,i,a);if(g&&!u)return ie.onmousedown=null,ie.style.pointerEvents="none",ie;var ae={element:ie,gd:e,plotinfo:t};ae.prepFn=function(Et,pt,jt){var or=ae.dragmode,mr=e._fullLayout.dragmode;mr!==or&&(ae.dragmode=mr),N(),Z=e._fullLayout._invScaleX,j=e._fullLayout._invScaleY,g||(u?Et.shiftKey?mr==="pan"?mr="zoom":RP(mr)||(mr="pan"):Et.ctrlKey&&(mr="pan"):mr="pan"),ddt(mr)?ae.minDrag=1:ae.minDrag=void 0,RP(mr)?(ae.xaxes=m,ae.yaxes=b,ydt(Et,pt,jt,ae,mr)):(ae.clickFn=Ee,RP(or)&&_e(),g||(mr==="zoom"?(ae.moveFn=He,ae.doneFn=mt,ae.minDrag=1,ce(Et,pt,jt)):mr==="pan"&&(ae.moveFn=rr,ae.doneFn=Ae))),e._fullLayout._redrag=function(){var Ar=e._dragdata;if(Ar&&Ar.element===ie){var ei=e._fullLayout.dragmode;RP(ei)||(N(),rt([0,0,M,T]),ae.moveFn(Ar.dx,Ar.dy))}}};function _e(){ae.plotinfo.selection=!1,_dt(e)}function Ee(Et,pt){var jt=ae.gd;if(jt._fullLayout._activeShapeIndex>=0){jt._fullLayout._deactivateShape(jt);return}var or=jt._fullLayout.clickmode;if(HN(jt),Et===2&&!c&&Ue(),u)or.indexOf("select")>-1&&xdt(pt,jt,m,b,t.id,ae),or.indexOf("event")>-1&&cdt.click(jt,pt,t.id);else if(Et===1&&c){var mr=o?h:f,Ar=o==="s"||s==="w"?0:1,ei=mr._name+".range["+Ar+"]",qr=wdt(mr,Ar),jr="left",gt="middle";if(mr.fixedrange)return;o?(gt=o==="n"?"top":"bottom",mr.side==="right"&&(jr="right")):s==="e"&&(jr="right"),jt._context.showAxisRangeEntryBoxes&&jN.select(ie).call(udt.makeEditable,{gd:jt,immediate:!0,background:jt._fullLayout.paper_bgcolor,text:String(qr),fill:mr.tickfont?mr.tickfont.color:"#444",horizontalAlign:jr,verticalAlign:gt}).on("edit",function(Ge){var Je=mr.d2r(Ge);Je!==void 0&&IP.call("_guiRelayout",jt,ei,Je)})}}hdt.init(ae);var Ce,ge,re,Se,ke,be,Be,Le,me,Pe;function ce(Et,pt,jt){var or=ie.getBoundingClientRect();Ce=pt-or.left,ge=jt-or.top,e._fullLayout._calcInverseTransform(e);var mr=C0.apply3DTransform(e._fullLayout._invTransform)(Ce,ge);Ce=mr[0],ge=mr[1],re={l:Ce,r:Ce,w:0,t:ge,b:ge,h:0},Se=e._hmpixcount?e._hmlumcount/e._hmpixcount:sdt(e._fullLayout.plot_bgcolor).getLuminance(),ke="M0,0H"+M+"V"+T+"H0V0",be=!1,Be="xy",Pe=!1,Le=Ahe(l,Se,p,k,ke),me=She(l,p,k)}function He(Et,pt){if(e._transitioningWithDuration)return!1;var jt=Math.max(0,Math.min(M,Z*Et+Ce)),or=Math.max(0,Math.min(T,j*pt+ge)),mr=Math.abs(jt-Ce),Ar=Math.abs(or-ge);re.l=Math.min(Ce,jt),re.r=Math.max(Ce,jt),re.t=Math.min(ge,or),re.b=Math.max(ge,or);function ei(){Be="",re.r=re.l,re.t=re.b,me.attr("d","M0,0Z")}if(L.isSubplotConstrained)mr>ap||Ar>ap?(Be="xy",mr/M>Ar/T?(Ar=mr*T/M,ge>or?re.t=ge-Ar:re.b=ge+Ar):(mr=Ar*M/T,Ce>jt?re.l=Ce-mr:re.r=Ce+mr),me.attr("d",DP(re))):ei();else if(x.isSubplotConstrained)if(mr>ap||Ar>ap){Be="xy";var qr=Math.min(re.l/M,(T-re.b)/T),jr=Math.max(re.r/M,(T-re.t)/T);re.l=qr*M,re.r=jr*M,re.b=(1-qr)*T,re.t=(1-jr)*T,me.attr("d",DP(re))}else ei();else!S||Ar<Math.min(Math.max(mr*.6,vhe),ap)?mr<vhe||!C?ei():(re.t=0,re.b=T,Be="x",me.attr("d",Sdt(re,ge))):!C||mr<Math.min(Ar*.6,ap)?(re.l=0,re.r=M,Be="y",me.attr("d",Mdt(re,Ce))):(Be="xy",me.attr("d",DP(re)));re.w=re.r-re.l,re.h=re.b-re.t,Be&&(Pe=!0),e._dragged=Pe,Mhe(Le,me,re,ke,be,Se),lt(),e.emit("plotly_relayouting",G),be=!0}function lt(){G={},(Be==="xy"||Be==="x")&&(GN(m,re.l/M,re.r/M,G,L.xaxes),tt("x",G)),(Be==="xy"||Be==="y")&&(GN(b,(T-re.b)/T,(T-re.t)/T,G,L.yaxes),tt("y",G))}function mt(){lt(),HN(e),Ae(),khe(e)}var Ht=[0,0,M,T],at=null,ct=WN.REDRAWDELAY,ar=t.mainplot?e._fullLayout._plots[t.mainplot]:t;function Vt(Et){if(!e._context._scrollZoom.cartesian&&!e._fullLayout._enablescrollzoom)return;if(_e(),e._transitioningWithDuration){Et.preventDefault(),Et.stopPropagation();return}N(),clearTimeout(at);var pt=-Et.deltaY;if(isFinite(pt)||(pt=Et.wheelDelta/10),!isFinite(pt)){C0.log("Did not find wheel motion attributes: ",Et);return}var jt=Math.exp(-Math.min(Math.max(pt,-20),20)/200),or=ar.draglayer.select(".nsewdrag").node().getBoundingClientRect(),mr=(Et.clientX-or.left)/or.width,Ar=(or.bottom-Et.clientY)/or.height,ei;function qr(jr,gt,Ge){if(jr.fixedrange)return;var Je=C0.simpleMap(jr.range,jr.r2l),We=Je[0]+(Je[1]-Je[0])*gt;function et(xt){return jr.l2r(We+(xt-We)*Ge)}jr.range=Je.map(et)}if(P){for(s||(mr=.5),ei=0;ei<m.length;ei++)qr(m[ei],mr,jt);tt("x"),Ht[2]*=jt,Ht[0]+=Ht[2]*mr*(1/jt-1)}if(E){for(o||(Ar=.5),ei=0;ei<b.length;ei++)qr(b[ei],Ar,jt);tt("y"),Ht[3]*=jt,Ht[1]+=Ht[3]*(1-Ar)*(1/jt-1)}rt(Ht),je(),e.emit("plotly_relayouting",G),at=setTimeout(function(){e._fullLayout&&(Ht=[0,0,M,T],Ae())},ct),Et.preventDefault()}o.length*s.length!==1&&Che(ie,Vt);function rr(Et,pt){if(Et=Et*Z,pt=pt*j,e._transitioningWithDuration)return;if(e._fullLayout._replotting=!0,C==="ew"||S==="ns"){var jt=C?-Et:0,or=S?-pt:0;if(x.isSubplotConstrained){if(C&&S){var mr=(Et/M-pt/T)/2;Et=mr*M,pt=-mr*T,jt=-Et,or=-pt}S?jt=-or*M/T:or=-jt*T/M}C&&(mhe(m,Et),tt("x")),S&&(mhe(b,pt),tt("y")),rt([jt,or,M,T]),je(),e.emit("plotly_relayouting",G);return}function Ar(et,xt,At){for(var Kt=1-xt,Qt,Mr,Gr=0;Gr<et.length;Gr++){var Ir=et[Gr];if(!Ir.fixedrange){Qt=Ir,Mr=Ir._rl[Kt]+(Ir._rl[xt]-Ir._rl[Kt])/Tdt(At/Ir._length);var Yr=Ir.l2r(Mr);Yr!==!1&&Yr!==void 0&&(Ir.range[xt]=Yr)}}return Qt._length*(Qt._rl[xt]-Mr)/(Qt._rl[xt]-Qt._rl[Kt])}var ei=C==="w"==(S==="n")?1:-1;if(C&&S&&(L.isSubplotConstrained||x.isSubplotConstrained)){var qr=(Et/M+ei*pt/T)/2;Et=qr*M,pt=ei*qr*T}var jr,gt;if(C==="w"?Et=Ar(m,0,Et):C==="e"?Et=Ar(m,1,-Et):C||(Et=0),S==="n"?pt=Ar(b,1,pt):S==="s"?pt=Ar(b,0,-pt):S||(pt=0),jr=C==="w"?Et:0,gt=S==="n"?pt:0,L.isSubplotConstrained&&!x.isSubplotConstrained||x.isSubplotConstrained&&C&&S&&ei>0){var Ge;if(x.isSubplotConstrained||!C&&S.length===1){for(Ge=0;Ge<m.length;Ge++)m[Ge].range=m[Ge]._r.slice(),UN(m[Ge],1-pt/T);Et=pt*M/T,jr=Et/2}if(x.isSubplotConstrained||!S&&C.length===1){for(Ge=0;Ge<b.length;Ge++)b[Ge].range=b[Ge]._r.slice(),UN(b[Ge],1-Et/M);pt=Et*T/M,gt=pt/2}}(!x.isSubplotConstrained||!S)&&tt("x"),(!x.isSubplotConstrained||!C)&&tt("y");var Je=M-Et,We=T-pt;x.isSubplotConstrained&&!(C&&S)&&(C?(gt=jr?0:Et*T/M,We=Je*T/M):(jr=gt?0:pt*M/T,Je=We*M/T)),rt([jr,gt,Je,We]),je(),e.emit("plotly_relayouting",G)}function tt(Et,pt){for(var jt=x.isSubplotConstrained?{x:b,y:m}[Et]:x[Et+"axes"],or=x.isSubplotConstrained?{x:m,y:b}[Et]:[],mr=0;mr<jt.length;mr++){var Ar=jt[mr],ei=Ar._id,qr=x.xLinks[ei]||x.yLinks[ei],jr=or[0]||d[qr]||v[qr];jr&&(pt?(pt[Ar._name+".range[0]"]=pt[jr._name+".range[0]"],pt[Ar._name+".range[1]"]=pt[jr._name+".range[1]"]):Ar.range=jr.range.slice())}}function je(){var Et=[],pt;function jt(ei){for(pt=0;pt<ei.length;pt++)ei[pt].fixedrange||Et.push(ei[pt]._id)}function or(ei,qr){for(pt=0;pt<ei.length;pt++){var jr=ei[pt],gt=jr[qr];!jr.fixedrange&&gt.tickmode==="sync"&&Et.push(gt._id)}}for(P&&(jt(m),jt(L.xaxes),jt(x.xaxes),or(t.overlays,"xaxis")),E&&(jt(b),jt(L.yaxes),jt(x.yaxes),or(t.overlays,"yaxis")),G={},pt=0;pt<Et.length;pt++){var mr=Et[pt],Ar=VN(e,mr);dhe.drawOne(e,Ar,{skipTitle:!0}),G[Ar._name+".range[0]"]=Ar.range[0],G[Ar._name+".range[1]"]=Ar.range[1]}dhe.redrawComponents(e,Et)}function Ue(){if(!e._transitioningWithDuration){var Et=e._context.doubleClick,pt=[];C&&(pt=pt.concat(m)),S&&(pt=pt.concat(b)),x.xaxes&&(pt=pt.concat(x.xaxes)),x.yaxes&&(pt=pt.concat(x.yaxes));var jt={},or,mr;if(Et==="reset+autosize")for(Et="autosize",mr=0;mr<pt.length;mr++){or=pt[mr];var Ar=or._rangeInitial0,ei=or._rangeInitial1,qr=Ar!==void 0||ei!==void 0;if(qr&&(Ar!==void 0&&Ar!==or.range[0]||ei!==void 0&&ei!==or.range[1])||!qr&&or.autorange!==!0){Et="reset";break}}if(Et==="autosize")for(mr=0;mr<pt.length;mr++)or=pt[mr],or.fixedrange||(jt[or._name+".autorange"]=!0);else if(Et==="reset"){for((C||L.isSubplotConstrained)&&(pt=pt.concat(L.xaxes)),S&&!L.isSubplotConstrained&&(pt=pt.concat(L.yaxes)),L.isSubplotConstrained&&(C?S||(pt=pt.concat(b)):pt=pt.concat(m)),mr=0;mr<pt.length;mr++)if(or=pt[mr],!or.fixedrange){var jr=or._name,gt=or._autorangeInitial;or._rangeInitial0===void 0&&or._rangeInitial1===void 0?jt[jr+".autorange"]=!0:or._rangeInitial0===void 0?(jt[jr+".autorange"]=gt,jt[jr+".range"]=[null,or._rangeInitial1]):or._rangeInitial1===void 0?(jt[jr+".range"]=[or._rangeInitial0,null],jt[jr+".autorange"]=gt):jt[jr+".range"]=[or._rangeInitial0,or._rangeInitial1]}}e.emit("plotly_doubleclick",null),IP.call("_guiRelayout",e,jt)}}function Ae(){rt([0,0,M,T]),C0.syncOrAsync([mdt.previousPromises,function(){e._fullLayout._replotting=!1,IP.call("_guiRelayout",e,G)}],e)}function rt(Et){var pt=e._fullLayout,jt=pt._plots,or=pt._subplots.cartesian,mr,Ar,ei,qr;if(q&&IP.subplotsRegistry.splom.drag(e),z){for(mr=0;mr<or.length;mr++)if(Ar=jt[or[mr]],ei=Ar.xaxis,qr=Ar.yaxis,Ar._scene){ei.limitRange&&ei.limitRange(),qr.limitRange&&qr.limitRange();var jr=C0.simpleMap(ei.range,ei.r2l),gt=C0.simpleMap(qr.range,qr.r2l);Ar._scene.update({range:[jr[0],gt[0],jr[1],gt[1]]})}}if((q||z)&&(pdt(e),gdt(e)),V){var Ge=Et[2]/f._length,Je=Et[3]/h._length;for(mr=0;mr<or.length;mr++){Ar=jt[or[mr]],ei=Ar.xaxis,qr=Ar.yaxis;var We=(P||x.isSubplotConstrained)&&!ei.fixedrange&&d[ei._id],et=(E||x.isSubplotConstrained)&&!qr.fixedrange&&v[qr._id],xt,At,Kt,Qt;if(We?(xt=Ge,Kt=s||x.isSubplotConstrained?Et[0]:dt(ei,xt)):x.xaHash[ei._id]?(xt=Ge,Kt=Et[0]*ei._length/f._length):x.yaHash[ei._id]?(xt=Je,Kt=S==="ns"?-Et[1]*ei._length/h._length:dt(ei,xt,{n:"top",s:"bottom"}[S])):(xt=St(ei,Ge,Je),Kt=Tt(ei,xt)),xt>1&&(ei.maxallowed!==void 0&&P===(ei.range[0]<ei.range[1]?"e":"w")||ei.minallowed!==void 0&&P===(ei.range[0]<ei.range[1]?"w":"e"))&&(xt=1,Kt=0),et?(At=Je,Qt=o||x.isSubplotConstrained?Et[1]:dt(qr,At)):x.yaHash[qr._id]?(At=Je,Qt=Et[1]*qr._length/h._length):x.xaHash[qr._id]?(At=Ge,Qt=C==="ew"?-Et[0]*qr._length/f._length:dt(qr,At,{e:"right",w:"left"}[C])):(At=St(qr,Ge,Je),Qt=Tt(qr,At)),At>1&&(qr.maxallowed!==void 0&&E===(qr.range[0]<qr.range[1]?"n":"s")||qr.minallowed!==void 0&&E===(qr.range[0]<qr.range[1]?"s":"n"))&&(At=1,Qt=0),!(!xt&&!At)){xt||(xt=1),At||(At=1);var Mr=ei._offset-Kt/xt,Gr=qr._offset-Qt/At;Ar.clipRect.call(w_.setTranslate,Kt,Qt).call(w_.setScale,xt,At),Ar.plot.call(w_.setTranslate,Mr,Gr).call(w_.setScale,1/xt,1/At),(xt!==Ar.xScaleFactor||At!==Ar.yScaleFactor)&&(w_.setPointGroupScale(Ar.zoomScalePts,xt,At),w_.setTextPointsScale(Ar.zoomScaleTxt,xt,At)),w_.hideOutsideRangePoints(Ar.clipOnAxisFalseTraces,Ar),Ar.xScaleFactor=xt,Ar.yScaleFactor=At}}}}function St(Et,pt,jt){return Et.fixedrange?0:P&&L.xaHash[Et._id]?pt:E&&(L.isSubplotConstrained?L.xaHash:L.yaHash)[Et._id]?jt:0}function Tt(Et,pt){return pt?(Et.range=Et._r.slice(),UN(Et,pt),dt(Et,pt)):0}function dt(Et,pt,jt){return Et._length*(1-pt)*vdt[jt||Et.constraintoward||"middle"]}return ie}function whe(e,t,r,n){var i=C0.ensureSingle(e.draglayer,t,r,function(a){a.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)});return i.call(fdt,n),i.node()}function The(e,t,r,n,i,a,o){var s=whe(e,"rect",t,r);return jN.select(s).call(w_.setRect,n,i,a,o),s}function ghe(e,t){for(var r=0;r<e.length;r++)if(!e[r].fixedrange)return t;return""}function wdt(e,t){var r=e.range[t],n=Math.abs(r-e.range[1-t]),i;return e.type==="date"?r:e.type==="log"?(i=Math.ceil(Math.max(0,-Math.log(n)/Math.LN10))+3,fhe("."+i+"g")(Math.pow(10,r))):(i=Math.floor(Math.log(Math.abs(r))/Math.LN10)-Math.floor(Math.log(n)/Math.LN10)+4,fhe("."+String(i)+"g")(r))}function GN(e,t,r,n,i){for(var a=0;a<e.length;a++){var o=e[a];if(!o.fixedrange)if(o.rangebreaks){var s=o._id.charAt(0)==="y",l=s?1-t:t,u=s?1-r:r;n[o._name+".range[0]"]=o.l2r(o.p2l(l*o._length)),n[o._name+".range[1]"]=o.l2r(o.p2l(u*o._length))}else{var c=o._rl[0],f=o._rl[1]-c;n[o._name+".range[0]"]=o.l2r(c+f*t),n[o._name+".range[1]"]=o.l2r(c+f*r)}}if(i&&i.length){var h=(t+(1-r))/2;GN(i,h,1-h,n,[])}}function mhe(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(!n.fixedrange){if(n.rangebreaks){var i=0,a=n._length,o=n.p2l(i+t)-n.p2l(i),s=n.p2l(a+t)-n.p2l(a),l=(o+s)/2;n.range=[n.l2r(n._rl[0]-l),n.l2r(n._rl[1]-l)]}else n.range=[n.l2r(n._rl[0]-t/n._m),n.l2r(n._rl[1]-t/n._m)];n.limitRange&&n.limitRange()}}}function Tdt(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function Adt(e,t,r){return e?e==="nsew"?r?"":t==="pan"?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function Ahe(e,t,r,n,i){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",xhe(r,n)).attr("d",i+"Z")}function She(e,t,r){return e.append("path").attr("class","zoombox-corners").style({fill:hhe.background,stroke:hhe.defaultLine,"stroke-width":1,opacity:0}).attr("transform",xhe(t,r)).attr("d","M0,0Z")}function Mhe(e,t,r,n,i,a){e.attr("d",n+"M"+r.l+","+r.t+"v"+r.h+"h"+r.w+"v-"+r.h+"h-"+r.w+"Z"),Ehe(e,t,i,a)}function Ehe(e,t,r,n){r||(e.transition().style("fill",n>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function HN(e){jN.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function khe(e){phe&&e.data&&e._context.showTips&&(C0.notifier(C0._(e,"Double-click to zoom back out"),"long",e),phe=!1)}function Sdt(e,t){return"M"+(e.l-.5)+","+(t-ap-.5)+"h-3v"+(2*ap+1)+"h3ZM"+(e.r+.5)+","+(t-ap-.5)+"h3v"+(2*ap+1)+"h-3Z"}function Mdt(e,t){return"M"+(t-ap-.5)+","+(e.t-.5)+"v-3h"+(2*ap+1)+"v3ZM"+(t-ap-.5)+","+(e.b+.5)+"v3h"+(2*ap+1)+"v-3Z"}function DP(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,ap)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function yhe(e,t,r,n,i){for(var a=!1,o={},s={},l,u,c,f,h=(i||{}).xaHash,d=(i||{}).yaHash,v=0;v<t.length;v++){var m=t[v];for(l in r)if(m[l]){for(c in m)!(i&&(h[c]||d[c]))&&!(c.charAt(0)==="x"?r:n)[c]&&(o[c]=l);for(u in n)!(i&&(h[u]||d[u]))&&m[u]&&(a=!0)}for(u in n)if(m[u])for(f in m)!(i&&(h[f]||d[f]))&&!(f.charAt(0)==="x"?r:n)[f]&&(s[f]=u)}a&&(C0.extendFlat(o,s),s={});var b={},p=[];for(c in o){var k=VN(e,c);p.push(k),b[k._id]=k}var M={},T=[];for(f in s){var L=VN(e,f);T.push(L),M[L._id]=L}return{xaHash:b,yaHash:M,xaxes:p,yaxes:T,xLinks:o,yLinks:s,isSubplotConstrained:a}}function Che(e,t){if(!ldt)e.onwheel!==void 0?e.onwheel=t:e.onmousewheel!==void 0?e.onmousewheel=t:e.isAddedWheelEvent||(e.isAddedWheelEvent=!0,e.addEventListener("wheel",t,{passive:!1}));else{var r=e.onwheel!==void 0?"wheel":"mousewheel";e._onwheel&&e.removeEventListener(r,e._onwheel),e._onwheel=t,e.addEventListener(r,t,{passive:!1})}}function _he(e){var t=[];for(var r in e)t.push(e[r]);return t}Lhe.exports={makeDragBox:bdt,makeDragger:whe,makeRectDragger:The,makeZoombox:Ahe,makeCorners:She,updateZoombox:Mhe,xyCorners:DP,transitionZoombox:Ehe,removeZoombox:HN,showDoubleClickNotifier:khe,attachWheelEventHandler:Che}});var ZN=ye(zP=>{"use strict";var Edt=qa(),FP=ef(),kdt=yv(),Cdt=Eg(),Ig=XN().makeDragBox,gd=Rh().DRAGGERSIZE;zP.initInteractions=function(t){var r=t._fullLayout;if(t._context.staticPlot){Edt.select(t).selectAll(".drag").remove();return}if(!(!r._has("cartesian")&&!r._has("splom"))){var n=Object.keys(r._plots||{}).sort(function(a,o){if((r._plots[a].mainplot&&!0)===(r._plots[o].mainplot&&!0)){var s=a.split("y"),l=o.split("y");return s[0]===l[0]?Number(s[1]||1)-Number(l[1]||1):Number(s[0]||1)-Number(l[0]||1)}return r._plots[a].mainplot?1:-1});n.forEach(function(a){var o=r._plots[a],s=o.xaxis,l=o.yaxis;if(!o.mainplot){var u=Ig(t,o,s._offset,l._offset,s._length,l._length,"ns","ew");u.onmousemove=function(h){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===a&&t._fullLayout._plots[a]&&FP.hover(t,h,a)},FP.hover(t,h,a),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=a},u.onmouseout=function(h){t._dragging||(t._fullLayout._hoversubplot=null,kdt.unhover(t,h))},t._context.showAxisDragHandles&&(Ig(t,o,s._offset-gd,l._offset-gd,gd,gd,"n","w"),Ig(t,o,s._offset+s._length,l._offset-gd,gd,gd,"n","e"),Ig(t,o,s._offset-gd,l._offset+l._length,gd,gd,"s","w"),Ig(t,o,s._offset+s._length,l._offset+l._length,gd,gd,"s","e"))}if(t._context.showAxisDragHandles){if(a===s._mainSubplot){var c=s._mainLinePosition;s.side==="top"&&(c-=gd),Ig(t,o,s._offset+s._length*.1,c,s._length*.8,gd,"","ew"),Ig(t,o,s._offset,c,s._length*.1,gd,"","w"),Ig(t,o,s._offset+s._length*.9,c,s._length*.1,gd,"","e")}if(a===l._mainSubplot){var f=l._mainLinePosition;l.side!=="right"&&(f-=gd),Ig(t,o,f,l._offset+l._length*.1,gd,l._length*.8,"ns",""),Ig(t,o,f,l._offset+l._length*.9,gd,l._length*.1,"s",""),Ig(t,o,f,l._offset,gd,l._length*.1,"n","")}}});var i=r._hoverlayer.node();i.onmousemove=function(a){a.target=t._fullLayout._lasthover,FP.hover(t,a,r._hoversubplot)},i.onclick=function(a){a.target=t._fullLayout._lasthover,FP.click(t,a)},i.onmousedown=function(a){t._fullLayout._lasthover.onmousedown(a)},zP.updateFx(t)}};zP.updateFx=function(e){var t=e._fullLayout,r=t.dragmode==="pan"?"move":"crosshair";Cdt(t._draggers,r)}});var Rhe=ye((Hor,Ihe)=>{"use strict";var Phe=Oa();Ihe.exports=function(t){for(var r=Phe.layoutArrayContainers,n=Phe.layoutArrayRegexes,i=t.split("[")[0],a,o,s=0;s<n.length;s++)if(o=t.match(n[s]),o&&o.index===0){a=o[0];break}if(a||(a=r[r.indexOf(i)]),!a)return!1;var l=t.slice(a.length);return l?(o=l.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/),o?{array:a,index:Number(o[1]),property:o[3]||""}:!1):{array:a,index:"",property:""}}});var Fhe=ye(KM=>{"use strict";var Ldt=Ay(),YN=P6(),YM=K1(),Pdt=V6().sorterAsc,KN=Oa();KM.containerArrayMatch=Rhe();var Idt=KM.isAddVal=function(t){return t==="add"||Ldt(t)},Dhe=KM.isRemoveVal=function(t){return t===null||t==="remove"};KM.applyContainerArrayChanges=function(t,r,n,i,a){var o=r.astr,s=KN.getComponentMethod(o,"supplyLayoutDefaults"),l=KN.getComponentMethod(o,"draw"),u=KN.getComponentMethod(o,"drawOne"),c=i.replot||i.recalc||s===YN||l===YN,f=t.layout,h=t._fullLayout;if(n[""]){Object.keys(n).length>1&&YM.warn("Full array edits are incompatible with other edits",o);var d=n[""][""];if(Dhe(d))r.set(null);else if(Array.isArray(d))r.set(d);else return YM.warn("Unrecognized full array edit value",o,d),!0;return c?!1:(s(f,h),l(t),!0)}var v=Object.keys(n).map(Number).sort(Pdt),m=r.get(),b=m||[],p=a(h,o).get(),k=[],M=-1,T=b.length,L,x,C,S,g,P,E,z;for(L=0;L<v.length;L++){if(C=v[L],S=n[C],g=Object.keys(S),P=S[""],E=Idt(P),C<0||C>b.length-(E?0:1)){YM.warn("index out of range",o,C);continue}if(P!==void 0)g.length>1&&YM.warn("Insertion & removal are incompatible with edits to the same index.",o,C),Dhe(P)?k.push(C):E?(P==="add"&&(P={}),b.splice(C,0,P),p&&p.splice(C,0,{})):YM.warn("Unrecognized full object edit value",o,C,P),M===-1&&(M=C);else for(x=0;x<g.length;x++)z=o+"["+C+"].",a(b[C],g[x],z).set(S[g[x]])}for(L=k.length-1;L>=0;L--)b.splice(k[L],1),p&&p.splice(k[L],1);if(b.length?m||r.set(b):r.set(null),c)return!1;if(s(f,h),u!==YN){var q;if(M===-1)q=v;else{for(T=Math.max(b.length,T),q=[],L=0;L<v.length&&(C=v[L],!(C>=M));L++)q.push(C);for(L=M;L<T;L++)q.push(L)}for(L=0;L<q.length;L++)u(t,q[L])}else l(t);return!0}});var Ghe=ye(L0=>{"use strict";var Bhe=Eo(),Nhe=Oa(),Uv=Pr(),JM=Mc(),Uhe=df(),Vhe=ka(),$M=Uhe.cleanId,Rdt=Uhe.getFromTrace,JN=Nhe.traceIs,Ddt=["x","y","z"];L0.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&Uv.log("Clearing previous rejected promises from queue."),e._promises=[]};L0.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var n=(JM.subplotsRegistry.cartesian||{}).attrRegex,i=(JM.subplotsRegistry.polar||{}).attrRegex,a=(JM.subplotsRegistry.ternary||{}).attrRegex,o=(JM.subplotsRegistry.gl3d||{}).attrRegex,s=Object.keys(e);for(t=0;t<s.length;t++){var l=s[t];if(n&&n.test(l)){var u=e[l];u.anchor&&u.anchor!=="free"&&(u.anchor=$M(u.anchor)),u.overlaying&&(u.overlaying=$M(u.overlaying)),u.type||(u.isdate?u.type="date":u.islog?u.type="log":u.isdate===!1&&u.islog===!1&&(u.type="linear")),(u.autorange==="withzero"||u.autorange==="tozero")&&(u.autorange=!0,u.rangemode="tozero"),u.insiderange&&delete u.range,delete u.islog,delete u.isdate,delete u.categories,qP(u,"domain")&&delete u.domain}}var c=Array.isArray(e.annotations)?e.annotations.length:0;for(t=0;t<c;t++){var f=e.annotations[t];Uv.isPlainObject(f)&&(sT(f,"xref"),sT(f,"yref"))}var h=Array.isArray(e.shapes)?e.shapes.length:0;for(t=0;t<h;t++){var d=e.shapes[t];Uv.isPlainObject(d)&&(sT(d,"xref",!0),sT(d,"yref",!0))}var v=Array.isArray(e.images)?e.images.length:0;for(t=0;t<v;t++){var m=e.images[t];Uv.isPlainObject(m)&&(sT(m,"xref"),sT(m,"yref"))}var b=e.legend;return b&&(b.x>3?(b.x=1.02,b.xanchor="left"):b.x<-2&&(b.x=-.02,b.xanchor="right"),b.y>3?(b.y=1.02,b.yanchor="bottom"):b.y<-2&&(b.y=-.02,b.yanchor="top")),e.dragmode==="rotate"&&(e.dragmode="orbit"),Vhe.clean(e),e.template&&e.template.layout&&L0.cleanLayout(e.template.layout),e};function sT(e,t,r=!1){var n=e[t],i=t.charAt(0);r&&Array.isArray(n)||n&&n!=="paper"&&(e[t]=$M(n,i,!0))}L0.cleanData=function(e){for(var t=0;t<e.length;t++){var r=e[t],n;if(r.type==="histogramy"&&"xbins"in r&&!("ybins"in r)&&(r.ybins=r.xbins,delete r.xbins),r.type==="histogramy"&&L0.swapXYData(r),(r.type==="histogramx"||r.type==="histogramy")&&(r.type="histogram"),"scl"in r&&!("colorscale"in r)&&(r.colorscale=r.scl,delete r.scl),"reversescl"in r&&!("reversescale"in r)&&(r.reversescale=r.reversescl,delete r.reversescl),r.xaxis&&(r.xaxis=$M(r.xaxis,"x")),r.yaxis&&(r.yaxis=$M(r.yaxis,"y")),JN(r,"gl3d")&&r.scene&&(r.scene=JM.subplotsRegistry.gl3d.cleanId(r.scene)),!JN(r,"pie-like")&&!JN(r,"bar-like"))if(Array.isArray(r.textposition))for(n=0;n<r.textposition.length;n++)r.textposition[n]=qhe(r.textposition[n]);else r.textposition&&(r.textposition=qhe(r.textposition));var i=Nhe.getModule(r);if(i&&i.colorbar){var a=i.colorbar.container,o=a?r[a]:r;o&&o.colorscale&&(o.colorscale==="YIGnBu"&&(o.colorscale="YlGnBu"),o.colorscale==="YIOrRd"&&(o.colorscale="YlOrRd"))}if(r.type==="surface"&&Uv.isPlainObject(r.contours)){var s=["x","y","z"];for(n=0;n<s.length;n++){var l=r.contours[s[n]];Uv.isPlainObject(l)&&(l.highlightColor&&(l.highlightcolor=l.highlightColor,delete l.highlightColor),l.highlightWidth&&(l.highlightwidth=l.highlightWidth,delete l.highlightWidth))}}if(r.type==="candlestick"||r.type==="ohlc"){var u=(r.increasing||{}).showlegend!==!1,c=(r.decreasing||{}).showlegend!==!1,f=zhe(r.increasing),h=zhe(r.decreasing);if(f!==!1&&h!==!1){var d=Fdt(f,h,u,c);d&&(r.name=d)}else(f||h)&&!r.name&&(r.name=f||h)}qP(r,"line")&&delete r.line,"marker"in r&&(qP(r.marker,"line")&&delete r.marker.line,qP(r,"marker")&&delete r.marker),Vhe.clean(r),r.autobinx&&(delete r.autobinx,delete r.xbins),r.autobiny&&(delete r.autobiny,delete r.ybins)}};function zhe(e){if(!Uv.isPlainObject(e))return!1;var t=e.name;return delete e.name,delete e.showlegend,(typeof t=="string"||typeof t=="number")&&String(t)}function Fdt(e,t,r,n){if(r&&!n)return e;if(n&&!r||!e.trim())return t;if(!t.trim())return e;var i=Math.min(e.length,t.length),a;for(a=0;a<i&&e.charAt(a)===t.charAt(a);a++);var o=e.slice(0,a);return o.trim()}function qhe(e){var t="middle",r="center";return typeof e=="string"&&(e.indexOf("top")!==-1?t="top":e.indexOf("bottom")!==-1&&(t="bottom"),e.indexOf("left")!==-1?r="left":e.indexOf("right")!==-1&&(r="right")),t+" "+r}function qP(e,t){return t in e&&typeof e[t]=="object"&&Object.keys(e[t]).length===0}L0.swapXYData=function(e){var t;if(Uv.swapAttrs(e,["?","?0","d?","?bins","nbins?","autobin?","?src","error_?"]),Array.isArray(e.z)&&Array.isArray(e.z[0])&&(e.transpose?delete e.transpose:e.transpose=!0),e.error_x&&e.error_y){var r=e.error_y,n="copy_ystyle"in r?r.copy_ystyle:!(r.color||r.thickness||r.width);Uv.swapAttrs(e,["error_?.copy_ystyle"]),n&&Uv.swapAttrs(e,["error_?.color","error_?.thickness","error_?.width"])}if(typeof e.hoverinfo=="string"){var i=e.hoverinfo.split("+");for(t=0;t<i.length;t++)i[t]==="x"?i[t]="y":i[t]==="y"&&(i[t]="x");e.hoverinfo=i.join("+")}};L0.coerceTraceIndices=function(e,t){if(Bhe(t))return[t];if(!Array.isArray(t)||!t.length)return e.data.map(function(i,a){return a});if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++)Uv.isIndex(t[n],e.data.length)?r.push(t[n]):Uv.warn("trace index (",t[n],") is not a number or is out of bounds");return r}return t};L0.manageArrayContainers=function(e,t,r){var n=e.obj,i=e.parts,a=i.length,o=i[a-1],s=Bhe(o);if(s&&t===null){var l=i.slice(0,a-1).join("."),u=Uv.nestedProperty(n,l).get();u.splice(o,1)}else s&&e.get()===void 0&&e.get()===void 0&&(r[e.astr]=null),e.set(t)};var zdt=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function Ohe(e){var t=e.search(zdt);if(t>0)return e.slice(0,t)}L0.hasParent=function(e,t){for(var r=Ohe(t);r;){if(r in e)return!0;r=Ohe(r)}return!1};L0.clearAxisTypes=function(e,t,r){for(var n=0;n<t.length;n++)for(var i=e._fullData[n],a=0;a<3;a++){var o=Rdt(e,i,Ddt[a]);if(o&&o.type!=="log"){var s=o._name,l=o._id.slice(1);if(l.slice(0,5)==="scene"){if(r[l]!==void 0)continue;s=l+"."+s}var u=s+".type";r[s]===void 0&&r[u]===void 0&&Uv.nestedProperty(e.layout,u).set(null)}}};var $N=(e,t)=>{let r=(...n)=>n.every(i=>Uv.isPlainObject(i))||n.every(i=>Array.isArray(i));if([e,t].every(n=>Array.isArray(n))){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let i=e[n],a=t[n];if(i!==a&&!(r(i,a)?$N(i,a):!1))return!1}return!0}else if([e,t].every(n=>Uv.isPlainObject(n))){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){if(n.startsWith("_"))continue;let i=e[n],a=t[n];if(i!==a&&!(r(i,a)?$N(i,a):!1))return!1}return!0}return!1};L0.collectionsAreEqual=$N});var YP=ye(_l=>{"use strict";var NP=qa(),qdt=Eo(),Odt=cO(),Sa=Pr(),Ec=Sa.nestedProperty,tU=L3(),op=Mne(),P0=Oa(),XP=R3(),Qo=Mc(),Vv=ho(),Bdt=MB(),Ndt=Rd(),QN=So(),Udt=ka(),Vdt=ZN().initInteractions,Gdt=Wp(),Hdt=qf().clearOutline,Zhe=xb().dfltConfig,OP=Fhe(),gh=Ghe(),Au=LM(),T_=mc(),jdt=Rh().AX_NAME_PATTERN,eU=0,Hhe=5;function Wdt(e,t,r,n){var i;if(e=Sa.getGraphDiv(e),tU.init(e),Sa.isPlainObject(t)){var a=t;t=a.data,r=a.layout,n=a.config,i=a.frames}var o=tU.triggerHandler(e,"plotly_beforeplot",[t,r,n]);if(o===!1)return Promise.reject();!t&&!r&&!Sa.isPlotDiv(e)&&Sa.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",e);function s(){if(i)return _l.addFrames(e,i)}Khe(e,n),r||(r={}),NP.select(e).classed("js-plotly-plot",!0),QN.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var l=(e.data||[]).length===0&&Array.isArray(t);Array.isArray(t)&&(gh.cleanData(t),l?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),(!e.layout||l)&&(e.layout=gh.cleanLayout(r)),Qo.supplyDefaults(e);var u=e._fullLayout,c=u._has("cartesian");u._replotting=!0,(l||u._shouldCreateBgLayer)&&(pvt(e),u._shouldCreateBgLayer&&delete u._shouldCreateBgLayer),QN.initGradients(e),QN.initPatterns(e),l&&Vv.saveShowSpikeInitial(e);var f=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;f&&Qo.doCalcdata(e);for(var h=0;h<e.calcdata.length;h++)e.calcdata[h][0].trace=e._fullData[h];e._context.responsive?e._responsiveChartHandler||(e._responsiveChartHandler=function(){Sa.isHidden(e)||Qo.resize(e)},window.addEventListener("resize",e._responsiveChartHandler)):Sa.clearResponsive(e);var d=Sa.extendFlat({},u._size),v=0;function m(){for(var C=u._basePlotModules,S=0;S<C.length;S++)C[S].drawFramework&&C[S].drawFramework(e);!u._glcanvas&&u._has("gl")&&(u._glcanvas=u._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],function(z){return z.key}),u._glcanvas.enter().append("canvas").attr("class",function(z){return"gl-canvas gl-canvas-"+z.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var g=e._context.plotGlPixelRatio;if(u._glcanvas){u._glcanvas.attr("width",u.width*g).attr("height",u.height*g).style("width",u.width+"px").style("height",u.height+"px");var P=u._glcanvas.data()[0].regl;if(P&&(Math.floor(u.width*g)!==P._gl.drawingBufferWidth||Math.floor(u.height*g)!==P._gl.drawingBufferHeight)){var E="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(v)Sa.error(E);else return Sa.log(E+" Clearing graph and plotting again."),Qo.cleanPlot([],{},e._fullData,u),Qo.supplyDefaults(e),u=e._fullLayout,Qo.doCalcdata(e),v++,m()}}return u.modebar.orientation==="h"?u._modebardiv.style("height",null).style("width","100%"):u._modebardiv.style("width",null).style("height",u.height+"px"),Qo.previousPromises(e)}function b(){if(Qo.clearAutoMarginIds(e),Au.drawMarginPushers(e),Vv.allowAutoMargin(e),e._fullLayout.title.text&&e._fullLayout.title.automargin&&Qo.allowAutoMargin(e,"title.automargin"),u._has("pie"))for(var C=e._fullData,S=0;S<C.length;S++){var g=C[S];g.type==="pie"&&g.automargin&&Qo.allowAutoMargin(e,"pie."+g.uid+".automargin")}return Qo.doAutoMargin(e),Qo.previousPromises(e)}function p(){if(Qo.didMarginChange(d,u._size))return Sa.syncOrAsync([b,Au.layoutStyles],e)}function k(){if(!f){M();return}return Sa.syncOrAsync([P0.getComponentMethod("shapes","calcAutorange"),P0.getComponentMethod("annotations","calcAutorange"),M],e)}function M(){e._transitioning||(Au.doAutoRangeAndConstraints(e),l&&Vv.saveRangeInitial(e),P0.getComponentMethod("rangeslider","calcAutorange")(e))}function T(){return Vv.draw(e,l?"":"redraw")}var L=[Qo.previousPromises,s,m,b,p];c&&L.push(k),L.push(Au.layoutStyles),c&&L.push(T,function(S){var g=S._fullLayout._insideTickLabelsUpdaterange;if(g)return S._fullLayout._insideTickLabelsUpdaterange=void 0,QM(S,g).then(function(){Vv.saveRangeInitial(S,!0)})}),L.push(Au.drawData,Au.finalDraw,Vdt,Qo.addLinks,Qo.rehover,Qo.redrag,Qo.reselect,Qo.doAutoMargin,Qo.previousPromises);var x=Sa.syncOrAsync(L,e);return(!x||!x.then)&&(x=Promise.resolve()),x.then(function(){return e4(e),e})}function e4(e){var t=e._fullLayout;t._redrawFromAutoMarginCount?t._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function Xdt(e){return Sa.extendFlat(Zhe,e)}function Yhe(e,t){try{e._fullLayout._paper.style("background",t)}catch(r){Sa.error(r)}}function Zdt(e,t){var r=Udt.combine(t,"white");Yhe(e,r)}function Khe(e,t){if(!e._context){e._context=Sa.extendDeep({},Zhe);var r=NP.select("base");e._context._baseUrl=r.size()&&r.attr("href")?window.location.href.split("#")[0]:""}var n=e._context,i,a,o;if(t){for(a=Object.keys(t),i=0;i<a.length;i++)o=a[i],!(o==="editable"||o==="edits")&&o in n&&(o==="setBackground"&&t[o]==="opaque"?n[o]=Zdt:n[o]=t[o]);var s=t.editable;if(s!==void 0)for(n.editable=s,a=Object.keys(n.edits),i=0;i<a.length;i++)n.edits[a[i]]=s;if(t.edits)for(a=Object.keys(t.edits),i=0;i<a.length;i++)o=a[i],o in n.edits&&(n.edits[o]=t.edits[o]);n._exportedPlot=t._exportedPlot}n.staticPlot&&(n.editable=!1,n.edits={},n.autosizable=!1,n.scrollZoom=!1,n.doubleClick=!1,n.showTips=!1,n.showLink=!1,n.displayModeBar=!1),n.displayModeBar==="hover"&&!Odt&&(n.displayModeBar=!0),(n.setBackground==="transparent"||typeof n.setBackground!="function")&&(n.setBackground=Yhe),n._hasZeroHeight=n._hasZeroHeight||e.clientHeight===0,n._hasZeroWidth=n._hasZeroWidth||e.clientWidth===0;var l=n.scrollZoom,u=n._scrollZoom={};if(l===!0)u.cartesian=1,u.gl3d=1,u.geo=1,u.mapbox=1,u.map=1;else if(typeof l=="string"){var c=l.split("+");for(i=0;i<c.length;i++)u[c[i]]=1}else l!==!1&&(u.gl3d=1,u.geo=1,u.mapbox=1,u.map=1)}function Ydt(e){if(e=Sa.getGraphDiv(e),!Sa.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return gh.cleanData(e.data),gh.cleanLayout(e.layout),e.calcdata=void 0,_l._doPlot(e).then(function(){return e.emit("plotly_redraw"),e})}function Kdt(e,t,r,n){return e=Sa.getGraphDiv(e),Qo.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),Qo.purge(e),_l._doPlot(e,t,r,n)}function UP(e,t){var r=t+1,n=[],i,a;for(i=0;i<e.length;i++)a=e[i],a<0?n.push(r+a):n.push(a);return n}function VP(e,t,r){var n,i;for(n=0;n<t.length;n++){if(i=t[n],i!==parseInt(i,10))throw new Error("all values in "+r+" must be integers");if(i>=e.data.length||i<-e.data.length)throw new Error(r+" must be valid indices for gd.data.");if(t.indexOf(i,n+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+r+" must be unique.")}}function Jhe(e,t,r){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),VP(e,t,"currentIndices"),typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&VP(e,r,"newIndices"),typeof r!="undefined"&&t.length!==r.length)throw new Error("current and new indices must be of equal length.")}function Jdt(e,t,r){var n,i;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(typeof t=="undefined")throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),n=0;n<t.length;n++)if(i=t[n],typeof i!="object"||Array.isArray(i)||i===null)throw new Error("all values in traces array must be non-array objects");if(typeof r!="undefined"&&!Array.isArray(r)&&(r=[r]),typeof r!="undefined"&&r.length!==t.length)throw new Error("if indices is specified, traces.length must equal indices.length")}function $dt(e,t,r,n){var i=Sa.isPlainObject(n);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!Sa.isPlainObject(t))throw new Error("update must be a key:value object");if(typeof r=="undefined")throw new Error("indices must be an integer or array of integers");VP(e,r,"indices");for(var a in t){if(!Array.isArray(t[a])||t[a].length!==r.length)throw new Error("attribute "+a+" must be an array of length equal to indices array length");if(i&&(!(a in n)||!Array.isArray(n[a])||n[a].length!==t[a].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 correspondence with the keys and number of traces in the update object")}}function Qdt(e,t,r,n){var i=Sa.isPlainObject(n),a=[],o,s,l,u,c;Array.isArray(r)||(r=[r]),r=UP(r,e.data.length-1);for(var f in t)for(var h=0;h<r.length;h++){if(o=e.data[r[h]],l=Ec(o,f),s=l.get(),u=t[f][h],!Sa.isArrayOrTypedArray(u))throw new Error("attribute: "+f+" index: "+h+" must be an array");if(!Sa.isArrayOrTypedArray(s))throw new Error("cannot extend missing or non-array attribute: "+f);if(s.constructor!==u.constructor)throw new Error("cannot extend array with an array of a different type: "+f);c=i?n[f][h]:n,qdt(c)||(c=-1),a.push({prop:l,target:s,insert:u,maxp:Math.floor(c)})}return a}function $he(e,t,r,n,i){$dt(e,t,r,n);for(var a=Qdt(e,t,r,n),o={},s={},l=0;l<a.length;l++){var u=a[l].prop,c=a[l].maxp,f=i(a[l].target,a[l].insert,c);u.set(f[0]),Array.isArray(o[u.astr])||(o[u.astr]=[]),o[u.astr].push(f[1]),Array.isArray(s[u.astr])||(s[u.astr]=[]),s[u.astr].push(a[l].target.length)}return{update:o,maxPoints:s}}function Qhe(e,t){var r=new e.constructor(e.length+t.length);return r.set(e),r.set(t,e.length),r}function ede(e,t,r,n){e=Sa.getGraphDiv(e);function i(l,u,c){var f,h;if(Sa.isTypedArray(l))if(c<0){var d=new l.constructor(0),v=Qhe(l,u);c<0?(f=v,h=d):(f=d,h=v)}else if(f=new l.constructor(c),h=new l.constructor(l.length+u.length-c),c===u.length)f.set(u),h.set(l);else if(c<u.length){var m=u.length-c;f.set(u.subarray(m)),h.set(l),h.set(u.subarray(0,m),l.length)}else{var b=c-u.length,p=l.length-b;f.set(l.subarray(p)),f.set(u,b),h.set(l.subarray(0,p))}else f=l.concat(u),h=c>=0&&c<f.length?f.splice(0,f.length-c):[];return[f,h]}var a=$he(e,t,r,n,i),o=_l.redraw(e),s=[e,a.update,r,a.maxPoints];return op.add(e,_l.prependTraces,s,ede,arguments),o}function tde(e,t,r,n){e=Sa.getGraphDiv(e);function i(l,u,c){var f,h;if(Sa.isTypedArray(l))if(c<=0){var d=new l.constructor(0),v=Qhe(u,l);c<0?(f=v,h=d):(f=d,h=v)}else if(f=new l.constructor(c),h=new l.constructor(l.length+u.length-c),c===u.length)f.set(u),h.set(l);else if(c<u.length){var m=u.length-c;f.set(u.subarray(0,m)),h.set(u.subarray(m)),h.set(l,m)}else{var b=c-u.length;f.set(u),f.set(l.subarray(0,b),u.length),h.set(l.subarray(b))}else f=u.concat(l),h=c>=0&&c<f.length?f.splice(c,f.length):[];return[f,h]}var a=$he(e,t,r,n,i),o=_l.redraw(e),s=[e,a.update,r,a.maxPoints];return op.add(e,_l.extendTraces,s,tde,arguments),o}function rde(e,t,r){e=Sa.getGraphDiv(e);var n=[],i=_l.deleteTraces,a=rde,o=[e,n],s=[e,t],l,u;for(Jdt(e,t,r),Array.isArray(t)||(t=[t]),t=t.map(function(c){return Sa.extendFlat({},c)}),gh.cleanData(t),l=0;l<t.length;l++)e.data.push(t[l]);for(l=0;l<t.length;l++)n.push(-t.length+l);if(typeof r=="undefined")return u=_l.redraw(e),op.add(e,i,o,a,s),u;Array.isArray(r)||(r=[r]);try{Jhe(e,n,r)}catch(c){throw e.data.splice(e.data.length-t.length,t.length),c}return op.startSequence(e),op.add(e,i,o,a,s),u=_l.moveTraces(e,n,r),op.stopSequence(e),u}function ide(e,t){e=Sa.getGraphDiv(e);var r=[],n=_l.addTraces,i=ide,a=[e,r,t],o=[e,t],s,l;if(typeof t=="undefined")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(t)||(t=[t]),VP(e,t,"indices"),t=UP(t,e.data.length-1),t.sort(Sa.sorterDes),s=0;s<t.length;s+=1)l=e.data.splice(t[s],1)[0],r.push(l);var u=_l.redraw(e);return op.add(e,n,a,i,o),u}function rU(e,t,r){e=Sa.getGraphDiv(e);var n=[],i=[],a=rU,o=rU,s=[e,r,t],l=[e,t,r],u;if(Jhe(e,t,r),t=Array.isArray(t)?t:[t],typeof r=="undefined")for(r=[],u=0;u<t.length;u++)r.push(-t.length+u);for(r=Array.isArray(r)?r:[r],t=UP(t,e.data.length-1),r=UP(r,e.data.length-1),u=0;u<e.data.length;u++)t.indexOf(u)===-1&&n.push(e.data[u]);for(u=0;u<t.length;u++)i.push({newIndex:r[u],trace:e.data[t[u]]});for(i.sort(function(f,h){return f.newIndex-h.newIndex}),u=0;u<i.length;u+=1)n.splice(i[u].newIndex,0,i[u].trace);e.data=n;var c=_l.redraw(e);return op.add(e,a,s,o,l),c}function GP(e,t,r,n){e=Sa.getGraphDiv(e),gh.clearPromiseQueue(e);var i={};if(typeof t=="string")i[t]=r;else if(Sa.isPlainObject(t))i=Sa.extendFlat({},t),n===void 0&&(n=r);else return Sa.warn("Restyle fail.",t,r,n),Promise.reject();Object.keys(i).length&&(e.changed=!0);var a=gh.coerceTraceIndices(e,n),o=nde(e,i,a),s=o.flags;s.calc&&(e.calcdata=void 0),s.clearAxisTypes&&gh.clearAxisTypes(e,a,{});var l=[];s.fullReplot?l.push(_l._doPlot):(l.push(Qo.previousPromises),Qo.supplyDefaults(e),s.markerSize&&(Qo.doCalcdata(e),ZP(l)),s.style&&l.push(Au.doTraceStyle),s.colorbars&&l.push(Au.doColorBars),l.push(e4)),l.push(Qo.rehover,Qo.redrag,Qo.reselect),op.add(e,GP,[e,o.undoit,o.traces],GP,[e,o.redoit,o.traces]);var u=Sa.syncOrAsync(l,e);return(!u||!u.then)&&(u=Promise.resolve()),u.then(function(){return e.emit("plotly_restyle",o.eventData),e})}function zy(e){return e===void 0?null:e}function BP(e,t){return t?function(r,n,i){var a=Ec(r,n),o=a.set;return a.set=function(s){var l=(i||"")+n;HP(l,a.get(),s,e),o(s)},a}:Ec}function HP(e,t,r,n){if(Array.isArray(t)||Array.isArray(r))for(var i=Array.isArray(t)?t:[],a=Array.isArray(r)?r:[],o=Math.max(i.length,a.length),s=0;s<o;s++)HP(e+"["+s+"]",i[s],a[s],n);else if(Sa.isPlainObject(t)||Sa.isPlainObject(r)){var l=Sa.isPlainObject(t)?t:{},u=Sa.isPlainObject(r)?r:{},c=Sa.extendFlat({},l,u);for(var f in c)HP(e+"."+f,l[f],u[f],n)}else n[e]===void 0&&(n[e]=zy(t))}function evt(e,t,r){for(var n in r){var i=Ec(e,n);HP(n,i.get(),r[n],t)}}function nde(e,t,r){var n=e._fullLayout,i=e._fullData,a=e.data,o=n._guiEditing,s=BP(n._preGUI,o),l=Sa.extendDeepAll({},t),u,c=T_.traceFlags(),f={},h={},d;function v(){return r.map(function(){})}function m(me){var Pe=Vv.id2name(me);d.indexOf(Pe)===-1&&d.push(Pe)}function b(me){return"LAYOUT"+me+".autorange"}function p(me){return"LAYOUT"+me+".range"}function k(me){for(var Pe=me;Pe<i.length;Pe++)if(i[Pe]._input===a[me])return i[Pe]}function M(me,Pe,ce){if(Array.isArray(me)){me.forEach(function(Ht){M(Ht,Pe,ce)});return}if(!(me in t||gh.hasParent(t,me))){var He;if(me.slice(0,6)==="LAYOUT")He=s(e.layout,me.replace("LAYOUT",""));else{var lt=r[ce],mt=n._tracePreGUI[k(lt)._fullInput.uid];He=BP(mt,o)(a[lt],me)}me in h||(h[me]=v()),h[me][ce]===void 0&&(h[me][ce]=zy(He.get())),Pe!==void 0&&He.set(Pe)}}function T(me){return function(Pe){return i[Pe][me]}}function L(me){return function(Pe,ce){return Pe===!1?i[r[ce]][me]:null}}for(var x in t){if(gh.hasParent(t,x))throw new Error("cannot set "+x+" and a parent attribute simultaneously");var C=t[x],S,g,P,E,z,q;if((x==="autobinx"||x==="autobiny")&&(x=x.charAt(x.length-1)+"bins",Array.isArray(C)?C=C.map(L(x)):C===!1?C=r.map(T(x)):C=null),f[x]=C,x.slice(0,6)==="LAYOUT"){P=s(e.layout,x.replace("LAYOUT","")),h[x]=[zy(P.get())],P.set(Array.isArray(C)?C[0]:C),c.calc=!0;continue}for(h[x]=v(),u=0;u<r.length;u++){S=a[r[u]],g=k(r[u]);var V=n._tracePreGUI[g._fullInput.uid];if(P=BP(V,o)(S,x),E=P.get(),z=Array.isArray(C)?C[u%C.length]:C,z!==void 0){var G=P.parts[P.parts.length-1],Z=x.slice(0,x.length-G.length-1),j=Z?Z+".":"",N=Z?Ec(g,Z).get():g;if(q=XP.getTraceValObject(g,P.parts),q&&q.impliedEdits&&z!==null)for(var H in q.impliedEdits)M(Sa.relativeAttr(x,H),q.impliedEdits[H],u);else if((G==="thicknessmode"||G==="lenmode")&&E!==z&&(z==="fraction"||z==="pixels")&&N){var ie=n._size,ae=N.orient,_e=ae==="top"||ae==="bottom";if(G==="thicknessmode"){var Ee=_e?ie.h:ie.w;M(j+"thickness",N.thickness*(z==="fraction"?1/Ee:Ee),u)}else{var Ce=_e?ie.w:ie.h;M(j+"len",N.len*(z==="fraction"?1/Ce:Ce),u)}}else if(x==="type"&&(z==="pie"!=(E==="pie")||z==="funnelarea"!=(E==="funnelarea"))){var ge="x",re="y";(z==="bar"||E==="bar")&&S.orientation==="h"&&(ge="y",re="x"),Sa.swapAttrs(S,["?","?src"],"labels",ge),Sa.swapAttrs(S,["d?","?0"],"label",ge),Sa.swapAttrs(S,["?","?src"],"values",re),E==="pie"||E==="funnelarea"?(Ec(S,"marker.color").set(Ec(S,"marker.colors").get()),n._pielayer.selectAll("g.trace").remove()):P0.traceIs(S,"cartesian")&&Ec(S,"marker.colors").set(Ec(S,"marker.color").get())}h[x][u]=zy(E);var Se=["swapxy","swapxyaxes","orientation","orientationaxes"];if(Se.indexOf(x)!==-1){if(x==="orientation"){P.set(z);var ke=S.x&&!S.y?"h":"v";if((P.get()||ke)===g.orientation)continue}else x==="orientationaxes"&&(S.orientation={v:"h",h:"v"}[g.orientation]);gh.swapXYData(S),c.calc=c.clearAxisTypes=!0}else Qo.dataArrayContainers.indexOf(P.parts[0])!==-1?(gh.manageArrayContainers(P,z,h),c.calc=!0):(q?q.arrayOk&&!P0.traceIs(g,"regl")&&(Sa.isArrayOrTypedArray(z)||Sa.isArrayOrTypedArray(E))?c.calc=!0:T_.update(c,q):c.calc=!0,P.set(z))}}if(["swapxyaxes","orientationaxes"].indexOf(x)!==-1&&Vv.swap(e,r),x==="orientationaxes"){var be=Ec(e.layout,"hovermode"),Be=be.get();Be==="x"?be.set("y"):Be==="y"?be.set("x"):Be==="x unified"?be.set("y unified"):Be==="y unified"&&be.set("x unified")}if(["orientation","type"].indexOf(x)!==-1){for(d=[],u=0;u<r.length;u++){var Le=a[r[u]];P0.traceIs(Le,"cartesian")&&(m(Le.xaxis||"x"),m(Le.yaxis||"y"))}M(d.map(b),!0,0),M(d.map(p),[0,1],0)}}return(c.calc||c.plot)&&(c.fullReplot=!0),{flags:c,undoit:h,redoit:f,traces:r,eventData:Sa.extendDeepNoArrays([],[l,r])}}function QM(e,t,r){e=Sa.getGraphDiv(e),gh.clearPromiseQueue(e);var n={};if(typeof t=="string")n[t]=r;else if(Sa.isPlainObject(t))n=Sa.extendFlat({},t);else return Sa.warn("Relayout fail.",t,r),Promise.reject();Object.keys(n).length&&(e.changed=!0);var i=lde(e,n),a=i.flags;a.calc&&(e.calcdata=void 0);var o=[Qo.previousPromises];a.layoutReplot?o.push(Au.layoutReplot):Object.keys(n).length&&(ade(e,a,i)||Qo.supplyDefaults(e),a.legend&&o.push(Au.doLegend),a.layoutstyle&&o.push(Au.layoutStyles),a.axrange&&ZP(o,i.rangesAltered),a.ticks&&o.push(Au.doTicksRelayout),a.modebar&&o.push(Au.doModeBar),a.camera&&o.push(Au.doCamera),a.colorbars&&o.push(Au.doColorBars),o.push(e4)),o.push(Qo.rehover,Qo.redrag,Qo.reselect),op.add(e,QM,[e,i.undoit],QM,[e,i.redoit]);var s=Sa.syncOrAsync(o,e);return(!s||!s.then)&&(s=Promise.resolve(e)),s.then(function(){return e.emit("plotly_relayout",i.eventData),e})}function ade(e,t,r){var n=e._fullLayout;if(!t.axrange)return!1;for(var i in t)if(i!=="axrange"&&t[i])return!1;var a,o,s=function(d,v){return Sa.coerce(a,o,Ndt,d,v)},l={};for(var u in r.rangesAltered){var c=Vv.id2name(u);if(a=e.layout[c],o=n[c],Bdt(a,o,s,l),o._matchGroup){for(var f in o._matchGroup)if(f!==u){var h=n[Vv.id2name(f)];h.autorange=o.autorange,h.range=o.range.slice(),h._input.range=o.range.slice()}}}return!0}function ZP(e,t){var r=t?function(n){var i=[],a=!0;for(var o in t){var s=Vv.getFromId(n,o);if(i.push(o),(s.ticklabelposition||"").indexOf("inside")!==-1&&s._anchorAxis&&i.push(s._anchorAxis._id),s._matchGroup)for(var l in s._matchGroup)t[l]||i.push(l)}return Vv.draw(n,i,{skipTitle:a})}:function(n){return Vv.draw(n,"redraw")};e.push(Hdt,Au.doAutoRangeAndConstraints,r,Au.drawData,Au.finalDraw)}var ode=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,sde=/^[xyz]axis[0-9]*\.autorange$/,tvt=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function lde(e,t){var r=e.layout,n=e._fullLayout,i=n._guiEditing,a=BP(n._preGUI,i),o=Object.keys(t),s=Vv.list(e),l=Sa.extendDeepAll({},t),u={},c,f,h;for(o=Object.keys(t),f=0;f<o.length;f++)if(o[f].indexOf("allaxes")===0){for(h=0;h<s.length;h++){var d=s[h]._id.slice(1),v=d.indexOf("scene")!==-1?d+".":"",m=o[f].replace("allaxes",v+s[h]._name);t[m]||(t[m]=t[o[f]])}delete t[o[f]]}var b=T_.layoutFlags(),p={},k={};function M(mt,Ht){if(Array.isArray(mt)){mt.forEach(function(ct){M(ct,Ht)});return}if(!(mt in t||gh.hasParent(t,mt))){var at=a(r,mt);mt in k||(k[mt]=zy(at.get())),Ht!==void 0&&at.set(Ht)}}var T={},L;function x(mt){var Ht=Vv.name2id(mt.split(".")[0]);return T[Ht]=1,Ht}for(var C in t){if(gh.hasParent(t,C))throw new Error("cannot set "+C+" and a parent attribute simultaneously");for(var S=a(r,C),g=t[C],P=S.parts.length,E=P-1;E>0&&typeof S.parts[E]!="string";)E--;var z=S.parts[E],q=S.parts[E-1]+"."+z,V=S.parts.slice(0,E).join("."),G=Ec(e.layout,V).get(),Z=Ec(n,V).get(),j=S.get();if(g!==void 0){p[C]=g,k[C]=z==="reverse"?g:zy(j);var N=XP.getLayoutValObject(n,S.parts);if(N&&N.impliedEdits&&g!==null)for(var H in N.impliedEdits)M(Sa.relativeAttr(C,H),N.impliedEdits[H]);if(["width","height"].indexOf(C)!==-1)if(g){M("autosize",null);var ie=C==="height"?"width":"height";M(ie,n[ie])}else n[C]=e._initialAutoSize[C];else if(C==="autosize")M("width",g?null:n.width),M("height",g?null:n.height);else if(q.match(ode))x(q),Ec(n,V+"._inputRange").set(null);else if(q.match(sde)){x(q),Ec(n,V+"._inputRange").set(null);var ae=Ec(n,V).get();ae._inputDomain&&(ae._input.domain=ae._inputDomain.slice())}else q.match(tvt)&&Ec(n,V+"._inputDomain").set(null);if(z==="type"){L=G;var _e=Z.type==="linear"&&g==="log",Ee=Z.type==="log"&&g==="linear";if(_e||Ee){if(!L||!L.range)M(V+".autorange",!0);else if(Z.autorange)_e&&(L.range=L.range[1]>L.range[0]?[1,2]:[2,1]);else{var Ce=L.range[0],ge=L.range[1];_e?(Ce<=0&&ge<=0&&M(V+".autorange",!0),Ce<=0?Ce=ge/1e6:ge<=0&&(ge=Ce/1e6),M(V+".range[0]",Math.log(Ce)/Math.LN10),M(V+".range[1]",Math.log(ge)/Math.LN10)):(M(V+".range[0]",Math.pow(10,Ce)),M(V+".range[1]",Math.pow(10,ge)))}Array.isArray(n._subplots.polar)&&n._subplots.polar.length&&n[S.parts[0]]&&S.parts[1]==="radialaxis"&&delete n[S.parts[0]]._subplot.viewInitial["radialaxis.range"],P0.getComponentMethod("annotations","convertCoords")(e,Z,g,M),P0.getComponentMethod("images","convertCoords")(e,Z,g,M)}else M(V+".autorange",!0),M(V+".range",null);Ec(n,V+"._inputRange").set(null)}else if(z.match(jdt)){var re=Ec(n,C).get(),Se=(g||{}).type;(!Se||Se==="-")&&(Se="linear"),P0.getComponentMethod("annotations","convertCoords")(e,re,Se,M),P0.getComponentMethod("images","convertCoords")(e,re,Se,M)}var ke=OP.containerArrayMatch(C);if(ke){c=ke.array,f=ke.index;var be=ke.property,Be=N||{editType:"calc"};f!==""&&be===""&&(OP.isAddVal(g)?k[C]=null:OP.isRemoveVal(g)?k[C]=(Ec(r,c).get()||[])[f]:Sa.warn("unrecognized full object value",t)),T_.update(b,Be),u[c]||(u[c]={});var Le=u[c][f];Le||(Le=u[c][f]={}),Le[be]=g,delete t[C]}else z==="reverse"?(G.range?G.range.reverse():(M(V+".autorange",!0),G.range=[1,0]),Z.autorange?b.calc=!0:b.plot=!0):(C==="dragmode"&&(g===!1&&j!==!1||g!==!1&&j===!1)||n._has("scatter-like")&&n._has("regl")&&C==="dragmode"&&(g==="lasso"||g==="select")&&!(j==="lasso"||j==="select")?b.plot=!0:N?T_.update(b,N):b.calc=!0,S.set(g))}}for(c in u){var me=OP.applyContainerArrayChanges(e,a(r,c),u[c],b,a);me||(b.plot=!0)}for(var Pe in T){L=Vv.getFromId(e,Pe);var ce=L&&L._constraintGroup;if(ce){b.calc=!0;for(var He in ce)T[He]||(Vv.getFromId(e,He)._constraintShrinkable=!0)}}(ude(e)||t.height||t.width)&&(b.plot=!0);var lt=n.shapes;for(f=0;f<lt.length;f++)if(lt[f].showlegend){b.calc=!0;break}return(b.plot||b.calc)&&(b.layoutReplot=!0),{flags:b,rangesAltered:T,undoit:k,redoit:p,eventData:l}}function ude(e){var t=e._fullLayout,r=t.width,n=t.height;return e.layout.autosize&&Qo.plotAutoSize(e,e.layout,t),t.width!==r||t.height!==n}function jP(e,t,r,n){e=Sa.getGraphDiv(e),gh.clearPromiseQueue(e),Sa.isPlainObject(t)||(t={}),Sa.isPlainObject(r)||(r={}),Object.keys(t).length&&(e.changed=!0),Object.keys(r).length&&(e.changed=!0);var i=gh.coerceTraceIndices(e,n),a=nde(e,Sa.extendFlat({},t),i),o=a.flags,s=lde(e,Sa.extendFlat({},r)),l=s.flags;(o.calc||l.calc)&&(e.calcdata=void 0),o.clearAxisTypes&&gh.clearAxisTypes(e,i,r);var u=[];l.layoutReplot?u.push(Au.layoutReplot):o.fullReplot?u.push(_l._doPlot):(u.push(Qo.previousPromises),ade(e,l,s)||Qo.supplyDefaults(e),o.style&&u.push(Au.doTraceStyle),(o.colorbars||l.colorbars)&&u.push(Au.doColorBars),l.legend&&u.push(Au.doLegend),l.layoutstyle&&u.push(Au.layoutStyles),l.axrange&&ZP(u,s.rangesAltered),l.ticks&&u.push(Au.doTicksRelayout),l.modebar&&u.push(Au.doModeBar),l.camera&&u.push(Au.doCamera),u.push(e4)),u.push(Qo.rehover,Qo.redrag,Qo.reselect),op.add(e,jP,[e,a.undoit,s.undoit,a.traces],jP,[e,a.redoit,s.redoit,a.traces]);var c=Sa.syncOrAsync(u,e);return(!c||!c.then)&&(c=Promise.resolve(e)),c.then(function(){return e.emit("plotly_update",{data:a.eventData,layout:s.eventData}),e})}function iU(e){return function(r){r._fullLayout._guiEditing=!0;var n=e.apply(null,arguments);return r._fullLayout._guiEditing=!1,n}}var rvt=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^(map\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],ivt=[{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 jhe(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=e.match(n.pattern);if(i){var a=i[1]||"";return{head:a,tail:e.slice(a.length+1),attr:n.attr}}}}function Whe(e,t){var r=Ec(t,e).get();if(r!==void 0)return r;var n=e.split(".");for(n.pop();n.length>1;)if(n.pop(),r=Ec(t,n.join(".")+".uirevision").get(),r!==void 0)return r;return t.uirevision}function nvt(e,t){for(var r=0;r<t.length;r++)if(t[r]._fullInput.uid===e)return r;return-1}function avt(e,t,r){for(var n=0;n<t.length;n++)if(t[n].uid===e)return n;return!t[r]||t[r].uid?-1:r}function Xhe(e,t){var r=Sa.isPlainObject(e),n=Array.isArray(e);return r||n?(r&&Sa.isPlainObject(t)||n&&Array.isArray(t))&&JSON.stringify(e)===JSON.stringify(t):e===t}function ovt(e,t,r,n){var i=n._preGUI,a,o,s,l,u,c,f,h,d,v,m=[],b={},p={};for(a in i){if(u=jhe(a,rvt),u){if(d=u.head,v=u.tail,o=u.attr||d+".uirevision",s=Ec(n,o).get(),l=s&&Whe(o,t),l&&l===s){if(c=i[a],c===null&&(c=void 0),f=Ec(t,a),h=f.get(),Xhe(h,c)){h===void 0&&v==="autorange"&&m.push(d),f.set(zy(Ec(n,a).get()));continue}else if(v==="autorange"||v.slice(0,6)==="range["){var k=i[d+".range[0]"],M=i[d+".range[1]"],T=i[d+".autorange"];if(T||T===null&&k===null&&M===null){if(!(d in b)){var L=Ec(t,d).get();b[d]=L&&(L.autorange||L.autorange!==!1&&(!L.range||L.range.length!==2))}if(b[d]){f.set(zy(Ec(n,a).get()));continue}}}}}else Sa.warn("unrecognized GUI edit: "+a);delete i[a],u&&u.tail.slice(0,6)==="range["&&(p[u.head]=1)}for(var x=0;x<m.length;x++){var C=m[x];if(p[C]){var S=Ec(t,C).get();S&&delete S.autorange}}var g=n._tracePreGUI;for(var P in g){var E=g[P],z=null,q;for(a in E){if(!z){var V=nvt(P,r);if(V<0){delete g[P];break}var G=r[V];q=G._fullInput;var Z=avt(P,e,q.index);if(Z<0){delete g[P];break}z=e[Z]}if(u=jhe(a,ivt),u){if(u.attr?(s=Ec(n,u.attr).get(),l=s&&Whe(u.attr,t)):(s=q.uirevision,l=z.uirevision,l===void 0&&(l=t.uirevision)),l&&l===s&&(c=E[a],c===null&&(c=void 0),f=Ec(z,a),h=f.get(),Xhe(h,c))){f.set(zy(Ec(q,a).get()));continue}}else Sa.warn("unrecognized GUI edit: "+a+" in trace uid "+P);delete E[a]}}}function svt(e,t,r,n){var i,a;function o(){return _l.addFrames(e,i)}e=Sa.getGraphDiv(e),gh.clearPromiseQueue(e);var s=e._fullData,l=e._fullLayout;if(!Sa.isPlotDiv(e)||!s||!l)a=_l.newPlot(e,t,r,n);else{if(Sa.isPlainObject(t)){var u=t;t=u.data,r=u.layout,n=u.config,i=u.frames}var c=!1;if(n){let q=Sa.extendDeepAll({},e._context);e._context=void 0,Khe(e,n),c=!gh.collectionsAreEqual(q,e._context)}if(c){let q=e._ev.eventNames().map(V=>[V,e._ev.listeners(V)]);a=_l.newPlot(e,t,r,n).then(()=>{for(let[V,G]of q)G.forEach(Z=>e.on(V,Z));return _l.react(e,t,r,n)})}else{e.data=t||[],gh.cleanData(e.data),e.layout=r||{},gh.cleanLayout(e.layout),ovt(e.data,e.layout,s,l),Qo.supplyDefaults(e,{skipUpdateCalc:!0});var f=e._fullData,h=e._fullLayout,d=h.datarevision===void 0,v=h.transition,m=uvt(e,l,h,d,v),b=m.newDataRevision,p=lvt(e,s,f,d,v,b);if(ude(e)&&(m.layoutReplot=!0),p.calc||m.calc){e.calcdata=void 0;for(var k=Object.getOwnPropertyNames(h),M=0;M<k.length;M++){var T=k[M],L=T.substring(0,5);if(L==="xaxis"||L==="yaxis"){var x=h[T]._emptyCategories;x&&x()}}}else Qo.supplyDefaultsUpdateCalc(e.calcdata,f);var C=[];if(i&&(e._transitionData={},Qo.createTransitionData(e),C.push(o)),h.transition&&(p.anim||m.anim))m.ticks&&C.push(Au.doTicksRelayout),Qo.doCalcdata(e),Au.doAutoRangeAndConstraints(e),C.push(function(){return Qo.transitionFromReact(e,p,m,l)});else if(p.fullReplot||m.layoutReplot)e._fullLayout._skipDefaults=!0,C.push(_l._doPlot);else{for(var S in m.arrays){var g=m.arrays[S];if(g.length){var P=P0.getComponentMethod(S,"drawOne");if(P!==Sa.noop)for(var E=0;E<g.length;E++)P(e,g[E]);else{var z=P0.getComponentMethod(S,"draw");if(z===Sa.noop)throw new Error("cannot draw components: "+S);z(e)}}}C.push(Qo.previousPromises),p.style&&C.push(Au.doTraceStyle),(p.colorbars||m.colorbars)&&C.push(Au.doColorBars),m.legend&&C.push(Au.doLegend),m.layoutstyle&&C.push(Au.layoutStyles),m.axrange&&ZP(C),m.ticks&&C.push(Au.doTicksRelayout),m.modebar&&C.push(Au.doModeBar),m.camera&&C.push(Au.doCamera),C.push(e4)}C.push(Qo.rehover,Qo.redrag,Qo.reselect),a=Sa.syncOrAsync(C,e),(!a||!a.then)&&(a=Promise.resolve(e))}}return a.then(()=>(c||e.emit("plotly_react",{config:n,data:t,layout:r}),e))}function lvt(e,t,r,n,i,a){var o=t.length===r.length;if(!i&&!o)return{fullReplot:!0,calc:!0};var s=T_.traceFlags();s.arrays={},s.nChanges=0,s.nChangesAnim=0;var l,u;function c(d){var v=XP.getTraceValObject(u,d);return!u._module.animatable&&v.anim&&(v.anim=!1),v}var f={getValObject:c,flags:s,immutable:n,transition:i,newDataRevision:a,gd:e},h={};for(l=0;l<t.length;l++)if(r[l]){if(u=r[l]._fullInput,h[u.uid])continue;h[u.uid]=1,WP(t[l]._fullInput,u,[],f)}return(s.calc||s.plot)&&(s.fullReplot=!0),i&&s.nChanges&&s.nChangesAnim&&(s.anim=s.nChanges===s.nChangesAnim&&o?"all":"some"),s}function uvt(e,t,r,n,i){var a=T_.layoutFlags();a.arrays={},a.rangesAltered={},a.nChanges=0,a.nChangesAnim=0;function o(h){return XP.getLayoutValObject(r,h)}for(var s in r)if(!(!s.startsWith("xaxis")&&!s.startsWith("yaxis"))&&t[s]){var l=r[s].domain,u=t[s].domain,c=t[s]._inputDomain;t[s]._inputDomain&&(l[0]===c[0]&&l[1]===c[1]?r[s].domain=t[s].domain:(l[0]!==u[0]||l[1]!==u[1])&&(r[s]._inputDomain=null))}var f={getValObject:o,flags:a,immutable:n,transition:i,gd:e};return WP(t,r,[],f),(a.plot||a.calc)&&(a.layoutReplot=!0),i&&a.nChanges&&a.nChangesAnim&&(a.anim=a.nChanges===a.nChangesAnim?"all":"some"),a}function WP(e,t,r,n){var i,a,o,s=n.getValObject,l=n.flags,u=n.immutable,c=n.inArray,f=n.arrayIndex;function h(){var V=i.editType;if(c&&V.indexOf("arraydraw")!==-1){Sa.pushUnique(l.arrays[c],f);return}T_.update(l,i),V!=="none"&&l.nChanges++,n.transition&&i.anim&&l.nChangesAnim++,(ode.test(o)||sde.test(o))&&(l.rangesAltered[r[0]]=1),a==="datarevision"&&(l.newDataRevision=1)}function d(V){return V.valType==="data_array"||V.arrayOk}for(a in e){if(l.calc&&!n.transition)return;var v=e[a],m=t[a],b=r.concat(a);if(o=b.join("."),!(a.charAt(0)==="_"||typeof v=="function"||v===m)){if((a==="tick0"||a==="dtick")&&r[0]!=="geo"){var p=t.tickmode;if(p==="auto"||p==="array"||!p)continue}if(!(a==="range"&&t.autorange)&&!((a==="zmin"||a==="zmax")&&t.type==="contourcarpet")&&(i=s(b),!!i&&!(i._compareAsJSON&&JSON.stringify(v)===JSON.stringify(m)))){var k=i.valType,M,T=d(i),L=Array.isArray(v),x=Array.isArray(m);if(L&&x){var C="_input_"+a,S=e[C],g=t[C];if(Array.isArray(S)&&S===g)continue}if(m===void 0)T&&L?l.calc=!0:h();else if(i._isLinkedToArray){var P=[],E=!1;c||(l.arrays[a]=P);var z=Math.min(v.length,m.length),q=Math.max(v.length,m.length);if(z!==q)if(i.editType==="arraydraw")E=!0;else{h();continue}for(M=0;M<z;M++)WP(v[M],m[M],b.concat(M),Sa.extendFlat({inArray:a,arrayIndex:M},n));if(E)for(M=z;M<q;M++)P.push(M)}else!k&&Sa.isPlainObject(v)?WP(v,m,b,n):T?L&&x?(u&&(l.calc=!0),(u||n.newDataRevision)&&h()):L!==x?l.calc=!0:h():L&&x?(v.length!==m.length||String(v)!==String(m))&&h():h()}}}for(a in t)if(!(a in e||a.charAt(0)==="_"||typeof t[a]=="function"))if(i=s(r.concat(a)),d(i)&&Array.isArray(t[a])){l.calc=!0;return}else h()}function cvt(e,t,r){if(e=Sa.getGraphDiv(e),!Sa.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/");var n=e._transitionData;n._frameQueue||(n._frameQueue=[]),r=Qo.supplyAnimationDefaults(r);var i=r.transition,a=r.frame;n._frameWaitingCnt===void 0&&(n._frameWaitingCnt=0);function o(u){return Array.isArray(i)?u>=i.length?i[0]:i[u]:i}function s(u){return Array.isArray(a)?u>=a.length?a[0]:a[u]:a}function l(u,c){var f=0;return function(){if(u&&++f===c)return u()}}return new Promise(function(u,c){function f(){if(n._frameQueue.length!==0){for(;n._frameQueue.length;){var z=n._frameQueue.pop();z.onInterrupt&&z.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function h(z){if(z.length!==0){for(var q=0;q<z.length;q++){var V;z[q].type==="byname"?V=Qo.computeFrame(e,z[q].name):V=z[q].data;var G=s(q),Z=o(q);Z.duration=Math.min(Z.duration,G.duration);var j={frame:V,name:z[q].name,frameOpts:G,transitionOpts:Z};q===z.length-1&&(j.onComplete=l(u,2),j.onInterrupt=c),n._frameQueue.push(j)}r.mode==="immediate"&&(n._lastFrameAt=-1/0),n._animationRaf||m()}}function d(){e.emit("plotly_animated"),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function v(){n._currentFrame&&n._currentFrame.onComplete&&n._currentFrame.onComplete();var z=n._currentFrame=n._frameQueue.shift();if(z){var q=z.name?z.name.toString():null;e._fullLayout._currentFrame=q,n._lastFrameAt=Date.now(),n._timeToNext=z.frameOpts.duration,Qo.transition(e,z.frame.data,z.frame.layout,gh.coerceTraceIndices(e,z.frame.traces),z.frameOpts,z.transitionOpts).then(function(){z.onComplete&&z.onComplete()}),e.emit("plotly_animatingframe",{name:q,frame:z.frame,animation:{frame:z.frameOpts,transition:z.transitionOpts}})}else d()}function m(){e.emit("plotly_animating"),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var z=function(){n._animationRaf=window.requestAnimationFrame(z),Date.now()-n._lastFrameAt>n._timeToNext&&v()};z()}var b=0;function p(z){return Array.isArray(i)?b>=i.length?z.transitionOpts=i[b]:z.transitionOpts=i[0]:z.transitionOpts=i,b++,z}var k,M,T=[],L=t==null,x=Array.isArray(t),C=!L&&!x&&Sa.isPlainObject(t);if(C)T.push({type:"object",data:p(Sa.extendFlat({},t))});else if(L||["string","number"].indexOf(typeof t)!==-1)for(k=0;k<n._frames.length;k++)M=n._frames[k],M&&(L||String(M.group)===String(t))&&T.push({type:"byname",name:String(M.name),data:p({name:M.name})});else if(x)for(k=0;k<t.length;k++){var S=t[k];["number","string"].indexOf(typeof S)!==-1?(S=String(S),T.push({type:"byname",name:S,data:p({name:S})})):Sa.isPlainObject(S)&&T.push({type:"object",data:p(Sa.extendFlat({},S))})}for(k=0;k<T.length;k++)if(M=T[k],M.type==="byname"&&!n._frameHash[M.data.name]){Sa.warn('animate failure: frame not found: "'+M.data.name+'"'),c();return}["next","immediate"].indexOf(r.mode)!==-1&&f(),r.direction==="reverse"&&T.reverse();var g=e._fullLayout._currentFrame;if(g&&r.fromcurrent){var P=-1;for(k=0;k<T.length;k++)if(M=T[k],M.type==="byname"&&M.name===g){P=k;break}if(P>0&&P<T.length-1){var E=[];for(k=0;k<T.length;k++)M=T[k],(T[k].type!=="byname"||k>P)&&E.push(M);T=E}}T.length>0?h(T):(e.emit("plotly_animated"),u())})}function fvt(e,t,r){if(e=Sa.getGraphDiv(e),t==null)return Promise.resolve();if(!Sa.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var n,i,a,o,s=e._transitionData._frames,l=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var u=s.length+t.length*2,c=[],f={};for(n=t.length-1;n>=0;n--)if(Sa.isPlainObject(t[n])){var h=t[n].name,d=(l[h]||f[h]||{}).name,v=t[n].name,m=l[d]||f[d];d&&v&&typeof v=="number"&&m&&eU<Hhe&&(eU++,Sa.warn('addFrames: overwriting frame "'+(l[d]||f[d]).name+'" with a frame whose name of type "number" also equates to "'+d+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),eU===Hhe&&Sa.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.")),f[h]={name:h},c.push({frame:Qo.supplyFrameDefaults(t[n]),index:r&&r[n]!==void 0&&r[n]!==null?r[n]:u+n})}c.sort(function(C,S){return C.index>S.index?-1:C.index<S.index?1:0});var b=[],p=[],k=s.length;for(n=c.length-1;n>=0;n--){if(i=c[n].frame,typeof i.name=="number"&&Sa.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;l[i.name="frame "+e._transitionData._counter++];);if(l[i.name]){for(a=0;a<s.length&&(s[a]||{}).name!==i.name;a++);b.push({type:"replace",index:a,value:i}),p.unshift({type:"replace",index:a,value:s[a]})}else o=Math.max(0,Math.min(c[n].index,k)),b.push({type:"insert",index:o,value:i}),p.unshift({type:"delete",index:o}),k++}var M=Qo.modifyFrames,T=Qo.modifyFrames,L=[e,p],x=[e,b];return op&&op.add(e,M,L,T,x),Qo.modifyFrames(e,b)}function hvt(e,t){if(e=Sa.getGraphDiv(e),!Sa.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);var r,n,i=e._transitionData._frames,a=[],o=[];if(!t)for(t=[],r=0;r<i.length;r++)t.push(r);for(t=t.slice(),t.sort(),r=t.length-1;r>=0;r--)n=t[r],a.push({type:"delete",index:n}),o.unshift({type:"insert",index:n,value:i[n]});var s=Qo.modifyFrames,l=Qo.modifyFrames,u=[e,o],c=[e,a];return op&&op.add(e,s,u,l,c),Qo.modifyFrames(e,a)}function dvt(e){e=Sa.getGraphDiv(e);var t=e._fullLayout||{},r=e._fullData||[];return Qo.cleanPlot([],{},r,t),Qo.purge(e),tU.purge(e),t._container&&t._container.remove(),delete e._context,e}function vvt(e){var t=e._fullLayout,r=e.getBoundingClientRect();if(!Sa.equalDomRects(r,t._lastBBox)){var n=t._invTransform=Sa.inverseTransformMatrix(Sa.getFullTransformMatrix(e));t._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),t._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),t._lastBBox=r}}function pvt(e){var t=NP.select(e),r=e._fullLayout;if(r._calcInverseTransform=vvt,r._calcInverseTransform(e),r._container=t.selectAll(".plot-container").data([0]),r._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),r._paperdiv=r._container.selectAll(".svg-container").data([0]),r._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),r._glcontainer=r._paperdiv.selectAll(".gl-container").data([{}]),r._glcontainer.enter().append("div").classed("gl-container",!0),r._paperdiv.selectAll(".main-svg").remove(),r._paperdiv.select(".modebar-container").remove(),r._paper=r._paperdiv.insert("svg",":first-child").classed("main-svg",!0),r._toppaper=r._paperdiv.append("svg").classed("main-svg",!0),r._modebardiv=r._paperdiv.append("div"),delete r._modeBar,r._hoverpaper=r._paperdiv.append("svg").classed("main-svg",!0),!r._uid){var n={};NP.selectAll("defs").each(function(){this.id&&(n[this.id.split("-")[1]]=1)}),r._uid=Sa.randstr(n)}r._paperdiv.selectAll(".main-svg").attr(Gdt.svgAttrs),r._defs=r._paper.append("defs").attr("id","defs-"+r._uid),r._clips=r._defs.append("g").classed("clips",!0),r._topdefs=r._toppaper.append("defs").attr("id","topdefs-"+r._uid),r._topclips=r._topdefs.append("g").classed("clips",!0),r._bgLayer=r._paper.append("g").classed("bglayer",!0),r._draggers=r._paper.append("g").classed("draglayer",!0);var i=r._paper.append("g").classed("layer-below",!0);r._imageLowerLayer=i.append("g").classed("imagelayer",!0),r._shapeLowerLayer=i.append("g").classed("shapelayer",!0),r._cartesianlayer=r._paper.append("g").classed("cartesianlayer",!0),r._polarlayer=r._paper.append("g").classed("polarlayer",!0),r._smithlayer=r._paper.append("g").classed("smithlayer",!0),r._ternarylayer=r._paper.append("g").classed("ternarylayer",!0),r._geolayer=r._paper.append("g").classed("geolayer",!0),r._funnelarealayer=r._paper.append("g").classed("funnelarealayer",!0),r._pielayer=r._paper.append("g").classed("pielayer",!0),r._iciclelayer=r._paper.append("g").classed("iciclelayer",!0),r._treemaplayer=r._paper.append("g").classed("treemaplayer",!0),r._sunburstlayer=r._paper.append("g").classed("sunburstlayer",!0),r._indicatorlayer=r._toppaper.append("g").classed("indicatorlayer",!0),r._glimages=r._paper.append("g").classed("glimages",!0);var a=r._toppaper.append("g").classed("layer-above",!0);r._imageUpperLayer=a.append("g").classed("imagelayer",!0),r._shapeUpperLayer=a.append("g").classed("shapelayer",!0),r._selectionLayer=r._toppaper.append("g").classed("selectionlayer",!0),r._infolayer=r._toppaper.append("g").classed("infolayer",!0),r._menulayer=r._toppaper.append("g").classed("menulayer",!0),r._zoomlayer=r._toppaper.append("g").classed("zoomlayer",!0),r._hoverlayer=r._hoverpaper.append("g").classed("hoverlayer",!0),r._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}_l.animate=cvt;_l.addFrames=fvt;_l.deleteFrames=hvt;_l.addTraces=rde;_l.deleteTraces=ide;_l.extendTraces=ede;_l.moveTraces=rU;_l.prependTraces=tde;_l.newPlot=Kdt;_l._doPlot=Wdt;_l.purge=dvt;_l.react=svt;_l.redraw=Ydt;_l.relayout=QM;_l.restyle=GP;_l.setPlotConfig=Xdt;_l.update=jP;_l._guiRelayout=iU(QM);_l._guiRestyle=iU(GP);_l._guiUpdate=iU(jP);_l._storeDirectGUIEdit=evt});var qy=ye(Im=>{"use strict";var gvt=Oa();Im.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("mapbox")||e._has("map"))?500:0};Im.getRedrawFunc=function(e){return function(){gvt.getComponentMethod("colorbar","draw")(e)}};Im.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)};Im.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var cde=window.URL||window.webkitURL;Im.createObjectURL=function(e){return cde.createObjectURL(e)};Im.revokeObjectURL=function(e){return cde.revokeObjectURL(e)};Im.createBlob=function(e,t){if(t==="svg")return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if(t==="full-json")return new window.Blob([e],{type:"application/json;charset=utf-8"});var r=mvt(window.atob(e));return new window.Blob([r],{type:"image/"+t})};Im.octetStream=function(e){document.location.href="data:application/octet-stream"+e};function mvt(e){for(var t=e.length,r=new ArrayBuffer(t),n=new Uint8Array(r),i=0;i<t;i++)n[i]=e.charCodeAt(i);return r}Im.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/});var KP=ye((Jor,fde)=>{"use strict";var aU=qa(),Yor=Pr(),yvt=So(),_vt=ka(),Kor=Wp(),nU=/"/g,t4="TOBESTRIPPED",xvt=new RegExp('("'+t4+")|("+t4+'")',"g");function bvt(e){var t=aU.select("body").append("div").style({display:"none"}).html(""),r=e.replace(/(&[^;]*;)/gi,function(n){return n==="&lt;"?"&#60;":n==="&rt;"?"&#62;":n.indexOf("<")!==-1||n.indexOf(">")!==-1?"":t.html(n).text()});return t.remove(),r}function wvt(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&amp;")}fde.exports=function(t,r,n){var i=t._fullLayout,a=i._paper,o=i._toppaper,s=i.width,l=i.height,u;a.insert("rect",":first-child").call(yvt.setRect,0,0,s,l).call(_vt.fill,i.paper_bgcolor);var c=i._basePlotModules||[];for(u=0;u<c.length;u++){var f=c[u];f.toSVG&&f.toSVG(t)}if(o){var h=o.node().childNodes,d=Array.prototype.slice.call(h);for(u=0;u<d.length;u++){var v=d[u];v.childNodes.length&&a.node().appendChild(v)}}i._draggers&&i._draggers.remove(),a.node().style.background="",a.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each(function(){var b=aU.select(this);if(this.style.visibility==="hidden"||this.style.display==="none"){b.remove();return}else b.style({visibility:null,display:null});var p=this.style.fontFamily;p&&p.indexOf('"')!==-1&&b.style("font-family",p.replace(nU,t4));var k=this.style.fontWeight;k&&(k==="normal"||k==="400")&&b.style("font-weight",void 0);var M=this.style.fontStyle;M&&M==="normal"&&b.style("font-style",void 0);var T=this.style.fontVariant;T&&T==="normal"&&b.style("font-variant",void 0)}),a.selectAll(".gradient_filled,.pattern_filled").each(function(){var b=aU.select(this),p=this.style.fill;p&&p.indexOf("url(")!==-1&&b.style("fill",p.replace(nU,t4));var k=this.style.stroke;k&&k.indexOf("url(")!==-1&&b.style("stroke",k.replace(nU,t4))}),(r==="pdf"||r==="eps")&&a.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),r==="svg"&&n&&(a.attr("width",n*s),a.attr("height",n*l),a.attr("viewBox","0 0 "+s+" "+l));var m=new window.XMLSerializer().serializeToString(a.node());return m=bvt(m),m=wvt(m),m=m.replace(xvt,"'"),m}});var JP=ye(($or,hde)=>{"use strict";var Tvt=Pr(),Avt=Sb().EventEmitter,r4=qy();function Svt(e){var t=e.emitter||new Avt,r=new Promise(function(n,i){var a=window.Image,o=e.svg,s=e.format||"png",l=e.canvas,u=e.scale||1,c=e.width||300,f=e.height||150,h=u*c,d=u*f,v=l.getContext("2d",{willReadFrequently:!0}),m=new a,b,p;s==="svg"||Tvt.isSafari()?p=r4.encodeSVG(o):(b=r4.createBlob(o,"svg"),p=r4.createObjectURL(b)),l.width=h,l.height=d,m.onload=function(){var k;switch(b=null,r4.revokeObjectURL(p),s!=="svg"&&v.drawImage(m,0,0,h,d),s){case"jpeg":k=l.toDataURL("image/jpeg");break;case"png":k=l.toDataURL("image/png");break;case"webp":k=l.toDataURL("image/webp");break;case"svg":k=p;break;default:var M="Image format is not jpeg, png, svg or webp.";if(i(new Error(M)),!e.promise)return t.emit("error",M)}n(k),e.promise||t.emit("success",k)},m.onerror=function(k){if(b=null,r4.revokeObjectURL(p),i(k),!e.promise)return t.emit("error",k)},m.src=p});return e.promise?r:t}hde.exports=Svt});var sU=ye((Qor,pde)=>{"use strict";var dde=Eo(),vde=YP(),Mvt=Mc(),Rm=Pr(),i4=qy(),Evt=KP(),kvt=JP(),Cvt=m6().version,oU={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}};function Lvt(e,t){t=t||{};var r,n,i,a;Rm.isPlainObject(e)?(r=e.data||[],n=e.layout||{},i=e.config||{},a={}):(e=Rm.getGraphDiv(e),r=Rm.extendDeep([],e.data),n=Rm.extendDeep({},e.layout),i=e._context,a=e._fullLayout||{});function o(x){return!(x in t)||Rm.validate(t[x],oU[x])}if(!o("width")&&t.width!==null||!o("height")&&t.height!==null)throw new Error("Height and width should be pixel values.");if(!o("format"))throw new Error("Export format is not "+Rm.join2(oU.format.values,", "," or ")+".");var s={};function l(x,C){return Rm.coerce(t,s,oU,x,C)}var u=l("format"),c=l("width"),f=l("height"),h=l("scale"),d=l("setBackground"),v=l("imageDataOnly"),m=document.createElement("div");m.style.position="absolute",m.style.left="-5000px",document.body.appendChild(m);var b=Rm.extendFlat({},n);c?b.width=c:t.width===null&&dde(a.width)&&(b.width=a.width),f?b.height=f:t.height===null&&dde(a.height)&&(b.height=a.height);var p=Rm.extendFlat({},i,{_exportedPlot:!0,staticPlot:!0,setBackground:d}),k=i4.getRedrawFunc(m);function M(){return new Promise(function(x){setTimeout(x,i4.getDelay(m._fullLayout))})}function T(){return new Promise(function(x,C){var S=Evt(m,u,h),g=m._fullLayout.width,P=m._fullLayout.height;function E(){vde.purge(m),document.body.removeChild(m)}if(u==="full-json"){var z=Mvt.graphJson(m,!1,"keepdata","object",!0,!0);return z.version=Cvt,z=JSON.stringify(z),E(),x(v?z:i4.encodeJSON(z))}if(E(),u==="svg")return x(v?S:i4.encodeSVG(S));var q=document.createElement("canvas");q.id=Rm.randstr(),kvt({format:u,width:g,height:P,scale:h,canvas:q,svg:S,promise:!0}).then(x).catch(C)})}function L(x){return v?x.replace(i4.IMAGE_URL_PREFIX,""):x}return new Promise(function(x,C){vde.newPlot(m,r,b,p).then(k).then(M).then(T).then(function(S){x(L(S))}).catch(function(S){C(S)})})}pde.exports=Lvt});var yde=ye((esr,mde)=>{"use strict";var I0=Pr(),Pvt=Mc(),Ivt=R3(),Rvt=xb().dfltConfig,Rg=I0.isPlainObject,t2=Array.isArray,lU=I0.isArrayOrTypedArray;mde.exports=function(t,r){t===void 0&&(t=[]),r===void 0&&(r={});var n=Ivt.get(),i=[],a={_context:I0.extendFlat({},Rvt)},o,s;t2(t)?(a.data=I0.extendDeep([],t),o=t):(a.data=[],o=[],i.push(md("array","data"))),Rg(r)?(a.layout=I0.extendDeep({},r),s=r):(a.layout={},s={},arguments.length>1&&i.push(md("object","layout"))),Pvt.supplyDefaults(a);for(var l=a._fullData,u=o.length,c=0;c<u;c++){var f=o[c],h=["data",c];if(!Rg(f)){i.push(md("object",h));continue}var d=l[c],v=d.type,m=n.traces[v].attributes;m.type={valType:"enumerated",values:[v]},d.visible===!1&&f.visible!==!1&&i.push(md("invisible",h)),$P(f,d,m,i,h)}var b=a._fullLayout,p=Dvt(n,l);return $P(s,b,p,i,"layout"),i.length===0?void 0:i};function $P(e,t,r,n,i,a){a=a||[];for(var o=Object.keys(e),s=0;s<o.length;s++){var l=o[s],u=a.slice();u.push(l);var c=e[l],f=t[l],h=qvt(r,l),d=(h||{}).valType,v=d==="info_array",m=d==="colorscale",b=(h||{}).items;if(!zvt(r,l))n.push(md("schema",i,u));else if(Rg(c)&&Rg(f)&&d!=="any")$P(c,f,h,n,i,u);else if(v&&t2(c)){c.length>f.length&&n.push(md("unused",i,u.concat(f.length)));var p=f.length,k=Array.isArray(b);k&&(p=Math.min(p,b.length));var M,T,L,x,C;if(h.dimensions===2)for(T=0;T<p;T++)if(t2(c[T])){c[T].length>f[T].length&&n.push(md("unused",i,u.concat(T,f[T].length)));var S=f[T].length;for(M=0;M<(k?Math.min(S,b[T].length):S);M++)L=k?b[T][M]:b,x=c[T][M],C=f[T][M],I0.validate(x,L)?C!==x&&C!==+x&&n.push(md("dynamic",i,u.concat(T,M),x,C)):n.push(md("value",i,u.concat(T,M),x))}else n.push(md("array",i,u.concat(T),c[T]));else for(T=0;T<p;T++)L=k?b[T]:b,x=c[T],C=f[T],I0.validate(x,L)?C!==x&&C!==+x&&n.push(md("dynamic",i,u.concat(T),x,C)):n.push(md("value",i,u.concat(T),x))}else if(h.items&&!v&&t2(c)){var g=b[Object.keys(b)[0]],P=[],E,z;for(E=0;E<f.length;E++){var q=f[E]._index||E;if(z=u.slice(),z.push(q),Rg(c[q])&&Rg(f[E])){P.push(q);var V=c[q],G=f[E];Rg(V)&&V.visible!==!1&&G.visible===!1?n.push(md("invisible",i,z)):$P(V,G,g,n,i,z)}}for(E=0;E<c.length;E++)z=u.slice(),z.push(E),Rg(c[E])?P.indexOf(E)===-1&&n.push(md("unused",i,z)):n.push(md("object",i,z,c[E]))}else!Rg(c)&&Rg(f)?n.push(md("object",i,u,c)):!lU(c)&&lU(f)&&!v&&!m?n.push(md("array",i,u,c)):l in t?I0.validate(c,h)?h.valType==="enumerated"&&(h.coerceNumber&&c!==+f||!lU(c)&&c!==f||String(c)!==String(f))&&n.push(md("dynamic",i,u,c,f)):n.push(md("value",i,u,c)):n.push(md("unused",i,u,c))}return n}function Dvt(e,t){for(var r=e.layout.layoutAttributes,n=0;n<t.length;n++){var i=t[n],a=e.traces[i.type],o=a.layoutAttributes;o&&(i.subplot?I0.extendFlat(r[a.attributes.subplot.dflt],o):I0.extendFlat(r,o))}return r}var Fvt={object:function(e,t){var r;return e==="layout"&&t===""?r="The layout argument":e[0]==="data"&&t===""?r="Trace "+e[1]+" in the data argument":r=e2(e)+"key "+t,r+" must be linked to an object container"},array:function(e,t){var r;return e==="data"?r="The data argument":r=e2(e)+"key "+t,r+" must be linked to an array container"},schema:function(e,t){return e2(e)+"key "+t+" is not part of the schema"},unused:function(e,t,r){var n=Rg(r)?"container":"key";return e2(e)+n+" "+t+" did not get coerced"},dynamic:function(e,t,r,n){return[e2(e)+"key",t,"(set to '"+r+"')","got reset to","'"+n+"'","during defaults."].join(" ")},invisible:function(e,t){return(t?e2(e)+"item "+t:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,t,r){return[e2(e)+"key "+t,"is set to an invalid value ("+r+")"].join(" ")}};function e2(e){return t2(e)?"In data trace "+e[1]+", ":"In "+e+", "}function md(e,t,r,n,i){r=r||"";var a,o;t2(t)?(a=t[0],o=t[1]):(a=t,o=null);var s=Bvt(r),l=Fvt[e](t,s,n,i);return I0.log(l),{code:e,container:a,trace:o,path:r,astr:s,msg:l}}function zvt(e,t){var r=gde(t),n=r.keyMinusId,i=r.id;return n in e&&e[n]._isSubplotObj&&i?!0:t in e}function qvt(e,t){if(t in e)return e[t];var r=gde(t);return e[r.keyMinusId]}var Ovt=I0.counterRegex("([a-z]+)");function gde(e){var t=e.match(Ovt);return{keyMinusId:t&&t[1],id:t&&t[2]}}function Bvt(e){if(!t2(e))return String(e);for(var t="",r=0;r<e.length;r++){var n=e[r];typeof n=="number"?t=t.slice(0,-1)+"["+n+"]":t+=n,r<e.length-1&&(t+=".")}return t}});var xde=ye((tsr,_de)=>{"use strict";var Nvt=Pr(),QP=qy();function Uvt(e,t,r){var n=document.createElement("a"),i="download"in n,a=new Promise(function(o,s){var l,u;if(i)return l=QP.createBlob(e,r),u=QP.createObjectURL(l),n.href=u,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),QP.revokeObjectURL(u),l=null,o(t);if(Nvt.isSafari()){var c=r==="svg"?",":";base64,";return QP.octetStream(c+encodeURIComponent(e)),o(t)}s(new Error("download error"))});return a}_de.exports=Uvt});var uU=ye((isr,wde)=>{"use strict";var bde=Pr(),Vvt=sU(),Gvt=xde(),rsr=qy();function Hvt(e,t){var r;return bde.isPlainObject(e)||(r=bde.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise(function(n,i){r&&r._snapshotInProgress&&i(new Error("Snapshotting already in progress.")),r&&(r._snapshotInProgress=!0);var a=Vvt(e,t),o=t.filename||e.fn||"newplot";o+="."+t.format.replace("-","."),a.then(function(s){return r&&(r._snapshotInProgress=!1),Gvt(s,o,t.format)}).then(function(s){n(s)}).catch(function(s){r&&(r._snapshotInProgress=!1),i(s)})})}wde.exports=Hvt});var Ede=ye(cU=>{"use strict";var Cp=Pr(),Lp=Cp.isPlainObject,Tde=R3(),Ade=Mc(),jvt=Gl(),Sde=vl(),Mde=xb().dfltConfig;cU.makeTemplate=function(e){e=Cp.isPlainObject(e)?e:Cp.getGraphDiv(e),e=Cp.extendDeep({_context:Mde},{data:e.data,layout:e.layout}),Ade.supplyDefaults(e);var t=e.data||[],r=e.layout||{};r._basePlotModules=e._fullLayout._basePlotModules,r._modules=e._fullLayout._modules;var n={data:{},layout:{}};t.forEach(function(d){var v={};n4(d,v,Xvt.bind(null,d));var m=Cp.coerce(d,{},jvt,"type"),b=n.data[m];b||(b=n.data[m]=[]),b.push(v)}),n4(r,n.layout,Wvt.bind(null,r)),delete n.layout.template;var i=r.template;if(Lp(i)){var a=i.layout,o,s,l,u,c,f;Lp(a)&&eI(a,n.layout);var h=i.data;if(Lp(h)){for(s in n.data)if(l=h[s],Array.isArray(l)){for(c=n.data[s],f=c.length,u=l.length,o=0;o<f;o++)eI(l[o%u],c[o]);for(o=f;o<u;o++)c.push(Cp.extendDeep({},l[o]))}for(s in h)s in n.data||(n.data[s]=Cp.extendDeep([],h[s]))}}return n};function eI(e,t){e=Cp.extendDeep({},e);var r=Object.keys(e).sort(),n,i;function a(c,f,h){if(Lp(f)&&Lp(c))eI(c,f);else if(Array.isArray(f)&&Array.isArray(c)){var d=Sde.arrayTemplater({_template:e},h);for(i=0;i<f.length;i++){var v=f[i],m=d.newItem(v)._template;m&&eI(m,v)}var b=d.defaultItems();for(i=0;i<b.length;i++)f.push(b[i]._template);for(i=0;i<f.length;i++)delete f[i].templateitemname}}for(n=0;n<r.length;n++){var o=r[n],s=e[o];if(o in t?a(s,t[o],o):t[o]=s,tI(o)===o)for(var l in t){var u=tI(l);l!==u&&u===o&&!(l in e)&&a(s,t[l],o)}}}function tI(e){return e.replace(/[0-9]+$/,"")}function n4(e,t,r,n,i){var a=i&&r(i);for(var o in e){var s=e[o],l=R0(e,o,n),u=R0(e,o,i),c=r(u);if(!c){var f=tI(o);f!==o&&(u=R0(e,f,i),c=r(u))}if(!(a&&a===c)&&!(!c||c._noTemplating||c.valType==="data_array"||c.arrayOk&&Array.isArray(s)))if(!c.valType&&Lp(s))n4(s,t,r,l,u);else if(c._isLinkedToArray&&Array.isArray(s))for(var h=!1,d=0,v={},m=0;m<s.length;m++){var b=s[m];if(Lp(b)){var p=b.name;if(p)v[p]||(n4(b,t,r,R0(s,d,l),R0(s,d,u)),d++,v[p]=1);else if(!h){var k=Sde.arrayDefaultKey(o),M=R0(e,k,n),T=R0(s,d,l);n4(b,t,r,T,R0(s,d,u));var L=Cp.nestedProperty(t,T),x=Cp.nestedProperty(t,M);x.set(L.get()),L.set(null),h=!0}}}else{var C=Cp.nestedProperty(t,l);C.set(s)}}}function Wvt(e,t){return Tde.getLayoutValObject(e,Cp.nestedProperty({},t).parts)}function Xvt(e,t){return Tde.getTraceValObject(e,Cp.nestedProperty({},t).parts)}function R0(e,t,r){var n;return r?Array.isArray(e)?n=r+"["+t+"]":n=r+"."+t:n=t,n}cU.validateTemplate=function(e,t){var r=Cp.extendDeep({},{_context:Mde,data:e.data,layout:e.layout}),n=r.layout||{};Lp(t)||(t=n.template||{});var i=t.layout,a=t.data,o=[];r.layout=n,r.layout.template=t,Ade.supplyDefaults(r);var s=r._fullLayout,l=r._fullData,u={};function c(M,T){for(var L in M)if(L.charAt(0)!=="_"&&Lp(M[L])){var x=tI(L),C=[],S;for(S=0;S<T.length;S++)C.push(R0(M,L,T[S])),x!==L&&C.push(R0(M,x,T[S]));for(S=0;S<C.length;S++)u[C[S]]=1;c(M[L],C)}}function f(M,T){for(var L in M)if(L.indexOf("defaults")===-1&&Lp(M[L])){var x=R0(M,L,T);u[x]?f(M[L],x):o.push({code:"unused",path:x})}}if(Lp(i)?(c(s,["layout"]),f(i,"layout")):o.push({code:"layout"}),!Lp(a))o.push({code:"data"});else{for(var h={},d,v=0;v<l.length;v++){var m=l[v];d=m.type,h[d]=(h[d]||0)+1,m._fullInput._template||o.push({code:"missing",index:m.index,traceType:d})}for(d in a){var b=a[d].length,p=h[d]||0;b>p?o.push({code:"unused",traceType:d,templateCount:b,dataCount:p}):p>b&&o.push({code:"reused",traceType:d,templateCount:b,dataCount:p})}}function k(M,T){for(var L in M)if(L.charAt(0)!=="_"){var x=M[L],C=R0(M,L,T);Lp(x)?(Array.isArray(M)&&x._template===!1&&x.templateitemname&&o.push({code:"missing",path:C,templateitemname:x.templateitemname}),k(x,C)):Array.isArray(x)&&Zvt(x)&&k(x,C)}}if(k({data:l,layout:s},""),o.length)return o.map(Yvt)};function Zvt(e){for(var t=0;t<e.length;t++)if(Lp(e[t]))return!0}function Yvt(e){var t;switch(e.code){case"data":t="The template has no key data.";break;case"layout":t="The template has no key layout.";break;case"missing":e.path?t="There are no templates for item "+e.path+" with name "+e.templateitemname:t="There are no templates for trace "+e.index+", of type "+e.traceType+".";break;case"unused":e.path?t="The template item at "+e.path+" was not used in constructing the plot.":e.dataCount?t="Some of the templates of type "+e.traceType+" were not used. The template has "+e.templateCount+" traces, the data only has "+e.dataCount+" of this type.":t="The template has "+e.templateCount+" traces of type "+e.traceType+" but there are none in the data.";break;case"reused":t="Some of the templates of type "+e.traceType+" were used more than once. The template has "+e.templateCount+" traces, the data has "+e.dataCount+" of this type.";break}return e.msg=t,e}});var Cde=ye(tf=>{"use strict";var rd=YP();tf._doPlot=rd._doPlot;tf.newPlot=rd.newPlot;tf.restyle=rd.restyle;tf.relayout=rd.relayout;tf.redraw=rd.redraw;tf.update=rd.update;tf._guiRestyle=rd._guiRestyle;tf._guiRelayout=rd._guiRelayout;tf._guiUpdate=rd._guiUpdate;tf._storeDirectGUIEdit=rd._storeDirectGUIEdit;tf.react=rd.react;tf.extendTraces=rd.extendTraces;tf.prependTraces=rd.prependTraces;tf.addTraces=rd.addTraces;tf.deleteTraces=rd.deleteTraces;tf.moveTraces=rd.moveTraces;tf.purge=rd.purge;tf.addFrames=rd.addFrames;tf.deleteFrames=rd.deleteFrames;tf.animate=rd.animate;tf.setPlotConfig=rd.setPlotConfig;var Kvt=jS().getGraphDiv,Jvt=vP().eraseActiveShape;tf.deleteActiveShape=function(e){return Jvt(Kvt(e))};tf.toImage=sU();tf.validate=yde();tf.downloadImage=uU();var kde=Ede();tf.makeTemplate=kde.makeTemplate;tf.validateTemplate=kde.validateTemplate});var lT=ye((osr,Lde)=>{"use strict";var fU=Pr(),$vt=Oa();Lde.exports=function(t,r,n,i){var a=i("x"),o=i("y"),s,l=$vt.getComponentMethod("calendars","handleTraceDefaults");if(l(t,r,["x","y"],n),a){var u=fU.minRowLength(a);o?s=Math.min(u,fU.minRowLength(o)):(s=u,i("y0"),i("dy"))}else{if(!o)return 0;s=fU.minRowLength(o),i("x0"),i("dx")}return r._length=s,s}});var Dg=ye((ssr,Rde)=>{"use strict";var Pde=Pr().dateTick0,Qvt=fs(),ept=Qvt.ONEWEEK;function Ide(e,t){return e%ept===0?Pde(t,1):Pde(t,0)}Rde.exports=function(t,r,n,i,a){if(a||(a={x:!0,y:!0}),a.x){var o=i("xperiod");o&&(i("xperiod0",Ide(o,r.xcalendar)),i("xperiodalignment"))}if(a.y){var s=i("yperiod");s&&(i("yperiod0",Ide(s,r.ycalendar)),i("yperiodalignment"))}}});var zde=ye((lsr,Fde)=>{"use strict";var Dde=["orientation","groupnorm","stackgaps"];Fde.exports=function(t,r,n,i){var a=n._scatterStackOpts,o=i("stackgroup");if(o){var s=r.xaxis+r.yaxis,l=a[s];l||(l=a[s]={});var u=l[o],c=!1;u?u.traces.push(r):(u=l[o]={traceIndices:[],traces:[r]},c=!0);for(var f={orientation:r.x&&!r.y?"h":"v"},h=0;h<Dde.length;h++){var d=Dde[h],v=d+"Found";if(!u[v]){var m=t[d]!==void 0,b=d==="orientation";if((m||c)&&(u[d]=i(d,f[d]),b&&(u.fillDflt=u[d]==="h"?"tonextx":"tonexty"),m&&(u[v]=!0,!c&&(delete u.traces[0][d],b))))for(var p=0;p<u.traces.length-1;p++){var k=u.traces[p];k._input.fill!==k.fill&&(k.fill=u.fillDflt)}}}return u}}});var $p=ye((usr,Nde)=>{"use strict";var qde=ka(),Ode=pv().hasColorscale,Bde=td(),tpt=Ru();Nde.exports=function(t,r,n,i,a,o={}){var s=tpt.isBubble(t),l=(t.line||{}).color,u;if(l&&(n=l),a("marker.symbol"),a("marker.opacity",s?.7:1),a("marker.size"),o.noAngle||(a("marker.angle"),o.noAngleRef||a("marker.angleref"),o.noStandOff||a("marker.standoff")),a("marker.color",n),Ode(t,"marker")&&Bde(t,r,i,a,{prefix:"marker.",cLetter:"c"}),o.noSelect||(a("selected.marker.color"),a("unselected.marker.color"),a("selected.marker.size"),a("unselected.marker.size")),o.noLine||(l&&!Array.isArray(l)&&r.marker.color!==l?u=l:s?u=qde.background:u=qde.defaultLine,a("marker.line.color",u),Ode(t,"marker.line")&&Bde(t,r,i,a,{prefix:"marker.line.",cLetter:"c"}),a("marker.line.width",s?1:0),o.noLineDash||a("marker.line.dash")),s&&(a("marker.sizeref"),a("marker.sizemin"),a("marker.sizemode")),o.gradient){var c=a("marker.gradient.type");c!=="none"&&a("marker.gradient.color")}}});var D0=ye((csr,Ude)=>{"use strict";var rpt=Pr().isArrayOrTypedArray,ipt=pv().hasColorscale,npt=td();Ude.exports=function(t,r,n,i,a,o){o||(o={});var s=(t.marker||{}).color;if(s&&s._inputArray&&(s=s._inputArray),a("line.color",n),ipt(t,"line"))npt(t,r,i,a,{prefix:"line.",cLetter:"c"});else{var l=(rpt(s)?!1:s)||n;a("line.color",l)}a("line.width"),o.noDash||a("line.dash"),o.backoff&&a("line.backoff")}});var uT=ye((fsr,Vde)=>{"use strict";Vde.exports=function(t,r,n){var i=n("line.shape");i==="spline"&&n("line.smoothing")}});var F0=ye((hsr,Gde)=>{"use strict";var apt=Pr();Gde.exports=function(e,t,r,n,i){i=i||{},n("textposition"),apt.coerceFont(n,"textfont",i.font||r.font,i),i.noSelect||(n("selected.textfont.color"),n("unselected.textfont.color"))}});var Fg=ye((dsr,jde)=>{"use strict";var rI=ka(),Hde=Pr().isArrayOrTypedArray;function opt(e){for(var t=rI.interpolate(e[0][1],e[1][1],.5),r=2;r<e.length;r++){var n=rI.interpolate(e[r-1][1],e[r][1],.5);t=rI.interpolate(t,n,e[r-1][0]/e[r][0])}return t}jde.exports=function(t,r,n,i,a){a||(a={});var o=!1;if(r.marker){var s=r.marker.color,l=(r.marker.line||{}).color;s&&!Hde(s)?o=s:l&&!Hde(l)&&(o=l)}var u;if(a.moduleHasFillgradient){var c=i("fillgradient.type");if(c!=="none"){i("fillgradient.start"),i("fillgradient.stop");var f=i("fillgradient.colorscale");f&&(u=opt(f))}}i("fillcolor",rI.addOpacity((r.line||{}).color||o||u||n,.5))}});var Yde=ye((vsr,Zde)=>{"use strict";var Wde=Pr(),spt=Oa(),lpt=pf(),upt=Pm(),cT=Ru(),cpt=lT(),fpt=Dg(),hpt=zde(),dpt=$p(),vpt=D0(),Xde=uT(),ppt=F0(),gpt=Fg(),mpt=Pr().coercePattern;Zde.exports=function(t,r,n,i){function a(d,v){return Wde.coerce(t,r,lpt,d,v)}var o=cpt(t,r,i,a);if(o||(r.visible=!1),!!r.visible){fpt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("zorder");var s=hpt(t,r,i,a);i.scattermode==="group"&&r.orientation===void 0&&a("orientation","v");var l=!s&&o<upt.PTS_LINESONLY?"lines+markers":"lines";a("text"),a("hovertext"),a("mode",l),cT.hasMarkers(r)&&dpt(t,r,n,i,a,{gradient:!0}),cT.hasLines(r)&&(vpt(t,r,n,i,a,{backoff:!0}),Xde(t,r,a),a("connectgaps"),a("line.simplify")),cT.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),ppt(t,r,i,a));var u=[];(cT.hasMarkers(r)||cT.hasText(r))&&(a("cliponaxis"),a("marker.maxdisplayed"),u.push("points")),a("fill",s?s.fillDflt:"none"),r.fill!=="none"&&(gpt(t,r,n,a,{moduleHasFillgradient:!0}),cT.hasLines(r)||Xde(t,r,a),mpt(a,"fillpattern",r.fillcolor,!1));var c=(r.line||{}).color,f=(r.marker||{}).color;(r.fill==="tonext"||r.fill==="toself")&&u.push("fills"),a("hoveron",u.join("+")||"points"),r.hoveron!=="fills"&&(a("hovertemplate"),a("hovertemplatefallback"));var h=spt.getComponentMethod("errorbars","supplyDefaults");h(t,r,c||f||n,{axis:"y"}),h(t,r,c||f||n,{axis:"x",inherit:"y"}),Wde.coerceSelectionMarkerOpacity(r,a)}}});var r2=ye((psr,Kde)=>{"use strict";var ypt=$b().getAxisGroup;Kde.exports=function(t,r,n,i,a){var o=r.orientation,s=r[{v:"x",h:"y"}[o]+"axis"],l=ypt(n,s)+o,u=n._alignmentOpts||{},c=i("alignmentgroup"),f=u[l];f||(f=u[l]={});var h=f[c];h?h.traces.push(r):h=f[c]={traces:[r],alignmentIndex:Object.keys(f).length,offsetGroups:{}};var d=i("offsetgroup")||"",v=h.offsetGroups,m=v[d];r._offsetIndex=0,(a!=="group"||d)&&(m||(m=v[d]={offsetIndex:Object.keys(v).length}),r._offsetIndex=m.offsetIndex)}});var hU=ye((gsr,Jde)=>{"use strict";var _pt=Pr(),xpt=r2(),bpt=pf();Jde.exports=function(t,r){var n,i,a,o=r.scattermode;function s(h){return _pt.coerce(i._input,i,bpt,h)}if(r.scattermode==="group")for(a=0;a<t.length;a++)i=t[a],i.type==="scatter"&&(n=i._input,xpt(n,i,r,s,o));for(a=0;a<t.length;a++){var l=t[a];if(l.type==="scatter"){var u=l.fill;if(!(u==="none"||u==="toself")&&(l.opacity=void 0,u==="tonexty"||u==="tonextx"))for(var c=a-1;c>=0;c--){var f=t[c];if(f.type==="scatter"&&f.xaxis===l.xaxis&&f.yaxis===l.yaxis){f.opacity=void 0;break}}}}}});var Qde=ye((msr,$de)=>{"use strict";var wpt=Pr(),Tpt=rL();$de.exports=function(e,t){function r(i,a){return wpt.coerce(e,t,Tpt,i,a)}var n=t.barmode==="group";t.scattermode==="group"&&r("scattergap",n?t.bargap:.2)}});var zg=ye((ysr,tve)=>{"use strict";var Apt=Eo(),eve=Pr(),Spt=eve.dateTime2ms,iI=eve.incrementMonth,Mpt=fs(),Ept=Mpt.ONEAVGMONTH;tve.exports=function(t,r,n,i){if(r.type!=="date")return{vals:i};var a=t[n+"periodalignment"];if(!a)return{vals:i};var o=t[n+"period"],s;if(Apt(o)){if(o=+o,o<=0)return{vals:i}}else if(typeof o=="string"&&o.charAt(0)==="M"){var l=+o.substring(1);if(l>0&&Math.round(l)===l)s=l;else return{vals:i}}for(var u=r.calendar,c=a==="start",f=a==="end",h=t[n+"period0"],d=Spt(h,u)||0,v=[],m=[],b=[],p=i.length,k=0;k<p;k++){var M=i[k],T,L,x;if(s){for(T=Math.round((M-d)/(s*Ept)),x=iI(d,s*T,u);x>M;)x=iI(x,-s,u);for(;x<=M;)x=iI(x,s,u);L=iI(x,-s,u)}else{for(T=Math.round((M-d)/o),x=d+T*o;x>M;)x-=o;for(;x<=M;)x+=o;L=x-o}v[k]=c?L:f?x:(L+x)/2,m[k]=L,b[k]=x}return{vals:v,starts:m,ends:b}}});var z0=ye((_sr,ive)=>{"use strict";var dU=pv().hasColorscale,vU=gv(),rve=Ru();ive.exports=function(t,r){rve.hasLines(r)&&dU(r,"line")&&vU(t,r,{vals:r.line.color,containerStr:"line",cLetter:"c"}),rve.hasMarkers(r)&&(dU(r,"marker")&&vU(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),dU(r,"marker.line")&&vU(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}});var Dm=ye((xsr,nve)=>{"use strict";var Of=Pr();nve.exports=function(t,r){for(var n=0;n<t.length;n++)t[n].i=n;Of.mergeArray(r.text,t,"tx"),Of.mergeArray(r.texttemplate,t,"txt"),Of.mergeArray(r.hovertext,t,"htx"),Of.mergeArray(r.customdata,t,"data"),Of.mergeArray(r.textposition,t,"tp"),r.textfont&&(Of.mergeArrayCastPositive(r.textfont.size,t,"ts"),Of.mergeArray(r.textfont.color,t,"tc"),Of.mergeArray(r.textfont.family,t,"tf"),Of.mergeArray(r.textfont.weight,t,"tw"),Of.mergeArray(r.textfont.style,t,"ty"),Of.mergeArray(r.textfont.variant,t,"tv"),Of.mergeArray(r.textfont.textcase,t,"tC"),Of.mergeArray(r.textfont.lineposition,t,"tE"),Of.mergeArray(r.textfont.shadow,t,"tS"));var i=r.marker;if(i){Of.mergeArrayCastPositive(i.size,t,"ms"),Of.mergeArrayCastPositive(i.opacity,t,"mo"),Of.mergeArray(i.symbol,t,"mx"),Of.mergeArray(i.angle,t,"ma"),Of.mergeArray(i.standoff,t,"mf"),Of.mergeArray(i.color,t,"mc");var a=i.line;i.line&&(Of.mergeArray(a.color,t,"mlc"),Of.mergeArrayCastPositive(a.width,t,"mlw"),Of.mergeArray(a.dash,t,"mld"));var o=i.gradient;o&&o.type!=="none"&&(Of.mergeArray(o.type,t,"mgt"),Of.mergeArray(o.color,t,"mgc"))}}});var q0=ye((bsr,ove)=>{"use strict";var ave=Pr();ove.exports=function(t,r){ave.isArrayOrTypedArray(r.selectedpoints)&&ave.tagSelected(t,r)}});var O0=ye((wsr,dve)=>{"use strict";var sve=Eo(),gU=Pr(),a4=ho(),lve=zg(),pU=fs().BADNUM,mU=Ru(),kpt=z0(),Cpt=Dm(),Lpt=q0();function Ppt(e,t){var r=e._fullLayout,n=t._xA=a4.getFromId(e,t.xaxis||"x","x"),i=t._yA=a4.getFromId(e,t.yaxis||"y","y"),a=n.makeCalcdata(t,"x"),o=i.makeCalcdata(t,"y"),s=lve(t,n,"x",a),l=lve(t,i,"y",o),u=s.vals,c=l.vals,f=t._length,h=new Array(f),d=t.ids,v=yU(t,r,n,i),m=!1,b,p,k,M,T,L;fve(r,t);var x="x",C="y",S;if(v)gU.pushUnique(v.traceIndices,t.index),b=v.orientation==="v",b?(C="s",S="x"):(x="s",S="y"),T=v.stackgaps==="interpolate";else{var g=cve(t,f);uve(e,t,n,i,u,c,g)}var P=!!t.xperiodalignment,E=!!t.yperiodalignment;for(p=0;p<f;p++){var z=h[p]={},q=sve(u[p]),V=sve(c[p]);q&&V?(z[x]=u[p],z[C]=c[p],P&&(z.orig_x=a[p],z.xEnd=s.ends[p],z.xStart=s.starts[p]),E&&(z.orig_y=o[p],z.yEnd=l.ends[p],z.yStart=l.starts[p])):v&&(b?q:V)?(z[S]=b?u[p]:c[p],z.gap=!0,T?(z.s=pU,m=!0):z.s=0):z[x]=z[C]=pU,d&&(z.id=String(d[p]))}if(Cpt(h,t),kpt(e,t),Lpt(h,t),v){for(p=0;p<h.length;)h[p][S]===pU?h.splice(p,1):p++;if(gU.sort(h,function(N,H){return N[S]-H[S]||N.i-H.i}),m){for(p=0;p<h.length-1&&h[p].gap;)p++;for(L=h[p].s,L||(L=h[p].s=0),k=0;k<p;k++)h[k].s=L;for(M=h.length-1;M>p&&h[M].gap;)M--;for(L=h[M].s,k=h.length-1;k>M;k--)h[k].s=L;for(;p<M;)if(p++,h[p].gap){for(k=p+1;h[k].gap;)k++;for(var G=h[p-1][S],Z=h[p-1].s,j=(h[k].s-Z)/(h[k][S]-G);p<k;)h[p].s=Z+(h[p][S]-G)*j,p++}}}return h}function uve(e,t,r,n,i,a,o){var s=t._length,l=e._fullLayout,u=r._id,c=n._id,f=l._firstScatter[hve(t)]===t.uid,h=(yU(t,l,r,n)||{}).orientation,d=t.fill;r._minDtick=0,n._minDtick=0;var v={padded:!0},m={padded:!0};o&&(v.ppad=m.ppad=o);var b=s<2||i[0]!==i[s-1]||a[0]!==a[s-1];b&&(d==="tozerox"||d==="tonextx"&&(f||h==="h"))?v.tozero=!0:!(t.error_y||{}).visible&&(d==="tonexty"||d==="tozeroy"||!mU.hasMarkers(t)&&!mU.hasText(t))&&(v.padded=!1,v.ppad=0),b&&(d==="tozeroy"||d==="tonexty"&&(f||h==="v"))?m.tozero=!0:(d==="tonextx"||d==="tozerox")&&(m.padded=!1),u&&(t._extremes[u]=a4.findExtremes(r,i,v)),c&&(t._extremes[c]=a4.findExtremes(n,a,m))}function cve(e,t){if(mU.hasMarkers(e)){var r=e.marker,n=1.6*(e.marker.sizeref||1),i;if(e.marker.sizemode==="area"?i=function(u){return Math.max(Math.sqrt((u||0)/n),3)}:i=function(u){return Math.max((u||0)/n,3)},gU.isArrayOrTypedArray(r.size)){var a={type:"linear"};a4.setConvert(a);for(var o=a.makeCalcdata(e.marker,"size"),s=new Array(t),l=0;l<t;l++)s[l]=i(o[l]);return s}else return i(r.size)}}function fve(e,t){var r=hve(t),n=e._firstScatter;n[r]||(n[r]=t.uid)}function hve(e){var t=e.stackgroup;return e.xaxis+e.yaxis+e.type+(t?"-"+t:"")}function yU(e,t,r,n){var i=e.stackgroup;if(i){var a=t._scatterStackOpts[r._id+n._id][i],o=a.orientation==="v"?n:r;if(o.type==="linear"||o.type==="log")return a}}dve.exports={calc:Ppt,calcMarkerSize:cve,calcAxisExpansion:uve,setFirstScatter:fve,getStackOpts:yU}});var pve=ye((Tsr,vve)=>{"use strict";vve.exports=nI;var Ipt=Pr().distinctVals;function nI(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var r=1/0,n=t.posAxis._id.charAt(0),i=[],a=0;a<e.length;a++){for(var o=e[a],s=0;s<o.length;s++){var l=o[s],u=l.p;u===void 0&&(u=l[n]),u!==void 0&&i.push(u)}o[0]&&o[0].width1&&(r=Math.min(o[0].width1,r))}this.positions=i;var c=Ipt(i);this.distinctPositions=c.vals,c.vals.length===1&&r!==1/0?this.minDiff=r:this.minDiff=Math.min(c.minDiff,r);var f=(t.posAxis||{}).type;(f==="category"||f==="multicategory")&&(this.minDiff=1),this.binWidth=this.minDiff,this.bins={}}nI.prototype.put=function(t,r,n){var i=this.getLabel(t,r,n),a=this.bins[i]||0;return this.bins[i]=a+n,a};nI.prototype.get=function(t,r,n){var i=this.getLabel(t,r,n);return this.bins[i]||0};nI.prototype.getLabel=function(t,r,n){var i=n<0&&this.sepNegVal?"v":"^",a=this.overlapNoMerge?t:Math.round(t/this.binWidth);return i+a+"g"+r}});var A_=ye((Asr,gve)=>{"use strict";gve.exports={TEXTPAD:3,eventDataKeys:["value","label"]}});var i2=ye((Ssr,xve)=>{"use strict";var B0=Eo(),{isArrayOrTypedArray:Oy}=Pr(),{BADNUM:fT}=fs(),Rpt=Oa(),o4=ho(),{getAxisGroup:Dpt}=$b(),aI=pve(),{TEXTPAD:Fpt}=A_(),{LINE_SPACING:zpt}=Dh(),{BR_TAG_ALL:qpt}=Zl();function Opt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;u<a.length;u++){var c=a[u];if(c.visible===!0&&Rpt.traceIs(c,"bar")&&c.xaxis===r._id&&c.yaxis===n._id&&(c.orientation==="h"?s.push(o[u]):l.push(o[u]),c._computePh))for(var f=e.calcdata[u],h=0;h<f.length;h++)typeof f[h].ph0=="function"&&(f[h].ph0=f[h].ph0()),typeof f[h].ph1=="function"&&(f[h].ph1=f[h].ph1())}var d={xCat:r.type==="category"||r.type==="multicategory",yCat:n.type==="category"||n.type==="multicategory",mode:i.barmode,norm:i.barnorm,gap:i.bargap,groupgap:i.bargroupgap};xU(e,r,n,l,d),xU(e,n,r,s,d)}function xU(e,t,r,n,i){if(n.length){var a,o,s,l,u;switch(Upt(r,n),i.mode){case"overlay":_U(e,t,r,n,i);break;case"group":for(a=[],o=[],s=0;s<n.length;s++)l=n[s],u=l[0].trace,u.offset===void 0?o.push(l):a.push(l);o.length&&Vpt(e,t,r,o,i),a.length&&_U(e,t,r,a,i);break;case"stack":case"relative":for(a=[],o=[],s=0;s<n.length;s++)l=n[s],u=l[0].trace,u.base===void 0?o.push(l):a.push(l);Npt(o),o.length&&Gpt(e,t,r,o,i),a.length&&_U(e,t,r,a,i);break}Bpt(n),Ypt(n,t)}}function Bpt(e){var t,r,n,i,a,o,s;for(t=0;t<e.length;t++)r=e[t],n=r[0].trace,i=r[0].t,i.cornerradiusvalue===void 0&&(a=n.marker?n.marker.cornerradius:void 0,a!==void 0&&(o=B0(a)?+a:+a.slice(0,-1),s=B0(a)?"px":"%",i.cornerradiusvalue=o,i.cornerradiusform=s))}function Npt(e){if(!(e.length<2)){var t,r,n,i,a,o,s;for(t=0;t<e.length&&(r=e[t],n=r[0].trace,a=n.marker?n.marker.cornerradius:void 0,a===void 0);t++);if(a!==void 0)for(o=B0(a)?+a:+a.slice(0,-1),s=B0(a)?"px":"%",t=0;t<e.length;t++)r=e[t],i=r[0].t,i.cornerradiusvalue=o,i.cornerradiusform=s}}function Upt(e,t){var r,n;for(r=0;r<t.length;r++){var i=t[r],a=i[0].trace,o=a.type==="funnel"?a._base:a.base,s,l=a.orientation==="h"?a.xcalendar:a.ycalendar,u=e.type==="category"||e.type==="multicategory"?function(){return null}:e.d2c;if(Oy(o)){for(n=0;n<Math.min(o.length,i.length);n++)s=u(o[n],0,l),B0(s)?(i[n].b=+s,i[n].hasB=1):i[n].b=0;for(;n<i.length;n++)i[n].b=0}else{s=u(o,0,l);var c=B0(s);for(s=c?s:0,n=0;n<i.length;n++)i[n].b=s,c&&(i[n].hasB=1)}}}function _U(e,t,r,n,i){for(var a=0;a<n.length;a++){var o=n[a],s=new aI([o],{posAxis:t,sepNegVal:!1,overlapNoMerge:!i.norm});bU(e,t,s,i),i.norm?(_ve(s),wU(r,s,i)):yve(r,s)}}function Vpt(e,t,r,n,i){var a=new aI(n,{posAxis:t,sepNegVal:!1,overlapNoMerge:!i.norm});bU(e,t,a,i),Xpt(a,t),i.norm?(_ve(a),wU(r,a,i)):yve(r,a)}function Gpt(e,t,r,n,i){var a=new aI(n,{posAxis:t,sepNegVal:i.mode==="relative",overlapNoMerge:!(i.norm||i.mode==="stack"||i.mode==="relative")});bU(e,t,a,i),Wpt(r,a,i);for(var o=0;o<n.length;o++)for(var s=n[o],l=s[0].t.offsetindex,u=0;u<s.length;u++){var c=s[u];if(c.s!==fT){var f=c.b+c.s===a.get(c.p,l,c.s);f&&(c._outmost=!0)}}i.norm&&wU(r,a,i)}function bU(e,t,r,n){var i=e._fullLayout,a=r.positions,o=r.distinctPositions,s=r.minDiff,l=r.traces,u=l.length,c=a.length!==o.length,f=s*(1-n.gap),h,d,v,m;if(t._id==="angularaxis")h=f,d=h*(1-(n.groupgap||0)),v=-d/2;else{var b=Dpt(i,t._id)+l[0][0].trace.orientation;m=i._alignmentOpts[b]||{}}for(var p=0;p<u;p++){var k=l[p],M=k[0].trace;if(t._id!=="angularaxis"){var T=m[M.alignmentgroup]||{},L=Object.keys(T.offsetGroups||{}).length;L?h=f/L:h=c?f/u:f,d=h*(1-(n.groupgap||0)),L?v=((2*M._offsetIndex+1-L)*h-d)/2:v=c?((2*p+1-u)*h-d)/2:-d/2}var x=k[0].t;x.barwidth=d,x.offsetindex=M._offsetIndex||0,x.poffset=v,x.bargroupwidth=f,x.bardelta=s}r.binWidth=l[0][0].t.barwidth/100,Hpt(r),jpt(t,r),t._id==="angularaxis"?mve(t,r):mve(t,r,c)}function Hpt(e){var t=e.traces,r,n;for(r=0;r<t.length;r++){var i=t[r],a=i[0],o=a.trace,s=a.t,l=o._offset||o.offset,u=s.poffset,c;if(Oy(l)){for(c=Array.prototype.slice.call(l,0,i.length),n=0;n<c.length;n++)B0(c[n])||(c[n]=u);for(n=c.length;n<i.length;n++)c.push(u);s.poffset=c}else l!==void 0&&(s.poffset=l);var f=o._width||o.width,h=s.barwidth;if(Oy(f)){var d=Array.prototype.slice.call(f,0,i.length);for(n=0;n<d.length;n++)B0(d[n])||(d[n]=h);for(n=d.length;n<i.length;n++)d.push(h);if(s.barwidth=d,l===void 0){for(c=[],n=0;n<i.length;n++)c.push(u+(h-d[n])/2);s.poffset=c}}else f!==void 0&&(s.barwidth=f,l===void 0&&(s.poffset=u+(h-f)/2))}}function jpt(e,t){for(var r=t.traces,n=hT(e),i=0;i<r.length;i++)for(var a=r[i],o=a[0].t,s=o.poffset,l=Oy(s),u=o.barwidth,c=Oy(u),f=0;f<a.length;f++){var h=a[f],d=h.w=c?u[f]:u;h.p===void 0&&(h.p=h[n],h["orig_"+n]=h[n]);var v=(l?s[f]:s)+d/2;h[n]=h.p+v}}function mve(e,t,r){var n=t.traces,i=t.minDiff,a=i/2;o4.minDtick(e,t.minDiff,t.distinctPositions[0],r);for(var o=0;o<n.length;o++){var s=n[o],l=s[0],u=l.trace,c=[],f,h,d,v;for(v=0;v<s.length;v++)f=s[v],h=f.p-a,d=f.p+a,c.push(h,d);if(u.width||u.offset){var m=l.t,b=m.poffset,p=m.barwidth,k=Oy(b),M=Oy(p);for(v=0;v<s.length;v++){f=s[v];var T=k?b[v]:b,L=M?p[v]:p;h=f.p+T,d=h+L,c.push(h,d)}}u._extremes[e._id]=o4.findExtremes(e,c,{padded:!1})}}function yve(e,t){for(var r=t.traces,n=hT(e),i=0;i<r.length;i++){for(var a=r[i],o=a[0].trace,s=o.type==="scatter",l=o.orientation==="v",u=[],c=!1,f=0;f<a.length;f++){var h=a[f],d=s?0:h.b,v=s?l?h.y:h.x:d+h.s;h[n]=v,u.push(v),h.hasB&&u.push(d),(!h.hasB||!h.b)&&(c=!0)}let{ppadminus:m,ppadplus:b}=TU(o,a);o._extremes[e._id]=o4.findExtremes(e,u,{tozero:c,padded:!0,ppadplus:b,ppadminus:m})}}function Wpt(e,t,r){var n=hT(e),i=t.traces,a,o,s,l,u,c,f;for(l=0;l<i.length;l++)if(a=i[l],o=a[0].trace,o.type==="funnel")for(f=a[0].t.offsetindex,u=0;u<a.length;u++)c=a[u],c.s!==fT&&t.put(c.p,f,-.5*c.s);for(l=0;l<i.length;l++){a=i[l],o=a[0].trace,s=o.type==="funnel",f=o.type==="barpolar"?0:a[0].t.offsetindex;var h=[];for(u=0;u<a.length;u++)if(c=a[u],c.s!==fT){var d;s?d=c.s:d=c.s+c.b;var v=t.put(c.p,f,d),m=v+d;c.b=v,c[n]=m,r.norm||(h.push(m),c.hasB&&h.push(v))}if(!r.norm){let{ppadminus:b,ppadplus:p}=TU(o,a);o._extremes[e._id]=o4.findExtremes(e,h,{tozero:!0,padded:!0,ppadplus:p,ppadminus:b})}}}function _ve(e){for(var t=e.traces,r=0;r<t.length;r++)for(var n=t[r],i=n[0].t.offsetindex,a=0;a<n.length;a++){var o=n[a];o.s!==fT&&e.put(o.p,i,o.b+o.s)}}function Xpt(e,t){for(var r=e.traces,n=0;n<r.length;n++){var i=r[n],a=i[0].trace,o=i[0].t.offsetindex;if(a.base===void 0)for(var s=new aI([i],{posAxis:t,sepNegVal:!0,overlapNoMerge:!0}),l=0;l<i.length;l++){var u=i[l];if(u.p!==fT){var c=s.put(u.p,o,u.b+u.s);c&&(u.b=c)}}}}function wU(e,t,r){var n=t.traces,i=hT(e),a=r.norm==="fraction"?1:100,o=a/1e9,s=e.l2c(e.c2l(0)),l=r.mode==="stack"?a:s;function u(x){return B0(e.c2l(x))&&(x<s-o||x>l+o||!B0(s))}for(var c=0;c<n.length;c++){for(var f=n[c],h=f[0].t.offsetindex,d=f[0].trace,v=[],m=!1,b=!1,p=0;p<f.length;p++){var k=f[p];if(k.s!==fT){var M=Math.abs(a/t.get(k.p,h,k.s));k.b*=M,k.s*=M;var T=k.b,L=T+k.s;k[i]=L,v.push(L),b=b||u(L),k.hasB&&(v.push(T),b=b||u(T)),(!k.hasB||!k.b)&&(m=!0)}}let{ppadminus:x,ppadplus:C}=TU(d,f);d._extremes[e._id]=o4.findExtremes(e,v,{tozero:m,padded:b,ppadplus:C,ppadminus:x})}}function TU(e,t){if(e.orientation==="v"&&(e.text||e.texttemplate)&&e.textposition==="outside"&&(e.textangle==="auto"||e.textangle===0)){let n=function(a){return!a||typeof a!="string"?0:(a.match(qpt)||[]).length+1};var r;e.texttemplate?r=n(e.texttemplate):r=Oy(e.text)?Math.max(...e.text.map(a=>n(a))):n(e.text);let i=e.outsidetextfont.size*zpt*r+Fpt;return{ppadplus:t.some(a=>a.s<0)?i:0,ppadminus:t.some(a=>a.s>=0)?i:0}}return{ppadplus:void 0,ppadminus:void 0}}function Zpt(e,t,r,n){for(var i=hT(n),a=0;a<e.length;a++)for(var o=e[a],s=0;s<o.length;s++){var l=o[s],u=l[i];l._sMin=t[u],l._sMax=r[u]}}function Ypt(e,t){var r=hT(t),n={},i,a,o,s=1/0,l=-1/0;for(i=0;i<e.length;i++)for(o=e[i],a=0;a<o.length;a++){var u=o[a].p;B0(u)&&(s=Math.min(s,u),l=Math.max(l,u))}var c=1e4/(l-s),f=n.round=function(S){return String(Math.round(c*(S-s)))},h={},d={},v=e.some(function(S){var g=S[0].trace;return"marker"in g&&g.marker.cornerradius});for(i=0;i<e.length;i++){o=e[i],o[0].t.extents=n;var m=o[0].t.poffset,b=Oy(m);for(a=0;a<o.length;a++){var p=o[a],k=p[r]-p.w/2;if(B0(k)){var M=p[r]+p.w/2,T=f(p.p);n[T]?n[T]=[Math.min(k,n[T][0]),Math.max(M,n[T][1])]:n[T]=[k,M]}if(p.p0=p.p+(b?m[a]:m),p.p1=p.p0+p.w,p.s0=p.b,p.s1=p.s0+p.s,v){var L=Math.min(p.s0,p.s1)||0,x=Math.max(p.s0,p.s1)||0,C=p[r];h[C]=C in h?Math.min(h[C],L):L,d[C]=C in d?Math.max(d[C],x):x}}}v&&Zpt(e,h,d,t)}function hT(e){return e._id.charAt(0)}xve.exports={crossTraceCalc:Opt,setGroupPositions:xU}});var Ave=ye((Msr,Tve)=>{"use strict";var bve=O0(),wve=i2().setGroupPositions;function Kpt(e,t){for(var r=t.xaxis,n=t.yaxis,i=e._fullLayout,a=e._fullData,o=e.calcdata,s=[],l=[],u=0;u<a.length;u++){var c=a[u];c.visible===!0&&c.type==="scatter"&&c.xaxis===r._id&&c.yaxis===n._id&&(c.orientation==="h"?s.push(o[u]):c.orientation==="v"&&l.push(o[u]))}var f={mode:i.scattermode,gap:i.scattergap};wve(e,r,n,l,f),wve(e,n,r,s,f)}Tve.exports=function(t,r){t._fullLayout.scattermode==="group"&&Kpt(t,r);var n=r.xaxis,i=r.yaxis,a=n._id+i._id,o=t._fullLayout._scatterStackOpts[a];if(o){var s=t.calcdata,l,u,c,f,h,d,v,m,b,p,k,M,T,L,x;for(var C in o){p=o[C];var S=p.traceIndices;if(S.length){for(k=p.stackgaps==="interpolate",M=p.groupnorm,p.orientation==="v"?(T="x",L="y"):(T="y",L="x"),x=new Array(S.length),l=0;l<x.length;l++)x[l]=!1;d=s[S[0]];var g=new Array(d.length);for(l=0;l<d.length;l++)g[l]=d[l][T];for(l=1;l<S.length;l++){for(h=s[S[l]],u=c=0;u<h.length;u++){for(v=h[u][T];v>g[c]&&c<g.length;c++)AU(h,u,g[c],l,x,k,T),u++;if(v!==g[c]){for(f=0;f<l;f++)AU(s[S[f]],c,v,f,x,k,T);g.splice(c,0,v)}c++}for(;c<g.length;c++)AU(h,u,g[c],l,x,k,T),u++}var P=g.length;for(u=0;u<d.length;u++){for(m=d[u][L]=d[u].s,l=1;l<S.length;l++)h=s[S[l]],h[0].trace._rawLength=h[0].trace._length,h[0].trace._length=P,m+=h[u].s,h[u][L]=m;if(M)for(b=(M==="fraction"?m:m/100)||1,l=0;l<S.length;l++){var E=s[S[l]][u];E[L]/=b,E.sNorm=E.s/b}}for(l=0;l<S.length;l++){h=s[S[l]];var z=h[0].trace,q=bve.calcMarkerSize(z,z._rawLength),V=Array.isArray(q);if(q&&x[l]||V){var G=q;for(q=new Array(P),u=0;u<P;u++)q[u]=h[u].gap?0:V?G[h[u].i]:G}var Z=new Array(P),j=new Array(P);for(u=0;u<P;u++)Z[u]=h[u].x,j[u]=h[u].y;bve.calcAxisExpansion(t,z,n,i,Z,j,q),h[0].t.orientation=p.orientation}}}}};function AU(e,t,r,n,i,a,o){i[n]=!0;var s={i:null,gap:!0,s:0};if(s[o]=r,e.splice(t,0,s),t&&r===e[t-1][o]){var l=e[t-1];s.s=l.s,s.i=l.i,s.gap=l.gap}else a&&(s.s=Jpt(e,t,r,o));t||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}function Jpt(e,t,r,n){var i=e[t-1],a=e[t+1];return a?i?i.s+(a.s-i.s)*(r-i[n])/(a[n]-i[n]):a.s:i.s}});var MU=ye((Esr,Lve)=>{"use strict";var $pt=So(),kve=fs(),s4=kve.BADNUM,Cve=kve.LOG_CLIP,Sve=Cve+.5,Mve=Cve-.5,oI=Pr(),Qpt=oI.segmentsIntersect,Eve=oI.constrain,SU=Pm();Lve.exports=function(t,r){var n=r.trace||{},i=r.xaxis,a=r.yaxis,o=i.type==="log",s=a.type==="log",l=i._length,u=a._length,c=r.backoff,f=n.marker,h=r.connectGaps,d=r.baseTolerance,v=r.shape,m=v==="linear",b=n.fill&&n.fill!=="none",p=[],k=SU.minTolerance,M=t.length,T=new Array(M),L=0,x,C,S,g,P,E,z,q,V,G,Z,j,N,H,ie,ae;function _e(gt){var Ge=t[gt];if(!Ge)return!1;var Je=r.linearized?i.l2p(Ge.x):i.c2p(Ge.x),We=r.linearized?a.l2p(Ge.y):a.c2p(Ge.y);if(Je===s4){if(o&&(Je=i.c2p(Ge.x,!0)),Je===s4)return!1;s&&We===s4&&(Je*=Math.abs(i._m*u*(i._m>0?Sve:Mve)/(a._m*l*(a._m>0?Sve:Mve)))),Je*=1e3}if(We===s4){if(s&&(We=a.c2p(Ge.y,!0)),We===s4)return!1;We*=1e3}return[Je,We]}function Ee(gt,Ge,Je,We){var et=Je-gt,xt=We-Ge,At=.5-gt,Kt=.5-Ge,Qt=et*et+xt*xt,Mr=et*At+xt*Kt;if(Mr>0&&Mr<Qt){var Gr=At*xt-Kt*et;if(Gr*Gr<Qt)return!0}}var Ce,ge;function re(gt,Ge){var Je=gt[0]/l,We=gt[1]/u,et=Math.max(0,-Je,Je-1,-We,We-1);return et&&Ce!==void 0&&Ee(Je,We,Ce,ge)&&(et=0),et&&Ge&&Ee(Je,We,Ge[0]/l,Ge[1]/u)&&(et=0),(1+SU.toleranceGrowth*et)*d}function Se(gt,Ge){var Je=gt[0]-Ge[0],We=gt[1]-Ge[1];return Math.sqrt(Je*Je+We*We)}var ke=SU.maxScreensAway,be=-l*ke,Be=l*(1+ke),Le=-u*ke,me=u*(1+ke),Pe=[[be,Le,Be,Le],[Be,Le,Be,me],[Be,me,be,me],[be,me,be,Le]],ce,He,lt,mt,Ht,at;function ct(gt,Ge){for(var Je=[],We=0,et=0;et<4;et++){var xt=Pe[et],At=Qpt(gt[0],gt[1],Ge[0],Ge[1],xt[0],xt[1],xt[2],xt[3]);At&&(!We||Math.abs(At.x-Je[0][0])>1||Math.abs(At.y-Je[0][1])>1)&&(At=[At.x,At.y],We&&Se(At,gt)<Se(Je[0],gt)?Je.unshift(At):Je.push(At),We++)}return Je}function ar(gt){if(gt[0]<be||gt[0]>Be||gt[1]<Le||gt[1]>me)return[Eve(gt[0],be,Be),Eve(gt[1],Le,me)]}function Vt(gt,Ge){if(gt[0]===Ge[0]&&(gt[0]===be||gt[0]===Be)||gt[1]===Ge[1]&&(gt[1]===Le||gt[1]===me))return!0}function rr(gt,Ge){var Je=[],We=ar(gt),et=ar(Ge);return We&&et&&Vt(We,et)||(We&&Je.push(We),et&&Je.push(et)),Je}function tt(gt,Ge,Je){return function(We,et){var xt=ar(We),At=ar(et),Kt=[];if(xt&&At&&Vt(xt,At))return Kt;xt&&Kt.push(xt),At&&Kt.push(At);var Qt=2*oI.constrain((We[gt]+et[gt])/2,Ge,Je)-((xt||We)[gt]+(At||et)[gt]);if(Qt){var Mr;xt&&At?Mr=Qt>0==xt[gt]>At[gt]?xt:At:Mr=xt||At,Mr[gt]+=Qt}return Kt}}var je;v==="linear"||v==="spline"?je=ct:v==="hv"||v==="vh"?je=rr:v==="hvh"?je=tt(0,be,Be):v==="vhv"&&(je=tt(1,Le,me));function Ue(gt,Ge){var Je=Ge[0]-gt[0],We=(Ge[1]-gt[1])/Je,et=(gt[1]*Ge[0]-Ge[1]*gt[0])/Je;return et>0?[We>0?be:Be,me]:[We>0?Be:be,Le]}function Ae(gt){var Ge=gt[0],Je=gt[1],We=Ge===T[L-1][0],et=Je===T[L-1][1];if(!(We&&et))if(L>1){var xt=Ge===T[L-2][0],At=Je===T[L-2][1];We&&(Ge===be||Ge===Be)&&xt?At?L--:T[L-1]=gt:et&&(Je===Le||Je===me)&&At?xt?L--:T[L-1]=gt:T[L++]=gt}else T[L++]=gt}function rt(gt){T[L-1][0]!==gt[0]&&T[L-1][1]!==gt[1]&&Ae([lt,mt]),Ae(gt),Ht=null,lt=mt=0}var St=oI.isArrayOrTypedArray(f);function Tt(gt){if(gt&&c&&(gt.i=x,gt.d=t,gt.trace=n,gt.marker=St?f[gt.i]:f,gt.backoff=c),Ce=gt[0]/l,ge=gt[1]/u,ce=gt[0]<be?be:gt[0]>Be?Be:0,He=gt[1]<Le?Le:gt[1]>me?me:0,ce||He){if(!L)T[L++]=[ce||gt[0],He||gt[1]];else if(Ht){var Ge=je(Ht,gt);Ge.length>1&&(rt(Ge[0]),T[L++]=Ge[1])}else at=je(T[L-1],gt)[0],T[L++]=at;var Je=T[L-1];ce&&He&&(Je[0]!==ce||Je[1]!==He)?(Ht&&(lt!==ce&&mt!==He?Ae(lt&&mt?Ue(Ht,gt):[lt||ce,mt||He]):lt&&mt&&Ae([lt,mt])),Ae([ce,He])):lt-ce&&mt-He&&Ae([ce||lt,He||mt]),Ht=gt,lt=ce,mt=He}else Ht&&rt(je(Ht,gt)[0]),T[L++]=gt}for(x=0;x<M;x++)if(C=_e(x),!!C){for(L=0,Ht=null,Tt(C),x++;x<M;x++){if(g=_e(x),!g){if(h)continue;break}if(!m||!r.simplify){Tt(g);continue}var dt=_e(x+1);if(G=Se(g,C),!(!(b&&(L===0||L===M-1))&&G<re(g,dt)*k)){for(q=[(g[0]-C[0])/G,(g[1]-C[1])/G],P=C,Z=G,j=H=ie=0,z=!1,S=g,x++;x<t.length;x++){if(E=dt,dt=_e(x+1),!E){if(h)continue;break}if(V=[E[0]-C[0],E[1]-C[1]],ae=V[0]*q[1]-V[1]*q[0],H=Math.min(H,ae),ie=Math.max(ie,ae),ie-H>re(E,dt))break;S=E,N=V[0]*q[0]+V[1]*q[1],N>Z?(Z=N,g=E,z=!1):N<j&&(j=N,P=E,z=!0)}if(z?(Tt(g),S!==P&&Tt(P)):(P!==C&&Tt(P),S!==g&&Tt(g)),Tt(S),x>=t.length||!E)break;Tt(E),C=E}}Ht&&Ae([lt||Ht[0],mt||Ht[1]]),p.push(T.slice(0,L))}var Et=v.slice(v.length-1);if(c&&Et!=="h"&&Et!=="v"){for(var pt=!1,jt=-1,or=[],mr=0;mr<p.length;mr++)for(var Ar=0;Ar<p[mr].length-1;Ar++){var ei=p[mr][Ar],qr=p[mr][Ar+1],jr=$pt.applyBackoff(qr,ei);(jr[0]!==qr[0]||jr[1]!==qr[1])&&(pt=!0),or[jt+1]||(jt++,or[jt]=[ei,[jr[0],jr[1]]])}return pt?or:p}return p}});var EU=ye((ksr,Ive)=>{"use strict";var Pve={tonextx:1,tonexty:1,tonext:1};Ive.exports=function(t,r,n){var i,a,o,s,l,u={},c=!1,f=-1,h=0,d=-1;for(a=0;a<n.length;a++)i=n[a][0].trace,o=i.stackgroup||"",o?o in u?l=u[o]:(l=u[o]=h,h++):i.fill in Pve&&d>=0?l=d:(l=d=h,h++),l<f&&(c=!0),i._groupIndex=f=l;var v=n.slice();c&&v.sort(function(b,p){var k=b[0].trace,M=p[0].trace;return k._groupIndex-M._groupIndex||k.index-M.index});var m={};for(a=0;a<v.length;a++)i=v[a][0].trace,o=i.stackgroup||"",i.visible===!0?(i._nexttrace=null,i.fill in Pve&&(s=m[o],i._prevtrace=s||null,s&&(s._nexttrace=i)),i._ownfill=i.fill&&(i.fill.slice(0,6)==="tozero"||i.fill==="toself"||i.fill.slice(0,2)==="to"&&!i._prevtrace),m[o]=i):i._prevtrace=i._nexttrace=i._ownfill=null;return v}});var pT=ye((Csr,Fve)=>{"use strict";var qg=qa(),e0t=Oa(),l4=Pr(),dT=l4.ensureSingle,Dve=l4.identity,Kf=So(),vT=Ru(),t0t=MU(),r0t=EU(),sI=zM().tester;Fve.exports=function(t,r,n,i,a,o){var s,l,u=!a,c=!!a&&a.duration>0,f=r0t(t,r,n);if(s=i.selectAll("g.trace").data(f,function(d){return d[0].trace.uid}),s.enter().append("g").attr("class",function(d){return"trace scatter trace"+d[0].trace.uid}).style("stroke-miterlimit",2),s.order(),i0t(t,s,r),c){o&&(l=o());var h=qg.transition().duration(a.duration).ease(a.easing).each("end",function(){l&&l()}).each("interrupt",function(){l&&l()});h.each(function(){i.selectAll("g.trace").each(function(d,v){Rve(t,v,r,d,f,this,a)})})}else s.each(function(d,v){Rve(t,v,r,d,f,this,a)});u&&s.exit().remove(),i.selectAll("path:not([d])").remove()};function i0t(e,t,r){t.each(function(n){var i=dT(qg.select(this),"g","fills");Kf.setClipUrl(i,r.layerClipId,e);var a=n[0].trace;a._ownFill=null,a._nextFill=null;var o=[];a._ownfill&&o.push("_ownFill"),a._nexttrace&&o.push("_nextFill");var s=i.selectAll("g").data(o,Dve);s.enter().append("g"),s.exit().remove(),s.order().each(function(l){a[l]=dT(qg.select(this),"path","js-fill")})})}function Rve(e,t,r,n,i,a,o){var s=e._context.staticPlot,l;n0t(e,t,r,n,i);var u=!!o&&o.duration>0;function c(tt){return u?tt.transition():tt}var f=r.xaxis,h=r.yaxis,d=n[0].trace,v=d.line,m=qg.select(a),b=dT(m,"g","errorbars"),p=dT(m,"g","lines"),k=dT(m,"g","points"),M=dT(m,"g","text");if(e0t.getComponentMethod("errorbars","plot")(e,b,r,o),d.visible!==!0)return;c(m).style("opacity",d.opacity);var T,L,x=d.fill.charAt(d.fill.length-1);x!=="x"&&x!=="y"&&(x="");var C,S;x==="y"?(C=1,S=h.c2p(0,!0)):x==="x"&&(C=0,S=f.c2p(0,!0)),n[0][r.isRangePlot?"nodeRangePlot3":"node3"]=m;var g="",P=[],E=d._prevtrace,z=null,q=null;E&&(g=E._prevRevpath||"",L=E._nextFill,P=E._ownPolygons,z=E._fillsegments,q=E._fillElement);var V,G,Z="",j="",N,H,ie,ae,_e,Ee,Ce=[];d._polygons=[];var ge=[],re=[],Se=l4.noop;if(T=d._ownFill,vT.hasLines(d)||d.fill!=="none"){L&&L.datum(n),["hv","vh","hvh","vhv"].indexOf(v.shape)!==-1?(N=Kf.steps(v.shape),H=Kf.steps(v.shape.split("").reverse().join(""))):v.shape==="spline"?N=H=function(tt){var je=tt[tt.length-1];return tt.length>1&&tt[0][0]===je[0]&&tt[0][1]===je[1]?Kf.smoothclosed(tt.slice(1),v.smoothing):Kf.smoothopen(tt,v.smoothing)}:N=H=function(tt){return"M"+tt.join("L")},ie=function(tt){return H(tt.reverse())},re=t0t(n,{xaxis:f,yaxis:h,trace:d,connectGaps:d.connectgaps,baseTolerance:Math.max(v.width||1,3)/4,shape:v.shape,backoff:v.backoff,simplify:v.simplify,fill:d.fill}),ge=new Array(re.length);var ke=0;for(l=0;l<re.length;l++){var be,Be=re[l];!be||!x?(be=Be.slice(),ge[ke]=be,ke++):be.push.apply(be,Be)}d._fillElement=null,d._fillExclusionElement=q,d._fillsegments=ge.slice(0,ke),ge=d._fillsegments,re.length&&(ae=re[0][0].slice(),_e=re[re.length-1],Ee=_e[_e.length-1].slice()),Se=function(tt){return function(je){if(V=N(je),G=ie(je),Z?x?(Z+="L"+V.slice(1),j=G+("L"+j.slice(1))):(Z+="Z"+V,j=G+"Z"+j):(Z=V,j=G),vT.hasLines(d)){var Ue=qg.select(this);if(Ue.datum(n),tt)c(Ue.style("opacity",0).attr("d",V).call(Kf.lineGroupStyle)).style("opacity",1);else{var Ae=c(Ue);Ae.attr("d",V),Kf.singleLineStyle(n,Ae)}}}}}var Le=p.selectAll(".js-line").data(re);c(Le.exit()).style("opacity",0).remove(),Le.each(Se(!1)),Le.enter().append("path").classed("js-line",!0).style("vector-effect",s?"none":"non-scaling-stroke").call(Kf.lineGroupStyle).each(Se(!0)),Kf.setClipUrl(Le,r.layerClipId,e);function me(tt){c(tt).attr("d","M0,0Z")}var Pe=function(){var tt=new Array(ge.length);for(l=0;l<ge.length;l++)tt[l]=sI(ge[l]);return tt},ce=function(tt){var je,Ue;if(!tt||tt.length===0)for(je=new Array(ge.length),Ue=0;Ue<ge.length;Ue++){var Ae=ge[Ue][0].slice(),rt=ge[Ue][ge[Ue].length-1].slice();Ae[C]=rt[C]=S;var St=[rt,Ae],Tt=St.concat(ge[Ue]);je[Ue]=sI(Tt)}else{for(je=new Array(tt.length-1+ge.length),Ue=0;Ue<tt.length-1;Ue++)je[Ue]=sI(tt[Ue]);var dt=tt[tt.length-1].slice();for(dt.reverse(),Ue=0;Ue<ge.length;Ue++)je[tt.length-1+Ue]=sI(ge[Ue].concat(dt))}return je};re.length?(T?(T.datum(n),ae&&Ee&&(x?(ae[C]=Ee[C]=S,c(T).attr("d","M"+Ee+"L"+ae+"L"+Z.slice(1)).call(Kf.singleFillStyle,e),Ce=ce(null)):(c(T).attr("d",Z+"Z").call(Kf.singleFillStyle,e),Ce=Pe())),d._polygons=Ce,d._fillElement=T):L&&(d.fill.slice(0,6)==="tonext"&&Z&&g?(d.fill==="tonext"?(c(L).attr("d",Z+"Z"+g+"Z").call(Kf.singleFillStyle,e),Ce=Pe(),d._polygons=Ce.concat(P)):(c(L).attr("d",Z+"L"+g.slice(1)+"Z").call(Kf.singleFillStyle,e),Ce=ce(z),d._polygons=Ce),d._fillElement=L):me(L)),d._prevRevpath=j):(T?me(T):L&&me(L),d._prevRevpath=null),d._ownPolygons=Ce;function He(tt){return tt.filter(function(je){return!je.gap&&je.vis})}function lt(tt){return tt.filter(function(je){return je.vis})}function mt(tt){return tt.filter(function(je){return!je.gap})}function Ht(tt){return tt.id}function at(tt){if(tt.ids)return Ht}function ct(){return!1}function ar(tt,je,Ue){var Ae,rt,St,Tt=Ue[0].trace,dt=vT.hasMarkers(Tt),Et=vT.hasText(Tt),pt=at(Tt),jt=ct,or=ct;if(dt||Et){var mr=Dve,Ar=Tt.stackgroup,ei=Ar&&e._fullLayout._scatterStackOpts[f._id+h._id][Ar].stackgaps==="infer zero";Tt.marker.maxdisplayed||Tt._needsCull?mr=ei?lt:He:Ar&&!ei&&(mr=mt),dt&&(jt=mr),Et&&(or=mr)}rt=tt.selectAll("path.point"),Ae=rt.data(jt,pt);var qr=Ae.enter().append("path").classed("point",!0);u&&qr.call(Kf.pointStyle,Tt,e).call(Kf.translatePoints,f,h).style("opacity",0).transition().style("opacity",1),Ae.order();var jr;dt&&(jr=Kf.makePointStyleFns(Tt)),Ae.each(function(gt){var Ge=qg.select(this),Je=c(Ge);St=Kf.translatePoint(gt,Je,f,h),St?(Kf.singlePointStyle(gt,Je,Tt,jr,e),r.layerClipId&&Kf.hideOutsideRangePoint(gt,Je,f,h,Tt.xcalendar,Tt.ycalendar),Tt.customdata&&Ge.classed("plotly-customdata",gt.data!==null&&gt.data!==void 0)):Je.remove()}),u?Ae.exit().transition().style("opacity",0).remove():Ae.exit().remove(),rt=je.selectAll("g"),Ae=rt.data(or,pt),Ae.enter().append("g").classed("textpoint",!0).append("text"),Ae.order(),Ae.each(function(gt){var Ge=qg.select(this),Je=c(Ge.select("text"));St=Kf.translatePoint(gt,Je,f,h),St?r.layerClipId&&Kf.hideOutsideRangePoint(gt,Ge,f,h,Tt.xcalendar,Tt.ycalendar):Ge.remove()}),Ae.selectAll("text").call(Kf.textPointStyle,Tt,e).each(function(gt){var Ge=f.c2p(gt.x),Je=h.c2p(gt.y);qg.select(this).selectAll("tspan.line").each(function(){c(qg.select(this)).attr({x:Ge,y:Je})})}),Ae.exit().remove()}k.datum(n),M.datum(n),ar(k,M,n);var Vt=d.cliponaxis===!1,rr=Vt?null:r.layerClipId;Kf.setClipUrl(k,rr,e),Kf.setClipUrl(M,rr,e)}function n0t(e,t,r,n,i){var a=r.xaxis,o=r.yaxis,s=qg.extent(l4.simpleMap(a.range,a.r2c)),l=qg.extent(l4.simpleMap(o.range,o.r2c)),u=n[0].trace;if(vT.hasMarkers(u)){var c=u.marker.maxdisplayed;if(c!==0){var f=n.filter(function(m){return m.x>=s[0]&&m.x<=s[1]&&m.y>=l[0]&&m.y<=l[1]}),h=Math.ceil(f.length/c),d=0;i.forEach(function(m,b){var p=m[0].trace;vT.hasMarkers(p)&&p.marker.maxdisplayed>0&&b<t&&d++});var v=Math.round(d*h/3+Math.floor(d/3)*h/7.1);n.forEach(function(m){delete m.vis}),f.forEach(function(m,b){Math.round((b+v)%h)===0&&(m.vis=!0)})}}}});var Qd=ye((Lsr,zve)=>{"use strict";zve.exports={container:"marker",min:"cmin",max:"cmax"}});var uI=ye((Psr,qve)=>{"use strict";var lI=ho();qve.exports=function(t,r,n){var i={},a={_fullLayout:n},o=lI.getFromTrace(a,r,"x"),s=lI.getFromTrace(a,r,"y"),l=t.orig_x;l===void 0&&(l=t.x);var u=t.orig_y;return u===void 0&&(u=t.y),i.xLabel=lI.tickText(o,o.c2l(l),!0).text,i.yLabel=lI.tickText(s,s.c2l(u),!0).text,i}});var sp=ye((Isr,Ove)=>{"use strict";var kU=qa(),gT=So(),a0t=Oa();function o0t(e){var t=kU.select(e).selectAll("g.trace.scatter");t.style("opacity",function(r){return r[0].trace.opacity}),t.selectAll("g.points").each(function(r){var n=kU.select(this),i=r.trace||r[0].trace;CU(n,i,e)}),t.selectAll("g.text").each(function(r){var n=kU.select(this),i=r.trace||r[0].trace;LU(n,i,e)}),t.selectAll("g.trace path.js-line").call(gT.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(gT.fillGroupStyle,e,!1),a0t.getComponentMethod("errorbars","style")(t)}function CU(e,t,r){gT.pointStyle(e.selectAll("path.point"),t,r)}function LU(e,t,r){gT.textPointStyle(e.selectAll("text"),t,r)}function s0t(e,t,r){var n=t[0].trace;n.selectedpoints?(gT.selectedPointStyle(r.selectAll("path.point"),n),gT.selectedTextStyle(r.selectAll("text"),n)):(CU(r,n,e),LU(r,n,e))}Ove.exports={style:o0t,stylePoints:CU,styleText:LU,styleOnSelect:s0t}});var yT=ye((Rsr,Bve)=>{"use strict";var mT=ka(),l0t=Ru();Bve.exports=function(t,r){var n,i;if(t.mode==="lines")return n=t.line.color,n&&mT.opacity(n)?n:t.fillcolor;if(t.mode==="none")return t.fill?t.fillcolor:"";var a=r.mcc||(t.marker||{}).color,o=r.mlcc||((t.marker||{}).line||{}).color;return i=a&&mT.opacity(a)?a:o&&mT.opacity(o)&&(r.mlw||((t.marker||{}).line||{}).width)?o:"",i?mT.opacity(i)<.3?mT.addOpacity(i,.3):i:(n=(t.line||{}).color,n&&mT.opacity(n)&&l0t.hasLines(t)&&t.line.width?n:t.fillcolor)}});var _T=ye((Dsr,Uve)=>{"use strict";var cI=Pr(),Nve=ef(),u0t=Oa(),c0t=yT(),PU=ka(),f0t=cI.fillText;Uve.exports=function(t,r,n,i){var a=t.cd,o=a[0].trace,s=t.xa,l=t.ya,u=s.c2p(r),c=l.c2p(n),f=[u,c],h=o.hoveron||"",d=o.mode.indexOf("markers")!==-1?3:.5,v=!!o.xperiodalignment,m=!!o.yperiodalignment;if(h.indexOf("points")!==-1){var b=function(j){if(v){var N=s.c2p(j.xStart),H=s.c2p(j.xEnd);return u>=Math.min(N,H)&&u<=Math.max(N,H)?0:1/0}var ie=Math.max(3,j.mrc||0),ae=1-1/ie,_e=Math.abs(s.c2p(j.x)-u);return _e<ie?ae*_e/ie:_e-ie+ae},p=function(j){if(m){var N=l.c2p(j.yStart),H=l.c2p(j.yEnd);return c>=Math.min(N,H)&&c<=Math.max(N,H)?0:1/0}var ie=Math.max(3,j.mrc||0),ae=1-1/ie,_e=Math.abs(l.c2p(j.y)-c);return _e<ie?ae*_e/ie:_e-ie+ae},k=function(j){var N=Math.max(d,j.mrc||0),H=s.c2p(j.x)-u,ie=l.c2p(j.y)-c;return Math.max(Math.sqrt(H*H+ie*ie)-N,1-d/N)},M=Nve.getDistanceFunction(i,b,p,k);if(Nve.getClosest(a,M,t),t.index!==!1){var T=a[t.index],L=s.c2p(T.x,!0),x=l.c2p(T.y,!0),C=T.mrc||1;t.index=T.i;var S=a[0].t.orientation,g=S&&(T.sNorm||T.s),P=S==="h"?g:T.orig_x!==void 0?T.orig_x:T.x,E=S==="v"?g:T.orig_y!==void 0?T.orig_y:T.y;return cI.extendFlat(t,{color:c0t(o,T),x0:L-C,x1:L+C,xLabelVal:P,y0:x-C,y1:x+C,yLabelVal:E,spikeDistance:k(T),hovertemplate:o.hovertemplate}),f0t(T,o,t),u0t.getComponentMethod("errorbars","hoverInfo")(T,o,t),[t]}}function z(j){if(!j)return!1;var N=j.node();try{var H=new DOMPoint(f[0],f[1]);return N.isPointInFill(H)}catch(ae){var ie=N.ownerSVGElement.createSVGPoint();return ie.x=f[0],ie.y=f[1],N.isPointInFill(ie)}}function q(j){var N,H=[],ie=1/0,ae=-1/0,_e=1/0,Ee=-1/0,Ce;for(N=0;N<j.length;N++){var ge=j[N];ge.contains(f)&&(H.push(ge),_e=Math.min(_e,ge.ymin),Ee=Math.max(Ee,ge.ymax))}if(H.length===0)return null;_e=Math.max(_e,0),Ee=Math.min(Ee,l._length),Ce=(_e+Ee)/2;var re,Se,ke,be,Be,Le,me;for(N=0;N<H.length;N++)for(Se=H[N].pts,re=1;re<Se.length;re++)Le=Se[re-1][1],me=Se[re][1],Le>Ce!=me>=Ce&&(be=Se[re-1][0],Be=Se[re][0],me-Le&&(ke=be+(Be-be)*(Ce-Le)/(me-Le),ie=Math.min(ie,ke),ae=Math.max(ae,ke)));return ie=Math.max(ie,0),ae=Math.min(ae,s._length),{x0:ie,x1:ae,y0:Ce,y1:Ce}}if(h.indexOf("fills")!==-1&&o._fillElement){var V=z(o._fillElement)&&!z(o._fillExclusionElement);if(V){var G=q(o._polygons);G===null&&(G={x0:f[0],x1:f[0],y0:f[1],y1:f[1]});var Z=PU.defaultLine;return PU.opacity(o.fillcolor)?Z=o.fillcolor:PU.opacity((o.line||{}).color)&&(Z=o.line.color),cI.extendFlat(t,{distance:t.maxHoverDistance,x0:G.x0,x1:G.x1,y0:G.y0,y1:G.y1,color:Z,hovertemplate:!1}),delete t.index,o.text&&!cI.isArrayOrTypedArray(o.text)?t.text=String(o.text):t.text=o.name,[t]}}}});var xT=ye((Fsr,Gve)=>{"use strict";var Vve=Ru();Gve.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].trace,l,u,c,f,h=!Vve.hasMarkers(s)&&!Vve.hasText(s);if(h)return[];if(r===!1)for(l=0;l<n.length;l++)n[l].selected=0;else for(l=0;l<n.length;l++)u=n[l],c=i.c2p(u.x),f=a.c2p(u.y),u.i!==null&&r.contains([c,f],!1,l,t)?(o.push({pointNumber:u.i,x:i.c2d(u.x),y:a.c2d(u.y)}),u.selected=1):u.selected=0;return o}});var jve=ye((zsr,Hve)=>{"use strict";Hve.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}});var RU=ye((qsr,Zve)=>{"use strict";var u4=Oa().traceIs,IU=H3();Zve.exports=function(t,r,n,i){n("autotypenumbers",i.autotypenumbersDflt);var a=n("type",(i.splomStash||{}).type);a==="-"&&(h0t(r,i.data),r.type==="-"?r.type="linear":t.type=r.type)};function h0t(e,t){if(e.type==="-"){var r=e._id,n=r.charAt(0),i;r.indexOf("scene")!==-1&&(r=n);var a=d0t(t,r,n);if(a){if(a.type==="histogram"&&n==={v:"y",h:"x"}[a.orientation||"v"]){e.type="linear";return}var o=n+"calendar",s=a[o],l={noMultiCategory:!u4(a,"cartesian")||u4(a,"noMultiCategory")};if(a.type==="box"&&a._hasPreCompStats&&n==={h:"x",v:"y"}[a.orientation||"v"]&&(l.noMultiCategory=!0),l.autotypenumbers=e.autotypenumbers,Xve(a,n)){var u=Wve(a),c=[];for(i=0;i<t.length;i++){var f=t[i];!u4(f,"box-violin")||(f[n+"axis"]||n)!==r||(f[u]!==void 0?c.push(f[u][0]):f.name!==void 0?c.push(f.name):c.push("text"),f[o]!==s&&(s=void 0))}e.type=IU(c,s,l)}else if(a.type==="splom"){var h=a.dimensions,d=h[a._axesDim[r]];d.visible&&(e.type=IU(d.values,s,l))}else e.type=IU(a[n]||[a[n+"0"]],s,l)}}}function d0t(e,t,r){for(var n=0;n<e.length;n++){var i=e[n];if(i.type==="splom"&&i._length>0&&(i["_"+r+"axes"]||{})[t])return i;if((i[r+"axis"]||r)===t){if(Xve(i,r))return i;if((i[r]||[]).length||i[r+"0"])return i}}}function Wve(e){return{v:"x",h:"y"}[e.orientation||"v"]}function Xve(e,t){var r=Wve(e),n=u4(e,"box-violin"),i=u4(e._fullInput||{},"candlestick");return n&&!i&&t===r&&e[r]===void 0&&e[r+"0"]===void 0}});var fI=ye((Osr,Yve)=>{"use strict";var v0t=Yd().isTypedArraySpec;function p0t(e,t){var r=t.dataAttr||e._id.charAt(0),n={},i,a,o;if(t.axData)i=t.axData;else for(i=[],a=0;a<t.data.length;a++){var s=t.data[a];s[r+"axis"]===e._id&&i.push(s)}for(a=0;a<i.length;a++){var l=i[a][r];for(o=0;o<l.length;o++){var u=l[o];u!=null&&(n[u]=1)}}return Object.keys(n)}Yve.exports=function(t,r,n,i){if(r.type==="category"){var a=t.categoryarray,o=Array.isArray(a)&&a.length>0||v0t(a),s;o&&(s="array");var l=n("categoryorder",s),u;l==="array"&&(u=n("categoryarray")),!o&&l==="array"&&(l=r.categoryorder="trace"),l==="trace"?r._initialCategories=[]:l==="array"?r._initialCategories=u.slice():(u=p0t(r,i).sort(),l==="category ascending"?r._initialCategories=u:l==="category descending"&&(r._initialCategories=u.reverse()))}}});var c4=ye((Bsr,Jve)=>{"use strict";var Kve=fd().mix,g0t=Ih(),m0t=Pr();Jve.exports=function(t,r,n,i){i=i||{};var a=i.dfltColor;function o(S,g){return m0t.coerce2(t,r,i.attributes,S,g)}var s=o("linecolor",a),l=o("linewidth"),u=n("showline",i.showLine||!!s||!!l);u||(delete r.linecolor,delete r.linewidth);var c=Kve(a,i.bgColor,i.blend||g0t.lightFraction).toRgbString(),f=o("gridcolor",c),h=o("gridwidth"),d=o("griddash"),v=n("showgrid",i.showGrid||!!f||!!h||!!d);if(v||(delete r.gridcolor,delete r.gridwidth,delete r.griddash),i.hasMinor){var m=Kve(r.gridcolor,i.bgColor,67).toRgbString(),b=o("minor.gridcolor",m),p=o("minor.gridwidth",r.gridwidth||1),k=o("minor.griddash",r.griddash||"solid"),M=n("minor.showgrid",!!b||!!p||!!k);M||(delete r.minor.gridcolor,delete r.minor.gridwidth,delete r.minor.griddash)}if(!i.noZeroLine){var T=o("zerolinelayer"),L=o("zerolinecolor",a),x=o("zerolinewidth"),C=n("zeroline",i.showGrid||!!L||!!x);C||(delete r.zerolinelayer,delete r.zerolinecolor,delete r.zerolinewidth)}}});var h4=ye((Nsr,ipe)=>{"use strict";var $ve=Eo(),y0t=Oa(),f4=Pr(),_0t=vl(),x0t=Kd(),DU=Rd(),Qve=Pb(),epe=q3(),b0t=s_(),w0t=l_(),T0t=fI(),A0t=c4(),S0t=MB(),tpe=xm(),hI=Rh().WEEKDAY_PATTERN,M0t=Rh().HOUR_PATTERN;ipe.exports=function(t,r,n,i,a){var o=i.letter,s=i.font||{},l=i.splomStash||{},u=n("visible",!i.visibleDflt),c=r._template||{},f=r.type||c.type||"-",h;if(f==="date"){var d=y0t.getComponentMethod("calendars","handleDefaults");d(t,r,"calendar",i.calendar),i.noTicklabelmode||(h=n("ticklabelmode"))}!i.noTicklabelindex&&(f==="date"||f==="linear")&&n("ticklabelindex");var v="";(!i.noTicklabelposition||f==="multicategory")&&(v=f4.coerce(t,r,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:h==="period"?["outside","inside"]:o==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),i.noTicklabeloverflow||n("ticklabeloverflow",v.indexOf("inside")!==-1?"hide past domain":f==="category"||f==="multicategory"?"allow":"hide past div"),tpe(r,a),S0t(t,r,n,i),T0t(t,r,n,i),i.noHover||(f!=="category"&&n("hoverformat"),i.noUnifiedhovertitle||n("unifiedhovertitle.text"));var m=n("color"),b=m!==DU.color.dflt?m:s.color,p=l.label||a._dfltTitle[o];if(w0t(t,r,n,f,i),!u)return r;n("title.text",p),f4.coerceFont(n,"title.font",s,{overrideDflt:{size:f4.bigFont(s.size),color:b}}),Qve(t,r,n,f);var k=i.hasMinor;if(k&&(_0t.newContainer(r,"minor"),Qve(t,r,n,f,{isMinor:!0})),b0t(t,r,n,f,i),epe(t,r,n,i),k){var M=i.isMinor;i.isMinor=!0,epe(t,r,n,i),i.isMinor=M}A0t(t,r,n,{dfltColor:m,bgColor:i.bgColor,showGrid:i.showGrid,hasMinor:k,attributes:DU}),k&&r.ticklabelindex==null&&!r.minor.ticks&&!r.minor.showgrid&&delete r.minor,(r.showline||r.ticks)&&n("mirror");var T=f==="multicategory";if(!i.noTickson&&(f==="category"||T)&&(r.ticks||r.showgrid)&&(T?(n("tickson","boundaries"),delete r.ticklabelposition):n("tickson")),T){var L=n("showdividers");L&&(n("dividercolor"),n("dividerwidth"))}if(f==="date")if(x0t(t,r,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:E0t}),!r.rangebreaks.length)delete r.rangebreaks;else{for(var x=0;x<r.rangebreaks.length;x++)if(r.rangebreaks[x].pattern===hI){r._hasDayOfWeekBreaks=!0;break}if(tpe(r,a),a._has("scattergl")||a._has("splom"))for(var C=0;C<i.data.length;C++){var S=i.data[C];(S.type==="scattergl"||S.type==="splom")&&(S.visible=!1,f4.warn(S.type+" traces do not work on axes with rangebreaks. Setting trace "+S.index+" to `visible: false`."))}}return r};function E0t(e,t,r){function n(h,d){return f4.coerce(e,t,DU.rangebreaks,h,d)}var i=n("enabled");if(i){var a=n("bounds");if(a&&a.length>=2){var o="",s,l;if(a.length===2){for(s=0;s<2;s++)if(l=rpe(a[s]),l){o=hI;break}}var u=n("pattern",o);if(u===hI)for(s=0;s<2;s++)l=rpe(a[s]),l&&(t.bounds[s]=a[s]=l-1);if(u)for(s=0;s<2;s++)switch(l=a[s],u){case hI:if(!$ve(l)){t.enabled=!1;return}if(l=+l,l!==Math.floor(l)||l<0||l>=7){t.enabled=!1;return}t.bounds[s]=a[s]=l;break;case M0t:if(!$ve(l)){t.enabled=!1;return}if(l=+l,l<0||l>24){t.enabled=!1;return}t.bounds[s]=a[s]=l;break}if(r.autorange===!1){var c=r.range;if(c[0]<c[1]){if(a[0]<c[0]&&a[1]>c[1]){t.enabled=!1;return}}else if(a[0]>c[0]&&a[1]<c[1]){t.enabled=!1;return}}}else{var f=n("values");if(f&&f.length)n("dvalue");else{t.enabled=!1;return}}}}var k0t={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function rpe(e){if(typeof e=="string")return k0t[e.slice(0,3).toLowerCase()]}});var vI=ye((Usr,npe)=>{"use strict";var C0t=Eo(),dI=Pr();npe.exports=function(t,r,n,i){var a=i.counterAxes||[],o=i.overlayableAxes||[],s=i.letter,l=i.grid,u=i.overlayingDomain,c,f,h,d,v,m;l&&(f=l._domains[s][l._axisMap[r._id]],c=l._anchors[r._id],f&&(h=l[s+"side"].split(" ")[0],d=l.domain[s][h==="right"||h==="top"?1:0])),f=f||[0,1],c=c||(C0t(t.position)?"free":a[0]||"free"),h=h||(s==="x"?"bottom":"left"),d=d||0,v=0,m=!1;var b=dI.coerce(t,r,{anchor:{valType:"enumerated",values:["free"].concat(a),dflt:c}},"anchor"),p=dI.coerce(t,r,{side:{valType:"enumerated",values:s==="x"?["bottom","top"]:["left","right"],dflt:h}},"side");if(b==="free"){if(s==="y"){var k=n("autoshift");k&&(d=p==="left"?u[0]:u[1],m=r.automargin?r.automargin:!0,v=p==="left"?-3:3),n("shift",v)}n("position",d)}n("automargin",m);var M=!1;if(o.length&&(M=dI.coerce(t,r,{overlaying:{valType:"enumerated",values:[!1].concat(o),dflt:!1}},"overlaying")),!M){var T=n("domain",f);T[0]>T[1]-1/4096&&(r.domain=f),dI.noneOrAll(t.domain,r.domain,f),r.tickmode==="sync"&&(r.tickmode="auto")}return n("layer"),r}});var dpe=ye((Vsr,hpe)=>{"use strict";var n2=Pr(),ape=ka(),L0t=ip().isUnifiedHover,P0t=$B(),ope=vl(),I0t=b3(),spe=Rd(),R0t=RU(),lpe=h4(),D0t=$b(),upe=vI(),zU=df(),Fm=zU.id2name,cpe=zU.name2id,F0t=Rh().AX_ID_PATTERN,fpe=Oa(),pI=fpe.traceIs,FU=fpe.getComponentMethod;function gI(e,t,r){Array.isArray(e[t])?e[t].push(r):e[t]=[r]}hpe.exports=function(t,r,n){var i=r.autotypenumbers,a={},o={},s={},l={},u={},c={},f={},h={},d={},v={},m,b;for(m=0;m<n.length;m++){var p=n[m];if(pI(p,"cartesian")){var k;if(p.xaxis)k=Fm(p.xaxis),gI(a,k,p);else if(p.xaxes)for(b=0;b<p.xaxes.length;b++)gI(a,Fm(p.xaxes[b]),p);var M;if(p.yaxis)M=Fm(p.yaxis),gI(a,M,p);else if(p.yaxes)for(b=0;b<p.yaxes.length;b++)gI(a,Fm(p.yaxes[b]),p);if(p.type==="funnel"?p.orientation==="h"?(k&&(o[k]=!0),M&&(f[M]=!0)):M&&(s[M]=!0):p.type==="image"?(M&&(h[M]=!0),k&&(h[k]=!0)):(M&&(u[M]=!0,c[M]=!0),(!pI(p,"carpet")||p.type==="carpet"&&!p._cheater)&&k&&(l[k]=!0)),p.type==="carpet"&&p._cheater&&k&&(o[k]=!0),pI(p,"2dMap")&&(d[k]=!0,d[M]=!0),pI(p,"oriented")){var T=p.orientation==="h"?M:k;v[T]=!0}}}var L=r._subplots,x=L.xaxis,C=L.yaxis,S=n2.simpleMap(x,Fm),g=n2.simpleMap(C,Fm),P=S.concat(g),E=ape.background;x.length&&C.length&&(E=n2.coerce(t,r,I0t,"plot_bgcolor"));var z=ape.combine(E,r.paper_bgcolor),q,V,G,Z,j;function N(){var rt=a[q]||[];j._traceIndices=rt.map(function(St){return St.index}),j._annIndices=[],j._shapeIndices=[],j._selectionIndices=[],j._imgIndices=[],j._subplotsWith=[],j._counterAxes=[],j._name=j._attr=q,j._id=V}function H(rt,St){return n2.coerce(Z,j,spe,rt,St)}function ie(rt,St){return n2.coerce2(Z,j,spe,rt,St)}function ae(rt){return rt==="x"?C:x}function _e(rt,St){for(var Tt=rt==="x"?S:g,dt=[],Et=0;Et<Tt.length;Et++){var pt=Tt[Et];pt!==St&&!(t[pt]||{}).overlaying&&dt.push(cpe(pt))}return dt}var Ee={x:ae("x"),y:ae("y")},Ce=Ee.x.concat(Ee.y),ge={},re=[];function Se(){var rt=Z.matches;F0t.test(rt)&&Ce.indexOf(rt)===-1&&(ge[rt]=Z.type,re=Object.keys(ge))}var ke=P0t(t,r),be=L0t(ke);for(m=0;m<P.length;m++){q=P[m],V=cpe(q),G=q.charAt(0),n2.isPlainObject(t[q])||(t[q]={}),Z=t[q],j=ope.newContainer(r,q,G+"axis"),N();var Be=G==="x"&&!l[q]&&o[q]||G==="y"&&!u[q]&&s[q],Le=G==="y"&&(!c[q]&&f[q]||h[q]),me={hasMinor:!0,letter:G,font:r.font,outerTicks:d[q],showGrid:!v[q],data:a[q]||[],bgColor:z,calendar:r.calendar,automargin:!0,visibleDflt:Be,reverseDflt:Le,autotypenumbersDflt:i,splomStash:((r._splomAxes||{})[G]||{})[V],noAutotickangles:G==="y"};H("uirevision",r.uirevision),R0t(Z,j,H,me),lpe(Z,j,H,me,r);var Pe=be&&G===ke.charAt(0),ce=ie("spikecolor",be?j.color:void 0),He=ie("spikethickness",be?1.5:void 0),lt=ie("spikedash",be?"dot":void 0),mt=ie("spikemode",be?"across":void 0),Ht=ie("spikesnap"),at=H("showspikes",!!Pe||!!ce||!!He||!!lt||!!mt||!!Ht);at||(delete j.spikecolor,delete j.spikethickness,delete j.spikedash,delete j.spikemode,delete j.spikesnap);var ct=Fm(Z.overlaying),ar=[0,1];if(r[ct]!==void 0){var Vt=Fm(r[ct].anchor);r[Vt]!==void 0&&(ar=r[Vt].domain)}upe(Z,j,H,{letter:G,counterAxes:Ee[G],overlayableAxes:_e(G,q),grid:r.grid,overlayingDomain:ar}),H("title.standoff"),Se(),j._input=Z}for(m=0;m<re.length;){V=re[m++],q=Fm(V),G=q.charAt(0),n2.isPlainObject(t[q])||(t[q]={}),Z=t[q],j=ope.newContainer(r,q,G+"axis"),N();var rr={letter:G,font:r.font,outerTicks:d[q],showGrid:!v[q],data:[],bgColor:z,calendar:r.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:i,splomStash:((r._splomAxes||{})[G]||{})[V]};H("uirevision",r.uirevision),j.type=ge[V]||"linear",lpe(Z,j,H,rr,r),upe(Z,j,H,{letter:G,counterAxes:Ee[G],overlayableAxes:_e(G,q),grid:r.grid}),H("fixedrange"),H("modebardisable"),Se(),j._input=Z}var tt=FU("rangeslider","handleDefaults"),je=FU("rangeselector","handleDefaults");for(m=0;m<S.length;m++)q=S[m],Z=t[q],j=r[q],tt(t,r,q),j.type==="date"&&je(Z,j,r,g,j.calendar),H("fixedrange"),H("modebardisable");for(m=0;m<g.length;m++){q=g[m],Z=t[q],j=r[q];var Ue=r[Fm(j.anchor)],Ae=FU("rangeslider","isVisible")(Ue);H("fixedrange",Ae),H("modebardisable")}D0t.handleDefaults(t,r,{axIds:Ce.concat(re).sort(zU.idSort),axHasImage:h})}});var gpe=ye((Gsr,ppe)=>{"use strict";var z0t=qa(),vpe=Oa(),mI=Pr(),Qp=So(),yI=ho();ppe.exports=function(t,r,n,i){var a=t._fullLayout;if(r.length===0){yI.redrawComponents(t);return}function o(b){var p=b.xaxis,k=b.yaxis;a._defs.select("#"+b.clipId+"> rect").call(Qp.setTranslate,0,0).call(Qp.setScale,1,1),b.plot.call(Qp.setTranslate,p._offset,k._offset).call(Qp.setScale,1,1);var M=b.plot.selectAll(".scatterlayer .trace");M.selectAll(".point").call(Qp.setPointGroupScale,1,1),M.selectAll(".textpoint").call(Qp.setTextPointsScale,1,1),M.call(Qp.hideOutsideRangePoints,b)}function s(b,p){var k=b.plotinfo,M=k.xaxis,T=k.yaxis,L=M._length,x=T._length,C=!!b.xr1,S=!!b.yr1,g=[];if(C){var P=mI.simpleMap(b.xr0,M.r2l),E=mI.simpleMap(b.xr1,M.r2l),z=P[1]-P[0],q=E[1]-E[0];g[0]=(P[0]*(1-p)+p*E[0]-P[0])/(P[1]-P[0])*L,g[2]=L*(1-p+p*q/z),M.range[0]=M.l2r(P[0]*(1-p)+p*E[0]),M.range[1]=M.l2r(P[1]*(1-p)+p*E[1])}else g[0]=0,g[2]=L;if(S){var V=mI.simpleMap(b.yr0,T.r2l),G=mI.simpleMap(b.yr1,T.r2l),Z=V[1]-V[0],j=G[1]-G[0];g[1]=(V[1]*(1-p)+p*G[1]-V[1])/(V[0]-V[1])*x,g[3]=x*(1-p+p*j/Z),T.range[0]=M.l2r(V[0]*(1-p)+p*G[0]),T.range[1]=T.l2r(V[1]*(1-p)+p*G[1])}else g[1]=0,g[3]=x;yI.drawOne(t,M,{skipTitle:!0}),yI.drawOne(t,T,{skipTitle:!0}),yI.redrawComponents(t,[M._id,T._id]);var N=C?L/g[2]:1,H=S?x/g[3]:1,ie=C?g[0]:0,ae=S?g[1]:0,_e=C?g[0]/g[2]*L:0,Ee=S?g[1]/g[3]*x:0,Ce=M._offset-_e,ge=T._offset-Ee;k.clipRect.call(Qp.setTranslate,ie,ae).call(Qp.setScale,1/N,1/H),k.plot.call(Qp.setTranslate,Ce,ge).call(Qp.setScale,N,H),Qp.setPointGroupScale(k.zoomScalePts,1/N,1/H),Qp.setTextPointsScale(k.zoomScaleTxt,1/N,1/H)}var l;i&&(l=i());function u(){for(var b={},p=0;p<r.length;p++){var k=r[p],M=k.plotinfo.xaxis,T=k.plotinfo.yaxis;k.xr1&&(b[M._name+".range"]=k.xr1.slice()),k.yr1&&(b[T._name+".range"]=k.yr1.slice())}return l&&l(),vpe.call("relayout",t,b).then(function(){for(var L=0;L<r.length;L++)o(r[L].plotinfo)})}function c(){for(var b={},p=0;p<r.length;p++){var k=r[p],M=k.plotinfo.xaxis,T=k.plotinfo.yaxis;k.xr0&&(b[M._name+".range"]=k.xr0.slice()),k.yr0&&(b[T._name+".range"]=k.yr0.slice())}return vpe.call("relayout",t,b).then(function(){for(var L=0;L<r.length;L++)o(r[L].plotinfo)})}var f,h,d,v=z0t.ease(n.easing);t._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(d),d=null,c()});function m(){h=Date.now();for(var b=Math.min(1,(h-f)/n.duration),p=v(b),k=0;k<r.length;k++)s(r[k],p);h-f>n.duration?(u(),d=window.cancelAnimationFrame(m)):d=window.requestAnimationFrame(m)}return f=Date.now(),d=window.requestAnimationFrame(m),Promise.resolve()}});var mh=ye(xv=>{"use strict";var xI=qa(),mpe=Oa(),a2=Pr(),q0t=Mc(),O0t=So(),ype=Id().getModuleCalcData,S_=df(),Og=Rh(),B0t=Wp(),iu=a2.ensureSingle;function _I(e,t,r){return a2.ensureSingle(e,t,r,function(n){n.datum(r)})}var o2=Og.zindexSeparator;xv.name="cartesian";xv.attr=["xaxis","yaxis"];xv.idRoot=["x","y"];xv.idRegex=Og.idRegex;xv.attrRegex=Og.attrRegex;xv.attributes=jve();xv.layoutAttributes=Rd();xv.supplyLayoutDefaults=dpe();xv.transitionAxes=gpe();xv.finalizeSubplots=function(e,t){var r=t._subplots,n=r.xaxis,i=r.yaxis,a=r.cartesian,o=a,s={},l={},u,c,f;for(u=0;u<o.length;u++){var h=o[u].split("y");s[h[0]]=1,l["y"+h[1]]=1}for(u=0;u<n.length;u++)c=n[u],s[c]||(f=(e[S_.id2name(c)]||{}).anchor,Og.idRegex.y.test(f)||(f="y"),a.push(c+f),o.push(c+f),l[f]||(l[f]=1,a2.pushUnique(i,f)));for(u=0;u<i.length;u++)f=i[u],l[f]||(c=(e[S_.id2name(f)]||{}).anchor,Og.idRegex.x.test(c)||(c="x"),a.push(c+f),o.push(c+f),s[c]||(s[c]=1,a2.pushUnique(n,c)));if(!o.length){c="",f="";for(var d in e)if(Og.attrRegex.test(d)){var v=d.charAt(0);v==="x"?(!c||+d.slice(5)<+c.slice(5))&&(c=d):(!f||+d.slice(5)<+f.slice(5))&&(f=d)}c=c?S_.name2id(c):"x",f=f?S_.name2id(f):"y",n.push(c),i.push(f),a.push(c+f)}};xv.plot=function(e,t,r,n){var i=e._fullLayout,a=i._subplots.cartesian,o=e.calcdata,s;if(!Array.isArray(t))for(t=[],s=0;s<o.length;s++)t.push(s);for(var l=i._zindices,u=0;u<l.length;u++){var c=l[u];for(s=0;s<a.length;s++){var f=a[s],h=i._plots[f];if(u>0){var d=h.id;if(d.indexOf(o2)!==-1)continue;d+=o2+(u+1),h=a2.extendFlat({},h,{id:d,plot:i._cartesianlayer.selectAll(".subplot").select("."+d)})}for(var v=[],m,b=0;b<o.length;b++){var p=o[b],k=p[0].trace;c===(k.zorder||0)&&k.xaxis+k.yaxis===f&&((t.indexOf(k.index)!==-1||k.carpet)&&(m&&m[0].trace.xaxis+m[0].trace.yaxis===f&&["tonextx","tonexty","tonext"].indexOf(k.fill)!==-1&&v.indexOf(m)===-1&&v.push(m),v.push(p)),m=p)}_pe(e,h,v,r,n)}}};function _pe(e,t,r,n,i){for(var a=Og.traceLayerClasses,o=e._fullLayout,s=o._zindices,l=o._modules,u,c,f,h=[],d=[],v=0;v<s.length;v++)for(var m=s[v],b=0;b<l.length;b++){u=l[b];var p=u.name,k=mpe.modules[p].categories;if(k.svg){var M=u.layerName||p+"layer",T=M+(v?Number(v)+1:""),L=u.plot;c=ype(r,L,m),f=c[0],r=c[1],f.length&&h.push({i:a.indexOf(M),zindex:v,className:T,plotMethod:L,cdModule:f}),k.zoomScale&&d.push("."+T)}}h.sort(function(S,g){return(S.zindex||0)-(g.zindex||0)||S.i-g.i});var x=t.plot.selectAll("g.mlayer").data(h,function(S){return S.className});if(x.enter().append("g").attr("class",function(S){return S.className}).classed("mlayer",!0).classed("rangeplot",t.isRangePlot),x.exit().remove(),x.order(),x.each(function(S){var g=xI.select(this),P=S.className;S.plotMethod(e,t,S.cdModule,g,n,i),Og.clipOnAxisFalseQuery.indexOf("."+P)===-1&&O0t.setClipUrl(g,t.layerClipId,e)}),o._has("scattergl")&&(u=mpe.getModule("scattergl"),f=ype(r,u)[0],u.plot(e,t,f)),!e._context.staticPlot&&(t._hasClipOnAxisFalse&&(t.clipOnAxisFalseTraces=t.plot.selectAll(Og.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),d.length)){var C=t.plot.selectAll(d.join(",")).selectAll(".trace");t.zoomScalePts=C.selectAll("path.point"),t.zoomScaleTxt=C.selectAll(".textpoint")}}xv.clean=function(e,t,r,n){var i=n._plots||{},a=t._plots||{},o=n._subplots||{},s,l,u;if(n._hasOnlyLargeSploms&&!t._hasOnlyLargeSploms)for(u in i)s=i[u],s.plotgroup&&s.plotgroup.remove();var c=n._has&&n._has("gl"),f=t._has&&t._has("gl");if(c&&!f)for(u in i)s=i[u],s._scene&&s._scene.destroy();if(o.xaxis&&o.yaxis){var h=S_.listIds({_fullLayout:n});for(l=0;l<h.length;l++){var d=h[l];t[S_.id2name(d)]||n._infolayer.selectAll(".g-"+d+"title").remove()}}var v=n._has&&n._has("cartesian"),m=t._has&&t._has("cartesian");if(v&&!m)bpe(n._cartesianlayer.selectAll(".subplot"),n),n._defs.selectAll(".axesclip").remove(),delete n._axisConstraintGroups,delete n._axisMatchGroups;else if(o.cartesian)for(l=0;l<o.cartesian.length;l++){var b=o.cartesian[l];if(b.indexOf(o2)===-1&&!a[b]){var p="."+b+",."+b+"-x,."+b+"-y";n._cartesianlayer.selectAll(p).remove(),wpe(b,n)}}};xv.drawFramework=function(e){var t=e._fullLayout,r=e.calcdata,n,i={};for(n=0;n<r.length;n++){var a=r[n][0],o=a.trace,s=o.zorder||0;i[s]||(i[s]=[]),i[s].push(a)}var l=Object.keys(i).map(Number).sort(a2.sorterAsc);l.length||(l=[0]),t._zindices=l;var u=N0t(e),c=u.length,f=[];for(n=0;n<c;n++)f[n]=u[n].slice();for(var h=1;h<l.length;h++){var d=[];for(n=0;n<c;n++)d[n]=u[n].slice(),d[n][0]+=o2+(h+1);f=f.concat(d)}var v=t._cartesianlayer.selectAll(".subplot").data(f,String);v.enter().append("g").attr("class",function(m){return"subplot "+m[0]}),v.order(),v.exit().call(bpe,t),v.each(function(m){var b=m[0],p=b.indexOf(o2),k=p!==-1,M=k?b.slice(0,p):b,T=t._plots[b];T||(T=a2.extendFlat({},t._plots[M]),T&&(T.id=b,t._plots[b]=T,t._subplots.cartesian.push(b))),T&&(T.plotgroup=xI.select(this),xpe(e,T),k||(T.draglayer=iu(t._draggers,"g",b)))})};xv.rangePlot=function(e,t,r){xpe(e,t),_pe(e,t,r),q0t.style(e)};function N0t(e){var t=e._fullLayout,r=t._zindices.length,n=t._subplots.cartesian,i=n.length,a,o,s,l,u,c,f=[],h=[];for(a=0;a<i;a++){s=n[a],l=t._plots[s],u=l.xaxis,c=l.yaxis;var d=u._mainAxis,v=c._mainAxis,m=d._id+v._id,b=t._plots[m];l.overlays=[],m!==s&&b?(l.mainplot=m,l.mainplotinfo=b,h.push(s)):(l.mainplot=void 0,l.mainplotinfo=void 0,f.push(s))}for(a=0;a<h.length;a++)s=h[a],l=t._plots[s],l.mainplotinfo.overlays.push(l);var p=f.concat(h),k=[];for(a=0;a<i;a++){s=p[a],l=t._plots[s],u=l.xaxis,c=l.yaxis;for(var M=[],T=1;T<=r;T++){var L="";for(T>1&&(L+=o2+T),M.push(s+L),o=0;o<l.overlays.length;o++)M.push(l.overlays[o].id+L)}M=M.concat([u.layer,c.layer,u.overlaying||"",c.overlaying||""]),k.push(M)}return k}function xpe(e,t){var r=e._fullLayout,n=t.plotgroup,i=t.id,a=i.indexOf(o2),o=a!==-1,s=Og.layerValue2layerClass[t.xaxis.layer],l=Og.layerValue2layerClass[t.yaxis.layer],u=r._hasOnlyLargeSploms,c=r._zindices.length>1,f=t.mainplotinfo;if(!t.mainplot||c)if(u)t.xlines=iu(n,"path","xlines-above"),t.ylines=iu(n,"path","ylines-above"),t.xaxislayer=iu(n,"g","xaxislayer-above"),t.yaxislayer=iu(n,"g","yaxislayer-above");else{if(!o){var h=iu(n,"g","layer-subplot");t.shapelayer=iu(h,"g","shapelayer"),t.imagelayer=iu(h,"g","imagelayer"),f&&c?(t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer):(t.minorGridlayer=iu(n,"g","minor-gridlayer"),t.gridlayer=iu(n,"g","gridlayer"),t.zerolinelayer=iu(n,"g","zerolinelayer"));var d=iu(n,"g","layer-between");t.shapelayerBetween=iu(d,"g","shapelayer"),t.imagelayerBetween=iu(d,"g","imagelayer"),iu(n,"path","xlines-below"),iu(n,"path","ylines-below"),t.overlinesBelow=iu(n,"g","overlines-below"),iu(n,"g","xaxislayer-below"),iu(n,"g","yaxislayer-below"),t.overaxesBelow=iu(n,"g","overaxes-below")}t.overplot=iu(n,"g","overplot"),t.plot=iu(t.overplot,"g",i),f&&c?t.zerolinelayerAbove=f.zerolinelayerAbove:t.zerolinelayerAbove=iu(n,"g","zerolinelayer-above"),o||(t.xlines=iu(n,"path","xlines-above"),t.ylines=iu(n,"path","ylines-above"),t.overlinesAbove=iu(n,"g","overlines-above"),iu(n,"g","xaxislayer-above"),iu(n,"g","yaxislayer-above"),t.overaxesAbove=iu(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+s),t.ylines=n.select(".ylines-"+l),t.xaxislayer=n.select(".xaxislayer-"+s),t.yaxislayer=n.select(".yaxislayer-"+l))}else{var v=f.plotgroup,m=i+"-x",b=i+"-y";t.minorGridlayer=f.minorGridlayer,t.gridlayer=f.gridlayer,t.zerolinelayer=f.zerolinelayer,t.zerolinelayerAbove=f.zerolinelayerAbove,iu(f.overlinesBelow,"path",m),iu(f.overlinesBelow,"path",b),iu(f.overaxesBelow,"g",m),iu(f.overaxesBelow,"g",b),t.plot=iu(f.overplot,"g",i),iu(f.overlinesAbove,"path",m),iu(f.overlinesAbove,"path",b),iu(f.overaxesAbove,"g",m),iu(f.overaxesAbove,"g",b),t.xlines=v.select(".overlines-"+s).select("."+m),t.ylines=v.select(".overlines-"+l).select("."+b),t.xaxislayer=v.select(".overaxes-"+s).select("."+m),t.yaxislayer=v.select(".overaxes-"+l).select("."+b)}o||(u||(_I(t.minorGridlayer,"g",t.xaxis._id),_I(t.minorGridlayer,"g",t.yaxis._id),t.minorGridlayer.selectAll("g").map(function(p){return p[0]}).sort(S_.idSort),_I(t.gridlayer,"g",t.xaxis._id),_I(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map(function(p){return p[0]}).sort(S_.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0))}function bpe(e,t){if(e){var r={};e.each(function(l){var u=l[0],c=xI.select(this);c.remove(),wpe(u,t),r[u]=!0});for(var n in t._plots)for(var i=t._plots[n],a=i.overlays||[],o=0;o<a.length;o++){var s=a[o];r[s.id]&&s.plot.selectAll(".trace").remove()}}}function wpe(e,t){t._draggers.selectAll("g."+e).remove(),t._defs.select("#clip"+t._uid+e+"plot").remove()}xv.toSVG=function(e){var t=e._fullLayout._glimages,r=xI.select(e).selectAll(".svg-container"),n=r.filter(function(a,o){return o===r.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function i(){var a=this,o=a.toDataURL("image/png"),s=t.append("svg:image");s.attr({xmlns:B0t.svg,"xlink:href":o,preserveAspectRatio:"none",x:0,y:0,width:a.style.width,height:a.style.height})}n.each(i)};xv.updateFx=ZN().updateFx});var Ape=ye((jsr,Tpe)=>{"use strict";var bI=Ru();Tpe.exports={hasLines:bI.hasLines,hasMarkers:bI.hasMarkers,hasText:bI.hasText,isBubble:bI.isBubble,attributes:pf(),layoutAttributes:rL(),supplyDefaults:Yde(),crossTraceDefaults:hU(),supplyLayoutDefaults:Qde(),calc:O0().calc,crossTraceCalc:Ave(),arraysToCalcdata:Dm(),plot:pT(),colorbar:Qd(),formatLabels:uI(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:_T(),selectPoints:xT(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:mh(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}});var Epe=ye((Wsr,Mpe)=>{"use strict";var U0t=qa(),V0t=ka(),Spe=BN(),qU=Pr(),G0t=qU.strScale,H0t=qU.strRotate,j0t=qU.strTranslate;Mpe.exports=function(t,r,n){var i=t.node(),a=Spe[n.arrowhead||0],o=Spe[n.startarrowhead||0],s=(n.arrowwidth||1)*(n.arrowsize||1),l=(n.arrowwidth||1)*(n.startarrowsize||1),u=r.indexOf("start")>=0,c=r.indexOf("end")>=0,f=a.backoff*s+n.standoff,h=o.backoff*l+n.startstandoff,d,v,m,b;if(i.nodeName==="line"){d={x:+t.attr("x1"),y:+t.attr("y1")},v={x:+t.attr("x2"),y:+t.attr("y2")};var p=d.x-v.x,k=d.y-v.y;if(m=Math.atan2(k,p),b=m+Math.PI,f&&h&&f+h>Math.sqrt(p*p+k*k)){V();return}if(f){if(f*f>p*p+k*k){V();return}var M=f*Math.cos(m),T=f*Math.sin(m);v.x+=M,v.y+=T,t.attr({x2:v.x,y2:v.y})}if(h){if(h*h>p*p+k*k){V();return}var L=h*Math.cos(m),x=h*Math.sin(m);d.x-=L,d.y-=x,t.attr({x1:d.x,y1:d.y})}}else if(i.nodeName==="path"){var C=i.getTotalLength(),S="";if(C<f+h){V();return}var g=i.getPointAtLength(0),P=i.getPointAtLength(.1);m=Math.atan2(g.y-P.y,g.x-P.x),d=i.getPointAtLength(Math.min(h,C)),S="0px,"+h+"px,";var E=i.getPointAtLength(C),z=i.getPointAtLength(C-.1);b=Math.atan2(E.y-z.y,E.x-z.x),v=i.getPointAtLength(Math.max(0,C-f));var q=S?h+f:f;S+=C-q+"px,"+C+"px",t.style("stroke-dasharray",S)}function V(){t.style("stroke-dasharray","0px,100px")}function G(Z,j,N,H){Z.path&&(Z.noRotate&&(N=0),U0t.select(i.parentNode).append("path").attr({class:t.attr("class"),d:Z.path,transform:j0t(j.x,j.y)+H0t(N*180/Math.PI)+G0t(H)}).style({fill:V0t.rgb(n.arrowcolor),"stroke-width":0}))}u&&G(o,d,m,l),c&&G(a,v,b,s)}});var wI=ye((Xsr,Ipe)=>{"use strict";var kpe=qa(),OU=Oa(),W0t=Mc(),E_=Pr(),BU=E_.strTranslate,v4=ho(),s2=ka(),By=So(),Cpe=ef(),NU=Zl(),UU=Eg(),d4=yv(),X0t=vl().arrayEditor,Z0t=Epe();Ipe.exports={draw:Y0t,drawOne:Lpe,drawRaw:Ppe};function Y0t(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var r=0;r<t.annotations.length;r++)t.annotations[r].visible&&Lpe(e,r);return W0t.previousPromises(e)}function Lpe(e,t){var r=e._fullLayout,n=r.annotations[t]||{},i=v4.getFromId(e,n.xref),a=v4.getFromId(e,n.yref);i&&i.setScale(),a&&a.setScale(),Ppe(e,n,t,!1,i,a)}function M_(e,t,r,n,i){var a=i[r],o=i[r+"ref"],s=r.indexOf("y")!==-1,l=v4.getRefType(o)==="domain",u=s?n.h:n.w;return e?l?a+(s?-t:t)/e._length:e.p2r(e.r2p(a)+t):a+(s?-t:t)/u}function Ppe(e,t,r,n,i,a){var o=e._fullLayout,s=e._fullLayout._size,l=e._context.edits,u,c;n?(u="annotation-"+n,c=n+".annotations"):(u="annotation",c="annotations");var f=X0t(e.layout,c,t),h=f.modifyBase,d=f.modifyItem,v=f.getUpdateObj;o._infolayer.selectAll("."+u+'[data-index="'+r+'"]').remove();var m="clip"+o._uid+"_ann"+r;if(!t._input||t.visible===!1){kpe.selectAll("#"+m).remove();return}var b={x:{},y:{}},p=+t.textangle||0,k=o._infolayer.append("g").classed(u,!0).attr("data-index",String(r)).style("opacity",t.opacity),M=k.append("g").classed("annotation-text-g",!0),T=l[t.showarrow?"annotationTail":"annotationPosition"],L=t.captureevents||l.annotationText||T;function x(H){var ie={index:r,annotation:t._input,fullAnnotation:t,event:H};return n&&(ie.subplotId=n),ie}var C=M.append("g").style("pointer-events",L?"all":null).call(UU,"pointer").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",x(kpe.event))});t.hovertext&&C.on("mouseover",function(){var H=t.hoverlabel,ie=H.font,ae=this.getBoundingClientRect(),_e=e.getBoundingClientRect();Cpe.loneHover({x0:ae.left-_e.left,x1:ae.right-_e.left,y:(ae.top+ae.bottom)/2-_e.top,text:t.hovertext,color:H.bgcolor,borderColor:H.bordercolor,fontFamily:ie.family,fontSize:ie.size,fontColor:ie.color,fontWeight:ie.weight,fontStyle:ie.style,fontVariant:ie.variant,fontShadow:ie.fontShadow,fontLineposition:ie.fontLineposition,fontTextcase:ie.fontTextcase},{container:o._hoverlayer.node(),outerContainer:o._paper.node(),gd:e})}).on("mouseout",function(){Cpe.loneUnhover(o._hoverlayer.node())});var S=t.borderwidth,g=t.borderpad,P=S+g,E=C.append("rect").attr("class","bg").style("stroke-width",S+"px").call(s2.stroke,t.bordercolor).call(s2.fill,t.bgcolor),z=t.width||t.height,q=o._topclips.selectAll("#"+m).data(z?[0]:[]);q.enter().append("clipPath").classed("annclip",!0).attr("id",m).append("rect"),q.exit().remove();var V=t.font,G=o._meta?E_.templateString(t.text,o._meta):t.text,Z=C.append("text").classed("annotation-text",!0).text(G);function j(H){return H.call(By.font,V).attr({"text-anchor":{left:"start",right:"end"}[t.align]||"middle"}),NU.convertToTspans(H,e,N),H}function N(){var H=Z.selectAll("a");if(H.size()===1&&H.text()===Z.text()){var ie=C.insert("a",":first-child").attr({"xlink:xlink:href":H.attr("xlink:href"),"xlink:xlink:show":H.attr("xlink:show")}).style({cursor:"pointer"});ie.node().appendChild(E.node())}var ae=C.select(".annotation-text-math-group"),_e=!ae.empty(),Ee=By.bBox((_e?ae:Z).node()),Ce=Ee.width,ge=Ee.height,re=t.width||Ce,Se=t.height||ge,ke=Math.round(re+2*P),be=Math.round(Se+2*P);function Be(We,et){return et==="auto"&&(We<1/3?et="left":We>2/3?et="right":et="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[et]}for(var Le=!1,me=["x","y"],Pe=0;Pe<me.length;Pe++){var ce=me[Pe],He=t[ce+"ref"]||ce,lt=t["a"+ce+"ref"],mt={x:i,y:a}[ce],Ht=(p+(ce==="x"?0:-90))*Math.PI/180,at=ke*Math.cos(Ht),ct=be*Math.sin(Ht),ar=Math.abs(at)+Math.abs(ct),Vt=t[ce+"anchor"],rr=t[ce+"shift"]*(ce==="x"?1:-1),tt=b[ce],je,Ue,Ae,rt,St,Tt=v4.getRefType(He);if(mt&&Tt!=="domain"){var dt=mt.r2fraction(t[ce]);(dt<0||dt>1)&&(lt===He?(dt=mt.r2fraction(t["a"+ce]),(dt<0||dt>1)&&(Le=!0)):Le=!0),je=mt._offset+mt.r2p(t[ce]),rt=.5}else{var Et=Tt==="domain";ce==="x"?(Ae=t[ce],je=Et?mt._offset+mt._length*Ae:je=s.l+s.w*Ae):(Ae=1-t[ce],je=Et?mt._offset+mt._length*Ae:je=s.t+s.h*Ae),rt=t.showarrow?.5:Ae}if(t.showarrow){tt.head=je;var pt=t["a"+ce];if(St=at*Be(.5,t.xanchor)-ct*Be(.5,t.yanchor),lt===He){var jt=v4.getRefType(lt);jt==="domain"?(ce==="y"&&(pt=1-pt),tt.tail=mt._offset+mt._length*pt):jt==="paper"?ce==="y"?(pt=1-pt,tt.tail=s.t+s.h*pt):tt.tail=s.l+s.w*pt:tt.tail=mt._offset+mt.r2p(pt),Ue=St}else tt.tail=je+pt,Ue=St+pt;tt.text=tt.tail+St;var or=o[ce==="x"?"width":"height"];if(He==="paper"&&(tt.head=E_.constrain(tt.head,1,or-1)),lt==="pixel"){var mr=-Math.max(tt.tail-3,tt.text),Ar=Math.min(tt.tail+3,tt.text)-or;mr>0?(tt.tail+=mr,tt.text+=mr):Ar>0&&(tt.tail-=Ar,tt.text-=Ar)}tt.tail+=rr,tt.head+=rr}else St=ar*Be(rt,Vt),Ue=St,tt.text=je+St;tt.text+=rr,St+=rr,Ue+=rr,t["_"+ce+"padplus"]=ar/2+Ue,t["_"+ce+"padminus"]=ar/2-Ue,t["_"+ce+"size"]=ar,t["_"+ce+"shift"]=St}if(Le){C.remove();return}var ei=0,qr=0;if(t.align!=="left"&&(ei=(re-Ce)*(t.align==="center"?.5:1)),t.valign!=="top"&&(qr=(Se-ge)*(t.valign==="middle"?.5:1)),_e)ae.select("svg").attr({x:P+ei-1,y:P+qr}).call(By.setClipUrl,z?m:null,e);else{var jr=P+qr-Ee.top,gt=P+ei-Ee.left;Z.call(NU.positionText,gt,jr).call(By.setClipUrl,z?m:null,e)}q.select("rect").call(By.setRect,P,P,re,Se),E.call(By.setRect,S/2,S/2,ke-S,be-S),C.call(By.setTranslate,Math.round(b.x.text-ke/2),Math.round(b.y.text-be/2)),M.attr({transform:"rotate("+p+","+b.x.text+","+b.y.text+")"});var Ge=function(We,et){k.selectAll(".annotation-arrow-g").remove();var xt=b.x.head,At=b.y.head,Kt=b.x.tail+We,Qt=b.y.tail+et,Mr=b.x.text+We,Gr=b.y.text+et,Ir=E_.rotationXYMatrix(p,Mr,Gr),Yr=E_.apply2DTransform(Ir),_i=E_.apply2DTransform2(Ir),Pi=+E.attr("width"),ai=+E.attr("height"),mi=Mr-.5*Pi,un=mi+Pi,Fn=Gr-.5*ai,An=Fn+ai,Hn=[[mi,Fn,mi,An],[mi,An,un,An],[un,An,un,Fn],[un,Fn,mi,Fn]].map(_i);if(!Hn.reduce(function($r,Ri){return $r^!!E_.segmentsIntersect(xt,At,xt+1e6,At+1e6,Ri[0],Ri[1],Ri[2],Ri[3])},!1)){Hn.forEach(function($r){var Ri=E_.segmentsIntersect(Kt,Qt,xt,At,$r[0],$r[1],$r[2],$r[3]);Ri&&(Kt=Ri.x,Qt=Ri.y)});var Qn=t.arrowwidth,Vi=t.arrowcolor,Kn=t.arrowside,Jn=k.append("g").style({opacity:s2.opacity(Vi)}).classed("annotation-arrow-g",!0),Gt=Jn.append("path").attr("d","M"+Kt+","+Qt+"L"+xt+","+At).style("stroke-width",Qn+"px").call(s2.stroke,s2.rgb(Vi));if(Z0t(Gt,Kn,t),l.annotationPosition&&Gt.node().parentNode&&!n){var wt=xt,tr=At;if(t.standoff){var ir=Math.sqrt(Math.pow(xt-Kt,2)+Math.pow(At-Qt,2));wt+=t.standoff*(Kt-xt)/ir,tr+=t.standoff*(Qt-At)/ir}var wr=Jn.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Kt-wt)+","+(Qt-tr),transform:BU(wt,tr)}).style("stroke-width",Qn+6+"px").call(s2.stroke,"rgba(0,0,0,0)").call(s2.fill,"rgba(0,0,0,0)"),Xr,ti;d4.init({element:wr.node(),gd:e,prepFn:function(){var $r=By.getTranslate(C);Xr=$r.x,ti=$r.y,i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0)},moveFn:function($r,Ri){var Zi=Yr(Xr,ti),en=Zi[0]+$r,fn=Zi[1]+Ri;C.call(By.setTranslate,en,fn),d("x",M_(i,$r,"x",s,t)),d("y",M_(a,Ri,"y",s,t)),t.axref===t.xref&&d("ax",M_(i,$r,"ax",s,t)),t.ayref===t.yref&&d("ay",M_(a,Ri,"ay",s,t)),Jn.attr("transform",BU($r,Ri)),M.attr({transform:"rotate("+p+","+en+","+fn+")"})},doneFn:function(){OU.call("_guiRelayout",e,v());var $r=document.querySelector(".js-notes-box-panel");$r&&$r.redraw($r.selectedObj)}})}}};if(t.showarrow&&Ge(0,0),T){var Je;d4.init({element:C.node(),gd:e,prepFn:function(){Je=M.attr("transform")},moveFn:function(We,et){var xt="pointer";if(t.showarrow)t.axref===t.xref?d("ax",M_(i,We,"ax",s,t)):d("ax",t.ax+We),t.ayref===t.yref?d("ay",M_(a,et,"ay",s.w,t)):d("ay",t.ay+et),Ge(We,et);else{if(n)return;var At,Kt;if(i)At=M_(i,We,"x",s,t);else{var Qt=t._xsize/s.w,Mr=t.x+(t._xshift-t.xshift)/s.w-Qt/2;At=d4.align(Mr+We/s.w,Qt,0,1,t.xanchor)}if(a)Kt=M_(a,et,"y",s,t);else{var Gr=t._ysize/s.h,Ir=t.y-(t._yshift+t.yshift)/s.h-Gr/2;Kt=d4.align(Ir-et/s.h,Gr,0,1,t.yanchor)}d("x",At),d("y",Kt),(!i||!a)&&(xt=d4.getCursor(i?.5:At,a?.5:Kt,t.xanchor,t.yanchor))}M.attr({transform:BU(We,et)+Je}),UU(C,xt)},clickFn:function(We,et){t.captureevents&&e.emit("plotly_clickannotation",x(et))},doneFn:function(){UU(C),OU.call("_guiRelayout",e,v());var We=document.querySelector(".js-notes-box-panel");We&&We.redraw(We.selectedObj)}})}}l.annotationText?Z.call(NU.makeEditable,{delegate:C,gd:e}).call(j).on("edit",function(H){t.text=H,this.call(j),d("text",H),i&&i.autorange&&h(i._name+".autorange",!0),a&&a.autorange&&h(a._name+".autorange",!0),OU.call("_guiRelayout",e,v())}):Z.call(j)}});var Ope=ye((Zsr,qpe)=>{"use strict";var Rpe=Pr(),K0t=Oa(),Dpe=vl().arrayEditor;qpe.exports={hasClickToShow:J0t,onClick:$0t};function J0t(e,t){var r=zpe(e,t);return r.on.length>0||r.explicitOff.length>0}function $0t(e,t){var r=zpe(e,t),n=r.on,i=r.off.concat(r.explicitOff),a={},o=e._fullLayout.annotations,s,l;if(n.length||i.length){for(s=0;s<n.length;s++)l=Dpe(e.layout,"annotations",o[n[s]]),l.modifyItem("visible",!0),Rpe.extendFlat(a,l.getUpdateObj());for(s=0;s<i.length;s++)l=Dpe(e.layout,"annotations",o[i[s]]),l.modifyItem("visible",!1),Rpe.extendFlat(a,l.getUpdateObj());return K0t.call("update",e,{},a)}}function zpe(e,t){var r=e._fullLayout.annotations,n=[],i=[],a=[],o=(t||[]).length,s,l,u,c,f,h,d,v;for(s=0;s<r.length;s++)if(u=r[s],c=u.clicktoshow,c){for(l=0;l<o;l++)if(f=t[l],h=f.xaxis,d=f.yaxis,h._id===u.xref&&d._id===u.yref&&h.d2r(f.x)===Fpe(u._xclick,h)&&d.d2r(f.y)===Fpe(u._yclick,d)){u.visible?c==="onout"?v=i:v=a:v=n,v.push(s);break}l===o&&u.visible&&c==="onout"&&i.push(s)}return{on:n,off:i,explicitOff:a}}function Fpe(e,t){return t.type==="log"?t.l2r(e):t.d2r(e)}});var GU=ye((Ysr,Bpe)=>{"use strict";var VU=Pr(),bT=ka();Bpe.exports=function(t,r,n,i){i("opacity");var a=i("bgcolor"),o=i("bordercolor"),s=bT.opacity(o);i("borderpad");var l=i("borderwidth"),u=i("showarrow");i("text",u?" ":n._dfltTitle.annotation),i("textangle"),VU.coerceFont(i,"font",n.font),i("width"),i("align");var c=i("height");if(c&&i("valign"),u){var f=i("arrowside"),h,d;f.indexOf("end")!==-1&&(h=i("arrowhead"),d=i("arrowsize")),f.indexOf("start")!==-1&&(i("startarrowhead",h),i("startarrowsize",d)),i("arrowcolor",s?r.bordercolor:bT.defaultLine),i("arrowwidth",(s&&l||1)*2),i("standoff"),i("startstandoff")}var v=i("hovertext"),m=n.hoverlabel||{};if(v){var b=i("hoverlabel.bgcolor",m.bgcolor||(bT.opacity(a)?bT.rgb(a):bT.defaultLine)),p=i("hoverlabel.bordercolor",m.bordercolor||bT.contrast(b)),k=VU.extendFlat({},m.font);k.color||(k.color=p),VU.coerceFont(i,"hoverlabel.font",k)}i("captureevents",!!v)}});var Upe=ye((Ksr,Npe)=>{"use strict";var HU=Pr(),l2=ho(),Q0t=Kd(),egt=GU(),tgt=Qb();Npe.exports=function(t,r){Q0t(t,r,{name:"annotations",handleItemDefaults:rgt})};function rgt(e,t,r){function n(M,T){return HU.coerce(e,t,tgt,M,T)}var i=n("visible"),a=n("clicktoshow");if(i||a){egt(e,t,r,n);for(var o=t.showarrow,s=["x","y"],l=[-10,-30],u={_fullLayout:r},c=0;c<2;c++){var f=s[c],h=l2.coerceRef(e,t,u,f,"","paper");if(h!=="paper"){var d=l2.getFromId(u,h);d._annIndices.push(t._index)}if(l2.coercePosition(t,u,n,h,f,.5),o){var v="a"+f,m=l2.coerceRef(e,t,u,v,"pixel",["pixel","paper"]);m!=="pixel"&&m!==h&&(m=t[v]="pixel");var b=m==="pixel"?l[c]:.4;l2.coercePosition(t,u,n,m,v,b)}n(f+"anchor"),n(f+"shift")}if(HU.noneOrAll(e,t,["x","y"]),o&&HU.noneOrAll(e,t,["ax","ay"]),a){var p=n("xclick"),k=n("yclick");t._xclick=p===void 0?t.x:l2.cleanPosition(p,u,t.xref),t._yclick=k===void 0?t.y:l2.cleanPosition(k,u,t.yref)}}}});var Hpe=ye((Jsr,Gpe)=>{"use strict";var jU=Pr(),u2=ho(),igt=wI().draw;Gpe.exports=function(t){var r=t._fullLayout,n=jU.filterVisible(r.annotations);if(n.length&&t._fullData.length)return jU.syncOrAsync([igt,ngt],t)};function ngt(e){var t=e._fullLayout;jU.filterVisible(t.annotations).forEach(function(r){var n=u2.getFromId(e,r.xref),i=u2.getFromId(e,r.yref),a=u2.getRefType(r.xref),o=u2.getRefType(r.yref);r._extremes={},a==="range"&&Vpe(r,n),o==="range"&&Vpe(r,i)})}function Vpe(e,t){var r=t._id,n=r.charAt(0),i=e[n],a=e["a"+n],o=e[n+"ref"],s=e["a"+n+"ref"],l=e["_"+n+"padplus"],u=e["_"+n+"padminus"],c={x:1,y:-1}[n]*e[n+"shift"],f=3*e.arrowsize*e.arrowwidth||0,h=f+c,d=f-c,v=3*e.startarrowsize*e.arrowwidth||0,m=v+c,b=v-c,p;if(s===o){var k=u2.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:d}),M=u2.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(l,m),ppadminus:Math.max(u,b)});p={min:[k.min[0],M.min[0]],max:[k.max[0],M.max[0]]}}else m=a?m+a:m,b=a?b-a:b,p=u2.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(l,h,m),ppadminus:Math.max(u,d,b)});e._extremes[r]=p}});var Wpe=ye(($sr,jpe)=>{"use strict";var agt=Eo(),ogt=M6();jpe.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(!(a||o))return;var s=t._fullLayout.annotations,l=r._id.charAt(0),u,c;function f(d){var v=u[d],m=null;a?m=ogt(v,r.range):m=Math.pow(10,v),agt(m)||(m=null),i(c+d,m)}for(var h=0;h<s.length;h++)u=s[h],c="annotations["+h+"].",u[l+"ref"]===r._id&&f(l),u["a"+l+"ref"]===r._id&&f("a"+l)}});var Ype=ye((Qsr,Zpe)=>{"use strict";var WU=wI(),Xpe=Ope();Zpe.exports={moduleType:"component",name:"annotations",layoutAttributes:Qb(),supplyLayoutDefaults:Upe(),includeBasePlot:XM()("annotations"),calcAutorange:Hpe(),draw:WU.draw,drawOne:WU.drawOne,drawRaw:WU.drawRaw,hasClickToShow:Xpe.hasClickToShow,onClick:Xpe.onClick,convertCoords:Wpe()}});var TI=ye((elr,Kpe)=>{"use strict";var kc=Qb(),sgt=mc().overrideAll,lgt=vl().templatedArray;Kpe.exports=sgt(lgt("annotation",{visible:kc.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:kc.xanchor,xshift:kc.xshift,yanchor:kc.yanchor,yshift:kc.yshift,text:kc.text,textangle:kc.textangle,font:kc.font,width:kc.width,height:kc.height,opacity:kc.opacity,align:kc.align,valign:kc.valign,bgcolor:kc.bgcolor,bordercolor:kc.bordercolor,borderpad:kc.borderpad,borderwidth:kc.borderwidth,showarrow:kc.showarrow,arrowcolor:kc.arrowcolor,arrowhead:kc.arrowhead,startarrowhead:kc.startarrowhead,arrowside:kc.arrowside,arrowsize:kc.arrowsize,startarrowsize:kc.startarrowsize,arrowwidth:kc.arrowwidth,standoff:kc.standoff,startstandoff:kc.startstandoff,hovertext:kc.hovertext,hoverlabel:kc.hoverlabel,captureevents:kc.captureevents}),"calc","from-root")});var $pe=ye((tlr,Jpe)=>{"use strict";var XU=Pr(),ugt=ho(),cgt=Kd(),fgt=GU(),hgt=TI();Jpe.exports=function(t,r,n){cgt(t,r,{name:"annotations",handleItemDefaults:dgt,fullLayout:n.fullLayout})};function dgt(e,t,r,n){function i(s,l){return XU.coerce(e,t,hgt,s,l)}function a(s){var l=s+"axis",u={_fullLayout:{}};return u._fullLayout[l]=r[l],ugt.coercePosition(t,u,i,s,s,.5)}var o=i("visible");o&&(fgt(e,t,n.fullLayout,i),a("x"),a("y"),a("z"),XU.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",i("xanchor"),i("yanchor"),i("xshift"),i("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",i("ax",-10),i("ay",-30),XU.noneOrAll(e,t,["ax","ay"])))}});var r0e=ye((rlr,t0e)=>{"use strict";var Qpe=Pr(),e0e=ho();t0e.exports=function(t){for(var r=t.fullSceneLayout,n=r.annotations,i=0;i<n.length;i++)vgt(n[i],t);t.fullLayout._infolayer.selectAll(".annotation-"+t.id).remove()};function vgt(e,t){var r=t.fullSceneLayout,n=r.domain,i=t.fullLayout._size,a={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},Qpe.extendFlat(e._xa,a),e0e.setConvert(e._xa),e._xa._offset=i.l+n.x[0]*i.w,e._xa.l2p=function(){return .5*(1+e._pdata[0]/e._pdata[3])*i.w*(n.x[1]-n.x[0])},e._ya={},Qpe.extendFlat(e._ya,a),e0e.setConvert(e._ya),e._ya._offset=i.t+(1-n.y[1])*i.h,e._ya.l2p=function(){return .5*(1-e._pdata[1]/e._pdata[3])*i.h*(n.y[1]-n.y[0])}}});var YU=ye((ilr,i0e)=>{"use strict";function ZU(e,t){var r=[0,0,0,0],n,i;for(n=0;n<4;++n)for(i=0;i<4;++i)r[i]+=e[4*n+i]*t[n];return r}function pgt(e,t){var r=ZU(e.projection,ZU(e.view,ZU(e.model,[t[0],t[1],t[2],1])));return r}i0e.exports=pgt});var a0e=ye((nlr,n0e)=>{"use strict";var ggt=wI().drawRaw,mgt=YU(),ygt=["x","y","z"];n0e.exports=function(t){for(var r=t.fullSceneLayout,n=t.dataScale,i=r.annotations,a=0;a<i.length;a++){for(var o=i[a],s=!1,l=0;l<3;l++){var u=ygt[l],c=o[u],f=r[u+"axis"],h=f.r2fraction(c);if(h<0||h>1){s=!0;break}}s?t.fullLayout._infolayer.select(".annotation-"+t.id+'[data-index="'+a+'"]').remove():(o._pdata=mgt(t.glplot.cameraParams,[r.xaxis.r2l(o.x)*n[0],r.yaxis.r2l(o.y)*n[1],r.zaxis.r2l(o.z)*n[2]]),ggt(t.graphDiv,o,a,t.id,o._xa,o._ya))}}});var l0e=ye((alr,s0e)=>{"use strict";var _gt=Oa(),o0e=Pr();s0e.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:TI()}}},layoutAttributes:TI(),handleDefaults:$pe(),includeBasePlot:xgt,convert:r0e(),draw:a0e()};function xgt(e,t){var r=_gt.subplotsRegistry.gl3d;if(r)for(var n=r.attrRegex,i=Object.keys(e),a=0;a<i.length;a++){var o=i[a];n.test(o)&&(e[o].annotations||[]).length&&(o0e.pushUnique(t._basePlotModules,r),o0e.pushUnique(t._subplots.gl3d,o))}}});var KU=ye((llr,h0e)=>{"use strict";var olr=Rh(),u0e=ec(),c0e=pf().line,bgt=Pd().dash,Bg=Ao().extendFlat,wgt=vl().templatedArray,slr=jM(),wT=Gl(),f0e=Qb(),{shapeTexttemplateAttrs:Tgt,templatefallbackAttrs:Agt}=Ll(),Sgt=F6();h0e.exports=wgt("shape",{visible:Bg({},wT.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:Bg({},wT.legend,{editType:"calc+arraydraw"}),legendgroup:Bg({},wT.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:Bg({},wT.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:u0e({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:Bg({},wT.legendrank,{editType:"calc+arraydraw"}),legendwidth:Bg({},wT.legendwidth,{editType:"calc+arraydraw"}),type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above","between"],dflt:"above",editType:"arraydraw"},xref:Bg({},f0e.xref,{arrayOk:!0}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},x0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},x1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},yref:Bg({},f0e.yref,{arrayOk:!0}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},y0shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},y1shift:{valType:"number",dflt:0,min:-1,max:1,editType:"calc"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:Bg({},c0e.color,{editType:"arraydraw"}),width:Bg({},c0e.width,{editType:"calc+arraydraw"}),dash:Bg({},bgt,{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:Tgt({},{keys:Object.keys(Sgt)}),texttemplatefallback:Agt({editType:"arraydraw"}),font:u0e({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"})});var v0e=ye((ulr,d0e)=>{"use strict";var TT=Pr(),e0=ho(),Mgt=Kd(),Egt=KU(),p4=x_();d0e.exports=function(t,r){Mgt(t,r,{name:"shapes",handleItemDefaults:Cgt})};function kgt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}function Cgt(e,t,r){function n(M,T){return TT.coerce(e,t,Egt,M,T)}t._isShape=!0;var i=n("visible");if(!i)return;var a=n("showlegend");n("legend"),n("legendgroup"),a&&(n("legendwidth"),n("legendgrouptitle.text"),TT.coerceFont(n,"legendgrouptitle.font"),n("legendrank"));var o=n("path"),s=o?"path":"rect",l=n("type",s),u=l!=="path";u&&delete t.path,n("editable"),n("layer"),n("opacity"),n("fillcolor"),n("fillrule");var c=n("line.width");c&&(n("line.color"),n("line.dash"));var f=n("xsizemode"),h=n("ysizemode");let d=[.25,.75],v=[0,10];["x","y"].forEach(M=>{var T=M+"anchor",L=M==="x"?f:h,x={_fullLayout:r},C,S,g,P;let E=M+"ref",z=e[E];if(Array.isArray(z)&&z.length>0){let q=p4.countDefiningCoords(l,o,M);P=e0.coerceRefArray(e,t,x,M,void 0,"paper",q),t["_"+M+"refArray"]=!0}else P=e0.coerceRef(e,t,x,M,void 0,"paper");if(Array.isArray(P))P.forEach(function(q){e0.getRefType(q)==="range"&&(C=e0.getFromId(x,q),C&&C._shapeIndices.indexOf(t._index)===-1&&C._shapeIndices.push(t._index))}),u&&[0,1].forEach(function(q){let V=P[q];e0.getRefType(V)==="range"?(C=e0.getFromId(x,V),S=p4.shapePositionToRange(C),g=p4.rangeToShapePosition(C),(C.type==="category"||C.type==="multicategory")&&n(M+q+"shift")):S=g=TT.identity;let Z=M+q,j=e[Z];if(e[Z]=S(e[Z],!0),L==="pixel"?n(Z,v[q]):e0.coercePosition(t,x,n,V,Z,d[q]),t[Z]=g(t[Z]),e[Z]=j,q===0&&L==="pixel"){let N=e[T];e[T]=S(e[T],!0),e0.coercePosition(t,x,n,V,T,.25),t[T]=g(t[T]),e[T]=N}});else{if(e0.getRefType(P)==="range"?(C=e0.getFromId(x,P),C._shapeIndices.push(t._index),g=p4.rangeToShapePosition(C),S=p4.shapePositionToRange(C),u&&(C.type==="category"||C.type==="multicategory")&&(n(M+"0shift"),n(M+"1shift"))):S=g=TT.identity,u){let V=M+"0",G=M+"1",Z=e[V],j=e[G];e[V]=S(e[V],!0),e[G]=S(e[G],!0),L==="pixel"?(n(V,v[0]),n(G,v[1])):(e0.coercePosition(t,x,n,P,V,d[0]),e0.coercePosition(t,x,n,P,G,d[1])),t[V]=g(t[V]),t[G]=g(t[G]),e[V]=Z,e[G]=j}if(L==="pixel"){let V=e[T];e[T]=S(e[T],!0),e0.coercePosition(t,x,n,P,T,.25),t[T]=g(t[T]),e[T]=V}}}),u&&TT.noneOrAll(e,t,["x0","x1","y0","y1"]);var m=l==="line",b,p;if(u&&(b=n("label.texttemplate"),n("label.texttemplatefallback")),b||(p=n("label.text")),p||b){n("label.textangle");var k=n("label.textposition",m?"middle":"middle center");n("label.xanchor"),n("label.yanchor",kgt(m,k)),n("label.padding"),TT.coerceFont(n,"label.font",r.font)}}});var m0e=ye((clr,g0e)=>{"use strict";var Lgt=ka(),p0e=Pr();function Pgt(e,t){return e?"bottom":t.indexOf("top")!==-1?"top":t.indexOf("bottom")!==-1?"bottom":"middle"}g0e.exports=function(t,r,n){n("newshape.visible"),n("newshape.name"),n("newshape.showlegend"),n("newshape.legend"),n("newshape.legendwidth"),n("newshape.legendgroup"),n("newshape.legendgrouptitle.text"),p0e.coerceFont(n,"newshape.legendgrouptitle.font"),n("newshape.legendrank"),n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var i=n("newshape.line.width");if(i){var a=(t||{}).plot_bgcolor||"#FFF";n("newshape.line.color",Lgt.contrast(a)),n("newshape.line.dash")}var o=t.dragmode==="drawline",s=n("newshape.label.text"),l=n("newshape.label.texttemplate");if(n("newshape.label.texttemplatefallback"),s||l){n("newshape.label.textangle");var u=n("newshape.label.textposition",o?"middle":"middle center");n("newshape.label.xanchor"),n("newshape.label.yanchor",Pgt(o,u)),n("newshape.label.padding"),p0e.coerceFont(n,"newshape.label.font",r.font)}n("activeshape.fillcolor"),n("activeshape.opacity")}});var A0e=ye((flr,T0e)=>{"use strict";var JU=Pr(),N0=ho(),zm=AM(),$U=x_();T0e.exports=function(t){var r=t._fullLayout,n=JU.filterVisible(r.shapes);if(!(!n.length||!t._fullData.length))for(var i=0;i<n.length;i++){var a=n[i];a._extremes={};var o,s,l=N0.getRefType(a.xref),u=N0.getRefType(a.yref);if(l==="array"){let c=y0e(t,a,"x");Object.entries(c).forEach(([f,h])=>{o=N0.getFromId(t,f),a._extremes[o._id]=N0.findExtremes(o,h,_0e(a))})}else a.xref!=="paper"&&l!=="domain"&&(o=N0.getFromId(t,a.xref),s=b0e(o,a,zm.paramIsX),s&&(a._extremes[o._id]=N0.findExtremes(o,s,_0e(a))));if(u==="array"){let c=y0e(t,a,"y");Object.entries(c).forEach(([f,h])=>{o=N0.getFromId(t,f),a._extremes[o._id]=N0.findExtremes(o,h,x0e(a))})}else a.yref!=="paper"&&u!=="domain"&&(o=N0.getFromId(t,a.yref),s=b0e(o,a,zm.paramIsY),s&&(a._extremes[o._id]=N0.findExtremes(o,s,x0e(a))))}};function y0e(e,t,r){let n=t[r+"ref"],i=r==="x"?zm.paramIsX:zm.paramIsY;function a(f,h){f==="paper"||N0.getRefType(f)==="domain"||(o[f]||(o[f]=[]),o[f].push(h))}let o={};if(t.type==="path"&&t.path){let f=t.path.match(zm.segmentRE)||[];for(var s=0,l=0;l<f.length;l++){let h=f[l],d=h.charAt(0),v=i[d].drawn;if(v===void 0)continue;let m=h.slice(1).match(zm.paramRE);m&&m.length>v&&(a(n[s],m[v]),s++)}}else a(n[0],t[r+"0"]),a(n[1],t[r+"1"]);let u={};for(let f in o){let h=N0.getFromId(e,f);if(h){var c=h.type==="category"||h.type==="multicategory"?h.r2c:h.d2c;h.type==="date"&&(c=$U.decodeDate(c)),u[h._id]=o[f].map(c)}}return u}function _0e(e){return w0e(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function x0e(e){return w0e(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function w0e(e,t,r,n,i,a){var o=e/2,s=a;if(t==="pixel"){var l=i?$U.extractPathCoords(i,a?zm.paramIsY:zm.paramIsX):[r,n],u=JU.aggNums(Math.max,null,l),c=JU.aggNums(Math.min,null,l),f=c<0?Math.abs(c)+o:o,h=u>0?u+o:o;return{ppad:o,ppadplus:s?f:h,ppadminus:s?h:f}}else return{ppad:o}}function b0e(e,t,r){var n=e._id.charAt(0)==="x"?"x":"y",i=e.type==="category"||e.type==="multicategory",a,o,s=0,l=0,u=i?e.r2c:e.d2c,c=t[n+"sizemode"]==="scaled";if(c?(a=t[n+"0"],o=t[n+"1"],i&&(s=t[n+"0shift"],l=t[n+"1shift"])):(a=t[n+"anchor"],o=t[n+"anchor"]),a!==void 0)return[u(a)+s,u(o)+l];if(t.path){var f=1/0,h=-1/0,d=t.path.match(zm.segmentRE),v,m,b,p,k;for(e.type==="date"&&(u=$U.decodeDate(u)),v=0;v<d.length;v++)m=d[v],b=r[m.charAt(0)].drawn,b!==void 0&&(p=d[v].slice(1).match(zm.paramRE),!(!p||p.length<b)&&(k=u(p[b]),k<f&&(f=k),k>h&&(h=k)));if(h>=f)return[f,h]}}});var E0e=ye((hlr,M0e)=>{"use strict";var S0e=vP();M0e.exports={moduleType:"component",name:"shapes",layoutAttributes:KU(),supplyLayoutDefaults:v0e(),supplyDrawNewShapeDefaults:m0e(),includeBasePlot:XM()("shapes"),calcAutorange:A0e(),draw:S0e.draw,drawOne:S0e.drawOne}});var QU=ye((vlr,C0e)=>{"use strict";var k0e=Rh(),Igt=vl().templatedArray,dlr=jM();C0e.exports=Igt("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",k0e.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",k0e.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})});var P0e=ye((plr,L0e)=>{"use strict";var Rgt=Pr(),eV=ho(),Dgt=Kd(),Fgt=QU(),zgt="images";L0e.exports=function(t,r){var n={name:zgt,handleItemDefaults:qgt};Dgt(t,r,n)};function qgt(e,t,r){function n(h,d){return Rgt.coerce(e,t,Fgt,h,d)}var i=n("source"),a=n("visible",!!i);if(!a)return t;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var o={_fullLayout:r},s=["x","y"],l=0;l<2;l++){var u=s[l],c=eV.coerceRef(e,t,o,u,"paper",void 0);if(c!=="paper"){var f=eV.getFromId(o,c);f._imgIndices.push(t._index)}eV.coercePosition(t,o,n,c,u,0)}return t}});var F0e=ye((glr,D0e)=>{"use strict";var I0e=qa(),Ogt=So(),AT=ho(),R0e=df(),Bgt=Wp();D0e.exports=function(t){var r=t._fullLayout,n=[],i={},a=[],o,s;for(s=0;s<r.images.length;s++){var l=r.images[s];if(l.visible)if(l.layer==="below"&&l.xref!=="paper"&&l.yref!=="paper"){o=R0e.ref2id(l.xref)+R0e.ref2id(l.yref);var u=r._plots[o];if(!u){a.push(l);continue}u.mainplot&&(o=u.mainplot.id),i[o]||(i[o]=[]),i[o].push(l)}else l.layer==="above"?n.push(l):a.push(l)}var c={x:{left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-1/2},right:{sizing:"xMax",offset:-1}},y:{top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-1/2},bottom:{sizing:"YMax",offset:-1}}};function f(T){var L=I0e.select(this);if(this._imgSrc!==T.source)if(L.attr("xmlns",Bgt.svg),!t._context.staticPlot||T.source&&T.source.slice(0,5)==="data:")L.attr("xlink:href",T.source),this._imgSrc=T.source;else{var x=new Promise(function(C){var S=new Image;this.img=S,S.setAttribute("crossOrigin","anonymous"),S.onerror=g,S.onload=function(){var P=document.createElement("canvas");P.width=this.width,P.height=this.height;var E=P.getContext("2d",{willReadFrequently:!0});E.drawImage(this,0,0);var z=P.toDataURL("image/png");L.attr("xlink:href",z),C()},L.on("error",g),S.src=T.source,this._imgSrc=T.source;function g(){L.remove(),C()}}.bind(this));t._promises.push(x)}}function h(T){var L=I0e.select(this),x=AT.getFromId(t,T.xref),C=AT.getFromId(t,T.yref),S=AT.getRefType(T.xref)==="domain",g=AT.getRefType(T.yref)==="domain",P=r._size,E,z;x!==void 0?E=typeof T.xref=="string"&&S?x._length*T.sizex:Math.abs(x.l2p(T.sizex)-x.l2p(0)):E=T.sizex*P.w,C!==void 0?z=typeof T.yref=="string"&&g?C._length*T.sizey:Math.abs(C.l2p(T.sizey)-C.l2p(0)):z=T.sizey*P.h;var q=E*c.x[T.xanchor].offset,V=z*c.y[T.yanchor].offset,G=c.x[T.xanchor].sizing+c.y[T.yanchor].sizing,Z,j;switch(x!==void 0?Z=typeof T.xref=="string"&&S?x._length*T.x+x._offset:x.r2p(T.x)+x._offset:Z=T.x*P.w+P.l,Z+=q,C!==void 0?j=typeof T.yref=="string"&&g?C._length*(1-T.y)+C._offset:C.r2p(T.y)+C._offset:j=P.h-T.y*P.h+P.t,j+=V,T.sizing){case"fill":G+=" slice";break;case"stretch":G="none";break}L.attr({x:Z,y:j,width:E,height:z,preserveAspectRatio:G,opacity:T.opacity});var N=x&&AT.getRefType(T.xref)!=="domain"?x._id:"",H=C&&AT.getRefType(T.yref)!=="domain"?C._id:"",ie=N+H;Ogt.setClipUrl(L,ie?"clip"+r._uid+ie:null,t)}function d(T){return[T.xref,T.x,T.sizex,T.yref,T.y,T.sizey].join("_")}function v(T,L){return T._index-L._index}var m=r._imageLowerLayer.selectAll("image").data(a,d),b=r._imageUpperLayer.selectAll("image").data(n,d);m.enter().append("image"),b.enter().append("image"),m.exit().remove(),b.exit().remove(),m.each(function(T){f.bind(this)(T),h.bind(this)(T)}),b.each(function(T){f.bind(this)(T),h.bind(this)(T)}),m.sort(v),b.sort(v);var p=Object.keys(r._plots);for(s=0;s<p.length;s++){o=p[s];var k=r._plots[o];if(k.imagelayer){var M=k.imagelayer.selectAll("image").data(i[o]||[],d);M.enter().append("image"),M.exit().remove(),M.each(function(T){f.bind(this)(T),h.bind(this)(T)}),M.sort(v)}}}});var O0e=ye((mlr,q0e)=>{"use strict";var z0e=Eo(),Ngt=M6();q0e.exports=function(t,r,n,i){r=r||{};var a=n==="log"&&r.type==="linear",o=n==="linear"&&r.type==="log";if(a||o){for(var s=t._fullLayout.images,l=r._id.charAt(0),u,c,f=0;f<s.length;f++)if(u=s[f],c="images["+f+"].",u[l+"ref"]===r._id){var h=u[l],d=u["size"+l],v=null,m=null;if(a){v=Ngt(h,r.range);var b=d/Math.pow(10,v)/2;m=2*Math.log(b+Math.sqrt(1+b*b))/Math.LN10}else v=Math.pow(10,h),m=v*(Math.pow(10,d/2)-Math.pow(10,-d/2));z0e(v)?z0e(m)||(m=null):(v=null,m=null),i(c+l,v),i(c+"size"+l,m)}}}});var N0e=ye((ylr,B0e)=>{"use strict";B0e.exports={moduleType:"component",name:"images",layoutAttributes:QU(),supplyLayoutDefaults:P0e(),includeBasePlot:XM()("images"),draw:F0e(),convertCoords:O0e()}});var AI=ye((_lr,U0e)=>{"use strict";U0e.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:"\u25C4",right:"\u25BA",up:"\u25B2",down:"\u25BC"}}});var tV=ye((xlr,G0e)=>{"use strict";var Ugt=ec(),Vgt=Ih(),Ggt=Ao().extendFlat,Hgt=mc().overrideAll,jgt=z6(),V0e=vl().templatedArray,Wgt=V0e("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}});G0e.exports=Hgt(V0e("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:Wgt,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:Ggt(jgt({editType:"arraydraw"}),{}),font:Ugt({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:Vgt.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")});var X0e=ye((blr,W0e)=>{"use strict";var SI=Pr(),H0e=Kd(),j0e=tV(),Xgt=AI(),Zgt=Xgt.name,Ygt=j0e.buttons;W0e.exports=function(t,r){var n={name:Zgt,handleItemDefaults:Kgt};H0e(t,r,n)};function Kgt(e,t,r){function n(o,s){return SI.coerce(e,t,j0e,o,s)}var i=H0e(e,t,{name:"buttons",handleItemDefaults:Jgt}),a=n("visible",i.length>0);a&&(n("active"),n("direction"),n("type"),n("showactive"),n("x"),n("y"),SI.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),SI.coerceFont(n,"font",r.font),n("bgcolor",r.paper_bgcolor),n("bordercolor"),n("borderwidth"))}function Jgt(e,t){function r(i,a){return SI.coerce(e,t,Ygt,i,a)}var n=r("visible",e.method==="skip"||Array.isArray(e.args));n&&(r("method"),r("args"),r("args2"),r("label"),r("execute"))}});var K0e=ye((wlr,Y0e)=>{"use strict";Y0e.exports=Mf;var Ng=qa(),Z0e=ka(),ST=So(),MI=Pr();function Mf(e,t,r){this.gd=e,this.container=t,this.id=r,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})}Mf.barWidth=2;Mf.barLength=20;Mf.barRadius=2;Mf.barPad=1;Mf.barColor="#808BA4";Mf.prototype.enable=function(t,r,n){var i=this.gd._fullLayout,a=i.width,o=i.height;this.position=t;var s=this.position.l,l=this.position.w,u=this.position.t,c=this.position.h,f=this.position.direction,h=f==="down",d=f==="left",v=f==="right",m=f==="up",b=l,p=c,k,M,T,L;!h&&!d&&!v&&!m&&(this.position.direction="down",h=!0);var x=h||m;x?(k=s,M=k+b,h?(T=u,L=Math.min(T+p,o),p=L-T):(L=u+p,T=Math.max(L-p,0),p=L-T)):(T=u,L=T+p,d?(M=s+b,k=Math.max(M-b,0),b=M-k):(k=s,M=Math.min(k+b,a),b=M-k)),this._box={l:k,t:T,w:b,h:p};var C=l>b,S=Mf.barLength+2*Mf.barPad,g=Mf.barWidth+2*Mf.barPad,P=s,E=u+c;E+g>o&&(E=o-g);var z=this.container.selectAll("rect.scrollbar-horizontal").data(C?[0]:[]);z.exit().on(".drag",null).remove(),z.enter().append("rect").classed("scrollbar-horizontal",!0).call(Z0e.fill,Mf.barColor),C?(this.hbar=z.attr({rx:Mf.barRadius,ry:Mf.barRadius,x:P,y:E,width:S,height:g}),this._hbarXMin=P+S/2,this._hbarTranslateMax=b-S):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var q=c>p,V=Mf.barWidth+2*Mf.barPad,G=Mf.barLength+2*Mf.barPad,Z=s+l,j=u;Z+V>a&&(Z=a-V);var N=this.container.selectAll("rect.scrollbar-vertical").data(q?[0]:[]);N.exit().on(".drag",null).remove(),N.enter().append("rect").classed("scrollbar-vertical",!0).call(Z0e.fill,Mf.barColor),q?(this.vbar=N.attr({rx:Mf.barRadius,ry:Mf.barRadius,x:Z,y:j,width:V,height:G}),this._vbarYMin=j+G/2,this._vbarTranslateMax=p-G):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var H=this.id,ie=k-.5,ae=q?M+V+.5:M+.5,_e=T-.5,Ee=C?L+g+.5:L+.5,Ce=i._topdefs.selectAll("#"+H).data(C||q?[0]:[]);if(Ce.exit().remove(),Ce.enter().append("clipPath").attr("id",H).append("rect"),C||q?(this._clipRect=Ce.select("rect").attr({x:Math.floor(ie),y:Math.floor(_e),width:Math.ceil(ae)-Math.floor(ie),height:Math.ceil(Ee)-Math.floor(_e)}),this.container.call(ST.setClipUrl,H,this.gd),this.bg.attr({x:s,y:u,width:l,height:c})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(ST.setClipUrl,null),delete this._clipRect),C||q){var ge=Ng.behavior.drag().on("dragstart",function(){Ng.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(ge);var re=Ng.behavior.drag().on("dragstart",function(){Ng.event.sourceEvent.preventDefault(),Ng.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));C&&this.hbar.on(".drag",null).call(re),q&&this.vbar.on(".drag",null).call(re)}this.setTranslate(r,n)};Mf.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(ST.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)};Mf.prototype._onBoxDrag=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t-=Ng.event.dx),this.vbar&&(r-=Ng.event.dy),this.setTranslate(t,r)};Mf.prototype._onBoxWheel=function(){var t=this.translateX,r=this.translateY;this.hbar&&(t+=Ng.event.deltaY),this.vbar&&(r+=Ng.event.deltaY),this.setTranslate(t,r)};Mf.prototype._onBarDrag=function(){var t=this.translateX,r=this.translateY;if(this.hbar){var n=t+this._hbarXMin,i=n+this._hbarTranslateMax,a=MI.constrain(Ng.event.x,n,i),o=(a-n)/(i-n),s=this.position.w-this._box.w;t=o*s}if(this.vbar){var l=r+this._vbarYMin,u=l+this._vbarTranslateMax,c=MI.constrain(Ng.event.y,l,u),f=(c-l)/(u-l),h=this.position.h-this._box.h;r=f*h}this.setTranslate(t,r)};Mf.prototype.setTranslate=function(t,r){var n=this.position.w-this._box.w,i=this.position.h-this._box.h;if(t=MI.constrain(t||0,0,n),r=MI.constrain(r||0,0,i),this.translateX=t,this.translateY=r,this.container.call(ST.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-r),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+r-.5)}),this.hbar){var a=t/n;this.hbar.call(ST.setTranslate,t+a*this._hbarTranslateMax,r)}if(this.vbar){var o=r/i;this.vbar.call(ST.setTranslate,t,r+o*this._vbarTranslateMax)}}});var oge=ye((Tlr,age)=>{"use strict";var MT=qa(),g4=Mc(),m4=ka(),ET=So(),t0=Pr(),EI=Zl(),$gt=vl().arrayEditor,$0e=Dh().LINE_SPACING,es=AI(),Qgt=K0e();age.exports=function(t){var r=t._fullLayout,n=t0.filterVisible(r[es.name]);function i(h){g4.autoMargin(t,ige(h))}var a=r._menulayer.selectAll("g."+es.containerClassName).data(n.length>0?[0]:[]);if(a.enter().append("g").classed(es.containerClassName,!0).style("cursor","pointer"),a.exit().each(function(){MT.select(this).selectAll("g."+es.headerGroupClassName).each(i)}).remove(),n.length!==0){var o=a.selectAll("g."+es.headerGroupClassName).data(n,emt);o.enter().append("g").classed(es.headerGroupClassName,!0);for(var s=t0.ensureSingle(a,"g",es.dropdownButtonGroupClassName,function(h){h.style("pointer-events","all")}),l=0;l<n.length;l++){var u=n[l];omt(t,u)}var c="updatemenus"+r._uid,f=new Qgt(t,s,c);o.enter().size()&&(s.node().parentNode.appendChild(s.node()),s.call(iV)),o.exit().each(function(h){s.call(iV),i(h)}).remove(),o.each(function(h){var d=MT.select(this),v=h.type==="dropdown"?s:null;g4.manageCommandObserver(t,h,h.buttons,function(m){rV(t,h,h.buttons[m.index],d,v,f,m.index,!0)}),h.type==="dropdown"?(ege(t,d,s,f,h),Q0e(s,h)&&y4(t,d,s,f,h)):y4(t,d,null,null,h)})}};function emt(e){return e._index}function tmt(e){return+e.attr(es.menuIndexAttrName)==-1}function Q0e(e,t){return+e.attr(es.menuIndexAttrName)===t._index}function rV(e,t,r,n,i,a,o,s){t.active=o,$gt(e.layout,es.name,t).applyUpdate("active",o),t.type==="buttons"?y4(e,n,null,null,t):t.type==="dropdown"&&(i.attr(es.menuIndexAttrName,"-1"),ege(e,n,i,a,t),s||y4(e,n,i,a,t))}function ege(e,t,r,n,i){var a=t0.ensureSingle(t,"g",es.headerClassName,function(h){h.style("pointer-events","all")}),o=i._dims,s=i.active,l=i.buttons[s]||es.blankHeaderOpts,u={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},c={width:o.headerWidth,height:o.headerHeight};a.call(nV,i,l,e).call(nge,i,u,c);var f=t0.ensureSingle(t,"text",es.headerArrowClassName,function(h){h.attr("text-anchor","end").call(ET.font,i.font).text(es.arrowSymbol[i.direction])});f.attr({x:o.headerWidth-es.arrowOffsetX+i.pad.l,y:o.headerHeight/2+es.textOffsetY+i.pad.t}),a.on("click",function(){r.call(iV,String(Q0e(r,i)?-1:i._index)),y4(e,t,r,n,i)}),a.on("mouseover",function(){a.call(tge)}),a.on("mouseout",function(){a.call(rge,i)}),ET.setTranslate(t,o.lx,o.ly)}function y4(e,t,r,n,i){r||(r=t,r.attr("pointer-events","all"));var a=!tmt(r)||i.type==="buttons"?i.buttons:[],o=i.type==="dropdown"?es.dropdownButtonClassName:es.buttonClassName,s=r.selectAll("g."+o).data(t0.filterVisible(a)),l=s.enter().append("g").classed(o,!0),u=s.exit();i.type==="dropdown"?(l.attr("opacity","0").transition().attr("opacity","1"),u.transition().attr("opacity","0").remove()):u.remove();var c=0,f=0,h=i._dims,d=["up","down"].indexOf(i.direction)!==-1;i.type==="dropdown"&&(d?f=h.headerHeight+es.gapButtonHeader:c=h.headerWidth+es.gapButtonHeader),i.type==="dropdown"&&i.direction==="up"&&(f=-es.gapButtonHeader+es.gapButton-h.openHeight),i.type==="dropdown"&&i.direction==="left"&&(c=-es.gapButtonHeader+es.gapButton-h.openWidth);var v={x:h.lx+c+i.pad.l,y:h.ly+f+i.pad.t,yPad:es.gapButton,xPad:es.gapButton,index:0},m={l:v.x+i.borderwidth,t:v.y+i.borderwidth};s.each(function(b,p){var k=MT.select(this);k.call(nV,i,b,e).call(nge,i,v),k.on("click",function(){MT.event.defaultPrevented||(b.execute&&(b.args2&&i.active===p?(rV(e,i,b,t,r,n,-1),g4.executeAPICommand(e,b.method,b.args2)):(rV(e,i,b,t,r,n,p),g4.executeAPICommand(e,b.method,b.args))),e.emit("plotly_buttonclicked",{menu:i,button:b,active:i.active}))}),k.on("mouseover",function(){k.call(tge)}),k.on("mouseout",function(){k.call(rge,i),s.call(J0e,i)})}),s.call(J0e,i),d?(m.w=Math.max(h.openWidth,h.headerWidth),m.h=v.y-m.t):(m.w=v.x-m.l,m.h=Math.max(h.openHeight,h.headerHeight)),m.direction=i.direction,n&&(s.size()?rmt(e,t,r,n,i,m):imt(n))}function rmt(e,t,r,n,i,a){var o=i.direction,s=o==="up"||o==="down",l=i._dims,u=i.active,c,f,h;if(s)for(f=0,h=0;h<u;h++)f+=l.heights[h]+es.gapButton;else for(c=0,h=0;h<u;h++)c+=l.widths[h]+es.gapButton;n.enable(a,c,f),n.hbar&&n.hbar.attr("opacity","0").transition().attr("opacity","1"),n.vbar&&n.vbar.attr("opacity","0").transition().attr("opacity","1")}function imt(e){var t=!!e.hbar,r=!!e.vbar;t&&e.hbar.transition().attr("opacity","0").each("end",function(){t=!1,r||e.disable()}),r&&e.vbar.transition().attr("opacity","0").each("end",function(){r=!1,t||e.disable()})}function nV(e,t,r,n){e.call(nmt,t).call(amt,t,r,n)}function nmt(e,t){var r=t0.ensureSingle(e,"rect",es.itemRectClassName,function(n){n.attr({rx:es.rx,ry:es.ry,"shape-rendering":"crispEdges"})});r.call(m4.stroke,t.bordercolor).call(m4.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function amt(e,t,r,n){var i=t0.ensureSingle(e,"text",es.itemTextClassName,function(s){s.attr({"text-anchor":"start","data-notex":1})}),a=r.label,o=n._fullLayout._meta;o&&(a=t0.templateString(a,o)),i.call(ET.font,t.font).text(a).call(EI.convertToTspans,n)}function J0e(e,t){var r=t.active;e.each(function(n,i){var a=MT.select(this);i===r&&t.showactive&&a.select("rect."+es.itemRectClassName).call(m4.fill,es.activeColor)})}function tge(e){e.select("rect."+es.itemRectClassName).call(m4.fill,es.hoverColor)}function rge(e,t){e.select("rect."+es.itemRectClassName).call(m4.fill,t.bgcolor)}function omt(e,t){var r=t._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},n=ET.tester.selectAll("g."+es.dropdownButtonClassName).data(t0.filterVisible(t.buttons));n.enter().append("g").classed(es.dropdownButtonClassName,!0);var i=["up","down"].indexOf(t.direction)!==-1;n.each(function(c,f){var h=MT.select(this);h.call(nV,t,c,e);var d=h.select("."+es.itemTextClassName),v=d.node()&&ET.bBox(d.node()).width,m=Math.max(v+es.textPadX,es.minWidth),b=t.font.size*$0e,p=EI.lineCount(d),k=Math.max(b*p,es.minHeight)+es.textOffsetY;k=Math.ceil(k),m=Math.ceil(m),r.widths[f]=m,r.heights[f]=k,r.height1=Math.max(r.height1,k),r.width1=Math.max(r.width1,m),i?(r.totalWidth=Math.max(r.totalWidth,m),r.openWidth=r.totalWidth,r.totalHeight+=k+es.gapButton,r.openHeight+=k+es.gapButton):(r.totalWidth+=m+es.gapButton,r.openWidth+=m+es.gapButton,r.totalHeight=Math.max(r.totalHeight,k),r.openHeight=r.totalHeight)}),i?r.totalHeight-=es.gapButton:r.totalWidth-=es.gapButton,r.headerWidth=r.width1+es.arrowPadX,r.headerHeight=r.height1,t.type==="dropdown"&&(i?(r.width1+=es.arrowPadX,r.totalHeight=r.height1):r.totalWidth=r.width1,r.totalWidth+=es.arrowPadX),n.remove();var a=r.totalWidth+t.pad.l+t.pad.r,o=r.totalHeight+t.pad.t+t.pad.b,s=e._fullLayout._size;r.lx=s.l+s.w*t.x,r.ly=s.t+s.h*(1-t.y);var l="left";t0.isRightAnchor(t)&&(r.lx-=a,l="right"),t0.isCenterAnchor(t)&&(r.lx-=a/2,l="center");var u="top";t0.isBottomAnchor(t)&&(r.ly-=o,u="bottom"),t0.isMiddleAnchor(t)&&(r.ly-=o/2,u="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),g4.autoMargin(e,ige(t),{x:t.x,y:t.y,l:a*({right:1,center:.5}[l]||0),r:a*({left:1,center:.5}[l]||0),b:o*({top:1,middle:.5}[u]||0),t:o*({bottom:1,middle:.5}[u]||0)})}function ige(e){return es.autoMarginIdRoot+e._index}function nge(e,t,r,n){n=n||{};var i=e.select("."+es.itemRectClassName),a=e.select("."+es.itemTextClassName),o=t.borderwidth,s=r.index,l=t._dims;ET.setTranslate(e,o+r.x,o+r.y);var u=["up","down"].indexOf(t.direction)!==-1,c=n.height||(u?l.heights[s]:l.height1);i.attr({x:0,y:0,width:n.width||(u?l.width1:l.widths[s]),height:c});var f=t.font.size*$0e,h=EI.lineCount(a),d=(h-1)*f/2;EI.positionText(a,es.textOffsetX,c/2-d+es.textOffsetY),u?r.y+=l.heights[s]+r.yPad:r.x+=l.widths[s]+r.xPad,r.index++}function iV(e,t){e.attr(es.menuIndexAttrName,t||"-1").selectAll("g."+es.dropdownButtonClassName).remove()}});var lge=ye((Alr,sge)=>{"use strict";var smt=AI();sge.exports={moduleType:"component",name:smt.name,layoutAttributes:tV(),supplyLayoutDefaults:X0e(),draw:oge()}});var _4=ye((Slr,uge)=>{"use strict";uge.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}});var aV=ye((Mlr,hge)=>{"use strict";var cge=ec(),lmt=z6(),umt=Ao().extendDeepAll,cmt=mc().overrideAll,fmt=WS(),fge=vl().templatedArray,c2=_4(),hmt=fge("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}});hge.exports=cmt(fge("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:hmt,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:umt(lmt({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:fmt.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:cge({})},font:cge({}),activebgcolor:{valType:"color",dflt:c2.gripBgActiveColor},bgcolor:{valType:"color",dflt:c2.railBgColor},bordercolor:{valType:"color",dflt:c2.railBorderColor},borderwidth:{valType:"number",min:0,dflt:c2.railBorderWidth},ticklen:{valType:"number",min:0,dflt:c2.tickLength},tickcolor:{valType:"color",dflt:c2.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:c2.minorTickLength}}),"arraydraw","from-root")});var gge=ye((Elr,pge)=>{"use strict";var kT=Pr(),dge=Kd(),vge=aV(),dmt=_4(),vmt=dmt.name,pmt=vge.steps;pge.exports=function(t,r){dge(t,r,{name:vmt,handleItemDefaults:gmt})};function gmt(e,t,r){function n(f,h){return kT.coerce(e,t,vge,f,h)}for(var i=dge(e,t,{name:"steps",handleItemDefaults:mmt}),a=0,o=0;o<i.length;o++)i[o].visible&&a++;var s;if(a<2?s=t.visible=!1:s=n("visible"),!!s){t._stepCount=a;var l=t._visibleSteps=kT.filterVisible(i),u=n("active");(i[u]||{}).visible||(t.active=l[0]._index),n("x"),n("y"),kT.noneOrAll(e,t,["x","y"]),n("xanchor"),n("yanchor"),n("len"),n("lenmode"),n("pad.t"),n("pad.r"),n("pad.b"),n("pad.l"),kT.coerceFont(n,"font",r.font);var c=n("currentvalue.visible");c&&(n("currentvalue.xanchor"),n("currentvalue.prefix"),n("currentvalue.suffix"),n("currentvalue.offset"),kT.coerceFont(n,"currentvalue.font",t.font)),n("transition.duration"),n("transition.easing"),n("bgcolor"),n("activebgcolor"),n("bordercolor"),n("borderwidth"),n("ticklen"),n("tickwidth"),n("tickcolor"),n("minorticklen")}}function mmt(e,t){function r(a,o){return kT.coerce(e,t,pmt,a,o)}var n;if(e.method!=="skip"&&!Array.isArray(e.args)?n=t.visible=!1:n=r("visible"),n){r("method"),r("args");var i=r("label","step-"+t._index);r("value",i),r("execute")}}});var Mge=ye((klr,Sge)=>{"use strict";var Ug=qa(),kI=Mc(),k_=ka(),Vg=So(),r0=Pr(),ymt=r0.strTranslate,x4=Zl(),_mt=vl().arrayEditor,Rs=_4(),lV=Dh(),_ge=lV.LINE_SPACING,oV=lV.FROM_TL,sV=lV.FROM_BR;Sge.exports=function(t){var r=t._context.staticPlot,n=t._fullLayout,i=xmt(n,t),a=n._infolayer.selectAll("g."+Rs.containerClassName).data(i.length>0?[0]:[]);a.enter().append("g").classed(Rs.containerClassName,!0).style("cursor",r?null:"ew-resize");function o(c){c._commandObserver&&(c._commandObserver.remove(),delete c._commandObserver),kI.autoMargin(t,xge(c))}if(a.exit().each(function(){Ug.select(this).selectAll("g."+Rs.groupClassName).each(o)}).remove(),i.length!==0){var s=a.selectAll("g."+Rs.groupClassName).data(i,bmt);s.enter().append("g").classed(Rs.groupClassName,!0),s.exit().each(o).remove();for(var l=0;l<i.length;l++){var u=i[l];wmt(t,u)}s.each(function(c){var f=Ug.select(this);Emt(c),kI.manageCommandObserver(t,c,c._visibleSteps,function(h){var d=f.data()[0];d.active!==h.index&&(d._dragging||wge(t,f,d,h.index,!1,!0))}),Tmt(t,Ug.select(this),c)})}};function xge(e){return Rs.autoMarginIdRoot+e._index}function xmt(e,t){for(var r=e[Rs.name],n=[],i=0;i<r.length;i++){var a=r[i];a.visible&&(a._gd=t,n.push(a))}return n}function bmt(e){return e._index}function wmt(e,t){var r=Vg.tester.selectAll("g."+Rs.labelGroupClass).data(t._visibleSteps);r.enter().append("g").classed(Rs.labelGroupClass,!0);var n=0,i=0;r.each(function(v){var m=Ug.select(this),b=bge(m,{step:v},t),p=b.node();if(p){var k=Vg.bBox(p);i=Math.max(i,k.height),n=Math.max(n,k.width)}}),r.remove();var a=t._dims={};a.inputAreaWidth=Math.max(Rs.railWidth,Rs.gripHeight);var o=e._fullLayout._size;a.lx=o.l+o.w*t.x,a.ly=o.t+o.h*(1-t.y),t.lenmode==="fraction"?a.outerLength=Math.round(o.w*t.len):a.outerLength=t.len,a.inputAreaStart=0,a.inputAreaLength=Math.round(a.outerLength-t.pad.l-t.pad.r);var s=a.inputAreaLength-2*Rs.stepInset,l=s/(t._stepCount-1),u=n+Rs.labelPadding;if(a.labelStride=Math.max(1,Math.ceil(u/l)),a.labelHeight=i,a.currentValueMaxWidth=0,a.currentValueHeight=0,a.currentValueTotalHeight=0,a.currentValueMaxLines=1,t.currentvalue.visible){var c=Vg.tester.append("g");r.each(function(v){var m=CI(c,t,v.label),b=m.node()&&Vg.bBox(m.node())||{width:0,height:0},p=x4.lineCount(m);a.currentValueMaxWidth=Math.max(a.currentValueMaxWidth,Math.ceil(b.width)),a.currentValueHeight=Math.max(a.currentValueHeight,Math.ceil(b.height)),a.currentValueMaxLines=Math.max(a.currentValueMaxLines,p)}),a.currentValueTotalHeight=a.currentValueHeight+t.currentvalue.offset,c.remove()}a.height=a.currentValueTotalHeight+Rs.tickOffset+t.ticklen+Rs.labelOffset+a.labelHeight+t.pad.t+t.pad.b;var f="left";r0.isRightAnchor(t)&&(a.lx-=a.outerLength,f="right"),r0.isCenterAnchor(t)&&(a.lx-=a.outerLength/2,f="center");var h="top";r0.isBottomAnchor(t)&&(a.ly-=a.height,h="bottom"),r0.isMiddleAnchor(t)&&(a.ly-=a.height/2,h="middle"),a.outerLength=Math.ceil(a.outerLength),a.height=Math.ceil(a.height),a.lx=Math.round(a.lx),a.ly=Math.round(a.ly);var d={y:t.y,b:a.height*sV[h],t:a.height*oV[h]};t.lenmode==="fraction"?(d.l=0,d.xl=t.x-t.len*oV[f],d.r=0,d.xr=t.x+t.len*sV[f]):(d.x=t.x,d.l=a.outerLength*oV[f],d.r=a.outerLength*sV[f]),kI.autoMargin(e,xge(t),d)}function Tmt(e,t,r){(r.steps[r.active]||{}).visible||(r.active=r._visibleSteps[0]._index),t.call(CI,r).call(Cmt,r).call(Smt,r).call(Mmt,r).call(kmt,e,r).call(Amt,e,r);var n=r._dims;Vg.setTranslate(t,n.lx+r.pad.l,n.ly+r.pad.t),t.call(Age,r,!1),t.call(CI,r)}function CI(e,t,r){if(t.currentvalue.visible){var n=t._dims,i,a;switch(t.currentvalue.xanchor){case"right":i=n.inputAreaLength-Rs.currentValueInset-n.currentValueMaxWidth,a="left";break;case"center":i=n.inputAreaLength*.5,a="middle";break;default:i=Rs.currentValueInset,a="left"}var o=r0.ensureSingle(e,"text",Rs.labelClass,function(h){h.attr({"text-anchor":a,"data-notex":1})}),s=t.currentvalue.prefix?t.currentvalue.prefix:"";if(typeof r=="string")s+=r;else{var l=t.steps[t.active].label,u=t._gd._fullLayout._meta;u&&(l=r0.templateString(l,u)),s+=l}t.currentvalue.suffix&&(s+=t.currentvalue.suffix),o.call(Vg.font,t.currentvalue.font).text(s).call(x4.convertToTspans,t._gd);var c=x4.lineCount(o),f=(n.currentValueMaxLines+1-c)*t.currentvalue.font.size*_ge;return x4.positionText(o,i,f),o}}function Amt(e,t,r){var n=r0.ensureSingle(e,"rect",Rs.gripRectClass,function(i){i.call(Tge,t,e,r).style("pointer-events","all")});n.attr({width:Rs.gripWidth,height:Rs.gripHeight,rx:Rs.gripRadius,ry:Rs.gripRadius}).call(k_.stroke,r.bordercolor).call(k_.fill,r.bgcolor).style("stroke-width",r.borderwidth+"px")}function bge(e,t,r){var n=r0.ensureSingle(e,"text",Rs.labelClass,function(o){o.attr({"text-anchor":"middle","data-notex":1})}),i=t.step.label,a=r._gd._fullLayout._meta;return a&&(i=r0.templateString(i,a)),n.call(Vg.font,r.font).text(i).call(x4.convertToTspans,r._gd),n}function Smt(e,t){var r=r0.ensureSingle(e,"g",Rs.labelsClass),n=t._dims,i=r.selectAll("g."+Rs.labelGroupClass).data(n.labelSteps);i.enter().append("g").classed(Rs.labelGroupClass,!0),i.exit().remove(),i.each(function(a){var o=Ug.select(this);o.call(bge,a,t),Vg.setTranslate(o,uV(t,a.fraction),Rs.tickOffset+t.ticklen+t.font.size*_ge+Rs.labelOffset+n.currentValueTotalHeight)})}function mge(e,t,r,n,i){var a=Math.round(n*(r._stepCount-1)),o=r._visibleSteps[a]._index;o!==r.active&&wge(e,t,r,o,!0,i)}function wge(e,t,r,n,i,a){var o=r.active;r.active=n,_mt(e.layout,Rs.name,r).applyUpdate("active",n);var s=r.steps[r.active];t.call(Age,r,a),t.call(CI,r),e.emit("plotly_sliderchange",{slider:r,step:r.steps[r.active],interaction:i,previousActive:o}),s&&s.method&&i&&(t._nextMethod?(t._nextMethod.step=s,t._nextMethod.doCallback=i,t._nextMethod.doTransition=a):(t._nextMethod={step:s,doCallback:i,doTransition:a},t._nextMethodRaf=window.requestAnimationFrame(function(){var l=t._nextMethod.step;l.method&&(l.execute&&kI.executeAPICommand(e,l.method,l.args),t._nextMethod=null,t._nextMethodRaf=null)})))}function Tge(e,t,r){if(t._context.staticPlot)return;var n=r.node(),i=Ug.select(t);function a(){return r.data()[0]}function o(){var s=a();t.emit("plotly_sliderstart",{slider:s});var l=r.select("."+Rs.gripRectClass);Ug.event.stopPropagation(),Ug.event.preventDefault(),l.call(k_.fill,s.activebgcolor);var u=yge(s,Ug.mouse(n)[0]);mge(t,r,s,u,!0),s._dragging=!0;function c(){var h=a(),d=yge(h,Ug.mouse(n)[0]);mge(t,r,h,d,!1)}i.on("mousemove",c),i.on("touchmove",c);function f(){var h=a();h._dragging=!1,l.call(k_.fill,h.bgcolor),i.on("mouseup",null),i.on("mousemove",null),i.on("touchend",null),i.on("touchmove",null),t.emit("plotly_sliderend",{slider:h,step:h.steps[h.active]})}i.on("mouseup",f),i.on("touchend",f)}e.on("mousedown",o),e.on("touchstart",o)}function Mmt(e,t){var r=e.selectAll("rect."+Rs.tickRectClass).data(t._visibleSteps),n=t._dims;r.enter().append("rect").classed(Rs.tickRectClass,!0),r.exit().remove(),r.attr({width:t.tickwidth+"px","shape-rendering":"crispEdges"}),r.each(function(i,a){var o=a%n.labelStride===0,s=Ug.select(this);s.attr({height:o?t.ticklen:t.minorticklen}).call(k_.fill,t.tickcolor),Vg.setTranslate(s,uV(t,a/(t._stepCount-1))-.5*t.tickwidth,(o?Rs.tickOffset:Rs.minorTickOffset)+n.currentValueTotalHeight)})}function Emt(e){var t=e._dims;t.labelSteps=[];for(var r=e._stepCount,n=0;n<r;n+=t.labelStride)t.labelSteps.push({fraction:n/(r-1),step:e._visibleSteps[n]})}function Age(e,t,r){for(var n=e.select("rect."+Rs.gripRectClass),i=0,a=0;a<t._stepCount;a++)if(t._visibleSteps[a]._index===t.active){i=a;break}var o=uV(t,i/(t._stepCount-1));if(!t._invokingCommand){var s=n;r&&t.transition.duration>0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform",ymt(o-Rs.gripWidth*.5,t._dims.currentValueTotalHeight))}}function uV(e,t){var r=e._dims;return r.inputAreaStart+Rs.stepInset+(r.inputAreaLength-2*Rs.stepInset)*Math.min(1,Math.max(0,t))}function yge(e,t){var r=e._dims;return Math.min(1,Math.max(0,(t-Rs.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*Rs.stepInset-2*r.inputAreaStart)))}function kmt(e,t,r){var n=r._dims,i=r0.ensureSingle(e,"rect",Rs.railTouchRectClass,function(a){a.call(Tge,t,e,r).style("pointer-events","all")});i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,Rs.tickOffset+r.ticklen+n.labelHeight)}).call(k_.fill,r.bgcolor).attr("opacity",0),Vg.setTranslate(i,0,n.currentValueTotalHeight)}function Cmt(e,t){var r=t._dims,n=r.inputAreaLength-Rs.railInset*2,i=r0.ensureSingle(e,"rect",Rs.railRectClass);i.attr({width:n,height:Rs.railWidth,rx:Rs.railRadius,ry:Rs.railRadius,"shape-rendering":"crispEdges"}).call(k_.stroke,t.bordercolor).call(k_.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),Vg.setTranslate(i,Rs.railInset,(r.inputAreaWidth-Rs.railWidth)*.5+r.currentValueTotalHeight)}});var kge=ye((Clr,Ege)=>{"use strict";var Lmt=_4();Ege.exports={moduleType:"component",name:Lmt.name,layoutAttributes:aV(),supplyLayoutDefaults:gge(),draw:Mge()}});var LI=ye((Llr,Lge)=>{"use strict";var Cge=Ih();Lge.exports={bgcolor:{valType:"color",dflt:Cge.background,editType:"plot"},bordercolor:{valType:"color",dflt:Cge.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"}});var cV=ye((Plr,Pge)=>{"use strict";Pge.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"}});var PI=ye((Ilr,Ige)=>{"use strict";Ige.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}});var Fge=ye(RI=>{"use strict";var Pmt=df(),Imt=Zl(),Rge=PI(),Rmt=Dh().LINE_SPACING,II=Rge.name;function Dge(e){var t=e&&e[II];return t&&t.visible}RI.isVisible=Dge;RI.makeData=function(e){for(var t=Pmt.list({_fullLayout:e},"x",!0),r=e.margin,n=[],i=0;i<t.length;i++){var a=t[i];if(Dge(a)){n.push(a);var o=a[II];o._id=II+a._id,o._height=(e.height-r.b-r.t)*o.thickness,o._offsetShift=Math.floor(o.borderwidth/2)}}e._rangeSliderData=n};RI.autoMarginOpts=function(e,t){var r=e._fullLayout,n=t[II],i=t._id.charAt(0),a=0,o=0;if(t.side==="bottom"&&(a=t._depth,t.title.text!==r._dfltTitle[i])){o=1.5*t.title.font.size+10+n._offsetShift;var s=(t.title.text.match(Imt.BR_TAG_ALL)||[]).length;o+=s*t.title.font.size*Rmt}return{x:0,y:t._counterDomainMin,l:0,r:0,t:0,b:n._height+a+Math.max(r.margin.b,o),pad:Rge.extraPad+n._offsetShift*2}}});var Bge=ye((Dlr,Oge)=>{"use strict";var DI=Pr(),zge=vl(),qge=df(),Dmt=LI(),Fmt=cV();Oge.exports=function(t,r,n){var i=t[n],a=r[n];if(!(i.rangeslider||r._requestRangeslider[a._id]))return;DI.isPlainObject(i.rangeslider)||(i.rangeslider={});var o=i.rangeslider,s=zge.newContainer(a,"rangeslider");function l(L,x){return DI.coerce(o,s,Dmt,L,x)}var u,c;function f(L,x){return DI.coerce(u,c,Fmt,L,x)}var h=l("visible");if(h){l("bgcolor",r.plot_bgcolor),l("bordercolor"),l("borderwidth"),l("thickness"),l("autorange",!a.isValidRange(o.range)),l("range");var d=r._subplots;if(d)for(var v=d.cartesian.filter(function(L){return L.slice(0,Math.max(0,L.indexOf("y")))===qge.name2id(n)}).map(function(L){return L.slice(L.indexOf("y"),L.length)}),m=DI.simpleMap(v,qge.id2name),b=0;b<m.length;b++){var p=m[b];u=o[p]||{},c=zge.newContainer(s,p,"yaxis");var k=r[p],M;u.range&&k.isValidRange(u.range)&&(M="fixed");var T=f("rangemode",M);T!=="match"&&f("range",k.range.slice())}s._input=o}}});var Uge=ye((Flr,Nge)=>{"use strict";var zmt=df().list,qmt=Mg().getAutoRange,Omt=PI();Nge.exports=function(t){for(var r=zmt(t,"x",!0),n=0;n<r.length;n++){var i=r[n],a=i[Omt.name];a&&a.visible&&a.autorange&&(a._input.autorange=!0,a._input.range=a.range=qmt(t,i))}}});var jge=ye((zlr,Hge)=>{"use strict";var FI=qa(),Bmt=Oa(),Nmt=Mc(),Jf=Pr(),zI=Jf.strTranslate,Gge=So(),C_=ka(),Umt=qb(),Vmt=mh(),fV=df(),Gmt=yv(),Hmt=Eg(),rl=PI();Hge.exports=function(e){for(var t=e._fullLayout,r=t._rangeSliderData,n=0;n<r.length;n++){var i=r[n][rl.name];i._clipId=i._id+"-"+t._uid}function a(s){return s._name}var o=t._infolayer.selectAll("g."+rl.containerClassName).data(r,a);o.exit().each(function(s){var l=s[rl.name];t._topdefs.select("#"+l._clipId).remove()}).remove(),r.length!==0&&(o.enter().append("g").classed(rl.containerClassName,!0).attr("pointer-events","all"),o.each(function(s){var l=FI.select(this),u=s[rl.name],c=t[fV.id2name(s.anchor)],f=u[fV.id2name(s.anchor)];if(u.range){var h=Jf.simpleMap(u.range,s.r2l),d=Jf.simpleMap(s.range,s.r2l),v;d[0]<d[1]?v=[Math.min(h[0],d[0]),Math.max(h[1],d[1])]:v=[Math.max(h[0],d[0]),Math.min(h[1],d[1])],u.range=u._input.range=Jf.simpleMap(v,s.l2r)}s.cleanRange("rangeslider.range");var m=t._size,b=s.domain;u._width=m.w*(b[1]-b[0]);var p=Math.round(m.l+m.w*b[0]),k=Math.round(m.t+m.h*(1-s._counterDomainMin)+(s.side==="bottom"?s._depth:0)+u._offsetShift+rl.extraPad);l.attr("transform",zI(p,k)),u._rl=Jf.simpleMap(u.range,s.r2l);var M=u._rl[0],T=u._rl[1],L=T-M;if(u.p2d=function(G){return G/u._width*L+M},u.d2p=function(G){return(G-M)/L*u._width},s.rangebreaks){var x=s.locateBreaks(M,T);if(x.length){var C,S,g=0;for(C=0;C<x.length;C++)S=x[C],g+=S.max-S.min;var P=u._width/(T-M-g),E=[-P*M];for(C=0;C<x.length;C++)S=x[C],E.push(E[E.length-1]-P*(S.max-S.min));for(u.d2p=function(G){for(var Z=E[0],j=0;j<x.length;j++){var N=x[j];if(G>=N.max)Z=E[j+1];else if(G<N.min)break}return Z+P*G},C=0;C<x.length;C++)S=x[C],S.pmin=u.d2p(S.min),S.pmax=u.d2p(S.max);u.p2d=function(G){for(var Z=E[0],j=0;j<x.length;j++){var N=x[j];if(G>=N.pmax)Z=E[j+1];else if(G<N.pmin)break}return(G-Z)/P}}}if(f.rangemode!=="match"){var z=c.r2l(f.range[0]),q=c.r2l(f.range[1]),V=q-z;u.d2pOppAxis=function(G){return(G-z)/V*u._height}}l.call(Zmt,e,s,u).call(Ymt,e,s,u).call(Kmt,e,s,u).call($mt,e,s,u,f).call(Qmt,e,s,u).call(eyt,e,s,u),jmt(l,e,s,u),Xmt(l,e,s,u,c,f),s.side==="bottom"&&Umt.draw(e,s._id+"title",{propContainer:s,propName:s._name+".title.text",placeholder:t._dfltTitle.x,attributes:{x:s._offset+s._length/2,y:k+u._height+u._offsetShift+10+1.5*s.title.font.size,"text-anchor":"middle"}})}))};function Vge(e){return typeof e.clientX=="number"?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:0}function jmt(e,t,r,n){if(t._context.staticPlot)return;var i=e.select("rect."+rl.slideBoxClassName).node(),a=e.select("rect."+rl.grabAreaMinClassName).node(),o=e.select("rect."+rl.grabAreaMaxClassName).node();function s(){var l=FI.event,u=l.target,c=Vge(l),f=c-e.node().getBoundingClientRect().left,h=n.d2p(r._rl[0]),d=n.d2p(r._rl[1]),v=Gmt.coverSlip();this.addEventListener("touchmove",m),this.addEventListener("touchend",b),v.addEventListener("mousemove",m),v.addEventListener("mouseup",b);function m(p){var k=Vge(p),M=+k-c,T,L,x;switch(u){case i:if(x="ew-resize",h+M>r._length||d+M<0)return;T=h+M,L=d+M;break;case a:if(x="col-resize",h+M>r._length)return;T=h+M,L=d;break;case o:if(x="col-resize",d+M<0)return;T=h,L=d+M;break;default:x="ew-resize",T=f,L=f+M;break}if(L<T){var C=L;L=T,T=C}n._pixelMin=T,n._pixelMax=L,Hmt(FI.select(v),x),Wmt(e,t,r,n)}function b(){v.removeEventListener("mousemove",m),v.removeEventListener("mouseup",b),this.removeEventListener("touchmove",m),this.removeEventListener("touchend",b),Jf.removeElement(v)}}e.on("mousedown",s),e.on("touchstart",s)}function Wmt(e,t,r,n){function i(s){return r.l2r(Jf.constrain(s,n._rl[0],n._rl[1]))}var a=i(n.p2d(n._pixelMin)),o=i(n.p2d(n._pixelMax));window.requestAnimationFrame(function(){Bmt.call("_guiRelayout",t,r._name+".range",[a,o])})}function Xmt(e,t,r,n,i,a){var o=rl.handleWidth/2;function s(p){return Jf.constrain(p,0,n._width)}function l(p){return Jf.constrain(p,0,n._height)}function u(p){return Jf.constrain(p,-o,n._width+o)}var c=s(n.d2p(r._rl[0])),f=s(n.d2p(r._rl[1]));if(e.select("rect."+rl.slideBoxClassName).attr("x",c).attr("width",f-c),e.select("rect."+rl.maskMinClassName).attr("width",c),e.select("rect."+rl.maskMaxClassName).attr("x",f).attr("width",n._width-f),a.rangemode!=="match"){var h=n._height-l(n.d2pOppAxis(i._rl[1])),d=n._height-l(n.d2pOppAxis(i._rl[0]));e.select("rect."+rl.maskMinOppAxisClassName).attr("x",c).attr("height",h).attr("width",f-c),e.select("rect."+rl.maskMaxOppAxisClassName).attr("x",c).attr("y",d).attr("height",n._height-d).attr("width",f-c),e.select("rect."+rl.slideBoxClassName).attr("y",h).attr("height",d-h)}var v=.5,m=Math.round(u(c-o))-v,b=Math.round(u(f-o))+v;e.select("g."+rl.grabberMinClassName).attr("transform",zI(m,v)),e.select("g."+rl.grabberMaxClassName).attr("transform",zI(b,v))}function Zmt(e,t,r,n){var i=Jf.ensureSingle(e,"rect",rl.bgClassName,function(l){l.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),a=n.borderwidth%2===0?n.borderwidth:n.borderwidth-1,o=-n._offsetShift,s=Gge.crispRound(t,n.borderwidth);i.attr({width:n._width+a,height:n._height+a,transform:zI(o,o),"stroke-width":s}).call(C_.stroke,n.bordercolor).call(C_.fill,n.bgcolor)}function Ymt(e,t,r,n){var i=t._fullLayout,a=Jf.ensureSingleById(i._topdefs,"clipPath",n._clipId,function(o){o.append("rect").attr({x:0,y:0})});a.select("rect").attr({width:n._width,height:n._height})}function Kmt(e,t,r,n){var i=t.calcdata,a=e.selectAll("g."+rl.rangePlotClassName).data(r._subplotsWith,Jf.identity);a.enter().append("g").attr("class",function(s){return rl.rangePlotClassName+" "+s}).call(Gge.setClipUrl,n._clipId,t),a.order(),a.exit().remove();var o;a.each(function(s,l){var u=FI.select(this),c=l===0,f=fV.getFromId(t,s,"y"),h=f._name,d=n[h],v={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:n.range.slice(),calendar:r.calendar},width:n._width,height:n._height,margin:{t:0,b:0,l:0,r:0}},_context:t._context};r.rangebreaks&&(v.layout.xaxis.rangebreaks=r.rangebreaks),v.layout[h]={type:f.type,domain:[0,1],range:d.rangemode!=="match"?d.range.slice():f.range.slice(),calendar:f.calendar},f.rangebreaks&&(v.layout[h].rangebreaks=f.rangebreaks),Nmt.supplyDefaults(v);var m=v._fullLayout.xaxis,b=v._fullLayout[h];m.clearCalc(),m.setScale(),b.clearCalc(),b.setScale();var p={id:s,plotgroup:u,xaxis:m,yaxis:b,isRangePlot:!0};c?o=p:(p.mainplot="xy",p.mainplotinfo=o),Vmt.rangePlot(t,p,Jmt(i,s))})}function Jmt(e,t){for(var r=[],n=0;n<e.length;n++){var i=e[n],a=i[0].trace;a.xaxis+a.yaxis===t&&r.push(i)}return r}function $mt(e,t,r,n,i){var a=Jf.ensureSingle(e,"rect",rl.maskMinClassName,function(u){u.attr({x:0,y:0,"shape-rendering":"crispEdges"})});a.attr("height",n._height).call(C_.fill,rl.maskColor);var o=Jf.ensureSingle(e,"rect",rl.maskMaxClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});if(o.attr("height",n._height).call(C_.fill,rl.maskColor),i.rangemode!=="match"){var s=Jf.ensureSingle(e,"rect",rl.maskMinOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});s.attr("width",n._width).call(C_.fill,rl.maskOppAxisColor);var l=Jf.ensureSingle(e,"rect",rl.maskMaxOppAxisClassName,function(u){u.attr({y:0,"shape-rendering":"crispEdges"})});l.attr("width",n._width).style("border-top",rl.maskOppBorder).call(C_.fill,rl.maskOppAxisColor)}}function Qmt(e,t,r,n){if(!t._context.staticPlot){var i=Jf.ensureSingle(e,"rect",rl.slideBoxClassName,function(a){a.attr({y:0,cursor:rl.slideBoxCursor,"shape-rendering":"crispEdges"})});i.attr({height:n._height,fill:rl.slideBoxFill})}}function eyt(e,t,r,n){var i=Jf.ensureSingle(e,"g",rl.grabberMinClassName),a=Jf.ensureSingle(e,"g",rl.grabberMaxClassName),o={x:0,width:rl.handleWidth,rx:rl.handleRadius,fill:C_.background,stroke:C_.defaultLine,"stroke-width":rl.handleStrokeWidth,"shape-rendering":"crispEdges"},s={y:Math.round(n._height/4),height:Math.round(n._height/2)},l=Jf.ensureSingle(i,"rect",rl.handleMinClassName,function(d){d.attr(o)});l.attr(s);var u=Jf.ensureSingle(a,"rect",rl.handleMaxClassName,function(d){d.attr(o)});u.attr(s);var c={width:rl.grabAreaWidth,x:0,y:0,fill:rl.grabAreaFill,cursor:t._context.staticPlot?void 0:rl.grabAreaCursor},f=Jf.ensureSingle(i,"rect",rl.grabAreaMinClassName,function(d){d.attr(c)});f.attr("height",n._height);var h=Jf.ensureSingle(a,"rect",rl.grabAreaMaxClassName,function(d){d.attr(c)});h.attr("height",n._height)}});var Xge=ye((qlr,Wge)=>{"use strict";var tyt=Pr(),ryt=LI(),iyt=cV(),hV=Fge();Wge.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:tyt.extendFlat({},ryt,{yaxis:iyt})}}},layoutAttributes:LI(),handleDefaults:Bge(),calcAutorange:Uge(),draw:jge(),isVisible:hV.isVisible,makeData:hV.makeData,autoMarginOpts:hV.autoMarginOpts}});var qI=ye((Olr,Yge)=>{"use strict";var nyt=ec(),Zge=Ih(),ayt=vl().templatedArray,oyt=ayt("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"});Yge.exports={visible:{valType:"boolean",editType:"plot"},buttons:oyt,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:nyt({editType:"plot"}),bgcolor:{valType:"color",dflt:Zge.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:Zge.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}});var dV=ye((Blr,Kge)=>{"use strict";Kge.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}});var Qge=ye((Nlr,$ge)=>{"use strict";var OI=Pr(),syt=ka(),lyt=vl(),uyt=Kd(),Jge=qI(),vV=dV();$ge.exports=function(t,r,n,i,a){var o=t.rangeselector||{},s=lyt.newContainer(r,"rangeselector");function l(d,v){return OI.coerce(o,s,Jge,d,v)}var u=uyt(o,s,{name:"buttons",handleItemDefaults:cyt,calendar:a}),c=l("visible",u.length>0);if(c){var f=fyt(r,n,i);l("x",f[0]),l("y",f[1]),OI.noneOrAll(t,r,["x","y"]),l("xanchor"),l("yanchor"),OI.coerceFont(l,"font",n.font);var h=l("bgcolor");l("activecolor",syt.contrast(h,vV.lightAmount,vV.darkAmount)),l("bordercolor"),l("borderwidth")}};function cyt(e,t,r,n){var i=n.calendar;function a(l,u){return OI.coerce(e,t,Jge.buttons,l,u)}var o=a("visible");if(o){var s=a("step");s!=="all"&&(i&&i!=="gregorian"&&(s==="month"||s==="year")?t.stepmode="backward":a("stepmode"),a("count")),a("label")}}function fyt(e,t,r){for(var n=r.filter(function(s){return t[s].anchor===e._id}),i=0,a=0;a<n.length;a++){var o=t[n[a]].domain;o&&(i=Math.max(o[1],i))}return[e.domain[0],i+vV.yPad]}});var tme=ye((Ulr,eme)=>{"use strict";var hyt=Eq(),dyt=Pr().titleCase;eme.exports=function(t,r){var n=t._name,i={};if(r.step==="all")i[n+".autorange"]=!0;else{var a=vyt(t,r);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i};function vyt(e,t){var r=e.range,n=new Date(e.r2l(r[1])),i=t.step,a=hyt["utc"+dyt(i)],o=t.count,s;switch(t.stepmode){case"backward":s=e.l2r(+a.offset(n,-o));break;case"todate":var l=a.offset(n,-o);s=e.l2r(+a.ceil(l));break}var u=r[1];return[s,u]}});var ume=ye((Vlr,lme)=>{"use strict";var NI=qa(),pyt=Oa(),gyt=Mc(),rme=ka(),sme=So(),Ny=Pr(),ime=Ny.strTranslate,BI=Zl(),myt=df(),mV=Dh(),nme=mV.LINE_SPACING,ame=mV.FROM_TL,ome=mV.FROM_BR,gV=dV(),yyt=tme();lme.exports=function(t){var r=t._fullLayout,n=r._infolayer.selectAll(".rangeselector").data(_yt(t),xyt);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(i){var a=NI.select(this),o=i,s=o.rangeselector,l=a.selectAll("g.button").data(Ny.filterVisible(s.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each(function(u){var c=NI.select(this),f=yyt(o,u);u._isActive=byt(o,u,f),c.call(pV,s,u),c.call(Tyt,s,u,t),c.on("click",function(){t._dragged||pyt.call("_guiRelayout",t,f)}),c.on("mouseover",function(){u._isHovered=!0,c.call(pV,s,u)}),c.on("mouseout",function(){u._isHovered=!1,c.call(pV,s,u)})}),Syt(t,l,s,o._name,a)})};function _yt(e){for(var t=myt.list(e,"x",!0),r=[],n=0;n<t.length;n++){var i=t[n];i.rangeselector&&i.rangeselector.visible&&r.push(i)}return r}function xyt(e){return e._id}function byt(e,t,r){if(t.step==="all")return e.autorange===!0;var n=Object.keys(r);return e.range[0]===r[n[0]]&&e.range[1]===r[n[1]]}function pV(e,t,r){var n=Ny.ensureSingle(e,"rect","selector-rect",function(i){i.attr("shape-rendering","crispEdges")});n.attr({rx:gV.rx,ry:gV.ry}),n.call(rme.stroke,t.bordercolor).call(rme.fill,wyt(t,r)).style("stroke-width",t.borderwidth+"px")}function wyt(e,t){return t._isActive||t._isHovered?e.activecolor:e.bgcolor}function Tyt(e,t,r,n){function i(o){BI.convertToTspans(o,n)}var a=Ny.ensureSingle(e,"text","selector-text",function(o){o.attr("text-anchor","middle")});a.call(sme.font,t.font).text(Ayt(r,n._fullLayout._meta)).call(i)}function Ayt(e,t){return e.label?t?Ny.templateString(e.label,t):e.label:e.step==="all"?"all":e.count+e.step.charAt(0)}function Syt(e,t,r,n,i){var a=0,o=0,s=r.borderwidth;t.each(function(){var d=NI.select(this),v=d.select(".selector-text"),m=r.font.size*nme,b=Math.max(m*BI.lineCount(v),16)+3;o=Math.max(o,b)}),t.each(function(){var d=NI.select(this),v=d.select(".selector-rect"),m=d.select(".selector-text"),b=m.node()&&sme.bBox(m.node()).width,p=r.font.size*nme,k=BI.lineCount(m),M=Math.max(b+10,gV.minButtonWidth);d.attr("transform",ime(s+a,s)),v.attr({x:0,y:0,width:M,height:o}),BI.positionText(m,M/2,o/2-(k-1)*p/2+3),a+=M+5});var l=e._fullLayout._size,u=l.l+l.w*r.x,c=l.t+l.h*(1-r.y),f="left";Ny.isRightAnchor(r)&&(u-=a,f="right"),Ny.isCenterAnchor(r)&&(u-=a/2,f="center");var h="top";Ny.isBottomAnchor(r)&&(c-=o,h="bottom"),Ny.isMiddleAnchor(r)&&(c-=o/2,h="middle"),a=Math.ceil(a),o=Math.ceil(o),u=Math.round(u),c=Math.round(c),gyt.autoMargin(e,n+"-range-selector",{x:r.x,y:r.y,l:a*ame[f],r:a*ome[f],b:o*ome[h],t:o*ame[h]}),i.attr("transform",ime(u,c))}});var fme=ye((Glr,cme)=>{"use strict";cme.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:qI()}}},layoutAttributes:qI(),handleDefaults:Qge(),draw:ume()}});var Cc=ye(yV=>{"use strict";var hme=Ao().extendFlat;yV.attributes=function(e,t){e=e||{},t=t||{};var r={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},n=e.name?e.name+" ":"",i=e.trace?"trace ":"subplot ",a=t.description?" "+t.description:"",o={x:hme({},r,{}),y:hme({},r,{}),editType:e.editType};return e.noGridCell||(o.row={valType:"integer",min:0,dflt:0,editType:e.editType},o.column={valType:"integer",min:0,dflt:0,editType:e.editType}),o};yV.defaults=function(e,t,r,n){var i=n&&n.x||[0,1],a=n&&n.y||[0,1],o=t.grid;if(o){var s=r("domain.column");s!==void 0&&(s<o.columns?i=o._domains.x[s]:delete e.domain.column);var l=r("domain.row");l!==void 0&&(l<o.rows?a=o._domains.y[l]:delete e.domain.row)}var u=r("domain.x",i),c=r("domain.y",a);u[0]<u[1]||(e.domain.x=i.slice()),c[0]<c[1]||(e.domain.y=a.slice())}});var xV=ye((jlr,gme)=>{"use strict";var Myt=Pr(),Eyt=m3().counter,kyt=Cc().attributes,dme=Rh().idRegex,Cyt=vl(),_V={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:[Eyt("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[dme.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[dme.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:kyt({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 UI(e,t,r){var n=t[r+"axes"],i=Object.keys((e._splomAxes||{})[r]||{});if(Array.isArray(n))return n;if(i.length)return i}function Lyt(e,t){var r=e.grid||{},n=UI(t,r,"x"),i=UI(t,r,"y");if(!e.grid&&!n&&!i)return;var a=Array.isArray(r.subplots)&&Array.isArray(r.subplots[0]),o=Array.isArray(n),s=Array.isArray(i),l=o&&n!==r.xaxes&&s&&i!==r.yaxes,u,c;a?(u=r.subplots.length,c=r.subplots[0].length):(s&&(u=i.length),o&&(c=n.length));var f=Cyt.newContainer(t,"grid");function h(x,C){return Myt.coerce(r,f,_V,x,C)}var d=h("rows",u),v=h("columns",c);if(!(d*v>1)){delete t.grid;return}if(!a&&!o&&!s){var m=h("pattern")==="independent";m&&(a=!0)}f._hasSubplotGrid=a;var b=h("roworder"),p=b==="top to bottom",k=a?.2:.1,M=a?.3:.1,T,L;l&&t._splomGridDflt&&(T=t._splomGridDflt.xside,L=t._splomGridDflt.yside),f._domains={x:vme("x",h,k,T,v),y:vme("y",h,M,L,d,p)}}function vme(e,t,r,n,i,a){var o=t(e+"gap",r),s=t("domain."+e);t(e+"side",n);for(var l=new Array(i),u=s[0],c=(s[1]-u)/(i-o),f=c*(1-o),h=0;h<i;h++){var d=u+c*h;l[a?i-1-h:h]=[d,d+f]}return l}function Pyt(e,t){var r=t.grid;if(!(!r||!r._domains)){var n=e.grid||{},i=t._subplots,a=r._hasSubplotGrid,o=r.rows,s=r.columns,l=r.pattern==="independent",u,c,f,h,d,v,m,b=r._axisMap={};if(a){var p=n.subplots||[];v=r.subplots=new Array(o);var k=1;for(u=0;u<o;u++){var M=v[u]=new Array(s),T=p[u]||[];for(c=0;c<s;c++)if(l?(d=k===1?"xy":"x"+k+"y"+k,k++):d=T[c],M[c]="",i.cartesian.indexOf(d)!==-1){if(m=d.indexOf("y"),f=d.slice(0,m),h=d.slice(m),b[f]!==void 0&&b[f]!==c||b[h]!==void 0&&b[h]!==u)continue;M[c]=d,b[f]=c,b[h]=u}}}else{var L=UI(t,n,"x"),x=UI(t,n,"y");r.xaxes=pme(L,i.xaxis,s,b,"x"),r.yaxes=pme(x,i.yaxis,o,b,"y")}var C=r._anchors={},S=r.roworder==="top to bottom";for(var g in b){var P=g.charAt(0),E=r[P+"side"],z,q,V;if(E.length<8)C[g]="free";else if(P==="x"){if(E.charAt(0)==="t"===S?(z=0,q=1,V=o):(z=o-1,q=-1,V=-1),a){var G=b[g];for(u=z;u!==V;u+=q)if(d=v[u][G],!!d&&(m=d.indexOf("y"),d.slice(0,m)===g)){C[g]=d.slice(m);break}}else for(u=z;u!==V;u+=q)if(h=r.yaxes[u],i.cartesian.indexOf(g+h)!==-1){C[g]=h;break}}else if(E.charAt(0)==="l"?(z=0,q=1,V=s):(z=s-1,q=-1,V=-1),a){var Z=b[g];for(u=z;u!==V;u+=q)if(d=v[Z][u],!!d&&(m=d.indexOf("y"),d.slice(m)===g)){C[g]=d.slice(0,m);break}}else for(u=z;u!==V;u+=q)if(f=r.xaxes[u],i.cartesian.indexOf(f+g)!==-1){C[g]=f;break}}}}function pme(e,t,r,n,i){var a=new Array(r),o;function s(l,u){t.indexOf(u)!==-1&&n[u]===void 0?(a[l]=u,n[u]=l):a[l]=""}if(Array.isArray(e))for(o=0;o<r;o++)s(o,e[o]);else for(s(0,i),o=1;o<r;o++)s(o,i+(o+1));return a}gme.exports={moduleType:"component",name:"grid",schema:{layout:{grid:_V}},layoutAttributes:_V,sizeDefaults:Lyt,contentDefaults:Pyt}});var bV=ye((Wlr,mme)=>{"use strict";mme.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"}});var xme=ye((Xlr,_me)=>{"use strict";var yme=Eo(),Iyt=Oa(),Ryt=Pr(),Dyt=vl(),Fyt=bV();_me.exports=function(e,t,r,n){var i="error_"+n.axis,a=Dyt.newContainer(t,i),o=e[i]||{};function s(v,m){return Ryt.coerce(o,a,Fyt,v,m)}var l=o.array!==void 0||o.value!==void 0||o.type==="sqrt",u=s("visible",l);if(u!==!1){var c=s("type","array"in o?"data":"percent"),f=!0;c!=="sqrt"&&(f=s("symmetric",!((c==="data"?"arrayminus":"valueminus")in o))),c==="data"?(s("array"),s("traceref"),f||(s("arrayminus"),s("tracerefminus"))):(c==="percent"||c==="constant")&&(s("value"),f||s("valueminus"));var h="copy_"+n.inherit+"style";if(n.inherit){var d=t["error_"+n.inherit];(d||{}).visible&&s(h,!(o.color||yme(o.thickness)||yme(o.width)))}(!n.inherit||!a[h])&&(s("color",r),s("thickness"),s("width",Iyt.traceIs(t,"gl3d")?0:4))}}});var wV=ye((Zlr,wme)=>{"use strict";wme.exports=function(t){var r=t.type,n=t.symmetric;if(r==="data"){var i=t.array||[];if(n)return function(u,c){var f=+i[c];return[f,f]};var a=t.arrayminus||[];return function(u,c){var f=+i[c],h=+a[c];return!isNaN(f)||!isNaN(h)?[h||0,f||0]:[NaN,NaN]}}else{var o=bme(r,t.value),s=bme(r,t.valueminus);return n||t.valueminus===void 0?function(u){var c=o(u);return[c,c]}:function(u){return[s(u),o(u)]}}};function bme(e,t){if(e==="percent")return function(r){return Math.abs(r*t/100)};if(e==="constant")return function(){return Math.abs(t)};if(e==="sqrt")return function(r){return Math.sqrt(Math.abs(r))}}});var Sme=ye((Ylr,Ame)=>{"use strict";var TV=Eo(),zyt=Oa(),AV=ho(),qyt=Pr(),Oyt=wV();Ame.exports=function(t){for(var r=t.calcdata,n=0;n<r.length;n++){var i=r[n],a=i[0].trace;if(a.visible===!0&&zyt.traceIs(a,"errorBarsOK")){var o=AV.getFromId(t,a.xaxis),s=AV.getFromId(t,a.yaxis);Tme(i,a,o,"x"),Tme(i,a,s,"y")}}};function Tme(e,t,r,n){var i=t["error_"+n]||{},a=i.visible&&["linear","log"].indexOf(r.type)!==-1,o=[];if(a){for(var s=Oyt(i),l=0;l<e.length;l++){var u=e[l],c=u.i;if(c===void 0)c=l;else if(c===null)continue;var f=u[n];if(TV(r.c2l(f))){var h=s(f,c);if(TV(h[0])&&TV(h[1])){var d=u[n+"s"]=f-h[0],v=u[n+"h"]=f+h[1];o.push(d,v)}}}var m=r._id,b=t._extremes[m],p=AV.findExtremes(r,o,qyt.extendFlat({tozero:b.opts.tozero},{padded:!0}));b.min=b.min.concat(p.min),b.max=b.max.concat(p.max)}}});var kme=ye((Klr,Eme)=>{"use strict";var Mme=qa(),L_=Eo(),Byt=So(),Nyt=Ru();Eme.exports=function(t,r,n,i){var a,o=n.xaxis,s=n.yaxis,l=i&&i.duration>0,u=t._context.staticPlot;r.each(function(c){var f=c[0].trace,h=f.error_x||{},d=f.error_y||{},v;f.ids&&(v=function(k){return k.id});var m=Nyt.hasMarkers(f)&&f.marker.maxdisplayed>0;!d.visible&&!h.visible&&(c=[]);var b=Mme.select(this).selectAll("g.errorbar").data(c,v);if(b.exit().remove(),!!c.length){h.visible||b.selectAll("path.xerror").remove(),d.visible||b.selectAll("path.yerror").remove(),b.style("opacity",1);var p=b.enter().append("g").classed("errorbar",!0);l&&p.style("opacity",0).transition().duration(i.duration).style("opacity",1),Byt.setClipUrl(b,n.layerClipId,t),b.each(function(k){var M=Mme.select(this),T=Uyt(k,o,s);if(!(m&&!k.vis)){var L,x=M.select("path.yerror");if(d.visible&&L_(T.x)&&L_(T.yh)&&L_(T.ys)){var C=d.width;L="M"+(T.x-C)+","+T.yh+"h"+2*C+"m-"+C+",0V"+T.ys,T.noYS||(L+="m-"+C+",0h"+2*C),a=!x.size(),a?x=M.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("yerror",!0):l&&(x=x.transition().duration(i.duration).ease(i.easing)),x.attr("d",L)}else x.remove();var S=M.select("path.xerror");if(h.visible&&L_(T.y)&&L_(T.xh)&&L_(T.xs)){var g=(h.copy_ystyle?d:h).width;L="M"+T.xh+","+(T.y-g)+"v"+2*g+"m0,-"+g+"H"+T.xs,T.noXS||(L+="m0,-"+g+"v"+2*g),a=!S.size(),a?S=M.append("path").style("vector-effect",u?"none":"non-scaling-stroke").classed("xerror",!0):l&&(S=S.transition().duration(i.duration).ease(i.easing)),S.attr("d",L)}else S.remove()}})}})};function Uyt(e,t,r){var n={x:t.c2p(e.x),y:r.c2p(e.y)};return e.yh!==void 0&&(n.yh=r.c2p(e.yh),n.ys=r.c2p(e.ys),L_(n.ys)||(n.noYS=!0,n.ys=r.c2p(e.ys,!0))),e.xh!==void 0&&(n.xh=t.c2p(e.xh),n.xs=t.c2p(e.xs),L_(n.xs)||(n.noXS=!0,n.xs=t.c2p(e.xs,!0))),n}});var Pme=ye((Jlr,Lme)=>{"use strict";var Vyt=qa(),Cme=ka();Lme.exports=function(t){t.each(function(r){var n=r[0].trace,i=n.error_y||{},a=n.error_x||{},o=Vyt.select(this);o.selectAll("path.yerror").style("stroke-width",i.thickness+"px").call(Cme.stroke,i.color),a.copy_ystyle&&(a=i),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(Cme.stroke,a.color)})}});var Dme=ye(($lr,Rme)=>{"use strict";var b4=Pr(),Ime=mc().overrideAll,w4=bV(),f2={error_x:b4.extendFlat({},w4),error_y:b4.extendFlat({},w4)};delete f2.error_x.copy_zstyle;delete f2.error_y.copy_zstyle;delete f2.error_y.copy_ystyle;var T4={error_x:b4.extendFlat({},w4),error_y:b4.extendFlat({},w4),error_z:b4.extendFlat({},w4)};delete T4.error_x.copy_ystyle;delete T4.error_y.copy_ystyle;delete T4.error_z.copy_ystyle;delete T4.error_z.copy_zstyle;Rme.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:f2,bar:f2,histogram:f2,scatter3d:Ime(T4,"calc","nested"),scattergl:Ime(f2,"calc","nested")}},supplyDefaults:xme(),calc:Sme(),makeComputeError:wV(),plot:kme(),style:Pme(),hoverInfo:Gyt};function Gyt(e,t,r){(t.error_y||{}).visible&&(r.yerr=e.yh-e.y,t.error_y.symmetric||(r.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(r.xerr=e.xh-e.x,t.error_x.symmetric||(r.xerrneg=e.x-e.xs))}});var zme=ye((Qlr,Fme)=>{"use strict";Fme.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"}}});var Gme=ye((eur,Vme)=>{"use strict";var P_=qa(),SV=fd(),GI=Mc(),qme=Oa(),Uy=ho(),VI=yv(),U0=Pr(),Hg=U0.strTranslate,Ume=Ao().extendFlat,MV=Eg(),Gg=So(),EV=ka(),Hyt=qb(),jyt=Zl(),Wyt=pv().flipScale,Xyt=h4(),Zyt=vI(),Yyt=Rd(),kV=Dh(),Ome=kV.LINE_SPACING,Bme=kV.FROM_TL,Nme=kV.FROM_BR,gf=zme().cn;function Kyt(e){var t=e._fullLayout,r=t._infolayer.selectAll("g."+gf.colorbar).data(Jyt(e),function(n){return n._id});r.enter().append("g").attr("class",function(n){return n._id}).classed(gf.colorbar,!0),r.each(function(n){var i=P_.select(this);U0.ensureSingle(i,"rect",gf.cbbg),U0.ensureSingle(i,"g",gf.cbfills),U0.ensureSingle(i,"g",gf.cblines),U0.ensureSingle(i,"g",gf.cbaxis,function(o){o.classed(gf.crisp,!0)}),U0.ensureSingle(i,"g",gf.cbtitleunshift,function(o){o.append("g").classed(gf.cbtitle,!0)}),U0.ensureSingle(i,"rect",gf.cboutline);var a=$yt(i,n,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&Qyt(i,n,e)}),r.exit().each(function(n){GI.autoMargin(e,n._id)}).remove(),r.order()}function Jyt(e){var t=e._fullLayout,r=e.calcdata,n=[],i,a,o,s;function l(M){return Ume(M,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){typeof s.calc=="function"?s.calc(e,o,i):(i._fillgradient=a.reversescale?Wyt(a.colorscale):a.colorscale,i._zrange=[a[s.min],a[s.max]])}for(var c=0;c<r.length;c++){var f=r[c];if(o=f[0].trace,!!o._module){var h=o._module.colorbar;if(o.visible===!0&&h)for(var d=Array.isArray(h),v=d?h:[h],m=0;m<v.length;m++){s=v[m];var b=s.container;a=b?o[b]:o,a&&a.showscale&&(i=l(a.colorbar),i._id="cb"+o.uid+(d&&b?"-"+b:""),i._traceIndex=o.index,i._propPrefix=(b?b+".":"")+"colorbar.",i._meta=o._meta,u(),n.push(i))}}}for(var p in t._colorAxes)if(a=t[p],a.showscale){var k=t._colorAxes[p];i=l(a.colorbar),i._id="cb"+p,i._propPrefix=p+".colorbar.",i._meta=t._meta,s={min:"cmin",max:"cmax"},k[0]!=="heatmap"&&(o=k[1],s.calc=o._module.colorbar.calc),u(),n.push(i)}return n}function $yt(e,t,r){var n=t.orientation==="v",i=t.len,a=t.lenmode,o=t.thickness,s=t.thicknessmode,l=t.outlinewidth,u=t.borderwidth,c=t.bgcolor,f=t.xanchor,h=t.yanchor,d=t.xpad,v=t.ypad,m=t.x,b=n?t.y:1-t.y,p=t.yref==="paper",k=t.xref==="paper",M=r._fullLayout,T=M._size,L=t._fillcolor,x=t._line,C=t.title,S=C.side,g=t._zrange||P_.extent((typeof L=="function"?L:x.color).domain()),P=typeof x.color=="function"?x.color:function(){return x.color},E=typeof L=="function"?L:function(){return L},z=t._levels,q=e1t(r,t,g),V=q.fill,G=q.line,Z=Math.round(o*(s==="fraction"?n?T.w:T.h:1)),j=Z/(n?T.w:T.h),N=Math.round(i*(a==="fraction"?n?T.h:T.w:1)),H=N/(n?T.h:T.w),ie=k?T.w:r._fullLayout.width,ae=p?T.h:r._fullLayout.height,_e=Math.round(n?m*ie+d:b*ae+v),Ee={center:.5,right:1}[f]||0,Ce={top:1,middle:.5}[h]||0,ge=n?m-Ee*j:b-Ce*j,re=n?b-Ce*H:m-Ee*H,Se=Math.round(n?ae*(1-re):ie*re);t._lenFrac=H,t._thickFrac=j,t._uFrac=ge,t._vFrac=re;var ke=t._axis=t1t(r,t,g);ke.position=j+(n?m+d/T.w:b+v/T.h);var be=["top","bottom"].indexOf(S)!==-1;if(n&&be&&(ke.title.side=S,ke.titlex=m+d/T.w,ke.titley=re+(C.side==="top"?H-v/T.h:v/T.h)),!n&&!be&&(ke.title.side=S,ke.titley=b+v/T.h,ke.titlex=re+d/T.w),x.color&&t.tickmode==="auto"){ke.tickmode="linear",ke.tick0=z.start;var Be=z.size,Le=U0.constrain(N/50,4,15)+1,me=(g[1]-g[0])/((t.nticks||Le)*Be);if(me>1){var Pe=Math.pow(10,Math.floor(Math.log(me)/Math.LN10));Be*=Pe*U0.roundUp(me/Pe,[2,5,10]),(Math.abs(z.start)/z.size+1e-6)%1<2e-6&&(ke.tick0=0)}ke.dtick=Be}ke.domain=n?[re+v/T.h,re+H-v/T.h]:[re+d/T.w,re+H-d/T.w],ke.setScale(),e.attr("transform",Hg(Math.round(T.l),Math.round(T.t)));var ce=e.select("."+gf.cbtitleunshift).attr("transform",Hg(-Math.round(T.l),-Math.round(T.t))),He=ke.ticklabelposition,lt=ke.title.font.size,mt=e.select("."+gf.cbaxis),Ht,at=0,ct=0;function ar(Ue,Ae){var rt={propContainer:ke,propName:t._propPrefix+"title.text",traceIndex:t._traceIndex,_meta:t._meta,placeholder:M._dfltTitle.colorbar,containerGroup:e.select("."+gf.cbtitle)},St=Ue.charAt(0)==="h"?Ue.slice(1):"h"+Ue;e.selectAll("."+St+",."+St+"-math-group").remove(),Hyt.draw(r,Ue,Ume(rt,Ae||{}))}function Vt(){if(n&&be||!n&&!be){var Ue,Ae;S==="top"&&(Ue=d+T.l+ie*m,Ae=v+T.t+ae*(1-re-H)+3+lt*.75),S==="bottom"&&(Ue=d+T.l+ie*m,Ae=v+T.t+ae*(1-re)-3-lt*.25),S==="right"&&(Ae=v+T.t+ae*b+3+lt*.75,Ue=d+T.l+ie*re),ar(ke._id+"title",{attributes:{x:Ue,y:Ae,"text-anchor":n?"start":"middle"}})}}function rr(){if(n&&!be||!n&&be){var Ue=ke.position||0,Ae=ke._offset+ke._length/2,rt,St;if(S==="right")St=Ae,rt=T.l+ie*Ue+10+lt*(ke.showticklabels?1:.5);else if(rt=Ae,S==="bottom"&&(St=T.t+ae*Ue+10+(He.indexOf("inside")===-1?ke.tickfont.size:0)+(ke.ticks!=="inside"&&t.ticklen||0)),S==="top"){var Tt=C.text.split("<br>").length;St=T.t+ae*Ue+10-Z-Ome*lt*Tt}ar((n?"h":"v")+ke._id+"title",{avoid:{selection:P_.select(r).selectAll("g."+ke._id+"tick"),side:S,offsetTop:n?0:T.t,offsetLeft:n?T.l:0,maxShift:n?M.width:M.height},attributes:{x:rt,y:St,"text-anchor":"middle"},transform:{rotate:n?-90:0,offset:0}})}}function tt(){if(!n&&!be||n&&be){var Ue=e.select("."+gf.cbtitle),Ae=Ue.select("text"),rt=[-l/2,l/2],St=Ue.select(".h"+ke._id+"title-math-group").node(),Tt=15.6;Ae.node()&&(Tt=parseInt(Ae.node().style.fontSize,10)*Ome);var dt;if(St?(dt=Gg.bBox(St),ct=dt.width,at=dt.height,at>Tt&&(rt[1]-=(at-Tt)/2)):Ae.node()&&!Ae.classed(gf.jsPlaceholder)&&(dt=Gg.bBox(Ae.node()),ct=dt.width,at=dt.height),n){if(at){if(at+=5,S==="top")ke.domain[1]-=at/T.h,rt[1]*=-1;else{ke.domain[0]+=at/T.h;var Et=jyt.lineCount(Ae);rt[1]+=(1-Et)*Tt}Ue.attr("transform",Hg(rt[0],rt[1])),ke.setScale()}}else ct&&(S==="right"&&(ke.domain[0]+=(ct+lt/2)/T.w),Ue.attr("transform",Hg(rt[0],rt[1])),ke.setScale())}e.selectAll("."+gf.cbfills+",."+gf.cblines).attr("transform",n?Hg(0,Math.round(T.h*(1-ke.domain[1]))):Hg(Math.round(T.w*ke.domain[0]),0)),mt.attr("transform",n?Hg(0,Math.round(-T.t)):Hg(Math.round(-T.l),0));var pt=e.select("."+gf.cbfills).selectAll("rect."+gf.cbfill).attr("style","").data(V);pt.enter().append("rect").classed(gf.cbfill,!0).attr("style",""),pt.exit().remove();var jt=g.map(ke.c2p).map(Math.round).sort(function(qr,jr){return qr-jr});pt.each(function(qr,jr){var gt=[jr===0?g[0]:(V[jr]+V[jr-1])/2,jr===V.length-1?g[1]:(V[jr]+V[jr+1])/2].map(ke.c2p).map(Math.round);n&&(gt[1]=U0.constrain(gt[1]+(gt[1]>gt[0])?1:-1,jt[0],jt[1]));var Ge=P_.select(this).attr(n?"x":"y",_e).attr(n?"y":"x",P_.min(gt)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(P_.max(gt)-P_.min(gt),2));if(t._fillgradient)Gg.gradient(Ge,r,t._id,n?"vertical":"horizontalreversed",t._fillgradient,"fill");else{var Je=E(qr).replace("e-","");Ge.attr("fill",SV(Je).toHexString())}});var or=e.select("."+gf.cblines).selectAll("path."+gf.cbline).data(x.color&&x.width?G:[]);or.enter().append("path").classed(gf.cbline,!0),or.exit().remove(),or.each(function(qr){var jr=_e,gt=Math.round(ke.c2p(qr))+x.width/2%1;P_.select(this).attr("d","M"+(n?jr+","+gt:gt+","+jr)+(n?"h":"v")+Z).call(Gg.lineGroupStyle,x.width,P(qr),x.dash)}),mt.selectAll("g."+ke._id+"tick,path").remove();var mr=_e+Z+(l||0)/2-(t.ticks==="outside"?1:0),Ar=Uy.calcTicks(ke),ei=Uy.getTickSigns(ke)[2];return Uy.drawTicks(r,ke,{vals:ke.ticks==="inside"?Uy.clipEnds(ke,Ar):Ar,layer:mt,path:Uy.makeTickPath(ke,mr,ei),transFn:Uy.makeTransTickFn(ke)}),Uy.drawLabels(r,ke,{vals:Ar,layer:mt,transFn:Uy.makeTransTickLabelFn(ke),labelFns:Uy.makeLabelFns(ke,mr)})}function je(){var Ue,Ae=Z+l/2;He.indexOf("inside")===-1&&(Ue=Gg.bBox(mt.node()),Ae+=n?Ue.width:Ue.height),Ht=ce.select("text");var rt=0,St=n&&S==="top",Tt=!n&&S==="right",dt=0;if(Ht.node()&&!Ht.classed(gf.jsPlaceholder)){var Et,pt=ce.select(".h"+ke._id+"title-math-group").node();pt&&(n&&be||!n&&!be)?(Ue=Gg.bBox(pt),rt=Ue.width,Et=Ue.height):(Ue=Gg.bBox(ce.node()),rt=Ue.right-T.l-(n?_e:Se),Et=Ue.bottom-T.t-(n?Se:_e),!n&&S==="top"&&(Ae+=Ue.height,dt=Ue.height)),Tt&&(Ht.attr("transform",Hg(rt/2+lt/2,0)),rt*=2),Ae=Math.max(Ae,n?rt:Et)}var jt=(n?d:v)*2+Ae+u+l/2,or=0;!n&&C.text&&h==="bottom"&&b<=0&&(or=jt/2,jt+=or,dt+=or),M._hColorbarMoveTitle=or,M._hColorbarMoveCBTitle=dt;var mr=u+l,Ar=(n?_e:Se)-mr/2-(n?d:0),ei=(n?Se:_e)-(n?N:v+dt-or);e.select("."+gf.cbbg).attr("x",Ar).attr("y",ei).attr(n?"width":"height",Math.max(jt-or,2)).attr(n?"height":"width",Math.max(N+mr,2)).call(EV.fill,c).call(EV.stroke,t.bordercolor).style("stroke-width",u);var qr=Tt?Math.max(rt-10,0):0;e.selectAll("."+gf.cboutline).attr("x",(n?_e:Se+d)+qr).attr("y",(n?Se+v-N:_e)+(St?at:0)).attr(n?"width":"height",Math.max(Z,2)).attr(n?"height":"width",Math.max(N-(n?2*v+at:2*d+qr),2)).call(EV.stroke,t.outlinecolor).style({fill:"none","stroke-width":l});var jr=n?Ee*jt:0,gt=n?0:(1-Ce)*jt-dt;if(jr=k?T.l-jr:-jr,gt=p?T.t-gt:-gt,e.attr("transform",Hg(jr,gt)),!n&&(u||SV(c).getAlpha()&&!SV.equals(M.paper_bgcolor,c))){var Ge=mt.selectAll("text"),Je=Ge[0].length,We=e.select("."+gf.cbbg).node(),et=Gg.bBox(We),xt=Gg.getTranslate(e),At=2;Ge.each(function(mi,un){var Fn=0,An=Je-1;if(un===Fn||un===An){var Hn=Gg.bBox(this),Qn=Gg.getTranslate(this),Vi;if(un===An){var Kn=Hn.right+Qn.x,Jn=et.right+xt.x+Se-u-At+m;Vi=Jn-Kn,Vi>0&&(Vi=0)}else if(un===Fn){var Gt=Hn.left+Qn.x,wt=et.left+xt.x+Se+u+At;Vi=wt-Gt,Vi<0&&(Vi=0)}Vi&&(Je<3?this.setAttribute("transform","translate("+Vi+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var Kt={},Qt=Bme[f],Mr=Nme[f],Gr=Bme[h],Ir=Nme[h],Yr=jt-Z;n?(a==="pixels"?(Kt.y=b,Kt.t=N*Gr,Kt.b=N*Ir):(Kt.t=Kt.b=0,Kt.yt=b+i*Gr,Kt.yb=b-i*Ir),s==="pixels"?(Kt.x=m,Kt.l=jt*Qt,Kt.r=jt*Mr):(Kt.l=Yr*Qt,Kt.r=Yr*Mr,Kt.xl=m-o*Qt,Kt.xr=m+o*Mr)):(a==="pixels"?(Kt.x=m,Kt.l=N*Qt,Kt.r=N*Mr):(Kt.l=Kt.r=0,Kt.xl=m+i*Qt,Kt.xr=m-i*Mr),s==="pixels"?(Kt.y=1-b,Kt.t=jt*Gr,Kt.b=jt*Ir):(Kt.t=Yr*Gr,Kt.b=Yr*Ir,Kt.yt=b-o*Gr,Kt.yb=b+o*Ir));var _i=t.y<.5?"b":"t",Pi=t.x<.5?"l":"r";r._fullLayout._reservedMargin[t._id]={};var ai={r:M.width-Ar-jr,l:Ar+Kt.r,b:M.height-ei-gt,t:ei+Kt.b};k&&p?GI.autoMargin(r,t._id,Kt):k?r._fullLayout._reservedMargin[t._id][_i]=ai[_i]:p||n?r._fullLayout._reservedMargin[t._id][Pi]=ai[Pi]:r._fullLayout._reservedMargin[t._id][_i]=ai[_i]}return U0.syncOrAsync([GI.previousPromises,Vt,tt,rr,GI.previousPromises,je],r)}function Qyt(e,t,r){var n=t.orientation==="v",i=r._fullLayout,a=i._size,o,s,l;VI.init({element:e.node(),gd:r,prepFn:function(){o=e.attr("transform"),MV(e)},moveFn:function(u,c){e.attr("transform",o+Hg(u,c)),s=VI.align((n?t._uFrac:t._vFrac)+u/a.w,n?t._thickFrac:t._lenFrac,0,1,t.xanchor),l=VI.align((n?t._vFrac:1-t._uFrac)-c/a.h,n?t._lenFrac:t._thickFrac,0,1,t.yanchor);var f=VI.getCursor(s,l,t.xanchor,t.yanchor);MV(e,f)},doneFn:function(){if(MV(e),s!==void 0&&l!==void 0){var u={};u[t._propPrefix+"x"]=s,u[t._propPrefix+"y"]=l,t._traceIndex!==void 0?qme.call("_guiRestyle",r,u,t._traceIndex):qme.call("_guiRelayout",r,u)}}})}function e1t(e,t,r){var n=t._levels,i=[],a=[],o,s,l=n.end+n.size/100,u=n.size,c=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(s=0;s<1e5&&(o=n.start+s*u,!(u>0?o>=l:o<=l));s++)o>c&&o<f&&i.push(o);if(t._fillgradient)a=[0];else if(typeof t._fillcolor=="function"){var h=t._filllevels;if(h)for(l=h.end+h.size/100,u=h.size,s=0;s<1e5&&(o=h.start+s*u,!(u>0?o>=l:o<=l));s++)o>r[0]&&o<r[1]&&a.push(o);else a=i.map(function(d){return d-n.size/2}),a.push(a[a.length-1]+n.size)}else t._fillcolor&&typeof t._fillcolor=="string"&&(a=[0]);return n.size<0&&(i.reverse(),a.reverse()),{line:i,fill:a}}function t1t(e,t,r){var n=e._fullLayout,i=t.orientation==="v",a={type:"linear",range:r,tickmode:t.tickmode,nticks:t.nticks,tick0:t.tick0,dtick:t.dtick,tickvals:t.tickvals,ticktext:t.ticktext,ticks:t.ticks,ticklen:t.ticklen,tickwidth:t.tickwidth,tickcolor:t.tickcolor,showticklabels:t.showticklabels,labelalias:t.labelalias,ticklabelposition:t.ticklabelposition,ticklabeloverflow:t.ticklabeloverflow,ticklabelstep:t.ticklabelstep,tickfont:t.tickfont,tickangle:t.tickangle,tickformat:t.tickformat,exponentformat:t.exponentformat,minexponent:t.minexponent,separatethousands:t.separatethousands,showexponent:t.showexponent,showtickprefix:t.showtickprefix,tickprefix:t.tickprefix,showticksuffix:t.showticksuffix,ticksuffix:t.ticksuffix,title:t.title,showline:!0,anchor:"free",side:i?"right":"bottom",position:1},o=i?"y":"x",s={type:"linear",_id:o+t._id},l={letter:o,font:n.font,noAutotickangles:o==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:n.calendar};function u(c,f){return U0.coerce(a,s,Yyt,c,f)}return Xyt(a,s,u,l,n),Zyt(a,s,u,l),s}Vme.exports={draw:Kyt}});var jme=ye((tur,Hme)=>{"use strict";Hme.exports={moduleType:"component",name:"colorbar",attributes:cL(),supplyDefaults:qO(),draw:Gme().draw,hasColorbar:LO()}});var Xme=ye((rur,Wme)=>{"use strict";Wme.exports={moduleType:"component",name:"legend",layoutAttributes:PB(),supplyLayoutDefaults:RB(),draw:XB(),style:GB()}});var Yme=ye((iur,Zme)=>{"use strict";Zme.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"}}});var Jme=ye((nur,Kme)=>{"use strict";Kme.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}});var LV=ye((aur,tye)=>{"use strict";var r1t=Oa(),eye=Pr(),CV=eye.extendFlat,$me=eye.extendDeep;function Qme(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function i1t(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}tye.exports=function(t,r){var n,i=t.data,a=t.layout,o=$me([],i),s=$me({},a,Qme(r.tileClass)),l=t._context||{};if(r.width&&(s.width=r.width),r.height&&(s.height=r.height),r.tileClass==="thumbnail"||r.tileClass==="themes__thumb"){s.annotations=[];var u=Object.keys(s);for(n=0;n<u.length;n++)i1t(u[n])&&(s[u[n]].title={text:""});for(n=0;n<o.length;n++){var c=o[n];c.showscale=!1,c.marker&&(c.marker.showscale=!1),r1t.traceIs(c,"pie-like")&&(c.textposition="none")}}if(Array.isArray(r.annotations))for(n=0;n<r.annotations.length;n++)s.annotations.push(r.annotations[n]);var f=Object.keys(s).filter(function(b){return b.match(/^scene\d*$/)});if(f.length){var h={};for(r.tileClass==="thumbnail"&&(h={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),n=0;n<f.length;n++){var d=s[f[n]];d.xaxis||(d.xaxis={}),d.yaxis||(d.yaxis={}),d.zaxis||(d.zaxis={}),CV(d.xaxis,h),CV(d.yaxis,h),CV(d.zaxis,h),d._scene=null}}var v=document.createElement("div");r.tileClass&&(v.className=r.tileClass);var m={gd:v,td:v,layout:s,data:o,config:{staticPlot:r.staticPlot===void 0?!0:r.staticPlot,plotGlPixelRatio:r.plotGlPixelRatio===void 0?2:r.plotGlPixelRatio,displaylogo:r.displaylogo||!1,showLink:r.showLink||!1,showTips:r.showTips||!1,mapboxAccessToken:l.mapboxAccessToken}};return r.setBackground!=="transparent"&&(m.config.setBackground=r.setBackground||"opaque"),m.gd.defaultLayout=Qme(r.tileClass),m}});var nye=ye((our,iye)=>{"use strict";var n1t=Sb().EventEmitter,a1t=Oa(),o1t=Pr(),rye=qy(),s1t=LV(),l1t=KP(),u1t=JP();function c1t(e,t){var r=new n1t,n=s1t(e,{format:"png"}),i=n.gd;i.style.position="absolute",i.style.left="-5000px",document.body.appendChild(i);function a(){var s=rye.getDelay(i._fullLayout);setTimeout(function(){var l=l1t(i),u=document.createElement("canvas");u.id=o1t.randstr(),r=u1t({format:t.format,width:i._fullLayout.width,height:i._fullLayout.height,canvas:u,emitter:r,svg:l}),r.clean=function(){i&&document.body.removeChild(i)}},s)}var o=rye.getRedrawFunc(i);return a1t.call("_doPlot",i,n.data,n.layout,n.config).then(o).then(a).catch(function(s){r.emit("error",s)}),r}iye.exports=c1t});var sye=ye((sur,oye)=>{"use strict";var aye=qy(),f1t={getDelay:aye.getDelay,getRedrawFunc:aye.getRedrawFunc,clone:LV(),toSVG:KP(),svgToImg:JP(),toImage:nye(),downloadImage:uU()};oye.exports=f1t});var uye=ye(Vy=>{"use strict";Vy.version=m6().version;wee();cne();var h1t=Oa(),A4=Vy.register=h1t.register,IV=Cde(),lye=Object.keys(IV);for(HI=0;HI<lye.length;HI++)CT=lye[HI],CT.charAt(0)!=="_"&&(Vy[CT]=IV[CT]),A4({moduleType:"apiMethod",name:CT,fn:IV[CT]});var CT,HI;A4(Ape());A4([Ype(),l0e(),qf(),E0e(),N0e(),lge(),kge(),Xge(),fme(),xV(),Dme(),tc(),jme(),Xme(),ef(),mN()]);A4([Yme(),Jme()]);window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(A4(window.PlotlyLocales),delete window.PlotlyLocales);Vy.Icons=QL();var jI=ef(),PV=Mc();Vy.Plots={resize:PV.resize,graphJson:PV.graphJson,sendDataToCloud:PV.sendDataToCloud};Vy.Fx={hover:jI.hover,unhover:jI.unhover,loneHover:jI.loneHover,loneUnhover:jI.loneUnhover};Vy.Snapshot=sye();Vy.PlotSchema=R3()});var fye=ye((uur,cye)=>{"use strict";cye.exports=uye()});var qm=ye((cur,gye)=>{"use strict";var Bf=pf(),hye=vf().axisHoverFormat,{hovertemplateAttrs:d1t,texttemplateAttrs:v1t,templatefallbackAttrs:dye}=Ll(),pye=Tu(),p1t=ec(),vye=A_(),g1t=Pd().pattern,h2=Ao().extendFlat,RV=p1t({editType:"calc",arrayOk:!0,colorEditType:"style"}),m1t=Bf.marker,y1t=m1t.line,_1t=h2({},y1t.width,{dflt:0}),x1t=h2({width:_1t,editType:"calc"},pye("marker.line")),b1t=h2({line:x1t,editType:"calc"},pye("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:g1t,cornerradius:{valType:"any",editType:"calc"}});gye.exports={x:Bf.x,x0:Bf.x0,dx:Bf.dx,y:Bf.y,y0:Bf.y0,dy:Bf.dy,xperiod:Bf.xperiod,yperiod:Bf.yperiod,xperiod0:Bf.xperiod0,yperiod0:Bf.yperiod0,xperiodalignment:Bf.xperiodalignment,yperiodalignment:Bf.yperiodalignment,xhoverformat:hye("x"),yhoverformat:hye("y"),text:Bf.text,texttemplate:v1t({editType:"plot"},{keys:vye.eventDataKeys}),texttemplatefallback:dye({editType:"plot"}),hovertext:Bf.hovertext,hovertemplate:d1t({},{keys:vye.eventDataKeys}),hovertemplatefallback:dye(),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:h2({},RV,{}),insidetextfont:h2({},RV,{}),outsidetextfont:h2({},RV,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:h2({},Bf.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:b1t,offsetgroup:Bf.offsetgroup,alignmentgroup:Bf.alignmentgroup,selected:{marker:{opacity:Bf.selected.marker.opacity,color:Bf.selected.marker.color,editType:"style"},textfont:Bf.selected.textfont,editType:"style"},unselected:{marker:{opacity:Bf.unselected.marker.opacity,color:Bf.unselected.marker.color,editType:"style"},textfont:Bf.unselected.textfont,editType:"style"},zorder:Bf.zorder}});var WI=ye((fur,mye)=>{"use strict";mye.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},barcornerradius:{valType:"any",editType:"calc"}}});var XI=ye((hur,xye)=>{"use strict";var w1t=ka(),yye=pv().hasColorscale,_ye=td(),T1t=Pr().coercePattern;xye.exports=function(t,r,n,i,a){var o=n("marker.color",i),s=yye(t,"marker");s&&_ye(t,r,a,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",w1t.defaultLine),yye(t,"marker.line")&&_ye(t,r,a,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),T1t(n,"marker.pattern",o,s),n("selected.marker.color"),n("unselected.marker.color")}});var i0=ye((dur,Mye)=>{"use strict";var bye=Eo(),LT=Pr(),wye=ka(),A1t=Oa(),S1t=lT(),M1t=Dg(),E1t=XI(),k1t=r2(),Tye=qm(),ZI=LT.coerceFont;function C1t(e,t,r,n){function i(u,c){return LT.coerce(e,t,Tye,u,c)}var a=S1t(e,t,n,i);if(!a){t.visible=!1;return}M1t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("zorder"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var o=i("textposition");Sye(e,t,n,i,o,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),E1t(e,t,i,r,n);var s=(t.marker.line||{}).color,l=A1t.getComponentMethod("errorbars","supplyDefaults");l(e,t,s||wye.defaultLine,{axis:"y"}),l(e,t,s||wye.defaultLine,{axis:"x",inherit:"y"}),LT.coerceSelectionMarkerOpacity(t,i)}function L1t(e,t){var r,n;function i(s,l){return LT.coerce(n._input,n,Tye,s,l)}for(var a=0;a<e.length;a++)if(n=e[a],n.type==="bar"){r=n._input;var o=i("marker.cornerradius",t.barcornerradius);n.marker&&(n.marker.cornerradius=Aye(o)),k1t(r,n,t,i,t.barmode)}}function Aye(e){if(bye(e)){if(e=+e,e>=0)return e}else if(typeof e=="string"&&(e=e.trim(),e.slice(-1)==="%"&&bye(e.slice(0,-1))&&(e=+e.slice(0,-1),e>=0)))return e+"%"}function Sye(e,t,r,n,i,a){a=a||{};var o=a.moduleHasSelected!==!1,s=a.moduleHasUnselected!==!1,l=a.moduleHasConstrain!==!1,u=a.moduleHasCliponaxis!==!1,c=a.moduleHasTextangle!==!1,f=a.moduleHasInsideanchor!==!1,h=!!a.hasPathbar,d=Array.isArray(i)||i==="auto",v=d||i==="inside",m=d||i==="outside";if(v||m){var b=ZI(n,"textfont",r.font),p=LT.extendFlat({},b),k=e.textfont&&e.textfont.color,M=!k;if(M&&delete p.color,ZI(n,"insidetextfont",p),h){var T=LT.extendFlat({},b);M&&delete T.color,ZI(n,"pathbar.textfont",T)}m&&ZI(n,"outsidetextfont",b),o&&n("selected.textfont.color"),s&&n("unselected.textfont.color"),l&&n("constraintext"),u&&n("cliponaxis"),c&&n("textangle"),n("texttemplate"),n("texttemplatefallback")}v&&f&&n("insidetextanchor")}Mye.exports={supplyDefaults:C1t,crossTraceDefaults:L1t,handleText:Sye,validateCornerradius:Aye}});var DV=ye((vur,Eye)=>{"use strict";var P1t=Oa(),I1t=ho(),R1t=Pr(),D1t=WI(),F1t=i0().validateCornerradius;Eye.exports=function(e,t,r){function n(m,b){return R1t.coerce(e,t,D1t,m,b)}for(var i=!1,a=!1,o=!1,s={},l=n("barmode"),u=l==="group",c=0;c<r.length;c++){var f=r[c];if(P1t.traceIs(f,"bar")&&f.visible)i=!0;else continue;var h=f.xaxis+f.yaxis;if(u?(s[h]&&(o=!0),s[h]=!0):(h+=f._input.offsetgroup,s.length>0&&!s[h]&&(o=!0),s[h]=!0),f.visible&&f.type==="histogram"){var d=I1t.getFromId({_fullLayout:t},f[f.orientation==="v"?"xaxis":"yaxis"]);d.type!=="category"&&(a=!0)}}if(!i){delete t.barmode;return}l!=="overlay"&&n("barnorm"),n("bargap",a&&!o?0:.2),n("bargroupgap");var v=n("barcornerradius");t.barcornerradius=F1t(v)}});var S4=ye((pur,kye)=>{"use strict";var PT=Pr();kye.exports=function(t,r){for(var n=0;n<t.length;n++)t[n].i=n;PT.mergeArray(r.text,t,"tx"),PT.mergeArray(r.hovertext,t,"htx");var i=r.marker;if(i){PT.mergeArray(i.opacity,t,"mo",!0),PT.mergeArray(i.color,t,"mc");var a=i.line;a&&(PT.mergeArray(a.color,t,"mlc"),PT.mergeArrayCastPositive(a.width,t,"mlw"))}}});var Dye=ye((gur,Rye)=>{"use strict";var Cye=ho(),Lye=zg(),Pye=pv().hasColorscale,Iye=gv(),z1t=S4(),q1t=q0();Rye.exports=function(t,r){var n=Cye.getFromId(t,r.xaxis||"x"),i=Cye.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f={msUTC:!!(r.base||r.base===0)};r.orientation==="h"?(a=n.makeCalcdata(r,"x",f),s=i.makeCalcdata(r,"y"),l=Lye(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y",f),s=n.makeCalcdata(r,"x"),l=Lye(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var h=Math.min(o.length,a.length),d=new Array(h),v=0;v<h;v++)d[v]={p:o[v],s:a[v]},u&&(d[v].orig_p=s[v],d[v][c+"End"]=l.ends[v],d[v][c+"Start"]=l.starts[v]),r.ids&&(d[v].id=String(r.ids[v]));return Pye(r,"marker")&&Iye(t,r,{vals:r.marker.color,containerStr:"marker",cLetter:"c"}),Pye(r,"marker.line")&&Iye(t,r,{vals:r.marker.line.color,containerStr:"marker.line",cLetter:"c"}),z1t(d,r),q1t(d,r),d}});var bv=ye((mur,zye)=>{"use strict";var O1t=qa(),B1t=Pr();function N1t(e,t,r){var n=e._fullLayout,i=n["_"+r+"Text_minsize"];if(i){var a=n.uniformtext.mode==="hide",o;switch(r){case"funnelarea":case"pie":case"sunburst":o="g.slice";break;case"treemap":case"icicle":o="g.slice, g.pathbar";break;default:o="g.points > g.point"}t.selectAll(o).each(function(s){var l=s.transform;if(l){l.scale=a&&l.hide?0:i/l.fontSize;var u=O1t.select(this).select("text");B1t.setTransormAndDisplay(u,l)}})}}function U1t(e,t,r){if(r.uniformtext.mode){var n=Fye(e),i=r.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=a<i,r[n]=r[n]||1/0,t.hide||(r[n]=Math.min(r[n],Math.max(a,i)))}}function V1t(e,t){var r=Fye(e);t[r]=void 0}function Fye(e){return"_"+e+"Text_minsize"}zye.exports={recordMinTextSize:U1t,clearMinTextSize:V1t,resizeText:N1t}});var YI=ye(d2=>{"use strict";var G1t=Eo(),H1t=fd(),qye=Pr().isArrayOrTypedArray;d2.coerceString=function(e,t,r){if(typeof t=="string"){if(t||!e.noBlank)return t}else if((typeof t=="number"||t===!0)&&!e.strict)return String(t);return r!==void 0?r:e.dflt};d2.coerceNumber=function(e,t,r){if(G1t(t)){t=+t;var n=e.min,i=e.max,a=n!==void 0&&t<n||i!==void 0&&t>i;if(!a)return t}return r!==void 0?r:e.dflt};d2.coerceColor=function(e,t,r){return H1t(t).isValid()?t:r!==void 0?r:e.dflt};d2.coerceEnumerated=function(e,t,r){return e.coerceNumber&&(t=+t),e.values.indexOf(t)!==-1?t:r!==void 0?r:e.dflt};d2.getValue=function(e,t){var r;return qye(e)?t<e.length&&(r=e[t]):r=e,r};d2.getLineWidth=function(e,t){var r=0<t.mlw?t.mlw:qye(e.marker.line.width)?0:e.marker.line.width;return r}});var V0=ye((_ur,Zye)=>{"use strict";var M4=qa(),j1t=ka(),E4=So(),Oye=Pr(),Bye=Oa(),Nye=bv().resizeText,FV=qm(),W1t=FV.textfont,X1t=FV.insidetextfont,Z1t=FV.outsidetextfont,ev=YI();function Y1t(e){var t=M4.select(e).selectAll('g[class^="barlayer"]').selectAll("g.trace");Nye(e,t,"bar");var r=t.size(),n=e._fullLayout;t.style("opacity",function(i){return i[0].trace.opacity}).each(function(i){(n.barmode==="stack"&&r>1||n.bargap===0&&n.bargroupgap===0&&!i[0].trace.marker.line.width)&&M4.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(i){var a=M4.select(this),o=i[0].trace;Uye(a,o,e)}),Bye.getComponentMethod("errorbars","style")(t)}function Uye(e,t,r){E4.pointStyle(e.selectAll("path"),t,r),Vye(e,t,r)}function Vye(e,t,r){e.selectAll("text").each(function(n){var i=M4.select(this),a=Oye.ensureUniformFontSize(r,Gye(i,n,t,r));E4.font(i,a)})}function K1t(e,t,r){var n=t[0].trace;n.selectedpoints?J1t(r,n,e):(Uye(r,n,e),Bye.getComponentMethod("errorbars","style")(r))}function J1t(e,t,r){E4.selectedPointStyle(e.selectAll("path"),t),$1t(e.selectAll("text"),t,r)}function $1t(e,t,r){e.each(function(n){var i=M4.select(this),a;if(n.selected){a=Oye.ensureUniformFontSize(r,Gye(i,n,t,r));var o=t.selected.textfont&&t.selected.textfont.color;o&&(a.color=o),E4.font(i,a)}else E4.selectedTextStyle(i,t)})}function Gye(e,t,r,n){var i=n._fullLayout.font,a=r.textfont;if(e.classed("bartext-inside")){var o=Xye(t,r);a=jye(r,t.i,i,o)}else e.classed("bartext-outside")&&(a=Wye(r,t.i,i));return a}function Hye(e,t,r){return zV(W1t,e.textfont,t,r)}function jye(e,t,r,n){var i=Hye(e,t,r),a=e._input.textfont===void 0||e._input.textfont.color===void 0||Array.isArray(e.textfont.color)&&e.textfont.color[t]===void 0;return a&&(i={color:j1t.contrast(n),family:i.family,size:i.size,weight:i.weight,style:i.style,variant:i.variant,textcase:i.textcase,lineposition:i.lineposition,shadow:i.shadow}),zV(X1t,e.insidetextfont,t,i)}function Wye(e,t,r){var n=Hye(e,t,r);return zV(Z1t,e.outsidetextfont,t,n)}function zV(e,t,r,n){t=t||{};var i=ev.getValue(t.family,r),a=ev.getValue(t.size,r),o=ev.getValue(t.color,r),s=ev.getValue(t.weight,r),l=ev.getValue(t.style,r),u=ev.getValue(t.variant,r),c=ev.getValue(t.textcase,r),f=ev.getValue(t.lineposition,r),h=ev.getValue(t.shadow,r);return{family:ev.coerceString(e.family,i,n.family),size:ev.coerceNumber(e.size,a,n.size),color:ev.coerceColor(e.color,o,n.color),weight:ev.coerceString(e.weight,s,n.weight),style:ev.coerceString(e.style,l,n.style),variant:ev.coerceString(e.variant,u,n.variant),textcase:ev.coerceString(e.variant,c,n.textcase),lineposition:ev.coerceString(e.variant,f,n.lineposition),shadow:ev.coerceString(e.variant,h,n.shadow)}}function Xye(e,t){return t.type==="waterfall"?t[e.dir].marker.color:e.mcc||e.mc||t.marker.color}Zye.exports={style:Y1t,styleTextPoints:Vye,styleOnSelect:K1t,getInsideTextFont:jye,getOutsideTextFont:Wye,getBarColor:Xye,resizeText:Nye}});var p2=ye((xur,r1e)=>{"use strict";var KI=qa(),JI=Eo(),Fd=Pr(),Q1t=Zl(),e_t=ka(),I_=So(),t_t=Oa(),$I=ho().tickText,Yye=bv(),r_t=Yye.recordMinTextSize,i_t=Yye.clearMinTextSize,qV=V0(),IT=YI(),n_t=A_(),Kye=qm(),a_t=Kye.text,o_t=Kye.textposition,s_t=ip().appendArrayPointValue,Gv=n_t.TEXTPAD;function l_t(e){return e.id}function u_t(e){if(e.ids)return l_t}function OV(e){return(e>0)-(e<0)}function Om(e,t){return e<t?1:-1}function c_t(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),n?[i,a]:[a,i]}function Jye(e,t,r,n){if(!t.uniformtext.mode&&$ye(r)){var i;return n&&(i=n()),e.transition().duration(r.duration).ease(r.easing).each("end",function(){i&&i()}).each("interrupt",function(){i&&i()})}else return e}function $ye(e){return e&&e.duration>0}function f_t(e,t,r,n,i,a){var o=t.xaxis,s=t.yaxis,l=e._fullLayout,u=e._context.staticPlot;i||(i={mode:l.barmode,norm:l.barmode,gap:l.bargap,groupgap:l.bargroupgap},i_t("bar",l));var c=Fd.makeTraceGroups(n,r,"trace bars").each(function(f){var h=KI.select(this),d=f[0].trace,v=f[0].t,m=d.type==="waterfall",b=d.type==="funnel",p=d.type==="histogram",k=d.type==="bar",M=k||b,T=0;m&&d.connector.visible&&d.connector.mode==="between"&&(T=d.connector.line.width/2);var L=d.orientation==="h",x=$ye(i),C=Fd.ensureSingle(h,"g","points"),S=u_t(d),g=C.selectAll("g.point").data(Fd.identity,S);g.enter().append("g").classed("point",!0),g.exit().remove(),g.each(function(E,z){var q=KI.select(this),V=c_t(E,o,s,L),G=V[0][0],Z=V[0][1],j=V[1][0],N=V[1][1],H=(L?Z-G:N-j)===0;H&&M&&IT.getLineWidth(d,E)&&(H=!1),H||(H=!JI(G)||!JI(Z)||!JI(j)||!JI(N)),E.isBlank=H,H&&(L?Z=G:N=j),T&&!H&&(L?(G-=Om(G,Z)*T,Z+=Om(G,Z)*T):(j-=Om(j,N)*T,N+=Om(j,N)*T));var ie,ae;if(d.type==="waterfall"){if(!H){var _e=d[E.dir].marker;ie=_e.line.width,ae=_e.color}}else ie=IT.getLineWidth(d,E),ae=E.mc||d.marker.color;function Ee(Ae){var rt=KI.round(ie/2%1,2);return i.gap===0&&i.groupgap===0?KI.round(Math.round(Ae)-rt,2):Ae}function Ce(Ae,rt,St){return St&&Ae===rt?Ae:Math.abs(Ae-rt)>=2?Ee(Ae):Ae>rt?Math.ceil(Ae):Math.floor(Ae)}var ge=e_t.opacity(ae),re=ge<1||ie>.01?Ee:Ce;e._context.staticPlot||(G=re(G,Z,L),Z=re(Z,G,L),j=re(j,N,!L),N=re(N,j,!L));var Se=L?o.c2p:s.c2p,ke;E.s0>0?ke=E._sMax:E.s0<0?ke=E._sMin:ke=E.s1>0?E._sMax:E._sMin;function be(Ae,rt){if(!Ae)return 0;var St=Math.abs(L?N-j:Z-G),Tt=Math.abs(L?Z-G:N-j),dt=re(Math.abs(Se(ke,!0)-Se(0,!0))),Et=E.hasB?Math.min(St/2,Tt/2):Math.min(St/2,dt),pt;if(rt==="%"){var jt=Math.min(50,Ae);pt=St*(jt/100)}else pt=Ae;return re(Math.max(Math.min(pt,Et),0))}var Be=k||p?be(v.cornerradiusvalue,v.cornerradiusform):0,Le,me,Pe="M"+G+","+j+"V"+N+"H"+Z+"V"+j+"Z",ce=0;if(Be&&E.s){var He=OV(E.s0)===0||OV(E.s)===OV(E.s0)?E.s1:E.s0;if(ce=re(E.hasB?0:Math.abs(Se(ke,!0)-Se(He,!0))),ce<Be){var lt=Om(G,Z),mt=Om(j,N),Ht=lt===-mt?1:0;if(L)if(E.hasB)Le="M"+(G+Be*lt)+","+j+"A "+Be+","+Be+" 0 0 "+Ht+" "+G+","+(j+Be*mt)+"V"+(N-Be*mt)+"A "+Be+","+Be+" 0 0 "+Ht+" "+(G+Be*lt)+","+N+"H"+(Z-Be*lt)+"A "+Be+","+Be+" 0 0 "+Ht+" "+Z+","+(N-Be*mt)+"V"+(j+Be*mt)+"A "+Be+","+Be+" 0 0 "+Ht+" "+(Z-Be*lt)+","+j+"Z";else{me=Math.abs(Z-G)+ce;var at=me<Be?Be-Math.sqrt(me*(2*Be-me)):0,ct=ce>0?Math.sqrt(ce*(2*Be-ce)):0,ar=lt>0?Math.max:Math.min;Le="M"+G+","+j+"V"+(N-at*mt)+"H"+ar(Z-(Be-ce)*lt,G)+"A "+Be+","+Be+" 0 0 "+Ht+" "+Z+","+(N-Be*mt-ct)+"V"+(j+Be*mt+ct)+"A "+Be+","+Be+" 0 0 "+Ht+" "+ar(Z-(Be-ce)*lt,G)+","+(j+at*mt)+"Z"}else if(E.hasB)Le="M"+(G+Be*lt)+","+j+"A "+Be+","+Be+" 0 0 "+Ht+" "+G+","+(j+Be*mt)+"V"+(N-Be*mt)+"A "+Be+","+Be+" 0 0 "+Ht+" "+(G+Be*lt)+","+N+"H"+(Z-Be*lt)+"A "+Be+","+Be+" 0 0 "+Ht+" "+Z+","+(N-Be*mt)+"V"+(j+Be*mt)+"A "+Be+","+Be+" 0 0 "+Ht+" "+(Z-Be*lt)+","+j+"Z";else{me=Math.abs(N-j)+ce;var Vt=me<Be?Be-Math.sqrt(me*(2*Be-me)):0,rr=ce>0?Math.sqrt(ce*(2*Be-ce)):0,tt=mt>0?Math.max:Math.min;Le="M"+(G+Vt*lt)+","+j+"V"+tt(N-(Be-ce)*mt,j)+"A "+Be+","+Be+" 0 0 "+Ht+" "+(G+Be*lt-rr)+","+N+"H"+(Z-Be*lt+rr)+"A "+Be+","+Be+" 0 0 "+Ht+" "+(Z-Vt*lt)+","+tt(N-(Be-ce)*mt,j)+"V"+j+"Z"}}else Le=Pe}else Le=Pe;var je=Jye(Fd.ensureSingle(q,"path"),l,i,a);if(je.style("vector-effect",u?"none":"non-scaling-stroke").attr("d",isNaN((Z-G)*(N-j))||H&&e._context.staticPlot?"M0,0Z":Le).call(I_.setClipUrl,t.layerClipId,e),!l.uniformtext.mode&&x){var Ue=I_.makePointStyleFns(d);I_.singlePointStyle(E,je,d,Ue,e)}h_t(e,t,q,f,z,G,Z,j,N,Be,ce,i,a),t.layerClipId&&I_.hideOutsideRangePoint(E,q.select("text"),o,s,d.xcalendar,d.ycalendar)});var P=d.cliponaxis===!1;I_.setClipUrl(h,P?null:t.layerClipId,e)});t_t.getComponentMethod("errorbars","plot")(e,c,t,i)}function h_t(e,t,r,n,i,a,o,s,l,u,c,f,h){var d=t.xaxis,v=t.yaxis,m=e._fullLayout,b;function p(me,Pe,ce){var He=Fd.ensureSingle(me,"text").text(Pe).attr({class:"bartext bartext-"+b,"text-anchor":"middle","data-notex":1}).call(I_.font,ce).call(Q1t.convertToTspans,e);return He}var k=n[0].trace,M=k.orientation==="h",T=p_t(m,n,i,d,v);b=g_t(k,i);var L=f.mode==="stack"||f.mode==="relative",x=n[i],C=!L||x._outmost,S=x.hasB,g=u&&u-c>Gv;if(!T||b==="none"||(x.isBlank||a===o||s===l)&&(b==="auto"||b==="inside")){r.select("text").remove();return}var P=m.font,E=qV.getBarColor(n[i],k),z=qV.getInsideTextFont(k,i,P,E),q=qV.getOutsideTextFont(k,i,P),V=k.insidetextanchor||"end",G=r.datum();M?d.type==="log"&&G.s0<=0&&(d.range[0]<d.range[1]?a=0:a=d._length):v.type==="log"&&G.s0<=0&&(v.range[0]<v.range[1]?s=v._length:s=0);var Z=Math.abs(o-a),j=Math.abs(l-s),N=Z-2*Gv,H=j-2*Gv,ie,ae,_e,Ee,Ce;if(b==="outside"&&!C&&!x.hasB&&(b="inside"),b==="auto")if(C){b="inside",Ce=Fd.ensureUniformFontSize(e,z),ie=p(r,T,Ce),ae=I_.bBox(ie.node()),_e=ae.width,Ee=ae.height;var ge=_e>0&&Ee>0,re;g?S?re=v2(N-2*u,H,_e,Ee,M)||v2(N,H-2*u,_e,Ee,M):M?re=v2(N-(u-c),H,_e,Ee,M)||v2(N,H-2*(u-c),_e,Ee,M):re=v2(N,H-(u-c),_e,Ee,M)||v2(N-2*(u-c),H,_e,Ee,M):re=v2(N,H,_e,Ee,M),ge&&re?b="inside":(b="outside",ie.remove(),ie=null)}else b="inside";if(!ie){Ce=Fd.ensureUniformFontSize(e,b==="outside"?q:z),ie=p(r,T,Ce);var Se=ie.attr("transform");if(ie.attr("transform",""),ae=I_.bBox(ie.node()),_e=ae.width,Ee=ae.height,ie.attr("transform",Se),_e<=0||Ee<=0){ie.remove();return}}var ke=k.textangle,be,Be;b==="outside"?(Be=k.constraintext==="both"||k.constraintext==="outside",be=v_t(a,o,s,l,ae,{isHorizontal:M,constrained:Be,angle:ke})):(Be=k.constraintext==="both"||k.constraintext==="inside",be=t1e(a,o,s,l,ae,{isHorizontal:M,constrained:Be,angle:ke,anchor:V,hasB:S,r:u,overhead:c})),be.fontSize=Ce.size,r_t(k.type==="histogram"?"bar":k.type,be,m),x.transform=be;var Le=Jye(ie,m,f,h);Fd.setTransormAndDisplay(Le,be)}function v2(e,t,r,n,i){if(e<0||t<0)return!1;var a=r<=e&&n<=t,o=r<=t&&n<=e,s=i?e>=r*(t/n):t>=n*(e/r);return a||o||s}function Qye(e){return e==="auto"?0:e}function e1e(e,t){var r=Math.PI/180*t,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:e.width*i+e.height*n,y:e.width*n+e.height*i}}function t1e(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=a.anchor,c=u==="end",f=u==="start",h=a.leftToRight||0,d=(h+1)/2,v=1-d,m=a.hasB,b=a.r,p=a.overhead,k=i.width,M=i.height,T=Math.abs(t-e),L=Math.abs(n-r),x=T>2*Gv&&L>2*Gv?Gv:0;T-=2*x,L-=2*x;var C=Qye(l);l==="auto"&&!(k<=T&&M<=L)&&(k>T||M>L)&&(!(k>L||M>T)||k<M!=T<L)&&(C+=90);var S=e1e(i,C),g,P;if(b&&b-p>Gv){var E=d_t(e,t,r,n,S,b,p,o,m);g=E.scale,P=E.pad}else g=1,s&&(g=Math.min(1,T/S.x,L/S.y)),P=0;var z=i.left*v+i.right*d,q=(i.top+i.bottom)/2,V=(e+Gv)*v+(t-Gv)*d,G=(r+n)/2,Z=0,j=0;if(f||c){var N=(o?S.x:S.y)/2;b&&(c||m)&&(x+=P);var H=o?Om(e,t):Om(r,n);o?f?(V=e+H*x,Z=-H*N):(V=t-H*x,Z=H*N):f?(G=r+H*x,j=-H*N):(G=n-H*x,j=H*N)}return{textX:z,textY:q,targetX:V,targetY:G,anchorX:Z,anchorY:j,scale:g,rotate:C}}function d_t(e,t,r,n,i,a,o,s,l){var u=Math.max(0,Math.abs(t-e)-2*Gv),c=Math.max(0,Math.abs(n-r)-2*Gv),f=a-Gv,h=o?f-Math.sqrt(f*f-(f-o)*(f-o)):f,d=l?f*2:s?f-o:2*h,v=l?f*2:s?2*h:f-o,m,b,p,k,M;return i.y/i.x>=c/(u-d)?k=c/i.y:i.y/i.x<=(c-v)/u?k=u/i.x:!l&&s?(m=i.x*i.x+i.y*i.y/4,b=-2*i.x*(u-f)-i.y*(c/2-f),p=(u-f)*(u-f)+(c/2-f)*(c/2-f)-f*f,k=(-b+Math.sqrt(b*b-4*m*p))/(2*m)):l?(m=(i.x*i.x+i.y*i.y)/4,b=-i.x*(u/2-f)-i.y*(c/2-f),p=(u/2-f)*(u/2-f)+(c/2-f)*(c/2-f)-f*f,k=(-b+Math.sqrt(b*b-4*m*p))/(2*m)):(m=i.x*i.x/4+i.y*i.y,b=-i.x*(u/2-f)-2*i.y*(c-f),p=(u/2-f)*(u/2-f)+(c-f)*(c-f)-f*f,k=(-b+Math.sqrt(b*b-4*m*p))/(2*m)),k=Math.min(1,k),s?M=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(c-i.y*k)/2)*(f-(c-i.y*k)/2)))-o):M=Math.max(0,f-Math.sqrt(Math.max(0,f*f-(f-(u-i.x*k)/2)*(f-(u-i.x*k)/2)))-o),{scale:k,pad:M}}function v_t(e,t,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,u=i.width,c=i.height,f=Math.abs(t-e),h=Math.abs(n-r),d;o?d=h>2*Gv?Gv:0:d=f>2*Gv?Gv:0;var v=1;s&&(v=o?Math.min(1,h/c):Math.min(1,f/u));var m=Qye(l),b=e1e(i,m),p=(o?b.x:b.y)/2,k=(i.left+i.right)/2,M=(i.top+i.bottom)/2,T=(e+t)/2,L=(r+n)/2,x=0,C=0,S=o?Om(t,e):Om(r,n);return o?(T=t-S*d,x=S*p):(L=n+S*d,C=-S*p),{textX:k,textY:M,targetX:T,targetY:L,anchorX:x,anchorY:C,scale:v,rotate:m}}function p_t(e,t,r,n,i){var a=t[0].trace,o=a.texttemplate,s;return o?s=m_t(e,t,r,n,i):a.textinfo?s=y_t(t,r,n,i):s=IT.getValue(a.text,r),IT.coerceString(a_t,s)}function g_t(e,t){var r=IT.getValue(e.textposition,t);return IT.coerceEnumerated(o_t,r)}function m_t(e,t,r,n,i){var a=t[0].trace,o=Fd.castOption(a,r,"texttemplate");if(!o)return"";var s=a.type==="histogram",l=a.type==="waterfall",u=a.type==="funnel",c=a.orientation==="h",f,h,d,v;c?(f="y",h=i,d="x",v=n):(f="x",h=n,d="y",v=i);function m(x){return $I(h,h.c2l(x),!0).text}function b(x){return $I(v,v.c2l(x),!0).text}var p=t[r],k={};k.label=p.p,k.labelLabel=k[f+"Label"]=m(p.p);var M=Fd.castOption(a,p.i,"text");(M===0||M)&&(k.text=M),k.value=p.s,k.valueLabel=k[d+"Label"]=b(p.s);var T={};s_t(T,a,p.i),(s||T.x===void 0)&&(T.x=c?k.value:k.label),(s||T.y===void 0)&&(T.y=c?k.label:k.value),(s||T.xLabel===void 0)&&(T.xLabel=c?k.valueLabel:k.labelLabel),(s||T.yLabel===void 0)&&(T.yLabel=c?k.labelLabel:k.valueLabel),l&&(k.delta=+p.rawS||p.s,k.deltaLabel=b(k.delta),k.final=p.v,k.finalLabel=b(k.final),k.initial=k.final-k.delta,k.initialLabel=b(k.initial)),u&&(k.value=p.s,k.valueLabel=b(k.value),k.percentInitial=p.begR,k.percentInitialLabel=Fd.formatPercent(p.begR),k.percentPrevious=p.difR,k.percentPreviousLabel=Fd.formatPercent(p.difR),k.percentTotal=p.sumR,k.percenTotalLabel=Fd.formatPercent(p.sumR));var L=Fd.castOption(a,p.i,"customdata");return L&&(k.customdata=L),Fd.texttemplateString({data:[T,k,a._meta],fallback:a.texttemplatefallback,labels:k,locale:e._d3locale,template:o})}function y_t(e,t,r,n){var i=e[0].trace,a=i.orientation==="h",o=i.type==="waterfall",s=i.type==="funnel";function l(L){var x=a?n:r;return $I(x,L,!0).text}function u(L){var x=a?r:n;return $I(x,+L,!0).text}var c=i.textinfo,f=e[t],h=c.split("+"),d=[],v,m=function(L){return h.indexOf(L)!==-1};if(m("label")&&d.push(l(e[t].p)),m("text")&&(v=Fd.castOption(i,f.i,"text"),(v===0||v)&&d.push(v)),o){var b=+f.rawS||f.s,p=f.v,k=p-b;m("initial")&&d.push(u(k)),m("delta")&&d.push(u(b)),m("final")&&d.push(u(p))}if(s){m("value")&&d.push(u(f.s));var M=0;m("percent initial")&&M++,m("percent previous")&&M++,m("percent total")&&M++;var T=M>1;m("percent initial")&&(v=Fd.formatPercent(f.begR),T&&(v+=" of initial"),d.push(v)),m("percent previous")&&(v=Fd.formatPercent(f.difR),T&&(v+=" of previous"),d.push(v)),m("percent total")&&(v=Fd.formatPercent(f.sumR),T&&(v+=" of total"),d.push(v))}return d.join("<br>")}r1e.exports={plot:f_t,toMoveInsideBar:t1e}});var RT=ye((bur,o1e)=>{"use strict";var k4=ef(),__t=Oa(),i1e=ka(),x_t=Pr().fillText,b_t=YI().getLineWidth,BV=ho().hoverLabelText,w_t=fs().BADNUM;function T_t(e,t,r,n,i){var a=n1e(e,t,r,n,i);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=a1e(s,l),__t.getComponentMethod("errorbars","hoverInfo")(l,s,a),[a]}}function n1e(e,t,r,n,i){var a=e.cd,o=a[0].trace,s=a[0].t,l=n==="closest",u=o.type==="waterfall",c=e.maxHoverDistance,f=e.maxSpikeDistance,h,d,v,m,b,p,k;o.orientation==="h"?(h=r,d=t,v="y",m="x",b=G,p=z):(h=t,d=r,v="x",m="y",p=G,b=z);var M=o[v+"period"],T=l||M;function L(re){return C(re,-1)}function x(re){return C(re,1)}function C(re,Se){var ke=re.w;return re[v]+Se*ke/2}function S(re){return re[v+"End"]-re[v+"Start"]}var g=l?L:M?function(re){return re.p-S(re)/2}:function(re){return Math.min(L(re),re.p-s.bardelta/2)},P=l?x:M?function(re){return re.p+S(re)/2}:function(re){return Math.max(x(re),re.p+s.bardelta/2)};function E(re,Se,ke){return i.finiteRange&&(ke=0),k4.inbox(re-h,Se-h,ke+Math.min(1,Math.abs(Se-re)/k)-1)}function z(re){return E(g(re),P(re),c)}function q(re){return E(L(re),x(re),f)}function V(re){var Se=re[m];if(u){var ke=Math.abs(re.rawS)||0;d>0?Se+=ke:d<0&&(Se-=ke)}return Se}function G(re){var Se=d,ke=re.b,be=V(re);return k4.inbox(ke-Se,be-Se,c+(be-Se)/(be-ke)-1)}function Z(re){var Se=d,ke=re.b,be=V(re);return k4.inbox(ke-Se,be-Se,f+(be-Se)/(be-ke)-1)}var j=e[v+"a"],N=e[m+"a"];k=Math.abs(j.r2c(j.range[1])-j.r2c(j.range[0]));function H(re){return(b(re)+p(re))/2}var ie=k4.getDistanceFunction(n,b,p,H);if(k4.getClosest(a,ie,e),e.index!==!1&&a[e.index].p!==w_t){T||(g=function(re){return Math.min(L(re),re.p-s.bargroupwidth/2)},P=function(re){return Math.max(x(re),re.p+s.bargroupwidth/2)});var ae=e.index,_e=a[ae],Ee=o.base?_e.b+_e.s:_e.s;e[m+"0"]=e[m+"1"]=N.c2p(_e[m],!0),e[m+"LabelVal"]=Ee;var Ce=s.extents[s.extents.round(_e.p)];e[v+"0"]=j.c2p(l?g(_e):Ce[0],!0),e[v+"1"]=j.c2p(l?P(_e):Ce[1],!0);var ge=_e.orig_p!==void 0;return e[v+"LabelVal"]=ge?_e.orig_p:_e.p,e.labelLabel=BV(j,e[v+"LabelVal"],o[v+"hoverformat"]),e.valueLabel=BV(N,e[m+"LabelVal"],o[m+"hoverformat"]),e.baseLabel=BV(N,_e.b,o[m+"hoverformat"]),e.spikeDistance=(Z(_e)+q(_e))/2,e[v+"Spike"]=j.c2p(_e.p,!0),x_t(_e,o,e),e.hovertemplate=o.hovertemplate,e}}function a1e(e,t){var r=t.mcc||e.marker.color,n=t.mlcc||e.marker.line.color,i=b_t(e,t);if(i1e.opacity(r))return r;if(i1e.opacity(n)&&i)return n}o1e.exports={hoverPoints:T_t,hoverOnBars:n1e,getTraceColor:a1e}});var l1e=ye((wur,s1e)=>{"use strict";s1e.exports=function(t,r,n){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),n.orientation==="h"?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}});var DT=ye((Tur,u1e)=>{"use strict";u1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=n[0].trace,s=o.type==="funnel",l=o.orientation==="h",u=[],c;if(r===!1)for(c=0;c<n.length;c++)n[c].selected=0;else for(c=0;c<n.length;c++){var f=n[c],h="ct"in f?f.ct:A_t(f,i,a,l,s);r.contains(h,!1,c,t)?(u.push({pointNumber:c,x:i.c2d(f.x),y:a.c2d(f.y)}),f.selected=1):f.selected=0}return u};function A_t(e,t,r,n,i){var a=t.c2p(n?e.s0:e.p0,!0),o=t.c2p(n?e.s1:e.p1,!0),s=r.c2p(n?e.p0:e.s0,!0),l=r.c2p(n?e.p1:e.s1,!0);return i?[(a+o)/2,(s+l)/2]:n?[o,(s+l)/2]:[(a+o)/2,l]}});var f1e=ye((Aur,c1e)=>{"use strict";c1e.exports={attributes:qm(),layoutAttributes:WI(),supplyDefaults:i0().supplyDefaults,crossTraceDefaults:i0().crossTraceDefaults,supplyLayoutDefaults:DV(),calc:Dye(),crossTraceCalc:i2().crossTraceCalc,colorbar:Qd(),arraysToCalcdata:S4(),plot:p2().plot,style:V0().style,styleOnSelect:V0().styleOnSelect,hoverPoints:RT().hoverPoints,eventData:l1e(),selectPoints:DT(),moduleType:"trace",name:"bar",basePlotModule:mh(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}});var d1e=ye((Sur,h1e)=>{"use strict";h1e.exports=f1e()});var C4=ye((Mur,m1e)=>{"use strict";var S_t=Pg(),G0=pf(),v1e=qm(),M_t=Ih(),p1e=vf().axisHoverFormat,{hovertemplateAttrs:E_t,templatefallbackAttrs:k_t}=Ll(),Gy=Ao().extendFlat,FT=G0.marker,g1e=FT.line;m1e.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:G0.xperiod,yperiod:G0.yperiod,xperiod0:G0.xperiod0,yperiod0:G0.yperiod0,xperiodalignment:G0.xperiodalignment,yperiodalignment:G0.yperiodalignment,xhoverformat:p1e("x"),yhoverformat:p1e("y"),name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},sdmultiple:{valType:"number",min:0,editType:"calc",dflt:1},sizemode:{valType:"enumerated",values:["quartiles","sd"],editType:"calc",dflt:"quartiles"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:Gy({},FT.symbol,{arrayOk:!1,editType:"plot"}),opacity:Gy({},FT.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:Gy({},FT.angle,{arrayOk:!1,editType:"calc"}),size:Gy({},FT.size,{arrayOk:!1,editType:"calc"}),color:Gy({},FT.color,{arrayOk:!1,editType:"style"}),line:{color:Gy({},g1e.color,{arrayOk:!1,dflt:M_t.defaultLine,editType:"style"}),width:Gy({},g1e.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:S_t(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:v1e.offsetgroup,alignmentgroup:v1e.alignmentgroup,selected:{marker:G0.selected.marker,editType:"style"},unselected:{marker:G0.unselected.marker,editType:"style"},text:Gy({},G0.text,{}),hovertext:Gy({},G0.hovertext,{}),hovertemplate:E_t({}),hovertemplatefallback:k_t(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:G0.zorder}});var L4=ye((Eur,y1e)=>{"use strict";y1e.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}});var I4=ye((kur,w1e)=>{"use strict";var H0=Pr(),C_t=Oa(),L_t=ka(),P_t=Dg(),I_t=r2(),_1e=H3(),P4=C4();function R_t(e,t,r,n){function i(v,m){return H0.coerce(e,t,P4,v,m)}if(x1e(e,t,i,n),t.visible!==!1){P_t(e,t,n,i),i("xhoverformat"),i("yhoverformat");var a=t._hasPreCompStats;a&&(i("lowerfence"),i("upperfence")),i("line.color",(e.marker||{}).color||r),i("line.width"),i("fillcolor",L_t.addOpacity(t.line.color,.5));var o=!1;if(a){var s=i("mean"),l=i("sd");s&&s.length&&(o=!0,l&&l.length&&(o="sd"))}i("whiskerwidth");var u=i("sizemode"),c;u==="quartiles"&&(c=i("boxmean",o)),i("showwhiskers",u==="quartiles"),(u==="sd"||c==="sd")&&i("sdmultiple"),i("width"),i("quartilemethod");var f=!1;if(a){var h=i("notchspan");h&&h.length&&(f=!0)}else H0.validate(e.notchwidth,P4.notchwidth)&&(f=!0);var d=i("notched",f);d&&i("notchwidth"),b1e(e,t,i,{prefix:"box"}),i("zorder")}}function x1e(e,t,r,n){function i(P){var E=0;return P&&P.length&&(E+=1,H0.isArrayOrTypedArray(P[0])&&P[0].length&&(E+=1)),E}function a(P){return H0.validate(e[P],P4[P])}var o=r("y"),s=r("x"),l;if(t.type==="box"){var u=r("q1"),c=r("median"),f=r("q3");t._hasPreCompStats=u&&u.length&&c&&c.length&&f&&f.length,l=Math.min(H0.minRowLength(u),H0.minRowLength(c),H0.minRowLength(f))}else t._hasPreCompStats=!1;var h=i(o),d=i(s),v=h&&H0.minRowLength(o),m=d&&H0.minRowLength(s),b=n.calendar,p={autotypenumbers:n.autotypenumbers},k,M;if(t._hasPreCompStats)switch(String(d)+String(h)){case"00":var T=a("x0")||a("dx"),L=a("y0")||a("dy");L&&!T?k="h":k="v",M=l;break;case"10":k="v",M=Math.min(l,m);break;case"20":k="h",M=Math.min(l,s.length);break;case"01":k="h",M=Math.min(l,v);break;case"02":k="v",M=Math.min(l,o.length);break;case"12":k="v",M=Math.min(l,m,o.length);break;case"21":k="h",M=Math.min(l,s.length,v);break;case"11":M=0;break;case"22":var x=!1,C;for(C=0;C<s.length;C++)if(_1e(s[C],b,p)==="category"){x=!0;break}if(x)k="v",M=Math.min(l,m,o.length);else{for(C=0;C<o.length;C++)if(_1e(o[C],b,p)==="category"){x=!0;break}x?(k="h",M=Math.min(l,s.length,v)):(k="v",M=Math.min(l,m,o.length))}break}else h>0?(k="v",d>0?M=Math.min(m,v):M=Math.min(v)):d>0?(k="h",M=Math.min(m)):M=0;if(!M){t.visible=!1;return}t._length=M;var S=r("orientation",k);t._hasPreCompStats?S==="v"&&d===0?(r("x0",0),r("dx",1)):S==="h"&&h===0&&(r("y0",0),r("dy",1)):S==="v"&&d===0?r("x0"):S==="h"&&h===0&&r("y0");var g=C_t.getComponentMethod("calendars","handleTraceDefaults");g(e,t,["x","y"],n)}function b1e(e,t,r,n){var i=n.prefix,a=H0.coerce2(e,t,P4,"marker.outliercolor"),o=r("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(a||o)&&(s="suspectedoutliers");var l=r(i+"points",s);l?(r("jitter",l==="all"?.3:0),r("pointpos",l==="all"?-1.5:0),r("marker.symbol"),r("marker.opacity"),r("marker.size"),r("marker.angle"),r("marker.color",t.line.color),r("marker.line.color"),r("marker.line.width"),l==="suspectedoutliers"&&(r("marker.line.outliercolor",t.marker.color),r("marker.line.outlierwidth")),r("selected.marker.color"),r("unselected.marker.color"),r("selected.marker.size"),r("unselected.marker.size"),r("text"),r("hovertext")):delete t.marker;var u=r("hoveron");(u==="all"||u.indexOf("points")!==-1)&&(r("hovertemplate"),r("hovertemplatefallback")),H0.coerceSelectionMarkerOpacity(t,r)}function D_t(e,t){var r,n;function i(l){return H0.coerce(n._input,n,P4,l)}for(var a=0;a<e.length;a++){n=e[a];var o=n.type;if(o==="box"||o==="violin"){r=n._input;var s=t[o+"mode"];s==="group"&&I_t(r,n,t,i,s)}}}w1e.exports={supplyDefaults:R_t,crossTraceDefaults:D_t,handleSampleDefaults:x1e,handlePointsDefaults:b1e}});var QI=ye((Cur,A1e)=>{"use strict";var F_t=Oa(),z_t=Pr(),q_t=L4();function T1e(e,t,r,n,i){for(var a=i+"Layout",o=!1,s=0;s<r.length;s++){var l=r[s];if(F_t.traceIs(l,a)){o=!0;break}}o&&(n(i+"mode"),n(i+"gap"),n(i+"groupgap"))}function O_t(e,t,r){function n(i,a){return z_t.coerce(e,t,q_t,i,a)}T1e(e,t,r,n,"box")}A1e.exports={supplyLayoutDefaults:O_t,_supply:T1e}});var VV=ye((Lur,R1e)=>{"use strict";var UV=Eo(),e8=ho(),B_t=zg(),yh=Pr(),n0=fs().BADNUM,Hy=yh._;R1e.exports=function(t,r){var n=t._fullLayout,i=e8.getFromId(t,r.xaxis||"x"),a=e8.getFromId(t,r.yaxis||"y"),o=[],s=r.type==="violin"?"_numViolins":"_numBoxes",l,u,c,f,h,d,v;r.orientation==="h"?(c=i,f="x",h=a,d="y",v=!!r.yperiodalignment):(c=a,f="y",h=i,d="x",v=!!r.xperiodalignment);var m=N_t(r,d,h,n[s]),b=m[0],p=m[1],k=yh.distinctVals(b,h),M=k.vals,T=k.minDiff/2,L,x,C,S,g,P,E=(r.boxpoints||r.points)==="all"?yh.identity:function(Ht){return Ht.v<L.lf||Ht.v>L.uf};if(r._hasPreCompStats){var z=r[f],q=function(Ht){return c.d2c((r[Ht]||[])[l])},V=1/0,G=-1/0;for(l=0;l<r._length;l++){var Z=b[l];if(UV(Z)){if(L={},L.pos=L[d]=Z,v&&p&&(L.orig_p=p[l]),L.q1=q("q1"),L.med=q("median"),L.q3=q("q3"),x=[],z&&yh.isArrayOrTypedArray(z[l]))for(u=0;u<z[l].length;u++)P=c.d2c(z[l][u]),P!==n0&&(g={v:P,i:[l,u]},S1e(g,r,[l,u]),x.push(g));if(L.pts=x.sort(M1e),C=L[f]=x.map(E1e),S=C.length,L.med!==n0&&L.q1!==n0&&L.q3!==n0&&L.med>=L.q1&&L.q3>=L.med){var j=q("lowerfence");L.lf=j!==n0&&j<=L.q1?j:k1e(L,C,S);var N=q("upperfence");L.uf=N!==n0&&N>=L.q3?N:C1e(L,C,S);var H=q("mean");L.mean=H!==n0?H:S?yh.mean(C,S):(L.q1+L.q3)/2;var ie=q("sd");L.sd=H!==n0&&ie>=0?ie:S?yh.stdev(C,S,L.mean):L.q3-L.q1,L.lo=L1e(L),L.uo=P1e(L);var ae=q("notchspan");ae=ae!==n0&&ae>0?ae:I1e(L,S),L.ln=L.med-ae,L.un=L.med+ae;var _e=L.lf,Ee=L.uf;r.boxpoints&&C.length&&(_e=Math.min(_e,C[0]),Ee=Math.max(Ee,C[S-1])),r.notched&&(_e=Math.min(_e,L.ln),Ee=Math.max(Ee,L.un)),L.min=_e,L.max=Ee}else{yh.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+L.q1,"median = "+L.med,"q3 = "+L.q3].join(`
22`));var Ce;L.med!==n0?Ce=L.med:L.q1!==n0?L.q3!==n0?Ce=(L.q1+L.q3)/2:Ce=L.q1:L.q3!==n0?Ce=L.q3:Ce=0,L.med=Ce,L.q1=L.q3=Ce,L.lf=L.uf=Ce,L.mean=L.sd=Ce,L.ln=L.un=Ce,L.min=L.max=Ce}V=Math.min(V,L.min),G=Math.max(G,L.max),L.pts2=x.filter(E),o.push(L)}}r._extremes[c._id]=e8.findExtremes(c,[V,G],{padded:!0})}else{var ge=c.makeCalcdata(r,f),re=U_t(M,T),Se=M.length,ke=V_t(Se);for(l=0;l<r._length;l++)if(P=ge[l],!!UV(P)){var be=yh.findBin(b[l],re);be>=0&&be<Se&&(g={v:P,i:l},S1e(g,r,l),ke[be].push(g))}var Be=1/0,Le=-1/0,me=r.quartilemethod,Pe=me==="exclusive",ce=me==="inclusive";for(l=0;l<Se;l++)if(ke[l].length>0){if(L={},L.pos=L[d]=M[l],x=L.pts=ke[l].sort(M1e),C=L[f]=x.map(E1e),S=C.length,L.min=C[0],L.max=C[S-1],L.mean=yh.mean(C,S),L.sd=yh.stdev(C,S,L.mean)*r.sdmultiple,L.med=yh.interp(C,.5),S%2&&(Pe||ce)){var He,lt;Pe?(He=C.slice(0,S/2),lt=C.slice(S/2+1)):ce&&(He=C.slice(0,S/2+1),lt=C.slice(S/2)),L.q1=yh.interp(He,.5),L.q3=yh.interp(lt,.5)}else L.q1=yh.interp(C,.25),L.q3=yh.interp(C,.75);L.lf=k1e(L,C,S),L.uf=C1e(L,C,S),L.lo=L1e(L),L.uo=P1e(L);var mt=I1e(L,S);L.ln=L.med-mt,L.un=L.med+mt,Be=Math.min(Be,L.ln),Le=Math.max(Le,L.un),L.pts2=x.filter(E),o.push(L)}r.notched&&yh.isTypedArray(ge)&&(ge=Array.from(ge)),r._extremes[c._id]=e8.findExtremes(c,r.notched?ge.concat([Be,Le]):ge,{padded:!0})}return G_t(o,r),o.length>0?(o[0].t={num:n[s],dPos:T,posLetter:d,valLetter:f,labels:{med:Hy(t,"median:"),min:Hy(t,"min:"),q1:Hy(t,"q1:"),q3:Hy(t,"q3:"),max:Hy(t,"max:"),mean:r.boxmean==="sd"||r.sizemode==="sd"?Hy(t,"mean \xB1 \u03C3:").replace("\u03C3",r.sdmultiple===1?"\u03C3":r.sdmultiple+"\u03C3"):Hy(t,"mean:"),lf:Hy(t,"lower fence:"),uf:Hy(t,"upper fence:")}},n[s]++,o):[{t:{empty:!0}}]};function N_t(e,t,r,n){var i=t in e,a=t+"0"in e,o="d"+t in e;if(i||a&&o){var s=r.makeCalcdata(e,t),l=B_t(e,r,t,s).vals;return[l,s]}var u;a?u=e[t+"0"]:"name"in e&&(r.type==="category"||UV(e.name)&&["linear","log"].indexOf(r.type)!==-1||yh.isDateTime(e.name)&&r.type==="date")?u=e.name:u=n;for(var c=r.type==="multicategory"?r.r2c_just_indices(u):r.d2c(u,0,e[t+"calendar"]),f=e._length,h=new Array(f),d=0;d<f;d++)h[d]=c;return[h]}function U_t(e,t){for(var r=e.length,n=new Array(r+1),i=0;i<r;i++)n[i]=e[i]-t;return n[r]=e[r-1]+t,n}function V_t(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=[];return t}var NV={text:"tx",hovertext:"htx"};function S1e(e,t,r){for(var n in NV)yh.isArrayOrTypedArray(t[n])&&(Array.isArray(r)?yh.isArrayOrTypedArray(t[n][r[0]])&&(e[NV[n]]=t[n][r[0]][r[1]]):e[NV[n]]=t[n][r])}function G_t(e,t){if(yh.isArrayOrTypedArray(t.selectedpoints))for(var r=0;r<e.length;r++){for(var n=e[r].pts||[],i={},a=0;a<n.length;a++)i[n[a].i]=a;yh.tagSelected(n,t,i)}}function M1e(e,t){return e.v-t.v}function E1e(e){return e.v}function k1e(e,t,r){return r===0?e.q1:Math.min(e.q1,t[Math.min(yh.findBin(2.5*e.q1-1.5*e.q3,t,!0)+1,r-1)])}function C1e(e,t,r){return r===0?e.q3:Math.max(e.q3,t[Math.max(yh.findBin(2.5*e.q3-1.5*e.q1,t),0)])}function L1e(e){return 4*e.q1-3*e.q3}function P1e(e){return 4*e.q3-3*e.q1}function I1e(e,t){return t===0?0:1.57*(e.q3-e.q1)/Math.sqrt(t)}});var t8=ye((Pur,q1e)=>{"use strict";var D1e=ho(),H_t=Pr(),j_t=$b().getAxisGroup,F1e=["v","h"];function W_t(e,t){for(var r=e.calcdata,n=t.xaxis,i=t.yaxis,a=0;a<F1e.length;a++){for(var o=F1e[a],s=o==="h"?i:n,l=[],u=0;u<r.length;u++){var c=r[u],f=c[0].t,h=c[0].trace;h.visible===!0&&(h.type==="box"||h.type==="candlestick")&&!f.empty&&(h.orientation||"v")===o&&h.xaxis===n._id&&h.yaxis===i._id&&l.push(u)}z1e("box",e,l,s)}}function z1e(e,t,r,n){var i=t.calcdata,a=t._fullLayout,o=n._id,s=o.charAt(0),l,u,c,f=[],h=0;for(l=0;l<r.length;l++)for(c=i[r[l]],u=0;u<c.length;u++)f.push(n.c2l(c[u].pos,!0)),h+=(c[u].pts2||[]).length;if(f.length){var d=H_t.distinctVals(f);(n.type==="category"||n.type==="multicategory")&&(d.minDiff=1);var v=d.minDiff/2;D1e.minDtick(n,d.minDiff,d.vals[0],!0);var m=e==="violin"?"_numViolins":"_numBoxes",b=a[m],p=a[e+"mode"]==="group"&&b>1,k=1-a[e+"gap"],M=1-a[e+"groupgap"];for(l=0;l<r.length;l++){c=i[r[l]];var T=c[0].trace,L=c[0].t,x=T.width,C=T.side,S,g,P,E;if(x)S=g=E=x/2,P=0;else if(S=v,p){var z=j_t(a,n._id)+T.orientation,q=a._alignmentOpts[z]||{},V=q[T.alignmentgroup]||{},G=Object.keys(V.offsetGroups||{}).length,Z=G||b,j=G?T._offsetIndex:L.num;g=S*k*M/Z,P=2*S*(-.5+(j+.5)/Z)*k,E=S*k/Z}else g=S*k*M,P=0,E=S;L.dPos=S,L.bPos=P,L.bdPos=g,L.wHover=E;var N,H,ie=P+g,ae,_e,Ee,Ce,ge,re,Se=!!x,ke=(T.boxpoints||T.points)&&h>0;if(C==="positive"?(N=S*(x?1:.5),ae=ie,H=ae=P):C==="negative"?(N=ae=P,H=S*(x?1:.5),_e=ie):(N=H=S,ae=_e=ie),ke){var be=T.pointpos,Be=T.jitter,Le=T.marker.size/2,me=0;be+Be>=0&&(me=ie*(be+Be),me>N?(Se=!0,ge=Le,Ee=me):me>ae&&(ge=Le,Ee=N)),me<=N&&(Ee=N);var Pe=0;be-Be<=0&&(Pe=-ie*(be-Be),Pe>H?(Se=!0,re=Le,Ce=Pe):Pe>_e&&(re=Le,Ce=H)),Pe<=H&&(Ce=H)}else Ee=N,Ce=H;var ce=new Array(c.length);for(u=0;u<c.length;u++)ce[u]=c[u].pos;T._extremes[o]=D1e.findExtremes(n,ce,{padded:Se,vpadminus:Ce,vpadplus:Ee,vpadLinearized:!0,ppadminus:{x:re,y:ge}[s],ppadplus:{x:ge,y:re}[s]})}}}q1e.exports={crossTraceCalc:W_t,setPositionOffset:z1e}});var r8=ye((Iur,V1e)=>{"use strict";var zT=qa(),g2=Pr(),X_t=So(),O1e=5,Z_t=.01;function Y_t(e,t,r,n){var i=e._context.staticPlot,a=t.xaxis,o=t.yaxis;g2.makeTraceGroups(n,r,"trace boxes").each(function(s){var l=zT.select(this),u=s[0],c=u.t,f=u.trace;if(c.wdPos=c.bdPos*f.whiskerwidth,f.visible!==!0||c.empty){l.remove();return}var h,d;f.orientation==="h"?(h=o,d=a):(h=a,d=o),B1e(l,{pos:h,val:d},f,c,i),N1e(l,{x:a,y:o},f,c),U1e(l,{pos:h,val:d},f,c)})}function B1e(e,t,r,n,i){var a=r.orientation==="h",o=t.val,s=t.pos,l=!!s.rangebreaks,u=n.bPos,c=n.wdPos||0,f=n.bPosPxOffset||0,h=r.whiskerwidth||0,d=r.showwhiskers!==!1,v=r.notched||!1,m=v?1-2*r.notchwidth:1,b,p;Array.isArray(n.bdPos)?(b=n.bdPos[0],p=n.bdPos[1]):(b=n.bdPos,p=n.bdPos);var k=e.selectAll("path.box").data(r.type!=="violin"||r.box.visible?g2.identity:[]);k.enter().append("path").style("vector-effect",i?"none":"non-scaling-stroke").attr("class","box"),k.exit().remove(),k.each(function(M){if(M.empty)return zT.select(this).attr("d","M0,0Z");var T=s.c2l(M.pos+u,!0),L=s.l2p(T-b)+f,x=s.l2p(T+p)+f,C=l?(L+x)/2:s.l2p(T)+f,S=r.whiskerwidth,g=l?L*S+(1-S)*C:s.l2p(T-c)+f,P=l?x*S+(1-S)*C:s.l2p(T+c)+f,E=s.l2p(T-b*m)+f,z=s.l2p(T+p*m)+f,q=r.sizemode==="sd",V=o.c2p(q?M.mean-M.sd:M.q1,!0),G=q?o.c2p(M.mean+M.sd,!0):o.c2p(M.q3,!0),Z=g2.constrain(q?o.c2p(M.mean,!0):o.c2p(M.med,!0),Math.min(V,G)+1,Math.max(V,G)-1),j=M.lf===void 0||r.boxpoints===!1||q,N=o.c2p(j?M.min:M.lf,!0),H=o.c2p(j?M.max:M.uf,!0),ie=o.c2p(M.ln,!0),ae=o.c2p(M.un,!0);a?zT.select(this).attr("d","M"+Z+","+E+"V"+z+"M"+V+","+L+"V"+x+(v?"H"+ie+"L"+Z+","+z+"L"+ae+","+x:"")+"H"+G+"V"+L+(v?"H"+ae+"L"+Z+","+E+"L"+ie+","+L:"")+"Z"+(d?"M"+V+","+C+"H"+N+"M"+G+","+C+"H"+H+(h===0?"":"M"+N+","+g+"V"+P+"M"+H+","+g+"V"+P):"")):zT.select(this).attr("d","M"+E+","+Z+"H"+z+"M"+L+","+V+"H"+x+(v?"V"+ie+"L"+z+","+Z+"L"+x+","+ae:"")+"V"+G+"H"+L+(v?"V"+ae+"L"+E+","+Z+"L"+L+","+ie:"")+"Z"+(d?"M"+C+","+V+"V"+N+"M"+C+","+G+"V"+H+(h===0?"":"M"+g+","+N+"H"+P+"M"+g+","+H+"H"+P):""))})}function N1e(e,t,r,n){var i=t.x,a=t.y,o=n.bdPos,s=n.bPos,l=r.boxpoints||r.points;g2.seedPseudoRandom();var u=function(h){return h.forEach(function(d){d.t=n,d.trace=r}),h},c=e.selectAll("g.points").data(l?u:[]);c.enter().append("g").attr("class","points"),c.exit().remove();var f=c.selectAll("path").data(function(h){var d,v=h.pts2,m=Math.max((h.max-h.min)/10,h.q3-h.q1),b=m*1e-9,p=m*Z_t,k=[],M=0,T;if(r.jitter){if(m===0)for(M=1,k=new Array(v.length),d=0;d<v.length;d++)k[d]=1;else for(d=0;d<v.length;d++){var L=Math.max(0,d-O1e),x=v[L].v,C=Math.min(v.length-1,d+O1e),S=v[C].v;l!=="all"&&(v[d].v<h.lf?S=Math.min(S,h.lf):x=Math.max(x,h.uf));var g=Math.sqrt(p*(C-L)/(S-x+b))||0;g=g2.constrain(Math.abs(g),0,1),k.push(g),M=Math.max(g,M)}T=r.jitter*2/(M||1)}for(d=0;d<v.length;d++){var P=v[d],E=P.v,z=r.jitter?T*k[d]*(g2.pseudoRandom()-.5):0,q=h.pos+s+o*(r.pointpos+z);r.orientation==="h"?(P.y=q,P.x=E):(P.x=q,P.y=E),l==="suspectedoutliers"&&E<h.uo&&E>h.lo&&(P.so=!0)}return v});f.enter().append("path").classed("point",!0),f.exit().remove(),f.call(X_t.translatePoints,i,a)}function U1e(e,t,r,n){var i=t.val,a=t.pos,o=!!a.rangebreaks,s=n.bPos,l=n.bPosPxOffset||0,u=r.boxmean||(r.meanline||{}).visible,c,f;Array.isArray(n.bdPos)?(c=n.bdPos[0],f=n.bdPos[1]):(c=n.bdPos,f=n.bdPos);var h=e.selectAll("path.mean").data(r.type==="box"&&r.boxmean||r.type==="violin"&&r.box.visible&&r.meanline.visible?g2.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each(function(d){var v=a.c2l(d.pos+s,!0),m=a.l2p(v-c)+l,b=a.l2p(v+f)+l,p=o?(m+b)/2:a.l2p(v)+l,k=i.c2p(d.mean,!0),M=i.c2p(d.mean-d.sd,!0),T=i.c2p(d.mean+d.sd,!0);r.orientation==="h"?zT.select(this).attr("d","M"+k+","+m+"V"+b+(u==="sd"?"m0,0L"+M+","+p+"L"+k+","+m+"L"+T+","+p+"Z":"")):zT.select(this).attr("d","M"+m+","+k+"H"+b+(u==="sd"?"m0,0L"+p+","+M+"L"+m+","+k+"L"+p+","+T+"Z":""))})}V1e.exports={plot:Y_t,plotBoxAndWhiskers:B1e,plotPoints:N1e,plotBoxMean:U1e}});var i8=ye((Rur,G1e)=>{"use strict";var GV=qa(),HV=ka(),jV=So();function K_t(e,t,r){var n=r||GV.select(e).selectAll("g.trace.boxes");n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=GV.select(this),o=i[0].trace,s=o.line.width;function l(f,h,d,v){f.style("stroke-width",h+"px").call(HV.stroke,d).call(HV.fill,v)}var u=a.selectAll("path.box");if(o.type==="candlestick")u.each(function(f){if(!f.empty){var h=GV.select(this),d=o[f.dir];l(h,d.line.width,d.line.color,d.fillcolor),h.style("opacity",o.selectedpoints&&!f.selected?.3:1)}});else{l(u,s,o.line.color,o.fillcolor),a.selectAll("path.mean").style({"stroke-width":s,"stroke-dasharray":2*s+"px,"+s+"px"}).call(HV.stroke,o.line.color);var c=a.selectAll("path.point");jV.pointStyle(c,o,e)}})}function J_t(e,t,r){var n=t[0].trace,i=r.selectAll("path.point");n.selectedpoints?jV.selectedPointStyle(i,n):jV.pointStyle(i,n,e)}G1e.exports={style:K_t,styleOnSelect:J_t}});var XV=ye((Dur,X1e)=>{"use strict";var $_t=ho(),WV=Pr(),R_=ef(),H1e=ka(),Q_t=WV.fillText;function ext(e,t,r,n){var i=e.cd,a=i[0].trace,o=a.hoveron,s=[],l;return o.indexOf("boxes")!==-1&&(s=s.concat(j1e(e,t,r,n))),o.indexOf("points")!==-1&&(l=W1e(e,t,r)),n==="closest"?l?[l]:s:(l&&s.push(l),s)}function j1e(e,t,r,n){var i=e.cd,a=e.xa,o=e.ya,s=i[0].trace,l=i[0].t,u=s.type==="violin",c,f,h,d,v,m,b,p,k,M,T,L=l.bdPos,x,C,S=l.wHover,g=function(Le){return h.c2l(Le.pos)+l.bPos-h.c2l(m)};u&&s.side!=="both"?(s.side==="positive"&&(k=function(Le){var me=g(Le);return R_.inbox(me,me+S,M)},x=L,C=0),s.side==="negative"&&(k=function(Le){var me=g(Le);return R_.inbox(me-S,me,M)},x=0,C=L)):(k=function(Le){var me=g(Le);return R_.inbox(me-S,me+S,M)},x=C=L);var P;u?P=function(Le){return R_.inbox(Le.span[0]-v,Le.span[1]-v,M)}:P=function(Le){return R_.inbox(Le.min-v,Le.max-v,M)},s.orientation==="h"?(v=t,m=r,b=P,p=k,c="y",h=o,f="x",d=a):(v=r,m=t,b=k,p=P,c="x",h=a,f="y",d=o);var E=Math.min(1,L/Math.abs(h.r2c(h.range[1])-h.r2c(h.range[0])));M=e.maxHoverDistance-E,T=e.maxSpikeDistance-E;function z(Le){return(b(Le)+p(Le))/2}var q=R_.getDistanceFunction(n,b,p,z);if(R_.getClosest(i,q,e),e.index===!1)return[];var V=i[e.index],G=s.line.color,Z=(s.marker||{}).color;H1e.opacity(G)&&s.line.width?e.color=G:H1e.opacity(Z)&&s.boxpoints?e.color=Z:e.color=s.fillcolor,e[c+"0"]=h.c2p(V.pos+l.bPos-C,!0),e[c+"1"]=h.c2p(V.pos+l.bPos+x,!0),e[c+"LabelVal"]=V.orig_p!==void 0?V.orig_p:V.pos;var j=c+"Spike";e.spikeDistance=z(V)*T/M,e[j]=h.c2p(V.pos,!0);var N=s.boxmean||s.sizemode==="sd"||(s.meanline||{}).visible,H=s.boxpoints||s.points,ie=H&&N?["max","uf","q3","med","mean","q1","lf","min"]:H&&!N?["max","uf","q3","med","q1","lf","min"]:!H&&N?["max","q3","med","mean","q1","min"]:["max","q3","med","q1","min"],ae=d.range[1]<d.range[0];s.orientation===(ae?"v":"h")&&ie.reverse();for(var _e=e.spikeDistance,Ee=e[j],Ce=[],ge=0;ge<ie.length;ge++){var re=ie[ge];if(re in V){var Se=V[re],ke=d.c2p(Se,!0),be=WV.extendFlat({},e);be.attr=re,be[f+"0"]=be[f+"1"]=ke,be[f+"LabelVal"]=Se,be[f+"Label"]=(l.labels?l.labels[re]+" ":"")+$_t.hoverLabelText(d,Se,s[f+"hoverformat"]),be.hoverOnBox=!0,re==="mean"&&"sd"in V&&(s.boxmean==="sd"||s.sizemode==="sd")&&(be[f+"err"]=V.sd),be.hovertemplate=!1,Ce.push(be)}}e.name="",e.spikeDistance=void 0,e[j]=void 0;for(var Be=0;Be<Ce.length;Be++)Ce[Be].attr!=="med"?(Ce[Be].name="",Ce[Be].spikeDistance=void 0,Ce[Be][j]=void 0):(Ce[Be].spikeDistance=_e,Ce[Be][j]=Ee);return Ce}function W1e(e,t,r){for(var n=e.cd,i=e.xa,a=e.ya,o=n[0].trace,s=i.c2p(t),l=a.c2p(r),u,c=function(P){var E=Math.max(3,P.mrc||0);return Math.max(Math.abs(i.c2p(P.x)-s)-E,1-3/E)},f=function(P){var E=Math.max(3,P.mrc||0);return Math.max(Math.abs(a.c2p(P.y)-l)-E,1-3/E)},h=R_.quadrature(c,f),d=!1,v,m,b=0;b<n.length;b++){v=n[b];for(var p=0;p<(v.pts||[]).length;p++){m=v.pts[p];var k=h(m);k<=e.distance&&(e.distance=k,d=[b,p])}}if(!d)return!1;v=n[d[0]],m=v.pts[d[1]];var M=i.c2p(m.x,!0),T=a.c2p(m.y,!0),L=m.mrc||1;u=WV.extendFlat({},e,{index:m.i,color:(o.marker||{}).color,name:o.name,x0:M-L,x1:M+L,y0:T-L,y1:T+L,spikeDistance:e.distance,hovertemplate:o.hovertemplate});var x=v.orig_p,C=x!==void 0?x:v.pos,S;o.orientation==="h"?(S=a,u.xLabelVal=m.x,u.yLabelVal=C):(S=i,u.xLabelVal=C,u.yLabelVal=m.y);var g=S._id.charAt(0);return u[g+"Spike"]=S.c2p(v.pos,!0),Q_t(m,o,u),u}X1e.exports={hoverPoints:ext,hoverOnBoxes:j1e,hoverOnPoints:W1e}});var Y1e=ye((Fur,Z1e)=>{"use strict";Z1e.exports=function(t,r){return r.hoverOnBox&&(t.hoverOnBox=r.hoverOnBox),"xVal"in r&&(t.x=r.xVal),"yVal"in r&&(t.y=r.yVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var ZV=ye((zur,K1e)=>{"use strict";K1e.exports=function(t,r){var n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s,l;if(r===!1)for(s=0;s<n.length;s++)for(l=0;l<(n[s].pts||[]).length;l++)n[s].pts[l].selected=0;else for(s=0;s<n.length;s++)for(l=0;l<(n[s].pts||[]).length;l++){var u=n[s].pts[l],c=i.c2p(u.x),f=a.c2p(u.y);r.contains([c,f],null,u.i,t)?(o.push({pointNumber:u.i,x:i.c2d(u.x),y:a.c2d(u.y)}),u.selected=1):u.selected=0}return o}});var $1e=ye((qur,J1e)=>{"use strict";J1e.exports={attributes:C4(),layoutAttributes:L4(),supplyDefaults:I4().supplyDefaults,crossTraceDefaults:I4().crossTraceDefaults,supplyLayoutDefaults:QI().supplyLayoutDefaults,calc:VV(),crossTraceCalc:t8().crossTraceCalc,plot:r8().plot,style:i8().style,styleOnSelect:i8().styleOnSelect,hoverPoints:XV().hoverPoints,eventData:Y1e(),selectPoints:ZV(),moduleType:"trace",name:"box",basePlotModule:mh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}});var e_e=ye((Our,Q1e)=>{"use strict";Q1e.exports=$1e()});var qT=ye((Bur,r_e)=>{"use strict";var txt=Tu(),{extendFlat:Pp}=Ao(),rxt=Gl(),{axisHoverFormat:YV}=vf(),ixt=ec(),{hovertemplateAttrs:nxt,templatefallbackAttrs:t_e,texttemplateAttrs:axt}=Ll(),a0=pf();r_e.exports=Pp({z:{valType:"data_array",editType:"calc"},x:Pp({},a0.x,{impliedEdits:{xtype:"array"}}),x0:Pp({},a0.x0,{impliedEdits:{xtype:"scaled"}}),dx:Pp({},a0.dx,{impliedEdits:{xtype:"scaled"}}),y:Pp({},a0.y,{impliedEdits:{ytype:"array"}}),y0:Pp({},a0.y0,{impliedEdits:{ytype:"scaled"}}),dy:Pp({},a0.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:Pp({},a0.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:Pp({},a0.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:Pp({},a0.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:Pp({},a0.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:Pp({},a0.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:Pp({},a0.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},xhoverformat:YV("x"),yhoverformat:YV("y"),zhoverformat:YV("z",1),hovertemplate:nxt(),hovertemplatefallback:t_e(),texttemplate:axt({arrayOk:!1,editType:"plot"},{keys:["x","y","z","text"]}),texttemplatefallback:t_e({editType:"plot"}),textfont:ixt({editType:"plot",autoSize:!0,autoColor:!0,colorEditType:"style"}),showlegend:Pp({},rxt.showlegend,{dflt:!1}),zorder:a0.zorder},txt("",{cLetter:"z",autoColorDflt:!1}))});var a8=ye((Nur,n_e)=>{"use strict";var oxt=Eo(),n8=Pr(),sxt=Oa();n_e.exports=function(t,r,n,i,a,o){var s=n("z");a=a||"x",o=o||"y";var l,u;if(s===void 0||!s.length)return 0;if(n8.isArray1D(s)){l=n(a),u=n(o);var c=n8.minRowLength(l),f=n8.minRowLength(u);if(c===0||f===0)return 0;r._length=Math.min(c,f,s.length)}else{if(l=i_e(a,n),u=i_e(o,n),!lxt(s))return 0;n("transpose"),r._length=null}var h=sxt.getComponentMethod("calendars","handleTraceDefaults");return h(t,r,[a,o],i),!0};function i_e(e,t){var r=t(e),n=r?t(e+"type","array"):"scaled";return n==="scaled"&&(t(e+"0"),t("d"+e)),r}function lxt(e){for(var t=!0,r=!1,n=!1,i,a=0;a<e.length;a++){if(i=e[a],!n8.isArrayOrTypedArray(i)){t=!1;break}i.length>0&&(r=!0);for(var o=0;o<i.length;o++)if(oxt(i[o])){n=!0;break}}return t&&r&&n}});var R4=ye((Uur,o_e)=>{"use strict";var a_e=Pr();o_e.exports=function(t,r){t("texttemplate"),t("texttemplatefallback");var n=a_e.extendFlat({},r.font,{color:"auto",size:"auto"});a_e.coerceFont(t,"textfont",n)}});var KV=ye((Vur,s_e)=>{"use strict";s_e.exports=function(t,r,n){var i=n("zsmooth");i===!1&&(n("xgap"),n("ygap")),n("zhoverformat")}});var c_e=ye((Gur,u_e)=>{"use strict";var l_e=Pr(),uxt=a8(),cxt=R4(),fxt=Dg(),hxt=KV(),dxt=td(),vxt=qT();u_e.exports=function(t,r,n,i){function a(s,l){return l_e.coerce(t,r,vxt,s,l)}var o=uxt(t,r,a,i);if(!o){r.visible=!1;return}fxt(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),cxt(a,i),hxt(t,r,a,i),a("hoverongaps"),a("connectgaps",l_e.isArray1D(r.z)&&r.zsmooth!==!1),dxt(t,r,i,a,{prefix:"",cLetter:"z"}),a("zorder")}});var JV=ye((Hur,f_e)=>{"use strict";var OT=Eo();f_e.exports={count:function(e,t,r){return r[e]++,1},sum:function(e,t,r,n){var i=n[t];return OT(i)?(i=Number(i),r[e]+=i,i):0},avg:function(e,t,r,n,i){var a=n[t];return OT(a)&&(a=Number(a),r[e]+=a,i[e]++),0},min:function(e,t,r,n){var i=n[t];if(OT(i))if(i=Number(i),OT(r[e])){if(r[e]>i){var a=i-r[e];return r[e]=i,a}}else return r[e]=i,i;return 0},max:function(e,t,r,n){var i=n[t];if(OT(i))if(i=Number(i),OT(r[e])){if(r[e]<i){var a=i-r[e];return r[e]=i,a}}else return r[e]=i,i;return 0}}});var $V=ye((jur,h_e)=>{"use strict";h_e.exports={percent:function(e,t){for(var r=e.length,n=100/t,i=0;i<r;i++)e[i]*=n},probability:function(e,t){for(var r=e.length,n=0;n<r;n++)e[n]/=t},density:function(e,t,r,n){var i=e.length;n=n||1;for(var a=0;a<i;a++)e[a]*=r[a]*n},"probability density":function(e,t,r,n){var i=e.length;n&&(t/=n);for(var a=0;a<i;a++)e[a]*=r[a]/t}}});var QV=ye((Wur,d_e)=>{"use strict";d_e.exports=function(t,r){for(var n=t.length,i=0,a=0;a<n;a++)r[a]?(t[a]/=r[a],i+=t[a]):t[a]=null;return i}});var eG=ye((Xur,b_e)=>{"use strict";var BT=fs(),m2=BT.ONEAVGYEAR,v_e=BT.ONEAVGMONTH,s8=BT.ONEDAY,p_e=BT.ONEHOUR,g_e=BT.ONEMIN,m_e=BT.ONESEC,y_e=ho().tickIncrement;b_e.exports=function(t,r,n,i,a){var o=-1.1*r,s=-.1*r,l=t-s,u=n[0],c=n[1],f=Math.min(o8(u+s,u+l,i,a),o8(c+s,c+l,i,a)),h=Math.min(o8(u+o,u+s,i,a),o8(c+o,c+s,i,a)),d,v;if(f>h&&h<Math.abs(c-u)/4e3?(d=f,v=!1):(d=Math.min(f,h),v=!0),i.type==="date"&&d>s8){var m=d===m2?1:6,b=d===m2?"M12":"M1";return function(p,k){var M=i.c2d(p,m2,a),T=M.indexOf("-",m);T>0&&(M=M.slice(0,T));var L=i.d2c(M,0,a);if(L<p){var x=y_e(L,b,!1,a);(L+x)/2<p+t&&(L=x)}return k&&v?y_e(L,b,!0,a):L}}return function(p,k){var M=d*Math.round(p/d);return M+d/10<p&&M+d*.9<p+t&&(M+=d),k&&v&&(M-=d),M}};function o8(e,t,r,n){if(e*t<=0)return 1/0;for(var i=Math.abs(t-e),a=r.type==="date",o=__e(i,a),s=0;s<10;s++){var l=__e(o*80,a);if(o===l)break;if(pxt(l,e,t,a,r,n))o=l;else break}return o}function __e(e,t){return t&&e>m_e?e>s8?e>m2*1.1?m2:e>v_e*1.1?v_e:s8:e>p_e?p_e:e>g_e?g_e:m_e:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function pxt(e,t,r,n,i,a){if(n&&e>s8){var o=x_e(t,i,a),s=x_e(r,i,a),l=e===m2?0:1;return o[l]!==s[l]}return Math.floor(r/e)-Math.floor(t/e)>.1}function x_e(e,t,r){var n=t.c2d(e,m2,r).split("-");return n[0]===""&&(n.unshift(),n[0]="-"+n[0]),n}});var iG=ye((Zur,M_e)=>{"use strict";var tG=Eo(),Hv=Pr(),w_e=Oa(),j0=ho(),{hasColorscale:T_e}=pv(),A_e=gv(),gxt=S4(),S_e=JV(),mxt=$V(),yxt=QV(),_xt=eG();function xxt(e,t){var r=[],n=[],i=t.orientation==="h",a=j0.getFromId(e,i?t.yaxis:t.xaxis),o=i?"y":"x",s={x:"y",y:"x"}[o],l=t[o+"calendar"],u=t.cumulative,c,f=rG(e,t,a,o),h=f[0],d=f[1],v=typeof h.size=="string",m=[],b=v?m:h,p=[],k=[],M=[],T=0,L=t.histnorm,x=t.histfunc,C=L.indexOf("density")!==-1,S,g,P;u.enabled&&C&&(L=L.replace(/ ?density$/,""),C=!1);var E=x==="max"||x==="min",z=E?null:0,q=S_e.count,V=mxt[L],G=!1,Z=function(me){return a.r2c(me,0,l)},j;for(Hv.isArrayOrTypedArray(t[s])&&x!=="count"&&(j=t[s],G=x==="avg",q=S_e[x]),c=Z(h.start),g=Z(h.end)+(c-j0.tickIncrement(c,h.size,!1,l))/1e6;c<g&&r.length<1e6&&(S=j0.tickIncrement(c,h.size,!1,l),r.push((c+S)/2),n.push(z),M.push([]),m.push(c),C&&p.push(1/(S-c)),G&&k.push(0),!(S<=c));)c=S;m.push(c),!v&&a.type==="date"&&(b={start:Z(b.start),end:Z(b.end),size:b.size}),e._fullLayout._roundFnOpts||(e._fullLayout._roundFnOpts={});var N=t["_"+o+"bingroup"],H={leftGap:1/0,rightGap:1/0};N&&(e._fullLayout._roundFnOpts[N]||(e._fullLayout._roundFnOpts[N]=H),H=e._fullLayout._roundFnOpts[N]);var ie=n.length,ae=!0,_e=H.leftGap,Ee=H.rightGap,Ce={};for(c=0;c<d.length;c++){var ge=d[c];P=Hv.findBin(ge,b),P>=0&&P<ie&&(T+=q(P,c,n,j,k),ae&&M[P].length&&ge!==d[M[P][0]]&&(ae=!1),M[P].push(c),Ce[c]=P,_e=Math.min(_e,ge-m[P]),Ee=Math.min(Ee,m[P+1]-ge))}H.leftGap=_e,H.rightGap=Ee;var re;ae||(re=function(me,Pe){return function(){var ce=e._fullLayout._roundFnOpts[N];return _xt(ce.leftGap,ce.rightGap,m,a,l)(me,Pe)}}),G&&(T=yxt(n,k)),V&&V(n,T,p),u.enabled&&Txt(n,u.direction,u.currentbin);var Se=Math.min(r.length,n.length),ke=[],be=0,Be=Se-1;for(c=0;c<Se;c++)if(n[c]){be=c;break}for(c=Se-1;c>=be;c--)if(n[c]){Be=c;break}for(c=be;c<=Be;c++)if(tG(r[c])&&tG(n[c])){var Le={p:r[c],s:n[c],b:0};u.enabled||(Le.pts=M[c],ae?Le.ph0=Le.ph1=M[c].length?d[M[c][0]]:r[c]:(t._computePh=!0,Le.ph0=re(m[c]),Le.ph1=re(m[c+1],!0))),ke.push(Le)}return ke.length===1&&(ke[0].width1=j0.tickIncrement(ke[0].p,h.size,!1,l)-ke[0].p),T_e(t,"marker")&&A_e(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),T_e(t,"marker.line")&&A_e(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),gxt(ke,t),Hv.isArrayOrTypedArray(t.selectedpoints)&&Hv.tagSelected(ke,t,Ce),ke}function rG(e,t,r,n,i){var a=n+"bins",o=e._fullLayout,s=t["_"+n+"bingroup"],l=o._histogramBinOpts[s],u=o.barmode==="overlay",c,f,h,d,v,m,b,p=function(ge){return r.r2c(ge,0,d)},k=function(ge){return r.c2r(ge,0,d)},M=r.type==="date"?function(ge){return ge||ge===0?Hv.cleanDate(ge,null,d):null}:function(ge){return tG(ge)?Number(ge):null};function T(ge,re,Se){re[ge+"Found"]?(re[ge]=M(re[ge]),re[ge]===null&&(re[ge]=Se[ge])):(m[ge]=re[ge]=Se[ge],Hv.nestedProperty(f[0],a+"."+ge).set(Se[ge]))}if(t["_"+n+"autoBinFinished"])delete t["_"+n+"autoBinFinished"];else{f=l.traces;var L=[],x=!0,C=!1,S=!1;for(c=0;c<f.length;c++)if(h=f[c],h.visible){var g=l.dirs[c];v=h["_"+g+"pos0"]=r.makeCalcdata(h,g),L=Hv.concat(L,v),delete h["_"+n+"autoBinFinished"],t.visible===!0&&(x?x=!1:(delete h._autoBin,h["_"+n+"autoBinFinished"]=1),w_e.traceIs(h,"2dMap")&&(C=!0),h.type==="histogram2dcontour"&&(S=!0))}d=f[0][n+"calendar"];var P=j0.autoBin(L,r,l.nbins,C,d,l.sizeFound&&l.size),E=f[0]._autoBin={};if(m=E[l.dirs[0]]={},S&&(l.size||(P.start=k(j0.tickIncrement(p(P.start),P.size,!0,d))),l.end===void 0&&(P.end=k(j0.tickIncrement(p(P.end),P.size,!1,d)))),u&&!w_e.traceIs(t,"2dMap")&&P._dataSpan===0&&r.type!=="category"&&r.type!=="multicategory"&&t.bingroup===""&&typeof t.xbins=="undefined"){if(i)return[P,v,!0];P=bxt(e,t,r,n,a)}b=h.cumulative||{},b.enabled&&b.currentbin!=="include"&&(b.direction==="decreasing"?P.start=k(j0.tickIncrement(p(P.start),P.size,!0,d)):P.end=k(j0.tickIncrement(p(P.end),P.size,!1,d))),l.size=P.size,l.sizeFound||(m.size=P.size,Hv.nestedProperty(f[0],a+".size").set(P.size)),T("start",l,P),T("end",l,P)}v=t["_"+n+"pos0"],delete t["_"+n+"pos0"];var z=t._input[a]||{},q=Hv.extendFlat({},l),V=l.start,G=r.r2l(z.start),Z=G!==void 0;if((l.startFound||Z)&&G!==r.r2l(V)){var j=Z?G:Hv.aggNums(Math.min,null,v),N={type:r.type==="category"||r.type==="multicategory"?"linear":r.type,r2l:r.r2l,dtick:l.size,tick0:V,calendar:d,range:[j,j0.tickIncrement(j,l.size,!1,d)].map(r.l2r)},H=j0.tickFirst(N);H>r.r2l(j)&&(H=j0.tickIncrement(H,l.size,!0,d)),q.start=r.l2r(H),Z||Hv.nestedProperty(t,a+".start").set(q.start)}var ie=l.end,ae=r.r2l(z.end),_e=ae!==void 0;if((l.endFound||_e)&&ae!==r.r2l(ie)){var Ee=_e?ae:Hv.aggNums(Math.max,null,v);q.end=r.l2r(Ee),_e||Hv.nestedProperty(t,a+".start").set(q.end)}var Ce="autobin"+n;return t._input[Ce]===!1&&(t._input[a]=Hv.extendFlat({},t[a]||{}),delete t._input[Ce],delete t[Ce]),[q,v]}function bxt(e,t,r,n,i){var a=e._fullLayout,o=wxt(e,t),s=!1,l=1/0,u=[t],c,f,h;for(c=0;c<o.length;c++)if(f=o[c],f===t)s=!0;else if(!s)h=a._histogramBinOpts[f["_"+n+"bingroup"]],l=Math.min(l,h.size||f[i].size);else{var d=rG(e,f,r,n,!0),v=d[0],m=d[2];f["_"+n+"autoBinFinished"]=1,f["_"+n+"pos0"]=d[1],m?u.push(f):l=Math.min(l,v.size)}var b=new Array(u.length);for(c=0;c<u.length;c++)for(var p=u[c]["_"+n+"pos0"],k=0;k<p.length;k++)if(p[k]!==void 0){b[c]=p[k];break}for(isFinite(l)||(l=Hv.distinctVals(b).minDiff),c=0;c<u.length;c++){f=u[c];var M=f[n+"calendar"],T={start:r.c2r(b[c]-l/2,0,M),end:r.c2r(b[c]+l/2,0,M),size:l};f._input[i]=f[i]=T,h=a._histogramBinOpts[f["_"+n+"bingroup"]],h&&Hv.extendFlat(h,T)}return t[i]}function wxt(e,t){for(var r=t.xaxis,n=t.yaxis,i=t.orientation,a=[],o=e._fullData,s=0;s<o.length;s++){var l=o[s];l.type==="histogram"&&l.visible===!0&&l.orientation===i&&l.xaxis===r&&l.yaxis===n&&a.push(l)}return a}function Txt(e,t,r){var n,i,a;function o(l){a=e[l],e[l]/=2}function s(l){i=e[l],e[l]=a+i/2,a+=i}if(r==="half")if(t==="increasing")for(o(0),n=1;n<e.length;n++)s(n);else for(o(e.length-1),n=e.length-2;n>=0;n--)s(n);else if(t==="increasing"){for(n=1;n<e.length;n++)e[n]+=e[n-1];r==="exclude"&&(e.unshift(0),e.pop())}else{for(n=e.length-2;n>=0;n--)e[n]+=e[n+1];r==="exclude"&&(e.push(0),e.shift())}}M_e.exports={calc:xxt,calcAllAutoBins:rG}});var D_e=ye((Yur,R_e)=>{"use strict";var E_e=Pr(),NT=ho(),k_e=JV(),Axt=$V(),Sxt=QV(),Mxt=eG(),C_e=iG().calcAllAutoBins;R_e.exports=function(t,r){var n=NT.getFromId(t,r.xaxis),i=NT.getFromId(t,r.yaxis),a=r.xcalendar,o=r.ycalendar,s=function(Et){return n.r2c(Et,0,a)},l=function(Et){return i.r2c(Et,0,o)},u=function(Et){return n.c2r(Et,0,a)},c=function(Et){return i.c2r(Et,0,o)},f,h,d,v,m=C_e(t,r,n,"x"),b=m[0],p=m[1],k=C_e(t,r,i,"y"),M=k[0],T=k[1],L=r._length;p.length>L&&p.splice(L,p.length-L),T.length>L&&T.splice(L,T.length-L);var x=[],C=[],S=[],g=typeof b.size=="string",P=typeof M.size=="string",E=[],z=[],q=g?E:b,V=P?z:M,G=0,Z=[],j=[],N=r.histnorm,H=r.histfunc,ie=N.indexOf("density")!==-1,ae=H==="max"||H==="min",_e=ae?null:0,Ee=k_e.count,Ce=Axt[N],ge=!1,re=[],Se=[],ke="z"in r?r.z:"marker"in r&&Array.isArray(r.marker.color)?r.marker.color:"";ke&&H!=="count"&&(ge=H==="avg",Ee=k_e[H]);var be=b.size,Be=s(b.start),Le=s(b.end)+(Be-NT.tickIncrement(Be,be,!1,a))/1e6;for(f=Be;f<Le;f=NT.tickIncrement(f,be,!1,a))C.push(_e),E.push(f),ge&&S.push(0);E.push(f);var me=C.length,Pe=(f-Be)/me,ce=u(Be+Pe/2),He=M.size,lt=l(M.start),mt=l(M.end)+(lt-NT.tickIncrement(lt,He,!1,o))/1e6;for(f=lt;f<mt;f=NT.tickIncrement(f,He,!1,o)){x.push(C.slice()),z.push(f);var Ht=new Array(me);for(h=0;h<me;h++)Ht[h]=[];j.push(Ht),ge&&Z.push(S.slice())}z.push(f);var at=x.length,ct=(f-lt)/at,ar=c(lt+ct/2);ie&&(re=L_e(C.length,q,Pe,g),Se=L_e(x.length,V,ct,P)),!g&&n.type==="date"&&(q=P_e(s,q)),!P&&i.type==="date"&&(V=P_e(l,V));var Vt=!0,rr=!0,tt=new Array(me),je=new Array(at),Ue=1/0,Ae=1/0,rt=1/0,St=1/0;for(f=0;f<L;f++){var Tt=p[f],dt=T[f];d=E_e.findBin(Tt,q),v=E_e.findBin(dt,V),d>=0&&d<me&&v>=0&&v<at&&(G+=Ee(d,f,x[v],ke,Z[v]),j[v][d].push(f),Vt&&(tt[d]===void 0?tt[d]=Tt:tt[d]!==Tt&&(Vt=!1)),rr&&(je[v]===void 0?je[v]=dt:je[v]!==dt&&(rr=!1)),Ue=Math.min(Ue,Tt-E[d]),Ae=Math.min(Ae,E[d+1]-Tt),rt=Math.min(rt,dt-z[v]),St=Math.min(St,z[v+1]-dt))}if(ge)for(v=0;v<at;v++)G+=Sxt(x[v],Z[v]);if(Ce)for(v=0;v<at;v++)Ce(x[v],G,re,Se[v]);return{x:p,xRanges:I_e(E,Vt&&tt,Ue,Ae,n,a),x0:ce,dx:Pe,y:T,yRanges:I_e(z,rr&&je,rt,St,i,o),y0:ar,dy:ct,z:x,pts:j}};function L_e(e,t,r,n){var i=new Array(e),a;if(n)for(a=0;a<e;a++)i[a]=1/(t[a+1]-t[a]);else{var o=1/r;for(a=0;a<e;a++)i[a]=o}return i}function P_e(e,t){return{start:e(t.start),end:e(t.end),size:t.size}}function I_e(e,t,r,n,i,a){var o,s=e.length-1,l=new Array(s),u=Mxt(r,n,e,i,a);for(o=0;o<s;o++){var c=(t||[])[o];l[o]=c===void 0?[u(e[o]),u(e[o+1],!0)]:[c,c]}return l}});var l8=ye((Kur,q_e)=>{"use strict";var Bm=Pr(),F_e=fs().BADNUM,z_e=zg();q_e.exports=function(t,r,n,i,a,o){var s=t._length,l=r.makeCalcdata(t,i),u=n.makeCalcdata(t,a);l=z_e(t,r,i,l).vals,u=z_e(t,n,a,u).vals;var c=t.text,f=c!==void 0&&Bm.isArray1D(c),h=t.hovertext,d=h!==void 0&&Bm.isArray1D(h),v,m,b=Bm.distinctVals(l),p=b.vals,k=Bm.distinctVals(u),M=k.vals,T=[],L,x,C=M.length,S=p.length;for(v=0;v<o.length;v++)T[v]=Bm.init2dArray(C,S);f&&(L=Bm.init2dArray(C,S)),d&&(x=Bm.init2dArray(C,S));var g=Bm.init2dArray(C,S);for(v=0;v<s;v++)if(l[v]!==F_e&&u[v]!==F_e){var P=Bm.findBin(l[v]+b.minDiff/2,p),E=Bm.findBin(u[v]+k.minDiff/2,M);for(m=0;m<o.length;m++){var z=o[m],q=t[z],V=T[m];V[E][P]=q[v],g[E][P]=v}f&&(L[E][P]=c[v]),d&&(x[E][P]=h[v])}for(t["_"+i]=p,t["_"+a]=M,m=0;m<o.length;m++)t["_"+o[m]]=T[m];f&&(t._text=L),d&&(t._hovertext=x),r&&r.type==="category"&&(t["_"+i+"CategoryMap"]=p.map(function(G){return r._categories[G]})),n&&n.type==="category"&&(t["_"+a+"CategoryMap"]=M.map(function(G){return n._categories[G]})),t._after2before=g}});var c8=ye((Jur,O_e)=>{"use strict";var Ext=Eo(),kxt=Pr(),u8=fs().BADNUM;O_e.exports=function(t,r,n,i){var a,o,s,l,u,c;function f(p){if(Ext(p))return+p}if(r&&r.transpose){for(a=0,u=0;u<t.length;u++)a=Math.max(a,t[u].length);if(a===0)return!1;s=function(p){return p.length},l=function(p,k,M){return(p[M]||[])[k]}}else a=t.length,s=function(p,k){return p[k].length},l=function(p,k,M){return(p[k]||[])[M]};var h=function(p,k,M){return k===u8||M===u8?u8:l(p,k,M)};function d(p){if(r&&r.type!=="carpet"&&r.type!=="contourcarpet"&&p&&p.type==="category"&&r["_"+p._id.charAt(0)].length){var k=p._id.charAt(0),M={},T=r["_"+k+"CategoryMap"]||r[k];for(u=0;u<T.length;u++)M[T[u]]=u;return function(L){var x=M[p._categories[L]];return x+1?x:u8}}else return kxt.identity}var v=d(n),m=d(i);i&&i.type==="category"&&(a=i._categories.length);var b=new Array(a);for(u=0;u<a;u++)for(n&&n.type==="category"?o=n._categories.length:o=s(t,u),b[u]=new Array(o),c=0;c<o;c++)b[u][c]=f(h(t,m(u),v(c)));return b}});var f8=ye(($ur,U_e)=>{"use strict";var Cxt=Pr(),B_e=.01,Lxt=[[-1,0],[1,0],[0,-1],[0,1]];function Pxt(e){return .5-.25*Math.min(1,e*.5)}U_e.exports=function(t,r){var n=1,i;for(N_e(t,r),i=0;i<r.length&&!(r[i][2]<4);i++);for(r=r.slice(i),i=0;i<100&&n>B_e;i++)n=N_e(t,r,Pxt(n));return n>B_e&&Cxt.log("interp2d didn't converge quickly",n),t};function N_e(e,t,r){var n=0,i,a,o,s,l,u,c,f,h,d,v,m,b;for(s=0;s<t.length;s++){for(i=t[s],a=i[0],o=i[1],v=e[a][o],d=0,h=0,l=0;l<4;l++)u=Lxt[l],c=e[a+u[0]],c&&(f=c[o+u[1]],f!==void 0&&(d===0?m=b=f:(m=Math.min(m,f),b=Math.max(b,f)),h++,d+=f));if(h===0)throw"iterateInterp2d order is wrong: no defined neighbors";e[a][o]=d/h,v===void 0?h<4&&(n=1):(e[a][o]=(1+r)*e[a][o]-r*v,b>m&&(n=Math.max(n,Math.abs(e[a][o]-v)/(b-m))))}return n}});var h8=ye((Qur,V_e)=>{"use strict";var Ixt=Pr().maxRowLength;V_e.exports=function(t){var r=[],n={},i=[],a=t[0],o=[],s=[0,0,0],l=Ixt(t),u,c,f,h,d,v,m,b;for(c=0;c<t.length;c++)for(u=o,o=a,a=t[c+1]||[],f=0;f<l;f++)o[f]===void 0&&(v=(o[f-1]!==void 0?1:0)+(o[f+1]!==void 0?1:0)+(u[f]!==void 0?1:0)+(a[f]!==void 0?1:0),v?(c===0&&v++,f===0&&v++,c===t.length-1&&v++,f===o.length-1&&v++,v<4&&(n[[c,f]]=[c,f,v]),r.push([c,f,v])):i.push([c,f]));for(;i.length;){for(m={},b=!1,d=i.length-1;d>=0;d--)h=i[d],c=h[0],f=h[1],v=((n[[c-1,f]]||s)[2]+(n[[c+1,f]]||s)[2]+(n[[c,f-1]]||s)[2]+(n[[c,f+1]]||s)[2])/20,v&&(m[h]=[c,f,v],i.splice(d,1),b=!0);if(!b)throw"findEmpties iterated with no new neighbors";for(h in m)n[h]=m[h],r.push(m[h])}return r.sort(function(p,k){return k[2]-p[2]})}});var nG=ye((ecr,j_e)=>{"use strict";var G_e=Oa(),H_e=Pr().isArrayOrTypedArray;j_e.exports=function(t,r,n,i,a,o){var s=[],l=G_e.traceIs(t,"contour"),u=G_e.traceIs(t,"histogram"),c,f,h,d=H_e(r)&&r.length>1;if(d&&!u&&o.type!=="category"){var v=r.length;if(v<=a){if(l)s=Array.from(r).slice(0,a);else if(a===1)o.type==="log"?s=[.5*r[0],2*r[0]]:s=[r[0]-.5,r[0]+.5];else if(o.type==="log"){for(s=[Math.pow(r[0],1.5)/Math.pow(r[1],.5)],h=1;h<v;h++)s.push(Math.sqrt(r[h-1]*r[h]));s.push(Math.pow(r[v-1],1.5)/Math.pow(r[v-2],.5))}else{for(s=[1.5*r[0]-.5*r[1]],h=1;h<v;h++)s.push((r[h-1]+r[h])*.5);s.push(1.5*r[v-1]-.5*r[v-2])}if(v<a){var m=s[s.length-1],b;if(o.type==="log")for(b=m/s[s.length-2],h=v;h<a;h++)m*=b,s.push(m);else for(b=m-s[s.length-2],h=v;h<a;h++)m+=b,s.push(m)}}else return l?r.slice(0,a):r.slice(0,a+1)}else{var p=t[o._id.charAt(0)+"calendar"];if(u)c=o.r2c(n,0,p);else if(H_e(r)&&r.length===1)c=r[0];else if(n===void 0)c=0;else{var k=o.type==="log"?o.d2c:o.r2c;c=k(n,0,p)}for(f=i||1,h=l?0:-.5;h<a;h++)s.push(c+f*h)}return s}});var p8=ye((tcr,Y_e)=>{"use strict";var W_e=Oa(),aG=Pr(),d8=ho(),X_e=zg(),Rxt=D_e(),Dxt=gv(),Fxt=l8(),zxt=c8(),qxt=f8(),Oxt=h8(),v8=nG(),oG=fs().BADNUM;Y_e.exports=function(t,r){var n=d8.getFromId(t,r.xaxis||"x"),i=d8.getFromId(t,r.yaxis||"y"),a=W_e.traceIs(r,"contour"),o=W_e.traceIs(r,"histogram"),s=a?"best":r.zsmooth,l,u,c,f,h,d,v,m,b,p,k;if(n._minDtick=0,i._minDtick=0,o)k=Rxt(t,r),f=k.orig_x,l=k.x,u=k.x0,c=k.dx,m=k.orig_y,h=k.y,d=k.y0,v=k.dy,b=k.z;else{var M=r.z;aG.isArray1D(M)?(Fxt(r,n,i,"x","y",["z"]),l=r._x,h=r._y,M=r._z):(f=r.x?n.makeCalcdata(r,"x"):[],m=r.y?i.makeCalcdata(r,"y"):[],l=X_e(r,n,"x",f).vals,h=X_e(r,i,"y",m).vals,r._x=l,r._y=h),u=r.x0,c=r.dx,d=r.y0,v=r.dy,b=zxt(M,r,n,i)}(n.rangebreaks||i.rangebreaks)&&(b=Bxt(l,h,b),o||(l=Z_e(l),h=Z_e(h),r._x=l,r._y=h)),!o&&(a||r.connectgaps)&&(r._emptypoints=Oxt(b),qxt(b,r._emptypoints));function T(q){s=r._input.zsmooth=r.zsmooth=!1,aG.warn('cannot use zsmooth: "fast": '+q)}function L(q){if(q.length>1){var V=(q[q.length-1]-q[0])/(q.length-1),G=Math.abs(V/100);for(p=0;p<q.length-1;p++)if(Math.abs(q[p+1]-q[p]-V)>G)return!1}return!0}r._islinear=!1,n.type==="log"||i.type==="log"?s==="fast"&&T("log axis found"):L(l)?L(h)?r._islinear=!0:s==="fast"&&T("y scale is not linear"):s==="fast"&&T("x scale is not linear");var x=aG.maxRowLength(b),C=r.xtype==="scaled"?"":l,S=v8(r,C,u,c,x,n),g=r.ytype==="scaled"?"":h,P=v8(r,g,d,v,b.length,i);r._extremes[n._id]=d8.findExtremes(n,S),r._extremes[i._id]=d8.findExtremes(i,P);var E={x:S,y:P,z:b,text:r._text||r.text,hovertext:r._hovertext||r.hovertext};if(r.xperiodalignment&&f&&(E.orig_x=f),r.yperiodalignment&&m&&(E.orig_y=m),C&&C.length===S.length-1&&(E.xCenter=C),g&&g.length===P.length-1&&(E.yCenter=g),o&&(E.xRanges=k.xRanges,E.yRanges=k.yRanges,E.pts=k.pts),a||Dxt(t,r,{vals:b,cLetter:"z"}),a&&r.contours&&r.contours.coloring==="heatmap"){var z={type:r.type==="contour"?"heatmap":"histogram2d",xcalendar:r.xcalendar,ycalendar:r.ycalendar};E.xfill=v8(z,C,u,c,x,n),E.yfill=v8(z,g,d,v,b.length,i)}return[E]};function Z_e(e){for(var t=[],r=e.length,n=0;n<r;n++){var i=e[n];i!==oG&&t.push(i)}return t}function Bxt(e,t,r){for(var n=[],i=-1,a=0;a<r.length;a++)if(t[a]!==oG){i++,n[i]=[];for(var o=0;o<r[a].length;o++)e[o]!==oG&&n[i].push(r[a][o])}return n}});var m8=ye(g8=>{"use strict";g8.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"]];g8.STYLE=g8.CSS_DECLARATIONS.map(function(e){return e.join(": ")+"; "}).join("")});var lG=ye((icr,J_e)=>{"use strict";var K_e=m8(),Nxt=So(),sG=Pr(),UT=null;function Uxt(){if(UT!==null)return UT;UT=!1;var e=sG.isSafari()||sG.isMacWKWebView()||sG.isIOS();if(window.navigator.userAgent&&!e){var t=Array.from(K_e.CSS_DECLARATIONS).reverse(),r=window.CSS&&window.CSS.supports||window.supportsCSS;if(typeof r=="function")UT=t.some(function(o){return r.apply(null,o)});else{var n=Nxt.tester.append("image").attr("style",K_e.STYLE),i=window.getComputedStyle(n.node()),a=i.imageRendering;UT=t.some(function(o){var s=o[1];return a===s||a===s.toLowerCase()}),n.remove()}}return UT}J_e.exports=Uxt});var y8=ye((ncr,oxe)=>{"use strict";var $_e=qa(),Vxt=fd(),Gxt=Oa(),Hxt=So(),jxt=ho(),W0=Pr(),Q_e=Zl(),Wxt=uI(),Xxt=ka(),Zxt=tc().extractOpts,Yxt=tc().makeColorScaleFuncFromTrace,Kxt=Wp(),Jxt=Dh(),uG=Jxt.LINE_SPACING,$xt=lG(),Qxt=m8().STYLE,nxe="heatmap-label";function axe(e){return e.selectAll("g."+nxe)}function exe(e){axe(e).remove()}oxe.exports=function(e,t,r,n){var i=t.xaxis,a=t.yaxis;W0.makeTraceGroups(n,r,"hm").each(function(o){var s=$_e.select(this),l=o[0],u=l.trace,c=u.xgap||0,f=u.ygap||0,h=l.z,d=l.x,v=l.y,m=l.xCenter,b=l.yCenter,p=Gxt.traceIs(u,"contour"),k=p?"best":u.zsmooth,M=h.length,T=W0.maxRowLength(h),L=!1,x=!1,C,S,g,P,E,z,q,V;for(z=0;C===void 0&&z<d.length-1;)C=i.c2p(d[z]),z++;for(z=d.length-1;S===void 0&&z>0;)S=i.c2p(d[z]),z--;for(S<C&&(g=S,S=C,C=g,L=!0),z=0;P===void 0&&z<v.length-1;)P=a.c2p(v[z]),z++;for(z=v.length-1;E===void 0&&z>0;)E=a.c2p(v[z]),z--;E<P&&(g=P,P=E,E=g,x=!0),p&&(m=d,b=v,d=l.xfill,v=l.yfill);var G="default";if(k?G=k==="best"?"smooth":"fast":u._islinear&&c===0&&f===0&&$xt()&&(G="fast"),G!=="fast"){var Z=k==="best"?0:.5;C=Math.max(-Z*i._length,C),S=Math.min((1+Z)*i._length,S),P=Math.max(-Z*a._length,P),E=Math.min((1+Z)*a._length,E)}var j=Math.round(S-C),N=Math.round(E-P),H=C>=i._length||S<=0||P>=a._length||E<=0;if(H){var ie=s.selectAll("image").data([]);ie.exit().remove(),exe(s);return}var ae,_e;G==="fast"?(ae=T,_e=M):(ae=j,_e=N);var Ee=document.createElement("canvas");Ee.width=ae,Ee.height=_e;var Ce=Ee.getContext("2d",{willReadFrequently:!0}),ge=Yxt(u,{noNumericCheck:!0,returnArray:!0}),re,Se;G==="fast"?(re=L?function(fn){return T-1-fn}:W0.identity,Se=x?function(fn){return M-1-fn}:W0.identity):(re=function(fn){return W0.constrain(Math.round(i.c2p(d[fn])-C),0,j)},Se=function(fn){return W0.constrain(Math.round(a.c2p(v[fn])-P),0,N)});var ke=Se(0),be=[ke,ke],Be=L?0:1,Le=x?0:1,me=0,Pe=0,ce=0,He=0,lt,mt,Ht,at,ct;function ar(fn,yn){if(fn!==void 0){var Mn=ge(fn);return Mn[0]=Math.round(Mn[0]),Mn[1]=Math.round(Mn[1]),Mn[2]=Math.round(Mn[2]),me+=yn,Pe+=Mn[0]*yn,ce+=Mn[1]*yn,He+=Mn[2]*yn,Mn}return[0,0,0,0]}function Vt(fn,yn,Mn,Ba){var ua=fn[Mn.bin0];if(ua===void 0)return ar(void 0,1);var ma=fn[Mn.bin1],Wa=yn[Mn.bin0],Fa=yn[Mn.bin1],Xo=ma-ua||0,da=Wa-ua||0,jn;return ma===void 0?Fa===void 0?jn=0:Wa===void 0?jn=2*(Fa-ua):jn=(2*Fa-Wa-ua)*2/3:Fa===void 0?Wa===void 0?jn=0:jn=(2*ua-ma-Wa)*2/3:Wa===void 0?jn=(2*Fa-ma-ua)*2/3:jn=Fa+ua-ma-Wa,ar(ua+Mn.frac*Xo+Ba.frac*(da+Mn.frac*jn))}if(G!=="default"){var rr=0,tt;try{tt=new Uint8Array(ae*_e*4)}catch(fn){tt=new Array(ae*_e*4)}if(G==="smooth"){var je=m||d,Ue=b||v,Ae=new Array(je.length),rt=new Array(Ue.length),St=new Array(j),Tt=m?rxe:txe,dt=b?rxe:txe,Et,pt,jt;for(z=0;z<je.length;z++)Ae[z]=Math.round(i.c2p(je[z])-C);for(z=0;z<Ue.length;z++)rt[z]=Math.round(a.c2p(Ue[z])-P);for(z=0;z<j;z++)St[z]=Tt(z,Ae);for(q=0;q<N;q++)for(Et=dt(q,rt),pt=h[Et.bin0],jt=h[Et.bin1],z=0;z<j;z++,rr+=4)ct=Vt(pt,jt,St[z],Et),ixe(tt,rr,ct)}else for(q=0;q<M;q++)for(at=h[q],be=Se(q),z=0;z<T;z++)ct=ar(at[z],1),rr=(be*T+re(z))*4,ixe(tt,rr,ct);var or=Ce.createImageData(ae,_e);try{or.data.set(tt)}catch(fn){var mr=or.data,Ar=mr.length;for(q=0;q<Ar;q++)mr[q]=tt[q]}Ce.putImageData(or,0,0)}else{var ei=Math.floor(c/2),qr=Math.floor(f/2);for(q=0;q<M;q++)if(at=h[q],be.reverse(),be[Le]=Se(q+1),!(be[0]===be[1]||be[0]===void 0||be[1]===void 0))for(mt=re(0),lt=[mt,mt],z=0;z<T;z++)lt.reverse(),lt[Be]=re(z+1),!(lt[0]===lt[1]||lt[0]===void 0||lt[1]===void 0)&&(Ht=at[z],ct=ar(Ht,(lt[1]-lt[0])*(be[1]-be[0])),Ce.fillStyle="rgba("+ct.join(",")+")",Ce.fillRect(lt[0]+ei,be[0]+qr,lt[1]-lt[0]-c,be[1]-be[0]-f))}Pe=Math.round(Pe/me),ce=Math.round(ce/me),He=Math.round(He/me);var jr=Vxt("rgb("+Pe+","+ce+","+He+")");e._hmpixcount=(e._hmpixcount||0)+me,e._hmlumcount=(e._hmlumcount||0)+me*jr.getLuminance();var gt=s.selectAll("image").data(o);gt.enter().append("svg:image").attr({xmlns:Kxt.svg,preserveAspectRatio:"none"}),gt.attr({height:N,width:j,x:C,y:P,"xlink:href":Ee.toDataURL("image/png")}),G==="fast"&&!k&&gt.attr("style",Qxt),exe(s);var Ge=u.texttemplate;if(Ge){var Je=Zxt(u),We={type:"linear",range:[Je.min,Je.max],_separators:i._separators,_numFormat:i._numFormat},et=u.type==="histogram2dcontour",xt=u.type==="contour",At=xt?1:0,Kt=xt?M-1:M,Qt=xt?1:0,Mr=xt?T-1:T,Gr=[];for(z=At;z<Kt;z++){var Ir;if(xt)Ir=l.y[z];else if(et){if(z===0||z===M-1)continue;Ir=l.y[z]}else if(l.yCenter)Ir=l.yCenter[z];else{if(z+1===M&&l.y[z+1]===void 0)continue;Ir=(l.y[z]+l.y[z+1])/2}var Yr=Math.round(a.c2p(Ir));if(!(0>Yr||Yr>a._length))for(q=Qt;q<Mr;q++){var _i;if(xt)_i=l.x[q];else if(et){if(q===0||q===T-1)continue;_i=l.x[q]}else if(l.xCenter)_i=l.xCenter[q];else{if(q+1===T&&l.x[q+1]===void 0)continue;_i=(l.x[q]+l.x[q+1])/2}var Pi=Math.round(i.c2p(_i));if(!(0>Pi||Pi>i._length)){var ai=Wxt({x:_i,y:Ir},u,e._fullLayout);ai.x=_i,ai.y=Ir;var mi=l.z[z][q];mi===void 0?(ai.z="",ai.zLabel=""):(ai.z=mi,ai.zLabel=jxt.tickText(We,mi,"hover").text);var un=l.text&&l.text[z]&&l.text[z][q];(un===void 0||un===!1)&&(un=""),ai.text=un;var Fn=W0.texttemplateString({data:[ai,u._meta],fallback:u.texttemplatefallback,labels:ai,locale:e._fullLayout._d3locale,template:Ge});if(Fn){var An=Fn.split("<br>"),Hn=An.length,Qn=0;for(V=0;V<Hn;V++)Qn=Math.max(Qn,An[V].length);Gr.push({l:Hn,c:Qn,t:Fn,x:Pi,y:Yr,z:mi})}}}}var Vi=u.textfont,Kn=Vi.size,Jn=e._fullLayout.font.size;if(!Kn||Kn==="auto"){var Gt=1/0,wt=1/0,tr=0,ir=0;for(V=0;V<Gr.length;V++){var wr=Gr[V];if(tr=Math.max(tr,wr.l),ir=Math.max(ir,wr.c),V<Gr.length-1){var Xr=Gr[V+1],ti=Math.abs(Xr.x-wr.x),$r=Math.abs(Xr.y-wr.y);ti&&(Gt=Math.min(Gt,ti)),$r&&(wt=Math.min(wt,$r))}}!isFinite(Gt)||!isFinite(wt)?Kn=Jn:(Gt-=c,wt-=f,Gt/=ir,wt/=tr,Gt/=uG/2,wt/=uG,Kn=Math.min(Math.floor(Gt),Math.floor(wt),Jn))}if(Kn<=0||!isFinite(Kn))return;var Ri=function(fn){return fn.x},Zi=function(fn){return fn.y-Kn*(fn.l*uG/2-1)},en=axe(s).data(Gr);en.enter().append("g").classed(nxe,1).append("text").attr("text-anchor","middle").each(function(fn){var yn=$_e.select(this),Mn=Vi.color;(!Mn||Mn==="auto")&&(Mn=Xxt.contrast(fn.z===void 0?e._fullLayout.plot_bgcolor:"rgba("+ge(fn.z).join()+")")),yn.attr("data-notex",1).call(Q_e.positionText,Ri(fn),Zi(fn)).call(Hxt.font,{family:Vi.family,size:Kn,color:Mn,weight:Vi.weight,style:Vi.style,variant:Vi.variant,textcase:Vi.textcase,lineposition:Vi.lineposition,shadow:Vi.shadow}).text(fn.t).call(Q_e.convertToTspans,e)})}})};function txe(e,t){var r=t.length-2,n=W0.constrain(W0.findBin(e,t),0,r),i=t[n],a=t[n+1],o=W0.constrain(n+(e-i)/(a-i)-.5,0,r),s=Math.round(o),l=Math.abs(o-s);return!o||o===r||!l?{bin0:s,bin1:s,frac:0}:{bin0:s,frac:l,bin1:Math.round(s+l/(o-s))}}function rxe(e,t){var r=t.length-1,n=W0.constrain(W0.findBin(e,t),0,r),i=t[n],a=t[n+1],o=(e-i)/(a-i)||0;return o<=0?{bin0:n,bin1:n,frac:0}:o<.5?{bin0:n,bin1:n+1,frac:o}:{bin0:n+1,bin1:n,frac:1-o}}function ixe(e,t,r){e[t]=r[0],e[t+1]=r[1],e[t+2]=r[2],e[t+3]=Math.round(r[3]*255)}});var D_=ye((acr,sxe)=>{"use strict";sxe.exports={min:"zmin",max:"zmax"}});var _8=ye((ocr,lxe)=>{"use strict";var ebt=qa();lxe.exports=function(t){ebt.select(t).selectAll(".hm image").style("opacity",function(r){return r.trace.opacity})}});var b8=ye((scr,cxe)=>{"use strict";var uxe=ef(),D4=Pr(),x8=D4.isArrayOrTypedArray,tbt=ho(),rbt=tc().extractOpts;cxe.exports=function(t,r,n,i,a){a||(a={});var o=a.isContour,s=t.cd[0],l=s.trace,u=t.xa,c=t.ya,f=s.x,h=s.y,d=s.z,v=s.xCenter,m=s.yCenter,b=s.zmask,p=l.zhoverformat,k=f,M=h,T,L,x,C;if(t.index!==!1){try{x=Math.round(t.index[1]),C=Math.round(t.index[0])}catch(ie){D4.error("Error hovering on heatmap, pointNumber must be [row,col], found:",t.index);return}if(x<0||x>=d[0].length||C<0||C>d.length)return}else{if(uxe.inbox(r-f[0],r-f[f.length-1],0)>0||uxe.inbox(n-h[0],n-h[h.length-1],0)>0)return;if(o){var S;for(k=[2*f[0]-f[1]],S=1;S<f.length;S++)k.push((f[S]+f[S-1])/2);for(k.push([2*f[f.length-1]-f[f.length-2]]),M=[2*h[0]-h[1]],S=1;S<h.length;S++)M.push((h[S]+h[S-1])/2);M.push([2*h[h.length-1]-h[h.length-2]])}x=Math.max(0,Math.min(k.length-2,D4.findBin(r,k))),C=Math.max(0,Math.min(M.length-2,D4.findBin(n,M)))}var g=u.c2p(f[x]),P=u.c2p(f[x+1]),E=c.c2p(h[C]),z=c.c2p(h[C+1]),q,V;o?(q=s.orig_x||f,V=s.orig_y||h,P=g,T=q[x],z=E,L=V[C]):(q=s.orig_x||v||f,V=s.orig_y||m||h,T=v?q[x]:(q[x]+q[x+1])/2,L=m?V[C]:(V[C]+V[C+1])/2,u&&u.type==="category"&&(T=f[x]),c&&c.type==="category"&&(L=h[C]),l.zsmooth&&(g=P=u.c2p(T),E=z=c.c2p(L)));var G=d[C][x];if(b&&!b[C][x]&&(G=void 0),!(G===void 0&&!l.hoverongaps)){var Z;x8(s.hovertext)&&x8(s.hovertext[C])?Z=s.hovertext[C][x]:x8(s.text)&&x8(s.text[C])&&(Z=s.text[C][x]);var j=rbt(l),N={type:"linear",range:[j.min,j.max],hoverformat:p,_separators:u._separators,_numFormat:u._numFormat},H=tbt.tickText(N,G,"hover").text;return[D4.extendFlat(t,{index:l._after2before?l._after2before[C][x]:[C,x],distance:t.maxHoverDistance,spikeDistance:t.maxSpikeDistance,x0:g,x1:P,y0:E,y1:z,xLabelVal:T,yLabelVal:L,zLabelVal:G,zLabel:H,text:Z})]}}});var hxe=ye((lcr,fxe)=>{"use strict";fxe.exports={attributes:qT(),supplyDefaults:c_e(),calc:p8(),plot:y8(),colorbar:D_(),style:_8(),hoverPoints:b8(),moduleType:"trace",name:"heatmap",basePlotModule:mh(),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}});var vxe=ye((ucr,dxe)=>{"use strict";dxe.exports=hxe()});var cG=ye((ccr,pxe)=>{"use strict";pxe.exports=function(t,r){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}});var mxe=ye((fcr,gxe)=>{"use strict";gxe.exports={eventDataKeys:["binNumber"]}});var w8=ye((hcr,bxe)=>{"use strict";var Ip=qm(),yxe=vf().axisHoverFormat,{hovertemplateAttrs:ibt,texttemplateAttrs:nbt,templatefallbackAttrs:_xe}=Ll(),fG=ec(),xxe=cG(),abt=mxe(),hG=Ao().extendFlat;bxe.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},xhoverformat:yxe("x"),yhoverformat:yxe("y"),text:hG({},Ip.text,{}),hovertext:hG({},Ip.hovertext,{}),orientation:Ip.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:xxe("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:xxe("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:ibt({},{keys:abt.eventDataKeys}),hovertemplatefallback:_xe(),texttemplate:nbt({arrayOk:!1,editType:"plot"},{keys:["label","value"]}),texttemplatefallback:_xe({editType:"plot"}),textposition:hG({},Ip.textposition,{arrayOk:!1}),textfont:fG({arrayOk:!1,editType:"plot",colorEditType:"style"}),outsidetextfont:fG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextfont:fG({arrayOk:!1,editType:"plot",colorEditType:"style"}),insidetextanchor:Ip.insidetextanchor,textangle:Ip.textangle,cliponaxis:Ip.cliponaxis,constraintext:Ip.constraintext,marker:Ip.marker,offsetgroup:Ip.offsetgroup,alignmentgroup:Ip.alignmentgroup,selected:Ip.selected,unselected:Ip.unselected,zorder:Ip.zorder}});var Sxe=ye((dcr,Axe)=>{"use strict";var wxe=Oa(),F4=Pr(),Txe=ka(),obt=i0().handleText,sbt=XI(),lbt=w8();Axe.exports=function(t,r,n,i){function a(k,M){return F4.coerce(t,r,lbt,k,M)}var o=a("x"),s=a("y"),l=a("cumulative.enabled");l&&(a("cumulative.direction"),a("cumulative.currentbin")),a("text");var u=a("textposition");obt(t,r,i,a,u,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),a("hovertext"),a("hovertemplate"),a("hovertemplatefallback"),a("xhoverformat"),a("yhoverformat");var c=a("orientation",s&&!o?"h":"v"),f=c==="v"?"x":"y",h=c==="v"?"y":"x",d=o&&s?Math.min(F4.minRowLength(o)&&F4.minRowLength(s)):F4.minRowLength(r[f]||[]);if(!d){r.visible=!1;return}r._length=d;var v=wxe.getComponentMethod("calendars","handleTraceDefaults");v(t,r,["x","y"],i);var m=r[h];m&&a("histfunc"),a("histnorm"),a("autobin"+f),sbt(t,r,a,n,i),F4.coerceSelectionMarkerOpacity(r,a);var b=(r.marker.line||{}).color,p=wxe.getComponentMethod("errorbars","supplyDefaults");p(t,r,b||Txe.defaultLine,{axis:"y"}),p(t,r,b||Txe.defaultLine,{axis:"x",inherit:"y"}),a("zorder")}});var A8=ye((vcr,kxe)=>{"use strict";var z4=Pr(),ubt=df(),T8=Oa().traceIs,cbt=r2(),fbt=i0().validateCornerradius,Mxe=z4.nestedProperty,dG=$b().getAxisGroup,Exe=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],hbt=["x","y"];kxe.exports=function(t,r){var n=r._histogramBinOpts={},i=[],a={},o=[],s,l,u,c,f,h,d;function v(G,Z){return z4.coerce(s._input,s,s._module.attributes,G,Z)}function m(G){return G.orientation==="v"?"x":"y"}function b(G,Z){var j=ubt.getFromTrace({_fullLayout:r},G,Z);return j.type}function p(G,Z,j){var N=G.uid+"__"+j;Z||(Z=N);var H=b(G,j),ie=G[j+"calendar"]||"",ae=n[Z],_e=!0;ae&&(H===ae.axType&&ie===ae.calendar?(_e=!1,ae.traces.push(G),ae.dirs.push(j)):(Z=N,H!==ae.axType&&z4.warn(["Attempted to group the bins of trace",G.index,"set on a","type:"+H,"axis","with bins on","type:"+ae.axType,"axis."].join(" ")),ie!==ae.calendar&&z4.warn(["Attempted to group the bins of trace",G.index,"set with a",ie,"calendar","with bins",ae.calendar?"on a "+ae.calendar+" calendar":"w/o a set calendar"].join(" ")))),_e&&(n[Z]={traces:[G],dirs:[j],axType:H,calendar:G[j+"calendar"]||""}),G["_"+j+"bingroup"]=Z}for(f=0;f<t.length;f++)if(s=t[f],T8(s,"histogram")){if(i.push(s),delete s._xautoBinFinished,delete s._yautoBinFinished,s.type==="histogram"){var k=v("marker.cornerradius",r.barcornerradius);s.marker&&(s.marker.cornerradius=fbt(k))}T8(s,"2dMap")||cbt(s._input,s,r,v,r.barmode)}var M=r._alignmentOpts||{};for(f=0;f<i.length;f++){if(s=i[f],u="",!T8(s,"2dMap")){if(c=m(s),r.barmode==="group"&&s.alignmentgroup){var T=s[c+"axis"],L=dG(r,T)+s.orientation;(M[L]||{})[s.alignmentgroup]&&(u=L)}!u&&r.barmode!=="overlay"&&(u=dG(r,s.xaxis)+dG(r,s.yaxis)+m(s))}u?(a[u]||(a[u]=[]),a[u].push(s)):o.push(s)}for(u in a){if(l=a[u],l.length===1){o.push(l[0]);continue}var x=!1;for(l.length&&(s=l[0],x=v("bingroup")),u=x||u,f=0;f<l.length;f++){s=l[f];var C=s._input.bingroup;C&&C!==u&&z4.warn(["Trace",s.index,"must match","within bingroup",u+".","Ignoring its bingroup:",C,"setting."].join(" ")),s.bingroup=u,p(s,u,m(s))}}for(f=0;f<o.length;f++){s=o[f];var S=v("bingroup");if(T8(s,"2dMap"))for(d=0;d<2;d++){c=hbt[d];var g=v(c+"bingroup",S?S+"__"+c:null);p(s,g,c)}else p(s,S,m(s))}for(u in n){var P=n[u];for(l=P.traces,h=0;h<Exe.length;h++){var E=Exe[h],z=E.name,q,V;if(!(z==="nbins"&&P.sizeFound)){for(f=0;f<l.length;f++){if(s=l[f],c=P.dirs[f],q=E.aStr[c],Mxe(s._input,q).get()!==void 0){P[z]=v(q),P[z+"Found"]=!0;break}V=(s._autoBin||{})[c]||{},V[z]&&Mxe(s,q).set(V[z])}if(z==="start"||z==="end")for(;f<l.length;f++)s=l[f],s["_"+c+"bingroup"]&&(V=(s._autoBin||{})[c]||{},v(q,V[z]));z==="nbins"&&!P.sizeFound&&!P.nbinsFound&&(s=l[0],P[z]=v(q))}}}}});var Lxe=ye((pcr,Cxe)=>{"use strict";var dbt=RT().hoverPoints,vbt=ho().hoverLabelText;Cxe.exports=function(t,r,n,i,a){var o=dbt(t,r,n,i,a);if(o){t=o[0];var s=t.cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var u=l.orientation==="h"?"y":"x";t[u+"Label"]=vbt(t[u+"a"],[s.ph0,s.ph1],l[u+"hoverformat"])}return o}}});var vG=ye((gcr,Pxe)=>{"use strict";Pxe.exports=function(t,r,n,i,a){if(t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"zLabelVal"in r&&(t.z=r.zLabelVal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),!(n.cumulative||{}).enabled){var o=Array.isArray(a)?i[0].pts[a[0]][a[1]]:i[a].pts;t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex;var s;if(n._indexToPoints){s=[];for(var l=0;l<o.length;l++)s=s.concat(n._indexToPoints[o[l]])}else s=o;t.pointIndices=s}return t}});var Rxe=ye((mcr,Ixe)=>{"use strict";Ixe.exports={attributes:w8(),layoutAttributes:WI(),supplyDefaults:Sxe(),crossTraceDefaults:A8(),supplyLayoutDefaults:DV(),calc:iG().calc,crossTraceCalc:i2().crossTraceCalc,plot:p2().plot,layerName:"barlayer",style:V0().style,styleOnSelect:V0().styleOnSelect,colorbar:Qd(),hoverPoints:Lxe(),selectPoints:DT(),eventData:vG(),moduleType:"trace",name:"histogram",basePlotModule:mh(),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}});var Fxe=ye((ycr,Dxe)=>{"use strict";Dxe.exports=Rxe()});var M8=ye((_cr,Oxe)=>{"use strict";var jg=w8(),zxe=cG(),S8=qT(),pbt=Gl(),pG=vf().axisHoverFormat,{hovertemplateAttrs:gbt,texttemplateAttrs:mbt,templatefallbackAttrs:qxe}=Ll(),ybt=Tu(),q4=Ao().extendFlat;Oxe.exports=q4({x:jg.x,y:jg.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:jg.histnorm,histfunc:jg.histfunc,nbinsx:jg.nbinsx,xbins:zxe("x"),nbinsy:jg.nbinsy,ybins:zxe("y"),autobinx:jg.autobinx,autobiny:jg.autobiny,bingroup:q4({},jg.bingroup,{}),xbingroup:q4({},jg.bingroup,{}),ybingroup:q4({},jg.bingroup,{}),xgap:S8.xgap,ygap:S8.ygap,zsmooth:S8.zsmooth,xhoverformat:pG("x"),yhoverformat:pG("y"),zhoverformat:pG("z",1),hovertemplate:gbt({},{keys:["z"]}),hovertemplatefallback:qxe(),texttemplate:mbt({arrayOk:!1,editType:"plot"},{keys:["z"]}),texttemplatefallback:qxe({editType:"plot"}),textfont:S8.textfont,showlegend:q4({},pbt.showlegend,{dflt:!1})},ybt("",{cLetter:"z",autoColorDflt:!1}))});var gG=ye((xcr,Nxe)=>{"use strict";var _bt=Oa(),Bxe=Pr();Nxe.exports=function(t,r,n,i){var a=n("x"),o=n("y"),s=Bxe.minRowLength(a),l=Bxe.minRowLength(o);if(!s||!l){r.visible=!1;return}r._length=Math.min(s,l);var u=_bt.getComponentMethod("calendars","handleTraceDefaults");u(t,r,["x","y"],i);var c=n("z")||n("marker.color");c&&n("histfunc"),n("histnorm"),n("autobinx"),n("autobiny")}});var Vxe=ye((bcr,Uxe)=>{"use strict";var xbt=Pr(),bbt=gG(),wbt=KV(),Tbt=td(),Abt=R4(),Sbt=M8();Uxe.exports=function(t,r,n,i){function a(o,s){return xbt.coerce(t,r,Sbt,o,s)}bbt(t,r,a,i),r.visible!==!1&&(wbt(t,r,a,i),Tbt(t,r,i,a,{prefix:"",cLetter:"z"}),a("hovertemplate"),a("hovertemplatefallback"),Abt(a,i),a("xhoverformat"),a("yhoverformat"))}});var jxe=ye((wcr,Hxe)=>{"use strict";var Mbt=b8(),Gxe=ho().hoverLabelText;Hxe.exports=function(t,r,n,i,a){var o=Mbt(t,r,n,i,a);if(o){t=o[0];var s=t.index,l=s[0],u=s[1],c=t.cd[0],f=c.trace,h=c.xRanges[u],d=c.yRanges[l];return t.xLabel=Gxe(t.xa,[h[0],h[1]],f.xhoverformat),t.yLabel=Gxe(t.ya,[d[0],d[1]],f.yhoverformat),o}}});var Xxe=ye((Tcr,Wxe)=>{"use strict";Wxe.exports={attributes:M8(),supplyDefaults:Vxe(),crossTraceDefaults:A8(),calc:p8(),plot:y8(),layerName:"heatmaplayer",colorbar:D_(),style:_8(),hoverPoints:jxe(),eventData:vG(),moduleType:"trace",name:"histogram2d",basePlotModule:mh(),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}});var Yxe=ye((Acr,Zxe)=>{"use strict";Zxe.exports=Xxe()});var E8=ye((Scr,Kxe)=>{"use strict";Kxe.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}});var O4=ye((Mcr,ebe)=>{"use strict";var _h=qT(),k8=pf(),$xe=vf(),mG=$xe.axisHoverFormat,Ebt=$xe.descriptionOnlyNumbers,kbt=Tu(),Cbt=Pd().dash,Lbt=ec(),VT=Ao().extendFlat,Qxe=E8(),Pbt=Qxe.COMPARISON_OPS2,Ibt=Qxe.INTERVAL_OPS,Jxe=k8.line;ebe.exports=VT({z:_h.z,x:_h.x,x0:_h.x0,dx:_h.dx,y:_h.y,y0:_h.y0,dy:_h.dy,xperiod:_h.xperiod,yperiod:_h.yperiod,xperiod0:k8.xperiod0,yperiod0:k8.yperiod0,xperiodalignment:_h.xperiodalignment,yperiodalignment:_h.yperiodalignment,text:_h.text,hovertext:_h.hovertext,transpose:_h.transpose,xtype:_h.xtype,ytype:_h.ytype,xhoverformat:mG("x"),yhoverformat:mG("y"),zhoverformat:mG("z",1),hovertemplate:_h.hovertemplate,hovertemplatefallback:_h.hovertemplatefallback,texttemplate:VT({},_h.texttemplate,{}),texttemplatefallback:_h.texttemplatefallback,textfont:VT({},_h.textfont,{}),hoverongaps:_h.hoverongaps,connectgaps:VT({},_h.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:Lbt({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot",description:Ebt("contour label")},operation:{valType:"enumerated",values:[].concat(Pbt).concat(Ibt),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:VT({},Jxe.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:Cbt,smoothing:VT({},Jxe.smoothing,{}),editType:"plot"},zorder:k8.zorder},kbt("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))});var _G=ye((Ecr,rbe)=>{"use strict";var wv=M8(),Nm=O4(),Rbt=Tu(),yG=vf().axisHoverFormat,tbe=Ao().extendFlat;rbe.exports=tbe({x:wv.x,y:wv.y,z:wv.z,marker:wv.marker,histnorm:wv.histnorm,histfunc:wv.histfunc,nbinsx:wv.nbinsx,xbins:wv.xbins,nbinsy:wv.nbinsy,ybins:wv.ybins,autobinx:wv.autobinx,autobiny:wv.autobiny,bingroup:wv.bingroup,xbingroup:wv.xbingroup,ybingroup:wv.ybingroup,autocontour:Nm.autocontour,ncontours:Nm.ncontours,contours:Nm.contours,line:{color:Nm.line.color,width:tbe({},Nm.line.width,{dflt:.5}),dash:Nm.line.dash,smoothing:Nm.line.smoothing,editType:"plot"},xhoverformat:yG("x"),yhoverformat:yG("y"),zhoverformat:yG("z",1),hovertemplate:wv.hovertemplate,hovertemplatefallback:wv.hovertemplatefallback,texttemplate:Nm.texttemplate,texttemplatefallback:Nm.texttemplatefallback,textfont:Nm.textfont},Rbt("",{cLetter:"z",editTypeOverride:"calc"}))});var C8=ye((kcr,ibe)=>{"use strict";ibe.exports=function(t,r,n,i){var a=i("contours.start"),o=i("contours.end"),s=a===!1||o===!1,l=n("contours.size"),u;s?u=r.autocontour=!0:u=n("autocontour",!1),(u||!l)&&n("ncontours")}});var xG=ye((Ccr,nbe)=>{"use strict";var Dbt=Pr();nbe.exports=function(t,r,n,i){i||(i={});var a=t("contours.showlabels");if(a){var o=r.font;Dbt.coerceFont(t,"contours.labelfont",o,{overrideDflt:{color:n}}),t("contours.labelformat")}i.hasHover!==!1&&t("zhoverformat")}});var L8=ye((Lcr,abe)=>{"use strict";var Fbt=td(),zbt=xG();abe.exports=function(t,r,n,i,a){var o=n("contours.coloring"),s,l="";o==="fill"&&(s=n("contours.showlines")),s!==!1&&(o!=="lines"&&(l=n("line.color","#000")),n("line.width",.5),n("line.dash")),o!=="none"&&(t.showlegend!==!0&&(r.showlegend=!1),r._dfltShowLegend=!1,Fbt(t,r,i,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),zbt(n,i,l,a)}});var ube=ye((Pcr,lbe)=>{"use strict";var obe=Pr(),qbt=gG(),Obt=C8(),Bbt=L8(),Nbt=R4(),sbe=_G();lbe.exports=function(t,r,n,i){function a(s,l){return obe.coerce(t,r,sbe,s,l)}function o(s){return obe.coerce2(t,r,sbe,s)}qbt(t,r,a,i),r.visible!==!1&&(Obt(t,r,a,o),Bbt(t,r,a,i),a("xhoverformat"),a("yhoverformat"),a("hovertemplate"),a("hovertemplatefallback"),r.contours&&r.contours.coloring==="heatmap"&&Nbt(a,i))}});var TG=ye((Icr,fbe)=>{"use strict";var wG=ho(),bG=Pr();fbe.exports=function(t,r){var n=t.contours;if(t.autocontour){var i=t.zmin,a=t.zmax;(t.zauto||i===void 0)&&(i=bG.aggNums(Math.min,null,r)),(t.zauto||a===void 0)&&(a=bG.aggNums(Math.max,null,r));var o=cbe(i,a,t.ncontours);n.size=o.dtick,n.start=wG.tickFirst(o),o.range.reverse(),n.end=wG.tickFirst(o),n.start===i&&(n.start+=n.size),n.end===a&&(n.end-=n.size),n.start>n.end&&(n.start=n.end=(n.start+n.end)/2),t._input.contours||(t._input.contours={}),bG.extendFlat(t._input.contours,{start:n.start,end:n.end,size:n.size}),t._input.autocontour=!0}else if(n.type!=="constraint"){var s=n.start,l=n.end,u=t._input.contours;if(s>l&&(n.start=u.start=l,l=n.end=u.end=s,s=n.start),!(n.size>0)){var c;s===l?c=1:c=cbe(s,l,t.ncontours).dtick,u.size=n.size=c}}};function cbe(e,t,r){var n={type:"linear",range:[e,t]};return wG.autoTicks(n,(t-e)/(r||15)),n}});var B4=ye((Rcr,hbe)=>{"use strict";hbe.exports=function(t){return t.end+t.size/1e6}});var AG=ye((Dcr,vbe)=>{"use strict";var dbe=tc(),Ubt=p8(),Vbt=TG(),Gbt=B4();vbe.exports=function(t,r){var n=Ubt(t,r),i=n[0].z;Vbt(r,i);var a=r.contours,o=dbe.extractOpts(r),s;if(a.coloring==="heatmap"&&o.auto&&r.autocontour===!1){var l=a.start,u=Gbt(a),c=a.size||1,f=Math.floor((u-l)/c)+1;isFinite(c)||(c=1,f=1);var h=l-c/2,d=h+f*c;s=[h,d]}else s=i;return dbe.calc(t,r,{vals:s,cLetter:"z"}),n}});var N4=ye((Fcr,pbe)=>{"use strict";pbe.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}});var SG=ye((zcr,gbe)=>{"use strict";var P8=N4();gbe.exports=function(t){var r=t[0].z,n=r.length,i=r[0].length,a=n===2||i===2,o,s,l,u,c,f,h,d,v;for(s=0;s<n-1;s++)for(u=[],s===0&&(u=u.concat(P8.BOTTOMSTART)),s===n-2&&(u=u.concat(P8.TOPSTART)),o=0;o<i-1;o++)for(l=u.slice(),o===0&&(l=l.concat(P8.LEFTSTART)),o===i-2&&(l=l.concat(P8.RIGHTSTART)),c=o+","+s,f=[[r[s][o],r[s][o+1]],[r[s+1][o],r[s+1][o+1]]],v=0;v<t.length;v++)d=t[v],h=Hbt(d.level,f),h&&(d.crossings[c]=h,l.indexOf(h)!==-1&&(d.starts.push([o,s]),a&&l.indexOf(h,l.indexOf(h)+1)!==-1&&d.starts.push([o,s])))};function Hbt(e,t){var r=(t[0][0]>e?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(r===5||r===10){var n=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>n?r===5?713:1114:r===5?104:208}return r===15?0:r}});var MG=ye((qcr,_be)=>{"use strict";var I8=Pr(),GT=N4();_be.exports=function(t,r,n){var i,a,o,s,l;for(r=r||.01,n=n||.01,o=0;o<t.length;o++){for(s=t[o],l=0;l<s.starts.length;l++)a=s.starts[l],mbe(s,a,"edge",r,n);for(i=0;Object.keys(s.crossings).length&&i<1e4;)i++,a=Object.keys(s.crossings)[0].split(",").map(Number),mbe(s,a,void 0,r,n);i===1e4&&I8.log("Infinite loop in contour?")}};function U4(e,t,r,n){return Math.abs(e[0]-t[0])<r&&Math.abs(e[1]-t[1])<n}function jbt(e,t){var r=e[2]-t[2],n=e[3]-t[3];return Math.sqrt(r*r+n*n)}function mbe(e,t,r,n,i){var a=t.join(","),o=e.crossings[a],s=Wbt(o,r,t),l=[ybe(e,t,[-s[0],-s[1]])],u=e.z.length,c=e.z[0].length,f=t.slice(),h=s.slice(),d;for(d=0;d<1e4;d++){if(o>20?(o=GT.CHOOSESADDLE[o][(s[0]||s[1])<0?0:1],e.crossings[a]=GT.SADDLEREMAINDER[o]):delete e.crossings[a],s=GT.NEWDELTA[o],!s){I8.log("Found bad marching index:",o,t,e.level);break}l.push(ybe(e,t,s)),t[0]+=s[0],t[1]+=s[1],a=t.join(","),U4(l[l.length-1],l[l.length-2],n,i)&&l.pop();var v=s[0]&&(t[0]<0||t[0]>c-2)||s[1]&&(t[1]<0||t[1]>u-2),m=t[0]===f[0]&&t[1]===f[1]&&s[0]===h[0]&&s[1]===h[1];if(m||r&&v)break;o=e.crossings[a]}d===1e4&&I8.log("Infinite loop in contour?");var b=U4(l[0],l[l.length-1],n,i),p=0,k=.2*e.smoothing,M=[],T=0,L,x,C,S,g,P,E,z,q,V,G;for(d=1;d<l.length;d++)E=jbt(l[d],l[d-1]),p+=E,M.push(E);var Z=p/M.length*k;function j(ie){return l[ie%l.length]}for(d=l.length-2;d>=T;d--)if(L=M[d],L<Z){for(C=0,x=d-1;x>=T&&L+M[x]<Z;x--)L+=M[x];if(b&&d===l.length-2)for(C=0;C<x&&L+M[C]<Z;C++)L+=M[C];g=d-x+C+1,P=Math.floor((d+x+C+2)/2),!b&&d===l.length-2?S=l[l.length-1]:!b&&x===-1?S=l[0]:g%2?S=j(P):S=[(j(P)[0]+j(P+1)[0])/2,(j(P)[1]+j(P+1)[1])/2],l.splice(x+1,d-x+1,S),d=x+1,C&&(T=C),b&&(d===l.length-2?l[C]=l[l.length-1]:d===0&&(l[l.length-1]=l[0]))}for(l.splice(0,T),d=0;d<l.length;d++)l[d].length=2;if(!(l.length<2))if(b)l.pop(),e.paths.push(l);else{r||I8.log("Unclosed interior contour?",e.level,f.join(","),l.join("L"));var N=!1;for(z=0;z<e.edgepaths.length;z++)if(V=e.edgepaths[z],!N&&U4(V[0],l[l.length-1],n,i)){l.pop(),N=!0;var H=!1;for(q=0;q<e.edgepaths.length;q++)if(G=e.edgepaths[q],U4(G[G.length-1],l[0],n,i)){H=!0,l.shift(),e.edgepaths.splice(z,1),q===z?e.paths.push(l.concat(G)):(q>z&&q--,e.edgepaths[q]=G.concat(l,V));break}H||(e.edgepaths[z]=l.concat(V))}for(z=0;z<e.edgepaths.length&&!N;z++)V=e.edgepaths[z],U4(V[V.length-1],l[0],n,i)&&(l.shift(),e.edgepaths[z]=V.concat(l),N=!0);N||e.edgepaths.push(l)}}function Wbt(e,t,r){var n=0,i=0;return e>20&&t?e===208||e===1114?n=r[0]===0?1:-1:i=r[1]===0?1:-1:GT.BOTTOMSTART.indexOf(e)!==-1?i=1:GT.LEFTSTART.indexOf(e)!==-1?n=1:GT.TOPSTART.indexOf(e)!==-1?i=-1:n=-1,[n,i]}function ybe(e,t,r){var n=t[0]+Math.max(r[0],0),i=t[1]+Math.max(r[1],0),a=e.z[i][n],o=e.xaxis,s=e.yaxis;if(r[1]){var l=(e.level-a)/(e.z[i][n+1]-a),u=(l!==1?(1-l)*o.c2l(e.x[n]):0)+(l!==0?l*o.c2l(e.x[n+1]):0);return[o.c2p(o.l2c(u),!0),s.c2p(e.y[i],!0),n+l,i]}else{var c=(e.level-a)/(e.z[i+1][n]-a),f=(c!==1?(1-c)*s.c2l(e.y[i]):0)+(c!==0?c*s.c2l(e.y[i+1]):0);return[o.c2p(e.x[n],!0),s.c2p(s.l2c(f),!0),n,i+c]}}});var Tbe=ye((Ocr,wbe)=>{"use strict";var EG=E8(),Xbt=Eo();wbe.exports={"[]":xbe("[]"),"][":xbe("]["),">":kG(">"),"<":kG("<"),"=":kG("=")};function bbe(e,t){var r=Array.isArray(t),n;function i(a){return Xbt(a)?+a:null}return EG.COMPARISON_OPS2.indexOf(e)!==-1?n=i(r?t[0]:t):EG.INTERVAL_OPS.indexOf(e)!==-1?n=r?[i(t[0]),i(t[1])]:[i(t),i(t)]:EG.SET_OPS.indexOf(e)!==-1&&(n=r?t.map(i):[i(t)]),n}function xbe(e){return function(t){t=bbe(e,t);var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return{start:r,end:n,size:n-r}}}function kG(e){return function(t){return t=bbe(e,t),{start:t,end:1/0,size:1/0}}}});var CG=ye((Bcr,Sbe)=>{"use strict";var Abe=Pr(),Zbt=Tbe(),Ybt=B4();Sbe.exports=function(t,r,n){for(var i=t.type==="constraint"?Zbt[t._operation](t.value):t,a=i.size,o=[],s=Ybt(i),l=n.trace._carpetTrace,u=l?{xaxis:l.aaxis,yaxis:l.baxis,x:n.a,y:n.b}:{xaxis:r.xaxis,yaxis:r.yaxis,x:n.x,y:n.y},c=i.start;c<s;c+=a)if(o.push(Abe.extendFlat({level:c,crossings:{},starts:[],edgepaths:[],paths:[],z:n.z,smoothing:n.trace.line.smoothing},u)),o.length>1e3){Abe.warn("Too many contours, clipping at 1000",t);break}return o}});var LG=ye((Ncr,Ebe)=>{"use strict";var HT=Pr();Ebe.exports=function(e,t){var r,n,i,a=function(l){return l.reverse()},o=function(l){return l};switch(t){case"=":case"<":return e;case">":for(e.length!==1&&HT.warn("Contour data invalid for the specified inequality operation."),n=e[0],r=0;r<n.edgepaths.length;r++)n.edgepaths[r]=a(n.edgepaths[r]);for(r=0;r<n.paths.length;r++)n.paths[r]=a(n.paths[r]);for(r=0;r<n.starts.length;r++)n.starts[r]=a(n.starts[r]);return e;case"][":var s=a;a=o,o=s;case"[]":for(e.length!==2&&HT.warn("Contour data invalid for the specified inequality range operation."),n=Mbe(e[0]),i=Mbe(e[1]),r=0;r<n.edgepaths.length;r++)n.edgepaths[r]=a(n.edgepaths[r]);for(r=0;r<n.paths.length;r++)n.paths[r]=a(n.paths[r]);for(r=0;r<n.starts.length;r++)n.starts[r]=a(n.starts[r]);for(;i.edgepaths.length;)n.edgepaths.push(o(i.edgepaths.shift()));for(;i.paths.length;)n.paths.push(o(i.paths.shift()));for(;i.starts.length;)n.starts.push(o(i.starts.shift()));return[n]}};function Mbe(e){return HT.extendFlat({},e,{edgepaths:HT.extendDeep([],e.edgepaths),paths:HT.extendDeep([],e.paths),starts:HT.extendDeep([],e.starts)})}});var PG=ye((Ucr,kbe)=>{"use strict";kbe.exports=function(e,t){var r=e[0],n=r.z,i;switch(t.type){case"levels":var a=Math.min(n[0][0],n[0][1]);for(i=0;i<e.length;i++){var o=e[i];o.prefixBoundary=!o.edgepaths.length&&(a>o.level||o.starts.length&&a===o.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,l=r.y.length,u=-1/0,c=1/0;for(i=0;i<l;i++)c=Math.min(c,n[i][0]),c=Math.min(c,n[i][s-1]),u=Math.max(u,n[i][0]),u=Math.max(u,n[i][s-1]);for(i=1;i<s-1;i++)c=Math.min(c,n[0][i]),c=Math.min(c,n[l-1][i]),u=Math.max(u,n[0][i]),u=Math.max(u,n[l-1][i]);var f=t.value,h,d;switch(t._operation){case">":f>u&&(r.prefixBoundary=!0);break;case"<":(f<c||r.starts.length&&f===c)&&(r.prefixBoundary=!0);break;case"[]":h=Math.min(f[0],f[1]),d=Math.max(f[0],f[1]),(d<c||h>u||r.starts.length&&d===c)&&(r.prefixBoundary=!0);break;case"][":h=Math.min(f[0],f[1]),d=Math.max(f[0],f[1]),h<c&&d>u&&(r.prefixBoundary=!0);break}break}}});var R8=ye(jv=>{"use strict";var G4=qa(),zd=Pr(),jy=So(),Kbt=tc(),Pbe=Zl(),Cbe=ho(),Lbe=xm(),Jbt=y8(),Ibe=SG(),Rbe=MG(),$bt=CG(),Qbt=LG(),Dbe=PG(),V4=N4(),Um=V4.LABELOPTIMIZER;jv.plot=function(t,r,n,i){var a=r.xaxis,o=r.yaxis;zd.makeTraceGroups(i,n,"contour").each(function(s){var l=G4.select(this),u=s[0],c=u.trace,f=u.x,h=u.y,d=c.contours,v=$bt(d,r,u),m=zd.ensureSingle(l,"g","heatmapcoloring"),b=[];d.coloring==="heatmap"&&(b=[s]),Jbt(t,r,b,m),Ibe(v),Rbe(v);var p=a.c2p(f[0],!0),k=a.c2p(f[f.length-1],!0),M=o.c2p(h[0],!0),T=o.c2p(h[h.length-1],!0),L=[[p,T],[k,T],[k,M],[p,M]],x=v;d.type==="constraint"&&(x=Qbt(v,d._operation)),e2t(l,L,d),t2t(l,x,L,d),r2t(l,v,t,u,d),n2t(l,r,t,u,L)})};function e2t(e,t,r){var n=zd.ensureSingle(e,"g","contourbg"),i=n.selectAll("path").data(r.coloring==="fill"?[0]:[]);i.enter().append("path"),i.exit().remove(),i.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function t2t(e,t,r,n){var i=n.coloring==="fill"||n.type==="constraint"&&n._operation!=="=",a="M"+r.join("L")+"Z";i&&Dbe(t,n);var o=zd.ensureSingle(e,"g","contourfill"),s=o.selectAll("path").data(i?t:[]);s.enter().append("path"),s.exit().remove(),s.each(function(l){var u=(l.prefixBoundary?a:"")+Fbe(l,r);u?G4.select(this).attr("d",u).style("stroke","none"):G4.select(this).remove()})}function Fbe(e,t){var r="",n=0,i=e.edgepaths.map(function(p,k){return k}),a=!0,o,s,l,u,c,f;function h(p){return Math.abs(p[1]-t[0][1])<.01}function d(p){return Math.abs(p[1]-t[2][1])<.01}function v(p){return Math.abs(p[0]-t[0][0])<.01}function m(p){return Math.abs(p[0]-t[2][0])<.01}for(;i.length;){for(f=jy.smoothopen(e.edgepaths[n],e.smoothing),r+=a?f:f.replace(/^M/,"L"),i.splice(i.indexOf(n),1),o=e.edgepaths[n][e.edgepaths[n].length-1],u=-1,l=0;l<4;l++){if(!o){zd.log("Missing end?",n,e);break}for(h(o)&&!m(o)?s=t[1]:v(o)?s=t[0]:d(o)?s=t[3]:m(o)&&(s=t[2]),c=0;c<e.edgepaths.length;c++){var b=e.edgepaths[c][0];Math.abs(o[0]-s[0])<.01?Math.abs(o[0]-b[0])<.01&&(b[1]-o[1])*(s[1]-b[1])>=0&&(s=b,u=c):Math.abs(o[1]-s[1])<.01?Math.abs(o[1]-b[1])<.01&&(b[0]-o[0])*(s[0]-b[0])>=0&&(s=b,u=c):zd.log("endpt to newendpt is not vert. or horz.",o,s,b)}if(o=s,u>=0)break;r+="L"+s}if(u===e.edgepaths.length){zd.log("unclosed perimeter path");break}n=u,a=i.indexOf(n)===-1,a&&(n=i[0],r+="Z")}for(n=0;n<e.paths.length;n++)r+=jy.smoothclosed(e.paths[n],e.smoothing);return r}function r2t(e,t,r,n,i){var a=r._context.staticPlot,o=zd.ensureSingle(e,"g","contourlines"),s=i.showlines!==!1,l=i.showlabels,u=s&&l,c=jv.createLines(o,s||l,t,a),f=jv.createLineClip(o,u,r,n.trace.uid),h=e.selectAll("g.contourlabels").data(l?[0]:[]);if(h.exit().remove(),h.enter().append("g").classed("contourlabels",!0),l){var d=[],v=[];zd.clearLocationCache();var m=jv.labelFormatter(r,n),b=jy.tester.append("text").attr("data-notex",1).call(jy.font,i.labelfont),p=t[0].xaxis,k=t[0].yaxis,M=p._length,T=k._length,L=p.range,x=k.range,C=zd.aggNums(Math.min,null,n.x),S=zd.aggNums(Math.max,null,n.x),g=zd.aggNums(Math.min,null,n.y),P=zd.aggNums(Math.max,null,n.y),E=Math.max(p.c2p(C,!0),0),z=Math.min(p.c2p(S,!0),M),q=Math.max(k.c2p(P,!0),0),V=Math.min(k.c2p(g,!0),T),G={};L[0]<L[1]?(G.left=E,G.right=z):(G.left=z,G.right=E),x[0]<x[1]?(G.top=q,G.bottom=V):(G.top=V,G.bottom=q),G.middle=(G.top+G.bottom)/2,G.center=(G.left+G.right)/2,d.push([[G.left,G.top],[G.right,G.top],[G.right,G.bottom],[G.left,G.bottom]]);var Z=Math.sqrt(M*M+T*T),j=V4.LABELDISTANCE*Z/Math.max(1,t.length/V4.LABELINCREASE);c.each(function(N){var H=jv.calcTextOpts(N.level,m,b,r);G4.select(this).selectAll("path").each(function(){var ie=this,ae=zd.getVisibleSegment(ie,G,H.height/2);if(ae&&!(ae.len<(H.width+H.height)*V4.LABELMIN))for(var _e=Math.min(Math.ceil(ae.len/j),V4.LABELMAX),Ee=0;Ee<_e;Ee++){var Ce=jv.findBestTextLocation(ie,ae,H,v,G);if(!Ce)break;jv.addLabelData(Ce,H,v,d)}})}),b.remove(),jv.drawLabels(h,v,r,f,u?d:null)}l&&!s&&c.remove()}jv.createLines=function(e,t,r,n){var i=r[0].smoothing,a=e.selectAll("g.contourlevel").data(t?r:[]);if(a.exit().remove(),a.enter().append("g").classed("contourlevel",!0),t){var o=a.selectAll("path.openline").data(function(l){return l.pedgepaths||l.edgepaths});o.exit().remove(),o.enter().append("path").classed("openline",!0),o.attr("d",function(l){return jy.smoothopen(l,i)}).style("stroke-miterlimit",1).style("vector-effect",n?"none":"non-scaling-stroke");var s=a.selectAll("path.closedline").data(function(l){return l.ppaths||l.paths});s.exit().remove(),s.enter().append("path").classed("closedline",!0),s.attr("d",function(l){return jy.smoothclosed(l,i)}).style("stroke-miterlimit",1).style("vector-effect",n?"none":"non-scaling-stroke")}return a};jv.createLineClip=function(e,t,r,n){var i=r._fullLayout._clips,a=t?"clipline"+n:null,o=i.selectAll("#"+a).data(t?[0]:[]);return o.exit().remove(),o.enter().append("clipPath").classed("contourlineclip",!0).attr("id",a),jy.setClipUrl(e,a,r),o};jv.labelFormatter=function(e,t){var r=e._fullLayout,n=t.trace,i=n.contours,a={type:"linear",_id:"ycontour",showexponent:"all",exponentformat:"B"};if(i.labelformat)a.tickformat=i.labelformat,Lbe(a,r);else{var o=Kbt.extractOpts(n);if(o&&o.colorbar&&o.colorbar._axis)a=o.colorbar._axis;else{if(i.type==="constraint"){var s=i.value;zd.isArrayOrTypedArray(s)?a.range=[s[0],s[s.length-1]]:a.range=[s,s]}else a.range=[i.start,i.end],a.nticks=(i.end-i.start)/i.size;a.range[0]===a.range[1]&&(a.range[1]+=a.range[0]||1),a.nticks||(a.nticks=1e3),Lbe(a,r),Cbe.prepTicks(a),a._tmin=null,a._tmax=null}}return function(l){return Cbe.tickText(a,l).text}};jv.calcTextOpts=function(e,t,r,n){var i=t(e);r.text(i).call(Pbe.convertToTspans,n);var a=r.node(),o=jy.bBox(a,!0);return{text:i,width:o.width,height:o.height,fontSize:+a.style["font-size"].replace("px",""),level:e,dy:(o.top+o.bottom)/2}};jv.findBestTextLocation=function(e,t,r,n,i){var a=r.width,o,s,l,u,c;t.isClosed?(s=t.len/Um.INITIALSEARCHPOINTS,o=t.min+s/2,l=t.max):(s=(t.len-a)/(Um.INITIALSEARCHPOINTS+1),o=t.min+s+a/2,l=t.max-(s+a)/2);for(var f=1/0,h=0;h<Um.ITERATIONS;h++){for(var d=o;d<l;d+=s){var v=zd.getTextLocation(e,t.total,d,a),m=i2t(v,r,n,i);m<f&&(f=m,c=v,u=d)}if(f>Um.MAXCOST*2)break;h&&(s/=2),o=u-s/2,l=o+s*1.5}if(f<=Um.MAXCOST)return c};function i2t(e,t,r,n){var i=t.width/2,a=t.height/2,o=e.x,s=e.y,l=e.theta,u=Math.cos(l)*i,c=Math.sin(l)*i,f=(o>n.center?n.right-o:o-n.left)/(u+Math.abs(Math.sin(l)*a)),h=(s>n.middle?n.bottom-s:s-n.top)/(Math.abs(c)+Math.cos(l)*a);if(f<1||h<1)return 1/0;var d=Um.EDGECOST*(1/(f-1)+1/(h-1));d+=Um.ANGLECOST*l*l;for(var v=o-u,m=s-c,b=o+u,p=s+c,k=0;k<r.length;k++){var M=r[k],T=Math.cos(M.theta)*M.width/2,L=Math.sin(M.theta)*M.width/2,x=zd.segmentDistance(v,m,b,p,M.x-T,M.y-L,M.x+T,M.y+L)*2/(t.height+M.height),C=M.level===t.level,S=C?Um.SAMELEVELDISTANCE:1;if(x<=S)return 1/0;var g=Um.NEIGHBORCOST*(C?Um.SAMELEVELFACTOR:1);d+=g/(x-S)}return d}jv.addLabelData=function(e,t,r,n){var i=t.fontSize,a=t.width+i/3,o=Math.max(0,t.height-i/3),s=e.x,l=e.y,u=e.theta,c=Math.sin(u),f=Math.cos(u),h=function(v,m){return[s+v*f-m*c,l+v*c+m*f]},d=[h(-a/2,-o/2),h(-a/2,o/2),h(a/2,o/2),h(a/2,-o/2)];r.push({text:t.text,x:s,y:l,dy:t.dy,theta:u,level:t.level,width:a,height:o}),n.push(d)};jv.drawLabels=function(e,t,r,n,i){var a=e.selectAll("text").data(t,function(u){return u.text+","+u.x+","+u.y+","+u.theta});if(a.exit().remove(),a.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each(function(u){var c=u.x+Math.sin(u.theta)*u.dy,f=u.y-Math.cos(u.theta)*u.dy;G4.select(this).text(u.text).attr({x:c,y:f,transform:"rotate("+180*u.theta/Math.PI+" "+c+" "+f+")"}).call(Pbe.convertToTspans,r)}),i){for(var o="",s=0;s<i.length;s++)o+="M"+i[s].join("L")+"Z";var l=zd.ensureSingle(n,"path","");l.attr("d",o)}};function n2t(e,t,r,n,i){var a=n.trace,o=r._fullLayout._clips,s="clip"+a.uid,l=o.selectAll("#"+s).data(a.connectgaps?[]:[0]);if(l.enter().append("clipPath").classed("contourclip",!0).attr("id",s),l.exit().remove(),a.connectgaps===!1){var u={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:t.xaxis,yaxis:t.yaxis,x:n.x,y:n.y,z:a2t(n),smoothing:0};Ibe([u]),Rbe([u]),Dbe([u],{type:"levels"});var c=zd.ensureSingle(l,"path","");c.attr("d",(u.prefixBoundary?"M"+i.join("L")+"Z":"")+Fbe(u,i))}else s=null;jy.setClipUrl(e,s,r)}function a2t(e){var t=e.trace._emptypoints,r=[],n=e.z.length,i=e.z[0].length,a,o=[],s;for(a=0;a<i;a++)o.push(1);for(a=0;a<n;a++)r.push(o.slice());for(a=0;a<t.length;a++)s=t[a],r[s[0]][s[1]]=0;return e.zmask=r,r}});var RG=ye((Gcr,zbe)=>{"use strict";var o2t=qa(),IG=tc(),s2t=B4();zbe.exports=function(t){var r=t.contours,n=r.start,i=s2t(r),a=r.size||1,o=Math.floor((i-n)/a)+1,s=r.coloring==="lines"?0:1,l=IG.extractOpts(t);isFinite(a)||(a=1,o=1);var u=l.reversescale?IG.flipScale(l.colorscale):l.colorscale,c=u.length,f=new Array(c),h=new Array(c),d,v,m=l.min,b=l.max;if(r.coloring==="heatmap"){for(v=0;v<c;v++)d=u[v],f[v]=d[0]*(b-m)+m,h[v]=d[1];var p=o2t.extent([m,b,r.start,r.start+a*(o-1)]),k=p[m<b?0:1],M=p[m<b?1:0];k!==m&&(f.splice(0,0,k),h.splice(0,0,h[0])),M!==b&&(f.push(M),h.push(h[h.length-1]))}else{var T=t._input&&typeof t._input.zmin=="number"&&typeof t._input.zmax=="number";for(T&&(n<=m||i>=b)&&(n<=m&&(n=m),i>=b&&(i=b),o=Math.floor((i-n)/a)+1,s=0),v=0;v<c;v++)d=u[v],f[v]=(d[0]*(o+s-1)-s/2)*a+n,h[v]=d[1];(T||t.autocontour)&&(f[0]>m&&(f.unshift(m),h.unshift(h[0])),f[f.length-1]<b&&(f.push(b),h.push(h[h.length-1])))}return IG.makeColorScaleFunc({domain:f,range:h},{noNumericCheck:!0})}});var F8=ye((Hcr,Obe)=>{"use strict";var D8=qa(),qbe=So(),l2t=_8(),u2t=RG();Obe.exports=function(t){var r=D8.select(t).selectAll("g.contour");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=D8.select(this),a=n[0].trace,o=a.contours,s=a.line,l=o.size||1,u=o.start,c=o.type==="constraint",f=!c&&o.coloring==="lines",h=!c&&o.coloring==="fill",d=f||h?u2t(a):null;i.selectAll("g.contourlevel").each(function(b){D8.select(this).selectAll("path").call(qbe.lineGroupStyle,s.width,f?d(b.level):s.color,s.dash)});var v=o.labelfont;if(i.selectAll("g.contourlabels text").each(function(b){qbe.font(D8.select(this),{weight:v.weight,style:v.style,variant:v.variant,textcase:v.textcase,lineposition:v.lineposition,shadow:v.shadow,family:v.family,size:v.size,color:v.color||(f?d(b.level):s.color)})}),c)i.selectAll("g.contourfill path").style("fill",a.fillcolor);else if(h){var m;i.selectAll("g.contourfill path").style("fill",function(b){return m===void 0&&(m=b.level),d(b.level+.5*l)}),m===void 0&&(m=u),i.selectAll("g.contourbg path").style("fill",d(m-.5*l))}}),l2t(t)}});var z8=ye((jcr,Nbe)=>{"use strict";var Bbe=tc(),c2t=RG(),f2t=B4();function h2t(e,t,r){var n=t.contours,i=t.line,a=n.size||1,o=n.coloring,s=c2t(t,{isColorbar:!0});if(o==="heatmap"){var l=Bbe.extractOpts(t);r._fillgradient=l.reversescale?Bbe.flipScale(l.colorscale):l.colorscale,r._zrange=[l.min,l.max]}else o==="fill"&&(r._fillcolor=s);r._line={color:o==="lines"?s:i.color,width:n.showlines!==!1?i.width:0,dash:i.dash},r._levels={start:n.start,end:f2t(n),size:a}}Nbe.exports={min:"zmin",max:"zmax",calc:h2t}});var DG=ye((Wcr,Ube)=>{"use strict";var q8=ka(),d2t=b8();Ube.exports=function(t,r,n,i,a){a||(a={}),a.isContour=!0;var o=d2t(t,r,n,i,a);return o&&o.forEach(function(s){var l=s.trace;l.contours.type==="constraint"&&(l.fillcolor&&q8.opacity(l.fillcolor)?s.color=q8.addOpacity(l.fillcolor,1):l.contours.showlines&&q8.opacity(l.line.color)&&(s.color=q8.addOpacity(l.line.color,1)))}),o}});var Gbe=ye((Xcr,Vbe)=>{"use strict";Vbe.exports={attributes:_G(),supplyDefaults:ube(),crossTraceDefaults:A8(),calc:AG(),plot:R8().plot,layerName:"contourlayer",style:F8(),colorbar:z8(),hoverPoints:DG(),moduleType:"trace",name:"histogram2dcontour",basePlotModule:mh(),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}});var jbe=ye((Zcr,Hbe)=>{"use strict";Hbe.exports=Gbe()});var FG=ye((Ycr,Jbe)=>{"use strict";var Wbe=Eo(),v2t=xG(),Ybe=ka(),Xbe=Ybe.addOpacity,p2t=Ybe.opacity,Kbe=E8(),Zbe=Pr().isArrayOrTypedArray,g2t=Kbe.CONSTRAINT_REDUCTION,m2t=Kbe.COMPARISON_OPS2;Jbe.exports=function(t,r,n,i,a,o){var s=r.contours,l,u,c,f=n("contours.operation");if(s._operation=g2t[f],y2t(n,s),f==="="?l=s.showlines=!0:(l=n("contours.showlines"),c=n("fillcolor",Xbe((t.line||{}).color||a,.5))),l){var h=c&&p2t(c)?Xbe(r.fillcolor,1):a;u=n("line.color",h),n("line.width",2),n("line.dash")}n("line.smoothing"),v2t(n,i,u,o)};function y2t(e,t){var r;m2t.indexOf(t.operation)===-1?(e("contours.value",[0,1]),Zbe(t.value)?t.value.length>2?t.value=t.value.slice(2):t.length===0?t.value=[0,1]:t.length<2?(r=parseFloat(t.value[0]),t.value=[r,r+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:Wbe(t.value)&&(r=parseFloat(t.value),t.value=[r,r+1])):(e("contours.value",0),Wbe(t.value)||(Zbe(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}});var e2e=ye((Kcr,Qbe)=>{"use strict";var zG=Pr(),_2t=a8(),x2t=Dg(),b2t=FG(),w2t=C8(),T2t=L8(),A2t=R4(),$be=O4();Qbe.exports=function(t,r,n,i){function a(u,c){return zG.coerce(t,r,$be,u,c)}function o(u){return zG.coerce2(t,r,$be,u)}var s=_2t(t,r,a,i);if(!s){r.visible=!1;return}x2t(t,r,i,a),a("xhoverformat"),a("yhoverformat"),a("text"),a("hovertext"),a("hoverongaps"),a("hovertemplate"),a("hovertemplatefallback");var l=a("contours.type")==="constraint";a("connectgaps",zG.isArray1D(r.z)),l?b2t(t,r,a,i,n):(w2t(t,r,a,o),T2t(t,r,a,i)),r.contours&&r.contours.coloring==="heatmap"&&A2t(a,i),a("zorder")}});var r2e=ye((Jcr,t2e)=>{"use strict";t2e.exports={attributes:O4(),supplyDefaults:e2e(),calc:AG(),plot:R8().plot,style:F8(),colorbar:z8(),hoverPoints:DG(),moduleType:"trace",name:"contour",basePlotModule:mh(),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}});var n2e=ye(($cr,i2e)=>{"use strict";i2e.exports=r2e()});var qG=ye((Qcr,l2e)=>{"use strict";var{hovertemplateAttrs:S2t,texttemplateAttrs:M2t,templatefallbackAttrs:a2e}=Ll(),E2t=Pg(),o0=pf(),k2t=Gl(),o2e=Tu(),C2t=Pd().dash,F_=Ao().extendFlat,X0=o0.marker,H4=o0.line,s2e=X0.line;l2e.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:F_({},o0.mode,{dflt:"markers"}),text:F_({},o0.text,{}),texttemplate:M2t({editType:"plot"},{keys:["a","b","c","text"]}),texttemplatefallback:a2e({editType:"plot"}),hovertext:F_({},o0.hovertext,{}),line:{color:H4.color,width:H4.width,dash:C2t,backoff:H4.backoff,shape:F_({},H4.shape,{values:["linear","spline"]}),smoothing:H4.smoothing,editType:"calc"},connectgaps:o0.connectgaps,cliponaxis:o0.cliponaxis,fill:F_({},o0.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:E2t(),marker:F_({symbol:X0.symbol,opacity:X0.opacity,angle:X0.angle,angleref:X0.angleref,standoff:X0.standoff,maxdisplayed:X0.maxdisplayed,size:X0.size,sizeref:X0.sizeref,sizemin:X0.sizemin,sizemode:X0.sizemode,line:F_({width:s2e.width,dash:s2e.dash,editType:"calc"},o2e("marker.line")),gradient:X0.gradient,editType:"calc"},o2e("marker")),textfont:o0.textfont,textposition:o0.textposition,selected:o0.selected,unselected:o0.unselected,hoverinfo:F_({},k2t.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:o0.hoveron,hovertemplate:S2t(),hovertemplatefallback:a2e()}});var h2e=ye((efr,f2e)=>{"use strict";var u2e=Pr(),L2t=Pm(),jT=Ru(),P2t=$p(),I2t=D0(),c2e=uT(),R2t=F0(),D2t=Fg(),F2t=qG();f2e.exports=function(t,r,n,i){function a(h,d){return u2e.coerce(t,r,F2t,h,d)}var o=a("a"),s=a("b"),l=a("c"),u;if(o?(u=o.length,s?(u=Math.min(u,s.length),l&&(u=Math.min(u,l.length))):l?u=Math.min(u,l.length):u=0):s&&l&&(u=Math.min(s.length,l.length)),!u){r.visible=!1;return}r._length=u,a("sum"),a("text"),a("hovertext"),r.hoveron!=="fills"&&(a("hovertemplate"),a("hovertemplatefallback"));var c=u<L2t.PTS_LINESONLY?"lines+markers":"lines";a("mode",c),jT.hasMarkers(r)&&P2t(t,r,n,i,a,{gradient:!0}),jT.hasLines(r)&&(I2t(t,r,n,i,a,{backoff:!0}),c2e(t,r,a),a("connectgaps")),jT.hasText(r)&&(a("texttemplate"),a("texttemplatefallback"),R2t(t,r,i,a));var f=[];(jT.hasMarkers(r)||jT.hasText(r))&&(a("cliponaxis"),a("marker.maxdisplayed"),f.push("points")),a("fill"),r.fill!=="none"&&(D2t(t,r,n,a),jT.hasLines(r)||c2e(t,r,a)),(r.fill==="tonext"||r.fill==="toself")&&f.push("fills"),a("hoveron",f.join("+")||"points"),u2e.coerceSelectionMarkerOpacity(r,a)}});var v2e=ye((tfr,d2e)=>{"use strict";var OG=ho();d2e.exports=function(t,r,n){var i={},a=n[r.subplot]._subplot;return i.aLabel=OG.tickText(a.aaxis,t.a,!0).text,i.bLabel=OG.tickText(a.baxis,t.b,!0).text,i.cLabel=OG.tickText(a.caxis,t.c,!0).text,i}});var y2e=ye((rfr,m2e)=>{"use strict";var BG=Eo(),z2t=z0(),q2t=Dm(),O2t=q0(),B2t=O0().calcMarkerSize,p2e=["a","b","c"],g2e={a:["b","c"],b:["a","c"],c:["a","b"]};m2e.exports=function(t,r){var n=t._fullLayout[r.subplot],i=n.sum,a=r.sum||i,o={a:r.a,b:r.b,c:r.c},s=r.ids,l,u,c,f,h,d;for(l=0;l<p2e.length;l++)if(c=p2e[l],!o[c]){for(h=o[g2e[c][0]],d=o[g2e[c][1]],f=new Array(h.length),u=0;u<h.length;u++)f[u]=a-h[u]-d[u];o[c]=f}var v=r._length,m=new Array(v),b,p,k,M,T,L;for(l=0;l<v;l++)b=o.a[l],p=o.b[l],k=o.c[l],BG(b)&&BG(p)&&BG(k)?(b=+b,p=+p,k=+k,M=i/(b+p+k),M!==1&&(b*=M,p*=M,k*=M),L=b,T=k-p,m[l]={x:T,y:L,a:b,b:p,c:k},s&&(m[l].id=s[l])):m[l]={x:!1,y:!1};return B2t(r,v),z2t(t,r),q2t(m,r),O2t(m,r),m}});var x2e=ye((ifr,_2e)=>{"use strict";var N2t=pT();_2e.exports=function(t,r,n){var i=r.plotContainer;i.select(".scatterlayer").selectAll("*").remove();for(var a=r.xaxis,o=r.yaxis,s={xaxis:a,yaxis:o,plot:i,layerClipId:r._hasClipOnAxisFalse?r.clipIdRelative:null},l=r.layers.frontplot.select("g.scatterlayer"),u=0;u<n.length;u++){var c=n[u];c.length&&(c[0].trace._xA=a,c[0].trace._yA=o)}N2t(t,s,n,l)}});var w2e=ye((nfr,b2e)=>{"use strict";var U2t=_T();b2e.exports=function(t,r,n,i){var a=U2t(t,r,n,i);if(!a||a[0].index===!1)return;var o=a[0];if(o.index===void 0){var s=1-o.y0/t.ya._length,l=t.xa._length,u=l*s/2,c=l-u;return o.x0=Math.max(Math.min(o.x0,c),u),o.x1=Math.max(Math.min(o.x1,c),u),a}var f=o.cd[o.index],h=o.trace,d=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var v={};v[h.subplot]={_subplot:d};var m=h._module.formatLabels(f,h,v);o.aLabel=m.aLabel,o.bLabel=m.bLabel,o.cLabel=m.cLabel;var b=f.hi||h.hoverinfo,p=[];function k(T,L){p.push(T._hovertitle+": "+L)}if(!h.hovertemplate){var M=b.split("+");M.indexOf("all")!==-1&&(M=["a","b","c"]),M.indexOf("a")!==-1&&k(d.aaxis,o.aLabel),M.indexOf("b")!==-1&&k(d.baxis,o.bLabel),M.indexOf("c")!==-1&&k(d.caxis,o.cLabel)}return o.extraText=p.join("<br>"),o.hovertemplate=h.hovertemplate,a}});var A2e=ye((afr,T2e)=>{"use strict";T2e.exports=function(t,r,n,i,a){if(r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),i[a]){var o=i[a];t.a=o.a,t.b=o.b,t.c=o.c}else t.a=r.a,t.b=r.b,t.c=r.c;return t}});var F2e=ye((ofr,D2e)=>{"use strict";var L2e=qa(),V2t=fd(),NG=Oa(),Wy=Pr(),Vm=Wy.strTranslate,O8=Wy._,XT=ka(),B8=So(),j4=xm(),UG=Ao().extendFlat,G2t=Mc(),z_=ho(),S2e=yv(),M2e=ef(),P2e=Cg(),E2e=P2e.freeMode,H2t=P2e.rectMode,VG=qb(),j2t=qf().prepSelect,W2t=qf().selectOnClick,X2t=qf().clearOutline,Z2t=qf().clearSelectionsCache,I2e=Rh();function R2e(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.updateFx(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}D2e.exports=R2e;var Gm=R2e.prototype;Gm.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}};Gm.plot=function(e,t){var r=this,n=t[r.id],i=t._size;r._hasClipOnAxisFalse=!1;for(var a=0;a<e.length;a++){var o=e[a][0].trace;if(o.cliponaxis===!1){r._hasClipOnAxisFalse=!0;break}}r.updateLayers(n),r.adjustLayout(n,i),G2t.generalUpdatePerTraceModule(r.graphDiv,r,e,n),r.layers.plotbg.select("path").call(XT.fill,n.bgcolor)};Gm.makeFramework=function(e){var t=this,r=t.graphDiv,n=e[t.id],i=t.clipId="clip"+t.layoutId+t.id,a=t.clipIdRelative="clip-relative"+t.layoutId+t.id;t.clipDef=Wy.ensureSingleById(e._clips,"clipPath",i,function(o){o.append("path").attr("d","M0,0Z")}),t.clipDefRelative=Wy.ensureSingleById(e._clips,"clipPath",a,function(o){o.append("path").attr("d","M0,0Z")}),t.plotContainer=Wy.ensureSingle(t.container,"g",t.id),t.updateLayers(n),B8.setClipUrl(t.layers.backplot,i,r),B8.setClipUrl(t.layers.grids,i,r)};Gm.updateFx=function(e){e._ternarylayer.selectAll("g.toplevel").style("cursor",e.dragmode==="pan"?"move":"crosshair")};Gm.updateLayers=function(e){var t=this,r=t.layers,n=["draglayer","plotbg","backplot","grids"];e.aaxis.layer==="below traces"&&n.push("aaxis","aline"),e.baxis.layer==="below traces"&&n.push("baxis","bline"),e.caxis.layer==="below traces"&&n.push("caxis","cline"),n.push("frontplot"),e.aaxis.layer==="above traces"&&n.push("aaxis","aline"),e.baxis.layer==="above traces"&&n.push("baxis","bline"),e.caxis.layer==="above traces"&&n.push("caxis","cline");var i=t.plotContainer.selectAll("g.toplevel").data(n,String),a=["agrid","bgrid","cgrid"];i.enter().append("g").attr("class",function(o){return"toplevel "+o}).each(function(o){var s=L2e.select(this);r[o]=s,o==="frontplot"?s.append("g").classed("scatterlayer",!0):o==="backplot"?s.append("g").classed("maplayer",!0):o==="plotbg"?s.append("path").attr("d","M0,0Z"):o==="aline"||o==="bline"||o==="cline"?s.append("path"):o==="grids"&&a.forEach(function(l){r[l]=s.append("g").classed("grid "+l,!0)})}),i.order()};var WT=Math.sqrt(4/3);Gm.adjustLayout=function(e,t){var r=this,n=e.domain,i=(n.x[0]+n.x[1])/2,a=(n.y[0]+n.y[1])/2,o=n.x[1]-n.x[0],s=n.y[1]-n.y[0],l=o*t.w,u=s*t.h,c=e.sum,f=e.aaxis.min,h=e.baxis.min,d=e.caxis.min,v,m,b,p,k,M;l>WT*u?(p=u,b=p*WT):(b=l,p=b/WT),k=o*b/l,M=s*p/u,v=t.l+t.w*i-b/2,m=t.t+t.h*(1-a)-p/2,r.x0=v,r.y0=m,r.w=b,r.h=p,r.sum=c,r.xaxis={type:"linear",range:[f+2*d-c,c-f-2*h],domain:[i-k/2,i+k/2],_id:"x"},j4(r.xaxis,r.graphDiv._fullLayout),r.xaxis.setScale(),r.xaxis.isPtWithinRange=function(V){return V.a>=r.aaxis.range[0]&&V.a<=r.aaxis.range[1]&&V.b>=r.baxis.range[1]&&V.b<=r.baxis.range[0]&&V.c>=r.caxis.range[1]&&V.c<=r.caxis.range[0]},r.yaxis={type:"linear",range:[f,c-h-d],domain:[a-M/2,a+M/2],_id:"y"},j4(r.yaxis,r.graphDiv._fullLayout),r.yaxis.setScale(),r.yaxis.isPtWithinRange=function(){return!0};var T=r.yaxis.domain[0],L=r.aaxis=UG({},e.aaxis,{range:[f,c-h-d],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[T,T+M*WT],anchor:"free",position:0,_id:"y",_length:b});j4(L,r.graphDiv._fullLayout),L.setScale();var x=r.baxis=UG({},e.baxis,{range:[c-f-d,h],side:"bottom",domain:r.xaxis.domain,anchor:"free",position:0,_id:"x",_length:b});j4(x,r.graphDiv._fullLayout),x.setScale();var C=r.caxis=UG({},e.caxis,{range:[c-f-h,d],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[T,T+M*WT],anchor:"free",position:0,_id:"y",_length:b});j4(C,r.graphDiv._fullLayout),C.setScale();var S="M"+v+","+(m+p)+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDef.select("path").attr("d",S),r.layers.plotbg.select("path").attr("d",S);var g="M0,"+p+"h"+b+"l-"+b/2+",-"+p+"Z";r.clipDefRelative.select("path").attr("d",g);var P=Vm(v,m);r.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),r.clipDefRelative.select("path").attr("transform",null);var E=Vm(v-x._offset,m+p);r.layers.baxis.attr("transform",E),r.layers.bgrid.attr("transform",E);var z=Vm(v+b/2,m)+"rotate(30)"+Vm(0,-L._offset);r.layers.aaxis.attr("transform",z),r.layers.agrid.attr("transform",z);var q=Vm(v+b/2,m)+"rotate(-30)"+Vm(0,-C._offset);r.layers.caxis.attr("transform",q),r.layers.cgrid.attr("transform",q),r.drawAxes(!0),r.layers.aline.select("path").attr("d",L.showline?"M"+v+","+(m+p)+"l"+b/2+",-"+p:"M0,0").call(XT.stroke,L.linecolor||"#000").style("stroke-width",(L.linewidth||0)+"px"),r.layers.bline.select("path").attr("d",x.showline?"M"+v+","+(m+p)+"h"+b:"M0,0").call(XT.stroke,x.linecolor||"#000").style("stroke-width",(x.linewidth||0)+"px"),r.layers.cline.select("path").attr("d",C.showline?"M"+(v+b/2)+","+m+"l"+b/2+","+p:"M0,0").call(XT.stroke,C.linecolor||"#000").style("stroke-width",(C.linewidth||0)+"px"),r.graphDiv._context.staticPlot||r.initInteractions(),B8.setClipUrl(r.layers.frontplot,r._hasClipOnAxisFalse?null:r.clipId,r.graphDiv)};Gm.drawAxes=function(e){var t=this,r=t.graphDiv,n=t.id.slice(7)+"title",i=t.layers,a=t.aaxis,o=t.baxis,s=t.caxis;if(t.drawAx(a),t.drawAx(o),t.drawAx(s),e){var l=Math.max(a.showticklabels?a.tickfont.size/2:0,(s.showticklabels?s.tickfont.size*.75:0)+(s.ticks==="outside"?s.ticklen*.87:0)),u=(o.showticklabels?o.tickfont.size:0)+(o.ticks==="outside"?o.ticklen:0)+3;i["a-title"]=VG.draw(r,"a"+n,{propContainer:a,propName:t.id+".aaxis.title.text",placeholder:O8(r,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-a.title.font.size/3-l,"text-anchor":"middle"}}),i["b-title"]=VG.draw(r,"b"+n,{propContainer:o,propName:t.id+".baxis.title.text",placeholder:O8(r,"Click to enter Component B title"),attributes:{x:t.x0-u,y:t.y0+t.h+o.title.font.size*.83+u,"text-anchor":"middle"}}),i["c-title"]=VG.draw(r,"c"+n,{propContainer:s,propName:t.id+".caxis.title.text",placeholder:O8(r,"Click to enter Component C title"),attributes:{x:t.x0+t.w+u,y:t.y0+t.h+s.title.font.size*.83+u,"text-anchor":"middle"}})}};Gm.drawAx=function(e){var t=this,r=t.graphDiv,n=e._name,i=n.charAt(0),a=e._id,o=t.layers[n],s=30,l=i+"tickLayout",u=Y2t(e);t[l]!==u&&(o.selectAll("."+a+"tick").remove(),t[l]=u),e.setScale();var c=z_.calcTicks(e),f=z_.clipEnds(e,c),h=z_.makeTransTickFn(e),d=z_.getTickSigns(e)[2],v=Wy.deg2rad(s),m=d*(e.linewidth||1)/2,b=d*e.ticklen,p=t.w,k=t.h,M=i==="b"?"M0,"+m+"l"+Math.sin(v)*b+","+Math.cos(v)*b:"M"+m+",0l"+Math.cos(v)*b+","+-Math.sin(v)*b,T={a:"M0,0l"+k+",-"+p/2,b:"M0,0l-"+p/2+",-"+k,c:"M0,0l-"+k+","+p/2}[i];z_.drawTicks(r,e,{vals:e.ticks==="inside"?f:c,layer:o,path:M,transFn:h,crisp:!1}),z_.drawGrid(r,e,{vals:f,layer:t.layers[i+"grid"],path:T,transFn:h,crisp:!1}),z_.drawLabels(r,e,{vals:c,layer:o,transFn:h,labelFns:z_.makeLabelFns(e,0,s)})};function Y2t(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}var yd=I2e.MINZOOM/2+.87,K2t="m-0.87,.5h"+yd+"v3h-"+(yd+5.2)+"l"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l2.6,1.5l-"+yd/2+","+yd*.87+"Z",J2t="m0.87,.5h-"+yd+"v3h"+(yd+5.2)+"l-"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l-2.6,1.5l"+yd/2+","+yd*.87+"Z",$2t="m0,1l"+yd/2+","+yd*.87+"l2.6,-1.5l-"+(yd/2+2.6)+",-"+(yd*.87+4.5)+"l-"+(yd/2+2.6)+","+(yd*.87+4.5)+"l2.6,1.5l"+yd/2+",-"+yd*.87+"Z",Q2t="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",k2e=!0;Gm.clearOutline=function(){Z2t(this.dragOptions),X2t(this.dragOptions.gd)};Gm.initInteractions=function(){var e=this,t=e.layers.plotbg.select("path").node(),r=e.graphDiv,n=r._fullLayout._zoomlayer,i,a;this.dragOptions={element:t,gd:r,plotinfo:{id:e.id,domain:r._fullLayout[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis},subplot:e.id,prepFn:function(E,z,q){e.dragOptions.xaxes=[e.xaxis],e.dragOptions.yaxes=[e.yaxis],i=r._fullLayout._invScaleX,a=r._fullLayout._invScaleY;var V=e.dragOptions.dragmode=r._fullLayout.dragmode;E2e(V)?e.dragOptions.minDrag=1:e.dragOptions.minDrag=void 0,V==="zoom"?(e.dragOptions.moveFn=x,e.dragOptions.clickFn=p,e.dragOptions.doneFn=C,k(E,z,q)):V==="pan"?(e.dragOptions.moveFn=g,e.dragOptions.clickFn=p,e.dragOptions.doneFn=P,S(),e.clearOutline(r)):(H2t(V)||E2e(V))&&j2t(E,z,q,e.dragOptions,V)}};var o,s,l,u,c,f,h,d,v,m;function b(E){var z={};return z[e.id+".aaxis.min"]=E.a,z[e.id+".baxis.min"]=E.b,z[e.id+".caxis.min"]=E.c,z}function p(E,z){var q=r._fullLayout.clickmode;C2e(r),E===2&&(r.emit("plotly_doubleclick",null),NG.call("_guiRelayout",r,b({a:0,b:0,c:0}))),q.indexOf("select")>-1&&E===1&&W2t(z,r,[e.xaxis],[e.yaxis],e.id,e.dragOptions),q.indexOf("event")>-1&&M2e.click(r,z,e.id)}function k(E,z,q){var V=t.getBoundingClientRect();o=z-V.left,s=q-V.top,r._fullLayout._calcInverseTransform(r);var G=r._fullLayout._invTransform,Z=Wy.apply3DTransform(G)(o,s);o=Z[0],s=Z[1],l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l,u=e.aaxis.range[1]-l.a,f=V2t(e.graphDiv._fullLayout[e.id].bgcolor).getLuminance(),h="M0,"+e.h+"L"+e.w/2+", 0L"+e.w+","+e.h+"Z",d=!1,v=n.append("path").attr("class","zoombox").attr("transform",Vm(e.x0,e.y0)).style({fill:f>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",h),m=n.append("path").attr("class","zoombox-corners").attr("transform",Vm(e.x0,e.y0)).style({fill:XT.background,stroke:XT.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),e.clearOutline(r)}function M(E,z){return 1-z/e.h}function T(E,z){return 1-(E+(e.h-z)/Math.sqrt(3))/e.w}function L(E,z){return(E-(e.h-z)/Math.sqrt(3))/e.w}function x(E,z){var q=o+E*i,V=s+z*a,G=Math.max(0,Math.min(1,M(o,s),M(q,V))),Z=Math.max(0,Math.min(1,T(o,s),T(q,V))),j=Math.max(0,Math.min(1,L(o,s),L(q,V))),N=(G/2+j)*e.w,H=(1-G/2-Z)*e.w,ie=(N+H)/2,ae=H-N,_e=(1-G)*e.h,Ee=_e-ae/WT;ae<I2e.MINZOOM?(c=l,v.attr("d",h),m.attr("d","M0,0Z")):(c={a:l.a+G*u,b:l.b+Z*u,c:l.c+j*u},v.attr("d",h+"M"+N+","+_e+"H"+H+"L"+ie+","+Ee+"L"+N+","+_e+"Z"),m.attr("d","M"+o+","+s+Q2t+"M"+N+","+_e+K2t+"M"+H+","+_e+J2t+"M"+ie+","+Ee+$2t)),d||(v.transition().style("fill",f>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),m.transition().style("opacity",1).duration(200),d=!0),r.emit("plotly_relayouting",b(c))}function C(){C2e(r),c!==l&&(NG.call("_guiRelayout",r,b(c)),k2e&&r.data&&r._context.showTips&&(Wy.notifier(O8(r,"Double-click to zoom back out"),"long",r),k2e=!1))}function S(){l={a:e.aaxis.range[0],b:e.baxis.range[1],c:e.caxis.range[1]},c=l}function g(E,z){var q=E/e.xaxis._m,V=z/e.yaxis._m;c={a:l.a-V,b:l.b+(q+V)/2,c:l.c-(q-V)/2};var G=[c.a,c.b,c.c].sort(Wy.sorterAsc),Z={a:G.indexOf(c.a),b:G.indexOf(c.b),c:G.indexOf(c.c)};G[0]<0&&(G[1]+G[0]/2<0?(G[2]+=G[0]+G[1],G[0]=G[1]=0):(G[2]+=G[0]/2,G[1]+=G[0]/2,G[0]=0),c={a:G[Z.a],b:G[Z.b],c:G[Z.c]},z=(l.a-c.a)*e.yaxis._m,E=(l.c-c.c-l.b+c.b)*e.xaxis._m);var j=Vm(e.x0+E,e.y0+z);e.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",j);var N=Vm(-E,-z);e.clipDefRelative.select("path").attr("transform",N),e.aaxis.range=[c.a,e.sum-c.b-c.c],e.baxis.range=[e.sum-c.a-c.c,c.b],e.caxis.range=[e.sum-c.a-c.b,c.c],e.drawAxes(!1),e._hasClipOnAxisFalse&&e.plotContainer.select(".scatterlayer").selectAll(".trace").call(B8.hideOutsideRangePoints,e),r.emit("plotly_relayouting",b(c))}function P(){NG.call("_guiRelayout",r,b(c))}t.onmousemove=function(E){M2e.hover(r,E,e.id),r._fullLayout._lasthover=t,r._fullLayout._hoversubplot=e.id},t.onmouseout=function(E){r._dragging||S2e.unhover(r,E)},S2e.init(this.dragOptions)};function C2e(e){L2e.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}});var jG=ye((sfr,z2e)=>{"use strict";var ewt=Ih(),twt=Cc().attributes,su=Rd(),rwt=mc().overrideAll,GG=Ao().extendFlat,HG={title:{text:su.title.text,font:su.title.font},color:su.color,tickmode:su.minor.tickmode,nticks:GG({},su.nticks,{dflt:6,min:1}),tick0:su.tick0,dtick:su.dtick,tickvals:su.tickvals,ticktext:su.ticktext,ticks:su.ticks,ticklen:su.ticklen,tickwidth:su.tickwidth,tickcolor:su.tickcolor,ticklabelstep:su.ticklabelstep,showticklabels:su.showticklabels,labelalias:su.labelalias,showtickprefix:su.showtickprefix,tickprefix:su.tickprefix,showticksuffix:su.showticksuffix,ticksuffix:su.ticksuffix,showexponent:su.showexponent,exponentformat:su.exponentformat,minexponent:su.minexponent,separatethousands:su.separatethousands,tickfont:su.tickfont,tickangle:su.tickangle,tickformat:su.tickformat,tickformatstops:su.tickformatstops,hoverformat:su.hoverformat,showline:GG({},su.showline,{dflt:!0}),linecolor:su.linecolor,linewidth:su.linewidth,showgrid:GG({},su.showgrid,{dflt:!0}),gridcolor:su.gridcolor,gridwidth:su.gridwidth,griddash:su.griddash,layer:su.layer,min:{valType:"number",dflt:0,min:0}},N8=z2e.exports=rwt({domain:twt({name:"ternary"}),bgcolor:{valType:"color",dflt:ewt.background},sum:{valType:"number",dflt:1,min:0},aaxis:HG,baxis:HG,caxis:HG},"plot","from-root");N8.uirevision={valType:"any",editType:"none"};N8.aaxis.uirevision=N8.baxis.uirevision=N8.caxis.uirevision={valType:"any",editType:"none"}});var q_=ye((lfr,q2e)=>{"use strict";var iwt=Pr(),nwt=vl(),awt=Cc().defaults;q2e.exports=function(t,r,n,i){var a=i.type,o=i.attributes,s=i.handleDefaults,l=i.partition||"x",u=r._subplots[a],c=u.length,f=c&&u[0].replace(/\d+$/,""),h,d;function v(k,M){return iwt.coerce(h,d,o,k,M)}for(var m=0;m<c;m++){var b=u[m];t[b]?h=t[b]:h=t[b]={},d=nwt.newContainer(r,b,f),i.noUirevision||v("uirevision",r.uirevision);var p={};p[l]=[m/c,(m+1)/c],awt(d,r,v,p),i.id=b,s(h,d,v,i)}}});var U2e=ye((ufr,N2e)=>{"use strict";var owt=ka(),swt=vl(),U8=Pr(),lwt=q_(),uwt=s_(),cwt=l_(),fwt=q3(),hwt=Pb(),dwt=c4(),B2e=jG(),O2e=["aaxis","baxis","caxis"];N2e.exports=function(t,r,n){lwt(t,r,n,{type:"ternary",attributes:B2e,handleDefaults:vwt,font:r.font,paper_bgcolor:r.paper_bgcolor})};function vwt(e,t,r,n){var i=r("bgcolor"),a=r("sum");n.bgColor=owt.combine(i,n.paper_bgcolor);for(var o,s,l,u=0;u<O2e.length;u++)o=O2e[u],s=e[o]||{},l=swt.newContainer(t,o),l._name=o,pwt(s,l,n,t);var c=t.aaxis,f=t.baxis,h=t.caxis;c.min+f.min+h.min>=a&&(c.min=0,f.min=0,h.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function pwt(e,t,r,n){var i=B2e[t._name];function a(d,v){return U8.coerce(e,t,i,d,v)}a("uirevision",n.uirevision),t.type="linear";var o=a("color"),s=o!==i.color.dflt?o:r.font.color,l=t._name,u=l.charAt(0).toUpperCase(),c="Component "+u,f=a("title.text",c);t._hovertitle=f===c?f:u,U8.coerceFont(a,"title.font",r.font,{overrideDflt:{size:U8.bigFont(r.font.size),color:s}}),a("min"),hwt(e,t,a,"linear"),cwt(e,t,a,"linear"),uwt(e,t,a,"linear",{noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0}),fwt(e,t,a,{outerTicks:!0});var h=a("showticklabels");h&&(U8.coerceFont(a,"tickfont",r.font,{overrideDflt:{color:s}}),a("tickangle"),a("tickformat")),dwt(e,t,a,{dfltColor:o,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}});var V2e=ye(Z0=>{"use strict";var gwt=F2e(),mwt=Id().getSubplotCalcData,ywt=Pr().counterRegex,ZT="ternary";Z0.name=ZT;var _wt=Z0.attr="subplot";Z0.idRoot=ZT;Z0.idRegex=Z0.attrRegex=ywt(ZT);var xwt=Z0.attributes={};xwt[_wt]={valType:"subplotid",dflt:"ternary",editType:"calc"};Z0.layoutAttributes=jG();Z0.supplyLayoutDefaults=U2e();Z0.plot=function(t){for(var r=t._fullLayout,n=t.calcdata,i=r._subplots[ZT],a=0;a<i.length;a++){var o=i[a],s=mwt(n,ZT,o),l=r[o]._subplot;l||(l=new gwt({id:o,graphDiv:t,container:r._ternarylayer.node()},r),r[o]._subplot=l),l.plot(s,r,t._promises)}};Z0.clean=function(e,t,r,n){for(var i=n._subplots[ZT]||[],a=0;a<i.length;a++){var o=i[a],s=n[o]._subplot;!t[o]&&s&&(s.plotContainer.remove(),s.clipDef.remove(),s.clipDefRelative.remove(),s.layers["a-title"].remove(),s.layers["b-title"].remove(),s.layers["c-title"].remove())}};Z0.updateFx=function(e){var t=e._fullLayout;t._ternarylayer.selectAll("g.toplevel").style("cursor",t.dragmode==="pan"?"move":"crosshair")}});var H2e=ye((ffr,G2e)=>{"use strict";G2e.exports={attributes:qG(),supplyDefaults:h2e(),colorbar:Qd(),formatLabels:v2e(),calc:y2e(),plot:x2e(),style:sp().style,styleOnSelect:sp().styleOnSelect,hoverPoints:w2e(),selectPoints:xT(),eventData:A2e(),moduleType:"trace",name:"scatterternary",basePlotModule:V2e(),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}});var W2e=ye((hfr,j2e)=>{"use strict";j2e.exports=H2e()});var WG=ye((dfr,Z2e)=>{"use strict";var Oh=C4(),YT=Ao().extendFlat,X2e=vf().axisHoverFormat;Z2e.exports={y:Oh.y,x:Oh.x,x0:Oh.x0,y0:Oh.y0,xhoverformat:X2e("x"),yhoverformat:X2e("y"),name:YT({},Oh.name,{}),orientation:YT({},Oh.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:Oh.fillcolor,points:YT({},Oh.boxpoints,{}),jitter:YT({},Oh.jitter,{}),pointpos:YT({},Oh.pointpos,{}),width:YT({},Oh.width,{}),marker:Oh.marker,text:Oh.text,hovertext:Oh.hovertext,hovertemplate:Oh.hovertemplate,hovertemplatefallback:Oh.hovertemplatefallback,quartilemethod:Oh.quartilemethod,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:Oh.offsetgroup,alignmentgroup:Oh.alignmentgroup,selected:Oh.selected,unselected:Oh.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"},zorder:Oh.zorder}});var YG=ye((vfr,Y2e)=>{"use strict";var XG=L4(),ZG=Pr().extendFlat;Y2e.exports={violinmode:ZG({},XG.boxmode,{}),violingap:ZG({},XG.boxgap,{}),violingroupgap:ZG({},XG.boxgroupgap,{})}});var ewe=ye((pfr,Q2e)=>{"use strict";var K2e=Pr(),bwt=ka(),J2e=I4(),$2e=WG();Q2e.exports=function(t,r,n,i){function a(L,x){return K2e.coerce(t,r,$2e,L,x)}function o(L,x){return K2e.coerce2(t,r,$2e,L,x)}if(J2e.handleSampleDefaults(t,r,a,i),r.visible!==!1){a("bandwidth"),a("side");var s=a("width");s||(a("scalegroup",r.name),a("scalemode"));var l=a("span"),u;Array.isArray(l)&&(u="manual"),a("spanmode",u);var c=a("line.color",(t.marker||{}).color||n),f=a("line.width"),h=a("fillcolor",bwt.addOpacity(r.line.color,.5));J2e.handlePointsDefaults(t,r,a,{prefix:""});var d=o("box.width"),v=o("box.fillcolor",h),m=o("box.line.color",c),b=o("box.line.width",f),p=a("box.visible",!!(d||v||m||b));p||(r.box={visible:!1});var k=o("meanline.color",c),M=o("meanline.width",f),T=a("meanline.visible",!!(k||M));T||(r.meanline={visible:!1}),a("quartilemethod"),a("zorder")}}});var rwe=ye((gfr,twe)=>{"use strict";var wwt=Pr(),Twt=YG(),Awt=QI();twe.exports=function(t,r,n){function i(a,o){return wwt.coerce(t,r,Twt,a,o)}Awt._supply(t,r,n,i,"violin")}});var V8=ye(y2=>{"use strict";var Swt=Pr(),Mwt={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};y2.makeKDE=function(e,t,r){var n=r.length,i=Mwt.gaussian,a=e.bandwidth,o=1/(n*a);return function(s){for(var l=0,u=0;u<n;u++)l+=i((s-r[u])/a);return o*l}};y2.getPositionOnKdePath=function(e,t,r){var n,i;t.orientation==="h"?(n="y",i="x"):(n="x",i="y");var a=Swt.findPointOnPath(e.path,r,i,{pathLength:e.pathLength}),o=e.posCenterPx,s=a[n],l=t.side==="both"?2*o-s:o;return[s,l]};y2.getKdeValue=function(e,t,r){var n=e.pts.map(y2.extractVal),i=y2.makeKDE(e,t,n);return i(r)/e.posDensityScale};y2.extractVal=function(e){return e.v}});var awe=ye((yfr,nwe)=>{"use strict";var KG=Pr(),JG=ho(),Ewt=VV(),iwe=V8(),kwt=fs().BADNUM;nwe.exports=function(t,r){var n=Ewt(t,r);if(n[0].t.empty)return n;for(var i=t._fullLayout,a=JG.getFromId(t,r[r.orientation==="h"?"xaxis":"yaxis"]),o=1/0,s=-1/0,l=0,u=0,c=0;c<n.length;c++){var f=n[c],h=f.pts.map(iwe.extractVal),d=f.bandwidth=Lwt(r,f,h),v=f.span=Pwt(r,f,a,d);if(f.min===f.max&&d===0)v=f.span=[f.min,f.max],f.density=[{v:1,t:v[0]}],f.bandwidth=d,l=Math.max(l,1);else{var m=v[1]-v[0],b=Math.ceil(m/(d/3)),p=m/b;if(!isFinite(p)||!isFinite(b))return KG.error("Something went wrong with computing the violin span"),n[0].t.empty=!0,n;var k=iwe.makeKDE(f,r,h);f.density=new Array(b+1);for(var M=0;M<f.density.length;M++){var T=v[0]+M*p,L=k(T);f.density[M]={v:L,t:T},l=Math.max(l,L)}}u=Math.max(u,h.length),o=Math.min(o,v[0]),s=Math.max(s,v[1])}var x=JG.findExtremes(a,[o,s],{padded:!0});if(r._extremes[a._id]=x,r.width)n[0].t.maxKDE=l;else{var C=i._violinScaleGroupStats,S=r.scalegroup,g=C[S];g?(g.maxKDE=Math.max(g.maxKDE,l),g.maxCount=Math.max(g.maxCount,u)):C[S]={maxKDE:l,maxCount:u}}return n[0].t.labels.kde=KG._(t,"kde:"),n};function Cwt(e,t,r){var n=Math.min(t,r/1.349);return 1.059*n*Math.pow(e,-.2)}function Lwt(e,t,r){var n=t.max-t.min;if(!n)return e.bandwidth?e.bandwidth:0;if(e.bandwidth)return Math.max(e.bandwidth,n/1e4);var i=r.length,a=KG.stdev(r,i-1,t.mean);return Math.max(Cwt(i,a,t.q3-t.q1),n/100)}function Pwt(e,t,r,n){var i=e.spanmode,a=e.span||[],o=[t.min,t.max],s=[t.min-2*n,t.max+2*n],l;function u(f){var h=a[f],d=r.type==="multicategory"?r.r2c(h):r.d2c(h,0,e[t.valLetter+"calendar"]);return d===kwt?s[f]:d}i==="soft"?l=s:i==="hard"?l=o:l=[u(0),u(1)];var c={type:"linear",range:l};return JG.setConvert(c),c.cleanRange(),l}});var lwe=ye((_fr,swe)=>{"use strict";var Iwt=t8().setPositionOffset,owe=["v","h"];swe.exports=function(t,r){for(var n=t.calcdata,i=r.xaxis,a=r.yaxis,o=0;o<owe.length;o++){for(var s=owe[o],l=s==="h"?a:i,u=[],c=0;c<n.length;c++){var f=n[c],h=f[0].t,d=f[0].trace;d.visible===!0&&d.type==="violin"&&!h.empty&&d.orientation===s&&d.xaxis===i._id&&d.yaxis===a._id&&u.push(c)}Iwt("violin",t,u,l)}}});var cwe=ye((xfr,uwe)=>{"use strict";var $G=qa(),QG=Pr(),Rwt=So(),eH=r8(),Dwt=MU(),Fwt=V8();uwe.exports=function(t,r,n,i){var a=t._context.staticPlot,o=t._fullLayout,s=r.xaxis,l=r.yaxis;function u(c,f){var h=Dwt(c,{xaxis:s,yaxis:l,trace:f,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return Rwt.smoothopen(h[0],1)}QG.makeTraceGroups(i,n,"trace violins").each(function(c){var f=$G.select(this),h=c[0],d=h.t,v=h.trace;if(v.visible!==!0||d.empty){f.remove();return}var m=d.bPos,b=d.bdPos,p=r[d.valLetter+"axis"],k=r[d.posLetter+"axis"],M=v.side==="both",T=M||v.side==="positive",L=M||v.side==="negative",x=f.selectAll("path.violin").data(QG.identity);x.enter().append("path").style("vector-effect",a?"none":"non-scaling-stroke").attr("class","violin"),x.exit().remove(),x.each(function(V){var G=$G.select(this),Z=V.density,j=Z.length,N=k.c2l(V.pos+m,!0),H=k.l2p(N),ie;if(v.width)ie=d.maxKDE/b;else{var ae=o._violinScaleGroupStats[v.scalegroup];ie=v.scalemode==="count"?ae.maxKDE/b*(ae.maxCount/V.pts.length):ae.maxKDE/b}var _e,Ee,Ce,ge,re,Se,ke;if(T){for(Se=new Array(j),ge=0;ge<j;ge++)ke=Se[ge]={},ke[d.posLetter]=N+Z[ge].v/ie,ke[d.valLetter]=p.c2l(Z[ge].t,!0);_e=u(Se,v)}if(L){for(Se=new Array(j),re=0,ge=j-1;re<j;re++,ge--)ke=Se[re]={},ke[d.posLetter]=N-Z[ge].v/ie,ke[d.valLetter]=p.c2l(Z[ge].t,!0);Ee=u(Se,v)}if(M)Ce=_e+"L"+Ee.slice(1)+"Z";else{var be=[H,p.c2p(Z[0].t)],Be=[H,p.c2p(Z[j-1].t)];v.orientation==="h"&&(be.reverse(),Be.reverse()),T?Ce="M"+be+"L"+_e.slice(1)+"L"+Be:Ce="M"+Be+"L"+Ee.slice(1)+"L"+be}G.attr("d",Ce),V.posCenterPx=H,V.posDensityScale=ie*b,V.path=G.node(),V.pathLength=V.path.getTotalLength()/(M?2:1)});var C=v.box,S=C.width,g=(C.line||{}).width,P,E;M?(P=b*S,E=0):T?(P=[0,b*S/2],E=g*{x:1,y:-1}[d.posLetter]):(P=[b*S/2,0],E=g*{x:-1,y:1}[d.posLetter]),eH.plotBoxAndWhiskers(f,{pos:k,val:p},v,{bPos:m,bdPos:P,bPosPxOffset:E}),eH.plotBoxMean(f,{pos:k,val:p},v,{bPos:m,bdPos:P,bPosPxOffset:E});var z;!v.box.visible&&v.meanline.visible&&(z=QG.identity);var q=f.selectAll("path.meanline").data(z||[]);q.enter().append("path").attr("class","meanline").style("fill","none").style("vector-effect",a?"none":"non-scaling-stroke"),q.exit().remove(),q.each(function(V){var G=p.c2p(V.mean,!0),Z=Fwt.getPositionOnKdePath(V,v,G);$G.select(this).attr("d",v.orientation==="h"?"M"+G+","+Z[0]+"V"+Z[1]:"M"+Z[0]+","+G+"H"+Z[1])}),eH.plotPoints(f,{x:s,y:l},v,d)})}});var dwe=ye((bfr,hwe)=>{"use strict";var fwe=qa(),KT=ka(),zwt=sp().stylePoints;hwe.exports=function(t){var r=fwe.select(t).selectAll("g.trace.violins");r.style("opacity",function(n){return n[0].trace.opacity}),r.each(function(n){var i=n[0].trace,a=fwe.select(this),o=i.box||{},s=o.line||{},l=i.meanline||{},u=l.width;a.selectAll("path.violin").style("stroke-width",i.line.width+"px").call(KT.stroke,i.line.color).call(KT.fill,i.fillcolor),a.selectAll("path.box").style("stroke-width",s.width+"px").call(KT.stroke,s.color).call(KT.fill,o.fillcolor);var c={"stroke-width":u+"px","stroke-dasharray":2*u+"px,"+u+"px"};a.selectAll("path.mean").style(c).call(KT.stroke,l.color),a.selectAll("path.meanline").style(c).call(KT.stroke,l.color),zwt(a,i,t)})}});var mwe=ye((wfr,gwe)=>{"use strict";var qwt=ka(),tH=Pr(),Owt=ho(),vwe=XV(),pwe=V8();gwe.exports=function(t,r,n,i,a){a||(a={});var o=a.hoverLayer,s=t.cd,l=s[0].trace,u=l.hoveron,c=u.indexOf("violins")!==-1,f=u.indexOf("kde")!==-1,h=[],d,v;if(c||f){var m=vwe.hoverOnBoxes(t,r,n,i);if(f&&m.length>0){var b=t.xa,p=t.ya,k,M,T,L,x;l.orientation==="h"?(x=r,k="y",T=p,M="x",L=b):(x=n,k="x",T=b,M="y",L=p);var C=s[t.index];if(x>=C.span[0]&&x<=C.span[1]){var S=tH.extendFlat({},t),g=L.c2p(x,!0),P=pwe.getKdeValue(C,l,x),E=pwe.getPositionOnKdePath(C,l,g),z=T._offset,q=T._length;S[k+"0"]=E[0],S[k+"1"]=E[1],S[M+"0"]=S[M+"1"]=g,S[M+"Label"]=M+": "+Owt.hoverLabelText(L,x,l[M+"hoverformat"])+", "+s[0].t.labels.kde+" "+P.toFixed(3);for(var V=0,G=0;G<m.length;G++)if(m[G].attr==="med"){V=G;break}S.spikeDistance=m[V].spikeDistance;var Z=k+"Spike";S[Z]=m[V][Z],m[V].spikeDistance=void 0,m[V][Z]=void 0,S.hovertemplate=!1,h.push(S),v={},v[k+"1"]=tH.constrain(z+E[0],z,z+q),v[k+"2"]=tH.constrain(z+E[1],z,z+q),v[M+"1"]=v[M+"2"]=L._offset+g}}c&&(h=h.concat(m))}u.indexOf("points")!==-1&&(d=vwe.hoverOnPoints(t,r,n));var j=o.selectAll(".violinline-"+l.uid).data(v?[0]:[]);return j.enter().append("line").classed("violinline-"+l.uid,!0).attr("stroke-width",1.5),j.exit().remove(),j.attr(v).call(qwt.stroke,t.color),i==="closest"?d?[d]:h:(d&&h.push(d),h)}});var _we=ye((Tfr,ywe)=>{"use strict";ywe.exports={attributes:WG(),layoutAttributes:YG(),supplyDefaults:ewe(),crossTraceDefaults:I4().crossTraceDefaults,supplyLayoutDefaults:rwe(),calc:awe(),crossTraceCalc:lwe(),plot:cwe(),style:dwe(),styleOnSelect:sp().styleOnSelect,hoverPoints:mwe(),selectPoints:ZV(),moduleType:"trace",name:"violin",basePlotModule:mh(),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}});var bwe=ye((Afr,xwe)=>{"use strict";xwe.exports=_we()});var Twe=ye((Sfr,wwe)=>{"use strict";wwe.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}});var iH=ye((Mfr,Ewe)=>{"use strict";var jc=qm(),rH=pf().line,Bwt=Gl(),Awe=vf().axisHoverFormat,{hovertemplateAttrs:Nwt,texttemplateAttrs:Uwt,templatefallbackAttrs:Swe}=Ll(),Mwe=Twe(),Xy=Ao().extendFlat,Vwt=ka();Ewe.exports={x:jc.x,x0:jc.x0,dx:jc.dx,y:jc.y,y0:jc.y0,dy:jc.dy,xperiod:jc.xperiod,yperiod:jc.yperiod,xperiod0:jc.xperiod0,yperiod0:jc.yperiod0,xperiodalignment:jc.xperiodalignment,yperiodalignment:jc.yperiodalignment,xhoverformat:Awe("x"),yhoverformat:Awe("y"),hovertext:jc.hovertext,hovertemplate:Nwt({},{keys:Mwe.eventDataKeys}),hovertemplatefallback:Swe(),hoverinfo:Xy({},Bwt.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:Uwt({editType:"plot"},{keys:Mwe.eventDataKeys.concat(["label","value"])}),texttemplatefallback:Swe({editType:"plot"}),text:jc.text,textposition:jc.textposition,insidetextanchor:Xy({},jc.insidetextanchor,{dflt:"middle"}),textangle:Xy({},jc.textangle,{dflt:0}),textfont:jc.textfont,insidetextfont:jc.insidetextfont,outsidetextfont:jc.outsidetextfont,constraintext:jc.constraintext,cliponaxis:jc.cliponaxis,orientation:Xy({},jc.orientation,{}),offset:Xy({},jc.offset,{arrayOk:!1}),width:Xy({},jc.width,{arrayOk:!1}),marker:Gwt(),connector:{fillcolor:{valType:"color",editType:"style"},line:{color:Xy({},rH.color,{dflt:Vwt.defaultLine}),width:Xy({},rH.width,{dflt:0,editType:"plot"}),dash:rH.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:jc.offsetgroup,alignmentgroup:jc.alignmentgroup,zorder:jc.zorder};function Gwt(){var e=Xy({},jc.marker);return delete e.pattern,delete e.cornerradius,e}});var nH=ye((Efr,kwe)=>{"use strict";kwe.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var oH=ye((kfr,Lwe)=>{"use strict";var G8=Pr(),Hwt=r2(),jwt=i0().handleText,Wwt=lT(),Xwt=Dg(),Cwe=iH(),aH=ka();function Zwt(e,t,r,n){function i(f,h){return G8.coerce(e,t,Cwe,f,h)}var a=Wwt(e,t,n,i);if(!a){t.visible=!1;return}Xwt(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("orientation",t.y&&!t.x?"v":"h"),i("offset"),i("width");var o=i("text");i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var s=i("textposition");jwt(e,t,n,i,s,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&!t.texttemplate&&i("textinfo",G8.isArrayOrTypedArray(o)?"text+value":"value");var l=i("marker.color",r);i("marker.line.color",aH.defaultLine),i("marker.line.width");var u=i("connector.visible");if(u){i("connector.fillcolor",Ywt(l));var c=i("connector.line.width");c&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function Ywt(e){var t=G8.isArrayOrTypedArray(e)?"#000":e;return aH.addOpacity(t,.5*aH.opacity(t))}function Kwt(e,t){var r,n;function i(o){return G8.coerce(n._input,n,Cwe,o)}for(var a=0;a<e.length;a++)n=e[a],n.type==="funnel"&&(r=n._input,Hwt(r,n,t,i,t.funnelmode))}Lwe.exports={supplyDefaults:Zwt,crossTraceDefaults:Kwt}});var Iwe=ye((Cfr,Pwe)=>{"use strict";var Jwt=Pr(),$wt=nH();Pwe.exports=function(e,t,r){var n=!1;function i(s,l){return Jwt.coerce(e,t,$wt,s,l)}for(var a=0;a<r.length;a++){var o=r[a];if(o.visible&&o.type==="funnel"){n=!0;break}}n&&(i("funnelmode"),i("funnelgap",.2),i("funnelgroupgap"))}});var Dwe=ye((Lfr,Rwe)=>{"use strict";var JT=Pr();Rwe.exports=function(t,r){for(var n=0;n<t.length;n++)t[n].i=n;JT.mergeArray(r.text,t,"tx"),JT.mergeArray(r.hovertext,t,"htx");var i=r.marker;if(i){JT.mergeArray(i.opacity,t,"mo"),JT.mergeArray(i.color,t,"mc");var a=i.line;a&&(JT.mergeArray(a.color,t,"mlc"),JT.mergeArrayCastPositive(a.width,t,"mlw"))}}});var Owe=ye((Pfr,qwe)=>{"use strict";var Fwe=ho(),zwe=zg(),Qwt=Dwe(),e3t=q0(),W4=fs().BADNUM;qwe.exports=function(t,r){var n=Fwe.getFromId(t,r.xaxis||"x"),i=Fwe.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c,f,h;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),l=zwe(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=zwe(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;var d=Math.min(o.length,a.length),v=new Array(d);for(r._base=[],f=0;f<d;f++){a[f]<0&&(a[f]=W4);var m=!1;a[f]!==W4&&f+1<d&&a[f+1]!==W4&&(m=!0),h=v[f]={p:o[f],s:a[f],cNext:m},r._base[f]=-.5*h.s,u&&(v[f].orig_p=s[f],v[f][c+"End"]=l.ends[f],v[f][c+"Start"]=l.starts[f]),r.ids&&(h.id=String(r.ids[f])),f===0&&(v[0].vTotal=0),v[0].vTotal+=sH(h.s),h.begR=sH(h.s)/sH(v[0].s)}var b;for(f=0;f<d;f++)h=v[f],h.s!==W4&&(h.sumR=h.s/v[0].vTotal,h.difR=b!==void 0?h.s/b:1,b=h.s);return Qwt(v,r),e3t(v,r),v};function sH(e){return e===W4?0:e}});var Uwe=ye((Ifr,Nwe)=>{"use strict";var Bwe=i2().setGroupPositions;Nwe.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h<i.length;h++){var d=i[h],v=d.orientation==="h";d.visible===!0&&d.xaxis===o._id&&d.yaxis===s._id&&d.type==="funnel"&&(f=a[h],v?c.push(f):u.push(f),l.push(f))}var m={mode:n.funnelmode,norm:n.funnelnorm,gap:n.funnelgap,groupgap:n.funnelgroupgap};for(Bwe(t,o,s,u,m),Bwe(t,s,o,c,m),h=0;h<l.length;h++){f=l[h];for(var b=0;b<f.length;b++)b+1<f.length&&(f[b].nextP0=f[b+1].p0,f[b].nextS0=f[b+1].s0,f[b].nextP1=f[b+1].p1,f[b].nextS1=f[b+1].s1)}}});var jwe=ye((Rfr,Hwe)=>{"use strict";var H8=qa(),B_=Pr(),Vwe=So(),O_=fs().BADNUM,t3t=p2(),r3t=bv().clearMinTextSize;Hwe.exports=function(t,r,n,i){var a=t._fullLayout;r3t("funnel",a),i3t(t,r,n,i),n3t(t,r,n,i),t3t.plot(t,r,n,i,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})};function i3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;B_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=H8.select(this),l=o[0].trace,u=B_.ensureSingle(s,"g","regions");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.region").data(B_.identity);f.enter().append("g").classed("region",!0),f.exit().remove();var h=f.size();f.each(function(d,v){if(!(v!==h-1&&!d.cNext)){var m=Gwe(d,i,a,c),b=m[0],p=m[1],k="";b[0]!==O_&&p[0]!==O_&&b[1]!==O_&&p[1]!==O_&&b[2]!==O_&&p[2]!==O_&&b[3]!==O_&&p[3]!==O_&&(c?k+="M"+b[0]+","+p[1]+"L"+b[2]+","+p[2]+"H"+b[3]+"L"+b[1]+","+p[1]+"Z":k+="M"+b[1]+","+p[1]+"L"+b[2]+","+p[3]+"V"+p[2]+"L"+b[1]+","+p[0]+"Z"),k===""&&(k="M0,0Z"),B_.ensureSingle(H8.select(this),"path").attr("d",k).call(Vwe.setClipUrl,t.layerClipId,e)}})})}function n3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;B_.makeTraceGroups(n,r,"trace bars").each(function(o){var s=H8.select(this),l=o[0].trace,u=B_.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible||!l.connector.line.width){u.remove();return}var c=l.orientation==="h",f=u.selectAll("g.line").data(B_.identity);f.enter().append("g").classed("line",!0),f.exit().remove();var h=f.size();f.each(function(d,v){if(!(v!==h-1&&!d.cNext)){var m=Gwe(d,i,a,c),b=m[0],p=m[1],k="";b[3]!==void 0&&p[3]!==void 0&&(c?(k+="M"+b[0]+","+p[1]+"L"+b[2]+","+p[2],k+="M"+b[1]+","+p[1]+"L"+b[3]+","+p[2]):(k+="M"+b[1]+","+p[1]+"L"+b[2]+","+p[3],k+="M"+b[1]+","+p[0]+"L"+b[2]+","+p[2])),k===""&&(k="M0,0Z"),B_.ensureSingle(H8.select(this),"path").attr("d",k).call(Vwe.setClipUrl,t.layerClipId,e)}})})}function Gwe(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),i[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),i[3]=o.c2p(e.nextS1,!0),a[3]=s.c2p(e.nextP1,!0),n?[i,a]:[a,i]}});var Zwe=ye((Dfr,Xwe)=>{"use strict";var X4=qa(),Wwe=So(),lH=ka(),a3t=X1().DESELECTDIM,o3t=V0(),s3t=bv().resizeText,l3t=o3t.styleTextPoints;function u3t(e,t,r){var n=r||X4.select(e).selectAll('g[class^="funnellayer"]').selectAll("g.trace");s3t(e,n,"funnel"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=X4.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o.marker;X4.select(this).call(lH.fill,s.mc||l.color).call(lH.stroke,s.mlc||l.line.color).call(Wwe.dashLine,l.line.dash,s.mlw||l.line.width).style("opacity",o.selectedpoints&&!s.selected?a3t:1)}}),l3t(a,o,e),a.selectAll(".regions").each(function(){X4.select(this).selectAll("path").style("stroke-width",0).call(lH.fill,o.connector.fillcolor)}),a.selectAll(".lines").each(function(){var s=o.connector.line;Wwe.lineGroupStyle(X4.select(this).selectAll("path"),s.width,s.color,s.dash)})})}Xwe.exports={style:u3t}});var Jwe=ye((Ffr,Kwe)=>{"use strict";var Ywe=ka().opacity,c3t=RT().hoverOnBars,uH=Pr().formatPercent;Kwe.exports=function(t,r,n,i,a){var o=c3t(t,r,n,i,a);if(o){var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=o.index,f=s[c],h=u?"x":"y";o[h+"LabelVal"]=f.s,o.percentInitial=f.begR,o.percentInitialLabel=uH(f.begR,1),o.percentPrevious=f.difR,o.percentPreviousLabel=uH(f.difR,1),o.percentTotal=f.sumR,o.percentTotalLabel=uH(f.sumR,1);var d=f.hi||l.hoverinfo,v=[];if(d&&d!=="none"&&d!=="skip"){var m=d==="all",b=d.split("+"),p=function(k){return m||b.indexOf(k)!==-1};p("percent initial")&&v.push(o.percentInitialLabel+" of initial"),p("percent previous")&&v.push(o.percentPreviousLabel+" of previous"),p("percent total")&&v.push(o.percentTotalLabel+" of total")}return o.extraText=v.join("<br>"),o.color=f3t(l,f),[o]}};function f3t(e,t){var r=e.marker,n=t.mc||r.color,i=t.mlc||r.line.color,a=t.mlw||r.line.width;if(Ywe(n))return n;if(Ywe(i)&&a)return i}});var Qwe=ye((zfr,$we)=>{"use strict";$we.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"percentInitial"in r&&(t.percentInitial=r.percentInitial),"percentPrevious"in r&&(t.percentPrevious=r.percentPrevious),"percentTotal"in r&&(t.percentTotal=r.percentTotal),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var t3e=ye((qfr,e3e)=>{"use strict";e3e.exports={attributes:iH(),layoutAttributes:nH(),supplyDefaults:oH().supplyDefaults,crossTraceDefaults:oH().crossTraceDefaults,supplyLayoutDefaults:Iwe(),calc:Owe(),crossTraceCalc:Uwe(),plot:jwe(),style:Zwe().style,hoverPoints:Jwe(),eventData:Qwe(),selectPoints:DT(),moduleType:"trace",name:"funnel",basePlotModule:mh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var i3e=ye((Ofr,r3e)=>{"use strict";r3e.exports=t3e()});var a3e=ye((Bfr,n3e)=>{"use strict";n3e.exports={eventDataKeys:["initial","delta","final"]}});var hH=ye((Nfr,u3e)=>{"use strict";var _c=qm(),cH=pf().line,h3t=Gl(),o3e=vf().axisHoverFormat,{hovertemplateAttrs:d3t,texttemplateAttrs:v3t,templatefallbackAttrs:s3e}=Ll(),l3e=a3e(),$T=Ao().extendFlat,p3t=ka();function fH(e){return{marker:{color:$T({},_c.marker.color,{arrayOk:!1,editType:"style"}),line:{color:$T({},_c.marker.line.color,{arrayOk:!1,editType:"style"}),width:$T({},_c.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}u3e.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:_c.x,x0:_c.x0,dx:_c.dx,y:_c.y,y0:_c.y0,dy:_c.dy,xperiod:_c.xperiod,yperiod:_c.yperiod,xperiod0:_c.xperiod0,yperiod0:_c.yperiod0,xperiodalignment:_c.xperiodalignment,yperiodalignment:_c.yperiodalignment,xhoverformat:o3e("x"),yhoverformat:o3e("y"),hovertext:_c.hovertext,hovertemplate:d3t({},{keys:l3e.eventDataKeys}),hovertemplatefallback:s3e(),hoverinfo:$T({},h3t.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:v3t({editType:"plot"},{keys:l3e.eventDataKeys.concat(["label"])}),texttemplatefallback:s3e({editType:"plot"}),text:_c.text,textposition:_c.textposition,insidetextanchor:_c.insidetextanchor,textangle:_c.textangle,textfont:_c.textfont,insidetextfont:_c.insidetextfont,outsidetextfont:_c.outsidetextfont,constraintext:_c.constraintext,cliponaxis:_c.cliponaxis,orientation:_c.orientation,offset:_c.offset,width:_c.width,increasing:fH("increasing"),decreasing:fH("decreasing"),totals:fH("intermediate sums and total"),connector:{line:{color:$T({},cH.color,{dflt:p3t.defaultLine}),width:$T({},cH.width,{editType:"plot"}),dash:cH.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:_c.offsetgroup,alignmentgroup:_c.alignmentgroup,zorder:_c.zorder}});var dH=ye((Ufr,c3e)=>{"use strict";c3e.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}});var QT=ye((Vfr,f3e)=>{"use strict";f3e.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"\u25B2"},DECREASING:{COLOR:"#FF4136",SYMBOL:"\u25BC"}}});var pH=ye((Gfr,p3e)=>{"use strict";var h3e=Pr(),g3t=r2(),m3t=i0().handleText,y3t=lT(),_3t=Dg(),d3e=hH(),x3t=ka(),v3e=QT(),b3t=v3e.INCREASING.COLOR,w3t=v3e.DECREASING.COLOR,T3t="#4499FF";function vH(e,t,r){e(t+".marker.color",r),e(t+".marker.line.color",x3t.defaultLine),e(t+".marker.line.width")}function A3t(e,t,r,n){function i(u,c){return h3e.coerce(e,t,d3e,u,c)}var a=y3t(e,t,n,i);if(!a){t.visible=!1;return}_3t(e,t,n,i),i("xhoverformat"),i("yhoverformat"),i("measure"),i("orientation",t.x&&!t.y?"h":"v"),i("base"),i("offset"),i("width"),i("text"),i("hovertext"),i("hovertemplate"),i("hovertemplatefallback");var o=i("textposition");m3t(e,t,n,i,o,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),t.textposition!=="none"&&(i("texttemplate"),i("texttemplatefallback"),t.texttemplate||i("textinfo")),vH(i,"increasing",b3t),vH(i,"decreasing",w3t),vH(i,"totals",T3t);var s=i("connector.visible");if(s){i("connector.mode");var l=i("connector.line.width");l&&(i("connector.line.color"),i("connector.line.dash"))}i("zorder")}function S3t(e,t){var r,n;function i(o){return h3e.coerce(n._input,n,d3e,o)}if(t.waterfallmode==="group")for(var a=0;a<e.length;a++)n=e[a],r=n._input,g3t(r,n,t,i,t.waterfallmode)}p3e.exports={supplyDefaults:A3t,crossTraceDefaults:S3t}});var m3e=ye((Hfr,g3e)=>{"use strict";var M3t=Pr(),E3t=dH();g3e.exports=function(e,t,r){var n=!1;function i(s,l){return M3t.coerce(e,t,E3t,s,l)}for(var a=0;a<r.length;a++){var o=r[a];if(o.visible&&o.type==="waterfall"){n=!0;break}}n&&(i("waterfallmode"),i("waterfallgap",.2),i("waterfallgroupgap"))}});var T3e=ye((jfr,w3e)=>{"use strict";var y3e=ho(),_3e=zg(),x3e=Pr().mergeArray,k3t=q0(),b3e=fs().BADNUM;function gH(e){return e==="a"||e==="absolute"}function mH(e){return e==="t"||e==="total"}w3e.exports=function(t,r){var n=y3e.getFromId(t,r.xaxis||"x"),i=y3e.getFromId(t,r.yaxis||"y"),a,o,s,l,u,c;r.orientation==="h"?(a=n.makeCalcdata(r,"x"),s=i.makeCalcdata(r,"y"),l=_3e(r,i,"y",s),u=!!r.yperiodalignment,c="y"):(a=i.makeCalcdata(r,"y"),s=n.makeCalcdata(r,"x"),l=_3e(r,n,"x",s),u=!!r.xperiodalignment,c="x"),o=l.vals;for(var f=Math.min(o.length,a.length),h=new Array(f),d=0,v,m=!1,b=0;b<f;b++){var p=a[b]||0,k=!1;(a[b]!==b3e||mH(r.measure[b])||gH(r.measure[b]))&&b+1<f&&(a[b+1]!==b3e||mH(r.measure[b+1])||gH(r.measure[b+1]))&&(k=!0);var M=h[b]={i:b,p:o[b],s:p,rawS:p,cNext:k};gH(r.measure[b])?(d=M.s,M.isSum=!0,M.dir="totals",M.s=d):mH(r.measure[b])?(M.isSum=!0,M.dir="totals",M.s=d):(M.isSum=!1,M.dir=M.rawS<0?"decreasing":"increasing",v=M.s,M.s=d+v,d+=v),M.dir==="totals"&&(m=!0),u&&(h[b].orig_p=s[b],h[b][c+"End"]=l.ends[b],h[b][c+"Start"]=l.starts[b]),r.ids&&(M.id=String(r.ids[b])),M.v=(r.base||0)+d}return h.length&&(h[0].hasTotals=m),x3e(r.text,h,"tx"),x3e(r.hovertext,h,"htx"),k3t(h,r),h}});var M3e=ye((Wfr,S3e)=>{"use strict";var A3e=i2().setGroupPositions;S3e.exports=function(t,r){var n=t._fullLayout,i=t._fullData,a=t.calcdata,o=r.xaxis,s=r.yaxis,l=[],u=[],c=[],f,h;for(h=0;h<i.length;h++){var d=i[h];d.visible===!0&&d.xaxis===o._id&&d.yaxis===s._id&&d.type==="waterfall"&&(f=a[h],d.orientation==="h"?c.push(f):u.push(f),l.push(f))}var v={mode:n.waterfallmode,norm:n.waterfallnorm,gap:n.waterfallgap,groupgap:n.waterfallgroupgap};for(A3e(t,o,s,u,v),A3e(t,s,o,c,v),h=0;h<l.length;h++){f=l[h];for(var m=0;m<f.length;m++){var b=f[m];b.isSum===!1&&(b.s0+=m===0?0:f[m-1].s),m+1<f.length&&(f[m].nextP0=f[m+1].p0,f[m].nextS0=f[m+1].s0)}}}});var C3e=ye((Xfr,k3e)=>{"use strict";var E3e=qa(),j8=Pr(),C3t=So(),eA=fs().BADNUM,L3t=p2(),P3t=bv().clearMinTextSize;k3e.exports=function(t,r,n,i){var a=t._fullLayout;P3t("waterfall",a),L3t.plot(t,r,n,i,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),I3t(t,r,n,i)};function I3t(e,t,r,n){var i=t.xaxis,a=t.yaxis;j8.makeTraceGroups(n,r,"trace bars").each(function(o){var s=E3e.select(this),l=o[0].trace,u=j8.ensureSingle(s,"g","lines");if(!l.connector||!l.connector.visible){u.remove();return}var c=l.orientation==="h",f=l.connector.mode,h=u.selectAll("g.line").data(j8.identity);h.enter().append("g").classed("line",!0),h.exit().remove();var d=h.size();h.each(function(v,m){if(!(m!==d-1&&!v.cNext)){var b=R3t(v,i,a,c),p=b[0],k=b[1],M="";p[0]!==eA&&k[0]!==eA&&p[1]!==eA&&k[1]!==eA&&(f==="spanning"&&!v.isSum&&m>0&&(c?M+="M"+p[0]+","+k[1]+"V"+k[0]:M+="M"+p[1]+","+k[0]+"H"+p[0]),f!=="between"&&(v.isSum||m<d-1)&&(c?M+="M"+p[1]+","+k[0]+"V"+k[1]:M+="M"+p[0]+","+k[1]+"H"+p[1]),p[2]!==eA&&k[2]!==eA&&(c?M+="M"+p[1]+","+k[1]+"V"+k[2]:M+="M"+p[1]+","+k[1]+"H"+p[2])),M===""&&(M="M0,0Z"),j8.ensureSingle(E3e.select(this),"path").attr("d",M).call(C3t.setClipUrl,t.layerClipId,e)}})})}function R3t(e,t,r,n){var i=[],a=[],o=n?t:r,s=n?r:t;return i[0]=o.c2p(e.s0,!0),a[0]=s.c2p(e.p0,!0),i[1]=o.c2p(e.s1,!0),a[1]=s.c2p(e.p1,!0),i[2]=o.c2p(e.nextS0,!0),a[2]=s.c2p(e.nextP0,!0),n?[i,a]:[a,i]}});var R3e=ye((Zfr,I3e)=>{"use strict";var W8=qa(),L3e=So(),P3e=ka(),D3t=X1().DESELECTDIM,F3t=V0(),z3t=bv().resizeText,q3t=F3t.styleTextPoints;function O3t(e,t,r){var n=r||W8.select(e).selectAll('g[class^="waterfalllayer"]').selectAll("g.trace");z3t(e,n,"waterfall"),n.style("opacity",function(i){return i[0].trace.opacity}),n.each(function(i){var a=W8.select(this),o=i[0].trace;a.selectAll(".point > path").each(function(s){if(!s.isBlank){var l=o[s.dir].marker;W8.select(this).call(P3e.fill,l.color).call(P3e.stroke,l.line.color).call(L3e.dashLine,l.line.dash,l.line.width).style("opacity",o.selectedpoints&&!s.selected?D3t:1)}}),q3t(a,o,e),a.selectAll(".lines").each(function(){var s=o.connector.line;L3e.lineGroupStyle(W8.select(this).selectAll("path"),s.width,s.color,s.dash)})})}I3e.exports={style:O3t}});var O3e=ye((Yfr,q3e)=>{"use strict";var B3t=ho().hoverLabelText,D3e=ka().opacity,N3t=RT().hoverOnBars,F3e=QT(),z3e={increasing:F3e.INCREASING.SYMBOL,decreasing:F3e.DECREASING.SYMBOL};q3e.exports=function(t,r,n,i,a){var o=N3t(t,r,n,i,a);if(!o)return;var s=o.cd,l=s[0].trace,u=l.orientation==="h",c=u?"x":"y",f=u?t.xa:t.ya;function h(x){return B3t(f,x,l[c+"hoverformat"])}var d=o.index,v=s[d],m=v.isSum?v.b+v.s:v.rawS;o.initial=v.b+v.s-m,o.delta=m,o.final=o.initial+o.delta;var b=h(Math.abs(o.delta));o.deltaLabel=m<0?"("+b+")":b,o.finalLabel=h(o.final),o.initialLabel=h(o.initial);var p=v.hi||l.hoverinfo,k=[];if(p&&p!=="none"&&p!=="skip"){var M=p==="all",T=p.split("+"),L=function(x){return M||T.indexOf(x)!==-1};v.isSum||(L("final")&&(u?!L("x"):!L("y"))&&k.push(o.finalLabel),L("delta")&&(m<0?k.push(o.deltaLabel+" "+z3e.decreasing):k.push(o.deltaLabel+" "+z3e.increasing)),L("initial")&&k.push("Initial: "+o.initialLabel))}return k.length&&(o.extraText=k.join("<br>")),o.color=U3t(l,v),[o]};function U3t(e,t){var r=e[t.dir].marker,n=r.color,i=r.line.color,a=r.line.width;if(D3e(n))return n;if(D3e(i)&&a)return i}});var N3e=ye((Kfr,B3e)=>{"use strict";B3e.exports=function(t,r){return t.x="xVal"in r?r.xVal:r.x,t.y="yVal"in r?r.yVal:r.y,"initial"in r&&(t.initial=r.initial),"delta"in r&&(t.delta=r.delta),"final"in r&&(t.final=r.final),r.xa&&(t.xaxis=r.xa),r.ya&&(t.yaxis=r.ya),t}});var V3e=ye((Jfr,U3e)=>{"use strict";U3e.exports={attributes:hH(),layoutAttributes:dH(),supplyDefaults:pH().supplyDefaults,crossTraceDefaults:pH().crossTraceDefaults,supplyLayoutDefaults:m3e(),calc:T3e(),crossTraceCalc:M3e(),plot:C3e(),style:R3e().style,hoverPoints:O3e(),eventData:N3e(),selectPoints:DT(),moduleType:"trace",name:"waterfall",basePlotModule:mh(),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}});var H3e=ye(($fr,G3e)=>{"use strict";G3e.exports=V3e()});var tA=ye((Qfr,j3e)=>{"use strict";j3e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["\xB0","%","%",""]}}}});var yH=ye((ehr,X3e)=>{"use strict";var V3t=Gl(),G3t=pf().zorder,{hovertemplateAttrs:H3t,templatefallbackAttrs:j3t}=Ll(),W3e=Ao().extendFlat,W3t=tA().colormodel,Y4=["rgb","rgba","rgba256","hsl","hsla"],X3t=[],Z3t=[];for(rA=0;rA<Y4.length;rA++)Z4=W3t[Y4[rA]],X3t.push("For the `"+Y4[rA]+"` colormodel, it is ["+(Z4.zminDflt||Z4.min).join(", ")+"]."),Z3t.push("For the `"+Y4[rA]+"` colormodel, it is ["+(Z4.zmaxDflt||Z4.max).join(", ")+"].");var Z4,rA;X3e.exports=W3e({source:{valType:"string",editType:"calc"},z:{valType:"data_array",editType:"calc"},colormodel:{valType:"enumerated",values:Y4,editType:"calc"},zsmooth:{valType:"enumerated",values:["fast",!1],dflt:!1,editType:"plot"},zmin:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc"},zmax:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc"},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dx:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's horizontal size."},dy:{valType:"number",dflt:1,editType:"calc",description:"Set the pixel's vertical size"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"data_array",editType:"plot"},hoverinfo:W3e({},V3t.hoverinfo,{flags:["x","y","z","color","name","text"],dflt:"x+y+z+text+name"}),hovertemplate:H3t({},{keys:["z","color","colormodel"]}),hovertemplatefallback:j3t(),zorder:G3t})});var K3e=ye((thr,Y3e)=>{"use strict";var Y3t=Pr(),K3t=yH(),Z3e=tA(),J3t=qy().IMAGE_URL_PREFIX;Y3e.exports=function(t,r){function n(o,s){return Y3t.coerce(t,r,K3t,o,s)}n("source"),r.source&&!r.source.match(J3t)&&delete r.source,r._hasSource=!!r.source;var i=n("z");if(r._hasZ=!(i===void 0||!i.length||!i[0]||!i[0].length),!r._hasZ&&!r._hasSource){r.visible=!1;return}n("x0"),n("y0"),n("dx"),n("dy");var a;r._hasZ?(n("colormodel","rgb"),a=Z3e.colormodel[r.colormodel],n("zmin",a.zminDflt||a.min),n("zmax",a.zmaxDflt||a.max)):r._hasSource&&(r.colormodel="rgba256",a=Z3e.colormodel[r.colormodel],r.zmin=a.zminDflt,r.zmax=a.zmaxDflt),n("zsmooth"),n("text"),n("hovertext"),n("hovertemplate"),n("hovertemplatefallback"),r._length=null,n("zorder")}});var Zy=ye((rhr,_H)=>{typeof Object.create=="function"?_H.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:_H.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var xH=ye((ihr,J3e)=>{J3e.exports=Sb().EventEmitter});var eTe=ye(X8=>{"use strict";X8.byteLength=Q3t;X8.toByteArray=tTt;X8.fromByteArray=nTt;var Hm=[],Y0=[],$3t=typeof Uint8Array!="undefined"?Uint8Array:Array,bH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(_2=0,$3e=bH.length;_2<$3e;++_2)Hm[_2]=bH[_2],Y0[bH.charCodeAt(_2)]=_2;var _2,$3e;Y0[45]=62;Y0[95]=63;function Q3e(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function Q3t(e){var t=Q3e(e),r=t[0],n=t[1];return(r+n)*3/4-n}function eTt(e,t,r){return(t+r)*3/4-r}function tTt(e){var t,r=Q3e(e),n=r[0],i=r[1],a=new $3t(eTt(e,n,i)),o=0,s=i>0?n-4:n,l;for(l=0;l<s;l+=4)t=Y0[e.charCodeAt(l)]<<18|Y0[e.charCodeAt(l+1)]<<12|Y0[e.charCodeAt(l+2)]<<6|Y0[e.charCodeAt(l+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=Y0[e.charCodeAt(l)]<<2|Y0[e.charCodeAt(l+1)]>>4,a[o++]=t&255),i===1&&(t=Y0[e.charCodeAt(l)]<<10|Y0[e.charCodeAt(l+1)]<<4|Y0[e.charCodeAt(l+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function rTt(e){return Hm[e>>18&63]+Hm[e>>12&63]+Hm[e>>6&63]+Hm[e&63]}function iTt(e,t,r){for(var n,i=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(rTt(n));return i.join("")}function nTt(e){for(var t,r=e.length,n=r%3,i=[],a=16383,o=0,s=r-n;o<s;o+=a)i.push(iTt(e,o,o+a>s?s:o+a));return n===1?(t=e[r-1],i.push(Hm[t>>2]+Hm[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Hm[t>>10]+Hm[t>>4&63]+Hm[t<<2&63]+"=")),i.join("")}});var tTe=ye(wH=>{wH.read=function(e,t,r,n,i){var a,o,s=i*8-n-1,l=(1<<s)-1,u=l>>1,c=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,a=d&(1<<-c)-1,d>>=-c,c+=s;c>0;a=a*256+e[t+f],f+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=o*256+e[t+f],f+=h,c-=8);if(a===0)a=1-u;else{if(a===l)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-u}return(d?-1:1)*o*Math.pow(2,a-n)};wH.write=function(e,t,r,n,i,a){var o,s,l,u=a*8-i-1,c=(1<<u)-1,f=c>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:a-1,v=n?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?t+=h/l:t+=h*Math.pow(2,1-f),t*l>=2&&(o++,l/=2),o+f>=c?(s=0,o=c):o+f>=1?(s=(t*l-1)*Math.pow(2,i),o=o+f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;e[r+d]=s&255,d+=v,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[r+d]=o&255,d+=v,o/=256,u-=8);e[r+d-v]|=m*128}});var b2=ye(oA=>{"use strict";var TH=eTe(),nA=tTe(),rTe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;oA.Buffer=ra;oA.SlowBuffer=cTt;oA.INSPECT_MAX_BYTES=50;var Z8=2147483647;oA.kMaxLength=Z8;ra.TYPED_ARRAY_SUPPORT=aTt();!ra.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function aTt(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch(e){return!1}}Object.defineProperty(ra.prototype,"parent",{enumerable:!0,get:function(){if(ra.isBuffer(this))return this.buffer}});Object.defineProperty(ra.prototype,"offset",{enumerable:!0,get:function(){if(ra.isBuffer(this))return this.byteOffset}});function Yy(e){if(e>Z8)throw new RangeError('The value "'+e+'" is invalid for option "size"');let t=new Uint8Array(e);return Object.setPrototypeOf(t,ra.prototype),t}function ra(e,t,r){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return EH(e)}return oTe(e,t,r)}ra.poolSize=8192;function oTe(e,t,r){if(typeof e=="string")return sTt(e,t);if(ArrayBuffer.isView(e))return lTt(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(jm(e,ArrayBuffer)||e&&jm(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(jm(e,SharedArrayBuffer)||e&&jm(e.buffer,SharedArrayBuffer)))return SH(e,t,r);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return ra.from(n,t,r);let i=uTt(e);if(i)return i;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return ra.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}ra.from=function(e,t,r){return oTe(e,t,r)};Object.setPrototypeOf(ra.prototype,Uint8Array.prototype);Object.setPrototypeOf(ra,Uint8Array);function sTe(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function oTt(e,t,r){return sTe(e),e<=0?Yy(e):t!==void 0?typeof r=="string"?Yy(e).fill(t,r):Yy(e).fill(t):Yy(e)}ra.alloc=function(e,t,r){return oTt(e,t,r)};function EH(e){return sTe(e),Yy(e<0?0:kH(e)|0)}ra.allocUnsafe=function(e){return EH(e)};ra.allocUnsafeSlow=function(e){return EH(e)};function sTt(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!ra.isEncoding(t))throw new TypeError("Unknown encoding: "+t);let r=lTe(e,t)|0,n=Yy(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}function AH(e){let t=e.length<0?0:kH(e.length)|0,r=Yy(t);for(let n=0;n<t;n+=1)r[n]=e[n]&255;return r}function lTt(e){if(jm(e,Uint8Array)){let t=new Uint8Array(e);return SH(t.buffer,t.byteOffset,t.byteLength)}return AH(e)}function SH(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return t===void 0&&r===void 0?n=new Uint8Array(e):r===void 0?n=new Uint8Array(e,t):n=new Uint8Array(e,t,r),Object.setPrototypeOf(n,ra.prototype),n}function uTt(e){if(ra.isBuffer(e)){let t=kH(e.length)|0,r=Yy(t);return r.length===0||e.copy(r,0,0,t),r}if(e.length!==void 0)return typeof e.length!="number"||LH(e.length)?Yy(0):AH(e);if(e.type==="Buffer"&&Array.isArray(e.data))return AH(e.data)}function kH(e){if(e>=Z8)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Z8.toString(16)+" bytes");return e|0}function cTt(e){return+e!=e&&(e=0),ra.alloc(+e)}ra.isBuffer=function(t){return t!=null&&t._isBuffer===!0&&t!==ra.prototype};ra.compare=function(t,r){if(jm(t,Uint8Array)&&(t=ra.from(t,t.offset,t.byteLength)),jm(r,Uint8Array)&&(r=ra.from(r,r.offset,r.byteLength)),!ra.isBuffer(t)||!ra.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===r)return 0;let n=t.length,i=r.length;for(let a=0,o=Math.min(n,i);a<o;++a)if(t[a]!==r[a]){n=t[a],i=r[a];break}return n<i?-1:i<n?1:0};ra.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};ra.concat=function(t,r){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return ra.alloc(0);let n;if(r===void 0)for(r=0,n=0;n<t.length;++n)r+=t[n].length;let i=ra.allocUnsafe(r),a=0;for(n=0;n<t.length;++n){let o=t[n];if(jm(o,Uint8Array))a+o.length>i.length?(ra.isBuffer(o)||(o=ra.from(o)),o.copy(i,a)):Uint8Array.prototype.set.call(i,o,a);else if(ra.isBuffer(o))o.copy(i,a);else throw new TypeError('"list" argument must be an Array of Buffers');a+=o.length}return i};function lTe(e,t){if(ra.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||jm(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);let r=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&r===0)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return MH(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return mTe(e).length;default:if(i)return n?-1:MH(e).length;t=(""+t).toLowerCase(),i=!0}}ra.byteLength=lTe;function fTt(e,t,r){let n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,t>>>=0,r<=t))return"";for(e||(e="utf8");;)switch(e){case"hex":return bTt(this,t,r);case"utf8":case"utf-8":return cTe(this,t,r);case"ascii":return _Tt(this,t,r);case"latin1":case"binary":return xTt(this,t,r);case"base64":return mTt(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wTt(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}ra.prototype._isBuffer=!0;function x2(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}ra.prototype.swap16=function(){let t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<t;r+=2)x2(this,r,r+1);return this};ra.prototype.swap32=function(){let t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<t;r+=4)x2(this,r,r+3),x2(this,r+1,r+2);return this};ra.prototype.swap64=function(){let t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<t;r+=8)x2(this,r,r+7),x2(this,r+1,r+6),x2(this,r+2,r+5),x2(this,r+3,r+4);return this};ra.prototype.toString=function(){let t=this.length;return t===0?"":arguments.length===0?cTe(this,0,t):fTt.apply(this,arguments)};ra.prototype.toLocaleString=ra.prototype.toString;ra.prototype.equals=function(t){if(!ra.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:ra.compare(this,t)===0};ra.prototype.inspect=function(){let t="",r=oA.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"};rTe&&(ra.prototype[rTe]=ra.prototype.inspect);ra.prototype.compare=function(t,r,n,i,a){if(jm(t,Uint8Array)&&(t=ra.from(t,t.offset,t.byteLength)),!ra.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(r===void 0&&(r=0),n===void 0&&(n=t?t.length:0),i===void 0&&(i=0),a===void 0&&(a=this.length),r<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&r>=n)return 0;if(i>=a)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,a>>>=0,this===t)return 0;let o=a-i,s=n-r,l=Math.min(o,s),u=this.slice(i,a),c=t.slice(r,n);for(let f=0;f<l;++f)if(u[f]!==c[f]){o=u[f],s=c[f];break}return o<s?-1:s<o?1:0};function uTe(e,t,r,n,i){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,LH(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof t=="string"&&(t=ra.from(t,n)),ra.isBuffer(t))return t.length===0?-1:iTe(e,t,r,n,i);if(typeof t=="number")return t=t&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):iTe(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function iTe(e,t,r,n,i){let a=1,o=e.length,s=t.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,r/=2}function l(c,f){return a===1?c[f]:c.readUInt16BE(f*a)}let u;if(i){let c=-1;for(u=r;u<o;u++)if(l(e,u)===l(t,c===-1?0:u-c)){if(c===-1&&(c=u),u-c+1===s)return c*a}else c!==-1&&(u-=u-c),c=-1}else for(r+s>o&&(r=o-s),u=r;u>=0;u--){let c=!0;for(let f=0;f<s;f++)if(l(e,u+f)!==l(t,f)){c=!1;break}if(c)return u}return-1}ra.prototype.includes=function(t,r,n){return this.indexOf(t,r,n)!==-1};ra.prototype.indexOf=function(t,r,n){return uTe(this,t,r,n,!0)};ra.prototype.lastIndexOf=function(t,r,n){return uTe(this,t,r,n,!1)};function hTt(e,t,r,n){r=Number(r)||0;let i=e.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;let a=t.length;n>a/2&&(n=a/2);let o;for(o=0;o<n;++o){let s=parseInt(t.substr(o*2,2),16);if(LH(s))return o;e[r+o]=s}return o}function dTt(e,t,r,n){return Y8(MH(t,e.length-r),e,r,n)}function vTt(e,t,r,n){return Y8(MTt(t),e,r,n)}function pTt(e,t,r,n){return Y8(mTe(t),e,r,n)}function gTt(e,t,r,n){return Y8(ETt(t,e.length-r),e,r,n)}ra.prototype.write=function(t,r,n,i){if(r===void 0)i="utf8",n=this.length,r=0;else if(n===void 0&&typeof r=="string")i=r,n=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let a=this.length-r;if((n===void 0||n>a)&&(n=a),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let o=!1;for(;;)switch(i){case"hex":return hTt(this,t,r,n);case"utf8":case"utf-8":return dTt(this,t,r,n);case"ascii":case"latin1":case"binary":return vTt(this,t,r,n);case"base64":return pTt(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return gTt(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};ra.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function mTt(e,t,r){return t===0&&r===e.length?TH.fromByteArray(e):TH.fromByteArray(e.slice(t,r))}function cTe(e,t,r){r=Math.min(e.length,r);let n=[],i=t;for(;i<r;){let a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=r){let l,u,c,f;switch(s){case 1:a<128&&(o=a);break;case 2:l=e[i+1],(l&192)===128&&(f=(a&31)<<6|l&63,f>127&&(o=f));break;case 3:l=e[i+1],u=e[i+2],(l&192)===128&&(u&192)===128&&(f=(a&15)<<12|(l&63)<<6|u&63,f>2047&&(f<55296||f>57343)&&(o=f));break;case 4:l=e[i+1],u=e[i+2],c=e[i+3],(l&192)===128&&(u&192)===128&&(c&192)===128&&(f=(a&15)<<18|(l&63)<<12|(u&63)<<6|c&63,f>65535&&f<1114112&&(o=f))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=s}return yTt(n)}var nTe=4096;function yTt(e){let t=e.length;if(t<=nTe)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=nTe));return r}function _Tt(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]&127);return n}function xTt(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function bTt(e,t,r){let n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let i="";for(let a=t;a<r;++a)i+=kTt[e[a]];return i}function wTt(e,t,r){let n=e.slice(t,r),i="";for(let a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+n[a+1]*256);return i}ra.prototype.slice=function(t,r){let n=this.length;t=~~t,r=r===void 0?n:~~r,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),r<t&&(r=t);let i=this.subarray(t,r);return Object.setPrototypeOf(i,ra.prototype),i};function tv(e,t,r){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}ra.prototype.readUintLE=ra.prototype.readUIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||tv(t,r,this.length);let i=this[t],a=1,o=0;for(;++o<r&&(a*=256);)i+=this[t+o]*a;return i};ra.prototype.readUintBE=ra.prototype.readUIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||tv(t,r,this.length);let i=this[t+--r],a=1;for(;r>0&&(a*=256);)i+=this[t+--r]*a;return i};ra.prototype.readUint8=ra.prototype.readUInt8=function(t,r){return t=t>>>0,r||tv(t,1,this.length),this[t]};ra.prototype.readUint16LE=ra.prototype.readUInt16LE=function(t,r){return t=t>>>0,r||tv(t,2,this.length),this[t]|this[t+1]<<8};ra.prototype.readUint16BE=ra.prototype.readUInt16BE=function(t,r){return t=t>>>0,r||tv(t,2,this.length),this[t]<<8|this[t+1]};ra.prototype.readUint32LE=ra.prototype.readUInt32LE=function(t,r){return t=t>>>0,r||tv(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};ra.prototype.readUint32BE=ra.prototype.readUInt32BE=function(t,r){return t=t>>>0,r||tv(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};ra.prototype.readBigUInt64LE=N_(function(t){t=t>>>0,aA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&K4(t,this.length-8);let i=r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24,a=this[++t]+this[++t]*2**8+this[++t]*2**16+n*2**24;return BigInt(i)+(BigInt(a)<<BigInt(32))});ra.prototype.readBigUInt64BE=N_(function(t){t=t>>>0,aA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&K4(t,this.length-8);let i=r*2**24+this[++t]*2**16+this[++t]*2**8+this[++t],a=this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(a)});ra.prototype.readIntLE=function(t,r,n){t=t>>>0,r=r>>>0,n||tv(t,r,this.length);let i=this[t],a=1,o=0;for(;++o<r&&(a*=256);)i+=this[t+o]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*r)),i};ra.prototype.readIntBE=function(t,r,n){t=t>>>0,r=r>>>0,n||tv(t,r,this.length);let i=r,a=1,o=this[t+--i];for(;i>0&&(a*=256);)o+=this[t+--i]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*r)),o};ra.prototype.readInt8=function(t,r){return t=t>>>0,r||tv(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};ra.prototype.readInt16LE=function(t,r){t=t>>>0,r||tv(t,2,this.length);let n=this[t]|this[t+1]<<8;return n&32768?n|4294901760:n};ra.prototype.readInt16BE=function(t,r){t=t>>>0,r||tv(t,2,this.length);let n=this[t+1]|this[t]<<8;return n&32768?n|4294901760:n};ra.prototype.readInt32LE=function(t,r){return t=t>>>0,r||tv(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};ra.prototype.readInt32BE=function(t,r){return t=t>>>0,r||tv(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};ra.prototype.readBigInt64LE=N_(function(t){t=t>>>0,aA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&K4(t,this.length-8);let i=this[t+4]+this[t+5]*2**8+this[t+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(r+this[++t]*2**8+this[++t]*2**16+this[++t]*2**24)});ra.prototype.readBigInt64BE=N_(function(t){t=t>>>0,aA(t,"offset");let r=this[t],n=this[t+7];(r===void 0||n===void 0)&&K4(t,this.length-8);let i=(r<<24)+this[++t]*2**16+this[++t]*2**8+this[++t];return(BigInt(i)<<BigInt(32))+BigInt(this[++t]*2**24+this[++t]*2**16+this[++t]*2**8+n)});ra.prototype.readFloatLE=function(t,r){return t=t>>>0,r||tv(t,4,this.length),nA.read(this,t,!0,23,4)};ra.prototype.readFloatBE=function(t,r){return t=t>>>0,r||tv(t,4,this.length),nA.read(this,t,!1,23,4)};ra.prototype.readDoubleLE=function(t,r){return t=t>>>0,r||tv(t,8,this.length),nA.read(this,t,!0,52,8)};ra.prototype.readDoubleBE=function(t,r){return t=t>>>0,r||tv(t,8,this.length),nA.read(this,t,!1,52,8)};function Rp(e,t,r,n,i,a){if(!ra.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}ra.prototype.writeUintLE=ra.prototype.writeUIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Rp(this,t,r,n,s,0)}let a=1,o=0;for(this[r]=t&255;++o<n&&(a*=256);)this[r+o]=t/a&255;return r+n};ra.prototype.writeUintBE=ra.prototype.writeUIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,n=n>>>0,!i){let s=Math.pow(2,8*n)-1;Rp(this,t,r,n,s,0)}let a=n-1,o=1;for(this[r+a]=t&255;--a>=0&&(o*=256);)this[r+a]=t/o&255;return r+n};ra.prototype.writeUint8=ra.prototype.writeUInt8=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,1,255,0),this[r]=t&255,r+1};ra.prototype.writeUint16LE=ra.prototype.writeUInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,2,65535,0),this[r]=t&255,this[r+1]=t>>>8,r+2};ra.prototype.writeUint16BE=ra.prototype.writeUInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,2,65535,0),this[r]=t>>>8,this[r+1]=t&255,r+2};ra.prototype.writeUint32LE=ra.prototype.writeUInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,4,4294967295,0),this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=t&255,r+4};ra.prototype.writeUint32BE=ra.prototype.writeUInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,4,4294967295,0),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};function fTe(e,t,r,n,i){gTe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a,a=a>>8,e[r++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,o=o>>8,e[r++]=o,r}function hTe(e,t,r,n,i){gTe(t,n,i,e,r,7);let a=Number(t&BigInt(4294967295));e[r+7]=a,a=a>>8,e[r+6]=a,a=a>>8,e[r+5]=a,a=a>>8,e[r+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o=o>>8,e[r+2]=o,o=o>>8,e[r+1]=o,o=o>>8,e[r]=o,r+8}ra.prototype.writeBigUInt64LE=N_(function(t,r=0){return fTe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ra.prototype.writeBigUInt64BE=N_(function(t,r=0){return hTe(this,t,r,BigInt(0),BigInt("0xffffffffffffffff"))});ra.prototype.writeIntLE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Rp(this,t,r,n,l-1,-l)}let a=0,o=1,s=0;for(this[r]=t&255;++a<n&&(o*=256);)t<0&&s===0&&this[r+a-1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+n};ra.prototype.writeIntBE=function(t,r,n,i){if(t=+t,r=r>>>0,!i){let l=Math.pow(2,8*n-1);Rp(this,t,r,n,l-1,-l)}let a=n-1,o=1,s=0;for(this[r+a]=t&255;--a>=0&&(o*=256);)t<0&&s===0&&this[r+a+1]!==0&&(s=1),this[r+a]=(t/o>>0)-s&255;return r+n};ra.prototype.writeInt8=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,1,127,-128),t<0&&(t=255+t+1),this[r]=t&255,r+1};ra.prototype.writeInt16LE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,2,32767,-32768),this[r]=t&255,this[r+1]=t>>>8,r+2};ra.prototype.writeInt16BE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,2,32767,-32768),this[r]=t>>>8,this[r+1]=t&255,r+2};ra.prototype.writeInt32LE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,4,2147483647,-2147483648),this[r]=t&255,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24,r+4};ra.prototype.writeInt32BE=function(t,r,n){return t=+t,r=r>>>0,n||Rp(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=t&255,r+4};ra.prototype.writeBigInt64LE=N_(function(t,r=0){return fTe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});ra.prototype.writeBigInt64BE=N_(function(t,r=0){return hTe(this,t,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function dTe(e,t,r,n,i,a){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function vTe(e,t,r,n,i){return t=+t,r=r>>>0,i||dTe(e,t,r,4,34028234663852886e22,-34028234663852886e22),nA.write(e,t,r,n,23,4),r+4}ra.prototype.writeFloatLE=function(t,r,n){return vTe(this,t,r,!0,n)};ra.prototype.writeFloatBE=function(t,r,n){return vTe(this,t,r,!1,n)};function pTe(e,t,r,n,i){return t=+t,r=r>>>0,i||dTe(e,t,r,8,17976931348623157e292,-17976931348623157e292),nA.write(e,t,r,n,52,8),r+8}ra.prototype.writeDoubleLE=function(t,r,n){return pTe(this,t,r,!0,n)};ra.prototype.writeDoubleBE=function(t,r,n){return pTe(this,t,r,!1,n)};ra.prototype.copy=function(t,r,n,i){if(!ra.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i<n&&(i=n),i===n||t.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r<i-n&&(i=t.length-r+n);let a=i-n;return this===t&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,n,i):Uint8Array.prototype.set.call(t,this.subarray(n,i),r),a};ra.prototype.fill=function(t,r,n,i){if(typeof t=="string"){if(typeof r=="string"?(i=r,r=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!ra.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(t.length===1){let o=t.charCodeAt(0);(i==="utf8"&&o<128||i==="latin1")&&(t=o)}}else typeof t=="number"?t=t&255:typeof t=="boolean"&&(t=Number(t));if(r<0||this.length<r||this.length<n)throw new RangeError("Out of range index");if(n<=r)return this;r=r>>>0,n=n===void 0?this.length:n>>>0,t||(t=0);let a;if(typeof t=="number")for(a=r;a<n;++a)this[a]=t;else{let o=ra.isBuffer(t)?t:ra.from(t,i),s=o.length;if(s===0)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(a=0;a<n-r;++a)this[a+r]=o[a%s]}return this};var iA={};function CH(e,t,r){iA[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}CH("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);CH("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError);CH("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=aTe(String(r)):typeof r=="bigint"&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=aTe(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);function aTe(e){let t="",r=e.length,n=e[0]==="-"?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function TTt(e,t,r){aA(t,"offset"),(e[t]===void 0||e[t+r]===void 0)&&K4(t,e.length-(r+1))}function gTe(e,t,r,n,i,a){if(e>r||e<t){let o=typeof t=="bigint"?"n":"",s;throw a>3?t===0||t===BigInt(0)?s=`>= 0${o} and < 2${o} ** ${(a+1)*8}${o}`:s=`>= -(2${o} ** ${(a+1)*8-1}${o}) and < 2 ** ${(a+1)*8-1}${o}`:s=`>= ${t}${o} and <= ${r}${o}`,new iA.ERR_OUT_OF_RANGE("value",s,e)}TTt(n,i,a)}function aA(e,t){if(typeof e!="number")throw new iA.ERR_INVALID_ARG_TYPE(t,"number",e)}function K4(e,t,r){throw Math.floor(e)!==e?(aA(e,r),new iA.ERR_OUT_OF_RANGE(r||"offset","an integer",e)):t<0?new iA.ERR_BUFFER_OUT_OF_BOUNDS:new iA.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}var ATt=/[^+/0-9A-Za-z-_]/g;function STt(e){if(e=e.split("=")[0],e=e.trim().replace(ATt,""),e.length<2)return"";for(;e.length%4!==0;)e=e+"=";return e}function MH(e,t){t=t||1/0;let r,n=e.length,i=null,a=[];for(let o=0;o<n;++o){if(r=e.charCodeAt(o),r>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,r&63|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return a}function MTt(e){let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r)&255);return t}function ETt(e,t){let r,n,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)r=e.charCodeAt(o),n=r>>8,i=r%256,a.push(i),a.push(n);return a}function mTe(e){return TH.toByteArray(STt(e))}function Y8(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function jm(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function LH(e){return e!==e}var kTt=function(){let e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){let n=r*16;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function N_(e){return typeof BigInt=="undefined"?CTt:e}function CTt(){throw new Error("BigInt not supported")}});var K8=ye((lhr,yTe)=>{"use strict";yTe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var a in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}});var J4=ye((uhr,_Te)=>{"use strict";var LTt=K8();_Te.exports=function(){return LTt()&&!!Symbol.toStringTag}});var PH=ye((chr,xTe)=>{"use strict";xTe.exports=Object});var wTe=ye((fhr,bTe)=>{"use strict";bTe.exports=Error});var ATe=ye((hhr,TTe)=>{"use strict";TTe.exports=EvalError});var MTe=ye((dhr,STe)=>{"use strict";STe.exports=RangeError});var kTe=ye((vhr,ETe)=>{"use strict";ETe.exports=ReferenceError});var IH=ye((phr,CTe)=>{"use strict";CTe.exports=SyntaxError});var sA=ye((ghr,LTe)=>{"use strict";LTe.exports=TypeError});var ITe=ye((mhr,PTe)=>{"use strict";PTe.exports=URIError});var DTe=ye((yhr,RTe)=>{"use strict";RTe.exports=Math.abs});var zTe=ye((_hr,FTe)=>{"use strict";FTe.exports=Math.floor});var OTe=ye((xhr,qTe)=>{"use strict";qTe.exports=Math.max});var NTe=ye((bhr,BTe)=>{"use strict";BTe.exports=Math.min});var VTe=ye((whr,UTe)=>{"use strict";UTe.exports=Math.pow});var HTe=ye((Thr,GTe)=>{"use strict";GTe.exports=Math.round});var WTe=ye((Ahr,jTe)=>{"use strict";jTe.exports=Number.isNaN||function(t){return t!==t}});var ZTe=ye((Shr,XTe)=>{"use strict";var PTt=WTe();XTe.exports=function(t){return PTt(t)||t===0?t:t<0?-1:1}});var KTe=ye((Mhr,YTe)=>{"use strict";YTe.exports=Object.getOwnPropertyDescriptor});var w2=ye((Ehr,JTe)=>{"use strict";var J8=KTe();if(J8)try{J8([],"length")}catch(e){J8=null}JTe.exports=J8});var $4=ye((khr,$Te)=>{"use strict";var $8=Object.defineProperty||!1;if($8)try{$8({},"a",{value:1})}catch(e){$8=!1}$Te.exports=$8});var tAe=ye((Chr,eAe)=>{"use strict";var QTe=typeof Symbol!="undefined"&&Symbol,ITt=K8();eAe.exports=function(){return typeof QTe!="function"||typeof Symbol!="function"||typeof QTe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ITt()}});var RH=ye((Lhr,rAe)=>{"use strict";rAe.exports=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null});var DH=ye((Phr,iAe)=>{"use strict";var RTt=PH();iAe.exports=RTt.getPrototypeOf||null});var oAe=ye((Ihr,aAe)=>{"use strict";var DTt="Function.prototype.bind called on incompatible ",FTt=Object.prototype.toString,zTt=Math.max,qTt="[object Function]",nAe=function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var a=0;a<r.length;a+=1)n[a+t.length]=r[a];return n},OTt=function(t,r){for(var n=[],i=r||0,a=0;i<t.length;i+=1,a+=1)n[a]=t[i];return n},BTt=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};aAe.exports=function(t){var r=this;if(typeof r!="function"||FTt.apply(r)!==qTt)throw new TypeError(DTt+r);for(var n=OTt(arguments,1),i,a=function(){if(this instanceof i){var c=r.apply(this,nAe(n,arguments));return Object(c)===c?c:this}return r.apply(t,nAe(n,arguments))},o=zTt(0,r.length-n.length),s=[],l=0;l<o;l++)s[l]="$"+l;if(i=Function("binder","return function ("+BTt(s,",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i}});var lA=ye((Rhr,sAe)=>{"use strict";var NTt=oAe();sAe.exports=Function.prototype.bind||NTt});var Q8=ye((Dhr,lAe)=>{"use strict";lAe.exports=Function.prototype.call});var FH=ye((Fhr,uAe)=>{"use strict";uAe.exports=Function.prototype.apply});var fAe=ye((zhr,cAe)=>{"use strict";cAe.exports=typeof Reflect!="undefined"&&Reflect&&Reflect.apply});var dAe=ye((qhr,hAe)=>{"use strict";var UTt=lA(),VTt=FH(),GTt=Q8(),HTt=fAe();hAe.exports=HTt||UTt.call(GTt,VTt)});var pAe=ye((Ohr,vAe)=>{"use strict";var jTt=lA(),WTt=sA(),XTt=Q8(),ZTt=dAe();vAe.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new WTt("a function is required");return ZTt(jTt,XTt,t)}});var bAe=ye((Bhr,xAe)=>{"use strict";var YTt=pAe(),gAe=w2(),yAe;try{yAe=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var zH=!!yAe&&gAe&&gAe(Object.prototype,"__proto__"),_Ae=Object,mAe=_Ae.getPrototypeOf;xAe.exports=zH&&typeof zH.get=="function"?YTt([zH.get]):typeof mAe=="function"?function(t){return mAe(t==null?t:_Ae(t))}:!1});var MAe=ye((Nhr,SAe)=>{"use strict";var wAe=RH(),TAe=DH(),AAe=bAe();SAe.exports=wAe?function(t){return wAe(t)}:TAe?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return TAe(t)}:AAe?function(t){return AAe(t)}:null});var kAe=ye((Uhr,EAe)=>{"use strict";var KTt=Function.prototype.call,JTt=Object.prototype.hasOwnProperty,$Tt=lA();EAe.exports=$Tt.call(KTt,JTt)});var rR=ye((Vhr,DAe)=>{"use strict";var lu,QTt=PH(),eAt=wTe(),tAt=ATe(),rAt=MTe(),iAt=kTe(),hA=IH(),fA=sA(),nAt=ITe(),aAt=DTe(),oAt=zTe(),sAt=OTe(),lAt=NTe(),uAt=VTe(),cAt=HTe(),fAt=ZTe(),IAe=Function,qH=function(e){try{return IAe('"use strict"; return ('+e+").constructor;")()}catch(t){}},Q4=w2(),hAt=$4(),OH=function(){throw new fA},dAt=Q4?function(){try{return arguments.callee,OH}catch(e){try{return Q4(arguments,"callee").get}catch(t){return OH}}}():OH,uA=tAe()(),rv=MAe(),vAt=DH(),pAt=RH(),RAe=FH(),eE=Q8(),cA={},gAt=typeof Uint8Array=="undefined"||!rv?lu:rv(Uint8Array),T2={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?lu:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?lu:ArrayBuffer,"%ArrayIteratorPrototype%":uA&&rv?rv([][Symbol.iterator]()):lu,"%AsyncFromSyncIteratorPrototype%":lu,"%AsyncFunction%":cA,"%AsyncGenerator%":cA,"%AsyncGeneratorFunction%":cA,"%AsyncIteratorPrototype%":cA,"%Atomics%":typeof Atomics=="undefined"?lu:Atomics,"%BigInt%":typeof BigInt=="undefined"?lu:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?lu:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?lu:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?lu:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":eAt,"%eval%":eval,"%EvalError%":tAt,"%Float16Array%":typeof Float16Array=="undefined"?lu:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?lu:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?lu:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?lu:FinalizationRegistry,"%Function%":IAe,"%GeneratorFunction%":cA,"%Int8Array%":typeof Int8Array=="undefined"?lu:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?lu:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?lu:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":uA&&rv?rv(rv([][Symbol.iterator]())):lu,"%JSON%":typeof JSON=="object"?JSON:lu,"%Map%":typeof Map=="undefined"?lu:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!uA||!rv?lu:rv(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":QTt,"%Object.getOwnPropertyDescriptor%":Q4,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?lu:Promise,"%Proxy%":typeof Proxy=="undefined"?lu:Proxy,"%RangeError%":rAt,"%ReferenceError%":iAt,"%Reflect%":typeof Reflect=="undefined"?lu:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?lu:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!uA||!rv?lu:rv(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?lu:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":uA&&rv?rv(""[Symbol.iterator]()):lu,"%Symbol%":uA?Symbol:lu,"%SyntaxError%":hA,"%ThrowTypeError%":dAt,"%TypedArray%":gAt,"%TypeError%":fA,"%Uint8Array%":typeof Uint8Array=="undefined"?lu:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?lu:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?lu:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?lu:Uint32Array,"%URIError%":nAt,"%WeakMap%":typeof WeakMap=="undefined"?lu:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?lu:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?lu:WeakSet,"%Function.prototype.call%":eE,"%Function.prototype.apply%":RAe,"%Object.defineProperty%":hAt,"%Object.getPrototypeOf%":vAt,"%Math.abs%":aAt,"%Math.floor%":oAt,"%Math.max%":sAt,"%Math.min%":lAt,"%Math.pow%":uAt,"%Math.round%":cAt,"%Math.sign%":fAt,"%Reflect.getPrototypeOf%":pAt};if(rv)try{null.error}catch(e){CAe=rv(rv(e)),T2["%Error.prototype%"]=CAe}var CAe,mAt=function e(t){var r;if(t==="%AsyncFunction%")r=qH("async function () {}");else if(t==="%GeneratorFunction%")r=qH("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=qH("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&rv&&(r=rv(i.prototype))}return T2[t]=r,r},LAe={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},tE=lA(),eR=kAe(),yAt=tE.call(eE,Array.prototype.concat),_At=tE.call(RAe,Array.prototype.splice),PAe=tE.call(eE,String.prototype.replace),tR=tE.call(eE,String.prototype.slice),xAt=tE.call(eE,RegExp.prototype.exec),bAt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,wAt=/\\(\\)?/g,TAt=function(t){var r=tR(t,0,1),n=tR(t,-1);if(r==="%"&&n!=="%")throw new hA("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new hA("invalid intrinsic syntax, expected opening `%`");var i=[];return PAe(t,bAt,function(a,o,s,l){i[i.length]=s?PAe(l,wAt,"$1"):o||a}),i},AAt=function(t,r){var n=t,i;if(eR(LAe,n)&&(i=LAe[n],n="%"+i[0]+"%"),eR(T2,n)){var a=T2[n];if(a===cA&&(a=mAt(n)),typeof a=="undefined"&&!r)throw new fA("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new hA("intrinsic "+t+" does not exist!")};DAe.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new fA("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new fA('"allowMissing" argument must be a boolean');if(xAt(/^%?[^%]*%?$/,t)===null)throw new hA("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=TAt(t),i=n.length>0?n[0]:"",a=AAt("%"+i+"%",r),o=a.name,s=a.value,l=!1,u=a.alias;u&&(i=u[0],_At(n,yAt([0,1],u)));for(var c=1,f=!0;c<n.length;c+=1){var h=n[c],d=tR(h,0,1),v=tR(h,-1);if((d==='"'||d==="'"||d==="`"||v==='"'||v==="'"||v==="`")&&d!==v)throw new hA("property names with quotes must have matching quotes");if((h==="constructor"||!f)&&(l=!0),i+="."+h,o="%"+i+"%",eR(T2,o))s=T2[o];else if(s!=null){if(!(h in s)){if(!r)throw new fA("base intrinsic for "+t+" exists, but the property is not available.");return}if(Q4&&c+1>=n.length){var m=Q4(s,h);f=!!m,f&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[h]}else f=eR(s,h),s=s[h];f&&!l&&(T2[o]=s)}}return s}});var OAe=ye((Ghr,qAe)=>{"use strict";var FAe=$4(),SAt=IH(),dA=sA(),zAe=w2();qAe.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new dA("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new dA("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new dA("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new dA("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new dA("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new dA("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!zAe&&zAe(t,r);if(FAe)FAe(t,r,{configurable:o===null&&l?l.configurable:!o,enumerable:i===null&&l?l.enumerable:!i,value:n,writable:a===null&&l?l.writable:!a});else if(s||!i&&!a&&!o)t[r]=n;else throw new SAt("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var NH=ye((Hhr,NAe)=>{"use strict";var BH=$4(),BAe=function(){return!!BH};BAe.hasArrayLengthDefineBug=function(){if(!BH)return null;try{return BH([],"length",{value:1}).length!==1}catch(t){return!0}};NAe.exports=BAe});var jAe=ye((jhr,HAe)=>{"use strict";var MAt=rR(),UAe=OAe(),EAt=NH()(),VAe=w2(),GAe=sA(),kAt=MAt("%Math.floor%");HAe.exports=function(t,r){if(typeof t!="function")throw new GAe("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||kAt(r)!==r)throw new GAe("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],i=!0,a=!0;if("length"in t&&VAe){var o=VAe(t,"length");o&&!o.configurable&&(i=!1),o&&!o.writable&&(a=!1)}return(i||a||!n)&&(EAt?UAe(t,"length",r,!0,!0):UAe(t,"length",r)),t}});var rE=ye((Whr,iR)=>{"use strict";var UH=lA(),nR=rR(),CAt=jAe(),LAt=sA(),ZAe=nR("%Function.prototype.apply%"),YAe=nR("%Function.prototype.call%"),KAe=nR("%Reflect.apply%",!0)||UH.call(YAe,ZAe),WAe=$4(),PAt=nR("%Math.max%");iR.exports=function(t){if(typeof t!="function")throw new LAt("a function is required");var r=KAe(UH,YAe,arguments);return CAt(r,1+PAt(0,t.length-(arguments.length-1)),!0)};var XAe=function(){return KAe(UH,ZAe,arguments)};WAe?WAe(iR.exports,"apply",{value:XAe}):iR.exports.apply=XAe});var vA=ye((Xhr,QAe)=>{"use strict";var JAe=rR(),$Ae=rE(),IAt=$Ae(JAe("String.prototype.indexOf"));QAe.exports=function(t,r){var n=JAe(t,!!r);return typeof n=="function"&&IAt(t,".prototype.")>-1?$Ae(n):n}});var r5e=ye((Zhr,t5e)=>{"use strict";var RAt=J4()(),DAt=vA(),VH=DAt("Object.prototype.toString"),aR=function(t){return RAt&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:VH(t)==="[object Arguments]"},e5e=function(t){return aR(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&VH(t)!=="[object Array]"&&VH(t.callee)==="[object Function]"},FAt=function(){return aR(arguments)}();aR.isLegacyArguments=e5e;t5e.exports=FAt?aR:e5e});var a5e=ye((Yhr,n5e)=>{"use strict";var zAt=Object.prototype.toString,qAt=Function.prototype.toString,OAt=/^\s*(?:function)?\*/,i5e=J4()(),GH=Object.getPrototypeOf,BAt=function(){if(!i5e)return!1;try{return Function("return function*() {}")()}catch(e){}},HH;n5e.exports=function(t){if(typeof t!="function")return!1;if(OAt.test(qAt.call(t)))return!0;if(!i5e){var r=zAt.call(t);return r==="[object GeneratorFunction]"}if(!GH)return!1;if(typeof HH=="undefined"){var n=BAt();HH=n?GH(n):!1}return GH(t)===HH}});var u5e=ye((Khr,l5e)=>{"use strict";var s5e=Function.prototype.toString,pA=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,WH,oR;if(typeof pA=="function"&&typeof Object.defineProperty=="function")try{WH=Object.defineProperty({},"length",{get:function(){throw oR}}),oR={},pA(function(){throw 42},null,WH)}catch(e){e!==oR&&(pA=null)}else pA=null;var NAt=/^\s*class\b/,XH=function(t){try{var r=s5e.call(t);return NAt.test(r)}catch(n){return!1}},jH=function(t){try{return XH(t)?!1:(s5e.call(t),!0)}catch(r){return!1}},sR=Object.prototype.toString,UAt="[object Object]",VAt="[object Function]",GAt="[object GeneratorFunction]",HAt="[object HTMLAllCollection]",jAt="[object HTML document.all class]",WAt="[object HTMLCollection]",XAt=typeof Symbol=="function"&&!!Symbol.toStringTag,ZAt=!(0 in[,]),ZH=function(){return!1};typeof document=="object"&&(o5e=document.all,sR.call(o5e)===sR.call(document.all)&&(ZH=function(t){if((ZAt||!t)&&(typeof t=="undefined"||typeof t=="object"))try{var r=sR.call(t);return(r===HAt||r===jAt||r===WAt||r===UAt)&&t("")==null}catch(n){}return!1}));var o5e;l5e.exports=pA?function(t){if(ZH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{pA(t,null,WH)}catch(r){if(r!==oR)return!1}return!XH(t)&&jH(t)}:function(t){if(ZH(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(XAt)return jH(t);if(XH(t))return!1;var r=sR.call(t);return r!==VAt&&r!==GAt&&!/^\[object HTML/.test(r)?!1:jH(t)}});var YH=ye((Jhr,f5e)=>{"use strict";var YAt=u5e(),KAt=Object.prototype.toString,c5e=Object.prototype.hasOwnProperty,JAt=function(t,r,n){for(var i=0,a=t.length;i<a;i++)c5e.call(t,i)&&(n==null?r(t[i],i,t):r.call(n,t[i],i,t))},$At=function(t,r,n){for(var i=0,a=t.length;i<a;i++)n==null?r(t.charAt(i),i,t):r.call(n,t.charAt(i),i,t)},QAt=function(t,r,n){for(var i in t)c5e.call(t,i)&&(n==null?r(t[i],i,t):r.call(n,t[i],i,t))},e5t=function(t,r,n){if(!YAt(r))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=n),KAt.call(t)==="[object Array]"?JAt(t,r,i):typeof t=="string"?$At(t,r,i):QAt(t,r,i)};f5e.exports=e5t});var JH=ye(($hr,h5e)=>{"use strict";var KH=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],t5t=typeof globalThis=="undefined"?window:globalThis;h5e.exports=function(){for(var t=[],r=0;r<KH.length;r++)typeof t5t[KH[r]]=="function"&&(t[t.length]=KH[r]);return t}});var m5e=ye((Qhr,g5e)=>{"use strict";var uR=YH(),r5t=JH(),d5e=rE(),ej=vA(),lR=w2(),i5t=ej("Object.prototype.toString"),p5e=J4()(),v5e=typeof globalThis=="undefined"?window:globalThis,QH=r5t(),tj=ej("String.prototype.slice"),$H=Object.getPrototypeOf,n5t=ej("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n<t.length;n+=1)if(t[n]===r)return n;return-1},cR={__proto__:null};p5e&&lR&&$H?uR(QH,function(e){var t=new v5e[e];if(Symbol.toStringTag in t){var r=$H(t),n=lR(r,Symbol.toStringTag);if(!n){var i=$H(r);n=lR(i,Symbol.toStringTag)}cR["$"+e]=d5e(n.get)}}):uR(QH,function(e){var t=new v5e[e],r=t.slice||t.set;r&&(cR["$"+e]=d5e(r))});var a5t=function(t){var r=!1;return uR(cR,function(n,i){if(!r)try{"$"+n(t)===i&&(r=tj(i,1))}catch(a){}}),r},o5t=function(t){var r=!1;return uR(cR,function(n,i){if(!r)try{n(t),r=tj(i,1)}catch(a){}}),r};g5e.exports=function(t){if(!t||typeof t!="object")return!1;if(!p5e){var r=tj(i5t(t),8,-1);return n5t(QH,r)>-1?r:r!=="Object"?!1:o5t(t)}return lR?a5t(t):null}});var T5e=ye((edr,w5e)=>{"use strict";var y5e=YH(),s5t=JH(),ij=vA(),l5t=ij("Object.prototype.toString"),_5e=J4()(),fR=w2(),u5t=typeof globalThis=="undefined"?window:globalThis,x5e=s5t(),c5t=ij("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n<t.length;n+=1)if(t[n]===r)return n;return-1},f5t=ij("String.prototype.slice"),b5e={},rj=Object.getPrototypeOf;_5e&&fR&&rj&&y5e(x5e,function(e){var t=new u5t[e];if(Symbol.toStringTag in t){var r=rj(t),n=fR(r,Symbol.toStringTag);if(!n){var i=rj(r);n=fR(i,Symbol.toStringTag)}b5e[e]=n.get}});var h5t=function(t){var r=!1;return y5e(b5e,function(n,i){if(!r)try{r=n.call(t)===i}catch(a){}}),r};w5e.exports=function(t){if(!t||typeof t!="object")return!1;if(!_5e||!(Symbol.toStringTag in t)){var r=f5t(l5t(t),8,-1);return c5t(x5e,r)>-1}return fR?h5t(t):!1}});var oj=ye(uu=>{"use strict";var d5t=r5e(),v5t=a5e(),Wg=m5e(),A5e=T5e();function gA(e){return e.call.bind(e)}var S5e=typeof BigInt!="undefined",M5e=typeof Symbol!="undefined",K0=gA(Object.prototype.toString),p5t=gA(Number.prototype.valueOf),g5t=gA(String.prototype.valueOf),m5t=gA(Boolean.prototype.valueOf);S5e&&(E5e=gA(BigInt.prototype.valueOf));var E5e;M5e&&(k5e=gA(Symbol.prototype.valueOf));var k5e;function nE(e,t){if(typeof e!="object")return!1;try{return t(e),!0}catch(r){return!1}}uu.isArgumentsObject=d5t;uu.isGeneratorFunction=v5t;uu.isTypedArray=A5e;function y5t(e){return typeof Promise!="undefined"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}uu.isPromise=y5t;function _5t(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(e):A5e(e)||L5e(e)}uu.isArrayBufferView=_5t;function x5t(e){return Wg(e)==="Uint8Array"}uu.isUint8Array=x5t;function b5t(e){return Wg(e)==="Uint8ClampedArray"}uu.isUint8ClampedArray=b5t;function w5t(e){return Wg(e)==="Uint16Array"}uu.isUint16Array=w5t;function T5t(e){return Wg(e)==="Uint32Array"}uu.isUint32Array=T5t;function A5t(e){return Wg(e)==="Int8Array"}uu.isInt8Array=A5t;function S5t(e){return Wg(e)==="Int16Array"}uu.isInt16Array=S5t;function M5t(e){return Wg(e)==="Int32Array"}uu.isInt32Array=M5t;function E5t(e){return Wg(e)==="Float32Array"}uu.isFloat32Array=E5t;function k5t(e){return Wg(e)==="Float64Array"}uu.isFloat64Array=k5t;function C5t(e){return Wg(e)==="BigInt64Array"}uu.isBigInt64Array=C5t;function L5t(e){return Wg(e)==="BigUint64Array"}uu.isBigUint64Array=L5t;function hR(e){return K0(e)==="[object Map]"}hR.working=typeof Map!="undefined"&&hR(new Map);function P5t(e){return typeof Map=="undefined"?!1:hR.working?hR(e):e instanceof Map}uu.isMap=P5t;function dR(e){return K0(e)==="[object Set]"}dR.working=typeof Set!="undefined"&&dR(new Set);function I5t(e){return typeof Set=="undefined"?!1:dR.working?dR(e):e instanceof Set}uu.isSet=I5t;function vR(e){return K0(e)==="[object WeakMap]"}vR.working=typeof WeakMap!="undefined"&&vR(new WeakMap);function R5t(e){return typeof WeakMap=="undefined"?!1:vR.working?vR(e):e instanceof WeakMap}uu.isWeakMap=R5t;function aj(e){return K0(e)==="[object WeakSet]"}aj.working=typeof WeakSet!="undefined"&&aj(new WeakSet);function D5t(e){return aj(e)}uu.isWeakSet=D5t;function pR(e){return K0(e)==="[object ArrayBuffer]"}pR.working=typeof ArrayBuffer!="undefined"&&pR(new ArrayBuffer);function C5e(e){return typeof ArrayBuffer=="undefined"?!1:pR.working?pR(e):e instanceof ArrayBuffer}uu.isArrayBuffer=C5e;function gR(e){return K0(e)==="[object DataView]"}gR.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&gR(new DataView(new ArrayBuffer(1),0,1));function L5e(e){return typeof DataView=="undefined"?!1:gR.working?gR(e):e instanceof DataView}uu.isDataView=L5e;var nj=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function iE(e){return K0(e)==="[object SharedArrayBuffer]"}function P5e(e){return typeof nj=="undefined"?!1:(typeof iE.working=="undefined"&&(iE.working=iE(new nj)),iE.working?iE(e):e instanceof nj)}uu.isSharedArrayBuffer=P5e;function F5t(e){return K0(e)==="[object AsyncFunction]"}uu.isAsyncFunction=F5t;function z5t(e){return K0(e)==="[object Map Iterator]"}uu.isMapIterator=z5t;function q5t(e){return K0(e)==="[object Set Iterator]"}uu.isSetIterator=q5t;function O5t(e){return K0(e)==="[object Generator]"}uu.isGeneratorObject=O5t;function B5t(e){return K0(e)==="[object WebAssembly.Module]"}uu.isWebAssemblyCompiledModule=B5t;function I5e(e){return nE(e,p5t)}uu.isNumberObject=I5e;function R5e(e){return nE(e,g5t)}uu.isStringObject=R5e;function D5e(e){return nE(e,m5t)}uu.isBooleanObject=D5e;function F5e(e){return S5e&&nE(e,E5e)}uu.isBigIntObject=F5e;function z5e(e){return M5e&&nE(e,k5e)}uu.isSymbolObject=z5e;function N5t(e){return I5e(e)||R5e(e)||D5e(e)||F5e(e)||z5e(e)}uu.isBoxedPrimitive=N5t;function U5t(e){return typeof Uint8Array!="undefined"&&(C5e(e)||P5e(e))}uu.isAnyArrayBuffer=U5t;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(uu,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})});var sj=ye((rdr,q5e)=>{q5e.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"}});var dj=ye(cu=>{var O5e=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},i=0;i<r.length;i++)n[r[i]]=Object.getOwnPropertyDescriptor(t,r[i]);return n},V5t=/%[sdj%]/g;cu.format=function(e){if(!TR(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(U_(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(V5t,function(s){if(s==="%%")return"%";if(r>=i)return s;switch(s){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(l){return"[Circular]"}default:return s}}),o=n[r];r<i;o=n[++r])wR(o)||!mA(o)?a+=" "+o:a+=" "+U_(o);return a};cu.deprecate=function(e,t){if(typeof process!="undefined"&&process.noDeprecation===!0)return e;if(typeof process=="undefined")return function(){return cu.deprecate(e,t).apply(this,arguments)};var r=!1;function n(){if(!r){if(process.throwDeprecation)throw new Error(t);process.traceDeprecation?console.trace(t):console.error(t),r=!0}return e.apply(this,arguments)}return n};var mR={},B5e=/^$/;yR="false",yR=yR.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),B5e=new RegExp("^"+yR+"$","i");var yR;cu.debuglog=function(e){if(e=e.toUpperCase(),!mR[e])if(B5e.test(e)){var t=process.pid;mR[e]=function(){var r=cu.format.apply(cu,arguments);console.error("%s %d: %s",e,t,r)}}else mR[e]=function(){};return mR[e]};function U_(e,t){var r={seen:[],stylize:H5t};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),fj(t)?r.showHidden=t:t&&cu._extend(r,t),S2(r.showHidden)&&(r.showHidden=!1),S2(r.depth)&&(r.depth=2),S2(r.colors)&&(r.colors=!1),S2(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=G5t),xR(r,e,r.depth)}cu.inspect=U_;U_.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};U_.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function G5t(e,t){var r=U_.styles[t];return r?"\x1B["+U_.colors[r][0]+"m"+e+"\x1B["+U_.colors[r][1]+"m":e}function H5t(e,t){return e}function j5t(e){var t={};return e.forEach(function(r,n){t[r]=!0}),t}function xR(e,t,r){if(e.customInspect&&t&&_R(t.inspect)&&t.inspect!==cu.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return TR(n)||(n=xR(e,n,r)),n}var i=W5t(e,t);if(i)return i;var a=Object.keys(t),o=j5t(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(t)),oE(t)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return lj(t);if(a.length===0){if(_R(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(aE(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(bR(t))return e.stylize(Date.prototype.toString.call(t),"date");if(oE(t))return lj(t)}var l="",u=!1,c=["{","}"];if(N5e(t)&&(u=!0,c=["[","]"]),_R(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]"}if(aE(t)&&(l=" "+RegExp.prototype.toString.call(t)),bR(t)&&(l=" "+Date.prototype.toUTCString.call(t)),oE(t)&&(l=" "+lj(t)),a.length===0&&(!u||t.length==0))return c[0]+l+c[1];if(r<0)return aE(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var h;return u?h=X5t(e,t,r,o,a):h=a.map(function(d){return cj(e,t,r,o,d,u)}),e.seen.pop(),Z5t(h,l,c)}function W5t(e,t){if(S2(t))return e.stylize("undefined","undefined");if(TR(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(U5e(t))return e.stylize(""+t,"number");if(fj(t))return e.stylize(""+t,"boolean");if(wR(t))return e.stylize("null","null")}function lj(e){return"["+Error.prototype.toString.call(e)+"]"}function X5t(e,t,r,n,i){for(var a=[],o=0,s=t.length;o<s;++o)V5e(t,String(o))?a.push(cj(e,t,r,n,String(o),!0)):a.push("");return i.forEach(function(l){l.match(/^\d+$/)||a.push(cj(e,t,r,n,l,!0))}),a}function cj(e,t,r,n,i,a){var o,s,l;if(l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},l.get?l.set?s=e.stylize("[Getter/Setter]","special"):s=e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),V5e(n,i)||(o="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(wR(r)?s=xR(e,l.value,null):s=xR(e,l.value,r-1),s.indexOf(`
23`)>-1&&(a?s=s.split(`

Callers 2

aBFunction · 0.85

Calls 3

sBFunction · 0.85
lBFunction · 0.85
fFunction · 0.70

Tested by

no test coverage detected