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

Function Io

js/lib/mimeExtension.js:4–4  ·  view source on GitHub ↗
(de,Fe)

Source from the content-addressed store, hash-verified

2]`),vt=de.charCodeAt(0);function _t(Gr,Yr,Ei){arguments.length<3&&(Ei=Yr,Yr=null);var xi=Ni(Gr,Fe,Yr==null?At:ar(Yr),Ei);return xi.row=function(na){return arguments.length?xi.response((Yr=na)==null?At:ar(na)):Yr},xi}function At(Gr){return _t.parse(Gr.responseText)}function ar(Gr){return function(Yr){return _t.parse(Yr.responseText,Gr)}}_t.parse=function(Gr,Yr){var Ei;return _t.parseRows(Gr,function(xi,na){if(Ei)return Ei(xi,na-1);var ua=function(Di){for(var Hi={},ta=xi.length,ya=0;ya<ta;++ya)Hi[xi[ya]]=Di[ya];return Hi};Ei=Yr?function(Di,Hi){return Yr(ua(Di),Hi)}:ua})},_t.parseRows=function(Gr,Yr){var Ei={},xi={},na=[],ua=Gr.length,Di=0,Hi=0,ta,ya;function da(){if(Di>=ua)return xi;if(ya)return ya=!1,Ei;var xn=Di;if(Gr.charCodeAt(xn)===34){for(var mn=xn;mn++<ua;)if(Gr.charCodeAt(mn)===34){if(Gr.charCodeAt(mn+1)!==34)break;++mn}Di=mn+2;var In=Gr.charCodeAt(mn+1);return In===13?(ya=!0,Gr.charCodeAt(mn+2)===10&&++Di):In===10&&(ya=!0),Gr.slice(xn+1,mn).replace(/""/g,'"')}for(;Di<ua;){var In=Gr.charCodeAt(Di++),Yn=1;if(In===10)ya=!0;else if(In===13)ya=!0,Gr.charCodeAt(Di)===10&&(++Di,++Yn);else if(In!==vt)continue;return Gr.slice(xn,Di-Yn)}return Gr.slice(xn)}for(;(ta=da())!==xi;){for(var Oi=[];ta!==Ei&&ta!==xi;)Oi.push(ta),ta=da();Yr&&(Oi=Yr(Oi,Hi++))==null||na.push(Oi)}return na},_t.format=function(Gr){if(Array.isArray(Gr[0]))return _t.formatRows(Gr);var Yr=new z,Ei=[];return Gr.forEach(function(xi){for(var na in xi)Yr.has(na)||Ei.push(Yr.add(na))}),[Ei.map(xr).join(de)].concat(Gr.map(function(xi){return Ei.map(function(na){return xr(xi[na])}).join(de)})).join(`
3`)},_t.formatRows=function(Gr){return Gr.map(Ft).join(`
4`)};function Ft(Gr){return Gr.map(xr).join(de)}function xr(Gr){return Je.test(Gr)?'"'+Gr.replace(/\"/g,'""')+'"':Gr}return _t},p.csv=p.dsv(",","text/csv"),p.tsv=p.dsv(" ","text/tab-separated-values");var Li,Ia,Fa,un,Bn=this[B(this,"requestAnimationFrame")]||function(de){setTimeout(de,17)};p.timer=function(){Kn.apply(this,arguments)};function Kn(de,Fe,Je){var vt=arguments.length;vt<2&&(Fe=0),vt<3&&(Je=Date.now());var _t=Je+Fe,At={c:de,t:_t,n:null};return Ia?Ia.n=At:Li=At,Ia=At,Fa||(un=clearTimeout(un),Fa=1,Bn(Gn)),At}function Gn(){var de=eo(),Fe=Ao()-de;Fe>24?(isFinite(Fe)&&(clearTimeout(un),un=setTimeout(Gn,Fe)),Fa=0):(Fa=1,Bn(Gn))}p.timer.flush=function(){eo(),Ao()};function eo(){for(var de=Date.now(),Fe=Li;Fe;)de>=Fe.t&&Fe.c(de-Fe.t)&&(Fe.c=null),Fe=Fe.n;return de}function Ao(){for(var de,Fe=Li,Je=1/0;Fe;)Fe.c?(Fe.t<Je&&(Je=Fe.t),Fe=(de=Fe).n):Fe=de?de.n=Fe.n:Li=Fe.n;return Ia=de,Je}p.round=function(de,Fe){return Fe?Math.round(de*(Fe=Math.pow(10,Fe)))/Fe:Math.round(de)},p.geom={};function An(de){return de[0]}function Eo(de){return de[1]}p.geom.hull=function(de){var Fe=An,Je=Eo;if(arguments.length)return vt(de);function vt(_t){if(_t.length<3)return[];var At=Or(Fe),ar=Or(Je),Ft,xr=_t.length,Gr=[],Yr=[];for(Ft=0;Ft<xr;Ft++)Gr.push([+At.call(this,_t[Ft],Ft),+ar.call(this,_t[Ft],Ft),Ft]);for(Gr.sort(Ls),Ft=0;Ft<xr;Ft++)Yr.push([Gr[Ft][0],-Gr[Ft][1]]);var Ei=fs(Gr),xi=fs(Yr),na=xi[0]===Ei[0],ua=xi[xi.length-1]===Ei[Ei.length-1],Di=[];for(Ft=Ei.length-1;Ft>=0;--Ft)Di.push(_t[Gr[Ei[Ft]][2]]);for(Ft=+na;Ft<xi.length-ua;++Ft)Di.push(_t[Gr[xi[Ft]][2]]);return Di}return vt.x=function(_t){return arguments.length?(Fe=_t,vt):Fe},vt.y=function(_t){return arguments.length?(Je=_t,vt):Je},vt};function fs(de){for(var Fe=de.length,Je=[0,1],vt=2,_t=2;_t<Fe;_t++){for(;vt>1&&gt(de[Je[vt-2]],de[Je[vt-1]],de[_t])<=0;)--vt;Je[vt++]=_t}return Je.slice(0,vt)}function Ls(de,Fe){return de[0]-Fe[0]||de[1]-Fe[1]}p.geom.polygon=function(de){return q(de,ns),de};var ns=p.geom.polygon.prototype=[];ns.area=function(){for(var de=-1,Fe=this.length,Je,vt=this[Fe-1],_t=0;++de<Fe;)Je=vt,vt=this[de],_t+=Je[1]*vt[0]-Je[0]*vt[1];return _t*.5},ns.centroid=function(de){var Fe=-1,Je=this.length,vt=0,_t=0,At,ar=this[Je-1],Ft;for(arguments.length||(de=-1/(6*this.area()));++Fe<Je;)At=ar,ar=this[Fe],Ft=At[0]*ar[1]-ar[0]*At[1],vt+=(At[0]+ar[0])*Ft,_t+=(At[1]+ar[1])*Ft;return[vt*de,_t*de]},ns.clip=function(de){for(var Fe,Je=xs(de),vt=-1,_t=this.length-xs(this),At,ar,Ft=this[_t-1],xr,Gr,Yr;++vt<_t;){for(Fe=de.slice(),de.length=0,xr=this[vt],Gr=Fe[(ar=Fe.length-Je)-1],At=-1;++At<ar;)Yr=Fe[At],uo(Yr,Ft,xr)?(uo(Gr,Ft,xr)||de.push(ss(Gr,Yr,Ft,xr)),de.push(Yr)):uo(Gr,Ft,xr)&&de.push(ss(Gr,Yr,Ft,xr)),Gr=Yr;Je&&de.push(de[0]),Ft=xr}return de};function uo(de,Fe,Je){return(Je[0]-Fe[0])*(de[1]-Fe[1])<(Je[1]-Fe[1])*(de[0]-Fe[0])}function ss(de,Fe,Je,vt){var _t=de[0],At=Je[0],ar=Fe[0]-_t,Ft=vt[0]-At,xr=de[1],Gr=Je[1],Yr=Fe[1]-xr,Ei=vt[1]-Gr,xi=(Ft*(xr-Gr)-Ei*(_t-At))/(Ei*ar-Ft*Yr);return[_t+xi*ar,xr+xi*Yr]}function xs(de){var Fe=de[0],Je=de[de.length-1];return!(Fe[0]-Je[0]||Fe[1]-Je[1])}var el,Ss,Co,ao=[],co,Ms,Gs=[];function ul(){Us(this),this.edge=this.site=this.circle=null}function hs(de){var Fe=ao.pop()||new ul;return Fe.site=de,Fe}function rn(de){Ko(de),Co.remove(de),ao.push(de),Us(de)}function Xn(de){var Fe=de.circle,Je=Fe.x,vt=Fe.cy,_t={x:Je,y:vt},At=de.P,ar=de.N,Ft=[de];rn(de);for(var xr=At;xr.circle&&l(Je-xr.circle.x)<Ye&&l(vt-xr.circle.cy)<Ye;)At=xr.P,Ft.unshift(xr),rn(xr),xr=At;Ft.unshift(xr),Ko(xr);for(var Gr=ar;Gr.circle&&l(Je-Gr.circle.x)<Ye&&l(vt-Gr.circle.cy)<Ye;)ar=Gr.N,Ft.push(Gr),rn(Gr),Gr=ar;Ft.push(Gr),Ko(Gr);var Yr=Ft.length,Ei;for(Ei=1;Ei<Yr;++Ei)Gr=Ft[Ei],xr=Ft[Ei-1],Ns(Gr.edge,xr.site,Gr.site,_t);xr=Ft[0],Gr=Ft[Yr-1],Gr.edge=al(xr.site,Gr.site,null,_t),On(xr),On(Gr)}function tl(de){for(var Fe=de.x,Je=de.y,vt,_t,At,ar,Ft=Co._;Ft;)if(At=zs(Ft,Je)-Fe,At>Ye)Ft=Ft.L;else if(ar=Fe-so(Ft,Je),ar>Ye){if(!Ft.R){vt=Ft;break}Ft=Ft.R}else{At>-Ye?(vt=Ft.P,_t=Ft):ar>-Ye?(vt=Ft,_t=Ft.N):vt=_t=Ft;break}var xr=hs(de);if(Co.insert(vt,xr),!(!vt&&!_t)){if(vt===_t){Ko(vt),_t=hs(vt.site),Co.insert(xr,_t),xr.edge=_t.edge=al(vt.site,xr.site),On(vt),On(_t);return}if(!_t){xr.edge=al(vt.site,xr.site);return}Ko(vt),Ko(_t);var Gr=vt.site,Yr=Gr.x,Ei=Gr.y,xi=de.x-Yr,na=de.y-Ei,ua=_t.site,Di=ua.x-Yr,Hi=ua.y-Ei,ta=2*(xi*Hi-na*Di),ya=xi*xi+na*na,da=Di*Di+Hi*Hi,Oi={x:(Hi*ya-na*da)/ta+Yr,y:(xi*da-Di*ya)/ta+Ei};Ns(_t.edge,Gr,ua,Oi),xr.edge=al(Gr,de,null,Oi),_t.edge=al(de,ua,null,Oi),On(vt),On(_t)}}function zs(de,Fe){var Je=de.site,vt=Je.x,_t=Je.y,At=_t-Fe;if(!At)return vt;var ar=de.P;if(!ar)return-1/0;Je=ar.site;var Ft=Je.x,xr=Je.y,Gr=xr-Fe;if(!Gr)return Ft;var Yr=Ft-vt,Ei=1/At-1/Gr,xi=Yr/Gr;return Ei?(-xi+Math.sqrt(xi*xi-2*Ei*(Yr*Yr/(-2*Gr)-xr+Gr/2+_t-At/2)))/Ei+vt:(vt+Ft)/2}function so(de,Fe){var Je=de.N;if(Je)return zs(Je,Fe);var vt=de.site;return vt.y===Fe?vt.x:1/0}function $s(de){this.site=de,this.edges=[]}$s.prototype.prepare=function(){for(var de=this.edges,Fe=de.length,Je;Fe--;)Je=de[Fe].edge,(!Je.b||!Je.a)&&de.splice(Fe,1);return de.sort(nl),de.length};function Ps(de){for(var Fe=de[0][0],Je=de[1][0],vt=de[0][1],_t=de[1][1],At,ar,Ft,xr,Gr=Ss,Yr=Gr.length,Ei,xi,na,ua,Di,Hi;Yr--;)if(Ei=Gr[Yr],!(!Ei||!Ei.prepare()))for(na=Ei.edges,ua=na.length,xi=0;xi<ua;)Hi=na[xi].end(),Ft=Hi.x,xr=Hi.y,Di=na[++xi%ua].start(),At=Di.x,ar=Di.y,(l(Ft-At)>Ye||l(xr-ar)>Ye)&&(na.splice(xi,0,new rl(kl(Ei.site,Hi,l(Ft-Fe)<Ye&&_t-xr>Ye?{x:Fe,y:l(At-Fe)<Ye?ar:_t}:l(xr-_t)<Ye&&Je-Ft>Ye?{x:l(ar-_t)<Ye?At:Je,y:_t}:l(Ft-Je)<Ye&&xr-vt>Ye?{x:Je,y:l(At-Je)<Ye?ar:vt}:l(xr-vt)<Ye&&Ft-Fe>Ye?{x:l(ar-vt)<Ye?At:Fe,y:vt}:null),Ei.site,null)),++ua)}function nl(de,Fe){return Fe.angle-de.angle}function yl(){Us(this),this.x=this.y=this.arc=this.site=this.cy=null}function On(de){var Fe=de.P,Je=de.N;if(!(!Fe||!Je)){var vt=Fe.site,_t=de.site,At=Je.site;if(vt!==At){var ar=_t.x,Ft=_t.y,xr=vt.x-ar,Gr=vt.y-Ft,Yr=At.x-ar,Hi=At.y-Ft,Ei=2*(xr*Hi-Gr*Yr);if(!(Ei>=-be)){var xi=xr*xr+Gr*Gr,na=Yr*Yr+Hi*Hi,ua=(Hi*xi-Gr*na)/Ei,Di=(xr*na-Yr*xi)/Ei,Hi=Di+Ft,ta=Gs.pop()||new yl;ta.arc=de,ta.site=_t,ta.x=ua+ar,ta.y=Hi+Math.sqrt(ua*ua+Di*Di),ta.cy=Hi,de.circle=ta;for(var ya=null,da=Ms._;da;)if(ta.y<da.y||ta.y===da.y&&ta.x<=da.x)if(da.L)da=da.L;else{ya=da.P;break}else if(da.R)da=da.R;else{ya=da;break}Ms.insert(ya,ta),ya||(co=ta)}}}}function Ko(de){var Fe=de.circle;Fe&&(Fe.P||(co=Fe.N),Ms.remove(Fe),Gs.push(Fe),Us(Fe),de.circle=null)}function jo(de,Fe,Je,vt){return function(_t){var At=_t.a,ar=_t.b,Ft=At.x,xr=At.y,Gr=ar.x,Yr=ar.y,Ei=0,xi=1,na=Gr-Ft,ua=Yr-xr,Di;if(Di=de-Ft,!(!na&&Di>0)){if(Di/=na,na<0){if(Di<Ei)return;Di<xi&&(xi=Di)}else if(na>0){if(Di>xi)return;Di>Ei&&(Ei=Di)}if(Di=Je-Ft,!(!na&&Di<0)){if(Di/=na,na<0){if(Di>xi)return;Di>Ei&&(Ei=Di)}else if(na>0){if(Di<Ei)return;Di<xi&&(xi=Di)}if(Di=Fe-xr,!(!ua&&Di>0)){if(Di/=ua,ua<0){if(Di<Ei)return;Di<xi&&(xi=Di)}else if(ua>0){if(Di>xi)return;Di>Ei&&(Ei=Di)}if(Di=vt-xr,!(!ua&&Di<0)){if(Di/=ua,ua<0){if(Di>xi)return;Di>Ei&&(Ei=Di)}else if(ua>0){if(Di<Ei)return;Di<xi&&(xi=Di)}return Ei>0&&(_t.a={x:Ft+Ei*na,y:xr+Ei*ua}),xi<1&&(_t.b={x:Ft+xi*na,y:xr+xi*ua}),_t}}}}}}function Ys(de){for(var Fe=el,Je=jo(de[0][0],de[0][1],de[1][0],de[1][1]),vt=Fe.length,_t;vt--;)_t=Fe[vt],(!Tu(_t,de)||!Je(_t)||l(_t.a.x-_t.b.x)<Ye&&l(_t.a.y-_t.b.y)<Ye)&&(_t.a=_t.b=null,Fe.splice(vt,1))}function Tu(de,Fe){var Je=de.b;if(Je)return!0;var vt=de.a,_t=Fe[0][0],At=Fe[1][0],ar=Fe[0][1],Ft=Fe[1][1],xr=de.l,Gr=de.r,Yr=xr.x,Ei=xr.y,xi=Gr.x,na=Gr.y,ua=(Yr+xi)/2,Di=(Ei+na)/2,Hi,ta;if(na===Ei){if(ua<_t||ua>=At)return;if(Yr>xi){if(!vt)vt={x:ua,y:ar};else if(vt.y>=Ft)return;Je={x:ua,y:Ft}}else{if(!vt)vt={x:ua,y:Ft};else if(vt.y<ar)return;Je={x:ua,y:ar}}}else if(Hi=(Yr-xi)/(na-Ei),ta=Di-Hi*ua,Hi<-1||Hi>1)if(Yr>xi){if(!vt)vt={x:(ar-ta)/Hi,y:ar};else if(vt.y>=Ft)return;Je={x:(Ft-ta)/Hi,y:Ft}}else{if(!vt)vt={x:(Ft-ta)/Hi,y:Ft};else if(vt.y<ar)return;Je={x:(ar-ta)/Hi,y:ar}}else if(Ei<na){if(!vt)vt={x:_t,y:Hi*_t+ta};else if(vt.x>=At)return;Je={x:At,y:Hi*At+ta}}else{if(!vt)vt={x:At,y:Hi*At+ta};else if(vt.x<_t)return;Je={x:_t,y:Hi*_t+ta}}return de.a=vt,de.b=Je,!0}function Lo(de,Fe){this.l=de,this.r=Fe,this.a=this.b=null}function al(de,Fe,Je,vt){var _t=new Lo(de,Fe);return el.push(_t),Je&&Ns(_t,de,Fe,Je),vt&&Ns(_t,Fe,de,vt),Ss[de.i].edges.push(new rl(_t,de,Fe)),Ss[Fe.i].edges.push(new rl(_t,Fe,de)),_t}function kl(de,Fe,Je){var vt=new Lo(de,null);return vt.a=Fe,vt.b=Je,el.push(vt),vt}function Ns(de,Fe,Je,vt){!de.a&&!de.b?(de.a=vt,de.l=Fe,de.r=Je):de.l===Je?de.b=vt:de.a=vt}function rl(de,Fe,Je){var vt=de.a,_t=de.b;this.edge=de,this.site=Fe,this.angle=Je?Math.atan2(Je.y-Fe.y,Je.x-Fe.x):de.l===Fe?Math.atan2(_t.x-vt.x,vt.y-_t.y):Math.atan2(vt.x-_t.x,_t.y-vt.y)}rl.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 Es(){this._=null}function Us(de){de.U=de.C=de.L=de.R=de.P=de.N=null}Es.prototype={insert:function(de,Fe){var Je,vt,_t;if(de){if(Fe.P=de,Fe.N=de.N,de.N&&(de.N.P=Fe),de.N=Fe,de.R){for(de=de.R;de.L;)de=de.L;de.L=Fe}else de.R=Fe;Je=de}else this._?(de=kc(this._),Fe.P=null,Fe.N=de,de.P=de.L=Fe,Je=de):(Fe.P=Fe.N=null,this._=Fe,Je=null);for(Fe.L=Fe.R=null,Fe.U=Je,Fe.C=!0,de=Fe;Je&&Je.C;)vt=Je.U,Je===vt.L?(_t=vt.R,_t&&_t.C?(Je.C=_t.C=!1,vt.C=!0,de=vt):(de===Je.R&&(Zl(this,Je),de=Je,Je=de.U),Je.C=!1,vt.C=!0,pu(this,vt))):(_t=vt.L,_t&&_t.C?(Je.C=_t.C=!1,vt.C=!0,de=vt):(de===Je.L&&(pu(this,Je),de=Je,Je=de.U),Je.C=!1,vt.C=!0,Zl(this,vt))),Je=de.U;this._.C=!1},remove:function(de){de.N&&(de.N.P=de.P),de.P&&(de.P.N=de.N),de.N=de.P=null;var Fe=de.U,Je,vt=de.L,_t=de.R,At,ar;if(vt?_t?At=kc(_t):At=vt:At=_t,Fe?Fe.L===de?Fe.L=At:Fe.R=At:this._=At,vt&&_t?(ar=At.C,At.C=de.C,At.L=vt,vt.U=At,At!==_t?(Fe=At.U,At.U=de.U,de=At.R,Fe.L=de,At.R=_t,_t.U=At):(At.U=Fe,Fe=At,de=At.R)):(ar=de.C,de=At),de&&(de.U=Fe),!ar){if(de&&de.C){de.C=!1;return}do{if(de===this._)break;if(de===Fe.L){if(Je=Fe.R,Je.C&&(Je.C=!1,Fe.C=!0,Zl(this,Fe),Je=Fe.R),Je.L&&Je.L.C||Je.R&&Je.R.C){(!Je.R||!Je.R.C)&&(Je.L.C=!1,Je.C=!0,pu(this,Je),Je=Fe.R),Je.C=Fe.C,Fe.C=Je.R.C=!1,Zl(this,Fe),de=this._;break}}else if(Je=Fe.L,Je.C&&(Je.C=!1,Fe.C=!0,pu(this,Fe),Je=Fe.L),Je.L&&Je.L.C||Je.R&&Je.R.C){(!Je.L||!Je.L.C)&&(Je.R.C=!1,Je.C=!0,Zl(this,Je),Je=Fe.L),Je.C=Fe.C,Fe.C=Je.L.C=!1,pu(this,Fe),de=this._;break}Je.C=!0,de=Fe,Fe=Fe.U}while(!de.C);de&&(de.C=!1)}}};function Zl(de,Fe){var Je=Fe,vt=Fe.R,_t=Je.U;_t?_t.L===Je?_t.L=vt:_t.R=vt:de._=vt,vt.U=_t,Je.U=vt,Je.R=vt.L,Je.R&&(Je.R.U=Je),vt.L=Je}function pu(de,Fe){var Je=Fe,vt=Fe.L,_t=Je.U;_t?_t.L===Je?_t.L=vt:_t.R=vt:de._=vt,vt.U=_t,Je.U=vt,Je.L=vt.R,Je.L&&(Je.L.U=Je),vt.R=Je}function kc(de){for(;de.L;)de=de.L;return de}function Au(de,Fe){var Je=de.sort(Sf).pop(),vt,_t,At;for(el=[],Ss=new Array(de.length),Co=new Es,Ms=new Es;;)if(At=co,Je&&(!At||Je.y<At.y||Je.y===At.y&&Je.x<At.x))(Je.x!==vt||Je.y!==_t)&&(Ss[Je.i]=new $s(Je),tl(Je),vt=Je.x,_t=Je.y),Je=de.pop();else if(At)Xn(At.arc);else break;Fe&&(Ys(Fe),Ps(Fe));var ar={cells:Ss,edges:el};return Co=Ms=el=Ss=null,ar}function Sf(de,Fe){return Fe.y-de.y||Fe.x-de.x}p.geom.voronoi=function(de){var Fe=An,Je=Eo,vt=Fe,_t=Je,At=Gc;if(de)return ar(de);function ar(xr){var Gr=new Array(xr.length),Yr=At[0][0],Ei=At[0][1],xi=At[1][0],na=At[1][1];return Au(Ft(xr),At).cells.forEach(function(ua,Di){var Hi=ua.edges,ta=ua.site,ya=Gr[Di]=Hi.length?Hi.map(function(da){var Oi=da.start();return[Oi.x,Oi.y]}):ta.x>=Yr&&ta.x<=xi&&ta.y>=Ei&&ta.y<=na?[[Yr,na],[xi,na],[xi,Ei],[Yr,Ei]]:[];ya.point=xr[Di]}),Gr}function Ft(xr){return xr.map(function(Gr,Yr){return{x:Math.round(vt(Gr,Yr)/Ye)*Ye,y:Math.round(_t(Gr,Yr)/Ye)*Ye,i:Yr}})}return ar.links=function(xr){return Au(Ft(xr)).edges.filter(function(Gr){return Gr.l&&Gr.r}).map(function(Gr){return{source:xr[Gr.l.i],target:xr[Gr.r.i]}})},ar.triangles=function(xr){var Gr=[];return Au(Ft(xr)).cells.forEach(function(Yr,Ei){for(var xi=Yr.site,na=Yr.edges.sort(nl),ua=-1,Di=na.length,Hi,ta,ya=na[Di-1].edge,da=ya.l===xi?ya.r:ya.l;++ua<Di;)Hi=ya,ta=da,ya=na[ua].edge,da=ya.l===xi?ya.r:ya.l,Ei<ta.i&&Ei<da.i&&Js(xi,ta,da)<0&&Gr.push([xr[Ei],xr[ta.i],xr[da.i]])}),Gr},ar.x=function(xr){return arguments.length?(vt=Or(Fe=xr),ar):Fe},ar.y=function(xr){return arguments.length?(_t=Or(Je=xr),ar):Je},ar.clipExtent=function(xr){return arguments.length?(At=xr??Gc,ar):At===Gc?null:At},ar.size=function(xr){return arguments.length?ar.clipExtent(xr&&[[0,0],xr]):At===Gc?null:At&&At[1]},ar};var Gc=[[-1e6,-1e6],[1e6,1e6]];function Js(de,Fe,Je){return(de.x-Je.x)*(Fe.y-de.y)-(de.x-Fe.x)*(Je.y-de.y)}p.geom.delaunay=function(de){return p.geom.voronoi().triangles(de)},p.geom.quadtree=function(de,Fe,Je,vt,_t){var At=An,ar=Eo,Ft;if(Ft=arguments.length)return At=yc,ar=Zc,Ft===3&&(_t=Je,vt=Fe,Je=Fe=0),xr(de);function xr(Gr){var Yr,Ei=Or(At),xi=Or(ar),na,ua,Di,Hi,ta,ya,da,Oi;if(Fe!=null)ta=Fe,ya=Je,da=vt,Oi=_t;else if(da=Oi=-(ta=ya=1/0),na=[],ua=[],Hi=Gr.length,Ft)for(Di=0;Di<Hi;++Di)Yr=Gr[Di],Yr.x<ta&&(ta=Yr.x),Yr.y<ya&&(ya=Yr.y),Yr.x>da&&(da=Yr.x),Yr.y>Oi&&(Oi=Yr.y),na.push(Yr.x),ua.push(Yr.y);else for(Di=0;Di<Hi;++Di){var xn=+Ei(Yr=Gr[Di],Di),mn=+xi(Yr,Di);xn<ta&&(ta=xn),mn<ya&&(ya=mn),xn>da&&(da=xn),mn>Oi&&(Oi=mn),na.push(xn),ua.push(mn)}var In=da-ta,Yn=Oi-ya;In>Yn?Oi=ya+In:da=ta+Yn;function mo(To,cs,Al,ml,Pl,Dn,zo,ks){if(!(isNaN(Al)||isNaN(ml)))if(To.leaf){var Rs=To.x,Bl=To.y;if(Rs!=null)if(l(Rs-Al)+l(Bl-ml)<.01)bo(To,cs,Al,ml,Pl,Dn,zo,ks);else{var tu=To.point;To.x=To.y=To.point=null,bo(To,tu,Rs,Bl,Pl,Dn,zo,ks),bo(To,cs,Al,ml,Pl,Dn,zo,ks)}else To.x=Al,To.y=ml,To.point=cs}else bo(To,cs,Al,ml,Pl,Dn,zo,ks)}function bo(To,cs,Al,ml,Pl,Dn,zo,ks){var Rs=(Pl+zo)*.5,Bl=(Dn+ks)*.5,tu=Al>=Rs,Ru=ml>=Bl,Hl=Ru<<1|tu;To.leaf=!1,To=To.nodes[Hl]||(To.nodes[Hl]=mu()),tu?Pl=Rs:zo=Rs,Ru?Dn=Bl:ks=Bl,mo(To,cs,Al,ml,Pl,Dn,zo,ks)}var vs=mu();if(vs.add=function(To){mo(vs,To,+Ei(To,++Di),+xi(To,Di),ta,ya,da,Oi)},vs.visit=function(To){Vl(To,vs,ta,ya,da,Oi)},vs.find=function(To){return lc(vs,To[0],To[1],ta,ya,da,Oi)},Di=-1,Fe==null){for(;++Di<Hi;)mo(vs,Gr[Di],na[Di],ua[Di],ta,ya,da,Oi);--Di}else Gr.forEach(vs.add);return na=ua=Gr=Yr=null,vs}return xr.x=function(Gr){return arguments.length?(At=Gr,xr):At},xr.y=function(Gr){return arguments.length?(ar=Gr,xr):ar},xr.extent=function(Gr){return arguments.length?(Gr==null?Fe=Je=vt=_t=null:(Fe=+Gr[0][0],Je=+Gr[0][1],vt=+Gr[1][0],_t=+Gr[1][1]),xr):Fe==null?null:[[Fe,Je],[vt,_t]]},xr.size=function(Gr){return arguments.length?(Gr==null?Fe=Je=vt=_t=null:(Fe=Je=0,vt=+Gr[0],_t=+Gr[1]),xr):Fe==null?null:[vt-Fe,_t-Je]},xr};function yc(de){return de.x}function Zc(de){return de.y}function mu(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Vl(de,Fe,Je,vt,_t,At){if(!de(Fe,Je,vt,_t,At)){var ar=(Je+_t)*.5,Ft=(vt+At)*.5,xr=Fe.nodes;xr[0]&&Vl(de,xr[0],Je,vt,ar,Ft),xr[1]&&Vl(de,xr[1],ar,vt,_t,Ft),xr[2]&&Vl(de,xr[2],Je,Ft,ar,At),xr[3]&&Vl(de,xr[3],ar,Ft,_t,At)}}function lc(de,Fe,Je,vt,_t,At,ar){var Ft=1/0,xr;return function Gr(Yr,Ei,xi,na,ua){if(!(Ei>At||xi>ar||na<vt||ua<_t)){if(Di=Yr.point){var Di,Hi=Fe-Yr.x,ta=Je-Yr.y,ya=Hi*Hi+ta*ta;if(ya<Ft){var da=Math.sqrt(Ft=ya);vt=Fe-da,_t=Je-da,At=Fe+da,ar=Je+da,xr=Di}}for(var Oi=Yr.nodes,xn=(Ei+na)*.5,mn=(xi+ua)*.5,In=Fe>=xn,Yn=Je>=mn,mo=Yn<<1|In,bo=mo+4;mo<bo;++mo)if(Yr=Oi[mo&3])switch(mo&3){case 0:Gr(Yr,Ei,xi,xn,mn);break;case 1:Gr(Yr,xn,xi,na,mn);break;case 2:Gr(Yr,Ei,mn,xn,ua);break;case 3:Gr(Yr,xn,mn,na,ua);break}}}(de,vt,_t,At,ar),xr}p.interpolateRgb=Gu;function Gu(de,Fe){de=p.rgb(de),Fe=p.rgb(Fe);var Je=de.r,vt=de.g,_t=de.b,At=Fe.r-Je,ar=Fe.g-vt,Ft=Fe.b-_t;return function(xr){return"#"+br(Math.round(Je+At*xr))+br(Math.round(vt+ar*xr))+br(Math.round(_t+Ft*xr))}}p.interpolateObject=_l;function _l(de,Fe){var Je={},vt={},_t;for(_t in de)_t in Fe?Je[_t]=Kl(de[_t],Fe[_t]):vt[_t]=de[_t];for(_t in Fe)_t in de||(vt[_t]=Fe[_t]);return function(At){for(_t in Je)vt[_t]=Je[_t](At);return vt}}p.interpolateNumber=Cl;function Cl(de,Fe){return de=+de,Fe=+Fe,function(Je){return de*(1-Je)+Fe*Je}}p.interpolateString=Fs;function Fs(de,Fe){var Je=ol.lastIndex=uc.lastIndex=0,vt,_t,At,ar=-1,Ft=[],xr=[];for(de=de+"",Fe=Fe+"";(vt=ol.exec(de))&&(_t=uc.exec(Fe));)(At=_t.index)>Je&&(At=Fe.slice(Je,At),Ft[ar]?Ft[ar]+=At:Ft[++ar]=At),(vt=vt[0])===(_t=_t[0])?Ft[ar]?Ft[ar]+=_t:Ft[++ar]=_t:(Ft[++ar]=null,xr.push({i:ar,x:Cl(vt,_t)})),Je=uc.lastIndex;return Je<Fe.length&&(At=Fe.slice(Je),Ft[ar]?Ft[ar]+=At:Ft[++ar]=At),Ft.length<2?xr[0]?(Fe=xr[0].x,function(Gr){return Fe(Gr)+""}):function(){return Fe}:(Fe=xr.length,function(Gr){for(var Yr=0,Ei;Yr<Fe;++Yr)Ft[(Ei=xr[Yr]).i]=Ei.x(Gr);return Ft.join("")})}var ol=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,uc=new RegExp(ol.source,"g");p.interpolate=Kl;function Kl(de,Fe){for(var Je=p.interpolators.length,vt;--Je>=0&&!(vt=p.interpolators[Je](de,Fe)););return vt}p.interpolators=[function(de,Fe){var Je=typeof Fe;return(Je==="string"?mr.has(Fe.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(Fe)?Gu:Fs:Fe instanceof Ca?Gu:Array.isArray(Fe)?Zu:Je==="object"&&isNaN(Fe)?_l:Cl)(de,Fe)}],p.interpolateArray=Zu;function Zu(de,Fe){var Je=[],vt=[],_t=de.length,At=Fe.length,ar=Math.min(de.length,Fe.length),Ft;for(Ft=0;Ft<ar;++Ft)Je.push(Kl(de[Ft],Fe[Ft]));for(;Ft<_t;++Ft)vt[Ft]=de[Ft];for(;Ft<At;++Ft)vt[Ft]=Fe[Ft];return function(xr){for(Ft=0;Ft<ar;++Ft)vt[Ft]=Je[Ft](xr);return vt}}var Sl=function(){return F},vh=p.map({linear:Sl,poly:Mf,quad:function(){return Kc},cubic:function(){return Ku},sin:function(){return Cc},exp:function(){return uf},circle:function(){return su},elastic:Wf,back:Rf,bounce:function(){return cf}}),ws=p.map({in:F,out:qs,"in-out":xo,"out-in":function(de){return xo(qs(de))}});p.ease=function(de){var Fe=de.indexOf("-"),Je=Fe>=0?de.slice(0,Fe):de,vt=Fe>=0?de.slice(Fe+1):"in";return Je=vh.get(Je)||Sl,vt=ws.get(vt)||F,ph(vt(Je.apply(null,x.call(arguments,1))))};function ph(de){return function(Fe){return Fe<=0?0:Fe>=1?1:de(Fe)}}function qs(de){return function(Fe){return 1-de(1-Fe)}}function xo(de){return function(Fe){return .5*(Fe<.5?de(2*Fe):2-de(2-2*Fe))}}function Kc(de){return de*de}function Ku(de){return de*de*de}function $l(de){if(de<=0)return 0;if(de>=1)return 1;var Fe=de*de,Je=Fe*de;return 4*(de<.5?Je:3*(de-Fe)+Je-.75)}function Mf(de){return function(Fe){return Math.pow(Fe,de)}}function Cc(de){return 1-Math.cos(de*Me)}function uf(de){return Math.pow(2,10*(de-1))}function su(de){return 1-Math.sqrt(1-de*de)}function Wf(de,Fe){var Je;return arguments.length<2&&(Fe=.45),arguments.length?Je=Fe/qe*Math.asin(1/de):(de=1,Je=Fe/4),function(vt){return 1+de*Math.pow(2,-10*vt)*Math.sin((vt-Je)*qe/Fe)}}function Rf(de){return de||(de=1.70158),function(Fe){return Fe*Fe*((de+1)*Fe-de)}}function cf(de){return de<1/2.75?7.5625*de*de:de<2/2.75?7.5625*(de-=1.5/2.75)*de+.75:de<2.5/2.75?7.5625*(de-=2.25/2.75)*de+.9375:7.5625*(de-=2.625/2.75)*de+.984375}p.interpolateHcl=Wc;function Wc(de,Fe){de=p.hcl(de),Fe=p.hcl(Fe);var Je=de.h,vt=de.c,_t=de.l,At=Fe.h-Je,ar=Fe.c-vt,Ft=Fe.l-_t;return isNaN(ar)&&(ar=0,vt=isNaN(vt)?Fe.c:vt),isNaN(At)?(At=0,Je=isNaN(Je)?Fe.h:Je):At>180?At-=360:At<-180&&(At+=360),function(xr){return ri(Je+At*xr,vt+ar*xr,_t+Ft*xr)+""}}p.interpolateHsl=Df;function Df(de,Fe){de=p.hsl(de),Fe=p.hsl(Fe);var Je=de.h,vt=de.s,_t=de.l,At=Fe.h-Je,ar=Fe.s-vt,Ft=Fe.l-_t;return isNaN(ar)&&(ar=0,vt=isNaN(vt)?Fe.s:vt),isNaN(At)?(At=0,Je=isNaN(Je)?Fe.h:Je):At>180?At-=360:At<-180&&(At+=360),function(xr){return Zt(Je+At*xr,vt+ar*xr,_t+Ft*xr)+""}}p.interpolateLab=zf;function zf(de,Fe){de=p.lab(de),Fe=p.lab(Fe);var Je=de.l,vt=de.a,_t=de.b,At=Fe.l-Je,ar=Fe.a-vt,Ft=Fe.b-_t;return function(xr){return xa(Je+At*xr,vt+ar*xr,_t+Ft*xr)+""}}p.interpolateRound=$u;function $u(de,Fe){return Fe-=de,function(Je){return Math.round(de+Fe*Je)}}p.transform=function(de){var Fe=E.createElementNS(p.ns.prefix.svg,"g");return(p.transform=function(Je){if(Je!=null){Fe.setAttribute("transform",Je);var vt=Fe.transform.baseVal.consolidate()}return new Ef(vt?vt.matrix:Xc)})(de)};function Ef(de){var Fe=[de.a,de.b],Je=[de.c,de.d],vt=$c(Fe),_t=cc(Fe,Je),At=$c(lu(Je,Fe,-_t))||0;Fe[0]*Je[1]<Je[0]*Fe[1]&&(Fe[0]*=-1,Fe[1]*=-1,vt*=-1,_t*=-1),this.rotate=(vt?Math.atan2(Fe[1],Fe[0]):Math.atan2(-Je[0],Je[1]))*ut,this.translate=[de.e,de.f],this.scale=[vt,At],this.skew=At?Math.atan2(_t,At)*ut:0}Ef.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function cc(de,Fe){return de[0]*Fe[0]+de[1]*Fe[1]}function $c(de){var Fe=Math.sqrt(cc(de,de));return Fe&&(de[0]/=Fe,de[1]/=Fe),Fe}function lu(de,Fe,Je){return de[0]+=Je*Fe[0],de[1]+=Je*Fe[1],de}var Xc={a:1,b:0,c:0,d:1,e:0,f:0};p.interpolateTransform=Jc;function Lc(de){return de.length?de.pop()+",":""}function sl(de,Fe,Je,vt){if(de[0]!==Fe[0]||de[1]!==Fe[1]){var _t=Je.push("translate(",null,",",null,")");vt.push({i:_t-4,x:Cl(de[0],Fe[0])},{i:_t-2,x:Cl(de[1],Fe[1])})}else(Fe[0]||Fe[1])&&Je.push("translate("+Fe+")")}function kf(de,Fe,Je,vt){de!==Fe?(de-Fe>180?Fe+=360:Fe-de>180&&(de+=360),vt.push({i:Je.push(Lc(Je)+"rotate(",null,")")-2,x:Cl(de,Fe)})):Fe&&Je.push(Lc(Je)+"rotate("+Fe+")")}function ah(de,Fe,Je,vt){de!==Fe?vt.push({i:Je.push(Lc(Je)+"skewX(",null,")")-2,x:Cl(de,Fe)}):Fe&&Je.push(Lc(Je)+"skewX("+Fe+")")}function Ff(de,Fe,Je,vt){if(de[0]!==Fe[0]||de[1]!==Fe[1]){var _t=Je.push(Lc(Je)+"scale(",null,",",null,")");vt.push({i:_t-4,x:Cl(de[0],Fe[0])},{i:_t-2,x:Cl(de[1],Fe[1])})}else(Fe[0]!==1||Fe[1]!==1)&&Je.push(Lc(Je)+"scale("+Fe+")")}function Jc(de,Fe){var Je=[],vt=[];return de=p.transform(de),Fe=p.transform(Fe),sl(de.translate,Fe.translate,Je,vt),kf(de.rotate,Fe.rotate,Je,vt),ah(de.skew,Fe.skew,Je,vt),Ff(de.scale,Fe.scale,Je,vt),de=Fe=null,function(_t){for(var At=-1,ar=vt.length,Ft;++At<ar;)Je[(Ft=vt[At]).i]=Ft.x(_t);return Je.join("")}}function Xf(de,Fe){return Fe=(Fe-=de=+de)||1/Fe,function(Je){return(Je-de)/Fe}}function Fu(de,Fe){return Fe=(Fe-=de=+de)||1/Fe,function(Je){return Math.max(0,Math.min(1,(Je-de)/Fe))}}p.layout={},p.layout.bundle=function(){return function(de){for(var Fe=[],Je=-1,vt=de.length;++Je<vt;)Fe.push(Bf(de[Je]));return Fe}};function Bf(de){for(var Fe=de.source,Je=de.target,vt=Bu(Fe,Je),_t=[Fe];Fe!==vt;)Fe=Fe.parent,_t.push(Fe);for(var At=_t.length;Je!==vt;)_t.splice(At,0,Je),Je=Je.parent;return _t}function Ll(de){for(var Fe=[],Je=de.parent;Je!=null;)Fe.push(de),de=Je,Je=Je.parent;return Fe.push(de),Fe}function Bu(de,Fe){if(de===Fe)return de;for(var Je=Ll(de),vt=Ll(Fe),_t=Je.pop(),At=vt.pop(),ar=null;_t===At;)ar=_t,_t=Je.pop(),At=vt.pop();return ar}p.layout.chord=function(){var de={},Fe,Je,vt,_t,At=0,ar,Ft,xr;function Gr(){var Ei={},xi=[],na=p.range(_t),ua=[],Di,Hi,ta,ya,da;for(Fe=[],Je=[],Di=0,ya=-1;++ya<_t;){for(Hi=0,da=-1;++da<_t;)Hi+=vt[ya][da];xi.push(Hi),ua.push(p.range(_t)),Di+=Hi}for(ar&&na.sort(function(vs,To){return ar(xi[vs],xi[To])}),Ft&&ua.forEach(function(vs,To){vs.sort(function(cs,Al){return Ft(vt[To][cs],vt[To][Al])})}),Di=(qe-At*_t)/Di,Hi=0,ya=-1;++ya<_t;){for(ta=Hi,da=-1;++da<_t;){var Oi=na[ya],xn=ua[Oi][da],mn=vt[Oi][xn],In=Hi,Yn=Hi+=mn*Di;Ei[Oi+"-"+xn]={index:Oi,subindex:xn,startAngle:In,endAngle:Yn,value:mn}}Je[Oi]={index:Oi,startAngle:ta,endAngle:Hi,value:xi[Oi]},Hi+=At}for(ya=-1;++ya<_t;)for(da=ya-1;++da<_t;){var mo=Ei[ya+"-"+da],bo=Ei[da+"-"+ya];(mo.value||bo.value)&&Fe.push(mo.value<bo.value?{source:bo,target:mo}:{source:mo,target:bo})}xr&&Yr()}function Yr(){Fe.sort(function(Ei,xi){return xr((Ei.source.value+Ei.target.value)/2,(xi.source.value+xi.target.value)/2)})}return de.matrix=function(Ei){return arguments.length?(_t=(vt=Ei)&&vt.length,Fe=Je=null,de):vt},de.padding=function(Ei){return arguments.length?(At=Ei,Fe=Je=null,de):At},de.sortGroups=function(Ei){return arguments.length?(ar=Ei,Fe=Je=null,de):ar},de.sortSubgroups=function(Ei){return arguments.length?(Ft=Ei,Fe=null,de):Ft},de.sortChords=function(Ei){return arguments.length?(xr=Ei,Fe&&Yr(),de):xr},de.chords=function(){return Fe||Gr(),Fe},de.groups=function(){return Je||Gr(),Je},de},p.layout.force=function(){var de={},Fe=p.dispatch("start","tick","end"),Je,vt=[1,1],_t,At,ar=.9,Ft=Nl,xr=Of,Gr=-30,Yr=Yf,Ei=.1,xi=.64,na=[],ua=[],Di,Hi,ta;function ya(Oi){return function(xn,mn,In,Yn){if(xn.point!==Oi){var mo=xn.cx-Oi.x,bo=xn.cy-Oi.y,vs=Yn-mn,To=mo*mo+bo*bo;if(vs*vs/xi<To){if(To<Yr){var cs=xn.charge/To;Oi.px-=mo*cs,Oi.py-=bo*cs}return!0}if(xn.point&&To&&To<Yr){var cs=xn.pointCharge/To;Oi.px-=mo*cs,Oi.py-=bo*cs}}return!xn.charge}}de.tick=function(){if((At*=.99)<.005)return Je=null,Fe.end({type:"end",alpha:At=0}),!0;var Oi=na.length,xn=ua.length,mn,In,Yn,mo,bo,vs,To,cs,Al;for(In=0;In<xn;++In)Yn=ua[In],mo=Yn.source,bo=Yn.target,cs=bo.x-mo.x,Al=bo.y-mo.y,(vs=cs*cs+Al*Al)&&(vs=At*Hi[In]*((vs=Math.sqrt(vs))-Di[In])/vs,cs*=vs,Al*=vs,bo.x-=cs*(To=mo.weight+bo.weight?mo.weight/(mo.weight+bo.weight):.5),bo.y-=Al*To,mo.x+=cs*(To=1-To),mo.y+=Al*To);if((To=At*Ei)&&(cs=vt[0]/2,Al=vt[1]/2,In=-1,To))for(;++In<Oi;)Yn=na[In],Yn.x+=(cs-Yn.x)*To,Yn.y+=(Al-Yn.y)*To;if(Gr)for(Iu(mn=p.geom.quadtree(na),At,ta),In=-1;++In<Oi;)(Yn=na[In]).fixed||mn.visit(ya(Yn));for(In=-1;++In<Oi;)Yn=na[In],Yn.fixed?(Yn.x=Yn.px,Yn.y=Yn.py):(Yn.x-=(Yn.px-(Yn.px=Yn.x))*ar,Yn.y-=(Yn.py-(Yn.py=Yn.y))*ar);Fe.tick({type:"tick",alpha:At})},de.nodes=function(Oi){return arguments.length?(na=Oi,de):na},de.links=function(Oi){return arguments.length?(ua=Oi,de):ua},de.size=function(Oi){return arguments.length?(vt=Oi,de):vt},de.linkDistance=function(Oi){return arguments.length?(Ft=typeof Oi=="function"?Oi:+Oi,de):Ft},de.distance=de.linkDistance,de.linkStrength=function(Oi){return arguments.length?(xr=typeof Oi=="function"?Oi:+Oi,de):xr},de.friction=function(Oi){return arguments.length?(ar=+Oi,de):ar},de.charge=function(Oi){return arguments.length?(Gr=typeof Oi=="function"?Oi:+Oi,de):Gr},de.chargeDistance=function(Oi){return arguments.length?(Yr=Oi*Oi,de):Math.sqrt(Yr)},de.gravity=function(Oi){return arguments.length?(Ei=+Oi,de):Ei},de.theta=function(Oi){return arguments.length?(xi=Oi*Oi,de):Math.sqrt(xi)},de.alpha=function(Oi){return arguments.length?(Oi=+Oi,At?Oi>0?At=Oi:(Je.c=null,Je.t=NaN,Je=null,Fe.end({type:"end",alpha:At=0})):Oi>0&&(Fe.start({type:"start",alpha:At=Oi}),Je=Kn(de.tick)),de):At},de.start=function(){var Oi,xn=na.length,mn=ua.length,In=vt[0],Yn=vt[1],mo,bo;for(Oi=0;Oi<xn;++Oi)(bo=na[Oi]).index=Oi,bo.weight=0;for(Oi=0;Oi<mn;++Oi)bo=ua[Oi],typeof bo.source=="number"&&(bo.source=na[bo.source]),typeof bo.target=="number"&&(bo.target=na[bo.target]),++bo.source.weight,++bo.target.weight;for(Oi=0;Oi<xn;++Oi)bo=na[Oi],isNaN(bo.x)&&(bo.x=vs("x",In)),isNaN(bo.y)&&(bo.y=vs("y",Yn)),isNaN(bo.px)&&(bo.px=bo.x),isNaN(bo.py)&&(bo.py=bo.y);if(Di=[],typeof Ft=="function")for(Oi=0;Oi<mn;++Oi)Di[Oi]=+Ft.call(this,ua[Oi],Oi);else for(Oi=0;Oi<mn;++Oi)Di[Oi]=Ft;if(Hi=[],typeof xr=="function")for(Oi=0;Oi<mn;++Oi)Hi[Oi]=+xr.call(this,ua[Oi],Oi);else for(Oi=0;Oi<mn;++Oi)Hi[Oi]=xr;if(ta=[],typeof Gr=="function")for(Oi=0;Oi<xn;++Oi)ta[Oi]=+Gr.call(this,na[Oi],Oi);else for(Oi=0;Oi<xn;++Oi)ta[Oi]=Gr;function vs(To,cs){if(!mo){for(mo=new Array(xn),Pl=0;Pl<xn;++Pl)mo[Pl]=[];for(Pl=0;Pl<mn;++Pl){var Al=ua[Pl];mo[Al.source.index].push(Al.target),mo[Al.target.index].push(Al.source)}}for(var ml=mo[Oi],Pl=-1,Dn=ml.length,zo;++Pl<Dn;)if(!isNaN(zo=ml[Pl][To]))return zo;return Math.random()*cs}return de.resume()},de.resume=function(){return de.alpha(.1)},de.stop=function(){return de.alpha(0)},de.drag=function(){if(_t||(_t=p.behavior.drag().origin(F).on("dragstart.force",Ic).on("drag.force",da).on("dragend.force",xl)),!arguments.length)return _t;this.on("mouseover.force",_c).on("mouseout.force",Eu).call(_t)};function da(Oi){Oi.px=p.event.x,Oi.py=p.event.y,de.resume()}return p.rebind(de,Fe,"on")};function Ic(de){de.fixed|=2}function xl(de){de.fixed&=-7}function _c(de){de.fixed|=4,de.px=de.x,de.py=de.y}function Eu(de){de.fixed&=-5}function Iu(de,Fe,Je){var vt=0,_t=0;if(de.charge=0,!de.leaf)for(var At=de.nodes,ar=At.length,Ft=-1,xr;++Ft<ar;)xr=At[Ft],xr!=null&&(Iu(xr,Fe,Je),de.charge+=xr.charge,vt+=xr.charge*xr.cx,_t+=xr.charge*xr.cy);if(de.point){de.leaf||(de.point.x+=Math.random()-.5,de.point.y+=Math.random()-.5);var Gr=Fe*Je[de.point.index];de.charge+=de.pointCharge=Gr,vt+=Gr*de.point.x,_t+=Gr*de.point.y}de.cx=vt/de.charge,de.cy=_t/de.charge}var Nl=20,Of=1,Yf=1/0;p.layout.hierarchy=function(){var de=yf,Fe=_h,Je=ff;function vt(_t){var At=[_t],ar=[],Ft;for(_t.depth=0;(Ft=At.pop())!=null;)if(ar.push(Ft),(Gr=Fe.call(vt,Ft,Ft.depth))&&(xr=Gr.length)){for(var xr,Gr,Yr;--xr>=0;)At.push(Yr=Gr[xr]),Yr.parent=Ft,Yr.depth=Ft.depth+1;Je&&(Ft.value=0),Ft.children=Gr}else Je&&(Ft.value=+Je.call(vt,Ft,Ft.depth)||0),delete Ft.children;return xc(_t,function(Ei){var xi,na;de&&(xi=Ei.children)&&xi.sort(de),Je&&(na=Ei.parent)&&(na.value+=Ei.value)}),ar}return vt.sort=function(_t){return arguments.length?(de=_t,vt):de},vt.children=function(_t){return arguments.length?(Fe=_t,vt):Fe},vt.value=function(_t){return arguments.length?(Je=_t,vt):Je},vt.revalue=function(_t){return Je&&(Pc(_t,function(At){At.children&&(At.value=0)}),xc(_t,function(At){var ar;At.children||(At.value=+Je.call(vt,At,At.depth)||0),(ar=At.parent)&&(ar.value+=At.value)})),_t},vt};function Wu(de,Fe){return p.rebind(de,Fe,"sort","children","value"),de.nodes=de,de.links=Xu,de}function Pc(de,Fe){for(var Je=[de];(de=Je.pop())!=null;)if(Fe(de),(_t=de.children)&&(vt=_t.length))for(var vt,_t;--vt>=0;)Je.push(_t[vt])}function xc(de,Fe){for(var Je=[de],vt=[];(de=Je.pop())!=null;)if(vt.push(de),(ar=de.children)&&(At=ar.length))for(var _t=-1,At,ar;++_t<At;)Je.push(ar[_t]);for(;(de=vt.pop())!=null;)Fe(de)}function _h(de){return de.children}function ff(de){return de.value}function yf(de,Fe){return Fe.value-de.value}function Xu(de){return p.merge(de.map(function(Fe){return(Fe.children||[]).map(function(Je){return{source:Fe,target:Je}})}))}p.layout.partition=function(){var de=p.layout.hierarchy(),Fe=[1,1];function Je(At,ar,Ft,xr){var Gr=At.children;if(At.x=ar,At.y=At.depth*xr,At.dx=Ft,At.dy=xr,Gr&&(Ei=Gr.length)){var Yr=-1,Ei,xi,na;for(Ft=At.value?Ft/At.value:0;++Yr<Ei;)Je(xi=Gr[Yr],ar,na=xi.value*Ft,xr),ar+=na}}function vt(At){var ar=At.children,Ft=0;if(ar&&(Gr=ar.length))for(var xr=-1,Gr;++xr<Gr;)Ft=Math.max(Ft,vt(ar[xr]));return 1+Ft}function _t(At,ar){var Ft=de.call(this,At,ar);return Je(Ft[0],0,Fe[0],Fe[1]/vt(Ft[0])),Ft}return _t.size=function(At){return arguments.length?(Fe=At,_t):Fe},Wu(_t,de)},p.layout.pie=function(){var de=Number,Fe=hf,Je=0,vt=qe,_t=0;function At(ar){var Ft=ar.length,xr=ar.map(function(ya,da){return+de.call(At,ya,da)}),Gr=+(typeof Je=="function"?Je.apply(this,arguments):Je),Yr=(typeof vt=="function"?vt.apply(this,arguments):vt)-Gr,Ei=Math.min(Math.abs(Yr)/Ft,+(typeof _t=="function"?_t.apply(this,arguments):_t)),xi=Ei*(Yr<0?-1:1),na=p.sum(xr),ua=na?(Yr-Ft*xi)/na:0,Di=p.range(Ft),Hi=[],ta;return Fe!=null&&Di.sort(Fe===hf?function(ya,da){return xr[da]-xr[ya]}:function(ya,da){return Fe(ar[ya],ar[da])}),Di.forEach(function(ya){Hi[ya]={data:ar[ya],value:ta=xr[ya],startAngle:Gr,endAngle:Gr+=ta*ua+xi,padAngle:Ei}}),Hi}return At.value=function(ar){return arguments.length?(de=ar,At):de},At.sort=function(ar){return arguments.length?(Fe=ar,At):Fe},At.startAngle=function(ar){return arguments.length?(Je=ar,At):Je},At.endAngle=function(ar){return arguments.length?(vt=ar,At):vt},At.padAngle=function(ar){return arguments.length?(_t=ar,At):_t},At};var hf={};p.layout.stack=function(){var de=F,Fe=ku,Je=Ou,vt=nh,_t=hu,At=Qc;function ar(Ft,xr){if(!(ua=Ft.length))return Ft;var Gr=Ft.map(function(ya,da){return de.call(ar,ya,da)}),Yr=Gr.map(function(ya){return ya.map(function(da,Oi){return[_t.call(ar,da,Oi),At.call(ar,da,Oi)]})}),Ei=Fe.call(ar,Yr,xr);Gr=p.permute(Gr,Ei),Yr=p.permute(Yr,Ei);var xi=Je.call(ar,Yr,xr),na=Gr[0].length,ua,Di,Hi,ta;for(Hi=0;Hi<na;++Hi)for(vt.call(ar,Gr[0][Hi],ta=xi[Hi],Yr[0][Hi][1]),Di=1;Di<ua;++Di)vt.call(ar,Gr[Di][Hi],ta+=Yr[Di-1][Hi][1],Yr[Di][Hi][1]);return Ft}return ar.values=function(Ft){return arguments.length?(de=Ft,ar):de},ar.order=function(Ft){return arguments.length?(Fe=typeof Ft=="function"?Ft:_f.get(Ft)||ku,ar):Fe},ar.offset=function(Ft){return arguments.length?(Je=typeof Ft=="function"?Ft:bl.get(Ft)||Ou,ar):Je},ar.x=function(Ft){return arguments.length?(_t=Ft,ar):_t},ar.y=function(Ft){return arguments.length?(At=Ft,ar):At},ar.out=function(Ft){return arguments.length?(vt=Ft,ar):vt},ar};function hu(de){return de.x}function Qc(de){return de.y}function nh(de,Fe,Je){de.y0=Fe,de.y=Je}var _f=p.map({"inside-out":function(de){var Fe=de.length,Je,vt,_t=de.map(Cf),At=de.map(Ml),ar=p.range(Fe).sort(function(Ei,xi){return _t[Ei]-_t[xi]}),Ft=0,xr=0,Gr=[],Yr=[];for(Je=0;Je<Fe;++Je)vt=ar[Je],Ft<xr?(Ft+=At[vt],Gr.push(vt)):(xr+=At[vt],Yr.push(vt));return Yr.reverse().concat(Gr)},reverse:function(de){return p.range(de.length).reverse()},default:ku}),bl=p.map({silhouette:function(de){var Fe=de.length,Je=de[0].length,vt=[],_t=0,At,ar,Ft,xr=[];for(ar=0;ar<Je;++ar){for(At=0,Ft=0;At<Fe;At++)Ft+=de[At][ar][1];Ft>_t&&(_t=Ft),vt.push(Ft)}for(ar=0;ar<Je;++ar)xr[ar]=(_t-vt[ar])/2;return xr},wiggle:function(de){var Fe=de.length,Je=de[0],vt=Je.length,_t,At,ar,Ft,xr,Gr,Yr,Ei,xi,na=[];for(na[0]=Ei=xi=0,At=1;At<vt;++At){for(_t=0,Ft=0;_t<Fe;++_t)Ft+=de[_t][At][1];for(_t=0,xr=0,Yr=Je[At][0]-Je[At-1][0];_t<Fe;++_t){for(ar=0,Gr=(de[_t][At][1]-de[_t][At-1][1])/(2*Yr);ar<_t;++ar)Gr+=(de[ar][At][1]-de[ar][At-1][1])/Yr;xr+=Gr*de[_t][At][1]}na[At]=Ei-=Ft?xr/Ft*Yr:0,Ei<xi&&(xi=Ei)}for(At=0;At<vt;++At)na[At]-=xi;return na},expand:function(de){var Fe=de.length,Je=de[0].length,vt=1/Fe,_t,At,ar,Ft=[];for(At=0;At<Je;++At){for(_t=0,ar=0;_t<Fe;_t++)ar+=de[_t][At][1];if(ar)for(_t=0;_t<Fe;_t++)de[_t][At][1]/=ar;else for(_t=0;_t<Fe;_t++)de[_t][At][1]=vt}for(At=0;At<Je;++At)Ft[At]=0;return Ft},zero:Ou});function ku(de){return p.range(de.length)}function Ou(de){for(var Fe=-1,Je=de[0].length,vt=[];++Fe<Je;)vt[Fe]=0;return vt}function Cf(de){for(var Fe=1,Je=0,vt=de[0][1],_t,At=de.length;Fe<At;++Fe)(_t=de[Fe][1])>vt&&(Je=Fe,vt=_t);return Je}function Ml(de){return de.reduce(df,0)}function df(de,Fe){return de+Fe[1]}p.layout.histogram=function(){var de=!0,Fe=Number,Je=xf,vt=Rc;function _t(At,xi){for(var Ft=[],xr=At.map(Fe,this),Gr=Je.call(this,xr,xi),Yr=vt.call(this,Gr,xr,xi),Ei,xi=-1,na=xr.length,ua=Yr.length-1,Di=de?1:1/na,Hi;++xi<ua;)Ei=Ft[xi]=[],Ei.dx=Yr[xi+1]-(Ei.x=Yr[xi]),Ei.y=0;if(ua>0)for(xi=-1;++xi<na;)Hi=xr[xi],Hi>=Gr[0]&&Hi<=Gr[1]&&(Ei=Ft[p.bisect(Yr,Hi,1,ua)-1],Ei.y+=Di,Ei.push(At[xi]));return Ft}return _t.value=function(At){return arguments.length?(Fe=At,_t):Fe},_t.range=function(At){return arguments.length?(Je=Or(At),_t):Je},_t.bins=function(At){return arguments.length?(vt=typeof At=="number"?function(ar){return Ju(ar,At)}:Or(At),_t):vt},_t.frequency=function(At){return arguments.length?(de=!!At,_t):de},_t};function Rc(de,Fe){return Ju(de,Math.ceil(Math.log(Fe.length)/Math.LN2+1))}function Ju(de,Fe){for(var Je=-1,vt=+de[0],_t=(de[1]-vt)/Fe,At=[];++Je<=Fe;)At[Je]=_t*Je+vt;return At}function xf(de){return[p.min(de),p.max(de)]}p.layout.pack=function(){var de=p.layout.hierarchy().sort(Qu),Fe=0,Je=[1,1],vt;function _t(At,ar){var Ft=de.call(this,At,ar),xr=Ft[0],Gr=Je[0],Yr=Je[1],Ei=vt==null?Math.sqrt:typeof vt=="function"?vt:function(){return vt};if(xr.x=xr.y=0,xc(xr,function(na){na.r=+Ei(na.value)}),xc(xr,Nf),Fe){var xi=Fe*(vt?1:Math.max(2*xr.r/Gr,2*xr.r/Yr))/2;xc(xr,function(na){na.r+=xi}),xc(xr,Nf),xc(xr,function(na){na.r-=xi})}return bc(xr,Gr/2,Yr/2,vt?1:1/Math.max(2*xr.r/Gr,2*xr.r/Yr)),Ft}return _t.size=function(At){return arguments.length?(Je=At,_t):Je},_t.radius=function(At){return arguments.length?(vt=At==null||typeof At=="function"?At:+At,_t):vt},_t.padding=function(At){return arguments.length?(Fe=+At,_t):Fe},Wu(_t,de)};function Qu(de,Fe){return de.value-Fe.value}function ef(de,Fe){var Je=de._pack_next;de._pack_next=Fe,Fe._pack_prev=de,Fe._pack_next=Je,Je._pack_prev=Fe}function Lf(de,Fe){de._pack_next=Fe,Fe._pack_prev=de}function du(de,Fe){var Je=Fe.x-de.x,vt=Fe.y-de.y,_t=de.r+Fe.r;return .999*_t*_t>Je*Je+vt*vt}function Nf(de){if(!(Fe=de.children)||!(xi=Fe.length))return;var Fe,Je=1/0,vt=-1/0,_t=1/0,At=-1/0,ar,Ft,xr,Gr,Yr,Ei,xi;function na(Oi){Je=Math.min(Oi.x-Oi.r,Je),vt=Math.max(Oi.x+Oi.r,vt),_t=Math.min(Oi.y-Oi.r,_t),At=Math.max(Oi.y+Oi.r,At)}if(Fe.forEach(ec),ar=Fe[0],ar.x=-ar.r,ar.y=0,na(ar),xi>1&&(Ft=Fe[1],Ft.x=Ft.r,Ft.y=0,na(Ft),xi>2))for(xr=Fe[2],Jl(ar,Ft,xr),na(xr),ef(ar,xr),ar._pack_prev=xr,ef(xr,Ft),Ft=ar._pack_next,Gr=3;Gr<xi;Gr++){Jl(ar,Ft,xr=Fe[Gr]);var ua=0,Di=1,Hi=1;for(Yr=Ft._pack_next;Yr!==Ft;Yr=Yr._pack_next,Di++)if(du(Yr,xr)){ua=1;break}if(ua==1)for(Ei=ar._pack_prev;Ei!==Yr._pack_prev&&!du(Ei,xr);Ei=Ei._pack_prev,Hi++);ua?(Di<Hi||Di==Hi&&Ft.r<ar.r?Lf(ar,Ft=Yr):Lf(ar=Ei,Ft),Gr--):(ef(ar,xr),Ft=xr,na(xr))}var ta=(Je+vt)/2,ya=(_t+At)/2,da=0;for(Gr=0;Gr<xi;Gr++)xr=Fe[Gr],xr.x-=ta,xr.y-=ya,da=Math.max(da,xr.r+Math.sqrt(xr.x*xr.x+xr.y*xr.y));de.r=da,Fe.forEach(Dc)}function ec(de){de._pack_next=de._pack_prev=de}function Dc(de){delete de._pack_next,delete de._pack_prev}function bc(de,Fe,Je,vt){var _t=de.children;if(de.x=Fe+=vt*de.x,de.y=Je+=vt*de.y,de.r*=vt,_t)for(var At=-1,ar=_t.length;++At<ar;)bc(_t[At],Fe,Je,vt)}function Jl(de,Fe,Je){var vt=de.r+Je.r,_t=Fe.x-de.x,At=Fe.y-de.y;if(vt&&(_t||At)){var ar=Fe.r+Je.r,Ft=_t*_t+At*At;ar*=ar,vt*=vt;var xr=.5+(vt-ar)/(2*Ft),Gr=Math.sqrt(Math.max(0,2*ar*(vt+Ft)-(vt-=Ft)*vt-ar*ar))/(2*Ft);Je.x=de.x+xr*_t+Gr*At,Je.y=de.y+xr*At-Gr*_t}else Je.x=de.x+vt,Je.y=de.y}p.layout.tree=function(){var de=p.layout.hierarchy().sort(null).value(null),Fe=Cu,Je=[1,1],vt=null;function _t(Yr,Ei){var xi=de.call(this,Yr,Ei),na=xi[0],ua=At(na);if(xc(ua,ar),ua.parent.m=-ua.z,Pc(ua,Ft),vt)Pc(na,Gr);else{var Di=na,Hi=na,ta=na;Pc(na,function(xn){xn.x<Di.x&&(Di=xn),xn.x>Hi.x&&(Hi=xn),xn.depth>ta.depth&&(ta=xn)});var ya=Fe(Di,Hi)/2-Di.x,da=Je[0]/(Hi.x+Fe(Hi,Di)/2+ya),Oi=Je[1]/(ta.depth||1);Pc(na,function(xn){xn.x=(xn.x+ya)*da,xn.y=xn.depth*Oi})}return xi}function At(Yr){for(var Ei={A:null,children:[Yr]},xi=[Ei],na;(na=xi.pop())!=null;)for(var ua=na.children,Di,Hi=0,ta=ua.length;Hi<ta;++Hi)xi.push((ua[Hi]=Di={_:ua[Hi],parent:na,children:(Di=ua[Hi].children)&&Di.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:Hi}).a=Di);return Ei.children[0]}function ar(Yr){var Ei=Yr.children,xi=Yr.parent.children,na=Yr.i?xi[Yr.i-1]:null;if(Ei.length){Fc(Yr);var ua=(Ei[0].z+Ei[Ei.length-1].z)/2;na?(Yr.z=na.z+Fe(Yr._,na._),Yr.m=Yr.z-ua):Yr.z=ua}else na&&(Yr.z=na.z+Fe(Yr._,na._));Yr.parent.A=xr(Yr,na,Yr.parent.A||xi[0])}function Ft(Yr){Yr._.x=Yr.z+Yr.parent.m,Yr.m+=Yr.parent.m}function xr(Yr,Ei,xi){if(Ei){for(var na=Yr,ua=Yr,Di=Ei,Hi=na.parent.children[0],ta=na.m,ya=ua.m,da=Di.m,Oi=Hi.m,xn;Di=tf(Di),na=zc(na),Di&&na;)Hi=zc(Hi),ua=tf(ua),ua.a=Yr,xn=Di.z+da-na.z-ta+Fe(Di._,na._),xn>0&&(fc(er(Di,Yr,xi),Yr,xn),ta+=xn,ya+=xn),da+=Di.m,ta+=na.m,Oi+=Hi.m,ya+=ua.m;Di&&!tf(ua)&&(ua.t=Di,ua.m+=da-ya),na&&!zc(Hi)&&(Hi.t=na,Hi.m+=ta-Oi,xi=Yr)}return xi}function Gr(Yr){Yr.x*=Je[0],Yr.y=Yr.depth*Je[1]}return _t.separation=function(Yr){return arguments.length?(Fe=Yr,_t):Fe},_t.size=function(Yr){return arguments.length?(vt=(Je=Yr)==null?Gr:null,_t):vt?null:Je},_t.nodeSize=function(Yr){return arguments.length?(vt=(Je=Yr)==null?null:Gr,_t):vt?Je:null},Wu(_t,de)};function Cu(de,Fe){return de.parent==Fe.parent?1:2}function zc(de){var Fe=de.children;return Fe.length?Fe[0]:de.t}function tf(de){var Fe=de.children,Je;return(Je=Fe.length)?Fe[Je-1]:de.t}function fc(de,Fe,Je){var vt=Je/(Fe.i-de.i);Fe.c-=vt,Fe.s+=Je,de.c+=vt,Fe.z+=Je,Fe.m+=Je}function Fc(de){for(var Fe=0,Je=0,vt=de.children,_t=vt.length,At;--_t>=0;)At=vt[_t],At.z+=Fe,At.m+=Fe,Fe+=At.s+(Je+=At.c)}function er(de,Fe,Je){return de.a.parent===Fe.parent?de.a:Je}p.layout.cluster=function(){var de=p.layout.hierarchy().sort(null).value(null),Fe=Cu,Je=[1,1],vt=!1;function _t(At,ar){var Ft=de.call(this,At,ar),xr=Ft[0],Gr,Yr=0;xc(xr,function(Di){var Hi=Di.children;Hi&&Hi.length?(Di.x=ai(Hi),Di.y=wr(Hi)):(Di.x=Gr?Yr+=Fe(Di,Gr):0,Di.y=0,Gr=Di)});var Ei=Jr(xr),xi=Fi(xr),na=Ei.x-Fe(Ei,xi)/2,ua=xi.x+Fe(xi,Ei)/2;return xc(xr,vt?function(Di){Di.x=(Di.x-xr.x)*Je[0],Di.y=(xr.y-Di.y)*Je[1]}:function(Di){Di.x=(Di.x-na)/(ua-na)*Je[0],Di.y=(1-(xr.y?Di.y/xr.y:1))*Je[1]}),Ft}return _t.separation=function(At){return arguments.length?(Fe=At,_t):Fe},_t.size=function(At){return arguments.length?(vt=(Je=At)==null,_t):vt?null:Je},_t.nodeSize=function(At){return arguments.length?(vt=(Je=At)!=null,_t):vt?Je:null},Wu(_t,de)};function wr(de){return 1+p.max(de,function(Fe){return Fe.y})}function ai(de){return de.reduce(function(Fe,Je){return Fe+Je.x},0)/de.length}function Jr(de){var Fe=de.children;return Fe&&Fe.length?Jr(Fe[0]):de}function Fi(de){var Fe=de.children,Je;return Fe&&(Je=Fe.length)?Fi(Fe[Je-1]):de}p.layout.treemap=function(){var de=p.layout.hierarchy(),Fe=Math.round,Je=[1,1],vt=null,_t=pa,At=!1,ar,Ft="squarify",xr=.5*(1+Math.sqrt(5));function Gr(Di,Hi){for(var ta=-1,ya=Di.length,da,Oi;++ta<ya;)Oi=(da=Di[ta]).value*(Hi<0?0:Hi),da.area=isNaN(Oi)||Oi<=0?0:Oi}function Yr(Di){var Hi=Di.children;if(Hi&&Hi.length){var ta=_t(Di),ya=[],da=Hi.slice(),Oi,xn=1/0,mn,In=Ft==="slice"?ta.dx:Ft==="dice"?ta.dy:Ft==="slice-dice"?Di.depth&1?ta.dy:ta.dx:Math.min(ta.dx,ta.dy),Yn;for(Gr(da,ta.dx*ta.dy/Di.value),ya.area=0;(Yn=da.length)>0;)ya.push(Oi=da[Yn-1]),ya.area+=Oi.area,Ft!=="squarify"||(mn=xi(ya,In))<=xn?(da.pop(),xn=mn):(ya.area-=ya.pop().area,na(ya,In,ta,!1),In=Math.min(ta.dx,ta.dy),ya.length=ya.area=0,xn=1/0);ya.length&&(na(ya,In,ta,!0),ya.length=ya.area=0),Hi.forEach(Yr)}}function Ei(Di){var Hi=Di.children;if(Hi&&Hi.length){var ta=_t(Di),ya=Hi.slice(),da,Oi=[];for(Gr(ya,ta.dx*ta.dy/Di.value),Oi.area=0;da=ya.pop();)Oi.push(da),Oi.area+=da.area,da.z!=null&&(na(Oi,da.z?ta.dx:ta.dy,ta,!ya.length),Oi.length=Oi.area=0);Hi.forEach(Ei)}}function xi(Di,Hi){for(var ta=Di.area,ya,da=0,Oi=1/0,xn=-1,mn=Di.length;++xn<mn;)(ya=Di[xn].area)&&(ya<Oi&&(Oi=ya),ya>da&&(da=ya));return ta*=ta,Hi*=Hi,ta?Math.max(Hi*da*xr/ta,ta/(Hi*Oi*xr)):1/0}function na(Di,Hi,ta,ya){var da=-1,Oi=Di.length,xn=ta.x,mn=ta.y,In=Hi?Fe(Di.area/Hi):0,Yn;if(Hi==ta.dx){for((ya||In>ta.dy)&&(In=ta.dy);++da<Oi;)Yn=Di[da],Yn.x=xn,Yn.y=mn,Yn.dy=In,xn+=Yn.dx=Math.min(ta.x+ta.dx-xn,In?Fe(Yn.area/In):0);Yn.z=!0,Yn.dx+=ta.x+ta.dx-xn,ta.y+=In,ta.dy-=In}else{for((ya||In>ta.dx)&&(In=ta.dx);++da<Oi;)Yn=Di[da],Yn.x=xn,Yn.y=mn,Yn.dx=In,mn+=Yn.dy=Math.min(ta.y+ta.dy-mn,In?Fe(Yn.area/In):0);Yn.z=!1,Yn.dy+=ta.y+ta.dy-mn,ta.x+=In,ta.dx-=In}}function ua(Di){var Hi=ar||de(Di),ta=Hi[0];return ta.x=ta.y=0,ta.value?(ta.dx=Je[0],ta.dy=Je[1]):ta.dx=ta.dy=0,ar&&de.revalue(ta),Gr([ta],ta.dx*ta.dy/ta.value),(ar?Ei:Yr)(ta),At&&(ar=Hi),Hi}return ua.size=function(Di){return arguments.length?(Je=Di,ua):Je},ua.padding=function(Di){if(!arguments.length)return vt;function Hi(da){var Oi=Di.call(ua,da,da.depth);return Oi==null?pa(da):Ba(da,typeof Oi=="number"?[Oi,Oi,Oi,Oi]:Oi)}function ta(da){return Ba(da,Di)}var ya;return _t=(vt=Di)==null?pa:(ya=typeof Di)=="function"?Hi:(ya==="number"&&(Di=[Di,Di,Di,Di]),ta),ua},ua.round=function(Di){return arguments.length?(Fe=Di?Math.round:Number,ua):Fe!=Number},ua.sticky=function(Di){return arguments.length?(At=Di,ar=null,ua):At},ua.ratio=function(Di){return arguments.length?(xr=Di,ua):xr},ua.mode=function(Di){return arguments.length?(Ft=Di+"",ua):Ft},Wu(ua,de)};function pa(de){return{x:de.x,y:de.y,dx:de.dx,dy:de.dy}}function Ba(de,Fe){var Je=de.x+Fe[3],vt=de.y+Fe[0],_t=de.dx-Fe[1]-Fe[3],At=de.dy-Fe[0]-Fe[2];return _t<0&&(Je+=_t/2,_t=0),At<0&&(vt+=At/2,At=0),{x:Je,y:vt,dx:_t,dy:At}}p.random={normal:function(de,Fe){var Je=arguments.length;return Je<2&&(Fe=1),Je<1&&(de=0),function(){var vt,_t,At;do vt=Math.random()*2-1,_t=Math.random()*2-1,At=vt*vt+_t*_t;while(!At||At>1);return de+Fe*vt*Math.sqrt(-2*Math.log(At)/At)}},logNormal:function(){var de=p.random.normal.apply(p,arguments);return function(){return Math.exp(de())}},bates:function(de){var Fe=p.random.irwinHall(de);return function(){return Fe()/de}},irwinHall:function(de){return function(){for(var Fe=0,Je=0;Je<de;Je++)Fe+=Math.random();return Fe}}},p.scale={};function an(de){var Fe=de[0],Je=de[de.length-1];return Fe<Je?[Fe,Je]:[Je,Fe]}function hn(de){return de.rangeExtent?de.rangeExtent():an(de.range())}function Ln(de,Fe,Je,vt){var _t=Je(de[0],de[1]),At=vt(Fe[0],Fe[1]);return function(ar){return At(_t(ar))}}function Na(de,Fe){var Je=0,vt=de.length-1,_t=de[Je],At=de[vt],ar;return At<_t&&(ar=Je,Je=vt,vt=ar,ar=_t,_t=At,At=ar),de[Je]=Fe.floor(_t),de[vt]=Fe.ceil(At),de}function qa(de){return de?{floor:function(Fe){return Math.floor(Fe/de)*de},ceil:function(Fe){return Math.ceil(Fe/de)*de}}:Za}var Za={floor:F,ceil:F};function Ta(de,Fe,Je,vt){var _t=[],At=[],ar=0,Ft=Math.min(de.length,Fe.length)-1;for(de[Ft]<de[0]&&(de=de.slice().reverse(),Fe=Fe.slice().reverse());++ar<=Ft;)_t.push(Je(de[ar-1],de[ar])),At.push(vt(Fe[ar-1],Fe[ar]));return function(xr){var Gr=p.bisect(de,xr,1,Ft)-1;return At[Gr](_t[Gr](xr))}}p.scale.linear=function(){return Hn([0,1],[0,1],Kl,!1)};function Hn(de,Fe,Je,vt){var _t,At;function ar(){var xr=Math.min(de.length,Fe.length)>2?Ta:Ln,Gr=vt?Fu:Xf;return _t=xr(de,Fe,Gr,Je),At=xr(Fe,de,Gr,Kl),Ft}function Ft(xr){return _t(xr)}return Ft.invert=function(xr){return At(xr)},Ft.domain=function(xr){return arguments.length?(de=xr.map(Number),ar()):de},Ft.range=function(xr){return arguments.length?(Fe=xr,ar()):Fe},Ft.rangeRound=function(xr){return Ft.range(xr).interpolate($u)},Ft.clamp=function(xr){return arguments.length?(vt=xr,ar()):vt},Ft.interpolate=function(xr){return arguments.length?(Je=xr,ar()):Je},Ft.ticks=function(xr){return Io(de,xr)},Ft.tickFormat=function(xr,Gr){return d3_scale_linearTickFormat(de,xr,Gr)},Ft.nice=function(xr){return wo(de,xr),ar()},Ft.copy=function(){return Hn(de,Fe,Je,vt)},ar()}function go(de,Fe){return p.rebind(de,Fe,"range","rangeRound","interpolate","clamp")}function wo(de,Fe){return Na(de,qa(yo(de,Fe)[2])),Na(de,qa(yo(de,Fe)[2])),de}function yo(de,Fe){Fe==null&&(Fe=10);var Je=an(de),vt=Je[1]-Je[0],_t=Math.pow(10,Math.floor(Math.log(vt/Fe)/Math.LN10)),At=Fe/vt*_t;return At<=.15?_t*=10:At<=.35?_t*=5:At<=.75&&(_t*=2),Je[0]=Math.ceil(Je[0]/_t)*_t,Je[1]=Math.floor(Je[1]/_t)*_t+_t*.5,Je[2]=_t,Je}function Io(de,Fe){return p.range.apply(p,yo(de,Fe))}var Vn={s:1,g:1,p:1,r:1,e:1};function wn(de){return-Math.floor(Math.log(de)/Math.LN10+.01)}function Oo(de,Fe){var Je=wn(Fe[2]);return de in Vn?Math.abs(Je-wn(Math.max(l(Fe[0]),l(Fe[1]))))+ +(de!=="e"):Je-(de==="%")*2}p.scale.log=function(){return ps(p.scale.linear().domain([0,1]),10,!0,[1,10])};function ps(de,Fe,Je,vt){function _t(Ft){return(Je?Math.log(Ft<0?0:Ft):-Math.log(Ft>0?0:-Ft))/Math.log(Fe)}function At(Ft){return Je?Math.pow(Fe,Ft):-Math.pow(Fe,-Ft)}function ar(Ft){return de(_t(Ft))}return ar.invert=function(Ft){return At(de.invert(Ft))},ar.domain=function(Ft){return arguments.length?(Je=Ft[0]>=0,de.domain((vt=Ft.map(Number)).map(_t)),ar):vt},ar.base=function(Ft){return arguments.length?(Fe=+Ft,de.domain(vt.map(_t)),ar):Fe},ar.nice=function(){var Ft=Na(vt.map(_t),Je?Math:js);return de.domain(Ft),vt=Ft.map(At),ar},ar.ticks=function(){var Ft=an(vt),xr=[],Gr=Ft[0],Yr=Ft[1],Ei=Math.floor(_t(Gr)),xi=Math.ceil(_t(Yr)),na=Fe%1?2:Fe;if(isFinite(xi-Ei)){if(Je){for(;Ei<xi;Ei++)for(var ua=1;ua<na;ua++)xr.push(At(Ei)*ua);xr.push(At(Ei))}else for(xr.push(At(Ei));Ei++<xi;)for(var ua=na-1;ua>0;ua--)xr.push(At(Ei)*ua);for(Ei=0;xr[Ei]<Gr;Ei++);for(xi=xr.length;xr[xi-1]>Yr;xi--);xr=xr.slice(Ei,xi)}return xr},ar.copy=function(){return ps(de.copy(),Fe,Je,vt)},go(ar,de)}var js={floor:function(de){return-Math.ceil(-de)},ceil:function(de){return-Math.floor(-de)}};p.scale.pow=function(){return pl(p.scale.linear(),1,[0,1])};function pl(de,Fe,Je){var vt=Qs(Fe),_t=Qs(1/Fe);function At(ar){return de(vt(ar))}return At.invert=function(ar){return _t(de.invert(ar))},At.domain=function(ar){return arguments.length?(de.domain((Je=ar.map(Number)).map(vt)),At):Je},At.ticks=function(ar){return Io(Je,ar)},At.tickFormat=function(ar,Ft){return d3_scale_linearTickFormat(Je,ar,Ft)},At.nice=function(ar){return At.domain(wo(Je,ar))},At.exponent=function(ar){return arguments.length?(vt=Qs(Fe=ar),_t=Qs(1/Fe),de.domain(Je.map(vt)),At):Fe},At.copy=function(){return pl(de.copy(),Fe,Je)},go(At,de)}function Qs(de){return function(Fe){return Fe<0?-Math.pow(-Fe,de):Math.pow(Fe,de)}}p.scale.sqrt=function(){return p.scale.pow().exponent(.5)},p.scale.ordinal=function(){return hl([],{t:"range",a:[[]]})};function hl(de,Fe){var Je,vt,_t;function At(Ft){return vt[((Je.get(Ft)||(Fe.t==="range"?Je.set(Ft,de.push(Ft)):NaN))-1)%vt.length]}function ar(Ft,xr){return p.range(de.length).map(function(Gr){return Ft+xr*Gr})}return At.domain=function(Ft){if(!arguments.length)return de;de=[],Je=new A;for(var xr=-1,Gr=Ft.length,Yr;++xr<Gr;)Je.has(Yr=Ft[xr])||Je.set(Yr,de.push(Yr));return At[Fe.t].apply(At,Fe.a)},At.range=function(Ft){return arguments.length?(vt=Ft,_t=0,Fe={t:"range",a:arguments},At):vt},At.rangePoints=function(Ft,xr){arguments.length<2&&(xr=0);var Gr=Ft[0],Yr=Ft[1],Ei=de.length<2?(Gr=(Gr+Yr)/2,0):(Yr-Gr)/(de.length-1+xr);return vt=ar(Gr+Ei*xr/2,Ei),_t=0,Fe={t:"rangePoints",a:arguments},At},At.rangeRoundPoints=function(Ft,xr){arguments.length<2&&(xr=0);var Gr=Ft[0],Yr=Ft[1],Ei=de.length<2?(Gr=Yr=Math.round((Gr+Yr)/2),0):(Yr-Gr)/(de.length-1+xr)|0;return vt=ar(Gr+Math.round(Ei*xr/2+(Yr-Gr-(de.length-1+xr)*Ei)/2),Ei),_t=0,Fe={t:"rangeRoundPoints",a:arguments},At},At.rangeBands=function(Ft,xr,Gr){arguments.length<2&&(xr=0),arguments.length<3&&(Gr=xr);var Yr=Ft[1]<Ft[0],Ei=Ft[Yr-0],xi=Ft[1-Yr],na=(xi-Ei)/(de.length-xr+2*Gr);return vt=ar(Ei+na*Gr,na),Yr&&vt.reverse(),_t=na*(1-xr),Fe={t:"rangeBands",a:arguments},At},At.rangeRoundBands=function(Ft,xr,Gr){arguments.length<2&&(xr=0),arguments.length<3&&(Gr=xr);var Yr=Ft[1]<Ft[0],Ei=Ft[Yr-0],xi=Ft[1-Yr],na=Math.floor((xi-Ei)/(de.length-xr+2*Gr));return vt=ar(Ei+Math.round((xi-Ei-(de.length-xr)*na)/2),na),Yr&&vt.reverse(),_t=Math.round(na*(1-xr)),Fe={t:"rangeRoundBands",a:arguments},At},At.rangeBand=function(){return _t},At.rangeExtent=function(){return an(Fe.a[0])},At.copy=function(){return hl(de,Fe)},At.domain(de)}p.scale.category10=function(){return p.scale.ordinal().range(Bs)},p.scale.category20=function(){return p.scale.ordinal().range(Wl)},p.scale.category20b=function(){return p.scale.ordinal().range(Il)},p.scale.category20c=function(){return p.scale.ordinal().range(wl)};var Bs=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Nr),Wl=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Nr),Il=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Nr),wl=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Nr);p.scale.quantile=function(){return io([],[])};function io(de,Fe){var Je;function vt(){var At=0,ar=Fe.length;for(Je=[];++At<ar;)Je[At-1]=p.quantile(de,At/ar);return _t}function _t(At){if(!isNaN(At=+At))return Fe[p.bisect(Je,At)]}return _t.domain=function(At){return arguments.length?(de=At.map(h).filter(c).sort(s),vt()):de},_t.range=function(At){return arguments.length?(Fe=At,vt()):Fe},_t.quantiles=function(){return Je},_t.invertExtent=function(At){return At=Fe.indexOf(At),At<0?[NaN,NaN]:[At>0?Je[At-1]:de[0],At<Je.length?Je[At]:de[de.length-1]]},_t.copy=function(){return io(de,Fe)},vt()}p.scale.quantize=function(){return Jo(0,1,[0,1])};function Jo(de,Fe,Je){var vt,_t;function At(Ft){return Je[Math.max(0,Math.min(_t,Math.floor(vt*(Ft-de))))]}function ar(){return vt=Je.length/(Fe-de),_t=Je.length-1,At}return At.domain=function(Ft){return arguments.length?(de=+Ft[0],Fe=+Ft[Ft.length-1],ar()):[de,Fe]},At.range=function(Ft){return arguments.length?(Je=Ft,ar()):Je},At.invertExtent=function(Ft){return Ft=Je.indexOf(Ft),Ft=Ft<0?NaN:Ft/vt+de,[Ft,Ft+1/vt]},At.copy=function(){return Jo(de,Fe,Je)},ar()}p.scale.threshold=function(){return cl([.5],[0,1])};function cl(de,Fe){function Je(vt){if(vt<=vt)return Fe[p.bisect(de,vt)]}return Je.domain=function(vt){return arguments.length?(de=vt,Je):de},Je.range=function(vt){return arguments.length?(Fe=vt,Je):Fe},Je.invertExtent=function(vt){return vt=Fe.indexOf(vt),[de[vt-1],de[vt]]},Je.copy=function(){return cl(de,Fe)},Je}p.scale.identity=function(){return Zs([0,1])};function Zs(de){function Fe(Je){return+Je}return Fe.invert=Fe,Fe.domain=Fe.range=function(Je){return arguments.length?(de=Je.map(Fe),Fe):de},Fe.ticks=function(Je){return Io(de,Je)},Fe.tickFormat=function(Je,vt){return d3_scale_linearTickFormat(de,Je,vt)},Fe.copy=function(){return Zs(de)},Fe}p.svg={};function gu(){return 0}p.svg.arc=function(){var de=tc,Fe=Bc,Je=gu,vt=Nu,_t=Lu,At=Oc,ar=Pu;function Ft(){var Gr=Math.max(0,+de.apply(this,arguments)),Yr=Math.max(0,+Fe.apply(this,arguments)),Ei=_t.apply(this,arguments)-Me,xi=At.apply(this,arguments)-Me,na=Math.abs(xi-Ei),ua=Ei>xi?0:1;if(Yr<Gr&&(Di=Yr,Yr=Gr,Gr=Di),na>=ke)return xr(Yr,ua)+(Gr?xr(Gr,1-ua):"")+"Z";var Di,Hi,ta,ya,da=0,Oi=0,xn,mn,In,Yn,mo,bo,vs,To,cs=[];if((ya=(+ar.apply(this,arguments)||0)/2)&&(ta=vt===Nu?Math.sqrt(Gr*Gr+Yr*Yr):+vt.apply(this,arguments),ua||(Oi*=-1),Yr&&(Oi=nr(ta/Yr*Math.sin(ya))),Gr&&(da=nr(ta/Gr*Math.sin(ya)))),Yr){xn=Yr*Math.cos(Ei+Oi),mn=Yr*Math.sin(Ei+Oi),In=Yr*Math.cos(xi-Oi),Yn=Yr*Math.sin(xi-Oi);var Al=Math.abs(xi-Ei-2*Oi)<=Ie?0:1;if(Oi&&wc(xn,mn,In,Yn)===ua^Al){var ml=(Ei+xi)/2;xn=Yr*Math.cos(ml),mn=Yr*Math.sin(ml),In=Yn=null}}else xn=mn=0;if(Gr){mo=Gr*Math.cos(xi-da),bo=Gr*Math.sin(xi-da),vs=Gr*Math.cos(Ei+da),To=Gr*Math.sin(Ei+da);var Pl=Math.abs(Ei-xi+2*da)<=Ie?0:1;if(da&&wc(mo,bo,vs,To)===1-ua^Pl){var Dn=(Ei+xi)/2;mo=Gr*Math.cos(Dn),bo=Gr*Math.sin(Dn),vs=To=null}}else mo=bo=0;if(na>Ye&&(Di=Math.min(Math.abs(Yr-Gr)/2,+Je.apply(this,arguments)))>.001){Hi=Gr<Yr^ua?0:1;var zo=Di,ks=Di;if(na<Ie){var Rs=vs==null?[mo,bo]:In==null?[xn,mn]:ss([xn,mn],[vs,To],[In,Yn],[mo,bo]),Bl=xn-Rs[0],tu=mn-Rs[1],Ru=In-Rs[0],Hl=Yn-Rs[1],Tc=1/Math.sin(Math.acos((Bl*Ru+tu*Hl)/(Math.sqrt(Bl*Bl+tu*tu)*Math.sqrt(Ru*Ru+Hl*Hl)))/2),rt=Math.sqrt(Rs[0]*Rs[0]+Rs[1]*Rs[1]);ks=Math.min(Di,(Gr-rt)/(Tc-1)),zo=Math.min(Di,(Yr-rt)/(Tc+1))}if(In!=null){var Yt=Po(vs==null?[mo,bo]:[vs,To],[xn,mn],Yr,zo,ua),hr=Po([In,Yn],[mo,bo],Yr,zo,ua);Di===zo?cs.push("M",Yt[0],"A",zo,",",zo," 0 0,",Hi," ",Yt[1],"A",Yr,",",Yr," 0 ",1-ua^wc(Yt[1][0],Yt[1][1],hr[1][0],hr[1][1]),",",ua," ",hr[1],"A",zo,",",zo," 0 0,",Hi," ",hr[0]):cs.push("M",Yt[0],"A",zo,",",zo," 0 1,",Hi," ",hr[0])}else cs.push("M",xn,",",mn);if(vs!=null){var li=Po([xn,mn],[vs,To],Gr,-ks,ua),Ci=Po([mo,bo],In==null?[xn,mn]:[In,Yn],Gr,-ks,ua);Di===ks?cs.push("L",Ci[0],"A",ks,",",ks," 0 0,",Hi," ",Ci[1],"A",Gr,",",Gr," 0 ",ua^wc(Ci[1][0],Ci[1][1],li[1][0],li[1][1]),",",1-ua," ",li[1],"A",ks,",",ks," 0 0,",Hi," ",li[0]):cs.push("L",Ci[0],"A",ks,",",ks," 0 0,",Hi," ",li[0])}else cs.push("L",mo,",",bo)}else cs.push("M",xn,",",mn),In!=null&&cs.push("A",Yr,",",Yr," 0 ",Al,",",ua," ",In,",",Yn),cs.push("L",mo,",",bo),vs!=null&&cs.push("A",Gr,",",Gr," 0 ",Pl,",",1-ua," ",vs,",",To);return cs.push("Z"),cs.join("")}function xr(Gr,Yr){return"M0,"+Gr+"A"+Gr+","+Gr+" 0 1,"+Yr+" 0,"+-Gr+"A"+Gr+","+Gr+" 0 1,"+Yr+" 0,"+Gr}return Ft.innerRadius=function(Gr){return arguments.length?(de=Or(Gr),Ft):de},Ft.outerRadius=function(Gr){return arguments.length?(Fe=Or(Gr),Ft):Fe},Ft.cornerRadius=function(Gr){return arguments.length?(Je=Or(Gr),Ft):Je},Ft.padRadius=function(Gr){return arguments.length?(vt=Gr==Nu?Nu:Or(Gr),Ft):vt},Ft.startAngle=function(Gr){return arguments.length?(_t=Or(Gr),Ft):_t},Ft.endAngle=function(Gr){return arguments.length?(At=Or(Gr),Ft):At},Ft.padAngle=function(Gr){return arguments.length?(ar=Or(Gr),Ft):ar},Ft.centroid=function(){var Gr=(+de.apply(this,arguments)+ +Fe.apply(this,arguments))/2,Yr=(+_t.apply(this,arguments)+ +At.apply(this,arguments))/2-Me;return[Math.cos(Yr)*Gr,Math.sin(Yr)*Gr]},Ft};var Nu="auto";function tc(de){return de.innerRadius}function Bc(de){return de.outerRadius}function Lu(de){return de.startAngle}function Oc(de){return de.endAngle}function Pu(de){return de&&de.padAngle}function wc(de,Fe,Je,vt){return(de-Je)*Fe-(Fe-vt)*de>0?0:1}function Po(de,Fe,Je,vt,_t){var At=de[0]-Fe[0],ar=de[1]-Fe[1],Ft=(_t?vt:-vt)/Math.sqrt(At*At+ar*ar),xr=Ft*ar,Gr=-Ft*At,Yr=de[0]+xr,Ei=de[1]+Gr,xi=Fe[0]+xr,na=Fe[1]+Gr,ua=(Yr+xi)/2,Di=(Ei+na)/2,Hi=xi-Yr,ta=na-Ei,ya=Hi*Hi+ta*ta,da=Je-vt,Oi=Yr*na-xi*Ei,xn=(ta<0?-1:1)*Math.sqrt(Math.max(0,da*da*ya-Oi*Oi)),mn=(Oi*ta-Hi*xn)/ya,In=(-Oi*Hi-ta*xn)/ya,Yn=(Oi*ta+Hi*xn)/ya,mo=(-Oi*Hi+ta*xn)/ya,bo=mn-ua,vs=In-Di,To=Yn-ua,cs=mo-Di;return bo*bo+vs*vs>To*To+cs*cs&&(mn=Yn,In=mo),[[mn-xr,In-Gr],[mn*Je/da,In*Je/da]]}function es(){return!0}function Nc(de){var Fe=An,Je=Eo,vt=es,_t=rc,At=_t.key,ar=.7;function Ft(xr){var Gr=[],Yr=[],Ei=-1,xi=xr.length,na,ua=Or(Fe),Di=Or(Je);function Hi(){Gr.push("M",_t(de(Yr),ar))}for(;++Ei<xi;)vt.call(this,na=xr[Ei],Ei)?Yr.push([+ua.call(this,na,Ei),+Di.call(this,na,Ei)]):Yr.length&&(Hi(),Yr=[]);return Yr.length&&Hi(),Gr.length?Gr.join(""):null}return Ft.x=function(xr){return arguments.length?(Fe=xr,Ft):Fe},Ft.y=function(xr){return arguments.length?(Je=xr,Ft):Je},Ft.defined=function(xr){return arguments.length?(vt=xr,Ft):vt},Ft.interpolate=function(xr){return arguments.length?(typeof xr=="function"?At=_t=xr:At=(_t=hc.get(xr)||rc).key,Ft):At},Ft.tension=function(xr){return arguments.length?(ar=xr,Ft):ar},Ft}p.svg.line=function(){return Nc(F)};var hc=p.map({linear:rc,"linear-closed":Ue,step:P,"step-before":ae,"step-after":xe,basis:Qt,"basis-open":Ar,"basis-closed":Sr,bundle:Kr,cardinal:ht,"cardinal-open":Te,"cardinal-closed":Oe,monotone:fr});hc.forEach(function(de,Fe){Fe.key=de,Fe.closed=/-closed$/.test(de)});function rc(de){return de.length>1?de.join("L"):de+"Z"}function Ue(de){return de.join("L")+"Z"}function P(de){for(var Fe=0,Je=de.length,vt=de[0],_t=[vt[0],",",vt[1]];++Fe<Je;)_t.push("H",(vt[0]+(vt=de[Fe])[0])/2,"V",vt[1]);return Je>1&&_t.push("H",vt[0]),_t.join("")}function ae(de){for(var Fe=0,Je=de.length,vt=de[0],_t=[vt[0],",",vt[1]];++Fe<Je;)_t.push("V",(vt=de[Fe])[1],"H",vt[0]);return _t.join("")}function xe(de){for(var Fe=0,Je=de.length,vt=de[0],_t=[vt[0],",",vt[1]];++Fe<Je;)_t.push("H",(vt=de[Fe])[0],"V",vt[1]);return _t.join("")}function Te(de,Fe){return de.length<4?rc(de):de[1]+Tt(de.slice(1,-1),Ot(de,Fe))}function Oe(de,Fe){return de.length<3?Ue(de):de[0]+Tt((de.push(de[0]),de),Ot([de[de.length-2]].concat(de,[de[1]]),Fe))}function ht(de,Fe){return de.length<3?rc(de):de[0]+Tt(de,Ot(de,Fe))}function Tt(de,Fe){if(Fe.length<1||de.length!=Fe.length&&de.length!=Fe.length+2)return rc(de);var Je=de.length!=Fe.length,vt="",_t=de[0],At=de[1],ar=Fe[0],Ft=ar,xr=1;if(Je&&(vt+="Q"+(At[0]-ar[0]*2/3)+","+(At[1]-ar[1]*2/3)+","+At[0]+","+At[1],_t=de[1],xr=2),Fe.length>1){Ft=Fe[1],At=de[xr],xr++,vt+="C"+(_t[0]+ar[0])+","+(_t[1]+ar[1])+","+(At[0]-Ft[0])+","+(At[1]-Ft[1])+","+At[0]+","+At[1];for(var Gr=2;Gr<Fe.length;Gr++,xr++)At=de[xr],Ft=Fe[Gr],vt+="S"+(At[0]-Ft[0])+","+(At[1]-Ft[1])+","+At[0]+","+At[1]}if(Je){var Yr=de[xr];vt+="Q"+(At[0]+Ft[0]*2/3)+","+(At[1]+Ft[1]*2/3)+","+Yr[0]+","+Yr[1]}return vt}function Ot(de,Fe){for(var Je=[],vt=(1-Fe)/2,_t,At=de[0],ar=de[1],Ft=1,xr=de.length;++Ft<xr;)_t=At,At=ar,ar=de[Ft],Je.push([vt*(ar[0]-_t[0]),vt*(ar[1]-_t[1])]);return Je}function Qt(de){if(de.length<3)return rc(de);var Fe=1,Je=de.length,vt=de[0],_t=vt[0],At=vt[1],ar=[_t,_t,_t,(vt=de[1])[0]],Ft=[At,At,At,vt[1]],xr=[_t,",",At,"L",oi(ot,ar),",",oi(ot,Ft)];for(de.push(de[Je-1]);++Fe<=Je;)vt=de[Fe],ar.shift(),ar.push(vt[0]),Ft.shift(),Ft.push(vt[1]),dt(xr,ar,Ft);return de.pop(),xr.push("L",vt),xr.join("")}function Ar(de){if(de.length<4)return rc(de);for(var Fe=[],Je=-1,vt=de.length,_t,At=[0],ar=[0];++Je<3;)_t=de[Je],At.push(_t[0]),ar.push(_t[1]);for(Fe.push(oi(ot,At)+","+oi(ot,ar)),--Je;++Je<vt;)_t=de[Je],At.shift(),At.push(_t[0]),ar.shift(),ar.push(_t[1]),dt(Fe,At,ar);return Fe.join("")}function Sr(de){for(var Fe,Je=-1,vt=de.length,_t=vt+4,At,ar=[],Ft=[];++Je<4;)At=de[Je%vt],ar.push(At[0]),Ft.push(At[1]);for(Fe=[oi(ot,ar),",",oi(ot,Ft)],--Je;++Je<_t;)At=de[Je%vt],ar.shift(),ar.push(At[0]),Ft.shift(),Ft.push(At[1]),dt(Fe,ar,Ft);return Fe.join("")}function Kr(de,Fe){var Je=de.length-1;if(Je)for(var vt=de[0][0],_t=de[0][1],At=de[Je][0]-vt,ar=de[Je][1]-_t,Ft=-1,xr,Gr;++Ft<=Je;)xr=de[Ft],Gr=Ft/Je,xr[0]=Fe*xr[0]+(1-Fe)*(vt+Gr*At),xr[1]=Fe*xr[1]+(1-Fe)*(_t+Gr*ar);return Qt(de)}function oi(de,Fe){return de[0]*Fe[0]+de[1]*Fe[1]+de[2]*Fe[2]+de[3]*Fe[3]}var Ge=[0,2/3,1/3,0],Ze=[0,1/3,2/3,0],ot=[0,1/6,2/3,1/6];function dt(de,Fe,Je){de.push("C",oi(Ge,Fe),",",oi(Ge,Je),",",oi(Ze,Fe),",",oi(Ze,Je),",",oi(ot,Fe),",",oi(ot,Je))}function Ct(de,Fe){return(Fe[1]-de[1])/(Fe[0]-de[0])}function wt(de){for(var Fe=0,Je=de.length-1,vt=[],_t=de[0],At=de[1],ar=vt[0]=Ct(_t,At);++Fe<Je;)vt[Fe]=(ar+(ar=Ct(_t=At,At=de[Fe+1])))/2;return vt[Fe]=ar,vt}function Dt(de){for(var Fe=[],Je,vt,_t,At,ar=wt(de),Ft=-1,xr=de.length-1;++Ft<xr;)Je=Ct(de[Ft],de[Ft+1]),l(Je)<Ye?ar[Ft]=ar[Ft+1]=0:(vt=ar[Ft]/Je,_t=ar[Ft+1]/Je,At=vt*vt+_t*_t,At>9&&(At=Je*3/Math.sqrt(At),ar[Ft]=At*vt,ar[Ft+1]=At*_t));for(Ft=-1;++Ft<=xr;)At=(de[Math.min(xr,Ft+1)][0]-de[Math.max(0,Ft-1)][0])/(6*(1+ar[Ft]*ar[Ft])),Fe.push([At||0,ar[Ft]*At||0]);return Fe}function fr(de){return de.length<3?rc(de):de[0]+Tt(de,Dt(de))}p.svg.line.radial=function(){var de=Nc(_r);return de.radius=de.x,delete de.x,de.angle=de.y,delete de.y,de};function _r(de){for(var Fe,Je=-1,vt=de.length,_t,At;++Je<vt;)Fe=de[Je],_t=Fe[0],At=Fe[1]-Me,Fe[0]=_t*Math.cos(At),Fe[1]=_t*Math.sin(At);return de}function kr(de){var Fe=An,Je=An,vt=0,_t=Eo,At=es,ar=rc,Ft=ar.key,xr=ar,Gr="L",Yr=.7;function Ei(xi){var na=[],ua=[],Di=[],Hi=-1,ta=xi.length,ya,da=Or(Fe),Oi=Or(vt),xn=Fe===Je?function(){return In}:Or(Je),mn=vt===_t?function(){return Yn}:Or(_t),In,Yn;function mo(){na.push("M",ar(de(Di),Yr),Gr,xr(de(ua.reverse()),Yr),"Z")}for(;++Hi<ta;)At.call(this,ya=xi[Hi],Hi)?(ua.push([In=+da.call(this,ya,Hi),Yn=+Oi.call(this,ya,Hi)]),Di.push([+xn.call(this,ya,Hi),+mn.call(this,ya,Hi)])):ua.length&&(mo(),ua=[],Di=[]);return ua.length&&mo(),na.length?na.join(""):null}return Ei.x=function(xi){return arguments.length?(Fe=Je=xi,Ei):Je},Ei.x0=function(xi){return arguments.length?(Fe=xi,Ei):Fe},Ei.x1=function(xi){return arguments.length?(Je=xi,Ei):Je},Ei.y=function(xi){return arguments.length?(vt=_t=xi,Ei):_t},Ei.y0=function(xi){return arguments.length?(vt=xi,Ei):vt},Ei.y1=function(xi){return arguments.length?(_t=xi,Ei):_t},Ei.defined=function(xi){return arguments.length?(At=xi,Ei):At},Ei.interpolate=function(xi){return arguments.length?(typeof xi=="function"?Ft=ar=xi:Ft=(ar=hc.get(xi)||rc).key,xr=ar.reverse||ar,Gr=ar.closed?"M":"L",Ei):Ft},Ei.tension=function(xi){return arguments.length?(Yr=xi,Ei):Yr},Ei}ae.reverse=xe,xe.reverse=ae,p.svg.area=function(){return kr(F)},p.svg.area.radial=function(){var de=kr(_r);return de.radius=de.x,delete de.x,de.innerRadius=de.x0,delete de.x0,de.outerRadius=de.x1,delete de.x1,de.angle=de.y,delete de.y,de.startAngle=de.y0,delete de.y0,de.endAngle=de.y1,delete de.y1,de};function Vr(de){return de.source}function Qr(de){return de.target}p.svg.chord=function(){var de=Vr,Fe=Qr,Je=_i,vt=Lu,_t=Oc;function At(Yr,Ei){var xi=ar(this,de,Yr,Ei),na=ar(this,Fe,Yr,Ei);return"M"+xi.p0+xr(xi.r,xi.p1,xi.a1-xi.a0)+(Ft(xi,na)?Gr(xi.r,xi.p1,xi.r,xi.p0):Gr(xi.r,xi.p1,na.r,na.p0)+xr(na.r,na.p1,na.a1-na.a0)+Gr(na.r,na.p1,xi.r,xi.p0))+"Z"}function ar(Yr,Ei,xi,na){var ua=Ei.call(Yr,xi,na),Di=Je.call(Yr,ua,na),Hi=vt.call(Yr,ua,na)-Me,ta=_t.call(Yr,ua,na)-Me;return{r:Di,a0:Hi,a1:ta,p0:[Di*Math.cos(Hi),Di*Math.sin(Hi)],p1:[Di*Math.cos(ta),Di*Math.sin(ta)]}}function Ft(Yr,Ei){return Yr.a0==Ei.a0&&Yr.a1==Ei.a1}function xr(Yr,Ei,xi){return"A"+Yr+","+Yr+" 0 "+ +(xi>Ie)+",1 "+Ei}function Gr(Yr,Ei,xi,na){return"Q 0,0 "+na}return At.radius=function(Yr){return arguments.length?(Je=Or(Yr),At):Je},At.source=function(Yr){return arguments.length?(de=Or(Yr),At):de},At.target=function(Yr){return arguments.length?(Fe=Or(Yr),At):Fe},At.startAngle=function(Yr){return arguments.length?(vt=Or(Yr),At):vt},At.endAngle=function(Yr){return arguments.length?(_t=Or(Yr),At):_t},At};function _i(de){return de.radius}p.svg.diagonal=function(){var de=Vr,Fe=Qr,Je=Pi;function vt(_t,At){var ar=de.call(this,_t,At),Ft=Fe.call(this,_t,At),xr=(ar.y+Ft.y)/2,Gr=[ar,{x:ar.x,y:xr},{x:Ft.x,y:xr},Ft];return Gr=Gr.map(Je),"M"+Gr[0]+"C"+Gr[1]+" "+Gr[2]+" "+Gr[3]}return vt.source=function(_t){return arguments.length?(de=Or(_t),vt):de},vt.target=function(_t){return arguments.length?(Fe=Or(_t),vt):Fe},vt.projection=function(_t){return arguments.length?(Je=_t,vt):Je},vt};function Pi(de){return[de.x,de.y]}p.svg.diagonal.radial=function(){var de=p.svg.diagonal(),Fe=Pi,Je=de.projection;return de.projection=function(vt){return arguments.length?Je(qi(Fe=vt)):Fe},de};function qi(de){return function(){var Fe=de.apply(this,arguments),Je=Fe[0],vt=Fe[1]-Me;return[Je*Math.cos(vt),Je*Math.sin(vt)]}}p.svg.symbol=function(){var de=Qa,Fe=ga;function Je(vt,_t){return(yn.get(de.call(this,vt,_t))||$a)(Fe.call(this,vt,_t))}return Je.type=function(vt){return arguments.length?(de=Or(vt),Je):de},Je.size=function(vt){return arguments.length?(Fe=Or(vt),Je):Fe},Je};function ga(){return 64}function Qa(){return"circle"}function $a(de){var Fe=Math.sqrt(de/Ie);return"M0,"+Fe+"A"+Fe+","+Fe+" 0 1,1 0,"+-Fe+"A"+Fe+","+Fe+" 0 1,1 0,"+Fe+"Z"}var yn=p.map({circle:$a,cross:function(de){var Fe=Math.sqrt(de/5)/2;return"M"+-3*Fe+","+-Fe+"H"+-Fe+"V"+-3*Fe+"H"+Fe+"V"+-Fe+"H"+3*Fe+"V"+Fe+"H"+Fe+"V"+3*Fe+"H"+-Fe+"V"+Fe+"H"+-3*Fe+"Z"},diamond:function(de){var Fe=Math.sqrt(de/(2*po)),Je=Fe*po;return"M0,"+-Fe+"L"+Je+",0 0,"+Fe+" "+-Je+",0Z"},square:function(de){var Fe=Math.sqrt(de)/2;return"M"+-Fe+","+-Fe+"L"+Fe+","+-Fe+" "+Fe+","+Fe+" "+-Fe+","+Fe+"Z"},"triangle-down":function(de){var Fe=Math.sqrt(de/qn),Je=Fe*qn/2;return"M0,"+Je+"L"+Fe+","+-Je+" "+-Fe+","+-Je+"Z"},"triangle-up":function(de){var Fe=Math.sqrt(de/qn),Je=Fe*qn/2;return"M0,"+-Je+"L"+Fe+","+Je+" "+-Fe+","+Je+"Z"}});p.svg.symbolTypes=yn.keys();var qn=Math.sqrt(3),po=Math.tan(30*Le);ie.transition=function(de){for(var Fe=Is||++ds,Je=gs(de),vt=[],_t,At,ar=Tl||{time:Date.now(),ease:$l,delay:0,duration:250},Ft=-1,xr=this.length;++Ft<xr;){vt.push(_t=[]);for(var Gr=this[Ft],Yr=-1,Ei=Gr.length;++Yr<Ei;)(At=Gr[Yr])&&ql(At,Yr,Je,Fe,ar),_t.push(At)}return bs(vt,Je,Fe)},ie.interrupt=function(de){return this.each(de==null?to:Vo(gs(de)))};var to=Vo(gs());function Vo(de){return function(){var Fe,Je,vt;(Fe=this[de])&&(vt=Fe[Je=Fe.active])&&(vt.timer.c=null,vt.timer.t=NaN,--Fe.count?delete Fe[Je]:delete this[de],Fe.active+=.5,vt.event&&vt.event.interrupt.call(this,this.__data__,vt.index))}}function bs(de,Fe,Je){return q(de,Ho),de.namespace=Fe,de.id=Je,de}var Ho=[],ds=0,Is,Tl;Ho.call=ie.call,Ho.empty=ie.empty,Ho.node=ie.node,Ho.size=ie.size,p.transition=function(de,Fe){return de&&de.transition?Is?de.transition(Fe):de:p.selection().transition(de)},p.transition.prototype=Ho,Ho.select=function(de){var Fe=this.id,Je=this.namespace,vt=[],_t,At,ar;de=j(de);for(var Ft=-1,xr=this.length;++Ft<xr;){vt.push(_t=[]);for(var Gr=this[Ft],Yr=-1,Ei=Gr.length;++Yr<Ei;)(ar=Gr[Yr])&&(At=de.call(ar,ar.__data__,Yr,Ft))?("__data__"in ar&&(At.__data__=ar.__data__),ql(At,Yr,Je,Fe,ar[Je][Fe]),_t.push(At)):_t.push(null)}return bs(vt,Je,Fe)},Ho.selectAll=function(de){var Fe=this.id,Je=this.namespace,vt=[],_t,At,ar,Ft,xr;de=Q(de);for(var Gr=-1,Yr=this.length;++Gr<Yr;)for(var Ei=this[Gr],xi=-1,na=Ei.length;++xi<na;)if(ar=Ei[xi]){xr=ar[Je][Fe],At=de.call(ar,ar.__data__,xi,Gr),vt.push(_t=[]);for(var ua=-1,Di=At.length;++ua<Di;)(Ft=At[ua])&&ql(Ft,ua,Je,Fe,xr),_t.push(Ft)}return bs(vt,Je,Fe)},Ho.filter=function(de){var Fe=[],Je,vt,_t;typeof de!="function"&&(de=fe(de));for(var At=0,ar=this.length;At<ar;At++){Fe.push(Je=[]);for(var vt=this[At],Ft=0,xr=vt.length;Ft<xr;Ft++)(_t=vt[Ft])&&de.call(_t,_t.__data__,Ft,At)&&Je.push(_t)}return bs(Fe,this.namespace,this.id)},Ho.tween=function(de,Fe){var Je=this.id,vt=this.namespace;return arguments.length<2?this.node()[vt][Je].tween.get(de):Qe(this,Fe==null?function(_t){_t[vt][Je].tween.remove(de)}:function(_t){_t[vt][Je].tween.set(de,Fe)})};function dl(de,Fe,Je,vt){var _t=de.id,At=de.namespace;return Qe(de,typeof Je=="function"?function(ar,Ft,xr){ar[At][_t].tween.set(Fe,vt(Je.call(ar,ar.__data__,Ft,xr)))}:(Je=vt(Je),function(ar){ar[At][_t].tween.set(Fe,Je)}))}Ho.attr=function(de,Fe){if(arguments.length<2){for(Fe in de)this.attr(Fe,de[Fe]);return this}var Je=de=="transform"?Jc:Kl,vt=p.ns.qualify(de);function _t(){this.removeAttribute(vt)}function At(){this.removeAttributeNS(vt.space,vt.local)}function ar(xr){return xr==null?_t:(xr+="",function(){var Gr=this.getAttribute(vt),Yr;return Gr!==xr&&(Yr=Je(Gr,xr),function(Ei){this.setAttribute(vt,Yr(Ei))})})}function Ft(xr){return xr==null?At:(xr+="",function(){var Gr=this.getAttributeNS(vt.space,vt.local),Yr;return Gr!==xr&&(Yr=Je(Gr,xr),function(Ei){this.setAttributeNS(vt.space,vt.local,Yr(Ei))})})}return dl(this,"attr."+de,Fe,vt.local?Ft:ar)},Ho.attrTween=function(de,Fe){var Je=p.ns.qualify(de);function vt(At,ar){var Ft=Fe.call(this,At,ar,this.getAttribute(Je));return Ft&&function(xr){this.setAttribute(Je,Ft(xr))}}function _t(At,ar){var Ft=Fe.call(this,At,ar,this.getAttributeNS(Je.space,Je.local));return Ft&&function(xr){this.setAttributeNS(Je.space,Je.local,Ft(xr))}}return this.tween("attr."+de,Je.local?_t:vt)},Ho.style=function(de,Fe,Je){var vt=arguments.length;if(vt<3){if(typeof de!="string"){vt<2&&(Fe="");for(Je in de)this.style(Je,de[Je],Fe);return this}Je=""}function _t(){this.style.removeProperty(de)}function At(ar){return ar==null?_t:(ar+="",function(){var Ft=t(this).getComputedStyle(this,null).getPropertyValue(de),xr;return Ft!==ar&&(xr=Kl(Ft,ar),function(Gr){this.style.setProperty(de,xr(Gr),Je)})})}return dl(this,"style."+de,Fe,At)},Ho.styleTween=function(de,Fe,Je){arguments.length<3&&(Je="");function vt(_t,At){var ar=Fe.call(this,_t,At,t(this).getComputedStyle(this,null).getPropertyValue(de));return ar&&function(Ft){this.style.setProperty(de,ar(Ft),Je)}}return this.tween("style."+de,vt)},Ho.text=function(de){return dl(this,"text",de,ms)};function ms(de){return de==null&&(de=""),function(){this.textContent=de}}Ho.remove=function(){var de=this.namespace;return this.each("end.transition",function(){var Fe;this[de].count<2&&(Fe=this.parentNode)&&Fe.removeChild(this)})},Ho.ease=function(de){var Fe=this.id,Je=this.namespace;return arguments.length<1?this.node()[Je][Fe].ease:(typeof de!="function"&&(de=p.ease.apply(p,arguments)),Qe(this,function(vt){vt[Je][Fe].ease=de}))},Ho.delay=function(de){var Fe=this.id,Je=this.namespace;return arguments.length<1?this.node()[Je][Fe].delay:Qe(this,typeof de=="function"?function(vt,_t,At){vt[Je][Fe].delay=+de.call(vt,vt.__data__,_t,At)}:(de=+de,function(vt){vt[Je][Fe].delay=de}))},Ho.duration=function(de){var Fe=this.id,Je=this.namespace;return arguments.length<1?this.node()[Je][Fe].duration:Qe(this,typeof de=="function"?function(vt,_t,At){vt[Je][Fe].duration=Math.max(1,de.call(vt,vt.__data__,_t,At))}:(de=Math.max(1,de),function(vt){vt[Je][Fe].duration=de}))},Ho.each=function(de,Fe){var Je=this.id,vt=this.namespace;if(arguments.length<2){var _t=Tl,At=Is;try{Is=Je,Qe(this,function(ar,Ft,xr){Tl=ar[vt][Je],de.call(ar,ar.__data__,Ft,xr)})}finally{Tl=_t,Is=At}}else Qe(this,function(ar){var Ft=ar[vt][Je];(Ft.event||(Ft.event=p.dispatch("start","end","interrupt"))).on(de,Fe)});return this},Ho.transition=function(){for(var de=this.id,Fe=++ds,Je=this.namespace,vt=[],_t,At,ar,Ft,xr=0,Gr=this.length;xr<Gr;xr++){vt.push(_t=[]);for(var At=this[xr],Yr=0,Ei=At.length;Yr<Ei;Yr++)(ar=At[Yr])&&(Ft=ar[Je][de],ql(ar,Yr,Je,Fe,{time:Ft.time,ease:Ft.ease,delay:Ft.delay+Ft.duration,duration:Ft.duration})),_t.push(ar)}return bs(vt,Je,Fe)};function gs(de){return de==null?"__transition__":"__transition_"+de+"__"}function ql(de,Fe,Je,vt,_t){var At=de[Je]||(de[Je]={active:0,count:0}),ar=At[vt],Ft,xr,Gr,Yr,Ei;function xi(Di){var Hi=ar.delay;if(xr.t=Hi+Ft,Hi<=Di)return na(Di-Hi);xr.c=na}function na(Di){var Hi=At.active,ta=At[Hi];ta&&(ta.timer.c=null,ta.timer.t=NaN,--At.count,delete At[Hi],ta.event&&ta.event.interrupt.call(de,de.__data__,ta.index));for(var ya in At)if(+ya<vt){var da=At[ya];da.timer.c=null,da.timer.t=NaN,--At.count,delete At[ya]}xr.c=ua,Kn(function(){return xr.c&&ua(Di||1)&&(xr.c=null,xr.t=NaN),1},0,Ft),At.active=vt,ar.event&&ar.event.start.call(de,de.__data__,Fe),Ei=[],ar.tween.forEach(function(Oi,xn){(xn=xn.call(de,de.__data__,Fe))&&Ei.push(xn)}),Yr=ar.ease,Gr=ar.duration}function ua(Di){for(var Hi=Di/Gr,ta=Yr(Hi),ya=Ei.length;ya>0;)Ei[--ya].call(de,ta);if(Hi>=1)return ar.event&&ar.event.end.call(de,de.__data__,Fe),--At.count?delete At[vt]:delete de[Je],1}ar||(Ft=_t.time,xr=Kn(xi,0,Ft),ar=At[vt]={tween:new A,time:Ft,timer:xr,delay:_t.delay,duration:_t.duration,ease:_t.ease,index:Fe},_t=null,++At.count)}p.svg.axis=function(){var de=p.scale.linear(),Fe=uu,Je=6,vt=6,_t=3,At=[10],ar=null,Ft;function xr(Gr){Gr.each(function(){var Yr=p.select(this),Ei=this.__chart__||de,xi=this.__chart__=de.copy(),na=ar??(xi.ticks?xi.ticks.apply(xi,At):xi.domain()),ua=Ft??(xi.tickFormat?xi.tickFormat.apply(xi,At):F),Di=Yr.selectAll(".tick").data(na,xi),Hi=Di.enter().insert("g",".domain").attr("class","tick").style("opacity",Ye),ta=p.transition(Di.exit()).style("opacity",Ye).remove(),ya=p.transition(Di.order()).style("opacity",1),da=Math.max(Je,0)+_t,Oi,xn=hn(xi),mn=Yr.selectAll(".domain").data([0]),In=(mn.enter().append("path").attr("class","domain"),p.transition(mn));Hi.append("line"),Hi.append("text");var Yn=Hi.select("line"),mo=ya.select("line"),bo=Di.select("text").text(ua),vs=Hi.select("text"),To=ya.select("text"),cs=Fe==="top"||Fe==="left"?-1:1,Al,ml,Pl,Dn;if(Fe==="bottom"||Fe==="top"?(Oi=Su,Al="x",Pl="y",ml="x2",Dn="y2",bo.attr("dy",cs<0?"0em":".71em").style("text-anchor","middle"),In.attr("d","M"+xn[0]+","+cs*vt+"V0H"+xn[1]+"V"+cs*vt)):(Oi=Fl,Al="y",Pl="x",ml="y2",Dn="x2",bo.attr("dy",".32em").style("text-anchor",cs<0?"end":"start"),In.attr("d","M"+cs*vt+","+xn[0]+"H0V"+xn[1]+"H"+cs*vt)),Yn.attr(Dn,cs*Je),vs.attr(Pl,cs*da),mo.attr(ml,0).attr(Dn,cs*Je),To.attr(Al,0).attr(Pl,cs*da),xi.rangeBand){var zo=xi,ks=zo.rangeBand()/2;Ei=xi=function(Rs){return zo(Rs)+ks}}else Ei.rangeBand?Ei=xi:ta.call(Oi,xi,Ei);Hi.call(Oi,Ei,xi),ya.call(Oi,xi,xi)})}return xr.scale=function(Gr){return arguments.length?(de=Gr,xr):de},xr.orient=function(Gr){return arguments.length?(Fe=Gr in Uu?Gr+"":uu,xr):Fe},xr.ticks=function(){return arguments.length?(At=S(arguments),xr):At},xr.tickValues=function(Gr){return arguments.length?(ar=Gr,xr):ar},xr.tickFormat=function(Gr){return arguments.length?(Ft=Gr,xr):Ft},xr.tickSize=function(Gr){var Yr=arguments.length;return Yr?(Je=+Gr,vt=+arguments[Yr-1],xr):Je},xr.innerTickSize=function(Gr){return arguments.length?(Je=+Gr,xr):Je},xr.outerTickSize=function(Gr){return arguments.length?(vt=+Gr,xr):vt},xr.tickPadding=function(Gr){return arguments.length?(_t=+Gr,xr):_t},xr.tickSubdivide=function(){return arguments.length&&xr},xr};var uu="bottom",Uu={top:1,right:1,bottom:1,left:1};function Su(de,Fe,Je){de.attr("transform",function(vt){var _t=Fe(vt);return"translate("+(isFinite(_t)?_t:Je(vt))+",0)"})}function Fl(de,Fe,Je){de.attr("transform",function(vt){var _t=Fe(vt);return"translate(0,"+(isFinite(_t)?_t:Je(vt))+")"})}p.svg.brush=function(){var de=le(Yr,"brushstart","brush","brushend"),Fe=null,Je=null,vt=[0,0],_t=[0,0],At,ar,Ft=!0,xr=!0,Gr=dc[0];function Yr(Di){Di.each(function(){var Hi=p.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",ua).on("touchstart.brush",ua),ta=Hi.selectAll(".background").data([0]);ta.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),Hi.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ya=Hi.selectAll(".resize").data(Gr,F);ya.exit().remove(),ya.enter().append("g").attr("class",function(mn){return"resize "+mn}).style("cursor",function(mn){return yu[mn]}).append("rect").attr("x",function(mn){return/[ew]$/.test(mn)?-3:null}).attr("y",function(mn){return/^[ns]/.test(mn)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ya.style("display",Yr.empty()?"none":null);var da=p.transition(Hi),Oi=p.transition(ta),xn;Fe&&(xn=hn(Fe),Oi.attr("x",xn[0]).attr("width",xn[1]-xn[0]),xi(da)),Je&&(xn=hn(Je),Oi.attr("y",xn[0]).attr("height",xn[1]-xn[0]),na(da)),Ei(da)})}Yr.event=function(Di){Di.each(function(){var Hi=de.of(this,arguments),ta={x:vt,y:_t,i:At,j:ar},ya=this.__chart__||ta;this.__chart__=ta,Is?p.select(this).transition().each("start.brush",function(){At=ya.i,ar=ya.j,vt=ya.x,_t=ya.y,Hi({type:"brushstart"})}).tween("brush:brush",function(){var da=Zu(vt,ta.x),Oi=Zu(_t,ta.y);return At=ar=null,function(xn){vt=ta.x=da(xn),_t=ta.y=Oi(xn),Hi({type:"brush",mode:"resize"})}}).each("end.brush",function(){At=ta.i,ar=ta.j,Hi({type:"brush",mode:"resize"}),Hi({type:"brushend"})}):(Hi({type:"brushstart"}),Hi({type:"brush",mode:"resize"}),Hi({type:"brushend"}))})};function Ei(Di){Di.selectAll(".resize").attr("transform",function(Hi){return"translate("+vt[+/e$/.test(Hi)]+","+_t[+/^s/.test(Hi)]+")"})}function xi(Di){Di.select(".extent").attr("x",vt[0]),Di.selectAll(".extent,.n>rect,.s>rect").attr("width",vt[1]-vt[0])}function na(Di){Di.select(".extent").attr("y",_t[0]),Di.selectAll(".extent,.e>rect,.w>rect").attr("height",_t[1]-_t[0])}function ua(){var Di=this,Hi=p.select(p.event.target),ta=de.of(Di,arguments),ya=p.select(Di),da=Hi.datum(),Oi=!/^(n|s)$/.test(da)&&Fe,xn=!/^(e|w)$/.test(da)&&Je,mn=Hi.classed("extent"),In=Mr(Di),Yn,mo=p.mouse(Di),bo,vs=p.select(t(Di)).on("keydown.brush",Al).on("keyup.brush",ml);if(p.event.changedTouches?vs.on("touchmove.brush",Pl).on("touchend.brush",zo):vs.on("mousemove.brush",Pl).on("mouseup.brush",zo),ya.interrupt().selectAll("*").interrupt(),mn)mo[0]=vt[0]-mo[0],mo[1]=_t[0]-mo[1];else if(da){var To=+/w$/.test(da),cs=+/^n/.test(da);bo=[vt[1-To]-mo[0],_t[1-cs]-mo[1]],mo[0]=vt[To],mo[1]=_t[cs]}else p.event.altKey&&(Yn=mo.slice());ya.style("pointer-events","none").selectAll(".resize").style("display",null),p.select("body").style("cursor",Hi.style("cursor")),ta({type:"brushstart"}),Pl();function Al(){p.event.keyCode==32&&(mn||(Yn=null,mo[0]-=vt[1],mo[1]-=_t[1],mn=2),J())}function ml(){p.event.keyCode==32&&mn==2&&(mo[0]+=vt[1],mo[1]+=_t[1],mn=0,J())}function Pl(){var ks=p.mouse(Di),Rs=!1;bo&&(ks[0]+=bo[0],ks[1]+=bo[1]),mn||(p.event.altKey?(Yn||(Yn=[(vt[0]+vt[1])/2,(_t[0]+_t[1])/2]),mo[0]=vt[+(ks[0]<Yn[0])],mo[1]=_t[+(ks[1]<Yn[1])]):Yn=null),Oi&&Dn(ks,Fe,0)&&(xi(ya),Rs=!0),xn&&Dn(ks,Je,1)&&(na(ya),Rs=!0),Rs&&(Ei(ya),ta({type:"brush",mode:mn?"move":"resize"}))}function Dn(ks,Rs,Bl){var tu=hn(Rs),Ru=tu[0],Hl=tu[1],Tc=mo[Bl],rt=Bl?_t:vt,Yt=rt[1]-rt[0],hr,li;if(mn&&(Ru-=Tc,Hl-=Yt+Tc),hr=(Bl?xr:Ft)?Math.max(Ru,Math.min(Hl,ks[Bl])):ks[Bl],mn?li=(hr+=Tc)+Yt:(Yn&&(Tc=Math.max(Ru,Math.min(Hl,2*Yn[Bl]-hr))),Tc<hr?(li=hr,hr=Tc):li=Tc),rt[0]!=hr||rt[1]!=li)return Bl?ar=null:At=null,rt[0]=hr,rt[1]=li,!0}function zo(){Pl(),ya.style("pointer-events","all").selectAll(".resize").style("display",Yr.empty()?"none":null),p.select("body").style("cursor",null),vs.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),In(),ta({type:"brushend"})}}return Yr.x=function(Di){return arguments.length?(Fe=Di,Gr=dc[!Fe<<1|!Je],Yr):Fe},Yr.y=function(Di){return arguments.length?(Je=Di,Gr=dc[!Fe<<1|!Je],Yr):Je},Yr.clamp=function(Di){return arguments.length?(Fe&&Je?(Ft=!!Di[0],xr=!!Di[1]):Fe?Ft=!!Di:Je&&(xr=!!Di),Yr):Fe&&Je?[Ft,xr]:Fe?Ft:Je?xr:null},Yr.extent=function(Di){var Hi,ta,ya,da,Oi;return arguments.length?(Fe&&(Hi=Di[0],ta=Di[1],Je&&(Hi=Hi[0],ta=ta[0]),At=[Hi,ta],Fe.invert&&(Hi=Fe(Hi),ta=Fe(ta)),ta<Hi&&(Oi=Hi,Hi=ta,ta=Oi),(Hi!=vt[0]||ta!=vt[1])&&(vt=[Hi,ta])),Je&&(ya=Di[0],da=Di[1],Fe&&(ya=ya[1],da=da[1]),ar=[ya,da],Je.invert&&(ya=Je(ya),da=Je(da)),da<ya&&(Oi=ya,ya=da,da=Oi),(ya!=_t[0]||da!=_t[1])&&(_t=[ya,da])),Yr):(Fe&&(At?(Hi=At[0],ta=At[1]):(Hi=vt[0],ta=vt[1],Fe.invert&&(Hi=Fe.invert(Hi),ta=Fe.invert(ta)),ta<Hi&&(Oi=Hi,Hi=ta,ta=Oi))),Je&&(ar?(ya=ar[0],da=ar[1]):(ya=_t[0],da=_t[1],Je.invert&&(ya=Je.invert(ya),da=Je.invert(da)),da<ya&&(Oi=ya,ya=da,da=Oi))),Fe&&Je?[[Hi,ya],[ta,da]]:Fe?[Hi,ta]:Je&&[ya,da])},Yr.clear=function(){return Yr.empty()||(vt=[0,0],_t=[0,0],At=ar=null),Yr},Yr.empty=function(){return!!Fe&&vt[0]==vt[1]||!!Je&&_t[0]==_t[1]},p.rebind(Yr,de,"on")};var yu={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"],[]];p.text=ki(function(de){return de.responseText}),p.json=function(de,Fe){return Ni(de,"application/json",Ql,Fe)};function Ql(de){return JSON.parse(de.responseText)}p.html=function(de,Fe){return Ni(de,"text/html",eu,Fe)};function eu(de){var Fe=E.createRange();return Fe.selectNode(E.body),Fe.createContextualFragment(de.responseText)}p.xml=ki(function(de){return de.responseXML}),typeof H=="object"&&H.exports?H.exports=p:this.d3=p}).apply(self)}}),Qn=De({"node_modules/d3-time/dist/d3-time.js"(Y,H){(function(p,x){typeof Y=="object"&&typeof H<"u"?x(Y):(p=p||self,x(p.d3=p.d3||{}))})(Y,function(p){"use strict";var x=new Date,S=new Date;function E(fe,Be,Qe,at){function $e(It){return fe(It=arguments.length===0?new Date:new Date(+It)),It}return $e.floor=function(It){return fe(It=new Date(+It)),It},$e.ceil=function(It){return fe(It=new Date(It-1)),Be(It,1),fe(It),It},$e.round=function(It){var Pt=$e(It),Vt=$e.ceil(It);return It-Pt<Vt-It?Pt:Vt},$e.offset=function(It,Pt){return Be(It=new Date(+It),Pt==null?1:Math.floor(Pt)),It},$e.range=function(It,Pt,Vt){var Wt=[],Cr;if(It=$e.ceil(It),Vt=Vt==null?1:Math.floor(Vt),!(It<Pt)||!(Vt>0))return Wt;do Wt.push(Cr=new Date(+It)),Be(It,Vt),fe(It);while(Cr<It&&It<Pt);return Wt},$e.filter=function(It){return E(function(Pt){if(Pt>=Pt)for(;fe(Pt),!It(Pt);)Pt.setTime(Pt-1)},function(Pt,Vt){if(Pt>=Pt)if(Vt<0)for(;++Vt<=0;)for(;Be(Pt,-1),!It(Pt););else for(;--Vt>=0;)for(;Be(Pt,1),!It(Pt););})},Qe&&($e.count=function(It,Pt){return x.setTime(+It),S.setTime(+Pt),fe(x),fe(S),Math.floor(Qe(x,S))},$e.every=function(It){return It=Math.floor(It),!isFinite(It)||!(It>0)?null:It>1?$e.filter(at?function(Pt){return at(Pt)%It===0}:function(Pt){return $e.count(0,Pt)%It===0}):$e}),$e}var e=E(function(){},function(fe,Be){fe.setTime(+fe+Be)},function(fe,Be){return Be-fe});e.every=function(fe){return fe=Math.floor(fe),!isFinite(fe)||!(fe>0)?null:fe>1?E(function(Be){Be.setTime(Math.floor(Be/fe)*fe)},function(Be,Qe){Be.setTime(+Be+Qe*fe)},function(Be,Qe){return(Qe-Be)/fe}):e};var t=e.range,r=1e3,o=6e4,i=36e5,n=864e5,a=6048e5,s=E(function(fe){fe.setTime(fe-fe.getMilliseconds())},function(fe,Be){fe.setTime(+fe+Be*r)},function(fe,Be){return(Be-fe)/r},function(fe){return fe.getUTCSeconds()}),h=s.range,c=E(function(fe){fe.setTime(fe-fe.getMilliseconds()-fe.getSeconds()*r)},function(fe,Be){fe.setTime(+fe+Be*o)},function(fe,Be){return(Be-fe)/o},function(fe){return fe.getMinutes()}),m=c.range,d=E(function(fe){fe.setTime(fe-fe.getMilliseconds()-fe.getSeconds()*r-fe.getMinutes()*o)},function(fe,Be){fe.setTime(+fe+Be*i)},function(fe,Be){return(Be-fe)/i},function(fe){return fe.getHours()}),T=d.range,l=E(function(fe){fe.setHours(0,0,0,0)},function(fe,Be){fe.setDate(fe.getDate()+Be)},function(fe,Be){return(Be-fe-(Be.getTimezoneOffset()-fe.getTimezoneOffset())*o)/n},function(fe){return fe.getDate()-1}),_=l.range;function w(fe){return E(function(Be){Be.setDate(Be.getDate()-(Be.getDay()+7-fe)%7),Be.setHours(0,0,0,0)},function(Be,Qe){Be.setDate(Be.getDate()+Qe*7)},function(Be,Qe){return(Qe-Be-(Qe.getTimezoneOffset()-Be.getTimezoneOffset())*o)/a})}var A=w(0),M=w(1),g=w(2),b=w(3),v=w(4),u=w(5),y=w(6),f=A.range,R=M.range,L=g.range,z=b.range,F=v.range,N=u.range,B=y.range,I=E(function(fe){fe.setDate(1),fe.setHours(0,0,0,0)},function(fe,Be){fe.setMonth(fe.getMonth()+Be)},function(fe,Be){return Be.getMonth()-fe.getMonth()+(Be.getFullYear()-fe.getFullYear())*12},function(fe){return fe.getMonth()}),U=I.range,O=E(function(fe){fe.setMonth(0,1),fe.setHours(0,0,0,0)},function(fe,Be){fe.setFullYear(fe.getFullYear()+Be)},function(fe,Be){return Be.getFullYear()-fe.getFullYear()},function(fe){return fe.getFullYear()});O.every=function(fe){return!isFinite(fe=Math.floor(fe))||!(fe>0)?null:E(function(Be){Be.setFullYear(Math.floor(Be.getFullYear()/fe)*fe),Be.setMonth(0,1),Be.setHours(0,0,0,0)},function(Be,Qe){Be.setFullYear(Be.getFullYear()+Qe*fe)})};var X=O.range,J=E(function(fe){fe.setUTCSeconds(0,0)},function(fe,Be){fe.setTime(+fe+Be*o)},function(fe,Be){return(Be-fe)/o},function(fe){return fe.getUTCMinutes()}),se=J.range,le=E(function(fe){fe.setUTCMinutes(0,0,0)},function(fe,Be){fe.setTime(+fe+Be*i)},function(fe,Be){return(Be-fe)/i},function(fe){return fe.getUTCHours()}),ce=le.range,q=E(function(fe){fe.setUTCHours(0,0,0,0)},function(fe,Be){fe.setUTCDate(fe.getUTCDate()+Be)},function(fe,Be){return(Be-fe)/n},function(fe){return fe.getUTCDate()-1}),Z=q.range;function ee(fe){return E(function(Be){Be.setUTCDate(Be.getUTCDate()-(Be.getUTCDay()+7-fe)%7),Be.setUTCHours(0,0,0,0)},function(Be,Qe){Be.setUTCDate(Be.getUTCDate()+Qe*7)},function(Be,Qe){return(Qe-Be)/a})}var V=ee(0),oe=ee(1),ie=ee(2),j=ee(3),Q=ee(4),re=ee(5),ue=ee(6),_e=V.range,we=oe.range,Re=ie.range,ze=j.range,Xe=Q.range,tt=re.range,it=ue.range,et=E(function(fe){fe.setUTCDate(1),fe.setUTCHours(0,0,0,0)},function(fe,Be){fe.setUTCMonth(fe.getUTCMonth()+Be)},function(fe,Be){return Be.getUTCMonth()-fe.getUTCMonth()+(Be.getUTCFullYear()-fe.getUTCFullYear())*12},function(fe){return fe.getUTCMonth()}),nt=et.range,Ae=E(function(fe){fe.setUTCMonth(0,1),fe.setUTCHours(0,0,0,0)},function(fe,Be){fe.setUTCFullYear(fe.getUTCFullYear()+Be)},function(fe,Be){return Be.getUTCFullYear()-fe.getUTCFullYear()},function(fe){return fe.getUTCFullYear()});Ae.every=function(fe){return!isFinite(fe=Math.floor(fe))||!(fe>0)?null:E(function(Be){Be.setUTCFullYear(Math.floor(Be.getUTCFullYear()/fe)*fe),Be.setUTCMonth(0,1),Be.setUTCHours(0,0,0,0)},function(Be,Qe){Be.setUTCFullYear(Be.getUTCFullYear()+Qe*fe)})};var me=Ae.range;p.timeDay=l,p.timeDays=_,p.timeFriday=u,p.timeFridays=N,p.timeHour=d,p.timeHours=T,p.timeInterval=E,p.timeMillisecond=e,p.timeMilliseconds=t,p.timeMinute=c,p.timeMinutes=m,p.timeMonday=M,p.timeMondays=R,p.timeMonth=I,p.timeMonths=U,p.timeSaturday=y,p.timeSaturdays=B,p.timeSecond=s,p.timeSeconds=h,p.timeSunday=A,p.timeSundays=f,p.timeThursday=v,p.timeThursdays=F,p.timeTuesday=g,p.timeTuesdays=L,p.timeWednesday=b,p.timeWednesdays=z,p.timeWeek=A,p.timeWeeks=f,p.timeYear=O,p.timeYears=X,p.utcDay=q,p.utcDays=Z,p.utcFriday=re,p.utcFridays=tt,p.utcHour=le,p.utcHours=ce,p.utcMillisecond=e,p.utcMilliseconds=t,p.utcMinute=J,p.utcMinutes=se,p.utcMonday=oe,p.utcMondays=we,p.utcMonth=et,p.utcMonths=nt,p.utcSaturday=ue,p.utcSaturdays=it,p.utcSecond=s,p.utcSeconds=h,p.utcSunday=V,p.utcSundays=_e,p.utcThursday=Q,p.utcThursdays=Xe,p.utcTuesday=ie,p.utcTuesdays=Re,p.utcWednesday=j,p.utcWednesdays=ze,p.utcWeek=V,p.utcWeeks=_e,p.utcYear=Ae,p.utcYears=me,Object.defineProperty(p,"__esModule",{value:!0})})}}),Do=De({"node_modules/d3-time-format/dist/d3-time-format.js"(Y,H){(function(p,x){typeof Y=="object"&&typeof H<"u"?x(Y,Qn()):(p=p||self,x(p.d3=p.d3||{},p.d3))})(Y,function(p,x){"use strict";function S(Ne){if(0<=Ne.y&&Ne.y<100){var Ye=new Date(-1,Ne.m,Ne.d,Ne.H,Ne.M,Ne.S,Ne.L);return Ye.setFullYear(Ne.y),Ye}return new Date(Ne.y,Ne.m,Ne.d,Ne.H,Ne.M,Ne.S,Ne.L)}function E(Ne){if(0<=Ne.y&&Ne.y<100){var Ye=new Date(Date.UTC(-1,Ne.m,Ne.d,Ne.H,Ne.M,Ne.S,Ne.L));return Ye.setUTCFullYear(Ne.y),Ye}return new Date(Date.UTC(Ne.y,Ne.m,Ne.d,Ne.H,Ne.M,Ne.S,Ne.L))}function e(Ne,Ye,be){return{y:Ne,m:Ye,d:be,H:0,M:0,S:0,L:0}}function t(Ne){var Ye=Ne.dateTime,be=Ne.date,Ie=Ne.time,qe=Ne.periods,ke=Ne.days,Me=Ne.shortDays,Le=Ne.months,ut=Ne.shortMonths,lt=h(qe),gt=c(qe),kt=h(ke),nr=c(ke),ir=h(Me),tr=c(Me),Ir=h(Le),vi=c(Le),Vi=h(ut),Ui=c(ut),Ki={a:oa,A:ra,b:ca,B:xa,c:null,d:I,e:I,f:se,H:U,I:O,j:X,L:J,m:le,M:ce,p:ji,q:pn,Q:Pt,s:Vt,S:q,u:Z,U:ee,V,w:oe,W:ie,x:null,X:null,y:j,Y:Q,Z:re,"%":It},ea={a:_n,A:En,b:bt,B:st,c:null,d:ue,e:ue,f:Xe,H:_e,I:we,j:Re,L:ze,m:tt,M:it,p:Nr,q:Lr,Q:Pt,s:Vt,S:et,u:nt,U:Ae,V:me,w:fe,W:Be,x:null,X:null,y:Qe,Y:at,Z:$e,"%":It},Bi={a:Zt,A:Jt,b:Br,B:ri,c:ii,d:v,e:v,f:z,H:y,I:y,j:u,L,m:b,M:f,p:zt,q:g,Q:N,s:B,S:R,u:d,U:T,V:l,w:m,W:_,x:di,X:Wi,y:A,Y:w,Z:M,"%":F};Ki.x=_a(be,Ki),Ki.X=_a(Ie,Ki),Ki.c=_a(Ye,Ki),ea.x=_a(be,ea),ea.X=_a(Ie,ea),ea.c=_a(Ye,ea);function _a(br,Rr){return function(jr){var Wr=[],yt=-1,Xt=0,mr=br.length,Or,ki,Ni;for(jr instanceof Date||(jr=new Date(+jr));++yt<mr;)br.charCodeAt(yt)===37&&(Wr.push(br.slice(Xt,yt)),(ki=r[Or=br.charAt(++yt)])!=null?Or=br.charAt(++yt):ki=Or==="e"?" ":"0",(Ni=Rr[Or])&&(Or=Ni(jr,ki)),Wr.push(Or),Xt=yt+1);return Wr.push(br.slice(Xt,yt)),Wr.join("")}}function Ca(br,Rr){return function(jr){var Wr=e(1900,void 0,1),yt=Kt(Wr,br,jr+="",0),Xt,mr;if(yt!=jr.length)return null;if("Q"in Wr)return new Date(Wr.Q);if("s"in Wr)return new Date(Wr.s*1e3+("L"in Wr?Wr.L:0));if(Rr&&!("Z"in Wr)&&(Wr.Z=0),"p"in Wr&&(Wr.H=Wr.H%12+Wr.p*12),Wr.m===void 0&&(Wr.m="q"in Wr?Wr.q:0),"V"in Wr){if(Wr.V<1||Wr.V>53)return null;"w"in Wr||(Wr.w=1),"Z"in Wr?(Xt=E(e(Wr.y,0,1)),mr=Xt.getUTCDay(),Xt=mr>4||mr===0?x.utcMonday.ceil(Xt):x.utcMonday(Xt),Xt=x.utcDay.offset(Xt,(Wr.V-1)*7),Wr.y=Xt.getUTCFullYear(),Wr.m=Xt.getUTCMonth(),Wr.d=Xt.getUTCDate()+(Wr.w+6)%7):(Xt=S(e(Wr.y,0,1)),mr=Xt.getDay(),Xt=mr>4||mr===0?x.timeMonday.ceil(Xt):x.timeMonday(Xt),Xt=x.timeDay.offset(Xt,(Wr.V-1)*7),Wr.y=Xt.getFullYear(),Wr.m=Xt.getMonth(),Wr.d=Xt.getDate()+(Wr.w+6)%7)}else("W"in Wr||"U"in Wr)&&("w"in Wr||(Wr.w="u"in Wr?Wr.u%7:"W"in Wr?1:0),mr="Z"in Wr?E(e(Wr.y,0,1)).getUTCDay():S(e(Wr.y,0,1)).getDay(),Wr.m=0,Wr.d="W"in Wr?(Wr.w+6)%7+Wr.W*7-(mr+5)%7:Wr.w+Wr.U*7-(mr+6)%7);return"Z"in Wr?(Wr.H+=Wr.Z/100|0,Wr.M+=Wr.Z%100,E(Wr)):S(Wr)}}function Kt(br,Rr,jr,Wr){for(var yt=0,Xt=Rr.length,mr=jr.length,Or,ki;yt<Xt;){if(Wr>=mr)return-1;if(Or=Rr.charCodeAt(yt++),Or===37){if(Or=Rr.charAt(yt++),ki=Bi[Or in r?Rr.charAt(yt++):Or],!ki||(Wr=ki(br,jr,Wr))<0)return-1}else if(Or!=jr.charCodeAt(Wr++))return-1}return Wr}function zt(br,Rr,jr){var Wr=lt.exec(Rr.slice(jr));return Wr?(br.p=gt[Wr[0].toLowerCase()],jr+Wr[0].length):-1}function Zt(br,Rr,jr){var Wr=ir.exec(Rr.slice(jr));return Wr?(br.w=tr[Wr[0].toLowerCase()],jr+Wr[0].length):-1}function Jt(br,Rr,jr){var Wr=kt.exec(Rr.slice(jr));return Wr?(br.w=nr[Wr[0].toLowerCase()],jr+Wr[0].length):-1}function Br(br,Rr,jr){var Wr=Vi.exec(Rr.slice(jr));return Wr?(br.m=Ui[Wr[0].toLowerCase()],jr+Wr[0].length):-1}function ri(br,Rr,jr){var Wr=Ir.exec(Rr.slice(jr));return Wr?(br.m=vi[Wr[0].toLowerCase()],jr+Wr[0].length):-1}function ii(br,Rr,jr){return Kt(br,Ye,Rr,jr)}function di(br,Rr,jr){return Kt(br,be,Rr,jr)}function Wi(br,Rr,jr){return Kt(br,Ie,Rr,jr)}function oa(br){return Me[br.getDay()]}function ra(br){return ke[br.getDay()]}function ca(br){return ut[br.getMonth()]}function xa(br){return Le[br.getMonth()]}function ji(br){return qe[+(br.getHours()>=12)]}function pn(br){return 1+~~(br.getMonth()/3)}function _n(br){return Me[br.getUTCDay()]}function En(br){return ke[br.getUTCDay()]}function bt(br){return ut[br.getUTCMonth()]}function st(br){return Le[br.getUTCMonth()]}function Nr(br){return qe[+(br.getUTCHours()>=12)]}function Lr(br){return 1+~~(br.getUTCMonth()/3)}return{format:function(br){var Rr=_a(br+="",Ki);return Rr.toString=function(){return br},Rr},parse:function(br){var Rr=Ca(br+="",!1);return Rr.toString=function(){return br},Rr},utcFormat:function(br){var Rr=_a(br+="",ea);return Rr.toString=function(){return br},Rr},utcParse:function(br){var Rr=Ca(br+="",!0);return Rr.toString=function(){return br},Rr}}}var r={"-":"",_:" ",0:"0"},o=/^\s*\d+/,i=/^%/,n=/[\\^$*+?|[\]().{}]/g;function a(Ne,Ye,be){var Ie=Ne<0?"-":"",qe=(Ie?-Ne:Ne)+"",ke=qe.length;return Ie+(ke<be?new Array(be-ke+1).join(Ye)+qe:qe)}function s(Ne){return Ne.replace(n,"\\$&")}function h(Ne){return new RegExp("^(?:"+Ne.map(s).join("|")+")","i")}function c(Ne){for(var Ye={},be=-1,Ie=Ne.length;++be<Ie;)Ye[Ne[be].toLowerCase()]=be;return Ye}function m(Ne,Ye,be){var Ie=o.exec(Ye.slice(be,be+1));return Ie?(Ne.w=+Ie[0],be+Ie[0].length):-1}function d(Ne,Ye,be){var Ie=o.exec(Ye.slice(be,be+1));return Ie?(Ne.u=+Ie[0],be+Ie[0].length):-1}function T(Ne,Ye,be){var Ie=o.exec(Ye.slice(be,be+2));return Ie?(Ne.U=+Ie[0],be+Ie[0].length):-1}function l(Ne,Ye,be){var Ie=o.exec(Ye.slice(be,be+2));return Ie?(Ne.V=+Ie[0],be+Ie[0].length):-1}function _(Ne,Ye,be){var Ie=o.exec(Ye.slice(be,be+2));return Ie?(Ne.W=+Ie[0],be+Ie[0].length):-1}function w(Ne,Ye,be){var Ie=o.exec(Ye.slice(be,be+4));return Ie?(Ne.y=+Ie[0],be+Ie[0].length):-1}function A(Ne,Ye,be){var Ie=o.exec(Ye.slice(be,be+2));return Ie?(Ne.y=+Ie[0]+(+Ie[0]>68?1900:2e3),be+Ie[0].length):-1}function M(Ne,Ye,be){var Ie=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(Ye.slice(be,be+6));return Ie?(Ne.Z=Ie[1]?0:-(Ie[2]+(Ie[3]||"00")),be+Ie[0].length):-1}function g(Ne,Ye,be){var Ie=o.exec(Ye.slice(be,be+1));return Ie?(Ne.q=Ie[0]*3-3,be+Ie[0].length):-1}function b(Ne,Ye,be){var Ie=o.exec(Ye.slice(be,be+2));return Ie?(Ne.m=Ie[0]-1,be+Ie[0].length):-1}function v(Ne,Ye,be){var Ie=o.exec(Ye.slice(be,be+2));return Ie?(Ne.d=+Ie[0],be+Ie[0].length):-1}function u(Ne,Ye,be){var Ie=o.exec(Ye.slice(be,be+3));return Ie?(Ne.m=0,Ne.d=+Ie[0],be+Ie[0].length):-1}function y(Ne,Ye,be){var Ie=o.exec(Ye.slice(be,be+2));return Ie?(Ne.H=+Ie[0],be+Ie[0].length):-1}function f(Ne,Ye,be){var Ie=o.exec(Ye.slice(be,be+2));return Ie?(Ne.M=+Ie[0],be+Ie[0].length):-1}function R(Ne,Ye,be){var Ie=o.exec(Ye.slice(be,be+2));return Ie?(Ne.S=+Ie[0],be+Ie[0].length):-1}function L(Ne,Ye,be){var Ie=o.exec(Ye.slice(be,be+3));return Ie?(Ne.L=+Ie[0],be+Ie[0].length):-1}function z(Ne,Ye,be){var Ie=o.exec(Ye.slice(be,be+6));return Ie?(Ne.L=Math.floor(Ie[0]/1e3),be+Ie[0].length):-1}function F(Ne,Ye,be){var Ie=i.exec(Ye.slice(be,be+1));return Ie?be+Ie[0].length:-1}function N(Ne,Ye,be){var Ie=o.exec(Ye.slice(be));return Ie?(Ne.Q=+Ie[0],be+Ie[0].length):-1}function B(Ne,Ye,be){var Ie=o.exec(Ye.slice(be));return Ie?(Ne.s=+Ie[0],be+Ie[0].length):-1}function I(Ne,Ye){return a(Ne.getDate(),Ye,2)}function U(Ne,Ye){return a(Ne.getHours(),Ye,2)}function O(Ne,Ye){return a(Ne.getHours()%12||12,Ye,2)}function X(Ne,Ye){return a(1+x.timeDay.count(x.timeYear(Ne),Ne),Ye,3)}function J(Ne,Ye){return a(Ne.getMilliseconds(),Ye,3)}function se(Ne,Ye){return J(Ne,Ye)+"000"}function le(Ne,Ye){return a(Ne.getMonth()+1,Ye,2)}function ce(Ne,Ye){return a(Ne.getMinutes(),Ye,2)}function q(Ne,Ye){return a(Ne.getSeconds(),Ye,2)}function Z(Ne){var Ye=Ne.getDay();return Ye===0?7:Ye}function ee(Ne,Ye){return a(x.timeSunday.count(x.timeYear(Ne)-1,Ne),Ye,2)}function V(Ne,Ye){var be=Ne.getDay();return Ne=be>=4||be===0?x.timeThursday(Ne):x.timeThursday.ceil(Ne),a(x.timeThursday.count(x.timeYear(Ne),Ne)+(x.timeYear(Ne).getDay()===4),Ye,2)}function oe(Ne){return Ne.getDay()}function ie(Ne,Ye){return a(x.timeMonday.count(x.timeYear(Ne)-1,Ne),Ye,2)}function j(Ne,Ye){return a(Ne.getFullYear()%100,Ye,2)}function Q(Ne,Ye){return a(Ne.getFullYear()%1e4,Ye,4)}function re(Ne){var Ye=Ne.getTimezoneOffset();return(Ye>0?"-":(Ye*=-1,"+"))+a(Ye/60|0,"0",2)+a(Ye%60,"0",2)}function ue(Ne,Ye){return a(Ne.getUTCDate(),Ye,2)}function _e(Ne,Ye){return a(Ne.getUTCHours(),Ye,2)}function we(Ne,Ye){return a(Ne.getUTCHours()%12||12,Ye,2)}function Re(Ne,Ye){return a(1+x.utcDay.count(x.utcYear(Ne),Ne),Ye,3)}function ze(Ne,Ye){return a(Ne.getUTCMilliseconds(),Ye,3)}function Xe(Ne,Ye){return ze(Ne,Ye)+"000"}function tt(Ne,Ye){return a(Ne.getUTCMonth()+1,Ye,2)}function it(Ne,Ye){return a(Ne.getUTCMinutes(),Ye,2)}function et(Ne,Ye){return a(Ne.getUTCSeconds(),Ye,2)}function nt(Ne){var Ye=Ne.getUTCDay();return Ye===0?7:Ye}function Ae(Ne,Ye){return a(x.utcSunday.count(x.utcYear(Ne)-1,Ne),Ye,2)}function me(Ne,Ye){var be=Ne.getUTCDay();return Ne=be>=4||be===0?x.utcThursday(Ne):x.utcThursday.ceil(Ne),a(x.utcThursday.count(x.utcYear(Ne),Ne)+(x.utcYear(Ne).getUTCDay()===4),Ye,2)}function fe(Ne){return Ne.getUTCDay()}function Be(Ne,Ye){return a(x.utcMonday.count(x.utcYear(Ne)-1,Ne),Ye,2)}function Qe(Ne,Ye){return a(Ne.getUTCFullYear()%100,Ye,2)}function at(Ne,Ye){return a(Ne.getUTCFullYear()%1e4,Ye,4)}function $e(){return"+0000"}function It(){return"%"}function Pt(Ne){return+Ne}function Vt(Ne){return Math.floor(+Ne/1e3)}var Wt;Cr({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 Cr(Ne){return Wt=t(Ne),p.timeFormat=Wt.format,p.timeParse=Wt.parse,p.utcFormat=Wt.utcFormat,p.utcParse=Wt.utcParse,Wt}var yr="%Y-%m-%dT%H:%M:%S.%LZ";function qr(Ne){return Ne.toISOString()}var Mr=Date.prototype.toISOString?qr:p.utcFormat(yr);function Dr(Ne){var Ye=new Date(Ne);return isNaN(Ye)?null:Ye}var xt=+new Date("2000-01-01T00:00:00.000Z")?Dr:p.utcParse(yr);p.isoFormat=Mr,p.isoParse=xt,p.timeFormatDefaultLocale=Cr,p.timeFormatLocale=t,Object.defineProperty(p,"__esModule",{value:!0})})}}),Tn=De({"node_modules/d3-format/dist/d3-format.js"(Y,H){(function(p,x){typeof Y=="object"&&typeof H<"u"?x(Y):(p=typeof globalThis<"u"?globalThis:p||self,x(p.d3=p.d3||{}))})(Y,function(p){"use strict";function x(b){return Math.abs(b=Math.round(b))>=1e21?b.toLocaleString("en").replace(/,/g,""):b.toString(10)}function S(b,v){if((u=(b=v?b.toExponential(v-1):b.toExponential()).indexOf("e"))<0)return null;var u,y=b.slice(0,u);return[y.length>1?y[0]+y.slice(2):y,+b.slice(u+1)]}function E(b){return b=S(Math.abs(b)),b?b[1]:NaN}function e(b,v){return function(u,y){for(var f=u.length,R=[],L=0,z=b[0],F=0;f>0&&z>0&&(F+z+1>y&&(z=Math.max(1,y-F)),R.push(u.substring(f-=z,f+z)),!((F+=z+1)>y));)z=b[L=(L+1)%b.length];return R.reverse().join(v)}}function t(b){return function(v){return v.replace(/[0-9]/g,function(u){return b[+u]})}}var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(b){if(!(v=r.exec(b)))throw new Error("invalid format: "+b);var v;return new i({fill:v[1],align:v[2],sign:v[3],symbol:v[4],zero:v[5],width:v[6],comma:v[7],precision:v[8]&&v[8].slice(1),trim:v[9],type:v[10]})}o.prototype=i.prototype;function i(b){this.fill=b.fill===void 0?" ":b.fill+"",this.align=b.align===void 0?">":b.align+"",this.sign=b.sign===void 0?"-":b.sign+"",this.symbol=b.symbol===void 0?"":b.symbol+"",this.zero=!!b.zero,this.width=b.width===void 0?void 0:+b.width,this.comma=!!b.comma,this.precision=b.precision===void 0?void 0:+b.precision,this.trim=!!b.trim,this.type=b.type===void 0?"":b.type+""}i.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 n(b){e:for(var v=b.length,u=1,y=-1,f;u<v;++u)switch(b[u]){case".":y=f=u;break;case"0":y===0&&(y=u),f=u;break;default:if(!+b[u])break e;y>0&&(y=0);break}return y>0?b.slice(0,y)+b.slice(f+1):b}var a;function s(b,v){var u=S(b,v);if(!u)return b+"";var y=u[0],f=u[1],R=f-(a=Math.max(-8,Math.min(8,Math.floor(f/3)))*3)+1,L=y.length;return R===L?y:R>L?y+new Array(R-L+1).join("0"):R>0?y.slice(0,R)+"."+y.slice(R):"0."+new Array(1-R).join("0")+S(b,Math.max(0,v+R-1))[0]}function h(b,v){var u=S(b,v);if(!u)return b+"";var y=u[0],f=u[1];return f<0?"0."+new Array(-f).join("0")+y:y.length>f+1?y.slice(0,f+1)+"."+y.slice(f+1):y+new Array(f-y.length+2).join("0")}var c={"%":function(b,v){return(b*100).toFixed(v)},b:function(b){return Math.round(b).toString(2)},c:function(b){return b+""},d:x,e:function(b,v){return b.toExponential(v)},f:function(b,v){return b.toFixed(v)},g:function(b,v){return b.toPrecision(v)},o:function(b){return Math.round(b).toString(8)},p:function(b,v){return h(b*100,v)},r:h,s,X:function(b){return Math.round(b).toString(16).toUpperCase()},x:function(b){return Math.round(b).toString(16)}};function m(b){return b}var d=Array.prototype.map,T=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function l(b){var v=b.grouping===void 0||b.thousands===void 0?m:e(d.call(b.grouping,Number),b.thousands+""),u=b.currency===void 0?"":b.currency[0]+"",y=b.currency===void 0?"":b.currency[1]+"",f=b.decimal===void 0?".":b.decimal+"",R=b.numerals===void 0?m:t(d.call(b.numerals,String)),L=b.percent===void 0?"%":b.percent+"",z=b.minus===void 0?"-":b.minus+"",F=b.nan===void 0?"NaN":b.nan+"";function N(I){I=o(I);var U=I.fill,O=I.align,X=I.sign,J=I.symbol,se=I.zero,le=I.width,ce=I.comma,q=I.precision,Z=I.trim,ee=I.type;ee==="n"?(ce=!0,ee="g"):c[ee]||(q===void 0&&(q=12),Z=!0,ee="g"),(se||U==="0"&&O==="=")&&(se=!0,U="0",O="=");var V=J==="$"?u:J==="#"&&/[boxX]/.test(ee)?"0"+ee.toLowerCase():"",oe=J==="$"?y:/[%p]/.test(ee)?L:"",ie=c[ee],j=/[defgprs%]/.test(ee);q=q===void 0?6:/[gprs]/.test(ee)?Math.max(1,Math.min(21,q)):Math.max(0,Math.min(20,q));function Q(re){var ue=V,_e=oe,we,Re,ze;if(ee==="c")_e=ie(re)+_e,re="";else{re=+re;var Xe=re<0||1/re<0;if(re=isNaN(re)?F:ie(Math.abs(re),q),Z&&(re=n(re)),Xe&&+re==0&&X!=="+"&&(Xe=!1),ue=(Xe?X==="("?X:z:X==="-"||X==="("?"":X)+ue,_e=(ee==="s"?T[8+a/3]:"")+_e+(Xe&&X==="("?")":""),j){for(we=-1,Re=re.length;++we<Re;)if(ze=re.charCodeAt(we),48>ze||ze>57){_e=(ze===46?f+re.slice(we+1):re.slice(we))+_e,re=re.slice(0,we);break}}}ce&&!se&&(re=v(re,1/0));var tt=ue.length+re.length+_e.length,it=tt<le?new Array(le-tt+1).join(U):"";switch(ce&&se&&(re=v(it+re,it.length?le-_e.length:1/0),it=""),O){case"<":re=ue+re+_e+it;break;case"=":re=ue+it+re+_e;break;case"^":re=it.slice(0,tt=it.length>>1)+ue+re+_e+it.slice(tt);break;default:re=it+ue+re+_e;break}return R(re)}return Q.toString=function(){return I+""},Q}function B(I,U){var O=N((I=o(I),I.type="f",I)),X=Math.max(-8,Math.min(8,Math.floor(E(U)/3)))*3,J=Math.pow(10,-X),se=T[8+X/3];return function(le){return O(J*le)+se}}return{format:N,formatPrefix:B}}var _;w({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function w(b){return _=l(b),p.format=_.format,p.formatPrefix=_.formatPrefix,_}function A(b){return Math.max(0,-E(Math.abs(b)))}function M(b,v){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(E(v)/3)))*3-E(Math.abs(b)))}function g(b,v){return b=Math.abs(b),v=Math.abs(v)-b,Math.max(0,E(v)-E(b))+1}p.FormatSpecifier=i,p.formatDefaultLocale=w,p.formatLocale=l,p.formatSpecifier=o,p.precisionFixed=A,p.precisionPrefix=M,p.precisionRound=g,Object.defineProperty(p,"__esModule",{value:!0})})}}),lo=De({"node_modules/is-string-blank/index.js"(Y,H){"use strict";H.exports=function(p){for(var x=p.length,S,E=0;E<x;E++)if(S=p.charCodeAt(E),(S<9||S>13)&&S!==32&&S!==133&&S!==160&&S!==5760&&S!==6158&&(S<8192||S>8205)&&S!==8232&&S!==8233&&S!==8239&&S!==8287&&S!==8288&&S!==12288&&S!==65279)return!1;return!0}}}),vn=De({"node_modules/fast-isnumeric/index.js"(Y,H){"use strict";var p=lo();H.exports=function(x){var S=typeof x;if(S==="string"){var E=x;if(x=+x,x===0&&p(E))return!1}else if(S!=="number")return!1;return x-x<1}}}),zn=De({"src/constants/numerical.js"(Y,H){"use strict";H.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"}}}),zl=De({"node_modules/base64-arraybuffer/dist/base64-arraybuffer.umd.js"(Y,H){(function(p,x){typeof Y=="object"&&typeof H<"u"?x(Y):(p=typeof globalThis<"u"?globalThis:p||self,x(p["base64-arraybuffer"]={}))})(Y,function(p){"use strict";for(var x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=typeof Uint8Array>"u"?[]:new Uint8Array(256),E=0;E<x.length;E++)S[x.charCodeAt(E)]=E;var e=function(r){var o=new Uint8Array(r),i,n=o.length,a="";for(i=0;i<n;i+=3)a+=x[o[i]>>2],a+=x[(o[i]&3)<<4|o[i+1]>>4],a+=x[(o[i+1]&15)<<2|o[i+2]>>6],a+=x[o[i+2]&63];return n%3===2?a=a.substring(0,a.length-1)+"=":n%3===1&&(a=a.substring(0,a.length-2)+"=="),a},t=function(r){var o=r.length*.75,i=r.length,n,a=0,s,h,c,m;r[r.length-1]==="="&&(o--,r[r.length-2]==="="&&o--);var d=new ArrayBuffer(o),T=new Uint8Array(d);for(n=0;n<i;n+=4)s=S[r.charCodeAt(n)],h=S[r.charCodeAt(n+1)],c=S[r.charCodeAt(n+2)],m=S[r.charCodeAt(n+3)],T[a++]=s<<2|h>>4,T[a++]=(h&15)<<4|c>>2,T[a++]=(c&3)<<6|m&63;return d};p.decode=t,p.encode=e,Object.defineProperty(p,"__esModule",{value:!0})})}}),fu=De({"src/lib/is_plain_object.js"(Y,H){"use strict";H.exports=function(x){return window&&window.process&&window.process.versions?Object.prototype.toString.call(x)==="[object Object]":Object.prototype.toString.call(x)==="[object Object]"&&Object.getPrototypeOf(x).hasOwnProperty("hasOwnProperty")}}}),vl=De({"src/lib/array.js"(Y){"use strict";var H=zl().decode,p=fu(),x=Array.isArray,S=ArrayBuffer,E=DataView;function e(s){return S.isView(s)&&!(s instanceof E)}Y.isTypedArray=e;function t(s){return x(s)||e(s)}Y.isArrayOrTypedArray=t;function r(s){return!t(s[0])}Y.isArray1D=r,Y.ensureArray=function(s,h){return x(s)||(s=[]),s.length=h,s};var o={u1c:typeof Uint8ClampedArray>"u"?void 0:Uint8ClampedArray,i1:typeof Int8Array>"u"?void 0:Int8Array,u1:typeof Uint8Array>"u"?void 0:Uint8Array,i2:typeof Int16Array>"u"?void 0:Int16Array,u2:typeof Uint16Array>"u"?void 0:Uint16Array,i4:typeof Int32Array>"u"?void 0:Int32Array,u4:typeof Uint32Array>"u"?void 0:Uint32Array,f4:typeof Float32Array>"u"?void 0:Float32Array,f8:typeof Float64Array>"u"?void 0:Float64Array};o.uint8c=o.u1c,o.uint8=o.u1,o.int8=o.i1,o.uint16=o.u2,o.int16=o.i2,o.uint32=o.u4,o.int32=o.i4,o.float32=o.f4,o.float64=o.f8;function i(s){return s.constructor===ArrayBuffer}Y.isArrayBuffer=i,Y.decodeTypedArraySpec=function(s){var h=[],c=n(s),m=c.dtype,d=o[m];if(!d)throw new Error('Error in dtype: "'+m+'"');var T=d.BYTES_PER_ELEMENT,l=c.bdata;i(l)||(l=H(l));var _=c.shape===void 0?[l.byteLength/T]:(""+c.shape).split(",");_.reverse();var w=_.length,A,M,g=+_[0],b=T*g,v=0;if(w===1)h=new d(l);else if(w===2)for(A=+_[1],M=0;M<A;M++)h[M]=new d(l,v,g),v+=b;else if(w===3){A=+_[1];for(var u=+_[2],y=0;y<u;y++)for(h[y]=[],M=0;M<A;M++)h[y][M]=new d(l,v,g),v+=b}else throw new Error("ndim: "+w+'is not supported with the shape:"'+c.shape+'"');return h.bdata=c.bdata,h.dtype=c.dtype,h.shape=_.reverse().join(","),s._inputArray=h,h},Y.isTypedArraySpec=function(s){return p(s)&&s.hasOwnProperty("dtype")&&typeof s.dtype=="string"&&s.hasOwnProperty("bdata")&&(typeof s.bdata=="string"||i(s.bdata))&&(s.shape===void 0||s.hasOwnProperty("shape")&&(typeof s.shape=="string"||typeof s.shape=="number"))};function n(s){return{bdata:s.bdata,dtype:s.dtype,shape:s.shape}}Y.concat=function(){var s=[],h=!0,c=0,m,d,T,l,_,w,A,M;for(T=0;T<arguments.length;T++)l=arguments[T],w=l.length,w&&(d?s.push(l):(d=l,_=w),x(l)?m=!1:(h=!1,c?m!==l.constructor&&(m=!1):m=l.constructor),c+=w);if(!c)return[];if(!s.length)return d;if(h)return d.concat.apply(d,s);if(m){for(A=new m(c),A.set(d),T=0;T<s.length;T++)l=s[T],A.set(l,_),_+=l.length;return A}for(A=new Array(c),M=0;M<d.length;M++)A[M]=d[M];for(T=0;T<s.length;T++){for(l=s[T],M=0;M<l.length;M++)A[_+M]=l[M];_+=M}return A},Y.maxRowLength=function(s){return a(s,Math.max,0)},Y.minRowLength=function(s){return a(s,Math.min,1/0)};function a(s,h,c){if(t(s))if(t(s[0])){for(var m=c,d=0;d<s.length;d++)m=h(m,s[d].length);return m}else return s.length;return 0}}}),bu=De({"src/lib/nested_property.js"(Y,H){"use strict";var p=vn(),x=vl().isArrayOrTypedArray;H.exports=function(s,h){if(p(h))h=String(h);else if(typeof h!="string"||h.slice(-4)==="[-1]")throw"bad property string";var c=h.split("."),m,d,T,l;for(l=0;l<c.length;l++)if(String(c[l]).slice(0,2)==="__")throw"bad property string";for(l=0;l<c.length;){if(m=String(c[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),m){if(m[1])c[l]=m[1];else if(l===0)c.splice(0,1);else throw"bad property string";for(d=m[2].slice(1,-1).split("]["),T=0;T<d.length;T++)l++,c.splice(l,0,Number(d[T]))}l++}return typeof s!="object"?n(s,h,c):{set:t(s,c,h),get:S(s,c),astr:h,parts:c,obj:s}};function S(a,s){return function(h){var c=a,m,d,T,l,_;for(l=0;l<s.length-1;l++){if(m=s[l],m===-1){for(d=!0,T=[],_=0;_<c.length;_++)T[_]=S(c[_],s.slice(l+1))(h),T[_]!==T[0]&&(d=!1);return d?T[0]:T}if(typeof m=="number"&&!x(c)||(c=c[m],typeof c!="object"||c===null))return}if(!(typeof c!="object"||c===null)&&(T=c[s[l]],!(!h&&T===null)))return T}}var E=/(^|\.)args\[/;function e(a,s){return a===void 0||a===null&&!s.match(E)}function t(a,s,h){return function(c){var m=a,d="",T=[[a,d]],l=e(c,h),_,w;for(w=0;w<s.length-1;w++){if(_=s[w],typeof _=="number"&&!x(m))throw"array index but container is not an array";if(_===-1){if(l=!o(m,s.slice(w+1),c,h),l)break;return}if(!i(m,_,s[w+1],l))break;if(m=m[_],typeof m!="object"||m===null)throw"container is not an object";d=r(d,_),T.push([m,d])}if(l){if(w===s.length-1&&(delete m[s[w]],Array.isArray(m)&&+s[w]===m.length-1))for(;m.length&&m[m.length-1]===void 0;)m.pop()}else m[s[w]]=c}}function r(a,s){var h=s;return p(s)?h="["+s+"]":a&&(h="."+s),a+h}function o(a,s,h,c){var m=x(h),d=!0,T=h,l=c.replace("-1",0),_=m?!1:e(h,l),w=s[0],A;for(A=0;A<a.length;A++)l=c.replace("-1",A),m&&(T=h[A%h.length],_=e(T,l)),_&&(d=!1),i(a,A,w,_)&&t(a[A],s,c.replace("-1",A))(T);return d}function i(a,s,h,c){if(a[s]===void 0){if(c)return!1;typeof h=="number"?a[s]=[]:a[s]={}}return!0}function n(a,s,h){return{set:function(){throw"bad container"},get:function(){},astr:s,parts:h,obj:a}}}}),Tf=De({"src/lib/keyed_container.js"(Y,H){"use strict";var p=bu(),x=/^\w*$/,S=0,E=1,e=2,t=3,r=4;H.exports=function(i,n,a,s){a=a||"name",s=s||"value";var h,c,m,d={};n&&n.length?(m=p(i,n),c=m.get()):c=i,n=n||"";var T={};if(c)for(h=0;h<c.length;h++)T[c[h][a]]=h;var l=x.test(s),_={set:function(w,A){var M=A===null?r:S;if(!c){if(!m||M===r)return;c=[],m.set(c)}var g=T[w];if(g===void 0){if(M===r)return;M=M|t,g=c.length,T[w]=g}else A!==(l?c[g][s]:p(c[g],s).get())&&(M=M|e);var b=c[g]=c[g]||{};return b[a]=w,l?b[s]=A:p(b,s).set(A),A!==null&&(M=M&~r),d[g]=d[g]|M,_},get:function(w){if(c){var A=T[w];if(A!==void 0)return l?c[A][s]:p(c[A],s).get()}},rename:function(w,A){var M=T[w];return M===void 0||(d[M]=d[M]|E,T[A]=M,delete T[w],c[M][a]=A),_},remove:function(w){var A=T[w];if(A===void 0)return _;var M=c[A];if(Object.keys(M).length>2)return d[A]=d[A]|e,_.set(w,null);if(l){for(h=A;h<c.length;h++)d[h]=d[h]|t;for(h=A;h<c.length;h++)T[c[h][a]]--;c.splice(A,1),delete T[w]}else p(M,s).set(null),d[A]=d[A]|e|r;return _},constructUpdate:function(){for(var w,A,M={},g=Object.keys(d),b=0;b<g.length;b++)A=g[b],w=n+"["+A+"]",c[A]?(d[A]&E&&(M[w+"."+a]=c[A][a]),d[A]&e&&(l?M[w+"."+s]=d[A]&r?null:c[A][s]:M[w+"."+s]=d[A]&r?null:p(c[A],s).get())):M[w]=null;return M}};return _}}}),Hc=De({"src/lib/relative_attr.js"(Y,H){"use strict";var p=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,x=/^[^\.\[\]]+$/;H.exports=function(S,E){for(;E;){var e=S.match(p);if(e)S=e[1];else if(S.match(x))S="";else throw new Error("bad relativeAttr call:"+[S,E]);if(E.charAt(0)==="^")E=E.slice(1);else break}return S&&E.charAt(0)!=="["?S+"."+E:S+E}}}),Ac=De({"src/lib/to_log_range.js"(Y,H){"use strict";var p=vn();H.exports=function(S,E){if(S>0)return Math.log(S)/Math.LN10;var e=Math.log(Math.min(E[0],E[1]))/Math.LN10;return p(e)||(e=Math.log(Math.max(E[0],E[1]))/Math.LN10-6),e}}}),af=De({"src/lib/relink_private.js"(Y,H){"use strict";var p=vl().isArrayOrTypedArray,x=fu();H.exports=function S(E,e){for(var t in e){var r=e[t],o=E[t];if(o!==r)if(t.charAt(0)==="_"||typeof r=="function"){if(t in E)continue;E[t]=r}else if(p(r)&&p(o)&&x(r[0])){if(t==="customdata"||t==="ids")continue;for(var i=Math.min(r.length,o.length),n=0;n<i;n++)o[n]!==r[n]&&x(r[n])&&x(o[n])&&S(o[n],r[n])}else x(r)&&x(o)&&(S(o,r),Object.keys(o).length||delete E[t])}}}}),gf=De({"src/lib/mod.js"(Y,H){"use strict";function p(S,E){var e=S%E;return e<0?e+E:e}function x(S,E){return Math.abs(S)>E/2?S-Math.round(S/E)*E:S}H.exports={mod:p,modHalf:x}}}),wu=De({"node_modules/tinycolor2/tinycolor.js"(Y,H){(function(p){var x=/^\s+/,S=/\s+$/,E=0,e=p.round,t=p.min,r=p.max,o=p.random;function i(j,Q){if(j=j||"",Q=Q||{},j instanceof i)return j;if(!(this instanceof i))return new i(j,Q);var re=n(j);this._originalInput=j,this._r=re.r,this._g=re.g,this._b=re.b,this._a=re.a,this._roundA=e(100*this._a)/100,this._format=Q.format||re.format,this._gradientType=Q.gradientType,this._r<1&&(this._r=e(this._r)),this._g<1&&(this._g=e(this._g)),this._b<1&&(this._b=e(this._b)),this._ok=re.ok,this._tc_id=E++}i.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 j=this.toRgb();return(j.r*299+j.g*587+j.b*114)/1e3},getLuminance:function(){var j=this.toRgb(),Q,re,ue,_e,we,Re;return Q=j.r/255,re=j.g/255,ue=j.b/255,Q<=.03928?_e=Q/12.92:_e=p.pow((Q+.055)/1.055,2.4),re<=.03928?we=re/12.92:we=p.pow((re+.055)/1.055,2.4),ue<=.03928?Re=ue/12.92:Re=p.pow((ue+.055)/1.055,2.4),.2126*_e+.7152*we+.0722*Re},setAlpha:function(j){return this._a=I(j),this._roundA=e(100*this._a)/100,this},toHsv:function(){var j=c(this._r,this._g,this._b);return{h:j.h*360,s:j.s,v:j.v,a:this._a}},toHsvString:function(){var j=c(this._r,this._g,this._b),Q=e(j.h*360),re=e(j.s*100),ue=e(j.v*100);return this._a==1?"hsv("+Q+", "+re+"%, "+ue+"%)":"hsva("+Q+", "+re+"%, "+ue+"%, "+this._roundA+")"},toHsl:function(){var j=s(this._r,this._g,this._b);return{h:j.h*360,s:j.s,l:j.l,a:this._a}},toHslString:function(){var j=s(this._r,this._g,this._b),Q=e(j.h*360),re=e(j.s*100),ue=e(j.l*100);return this._a==1?"hsl("+Q+", "+re+"%, "+ue+"%)":"hsla("+Q+", "+re+"%, "+ue+"%, "+this._roundA+")"},toHex:function(j){return d(this._r,this._g,this._b,j)},toHexString:function(j){return"#"+this.toHex(j)},toHex8:function(j){return T(this._r,this._g,this._b,this._a,j)},toHex8String:function(j){return"#"+this.toHex8(j)},toRgb:function(){return{r:e(this._r),g:e(this._g),b:e(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+e(this._r)+", "+e(this._g)+", "+e(this._b)+")":"rgba("+e(this._r)+", "+e(this._g)+", "+e(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:e(U(this._r,255)*100)+"%",g:e(U(this._g,255)*100)+"%",b:e(U(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+e(U(this._r,255)*100)+"%, "+e(U(this._g,255)*100)+"%, "+e(U(this._b,255)*100)+"%)":"rgba("+e(U(this._r,255)*100)+"%, "+e(U(this._g,255)*100)+"%, "+e(U(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:N[d(this._r,this._g,this._b,!0)]||!1},toFilter:function(j){var Q="#"+l(this._r,this._g,this._b,this._a),re=Q,ue=this._gradientType?"GradientType = 1, ":"";if(j){var _e=i(j);re="#"+l(_e._r,_e._g,_e._b,_e._a)}return"progid:DXImageTransform.Microsoft.gradient("+ue+"startColorstr="+Q+",endColorstr="+re+")"},toString:function(j){var Q=!!j;j=j||this._format;var re=!1,ue=this._a<1&&this._a>=0,_e=!Q&&ue&&(j==="hex"||j==="hex6"||j==="hex3"||j==="hex4"||j==="hex8"||j==="name");return _e?j==="name"&&this._a===0?this.toName():this.toRgbString():(j==="rgb"&&(re=this.toRgbString()),j==="prgb"&&(re=this.toPercentageRgbString()),(j==="hex"||j==="hex6")&&(re=this.toHexString()),j==="hex3"&&(re=this.toHexString(!0)),j==="hex4"&&(re=this.toHex8String(!0)),j==="hex8"&&(re=this.toHex8String()),j==="name"&&(re=this.toName()),j==="hsl"&&(re=this.toHslString()),j==="hsv"&&(re=this.toHsvString()),re||this.toHexString())},clone:function(){return i(this.toString())},_applyModification:function(j,Q){var re=j.apply(null,[this].concat([].slice.call(Q)));return this._r=re._r,this._g=re._g,this._b=re._b,this.setAlpha(re._a),this},lighten:function(){return this._applyModification(M,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification(b,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(v,arguments)},_applyCombination:function(j,Q){return j.apply(null,[this].concat([].slice.call(Q)))},analogous:function(){return this._applyCombination(L,arguments)},complement:function(){return this._applyCombination(u,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(y,arguments)},tetrad:function(){return this._applyCombination(f,arguments)}},i.fromRatio=function(j,Q){if(typeof j=="object"){var re={};for(var ue in j)j.hasOwnProperty(ue)&&(ue==="a"?re[ue]=j[ue]:re[ue]=ce(j[ue]));j=re}return i(j,Q)};function n(j){var Q={r:0,g:0,b:0},re=1,ue=null,_e=null,we=null,Re=!1,ze=!1;return typeof j=="string"&&(j=oe(j)),typeof j=="object"&&(V(j.r)&&V(j.g)&&V(j.b)?(Q=a(j.r,j.g,j.b),Re=!0,ze=String(j.r).substr(-1)==="%"?"prgb":"rgb"):V(j.h)&&V(j.s)&&V(j.v)?(ue=ce(j.s),_e=ce(j.v),Q=m(j.h,ue,_e),Re=!0,ze="hsv"):V(j.h)&&V(j.s)&&V(j.l)&&(ue=ce(j.s),we=ce(j.l),Q=h(j.h,ue,we),Re=!0,ze="hsl"),j.hasOwnProperty("a")&&(re=j.a)),re=I(re),{ok:Re,format:j.format||ze,r:t(255,r(Q.r,0)),g:t(255,r(Q.g,0)),b:t(255,r(Q.b,0)),a:re}}function a(j,Q,re){return{r:U(j,255)*255,g:U(Q,255)*255,b:U(re,255)*255}}function s(j,Q,re){j=U(j,255),Q=U(Q,255),re=U(re,255);var ue=r(j,Q,re),_e=t(j,Q,re),we,Re,ze=(ue+_e)/2;if(ue==_e)we=Re=0;else{var Xe=ue-_e;switch(Re=ze>.5?Xe/(2-ue-_e):Xe/(ue+_e),ue){case j:we=(Q-re)/Xe+(Q<re?6:0);break;case Q:we=(re-j)/Xe+2;break;case re:we=(j-Q)/Xe+4;break}we/=6}return{h:we,s:Re,l:ze}}function h(j,Q,re){var ue,_e,we;j=U(j,360),Q=U(Q,100),re=U(re,100);function Re(tt,it,et){return et<0&&(et+=1),et>1&&(et-=1),et<1/6?tt+(it-tt)*6*et:et<1/2?it:et<2/3?tt+(it-tt)*(2/3-et)*6:tt}if(Q===0)ue=_e=we=re;else{var ze=re<.5?re*(1+Q):re+Q-re*Q,Xe=2*re-ze;ue=Re(Xe,ze,j+1/3),_e=Re(Xe,ze,j),we=Re(Xe,ze,j-1/3)}return{r:ue*255,g:_e*255,b:we*255}}function c(j,Q,re){j=U(j,255),Q=U(Q,255),re=U(re,255);var ue=r(j,Q,re),_e=t(j,Q,re),we,Re,ze=ue,Xe=ue-_e;if(Re=ue===0?0:Xe/ue,ue==_e)we=0;else{switch(ue){case j:we=(Q-re)/Xe+(Q<re?6:0);break;case Q:we=(re-j)/Xe+2;break;case re:we=(j-Q)/Xe+4;break}we/=6}return{h:we,s:Re,v:ze}}function m(j,Q,re){j=U(j,360)*6,Q=U(Q,100),re=U(re,100);var ue=p.floor(j),_e=j-ue,we=re*(1-Q),Re=re*(1-_e*Q),ze=re*(1-(1-_e)*Q),Xe=ue%6,tt=[re,Re,we,we,ze,re][Xe],it=[ze,re,re,Re,we,we][Xe],et=[we,we,ze,re,re,Re][Xe];return{r:tt*255,g:it*255,b:et*255}}function d(j,Q,re,ue){var _e=[le(e(j).toString(16)),le(e(Q).toString(16)),le(e(re).toString(16))];return ue&&_e[0].charAt(0)==_e[0].charAt(1)&&_e[1].charAt(0)==_e[1].charAt(1)&&_e[2].charAt(0)==_e[2].charAt(1)?_e[0].charAt(0)+_e[1].charAt(0)+_e[2].charAt(0):_e.join("")}function T(j,Q,re,ue,_e){var we=[le(e(j).toString(16)),le(e(Q).toString(16)),le(e(re).toString(16)),le(q(ue))];return _e&&we[0].charAt(0)==we[0].charAt(1)&&we[1].charAt(0)==we[1].charAt(1)&&we[2].charAt(0)==we[2].charAt(1)&&we[3].charAt(0)==we[3].charAt(1)?we[0].charAt(0)+we[1].charAt(0)+we[2].charAt(0)+we[3].charAt(0):we.join("")}function l(j,Q,re,ue){var _e=[le(q(ue)),le(e(j).toString(16)),le(e(Q).toString(16)),le(e(re).toString(16))];return _e.join("")}i.equals=function(j,Q){return!j||!Q?!1:i(j).toRgbString()==i(Q).toRgbString()},i.random=function(){return i.fromRatio({r:o(),g:o(),b:o()})};function _(j,Q){Q=Q===0?0:Q||10;var re=i(j).toHsl();return re.s-=Q/100,re.s=O(re.s),i(re)}function w(j,Q){Q=Q===0?0:Q||10;var re=i(j).toHsl();return re.s+=Q/100,re.s=O(re.s),i(re)}function A(j){return i(j).desaturate(100)}function M(j,Q){Q=Q===0?0:Q||10;var re=i(j).toHsl();return re.l+=Q/100,re.l=O(re.l),i(re)}function g(j,Q){Q=Q===0?0:Q||10;var re=i(j).toRgb();return re.r=r(0,t(255,re.r-e(255*-(Q/100)))),re.g=r(0,t(255,re.g-e(255*-(Q/100)))),re.b=r(0,t(255,re.b-e(255*-(Q/100)))),i(re)}function b(j,Q){Q=Q===0?0:Q||10;var re=i(j).toHsl();return re.l-=Q/100,re.l=O(re.l),i(re)}function v(j,Q){var re=i(j).toHsl(),ue=(re.h+Q)%360;return re.h=ue<0?360+ue:ue,i(re)}function u(j){var Q=i(j).toHsl();return Q.h=(Q.h+180)%360,i(Q)}function y(j){var Q=i(j).toHsl(),re=Q.h;return[i(j),i({h:(re+120)%360,s:Q.s,l:Q.l}),i({h:(re+240)%360,s:Q.s,l:Q.l})]}function f(j){var Q=i(j).toHsl(),re=Q.h;return[i(j),i({h:(re+90)%360,s:Q.s,l:Q.l}),i({h:(re+180)%360,s:Q.s,l:Q.l}),i({h:(re+270)%360,s:Q.s,l:Q.l})]}function R(j){var Q=i(j).toHsl(),re=Q.h;return[i(j),i({h:(re+72)%360,s:Q.s,l:Q.l}),i({h:(re+216)%360,s:Q.s,l:Q.l})]}function L(j,Q,re){Q=Q||6,re=re||30;var ue=i(j).toHsl(),_e=360/re,we=[i(j)];for(ue.h=(ue.h-(_e*Q>>1)+720)%360;--Q;)ue.h=(ue.h+_e)%360,we.push(i(ue));return we}function z(j,Q){Q=Q||6;for(var re=i(j).toHsv(),ue=re.h,_e=re.s,we=re.v,Re=[],ze=1/Q;Q--;)Re.push(i({h:ue,s:_e,v:we})),we=(we+ze)%1;return Re}i.mix=function(j,Q,re){re=re===0?0:re||50;var ue=i(j).toRgb(),_e=i(Q).toRgb(),we=re/100,Re={r:(_e.r-ue.r)*we+ue.r,g:(_e.g-ue.g)*we+ue.g,b:(_e.b-ue.b)*we+ue.b,a:(_e.a-ue.a)*we+ue.a};return i(Re)},i.readability=function(j,Q){var re=i(j),ue=i(Q);return(p.max(re.getLuminance(),ue.getLuminance())+.05)/(p.min(re.getLuminance(),ue.getLuminance())+.05)},i.isReadable=function(j,Q,re){var ue=i.readability(j,Q),_e,we;switch(we=!1,_e=ie(re),_e.level+_e.size){case"AAsmall":case"AAAlarge":we=ue>=4.5;break;case"AAlarge":we=ue>=3;break;case"AAAsmall":we=ue>=7;break}return we},i.mostReadable=function(j,Q,re){var ue=null,_e=0,we,Re,ze,Xe;re=re||{},Re=re.includeFallbackColors,ze=re.level,Xe=re.size;for(var tt=0;tt<Q.length;tt++)we=i.readability(j,Q[tt]),we>_e&&(_e=we,ue=i(Q[tt]));return i.isReadable(j,ue,{level:ze,size:Xe})||!Re?ue:(re.includeFallbackColors=!1,i.mostReadable(j,["#fff","#000"],re))};var F=i.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"},N=i.hexNames=B(F);function B(j){var Q={};for(var re in j)j.hasOwnProperty(re)&&(Q[j[re]]=re);return Q}function I(j){return j=parseFloat(j),(isNaN(j)||j<0||j>1)&&(j=1),j}function U(j,Q){J(j)&&(j="100%");var re=se(j);return j=t(Q,r(0,parseFloat(j))),re&&(j=parseInt(j*Q,10)/100),p.abs(j-Q)<1e-6?1:j%Q/parseFloat(Q)}function O(j){return t(1,r(0,j))}function X(j){return parseInt(j,16)}function J(j){return typeof j=="string"&&j.indexOf(".")!=-1&&parseFloat(j)===1}function se(j){return typeof j=="string"&&j.indexOf("%")!=-1}function le(j){return j.length==1?"0"+j:""+j}function ce(j){return j<=1&&(j=j*100+"%"),j}function q(j){return p.round(parseFloat(j)*255).toString(16)}function Z(j){return X(j)/255}var ee=function(){var j="[-\\+]?\\d+%?",Q="[-\\+]?\\d*\\.\\d+%?",re="(?:"+Q+")|(?:"+j+")",ue="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?",_e="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?";return{CSS_UNIT:new RegExp(re),rgb:new RegExp("rgb"+ue),rgba:new RegExp("rgba"+_e),hsl:new RegExp("hsl"+ue),hsla:new RegExp("hsla"+_e),hsv:new RegExp("hsv"+ue),hsva:new RegExp("hsva"+_e),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 V(j){return!!ee.CSS_UNIT.exec(j)}function oe(j){j=j.replace(x,"").replace(S,"").toLowerCase();var Q=!1;if(F[j])j=F[j],Q=!0;else if(j=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var re;return(re=ee.rgb.exec(j))?{r:re[1],g:re[2],b:re[3]}:(re=ee.rgba.exec(j))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=ee.hsl.exec(j))?{h:re[1],s:re[2],l:re[3]}:(re=ee.hsla.exec(j))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=ee.hsv.exec(j))?{h:re[1],s:re[2],v:re[3]}:(re=ee.hsva.exec(j))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=ee.hex8.exec(j))?{r:X(re[1]),g:X(re[2]),b:X(re[3]),a:Z(re[4]),format:Q?"name":"hex8"}:(re=ee.hex6.exec(j))?{r:X(re[1]),g:X(re[2]),b:X(re[3]),format:Q?"name":"hex"}:(re=ee.hex4.exec(j))?{r:X(re[1]+""+re[1]),g:X(re[2]+""+re[2]),b:X(re[3]+""+re[3]),a:Z(re[4]+""+re[4]),format:Q?"name":"hex8"}:(re=ee.hex3.exec(j))?{r:X(re[1]+""+re[1]),g:X(re[2]+""+re[2]),b:X(re[3]+""+re[3]),format:Q?"name":"hex"}:!1}function ie(j){var Q,re;return j=j||{level:"AA",size:"small"},Q=(j.level||"AA").toUpperCase(),re=(j.size||"small").toLowerCase(),Q!=="AA"&&Q!=="AAA"&&(Q="AA"),re!=="small"&&re!=="large"&&(re="small"),{level:Q,size:re}}typeof H<"u"&&H.exports?H.exports=i:window.tinycolor=i})(Math)}}),Xo=De({"src/lib/extend.js"(Y){"use strict";var H=fu(),p=Array.isArray;function x(E,e){var t,r;for(t=0;t<E.length;t++){if(r=E[t],r!==null&&typeof r=="object")return!1;r!==void 0&&(e[t]=r)}return!0}Y.extendFlat=function(){return S(arguments,!1,!1,!1)},Y.extendDeep=function(){return S(arguments,!0,!1,!1)},Y.extendDeepAll=function(){return S(arguments,!0,!0,!1)},Y.extendDeepNoArrays=function(){return S(arguments,!0,!1,!0)};function S(E,e,t,r){var o=E[0],i=E.length,n,a,s,h,c,m,d;if(i===2&&p(o)&&p(E[1])&&o.length===0){if(d=x(E[1],o),d)return o;o.splice(0,o.length)}for(var T=1;T<i;T++){n=E[T];for(a in n)s=o[a],h=n[a],r&&p(h)?o[a]=h:e&&h&&(H(h)||(c=p(h)))?(c?(c=!1,m=s&&p(s)?s:[]):m=s&&H(s)?s:{},o[a]=S([m,h],e,t,r)):(typeof h<"u"||t)&&(o[a]=h)}return o}}}),qu=De({"src/plots/font_attributes.js"(Y,H){"use strict";H.exports=function(p){var x=p.variantValues,S=p.editType,E=p.colorEditType;E===void 0&&(E=S);var e={editType:S,valType:"integer",min:1,max:1e3,extras:["normal","bold"],dflt:"normal"};p.noNumericWeightValues&&(e.valType="enumerated",e.values=e.extras,e.extras=void 0,e.min=void 0,e.max=void 0);var t={family:{valType:"string",noBlank:!0,strict:!0,editType:S},size:{valType:"number",min:1,editType:S},color:{valType:"color",editType:E},weight:e,style:{editType:S,valType:"enumerated",values:["normal","italic"],dflt:"normal"},variant:p.noFontVariant?void 0:{editType:S,valType:"enumerated",values:x||["normal","small-caps","all-small-caps","all-petite-caps","petite-caps","unicase"],dflt:"normal"},textcase:p.noFontTextcase?void 0:{editType:S,valType:"enumerated",values:["normal","word caps","upper","lower"],dflt:"normal"},lineposition:p.noFontLineposition?void 0:{editType:S,valType:"flaglist",flags:["under","over","through"],extras:["none"],dflt:"none"},shadow:p.noFontShadow?void 0:{editType:S,valType:"string",dflt:p.autoShadowDflt?"auto":"none"},editType:S};return p.autoSize&&(t.size.dflt="auto"),p.autoColor&&(t.color.dflt="auto"),p.arrayOk&&(t.family.arrayOk=!0,t.weight.arrayOk=!0,t.style.arrayOk=!0,p.noFontVariant||(t.variant.arrayOk=!0),p.noFontTextcase||(t.textcase.arrayOk=!0),p.noFontLineposition||(t.lineposition.arrayOk=!0),p.noFontShadow||(t.shadow.arrayOk=!0),t.size.arrayOk=!0,t.color.arrayOk=!0),t}}}),cv=De({"src/components/fx/constants.js"(Y,H){"use strict";H.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}}}),Rv=De({"src/components/fx/layout_attributes.js"(Y,H){"use strict";var p=cv(),x=qu(),S=x({editType:"none"});S.family.dflt=p.HOVERFONT,S.size.dflt=p.HOVERFONTSIZE,H.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],dflt:"closest",editType:"modebar"},hoversubplots:{valType:"enumerated",values:["single","overlaying","axis"],dflt:"overlaying",editType:"none"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:-1,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:S,grouptitlefont:x({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"}}}}),Np=De({"src/components/fx/attributes.js"(Y,H){"use strict";var p=qu(),x=Rv().hoverlabel,S=Xo().extendFlat;H.exports={hoverlabel:{bgcolor:S({},x.bgcolor,{arrayOk:!0}),bordercolor:S({},x.bordercolor,{arrayOk:!0}),font:p({arrayOk:!0,editType:"none"}),align:S({},x.align,{arrayOk:!0}),namelength:S({},x.namelength,{arrayOk:!0}),showarrow:S({},x.showarrow),editType:"none"}}}}),Yl=De({"src/plots/attributes.js"(Y,H){"use strict";var p=qu(),x=Np();H.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:p({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:x.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"}}}}),up=De({"src/components/colorscale/scales.js"(Y,H){"use strict";var p=wu(),x={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)"]]},S=x.RdBu;function E(r,o){if(o||(o=S),!r)return o;function i(){try{r=x[r]||JSON.parse(r)}catch{r=o}}return typeof r=="string"&&(i(),typeof r=="string"&&i()),e(r)?r:o}function e(r){var o=0;if(!Array.isArray(r)||r.length<2||!r[0]||!r[r.length-1]||+r[0][0]!=0||+r[r.length-1][0]!=1)return!1;for(var i=0;i<r.length;i++){var n=r[i];if(n.length!==2||+n[0]<o||!p(n[1]).isValid())return!1;o=+n[0]}return!0}function t(r){return x[r]!==void 0?!0:e(r)}H.exports={scales:x,defaultScale:S,get:E,isValid:t}}}),Pf=De({"src/components/color/attributes.js"(Y){"use strict";Y.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],Y.defaultLine="#444",Y.lightLine="#eee",Y.background="#fff",Y.borderLine="#BEC8D9",Y.lightFraction=100*10/11}}),vo=De({"src/components/color/index.js"(Y,H){"use strict";var p=wu(),x=vn(),S=vl().isTypedArray,E=H.exports={},e=Pf();E.defaults=e.defaults;var t=E.defaultLine=e.defaultLine;E.lightLine=e.lightLine;var r=E.background=e.background;E.tinyRGB=function(i){var n=i.toRgb();return"rgb("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+")"},E.rgb=function(i){return E.tinyRGB(p(i))},E.opacity=function(i){return i?p(i).getAlpha():0},E.addOpacity=function(i,n){var a=p(i).toRgb();return"rgba("+Math.round(a.r)+", "+Math.round(a.g)+", "+Math.round(a.b)+", "+n+")"},E.combine=function(i,n){var a=p(i).toRgb();if(a.a===1)return p(i).toRgbString();var s=p(n||r).toRgb(),h=s.a===1?s:{r:255*(1-s.a)+s.r*s.a,g:255*(1-s.a)+s.g*s.a,b:255*(1-s.a)+s.b*s.a},c={r:h.r*(1-a.a)+a.r*a.a,g:h.g*(1-a.a)+a.g*a.a,b:h.b*(1-a.a)+a.b*a.a};return p(c).toRgbString()},E.interpolate=function(i,n,a){var s=p(i).toRgb(),h=p(n).toRgb(),c={r:a*s.r+(1-a)*h.r,g:a*s.g+(1-a)*h.g,b:a*s.b+(1-a)*h.b};return p(c).toRgbString()},E.contrast=function(i,n,a){var s=p(i);s.getAlpha()!==1&&(s=p(E.combine(i,r)));var h=s.isDark()?n?s.lighten(n):r:a?s.darken(a):t;return h.toString()},E.stroke=function(i,n){var a=p(n);i.style({stroke:E.tinyRGB(a),"stroke-opacity":a.getAlpha()})},E.fill=function(i,n){var a=p(n);i.style({fill:E.tinyRGB(a),"fill-opacity":a.getAlpha()})},E.clean=function(i){if(!(!i||typeof i!="object")){var n=Object.keys(i),a,s,h,c;for(a=0;a<n.length;a++)if(h=n[a],c=i[h],h.slice(-5)==="color")if(Array.isArray(c))for(s=0;s<c.length;s++)c[s]=o(c[s]);else i[h]=o(c);else if(h.slice(-10)==="colorscale"&&Array.isArray(c))for(s=0;s<c.length;s++)Array.isArray(c[s])&&(c[s][1]=o(c[s][1]));else if(Array.isArray(c)){var m=c[0];if(!Array.isArray(m)&&m&&typeof m=="object")for(s=0;s<c.length;s++)E.clean(c[s])}else c&&typeof c=="object"&&!S(c)&&E.clean(c)}};function o(i){if(x(i)||typeof i!="string")return i;var n=i.trim();if(n.slice(0,3)!=="rgb")return i;var a=n.match(/^rgba?\s*\(([^()]*)\)$/);if(!a)return i;var s=a[1].trim().split(/\s*[\s,]\s*/),h=n.charAt(3)==="a"&&s.length===4;if(!h&&s.length!==3)return i;for(var c=0;c<s.length;c++){if(!s[c].length||(s[c]=Number(s[c]),!(s[c]>=0)))return i;if(c===3)s[c]>1&&(s[c]=1);else if(s[c]>=1)return i}var m=Math.round(s[0]*255)+", "+Math.round(s[1]*255)+", "+Math.round(s[2]*255);return h?"rgba("+m+", "+s[3]+")":"rgb("+m+")"}}}),_o=De({"src/constants/interactions.js"(Y,H){"use strict";H.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}}}),Uo=De({"src/lib/regex.js"(Y){"use strict";Y.counter=function(H,p,x,S){var E=(p||"")+(x?"":"$"),e=S===!1?"":"^";return H==="xy"?new RegExp(e+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+E):new RegExp(e+H+"([2-9]|[1-9][0-9]+)?"+E)}}}),Rn=De({"src/lib/coerce.js"(Y){"use strict";var H=vn(),p=wu(),x=Xo().extendFlat,S=Yl(),E=up(),e=vo(),t=_o().DESELECTDIM,r=bu(),o=Uo().counter,i=gf().modHalf,n=vl().isArrayOrTypedArray,a=vl().isTypedArraySpec,s=vl().decodeTypedArraySpec;Y.valObjectMeta={data_array:{coerceFunction:function(c,m,d){m.set(n(c)?c:a(c)?s(c):d)}},enumerated:{coerceFunction:function(c,m,d,T){T.coerceNumber&&(c=+c),T.values.indexOf(c)===-1?m.set(d):m.set(c)},validateFunction:function(c,m){m.coerceNumber&&(c=+c);for(var d=m.values,T=0;T<d.length;T++){var l=String(d[T]);if(l.charAt(0)==="/"&&l.charAt(l.length-1)==="/"){var _=new RegExp(l.slice(1,-1));if(_.test(c))return!0}else if(c===d[T])return!0}return!1}},boolean:{coerceFunction:function(c,m,d,T){let l=_=>_===!0||_===!1;l(c)||T.arrayOk&&Array.isArray(c)&&c.length>0&&c.every(l)?m.set(c):m.set(d)}},number:{coerceFunction:function(c,m,d,T){a(c)&&(c=s(c)),!H(c)||T.min!==void 0&&c<T.min||T.max!==void 0&&c>T.max?m.set(d):m.set(+c)}},integer:{coerceFunction:function(c,m,d,T){if((T.extras||[]).indexOf(c)!==-1){m.set(c);return}a(c)&&(c=s(c)),c%1||!H(c)||T.min!==void 0&&c<T.min||T.max!==void 0&&c>T.max?m.set(d):m.set(+c)}},string:{coerceFunction:function(c,m,d,T){if(typeof c!="string"){var l=typeof c=="number";T.strict===!0||!l?m.set(d):m.set(String(c))}else T.noBlank&&!c?m.set(d):m.set(c)}},color:{coerceFunction:function(c,m,d){a(c)&&(c=s(c)),p(c).isValid()?m.set(c):m.set(d)}},colorlist:{coerceFunction:function(c,m,d){function T(l){return p(l).isValid()}!Array.isArray(c)||!c.length?m.set(d):c.every(T)?m.set(c):m.set(d)}},colorscale:{coerceFunction:function(c,m,d){m.set(E.get(c,d))}},angle:{coerceFunction:function(c,m,d){a(c)&&(c=s(c)),c==="auto"?m.set("auto"):H(c)?m.set(i(+c,360)):m.set(d)}},subplotid:{coerceFunction:function(c,m,d,T){var l=T.regex||o(d);let _=w=>typeof w=="string"&&l.test(w);_(c)||T.arrayOk&&n(c)&&c.length>0&&c.every(_)?m.set(c):m.set(d)},validateFunction:function(c,m){var d=m.dflt;return c===d?!0:typeof c!="string"?!1:!!o(d).test(c)}},flaglist:{coerceFunction:function(c,m,d,T){if((T.extras||[]).indexOf(c)!==-1){m.set(c);return}if(typeof c!="string"){m.set(d);return}for(var l=c.split("+"),_=0;_<l.length;){var w=l[_];T.flags.indexOf(w)===-1||l.indexOf(w)<_?l.splice(_,1):_++}l.length?m.set(l.join("+")):m.set(d)}},any:{coerceFunction:function(c,m,d){c===void 0?m.set(d):m.set(a(c)?s(c):c)}},info_array:{coerceFunction:function(c,m,d,T){function l(F,N,B){var I,U={set:function(O){I=O}};return B===void 0&&(B=N.dflt),Y.valObjectMeta[N.valType].coerceFunction(F,U,B,N),I}if(a(c)&&(c=s(c)),!n(c)){m.set(d);return}var _=T.dimensions===2||T.dimensions==="1-2"&&Array.isArray(c)&&n(c[0]),w=T.items,A=[],M=Array.isArray(w),g=M&&_&&n(w[0]),b=_&&M&&!g,v=M&&!b?w.length:c.length,u,y,f,R,L,z;if(d=Array.isArray(d)?d:[],_)for(u=0;u<v;u++)for(A[u]=[],f=n(c[u])?c[u]:[],b?L=w.length:M?L=w[u].length:L=f.length,y=0;y<L;y++)b?R=w[y]:M?R=w[u][y]:R=w,z=l(f[y],R,(d[u]||[])[y]),z!==void 0&&(A[u][y]=z);else for(u=0;u<v;u++)z=l(c[u],M?w[u]:w,d[u]),z!==void 0&&(A[u]=z);m.set(A)},validateFunction:function(c,m){if(!n(c))return!1;var d=m.items,T=Array.isArray(d),l=m.dimensions===2;if(!m.freeLength&&c.length!==d.length)return!1;for(var _=0;_<c.length;_++)if(l){if(!n(c[_])||!m.freeLength&&c[_].length!==d[_].length)return!1;for(var w=0;w<c[_].length;w++)if(!h(c[_][w],T?d[_][w]:d))return!1}else if(!h(c[_],T?d[_]:d))return!1;return!0}}},Y.coerce=function(c,m,d,T,l){var _=r(d,T).get(),w=r(c,T),A=r(m,T),M=w.get(),g=m._template;if(M===void 0&&g&&(M=r(g,T).get(),g=0),l===void 0&&(l=_.dflt),_.arrayOk){if(n(M))return A.set(M),M;if(a(M))return M=s(M),A.set(M),M}var b=Y.valObjectMeta[_.valType].coerceFunction;b(M,A,l,_);var v=A.get();return g&&v===l&&!h(M,_)&&(M=r(g,T).get(),b(M,A,l,_),v=A.get()),v},Y.coerce2=function(c,m,d,T,l){var _=r(c,T),w=Y.coerce(c,m,d,T,l),A=_.get();return A!=null?w:!1},Y.coerceFont=function(c,m,d,T){T||(T={}),d=x({},d),d=x(d,T.overrideDflt||{});var l={family:c(m+".family",d.family),size:c(m+".size",d.size),color:c(m+".color",d.color),weight:c(m+".weight",d.weight),style:c(m+".style",d.style)};if(T.noFontVariant||(l.variant=c(m+".variant",d.variant)),T.noFontLineposition||(l.lineposition=c(m+".lineposition",d.lineposition)),T.noFontTextcase||(l.textcase=c(m+".textcase",d.textcase)),!T.noFontShadow){var _=d.shadow;_==="none"&&T.autoShadowDflt&&(_="auto"),l.shadow=c(m+".shadow",_)}return l},Y.coercePattern=function(c,m,d,T){var l=c(m+".shape"),_;if(l||(_=c(m+".path")),l||_){l&&c(m+".solidity"),c(m+".size");var w=c(m+".fillmode"),A=w==="overlay";if(!T){var M=c(m+".bgcolor",A?d:void 0);c(m+".fgcolor",A?e.contrast(M):d)}c(m+".fgopacity",A?.5:1)}},Y.coerceHoverinfo=function(c,m,d){var T=m._module.attributes,l=T.hoverinfo?T:S,_=l.hoverinfo,w;if(d._dataLength===1){var A=_.dflt==="all"?_.flags.slice():_.dflt.split("+");A.splice(A.indexOf("name"),1),w=A.join("+")}return Y.coerce(c,m,l,"hoverinfo",w)},Y.coerceSelectionMarkerOpacity=function(c,m){if(c.marker){var d=c.marker.opacity;if(d!==void 0){var T,l;!n(d)&&!c.selected&&!c.unselected&&(T=d,l=t*d),m("selected.marker.opacity",T),m("unselected.marker.opacity",l)}}};function h(c,m){var d=Y.valObjectMeta[m.valType];if(m.arrayOk&&n(c))return!0;if(d.validateFunction)return d.validateFunction(c,m);var T={},l=T,_={set:function(w){l=w}};return d.coerceFunction(c,_,T,m),l!==T}Y.validate=h}}),Cn=De({"src/plot_api/plot_config.js"(Y,H){"use strict";var p={staticPlot:{valType:"boolean",dflt:!1},typesetMath:{valType:"boolean",dflt:!0},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},editSelection:{valType:"boolean",dflt:!0},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox","map"],extras:[!0,!1],dflt:"gl3d+geo+map"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/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:{}}},x={};function S(E,e){for(var t in E){var r=E[t];r.valType?e[t]=r.dflt:(e[t]||(e[t]={}),S(r,e[t]))}}S(p,x),H.exports={configAttributes:p,dfltConfig:x}}}),jn=De({"src/lib/notifier.js"(Y,H){"use strict";var p=za(),x=vn(),S=[];H.exports=function(E,e){if(S.indexOf(E)!==-1)return;S.push(E);var t=1e3;x(e)?t=e:e==="long"&&(t=3e3);var r=p.select("body").selectAll(".plotly-notifier").data([0]);r.enter().append("div").classed("plotly-notifier",!0);var o=r.selectAll(".notifier-note").data(S);function i(n){n.duration(700).style("opacity",0).each("end",function(a){var s=S.indexOf(a);s!==-1&&S.splice(s,1),p.select(this).remove()})}o.enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(n){var a=p.select(this);a.append("button").classed("notifier-close",!0).html("&times;").on("click",function(){a.transition().call(i)});for(var s=a.append("p"),h=n.split(/<br\s*\/?>/g),c=0;c<h.length;c++)c&&s.append("br"),s.append("span").text(h[c]);e==="stick"?a.transition().duration(350).style("opacity",1):a.transition().duration(700).style("opacity",1).transition().delay(t).call(i)})}}}),Yo=De({"src/lib/loggers.js"(Y,H){"use strict";var p=Cn().dfltConfig,x=jn(),S=H.exports={};S.log=function(){var E;if(p.logging>1){var e=["LOG:"];for(E=0;E<arguments.length;E++)e.push(arguments[E]);console.trace.apply(console,e)}if(p.notifyOnLogging>1){var t=[];for(E=0;E<arguments.length;E++)t.push(arguments[E]);x(t.join("<br>"),"long")}},S.warn=function(){var E;if(p.logging>0){var e=["WARN:"];for(E=0;E<arguments.length;E++)e.push(arguments[E]);console.trace.apply(console,e)}if(p.notifyOnLogging>0){var t=[];for(E=0;E<arguments.length;E++)t.push(arguments[E]);x(t.join("<br>"),"stick")}},S.error=function(){var E;if(p.logging>0){var e=["ERROR:"];for(E=0;E<arguments.length;E++)e.push(arguments[E]);console.error.apply(console,e)}if(p.notifyOnLogging>0){var t=[];for(E=0;E<arguments.length;E++)t.push(arguments[E]);x(t.join("<br>"),"stick")}}}}),As=De({"src/lib/noop.js"(Y,H){"use strict";H.exports=function(){}}}),Sc=De({"src/lib/push_unique.js"(Y,H){"use strict";H.exports=function(x,S){if(S instanceof RegExp){for(var E=S.toString(),e=0;e<x.length;e++)if(x[e]instanceof RegExp&&x[e].toString()===E)return x;x.push(S)}else(S||S===0)&&x.indexOf(S)===-1&&x.push(S);return x}}}),Td=De({"node_modules/gl-mat4/create.js"(Y,H){H.exports=p;function p(){var x=new Float32Array(16);return x[0]=1,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=1,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=1,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),Up=De({"node_modules/gl-mat4/clone.js"(Y,H){H.exports=p;function p(x){var S=new Float32Array(16);return S[0]=x[0],S[1]=x[1],S[2]=x[2],S[3]=x[3],S[4]=x[4],S[5]=x[5],S[6]=x[6],S[7]=x[7],S[8]=x[8],S[9]=x[9],S[10]=x[10],S[11]=x[11],S[12]=x[12],S[13]=x[13],S[14]=x[14],S[15]=x[15],S}}}),US=De({"node_modules/gl-mat4/copy.js"(Y,H){H.exports=p;function p(x,S){return x[0]=S[0],x[1]=S[1],x[2]=S[2],x[3]=S[3],x[4]=S[4],x[5]=S[5],x[6]=S[6],x[7]=S[7],x[8]=S[8],x[9]=S[9],x[10]=S[10],x[11]=S[11],x[12]=S[12],x[13]=S[13],x[14]=S[14],x[15]=S[15],x}}}),Dw=De({"node_modules/gl-mat4/identity.js"(Y,H){H.exports=p;function p(x){return x[0]=1,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=1,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=1,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),jS=De({"node_modules/gl-mat4/transpose.js"(Y,H){H.exports=p;function p(x,S){if(x===S){var E=S[1],e=S[2],t=S[3],r=S[6],o=S[7],i=S[11];x[1]=S[4],x[2]=S[8],x[3]=S[12],x[4]=E,x[6]=S[9],x[7]=S[13],x[8]=e,x[9]=r,x[11]=S[14],x[12]=t,x[13]=o,x[14]=i}else x[0]=S[0],x[1]=S[4],x[2]=S[8],x[3]=S[12],x[4]=S[1],x[5]=S[5],x[6]=S[9],x[7]=S[13],x[8]=S[2],x[9]=S[6],x[10]=S[10],x[11]=S[14],x[12]=S[3],x[13]=S[7],x[14]=S[11],x[15]=S[15];return x}}}),VS=De({"node_modules/gl-mat4/invert.js"(Y,H){H.exports=p;function p(x,S){var E=S[0],e=S[1],t=S[2],r=S[3],o=S[4],i=S[5],n=S[6],a=S[7],s=S[8],h=S[9],c=S[10],m=S[11],d=S[12],T=S[13],l=S[14],_=S[15],w=E*i-e*o,A=E*n-t*o,M=E*a-r*o,g=e*n-t*i,b=e*a-r*i,v=t*a-r*n,u=s*T-h*d,y=s*l-c*d,f=s*_-m*d,R=h*l-c*T,L=h*_-m*T,z=c*_-m*l,F=w*z-A*L+M*R+g*f-b*y+v*u;return F?(F=1/F,x[0]=(i*z-n*L+a*R)*F,x[1]=(t*L-e*z-r*R)*F,x[2]=(T*v-l*b+_*g)*F,x[3]=(c*b-h*v-m*g)*F,x[4]=(n*f-o*z-a*y)*F,x[5]=(E*z-t*f+r*y)*F,x[6]=(l*M-d*v-_*A)*F,x[7]=(s*v-c*M+m*A)*F,x[8]=(o*L-i*f+a*u)*F,x[9]=(e*f-E*L-r*u)*F,x[10]=(d*b-T*M+_*w)*F,x[11]=(h*M-s*b-m*w)*F,x[12]=(i*y-o*R-n*u)*F,x[13]=(E*R-e*y+t*u)*F,x[14]=(T*A-d*g-l*w)*F,x[15]=(s*g-h*A+c*w)*F,x):null}}}),qS=De({"node_modules/gl-mat4/adjoint.js"(Y,H){H.exports=p;function p(x,S){var E=S[0],e=S[1],t=S[2],r=S[3],o=S[4],i=S[5],n=S[6],a=S[7],s=S[8],h=S[9],c=S[10],m=S[11],d=S[12],T=S[13],l=S[14],_=S[15];return x[0]=i*(c*_-m*l)-h*(n*_-a*l)+T*(n*m-a*c),x[1]=-(e*(c*_-m*l)-h*(t*_-r*l)+T*(t*m-r*c)),x[2]=e*(n*_-a*l)-i*(t*_-r*l)+T*(t*a-r*n),x[3]=-(e*(n*m-a*c)-i*(t*m-r*c)+h*(t*a-r*n)),x[4]=-(o*(c*_-m*l)-s*(n*_-a*l)+d*(n*m-a*c)),x[5]=E*(c*_-m*l)-s*(t*_-r*l)+d*(t*m-r*c),x[6]=-(E*(n*_-a*l)-o*(t*_-r*l)+d*(t*a-r*n)),x[7]=E*(n*m-a*c)-o*(t*m-r*c)+s*(t*a-r*n),x[8]=o*(h*_-m*T)-s*(i*_-a*T)+d*(i*m-a*h),x[9]=-(E*(h*_-m*T)-s*(e*_-r*T)+d*(e*m-r*h)),x[10]=E*(i*_-a*T)-o*(e*_-r*T)+d*(e*a-r*i),x[11]=-(E*(i*m-a*h)-o*(e*m-r*h)+s*(e*a-r*i)),x[12]=-(o*(h*l-c*T)-s*(i*l-n*T)+d*(i*c-n*h)),x[13]=E*(h*l-c*T)-s*(e*l-t*T)+d*(e*c-t*h),x[14]=-(E*(i*l-n*T)-o*(e*l-t*T)+d*(e*n-t*i)),x[15]=E*(i*c-n*h)-o*(e*c-t*h)+s*(e*n-t*i),x}}}),HS=De({"node_modules/gl-mat4/determinant.js"(Y,H){H.exports=p;function p(x){var S=x[0],E=x[1],e=x[2],t=x[3],r=x[4],o=x[5],i=x[6],n=x[7],a=x[8],s=x[9],h=x[10],c=x[11],m=x[12],d=x[13],T=x[14],l=x[15],_=S*o-E*r,w=S*i-e*r,A=S*n-t*r,M=E*i-e*o,g=E*n-t*o,b=e*n-t*i,v=a*d-s*m,u=a*T-h*m,y=a*l-c*m,f=s*T-h*d,R=s*l-c*d,L=h*l-c*T;return _*L-w*R+A*f+M*y-g*u+b*v}}}),GS=De({"node_modules/gl-mat4/multiply.js"(Y,H){H.exports=p;function p(x,S,E){var e=S[0],t=S[1],r=S[2],o=S[3],i=S[4],n=S[5],a=S[6],s=S[7],h=S[8],c=S[9],m=S[10],d=S[11],T=S[12],l=S[13],_=S[14],w=S[15],A=E[0],M=E[1],g=E[2],b=E[3];return x[0]=A*e+M*i+g*h+b*T,x[1]=A*t+M*n+g*c+b*l,x[2]=A*r+M*a+g*m+b*_,x[3]=A*o+M*s+g*d+b*w,A=E[4],M=E[5],g=E[6],b=E[7],x[4]=A*e+M*i+g*h+b*T,x[5]=A*t+M*n+g*c+b*l,x[6]=A*r+M*a+g*m+b*_,x[7]=A*o+M*s+g*d+b*w,A=E[8],M=E[9],g=E[10],b=E[11],x[8]=A*e+M*i+g*h+b*T,x[9]=A*t+M*n+g*c+b*l,x[10]=A*r+M*a+g*m+b*_,x[11]=A*o+M*s+g*d+b*w,A=E[12],M=E[13],g=E[14],b=E[15],x[12]=A*e+M*i+g*h+b*T,x[13]=A*t+M*n+g*c+b*l,x[14]=A*r+M*a+g*m+b*_,x[15]=A*o+M*s+g*d+b*w,x}}}),WS=De({"node_modules/gl-mat4/translate.js"(Y,H){H.exports=p;function p(x,S,E){var e=E[0],t=E[1],r=E[2],o,i,n,a,s,h,c,m,d,T,l,_;return S===x?(x[12]=S[0]*e+S[4]*t+S[8]*r+S[12],x[13]=S[1]*e+S[5]*t+S[9]*r+S[13],x[14]=S[2]*e+S[6]*t+S[10]*r+S[14],x[15]=S[3]*e+S[7]*t+S[11]*r+S[15]):(o=S[0],i=S[1],n=S[2],a=S[3],s=S[4],h=S[5],c=S[6],m=S[7],d=S[8],T=S[9],l=S[10],_=S[11],x[0]=o,x[1]=i,x[2]=n,x[3]=a,x[4]=s,x[5]=h,x[6]=c,x[7]=m,x[8]=d,x[9]=T,x[10]=l,x[11]=_,x[12]=o*e+s*t+d*r+S[12],x[13]=i*e+h*t+T*r+S[13],x[14]=n*e+c*t+l*r+S[14],x[15]=a*e+m*t+_*r+S[15]),x}}}),XS=De({"node_modules/gl-mat4/scale.js"(Y,H){H.exports=p;function p(x,S,E){var e=E[0],t=E[1],r=E[2];return x[0]=S[0]*e,x[1]=S[1]*e,x[2]=S[2]*e,x[3]=S[3]*e,x[4]=S[4]*t,x[5]=S[5]*t,x[6]=S[6]*t,x[7]=S[7]*t,x[8]=S[8]*r,x[9]=S[9]*r,x[10]=S[10]*r,x[11]=S[11]*r,x[12]=S[12],x[13]=S[13],x[14]=S[14],x[15]=S[15],x}}}),YS=De({"node_modules/gl-mat4/rotate.js"(Y,H){H.exports=p;function p(x,S,E,e){var t=e[0],r=e[1],o=e[2],i=Math.sqrt(t*t+r*r+o*o),n,a,s,h,c,m,d,T,l,_,w,A,M,g,b,v,u,y,f,R,L,z,F,N;return Math.abs(i)<1e-6?null:(i=1/i,t*=i,r*=i,o*=i,n=Math.sin(E),a=Math.cos(E),s=1-a,h=S[0],c=S[1],m=S[2],d=S[3],T=S[4],l=S[5],_=S[6],w=S[7],A=S[8],M=S[9],g=S[10],b=S[11],v=t*t*s+a,u=r*t*s+o*n,y=o*t*s-r*n,f=t*r*s-o*n,R=r*r*s+a,L=o*r*s+t*n,z=t*o*s+r*n,F=r*o*s-t*n,N=o*o*s+a,x[0]=h*v+T*u+A*y,x[1]=c*v+l*u+M*y,x[2]=m*v+_*u+g*y,x[3]=d*v+w*u+b*y,x[4]=h*f+T*R+A*L,x[5]=c*f+l*R+M*L,x[6]=m*f+_*R+g*L,x[7]=d*f+w*R+b*L,x[8]=h*z+T*F+A*N,x[9]=c*z+l*F+M*N,x[10]=m*z+_*F+g*N,x[11]=d*z+w*F+b*N,S!==x&&(x[12]=S[12],x[13]=S[13],x[14]=S[14],x[15]=S[15]),x)}}}),ZS=De({"node_modules/gl-mat4/rotateX.js"(Y,H){H.exports=p;function p(x,S,E){var e=Math.sin(E),t=Math.cos(E),r=S[4],o=S[5],i=S[6],n=S[7],a=S[8],s=S[9],h=S[10],c=S[11];return S!==x&&(x[0]=S[0],x[1]=S[1],x[2]=S[2],x[3]=S[3],x[12]=S[12],x[13]=S[13],x[14]=S[14],x[15]=S[15]),x[4]=r*t+a*e,x[5]=o*t+s*e,x[6]=i*t+h*e,x[7]=n*t+c*e,x[8]=a*t-r*e,x[9]=s*t-o*e,x[10]=h*t-i*e,x[11]=c*t-n*e,x}}}),KS=De({"node_modules/gl-mat4/rotateY.js"(Y,H){H.exports=p;function p(x,S,E){var e=Math.sin(E),t=Math.cos(E),r=S[0],o=S[1],i=S[2],n=S[3],a=S[8],s=S[9],h=S[10],c=S[11];return S!==x&&(x[4]=S[4],x[5]=S[5],x[6]=S[6],x[7]=S[7],x[12]=S[12],x[13]=S[13],x[14]=S[14],x[15]=S[15]),x[0]=r*t-a*e,x[1]=o*t-s*e,x[2]=i*t-h*e,x[3]=n*t-c*e,x[8]=r*e+a*t,x[9]=o*e+s*t,x[10]=i*e+h*t,x[11]=n*e+c*t,x}}}),$S=De({"node_modules/gl-mat4/rotateZ.js"(Y,H){H.exports=p;function p(x,S,E){var e=Math.sin(E),t=Math.cos(E),r=S[0],o=S[1],i=S[2],n=S[3],a=S[4],s=S[5],h=S[6],c=S[7];return S!==x&&(x[8]=S[8],x[9]=S[9],x[10]=S[10],x[11]=S[11],x[12]=S[12],x[13]=S[13],x[14]=S[14],x[15]=S[15]),x[0]=r*t+a*e,x[1]=o*t+s*e,x[2]=i*t+h*e,x[3]=n*t+c*e,x[4]=a*t-r*e,x[5]=s*t-o*e,x[6]=h*t-i*e,x[7]=c*t-n*e,x}}}),JS=De({"node_modules/gl-mat4/fromRotation.js"(Y,H){H.exports=p;function p(x,S,E){var e,t,r,o=E[0],i=E[1],n=E[2],a=Math.sqrt(o*o+i*i+n*n);return Math.abs(a)<1e-6?null:(a=1/a,o*=a,i*=a,n*=a,e=Math.sin(S),t=Math.cos(S),r=1-t,x[0]=o*o*r+t,x[1]=i*o*r+n*e,x[2]=n*o*r-i*e,x[3]=0,x[4]=o*i*r-n*e,x[5]=i*i*r+t,x[6]=n*i*r+o*e,x[7]=0,x[8]=o*n*r+i*e,x[9]=i*n*r-o*e,x[10]=n*n*r+t,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x)}}}),QS=De({"node_modules/gl-mat4/fromRotationTranslation.js"(Y,H){H.exports=p;function p(x,S,E){var e=S[0],t=S[1],r=S[2],o=S[3],i=e+e,n=t+t,a=r+r,s=e*i,h=e*n,c=e*a,m=t*n,d=t*a,T=r*a,l=o*i,_=o*n,w=o*a;return x[0]=1-(m+T),x[1]=h+w,x[2]=c-_,x[3]=0,x[4]=h-w,x[5]=1-(s+T),x[6]=d+l,x[7]=0,x[8]=c+_,x[9]=d-l,x[10]=1-(s+m),x[11]=0,x[12]=E[0],x[13]=E[1],x[14]=E[2],x[15]=1,x}}}),eM=De({"node_modules/gl-mat4/fromScaling.js"(Y,H){H.exports=p;function p(x,S){return x[0]=S[0],x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=S[1],x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=S[2],x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),tM=De({"node_modules/gl-mat4/fromTranslation.js"(Y,H){H.exports=p;function p(x,S){return x[0]=1,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=1,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=1,x[11]=0,x[12]=S[0],x[13]=S[1],x[14]=S[2],x[15]=1,x}}}),rM=De({"node_modules/gl-mat4/fromXRotation.js"(Y,H){H.exports=p;function p(x,S){var E=Math.sin(S),e=Math.cos(S);return x[0]=1,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=e,x[6]=E,x[7]=0,x[8]=0,x[9]=-E,x[10]=e,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),iM=De({"node_modules/gl-mat4/fromYRotation.js"(Y,H){H.exports=p;function p(x,S){var E=Math.sin(S),e=Math.cos(S);return x[0]=e,x[1]=0,x[2]=-E,x[3]=0,x[4]=0,x[5]=1,x[6]=0,x[7]=0,x[8]=E,x[9]=0,x[10]=e,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),aM=De({"node_modules/gl-mat4/fromZRotation.js"(Y,H){H.exports=p;function p(x,S){var E=Math.sin(S),e=Math.cos(S);return x[0]=e,x[1]=E,x[2]=0,x[3]=0,x[4]=-E,x[5]=e,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=1,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),nM=De({"node_modules/gl-mat4/fromQuat.js"(Y,H){H.exports=p;function p(x,S){var E=S[0],e=S[1],t=S[2],r=S[3],o=E+E,i=e+e,n=t+t,a=E*o,s=e*o,h=e*i,c=t*o,m=t*i,d=t*n,T=r*o,l=r*i,_=r*n;return x[0]=1-h-d,x[1]=s+_,x[2]=c-l,x[3]=0,x[4]=s-_,x[5]=1-a-d,x[6]=m+T,x[7]=0,x[8]=c+l,x[9]=m-T,x[10]=1-a-h,x[11]=0,x[12]=0,x[13]=0,x[14]=0,x[15]=1,x}}}),oM=De({"node_modules/gl-mat4/frustum.js"(Y,H){H.exports=p;function p(x,S,E,e,t,r,o){var i=1/(E-S),n=1/(t-e),a=1/(r-o);return x[0]=r*2*i,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=r*2*n,x[6]=0,x[7]=0,x[8]=(E+S)*i,x[9]=(t+e)*n,x[10]=(o+r)*a,x[11]=-1,x[12]=0,x[13]=0,x[14]=o*r*2*a,x[15]=0,x}}}),sM=De({"node_modules/gl-mat4/perspective.js"(Y,H){H.exports=p;function p(x,S,E,e,t){var r=1/Math.tan(S/2),o=1/(e-t);return x[0]=r/E,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=r,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=(t+e)*o,x[11]=-1,x[12]=0,x[13]=0,x[14]=2*t*e*o,x[15]=0,x}}}),lM=De({"node_modules/gl-mat4/perspectiveFromFieldOfView.js"(Y,H){H.exports=p;function p(x,S,E,e){var t=Math.tan(S.upDegrees*Math.PI/180),r=Math.tan(S.downDegrees*Math.PI/180),o=Math.tan(S.leftDegrees*Math.PI/180),i=Math.tan(S.rightDegrees*Math.PI/180),n=2/(o+i),a=2/(t+r);return x[0]=n,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=a,x[6]=0,x[7]=0,x[8]=-((o-i)*n*.5),x[9]=(t-r)*a*.5,x[10]=e/(E-e),x[11]=-1,x[12]=0,x[13]=0,x[14]=e*E/(E-e),x[15]=0,x}}}),uM=De({"node_modules/gl-mat4/ortho.js"(Y,H){H.exports=p;function p(x,S,E,e,t,r,o){var i=1/(S-E),n=1/(e-t),a=1/(r-o);return x[0]=-2*i,x[1]=0,x[2]=0,x[3]=0,x[4]=0,x[5]=-2*n,x[6]=0,x[7]=0,x[8]=0,x[9]=0,x[10]=2*a,x[11]=0,x[12]=(S+E)*i,x[13]=(t+e)*n,x[14]=(o+r)*a,x[15]=1,x}}}),cM=De({"node_modules/gl-mat4/lookAt.js"(Y,H){var p=Dw();H.exports=x;function x(S,E,e,t){var r,o,i,n,a,s,h,c,m,d,T=E[0],l=E[1],_=E[2],w=t[0],A=t[1],M=t[2],g=e[0],b=e[1],v=e[2];return Math.abs(T-g)<1e-6&&Math.abs(l-b)<1e-6&&Math.abs(_-v)<1e-6?p(S):(h=T-g,c=l-b,m=_-v,d=1/Math.sqrt(h*h+c*c+m*m),h*=d,c*=d,m*=d,r=A*m-M*c,o=M*h-w*m,i=w*c-A*h,d=Math.sqrt(r*r+o*o+i*i),d?(d=1/d,r*=d,o*=d,i*=d):(r=0,o=0,i=0),n=c*i-m*o,a=m*r-h*i,s=h*o-c*r,d=Math.sqrt(n*n+a*a+s*s),d?(d=1/d,n*=d,a*=d,s*=d):(n=0,a=0,s=0),S[0]=r,S[1]=n,S[2]=h,S[3]=0,S[4]=o,S[5]=a,S[6]=c,S[7]=0,S[8]=i,S[9]=s,S[10]=m,S[11]=0,S[12]=-(r*T+o*l+i*_),S[13]=-(n*T+a*l+s*_),S[14]=-(h*T+c*l+m*_),S[15]=1,S)}}}),fM=De({"node_modules/gl-mat4/str.js"(Y,H){H.exports=p;function p(x){return"mat4("+x[0]+", "+x[1]+", "+x[2]+", "+x[3]+", "+x[4]+", "+x[5]+", "+x[6]+", "+x[7]+", "+x[8]+", "+x[9]+", "+x[10]+", "+x[11]+", "+x[12]+", "+x[13]+", "+x[14]+", "+x[15]+")"}}}),zw=De({"node_modules/gl-mat4/index.js"(Y,H){H.exports={create:Td(),clone:Up(),copy:US(),identity:Dw(),transpose:jS(),invert:VS(),adjoint:qS(),determinant:HS(),multiply:GS(),translate:WS(),scale:XS(),rotate:YS(),rotateX:ZS(),rotateY:KS(),rotateZ:$S(),fromRotation:JS(),fromRotationTranslation:QS(),fromScaling:eM(),fromTranslation:tM(),fromXRotation:rM(),fromYRotation:iM(),fromZRotation:aM(),fromQuat:nM(),frustum:oM(),perspective:sM(),perspectiveFromFieldOfView:lM(),ortho:uM(),lookAt:cM(),str:fM()}}}),m_=De({"src/lib/matrix.js"(Y){"use strict";var H=zw();Y.init2dArray=function(p,x){for(var S=new Array(p),E=0;E<p;E++)S[E]=new Array(x);return S},Y.transposeRagged=function(p){var x=0,S=p.length,E,e;for(E=0;E<S;E++)x=Math.max(x,p[E].length);var t=new Array(x);for(E=0;E<x;E++)for(t[E]=new Array(S),e=0;e<S;e++)t[E][e]=p[e][E];return t},Y.dot=function(p,x){if(!(p.length&&x.length)||p.length!==x.length)return null;var S=p.length,E,e;if(p[0].length)for(E=new Array(S),e=0;e<S;e++)E[e]=Y.dot(p[e],x);else if(x[0].length){var t=Y.transposeRagged(x);for(E=new Array(t.length),e=0;e<t.length;e++)E[e]=Y.dot(p,t[e])}else for(E=0,e=0;e<S;e++)E+=p[e]*x[e];return E},Y.translationMatrix=function(p,x){return[[1,0,p],[0,1,x],[0,0,1]]},Y.rotationMatrix=function(p){var x=p*Math.PI/180;return[[Math.cos(x),-Math.sin(x),0],[Math.sin(x),Math.cos(x),0],[0,0,1]]},Y.rotationXYMatrix=function(p,x,S){return Y.dot(Y.dot(Y.translationMatrix(x,S),Y.rotationMatrix(p)),Y.translationMatrix(-x,-S))},Y.apply3DTransform=function(p){return function(){var x=arguments,S=arguments.length===1?x[0]:[x[0],x[1],x[2]||0];return Y.dot(p,[S[0],S[1],S[2],1]).slice(0,3)}},Y.apply2DTransform=function(p){return function(){var x=arguments;x.length===3&&(x=x[0]);var S=arguments.length===1?x[0]:[x[0],x[1]];return Y.dot(p,[S[0],S[1],1]).slice(0,2)}},Y.apply2DTransform2=function(p){var x=Y.apply2DTransform(p);return function(S){return x(S.slice(0,2)).concat(x(S.slice(2,4)))}},Y.convertCssMatrix=function(p){if(p){var x=p.length;if(x===16)return p;if(x===6)return[p[0],p[1],0,0,p[2],p[3],0,0,0,0,1,0,p[4],p[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},Y.inverseTransformMatrix=function(p){var x=[];return H.invert(x,p),[[x[0],x[1],x[2],x[3]],[x[4],x[5],x[6],x[7]],[x[8],x[9],x[10],x[11]],[x[12],x[13],x[14],x[15]]]}}}),ny=De({"src/lib/dom.js"(Y,H){"use strict";var p=za(),x=Yo(),S=m_(),E=zw();function e(T){var l;if(typeof T=="string"){if(l=document.getElementById(T),l===null)throw new Error("No DOM element with id '"+T+"' exists on the page.");return l}else if(T==null)throw new Error("DOM element provided is null or undefined");return T}function t(T){var l=p.select(T);return l.node()instanceof HTMLElement&&l.size()&&l.classed("js-plotly-plot")}function r(T){var l=T&&T.parentNode;l&&l.removeChild(T)}function o(T,l){i("global",T,l)}function i(T,l,_){var w="plotly.js-style-"+T,A=document.getElementById(w);if(!(A&&A.matches(".no-inline-styles"))){A||(A=document.createElement("style"),A.setAttribute("id",w),A.appendChild(document.createTextNode("")),document.head.appendChild(A));var M=A.sheet;M?M.insertRule?M.insertRule(l+"{"+_+"}",0):M.addRule?M.addRule(l,_,0):x.warn("addStyleRule failed"):x.warn("Cannot addRelatedStyleRule, probably due to strict CSP...")}}function n(T){var l="plotly.js-style-"+T,_=document.getElementById(l);_&&r(_)}function a(T,l,_,w,A,M){var g=w.split(":"),b=A.split(":"),v="data-btn-style-event-added";M||(M=document),M.querySelectorAll(T).forEach(function(u){u.getAttribute(v)||(u.addEventListener("mouseenter",function(){var y=this.querySelector(_);y&&(y.style[g[0]]=g[1])}),u.addEventListener("mouseleave",function(){var y=this.querySelector(_);y&&(l&&this.matches(l)?y.style[g[0]]=g[1]:y.style[b[0]]=b[1])}),u.setAttribute(v,!0))})}function s(T){var l=c(T),_=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return l.forEach(function(w){var A=h(w);if(A){var M=S.convertCssMatrix(A);_=E.multiply(_,_,M)}}),_}function h(T){var l=window.getComputedStyle(T,null),_=l.getPropertyValue("-webkit-transform")||l.getPropertyValue("-moz-transform")||l.getPropertyValue("-ms-transform")||l.getPropertyValue("-o-transform")||l.getPropertyValue("transform");return _==="none"?null:_.replace("matrix","").replace("3d","").slice(1,-1).split(",").map(function(w){return+w})}function c(T){for(var l=[];m(T);)l.push(T),T=T.parentNode,typeof ShadowRoot=="function"&&T instanceof ShadowRoot&&(T=T.host);return l}function m(T){return T&&(T instanceof Element||T instanceof HTMLElement)}function d(T,l){return T&&l&&T.top===l.top&&T.left===l.left&&T.right===l.right&&T.bottom===l.bottom}H.exports={getGraphDiv:e,isPlotDiv:t,removeElement:r,addStyleRule:o,addRelatedStyleRule:i,deleteRelatedStyleRule:n,setStyleOnHover:a,getFullTransformMatrix:s,getElementTransformMatrix:h,getElementAndAncestors:c,equalDomRects:d}}}),oy=De({"src/plots/animation_attributes.js"(Y,H){"use strict";H.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"}}}}}),gc=De({"src/plot_api/edit_types.js"(Y,H){"use strict";var p=Xo().extendFlat,x=fu(),S={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},E={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},e=S.flags.slice().concat(["fullReplot"]),t=E.flags.slice().concat("layoutReplot");H.exports={traces:S,layout:E,traceFlags:function(){return r(e)},layoutFlags:function(){return r(t)},update:function(n,a){var s=a.editType;if(s&&s!=="none")for(var h=s.split("+"),c=0;c<h.length;c++)n[h[c]]=!0},overrideAll:o};function r(n){for(var a={},s=0;s<n.length;s++)a[n[s]]=!1;return a}function o(n,a,s){var h=p({},n);for(var c in h){var m=h[c];x(m)&&(h[c]=i(m,a,s,c))}return s==="from-root"&&(h.editType=a),h}function i(n,a,s,h){if(n.valType){var c=p({},n);if(c.editType=a,Array.isArray(n.items)){c.items=new Array(n.items.length);for(var m=0;m<n.items.length;m++)c.items[m]=i(n.items[m],a,"from-root")}return c}else return o(n,a,h.charAt(0)==="_"?"nested":"from-root")}}}),Ch=De({"src/components/drawing/attributes.js"(Y){"use strict";Y.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"},Y.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"}}}),Fw=De({"src/constants/docs.js"(Y,H){"use strict";H.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"}}}),ou=De({"src/plots/template_attributes.js"(Y){"use strict";var{DATE_FORMAT_LINK:H,FORMAT_LINK:p}=Fw(),x=["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 S({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}".`,p,"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}".`,H,"for details on the date formatting syntax.",x].join(" ")}Y.templateFormatStringDescription=S,Y.hovertemplateAttrs=({editType:E="none",arrayOk:e}={},t={})=>Ri({valType:"string",dflt:"",editType:E},e!==!1?{arrayOk:!0}:{}),Y.texttemplateAttrs=({editType:E="calc",arrayOk:e}={},t={})=>Ri({valType:"string",dflt:"",editType:E},e!==!1?{arrayOk:!0}:{}),Y.shapeTexttemplateAttrs=({editType:E="arraydraw",newshape:e}={},t={})=>({valType:"string",dflt:"",editType:E}),Y.templatefallbackAttrs=({editType:E="none"}={})=>({valType:"any",dflt:"-",editType:E})}}),g_=De({"src/components/shapes/label_texttemplate.js"(Y,H){"use strict";function p(A,M){return M?M.d2l(A):A}function x(A,M){return M?M.l2d(A):A}function S(A){return A.x0}function E(A){return A.x1}function e(A){return A.y0}function t(A){return A.y1}function r(A){return A.x0shift||0}function o(A){return A.x1shift||0}function i(A){return A.y0shift||0}function n(A){return A.y1shift||0}function a(A,M){return p(A.x1,M)+o(A)-p(A.x0,M)-r(A)}function s(A,M,g){return p(A.y1,g)+n(A)-p(A.y0,g)-i(A)}function h(A,M){return Math.abs(a(A,M))}function c(A,M,g){return Math.abs(s(A,M,g))}function m(A,M,g){return A.type!=="line"?void 0:Math.sqrt(Math.pow(a(A,M),2)+Math.pow(s(A,M,g),2))}function d(A,M){return x((p(A.x1,M)+o(A)+p(A.x0,M)+r(A))/2,M)}function T(A,M,g){return x((p(A.y1,g)+n(A)+p(A.y0,g)+i(A))/2,g)}function l(A,M,g){return A.type!=="line"?void 0:s(A,M,g)/a(A,M)}var _=["x0","x1","y0","y1","dy","height","ycenter"],w=["x0","x1","y0","y1","dx","width","xcenter"];H.exports={x0:S,x1:E,y0:e,y1:t,slope:l,dx:a,dy:s,width:h,height:c,length:m,xcenter:d,ycenter:T,simpleXVariables:_,simpleYVariables:w}}}),hM=De({"src/components/shapes/draw_newshape/attributes.js"(Y,H){"use strict";var p=gc().overrideAll,x=Yl(),S=qu(),E=Ch().dash,e=Xo().extendFlat,{shapeTexttemplateAttrs:t,templatefallbackAttrs:r}=ou(),o=g_();H.exports=p({newshape:{visible:e({},x.visible,{}),showlegend:{valType:"boolean",dflt:!1},legend:e({},x.legend,{}),legendgroup:e({},x.legendgroup,{}),legendgrouptitle:{text:e({},x.legendgrouptitle.text,{}),font:S({})},legendrank:e({},x.legendrank,{}),legendwidth:e({},x.legendwidth,{}),line:{color:{valType:"color"},width:{valType:"number",min:0,dflt:4},dash:e({},E,{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:e({},x.name,{}),label:{text:{valType:"string",dflt:""},texttemplate:t({newshape:!0},{keys:Object.keys(o)}),texttemplatefallback:r({editType:"arraydraw"}),font:S({}),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")}}),dM=De({"src/components/selections/draw_newselection/attributes.js"(Y,H){"use strict";var p=Ch().dash,x=Xo().extendFlat;H.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:x({},p,{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"}}}}),y_=De({"src/plots/pad_attributes.js"(Y,H){"use strict";H.exports=function(p){var x=p.editType;return{t:{valType:"number",dflt:0,editType:x},r:{valType:"number",dflt:0,editType:x},b:{valType:"number",dflt:0,editType:x},l:{valType:"number",dflt:0,editType:x},editType:x}}}}),Wm=De({"src/plots/layout_attributes.js"(Y,H){"use strict";var p=qu(),x=oy(),S=Pf(),E=hM(),e=dM(),t=y_(),r=Xo().extendFlat,o=p({editType:"calc"});o.family.dflt='"Open Sans", verdana, arial, sans-serif',o.size.dflt=12,o.color.dflt=S.defaultLine,H.exports={font:o,title:{text:{valType:"string",editType:"layoutstyle"},font:p({editType:"layoutstyle"}),subtitle:{text:{valType:"string",editType:"layoutstyle"},font:p({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:r(t({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:S.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:S.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:S.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:E.newshape,activeshape:E.activeshape,newselection:e.newselection,activeselection:e.activeselection,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:r({},x.transition,{editType:"none"})}}}),vM=De({"node_modules/maplibre-gl/dist/maplibre-gl.css"(){(function(){if(!document.getElementById("a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0")){var Y=document.createElement("style");Y.id="a75c73da1cd7a97e8992659f6aed556255838daadea9ca0c9fc3af7f1ddf63c0",Y.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(Y)}})()}}),Mo=De({"src/registry.js"(Y){"use strict";var H=Yo(),p=As(),x=Sc(),S=fu(),E=ny().addStyleRule,e=Xo(),t=Yl(),r=Wm(),o=e.extendFlat,i=e.extendDeepAll;Y.modules={},Y.allCategories={},Y.allTypes=[],Y.subplotsRegistry={},Y.componentsRegistry={},Y.layoutArrayContainers=[],Y.layoutArrayRegexes=[],Y.traceLayoutAttributes={},Y.localeRegistry={},Y.apiMethodRegistry={},Y.collectableSubplotTypes=null,Y.register=function(w){if(Y.collectableSubplotTypes=null,w)w&&!Array.isArray(w)&&(w=[w]);else throw new Error("No argument passed to Plotly.register.");for(var A=0;A<w.length;A++){var M=w[A];if(!M)throw new Error("Invalid module was attempted to be registered!");switch(M.moduleType){case"trace":n(M);break;case"transform":h(M);break;case"component":s(M);break;case"locale":c(M);break;case"apiMethod":var g=M.name;Y.apiMethodRegistry[g]=M.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}},Y.getModule=function(_){var w=Y.modules[l(_)];return w?w._module:!1},Y.traceIs=function(_,w){if(_=l(_),_==="various")return!1;var A=Y.modules[_];return A||(_&&H.log("Unrecognized trace type "+_+"."),A=Y.modules[t.type.dflt]),!!A.categories[w]},Y.getComponentMethod=function(_,w){var A=Y.componentsRegistry[_];return A&&A[w]||p},Y.call=function(){var _=arguments[0],w=[].slice.call(arguments,1);return Y.apiMethodRegistry[_].apply(null,w)};function n(_){var w=_.name,A=_.categories,M=_.meta;if(Y.modules[w]){H.log("Type "+w+" already registered");return}Y.subplotsRegistry[_.basePlotModule.name]||a(_.basePlotModule);for(var g={},b=0;b<A.length;b++)g[A[b]]=!0,Y.allCategories[A[b]]=!0;Y.modules[w]={_module:_,categories:g},M&&Object.keys(M).length&&(Y.modules[w].meta=M),Y.allTypes.push(w);for(var v in Y.componentsRegistry)d(v,w);_.layoutAttributes&&o(Y.traceLayoutAttributes,_.layoutAttributes);var u=_.basePlotModule,y=u.name;if(y==="mapbox"){var f=u.constants.styleRules;for(var R in f)E(".js-plotly-plot .plotly .mapboxgl-"+R,f[R])}y==="map"&&vM(),(y==="geo"||y==="mapbox"||y==="map")&&window.PlotlyGeoAssets===void 0&&(window.PlotlyGeoAssets={topojson:{}})}function a(_){var w=_.name;if(Y.subplotsRegistry[w]){H.log("Plot type "+w+" already registered.");return}m(_),Y.subplotsRegistry[w]=_;for(var A in Y.componentsRegistry)T(A,_.name)}function s(_){if(typeof _.name!="string")throw new Error("Component module *name* must be a string.");var w=_.name;Y.componentsRegistry[w]=_,_.layoutAttributes&&(_.layoutAttributes._isLinkedToArray&&x(Y.layoutArrayContainers,w),m(_));for(var A in Y.modules)d(w,A);for(var M in Y.subplotsRegistry)T(w,M);_.schema&&_.schema.layout&&i(r,_.schema.layout)}function h(_){if(typeof _.name!="string")throw new Error("Transform module *name* must be a string.");var w="Transform module "+_.name,A=typeof _.transform=="function",M=typeof _.calcTransform=="function";if(!A&&!M)throw new Error(w+" is missing a *transform* or *calcTransform* method.");A&&M&&H.log([w+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),S(_.attributes)||H.log(w+" registered without an *attributes* object."),typeof _.supplyDefaults!="function"&&H.log(w+" registered without a *supplyDefaults* method.")}function c(_){var w=_.name,A=w.split("-")[0],M=_.dictionary,g=_.format,b=M&&Object.keys(M).length,v=g&&Object.keys(g).length,u=Y.localeRegistry,y=u[w];if(y||(u[w]=y={}),A!==w){var f=u[A];f||(u[A]=f={}),b&&f.dictionary===y.dictionary&&(f.dictionary=M),v&&f.format===y.format&&(f.format=g)}b&&(y.dictionary=M),v&&(y.format=g)}function m(_){if(_.layoutAttributes){var w=_.layoutAttributes._arrayAttrRegexps;if(w)for(var A=0;A<w.length;A++)x(Y.layoutArrayRegexes,w[A])}}function d(_,w){var A=Y.componentsRegistry[_].schema;if(!(!A||!A.traces)){var M=A.traces[w];M&&i(Y.modules[w]._module.attributes,M)}}function T(_,w){var A=Y.componentsRegistry[_].schema;if(!(!A||!A.subplots)){var M=Y.subplotsRegistry[w],g=M.layoutAttributes,b=M.attr==="subplot"?M.name:M.attr;Array.isArray(b)&&(b=b[0]);var v=A.subplots[b];g&&v&&i(g,v)}}function l(_){return typeof _=="object"&&(_=_.type),_}}}),pM=De({"src/lib/dates.js"(Y){"use strict";var H=Do().timeFormat,p=vn(),x=Yo(),S=gf().mod,E=zn(),e=E.BADNUM,t=E.ONEDAY,r=E.ONEHOUR,o=E.ONEMIN,i=E.ONESEC,n=E.EPOCHJD,a=Mo(),s=Do().utcFormat,h=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,c=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,m=new Date().getFullYear()-70;function d(F){return F&&a.componentsRegistry.calendars&&typeof F=="string"&&F!=="gregorian"}Y.dateTick0=function(F,N){var B=T(F,!!N);if(N<2)return B;var I=Y.dateTime2ms(B,F);return I+=t*(N-1),Y.ms2DateTime(I,0,F)};function T(F,N){return d(F)?N?a.getComponentMethod("calendars","CANONICAL_SUNDAY")[F]:a.getComponentMethod("calendars","CANONICAL_TICK")[F]:N?"2000-01-02":"2000-01-01"}Y.dfltRange=function(F){return d(F)?a.getComponentMethod("calendars","DFLTRANGE")[F]:["2000-01-01","2001-01-01"]},Y.isJSDate=function(F){return typeof F=="object"&&F!==null&&typeof F.getTime=="function"};var l,_;Y.dateTime2ms=function(F,N){if(Y.isJSDate(F)){var B=F.getTimezoneOffset()*o,I=(F.getUTCMinutes()-F.getMinutes())*o+(F.getUTCSeconds()-F.getSeconds())*i+(F.getUTCMilliseconds()-F.getMilliseconds());if(I){var U=3*o;B=B-U/2+S(I-B+U/2,U)}return F=Number(F)-B,F>=l&&F<=_?F:e}if(typeof F!="string"&&typeof F!="number")return e;F=String(F);var O=d(N),X=F.charAt(0);O&&(X==="G"||X==="g")&&(F=F.slice(1),N="");var J=O&&N.slice(0,7)==="chinese",se=F.match(J?c:h);if(!se)return e;var le=se[1],ce=se[3]||"1",q=Number(se[5]||1),Z=Number(se[7]||0),ee=Number(se[9]||0),V=Number(se[11]||0);if(O){if(le.length===2)return e;le=Number(le);var oe;try{var ie=a.getComponentMethod("calendars","getCal")(N);if(J){var j=ce.charAt(ce.length-1)==="i";ce=parseInt(ce,10),oe=ie.newDate(le,ie.toMonthIndex(le,ce,j),q)}else oe=ie.newDate(le,Number(ce),q)}catch{return e}return oe?(oe.toJD()-n)*t+Z*r+ee*o+V*i:e}le.length===2?le=(Number(le)+2e3-m)%100+m:le=Number(le),ce-=1;var Q=new Date(Date.UTC(2e3,ce,q,Z,ee));return Q.setUTCFullYear(le),Q.getUTCMonth()!==ce||Q.getUTCDate()!==q?e:Q.getTime()+V*i},l=Y.MIN_MS=Y.dateTime2ms("-9999"),_=Y.MAX_MS=Y.dateTime2ms("9999-12-31 23:59:59.9999"),Y.isDateTime=function(F,N){return Y.dateTime2ms(F,N)!==e};function w(F,N){return String(F+Math.pow(10,N)).slice(1)}var A=90*t,M=3*r,g=5*o;Y.ms2DateTime=function(F,N,B){if(typeof F!="number"||!(F>=l&&F<=_))return e;N||(N=0);var I=Math.floor(S(F+.05,1)*10),U=Math.round(F-I/10),O,X,J,se,le,ce;if(d(B)){var q=Math.floor(U/t)+n,Z=Math.floor(S(F,t));try{O=a.getComponentMethod("calendars","getCal")(B).fromJD(q).formatDate("yyyy-mm-dd")}catch{O=s("G%Y-%m-%d")(new Date(U))}if(O.charAt(0)==="-")for(;O.length<11;)O="-0"+O.slice(1);else for(;O.length<10;)O="0"+O;X=N<A?Math.floor(Z/r):0,J=N<A?Math.floor(Z%r/o):0,se=N<M?Math.floor(Z%o/i):0,le=N<g?Z%i*10+I:0}else ce=new Date(U),O=s("%Y-%m-%d")(ce),X=N<A?ce.getUTCHours():0,J=N<A?ce.getUTCMinutes():0,se=N<M?ce.getUTCSeconds():0,le=N<g?ce.getUTCMilliseconds()*10+I:0;return b(O,X,J,se,le)},Y.ms2DateTimeLocal=function(F){if(!(F>=l+t&&F<=_-t))return e;var N=Math.floor(S(F+.05,1)*10),B=new Date(Math.round(F-N/10)),I=H("%Y-%m-%d")(B),U=B.getHours(),O=B.getMinutes(),X=B.getSeconds(),J=B.getUTCMilliseconds()*10+N;return b(I,U,O,X,J)};function b(F,N,B,I,U){if((N||B||I||U)&&(F+=" "+w(N,2)+":"+w(B,2),(I||U)&&(F+=":"+w(I,2),U))){for(var O=4;U%10===0;)O-=1,U/=10;F+="."+w(U,O)}return F}Y.cleanDate=function(F,N,B){if(F===e)return N;if(Y.isJSDate(F)||typeof F=="number"&&isFinite(F)){if(d(B))return x.error("JS Dates and milliseconds are incompatible with world calendars",F),N;if(F=Y.ms2DateTimeLocal(+F),!F&&N!==void 0)return N}else if(!Y.isDateTime(F,B))return x.error("unrecognized date",F),N;return F};var v=/%\d?f/g,u=/%h/g,y={1:"1",2:"1",3:"2",4:"2"};function f(F,N,B,I){F=F.replace(v,function(O){var X=Math.min(+O.charAt(1)||6,6),J=(N/1e3%1+2).toFixed(X).slice(2).replace(/0+$/,"")||"0";return J});var U=new Date(Math.floor(N+.05));if(F=F.replace(u,function(){return y[B("%q")(U)]}),d(I))try{F=a.getComponentMethod("calendars","worldCalFmt")(F,N,I)}catch{return"Invalid"}return B(F)(U)}var R=[59,59.9,59.99,59.999,59.9999];function L(F,N){var B=S(F+.05,t),I=w(Math.floor(B/r),2)+":"+w(S(Math.floor(B/o),60),2);if(N!=="M"){p(N)||(N=0);var U=Math.min(S(F/i,60),R[N]),O=(100+U).toFixed(N).slice(1);N>0&&(O=O.replace(/0+$/,"").replace(/[\.]$/,"")),I+=":"+O}return I}Y.formatDate=function(F,N,B,I,U,O){if(U=d(U)&&U,!N)if(B==="y")N=O.year;else if(B==="m")N=O.month;else if(B==="d")N=O.dayMonth+`
5`+O.year;else return L(F,B)+`
6`+f(O.dayMonthYear,F,I,U);return f(N,F,I,U)};var z=3*t;Y.incrementMonth=function(F,N,B){B=d(B)&&B;var I=S(F,t);if(F=Math.round(F-I),B)try{var U=Math.round(F/t)+n,O=a.getComponentMethod("calendars","getCal")(B),X=O.fromJD(U);return N%12?O.add(X,N,"m"):O.add(X,N/12,"y"),(X.toJD()-n)*t+I}catch{x.error("invalid ms "+F+" in calendar "+B)}var J=new Date(F+z);return J.setUTCMonth(J.getUTCMonth()+N)+I-z},Y.findExactDates=function(F,N){for(var B=0,I=0,U=0,O=0,X,J,se=d(N)&&a.getComponentMethod("calendars","getCal")(N),le=0;le<F.length;le++){if(J=F[le],!p(J)){O++;continue}if(!(J%t))if(se)try{X=se.fromJD(J/t+n),X.day()===1?X.month()===1?B++:I++:U++}catch{}else X=new Date(J),X.getUTCDate()===1?X.getUTCMonth()===0?B++:I++:U++}I+=B,U+=I;var ce=F.length-O;return{exactYears:B/ce,exactMonths:I/ce,exactDays:U/ce}}}}),sy=De({"src/lib/identity.js"(Y,H){"use strict";H.exports=function(x){return x}}}),__=De({"src/lib/search.js"(Y){"use strict";var H=vn(),p=Yo(),x=sy(),S=zn().BADNUM,E=1e-9;Y.findBin=function(i,n,a){if(H(n.start))return a?Math.ceil((i-n.start)/n.size-E)-1:Math.floor((i-n.start)/n.size+E);var s=0,h=n.length,c=0,m=h>1?(n[h-1]-n[0])/(h-1):1,d,T;for(m>=0?T=a?e:t:T=a?o:r,i+=m*E*(a?-1:1)*(m>=0?1:-1);s<h&&c++<100;)d=Math.floor((s+h)/2),T(n[d],i)?s=d+1:h=d;return c>90&&p.log("Long binary search..."),s-1};function e(i,n){return i<n}function t(i,n){return i<=n}function r(i,n){return i>n}function o(i,n){return i>=n}Y.sorterAsc=function(i,n){return i-n},Y.sorterDes=function(i,n){return n-i},Y.distinctVals=function(i){var n=i.slice();n.sort(Y.sorterAsc);var a;for(a=n.length-1;a>-1&&n[a]===S;a--);for(var s=n[a]-n[0]||1,h=s/(a||1)/1e4,c=[],m,d=0;d<=a;d++){var T=n[d],l=T-m;m===void 0?(c.push(T),m=T):l>h&&(s=Math.min(s,l),c.push(T),m=T)}return{vals:c,minDiff:s}},Y.roundUp=function(i,n,a){for(var s=0,h=n.length-1,c,m=0,d=a?0:1,T=a?1:0,l=a?Math.ceil:Math.floor;s<h&&m++<100;)c=l((s+h)/2),n[c]<=i?s=c+d:h=c-T;return n[s]},Y.sort=function(i,n){for(var a=0,s=0,h=1;h<i.length;h++){var c=n(i[h],i[h-1]);if(c<0?a=1:c>0&&(s=1),a&&s)return i.sort(n)}return s?i:i.reverse()},Y.findIndexOfMin=function(i,n){n=n||x;for(var a=1/0,s,h=0;h<i.length;h++){var c=n(i[h]);c<a&&(a=c,s=h)}return s}}}),jp=De({"src/lib/sort_object_keys.js"(Y,H){"use strict";H.exports=function(x){return Object.keys(x).sort()}}}),mM=De({"src/lib/stats.js"(Y){"use strict";var H=vn(),p=vl().isArrayOrTypedArray;Y.aggNums=function(x,S,E,e){var t,r;if((!e||e>E.length)&&(e=E.length),H(S)||(S=!1),p(E[0])){for(r=new Array(e),t=0;t<e;t++)r[t]=Y.aggNums(x,S,E[t]);E=r}for(t=0;t<e;t++)H(S)?H(E[t])&&(S=x(+S,+E[t])):S=E[t];return S},Y.len=function(x){return Y.aggNums(function(S){return S+1},0,x)},Y.mean=function(x,S){return S||(S=Y.len(x)),Y.aggNums(function(E,e){return E+e},0,x)/S},Y.geometricMean=function(x,S){return S||(S=Y.len(x)),Math.pow(Y.aggNums(function(E,e){return E*e},1,x),1/S)},Y.midRange=function(x){if(!(x===void 0||x.length===0))return(Y.aggNums(Math.max,null,x)+Y.aggNums(Math.min,null,x))/2},Y.variance=function(x,S,E){return S||(S=Y.len(x)),H(E)||(E=Y.mean(x,S)),Y.aggNums(function(e,t){return e+Math.pow(t-E,2)},0,x)/S},Y.stdev=function(x,S,E){return Math.sqrt(Y.variance(x,S,E))},Y.median=function(x){var S=x.slice().sort();return Y.interp(S,.5)},Y.interp=function(x,S){if(!H(S))throw"n should be a finite number";if(S=S*x.length-.5,S<0)return x[0];if(S>x.length-1)return x[x.length-1];var E=S%1;return E*x[Math.ceil(S)]+(1-E)*x[Math.floor(S)]}}}),gM=De({"src/lib/angles.js"(Y,H){"use strict";var p=gf(),x=p.mod,S=p.modHalf,E=Math.PI,e=2*E;function t(T){return T/180*E}function r(T){return T/E*180}function o(T){return Math.abs(T[1]-T[0])>e-1e-14}function i(T,l){return S(l-T,e)}function n(T,l){return Math.abs(i(T,l))}function a(T,l){if(o(l))return!0;var _,w;l[0]<l[1]?(_=l[0],w=l[1]):(_=l[1],w=l[0]),_=x(_,e),w=x(w,e),_>w&&(w+=e);var A=x(T,e),M=A+e;return A>=_&&A<=w||M>=_&&M<=w}function s(T,l,_,w){if(!a(l,w))return!1;var A,M;return _[0]<_[1]?(A=_[0],M=_[1]):(A=_[1],M=_[0]),T>=A&&T<=M}function h(T,l,_,w,A,M,g){A=A||0,M=M||0;var b=o([_,w]),v,u,y,f,R;b?(v=0,u=E,y=e):_<w?(v=_,y=w):(v=w,y=_),T<l?(f=T,R=l):(f=l,R=T);function L(B,I){return[B*Math.cos(I)+A,M-B*Math.sin(I)]}var z=Math.abs(y-v)<=E?0:1;function F(B,I,U){return"A"+[B,B]+" "+[0,z,U]+" "+L(B,I)}var N;return b?f===null?N="M"+L(R,v)+F(R,u,0)+F(R,y,0)+"Z":N="M"+L(f,v)+F(f,u,0)+F(f,y,0)+"ZM"+L(R,v)+F(R,u,1)+F(R,y,1)+"Z":f===null?(N="M"+L(R,v)+F(R,y,0),g&&(N+="L0,0Z")):N="M"+L(f,v)+"L"+L(R,v)+F(R,y,0)+"L"+L(f,y)+F(f,v,1)+"Z",N}function c(T,l,_,w,A){return h(null,T,l,_,w,A,0)}function m(T,l,_,w,A){return h(null,T,l,_,w,A,1)}function d(T,l,_,w,A,M){return h(T,l,_,w,A,M,1)}H.exports={deg2rad:t,rad2deg:r,angleDelta:i,angleDist:n,isFullCircle:o,isAngleInsideSector:a,isPtInsideSector:s,pathArc:c,pathSector:m,pathAnnulus:d}}}),yM=De({"src/lib/anchor_utils.js"(Y){"use strict";Y.isLeftAnchor=function(p){return p.xanchor==="left"||p.xanchor==="auto"&&p.x<=1/3},Y.isCenterAnchor=function(p){return p.xanchor==="center"||p.xanchor==="auto"&&p.x>1/3&&p.x<2/3},Y.isRightAnchor=function(p){return p.xanchor==="right"||p.xanchor==="auto"&&p.x>=2/3},Y.isTopAnchor=function(p){return p.yanchor==="top"||p.yanchor==="auto"&&p.y>=2/3},Y.isMiddleAnchor=function(p){return p.yanchor==="middle"||p.yanchor==="auto"&&p.y>1/3&&p.y<2/3},Y.isBottomAnchor=function(p){return p.yanchor==="bottom"||p.yanchor==="auto"&&p.y<=1/3}}}),_M=De({"src/lib/geometry2d.js"(Y){"use strict";var H=gf().mod;Y.segmentsIntersect=p;function p(t,r,o,i,n,a,s,h){var c=o-t,m=n-t,d=s-n,T=i-r,l=a-r,_=h-a,w=c*_-d*T;if(w===0)return null;var A=(m*_-d*l)/w,M=(m*T-c*l)/w;return M<0||M>1||A<0||A>1?null:{x:t+c*A,y:r+T*A}}Y.segmentDistance=function(r,o,i,n,a,s,h,c){if(p(r,o,i,n,a,s,h,c))return 0;var m=i-r,d=n-o,T=h-a,l=c-s,_=m*m+d*d,w=T*T+l*l,A=Math.min(x(m,d,_,a-r,s-o),x(m,d,_,h-r,c-o),x(T,l,w,r-a,o-s),x(T,l,w,i-a,n-s));return Math.sqrt(A)};function x(t,r,o,i,n){var a=i*t+n*r;if(a<0)return i*i+n*n;if(a>o){var s=i-t,h=n-r;return s*s+h*h}else{var c=i*r-n*t;return c*c/o}}var S,E,e;Y.getTextLocation=function(r,o,i,n){if((r!==E||n!==e)&&(S={},E=r,e=n),S[i])return S[i];var a=r.getPointAtLength(H(i-n/2,o)),s=r.getPointAtLength(H(i+n/2,o)),h=Math.atan((s.y-a.y)/(s.x-a.x)),c=r.getPointAtLength(H(i,o)),m=(c.x*4+a.x+s.x)/6,d=(c.y*4+a.y+s.y)/6,T={x:m,y:d,theta:h};return S[i]=T,T},Y.clearLocationCache=function(){E=null},Y.getVisibleSegment=function(r,o,i){var n=o.left,a=o.right,s=o.top,h=o.bottom,c=0,m=r.getTotalLength(),d=m,T,l;function _(A){var M=r.getPointAtLength(A);A===0?T=M:A===m&&(l=M);var g=M.x<n?n-M.x:M.x>a?M.x-a:0,b=M.y<s?s-M.y:M.y>h?M.y-h:0;return Math.sqrt(g*g+b*b)}for(var w=_(c);w;){if(c+=w+i,c>d)return;w=_(c)}for(w=_(d);w;){if(d-=w+i,c>d)return;w=_(d)}return{min:c,max:d,len:d-c,total:m,isClosed:c===0&&d===m&&Math.abs(T.x-l.x)<.1&&Math.abs(T.y-l.y)<.1}},Y.findPointOnPath=function(r,o,i,n){n=n||{};for(var a=n.pathLength||r.getTotalLength(),s=n.tolerance||.001,h=n.iterationLimit||30,c=r.getPointAtLength(0)[i]>r.getPointAtLength(a)[i]?-1:1,m=0,d=0,T=a,l,_,w;m<h;){if(l=(d+T)/2,_=r.getPointAtLength(l),w=_[i]-o,Math.abs(w)<s)return _;c*w>0?T=l:d=l,m++}return _}}}),x_=De({"src/lib/throttle.js"(Y){"use strict";var H={};Y.throttle=function(S,E,e){var t=H[S],r=Date.now();if(!t){for(var o in H)H[o].ts<r-6e4&&delete H[o];t=H[S]={ts:0,timer:null}}p(t);function i(){e(),t.ts=Date.now(),t.onDone&&(t.onDone(),t.onDone=null)}if(r>t.ts+E){i();return}t.timer=setTimeout(function(){i(),t.timer=null},E)},Y.done=function(x){var S=H[x];return!S||!S.timer?Promise.resolve():new Promise(function(E){var e=S.onDone;S.onDone=function(){e&&e(),E(),S.onDone=null}})},Y.clear=function(x){if(x)p(H[x]),delete H[x];else for(var S in H)Y.clear(S)};function p(x){x&&x.timer!==null&&(clearTimeout(x.timer),x.timer=null)}}}),xM=De({"src/lib/clear_responsive.js"(Y,H){"use strict";H.exports=function(x){x._responsiveChartHandler&&(window.removeEventListener("resize",x._responsiveChartHandler),delete x._responsiveChartHandler)}}}),bM=De({"node_modules/is-mobile/index.js"(Y,H){"use strict";H.exports=E,H.exports.isMobile=E,H.exports.default=E;var p=/(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,x=/CrOS/,S=/android|ipad|playbook|silk/i;function E(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=p.test(t)&&!x.test(t)||!!e.tablet&&S.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}}}),wM=De({"src/lib/preserve_drawing_buffer.js"(Y,H){"use strict";var p=vn(),x=bM();H.exports=function(e){var t;if(e&&e.hasOwnProperty("userAgent")?t=e.userAgent:t=S(),typeof t!="string")return!0;var r=x({ua:{headers:{"user-agent":t}},tablet:!0,featureDetect:!1});if(!r)for(var o=t.split(" "),i=1;i<o.length;i++){var n=o[i];if(n.indexOf("Safari")!==-1)for(var a=i-1;a>-1;a--){var s=o[a];if(s.slice(0,8)==="Version/"){var h=s.slice(8).split(".")[0];if(p(h)&&(h=+h),h>=13)return!0}}}return r};function S(){var E;return typeof navigator<"u"&&(E=navigator.userAgent),E&&E.headers&&typeof E.headers["user-agent"]=="string"&&(E=E.headers["user-agent"]),E}}}),TM=De({"src/lib/make_trace_groups.js"(Y,H){"use strict";var p=za();H.exports=function(S,E,e){var t=S.selectAll("g."+e.replace(/\s/g,".")).data(E,function(o){return o[0].trace.uid});t.exit().remove(),t.enter().append("g").attr("class",e),t.order();var r=S.classed("rangeplot")?"nodeRangePlot3":"node3";return t.each(function(o){o[0][r]=p.select(this)}),t}}}),AM=De({"src/lib/localize.js"(Y,H){"use strict";var p=Mo();H.exports=function(S,E){for(var e=S._context.locale,t=0;t<2;t++){for(var r=S._context.locales,o=0;o<2;o++){var i=(r[e]||{}).dictionary;if(i){var n=i[E];if(n)return n}r=p.localeRegistry}var a=e.split("-")[0];if(a===e)break;e=a}return E}}}),Bw=De({"src/lib/filter_unique.js"(Y,H){"use strict";H.exports=function(x){for(var S={},E=[],e=0,t=0;t<x.length;t++){var r=x[t];S[r]!==1&&(S[r]=1,E[e++]=r)}return E}}}),SM=De({"src/lib/filter_visible.js"(Y,H){"use strict";H.exports=function(e){for(var t=S(e)?x:p,r=[],o=0;o<e.length;o++){var i=e[o];t(i)&&r.push(i)}return r};function p(E){return E.visible===!0}function x(E){var e=E[0].trace;return e.visible===!0&&e._length!==0}function S(E){return Array.isArray(E)&&Array.isArray(E[0])&&E[0][0]&&E[0][0].trace}}}),MM=De({"src/lib/increment.js"(Y,H){"use strict";H.exports=function(x,S){if(!S)return x;var E=1/Math.abs(S),e=E>1?(E*x+E*S)/E:x+S,t=String(e).length;if(t>16){var r=String(S).length,o=String(x).length;if(t>=o+r){var i=parseFloat(e).toPrecision(12);i.indexOf("e+")===-1&&(e=+i)}}return e}}}),EM=De({"src/lib/clean_number.js"(Y,H){"use strict";var p=vn(),x=zn().BADNUM,S=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;H.exports=function(e){return typeof e=="string"&&(e=e.replace(S,"")),p(e)?Number(e):x}}}),ui=De({"src/lib/index.js"(Y,H){"use strict";var p=za(),x=Do().utcFormat,S=Tn().format,E=vn(),e=zn(),t=e.FP_SAFE,r=-t,o=e.BADNUM,i=H.exports={};i.adjustFormat=function(j){return!j||/^\d[.]\df/.test(j)||/[.]\d%/.test(j)?j:j==="0.f"?"~f":/^\d%/.test(j)?"~%":/^\ds/.test(j)?"~s":!/^[~,.0$]/.test(j)&&/[&fps]/.test(j)?"~"+j:j};var n={};i.warnBadFormat=function(ie){var j=String(ie);n[j]||(n[j]=1,i.warn('encountered bad format: "'+j+'"'))},i.noFormat=function(ie){return String(ie)},i.numberFormat=function(ie){var j;try{j=S(i.adjustFormat(ie))}catch{return i.warnBadFormat(ie),i.noFormat}return j},i.nestedProperty=bu(),i.keyedContainer=Tf(),i.relativeAttr=Hc(),i.isPlainObject=fu(),i.toLogRange=Ac(),i.relinkPrivateKeys=af();var a=vl();i.isArrayBuffer=a.isArrayBuffer,i.isTypedArray=a.isTypedArray,i.isArrayOrTypedArray=a.isArrayOrTypedArray,i.isArray1D=a.isArray1D,i.ensureArray=a.ensureArray,i.concat=a.concat,i.maxRowLength=a.maxRowLength,i.minRowLength=a.minRowLength;var s=gf();i.mod=s.mod,i.modHalf=s.modHalf;var h=Rn();i.valObjectMeta=h.valObjectMeta,i.coerce=h.coerce,i.coerce2=h.coerce2,i.coerceFont=h.coerceFont,i.coercePattern=h.coercePattern,i.coerceHoverinfo=h.coerceHoverinfo,i.coerceSelectionMarkerOpacity=h.coerceSelectionMarkerOpacity,i.validate=h.validate;var c=pM();i.dateTime2ms=c.dateTime2ms,i.isDateTime=c.isDateTime,i.ms2DateTime=c.ms2DateTime,i.ms2DateTimeLocal=c.ms2DateTimeLocal,i.cleanDate=c.cleanDate,i.isJSDate=c.isJSDate,i.formatDate=c.formatDate,i.incrementMonth=c.incrementMonth,i.dateTick0=c.dateTick0,i.dfltRange=c.dfltRange,i.findExactDates=c.findExactDates,i.MIN_MS=c.MIN_MS,i.MAX_MS=c.MAX_MS;var m=__();i.findBin=m.findBin,i.sorterAsc=m.sorterAsc,i.sorterDes=m.sorterDes,i.distinctVals=m.distinctVals,i.roundUp=m.roundUp,i.sort=m.sort,i.findIndexOfMin=m.findIndexOfMin,i.sortObjectKeys=jp();var d=mM();i.aggNums=d.aggNums,i.len=d.len,i.mean=d.mean,i.geometricMean=d.geometricMean,i.median=d.median,i.midRange=d.midRange,i.variance=d.variance,i.stdev=d.stdev,i.interp=d.interp;var T=m_();i.init2dArray=T.init2dArray,i.transposeRagged=T.transposeRagged,i.dot=T.dot,i.translationMatrix=T.translationMatrix,i.rotationMatrix=T.rotationMatrix,i.rotationXYMatrix=T.rotationXYMatrix,i.apply3DTransform=T.apply3DTransform,i.apply2DTransform=T.apply2DTransform,i.apply2DTransform2=T.apply2DTransform2,i.convertCssMatrix=T.convertCssMatrix,i.inverseTransformMatrix=T.inverseTransformMatrix;var l=gM();i.deg2rad=l.deg2rad,i.rad2deg=l.rad2deg,i.angleDelta=l.angleDelta,i.angleDist=l.angleDist,i.isFullCircle=l.isFullCircle,i.isAngleInsideSector=l.isAngleInsideSector,i.isPtInsideSector=l.isPtInsideSector,i.pathArc=l.pathArc,i.pathSector=l.pathSector,i.pathAnnulus=l.pathAnnulus;var _=yM();i.isLeftAnchor=_.isLeftAnchor,i.isCenterAnchor=_.isCenterAnchor,i.isRightAnchor=_.isRightAnchor,i.isTopAnchor=_.isTopAnchor,i.isMiddleAnchor=_.isMiddleAnchor,i.isBottomAnchor=_.isBottomAnchor;var w=_M();i.segmentsIntersect=w.segmentsIntersect,i.segmentDistance=w.segmentDistance,i.getTextLocation=w.getTextLocation,i.clearLocationCache=w.clearLocationCache,i.getVisibleSegment=w.getVisibleSegment,i.findPointOnPath=w.findPointOnPath;var A=Xo();i.extendFlat=A.extendFlat,i.extendDeep=A.extendDeep,i.extendDeepAll=A.extendDeepAll,i.extendDeepNoArrays=A.extendDeepNoArrays;var M=Yo();i.log=M.log,i.warn=M.warn,i.error=M.error;var g=Uo();i.counterRegex=g.counter;var b=x_();i.throttle=b.throttle,i.throttleDone=b.done,i.clearThrottle=b.clear;var v=ny();i.getGraphDiv=v.getGraphDiv,i.isPlotDiv=v.isPlotDiv,i.removeElement=v.removeElement,i.addStyleRule=v.addStyleRule,i.addRelatedStyleRule=v.addRelatedStyleRule,i.deleteRelatedStyleRule=v.deleteRelatedStyleRule,i.setStyleOnHover=v.setStyleOnHover,i.getFullTransformMatrix=v.getFullTransformMatrix,i.getElementTransformMatrix=v.getElementTransformMatrix,i.getElementAndAncestors=v.getElementAndAncestors,i.equalDomRects=v.equalDomRects,i.clearResponsive=xM(),i.preserveDrawingBuffer=wM(),i.makeTraceGroups=TM(),i._=AM(),i.notifier=jn(),i.filterUnique=Bw(),i.filterVisible=SM(),i.pushUnique=Sc(),i.increment=MM(),i.cleanNumber=EM(),i.ensureNumber=function(j){return E(j)?(j=Number(j),j>t||j<r?o:j):o},i.isIndex=function(ie,j){return j!==void 0&&ie>=j?!1:E(ie)&&ie>=0&&ie%1===0},i.noop=As(),i.identity=sy(),i.repeat=function(ie,j){for(var Q=new Array(j),re=0;re<j;re++)Q[re]=ie;return Q},i.swapAttrs=function(ie,j,Q,re){Q||(Q="x"),re||(re="y");for(var ue=0;ue<j.length;ue++){var _e=j[ue],we=i.nestedProperty(ie,_e.replace("?",Q)),Re=i.nestedProperty(ie,_e.replace("?",re)),ze=we.get();we.set(Re.get()),Re.set(ze)}},i.raiseToTop=function(j){j.parentNode.appendChild(j)},i.cancelTransition=function(ie){return ie.transition().duration(0)},i.constrain=function(ie,j,Q){return j>Q?Math.max(Q,Math.min(j,ie)):Math.max(j,Math.min(Q,ie))},i.bBoxIntersect=function(ie,j,Q){return Q=Q||0,ie.left<=j.right+Q&&j.left<=ie.right+Q&&ie.top<=j.bottom+Q&&j.top<=ie.bottom+Q},i.simpleMap=function(ie,j,Q,re,ue){for(var _e=ie.length,we=new Array(_e),Re=0;Re<_e;Re++)we[Re]=j(ie[Re],Q,re,ue);return we},i.randstr=function ie(j,Q,re,ue){if(re||(re=16),Q===void 0&&(Q=24),Q<=0)return"0";var _e=Math.log(Math.pow(2,Q))/Math.log(re),we="",Re,ze,Xe;for(Re=2;_e===1/0;Re*=2)_e=Math.log(Math.pow(2,Q/Re))/Math.log(re)*Re;var tt=_e-Math.floor(_e);for(Re=0;Re<Math.floor(_e);Re++)Xe=Math.floor(Math.random()*re).toString(re),we=Xe+we;tt&&(ze=Math.pow(re,tt),Xe=Math.floor(Math.random()*ze).toString(re),we=Xe+we);var it=parseInt(we,re);return j&&j[we]||it!==1/0&&it>=Math.pow(2,Q)?ue>10?(i.warn("randstr failed uniqueness"),we):ie(j,Q,re,(ue||0)+1):we},i.OptionControl=function(ie,j){ie||(ie={}),j||(j="opt");var Q={};return Q.optionList=[],Q._newoption=function(re){re[j]=ie,Q[re.name]=re,Q.optionList.push(re)},Q["_"+j]=ie,Q},i.smooth=function(ie,j){if(j=Math.round(j)||0,j<2)return ie;var Q=ie.length,re=2*Q,ue=2*j-1,_e=new Array(ue),we=new Array(Q),Re,ze,Xe,tt;for(Re=0;Re<ue;Re++)_e[Re]=(1-Math.cos(Math.PI*(Re+1)/j))/(2*j);for(Re=0;Re<Q;Re++){for(tt=0,ze=0;ze<ue;ze++)Xe=Re+ze+1-j,Xe<-Q?Xe-=re*Math.round(Xe/re):Xe>=re&&(Xe-=re*Math.floor(Xe/re)),Xe<0?Xe=-1-Xe:Xe>=Q&&(Xe=re-1-Xe),tt+=ie[Xe]*_e[ze];we[Re]=tt}return we},i.syncOrAsync=function(ie,j,Q){var re,ue;function _e(){return i.syncOrAsync(ie,j,Q)}for(;ie.length;)if(ue=ie.splice(0,1)[0],re=ue(j),re&&re.then)return re.then(_e);return Q&&Q(j)},i.stripTrailingSlash=function(ie){return ie.slice(-1)==="/"?ie.slice(0,-1):ie},i.noneOrAll=function(ie,j,Q){if(ie){var re=!1,ue=!0,_e,we;for(_e=0;_e<Q.length;_e++)we=ie[Q[_e]],we!=null?re=!0:ue=!1;if(re&&!ue)for(_e=0;_e<Q.length;_e++)ie[Q[_e]]=j[Q[_e]]}},i.mergeArray=function(ie,j,Q,re){var ue=typeof re=="function";if(i.isArrayOrTypedArray(ie))for(var _e=Math.min(ie.length,j.length),we=0;we<_e;we++){var Re=ie[we];j[we][Q]=ue?re(Re):Re}},i.mergeArrayCastPositive=function(ie,j,Q){return i.mergeArray(ie,j,Q,function(re){var ue=+re;return isFinite(ue)&&ue>0?ue:0})},i.fillArray=function(ie,j,Q,re){if(re=re||i.identity,i.isArrayOrTypedArray(ie))for(var ue=0;ue<j.length;ue++)j[ue][Q]=re(ie[ue])},i.castOption=function(ie,j,Q,re){re=re||i.identity;var ue=i.nestedProperty(ie,Q).get();return i.isArrayOrTypedArray(ue)?Array.isArray(j)&&i.isArrayOrTypedArray(ue[j[0]])?re(ue[j[0]][j[1]]):re(ue[j]):ue},i.extractOption=function(ie,j,Q,re){if(Q in ie)return ie[Q];var ue=i.nestedProperty(j,re).get();if(!Array.isArray(ue))return ue};function u(ie){var j={};for(var Q in ie)for(var re=ie[Q],ue=0;ue<re.length;ue++)j[re[ue]]=+Q;return j}i.tagSelected=function(ie,j,Q){var re=j.selectedpoints,ue=j._indexToPoints,_e;ue&&(_e=u(ue));function we(it){return it!==void 0&&it<ie.length}for(var Re=0;Re<re.length;Re++){var ze=re[Re];if(i.isIndex(ze)||i.isArrayOrTypedArray(ze)&&i.isIndex(ze[0])&&i.isIndex(ze[1])){var Xe=_e?_e[ze]:ze,tt=Q?Q[Xe]:Xe;we(tt)&&(ie[tt].selected=1)}}},i.selIndices2selPoints=function(ie){var j=ie.selectedpoints,Q=ie._indexToPoints;if(Q){for(var re=u(Q),ue=[],_e=0;_e<j.length;_e++){var we=j[_e];if(i.isIndex(we)){var Re=re[we];i.isIndex(Re)&&ue.push(Re)}}return ue}else return j},i.getTargetArray=function(ie,j){var Q=j.target;if(typeof Q=="string"&&Q){var re=i.nestedProperty(ie,Q).get();return i.isArrayOrTypedArray(re)?re:!1}else if(i.isArrayOrTypedArray(Q))return Q;return!1};function y(ie,j,Q){var re={};typeof j!="object"&&(j={});var ue=Q==="pieLike"?-1:3,_e=Object.keys(ie),we,Re,ze;for(we=0;we<_e.length;we++)Re=_e[we],ze=ie[Re],!(Re.charAt(0)==="_"||typeof ze=="function")&&(Re==="module"?re[Re]=ze:Array.isArray(ze)?Re==="colorscale"||ue===-1?re[Re]=ze.slice():re[Re]=ze.slice(0,ue):i.isTypedArray(ze)?ue===-1?re[Re]=ze.subarray():re[Re]=ze.subarray(0,ue):ze&&typeof ze=="object"?re[Re]=y(ie[Re],j[Re],Q):re[Re]=ze);for(_e=Object.keys(j),we=0;we<_e.length;we++)Re=_e[we],ze=j[Re],(typeof ze!="object"||!(Re in re)||typeof re[Re]!="object")&&(re[Re]=ze);return re}i.minExtend=y,i.titleCase=function(ie){return ie.charAt(0).toUpperCase()+ie.slice(1)},i.containsAny=function(ie,j){for(var Q=0;Q<j.length;Q++)if(ie.indexOf(j[Q])!==-1)return!0;return!1};var f=/Version\/[\d\.]+.*Safari/;i.isSafari=function(){return f.test(window.navigator.userAgent)};var R=/iPad|iPhone|iPod/;i.isIOS=function(){return R.test(window.navigator.userAgent)};var L=/Macintosh.+AppleWebKit.+Gecko\)$/;i.isMacWKWebView=()=>L.test(window.navigator.userAgent);var z=/Firefox\/(\d+)\.\d+/;i.getFirefoxVersion=function(){var ie=z.exec(window.navigator.userAgent);if(ie&&ie.length===2){var j=parseInt(ie[1]);if(!isNaN(j))return j}return null},i.isD3Selection=function(ie){return ie instanceof p.selection},i.ensureSingle=function(ie,j,Q,re){var ue=ie.select(j+(Q?"."+Q:""));if(ue.size())return ue;var _e=ie.append(j);return Q&&_e.classed(Q,!0),re&&_e.call(re),_e},i.ensureSingleById=function(ie,j,Q,re){var ue=ie.select(j+"#"+Q);if(ue.size())return ue;var _e=ie.append(j).attr("id",Q);return re&&_e.call(re),_e},i.objectFromPath=function(ie,j){for(var Q=ie.split("."),re,ue=re={},_e=0;_e<Q.length;_e++){var we=Q[_e],Re=null,ze=Q[_e].match(/(.*)\[([0-9]+)\]/);ze?(we=ze[1],Re=ze[2],re=re[we]=[],_e===Q.length-1?re[Re]=j:re[Re]={},re=re[Re]):(_e===Q.length-1?re[we]=j:re[we]={},re=re[we])}return ue};var F=/^([^\[\.]+)\.(.+)?/,N=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;function B(ie){return ie.slice(0,2)==="__"}i.expandObjectPaths=function(ie){var j,Q,re,ue,_e,we,Re;if(typeof ie=="object"&&!Array.isArray(ie)){for(Q in ie)if(ie.hasOwnProperty(Q))if(j=Q.match(F)){if(ue=ie[Q],re=j[1],B(re))continue;delete ie[Q],ie[re]=i.extendDeepNoArrays(ie[re]||{},i.objectFromPath(Q,i.expandObjectPaths(ue))[re])}else if(j=Q.match(N)){if(ue=ie[Q],re=j[1],B(re))continue;if(_e=parseInt(j[2]),delete ie[Q],ie[re]=ie[re]||[],j[3]===".")Re=j[4],we=ie[re][_e]=ie[re][_e]||{},i.extendDeepNoArrays(we,i.objectFromPath(Re,i.expandObjectPaths(ue)));else{if(B(re))continue;ie[re][_e]=i.expandObjectPaths(ue)}}else{if(B(Q))continue;ie[Q]=i.expandObjectPaths(ie[Q])}}return ie},i.numSeparate=function(ie,j,Q){if(Q||(Q=!1),typeof j!="string"||j.length===0)throw new Error("Separator string required for formatting!");typeof ie=="number"&&(ie=String(ie));var re=/(\d+)(\d{3})/,ue=j.charAt(0),_e=j.charAt(1),we=ie.split("."),Re=we[0],ze=we.length>1?ue+we[1]:"";if(_e&&(we.length>1||Re.length>4||Q))for(;re.test(Re);)Re=Re.replace(re,"$1"+_e+"$2");return Re+ze},i.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var I=/^\w*$/;i.templateString=function(ie,j){var Q={};return ie.replace(i.TEMPLATE_STRING_REGEX,function(re,ue){var _e;return I.test(ue)?_e=j[ue]:(Q[ue]=Q[ue]||i.nestedProperty(j,ue).get,_e=Q[ue](!0)),_e!==void 0?_e:""})};var U={max:10,count:0,name:"hovertemplate"};i.hovertemplateString=ie=>ce(yi(Ri({},ie),{opts:U}));var O={max:10,count:0,name:"texttemplate"};i.texttemplateString=ie=>ce(yi(Ri({},ie),{opts:O}));var X=/^(\S+)([\*\/])(-?\d+(\.\d+)?)$/;function J(ie){var j=ie.match(X);return j?{key:j[1],op:j[2],number:Number(j[3])}:{key:ie,op:null,number:null}}var se={max:10,count:0,name:"texttemplate",parseMultDiv:!0};i.texttemplateStringForShapes=ie=>ce(yi(Ri({},ie),{opts:se}));var le=/^[:|\|]/;function ce({data:ie=[],locale:j,fallback:Q,labels:re={},opts:ue,template:_e}){return _e.replace(i.TEMPLATE_STRING_REGEX,(we,Re,ze)=>{let Xe=["xother","yother"].includes(Re),tt=["_xother","_yother"].includes(Re),it=["_xother_","_yother_"].includes(Re),et=["xother_","yother_"].includes(Re),nt=Xe||tt||et||it;(tt||it)&&(Re=Re.substring(1)),(et||it)&&(Re=Re.substring(0,Re.length-1));let Ae=null,me=null;if(ue.parseMultDiv){var fe=J(Re);Re=fe.key,Ae=fe.op,me=fe.number}let Be;if(nt){if(re[Re]===void 0)return"";Be=re[Re]}else for(let It of ie)if(It){if(It.hasOwnProperty(Re)){Be=It[Re];break}if(I.test(Re)||(Be=i.nestedProperty(It,Re).get(!0)),Be!==void 0)break}if(Be===void 0){let{count:It,max:Pt,name:Vt}=ue,Wt=Q===!1?we:Q;return It<Pt&&i.warn([`Variable '${Re}' in ${Vt} could not be found!`,"Please verify that the template is correct.",`Using value: '${Wt}'.`].join(" ")),It===Pt&&i.warn(`Too many '${Vt}' warnings - additional warnings will be suppressed.`),ue.count++,Wt}if(Ae==="*"&&(Be*=me),Ae==="/"&&(Be/=me),ze){var Qe;if(ze[0]===":"&&(Qe=j?j.numberFormat:i.numberFormat,Be!==""&&(Be=Qe(ze.replace(le,""))(Be))),ze[0]==="|"){Qe=j?j.timeFormat:x;var at=i.dateTime2ms(Be);Be=i.formatDate(at,ze.replace(le,""),!1,Qe)}}else{var $e=Re+"Label";re.hasOwnProperty($e)&&(Be=re[$e])}return nt&&(Be="("+Be+")",(tt||it)&&(Be=" "+Be),(et||it)&&(Be=Be+" ")),Be})}var q=48,Z=57;i.subplotSort=function(ie,j){for(var Q=Math.min(ie.length,j.length)+1,re=0,ue=0,_e=0;_e<Q;_e++){var we=ie.charCodeAt(_e)||0,Re=j.charCodeAt(_e)||0,ze=we>=q&&we<=Z,Xe=Re>=q&&Re<=Z;if(ze&&(re=10*re+we-q),Xe&&(ue=10*ue+Re-q),!ze||!Xe){if(re!==ue)return re-ue;if(we!==Re)return we-Re}}return ue-re};var ee=2e9;i.seedPseudoRandom=function(){ee=2e9},i.pseudoRandom=function(){var ie=ee;return ee=(69069*ee+1)%4294967296,Math.abs(ee-ie)<429496729?i.pseudoRandom():ee/4294967296},i.fillText=function(ie,j,Q){var re=Array.isArray(Q)?function(we){Q.push(we)}:function(we){Q.text=we},ue=i.extractOption(ie,j,"htx","hovertext");if(i.isValidTextValue(ue))return re(ue);var _e=i.extractOption(ie,j,"tx","text");if(i.isValidTextValue(_e))return re(_e)},i.isValidTextValue=function(ie){return ie||ie===0},i.formatPercent=function(ie,j){j=j||0;for(var Q=(Math.round(100*ie*Math.pow(10,j))*Math.pow(.1,j)).toFixed(j)+"%",re=0;re<j;re++)Q.indexOf(".")!==-1&&(Q=Q.replace("0%","%"),Q=Q.replace(".%","%"));return Q},i.isHidden=function(ie){var j=window.getComputedStyle(ie).display;return!j||j==="none"},i.strTranslate=function(ie,j){return ie||j?"translate("+ie+","+j+")":""},i.strRotate=function(ie){return ie?"rotate("+ie+")":""},i.strScale=function(ie){return ie!==1?"scale("+ie+")":""},i.getTextTransform=function(ie){var j=ie.noCenter,Q=ie.textX,re=ie.textY,ue=ie.targetX,_e=ie.targetY,we=ie.anchorX||0,Re=ie.anchorY||0,ze=ie.rotate,Xe=ie.scale;return Xe?Xe>1&&(Xe=1):Xe=0,i.strTranslate(ue-Xe*(Q+we),_e-Xe*(re+Re))+i.strScale(Xe)+(ze?"rotate("+ze+(j?"":" "+Q+" "+re)+")":"")},i.setTransormAndDisplay=function(ie,j){ie.attr("transform",i.getTextTransform(j)),ie.style("display",j.scale?null:"none")},i.ensureUniformFontSize=function(ie,j){var Q=i.extendFlat({},j);return Q.size=Math.max(j.size,ie._fullLayout.uniformtext.minsize||0),Q},i.join2=function(ie,j,Q){var re=ie.length;return re>1?ie.slice(0,-1).join(j)+Q+ie[re-1]:ie.join(j)},i.bigFont=function(ie){return Math.round(1.2*ie)};var V=i.getFirefoxVersion(),oe=V!==null&&V<86;i.getPositionFromD3Event=function(){return oe?[p.event.layerX,p.event.layerY]:[p.event.offsetX,p.event.offsetY]}}}),kM=De({"build/plotcss.js"(){"use strict";var Y=ui(),H={"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(x in H)p=x.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier"),Y.addStyleRule(p,H[x]);var p,x}}),Ow=De({"node_modules/is-browser/client.js"(Y,H){H.exports=!0}}),Nw=De({"node_modules/has-hover/index.js"(Y,H){"use strict";var p=Ow(),x;typeof window.matchMedia=="function"?x=!window.matchMedia("(hover: none)").matches:x=p,H.exports=x}}),N0=De({"node_modules/events/events.js"(Y,H){"use strict";var p=typeof Reflect=="object"?Reflect:null,x=p&&typeof p.apply=="function"?p.apply:function(M,g,b){return Function.prototype.apply.call(M,g,b)},S;p&&typeof p.ownKeys=="function"?S=p.ownKeys:Object.getOwnPropertySymbols?S=function(M){return Object.getOwnPropertyNames(M).concat(Object.getOwnPropertySymbols(M))}:S=function(M){return Object.getOwnPropertyNames(M)};function E(A){console&&console.warn&&console.warn(A)}var e=Number.isNaN||function(M){return M!==M};function t(){t.init.call(this)}H.exports=t,H.exports.once=l,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._eventsCount=0,t.prototype._maxListeners=void 0;var r=10;function o(A){if(typeof A!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof A)}Object.defineProperty(t,"defaultMaxListeners",{enumerable:!0,get:function(){return r},set:function(A){if(typeof A!="number"||A<0||e(A))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+A+".");r=A}}),t.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},t.prototype.setMaxListeners=function(M){if(typeof M!="number"||M<0||e(M))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+M+".");return this._maxListeners=M,this};function i(A){return A._maxListeners===void 0?t.defaultMaxListeners:A._maxListeners}t.prototype.getMaxListeners=function(){return i(this)},t.prototype.emit=function(M){for(var g=[],b=1;b<arguments.length;b++)g.push(arguments[b]);var v=M==="error",u=this._events;if(u!==void 0)v=v&&u.error===void 0;else if(!v)return!1;if(v){var y;if(g.length>0&&(y=g[0]),y instanceof Error)throw y;var f=new Error("Unhandled error."+(y?" ("+y.message+")":""));throw f.context=y,f}var R=u[M];if(R===void 0)return!1;if(typeof R=="function")x(R,this,g);else for(var L=R.length,z=m(R,L),b=0;b<L;++b)x(z[b],this,g);return!0};function n(A,M,g,b){var v,u,y;if(o(g),u=A._events,u===void 0?(u=A._events=Object.create(null),A._eventsCount=0):(u.newListener!==void 0&&(A.emit("newListener",M,g.listener?g.listener:g),u=A._events),y=u[M]),y===void 0)y=u[M]=g,++A._eventsCount;else if(typeof y=="function"?y=u[M]=b?[g,y]:[y,g]:b?y.unshift(g):y.push(g),v=i(A),v>0&&y.length>v&&!y.warned){y.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+y.length+" "+String(M)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=A,f.type=M,f.count=y.length,E(f)}return A}t.prototype.addListener=function(M,g){return n(this,M,g,!1)},t.prototype.on=t.prototype.addListener,t.prototype.prependListener=function(M,g){return n(this,M,g,!0)};function a(){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 s(A,M,g){var b={fired:!1,wrapFn:void 0,target:A,type:M,listener:g},v=a.bind(b);return v.listener=g,b.wrapFn=v,v}t.prototype.once=function(M,g){return o(g),this.on(M,s(this,M,g)),this},t.prototype.prependOnceListener=function(M,g){return o(g),this.prependListener(M,s(this,M,g)),this},t.prototype.removeListener=function(M,g){var b,v,u,y,f;if(o(g),v=this._events,v===void 0)return this;if(b=v[M],b===void 0)return this;if(b===g||b.listener===g)--this._eventsCount===0?this._events=Object.create(null):(delete v[M],v.removeListener&&this.emit("removeListener",M,b.listener||g));else if(typeof b!="function"){for(u=-1,y=b.length-1;y>=0;y--)if(b[y]===g||b[y].listener===g){f=b[y].listener,u=y;break}if(u<0)return this;u===0?b.shift():d(b,u),b.length===1&&(v[M]=b[0]),v.removeListener!==void 0&&this.emit("removeListener",M,f||g)}return this},t.prototype.off=t.prototype.removeListener,t.prototype.removeAllListeners=function(M){var g,b,v;if(b=this._events,b===void 0)return this;if(b.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):b[M]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete b[M]),this;if(arguments.length===0){var u=Object.keys(b),y;for(v=0;v<u.length;++v)y=u[v],y!=="removeListener"&&this.removeAllListeners(y);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(g=b[M],typeof g=="function")this.removeListener(M,g);else if(g!==void 0)for(v=g.length-1;v>=0;v--)this.removeListener(M,g[v]);return this};function h(A,M,g){var b=A._events;if(b===void 0)return[];var v=b[M];return v===void 0?[]:typeof v=="function"?g?[v.listener||v]:[v]:g?T(v):m(v,v.length)}t.prototype.listeners=function(M){return h(this,M,!0)},t.prototype.rawListeners=function(M){return h(this,M,!1)},t.listenerCount=function(A,M){return typeof A.listenerCount=="function"?A.listenerCount(M):c.call(A,M)},t.prototype.listenerCount=c;function c(A){var M=this._events;if(M!==void 0){var g=M[A];if(typeof g=="function")return 1;if(g!==void 0)return g.length}return 0}t.prototype.eventNames=function(){return this._eventsCount>0?S(this._events):[]};function m(A,M){for(var g=new Array(M),b=0;b<M;++b)g[b]=A[b];return g}function d(A,M){for(;M+1<A.length;M++)A[M]=A[M+1];A.pop()}function T(A){for(var M=new Array(A.length),g=0;g<M.length;++g)M[g]=A[g].listener||A[g];return M}function l(A,M){return new Promise(function(g,b){function v(y){A.removeListener(M,u),b(y)}function u(){typeof A.removeListener=="function"&&A.removeListener("error",v),g([].slice.call(arguments))}w(A,M,u,{once:!0}),M!=="error"&&_(A,v,{once:!0})})}function _(A,M,g){typeof A.on=="function"&&w(A,"error",M,g)}function w(A,M,g,b){if(typeof A.on=="function")b.once?A.once(M,g):A.on(M,g);else if(typeof A.addEventListener=="function")A.addEventListener(M,function v(u){b.once&&A.removeEventListener(M,v),g(u)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof A)}}}),Xm=De({"src/lib/events.js"(Y,H){"use strict";var p=N0().EventEmitter,x={init:function(S){if(S._ev instanceof p)return S;var E=new p,e=new p;return S._ev=E,S._internalEv=e,S.on=E.on.bind(E),S.once=E.once.bind(E),S.removeListener=E.removeListener.bind(E),S.removeAllListeners=E.removeAllListeners.bind(E),S._internalOn=e.on.bind(e),S._internalOnce=e.once.bind(e),S._removeInternalListener=e.removeListener.bind(e),S._removeAllInternalListeners=e.removeAllListeners.bind(e),S.emit=function(t,r){E.emit(t,r),e.emit(t,r)},typeof S.addEventListener=="function"&&S.addEventListener("wheel",()=>{},{passive:!0}),S},triggerHandler:function(S,E,e){var t,r=S._ev;if(!r)return;var o=r._events[E];if(!o)return;function i(a){if(a.listener){if(r.removeListener(E,a.listener),!a.fired)return a.fired=!0,a.listener.apply(r,[e])}else return a.apply(r,[e])}o=Array.isArray(o)?o:[o];var n;for(n=0;n<o.length-1;n++)i(o[n]);return t=i(o[n]),t},purge:function(S){return delete S._ev,delete S.on,delete S.once,delete S.removeListener,delete S.removeAllListeners,delete S.emit,delete S._ev,delete S._internalEv,delete S._internalOn,delete S._internalOnce,delete S._removeInternalListener,delete S._removeAllInternalListeners,S}};H.exports=x}}),CM=De({"src/lib/queue.js"(Y,H){"use strict";var p=ui(),x=Cn().dfltConfig;function S(e,t){for(var r=[],o,i=0;i<t.length;i++)o=t[i],o===e?r[i]=o:typeof o=="object"?r[i]=Array.isArray(o)?p.extendDeep([],o):p.extendDeepAll({},o):r[i]=o;return r}var E={};E.add=function(e,t,r,o,i){var n,a;if(e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},a=e.undoQueue.index,e.autoplay){e.undoQueue.inSequence||(e.autoplay=!1);return}!e.undoQueue.sequence||e.undoQueue.beginSequence?(n={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(a,e.undoQueue.queue.length-a,n),e.undoQueue.index+=1):n=e.undoQueue.queue[a-1],e.undoQueue.beginSequence=!1,n&&(n.undo.calls.unshift(t),n.undo.args.unshift(r),n.redo.calls.push(o),n.redo.args.push(i)),e.undoQueue.queue.length>x.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)},E.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},E.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},E.undo=function(t){var r,o;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,o=0;o<r.undo.calls.length;o++)E.plotDo(t,r.undo.calls[o],r.undo.args[o]);t.undoQueue.inSequence=!1,t.autoplay=!1}},E.redo=function(t){var r,o;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,o=0;o<r.redo.calls.length;o++)E.plotDo(t,r.redo.calls[o],r.redo.args[o]);t.undoQueue.inSequence=!1,t.autoplay=!1,t.undoQueue.index++}},E.plotDo=function(e,t,r){e.autoplay=!0,r=S(e,r),t.apply(null,r)},H.exports=E}}),Uw=De({"src/plots/frame_attributes.js"(Y,H){"use strict";H.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}}}),Ym=De({"src/plot_api/plot_schema.js"(Y){"use strict";var H=Mo(),p=ui(),x=Yl(),S=Wm(),E=Uw(),e=oy(),t=Cn().configAttributes,r=gc(),o=p.extendDeepAll,i=p.isPlainObject,n=p.isArrayOrTypedArray,a=p.nestedProperty,s=p.valObjectMeta,h="_isSubplotObj",c="_isLinkedToArray",m="_arrayAttrRegexps",d="_deprecated",T=[h,c,m,d];Y.IS_SUBPLOT_OBJ=h,Y.IS_LINKED_TO_ARRAY=c,Y.DEPRECATED=d,Y.UNDERSCORE_ATTRS=T,Y.get=function(){var L={};return H.allTypes.forEach(function(z){L[z]=A(z)}),{defs:{valObjects:s,metaKeys:T.concat(["description","role","editType","impliedEdits"]),editType:{traces:r.traces,layout:r.layout},impliedEdits:{}},traces:L,layout:M(),frames:g(),animation:b(e),config:b(t)}},Y.crawl=function(L,z,F,N){var B=F||0;N=N||"",Object.keys(L).forEach(function(I){var U=L[I];if(T.indexOf(I)===-1){var O=(N?N+".":"")+I;z(U,I,L,B,O),!Y.isValObject(U)&&i(U)&&I!=="impliedEdits"&&Y.crawl(U,z,B+1,O)}})},Y.isValObject=function(L){return L&&L.valType!==void 0},Y.findArrayAttributes=function(L){var z=[],F=[],N=[],B,I;function U(X,J,se,le){F=F.slice(0,le).concat([J]),N=N.slice(0,le).concat([X&&X._isLinkedToArray]);var ce=X&&(X.valType==="data_array"||X.arrayOk===!0)&&!(F[le-1]==="colorbar"&&(J==="ticktext"||J==="tickvals"));ce&&O(B,0,"")}function O(X,J,se){var le=X[F[J]],ce=se+F[J];if(J===F.length-1)n(le)&&z.push(I+ce);else if(N[J]){if(Array.isArray(le))for(var q=0;q<le.length;q++)i(le[q])&&O(le[q],J+1,ce+"["+q+"].")}else i(le)&&O(le,J+1,ce+".")}return B=L,I="",Y.crawl(x,U),L._module&&L._module.attributes&&Y.crawl(L._module.attributes,U),z},Y.getTraceValObject=function(L,z){var F=z[0],N=1,B,I,U=L._module;if(U||(U=(H.modules[L.type||x.type.dflt]||{})._module),!U)return!1;if(B=U.attributes,I=B&&B[F],!I){var O=U.basePlotModule;O&&O.attributes&&(I=O.attributes[F])}return I||(I=x[F]),_(I,z,N)},Y.getLayoutValObject=function(L,z){var F=l(L,z[0]);return _(F,z,1)};function l(L,z){var F,N,B,I,U=L._basePlotModules;if(U){var O;for(F=0;F<U.length;F++){if(B=U[F],B.attrRegex&&B.attrRegex.test(z)){if(B.layoutAttrOverrides)return B.layoutAttrOverrides;!O&&B.layoutAttributes&&(O=B.layoutAttributes)}var X=B.baseLayoutAttrOverrides;if(X&&z in X)return X[z]}if(O)return O}var J=L._modules;if(J){for(F=0;F<J.length;F++)if(I=J[F].layoutAttributes,I&&z in I)return I[z]}for(N in H.componentsRegistry){if(B=H.componentsRegistry[N],B.name==="colorscale"&&z.indexOf("coloraxis")===0)return B.layoutAttributes[z];if(!B.schema&&z===B.name)return B.layoutAttributes}return z in S?S[z]:!1}function _(L,z,F){if(!L)return!1;if(L._isLinkedToArray){if(w(z[F]))F++;else if(F<z.length)return!1}for(;F<z.length;F++){var N=L[z[F]];if(i(N))L=N;else break;if(F===z.length-1)break;if(L._isLinkedToArray){if(F++,!w(z[F]))return!1}else if(L.valType==="info_array"){F++;var B=z[F];if(!w(B))return!1;var I=L.items;if(Array.isArray(I)){if(B>=I.length)return!1;if(L.dimensions===2){if(F++,z.length===F)return L;var U=z[F];if(!w(U))return!1;L=I[B][U]}else L=I[B]}else L=I}}return L}function w(L){return L===Math.round(L)&&L>=0}function A(L){var z,F;z=H.modules[L]._module,F=z.basePlotModule;var N={};N.type=null;var B=o({},x),I=o({},z.attributes);Y.crawl(I,function(X,J,se,le,ce){a(B,ce).set(void 0),X===void 0&&a(I,ce).set(void 0)}),o(N,B),H.traceIs(L,"noOpacity")&&delete N.opacity,H.traceIs(L,"showLegend")||(delete N.showlegend,delete N.legendgroup),H.traceIs(L,"noHover")&&(delete N.hoverinfo,delete N.hoverlabel),z.selectPoints||delete N.selectedpoints,o(N,I),F.attributes&&o(N,F.attributes),N.type=L;var U={meta:z.meta||{},categories:z.categories||{},animatable:!!z.animatable,type:L,attributes:b(N)};if(z.layoutAttributes){var O={};o(O,z.layoutAttributes),U.layoutAttributes=b(O)}return z.animatable||Y.crawl(U,function(X){Y.isValObject(X)&&"anim"in X&&delete X.anim}),U}function M(){var L={},z,F;o(L,S);for(z in H.subplotsRegistry)if(F=H.subplotsRegistry[z],!!F.layoutAttributes)if(Array.isArray(F.attr))for(var N=0;N<F.attr.length;N++)f(L,F,F.attr[N]);else{var B=F.attr==="subplot"?F.name:F.attr;f(L,F,B)}for(z in H.componentsRegistry){F=H.componentsRegistry[z];var I=F.schema;if(I&&(I.subplots||I.layout)){var U=I.subplots;if(U&&U.xaxis&&!U.yaxis)for(var O in U.xaxis)delete L.yaxis[O];delete L.xaxis.shift,delete L.xaxis.autoshift}else F.name==="colorscale"?o(L,F.layoutAttributes):F.layoutAttributes&&R(L,F.layoutAttributes,F.name)}return{layoutAttributes:b(L)}}function g(){var L={frames:o({},E)};return b(L),L.frames}function b(L){return v(L),u(L),y(L),L}function v(L){function z(N){return{valType:"string",editType:"none"}}function F(N,B,I){Y.isValObject(N)?(N.arrayOk===!0||N.valType==="data_array")&&(I[B+"src"]=z(B)):i(N)&&(N.role="object")}Y.crawl(L,F)}function u(L){function z(F,N,B){if(F){var I=F[c];I&&(delete F[c],B[N]={items:{}},B[N].items[I]=F,B[N].role="object")}}Y.crawl(L,z)}function y(L){function z(F){for(var N in F)if(i(F[N]))z(F[N]);else if(Array.isArray(F[N]))for(var B=0;B<F[N].length;B++)z(F[N][B]);else F[N]instanceof RegExp&&(F[N]=F[N].toString())}z(L)}function f(L,z,F){var N=a(L,F),B=o({},z.layoutAttributes);B[h]=!0,N.set(B)}function R(L,z,F){var N=a(L,F);N.set(o(N.get()||{},z))}}}),Gl=De({"src/plot_api/plot_template.js"(Y){"use strict";var H=ui(),p=Yl(),x="templateitemname",S={name:{valType:"string",editType:"none"}};S[x]={valType:"string",editType:"calc"},Y.templatedArray=function(t,r){return r._isLinkedToArray=t,r.name=S.name,r[x]=S[x],r},Y.traceTemplater=function(t){var r={},o,i;for(o in t)i=t[o],Array.isArray(i)&&i.length&&(r[o]=0);function n(a){o=H.coerce(a,{},p,"type");var s={type:o,_template:null};if(o in r){i=t[o];var h=r[o]%i.length;r[o]++,s._template=i[h]}return s}return{newTrace:n}},Y.newContainer=function(t,r,o){var i=t._template,n=i&&(i[r]||o&&i[o]);H.isPlainObject(n)||(n=null);var a=t[r]={_template:n};return a},Y.arrayTemplater=function(t,r,o){var i=t._template,n=i&&i[e(r)],a=i&&i[r];(!Array.isArray(a)||!a.length)&&(a=[]);var s={};function h(m){var d={name:m.name,_input:m},T=d[x]=m[x];if(!E(T))return d._template=n,d;for(var l=0;l<a.length;l++){var _=a[l];if(_.name===T)return s[T]=1,d._template=_,d}return d[o]=m[o]||!1,d._template=!1,d}function c(){for(var m=[],d=0;d<a.length;d++){var T=a[d],l=T.name;if(E(l)&&!s[l]){var _={_template:T,name:l,_input:{_templateitemname:l}};_[x]=T[x],m.push(_),s[l]=1}}return m}return{newItem:h,defaultItems:c}};function E(t){return t&&typeof t=="string"}function e(t){var r=t.length-1;return t.charAt(r)!=="s"&&H.warn("bad argument to arrayDefaultKey: "+t),t.slice(0,-1)+"defaults"}Y.arrayDefaultKey=e,Y.arrayEditor=function(t,r,o){var i=(H.nestedProperty(t,r).get()||[]).length,n=o._index,a=n>=i&&(o._input||{})._templateitemname;a&&(n=i);var s=r+"["+n+"]",h;function c(){h={},a&&(h[s]={},h[s][x]=a)}c();function m(_,w){h[_]=w}function d(_,w){a?H.nestedProperty(h[s],_).set(w):h[s+"."+_]=w}function T(){var _=h;return c(),_}function l(_,w){_&&d(_,w);var A=T();for(var M in A)H.nestedProperty(t,M).set(A[M])}return{modifyBase:m,modifyItem:d,getUpdateObj:T,applyUpdate:l}}}}),th=De({"src/plots/cartesian/constants.js"(Y,H){"use strict";var p=Uo().counter;H.exports={idRegex:{x:p("x","( domain)?"),y:p("y","( domain)?")},attrRegex:p("[xy]axis"),xAxisMatch:p("xaxis"),yAxisMatch:p("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"}}}),nf=De({"src/plots/cartesian/axis_ids.js"(Y){"use strict";var H=Mo(),p=th();Y.id2name=function(E){if(!(typeof E!="string"||!E.match(p.AX_ID_PATTERN))){var e=E.split(" ")[0].slice(1);return e==="1"&&(e=""),E.charAt(0)+"axis"+e}},Y.name2id=function(E){if(E.match(p.AX_NAME_PATTERN)){var e=E.slice(5);return e==="1"&&(e=""),E.charAt(0)+e}},Y.cleanId=function(E,e,t){var r=/( domain)$/.test(E);if(!(typeof E!="string"||!E.match(p.AX_ID_PATTERN))&&!(e&&E.charAt(0)!==e)&&!(r&&!t)){var o=E.split(" ")[0].slice(1).replace(/^0+/,"");return o==="1"&&(o=""),E.charAt(0)+o+(r&&t?" domain":"")}},Y.list=function(S,E,e){var t=S._fullLayout;if(!t)return[];var r=Y.listIds(S,E),o=new Array(r.length),i;for(i=0;i<r.length;i++){var n=r[i];o[i]=t[n.charAt(0)+"axis"+n.slice(1)]}if(!e){var a=t._subplots.gl3d||[];for(i=0;i<a.length;i++){var s=t[a[i]];E?o.push(s[E+"axis"]):o.push(s.xaxis,s.yaxis,s.zaxis)}}return o},Y.listIds=function(S,E){var e=S._fullLayout;if(!e)return[];var t=e._subplots;return E?t[E+"axis"]:t.xaxis.concat(t.yaxis)},Y.getFromId=function(S,E,e){var t=S._fullLayout;return E=E===void 0||typeof E!="string"?E:E.replace(" domain",""),e==="x"?E=E.replace(/y[0-9]*/,""):e==="y"&&(E=E.replace(/x[0-9]*/,"")),t[Y.id2name(E)]},Y.getFromTrace=function(S,E,e){var t=S._fullLayout,r=null;if(H.traceIs(E,"gl3d")){var o=E.scene;o.slice(0,5)==="scene"&&(r=t[o][e+"axis"])}else r=Y.getFromId(S,E[e+"axis"]||e);return r},Y.idSort=function(S,E){var e=S.charAt(0),t=E.charAt(0);return e!==t?e>t?1:-1:+(S.slice(1)||1)-+(E.slice(1)||1)},Y.ref2id=function(S){return/^[xyz]/.test(S)?S.split(" ")[0]:!1};function x(S,E){if(E&&E.length){for(var e=0;e<E.length;e++)if(E[e][S])return!0}return!1}Y.isLinked=function(S,E){return x(E,S._axisMatchGroups)||x(E,S._axisConstraintGroups)}}}),Vp=De({"src/components/shapes/handle_outline.js"(Y,H){"use strict";function p(S){var E=S._fullLayout._zoomlayer;E&&E.selectAll(".outline-controllers").remove()}function x(S){var E=S._fullLayout._zoomlayer;E&&E.selectAll(".select-outline").remove(),S._fullLayout._outlining=!1}H.exports={clearOutlineControllers:p,clearOutline:x}}}),b_=De({"src/traces/scatter/layout_attributes.js"(Y,H){"use strict";H.exports={scattermode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},scattergap:{valType:"number",min:0,max:1,editType:"calc"}}}}),Lh=De({"src/plots/get_data.js"(Y){"use strict";var H=Mo(),p=th().SUBPLOT_PATTERN;Y.getSubplotCalcData=function(x,S,E){var e=H.subplotsRegistry[S];if(!e)return[];for(var t=e.attr,r=[],o=0;o<x.length;o++){var i=x[o],n=i[0].trace;n[t]===E&&r.push(i)}return r},Y.getModuleCalcData=function(x,S,E){var e=[],t=[],r;if(typeof S=="string"?r=H.getModule(S).plot:typeof S=="function"?r=S:r=S.plot,!r)return[e,x];for(var o=E,i=0;i<x.length;i++){var n=x[i],a=n[0].trace,s=a.zorder!==void 0;a.visible!==!0||a._length===0||(a._module&&a._module.plot===r&&(!s||a.zorder===o)?e.push(n):t.push(n))}return[e,t]},Y.getSubplotData=function(S,E,e){if(!H.subplotsRegistry[E])return[];for(var t=H.subplotsRegistry[E].attr,r=[],o,i,n,a=0;a<S.length;a++)o=S[a],o[t]===e&&r.push(o);return r}}}),LM=De({"src/plots/command.js"(Y){"use strict";var H=Mo(),p=ui();Y.manageCommandObserver=function(r,o,i,n){var a={},s=!0;o&&o._commandObserver&&(a=o._commandObserver),a.cache||(a.cache={}),a.lookupTable={};var h=Y.hasSimpleAPICommandBindings(r,i,a.lookupTable);if(o&&o._commandObserver){if(h)return a;if(o._commandObserver.remove)return o._commandObserver.remove(),o._commandObserver=null,a}if(h){x(r,h,a.cache),a.check=function(){if(s){var T=x(r,h,a.cache);return T.changed&&n&&a.lookupTable[T.value]!==void 0&&(a.disable(),Promise.resolve(n({value:T.value,type:h.type,prop:h.prop,traces:h.traces,index:a.lookupTable[T.value]})).then(a.enable,a.enable)),T.changed}};for(var c=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],m=0;m<c.length;m++)r._internalOn(c[m],a.check);a.remove=function(){for(var d=0;d<c.length;d++)r._removeInternalListener(c[d],a.check)}}else p.log("Unable to automatically bind plot updates to API command"),a.lookupTable={},a.remove=function(){};return a.disable=function(){s=!1},a.enable=function(){s=!0},o&&(o._commandObserver=a),a},Y.hasSimpleAPICommandBindings=function(r,o,i){var n,a=o.length,s;for(n=0;n<a;n++){var h,c=o[n],m=c.method,d=c.args;if(Array.isArray(d)||(d=[]),!m)return!1;var T=Y.computeAPICommandBindings(r,m,d);if(T.length!==1)return!1;if(!s)s=T[0],Array.isArray(s.traces)&&s.traces.sort();else{if(h=T[0],h.type!==s.type||h.prop!==s.prop)return!1;if(Array.isArray(s.traces))if(Array.isArray(h.traces)){h.traces.sort();for(var l=0;l<s.traces.length;l++)if(s.traces[l]!==h.traces[l])return!1}else return!1;else if(h.prop!==s.prop)return!1}h=T[0];var _=h.value;if(Array.isArray(_))if(_.length===1)_=_[0];else return!1;i&&(i[_]=n)}return s};function x(r,o,i){var n,a,s,h=!1;if(o.type==="data")n=r._fullData[o.traces!==null?o.traces[0]:0];else if(o.type==="layout")n=r._fullLayout;else return!1;return a=p.nestedProperty(n,o.prop).get(),s=i[o.type]=i[o.type]||{},s.hasOwnProperty(o.prop)&&s[o.prop]!==a&&(h=!0),s[o.prop]=a,{changed:h,value:a}}Y.executeAPICommand=function(r,o,i){if(o==="skip")return Promise.resolve();var n=H.apiMethodRegistry[o],a=[r];Array.isArray(i)||(i=[]);for(var s=0;s<i.length;s++)a.push(i[s]);return n.apply(null,a).catch(function(h){return p.warn("API call to Plotly."+o+" rejected.",h),Promise.reject(h)})},Y.computeAPICommandBindings=function(r,o,i){var n;switch(Array.isArray(i)||(i=[]),o){case"restyle":n=e(r,i);break;case"relayout":n=E(r,i);break;case"update":n=e(r,[i[0],i[2]]).concat(E(r,[i[1]]));break;case"animate":n=S(r,i);break;default:n=[]}return n};function S(r,o){return Array.isArray(o[0])&&o[0].length===1&&["string","number"].indexOf(typeof o[0][0])!==-1?[{type:"layout",prop:"_currentFrame",value:o[0][0].toString()}]:[]}function E(r,o){var i=[],n=o[0],a={};if(typeof n=="string")a[n]=o[1];else if(p.isPlainObject(n))a=n;else return i;return t(a,function(s,h,c){i.push({type:"layout",prop:s,value:c})},"",0),i}function e(r,o){var i,n,a,s,h=[];if(n=o[0],a=o[1],i=o[2],s={},typeof n=="string")s[n]=a;else if(p.isPlainObject(n))s=n,i===void 0&&(i=a);else return h;return i===void 0&&(i=null),t(s,function(c,m,d){var T,l;if(Array.isArray(d)){l=d.slice();var _=Math.min(l.length,r.data.length);i&&(_=Math.min(_,i.length)),T=[];for(var w=0;w<_;w++)T[w]=i?i[w]:w}else l=d,T=i?i.slice():null;if(T===null)Array.isArray(l)&&(l=l[0]);else if(Array.isArray(T)){if(!Array.isArray(l)){var A=l;l=[];for(var M=0;M<T.length;M++)l[M]=A}l.length=Math.min(T.length,l.length)}h.push({type:"data",prop:c,traces:T,value:l})},"",0),h}function t(r,o,i,n){Object.keys(r).forEach(function(a){var s=r[a];if(a[0]!=="_"){var h=i+(n>0?".":"")+a;p.isPlainObject(s)?t(s,o,h,n+1):o(h,a,s)}})}}}),Mc=De({"src/plots/plots.js"(Y,H){"use strict";var p=za(),x=Do().timeFormatLocale,S=Tn().formatLocale,E=vn(),e=zl(),t=Mo(),r=Ym(),o=Gl(),i=ui(),n=vo(),a=zn().BADNUM,s=nf(),h=Vp().clearOutline,c=b_(),m=oy(),d=Uw(),T=Lh().getModuleCalcData,l=i.relinkPrivateKeys,_=i._,w=H.exports={};i.extendFlat(w,t),w.attributes=Yl(),w.attributes.type.values=w.allTypes,w.fontAttrs=qu(),w.layoutAttributes=Wm();var A=LM();w.executeAPICommand=A.executeAPICommand,w.computeAPICommandBindings=A.computeAPICommandBindings,w.manageCommandObserver=A.manageCommandObserver,w.hasSimpleAPICommandBindings=A.hasSimpleAPICommandBindings,w.redrawText=function(q){return q=i.getGraphDiv(q),new Promise(function(Z){setTimeout(function(){q._fullLayout&&(t.getComponentMethod("annotations","draw")(q),t.getComponentMethod("legend","draw")(q),t.getComponentMethod("colorbar","draw")(q),Z(w.previousPromises(q)))},300)})},w.resize=function(q){q=i.getGraphDiv(q);var Z,ee=new Promise(function(V,oe){(!q||i.isHidden(q))&&oe(new Error("Resize must be passed a displayed plot div element.")),q._redrawTimer&&clearTimeout(q._redrawTimer),q._resolveResize&&(Z=q._resolveResize),q._resolveResize=V,q._redrawTimer=setTimeout(function(){if(!q.layout||q.layout.width&&q.layout.height||i.isHidden(q)){V(q);return}delete q.layout.width,delete q.layout.height;var ie=q.changed;q.autoplay=!0,t.call("relayout",q,{autosize:!0}).then(function(){q.changed=ie,q._resolveResize===V&&(delete q._resolveResize,V(q))})},100)});return Z&&Z(ee),ee},w.previousPromises=function(q){if((q._promises||[]).length)return Promise.all(q._promises).then(function(){q._promises=[]})},w.addLinks=function(q){if(!(!q._context.showLink&&!q._context.showSources)){var Z=q._fullLayout,ee=i.ensureSingle(Z._paper,"text","js-plot-link-container",function(re){re.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:n.defaultLine,"pointer-events":"all"}).each(function(){var ue=p.select(this);ue.append("tspan").classed("js-link-to-tool",!0),ue.append("tspan").classed("js-link-spacer",!0),ue.append("tspan").classed("js-sourcelinks",!0)})}),V=ee.node(),oe={y:Z._paper.attr("height")-9};document.body.contains(V)&&V.getComputedTextLength()>=Z.width-20?(oe["text-anchor"]="start",oe.x=5):(oe["text-anchor"]="end",oe.x=Z._paper.attr("width")-7),ee.attr(oe);var ie=ee.select(".js-link-to-tool"),j=ee.select(".js-link-spacer"),Q=ee.select(".js-sourcelinks");q._context.showSources&&q._context.showSources(q),q._context.showLink&&M(q,ie),j.text(ie.text()&&Q.text()?" - ":"")}};function M(q,Z){Z.text("");var ee=Z.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(q._context.linkText+" \xBB");if(q._context.sendData)ee.on("click",function(){w.sendDataToCloud(q)});else{var V=window.location.pathname.split("/"),oe=window.location.search;ee.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+V[2].split(".")[0]+"/"+V[1]+oe})}}w.sendDataToCloud=function(q){var Z=(window.PLOTLYENV||{}).BASE_URL||q._context.plotlyServerURL;if(Z){q.emit("plotly_beforeexport");var ee=p.select(q).append("div").attr("id","hiddenform").style("display","none"),V=ee.append("form").attr({action:Z+"/external",method:"post",target:"_blank"}),oe=V.append("input").attr({type:"text",name:"data"});return oe.node().value=w.graphJson(q,!1,"keepdata"),V.node().submit(),ee.remove(),q.emit("plotly_afterexport"),!1}};var g=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],b=["year","month","dayMonth","dayMonthYear"];w.supplyDefaults=function(q,Z){var ee=Z&&Z.skipUpdateCalc,V=q._fullLayout||{};if(V._skipDefaults){delete V._skipDefaults;return}var oe=q._fullLayout={},ie=q.layout||{},j=q._fullData||[],Q=q._fullData=[],re=q.data||[],ue=q.calcdata||[],_e=q._context||{},we;q._transitionData||w.createTransitionData(q),oe._dfltTitle={plot:_(q,"Click to enter Plot title"),subtitle:_(q,"Click to enter Plot subtitle"),x:_(q,"Click to enter X axis title"),y:_(q,"Click to enter Y axis title"),colorbar:_(q,"Click to enter Colorscale title"),annotation:_(q,"new text")},oe._traceWord=_(q,"trace");var Re=y(q,g);if(oe._mapboxAccessToken=_e.mapboxAccessToken,V._initialAutoSizeIsDone){var ze=V.width,Xe=V.height;w.supplyLayoutGlobalDefaults(ie,oe,Re),ie.width||(oe.width=ze),ie.height||(oe.height=Xe),w.sanitizeMargins(oe)}else{w.supplyLayoutGlobalDefaults(ie,oe,Re);var tt=!ie.width||!ie.height,it=oe.autosize,et=_e.autosizable,nt=tt&&(it||et);nt?w.plotAutoSize(q,ie,oe):tt&&w.sanitizeMargins(oe),!it&&tt&&(ie.width=oe.width,ie.height=oe.height)}oe._d3locale=f(Re,oe.separators),oe._extraFormat=y(q,b),oe._initialAutoSizeIsDone=!0,oe._dataLength=re.length,oe._modules=[],oe._visibleModules=[],oe._basePlotModules=[];var Ae=oe._subplots=u(),me=oe._splomAxes={x:{},y:{}},fe=oe._splomSubplots={};oe._splomGridDflt={},oe._scatterStackOpts={},oe._firstScatter={},oe._alignmentOpts={},oe._colorAxes={},oe._requestRangeslider={},oe._traceUids=v(j,re),w.supplyDataDefaults(re,Q,ie,oe);var Be=Object.keys(me.x),Qe=Object.keys(me.y);if(Be.length>1&&Qe.length>1){for(t.getComponentMethod("grid","sizeDefaults")(ie,oe),we=0;we<Be.length;we++)i.pushUnique(Ae.xaxis,Be[we]);for(we=0;we<Qe.length;we++)i.pushUnique(Ae.yaxis,Qe[we]);for(var at in fe)i.pushUnique(Ae.cartesian,at)}if(oe._has=w._hasPlotType.bind(oe),j.length===Q.length)for(we=0;we<Q.length;we++)l(Q[we],j[we]);w.supplyLayoutModuleDefaults(ie,oe,Q,q._transitionData);var $e=oe._visibleModules,It=[];for(we=0;we<$e.length;we++){var Pt=$e[we].crossTraceDefaults;Pt&&i.pushUnique(It,Pt)}for(we=0;we<It.length;we++)It[we](Q,oe);oe._hasOnlyLargeSploms=oe._basePlotModules.length===1&&oe._basePlotModules[0].name==="splom"&&Be.length>15&&Qe.length>15&&oe.shapes.length===0&&oe.images.length===0,w.linkSubplots(Q,oe,j,V),w.cleanPlot(Q,oe,j,V);var Vt=!!(V._has&&V._has("cartesian")),Wt=!!(oe._has&&oe._has("cartesian")),Cr=Vt,yr=Wt;Cr&&!yr?V._bgLayer.remove():yr&&!Cr&&(oe._shouldCreateBgLayer=!0),V._zoomlayer&&!q._dragging&&h({_fullLayout:V}),R(Q,oe),l(oe,V),t.getComponentMethod("colorscale","crossTraceDefaults")(Q,oe),oe._preGUI||(oe._preGUI={}),oe._tracePreGUI||(oe._tracePreGUI={});var qr=oe._tracePreGUI,Mr={},Dr;for(Dr in qr)Mr[Dr]="old";for(we=0;we<Q.length;we++)Dr=Q[we]._fullInput.uid,Mr[Dr]||(qr[Dr]={}),Mr[Dr]="new";for(Dr in Mr)Mr[Dr]==="old"&&delete qr[Dr];F(oe),t.getComponentMethod("rangeslider","makeData")(oe),!ee&&ue.length===Q.length&&w.supplyDefaultsUpdateCalc(ue,Q)},w.supplyDefaultsUpdateCalc=function(q,Z){for(var ee=0;ee<Z.length;ee++){var V=Z[ee],oe=(q[ee]||[])[0];if(oe&&oe.trace){var ie=oe.trace;if(ie._hasCalcTransform){var j=ie._arrayAttrs,Q,re,ue;for(Q=0;Q<j.length;Q++)re=j[Q],ue=i.nestedProperty(ie,re).get().slice(),i.nestedProperty(V,re).set(ue)}oe.trace=V}}};function v(q,Z){var ee=Z.length,V=[],oe,ie;for(oe=0;oe<q.length;oe++){var j=q[oe]._fullInput;j!==ie&&V.push(j),ie=j}var Q=V.length,re=new Array(ee),ue={};function _e(ze,Xe){re[Xe]=ze,ue[ze]=1}function we(ze,Xe){if(ze&&typeof ze=="string"&&!ue[ze])return _e(ze,Xe),!0}for(oe=0;oe<ee;oe++){var Re=Z[oe].uid;typeof Re=="number"&&(Re=String(Re)),!we(Re,oe)&&(oe<Q&&we(V[oe].uid,oe)||_e(i.randstr(ue),oe))}return re}function u(){var q=t.collectableSubplotTypes,Z={},ee,V;if(!q){q=[];var oe=t.subplotsRegistry;for(var ie in oe){var j=oe[ie],Q=j.attr;if(Q&&(q.push(ie),Array.isArray(Q)))for(V=0;V<Q.length;V++)i.pushUnique(q,Q[V])}}for(ee=0;ee<q.length;ee++)Z[q[ee]]=[];return Z}function y(q,Z){var ee=q._context.locale;ee||(ee="en-US");var V=!1,oe={};function ie(we){for(var Re=!0,ze=0;ze<Z.length;ze++){var Xe=Z[ze];oe[Xe]||(we[Xe]?oe[Xe]=we[Xe]:Re=!1)}Re&&(V=!0)}for(var j=0;j<2;j++){for(var Q=q._context.locales,re=0;re<2;re++){var ue=(Q[ee]||{}).format;if(ue&&(ie(ue),V))break;Q=t.localeRegistry}var _e=ee.split("-")[0];if(V||_e===ee)break;ee=_e}return V||ie(t.localeRegistry.en.format),oe}function f(q,Z){return q.decimal=Z.charAt(0),q.thousands=Z.charAt(1),{numberFormat:function(ee){try{ee=S(q).format(i.adjustFormat(ee))}catch{return i.warnBadFormat(ee),i.noFormat}return ee},timeFormat:x(q).utcFormat}}function R(q,Z){var ee,V=[];Z.meta&&(ee=Z._meta={meta:Z.meta,layout:{meta:Z.meta}});for(var oe=0;oe<q.length;oe++){var ie=q[oe];ie.meta?V[ie.index]=ie._meta={meta:ie.meta}:Z.meta&&(ie._meta={meta:Z.meta}),Z.meta&&(ie._meta.layout={meta:Z.meta})}V.length&&(ee||(ee=Z._meta={}),ee.data=V)}w.createTransitionData=function(q){q._transitionData||(q._transitionData={}),q._transitionData._frames||(q._transitionData._frames=[]),q._transitionData._frameHash||(q._transitionData._frameHash={}),q._transitionData._counter||(q._transitionData._counter=0),q._transitionData._interruptCallbacks||(q._transitionData._interruptCallbacks=[])},w._hasPlotType=function(q){var Z,ee=this._basePlotModules||[];for(Z=0;Z<ee.length;Z++)if(ee[Z].name===q)return!0;var V=this._modules||[];for(Z=0;Z<V.length;Z++){var oe=V[Z].name;if(oe===q)return!0;var ie=t.modules[oe];if(ie&&ie.categories[q])return!0}return!1},w.cleanPlot=function(q,Z,ee,V){var oe,ie,j=V._basePlotModules||[];for(oe=0;oe<j.length;oe++){var Q=j[oe];Q.clean&&Q.clean(q,Z,ee,V)}var re=V._has&&V._has("gl"),ue=Z._has&&Z._has("gl");re&&!ue&&V._glcontainer!==void 0&&(V._glcontainer.selectAll(".gl-canvas").remove(),V._glcontainer.selectAll(".no-webgl").remove(),V._glcanvas=null);var _e=!!V._infolayer;e:for(oe=0;oe<ee.length;oe++){var we=ee[oe],Re=we.uid;for(ie=0;ie<q.length;ie++){var ze=q[ie];if(Re===ze.uid)continue e}_e&&V._infolayer.select(".cb"+Re).remove()}},w.linkSubplots=function(q,Z,ee,V){var oe,ie,j=V._plots||{},Q=Z._plots={},re=Z._subplots,ue={_fullData:q,_fullLayout:Z},_e=re.cartesian||[];for(oe=0;oe<_e.length;oe++){var we=_e[oe],Re=j[we],ze=s.getFromId(ue,we,"x"),Xe=s.getFromId(ue,we,"y"),tt;for(Re?tt=Q[we]=Re:(tt=Q[we]={},tt.id=we),ze._counterAxes.push(Xe._id),Xe._counterAxes.push(ze._id),ze._subplotsWith.push(we),Xe._subplotsWith.push(we),tt.xaxis=ze,tt.yaxis=Xe,tt._hasClipOnAxisFalse=!1,ie=0;ie<q.length;ie++){var it=q[ie];if(it.xaxis===tt.xaxis._id&&it.yaxis===tt.yaxis._id&&it.cliponaxis===!1){tt._hasClipOnAxisFalse=!0;break}}}var et=s.list(ue,null,!0),nt;for(oe=0;oe<et.length;oe++){nt=et[oe];var Ae=null;nt.overlaying&&(Ae=s.getFromId(ue,nt.overlaying),Ae&&Ae.overlaying&&(nt.overlaying=!1,Ae=null)),nt._mainAxis=Ae||nt,Ae&&(nt.domain=Ae.domain.slice()),nt._anchorAxis=nt.anchor==="free"?null:s.getFromId(ue,nt.anchor)}for(oe=0;oe<et.length;oe++)if(nt=et[oe],nt._counterAxes.sort(s.idSort),nt._subplotsWith.sort(i.subplotSort),nt._mainSubplot=L(nt,Z),nt._counterAxes.length&&(nt.spikemode&&nt.spikemode.indexOf("across")!==-1||nt.automargin&&nt.mirror&&nt.anchor!=="free"||t.getComponentMethod("rangeslider","isVisible")(nt))){var me=1,fe=0;for(ie=0;ie<nt._counterAxes.length;ie++){var Be=s.getFromId(ue,nt._counterAxes[ie]);me=Math.min(me,Be.domain[0]),fe=Math.max(fe,Be.domain[1])}me<fe&&(nt._counterDomainMin=me,nt._counterDomainMax=fe)}};function L(q,Z){var ee={_fullLayout:Z},V=q._id.charAt(0)==="x",oe=q._mainAxis._anchorAxis,ie="",j="",Q="";if(oe&&(Q=oe._mainAxis._id,ie=V?q._id+Q:Q+q._id),!ie||!Z._plots[ie]){ie="";for(var re=q._counterAxes,ue=0;ue<re.length;ue++){var _e=re[ue],we=V?q._id+_e:_e+q._id;j||(j=we);var Re=s.getFromId(ee,_e);if(Q&&Re.overlaying===Q){ie=we;break}}}return ie||j}w.clearExpandedTraceDefaultColors=function(q){var Z,ee,V;function oe(j,Q,re,ue){ee[ue]=Q,ee.length=ue+1,j.valType==="color"&&j.dflt===void 0&&Z.push(ee.join("."))}for(ee=[],Z=q._module._colorAttrs,Z||(q._module._colorAttrs=Z=[],r.crawl(q._module.attributes,oe)),V=0;V<Z.length;V++){var ie=i.nestedProperty(q,"_input."+Z[V]);ie.get()||i.nestedProperty(q,Z[V]).set(null)}},w.supplyDataDefaults=function(q,Z,ee,V){var oe=V._modules,ie=V._visibleModules,j=V._basePlotModules,Q=0,re=0,ue,_e,we;V._transformModules=[];function Re(nt){Z.push(nt);var Ae=nt._module;Ae&&(i.pushUnique(oe,Ae),nt.visible===!0&&i.pushUnique(ie,Ae),i.pushUnique(j,nt._module.basePlotModule),Q++,nt._input.visible!==!1&&re++)}var ze={},Xe=[],tt=(ee.template||{}).data||{},it=o.traceTemplater(tt);for(ue=0;ue<q.length;ue++)we=q[ue],_e=it.newTrace(we),_e.uid=V._traceUids[ue],w.supplyTraceDefaults(we,_e,re,V,ue),_e.index=ue,_e._input=we,_e._fullInput=_e,Re(_e),t.traceIs(_e,"carpetAxis")&&(ze[_e.carpet]=_e),t.traceIs(_e,"carpetDependent")&&Xe.push(ue);for(ue=0;ue<Xe.length;ue++)if(_e=Z[Xe[ue]],!!_e.visible){var et=ze[_e.carpet];if(_e._carpet=et,!et||!et.visible){_e.visible=!1;continue}_e.xaxis=et.xaxis,_e.yaxis=et.yaxis}},w.supplyAnimationDefaults=function(q){q=q||{};var Z,ee={};function V(oe,ie){return i.coerce(q||{},ee,m,oe,ie)}if(V("mode"),V("direction"),V("fromcurrent"),Array.isArray(q.frame))for(ee.frame=[],Z=0;Z<q.frame.length;Z++)ee.frame[Z]=w.supplyAnimationFrameDefaults(q.frame[Z]||{});else ee.frame=w.supplyAnimationFrameDefaults(q.frame||{});if(Array.isArray(q.transition))for(ee.transition=[],Z=0;Z<q.transition.length;Z++)ee.transition[Z]=w.supplyAnimationTransitionDefaults(q.transition[Z]||{});else ee.transition=w.supplyAnimationTransitionDefaults(q.transition||{});return ee},w.supplyAnimationFrameDefaults=function(q){var Z={};function ee(V,oe){return i.coerce(q||{},Z,m.frame,V,oe)}return ee("duration"),ee("redraw"),Z},w.supplyAnimationTransitionDefaults=function(q){var Z={};function ee(V,oe){return i.coerce(q||{},Z,m.transition,V,oe)}return ee("duration"),ee("easing"),Z},w.supplyFrameDefaults=function(q){var Z={};function ee(V,oe){return i.coerce(q,Z,d,V,oe)}return ee("group"),ee("name"),ee("traces"),ee("baseframe"),ee("data"),ee("layout"),Z},w.supplyTraceDefaults=function(q,Z,ee,V,oe){var ie=V.colorway||n.defaults,j=ie[ee%ie.length],Q;function re(Ae,me){return i.coerce(q,Z,w.attributes,Ae,me)}var ue=re("visible");re("type"),re("name",V._traceWord+" "+oe),re("uirevision",V.uirevision);var _e=w.getModule(Z);if(Z._module=_e,_e){var we=_e.basePlotModule,Re=we.attr,ze=we.attributes;if(Re&&ze){var Xe=V._subplots,tt="";if(Array.isArray(Re))for(Q=0;Q<Re.length;Q++){var it=Re[Q],et=i.coerce(q,Z,ze,it);Xe[it]&&i.pushUnique(Xe[it],et),tt+=et}else tt=i.coerce(q,Z,ze,Re);Xe[we.name]&&i.pushUnique(Xe[we.name],tt)}}if(ue&&(re("customdata"),re("ids"),re("meta"),t.traceIs(Z,"showLegend")?(i.coerce(q,Z,_e.attributes.showlegend?_e.attributes:w.attributes,"showlegend"),i.coerce(q,Z,_e.attributes.legend?_e.attributes:w.attributes,"legend"),re("legendwidth"),re("legendgroup"),re("legendgrouptitle.text"),re("legendrank"),Z._dfltShowLegend=!0):Z._dfltShowLegend=!1,_e&&_e.supplyDefaults(q,Z,j,V),t.traceIs(Z,"noOpacity")||re("opacity"),t.traceIs(Z,"notLegendIsolatable")&&(Z.visible=!!Z.visible),t.traceIs(Z,"noHover")||(Z.hovertemplate||i.coerceHoverinfo(q,Z,V),Z.type!=="parcats"&&t.getComponentMethod("fx","supplyDefaults")(q,Z,j,V)),_e&&_e.selectPoints)){var nt=re("selectedpoints");i.isTypedArray(nt)&&(Z.selectedpoints=Array.from(nt))}return Z},w.supplyLayoutGlobalDefaults=function(q,Z,ee){function V(we,Re){return i.coerce(q,Z,w.layoutAttributes,we,Re)}var oe=q.template;i.isPlainObject(oe)&&(Z.template=oe,Z._template=oe.layout,Z._dataTemplate=oe.data),V("autotypenumbers");var ie=i.coerceFont(V,"font"),j=ie.size;i.coerceFont(V,"title.font",ie,{overrideDflt:{size:Math.round(j*1.4)}}),V("title.text",Z._dfltTitle.plot),V("title.xref");var Q=V("title.yref");V("title.pad.t"),V("title.pad.r"),V("title.pad.b"),V("title.pad.l");var re=V("title.automargin");V("title.x"),V("title.xanchor"),V("title.y"),V("title.yanchor"),V("title.subtitle.text",Z._dfltTitle.subtitle),i.coerceFont(V,"title.subtitle.font",ie,{overrideDflt:{size:Math.round(Z.title.font.size*.7)}}),re&&(Q==="paper"&&(Z.title.y!==0&&(Z.title.y=1),Z.title.yanchor==="auto"&&(Z.title.yanchor=Z.title.y===0?"top":"bottom")),Q==="container"&&(Z.title.y==="auto"&&(Z.title.y=1),Z.title.yanchor==="auto"&&(Z.title.yanchor=Z.title.y<.5?"bottom":"top")));var ue=V("uniformtext.mode");ue&&V("uniformtext.minsize"),V("autosize",!(q.width&&q.height)),V("width"),V("height"),V("minreducedwidth"),V("minreducedheight"),V("margin.l"),V("margin.r"),V("margin.t"),V("margin.b"),V("margin.pad"),V("margin.autoexpand"),q.width&&q.height&&w.sanitizeMargins(Z),t.getComponentMethod("grid","sizeDefaults")(q,Z),V("paper_bgcolor"),V("separators",ee.decimal+ee.thousands),V("hidesources"),V("colorway"),V("datarevision");var _e=V("uirevision");V("editrevision",_e),V("selectionrevision",_e),t.getComponentMethod("modebar","supplyLayoutDefaults")(q,Z),t.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(q,Z,V),t.getComponentMethod("selections","supplyDrawNewSelectionDefaults")(q,Z,V),V("meta"),i.isPlainObject(q.transition)&&(V("transition.duration"),V("transition.easing"),V("transition.ordering")),t.getComponentMethod("calendars","handleDefaults")(q,Z,"calendar"),t.getComponentMethod("fx","supplyLayoutGlobalDefaults")(q,Z,V),i.coerce(q,Z,c,"scattermode")};function z(q){return typeof q=="string"&&q.slice(-2)==="px"&&parseFloat(q)}w.plotAutoSize=function(Z,ee,V){var oe=Z._context||{},ie=oe.frameMargins,j,Q,re=i.isPlotDiv(Z);if(re&&Z.emit("plotly_autosize"),oe.fillFrame)j=window.innerWidth,Q=window.innerHeight,document.body.style.overflow="hidden";else{var ue=re?window.getComputedStyle(Z):{};if(j=z(ue.width)||z(ue.maxWidth)||V.width,Q=z(ue.height)||z(ue.maxHeight)||V.height,E(ie)&&ie>0){var _e=1-2*ie;j=Math.round(_e*j),Q=Math.round(_e*Q)}}var we=w.layoutAttributes.width.min,Re=w.layoutAttributes.height.min;j<we&&(j=we),Q<Re&&(Q=Re);var ze=!ee.width&&Math.abs(V.width-j)>1,Xe=!ee.height&&Math.abs(V.height-Q)>1;(Xe||ze)&&(ze&&(V.width=j),Xe&&(V.height=Q)),Z._initialAutoSize||(Z._initialAutoSize={width:j,height:Q}),w.sanitizeMargins(V)},w.supplyLayoutModuleDefaults=function(q,Z,ee,V){var oe=t.componentsRegistry,ie=Z._basePlotModules,j,Q,re,ue=t.subplotsRegistry.cartesian;for(j in oe)re=oe[j],re.includeBasePlot&&re.includeBasePlot(q,Z);ie.length||ie.push(ue),Z._has("cartesian")&&(t.getComponentMethod("grid","contentDefaults")(q,Z),ue.finalizeSubplots(q,Z));for(var _e in Z._subplots)Z._subplots[_e].sort(i.subplotSort);for(Q=0;Q<ie.length;Q++)re=ie[Q],re.supplyLayoutDefaults&&re.supplyLayoutDefaults(q,Z,ee);var we=Z._modules;for(Q=0;Q<we.length;Q++)re=we[Q],re.supplyLayoutDefaults&&re.supplyLayoutDefaults(q,Z,ee);var Re=Z._transformModules;for(Q=0;Q<Re.length;Q++)re=Re[Q],re.supplyLayoutDefaults&&re.supplyLayoutDefaults(q,Z,ee,V);for(j in oe)re=oe[j],re.supplyLayoutDefaults&&re.supplyLayoutDefaults(q,Z,ee)},w.purge=function(q){var Z=q._fullLayout||{};Z._glcontainer!==void 0&&(Z._glcontainer.selectAll(".gl-canvas").remove(),Z._glcontainer.remove(),Z._glcanvas=null),Z._modeBar&&Z._modeBar.destroy(),q._transitionData&&(q._transitionData._interruptCallbacks&&(q._transitionData._interruptCallbacks.length=0),q._transitionData._animationRaf&&window.cancelAnimationFrame(q._transitionData._animationRaf)),i.clearThrottle(),i.clearResponsive(q),delete q.data,delete q.layout,delete q._fullData,delete q._fullLayout,delete q.calcdata,delete q.empty,delete q.fid,delete q.undoqueue,delete q.undonum,delete q.autoplay,delete q.changed,delete q._promises,delete q._redrawTimer,delete q._hmlumcount,delete q._hmpixcount,delete q._transitionData,delete q._transitioning,delete q._initialAutoSize,delete q._transitioningWithDuration,delete q._dragging,delete q._dragged,delete q._dragdata,delete q._hoverdata,delete q._snapshotInProgress,delete q._editing,delete q._mouseDownTime,delete q._legendMouseDownTime,q.removeAllListeners&&q.removeAllListeners()},w.style=function(q){var Z=q._fullLayout._visibleModules,ee=[],V;for(V=0;V<Z.length;V++){var oe=Z[V];oe.style&&i.pushUnique(ee,oe.style)}for(V=0;V<ee.length;V++)ee[V](q)},w.sanitizeMargins=function(q){if(!(!q||!q.margin)){var Z=q.width,ee=q.height,V=q.margin,oe=Z-(V.l+V.r),ie=ee-(V.t+V.b),j;oe<0&&(j=(Z-1)/(V.l+V.r),V.l=Math.floor(j*V.l),V.r=Math.floor(j*V.r)),ie<0&&(j=(ee-1)/(V.t+V.b),V.t=Math.floor(j*V.t),V.b=Math.floor(j*V.b))}},w.clearAutoMarginIds=function(q){q._fullLayout._pushmarginIds={}},w.allowAutoMargin=function(q,Z){q._fullLayout._pushmarginIds[Z]=1};function F(q){var Z=q.margin;if(!q._size){var ee=q._size={l:Math.round(Z.l),r:Math.round(Z.r),t:Math.round(Z.t),b:Math.round(Z.b),p:Math.round(Z.pad)};ee.w=Math.round(q.width)-ee.l-ee.r,ee.h=Math.round(q.height)-ee.t-ee.b}q._pushmargin||(q._pushmargin={}),q._pushmarginIds||(q._pushmarginIds={}),q._reservedMargin||(q._reservedMargin={})}var N=2,B=2;w.autoMargin=function(q,Z,ee){var V=q._fullLayout,oe=V.width,ie=V.height,j=V.margin,Q=V.minreducedwidth,re=V.minreducedheight,ue=i.constrain(oe-j.l-j.r,N,Q),_e=i.constrain(ie-j.t-j.b,B,re),we=Math.max(0,oe-ue),Re=Math.max(0,ie-_e),ze=V._pushmargin,Xe=V._pushmarginIds;if(j.autoexpand!==!1){if(!ee)delete ze[Z],delete Xe[Z];else{var tt=ee.pad;if(tt===void 0&&(tt=Math.min(12,j.l,j.r,j.t,j.b)),we){var it=(ee.l+ee.r)/we;it>1&&(ee.l/=it,ee.r/=it)}if(Re){var et=(ee.t+ee.b)/Re;et>1&&(ee.t/=et,ee.b/=et)}var nt=ee.xl!==void 0?ee.xl:ee.x,Ae=ee.xr!==void 0?ee.xr:ee.x,me=ee.yt!==void 0?ee.yt:ee.y,fe=ee.yb!==void 0?ee.yb:ee.y;ze[Z]={l:{val:nt,size:ee.l+tt},r:{val:Ae,size:ee.r+tt},b:{val:fe,size:ee.b+tt},t:{val:me,size:ee.t+tt}},Xe[Z]=1}if(!V._replotting)return w.doAutoMargin(q)}};function I(q){if("_redrawFromAutoMarginCount"in q._fullLayout)return!1;var Z=s.list(q,"",!0);for(var ee in Z)if(Z[ee].autoshift||Z[ee].shift)return!0;return!1}w.doAutoMargin=function(q){var Z=q._fullLayout,ee=Z.width,V=Z.height;Z._size||(Z._size={}),F(Z);var oe=Z._size,ie=Z.margin,j={t:0,b:0,l:0,r:0},Q=i.extendFlat({},oe),re=ie.l,ue=ie.r,_e=ie.t,we=ie.b,Re=Z._pushmargin,ze=Z._pushmarginIds,Xe=Z.minreducedwidth,tt=Z.minreducedheight;if(ie.autoexpand!==!1){for(var it in Re)ze[it]||delete Re[it];var et=q._fullLayout._reservedMargin;for(var nt in et)for(var Ae in et[nt]){var me=et[nt][Ae];j[Ae]=Math.max(j[Ae],me)}Re.base={l:{val:0,size:re},r:{val:1,size:ue},t:{val:1,size:_e},b:{val:0,size:we}};for(var fe in j){var Be=0;for(var Qe in Re)Qe!=="base"&&E(Re[Qe][fe].size)&&(Be=Re[Qe][fe].size>Be?Re[Qe][fe].size:Be);var at=Math.max(0,ie[fe]-Be);j[fe]=Math.max(0,j[fe]-at)}for(var $e in Re){var It=Re[$e].l||{},Pt=Re[$e].b||{},Vt=It.val,Wt=It.size,Cr=Pt.val,yr=Pt.size,qr=ee-j.r-j.l,Mr=V-j.t-j.b;for(var Dr in Re){if(E(Wt)&&Re[Dr].r){var xt=Re[Dr].r.val,Ne=Re[Dr].r.size;if(xt>Vt){var Ye=(Wt*xt+(Ne-qr)*Vt)/(xt-Vt),be=(Ne*(1-Vt)+(Wt-qr)*(1-xt))/(xt-Vt);Ye+be>re+ue&&(re=Ye,ue=be)}}if(E(yr)&&Re[Dr].t){var Ie=Re[Dr].t.val,qe=Re[Dr].t.size;if(Ie>Cr){var ke=(yr*Ie+(qe-Mr)*Cr)/(Ie-Cr),Me=(qe*(1-Cr)+(yr-Mr)*(1-Ie))/(Ie-Cr);ke+Me>we+_e&&(we=ke,_e=Me)}}}}}var Le=i.constrain(ee-ie.l-ie.r,N,Xe),ut=i.constrain(V-ie.t-ie.b,B,tt),lt=Math.max(0,ee-Le),gt=Math.max(0,V-ut);if(lt){var kt=(re+ue)/lt;kt>1&&(re/=kt,ue/=kt)}if(gt){var nr=(we+_e)/gt;nr>1&&(we/=nr,_e/=nr)}if(oe.l=Math.round(re)+j.l,oe.r=Math.round(ue)+j.r,oe.t=Math.round(_e)+j.t,oe.b=Math.round(we)+j.b,oe.p=Math.round(ie.pad),oe.w=Math.round(ee)-oe.l-oe.r,oe.h=Math.round(V)-oe.t-oe.b,!Z._replotting&&(w.didMarginChange(Q,oe)||I(q))){"_redrawFromAutoMarginCount"in Z?Z._redrawFromAutoMarginCount++:Z._redrawFromAutoMarginCount=1;var ir=3*(1+Object.keys(ze).length);if(Z._redrawFromAutoMarginCount<ir)return t.call("_doPlot",q);Z._size=Q,i.warn("Too many auto-margin redraws.")}U(q)};function U(q){var Z=s.list(q,"",!0);["_adjustTickLabelsOverflow","_hideCounterAxisInsideTickLabels"].forEach(function(ee){for(var V=0;V<Z.length;V++){var oe=Z[V][ee];oe&&oe()}})}var O=["l","r","t","b","p","w","h"];w.didMarginChange=function(q,Z){for(var ee=0;ee<O.length;ee++){var V=O[ee],oe=q[V],ie=Z[V];if(!E(oe)||Math.abs(ie-oe)>1)return!0}return!1},w.graphJson=function(q,Z,ee,V,oe,ie){(oe&&Z&&!q._fullData||oe&&!Z&&!q._fullLayout)&&w.supplyDefaults(q);var j=oe?q._fullData:q.data,Q=oe?q._fullLayout:q.layout,re=(q._transitionData||{})._frames;function ue(Re,ze){if(typeof Re=="function")return ze?"_function_":null;if(i.isPlainObject(Re)){var Xe={},tt;return Object.keys(Re).sort().forEach(function(Ae){if(["_","["].indexOf(Ae.charAt(0))===-1){if(typeof Re[Ae]=="function"){ze&&(Xe[Ae]="_function");return}if(ee==="keepdata"){if(Ae.slice(-3)==="src")return}else if(ee==="keepstream"){if(tt=Re[Ae+"src"],typeof tt=="string"&&tt.indexOf(":")>0&&!i.isPlainObject(Re.stream))return}else if(ee!=="keepall"&&(tt=Re[Ae+"src"],typeof tt=="string"&&tt.indexOf(":")>0))return;Xe[Ae]=ue(Re[Ae],ze)}}),Xe}var it=Array.isArray(Re),et=i.isTypedArray(Re);if((it||et)&&Re.dtype&&Re.shape){var nt=Re.bdata;return ue({dtype:Re.dtype,shape:Re.shape,bdata:i.isArrayBuffer(nt)?e.encode(nt):nt},ze)}return it?Re.map(function(Ae){return ue(Ae,ze)}):et?i.simpleMap(Re,i.identity):i.isJSDate(Re)?i.ms2DateTimeLocal(+Re):Re}var _e={data:(j||[]).map(function(Re){var ze=ue(Re);return Z&&delete ze.fit,ze})};if(!Z&&(_e.layout=ue(Q),oe)){var we=Q._size;_e.layout.computed={margin:{b:we.b,l:we.l,r:we.r,t:we.t}}}return re&&(_e.frames=ue(re)),ie&&(_e.config=ue(q._context,!0)),V==="object"?_e:JSON.stringify(_e)},w.modifyFrames=function(q,Z){var ee,V,oe,ie=q._transitionData._frames,j=q._transitionData._frameHash;for(ee=0;ee<Z.length;ee++)switch(V=Z[ee],V.type){case"replace":oe=V.value;var Q=(ie[V.index]||{}).name,re=oe.name;ie[V.index]=j[re]=oe,re!==Q&&(delete j[Q],j[re]=oe);break;case"insert":oe=V.value,j[oe.name]=oe,ie.splice(V.index,0,oe);break;case"delete":oe=ie[V.index],delete j[oe.name],ie.splice(V.index,1);break}return Promise.resolve()},w.computeFrame=function(q,Z){var ee=q._transitionData._frameHash,V,oe,ie,j;if(!Z)throw new Error("computeFrame must be given a string frame name");var Q=ee[Z.toString()];if(!Q)return!1;for(var re=[Q],ue=[Q.name];Q.baseframe&&(Q=ee[Q.baseframe.toString()])&&ue.indexOf(Q.name)===-1;)re.push(Q),ue.push(Q.name);for(var _e={};Q=re.pop();)if(Q.layout&&(_e.layout=w.extendLayout(_e.layout,Q.layout)),Q.data){if(_e.data||(_e.data=[]),oe=Q.traces,!oe)for(oe=[],V=0;V<Q.data.length;V++)oe[V]=V;for(_e.traces||(_e.traces=[]),V=0;V<Q.data.length;V++)ie=oe[V],ie!=null&&(j=_e.traces.indexOf(ie),j===-1&&(j=_e.data.length,_e.traces[j]=ie),_e.data[j]=w.extendTrace(_e.data[j],Q.data[V]))}return _e},w.recomputeFrameHash=function(q){for(var Z=q._transitionData._frameHash={},ee=q._transitionData._frames,V=0;V<ee.length;V++){var oe=ee[V];oe&&oe.name&&(Z[oe.name]=oe)}},w.extendObjectWithContainers=function(q,Z,ee){var V,oe,ie,j,Q,re,ue,_e,we=i.extendDeepNoArrays({},Z||{}),Re=i.expandObjectPaths(we),ze={};if(ee&&ee.length)for(ie=0;ie<ee.length;ie++)V=i.nestedProperty(Re,ee[ie]),oe=V.get(),oe===void 0?i.nestedProperty(ze,ee[ie]).set(null):(V.set(null),i.nestedProperty(ze,ee[ie]).set(oe));if(q=i.extendDeepNoArrays(q||{},Re),ee&&ee.length){for(ie=0;ie<ee.length;ie++)if(Q=i.nestedProperty(ze,ee[ie]),ue=Q.get(),!!ue){for(re=i.nestedProperty(q,ee[ie]),_e=re.get(),Array.isArray(_e)||(_e=[],re.set(_e)),j=0;j<ue.length;j++){var Xe=ue[j];Xe===null?_e[j]=null:_e[j]=w.extendObjectWithContainers(_e[j],Xe)}re.set(_e)}}return q},w.dataArrayContainers=["transforms","dimensions"],w.layoutArrayContainers=t.layoutArrayContainers,w.extendTrace=function(q,Z){return w.extendObjectWithContainers(q,Z,w.dataArrayContainers)},w.extendLayout=function(q,Z){return w.extendObjectWithContainers(q,Z,w.layoutArrayContainers)},w.transition=function(q,Z,ee,V,oe,ie){var j={redraw:oe.redraw},Q={},re=[];return j.prepareFn=function(){for(var ue=Array.isArray(Z)?Z.length:0,_e=V.slice(0,ue),we=0;we<_e.length;we++){var Re=_e[we],ze=q._fullData[Re],Xe=ze._module;if(Xe){if(Xe.animatable){var tt=Xe.basePlotModule.name;Q[tt]||(Q[tt]=[]),Q[tt].push(Re)}q.data[_e[we]]=w.extendTrace(q.data[_e[we]],Z[we])}}var it=i.expandObjectPaths(i.extendDeepNoArrays({},ee)),et=/^[xy]axis[0-9]*$/;for(var nt in it)et.test(nt)&&delete it[nt].range;w.extendLayout(q.layout,it),delete q.calcdata,w.supplyDefaults(q),w.doCalcdata(q);var Ae=i.expandObjectPaths(ee);if(Ae){var me=q._fullLayout._plots;for(var fe in me){var Be=me[fe],Qe=Be.xaxis,at=Be.yaxis,$e=Qe.range.slice(),It=at.range.slice(),Pt=null,Vt=null,Wt=null,Cr=null;Array.isArray(Ae[Qe._name+".range"])?Pt=Ae[Qe._name+".range"].slice():Array.isArray((Ae[Qe._name]||{}).range)&&(Pt=Ae[Qe._name].range.slice()),Array.isArray(Ae[at._name+".range"])?Vt=Ae[at._name+".range"].slice():Array.isArray((Ae[at._name]||{}).range)&&(Vt=Ae[at._name].range.slice()),$e&&Pt&&(Qe.r2l($e[0])!==Qe.r2l(Pt[0])||Qe.r2l($e[1])!==Qe.r2l(Pt[1]))&&(Wt={xr0:$e,xr1:Pt}),It&&Vt&&(at.r2l(It[0])!==at.r2l(Vt[0])||at.r2l(It[1])!==at.r2l(Vt[1]))&&(Cr={yr0:It,yr1:Vt}),(Wt||Cr)&&re.push(i.extendFlat({plotinfo:Be},Wt,Cr))}}return Promise.resolve()},j.runFn=function(ue){var _e,we=q._fullLayout._basePlotModules,Re=re.length,ze;if(ee)for(ze=0;ze<we.length;ze++)we[ze].transitionAxes&&we[ze].transitionAxes(q,re,ie,ue);Re?(_e=i.extendFlat({},ie),_e.duration=0,delete Q.cartesian):_e=ie;for(var Xe in Q){var tt=Q[Xe],it=q._fullData[tt[0]]._module;it.basePlotModule.plot(q,tt,_e,ue)}},X(q,ie,j)},w.transitionFromReact=function(q,Z,ee,V){var oe=q._fullLayout,ie=oe.transition,j={},Q=[];return j.prepareFn=function(){var re=oe._plots;j.redraw=!1,Z.anim==="some"&&(j.redraw=!0),ee.anim==="some"&&(j.redraw=!0);for(var ue in re){var _e=re[ue],we=_e.xaxis,Re=_e.yaxis,ze=V[we._name].range.slice(),Xe=V[Re._name].range.slice(),tt=we.range.slice(),it=Re.range.slice();we.setScale(),Re.setScale();var et=null,nt=null;(we.r2l(ze[0])!==we.r2l(tt[0])||we.r2l(ze[1])!==we.r2l(tt[1]))&&(et={xr0:ze,xr1:tt}),(Re.r2l(Xe[0])!==Re.r2l(it[0])||Re.r2l(Xe[1])!==Re.r2l(it[1]))&&(nt={yr0:Xe,yr1:it}),(et||nt)&&Q.push(i.extendFlat({plotinfo:_e},et,nt))}return Promise.resolve()},j.runFn=function(re){for(var ue=q._fullData,_e=q._fullLayout,we=_e._basePlotModules,Re,ze,Xe,tt=[],it=0;it<ue.length;it++)tt.push(it);function et(){if(q._fullLayout)for(var Ae=0;Ae<we.length;Ae++)we[Ae].transitionAxes&&we[Ae].transitionAxes(q,Q,Re,re)}function nt(){if(q._fullLayout)for(var Ae=0;Ae<we.length;Ae++)we[Ae].plot(q,Xe,ze,re)}Q.length&&Z.anim?ie.ordering==="traces first"?(Re=i.extendFlat({},ie,{duration:0}),Xe=tt,ze=ie,setTimeout(et,ie.duration),nt()):(Re=ie,Xe=null,ze=i.extendFlat({},ie,{duration:0}),setTimeout(nt,Re.duration),et()):Q.length?(Re=ie,et()):Z.anim&&(Xe=tt,ze=ie,nt())},X(q,ie,j)};function X(q,Z,ee){var V=!1;function oe(we){var Re=Promise.resolve();if(!we)return Re;for(;we.length;)Re=Re.then(we.shift());return Re}function ie(we){if(we)for(;we.length;)we.shift()}function j(){return q.emit("plotly_transitioning",[]),new Promise(function(we){q._transitioning=!0,Z.duration>0&&(q._transitioningWithDuration=!0),q._transitionData._interruptCallbacks.push(function(){V=!0}),ee.redraw&&q._transitionData._interruptCallbacks.push(function(){return t.call("redraw",q)}),q._transitionData._interruptCallbacks.push(function(){q.emit("plotly_transitioninterrupted",[])});var Re=0,ze=0;function Xe(){return Re++,function(){ze++,!V&&ze===Re&&Q(we)}}ee.runFn(Xe),setTimeout(Xe())})}function Q(we){if(q._transitionData)return ie(q._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(ee.redraw)return t.call("redraw",q)}).then(function(){q._transitioning=!1,q._transitioningWithDuration=!1,q.emit("plotly_transitioned",[])}).then(we)}function re(){if(q._transitionData)return q._transitioning=!1,oe(q._transitionData._interruptCallbacks)}var ue=[w.previousPromises,re,ee.prepareFn,w.rehover,w.reselect,j],_e=i.syncOrAsync(ue,q);return(!_e||!_e.then)&&(_e=Promise.resolve()),_e.then(function(){return q})}w.doCalcdata=function(q,Z){var ee=s.list(q),V=q._fullData,oe=q._fullLayout,ie,j,Q,re,ue=new Array(V.length),_e=(q.calcdata||[]).slice();for(q.calcdata=ue,oe._numBoxes=0,oe._numViolins=0,oe._violinScaleGroupStats={},q._hmpixcount=0,q._hmlumcount=0,oe._piecolormap={},oe._sunburstcolormap={},oe._treemapcolormap={},oe._iciclecolormap={},oe._funnelareacolormap={},Q=0;Q<V.length;Q++)if(Array.isArray(Z)&&Z.indexOf(Q)===-1){ue[Q]=_e[Q];continue}for(Q=0;Q<V.length;Q++)ie=V[Q],ie._arrayAttrs=r.findArrayAttributes(ie),ie._extremes={};var we=oe._subplots.polar||[];for(Q=0;Q<we.length;Q++)ee.push(oe[we[Q]].radialaxis,oe[we[Q]].angularaxis);for(var Re in oe._colorAxes){var ze=oe[Re];ze.cauto!==!1&&(delete ze.cmin,delete ze.cmax)}var Xe=!1;function tt(nt){if(ie=V[nt],j=ie._module,ie.visible===!0&&ie.transforms){if(j&&j.calc){var Ae=j.calc(q,ie);Ae[0]&&Ae[0].t&&Ae[0].t._scene&&delete Ae[0].t._scene.dirty}for(re=0;re<ie.transforms.length;re++){var me=ie.transforms[re];j=transformsRegistry[me.type],j&&j.calcTransform&&(ie._hasCalcTransform=!0,Xe=!0,j.calcTransform(q,ie,me))}}}function it(nt,Ae){if(ie=V[nt],j=ie._module,!!j.isContainer===Ae){var me=[];if(ie.visible===!0&&ie._length!==0){delete ie._indexToPoints;var fe=ie.transforms||[];for(re=fe.length-1;re>=0;re--)if(fe[re].enabled){ie._indexToPoints=fe[re]._indexToPoints;break}j&&j.calc&&(me=j.calc(q,ie))}(!Array.isArray(me)||!me[0])&&(me=[{x:a,y:a}]),me[0].t||(me[0].t={}),me[0].trace=ie,ue[nt]=me}}for(le(ee,V,oe),Q=0;Q<V.length;Q++)it(Q,!0);for(Q=0;Q<V.length;Q++)tt(Q);for(Xe&&le(ee,V,oe),Q=0;Q<V.length;Q++)it(Q,!0);for(Q=0;Q<V.length;Q++)it(Q,!1);ce(q);var et=se(ee,q);if(et.length){for(oe._numBoxes=0,oe._numViolins=0,Q=0;Q<et.length;Q++)it(et[Q],!0);for(Q=0;Q<et.length;Q++)it(et[Q],!1);ce(q)}t.getComponentMethod("fx","calc")(q),t.getComponentMethod("errorbars","calc")(q)};var J=/(total|sum|min|max|mean|geometric mean|median) (ascending|descending)/;function se(q,Z){var ee=[],V,oe,ie,j,Q;function re(Dr,xt,Ne){var Ye=xt._id.charAt(0);if(Dr==="histogram2dcontour"){var be=xt._counterAxes[0],Ie=s.getFromId(Z,be),qe=Ye==="x"||be==="x"&&Ie.type==="category",ke=Ye==="y"||be==="y"&&Ie.type==="category";return function(Me,Le){return Me===0||Le===0||qe&&Me===Ne[Le].length-1||ke&&Le===Ne.length-1?-1:(Ye==="y"?Le:Me)-1}}else return function(Me,Le){return Ye==="y"?Le:Me}}var ue={min:function(Dr){return i.aggNums(Math.min,null,Dr)},max:function(Dr){return i.aggNums(Math.max,null,Dr)},sum:function(Dr){return i.aggNums(function(xt,Ne){return xt+Ne},null,Dr)},total:function(Dr){return i.aggNums(function(xt,Ne){return xt+Ne},null,Dr)},mean:function(Dr){return i.mean(Dr)},"geometric mean":function(Dr){return i.geometricMean(Dr)},median:function(Dr){return i.median(Dr)}};function _e(Dr,xt){return Dr[1]-xt[1]}function we(Dr,xt){return xt[1]-Dr[1]}for(V=0;V<q.length;V++){var Re=q[V];if(Re.type==="category"){var ze=Re.categoryorder.match(J);if(ze){var Xe=ze[1],tt=ze[2],it=Re._id.charAt(0),et=it==="x",nt=[];for(oe=0;oe<Re._categories.length;oe++)nt.push([Re._categories[oe],[]]);for(oe=0;oe<Re._traceIndices.length;oe++){var Ae=Re._traceIndices[oe],me=Z._fullData[Ae];if(me.visible===!0){var fe=me.type;t.traceIs(me,"histogram")&&(delete me._xautoBinFinished,delete me._yautoBinFinished);var Be=fe==="splom",Qe=fe==="scattergl",at=Z.calcdata[Ae];for(ie=0;ie<at.length;ie++){var $e=at[ie],It,Pt;if(Be){var Vt=me._axesDim[Re._id];if(!et){var Wt=me._diag[Vt][0];Wt&&(Re=Z._fullLayout[s.id2name(Wt)])}var Cr=$e.trace.dimensions[Vt].values;for(j=0;j<Cr.length;j++)for(It=Re._categoriesMap[Cr[j]],Q=0;Q<$e.trace.dimensions.length;Q++)if(Q!==Vt){var yr=$e.trace.dimensions[Q];nt[It][1].push(yr.values[j])}}else if(Qe){for(j=0;j<$e.t.x.length;j++)et?(It=$e.t.x[j],Pt=$e.t.y[j]):(It=$e.t.y[j],Pt=$e.t.x[j]),nt[It][1].push(Pt);$e.t&&$e.t._scene&&delete $e.t._scene.dirty}else if($e.hasOwnProperty("z")){Pt=$e.z;var qr=re(me.type,Re,Pt);for(j=0;j<Pt.length;j++)for(Q=0;Q<Pt[j].length;Q++)It=qr(Q,j),It+1&&nt[It][1].push(Pt[j][Q])}else for(It=$e.p,It===void 0&&(It=$e[it]),Pt=$e.s,Pt===void 0&&(Pt=$e.v),Pt===void 0&&(Pt=et?$e.y:$e.x),Array.isArray(Pt)||(Pt===void 0?Pt=[]:Pt=[Pt]),j=0;j<Pt.length;j++)nt[It][1].push(Pt[j])}}}Re._categoriesValue=nt;var Mr=[];for(oe=0;oe<nt.length;oe++)Mr.push([nt[oe][0],ue[Xe](nt[oe][1])]);Mr.sort(tt==="descending"?we:_e),Re._categoriesAggregatedValue=Mr,Re._initialCategories=Mr.map(function(Dr){return Dr[0]}),ee=ee.concat(Re.sortByInitialCategories())}}}return ee}function le(q,Z,ee){var V={};function oe(re){re.clearCalc(),re.type==="multicategory"&&re.setupMultiCategory(Z),V[re._id]=1}i.simpleMap(q,oe);for(var ie=ee._axisMatchGroups||[],j=0;j<ie.length;j++)for(var Q in ie[j])V[Q]||oe(ee[s.id2name(Q)])}function ce(q){var Z=q._fullLayout,ee=Z._visibleModules,V={},oe,ie,j;for(ie=0;ie<ee.length;ie++){var Q=ee[ie],re=Q.crossTraceCalc;if(re){var ue=Q.basePlotModule.name;V[ue]?i.pushUnique(V[ue],re):V[ue]=[re]}}for(j in V){var _e=V[j],we=Z._subplots[j];if(Array.isArray(we))for(oe=0;oe<we.length;oe++){var Re=we[oe],ze=j==="cartesian"?Z._plots[Re]:Z[Re];for(ie=0;ie<_e.length;ie++)_e[ie](q,ze,Re)}else for(ie=0;ie<_e.length;ie++)_e[ie](q)}}w.rehover=function(q){q._fullLayout._rehover&&q._fullLayout._rehover()},w.redrag=function(q){q._fullLayout._redrag&&q._fullLayout._redrag()},w.reselect=function(q){var Z=q._fullLayout,ee=(q.layout||{}).selections,V=Z._previousSelections;Z._previousSelections=ee;var oe=Z._reselect||JSON.stringify(ee)!==JSON.stringify(V);t.getComponentMethod("selections","reselect")(q,oe)},w.generalUpdatePerTraceModule=function(q,Z,ee,V){var oe=Z.traceHash,ie={},j;for(j=0;j<ee.length;j++){var Q=ee[j],re=Q[0].trace;re.visible&&(ie[re.type]=ie[re.type]||[],ie[re.type].push(Q))}for(var ue in oe)if(!ie[ue]){var _e=oe[ue][0],we=_e[0].trace;we.visible=!1,ie[ue]=[_e]}for(var Re in ie){var ze=ie[Re],Xe=ze[0][0].trace._module;Xe.plot(q,Z,i.filterVisible(ze),V)}Z.traceHash=ie},w.plotBasePlot=function(q,Z,ee,V,oe){var ie=t.getModule(q),j=T(Z.calcdata,ie)[0];ie.plot(Z,j,V,oe)},w.cleanBasePlot=function(q,Z,ee,V,oe){var ie=oe._has&&oe._has(q),j=ee._has&&ee._has(q);ie&&!j&&oe["_"+q+"layer"].selectAll("g.trace").remove()}}}),Bd=De({"src/constants/xmlns_namespaces.js"(Y){"use strict";Y.xmlns="http://www.w3.org/2000/xmlns/",Y.svg="http://www.w3.org/2000/svg",Y.xlink="http://www.w3.org/1999/xlink",Y.svgAttrs={xmlns:Y.svg,"xmlns:xlink":Y.xlink}}}),rh=De({"src/constants/alignment.js"(Y,H){"use strict";H.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"}}}}),vu=De({"src/lib/svg_text_utils.js"(Y){"use strict";var H=za(),p=ui(),x=p.strTranslate,S=Bd(),E=rh().LINE_SPACING,e=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;Y.convertToTspans=function(B,I,U){var O=B.text(),X=!B.attr("data-notex")&&I&&I._context.typesetMath&&typeof MathJax<"u"&&O.match(e),J=H.select(B.node().parentNode);if(J.empty())return;var se=B.attr("class")?B.attr("class").split(" ")[0]:"text";se+="-math",J.selectAll("svg."+se).remove(),J.selectAll("g."+se+"-group").remove(),B.style("display",null).attr({"data-unformatted":O,"data-math":"N"});function le(){J.empty()||(se=B.attr("class")+"-math",J.select("svg."+se).remove()),B.text("").style("white-space","pre");var ce=L(B.node(),O);ce&&B.style("pointer-events","all"),Y.positionText(B),U&&U.call(B)}return X?(I&&I._promises||[]).push(new Promise(function(ce){B.style("display","none");var q=parseInt(B.node().style.fontSize,10),Z={fontSize:q};n(X[2],Z,function(ee,V,oe){J.selectAll("svg."+se).remove(),J.selectAll("g."+se+"-group").remove();var ie=ee&&ee.select("svg");if(!ie||!ie.node()){le(),ce();return}var j=J.append("g").classed(se+"-group",!0).attr({"pointer-events":"none","data-unformatted":O,"data-math":"Y"});j.node().appendChild(ie.node()),V&&V.node()&&ie.node().insertBefore(V.node().cloneNode(!0),ie.node().firstChild);var Q=oe.width,re=oe.height;ie.attr({class:se,height:re,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var ue=B.node().style.fill||"black",_e=ie.select("g");_e.attr({fill:ue,stroke:ue});var we=_e.node().getBoundingClientRect(),Re=we.width,ze=we.height;(Re>Q||ze>re)&&(ie.style("overflow","hidden"),we=ie.node().getBoundingClientRect(),Re=we.width,ze=we.height);var Xe=+B.attr("x"),tt=+B.attr("y"),it=q||B.node().getBoundingClientRect().height,et=-it/4;if(se[0]==="y")j.attr({transform:"rotate("+[-90,Xe,tt]+")"+x(-Re/2,et-ze/2)});else if(se[0]==="l")tt=et-ze/2;else if(se[0]==="a"&&se.indexOf("atitle")!==0)Xe=0,tt=et;else{var nt=B.attr("text-anchor");Xe=Xe-Re*(nt==="middle"?.5:nt==="end"?1:0),tt=tt+et-ze/2}ie.attr({x:Xe,y:tt}),U&&U.call(B,j),ce(j)})})):le(),B};var t=/(<|&lt;|&#60;)/g,r=/(>|&gt;|&#62;)/g;function o(B){return B.replace(t,"\\lt ").replace(r,"\\gt ")}var i=[["$","$"],["\\(","\\)"]];function n(B,I,U){var O=parseInt((MathJax.version||"").split(".")[0]);if(O!==2&&O!==3){p.warn("No MathJax version:",MathJax.version);return}var X,J,se,le,ce=function(){return J=p.extendDeepAll({},MathJax.Hub.config),se=MathJax.Hub.processSectionDelay,MathJax.Hub.processSectionDelay!==void 0&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:i},displayAlign:"left"})},q=function(){J=p.extendDeepAll({},MathJax.config),MathJax.config.tex||(MathJax.config.tex={}),MathJax.config.tex.inlineMath=i},Z=function(){if(X=MathJax.Hub.config.menuSettings.renderer,X!=="SVG")return MathJax.Hub.setRenderer("SVG")},ee=function(){X=MathJax.config.startup.output,X!=="svg"&&(MathJax.config.startup.output="svg")},V=function(){var ue="math-output-"+p.randstr({},64);le=H.select("body").append("div").attr({id:ue}).style({visibility:"hidden",position:"absolute","font-size":I.fontSize+"px"}).text(o(B));var _e=le.node();return O===2?MathJax.Hub.Typeset(_e):MathJax.typeset([_e])},oe=function(){var ue=le.select(O===2?".MathJax_SVG":".MathJax"),_e=!ue.empty()&&le.select("svg").node();if(!_e)p.log("There was an error in the tex syntax.",B),U();else{var we=_e.getBoundingClientRect(),Re;O===2?Re=H.select("body").select("#MathJax_SVG_glyphs"):Re=ue.select("defs"),U(ue,Re,we)}le.remove()},ie=function(){if(X!=="SVG")return MathJax.Hub.setRenderer(X)},j=function(){X!=="svg"&&(MathJax.config.startup.output=X)},Q=function(){return se!==void 0&&(MathJax.Hub.processSectionDelay=se),MathJax.Hub.Config(J)},re=function(){MathJax.config=J};O===2?MathJax.Hub.Queue(ce,Z,V,oe,ie,Q):O===3&&(q(),ee(),MathJax.startup.defaultReady(),MathJax.startup.promise.then(function(){V(),oe(),j(),re()}))}var a={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"},s={sub:"0.3em",sup:"-0.6em"},h={sub:"-0.21em",sup:"0.42em"},c="\u200B",m=["http:","https:","mailto:","",void 0,":"],d=Y.NEWLINES=/(\r\n?|\n)/g,T=/(<[^<>]*>)/,l=/<(\/?)([^ >]*)(\s+(.*))?>/i,_=/<br(\s+.*)?>/i;Y.BR_TAG_ALL=/<br(\s+.*)?>/gi;var w=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,A=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,M=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,g=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function b(B,I){if(!B)return null;var U=B.match(I),O=U&&(U[3]||U[4]);return O&&f(O)}var v=/(^|;)\s*color:/;Y.plainText=function(B,I){I=I||{};for(var U=I.len!==void 0&&I.len!==-1?I.len:1/0,O=I.allowedTags!==void 0?I.allowedTags:["br"],X="...",J=X.length,se=B.split(T),le=[],ce="",q=0,Z=0;Z<se.length;Z++){var ee=se[Z],V=ee.match(l),oe=V&&V[2].toLowerCase();if(oe)O.indexOf(oe)!==-1&&(le.push(ee),ce=oe);else{var ie=ee.length;if(q+ie<U)le.push(ee),q+=ie;else if(q<U){var j=U-q;ce&&(ce!=="br"||j<=J||ie<=J)&&le.pop(),U>J?le.push(ee.slice(0,Math.max(0,j-J))+X):le.push(ee.slice(0,j));break}ce=""}}return le.join("")};var u={mu:"\u03BC",amp:"&",lt:"<",gt:">",nbsp:"\xA0",times:"\xD7",plusmn:"\xB1",deg:"\xB0"},y=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function f(B){return B.replace(y,function(I,U){var O;return U.charAt(0)==="#"?O=R(U.charAt(1)==="x"?parseInt(U.slice(2),16):parseInt(U.slice(1),10)):O=u[U],O||I})}Y.convertEntities=f;function R(B){if(!(B>1114111)){var I=String.fromCodePoint;if(I)return I(B);var U=String.fromCharCode;return B<=65535?U(B):U((B>>10)+55232,B%1024+56320)}}function L(B,I){I=I.replace(d," ");var U=!1,O=[],X,J=-1;function se(){J++;var ze=document.createElementNS(S.svg,"tspan");H.select(ze).attr({class:"line",dy:J*E+"em"}),B.appendChild(ze),X=ze;var Xe=O;if(O=[{node:ze}],Xe.length>1)for(var tt=1;tt<Xe.length;tt++)le(Xe[tt])}function le(ze){var Xe=ze.type,tt={},it;if(Xe==="a"){it="a";var et=ze.target,nt=ze.href,Ae=ze.popup;nt&&(tt={"xlink:xlink:show":et==="_blank"||et.charAt(0)!=="_"?"new":"replace",target:et,"xlink:xlink:href":nt},Ae&&(tt.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+Ae+'");return false;'))}else it="tspan";ze.style&&(tt.style=ze.style);var me=document.createElementNS(S.svg,it);if(Xe==="sup"||Xe==="sub"){ce(X,c),X.appendChild(me);var fe=document.createElementNS(S.svg,"tspan");ce(fe,c),H.select(fe).attr("dy",h[Xe]),tt.dy=s[Xe],X.appendChild(me),X.appendChild(fe)}else X.appendChild(me);H.select(me).attr(tt),X=ze.node=me,O.push(ze)}function ce(ze,Xe){ze.appendChild(document.createTextNode(Xe))}function q(ze){if(O.length===1){p.log("Ignoring unexpected end tag </"+ze+">.",I);return}var Xe=O.pop();ze!==Xe.type&&p.log("Start tag <"+Xe.type+"> doesnt match end tag <"+ze+">. Pretending it did match.",I),X=O[O.length-1].node}var Z=_.test(I);Z?se():(X=B,O=[{node:B}]);for(var ee=I.split(T),V=0;V<ee.length;V++){var oe=ee[V],ie=oe.match(l),j=ie&&ie[2].toLowerCase(),Q=a[j];if(j==="br")se();else if(Q===void 0)ce(X,f(oe));else if(ie[1])q(j);else{var re=ie[4],ue={type:j},_e=b(re,w);if(_e?(_e=_e.replace(v,"$1 fill:"),Q&&(_e+=";"+Q)):Q&&(_e=Q),_e&&(ue.style=_e),j==="a"){U=!0;var we=b(re,A);if(we){var Re=z(we);Re&&(ue.href=Re,ue.target=b(re,M)||"_blank",ue.popup=b(re,g))}}le(ue)}}return U}function z(B){var I=encodeURI(decodeURI(B)),U=document.createElement("a"),O=document.createElement("a");U.href=B,O.href=I;var X=U.protocol,J=O.protocol;return m.indexOf(X)!==-1&&m.indexOf(J)!==-1?I:""}Y.sanitizeHTML=function(I){I=I.replace(d," ");for(var U=document.createElement("p"),O=U,X=[],J=I.split(T),se=0;se<J.length;se++){var le=J[se],ce=le.match(l),q=ce&&ce[2].toLowerCase();if(q in a)if(ce[1])X.length&&(O=X.pop());else{var Z=ce[4],ee=b(Z,w),V=ee?{style:ee}:{};if(q==="a"){var oe=b(Z,A);if(oe){var ie=z(oe);if(ie){V.href=ie;var j=b(Z,M);j&&(V.target=j)}}}var Q=document.createElement(q);O.appendChild(Q),H.select(Q).attr(V),O=Q,X.push(Q)}else O.appendChild(document.createTextNode(f(le)))}var re="innerHTML";return U[re]},Y.lineCount=function(I){return I.selectAll("tspan.line").size()||1},Y.positionText=function(I,U,O){return I.each(function(){var X=H.select(this);function J(ce,q){return q===void 0?(q=X.attr(ce),q===null&&(X.attr(ce,0),q=0)):X.attr(ce,q),q}var se=J("x",U),le=J("y",O);this.nodeName==="text"&&X.selectAll("tspan.line").attr({x:se,y:le})})};function F(B,I,U){var O=U.horizontalAlign,X=U.verticalAlign||"top",J=B.node().getBoundingClientRect(),se=I.node().getBoundingClientRect(),le,ce,q;return X==="bottom"?ce=function(){return J.bottom-le.height}:X==="middle"?ce=function(){return J.top+(J.height-le.height)/2}:ce=function(){return J.top},O==="right"?q=function(){return J.right-le.width}:O==="center"?q=function(){return J.left+(J.width-le.width)/2}:q=function(){return J.left},function(){le=this.node().getBoundingClientRect();var Z=q()-se.left,ee=ce()-se.top,V=U.gd||{};if(U.gd){V._fullLayout._calcInverseTransform(V);var oe=p.apply3DTransform(V._fullLayout._invTransform)(Z,ee);Z=oe[0],ee=oe[1]}return this.style({top:ee+"px",left:Z+"px","z-index":1e3}),this}}var N="1px ";Y.makeTextShadow=function(B){var I=N,U=N,O=N;return I+U+O+B+", -"+I+"-"+U+O+B+", "+I+"-"+U+O+B+", -"+I+U+O+B},Y.makeEditable=function(B,I){var U=I.gd,O=I.delegate,X=H.dispatch("edit","input","cancel"),J=O||B;if(B.style({"pointer-events":O?"none":"all"}),B.size()!==1)throw new Error("boo");function se(){ce(),B.style({opacity:0});var q=J.attr("class"),Z;q?Z="."+q.split(" ")[0]+"-math-group":Z="[class*=-math-group]",Z&&H.select(B.node().parentNode).select(Z).style({opacity:0})}function le(q){var Z=q.node(),ee=document.createRange();ee.selectNodeContents(Z);var V=window.getSelection();V.removeAllRanges(),V.addRange(ee),Z.focus()}function ce(){var q=H.select(U),Z=q.select(".svg-container"),ee=Z.append("div"),V=B.node().style,oe=parseFloat(V.fontSize||12),ie=I.text;ie===void 0&&(ie=B.attr("data-unformatted")),ee.classed("plugin-editable editable",!0).style({position:"absolute","font-family":V.fontFamily||"Arial","font-size":oe,color:I.fill||V.fill||"black",opacity:1,"background-color":I.background||"transparent",outline:"#ffffff33 1px solid",margin:[-oe/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(ie).call(F(B,Z,I)).on("blur",function(){U._editing=!1,B.text(this.textContent).style({opacity:1});var j=H.select(this).attr("class"),Q;j?Q="."+j.split(" ")[0]+"-math-group":Q="[class*=-math-group]",Q&&H.select(B.node().parentNode).select(Q).style({opacity:0});var re=this.textContent;H.select(this).transition().duration(0).remove(),H.select(document).on("mouseup",null),X.edit.call(B,re)}).on("focus",function(){var j=this;U._editing=!0,H.select(document).on("mouseup",function(){if(H.event.target===j)return!1;document.activeElement===ee.node()&&ee.node().blur()})}).on("keyup",function(){H.event.which===27?(U._editing=!1,B.style({opacity:1}),H.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),X.cancel.call(B,this.textContent)):(X.input.call(B,this.textContent),H.select(this).call(F(B,Z,I)))}).on("keydown",function(){H.event.which===13&&this.blur()}).call(le)}return I.immediate?se():J.on("click",se),H.rebind(B,X,"on")}}}),$h=De({"src/components/colorscale/helpers.js"(Y,H){"use strict";var p=za(),x=wu(),S=vn(),E=ui(),e=vo(),t=up().isValid;function r(d,T,l){var _=T?E.nestedProperty(d,T).get()||{}:d,w=_[l||"color"];w&&w._inputArray&&(w=w._inputArray);var A=!1;if(E.isArrayOrTypedArray(w)){for(var M=0;M<w.length;M++)if(S(w[M])){A=!0;break}}return E.isPlainObject(_)&&(A||_.showscale===!0||S(_.cmin)&&S(_.cmax)||t(_.colorscale)||E.isPlainObject(_.colorbar))}var o=["showscale","autocolorscale","colorscale","reversescale","colorbar"],i=["min","max","mid","auto"];function n(d){var T=d._colorAx,l=T||d,_={},w,A,M;for(A=0;A<o.length;A++)M=o[A],_[M]=l[M];if(T)for(w="c",A=0;A<i.length;A++)M=i[A],_[M]=l["c"+M];else{var g;for(A=0;A<i.length;A++){if(M=i[A],g="c"+M,g in l){_[M]=l[g];continue}g="z"+M,g in l&&(_[M]=l[g])}w=g.charAt(0)}return _._sync=function(b,v){var u=i.indexOf(b)!==-1?w+b:b;l[u]=l["_"+u]=v},_}function a(d){for(var T=n(d),l=T.min,_=T.max,w=T.reversescale?s(T.colorscale):T.colorscale,A=w.length,M=new Array(A),g=new Array(A),b=0;b<A;b++){var v=w[b];M[b]=l+v[0]*(_-l),g[b]=v[1]}return{domain:M,range:g}}function s(d){for(var T=d.length,l=new Array(T),_=T-1,w=0;_>=0;_--,w++){var A=d[_];l[w]=[1-A[0],A[1]]}return l}function h(d,T){T=T||{};for(var l=d.domain,_=d.range,w=_.length,A=new Array(w),M=0;M<w;M++){var g=x(_[M]).toRgb();A[M]=[g.r,g.g,g.b,g.a]}var b=p.scale.linear().domain(l).range(A).clamp(!0),v=T.noNumericCheck,u=T.returnArray,y;return v&&u?y=b:v?y=function(f){return m(b(f))}:u?y=function(f){return S(f)?b(f):x(f).isValid()?f:e.defaultLine}:y=function(f){return S(f)?m(b(f)):x(f).isValid()?f:e.defaultLine},y.domain=b.domain,y.range=function(){return _},y}function c(d,T){return h(a(d),T)}function m(d){var T={r:d[0],g:d[1],b:d[2],a:d[3]};return x(T).toRgbString()}H.exports={hasColorscale:r,extractOpts:n,extractScale:a,flipScale:s,makeColorScaleFunc:h,makeColorScaleFuncFromTrace:c}}}),of=De({"src/plots/cartesian/axis_format_attributes.js"(Y,H){"use strict";var p=Fw(),x=p.FORMAT_LINK,S=p.DATE_FORMAT_LINK;function E(r,o){return{valType:"string",dflt:"",editType:"none",description:(o?e:t)("hover text",r)+["By default the values are formatted using "+(o?"generic number format":"`"+r+"axis.hoverformat`")+"."].join(" ")}}function e(r,o){return["Sets the "+r+" formatting rule"+(o?"for `"+o+"` ":""),"using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see: "+x+"."].join(" ")}function t(r,o){return e(r,o)+[" And for dates see: "+S+".","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(" ")}H.exports={axisHoverFormat:E,descriptionOnlyNumbers:e,descriptionWithDates:t}}}),Ih=De({"src/plots/cartesian/layout_attributes.js"(Y,H){"use strict";var p=qu(),x=Pf(),S=Ch().dash,E=Xo().extendFlat,e=Gl().templatedArray,t=ou().templateFormatStringDescription,r=of().descriptionWithDates,o=zn().ONEDAY,i=th(),n=i.HOUR_PATTERN,a=i.WEEKDAY_PATTERN,s={valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},h=E({},s,{values:s.values.slice().concat(["sync"])});function c(u){return{valType:"integer",min:0,dflt:u?5:0,editType:"ticks"}}var m={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},d={valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},T={valType:"data_array",editType:"ticks"},l={valType:"enumerated",values:["outside","inside",""],editType:"ticks"};function _(u){var y={valType:"number",min:0,editType:"ticks"};return u||(y.dflt=5),y}function w(u){var y={valType:"number",min:0,editType:"ticks"};return u||(y.dflt=1),y}var A={valType:"color",dflt:x.defaultLine,editType:"ticks"},M={valType:"color",dflt:x.lightLine,editType:"ticks"};function g(u){var y={valType:"number",min:0,editType:"ticks"};return u||(y.dflt=1),y}var b=E({},S,{editType:"ticks"}),v={valType:"boolean",editType:"ticks"};H.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:x.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:p({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:[i.idRegex.x.toString(),i.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:[i.idRegex.x.toString(),i.idRegex.y.toString()],editType:"calc"},rangebreaks:e("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:[a,n,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:o},editType:"calc"}),tickmode:h,nticks:c(),tick0:m,dtick:d,ticklabelstep:{valType:"integer",min:1,dflt:1,editType:"ticks"},tickvals:T,ticktext:{valType:"data_array",editType:"ticks"},ticks:l,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:_(),tickwidth:w(),tickcolor:A,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:E({},S,{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:p({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:r("tick label")},tickformatstops:e("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:r("hover text")},unifiedhovertitle:{text:{valType:"string",dflt:"",editType:"none"},editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:x.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:v,gridcolor:M,gridwidth:g(),griddash:b,zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:x.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:x.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",i.idRegex.x.toString(),i.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",i.idRegex.x.toString(),i.idRegex.y.toString()],editType:"plot"},minor:{tickmode:s,nticks:c("minor"),tick0:m,dtick:d,tickvals:T,ticks:l,ticklen:_("minor"),tickwidth:w("minor"),tickcolor:A,gridcolor:M,gridwidth:g("minor"),griddash:b,showgrid:v,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"}}}),w_=De({"src/components/colorbar/attributes.js"(Y,H){"use strict";var p=Ih(),x=qu(),S=Xo().extendFlat,E=gc().overrideAll;H.exports=E({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:p.linecolor,outlinewidth:p.linewidth,bordercolor:p.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:p.minor.tickmode,nticks:p.nticks,tick0:p.tick0,dtick:p.dtick,tickvals:p.tickvals,ticktext:p.ticktext,ticks:S({},p.ticks,{dflt:""}),ticklabeloverflow:S({},p.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:p.ticklen,tickwidth:p.tickwidth,tickcolor:p.tickcolor,ticklabelstep:p.ticklabelstep,showticklabels:p.showticklabels,labelalias:p.labelalias,tickfont:x({}),tickangle:p.tickangle,tickformat:p.tickformat,tickformatstops:p.tickformatstops,tickprefix:p.tickprefix,showtickprefix:p.showtickprefix,ticksuffix:p.ticksuffix,showticksuffix:p.showticksuffix,separatethousands:p.separatethousands,exponentformat:p.exponentformat,minexponent:p.minexponent,showexponent:p.showexponent,title:{text:{valType:"string"},font:x({}),side:{valType:"enumerated",values:["right","top","bottom"]}}},"colorbars","from-root")}}),zu=De({"src/components/colorscale/attributes.js"(Y,H){"use strict";var p=w_(),x=Uo().counter,S=jp(),E=up().scales,e=S(E);function t(r){return"`"+r+"`"}H.exports=function(o,i){o=o||"",i=i||{};var n=i.cLetter||"c",a="onlyIfNumerical"in i?i.onlyIfNumerical:!!o,s="noScale"in i?i.noScale:o==="marker.line",h="showScaleDflt"in i?i.showScaleDflt:n==="z",c=typeof i.colorscaleDflt=="string"?E[i.colorscaleDflt]:null,m=i.editTypeOverride||"",d=o?o+".":"",T,l;"colorAttr"in i?(T=i.colorAttr,l=i.colorAttr):(T={z:"z",c:"color"}[n],l="in "+t(d+T));var _=a?" Has an effect only if "+l+" is set to a numerical array.":"",w=n+"auto",A=n+"min",M=n+"max",g=n+"mid",b=t(d+w),v=t(d+A),u=t(d+M),y=v+" and "+u,f={};f[A]=f[M]=void 0;var R={};R[w]=!1;var L={};return T==="color"&&(L.color={valType:"color",arrayOk:!0,editType:m||"style"},i.anim&&(L.color.anim=!0)),L[w]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:f},L[A]={valType:"number",dflt:null,editType:m||"plot",impliedEdits:R},L[M]={valType:"number",dflt:null,editType:m||"plot",impliedEdits:R},L[g]={valType:"number",dflt:null,editType:"calc",impliedEdits:f},L.colorscale={valType:"colorscale",editType:"calc",dflt:c,impliedEdits:{autocolorscale:!1}},L.autocolorscale={valType:"boolean",dflt:i.autoColorDflt!==!1,editType:"calc",impliedEdits:{colorscale:void 0}},L.reversescale={valType:"boolean",dflt:!1,editType:"plot"},s||(L.showscale={valType:"boolean",dflt:h,editType:"calc"},L.colorbar=p),i.noColorAxis||(L.coloraxis={valType:"subplotid",regex:x("coloraxis"),dflt:null,editType:"calc"}),L}}}),jw=De({"src/components/colorscale/layout_attributes.js"(Y,H){"use strict";var p=Xo().extendFlat,x=zu(),S=up().scales;H.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:S.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:S.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:S.RdBu,editType:"calc"}},coloraxis:p({_isSubplotObj:!0,editType:"calc"},x("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}}}),Vw=De({"src/components/colorbar/has_colorbar.js"(Y,H){"use strict";var p=ui();H.exports=function(S){return p.isPlainObject(S.colorbar)}}}),qw=De({"src/plots/cartesian/clean_ticks.js"(Y){"use strict";var H=vn(),p=ui(),x=zn(),S=x.ONEDAY,E=x.ONEWEEK;Y.dtick=function(e,t){var r=t==="log",o=t==="date",i=t==="category",n=o?S:1;if(!e)return n;if(H(e))return e=Number(e),e<=0?n:i?Math.max(1,Math.round(e)):o?Math.max(.1,e):e;if(typeof e!="string"||!(o||r))return n;var a=e.charAt(0),s=e.slice(1);return s=H(s)?Number(s):0,s<=0||!(o&&a==="M"&&s===Math.round(s)||r&&a==="L"||r&&a==="D"&&(s===1||s===2))?n:e},Y.tick0=function(e,t,r,o){if(t==="date")return p.cleanDate(e,p.dateTick0(r,o%E===0?1:0));if(!(o==="D1"||o==="D2"))return H(e)?Number(e):0}}}),U0=De({"src/plots/cartesian/tick_value_defaults.js"(Y,H){"use strict";var p=qw(),x=ui().isArrayOrTypedArray,S=vl().isTypedArraySpec,E=vl().decodeTypedArraySpec;H.exports=function(t,r,o,i,n){n||(n={});var a=n.isMinor,s=a?t.minor||{}:t,h=a?r.minor:r,c=a?"minor.":"";function m(g){var b=s[g];return S(b)&&(b=E(b)),b!==void 0?b:(h._template||{})[g]}var d=m("tick0"),T=m("dtick"),l=m("tickvals"),_=x(l)?"array":T?"linear":"auto",w=o(c+"tickmode",_);if(w==="auto"||w==="sync")o(c+"nticks");else if(w==="linear"){var A=h.dtick=p.dtick(T,i);h.tick0=p.tick0(d,i,r.calendar,A)}else if(i!=="multicategory"){var M=o(c+"tickvals");M===void 0?h.tickmode="auto":a||o("ticktext")}}}}),Zm=De({"src/plots/cartesian/tick_mark_defaults.js"(Y,H){"use strict";var p=ui(),x=Ih();H.exports=function(E,e,t,r){var o=r.isMinor,i=o?E.minor||{}:E,n=o?e.minor:e,a=o?x.minor:x,s=o?"minor.":"",h=p.coerce2(i,n,a,"ticklen",o?(e.ticklen||5)*.6:void 0),c=p.coerce2(i,n,a,"tickwidth",o?e.tickwidth||1:void 0),m=p.coerce2(i,n,a,"tickcolor",(o?e.tickcolor:void 0)||n.color),d=t(s+"ticks",!o&&r.outerTicks||h||c||m?"outside":"");d||(delete n.ticklen,delete n.tickwidth,delete n.tickcolor)}}}),Hw=De({"src/plots/cartesian/show_dflt.js"(Y,H){"use strict";H.exports=function(x){var S=["showexponent","showtickprefix","showticksuffix"],E=S.filter(function(t){return x[t]!==void 0}),e=function(t){return x[t]===x[E[0]]};if(E.every(e)||E.length===1)return x[E[0]]}}}),Vh=De({"src/plots/array_container_defaults.js"(Y,H){"use strict";var p=ui(),x=Gl();H.exports=function(E,e,t){var r=t.name,o=t.inclusionAttr||"visible",i=e[r],n=p.isArrayOrTypedArray(E[r])?E[r]:[],a=e[r]=[],s=x.arrayTemplater(e,r,o),h,c;for(h=0;h<n.length;h++){var m=n[h];p.isPlainObject(m)?c=s.newItem(m):(c=s.newItem({}),c[o]=!1),c._index=h,c[o]!==!1&&t.handleItemDefaults(m,c,e,t),a.push(c)}var d=s.defaultItems();for(h=0;h<d.length;h++)c=d[h],c._index=a.length,t.handleItemDefaults({},c,e,t,{}),a.push(c);if(p.isArrayOrTypedArray(i)){var T=Math.min(i.length,a.length);for(h=0;h<T;h++)p.relinkPrivateKeys(a[h],i[h])}return a}}}),qp=De({"src/plots/cartesian/tick_label_defaults.js"(Y,H){"use strict";var p=ui(),x=vo().contrast,S=Ih(),E=Hw(),e=Vh();H.exports=function(o,i,n,a,s){s||(s={});var h=n("labelalias");p.isPlainObject(h)||delete i.labelalias;var c=E(o),m=n("showticklabels");if(m){s.noTicklabelshift||n("ticklabelshift"),s.noTicklabelstandoff||n("ticklabelstandoff");var d=s.font||{},T=i.color,l=i.ticklabelposition||"",_=l.indexOf("inside")!==-1?x(s.bgColor):T&&T!==S.color.dflt?T:d.color;if(p.coerceFont(n,"tickfont",d,{overrideDflt:{color:_}}),!s.noTicklabelstep&&a!=="multicategory"&&a!=="log"&&n("ticklabelstep"),!s.noAng){var w=n("tickangle");!s.noAutotickangles&&w==="auto"&&n("autotickangles")}if(a!=="category"){var A=n("tickformat");e(o,i,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:t}),i.tickformatstops.length||delete i.tickformatstops,!s.noExp&&!A&&a!=="date"&&(n("showexponent",c),n("exponentformat"),n("minexponent"),n("separatethousands"))}!s.noMinorloglabels&&a==="log"&&n("minorloglabels")}};function t(r,o){function i(a,s){return p.coerce(r,o,S.tickformatstops,a,s)}var n=i("enabled");n&&(i("dtickrange"),i("value"))}}}),Hp=De({"src/plots/cartesian/prefix_suffix_defaults.js"(Y,H){"use strict";var p=Hw();H.exports=function(S,E,e,t,r){r||(r={});var o=r.tickSuffixDflt,i=p(S),n=e("tickprefix");n&&e("showtickprefix",i);var a=e("ticksuffix",o);a&&e("showticksuffix",i)}}}),Gw=De({"src/components/colorbar/defaults.js"(Y,H){"use strict";var p=ui(),x=Gl(),S=U0(),E=Zm(),e=qp(),t=Hp(),r=w_();H.exports=function(i,n,a){var s=x.newContainer(n,"colorbar"),h=i.colorbar||{};function c(I,U){return p.coerce(h,s,r,I,U)}var m=a.margin||{t:0,b:0,l:0,r:0},d=a.width-m.l-m.r,T=a.height-m.t-m.b,l=c("orientation"),_=l==="v",w=c("thicknessmode");c("thickness",w==="fraction"?30/(_?d:T):30);var A=c("lenmode");c("len",A==="fraction"?1:_?T:d);var M=c("yref"),g=c("xref"),b=M==="paper",v=g==="paper",u,y,f,R="left";_?(f="middle",R=v?"left":"right",u=v?1.02:1,y=.5):(f=b?"bottom":"top",R="center",u=.5,y=b?1.02:1),p.coerce(h,s,{x:{valType:"number",min:v?-2:0,max:v?3:1,dflt:u}},"x"),p.coerce(h,s,{y:{valType:"number",min:b?-2:0,max:b?3:1,dflt:y}},"y"),c("xanchor",R),c("xpad"),c("yanchor",f),c("ypad"),p.noneOrAll(h,s,["x","y"]),c("outlinecolor"),c("outlinewidth"),c("bordercolor"),c("borderwidth"),c("bgcolor");var L=p.coerce(h,s,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:_?["outside","inside","outside top","inside top","outside bottom","inside bottom"]:["outside","inside","outside left","inside left","outside right","inside right"]}},"ticklabelposition");c("ticklabeloverflow",L.indexOf("inside")!==-1?"hide past domain":"hide past div"),S(h,s,c,"linear");var z=a.font,F={noAutotickangles:!0,noTicklabelshift:!0,noTicklabelstandoff:!0,outerTicks:!1,font:z};L.indexOf("inside")!==-1&&(F.bgColor="black"),t(h,s,c,"linear",F),e(h,s,c,"linear",F),E(h,s,c,"linear",F),c("title.text",a._dfltTitle.colorbar);var N=s.showticklabels?s.tickfont:z,B=p.extendFlat({},z,{family:N.family,size:p.bigFont(N.size)});p.coerceFont(c,"title.font",B),c("title.side",_?"top":"right")}}}),dh=De({"src/components/colorscale/defaults.js"(Y,H){"use strict";var p=vn(),x=ui(),S=Vw(),E=Gw(),e=up().isValid,t=Mo().traceIs;function r(o,i){var n=i.slice(0,i.length-1);return i?x.nestedProperty(o,n).get()||{}:o}H.exports=function o(i,n,a,s,h){var c=h.prefix,m=h.cLetter,d="_module"in n,T=r(i,c),l=r(n,c),_=r(n._template||{},c)||{},w=function(){return delete i.coloraxis,delete n.coloraxis,o(i,n,a,s,h)};if(d){var A=a._colorAxes||{},M=s(c+"coloraxis");if(M){var g=t(n,"contour")&&x.nestedProperty(n,"contours.coloring").get()||"heatmap",b=A[M];b?(b[2].push(w),b[0]!==g&&(b[0]=!1,x.warn(["Ignoring coloraxis:",M,"setting","as it is linked to incompatible colorscales."].join(" ")))):A[M]=[g,n,[w]];return}}var v=T[m+"min"],u=T[m+"max"],y=p(v)&&p(u)&&v<u,f=s(c+m+"auto",!y);f?s(c+m+"mid"):(s(c+m+"min"),s(c+m+"max"));var R=T.colorscale,L=_.colorscale,z;if(R!==void 0&&(z=!e(R)),L!==void 0&&(z=!e(L)),s(c+"autocolorscale",z),s(c+"colorscale"),s(c+"reversescale"),c!=="marker.line."){var F;c&&d&&(F=S(T));var N=s(c+"showscale",F);N&&(c&&_&&(l._template=_),E(T,l,a))}}}}),IM=De({"src/components/colorscale/layout_defaults.js"(Y,H){"use strict";var p=ui(),x=Gl(),S=jw(),E=dh();H.exports=function(t,r){function o(d,T){return p.coerce(t,r,S,d,T)}o("colorscale.sequential"),o("colorscale.sequentialminus"),o("colorscale.diverging");var i=r._colorAxes,n,a;function s(d,T){return p.coerce(n,a,S.coloraxis,d,T)}for(var h in i){var c=i[h];if(c[0])n=t[h]||{},a=x.newContainer(r,h,"coloraxis"),a._name=h,E(n,a,r,s,{prefix:"",cLetter:"c"});else{for(var m=0;m<c[2].length;m++)c[2][m]();delete r._colorAxes[h]}}}}}),PM=De({"src/components/colorscale/cross_trace_defaults.js"(Y,H){"use strict";var p=ui(),x=$h().hasColorscale,S=$h().extractOpts;H.exports=function(e,t){function r(c,m){var d=c["_"+m];d!==void 0&&(c[m]=d)}function o(c,m){var d=m.container?p.nestedProperty(c,m.container).get():c;if(d)if(d.coloraxis)d._colorAx=t[d.coloraxis];else{var T=S(d),l=T.auto;(l||T.min===void 0)&&r(d,m.min),(l||T.max===void 0)&&r(d,m.max),T.autocolorscale&&r(d,"colorscale")}}for(var i=0;i<e.length;i++){var n=e[i],a=n._module.colorbar;if(a)if(Array.isArray(a))for(var s=0;s<a.length;s++)o(n,a[s]);else o(n,a);x(n,"marker.line")&&o(n,{container:"marker.line",min:"cmin",max:"cmax"})}for(var h in t._colorAxes)o(t[h],{min:"cmin",max:"cmax"})}}}),Jh=De({"src/components/colorscale/calc.js"(Y,H){"use strict";var p=vn(),x=ui(),S=$h().extractOpts;H.exports=function(e,t,r){var o=e._fullLayout,i=r.vals,n=r.containerStr,a=n?x.nestedProperty(t,n).get():t,s=S(a),h=s.auto!==!1,c=s.min,m=s.max,d=s.mid,T=function(){return x.aggNums(Math.min,null,i)},l=function(){return x.aggNums(Math.max,null,i)};if(c===void 0?c=T():h&&(a._colorAx&&p(c)?c=Math.min(c,T()):c=T()),m===void 0?m=l():h&&(a._colorAx&&p(m)?m=Math.max(m,l()):m=l()),h&&d!==void 0&&(m-d>d-c?c=d-(m-d):m-d<d-c&&(m=d+(d-c))),c===m&&(c-=.5,m+=.5),s._sync("min",c),s._sync("max",m),s.autocolorscale){var _;c*m<0?_=o.colorscale.diverging:c>=0?_=o.colorscale.sequential:_=o.colorscale.sequentialminus,s._sync("colorscale",_)}}}}),oc=De({"src/components/colorscale/index.js"(Y,H){"use strict";var p=up(),x=$h();H.exports={moduleType:"component",name:"colorscale",attributes:zu(),layoutAttributes:jw(),supplyLayoutDefaults:IM(),handleDefaults:dh(),crossTraceDefaults:PM(),calc:Jh(),scales:p.scales,defaultScale:p.defaultScale,getScale:p.get,isValidScale:p.isValid,hasColorscale:x.hasColorscale,extractOpts:x.extractOpts,extractScale:x.extractScale,flipScale:x.flipScale,makeColorScaleFunc:x.makeColorScaleFunc,makeColorScaleFuncFromTrace:x.makeColorScaleFuncFromTrace}}}),Hu=De({"src/traces/scatter/subtypes.js"(Y,H){"use strict";var p=ui(),x=vl().isTypedArraySpec;H.exports={hasLines:function(S){return S.visible&&S.mode&&S.mode.indexOf("lines")!==-1},hasMarkers:function(S){return S.visible&&(S.mode&&S.mode.indexOf("markers")!==-1||S.type==="splom")},hasText:function(S){return S.visible&&S.mode&&S.mode.indexOf("text")!==-1},isBubble:function(S){var E=S.marker;return p.isPlainObject(E)&&(p.isArrayOrTypedArray(E.size)||x(E.size))}}}}),Km=De({"src/traces/scatter/make_bubble_size_func.js"(Y,H){"use strict";var p=vn();H.exports=function(S,E){E||(E=2);var e=S.marker,t=e.sizeref||1,r=e.sizemin||0,o=e.sizemode==="area"?function(i){return Math.sqrt(i/t)}:function(i){return i/t};return function(i){var n=o(i/E);return p(n)&&n>0?Math.max(n,r):0}}}}),Ad=De({"src/components/fx/helpers.js"(Y){"use strict";var H=ui();Y.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},Y.isTraceInSubplots=function(t,r){if(t.type==="splom"){for(var o=t.xaxes||[],i=t.yaxes||[],n=0;n<o.length;n++)for(var a=0;a<i.length;a++)if(r.indexOf(o[n]+i[a])!==-1)return!0;return!1}return r.indexOf(Y.getSubplot(t))!==-1},Y.flat=function(t,r){for(var o=new Array(t.length),i=0;i<t.length;i++)o[i]=r;return o},Y.p2c=function(t,r){for(var o=new Array(t.length),i=0;i<t.length;i++)o[i]=t[i].p2c(r);return o},Y.getDistanceFunction=function(t,r,o,i){return t==="closest"?i||Y.quadrature(r,o):t.charAt(0)==="x"?r:o},Y.getClosest=function(t,r,o){if(o.index!==!1)o.index>=0&&o.index<t.length?o.distance=0:o.index=!1;else for(var i=1/0,n=t.length,a=0;a<n;a++)i=r(t[a]),i<=o.distance&&(o.index=a,o.distance=i);return o},Y.inbox=function(t,r,o){return t*r<0||t===0?o:1/0},Y.quadrature=function(t,r){return function(o){var i=t(o),n=r(o);return Math.sqrt(i*i+n*n)}},Y.makeEventData=function(t,r,o){var i="index"in t?t.index:t.pointNumber,n={data:r._input,fullData:r,curveNumber:r.index,pointNumber:i};if(r._indexToPoints){var a=r._indexToPoints[i];a.length===1?n.pointIndex=a[0]:n.pointIndices=a}else n.pointIndex=i;return r._module.eventData?n=r._module.eventData(n,t,r,o,i):("xVal"in t?n.x=t.xVal:"x"in t&&(n.x=t.x),"yVal"in t?n.y=t.yVal:"y"in t&&(n.y=t.y),t.xa&&(n.xaxis=t.xa),t.ya&&(n.yaxis=t.ya),t.zLabelVal!==void 0&&(n.z=t.zLabelVal)),Y.appendArrayPointValue(n,r,i),n},Y.appendArrayPointValue=function(t,r,o){var i=r._arrayAttrs;if(i)for(var n=0;n<i.length;n++){var a=i[n],s=x(a);if(t[s]===void 0){var h=H.nestedProperty(r,a).get(),c=S(h,o);c!==void 0&&(t[s]=c)}}},Y.appendArrayMultiPointValues=function(t,r,o){var i=r._arrayAttrs;if(i)for(var n=0;n<i.length;n++){var a=i[n],s=x(a);if(t[s]===void 0){for(var h=H.nestedProperty(r,a).get(),c=new Array(o.length),m=0;m<o.length;m++)c[m]=S(h,o[m]);t[s]=c}}};var p={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function x(t){return p[t]||t}function S(t,r){if(Array.isArray(r)){if(H.isArrayOrTypedArray(t)&&H.isArrayOrTypedArray(t[r[0]]))return t[r[0]][r[1]]}else return t[r]}var E={x:!0,y:!0},e={"x unified":!0,"y unified":!0};Y.isUnifiedHover=function(t){return typeof t!="string"?!1:!!e[t]},Y.isXYhover=function(t){return typeof t!="string"?!1:!!E[t]}}}),ly=De({"node_modules/parse-svg-path/index.js"(Y,H){H.exports=S;var p={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},x=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function S(t){var r=[];return t.replace(x,function(o,i,n){var a=i.toLowerCase();for(n=e(n),a=="m"&&n.length>2&&(r.push([i].concat(n.splice(0,2))),a="l",i=i=="m"?"l":"L");;){if(n.length==p[a])return n.unshift(i),r.push(n);if(n.length<p[a])throw new Error("malformed path data");r.push([i].concat(n.splice(0,p[a])))}}),r}var E=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function e(t){var r=t.match(E);return r?r.map(Number):[]}}}),RM=De({"src/components/drawing/symbol_defs.js"(Y,H){"use strict";var p=ly(),x=function(m,d){return d?Math.round(m*(d=Math.pow(10,d)))/d:Math.round(m)},S="M0,0Z",E=Math.sqrt(2),e=Math.sqrt(3),t=Math.PI,r=Math.cos,o=Math.sin;H.exports={circle:{n:0,f:function(m,d,T){if(i(d))return S;var l=x(m,2),_="M"+l+",0A"+l+","+l+" 0 1,1 0,-"+l+"A"+l+","+l+" 0 0,1 "+l+",0Z";return T?c(d,T,_):_}},square:{n:1,f:function(m,d,T){if(i(d))return S;var l=x(m,2);return c(d,T,"M"+l+","+l+"H-"+l+"V-"+l+"H"+l+"Z")}},diamond:{n:2,f:function(m,d,T){if(i(d))return S;var l=x(m*1.3,2);return c(d,T,"M"+l+",0L0,"+l+"L-"+l+",0L0,-"+l+"Z")}},cross:{n:3,f:function(m,d,T){if(i(d))return S;var l=x(m*.4,2),_=x(m*1.2,2);return c(d,T,"M"+_+","+l+"H"+l+"V"+_+"H-"+l+"V"+l+"H-"+_+"V-"+l+"H-"+l+"V-"+_+"H"+l+"V-"+l+"H"+_+"Z")}},x:{n:4,f:function(m,d,T){if(i(d))return S;var l=x(m*.8/E,2),_="l"+l+","+l,w="l"+l+",-"+l,A="l-"+l+",-"+l,M="l-"+l+","+l;return c(d,T,"M0,"+l+_+w+A+w+A+M+A+M+_+M+_+"Z")}},"triangle-up":{n:5,f:function(m,d,T){if(i(d))return S;var l=x(m*2/e,2),_=x(m/2,2),w=x(m,2);return c(d,T,"M-"+l+","+_+"H"+l+"L0,-"+w+"Z")}},"triangle-down":{n:6,f:function(m,d,T){if(i(d))return S;var l=x(m*2/e,2),_=x(m/2,2),w=x(m,2);return c(d,T,"M-"+l+",-"+_+"H"+l+"L0,"+w+"Z")}},"triangle-left":{n:7,f:function(m,d,T){if(i(d))return S;var l=x(m*2/e,2),_=x(m/2,2),w=x(m,2);return c(d,T,"M"+_+",-"+l+"V"+l+"L-"+w+",0Z")}},"triangle-right":{n:8,f:function(m,d,T){if(i(d))return S;var l=x(m*2/e,2),_=x(m/2,2),w=x(m,2);return c(d,T,"M-"+_+",-"+l+"V"+l+"L"+w+",0Z")}},"triangle-ne":{n:9,f:function(m,d,T){if(i(d))return S;var l=x(m*.6,2),_=x(m*1.2,2);return c(d,T,"M-"+_+",-"+l+"H"+l+"V"+_+"Z")}},"triangle-se":{n:10,f:function(m,d,T){if(i(d))return S;var l=x(m*.6,2),_=x(m*1.2,2);return c(d,T,"M"+l+",-"+_+"V"+l+"H-"+_+"Z")}},"triangle-sw":{n:11,f:function(m,d,T){if(i(d))return S;var l=x(m*.6,2),_=x(m*1.2,2);return c(d,T,"M"+_+","+l+"H-"+l+"V-"+_+"Z")}},"triangle-nw":{n:12,f:function(m,d,T){if(i(d))return S;var l=x(m*.6,2),_=x(m*1.2,2);return c(d,T,"M-"+l+","+_+"V-"+l+"H"+_+"Z")}},pentagon:{n:13,f:function(m,d,T){if(i(d))return S;var l=x(m*.951,2),_=x(m*.588,2),w=x(-m,2),A=x(m*-.309,2),M=x(m*.809,2);return c(d,T,"M"+l+","+A+"L"+_+","+M+"H-"+_+"L-"+l+","+A+"L0,"+w+"Z")}},hexagon:{n:14,f:function(m,d,T){if(i(d))return S;var l=x(m,2),_=x(m/2,2),w=x(m*e/2,2);return c(d,T,"M"+w+",-"+_+"V"+_+"L0,"+l+"L-"+w+","+_+"V-"+_+"L0,-"+l+"Z")}},hexagon2:{n:15,f:function(m,d,T){if(i(d))return S;var l=x(m,2),_=x(m/2,2),w=x(m*e/2,2);return c(d,T,"M-"+_+","+w+"H"+_+"L"+l+",0L"+_+",-"+w+"H-"+_+"L-"+l+",0Z")}},octagon:{n:16,f:function(m,d,T){if(i(d))return S;var l=x(m*.924,2),_=x(m*.383,2);return c(d,T,"M-"+_+",-"+l+"H"+_+"L"+l+",-"+_+"V"+_+"L"+_+","+l+"H-"+_+"L-"+l+","+_+"V-"+_+"Z")}},star:{n:17,f:function(m,d,T){if(i(d))return S;var l=m*1.4,_=x(l*.225,2),w=x(l*.951,2),A=x(l*.363,2),M=x(l*.588,2),g=x(-l,2),b=x(l*-.309,2),v=x(l*.118,2),u=x(l*.809,2),y=x(l*.382,2);return c(d,T,"M"+_+","+b+"H"+w+"L"+A+","+v+"L"+M+","+u+"L0,"+y+"L-"+M+","+u+"L-"+A+","+v+"L-"+w+","+b+"H-"+_+"L0,"+g+"Z")}},hexagram:{n:18,f:function(m,d,T){if(i(d))return S;var l=x(m*.66,2),_=x(m*.38,2),w=x(m*.76,2);return c(d,T,"M-"+w+",0l-"+_+",-"+l+"h"+w+"l"+_+",-"+l+"l"+_+","+l+"h"+w+"l-"+_+","+l+"l"+_+","+l+"h-"+w+"l-"+_+","+l+"l-"+_+",-"+l+"h-"+w+"Z")}},"star-triangle-up":{n:19,f:function(m,d,T){if(i(d))return S;var l=x(m*e*.8,2),_=x(m*.8,2),w=x(m*1.6,2),A=x(m*4,2),M="A "+A+","+A+" 0 0 1 ";return c(d,T,"M-"+l+","+_+M+l+","+_+M+"0,-"+w+M+"-"+l+","+_+"Z")}},"star-triangle-down":{n:20,f:function(m,d,T){if(i(d))return S;var l=x(m*e*.8,2),_=x(m*.8,2),w=x(m*1.6,2),A=x(m*4,2),M="A "+A+","+A+" 0 0 1 ";return c(d,T,"M"+l+",-"+_+M+"-"+l+",-"+_+M+"0,"+w+M+l+",-"+_+"Z")}},"star-square":{n:21,f:function(m,d,T){if(i(d))return S;var l=x(m*1.1,2),_=x(m*2,2),w="A "+_+","+_+" 0 0 1 ";return c(d,T,"M-"+l+",-"+l+w+"-"+l+","+l+w+l+","+l+w+l+",-"+l+w+"-"+l+",-"+l+"Z")}},"star-diamond":{n:22,f:function(m,d,T){if(i(d))return S;var l=x(m*1.4,2),_=x(m*1.9,2),w="A "+_+","+_+" 0 0 1 ";return c(d,T,"M-"+l+",0"+w+"0,"+l+w+l+",0"+w+"0,-"+l+w+"-"+l+",0Z")}},"diamond-tall":{n:23,f:function(m,d,T){if(i(d))return S;var l=x(m*.7,2),_=x(m*1.4,2);return c(d,T,"M0,"+_+"L"+l+",0L0,-"+_+"L-"+l+",0Z")}},"diamond-wide":{n:24,f:function(m,d,T){if(i(d))return S;var l=x(m*1.4,2),_=x(m*.7,2);return c(d,T,"M0,"+_+"L"+l+",0L0,-"+_+"L-"+l+",0Z")}},hourglass:{n:25,f:function(m,d,T){if(i(d))return S;var l=x(m,2);return c(d,T,"M"+l+","+l+"H-"+l+"L"+l+",-"+l+"H-"+l+"Z")},noDot:!0},bowtie:{n:26,f:function(m,d,T){if(i(d))return S;var l=x(m,2);return c(d,T,"M"+l+","+l+"V-"+l+"L-"+l+","+l+"V-"+l+"Z")},noDot:!0},"circle-cross":{n:27,f:function(m,d,T){if(i(d))return S;var l=x(m,2);return c(d,T,"M0,"+l+"V-"+l+"M"+l+",0H-"+l+"M"+l+",0A"+l+","+l+" 0 1,1 0,-"+l+"A"+l+","+l+" 0 0,1 "+l+",0Z")},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(m,d,T){if(i(d))return S;var l=x(m,2),_=x(m/E,2);return c(d,T,"M"+_+","+_+"L-"+_+",-"+_+"M"+_+",-"+_+"L-"+_+","+_+"M"+l+",0A"+l+","+l+" 0 1,1 0,-"+l+"A"+l+","+l+" 0 0,1 "+l+",0Z")},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(m,d,T){if(i(d))return S;var l=x(m,2);return c(d,T,"M0,"+l+"V-"+l+"M"+l+",0H-"+l+"M"+l+","+l+"H-"+l+"V-"+l+"H"+l+"Z")},needLine:!0,noDot:!0},"square-x":{n:30,f:function(m,d,T){if(i(d))return S;var l=x(m,2);return c(d,T,"M"+l+","+l+"L-"+l+",-"+l+"M"+l+",-"+l+"L-"+l+","+l+"M"+l+","+l+"H-"+l+"V-"+l+"H"+l+"Z")},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(m,d,T){if(i(d))return S;var l=x(m*1.3,2);return c(d,T,"M"+l+",0L0,"+l+"L-"+l+",0L0,-"+l+"ZM0,-"+l+"V"+l+"M-"+l+",0H"+l)},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(m,d,T){if(i(d))return S;var l=x(m*1.3,2),_=x(m*.65,2);return c(d,T,"M"+l+",0L0,"+l+"L-"+l+",0L0,-"+l+"ZM-"+_+",-"+_+"L"+_+","+_+"M-"+_+","+_+"L"+_+",-"+_)},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(m,d,T){if(i(d))return S;var l=x(m*1.4,2);return c(d,T,"M0,"+l+"V-"+l+"M"+l+",0H-"+l)},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(m,d,T){if(i(d))return S;var l=x(m,2);return c(d,T,"M"+l+","+l+"L-"+l+",-"+l+"M"+l+",-"+l+"L-"+l+","+l)},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(m,d,T){if(i(d))return S;var l=x(m*1.2,2),_=x(m*.85,2);return c(d,T,"M0,"+l+"V-"+l+"M"+l+",0H-"+l+"M"+_+","+_+"L-"+_+",-"+_+"M"+_+",-"+_+"L-"+_+","+_)},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(m,d,T){if(i(d))return S;var l=x(m/2,2),_=x(m,2);return c(d,T,"M"+l+","+_+"V-"+_+"M"+(l-_)+",-"+_+"V"+_+"M"+_+","+l+"H-"+_+"M-"+_+","+(l-_)+"H"+_)},needLine:!0,noFill:!0},"y-up":{n:37,f:function(m,d,T){if(i(d))return S;var l=x(m*1.2,2),_=x(m*1.6,2),w=x(m*.8,2);return c(d,T,"M-"+l+","+w+"L0,0M"+l+","+w+"L0,0M0,-"+_+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(m,d,T){if(i(d))return S;var l=x(m*1.2,2),_=x(m*1.6,2),w=x(m*.8,2);return c(d,T,"M-"+l+",-"+w+"L0,0M"+l+",-"+w+"L0,0M0,"+_+"L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(m,d,T){if(i(d))return S;var l=x(m*1.2,2),_=x(m*1.6,2),w=x(m*.8,2);return c(d,T,"M"+w+","+l+"L0,0M"+w+",-"+l+"L0,0M-"+_+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(m,d,T){if(i(d))return S;var l=x(m*1.2,2),_=x(m*1.6,2),w=x(m*.8,2);return c(d,T,"M-"+w+","+l+"L0,0M-"+w+",-"+l+"L0,0M"+_+",0L0,0")},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(m,d,T){if(i(d))return S;var l=x(m*1.4,2);return c(d,T,"M"+l+",0H-"+l)},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(m,d,T){if(i(d))return S;var l=x(m*1.4,2);return c(d,T,"M0,"+l+"V-"+l)},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(m,d,T){if(i(d))return S;var l=x(m,2);return c(d,T,"M"+l+",-"+l+"L-"+l+","+l)},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(m,d,T){if(i(d))return S;var l=x(m,2);return c(d,T,"M"+l+","+l+"L-"+l+",-"+l)},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(m,d,T){if(i(d))return S;var l=x(m,2),_=x(m*2,2);return c(d,T,"M0,0L-"+l+","+_+"H"+l+"Z")},backoff:1,noDot:!0},"arrow-down":{n:46,f:function(m,d,T){if(i(d))return S;var l=x(m,2),_=x(m*2,2);return c(d,T,"M0,0L-"+l+",-"+_+"H"+l+"Z")},noDot:!0},"arrow-left":{n:47,f:function(m,d,T){if(i(d))return S;var l=x(m*2,2),_=x(m,2);return c(d,T,"M0,0L"+l+",-"+_+"V"+_+"Z")},noDot:!0},"arrow-right":{n:48,f:function(m,d,T){if(i(d))return S;var l=x(m*2,2),_=x(m,2);return c(d,T,"M0,0L-"+l+",-"+_+"V"+_+"Z")},noDot:!0},"arrow-bar-up":{n:49,f:function(m,d,T){if(i(d))return S;var l=x(m,2),_=x(m*2,2);return c(d,T,"M-"+l+",0H"+l+"M0,0L-"+l+","+_+"H"+l+"Z")},backoff:1,needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(m,d,T){if(i(d))return S;var l=x(m,2),_=x(m*2,2);return c(d,T,"M-"+l+",0H"+l+"M0,0L-"+l+",-"+_+"H"+l+"Z")},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(m,d,T){if(i(d))return S;var l=x(m*2,2),_=x(m,2);return c(d,T,"M0,-"+_+"V"+_+"M0,0L"+l+",-"+_+"V"+_+"Z")},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(m,d,T){if(i(d))return S;var l=x(m*2,2),_=x(m,2);return c(d,T,"M0,-"+_+"V"+_+"M0,0L-"+l+",-"+_+"V"+_+"Z")},needLine:!0,noDot:!0},arrow:{n:53,f:function(m,d,T){if(i(d))return S;var l=t/2.5,_=2*m*r(l),w=2*m*o(l);return c(d,T,"M0,0L"+-_+","+w+"L"+_+","+w+"Z")},backoff:.9,noDot:!0},"arrow-wide":{n:54,f:function(m,d,T){if(i(d))return S;var l=t/4,_=2*m*r(l),w=2*m*o(l);return c(d,T,"M0,0L"+-_+","+w+"A "+2*m+","+2*m+" 0 0 1 "+_+","+w+"Z")},backoff:.4,noDot:!0}};function i(m){return m===null}var n,a,s,h;function c(m,d,T){if((!m||m%360===0)&&!d)return T;if(s===m&&h===d&&n===T)return a;s=m,h=d,n=T;function l(z,F){var N=r(z),B=o(z),I=F[0],U=F[1]+(d||0);return[I*N-U*B,I*B+U*N]}for(var _=m/180*t,w=0,A=0,M=p(T),g="",b=0;b<M.length;b++){var v=M[b],u=v[0],y=w,f=A;if(u==="M"||u==="L")w=+v[1],A=+v[2];else if(u==="m"||u==="l")w+=+v[1],A+=+v[2];else if(u==="H")w=+v[1];else if(u==="h")w+=+v[1];else if(u==="V")A=+v[1];else if(u==="v")A+=+v[1];else if(u==="A"){w=+v[1],A=+v[2];var R=l(_,[+v[6],+v[7]]);v[6]=R[0],v[7]=R[1],v[3]=+v[3]+m}(u==="H"||u==="V")&&(u="L"),(u==="h"||u==="v")&&(u="l"),(u==="m"||u==="l")&&(w-=y,A-=f);var L=l(_,[w,A]);(u==="H"||u==="V")&&(u="L"),(u==="M"||u==="L"||u==="m"||u==="l")&&(v[1]=L[0],v[2]=L[1]),v[0]=u,g+=v[0]+v.slice(1).join(",")}return a=g,g}}}),ys=De({"src/components/drawing/index.js"(Y,H){"use strict";var p=za(),x=ui(),S=x.numberFormat,E=vn(),e=wu(),t=Mo(),r=vo(),o=oc(),i=x.strTranslate,n=vu(),a=Bd(),s=rh(),h=s.LINE_SPACING,c=_o().DESELECTDIM,m=Hu(),d=Km(),T=Ad().appendArrayPointValue,l=H.exports={};l.font=function(Ae,me){var fe=me.variant,Be=me.style,Qe=me.weight,at=me.color,$e=me.size,It=me.family,Pt=me.shadow,Vt=me.lineposition,Wt=me.textcase;It&&Ae.style("font-family",It),$e+1&&Ae.style("font-size",$e+"px"),at&&Ae.call(r.fill,at),Qe&&Ae.style("font-weight",Qe),Be&&Ae.style("font-style",Be),fe&&Ae.style("font-variant",fe),Wt&&Ae.style("text-transform",_(A(Wt))),Pt&&Ae.style("text-shadow",Pt==="auto"?n.makeTextShadow(r.contrast(at)):_(Pt)),Vt&&Ae.style("text-decoration-line",_(M(Vt)))};function _(Ae){return Ae==="none"?void 0:Ae}var w={normal:"none",lower:"lowercase",upper:"uppercase","word caps":"capitalize"};function A(Ae){return w[Ae]}function M(Ae){return Ae.replace("under","underline").replace("over","overline").replace("through","line-through").split("+").join(" ")}l.setPosition=function(Ae,me,fe){Ae.attr("x",me).attr("y",fe)},l.setSize=function(Ae,me,fe){Ae.attr("width",me).attr("height",fe)},l.setRect=function(Ae,me,fe,Be,Qe){Ae.call(l.setPosition,me,fe).call(l.setSize,Be,Qe)},l.translatePoint=function(Ae,me,fe,Be){var Qe=fe.c2p(Ae.x),at=Be.c2p(Ae.y);if(E(Qe)&&E(at)&&me.node())me.node().nodeName==="text"?me.attr("x",Qe).attr("y",at):me.attr("transform",i(Qe,at));else return!1;return!0},l.translatePoints=function(Ae,me,fe){Ae.each(function(Be){var Qe=p.select(this);l.translatePoint(Be,Qe,me,fe)})},l.hideOutsideRangePoint=function(Ae,me,fe,Be,Qe,at){me.attr("display",fe.isPtWithinRange(Ae,Qe)&&Be.isPtWithinRange(Ae,at)?null:"none")},l.hideOutsideRangePoints=function(Ae,me){if(me._hasClipOnAxisFalse){var fe=me.xaxis,Be=me.yaxis;Ae.each(function(Qe){var at=Qe[0].trace,$e=at.xcalendar,It=at.ycalendar,Pt=t.traceIs(at,"bar-like")?".bartext":".point,.textpoint";Ae.selectAll(Pt).each(function(Vt){l.hideOutsideRangePoint(Vt,p.select(this),fe,Be,$e,It)})})}},l.crispRound=function(Ae,me,fe){return!me||!E(me)?fe||0:Ae._context.staticPlot?me:me<1?1:Math.round(me)},l.singleLineStyle=function(Ae,me,fe,Be,Qe){me.style("fill","none");var at=(((Ae||[])[0]||{}).trace||{}).line||{},$e=fe||at.width||0,It=Qe||at.dash||"";r.stroke(me,Be||at.color),l.dashLine(me,It,$e)},l.lineGroupStyle=function(Ae,me,fe,Be){Ae.style("fill","none").each(function(Qe){var at=(((Qe||[])[0]||{}).trace||{}).line||{},$e=me||at.width||0,It=Be||at.dash||"";p.select(this).call(r.stroke,fe||at.color).call(l.dashLine,It,$e)})},l.dashLine=function(Ae,me,fe){fe=+fe||0,me=l.dashStyle(me,fe),Ae.style({"stroke-dasharray":me,"stroke-width":fe+"px"})},l.dashStyle=function(Ae,me){me=+me||1;var fe=Math.max(me,3);return Ae==="solid"?Ae="":Ae==="dot"?Ae=fe+"px,"+fe+"px":Ae==="dash"?Ae=3*fe+"px,"+3*fe+"px":Ae==="longdash"?Ae=5*fe+"px,"+5*fe+"px":Ae==="dashdot"?Ae=3*fe+"px,"+fe+"px,"+fe+"px,"+fe+"px":Ae==="longdashdot"&&(Ae=5*fe+"px,"+2*fe+"px,"+fe+"px,"+2*fe+"px"),Ae};function g(Ae,me,fe,Be){var Qe=me.fillpattern,at=me.fillgradient,$e=l.getPatternAttr,It=Qe&&($e(Qe.shape,0,"")||$e(Qe.path,0,""));if(It){var Pt=$e(Qe.bgcolor,0,null),Vt=$e(Qe.fgcolor,0,null),Wt=Qe.fgopacity,Cr=$e(Qe.size,0,8),yr=$e(Qe.solidity,0,.3),qr=me.uid;l.pattern(Ae,"point",fe,qr,It,Cr,yr,void 0,Qe.fillmode,Pt,Vt,Wt)}else if(at&&at.type!=="none"){var Mr=at.type,Dr="scatterfill-"+me.uid;if(Be&&(Dr="legendfill-"+me.uid),!Be&&(at.start!==void 0||at.stop!==void 0)){var xt,Ne;Mr==="horizontal"?(xt={x:at.start,y:0},Ne={x:at.stop,y:0}):Mr==="vertical"&&(xt={x:0,y:at.start},Ne={x:0,y:at.stop}),xt.x=me._xA.c2p(xt.x===void 0?me._extremes.x.min[0].val:xt.x,!0),xt.y=me._yA.c2p(xt.y===void 0?me._extremes.y.min[0].val:xt.y,!0),Ne.x=me._xA.c2p(Ne.x===void 0?me._extremes.x.max[0].val:Ne.x,!0),Ne.y=me._yA.c2p(Ne.y===void 0?me._extremes.y.max[0].val:Ne.y,!0),Ae.call(L,fe,Dr,"linear",at.colorscale,"fill",xt,Ne,!0,!1)}else Mr==="horizontal"&&(Mr=Mr+"reversed"),Ae.call(l.gradient,fe,Dr,Mr,at.colorscale,"fill")}else me.fillcolor&&Ae.call(r.fill,me.fillcolor)}l.singleFillStyle=function(Ae,me){var fe=p.select(Ae.node()),Be=fe.data(),Qe=((Be[0]||[])[0]||{}).trace||{};g(Ae,Qe,me,!1)},l.fillGroupStyle=function(Ae,me,fe){Ae.style("stroke-width",0).each(function(Be){var Qe=p.select(this);Be[0].trace&&g(Qe,Be[0].trace,me,fe)})};var b=RM();l.symbolNames=[],l.symbolFuncs=[],l.symbolBackOffs=[],l.symbolNeedLines={},l.symbolNoDot={},l.symbolNoFill={},l.symbolList=[],Object.keys(b).forEach(function(Ae){var me=b[Ae],fe=me.n;l.symbolList.push(fe,String(fe),Ae,fe+100,String(fe+100),Ae+"-open"),l.symbolNames[fe]=Ae,l.symbolFuncs[fe]=me.f,l.symbolBackOffs[fe]=me.backoff||0,me.needLine&&(l.symbolNeedLines[fe]=!0),me.noDot?l.symbolNoDot[fe]=!0:l.symbolList.push(fe+200,String(fe+200),Ae+"-dot",fe+300,String(fe+300),Ae+"-open-dot"),me.noFill&&(l.symbolNoFill[fe]=!0)});var v=l.symbolNames.length,u="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";l.symbolNumber=function(Ae){if(E(Ae))Ae=+Ae;else if(typeof Ae=="string"){var me=0;Ae.indexOf("-open")>0&&(me=100,Ae=Ae.replace("-open","")),Ae.indexOf("-dot")>0&&(me+=200,Ae=Ae.replace("-dot","")),Ae=l.symbolNames.indexOf(Ae),Ae>=0&&(Ae+=me)}return Ae%100>=v||Ae>=400?0:Math.floor(Math.max(Ae,0))};function y(Ae,me,fe,Be){var Qe=Ae%100;return l.symbolFuncs[Qe](me,fe,Be)+(Ae>=200?u:"")}var f=S("~f"),R={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}};l.gradient=function(Ae,me,fe,Be,Qe,at){var $e=R[Be];return L(Ae,me,fe,$e.type,Qe,at,$e.start,$e.stop,!1,$e.reversed)};function L(Ae,me,fe,Be,Qe,at,$e,It,Pt,Vt){var Wt=Qe.length,Cr;Be==="linear"?Cr={node:"linearGradient",attrs:{x1:$e.x,y1:$e.y,x2:It.x,y2:It.y,gradientUnits:Pt?"userSpaceOnUse":"objectBoundingBox"},reversed:Vt}:Be==="radial"&&(Cr={node:"radialGradient",reversed:Vt});for(var yr=new Array(Wt),qr=0;qr<Wt;qr++)Cr.reversed?yr[Wt-1-qr]=[f((1-Qe[qr][0])*100),Qe[qr][1]]:yr[qr]=[f(Qe[qr][0]*100),Qe[qr][1]];var Mr=me._fullLayout,Dr="g"+Mr._uid+"-"+fe,xt=Mr._defs.select(".gradients").selectAll("#"+Dr).data([Be+yr.join(";")],x.identity);xt.exit().remove(),xt.enter().append(Cr.node).each(function(){var Ne=p.select(this);Cr.attrs&&Ne.attr(Cr.attrs),Ne.attr("id",Dr);var Ye=Ne.selectAll("stop").data(yr);Ye.exit().remove(),Ye.enter().append("stop"),Ye.each(function(be){var Ie=e(be[1]);p.select(this).attr({offset:be[0]+"%","stop-color":r.tinyRGB(Ie),"stop-opacity":Ie.getAlpha()})})}),Ae.style(at,oe(Dr,me)).style(at+"-opacity",null),Ae.classed("gradient_filled",!0)}l.pattern=function(Ae,me,fe,Be,Qe,at,$e,It,Pt,Vt,Wt,Cr){var yr=me==="legend";It&&(Pt==="overlay"?(Vt=It,Wt=r.contrast(Vt)):(Vt=void 0,Wt=It));var qr=fe._fullLayout,Mr="p"+qr._uid+"-"+Be,Dr,xt,Ne=function(nr,ir,tr,Ir,vi){return Ir+(vi-Ir)*(nr-ir)/(tr-ir)},Ye,be,Ie,qe,ke={},Me=e(Wt),Le=r.tinyRGB(Me),ut=Me.getAlpha(),lt=Cr*ut;switch(Qe){case"/":Dr=at*Math.sqrt(2),xt=at*Math.sqrt(2),Ye="M-"+Dr/4+","+xt/4+"l"+Dr/2+",-"+xt/2+"M0,"+xt+"L"+Dr+",0M"+Dr/4*3+","+xt/4*5+"l"+Dr/2+",-"+xt/2,be=$e*at,qe="path",ke={d:Ye,opacity:lt,stroke:Le,"stroke-width":be+"px"};break;case"\\":Dr=at*Math.sqrt(2),xt=at*Math.sqrt(2),Ye="M"+Dr/4*3+",-"+xt/4+"l"+Dr/2+","+xt/2+"M0,0L"+Dr+","+xt+"M-"+Dr/4+","+xt/4*3+"l"+Dr/2+","+xt/2,be=$e*at,qe="path",ke={d:Ye,opacity:lt,stroke:Le,"stroke-width":be+"px"};break;case"x":Dr=at*Math.sqrt(2),xt=at*Math.sqrt(2),Ye="M-"+Dr/4+","+xt/4+"l"+Dr/2+",-"+xt/2+"M0,"+xt+"L"+Dr+",0M"+Dr/4*3+","+xt/4*5+"l"+Dr/2+",-"+xt/2+"M"+Dr/4*3+",-"+xt/4+"l"+Dr/2+","+xt/2+"M0,0L"+Dr+","+xt+"M-"+Dr/4+","+xt/4*3+"l"+Dr/2+","+xt/2,be=at-at*Math.sqrt(1-$e),qe="path",ke={d:Ye,opacity:lt,stroke:Le,"stroke-width":be+"px"};break;case"|":Dr=at,xt=at,qe="path",Ye="M"+Dr/2+",0L"+Dr/2+","+xt,be=$e*at,qe="path",ke={d:Ye,opacity:lt,stroke:Le,"stroke-width":be+"px"};break;case"-":Dr=at,xt=at,qe="path",Ye="M0,"+xt/2+"L"+Dr+","+xt/2,be=$e*at,qe="path",ke={d:Ye,opacity:lt,stroke:Le,"stroke-width":be+"px"};break;case"+":Dr=at,xt=at,qe="path",Ye="M"+Dr/2+",0L"+Dr/2+","+xt+"M0,"+xt/2+"L"+Dr+","+xt/2,be=at-at*Math.sqrt(1-$e),qe="path",ke={d:Ye,opacity:lt,stroke:Le,"stroke-width":be+"px"};break;case".":Dr=at,xt=at,$e<Math.PI/4?Ie=Math.sqrt($e*at*at/Math.PI):Ie=Ne($e,Math.PI/4,1,at/2,at/Math.sqrt(2)),qe="circle",ke={cx:Dr/2,cy:xt/2,r:Ie,opacity:lt,fill:Le};break;default:Dr=at,xt=at,qe="path",ke={d:Qe,opacity:lt,fill:Le};break}var gt=[Qe||"noSh",Vt||"noBg",Wt||"noFg",at,$e].join(";"),kt=qr._defs.select(".patterns").selectAll("#"+Mr).data([gt],x.identity);kt.exit().remove(),kt.enter().append("pattern").each(function(){var nr=p.select(this);if(nr.attr({id:Mr,width:Dr+"px",height:xt+"px",patternUnits:"userSpaceOnUse",patternTransform:yr?"scale(0.8)":""}),Vt){var ir=e(Vt),tr=r.tinyRGB(ir),Ir=ir.getAlpha(),vi=nr.selectAll("rect").data([0]);vi.exit().remove(),vi.enter().append("rect").attr({width:Dr+"px",height:xt+"px",fill:tr,"fill-opacity":Ir})}var Vi=nr.selectAll(qe).data([0]);Vi.exit().remove(),Vi.enter().append(qe).attr(ke)}),Ae.style("fill",oe(Mr,fe)).style("fill-opacity",null),Ae.classed("pattern_filled",!0)},l.initGradients=function(Ae){var me=Ae._fullLayout,fe=x.ensureSingle(me._defs,"g","gradients");fe.selectAll("linearGradient,radialGradient").remove(),p.select(Ae).selectAll(".gradient_filled").classed("gradient_filled",!1)},l.initPatterns=function(Ae){var me=Ae._fullLayout,fe=x.ensureSingle(me._defs,"g","patterns");fe.selectAll("pattern").remove(),p.select(Ae).selectAll(".pattern_filled").classed("pattern_filled",!1)},l.getPatternAttr=function(Ae,me,fe){return Ae&&x.isArrayOrTypedArray(Ae)?me<Ae.length?Ae[me]:fe:Ae},l.pointStyle=function(Ae,me,fe,Be){if(Ae.size()){var Qe=l.makePointStyleFns(me);Ae.each(function(at){l.singlePointStyle(at,p.select(this),me,Qe,fe,Be)})}},l.singlePointStyle=function(Ae,me,fe,Be,Qe,at){var $e=fe.marker,It=$e.line;if(at&&at.i>=0&&Ae.i===void 0&&(Ae.i=at.i),me.style("opacity",Be.selectedOpacityFn?Be.selectedOpacityFn(Ae):Ae.mo===void 0?$e.opacity:Ae.mo),Be.ms2mrc){var Pt;Ae.ms==="various"||$e.size==="various"?Pt=3:Pt=Be.ms2mrc(Ae.ms),Ae.mrc=Pt,Be.selectedSizeFn&&(Pt=Ae.mrc=Be.selectedSizeFn(Ae));var Vt=l.symbolNumber(Ae.mx||$e.symbol)||0;Ae.om=Vt%200>=100;var Wt=nt(Ae,fe),Cr=Q(Ae,fe);me.attr("d",y(Vt,Pt,Wt,Cr))}var yr=!1,qr,Mr,Dr;if(Ae.so)Dr=It.outlierwidth,Mr=It.outliercolor,qr=$e.outliercolor;else{var xt=(It||{}).width;Dr=(Ae.mlw+1||xt+1||(Ae.trace?(Ae.trace.marker.line||{}).width:0)+1)-1||0,"mlc"in Ae?Mr=Ae.mlcc=Be.lineScale(Ae.mlc):x.isArrayOrTypedArray(It.color)?Mr=r.defaultLine:Mr=It.color,x.isArrayOrTypedArray($e.color)&&(qr=r.defaultLine,yr=!0),"mc"in Ae?qr=Ae.mcc=Be.markerScale(Ae.mc):qr=$e.color||$e.colors||"rgba(0,0,0,0)",Be.selectedColorFn&&(qr=Be.selectedColorFn(Ae))}let Ne=Ae.mld||(It||{}).dash;if(Ne&&l.dashLine(me,Ne,Dr),Ae.om)me.call(r.stroke,qr).style({"stroke-width":(Dr||1)+"px",fill:"none"});else{me.style("stroke-width",(Ae.isBlank?0:Dr)+"px");var Ye=$e.gradient,be=Ae.mgt;be?yr=!0:be=Ye&&Ye.type,x.isArrayOrTypedArray(be)&&(be=be[0],R[be]||(be=0));var Ie=$e.pattern,qe=l.getPatternAttr,ke=Ie&&(qe(Ie.shape,Ae.i,"")||qe(Ie.path,Ae.i,""));if(be&&be!=="none"){var Me=Ae.mgc;Me?yr=!0:Me=Ye.color;var Le=fe.uid;yr&&(Le+="-"+Ae.i),l.gradient(me,Qe,Le,be,[[0,Me],[1,qr]],"fill")}else if(ke){var ut=!1,lt=Ie.fgcolor;!lt&&at&&at.color&&(lt=at.color,ut=!0);var gt=qe(lt,Ae.i,at&&at.color||null),kt=qe(Ie.bgcolor,Ae.i,null),nr=Ie.fgopacity,ir=qe(Ie.size,Ae.i,8),tr=qe(Ie.solidity,Ae.i,.3);ut=ut||Ae.mcc||x.isArrayOrTypedArray(Ie.shape)||x.isArrayOrTypedArray(Ie.path)||x.isArrayOrTypedArray(Ie.bgcolor)||x.isArrayOrTypedArray(Ie.fgcolor)||x.isArrayOrTypedArray(Ie.size)||x.isArrayOrTypedArray(Ie.solidity);var Ir=fe.uid;ut&&(Ir+="-"+Ae.i),l.pattern(me,"point",Qe,Ir,ke,ir,tr,Ae.mcc,Ie.fillmode,kt,gt,nr)}else x.isArrayOrTypedArray(qr)?r.fill(me,qr[Ae.i]):r.fill(me,qr);Dr&&r.stroke(me,Mr)}},l.makePointStyleFns=function(Ae){var me={},fe=Ae.marker;return me.markerScale=l.tryColorscale(fe,""),me.lineScale=l.tryColorscale(fe,"line"),t.traceIs(Ae,"symbols")&&(me.ms2mrc=m.isBubble(Ae)?d(Ae):function(){return(fe.size||6)/2}),Ae.selectedpoints&&x.extendFlat(me,l.makeSelectedPointStyleFns(Ae)),me},l.makeSelectedPointStyleFns=function(Ae){var me={},fe=Ae.selected||{},Be=Ae.unselected||{},Qe=Ae.marker||{},at=fe.marker||{},$e=Be.marker||{},It=Qe.opacity,Pt=at.opacity,Vt=$e.opacity,Wt=Pt!==void 0,Cr=Vt!==void 0;(x.isArrayOrTypedArray(It)||Wt||Cr)&&(me.selectedOpacityFn=function(Ie){var qe=Ie.mo===void 0?Qe.opacity:Ie.mo;return Ie.selected?Wt?Pt:qe:Cr?Vt:c*qe});var yr=Qe.color,qr=at.color,Mr=$e.color;(qr||Mr)&&(me.selectedColorFn=function(Ie){var qe=Ie.mcc||yr;return Ie.selected?qr||qe:Mr||qe});var Dr=Qe.size,xt=at.size,Ne=$e.size,Ye=xt!==void 0,be=Ne!==void 0;return t.traceIs(Ae,"symbols")&&(Ye||be)&&(me.selectedSizeFn=function(Ie){var qe=Ie.mrc||Dr/2;return Ie.selected?Ye?xt/2:qe:be?Ne/2:qe}),me},l.makeSelectedTextStyleFns=function(Ae){var me={},fe=Ae.selected||{},Be=Ae.unselected||{},Qe=Ae.textfont||{},at=fe.textfont||{},$e=Be.textfont||{},It=Qe.color,Pt=at.color,Vt=$e.color;return me.selectedTextColorFn=function(Wt){var Cr=Wt.tc||It;return Wt.selected?Pt||Cr:Vt||(Pt?Cr:r.addOpacity(Cr,c))},me},l.selectedPointStyle=function(Ae,me){if(!(!Ae.size()||!me.selectedpoints)){var fe=l.makeSelectedPointStyleFns(me),Be=me.marker||{},Qe=[];fe.selectedOpacityFn&&Qe.push(function(at,$e){at.style("opacity",fe.selectedOpacityFn($e))}),fe.selectedColorFn&&Qe.push(function(at,$e){r.fill(at,fe.selectedColorFn($e))}),fe.selectedSizeFn&&Qe.push(function(at,$e){var It=$e.mx||Be.symbol||0,Pt=fe.selectedSizeFn($e);at.attr("d",y(l.symbolNumber(It),Pt,nt($e,me),Q($e,me))),$e.mrc2=Pt}),Qe.length&&Ae.each(function(at){for(var $e=p.select(this),It=0;It<Qe.length;It++)Qe[It]($e,at)})}},l.tryColorscale=function(Ae,me){var fe=me?x.nestedProperty(Ae,me).get():Ae;if(fe){var Be=fe.color;if((fe.colorscale||fe._colorAx)&&x.isArrayOrTypedArray(Be))return o.makeColorScaleFuncFromTrace(fe)}return x.identity};var z={start:1,end:-1,middle:0,bottom:1,top:-1};function F(Ae,me,fe,Be,Qe){var at=p.select(Ae.node().parentNode),$e=me.indexOf("top")!==-1?"top":me.indexOf("bottom")!==-1?"bottom":"middle",It=me.indexOf("left")!==-1?"end":me.indexOf("right")!==-1?"start":"middle",Pt=Be?Be/.8+1:0,Vt=(n.lineCount(Ae)-1)*h+1,Wt=z[It]*Pt,Cr=fe*.75+z[$e]*Pt+(z[$e]-1)*Vt*fe/2;Ae.attr("text-anchor",It),Qe||at.attr("transform",i(Wt,Cr))}function N(Ae,me){var fe=Ae.ts||me.textfont.size;return E(fe)&&fe>0?fe:0}l.textPointStyle=function(Ae,me,fe){if(Ae.size()){var Be;if(me.selectedpoints){var Qe=l.makeSelectedTextStyleFns(me);Be=Qe.selectedTextColorFn}var at=me.texttemplate,$e=fe._fullLayout;Ae.each(function(It){var Pt=p.select(this),Vt=at?x.extractOption(It,me,"txt","texttemplate"):x.extractOption(It,me,"tx","text");if(!Vt&&Vt!==0){Pt.remove();return}if(at){var Wt=me._module.formatLabels,Cr=Wt?Wt(It,me,$e):{},yr={};T(yr,me,It.i),Vt=x.texttemplateString({data:[yr,It,me._meta],fallback:me.texttemplatefallback,labels:Cr,locale:$e._d3locale,template:Vt})}var qr=It.tp||me.textposition,Mr=N(It,me),Dr=Be?Be(It):It.tc||me.textfont.color;Pt.call(l.font,{family:It.tf||me.textfont.family,weight:It.tw||me.textfont.weight,style:It.ty||me.textfont.style,variant:It.tv||me.textfont.variant,textcase:It.tC||me.textfont.textcase,lineposition:It.tE||me.textfont.lineposition,shadow:It.tS||me.textfont.shadow,size:Mr,color:Dr}).text(Vt).call(n.convertToTspans,fe).call(F,qr,Mr,It.mrc)})}},l.selectedTextStyle=function(Ae,me){if(!(!Ae.size()||!me.selectedpoints)){var fe=l.makeSelectedTextStyleFns(me);Ae.each(function(Be){var Qe=p.select(this),at=fe.selectedTextColorFn(Be),$e=Be.tp||me.textposition,It=N(Be,me);r.fill(Qe,at);var Pt=t.traceIs(me,"bar-like");F(Qe,$e,It,Be.mrc2||Be.mrc,Pt)})}};var B=.5;l.smoothopen=function(Ae,me){if(Ae.length<3)return"M"+Ae.join("L");var fe="M"+Ae[0],Be=[],Qe;for(Qe=1;Qe<Ae.length-1;Qe++)Be.push(se(Ae[Qe-1],Ae[Qe],Ae[Qe+1],me));for(fe+="Q"+Be[0][0]+" "+Ae[1],Qe=2;Qe<Ae.length-1;Qe++)fe+="C"+Be[Qe-2][1]+" "+Be[Qe-1][0]+" "+Ae[Qe];return fe+="Q"+Be[Ae.length-3][1]+" "+Ae[Ae.length-1],fe},l.smoothclosed=function(Ae,me){if(Ae.length<3)return"M"+Ae.join("L")+"Z";var fe="M"+Ae[0],Be=Ae.length-1,Qe=[se(Ae[Be],Ae[0],Ae[1],me)],at;for(at=1;at<Be;at++)Qe.push(se(Ae[at-1],Ae[at],Ae[at+1],me));for(Qe.push(se(Ae[Be-1],Ae[Be],Ae[0],me)),at=1;at<=Be;at++)fe+="C"+Qe[at-1][1]+" "+Qe[at][0]+" "+Ae[at];return fe+="C"+Qe[Be][1]+" "+Qe[0][0]+" "+Ae[0]+"Z",fe};var I,U;function O(Ae,me,fe){return fe&&(Ae=q(Ae)),me?J(Ae[1]):X(Ae[0])}function X(Ae){var me=p.round(Ae,2);return I=me,me}function J(Ae){var me=p.round(Ae,2);return U=me,me}function se(Ae,me,fe,Be){var Qe=Ae[0]-me[0],at=Ae[1]-me[1],$e=fe[0]-me[0],It=fe[1]-me[1],Pt=Math.pow(Qe*Qe+at*at,B/2),Vt=Math.pow($e*$e+It*It,B/2),Wt=(Vt*Vt*Qe-Pt*Pt*$e)*Be,Cr=(Vt*Vt*at-Pt*Pt*It)*Be,yr=3*Vt*(Pt+Vt),qr=3*Pt*(Pt+Vt);return[[X(me[0]+(yr&&Wt/yr)),J(me[1]+(yr&&Cr/yr))],[X(me[0]-(qr&&Wt/qr)),J(me[1]-(qr&&Cr/qr))]]}var le={hv:function(Ae,me,fe){return"H"+X(me[0])+"V"+O(me,1,fe)},vh:function(Ae,me,fe){return"V"+J(me[1])+"H"+O(me,0,fe)},hvh:function(Ae,me,fe){return"H"+X((Ae[0]+me[0])/2)+"V"+J(me[1])+"H"+O(me,0,fe)},vhv:function(Ae,me,fe){return"V"+J((Ae[1]+me[1])/2)+"H"+X(me[0])+"V"+O(me,1,fe)}},ce=function(Ae,me,fe){return"L"+O(me,0,fe)+","+O(me,1,fe)};l.steps=function(Ae){var me=le[Ae]||ce;return function(fe){for(var Be="M"+X(fe[0][0])+","+J(fe[0][1]),Qe=fe.length,at=1;at<Qe;at++)Be+=me(fe[at-1],fe[at],at===Qe-1);return Be}};function q(Ae,me){var fe=Ae.backoff,Be=Ae.trace,Qe=Ae.d,at=Ae.i;if(fe&&Be&&Be.marker&&Be.marker.angle%360===0&&Be.line&&Be.line.shape!=="spline"){var $e=x.isArrayOrTypedArray(fe),It=Ae,Pt=me?me[0]:I||0,Vt=me?me[1]:U||0,Wt=It[0],Cr=It[1],yr=Wt-Pt,qr=Cr-Vt,Mr=Math.atan2(qr,yr),Dr=$e?fe[at]:fe;if(Dr==="auto"){var xt=It.i;Be.type==="scatter"&&xt--;var Ne=It.marker,Ye=Ne.symbol;x.isArrayOrTypedArray(Ye)&&(Ye=Ye[xt]);var be=Ne.size;x.isArrayOrTypedArray(be)&&(be=be[xt]),Dr=Ne?l.symbolBackOffs[l.symbolNumber(Ye)]*be:0,Dr+=l.getMarkerStandoff(Qe[xt],Be)||0}var Ie=Wt-Dr*Math.cos(Mr),qe=Cr-Dr*Math.sin(Mr);(Ie<=Wt&&Ie>=Pt||Ie>=Wt&&Ie<=Pt)&&(qe<=Cr&&qe>=Vt||qe>=Cr&&qe<=Vt)&&(Ae=[Ie,qe])}return Ae}l.applyBackoff=q,l.makeTester=function(){var Ae=x.ensureSingleById(p.select("body"),"svg","js-plotly-tester",function(fe){fe.attr(a.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})}),me=x.ensureSingle(Ae,"path","js-reference-point",function(fe){fe.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})});l.tester=Ae,l.testref=me},l.savedBBoxes={};var Z=0,ee=1e4;l.bBox=function(Ae,me,fe){fe||(fe=V(Ae));var Be;if(fe){if(Be=l.savedBBoxes[fe],Be)return x.extendFlat({},Be)}else if(Ae.childNodes.length===1){var Qe=Ae.childNodes[0];if(fe=V(Qe),fe){var at=+Qe.getAttribute("x")||0,$e=+Qe.getAttribute("y")||0,It=Qe.getAttribute("transform");if(!It){var Pt=l.bBox(Qe,!1,fe);return at&&(Pt.left+=at,Pt.right+=at),$e&&(Pt.top+=$e,Pt.bottom+=$e),Pt}if(fe+="~"+at+"~"+$e+"~"+It,Be=l.savedBBoxes[fe],Be)return x.extendFlat({},Be)}}var Vt,Wt;me?Vt=Ae:(Wt=l.tester.node(),Vt=Ae.cloneNode(!0),Wt.appendChild(Vt)),p.select(Vt).attr("transform",null).call(n.positionText,0,0);var Cr=Vt.getBoundingClientRect(),yr=l.testref.node().getBoundingClientRect();me||Wt.removeChild(Vt);var qr={height:Cr.height,width:Cr.width,left:Cr.left-yr.left,top:Cr.top-yr.top,right:Cr.right-yr.left,bottom:Cr.bottom-yr.top};return Z>=ee&&(l.savedBBoxes={},Z=0),fe&&(l.savedBBoxes[fe]=qr),Z++,x.extendFlat({},qr)};function V(Ae){var me=Ae.getAttribute("data-unformatted");if(me!==null)return me+Ae.getAttribute("data-math")+Ae.getAttribute("text-anchor")+Ae.getAttribute("style")}l.setClipUrl=function(Ae,me,fe){Ae.attr("clip-path",oe(me,fe))};function oe(Ae,me){if(!Ae)return null;var fe=me._context,Be=fe._exportedPlot?"":fe._baseUrl||"";return Be?"url('"+Be+"#"+Ae+"')":"url(#"+Ae+")"}l.getTranslate=function(Ae){var me=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,fe=Ae.attr?"attr":"getAttribute",Be=Ae[fe]("transform")||"",Qe=Be.replace(me,function(at,$e,It){return[$e,It].join(" ")}).split(" ");return{x:+Qe[0]||0,y:+Qe[1]||0}},l.setTranslate=function(Ae,me,fe){var Be=/(\btranslate\(.*?\);?)/,Qe=Ae.attr?"attr":"getAttribute",at=Ae.attr?"attr":"setAttribute",$e=Ae[Qe]("transform")||"";return me=me||0,fe=fe||0,$e=$e.replace(Be,"").trim(),$e+=i(me,fe),$e=$e.trim(),Ae[at]("transform",$e),$e},l.getScale=function(Ae){var me=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,fe=Ae.attr?"attr":"getAttribute",Be=Ae[fe]("transform")||"",Qe=Be.replace(me,function(at,$e,It){return[$e,It].join(" ")}).split(" ");return{x:+Qe[0]||1,y:+Qe[1]||1}},l.setScale=function(Ae,me,fe){var Be=/(\bscale\(.*?\);?)/,Qe=Ae.attr?"attr":"getAttribute",at=Ae.attr?"attr":"setAttribute",$e=Ae[Qe]("transform")||"";return me=me||1,fe=fe||1,$e=$e.replace(Be,"").trim(),$e+="scale("+me+","+fe+")",$e=$e.trim(),Ae[at]("transform",$e),$e};var ie=/\s*sc.*/;l.setPointGroupScale=function(Ae,me,fe){if(me=me||1,fe=fe||1,!!Ae){var Be=me===1&&fe===1?"":"scale("+me+","+fe+")";Ae.each(function(){var Qe=(this.getAttribute("transform")||"").replace(ie,"");Qe+=Be,Qe=Qe.trim(),this.setAttribute("transform",Qe)})}};var j=/translate\([^)]*\)\s*$/;l.setTextPointsScale=function(Ae,me,fe){Ae&&Ae.each(function(){var Be,Qe=p.select(this),at=Qe.select("text");if(at.node()){var $e=parseFloat(at.attr("x")||0),It=parseFloat(at.attr("y")||0),Pt=(Qe.attr("transform")||"").match(j);me===1&&fe===1?Be=[]:Be=[i($e,It),"scale("+me+","+fe+")",i(-$e,-It)],Pt&&Be.push(Pt),Qe.attr("transform",Be.join(""))}})};function Q(Ae,me){var fe;return Ae&&(fe=Ae.mf),fe===void 0&&(fe=me.marker&&me.marker.standoff||0),!me._geo&&!me._xA?-fe:fe}l.getMarkerStandoff=Q;var re=Math.atan2,ue=Math.cos,_e=Math.sin;function we(Ae,me){var fe=me[0],Be=me[1];return[fe*ue(Ae)-Be*_e(Ae),fe*_e(Ae)+Be*ue(Ae)]}var Re,ze,Xe,tt,it,et;function nt(Ae,me){var fe=Ae.ma;fe===void 0&&(fe=me.marker.angle,(!fe||x.isArrayOrTypedArray(fe))&&(fe=0));var Be,Qe,at=me.marker.angleref;if(at==="previous"||at==="north"){if(me._geo){var $e=me._geo.project(Ae.lonlat);Be=$e[0],Qe=$e[1]}else{var It=me._xA,Pt=me._yA;if(It&&Pt)Be=It.c2p(Ae.x),Qe=Pt.c2p(Ae.y);else return 90}if(me._geo){var Vt=Ae.lonlat[0],Wt=Ae.lonlat[1],Cr=me._geo.project([Vt,Wt+1e-5]),yr=me._geo.project([Vt+1e-5,Wt]),qr=re(yr[1]-Qe,yr[0]-Be),Mr=re(Cr[1]-Qe,Cr[0]-Be),Dr;if(at==="north")Dr=fe/180*Math.PI;else if(at==="previous"){var xt=Vt/180*Math.PI,Ne=Wt/180*Math.PI,Ye=Re/180*Math.PI,be=ze/180*Math.PI,Ie=Ye-xt,qe=ue(be)*_e(Ie),ke=_e(be)*ue(Ne)-ue(be)*_e(Ne)*ue(Ie);Dr=-re(qe,ke)-Math.PI,Re=Vt,ze=Wt}var Me=we(qr,[ue(Dr),0]),Le=we(Mr,[_e(Dr),0]);fe=re(Me[1]+Le[1],Me[0]+Le[0])/Math.PI*180,at==="previous"&&!(et===me.uid&&Ae.i===it+1)&&(fe=null)}if(at==="previous"&&!me._geo)if(et===me.uid&&Ae.i===it+1&&E(Be)&&E(Qe)){var ut=Be-Xe,lt=Qe-tt,gt=me.line&&me.line.shape||"",kt=gt.slice(gt.length-1);kt==="h"&&(lt=0),kt==="v"&&(ut=0),fe+=re(lt,ut)/Math.PI*180+90}else fe=null}return Xe=Be,tt=Qe,it=Ae.i,et=me.uid,fe}l.getMarkerAngle=nt}}),j0=De({"src/components/titles/index.js"(Y,H){"use strict";var p=za(),x=vn(),S=Mc(),E=Mo(),e=ui(),t=e.strTranslate,r=ys(),o=vo(),i=vu(),n=_o(),a=rh().OPPOSITE_SIDE,s=/ [XY][0-9]* /,h=1.6,c=1.6;function m(d,T,l){var _=d._fullLayout,w=l.propContainer,A=l.propName,M=l.placeholder,g=l.traceIndex,b=l.avoid||{},v=l.attributes,u=l.transform,y=l.containerGroup,f=1,R=w.title,L=(R&&R.text?R.text:"").trim(),z=!1,F=R&&R.font?R.font:{},N=F.family,B=F.size,I=F.color,U=F.weight,O=F.style,X=F.variant,J=F.textcase,se=F.lineposition,le=F.shadow,ce=l.subtitlePropName,q=!!ce,Z=l.subtitlePlaceholder,ee=(w.title||{}).subtitle||{text:"",font:{}},V=(ee.text||"").trim(),oe=!1,ie=1,j=ee.font,Q=j.family,re=j.size,ue=j.color,_e=j.weight,we=j.style,Re=j.variant,ze=j.textcase,Xe=j.lineposition,tt=j.shadow,it;A==="title.text"?it="titleText":A.indexOf("axis")!==-1?it="axisTitleText":A.indexOf("colorbar")!==-1&&(it="colorbarTitleText");var et=d._context.edits[it];function nt(yr,qr){return yr===void 0||qr===void 0?!1:yr.replace(s," % ")===qr.replace(s," % ")}L===""?f=0:nt(L,M)&&(et||(L=""),f=.2,z=!0),q&&(V===""?ie=0:nt(V,Z)&&(et||(V=""),ie=.2,oe=!0)),l._meta?L=e.templateString(L,l._meta):_._meta&&(L=e.templateString(L,_._meta));var Ae=L||V||et,me;y||(y=e.ensureSingle(_._infolayer,"g","g-"+T),me=_._hColorbarMoveTitle);var fe=y.selectAll("text."+T).data(Ae?[0]:[]);fe.enter().append("text"),fe.text(L).attr("class",T),fe.exit().remove();var Be=null,Qe=T+"-subtitle",at=V||et;if(q&&(Be=y.selectAll("text."+Qe).data(at?[0]:[]),Be.enter().append("text"),Be.text(V).attr("class",Qe),Be.exit().remove()),!Ae)return y;function $e(yr,qr){e.syncOrAsync([It,Pt],{title:yr,subtitle:qr})}function It(yr){var qr=yr.title,Mr=yr.subtitle,Dr;!u&&me&&(u={}),u?(Dr="",u.rotate&&(Dr+="rotate("+[u.rotate,v.x,v.y]+")"),(u.offset||me)&&(Dr+=t(0,(u.offset||0)-(me||0)))):Dr=null,qr.attr("transform",Dr);function xt(ke){if(ke){var Me=p.select(ke.node().parentNode).select("."+Qe);if(!Me.empty()){var Le=ke.node().getBBox();if(Le.height){var ut=Le.y+Le.height+h*re;Me.attr("y",ut)}}}}if(qr.style("opacity",f*o.opacity(I)).call(r.font,{color:o.rgb(I),size:p.round(B,2),family:N,weight:U,style:O,variant:X,textcase:J,shadow:le,lineposition:se}).attr(v).call(i.convertToTspans,d,xt),Mr&&!Mr.empty()){var Ne=y.select("."+T+"-math-group"),Ye=qr.node().getBBox(),be=Ne.node()?Ne.node().getBBox():void 0,Ie=be?be.y+be.height+h*re:Ye.y+Ye.height+c*re,qe=e.extendFlat({},v,{y:Ie});Mr.attr("transform",Dr),Mr.style("opacity",ie*o.opacity(ue)).call(r.font,{color:o.rgb(ue),size:p.round(re,2),family:Q,weight:_e,style:we,variant:Re,textcase:ze,shadow:tt,lineposition:Xe}).attr(qe).call(i.convertToTspans,d)}return S.previousPromises(d)}function Pt(yr){var qr=yr.title,Mr=p.select(qr.node().parentNode);if(b&&b.selection&&b.side&&L){Mr.attr("transform",null);var Dr=a[b.side],xt=b.side==="left"||b.side==="top"?-1:1,Ne=x(b.pad)?b.pad:2,Ye=r.bBox(Mr.node()),be={t:0,b:0,l:0,r:0},Ie=d._fullLayout._reservedMargin;for(var qe in Ie)for(var ke in Ie[qe]){var Me=Ie[qe][ke];be[ke]=Math.max(be[ke],Me)}var Le={left:be.l,top:be.t,right:_.width-be.r,bottom:_.height-be.b},ut=b.maxShift||xt*(Le[b.side]-Ye[b.side]),lt=0;if(ut<0)lt=ut;else{var gt=b.offsetLeft||0,kt=b.offsetTop||0;Ye.left-=gt,Ye.right-=gt,Ye.top-=kt,Ye.bottom-=kt,b.selection.each(function(){var ir=r.bBox(this);e.bBoxIntersect(Ye,ir,Ne)&&(lt=Math.max(lt,xt*(ir[b.side]-Ye[Dr])+Ne))}),lt=Math.min(ut,lt),w._titleScoot=Math.abs(lt)}if(lt>0||ut<0){var nr={left:[-lt,0],right:[lt,0],top:[0,-lt],bottom:[0,lt]}[b.side];Mr.attr("transform",t(nr[0],nr[1]))}}}fe.call($e,Be);function Vt(yr,qr){yr.text(qr).on("mouseover.opacity",function(){p.select(this).transition().duration(n.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){p.select(this).transition().duration(n.HIDE_PLACEHOLDER).style("opacity",0)})}if(et&&(L?fe.on(".opacity",null):(Vt(fe,M),z=!0),fe.call(i.makeEditable,{gd:d}).on("edit",function(yr){g!==void 0?E.call("_guiRestyle",d,A,yr,g):E.call("_guiRelayout",d,A,yr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call($e)}).on("input",function(yr){this.text(yr||" ").call(i.positionText,v.x,v.y)}),q)){if(q&&!L){var Wt=fe.node().getBBox(),Cr=Wt.y+Wt.height+c*re;Be.attr("y",Cr)}V?Be.on(".opacity",null):(Vt(Be,Z),oe=!0),Be.call(i.makeEditable,{gd:d}).on("edit",function(yr){E.call("_guiRelayout",d,"title.subtitle.text",yr)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call($e)}).on("input",function(yr){this.text(yr||" ").call(i.positionText,Be.attr("x"),Be.attr("y"))})}return fe.classed("js-placeholder",z),Be&&!Be.empty()&&Be.classed("js-placeholder",oe),y}H.exports={draw:m,SUBTITLE_PADDING_EM:c,SUBTITLE_PADDING_MATHJAX_EM:h}}}),Dv=De({"src/plots/cartesian/set_convert.js"(Y,H){"use strict";var p=za(),x=Do().utcFormat,S=ui(),E=S.numberFormat,e=vn(),t=S.cleanNumber,r=S.ms2DateTime,o=S.dateTime2ms,i=S.ensureNumber,n=S.isArrayOrTypedArray,a=zn(),s=a.FP_SAFE,h=a.BADNUM,c=a.LOG_CLIP,m=a.ONEWEEK,d=a.ONEDAY,T=a.ONEHOUR,l=a.ONEMIN,_=a.ONESEC,w=nf(),A=th(),M=A.HOUR_PATTERN,g=A.WEEKDAY_PATTERN;function b(u){return Math.pow(10,u)}function v(u){return u!=null}H.exports=function(y,f){f=f||{};var R=y._id||"x",L=R.charAt(0);function z(V,oe){if(V>0)return Math.log(V)/Math.LN10;if(V<=0&&oe&&y.range&&y.range.length===2){var ie=y.range[0],j=y.range[1];return .5*(ie+j-2*c*Math.abs(ie-j))}else return h}function F(V,oe,ie,j){if((j||{}).msUTC&&e(V))return+V;var Q=o(V,ie||y.calendar);if(Q===h)if(e(V)){V=+V;var re=Math.floor(S.mod(V+.05,1)*10),ue=Math.round(V-re/10);Q=o(new Date(ue))+re/10}else return h;return Q}function N(V,oe,ie){return r(V,oe,ie||y.calendar)}function B(V){return y._categories[Math.round(V)]}function I(V){if(v(V)){if(y._categoriesMap===void 0&&(y._categoriesMap={}),y._categoriesMap[V]!==void 0)return y._categoriesMap[V];y._categories.push(typeof V=="number"?String(V):V);var oe=y._categories.length-1;return y._categoriesMap[V]=oe,oe}return h}function U(V,oe){for(var ie=new Array(oe),j=0;j<oe;j++){var Q=(V[0]||[])[j],re=(V[1]||[])[j];ie[j]=O([Q,re])}return ie}function O(V){if(y._categoriesMap)return y._categoriesMap[V]}function X(V){var oe=O(V);if(oe!==void 0)return oe;if(e(V))return+V}function J(V){return e(V)?+V:O(V)}function se(V,oe,ie){return p.round(ie+oe*V,2)}function le(V,oe,ie){return(V-ie)/oe}var ce=function(oe){return e(oe)?se(oe,y._m,y._b):h},q=function(V){return le(V,y._m,y._b)};if(y.rangebreaks){var Z=L==="y";ce=function(V){if(!e(V))return h;var oe=y._rangebreaks.length;if(!oe)return se(V,y._m,y._b);var ie=Z;y.range[0]>y.range[1]&&(ie=!ie);for(var j=ie?-1:1,Q=j*V,re=0,ue=0;ue<oe;ue++){var _e=j*y._rangebreaks[ue].min,we=j*y._rangebreaks[ue].max;if(Q<_e)break;if(Q>we)re=ue+1;else{re=Q<(_e+we)/2?ue:ue+1;break}}var Re=y._B[re]||0;return isFinite(Re)?se(V,y._m2,Re):0},q=function(V){var oe=y._rangebreaks.length;if(!oe)return le(V,y._m,y._b);for(var ie=0,j=0;j<oe&&!(V<y._rangebreaks[j].pmin);j++)V>y._rangebreaks[j].pmax&&(ie=j+1);return le(V,y._m2,y._B[ie])}}y.c2l=y.type==="log"?z:i,y.l2c=y.type==="log"?b:i,y.l2p=ce,y.p2l=q,y.c2p=y.type==="log"?function(V,oe){return ce(z(V,oe))}:ce,y.p2c=y.type==="log"?function(V){return b(q(V))}:q,["linear","-"].indexOf(y.type)!==-1?(y.d2r=y.r2d=y.d2c=y.r2c=y.d2l=y.r2l=t,y.c2d=y.c2r=y.l2d=y.l2r=i,y.d2p=y.r2p=function(V){return y.l2p(t(V))},y.p2d=y.p2r=q,y.cleanPos=i):y.type==="log"?(y.d2r=y.d2l=function(V,oe){return z(t(V),oe)},y.r2d=y.r2c=function(V){return b(t(V))},y.d2c=y.r2l=t,y.c2d=y.l2r=i,y.c2r=z,y.l2d=b,y.d2p=function(V,oe){return y.l2p(y.d2r(V,oe))},y.p2d=function(V){return b(q(V))},y.r2p=function(V){return y.l2p(t(V))},y.p2r=q,y.cleanPos=i):y.type==="date"?(y.d2r=y.r2d=S.identity,y.d2c=y.r2c=y.d2l=y.r2l=F,y.c2d=y.c2r=y.l2d=y.l2r=N,y.d2p=y.r2p=function(V,oe,ie){return y.l2p(F(V,0,ie))},y.p2d=y.p2r=function(V,oe,ie){return N(q(V),oe,ie)},y.cleanPos=function(V){return S.cleanDate(V,h,y.calendar)}):y.type==="category"?(y.d2c=y.d2l=I,y.r2d=y.c2d=y.l2d=B,y.d2r=y.d2l_noadd=X,y.r2c=function(V){var oe=J(V);return oe!==void 0?oe:y.fraction2r(.5)},y.l2r=y.c2r=i,y.r2l=J,y.d2p=function(V){return y.l2p(y.r2c(V))},y.p2d=function(V){return B(q(V))},y.r2p=y.d2p,y.p2r=q,y.cleanPos=function(V){return typeof V=="string"&&V!==""?V:i(V)}):y.type==="multicategory"&&(y.r2d=y.c2d=y.l2d=B,y.d2r=y.d2l_noadd=X,y.r2c=function(V){var oe=X(V);return oe!==void 0?oe:y.fraction2r(.5)},y.r2c_just_indices=O,y.l2r=y.c2r=i,y.r2l=X,y.d2p=function(V){return y.l2p(y.r2c(V))},y.p2d=function(V){return B(q(V))},y.r2p=y.d2p,y.p2r=q,y.cleanPos=function(V){return Array.isArray(V)||typeof V=="string"&&V!==""?V:i(V)},y.setupMultiCategory=function(V){var oe=y._traceIndices,ie,j,Q=y._matchGroup;if(Q&&y._categories.length===0){for(var re in Q)if(re!==R){var ue=f[w.id2name(re)];oe=oe.concat(ue._traceIndices)}}var _e=[[0,{}],[0,{}]],we=[];for(ie=0;ie<oe.length;ie++){var Re=V[oe[ie]];if(L in Re){var ze=Re[L],Xe=Re._length||S.minRowLength(ze);if(n(ze[0])&&n(ze[1]))for(j=0;j<Xe;j++){var tt=ze[0][j],it=ze[1][j];v(tt)&&v(it)&&(we.push([tt,it]),tt in _e[0][1]||(_e[0][1][tt]=_e[0][0]++),it in _e[1][1]||(_e[1][1][it]=_e[1][0]++))}}}for(we.sort(function(et,nt){var Ae=_e[0][1],me=Ae[et[0]]-Ae[nt[0]];if(me)return me;var fe=_e[1][1];return fe[et[1]]-fe[nt[1]]}),ie=0;ie<we.length;ie++)I(we[ie])}),y.fraction2r=function(V){var oe=y.r2l(y.range[0]),ie=y.r2l(y.range[1]);return y.l2r(oe+V*(ie-oe))},y.r2fraction=function(V){var oe=y.r2l(y.range[0]),ie=y.r2l(y.range[1]);return(y.r2l(V)-oe)/(ie-oe)},y.limitRange=function(V){var oe=y.minallowed,ie=y.maxallowed;if(!(oe===void 0&&ie===void 0)){V||(V="range");var j=S.nestedProperty(y,V).get(),Q=S.simpleMap(j,y.r2l),re=Q[1]<Q[0];re&&Q.reverse();var ue=S.simpleMap([oe,ie],y.r2l);if(oe!==void 0&&Q[0]<ue[0]&&(j[re?1:0]=oe),ie!==void 0&&Q[1]>ue[1]&&(j[re?0:1]=ie),j[0]===j[1]){var _e=y.l2r(oe),we=y.l2r(ie);if(oe!==void 0){var Re=_e+1;ie!==void 0&&(Re=Math.min(Re,we)),j[re?1:0]=Re}if(ie!==void 0){var ze=we+1;oe!==void 0&&(ze=Math.max(ze,_e)),j[re?0:1]=ze}}}},y.cleanRange=function(V,oe){y._cleanRange(V,oe),y.limitRange(V)},y._cleanRange=function(V,oe){oe||(oe={}),V||(V="range");var ie=S.nestedProperty(y,V).get(),j,Q;if(y.type==="date"?Q=S.dfltRange(y.calendar):L==="y"?Q=A.DFLTRANGEY:y._name==="realaxis"?Q=[0,1]:Q=oe.dfltRange||A.DFLTRANGEX,Q=Q.slice(),(y.rangemode==="tozero"||y.rangemode==="nonnegative")&&(Q[0]=0),!ie||ie.length!==2){S.nestedProperty(y,V).set(Q);return}var re=ie[0]===null,ue=ie[1]===null;for(y.type==="date"&&!y.autorange&&(ie[0]=S.cleanDate(ie[0],h,y.calendar),ie[1]=S.cleanDate(ie[1],h,y.calendar)),j=0;j<2;j++)if(y.type==="date"){if(!S.isDateTime(ie[j],y.calendar)){y[V]=Q;break}if(y.r2l(ie[0])===y.r2l(ie[1])){var _e=S.constrain(y.r2l(ie[0]),S.MIN_MS+1e3,S.MAX_MS-1e3);ie[0]=y.l2r(_e-1e3),ie[1]=y.l2r(_e+1e3);break}}else{if(!e(ie[j]))if(!(re||ue)&&e(ie[1-j]))ie[j]=ie[1-j]*(j?10:.1);else{y[V]=Q;break}if(ie[j]<-s?ie[j]=-s:ie[j]>s&&(ie[j]=s),ie[0]===ie[1]){var we=Math.max(1,Math.abs(ie[0]*1e-6));ie[0]-=we,ie[1]+=we}}},y.setScale=function(V){var oe=f._size;if(y.overlaying){var ie=w.getFromId({_fullLayout:f},y.overlaying);y.domain=ie.domain}var j=V&&y._r?"_r":"range",Q=y.calendar;y.cleanRange(j);var re=y.r2l(y[j][0],Q),ue=y.r2l(y[j][1],Q),_e=L==="y";if(_e?(y._offset=oe.t+(1-y.domain[1])*oe.h,y._length=oe.h*(y.domain[1]-y.domain[0]),y._m=y._length/(re-ue),y._b=-y._m*ue):(y._offset=oe.l+y.domain[0]*oe.w,y._length=oe.w*(y.domain[1]-y.domain[0]),y._m=y._length/(ue-re),y._b=-y._m*re),y._rangebreaks=[],y._lBreaks=0,y._m2=0,y._B=[],y.rangebreaks){var we,Re;if(y._rangebreaks=y.locateBreaks(Math.min(re,ue),Math.max(re,ue)),y._rangebreaks.length){for(we=0;we<y._rangebreaks.length;we++)Re=y._rangebreaks[we],y._lBreaks+=Math.abs(Re.max-Re.min);var ze=_e;re>ue&&(ze=!ze),ze&&y._rangebreaks.reverse();var Xe=ze?-1:1;for(y._m2=Xe*y._length/(Math.abs(ue-re)-y._lBreaks),y._B.push(-y._m2*(_e?ue:re)),we=0;we<y._rangebreaks.length;we++)Re=y._rangebreaks[we],y._B.push(y._B[y._B.length-1]-Xe*y._m2*(Re.max-Re.min));for(we=0;we<y._rangebreaks.length;we++)Re=y._rangebreaks[we],Re.pmin=ce(Re.min),Re.pmax=ce(Re.max)}}if(!isFinite(y._m)||!isFinite(y._b)||y._length<0)throw f._replotting=!1,new Error("Something went wrong with axis scaling")},y.maskBreaks=function(V){var oe=y.rangebreaks||[],ie,j,Q,re,ue;oe._cachedPatterns||(oe._cachedPatterns=oe.map(function(Ae){return Ae.enabled&&Ae.bounds?S.simpleMap(Ae.bounds,Ae.pattern?t:y.d2c):null})),oe._cachedValues||(oe._cachedValues=oe.map(function(Ae){return Ae.enabled&&Ae.values?S.simpleMap(Ae.values,y.d2c).sort(S.sorterAsc):null}));for(var _e=0;_e<oe.length;_e++){var we=oe[_e];if(we.enabled){if(we.bounds){var Re=we.pattern;switch(ie=oe._cachedPatterns[_e],j=ie[0],Q=ie[1],Re){case g:ue=new Date(V),re=ue.getUTCDay(),j>Q&&(Q+=7,re<j&&(re+=7));break;case M:ue=new Date(V);var ze=ue.getUTCHours(),Xe=ue.getUTCMinutes(),tt=ue.getUTCSeconds(),it=ue.getUTCMilliseconds();re=ze+(Xe/60+tt/3600+it/36e5),j>Q&&(Q+=24,re<j&&(re+=24));break;case"":re=V;break}if(re>=j&&re<Q)return h}else for(var et=oe._cachedValues[_e],nt=0;nt<et.length;nt++)if(j=et[nt],Q=j+we.dvalue,V>=j&&V<Q)return h}}return V},y.locateBreaks=function(V,oe){var ie,j,Q,re,ue=[];if(!y.rangebreaks)return ue;var _e=y.rangebreaks.slice().sort(function(fe,Be){return fe.pattern===g&&Be.pattern===M?-1:Be.pattern===g&&fe.pattern===M?1:0}),we=function(fe,Be){if(fe=S.constrain(fe,V,oe),Be=S.constrain(Be,V,oe),fe!==Be){for(var Qe=!0,at=0;at<ue.length;at++){var $e=ue[at];fe<$e.max&&Be>=$e.min&&(fe<$e.min&&($e.min=fe),Be>$e.max&&($e.max=Be),Qe=!1)}Qe&&ue.push({min:fe,max:Be})}};for(ie=0;ie<_e.length;ie++){var Re=_e[ie];if(Re.enabled)if(Re.bounds){var ze=V,Xe=oe;Re.pattern&&(ze=Math.floor(ze)),j=S.simpleMap(Re.bounds,Re.pattern?t:y.r2l),Q=j[0],re=j[1];var tt=new Date(ze),it,et;switch(Re.pattern){case g:et=m,it=((re<Q?7:0)+(re-Q))*d,ze+=Q*d-(tt.getUTCDay()*d+tt.getUTCHours()*T+tt.getUTCMinutes()*l+tt.getUTCSeconds()*_+tt.getUTCMilliseconds());break;case M:et=d,it=((re<Q?24:0)+(re-Q))*T,ze+=Q*T-(tt.getUTCHours()*T+tt.getUTCMinutes()*l+tt.getUTCSeconds()*_+tt.getUTCMilliseconds());break;default:ze=Math.min(j[0],j[1]),Xe=Math.max(j[0],j[1]),et=Xe-ze,it=et}for(var nt=ze;nt<Xe;nt+=et)we(nt,nt+it)}else for(var Ae=S.simpleMap(Re.values,y.d2c),me=0;me<Ae.length;me++)Q=Ae[me],re=Q+Re.dvalue,we(Q,re)}return ue.sort(function(fe,Be){return fe.min-Be.min}),ue},y.makeCalcdata=function(V,oe,ie){var j,Q,re,ue,_e=y.type,we=_e==="date"&&V[oe+"calendar"];if(oe in V){if(j=V[oe],ue=V._length||S.minRowLength(j),S.isTypedArray(j)&&(_e==="linear"||_e==="log")){if(ue===j.length)return j;if(j.subarray)return j.subarray(0,ue)}if(_e==="multicategory")return U(j,ue);for(Q=new Array(ue),re=0;re<ue;re++)Q[re]=y.d2c(j[re],0,we,ie)}else{var Re=oe+"0"in V?y.d2c(V[oe+"0"],0,we):0,ze=V["d"+oe]?Number(V["d"+oe]):1;for(j=V[{x:"y",y:"x"}[oe]],ue=V._length||j.length,Q=new Array(ue),re=0;re<ue;re++)Q[re]=Re+re*ze}if(y.rangebreaks)for(re=0;re<ue;re++)Q[re]=y.maskBreaks(Q[re]);return Q},y.isValidRange=function(V,oe){return Array.isArray(V)&&V.length===2&&(oe&&V[0]===null||e(y.r2l(V[0])))&&(oe&&V[1]===null||e(y.r2l(V[1])))},y.getAutorangeDflt=function(V,oe){var ie=!y.isValidRange(V,"nullOk");return ie&&oe&&oe.reverseDflt?ie="reversed":V&&(V[0]===null&&V[1]===null?ie=!0:V[0]===null&&V[1]!==null?ie="min":V[0]!==null&&V[1]===null&&(ie="max")),ie},y.isReversed=function(){var V=y.autorange;return V==="reversed"||V==="min reversed"||V==="max reversed"},y.isPtWithinRange=function(V,oe){var ie=y.c2l(V[L],null,oe),j=y.r2l(y.range[0]),Q=y.r2l(y.range[1]);return j<Q?j<=ie&&ie<=Q:Q<=ie&&ie<=j},y._emptyCategories=function(){y._categories=[],y._categoriesMap={}},y.clearCalc=function(){var V=y._matchGroup;if(V){var oe=null,ie=null;for(var j in V){var Q=f[w.id2name(j)];if(Q._categories){oe=Q._categories,ie=Q._categoriesMap;break}}oe&&ie?(y._categories=oe,y._categoriesMap=ie):y._emptyCategories()}else y._emptyCategories();if(y._initialCategories)for(var re=0;re<y._initialCategories.length;re++)I(y._initialCategories[re])},y.sortByInitialCategories=function(){var V=[];if(y._emptyCategories(),y._initialCategories)for(var oe=0;oe<y._initialCategories.length;oe++)I(y._initialCategories[oe]);V=V.concat(y._traceIndices);var ie=y._matchGroup;for(var j in ie)if(R!==j){var Q=f[w.id2name(j)];Q._categories=y._categories,Q._categoriesMap=y._categoriesMap,V=V.concat(Q._traceIndices)}return V};var ee=f._d3locale;y.type==="date"&&(y._dateFormat=ee?ee.timeFormat:x,y._extraFormat=f._extraFormat),y._separators=f.separators,y._numFormat=ee?ee.numberFormat:E,delete y._minDtick,delete y._forceTick0}}}),$m=De({"src/plots/cartesian/axis_autotype.js"(Y,H){"use strict";var p=vn(),x=ui(),S=zn().BADNUM,E=x.isArrayOrTypedArray,e=x.isDateTime,t=x.cleanNumber,r=Math.round;H.exports=function(m,d,T){var l=m,_=T.noMultiCategory;if(E(l)&&!l.length)return"-";if(!_&&h(l))return"multicategory";if(_&&Array.isArray(l[0])){for(var w=[],A=0;A<l.length;A++)if(E(l[A]))for(var M=0;M<l[A].length;M++)w.push(l[A][M]);l=w}if(n(l,d))return"date";var g=T.autotypenumbers!=="strict";return s(l,g)?"category":i(l,g)?"linear":"-"};function o(c,m){return m?p(c):typeof c=="number"}function i(c,m){for(var d=c.length,T=0;T<d;T++)if(o(c[T],m))return!0;return!1}function n(c,m){for(var d=c.length,T=a(d),l=0,_=0,w={},A=0;A<d;A+=T){var M=r(A),g=c[M],b=String(g);w[b]||(w[b]=1,e(g,m)&&l++,p(g)&&_++)}return l>_*2}function a(c){return Math.max(1,(c-1)/1e3)}function s(c,m){for(var d=c.length,T=a(d),l=0,_=0,w={},A=0;A<d;A+=T){var M=r(A),g=c[M],b=String(g);if(!w[b]){w[b]=1;var v=typeof g;v==="boolean"?_++:(m?t(g)!==S:v==="number")?l++:v==="string"&&_++}}return _>l*2}function h(c){return E(c[0])&&E(c[1])}}}),fv=De({"src/plots/cartesian/autorange.js"(Y,H){"use strict";var p=za(),x=vn(),S=ui(),E=zn().FP_SAFE,e=Mo(),t=ys(),r=nf(),o=r.getFromId,i=r.isLinked;H.exports={applyAutorangeOptions:y,getAutoRange:n,makePadFn:s,doAutoRange:d,findExtremes:T,concatExtremes:m};function n(f,R){var L,z,F=[],N=f._fullLayout,B=s(N,R,0),I=s(N,R,1),U=m(f,R),O=U.min,X=U.max;if(O.length===0||X.length===0)return S.simpleMap(R.range,R.r2l);var J=O[0].val,se=X[0].val;for(L=1;L<O.length&&J===se;L++)J=Math.min(J,O[L].val);for(L=1;L<X.length&&J===se;L++)se=Math.max(se,X[L].val);var le=R.autorange,ce=le==="reversed"||le==="min reversed"||le==="max reversed";if(!ce&&R.range){var q=S.simpleMap(R.range,R.r2l);ce=q[1]<q[0]}R.autorange==="reversed"&&(R.autorange=!0);var Z=R.rangemode,ee=Z==="tozero",V=Z==="nonnegative",oe=R._length,ie=oe/10,j=0,Q,re,ue,_e,we,Re;for(L=0;L<O.length;L++)for(Q=O[L],z=0;z<X.length;z++)re=X[z],Re=re.val-Q.val-a(R,Q.val,re.val),Re>0&&(we=oe-B(Q)-I(re),we>ie?Re/we>j&&(ue=Q,_e=re,j=Re/we):Re/oe>j&&(ue={val:Q.val,nopad:1},_e={val:re.val,nopad:1},j=Re/oe));function ze(nt,Ae){return Math.max(nt,I(Ae))}if(J===se){var Xe=J-1,tt=J+1;if(ee)if(J===0)F=[0,1];else{var it=(J>0?X:O).reduce(ze,0),et=J/(1-Math.min(.5,it/oe));F=J>0?[0,et]:[et,0]}else V?F=[Math.max(0,Xe),Math.max(1,tt)]:F=[Xe,tt]}else ee?(ue.val>=0&&(ue={val:0,nopad:1}),_e.val<=0&&(_e={val:0,nopad:1})):V&&(ue.val-j*B(ue)<0&&(ue={val:0,nopad:1}),_e.val<=0&&(_e={val:1,nopad:1})),j=(_e.val-ue.val-a(R,Q.val,re.val))/(oe-B(ue)-I(_e)),F=[ue.val-j*B(ue),_e.val+j*I(_e)];return F=y(F,R),R.limitRange&&R.limitRange(),ce&&F.reverse(),S.simpleMap(F,R.l2r||Number)}function a(f,R,L){var z=0;if(f.rangebreaks)for(var F=f.locateBreaks(R,L),N=0;N<F.length;N++){var B=F[N];z+=B.max-B.min}return z}function s(f,R,L){var z=.05*R._length,F=R._anchorAxis||{};if((R.ticklabelposition||"").indexOf("inside")!==-1||(F.ticklabelposition||"").indexOf("inside")!==-1){var N=R.isReversed();if(!N){var B=S.simpleMap(R.range,R.r2l);N=B[1]<B[0]}N&&(L=!L)}var I=0;return i(f,R._id)||(I=c(f,R,L)),z=Math.max(I,z),R.constrain==="domain"&&R._inputDomain&&(z*=(R._inputDomain[1]-R._inputDomain[0])/(R.domain[1]-R.domain[0])),function(O){return O.nopad?0:O.pad+(O.extrapad?z:I)}}var h=3;function c(f,R,L){var z=0,F=R._id.charAt(0)==="x";for(var N in f._plots){var B=f._plots[N];if(!(R._id!==B.xaxis._id&&R._id!==B.yaxis._id)){var I=(F?B.yaxis:B.xaxis)||{};if((I.ticklabelposition||"").indexOf("inside")!==-1&&(!L&&(I.side==="left"||I.side==="bottom")||L&&(I.side==="top"||I.side==="right"))){if(I._vals){var U=S.deg2rad(I._tickAngles[I._id+"tick"]||0),O=Math.abs(Math.cos(U)),X=Math.abs(Math.sin(U));if(!I._vals[0].bb){var J=I._id+"tick",se=I._selections[J];se.each(function(V){var oe=p.select(this),ie=oe.select(".text-math-group");ie.empty()&&(V.bb=t.bBox(oe.node()))})}for(var le=0;le<I._vals.length;le++){var ce=I._vals[le],q=ce.bb;if(q){var Z=2*h+q.width,ee=2*h+q.height;z=Math.max(z,F?Math.max(Z*O,ee*X):Math.max(ee*O,Z*X))}}}I.ticks==="inside"&&I.ticklabelposition==="inside"&&(z+=I.ticklen||0)}}}return z}function m(f,R,L){var z=R._id,F=f._fullData,N=f._fullLayout,B=[],I=[],U,O,X;function J(Z,ee){for(U=0;U<ee.length;U++){var V=Z[ee[U]],oe=(V._extremes||{})[z];if(V.visible===!0&&oe){for(O=0;O<oe.min.length;O++)X=oe.min[O],l(B,X.val,X.pad,{extrapad:X.extrapad});for(O=0;O<oe.max.length;O++)X=oe.max[O],_(I,X.val,X.pad,{extrapad:X.extrapad})}}}if(J(F,R._traceIndices),J(N.annotations||[],R._annIndices||[]),J(N.shapes||[],R._shapeIndices||[]),R._matchGroup&&!L){for(var se in R._matchGroup)if(se!==R._id){var le=o(f,se),ce=m(f,le,!0),q=R._length/le._length;for(O=0;O<ce.min.length;O++)X=ce.min[O],l(B,X.val,X.pad*q,{extrapad:X.extrapad});for(O=0;O<ce.max.length;O++)X=ce.max[O],_(I,X.val,X.pad*q,{extrapad:X.extrapad})}}return{min:B,max:I}}function d(f,R,L){if(R.setScale(),R.autorange){R.range=L?L.slice():n(f,R),R._r=R.range.slice(),R._rl=S.simpleMap(R._r,R.r2l);var z=R._input,F={};F[R._attr+".range"]=R.range,F[R._attr+".autorange"]=R.autorange,e.call("_storeDirectGUIEdit",f.layout,f._fullLayout._preGUI,F),z.range=R.range.slice(),z.autorange=R.autorange}var N=R._anchorAxis;if(N&&N.rangeslider){var B=N.rangeslider[R._name];B&&B.rangemode==="auto"&&(B.range=n(f,R)),N._input.rangeslider[R._name]=S.extendFlat({},B)}}function T(f,R,L){L||(L={}),f._m||f.setScale();var z=[],F=[],N=R.length,B=L.padded||!1,I=L.tozero&&(f.type==="linear"||f.type==="-"),U=f.type==="log",O=!1,X=L.vpadLinearized||!1,J,se,le,ce,q,Z,ee,V,oe;function ie(ze){if(Array.isArray(ze))return O=!0,function(tt){return Math.max(Number(ze[tt]||0),0)};var Xe=Math.max(Number(ze||0),0);return function(){return Xe}}var j=ie((f._m>0?L.ppadplus:L.ppadminus)||L.ppad||0),Q=ie((f._m>0?L.ppadminus:L.ppadplus)||L.ppad||0),re=ie(L.vpadplus||L.vpad),ue=ie(L.vpadminus||L.vpad);if(!O){if(V=1/0,oe=-1/0,U)for(J=0;J<N;J++)se=R[J],se<V&&se>0&&(V=se),se>oe&&se<E&&(oe=se);else for(J=0;J<N;J++)se=R[J],se<V&&se>-E&&(V=se),se>oe&&se<E&&(oe=se);R=[V,oe],N=2}var _e={tozero:I,extrapad:B};function we(ze){le=R[ze],x(le)&&(Z=j(ze),ee=Q(ze),X?(ce=f.c2l(le)-ue(ze),q=f.c2l(le)+re(ze)):(V=le-ue(ze),oe=le+re(ze),U&&V<oe/10&&(V=oe/10),ce=f.c2l(V),q=f.c2l(oe)),I&&(ce=Math.min(0,ce),q=Math.max(0,q)),A(ce)&&l(z,ce,ee,_e),A(q)&&_(F,q,Z,_e))}var Re=Math.min(6,N);for(J=0;J<Re;J++)we(J);for(J=N-1;J>=Re;J--)we(J);return{min:z,max:F,opts:L}}function l(f,R,L,z){w(f,R,L,z,M)}function _(f,R,L,z){w(f,R,L,z,g)}function w(f,R,L,z,F){for(var N=z.tozero,B=z.extrapad,I=!0,U=0;U<f.length&&I;U++){var O=f[U];if(F(O.val,R)&&O.pad>=L&&(O.extrapad||!B)){I=!1;break}else F(R,O.val)&&O.pad<=L&&(B||!O.extrapad)&&(f.splice(U,1),U--)}if(I){var X=N&&R===0;f.push({val:R,pad:X?0:L,extrapad:X?!1:B})}}function A(f){return x(f)&&Math.abs(f)<E}function M(f,R){return f<=R}function g(f,R){return f>=R}function b(f,R){var L=R.autorangeoptions;return L&&L.minallowed!==void 0&&u(R,L.minallowed,L.maxallowed)?L.minallowed:L&&L.clipmin!==void 0&&u(R,L.clipmin,L.clipmax)?Math.max(f,R.d2l(L.clipmin)):f}function v(f,R){var L=R.autorangeoptions;return L&&L.maxallowed!==void 0&&u(R,L.minallowed,L.maxallowed)?L.maxallowed:L&&L.clipmax!==void 0&&u(R,L.clipmin,L.clipmax)?Math.min(f,R.d2l(L.clipmax)):f}function u(f,R,L){return R!==void 0&&L!==void 0?(R=f.d2l(R),L=f.d2l(L),R<L):!0}function y(f,R){if(!R||!R.autorangeoptions)return f;var L=f[0],z=f[1],F=R.autorangeoptions.include;if(F!==void 0){var N=R.d2l(L),B=R.d2l(z);S.isArrayOrTypedArray(F)||(F=[F]);for(var I=0;I<F.length;I++){var U=R.d2l(F[I]);N>=U&&(N=U,L=U),B<=U&&(B=U,z=U)}}return L=b(L,R),z=v(z,R),[L,z]}}}),us=De({"src/plots/cartesian/axes.js"(Y,H){"use strict";var p=za(),x=vn(),S=Mc(),E=Mo(),e=ui(),t=e.strTranslate,r=vu(),o=j0(),i=vo(),n=ys(),a=Ih(),s=qw(),h=th(),c=zn(),m=c.ONEMAXYEAR,d=c.ONEAVGYEAR,T=c.ONEMINYEAR,l=c.ONEMAXQUARTER,_=c.ONEAVGQUARTER,w=c.ONEMINQUARTER,A=c.ONEMAXMONTH,M=c.ONEAVGMONTH,g=c.ONEMINMONTH,b=c.ONEWEEK,v=c.ONEDAY,u=v/2,y=c.ONEHOUR,f=c.ONEMIN,R=c.ONESEC,L=c.ONEMILLI,z=c.ONEMICROSEC,F=c.MINUS_SIGN,N=c.BADNUM,B={K:"zeroline"},I={K:"gridline",L:"path"},U={K:"minor-gridline",L:"path"},O={K:"tick",L:"path"},X={K:"tick",L:"text"},J={width:["x","r","l","xl","xr"],height:["y","t","b","yt","yb"],right:["r","xr"],left:["l","xl"],top:["t","yt"],bottom:["b","yb"]},se=rh(),le=se.MID_SHIFT,ce=se.CAP_SHIFT,q=se.LINE_SPACING,Z=se.OPPOSITE_SIDE,ee=3,V=H.exports={};V.setConvert=Dv();var oe=$m(),ie=nf(),j=ie.idSort,Q=ie.isLinked;V.id2name=ie.id2name,V.name2id=ie.name2id,V.cleanId=ie.cleanId,V.list=ie.list,V.listIds=ie.listIds,V.getFromId=ie.getFromId,V.getFromTrace=ie.getFromTrace;var re=fv();V.getAutoRange=re.getAutoRange,V.findExtremes=re.findExtremes;var ue=1e-4;function _e(bt){var st=(bt[1]-bt[0])*ue;return[bt[0]-st,bt[1]+st]}V.coerceRef=function(bt,st,Nr,Lr,br,Rr){var jr=Lr.charAt(Lr.length-1),Wr=Nr._fullLayout._subplots[jr+"axis"],yt=Lr+"ref",Xt={};return br||(br=Wr[0]||(typeof Rr=="string"?Rr:Rr[0])),Rr||(Rr=br),Wr=Wr.concat(Wr.map(function(mr){return mr+" domain"})),Xt[yt]={valType:"enumerated",values:Wr.concat(Rr?typeof Rr=="string"?[Rr]:Rr:[]),dflt:br},e.coerce(bt,st,Xt,yt)},V.coerceRefArray=function(bt,st,Nr,Lr,br,Rr,jr){let Wr=Lr.charAt(Lr.length-1);var yt=Nr._fullLayout._subplots[Wr+"axis"];let Xt=Lr+"ref";var mr=bt[Xt];br||(br=yt[0]||(typeof Rr=="string"?Rr:Rr[0])),yt=yt.concat(yt.map(ki=>ki+" domain")),yt=yt.concat(Rr||[]),mr.length>jr?(e.warn("Array attribute "+Xt+" has more entries than expected, truncating to "+jr),mr=mr.slice(0,jr)):mr.length<jr&&(e.warn("Array attribute "+Xt+" has fewer entries than expected, extending with default value"),mr=mr.concat(Array(jr-mr.length).fill(br)));for(var Or=0;Or<mr.length;Or++)mr[Or]=ie.cleanId(mr[Or],Wr,!0)||mr[Or],yt.includes(mr[Or])||(mr[Or]=br);return st[Xt]=mr,mr},V.getRefType=function(bt){return bt===void 0?bt:Array.isArray(bt)?"array":bt==="paper"?"paper":bt==="pixel"?"pixel":/( domain)$/.test(bt)?"domain":"range"},V.coercePosition=function(bt,st,Nr,Lr,br,Rr){var jr,Wr,yt=V.getRefType(Lr);if(yt!=="range")jr=e.ensureNumber,Wr=Nr(br,Rr);else{var Xt=V.getFromId(st,Lr);Rr=Xt.fraction2r(Rr),Wr=Nr(br,Rr),jr=Xt.cleanPos}bt[br]=jr(Wr)},V.cleanPosition=function(bt,st,Nr){var Lr=Nr==="paper"||Nr==="pixel"?e.ensureNumber:V.getFromId(st,Nr).cleanPos;return Lr(bt)},V.redrawComponents=function(bt,st){st=st||V.listIds(bt);var Nr=bt._fullLayout;function Lr(br,Rr,jr,Wr){for(var yt=E.getComponentMethod(br,Rr),Xt={},mr=0;mr<st.length;mr++)for(var Or=Nr[V.id2name(st[mr])],ki=Or[jr],Ni=0;Ni<ki.length;Ni++){var Si=ki[Ni];if(!Xt[Si]&&(yt(bt,Si),Xt[Si]=1,Wr))return}}Lr("annotations","drawOne","_annIndices"),Lr("shapes","drawOne","_shapeIndices"),Lr("images","draw","_imgIndices",!0),Lr("selections","drawOne","_selectionIndices")};var we=V.getDataConversions=function(bt,st,Nr,Lr){var br,Rr=Nr==="x"||Nr==="y"||Nr==="z"?Nr:Lr;if(e.isArrayOrTypedArray(Rr)){if(br={type:oe(Lr,void 0,{autotypenumbers:bt._fullLayout.autotypenumbers}),_categories:[]},V.setConvert(br),br.type==="category")for(var jr=0;jr<Lr.length;jr++)br.d2c(Lr[jr])}else br=V.getFromTrace(bt,st,Rr);return br?{d2c:br.d2c,c2d:br.c2d}:Rr==="ids"?{d2c:ze,c2d:ze}:{d2c:Re,c2d:Re}};function Re(bt){return+bt}function ze(bt){return String(bt)}V.getDataToCoordFunc=function(bt,st,Nr,Lr){return we(bt,st,Nr,Lr).d2c},V.counterLetter=function(bt){var st=bt.charAt(0);if(st==="x")return"y";if(st==="y")return"x"},V.minDtick=function(bt,st,Nr,Lr){["log","category","multicategory"].indexOf(bt.type)!==-1||!Lr?bt._minDtick=0:bt._minDtick===void 0?(bt._minDtick=st,bt._forceTick0=Nr):bt._minDtick&&((bt._minDtick/st+1e-6)%1<2e-6&&((Nr-bt._forceTick0)/st%1+1.000001)%1<2e-6?(bt._minDtick=st,bt._forceTick0=Nr):((st/bt._minDtick+1e-6)%1>2e-6||((Nr-bt._forceTick0)/bt._minDtick%1+1.000001)%1>2e-6)&&(bt._minDtick=0))},V.saveRangeInitial=function(bt,st){for(var Nr=V.list(bt,"",!0),Lr=!1,br=0;br<Nr.length;br++){var Rr=Nr[br],jr=Rr._rangeInitial0===void 0&&Rr._rangeInitial1===void 0,Wr=jr||Rr.range[0]!==Rr._rangeInitial0||Rr.range[1]!==Rr._rangeInitial1,yt=Rr.autorange;(jr&&yt!==!0||st&&Wr)&&(Rr._rangeInitial0=yt==="min"||yt==="max reversed"?void 0:Rr.range[0],Rr._rangeInitial1=yt==="max"||yt==="min reversed"?void 0:Rr.range[1],Rr._autorangeInitial=yt,Lr=!0)}return Lr},V.saveShowSpikeInitial=function(bt,st){for(var Nr=V.list(bt,"",!0),Lr=!1,br="on",Rr=0;Rr<Nr.length;Rr++){var jr=Nr[Rr],Wr=jr._showSpikeInitial===void 0,yt=Wr||jr.showspikes!==jr._showspikes;(Wr||st&&yt)&&(jr._showSpikeInitial=jr.showspikes,Lr=!0),br==="on"&&!jr.showspikes&&(br="off")}return bt._fullLayout._cartesianSpikesEnabled=br,Lr},V.autoBin=function(bt,st,Nr,Lr,br,Rr){var jr=e.aggNums(Math.min,null,bt),Wr=e.aggNums(Math.max,null,bt);if(st.type==="category"||st.type==="multicategory")return{start:jr-.5,end:Wr+.5,size:Math.max(1,Math.round(Rr)||1),_dataSpan:Wr-jr};br||(br=st.calendar);var yt;if(st.type==="log"?yt={type:"linear",range:[jr,Wr]}:yt={type:st.type,range:e.simpleMap([jr,Wr],st.c2r,0,br),calendar:br},V.setConvert(yt),Rr=Rr&&s.dtick(Rr,yt.type),Rr)yt.dtick=Rr,yt.tick0=s.tick0(void 0,yt.type,br);else{var Xt;if(Nr)Xt=(Wr-jr)/Nr;else{var mr=e.distinctVals(bt),Or=Math.pow(10,Math.floor(Math.log(mr.minDiff)/Math.LN10)),ki=Or*e.roundUp(mr.minDiff/Or,[.9,1.9,4.9,9.9],!0);Xt=Math.max(ki,2*e.stdev(bt)/Math.pow(bt.length,Lr?.25:.4)),x(Xt)||(Xt=1)}V.autoTicks(yt,Xt)}var Ni=yt.dtick,Si=V.tickIncrement(V.tickFirst(yt),Ni,"reverse",br),fi,Li;if(typeof Ni=="number")Si=Xe(Si,bt,yt,jr,Wr),Li=1+Math.floor((Wr-Si)/Ni),fi=Si+Li*Ni;else for(yt.dtick.charAt(0)==="M"&&(Si=tt(Si,bt,Ni,jr,br)),fi=Si,Li=0;fi<=Wr;)fi=V.tickIncrement(fi,Ni,!1,br),Li++;return{start:st.c2r(Si,0,br),end:st.c2r(fi,0,br),size:Ni,_dataSpan:Wr-jr}};function Xe(bt,st,Nr,Lr,br){var Rr=0,jr=0,Wr=0,yt=0;function Xt(Ni){return(1+(Ni-bt)*100/Nr.dtick)%100<2}for(var mr=0;mr<st.length;mr++)st[mr]%1===0?Wr++:x(st[mr])||yt++,Xt(st[mr])&&Rr++,Xt(st[mr]+Nr.dtick/2)&&jr++;var Or=st.length-yt;if(Wr===Or&&Nr.type!=="date")Nr.dtick<1?bt=Lr-.5*Nr.dtick:(bt-=.5,bt+Nr.dtick<Lr&&(bt+=Nr.dtick));else if(jr<Or*.1&&(Rr>Or*.3||Xt(Lr)||Xt(br))){var ki=Nr.dtick/2;bt+=bt+ki<Lr?ki:-ki}return bt}function tt(bt,st,Nr,Lr,br){var Rr=e.findExactDates(st,br),jr=.8;if(Rr.exactDays>jr){var Wr=Number(Nr.slice(1));Rr.exactYears>jr&&Wr%12===0?bt=V.tickIncrement(bt,"M6","reverse")+v*1.5:Rr.exactMonths>jr?bt=V.tickIncrement(bt,"M1","reverse")+v*15.5:bt-=u;var yt=V.tickIncrement(bt,Nr);if(yt<=Lr)return yt}return bt}V.prepMinorTicks=function(bt,st,Nr){if(!st.minor.dtick){delete bt.dtick;var Lr=st.dtick&&x(st._tmin),br;if(Lr){var Rr=V.tickIncrement(st._tmin,st.dtick,!0);br=[st._tmin,Rr*.99+st._tmin*.01]}else{var jr=e.simpleMap(st.range,st.r2l);br=[jr[0],.8*jr[0]+.2*jr[1]]}if(bt.range=e.simpleMap(br,st.l2r),bt._isMinor=!0,V.prepTicks(bt,Nr),Lr){var Wr=x(st.dtick),yt=x(bt.dtick),Xt=Wr?st.dtick:+st.dtick.substring(1),mr=yt?bt.dtick:+bt.dtick.substring(1);Wr&&yt?it(Xt,mr)?Xt===2*b&&mr===2*v&&(bt.dtick=b):Xt===2*b&&mr===3*v?bt.dtick=b:Xt===b&&!(st._input.minor||{}).nticks?bt.dtick=v:et(Xt/mr,2.5)?bt.dtick=Xt/2:bt.dtick=Xt:String(st.dtick).charAt(0)==="M"?yt?bt.dtick="M1":it(Xt,mr)?Xt>=12&&mr===2&&(bt.dtick="M3"):bt.dtick=st.dtick:String(bt.dtick).charAt(0)==="L"?String(st.dtick).charAt(0)==="L"?it(Xt,mr)||(bt.dtick=et(Xt/mr,2.5)?st.dtick/2:st.dtick):bt.dtick="D1":bt.dtick==="D2"&&+st.dtick>1&&(bt.dtick=1)}bt.range=st.range}st.minor._tick0Init===void 0&&(bt.tick0=st.tick0)};function it(bt,st){return Math.abs((bt/st+.5)%1-.5)<.001}function et(bt,st){return Math.abs(bt/st-1)<.001}V.prepTicks=function(bt,st){var Nr=e.simpleMap(bt.range,bt.r2l,void 0,void 0,st);if(bt.tickmode==="auto"||!bt.dtick){var Lr=bt.nticks,br;Lr||(bt.type==="category"||bt.type==="multicategory"?(br=bt.tickfont?e.bigFont(bt.tickfont.size||12):15,Lr=bt._length/br):(br=bt._id.charAt(0)==="y"?40:80,Lr=e.constrain(bt._length/br,4,9)+1),bt._name==="radialaxis"&&(Lr*=2)),bt.minor&&bt.minor.tickmode!=="array"||bt.tickmode==="array"&&(Lr*=100),bt._roughDTick=Math.abs(Nr[1]-Nr[0])/Lr,V.autoTicks(bt,bt._roughDTick),bt._minDtick>0&&bt.dtick<bt._minDtick*2&&(bt.dtick=bt._minDtick,bt.tick0=bt.l2r(bt._forceTick0))}bt.ticklabelmode==="period"&&Ae(bt),bt.tick0||(bt.tick0=bt.type==="date"?"2000-01-01":0),bt.type==="date"&&bt.dtick<.1&&(bt.dtick=.1),qr(bt)};function nt(bt){return+bt.substring(1)}function Ae(bt){var st;function Nr(){return!(x(bt.dtick)||bt.dtick.charAt(0)!=="M")}var Lr=Nr(),br=V.getTickFormat(bt);if(br){var Rr=bt._dtickInit!==bt.dtick;/%[fLQsSMX]/.test(br)||(/%[HI]/.test(br)?(st=y,Rr&&!Lr&&bt.dtick<y&&(bt.dtick=y)):/%p/.test(br)?(st=u,Rr&&!Lr&&bt.dtick<u&&(bt.dtick=u)):/%[Aadejuwx]/.test(br)?(st=v,Rr&&!Lr&&bt.dtick<v&&(bt.dtick=v)):/%[UVW]/.test(br)?(st=b,Rr&&!Lr&&bt.dtick<b&&(bt.dtick=b)):/%[Bbm]/.test(br)?(st=M,Rr&&(Lr?nt(bt.dtick)<1:bt.dtick<g)&&(bt.dtick="M1")):/%[q]/.test(br)?(st=_,Rr&&(Lr?nt(bt.dtick)<3:bt.dtick<w)&&(bt.dtick="M3")):/%[Yy]/.test(br)&&(st=d,Rr&&(Lr?nt(bt.dtick)<12:bt.dtick<T)&&(bt.dtick="M12")))}Lr=Nr(),Lr&&bt.tick0===bt._dowTick0&&(bt.tick0=bt._rawTick0),bt._definedDelta=st}function me(bt,st,Nr){for(var Lr=0;Lr<bt.length;Lr++){var br=bt[Lr].value,Rr=Lr,jr=Lr+1;Lr<bt.length-1?(Rr=Lr,jr=Lr+1):Lr>0?(Rr=Lr-1,jr=Lr):(Rr=Lr,jr=Lr);var Wr=bt[Rr].value,yt=bt[jr].value,Xt=Math.abs(yt-Wr),mr=Nr||Xt,Or=0;mr>=T?Xt>=T&&Xt<=m?Or=Xt:Or=d:Nr===_&&mr>=w?Xt>=w&&Xt<=l?Or=Xt:Or=_:mr>=g?Xt>=g&&Xt<=A?Or=Xt:Or=M:Nr===b&&mr>=b?Or=b:mr>=v?Or=v:Nr===u&&mr>=u?Or=u:Nr===y&&mr>=y&&(Or=y);var ki;Or>=Xt&&(Or=Xt,ki=!0);var Ni=br+Or;if(st.rangebreaks&&Or>0){for(var Si=84,fi=0,Li=0;Li<Si;Li++){var Ia=(Li+.5)/Si;st.maskBreaks(br*(1-Ia)+Ia*Ni)!==N&&fi++}Or*=fi/Si,Or||(bt[Lr].drop=!0),ki&&Xt>b&&(Or=Xt)}(Or>0||Lr===0)&&(bt[Lr].periodX=br+Or/2)}}V.calcTicks=function(st,Nr){for(var Lr=st.type,br=st.calendar,Rr=st.ticklabelstep,jr=st.ticklabelmode==="period",Wr=st.range[0]>st.range[1],yt=!st.ticklabelindex||e.isArrayOrTypedArray(st.ticklabelindex)?st.ticklabelindex:[st.ticklabelindex],Xt=e.simpleMap(st.range,st.r2l,void 0,void 0,Nr),mr=Xt[1]<Xt[0],Or=Math.min(Xt[0],Xt[1]),ki=Math.max(Xt[0],Xt[1]),Ni=Math.max(1e3,st._length||0),Si=[],fi=[],Li=[],Ia=[],Fa=[],un=st.minor&&(st.minor.ticks||st.minor.showgrid),Bn=1;Bn>=(un?0:1);Bn--){var Kn=!Bn;Bn?(st._dtickInit=st.dtick,st._tick0Init=st.tick0):(st.minor._dtickInit=st.minor.dtick,st.minor._tick0Init=st.minor.tick0);var Gn=Bn?st:e.extendFlat({},st,st.minor);if(Kn?V.prepMinorTicks(Gn,st,Nr):V.prepTicks(Gn,Nr),Gn.tickmode==="array"){Bn?(Li=[],Si=Qe(st,!Kn)):(Ia=[],fi=Qe(st,!Kn));continue}if(Gn.tickmode==="sync"){Li=[],Si=Be(st);continue}var eo=_e(Xt),Ao=eo[0],An=eo[1],Eo=x(Gn.dtick),fs=Lr==="log"&&!(Eo||Gn.dtick.charAt(0)==="L"),Ls=V.tickFirst(Gn,Nr);if(Bn){if(st._tmin=Ls,Ls<Ao!==mr)break;(Lr==="category"||Lr==="multicategory")&&(An=mr?Math.max(-.5,An):Math.min(st._categories.length-.5,An))}var ns=null,uo=Ls,ss;if(Bn){var xs;Eo?xs=st.dtick:Lr==="date"?typeof st.dtick=="string"&&st.dtick.charAt(0)==="M"&&(xs=M*st.dtick.substring(1)):xs=st._roughDTick,ss=Math.round((st.r2l(uo)-st.r2l(st.tick0))/xs)-1}var el=Gn.dtick;for(Gn.rangebreaks&&Gn._tick0Init!==Gn.tick0&&(uo=ca(uo,st),mr||(uo=V.tickIncrement(uo,el,!mr,br))),Bn&&jr&&(uo=V.tickIncrement(uo,el,!mr,br),ss--);mr?uo>=An:uo<=An;uo=V.tickIncrement(uo,el,mr,br)){if(Bn&&ss++,Gn.rangebreaks&&!mr){if(uo<Ao)continue;if(Gn.maskBreaks(uo)===N&&ca(uo,Gn)>=ki)break}if(Li.length>Ni||uo===ns)break;ns=uo;var Ss={value:uo};Bn?(fs&&uo!==(uo|0)&&(Ss.simpleLabel=!0),Rr>1&&ss%Rr&&(Ss.skipLabel=!0),Li.push(Ss)):(Ss.minor=!0,Ia.push(Ss))}}if(!Ia||Ia.length<2)yt=!1;else{var Co=(Ia[1].value-Ia[0].value)*(Wr?-1:1);En(Co,st.tickformat)||(yt=!1)}if(!yt)Fa=Li;else{var ao=Li.concat(Ia);jr&&Li.length&&(ao=ao.slice(1)),ao=ao.sort(function(al,kl){return al.value-kl.value}).filter(function(al,kl,Ns){return kl===0||al.value!==Ns[kl-1].value});var co=ao.map(function(al,kl){return al.minor===void 0&&!al.skipLabel?kl:null}).filter(function(al){return al!==null});co.forEach(function(al){yt.map(function(kl){var Ns=al+kl;Ns>=0&&Ns<ao.length&&e.pushUnique(Fa,ao[Ns])})})}if(un){var Ms=st.minor.ticks==="inside"&&st.ticks==="outside"||st.minor.ticks==="outside"&&st.ticks==="inside";if(!Ms){for(var Gs=Li.map(function(al){return al.value}),ul=[],hs=0;hs<Ia.length;hs++){var rn=Ia[hs],Xn=rn.value;if(Gs.indexOf(Xn)===-1){for(var tl=!1,zs=0;!tl&&zs<Li.length;zs++)1e7+Li[zs].value===1e7+Xn&&(tl=!0);tl||ul.push(rn)}}Ia=ul}}jr&&me(Fa,st,st._definedDelta);var so;if(st.rangebreaks){var $s=st._id.charAt(0)==="y",Ps=1;st.tickmode==="auto"&&(Ps=st.tickfont?st.tickfont.size:12);var nl=NaN;for(so=Li.length-1;so>-1;so--){if(Li[so].drop){Li.splice(so,1);continue}Li[so].value=ca(Li[so].value,st);var yl=st.c2p(Li[so].value);($s?nl>yl-Ps:nl<yl+Ps)?Li.splice(mr?so+1:so,1):nl=yl}}ra(st)&&Math.abs(Xt[1]-Xt[0])===360&&Li.pop(),st._tmax=(Li[Li.length-1]||{}).value,st._prevDateHead="",st._inCalcTicks=!0;var On,Ko=function(al){al.text="",st._prevDateHead=On};Li=Li.concat(Ia);function jo(al,kl){var Ns=V.tickText(al,kl.value,!1,kl.simpleLabel),rl=kl.periodX;return rl!==void 0&&(Ns.periodX=rl,(rl>ki||rl<Or)&&(rl>ki&&(Ns.periodX=ki),rl<Or&&(Ns.periodX=Or),Ko(Ns))),Ns}var Ys;for(so=0;so<Li.length;so++){var Tu=Li[so].minor,Lo=Li[so].value;Tu?(yt&&Fa.indexOf(Li[so])!==-1?Ys=jo(st,Li[so]):Ys={x:Lo},Ys.minor=!0,fi.push(Ys)):(On=st._prevDateHead,Ys=jo(st,Li[so]),(Li[so].skipLabel||yt&&Fa.indexOf(Li[so])===-1)&&Ko(Ys),Si.push(Ys))}return Si=Si.concat(fi),st._inCalcTicks=!1,jr&&Si.length&&(Si[0].noTick=!0),Si};function fe(bt,st){return bt.rangebreaks&&(st=st.filter(function(Nr){return bt.maskBreaks(Nr.x)!==N})),st}function Be(bt){var st=bt._mainAxis,Nr=[];if(st._vals){for(var Lr=0;Lr<st._vals.length;Lr++)if(!st._vals[Lr].noTick){var br=st.l2p(st._vals[Lr].x),Rr=bt.p2l(br),jr=V.tickText(bt,Rr);st._vals[Lr].minor&&(jr.minor=!0,jr.text=""),Nr.push(jr)}}return Nr=fe(bt,Nr),Nr}function Qe(bt,st){var Nr=e.simpleMap(bt.range,bt.r2l),Lr=_e(Nr),br=Math.min(Lr[0],Lr[1]),Rr=Math.max(Lr[0],Lr[1]),jr=bt.type==="category"?bt.d2l_noadd:bt.d2l;bt.type==="log"&&String(bt.dtick).charAt(0)!=="L"&&(bt.dtick="L"+Math.pow(10,Math.floor(Math.min(bt.range[0],bt.range[1]))-1));for(var Wr=[],yt=0;yt<=1;yt++)if(!(st!==void 0&&(st&&yt||st===!1&&!yt))&&!(yt&&!bt.minor)){var Xt=yt?bt.minor.tickvals:bt.tickvals,mr=yt?[]:bt.ticktext;if(Xt){e.isArrayOrTypedArray(mr)||(mr=[]);for(var Or=0;Or<Xt.length;Or++){var ki=jr(Xt[Or]);if(ki>br&&ki<Rr){var Ni=V.tickText(bt,ki,!1,String(mr[Or]));yt&&(Ni.minor=!0,Ni.text=""),Wr.push(Ni)}}}}return Wr=fe(bt,Wr),Wr}var at=[2,5,10],$e=[1,2,3,6,12],It=[1,2,5,10,15,30],Pt=[1,2,3,7,14],Vt=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],Wt=[-.301,0,.301,.699,1],Cr=[15,30,45,90,180];function yr(bt,st,Nr){return st*e.roundUp(bt/st,Nr)}V.autoTicks=function(bt,st,Nr){var Lr;function br(Or){return Math.pow(Or,Math.floor(Math.log(st)/Math.LN10))}if(bt.type==="date"){bt.tick0=e.dateTick0(bt.calendar,0);var Rr=2*st;if(Rr>d)st/=d,Lr=br(10),bt.dtick="M"+12*yr(st,Lr,at);else if(Rr>M)st/=M,bt.dtick="M"+yr(st,1,$e);else if(Rr>v){if(bt.dtick=yr(st,v,bt._hasDayOfWeekBreaks?[1,2,7,14]:Pt),!Nr){var jr=V.getTickFormat(bt),Wr=bt.ticklabelmode==="period";Wr&&(bt._rawTick0=bt.tick0),/%[uVW]/.test(jr)?bt.tick0=e.dateTick0(bt.calendar,2):bt.tick0=e.dateTick0(bt.calendar,1),Wr&&(bt._dowTick0=bt.tick0)}}else Rr>y?bt.dtick=yr(st,y,$e):Rr>f?bt.dtick=yr(st,f,It):Rr>R?bt.dtick=yr(st,R,It):(Lr=br(10),bt.dtick=yr(st,Lr,at))}else if(bt.type==="log"){bt.tick0=0;var yt=e.simpleMap(bt.range,bt.r2l);if(bt._isMinor&&(st*=1.5),st>.7)bt.dtick=Math.ceil(st);else if(Math.abs(yt[1]-yt[0])<1){var Xt=1.5*Math.abs((yt[1]-yt[0])/st);st=Math.abs(Math.pow(10,yt[1])-Math.pow(10,yt[0]))/Xt,Lr=br(10),bt.dtick="L"+yr(st,Lr,at)}else bt.dtick=st>.3?"D2":"D1"}else bt.type==="category"||bt.type==="multicategory"?(bt.tick0=0,bt.dtick=Math.ceil(Math.max(st,1))):ra(bt)?(bt.tick0=0,Lr=1,bt.dtick=yr(st,Lr,Cr)):(bt.tick0=0,Lr=br(10),bt.dtick=yr(st,Lr,at));if(bt.dtick===0&&(bt.dtick=1),!x(bt.dtick)&&typeof bt.dtick!="string"){var mr=bt.dtick;throw bt.dtick=1,"ax.dtick error: "+String(mr)}};function qr(bt){var st=bt.dtick;if(bt._tickexponent=0,!x(st)&&typeof st!="string"&&(st=1),(bt.type==="category"||bt.type==="multicategory")&&(bt._tickround=null),bt.type==="date"){var Nr=bt.r2l(bt.tick0),Lr=bt.l2r(Nr).replace(/(^-|i)/g,""),br=Lr.length;if(String(st).charAt(0)==="M")br>10||Lr.slice(5)!=="01-01"?bt._tickround="d":bt._tickround=+st.slice(1)%12===0?"y":"m";else if(st>=v&&br<=10||st>=v*15)bt._tickround="d";else if(st>=f&&br<=16||st>=y)bt._tickround="M";else if(st>=R&&br<=19||st>=f)bt._tickround="S";else{var Rr=bt.l2r(Nr+st).replace(/^-/,"").length;bt._tickround=Math.max(br,Rr)-20,bt._tickround<0&&(bt._tickround=4)}}else if(x(st)||st.charAt(0)==="L"){var jr=bt.range.map(bt.r2d||Number);x(st)||(st=Number(st.slice(1))),bt._tickround=2-Math.floor(Math.log(st)/Math.LN10+.01);var Wr=Math.max(Math.abs(jr[0]),Math.abs(jr[1])),yt=Math.floor(Math.log(Wr)/Math.LN10+.01),Xt=bt.minexponent===void 0?3:bt.minexponent;Math.abs(yt)>Xt&&(Le(bt.exponentformat)&&bt.exponentformat!=="SI extended"&&!ut(yt)||Le(bt.exponentformat)&&bt.exponentformat==="SI extended"&&!lt(yt)?bt._tickexponent=3*Math.round((yt-1)/3):bt._tickexponent=yt)}else bt._tickround=null}V.tickIncrement=function(bt,st,Nr,Lr){var br=Nr?-1:1;if(x(st))return e.increment(bt,br*st);var Rr=st.charAt(0),jr=br*Number(st.slice(1));if(Rr==="M")return e.incrementMonth(bt,jr,Lr);if(Rr==="L")return Math.log(Math.pow(10,bt)+jr)/Math.LN10;if(Rr==="D"){var Wr=st==="D2"?Wt:Vt,yt=bt+br*.01,Xt=e.roundUp(e.mod(yt,1),Wr,Nr);return Math.floor(yt)+Math.log(p.round(Math.pow(10,Xt),1))/Math.LN10}throw"unrecognized dtick "+String(st)},V.tickFirst=function(bt,st){var Nr=bt.r2l||Number,Lr=e.simpleMap(bt.range,Nr,void 0,void 0,st),br=Lr[1]<Lr[0],Rr=br?Math.floor:Math.ceil,jr=_e(Lr)[0],Wr=bt.dtick,yt=Nr(bt.tick0);if(x(Wr)){var Xt=Rr((jr-yt)/Wr)*Wr+yt;return(bt.type==="category"||bt.type==="multicategory")&&(Xt=e.constrain(Xt,0,bt._categories.length-1)),Xt}var mr=Wr.charAt(0),Or=Number(Wr.slice(1));if(mr==="M"){for(var ki=0,Ni=yt,Si,fi,Li;ki<10;){if(Si=V.tickIncrement(Ni,Wr,br,bt.calendar),(Si-jr)*(Ni-jr)<=0)return br?Math.min(Ni,Si):Math.max(Ni,Si);fi=(jr-(Ni+Si)/2)/(Si-Ni),Li=mr+(Math.abs(Math.round(fi))||1)*Or,Ni=V.tickIncrement(Ni,Li,fi<0?!br:br,bt.calendar),ki++}return e.error("tickFirst did not converge",bt),Ni}else{if(mr==="L")return Math.log(Rr((Math.pow(10,jr)-yt)/Or)*Or+yt)/Math.LN10;if(mr==="D"){var Ia=Wr==="D2"?Wt:Vt,Fa=e.roundUp(e.mod(jr,1),Ia,br);return Math.floor(jr)+Math.log(p.round(Math.pow(10,Fa),1))/Math.LN10}else throw"unrecognized dtick "+String(Wr)}},V.tickText=function(bt,st,Nr,Lr){var br=Mr(bt,st),Rr=bt.tickmode==="array",jr=Nr||Rr,Wr=bt.type,yt=Wr==="category"?bt.d2l_noadd:bt.d2l,Xt,mr=function(Li){var Ia=bt.l2p(Li);return Ia>=0&&Ia<=bt._length?Li:null};if(Rr&&e.isArrayOrTypedArray(bt.ticktext)){var Or=e.simpleMap(bt.range,bt.r2l),ki=(Math.abs(Or[1]-Or[0])-(bt._lBreaks||0))/1e4;for(Xt=0;Xt<bt.ticktext.length&&!(Math.abs(st-yt(bt.tickvals[Xt]))<ki);Xt++);if(Xt<bt.ticktext.length)return br.text=String(bt.ticktext[Xt]),br.xbnd=[mr(br.x-.5),mr(br.x+bt.dtick-.5)],br}function Ni(Li){if(Li===void 0)return!0;if(Nr)return Li==="none";var Ia={first:bt._tmin,last:bt._tmax}[Li];return Li!=="all"&&st!==Ia}var Si=Nr?"never":bt.exponentformat!=="none"&&Ni(bt.showexponent)?"hide":"";if(Wr==="date"?Dr(bt,br,Nr,jr):Wr==="log"?xt(bt,br,Nr,jr,Si):Wr==="category"?Ne(bt,br):Wr==="multicategory"?Ye(bt,br,Nr):ra(bt)?Ie(bt,br,Nr,jr,Si):be(bt,br,Nr,jr,Si),Lr||(bt.tickprefix&&!Ni(bt.showtickprefix)&&(br.text=bt.tickprefix+br.text),bt.ticksuffix&&!Ni(bt.showticksuffix)&&(br.text+=bt.ticksuffix)),bt.labelalias&&bt.labelalias.hasOwnProperty(br.text)){var fi=bt.labelalias[br.text];typeof fi=="string"&&(br.text=fi)}return(bt.tickson==="boundaries"||bt.showdividers)&&(br.xbnd=[mr(br.x-.5),mr(br.x+bt.dtick-.5)]),br},V.hoverLabelText=function(bt,st,Nr){Nr&&(bt=e.extendFlat({},bt,{hoverformat:Nr}));var Lr=e.isArrayOrTypedArray(st)?st[0]:st,br=e.isArrayOrTypedArray(st)?st[1]:void 0;if(br!==void 0&&br!==Lr)return V.hoverLabelText(bt,Lr,Nr)+" - "+V.hoverLabelText(bt,br,Nr);var Rr=bt.type==="log"&&Lr<=0,jr=V.tickText(bt,bt.c2l(Rr?-Lr:Lr),"hover").text;return Rr?Lr===0?"0":F+jr:jr};function Mr(bt,st,Nr){var Lr=bt.tickfont||{};return{x:st,dx:0,dy:0,text:Nr||"",fontSize:Lr.size,font:Lr.family,fontWeight:Lr.weight,fontStyle:Lr.style,fontVariant:Lr.variant,fontTextcase:Lr.textcase,fontLineposition:Lr.lineposition,fontShadow:Lr.shadow,fontColor:Lr.color}}function Dr(bt,st,Nr,Lr){var br=bt._tickround,Rr=Nr&&bt.hoverformat||V.getTickFormat(bt);Lr=!Rr&&Lr,Lr&&(x(br)?br=4:br={y:"m",m:"d",d:"M",M:"S",S:4}[br]);var jr=e.formatDate(st.x,Rr,br,bt._dateFormat,bt.calendar,bt._extraFormat),Wr,yt=jr.indexOf(`
7`);if(yt!==-1&&(Wr=jr.slice(yt+1),jr=jr.slice(0,yt)),Lr&&(Wr!==void 0&&(jr==="00:00:00"||jr==="00:00")?(jr=Wr,Wr=""):jr.length===8&&(jr=jr.replace(/:00$/,""))),Wr)if(Nr)br==="d"?jr+=", "+Wr:jr=Wr+(jr?", "+jr:"");else if(!bt._inCalcTicks||bt._prevDateHead!==Wr)bt._prevDateHead=Wr,jr+="<br>"+Wr;else{var Xt=xa(bt),mr=bt._trueSide||bt.side;(!Xt&&mr==="top"||Xt&&mr==="bottom")&&(jr+="<br> ")}st.text=jr}function xt(bt,st,Nr,Lr,br){var Rr=bt.dtick,jr=st.x,Wr=bt.tickformat,yt=typeof Rr=="string"&&Rr.charAt(0);if(br==="never"&&(br=""),Lr&&yt!=="L"&&(Rr="L3",yt="L"),Wr||yt==="L")st.text=kt(Math.pow(10,jr),bt,br,Lr);else if(x(Rr)||yt==="D"&&(bt.minorloglabels==="complete"||e.mod(jr+.01,1)<.1)){var Xt;bt.minorloglabels==="complete"&&!(e.mod(jr+.01,1)<.1)&&(Xt=!0,st.fontSize*=.75);var mr=Math.pow(10,jr).toExponential(0),Or=mr.split("e"),ki=+Or[1],Ni=Math.abs(ki),Si=bt.exponentformat;Si==="power"||Le(Si)&&Si!=="SI extended"&&ut(ki)||Le(Si)&&Si==="SI extended"&&lt(ki)?(st.text=Or[0],Ni>0&&(st.text+="x10"),st.text==="1x10"&&(st.text="10"),ki!==0&&ki!==1&&(st.text+="<sup>"+(ki>0?"":F)+Ni+"</sup>"),st.fontSize*=1.25):(Si==="e"||Si==="E")&&Ni>2?st.text=Or[0]+Si+(ki>0?"+":F)+Ni:(st.text=kt(Math.pow(10,jr),bt,"","fakehover"),Rr==="D1"&&bt._id.charAt(0)==="y"&&(st.dy-=st.fontSize/6))}else if(yt==="D")st.text=bt.minorloglabels==="none"?"":String(Math.round(Math.pow(10,e.mod(jr,1)))),st.fontSize*=.75;else throw"unrecognized dtick "+String(Rr);if(bt.dtick==="D1"){var fi=String(st.text).charAt(0);(fi==="0"||fi==="1")&&(bt._id.charAt(0)==="y"?st.dx-=st.fontSize/4:(st.dy+=st.fontSize/2,st.dx+=(bt.range[1]>bt.range[0]?1:-1)*st.fontSize*(jr<0?.5:.25)))}}function Ne(bt,st){var Nr=bt._categories[Math.round(st.x)];Nr===void 0&&(Nr=""),st.text=String(Nr)}function Ye(bt,st,Nr){var Lr=Math.round(st.x),br=bt._categories[Lr]||[],Rr=br[1]===void 0?"":String(br[1]),jr=br[0]===void 0?"":String(br[0]);Nr?st.text=jr+" - "+Rr:(st.text=Rr,st.text2=jr)}function be(bt,st,Nr,Lr,br){br==="never"?br="":bt.showexponent==="all"&&Math.abs(st.x/bt.dtick)<1e-6&&(br="hide"),st.text=kt(st.x,bt,br,Lr)}function Ie(bt,st,Nr,Lr,br){if(bt.thetaunit==="radians"&&!Nr){var Rr=st.x/180;if(Rr===0)st.text="0";else{var jr=qe(Rr);if(jr[1]>=100)st.text=kt(e.deg2rad(st.x),bt,br,Lr);else{var Wr=st.x<0;jr[1]===1?jr[0]===1?st.text="\u03C0":st.text=jr[0]+"\u03C0":st.text=["<sup>",jr[0],"</sup>","\u2044","<sub>",jr[1],"</sub>","\u03C0"].join(""),Wr&&(st.text=F+st.text)}}}else st.text=kt(st.x,bt,br,Lr)}function qe(bt){function st(Wr,yt){return Math.abs(Wr-yt)<=1e-6}function Nr(Wr,yt){return st(yt,0)?Wr:Nr(yt,Wr%yt)}function Lr(Wr){for(var yt=1;!st(Math.round(Wr*yt)/yt,Wr);)yt*=10;return yt}var br=Lr(bt),Rr=bt*br,jr=Math.abs(Nr(Rr,br));return[Math.round(Rr/jr),Math.round(br/jr)]}var ke=["f","p","n","\u03BC","m","","k","M","G","T"],Me=["q","r","y","z","a",...ke,"P","E","Z","Y","R","Q"],Le=bt=>["SI","SI extended","B"].includes(bt);function ut(bt){return bt>14||bt<-15}function lt(bt){return bt>32||bt<-30}function gt(bt,st){return Le(st)?!!(st==="SI extended"&&lt(bt)||st!=="SI extended"&&ut(bt)):!1}function kt(bt,st,Nr,Lr){var br=bt<0,Rr=st._tickround,jr=Nr||st.exponentformat||"B",Wr=st._tickexponent,yt=V.getTickFormat(st),Xt=st.separatethousands;if(Lr){var mr={exponentformat:jr,minexponent:st.minexponent,dtick:st.showexponent==="none"?st.dtick:x(bt)&&Math.abs(bt)||1,range:st.showexponent==="none"?st.range.map(st.r2d):[0,bt||1]};qr(mr),Rr=(Number(mr._tickround)||0)+4,Wr=mr._tickexponent,st.hoverformat&&(yt=st.hoverformat)}if(yt)return st._numFormat(yt)(bt).replace(/-/g,F);var Or=Math.pow(10,-Rr)/2;if(jr==="none"&&(Wr=0),bt=Math.abs(bt),bt<Or)bt="0",br=!1;else{if(bt+=Or,Wr&&(bt*=Math.pow(10,-Wr),Rr+=Wr),Rr===0)bt=String(Math.floor(bt));else if(Rr<0){bt=String(Math.round(bt)),bt=bt.slice(0,Math.max(0,bt.length+Rr));for(var ki=Rr;ki<0;ki++)bt+="0"}else{bt=String(bt);var Ni=bt.indexOf(".")+1;Ni&&(bt=bt.slice(0,Ni+Rr).replace(/\.?0+$/,""))}bt=e.numSeparate(bt,st._separators,Xt)}if(Wr&&jr!=="hide"){gt(Wr,jr)&&(jr="power");var Si;Wr<0?Si=F+-Wr:jr!=="power"?Si="+"+Wr:Si=String(Wr),jr==="e"||jr==="E"?bt+=jr+Si:jr==="power"?bt+="\xD710<sup>"+Si+"</sup>":jr==="B"&&Wr===9?bt+="B":Le(jr)&&(bt+=jr==="SI extended"?Me[Wr/3+10]:ke[Wr/3+5])}return br?F+bt:bt}V.getTickFormat=function(bt){var st;function Nr(yt){return typeof yt!="string"?yt:Number(yt.replace("M",""))*M}function Lr(yt,Xt){var mr=["L","D"];if(typeof yt==typeof Xt){if(typeof yt=="number")return yt-Xt;var Or=mr.indexOf(yt.charAt(0)),ki=mr.indexOf(Xt.charAt(0));return Or===ki?Number(yt.replace(/(L|D)/g,""))-Number(Xt.replace(/(L|D)/g,"")):Or-ki}else return typeof yt=="number"?1:-1}function br(yt,Xt,mr){var Or=mr||function(Si){return Si},ki=Xt[0],Ni=Xt[1];return(!ki&&typeof ki!="number"||Or(ki)<=Or(yt))&&(!Ni&&typeof Ni!="number"||Or(Ni)>=Or(yt))}function Rr(yt,Xt){var mr=Xt[0]===null,Or=Xt[1]===null,ki=Lr(yt,Xt[0])>=0,Ni=Lr(yt,Xt[1])<=0;return(mr||ki)&&(Or||Ni)}var jr,Wr;if(bt.tickformatstops&&bt.tickformatstops.length>0)switch(bt.type){case"date":case"linear":{for(st=0;st<bt.tickformatstops.length;st++)if(Wr=bt.tickformatstops[st],Wr.enabled&&br(bt.dtick,Wr.dtickrange,Nr)){jr=Wr;break}break}case"log":{for(st=0;st<bt.tickformatstops.length;st++)if(Wr=bt.tickformatstops[st],Wr.enabled&&Rr(bt.dtick,Wr.dtickrange)){jr=Wr;break}break}default:}return jr?jr.value:bt.tickformat},V.getSubplots=function(bt,st){var Nr=bt._fullLayout._subplots,Lr=Nr.cartesian.concat(Nr.gl2d||[]),br=st?V.findSubplotsWithAxis(Lr,st):Lr;return br.sort(function(Rr,jr){var Wr=Rr.slice(1).split("y"),yt=jr.slice(1).split("y");return Wr[0]===yt[0]?+Wr[1]-+yt[1]:+Wr[0]-+yt[0]}),br},V.findSubplotsWithAxis=function(bt,st){for(var Nr=new RegExp(st._id.charAt(0)==="x"?"^"+st._id+"y":st._id+"$"),Lr=[],br=0;br<bt.length;br++){var Rr=bt[br];Nr.test(Rr)&&Lr.push(Rr)}return Lr},V.makeClipPaths=function(bt){var st=bt._fullLayout;if(!st._hasOnlyLargeSploms){var Nr={_offset:0,_length:st.width,_id:""},Lr={_offset:0,_length:st.height,_id:""},br=V.list(bt,"x",!0),Rr=V.list(bt,"y",!0),jr=[],Wr,yt;for(Wr=0;Wr<br.length;Wr++)for(jr.push({x:br[Wr],y:Lr}),yt=0;yt<Rr.length;yt++)Wr===0&&jr.push({x:Nr,y:Rr[yt]}),jr.push({x:br[Wr],y:Rr[yt]});var Xt=st._clips.selectAll(".axesclip").data(jr,function(mr){return mr.x._id+mr.y._id});Xt.enter().append("clipPath").classed("axesclip",!0).attr("id",function(mr){return"clip"+st._uid+mr.x._id+mr.y._id}).append("rect"),Xt.exit().remove(),Xt.each(function(mr){p.select(this).select("rect").attr({x:mr.x._offset||0,y:mr.y._offset||0,width:mr.x._length||1,height:mr.y._length||1})})}},V.draw=function(bt,st,Nr){var Lr=bt._fullLayout;st==="redraw"&&Lr._paper.selectAll("g.subplot").each(function(yt){var Xt=yt[0],mr=Lr._plots[Xt];if(mr){var Or=mr.xaxis,ki=mr.yaxis;mr.xaxislayer.selectAll("."+Or._id+"tick").remove(),mr.yaxislayer.selectAll("."+ki._id+"tick").remove(),mr.xaxislayer.selectAll("."+Or._id+"tick2").remove(),mr.yaxislayer.selectAll("."+ki._id+"tick2").remove(),mr.xaxislayer.selectAll("."+Or._id+"divider").remove(),mr.yaxislayer.selectAll("."+ki._id+"divider").remove(),mr.minorGridlayer&&mr.minorGridlayer.selectAll("path").remove(),mr.gridlayer&&mr.gridlayer.selectAll("path").remove(),mr.zerolinelayer&&mr.zerolinelayer.selectAll("path").remove(),mr.zerolinelayerAbove&&mr.zerolinelayerAbove.selectAll("path").remove(),Lr._infolayer.select(".g-"+Or._id+"title").remove(),Lr._infolayer.select(".g-"+ki._id+"title").remove()}});var br=!st||st==="redraw"?V.listIds(bt):st,Rr=V.list(bt),jr=Rr.filter(function(yt){return yt.autoshift}).map(function(yt){return yt.overlaying});br.map(function(yt){var Xt=V.getFromId(bt,yt);if(Xt.tickmode==="sync"&&Xt.overlaying){var mr=br.findIndex(function(Or){return Or===Xt.overlaying});mr>=0&&br.unshift(br.splice(mr,1).shift())}});var Wr={false:{left:0,right:0}};return e.syncOrAsync(br.map(function(yt){return function(){if(yt){var Xt=V.getFromId(bt,yt);Nr||(Nr={}),Nr.axShifts=Wr,Nr.overlayingShiftedAx=jr;var mr=V.drawOne(bt,Xt,Nr);return Xt._shiftPusher&&pn(Xt,Xt._fullDepth||0,Wr,!0),Xt._r=Xt.range.slice(),Xt._rl=e.simpleMap(Xt._r,Xt.r2l),mr}}}))},V.drawOne=function(bt,st,Nr){Nr=Nr||{};var Lr=Nr.axShifts||{},br=Nr.overlayingShiftedAx||[],Rr,jr,Wr;st.setScale();var yt=bt._fullLayout,Xt=st._id,mr=Xt.charAt(0),Or=V.counterLetter(Xt),ki=yt._plots[st._mainSubplot],Ni=st.zerolinelayer==="above traces";if(!ki)return;if(st._shiftPusher=st.autoshift||br.indexOf(st._id)!==-1||br.indexOf(st.overlaying)!==-1,st._shiftPusher&st.anchor==="free"){var Si=st.linewidth/2||0;st.ticks==="inside"&&(Si+=st.ticklen),pn(st,Si,Lr,!0),pn(st,st.shift||0,Lr,!1)}(Nr.skipTitle!==!0||st._shift===void 0)&&(st._shift=_n(st,Lr));var fi=ki[mr+"axislayer"],Li=st._mainLinePosition,Ia=Li+=st._shift,Fa=st._mainMirrorPosition,un=st._vals=V.calcTicks(st),Bn=[st.mirror,Ia,Fa].join("_");for(Rr=0;Rr<un.length;Rr++)un[Rr].axInfo=Bn;st._selections={},st._tickAngles&&(st._prevTickAngles=st._tickAngles),st._tickAngles={},st._depth=null;var Kn={};function Gn(Lo){var al=Xt+(Lo||"tick");return Kn[al]||(Kn[al]=vi(st,al,Ia)),Kn[al]}if(st.visible){var eo=V.makeTransTickFn(st),Ao=V.makeTransTickLabelFn(st),An,Eo,fs=st.ticks==="inside",Ls=st.ticks==="outside";if(st.tickson==="boundaries"){var ns=ir(st,un);Eo=V.clipEnds(st,ns),An=fs?Eo:ns}else Eo=V.clipEnds(st,un),An=fs&&st.ticklabelmode!=="period"?Eo:un;var uo=st._gridVals=Eo,ss=Ir(st,un);if(!yt._hasOnlyLargeSploms){var xs=st._subplotsWith,el={};for(Rr=0;Rr<xs.length;Rr++){jr=xs[Rr],Wr=yt._plots[jr];var Ss=Wr[Or+"axis"],Co=Ss._mainAxis._id;if(!el[Co]){el[Co]=1;var ao=mr==="x"?"M0,"+Ss._offset+"v"+Ss._length:"M"+Ss._offset+",0h"+Ss._length;V.drawGrid(bt,st,{vals:uo,counterAxis:Ss,layer:Wr.gridlayer.select("."+Xt),minorLayer:Wr.minorGridlayer.select("."+Xt),path:ao,transFn:eo}),V.drawZeroLine(bt,st,{counterAxis:Ss,layer:Ni?Wr.zerolinelayerAbove:Wr.zerolinelayer,path:ao,transFn:eo})}}}var co,Ms=V.getTickSigns(st),Gs=V.getTickSigns(st,"minor");if(st.ticks||st.minor&&st.minor.ticks){var ul=V.makeTickPath(st,Ia,Ms[2]),hs=V.makeTickPath(st,Ia,Gs[2],{minor:!0}),rn,Xn,tl,zs;if(st._anchorAxis&&st.mirror&&st.mirror!==!0?(rn=V.makeTickPath(st,Fa,Ms[3]),Xn=V.makeTickPath(st,Fa,Gs[3],{minor:!0}),tl=ul+rn,zs=hs+Xn):(rn="",Xn="",tl=ul,zs=hs),st.showdividers&&Ls&&st.tickson==="boundaries"){var so={};for(Rr=0;Rr<ss.length;Rr++)so[ss[Rr].x]=1;co=function(Lo){return so[Lo.x]?rn:tl}}else co=function(Lo){return Lo.minor?zs:tl}}if(V.drawTicks(bt,st,{vals:An,layer:fi,path:co,transFn:eo}),st.mirror==="allticks"){var $s=Object.keys(st._linepositions||{});for(Rr=0;Rr<$s.length;Rr++){jr=$s[Rr],Wr=yt._plots[jr];var Ps=st._linepositions[jr]||[],nl=Ps[0],yl=Ps[1],On=Ps[2],Ko=V.makeTickPath(st,nl,On?Ms[0]:Gs[0],{minor:On})+V.makeTickPath(st,yl,On?Ms[1]:Gs[1],{minor:On});V.drawTicks(bt,st,{vals:An,layer:Wr[mr+"axislayer"],path:Ko,transFn:eo})}}var jo=[];if(jo.push(function(){return V.drawLabels(bt,st,{vals:un,layer:fi,plotinfo:Wr,transFn:Ao,labelFns:V.makeLabelFns(st,Ia)})}),st.type==="multicategory"){var Ys={x:2,y:10}[mr];jo.push(function(){var Lo={x:"height",y:"width"}[mr],al=Gn()[Lo]+Ys+(st._tickAngles[Xt+"tick"]?st.tickfont.size*q:0);return V.drawLabels(bt,st,{vals:tr(st,un),layer:fi,cls:Xt+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:eo,labelFns:V.makeLabelFns(st,Ia+al*Ms[4])})}),jo.push(function(){return st._depth=Ms[4]*(Gn("tick2")[st.side]-Ia),ea(bt,st,{vals:ss,layer:fi,path:V.makeTickPath(st,Ia,Ms[4],{len:st._depth}),transFn:eo})})}else st.title.hasOwnProperty("standoff")&&jo.push(function(){st._depth=Ms[4]*(Gn()[st.side]-Ia)});var Tu=E.getComponentMethod("rangeslider","isVisible")(st);return!Nr.skipTitle&&!(Tu&&st.side==="bottom")&&jo.push(function(){return _a(bt,st)}),jo.push(function(){var Lo=st.side.charAt(0),al=Z[st.side].charAt(0),kl=V.getPxPosition(bt,st),Ns=Ls?st.ticklen:0,rl,Es,Us,Zl;(st.automargin||Tu||st._shiftPusher)&&(st.type==="multicategory"?rl=Gn("tick2"):(rl=Gn(),mr==="x"&&Lo==="b"&&(st._depth=Math.max(rl.width>0?rl.bottom-kl:0,Ns))));var pu=0,kc=0;if(st._shiftPusher&&(pu=Math.max(Ns,rl.height>0?Lo==="l"?kl-rl.left:rl.right-kl:0),st.title.text!==yt._dfltTitle[mr]&&(kc=(st._titleStandoff||0)+(st._titleScoot||0),Lo==="l"&&(kc+=Bi(st))),st._fullDepth=Math.max(pu,kc)),st.automargin){Es={x:0,y:0,r:0,l:0,t:0,b:0};var Au=[0,1],Sf=typeof st._shift=="number"?st._shift:0;if(mr==="x"){if(Lo==="b"?Es[Lo]=st._depth:(Es[Lo]=st._depth=Math.max(rl.width>0?kl-rl.top:0,Ns),Au.reverse()),rl.width>0){var Gc=rl.right-(st._offset+st._length);Gc>0&&(Es.xr=1,Es.r=Gc);var Js=st._offset-rl.left;Js>0&&(Es.xl=0,Es.l=Js)}}else if(Lo==="l"?(st._depth=Math.max(rl.height>0?kl-rl.left:0,Ns),Es[Lo]=st._depth-Sf):(st._depth=Math.max(rl.height>0?rl.right-kl:0,Ns),Es[Lo]=st._depth+Sf,Au.reverse()),rl.height>0){var yc=rl.bottom-(st._offset+st._length);yc>0&&(Es.yb=0,Es.b=yc);var Zc=st._offset-rl.top;Zc>0&&(Es.yt=1,Es.t=Zc)}Es[Or]=st.anchor==="free"?st.position:st._anchorAxis.domain[Au[0]],st.title.text!==yt._dfltTitle[mr]&&(Es[Lo]+=Bi(st)+(st.title.standoff||0)),st.mirror&&st.anchor!=="free"&&(Us={x:0,y:0,r:0,l:0,t:0,b:0},Us[al]=st.linewidth,st.mirror&&st.mirror!==!0&&(Us[al]+=Ns),st.mirror===!0||st.mirror==="ticks"?Us[Or]=st._anchorAxis.domain[Au[1]]:(st.mirror==="all"||st.mirror==="allticks")&&(Us[Or]=[st._counterDomainMin,st._counterDomainMax][Au[1]]))}Tu&&(Zl=E.getComponentMethod("rangeslider","autoMarginOpts")(bt,st)),typeof st.automargin=="string"&&(nr(Es,st.automargin),nr(Us,st.automargin)),S.autoMargin(bt,Jt(st),Es),S.autoMargin(bt,Br(st),Us),S.autoMargin(bt,ri(st),Zl)}),e.syncOrAsync(jo)}};function nr(bt,st){if(bt){var Nr=Object.keys(J).reduce(function(Lr,br){return st.indexOf(br)!==-1&&J[br].forEach(function(Rr){Lr[Rr]=1}),Lr},{});Object.keys(bt).forEach(function(Lr){Nr[Lr]||(Lr.length===1?bt[Lr]=0:delete bt[Lr])})}}function ir(bt,st){var Nr=[],Lr,br=function(Rr,jr){var Wr=Rr.xbnd[jr];Wr!==null&&Nr.push(e.extendFlat({},Rr,{x:Wr}))};if(st.length){for(Lr=0;Lr<st.length;Lr++)br(st[Lr],0);br(st[Lr-1],1)}return Nr}function tr(bt,st){for(var Nr=[],Lr={},br=0;br<st.length;br++){var Rr=st[br];Lr[Rr.text2]?Lr[Rr.text2].push(Rr.x):Lr[Rr.text2]=[Rr.x]}for(var jr in Lr)Nr.push(Mr(bt,e.interp(Lr[jr],.5),jr));return Nr}function Ir(bt,st){var Nr=[],Lr,br,Rr=st.length&&st[st.length-1].x<st[0].x,jr=function(yt,Xt){var mr=yt.xbnd[Xt];mr!==null&&Nr.push(e.extendFlat({},yt,{x:mr}))};if(bt.showdividers&&st.length){for(Lr=0;Lr<st.length;Lr++){var Wr=st[Lr];Wr.text2!==br&&jr(Wr,Rr?1:0),br=Wr.text2}jr(st[Lr-1],Rr?0:1)}return Nr}function vi(bt,st,Nr){var Lr,br,Rr,jr;if(bt._selections[st].size())Lr=1/0,br=-1/0,Rr=1/0,jr=-1/0,bt._selections[st].each(function(){var yt=Zt(this);if(yt.node().style.display!=="none"){var Xt=n.bBox(yt.node().parentNode);Lr=Math.min(Lr,Xt.top),br=Math.max(br,Xt.bottom),Rr=Math.min(Rr,Xt.left),jr=Math.max(jr,Xt.right)}});else{var Wr=V.makeLabelFns(bt,Nr);Lr=br=Wr.yFn({dx:0,dy:0,fontSize:0}),Rr=jr=Wr.xFn({dx:0,dy:0,fontSize:0})}return{top:Lr,bottom:br,left:Rr,right:jr,height:br-Lr,width:jr-Rr}}V.getTickSigns=function(bt,st){var Nr=bt._id.charAt(0),Lr={x:"top",y:"right"}[Nr],br=bt.side===Lr?1:-1,Rr=[-1,1,br,-br],jr=st?(bt.minor||{}).ticks:bt.ticks;return jr!=="inside"==(Nr==="x")&&(Rr=Rr.map(function(Wr){return-Wr})),bt.side&&Rr.push({l:-1,t:-1,r:1,b:1}[bt.side.charAt(0)]),Rr},V.makeTransTickFn=function(bt){return bt._id.charAt(0)==="x"?function(st){return t(bt._offset+bt.l2p(st.x),0)}:function(st){return t(0,bt._offset+bt.l2p(st.x))}},V.makeTransTickLabelFn=function(bt){var st=Ui(bt),Nr=bt.ticklabelshift||0,Lr=bt.ticklabelstandoff||0,br=st[0],Rr=st[1],jr=bt.range[0]>bt.range[1],Wr=bt.ticklabelposition&&bt.ticklabelposition.indexOf("inside")!==-1,yt=!Wr;if(Nr){var Xt=jr?-1:1;Nr=Nr*Xt}if(Lr){var mr=bt.side,Or=Wr&&(mr==="top"||mr==="left")||yt&&(mr==="bottom"||mr==="right")?1:-1;Lr=Lr*Or}return bt._id.charAt(0)==="x"?function(ki){return t(br+bt._offset+bt.l2p(Vi(ki))+Nr,Rr+Lr)}:function(ki){return t(Rr+Lr,br+bt._offset+bt.l2p(Vi(ki))+Nr)}};function Vi(bt){return bt.periodX!==void 0?bt.periodX:bt.x}function Ui(bt){var st=bt.ticklabelposition||"",Nr=bt.tickson||"",Lr=function(Si){return st.indexOf(Si)!==-1},br=Lr("top"),Rr=Lr("left"),jr=Lr("right"),Wr=Lr("bottom"),yt=Lr("inside"),Xt=Nr!=="boundaries"&&(Wr||Rr||br||jr);if(!Xt&&!yt)return[0,0];var mr=bt.side,Or=Xt?(bt.tickwidth||0)/2:0,ki=ee,Ni=bt.tickfont?bt.tickfont.size:12;return(Wr||br)&&(Or+=Ni*ce,ki+=(bt.linewidth||0)/2),(Rr||jr)&&(Or+=(bt.linewidth||0)/2,ki+=ee),yt&&mr==="top"&&(ki-=Ni*(1-ce)),(Rr||br)&&(Or=-Or),(mr==="bottom"||mr==="right")&&(ki=-ki),[Xt?Or:0,yt?ki:0]}V.makeTickPath=function(bt,st,Nr,Lr){Lr||(Lr={});var br=Lr.minor;if(br&&!bt.minor)return"";var Rr=Lr.len!==void 0?Lr.len:br?bt.minor.ticklen:bt.ticklen,jr=bt._id.charAt(0),Wr=(bt.linewidth||1)/2;return jr==="x"?"M0,"+(st+Wr*Nr)+"v"+Rr*Nr:"M"+(st+Wr*Nr)+",0h"+Rr*Nr},V.makeLabelFns=function(bt,st,Nr){var Lr=bt.ticklabelposition||"",br=bt.tickson||"",Rr=function(ns){return Lr.indexOf(ns)!==-1},jr=Rr("top"),Wr=Rr("left"),yt=Rr("right"),Xt=Rr("bottom"),mr=br!=="boundaries"&&(Xt||Wr||jr||yt),Or=Rr("inside"),ki=Lr==="inside"&&bt.ticks==="inside"||!Or&&bt.ticks==="outside"&&br!=="boundaries",Ni=0,Si=0,fi=ki?bt.ticklen:0;if(Or?fi*=-1:mr&&(fi=0),ki&&(Ni+=fi,Nr)){var Li=e.deg2rad(Nr);Ni=fi*Math.cos(Li)+1,Si=fi*Math.sin(Li)}bt.showticklabels&&(ki||bt.showline)&&(Ni+=.2*bt.tickfont.size),Ni+=(bt.linewidth||1)/2*(Or?-1:1);var Ia={labelStandoff:Ni,labelShift:Si},Fa,un,Bn,Kn,Gn=0,eo=bt.side,Ao=bt._id.charAt(0),An=bt.tickangle,Eo;if(Ao==="x")Eo=!Or&&eo==="bottom"||Or&&eo==="top",Kn=Eo?1:-1,Or&&(Kn*=-1),Fa=Si*Kn,un=st+Ni*Kn,Bn=Eo?1:-.2,Math.abs(An)===90&&(Or?Bn+=le:An===-90&&eo==="bottom"?Bn=ce:An===90&&eo==="top"?Bn=le:Bn=.5,Gn=le/2*(An/90)),Ia.xFn=function(ns){return ns.dx+Fa+Gn*ns.fontSize},Ia.yFn=function(ns){return ns.dy+un+ns.fontSize*Bn},Ia.anchorFn=function(ns,uo){if(mr){if(Wr)return"end";if(yt)return"start"}return!x(uo)||uo===0||uo===180?"middle":uo*Kn<0!==Or?"end":"start"},Ia.heightFn=function(ns,uo,ss){return uo<-60||uo>60?-.5*ss:bt.side==="top"!==Or?-ss:0};else if(Ao==="y"){if(Eo=!Or&&eo==="left"||Or&&eo==="right",Kn=Eo?1:-1,Or&&(Kn*=-1),Fa=Ni,un=Si*Kn,Bn=0,!Or&&Math.abs(An)===90&&(An===-90&&eo==="left"||An===90&&eo==="right"?Bn=ce:Bn=.5),Or){var fs=x(An)?+An:0;if(fs!==0){var Ls=e.deg2rad(fs);Gn=Math.abs(Math.sin(Ls))*ce*Kn,Bn=0}}Ia.xFn=function(ns){return ns.dx+st-(Fa+ns.fontSize*Bn)*Kn+Gn*ns.fontSize},Ia.yFn=function(ns){return ns.dy+un+ns.fontSize*le},Ia.anchorFn=function(ns,uo){return x(uo)&&Math.abs(uo)===90?"middle":Eo?"end":"start"},Ia.heightFn=function(ns,uo,ss){return bt.side==="right"&&(uo*=-1),uo<-30?-ss:uo<30?-.5*ss:0}}return Ia};function Ki(bt){return[bt.text,bt.x,bt.axInfo,bt.font,bt.fontSize,bt.fontColor].join("_")}V.drawTicks=function(bt,st,Nr){Nr=Nr||{};var Lr=st._id+"tick",br=[].concat(st.minor&&st.minor.ticks?Nr.vals.filter(function(jr){return jr.minor&&!jr.noTick}):[]).concat(st.ticks?Nr.vals.filter(function(jr){return!jr.minor&&!jr.noTick}):[]),Rr=Nr.layer.selectAll("path."+Lr).data(br,Ki);Rr.exit().remove(),Rr.enter().append("path").classed(Lr,1).classed("ticks",1).classed("crisp",Nr.crisp!==!1).each(function(jr){return i.stroke(p.select(this),jr.minor?st.minor.tickcolor:st.tickcolor)}).style("stroke-width",function(jr){return n.crispRound(bt,jr.minor?st.minor.tickwidth:st.tickwidth,1)+"px"}).attr("d",Nr.path).style("display",null),ji(st,[O]),Rr.attr("transform",Nr.transFn)},V.drawGrid=function(bt,st,Nr){if(Nr=Nr||{},st.tickmode!=="sync"){var Lr=st._id+"grid",br=st.minor&&st.minor.showgrid,Rr=br?Nr.vals.filter(function(Ia){return Ia.minor}):[],jr=st.showgrid?Nr.vals.filter(function(Ia){return!Ia.minor}):[],Wr=Nr.counterAxis;if(Wr&&V.shouldShowZeroLine(bt,st,Wr))for(var yt=st.tickmode==="array",Xt=0;Xt<jr.length;Xt++){var mr=jr[Xt].x;if(yt?!mr:Math.abs(mr)<st.dtick/100)if(jr=jr.slice(0,Xt).concat(jr.slice(Xt+1)),yt)Xt--;else break}st._gw=n.crispRound(bt,st.gridwidth,1);for(var Or=br?n.crispRound(bt,st.minor.gridwidth,1):0,ki=Nr.layer,Ni=Nr.minorLayer,Si=1;Si>=0;Si--){var fi=Si?ki:Ni;if(fi){var Li=fi.selectAll("path."+Lr).data(Si?jr:Rr,Ki);Li.exit().remove(),Li.enter().append("path").classed(Lr,1).classed("crisp",Nr.crisp!==!1),Li.attr("transform",Nr.transFn).attr("d",Nr.path).each(function(Ia){return i.stroke(p.select(this),Ia.minor?st.minor.gridcolor:st.gridcolor||"#ddd")}).style("stroke-dasharray",function(Ia){return n.dashStyle(Ia.minor?st.minor.griddash:st.griddash,Ia.minor?st.minor.gridwidth:st.gridwidth)}).style("stroke-width",function(Ia){return(Ia.minor?Or:st._gw)+"px"}).style("display",null),typeof Nr.path=="function"&&Li.attr("d",Nr.path)}}ji(st,[I,U])}},V.drawZeroLine=function(bt,st,Nr){Nr=Nr||Nr;var Lr=st._id+"zl",br=V.shouldShowZeroLine(bt,st,Nr.counterAxis),Rr=Nr.layer.selectAll("path."+Lr).data(br?[{x:0,id:st._id}]:[]);Rr.exit().remove(),Rr.enter().append("path").classed(Lr,1).classed("zl",1).classed("crisp",Nr.crisp!==!1).each(function(){Nr.layer.selectAll("path").sort(function(jr,Wr){return j(jr.id,Wr.id)})}),Rr.attr("transform",Nr.transFn).attr("d",Nr.path).call(i.stroke,st.zerolinecolor||i.defaultLine).style("stroke-width",n.crispRound(bt,st.zerolinewidth,st._gw||1)+"px").style("display",null),ji(st,[B])},V.drawLabels=function(bt,st,Nr){Nr=Nr||{};var Lr=bt._fullLayout,br=st._id,Rr=st.zerolinelayer==="above traces",jr=Nr.cls||br+"tick",Wr=Nr.vals.filter(function(Co){return Co.text}),yt=Nr.labelFns,Xt=Nr.secondary?0:st.tickangle,mr=(st._prevTickAngles||{})[jr],Or=Nr.layer.selectAll("g."+jr).data(st.showticklabels?Wr:[],Ki),ki=[];Or.enter().append("g").classed(jr,1).append("text").attr("text-anchor","middle").each(function(Co){var ao=p.select(this),co=bt._promises.length;ao.call(r.positionText,yt.xFn(Co),yt.yFn(Co)).call(n.font,{family:Co.font,size:Co.fontSize,color:Co.fontColor,weight:Co.fontWeight,style:Co.fontStyle,variant:Co.fontVariant,textcase:Co.fontTextcase,lineposition:Co.fontLineposition,shadow:Co.fontShadow}).text(Co.text).call(r.convertToTspans,bt),bt._promises[co]?ki.push(bt._promises.pop().then(function(){Ni(ao,Xt)})):Ni(ao,Xt)}),ji(st,[X]),Or.exit().remove(),Nr.repositionOnUpdate&&Or.each(function(Co){p.select(this).select("text").call(r.positionText,yt.xFn(Co),yt.yFn(Co))});function Ni(Co,ao){Co.each(function(co){var Ms=p.select(this),Gs=Ms.select(".text-math-group"),ul=yt.anchorFn(co,ao),hs=Nr.transFn.call(Ms.node(),co)+(x(ao)&&+ao!=0?" rotate("+ao+","+yt.xFn(co)+","+(yt.yFn(co)-co.fontSize/2)+")":""),rn=r.lineCount(Ms),Xn=q*co.fontSize,tl=yt.heightFn(co,x(ao)?+ao:0,(rn-1)*Xn);if(tl&&(hs+=t(0,tl)),Gs.empty()){var zs=Ms.select("text");zs.attr({transform:hs,"text-anchor":ul}),zs.style("display",null),st._adjustTickLabelsOverflow&&st._adjustTickLabelsOverflow()}else{var so=n.bBox(Gs.node()).width,$s=so*{end:-.5,start:.5}[ul];Gs.attr("transform",hs+t($s,0))}})}st._adjustTickLabelsOverflow=function(){var Co=st.ticklabeloverflow;if(!(!Co||Co==="allow")){var ao=Co.indexOf("hide")!==-1,co=st._id.charAt(0)==="x",Ms=0,Gs=co?bt._fullLayout.width:bt._fullLayout.height;if(Co.indexOf("domain")!==-1){var ul=e.simpleMap(st.range,st.r2l);Ms=st.l2p(ul[0])+st._offset,Gs=st.l2p(ul[1])+st._offset}var hs=Math.min(Ms,Gs),rn=Math.max(Ms,Gs),Xn=st.side,tl=1/0,zs=-1/0;Or.each(function(nl){var yl=p.select(this),On=yl.select(".text-math-group");if(On.empty()){var Ko=n.bBox(yl.node()),jo=0;co?(Ko.right>rn||Ko.left<hs)&&(jo=1):(Ko.bottom>rn||Ko.top+(st.tickangle?0:nl.fontSize/4)<hs)&&(jo=1);var Ys=yl.select("text");jo?ao&&Ys.style("display","none"):Ys.node().style.display!=="none"&&(Ys.style("display",null),Xn==="bottom"||Xn==="right"?tl=Math.min(tl,co?Ko.top:Ko.left):tl=-1/0,Xn==="top"||Xn==="left"?zs=Math.max(zs,co?Ko.bottom:Ko.right):zs=1/0)}});for(var so in Lr._plots){var $s=Lr._plots[so];if(!(st._id!==$s.xaxis._id&&st._id!==$s.yaxis._id)){var Ps=co?$s.yaxis:$s.xaxis;Ps&&(Ps["_visibleLabelMin_"+st._id]=tl,Ps["_visibleLabelMax_"+st._id]=zs)}}}},st._hideCounterAxisInsideTickLabels=function(Co){var ao=st._id.charAt(0)==="x",co=[];for(var Ms in Lr._plots){var Gs=Lr._plots[Ms];st._id!==Gs.xaxis._id&&st._id!==Gs.yaxis._id||co.push(ao?Gs.yaxis:Gs.xaxis)}co.forEach(function(ul,hs){ul&&xa(ul)&&(Co||[B,U,I,O,X]).forEach(function(rn){var Xn=rn.K==="tick"&&rn.L==="text"&&st.ticklabelmode==="period",tl=Lr._plots[st._mainSubplot],zs;if(rn.K===B.K){var so=Rr?tl.zerolinelayerAbove:tl.zerolinelayer;zs=so.selectAll("."+st._id+"zl")}else rn.K===U.K?zs=tl.minorGridlayer.selectAll("."+st._id):rn.K===I.K?zs=tl.gridlayer.selectAll("."+st._id):zs=tl[st._id.charAt(0)+"axislayer"];zs.each(function(){var $s=p.select(this);rn.L&&($s=$s.selectAll(rn.L)),$s.each(function(Ps){var nl=st.l2p(Xn?Vi(Ps):Ps.x)+st._offset,yl=p.select(this);nl<st["_visibleLabelMax_"+ul._id]&&nl>st["_visibleLabelMin_"+ul._id]?yl.style("display","none"):rn.K==="tick"&&!hs&&yl.node().style.display!=="none"&&yl.style("display",null)})})})})},Ni(Or,mr+1?mr:Xt);function Si(){return ki.length&&Promise.all(ki)}var fi=null;function Li(){if(Ni(Or,Xt),Wr.length&&st.autotickangles&&(st.type!=="log"||String(st.dtick).charAt(0)!=="D")){fi=st.autotickangles[0];var Co=0,ao=[],co,Ms=1;Or.each(function(Es){Co=Math.max(Co,Es.fontSize);var Us=st.l2p(Es.x),Zl=Zt(this),pu=n.bBox(Zl.node());Ms=Math.max(Ms,r.lineCount(Zl)),ao.push({top:0,bottom:10,height:10,left:Us-pu.width/2,right:Us+pu.width/2+2,width:pu.width+2})});var Gs=(st.tickson==="boundaries"||st.showdividers)&&!Nr.secondary,ul=Wr.length,hs=Math.abs((Wr[ul-1].x-Wr[0].x)*st._m)/(ul-1),rn=Gs?hs/2:hs,Xn=Gs?st.ticklen:Co*1.25*Ms,tl=Math.sqrt(Math.pow(rn,2)+Math.pow(Xn,2)),zs=rn/tl,so=st.autotickangles.map(function(Es){return Es*Math.PI/180}),$s=so.find(function(Es){return Math.abs(Math.cos(Es))<=zs});$s===void 0&&($s=so.reduce(function(Es,Us){return Math.abs(Math.cos(Es))<Math.abs(Math.cos(Us))?Es:Us},so[0]));var Ps=$s*(180/Math.PI);if(Gs){var nl=2;for(st.ticks&&(nl+=st.tickwidth/2),co=0;co<ao.length;co++){var yl=Wr[co].xbnd,On=ao[co];if(yl[0]!==null&&On.left-st.l2p(yl[0])<nl||yl[1]!==null&&st.l2p(yl[1])-On.right<nl){fi=Ps;break}}}else{var Ko=st.ticklabelposition||"",jo=st.tickson||"",Ys=function(Es){return Ko.indexOf(Es)!==-1},Tu=Ys("top"),Lo=Ys("left"),al=Ys("right"),kl=Ys("bottom"),Ns=jo!=="boundaries"&&(kl||Lo||Tu||al),rl=Ns?(st.tickwidth||0)+2*ee:0;for(co=0;co<ao.length-1;co++)if(e.bBoxIntersect(ao[co],ao[co+1],rl)){fi=Ps;break}}fi&&Ni(Or,fi)}}st._selections&&(st._selections[jr]=Or);var Ia=[Si];st.automargin&&Lr._redrawFromAutoMarginCount&&mr===90?(fi=mr,Ia.push(function(){Ni(Or,mr)})):Ia.push(Li),st._tickAngles&&Ia.push(function(){st._tickAngles[jr]=fi===null?x(Xt)?Xt:0:fi});var Fa=function(){var Co=0,ao=0;return Or.each(function(co,Ms){var Gs=Zt(this),ul=Gs.select(".text-math-group");if(ul.empty()){var hs;st._vals[Ms]&&(hs=st._vals[Ms].bb||n.bBox(Gs.node()),st._vals[Ms].bb=hs),Co=Math.max(Co,hs.width),ao=Math.max(ao,hs.height)}}),{labelsMaxW:Co,labelsMaxH:ao}},un=st._anchorAxis;if(un&&(un.autorange||un.insiderange)&&xa(st)&&!Q(Lr,st._id)&&(Lr._insideTickLabelsUpdaterange||(Lr._insideTickLabelsUpdaterange={}),un.autorange&&(Lr._insideTickLabelsUpdaterange[un._name+".autorange"]=un.autorange,Ia.push(Fa)),un.insiderange)){var Bn=Fa(),Kn=st._id.charAt(0)==="y"?Bn.labelsMaxW:Bn.labelsMaxH;Kn+=2*ee,st.ticklabelposition==="inside"&&(Kn+=st.ticklen||0);var Gn=st.side==="right"||st.side==="top"?1:-1,eo=Gn===1?1:0,Ao=Gn===1?0:1,An=[];An[Ao]=un.range[Ao];var Eo=un.range,fs=un.r2p(Eo[eo]),Ls=un.r2p(Eo[Ao]),ns=Lr._insideTickLabelsUpdaterange[un._name+".range"];if(ns){var uo=un.r2p(ns[eo]),ss=un.r2p(ns[Ao]),xs=Gn*(st._id.charAt(0)==="y"?1:-1);xs*fs<xs*uo&&(fs=uo,An[eo]=Eo[eo]=ns[eo]),xs*Ls>xs*ss&&(Ls=ss,An[Ao]=Eo[Ao]=ns[Ao])}var el=Math.abs(Ls-fs);el-Kn>0?(el-=Kn,Kn*=1+Kn/el):Kn=0,st._id.charAt(0)!=="y"&&(Kn=-Kn),An[eo]=un.p2r(un.r2p(Eo[eo])+Gn*Kn),un.autorange==="min"||un.autorange==="max reversed"?(An[0]=null,un._rangeInitial0=void 0,un._rangeInitial1=void 0):(un.autorange==="max"||un.autorange==="min reversed")&&(An[1]=null,un._rangeInitial0=void 0,un._rangeInitial1=void 0),Lr._insideTickLabelsUpdaterange[un._name+".range"]=An}var Ss=e.syncOrAsync(Ia);return Ss&&Ss.then&&bt._promises.push(Ss),Ss};function ea(bt,st,Nr){var Lr=st._id+"divider",br=Nr.vals,Rr=Nr.layer.selectAll("path."+Lr).data(br,Ki);Rr.exit().remove(),Rr.enter().insert("path",":first-child").classed(Lr,1).classed("crisp",1).call(i.stroke,st.dividercolor).style("stroke-width",n.crispRound(bt,st.dividerwidth,1)+"px"),Rr.attr("transform",Nr.transFn).attr("d",Nr.path)}V.getPxPosition=function(bt,st){var Nr=bt._fullLayout._size,Lr=st._id.charAt(0),br=st.side,Rr;if(st.anchor!=="free"?Rr=st._anchorAxis:Lr==="x"?Rr={_offset:Nr.t+(1-(st.position||0))*Nr.h,_length:0}:Lr==="y"&&(Rr={_offset:Nr.l+(st.position||0)*Nr.w+st._shift,_length:0}),br==="top"||br==="left")return Rr._offset;if(br==="bottom"||br==="right")return Rr._offset+Rr._length};function Bi(bt){var st=bt.title.font.size,Nr=(bt.title.text.match(r.BR_TAG_ALL)||[]).length;return bt.title.hasOwnProperty("standoff")?st*(ce+Nr*q):Nr?st*(Nr+1)*q:st}function _a(bt,st){var Nr=bt._fullLayout,Lr=st._id,br=Lr.charAt(0),Rr=st.title.font.size,jr,Wr=(st.title.text.match(r.BR_TAG_ALL)||[]).length;if(st.title.hasOwnProperty("standoff"))st.side==="bottom"||st.side==="right"?jr=st._depth+st.title.standoff+Rr*ce:(st.side==="top"||st.side==="left")&&(jr=st._depth+st.title.standoff+Rr*(le+Wr*q));else{var yt=xa(st);if(st.type==="multicategory")jr=st._depth;else{var Xt=1.5*Rr;yt&&(Xt=.5*Rr,st.ticks==="outside"&&(Xt+=st.ticklen)),jr=10+Xt+(st.linewidth?st.linewidth-1:0)}yt||(br==="x"?jr+=st.side==="top"?Rr*(st.showticklabels?1:0):Rr*(st.showticklabels?1.5:.5):jr+=st.side==="right"?Rr*(st.showticklabels?1:.5):Rr*(st.showticklabels?.5:0))}var mr=V.getPxPosition(bt,st),Or,ki,Ni;br==="x"?(ki=st._offset+st._length/2,Ni=st.side==="top"?mr-jr:mr+jr):(Ni=st._offset+st._length/2,ki=st.side==="right"?mr+jr:mr-jr,Or={rotate:"-90",offset:0});var Si;if(st.type!=="multicategory"){var fi=st._selections[st._id+"tick"];if(Si={selection:fi,side:st.side},fi&&fi.node()&&fi.node().parentNode){var Li=n.getTranslate(fi.node().parentNode);Si.offsetLeft=Li.x,Si.offsetTop=Li.y}st.title.hasOwnProperty("standoff")&&(Si.pad=0)}return st._titleStandoff=jr,o.draw(bt,Lr+"title",{propContainer:st,propName:st._name+".title.text",placeholder:Nr._dfltTitle[br],avoid:Si,transform:Or,attributes:{x:ki,y:Ni,"text-anchor":"middle"}})}V.shouldShowZeroLine=function(bt,st,Nr){var Lr=e.simpleMap(st.range,st.r2l);return Lr[0]*Lr[1]<=0&&st.zeroline&&(st.type==="linear"||st.type==="-")&&!(st.rangebreaks&&st.maskBreaks(0)===N)&&(Ca(st,0)||!Kt(bt,st,Nr,Lr)||zt(bt,st))},V.clipEnds=function(bt,st){return st.filter(function(Nr){return Ca(bt,Nr.x)})};function Ca(bt,st){var Nr=bt.l2p(st);return Nr>1&&Nr<bt._length-1}function Kt(bt,st,Nr,Lr){var br=Nr._mainAxis;if(!br)return;var Rr=bt._fullLayout,jr=st._id.charAt(0),Wr=V.counterLetter(st._id),yt=st._offset+(Math.abs(Lr[0])<Math.abs(Lr[1])==(jr==="x")?0:st._length);function Xt(Si){if(!Si.showline||!Si.linewidth)return!1;var fi=Math.max((Si.linewidth+st.zerolinewidth)/2,1);function Li(un){return typeof un=="number"&&Math.abs(un-yt)<fi}if(Li(Si._mainLinePosition)||Li(Si._mainMirrorPosition))return!0;var Ia=Si._linepositions||{};for(var Fa in Ia)if(Li(Ia[Fa][0])||Li(Ia[Fa][1]))return!0}var mr=Rr._plots[Nr._mainSubplot];if(!(mr.mainplotinfo||mr).overlays.length)return Xt(Nr,yt);for(var Or=V.list(bt,Wr),ki=0;ki<Or.length;ki++){var Ni=Or[ki];if(Ni._mainAxis===br&&Xt(Ni,yt))return!0}}function zt(bt,st){for(var Nr=bt._fullData,Lr=st._mainSubplot,br=st._id.charAt(0),Rr=0;Rr<Nr.length;Rr++){var jr=Nr[Rr];if(jr.visible===!0&&jr.xaxis+jr.yaxis===Lr&&(E.traceIs(jr,"bar-like")&&jr.orientation==={x:"h",y:"v"}[br]||jr.fill&&jr.fill.charAt(jr.fill.length-1)===br))return!0}return!1}function Zt(bt){var st=p.select(bt),Nr=st.select(".text-math-group");return Nr.empty()?st.select("text"):Nr}V.allowAutoMargin=function(bt){for(var st=V.list(bt,"",!0),Nr=0;Nr<st.length;Nr++){var Lr=st[Nr];Lr.automargin&&(S.allowAutoMargin(bt,Jt(Lr)),Lr.mirror&&S.allowAutoMargin(bt,Br(Lr))),E.getComponentMethod("rangeslider","isVisible")(Lr)&&S.allowAutoMargin(bt,ri(Lr))}};function Jt(bt){return bt._id+".automargin"}function Br(bt){return Jt(bt)+".mirror"}function ri(bt){return bt._id+".rangeslider"}V.swap=function(bt,st){for(var Nr=ii(bt,st),Lr=0;Lr<Nr.length;Lr++)Wi(bt,Nr[Lr].x,Nr[Lr].y)};function ii(bt,st){var Nr=[],Lr,br;for(Lr=0;Lr<st.length;Lr++){var Rr=[],jr=bt._fullData[st[Lr]].xaxis,Wr=bt._fullData[st[Lr]].yaxis;if(!(!jr||!Wr)){for(br=0;br<Nr.length;br++)(Nr[br].x.indexOf(jr)!==-1||Nr[br].y.indexOf(Wr)!==-1)&&Rr.push(br);if(!Rr.length){Nr.push({x:[jr],y:[Wr]});continue}var yt=Nr[Rr[0]],Xt;if(Rr.length>1)for(br=1;br<Rr.length;br++)Xt=Nr[Rr[br]],di(yt.x,Xt.x),di(yt.y,Xt.y);di(yt.x,[jr]),di(yt.y,[Wr])}}return Nr}function di(bt,st){for(var Nr=0;Nr<st.length;Nr++)bt.indexOf(st[Nr])===-1&&bt.push(st[Nr])}function Wi(bt,st,Nr){var Lr=[],br=[],Rr=bt.layout,jr,Wr;for(jr=0;jr<st.length;jr++)Lr.push(V.getFromId(bt,st[jr]));for(jr=0;jr<Nr.length;jr++)br.push(V.getFromId(bt,Nr[jr]));var yt=Object.keys(a),Xt=["anchor","domain","overlaying","position","side","tickangle","editType"],mr=["linear","log"];for(jr=0;jr<yt.length;jr++){var Or=yt[jr],ki=Lr[0][Or],Ni=br[0][Or],Si=!0,fi=!1,Li=!1;if(!(Or.charAt(0)==="_"||typeof ki=="function"||Xt.indexOf(Or)!==-1)){for(Wr=1;Wr<Lr.length&&Si;Wr++){var Ia=Lr[Wr][Or];Or==="type"&&mr.indexOf(ki)!==-1&&mr.indexOf(Ia)!==-1&&ki!==Ia?fi=!0:Ia!==ki&&(Si=!1)}for(Wr=1;Wr<br.length&&Si;Wr++){var Fa=br[Wr][Or];Or==="type"&&mr.indexOf(Ni)!==-1&&mr.indexOf(Fa)!==-1&&Ni!==Fa?Li=!0:br[Wr][Or]!==Ni&&(Si=!1)}Si&&(fi&&(Rr[Lr[0]._name].type="linear"),Li&&(Rr[br[0]._name].type="linear"),oa(Rr,Or,Lr,br,bt._fullLayout._dfltTitle))}}for(jr=0;jr<bt._fullLayout.annotations.length;jr++){var un=bt._fullLayout.annotations[jr];st.indexOf(un.xref)!==-1&&Nr.indexOf(un.yref)!==-1&&e.swapAttrs(Rr.annotations[jr],["?"])}}function oa(bt,st,Nr,Lr,br){var Rr=e.nestedProperty,jr=Rr(bt[Nr[0]._name],st).get(),Wr=Rr(bt[Lr[0]._name],st).get(),yt;for(st==="title"&&(jr&&jr.text===br.x&&(jr.text=br.y),Wr&&Wr.text===br.y&&(Wr.text=br.x)),yt=0;yt<Nr.length;yt++)Rr(bt,Nr[yt]._name+"."+st).set(Wr);for(yt=0;yt<Lr.length;yt++)Rr(bt,Lr[yt]._name+"."+st).set(jr)}function ra(bt){return bt._id==="angularaxis"}function ca(bt,st){for(var Nr=st._rangebreaks.length,Lr=0;Lr<Nr;Lr++){var br=st._rangebreaks[Lr];if(bt>=br.min&&bt<br.max)return br.max}return bt}function xa(bt){return(bt.ticklabelposition||"").indexOf("inside")!==-1}function ji(bt,st){xa(bt._anchorAxis||{})&&bt._hideCounterAxisInsideTickLabels&&bt._hideCounterAxisInsideTickLabels(st)}function pn(bt,st,Nr,Lr){var br=bt.anchor!=="free"&&(bt.overlaying===void 0||bt.overlaying===!1)?bt._id:bt.overlaying,Rr;Lr?Rr=bt.side==="right"?st:-st:Rr=st,br in Nr||(Nr[br]={}),bt.side in Nr[br]||(Nr[br][bt.side]=0),Nr[br][bt.side]+=Rr}function _n(bt,st){return bt.autoshift?st[bt.overlaying][bt.side]:bt.shift||0}function En(bt,st){return/%f/.test(st)?bt>=z:/%L/.test(st)?bt>=L:/%[SX]/.test(st)?bt>=R:/%M/.test(st)?bt>=f:/%[HI]/.test(st)?bt>=y:/%p/.test(st)?bt>=u:/%[Aadejuwx]/.test(st)?bt>=v:/%[UVW]/.test(st)?bt>=b:/%[Bbm]/.test(st)?bt>=g:/%[q]/.test(st)?bt>=w:/%[Yy]/.test(st)?bt>=T:!0}}}),Ww=De({"src/plots/cartesian/autorange_options_defaults.js"(Y,H){"use strict";H.exports=function(x,S,E){var e,t;if(E){var r=S==="reversed"||S==="min reversed"||S==="max reversed";e=E[r?1:0],t=E[r?0:1]}var o=x("autorangeoptions.minallowed",t===null?e:void 0),i=x("autorangeoptions.maxallowed",e===null?t:void 0);o===void 0&&x("autorangeoptions.clipmin"),i===void 0&&x("autorangeoptions.clipmax"),x("autorangeoptions.include")}}}),Xw=De({"src/plots/cartesian/range_defaults.js"(Y,H){"use strict";var p=Ww();H.exports=function(S,E,e,t){var r=E._template||{},o=E.type||r.type||"-";e("minallowed"),e("maxallowed");var i=e("range");if(!i){var n;!t.noInsiderange&&o!=="log"&&(n=e("insiderange"),n&&(n[0]===null||n[1]===null)&&(E.insiderange=!1,n=void 0),n&&(i=e("range",n)))}var a=E.getAutorangeDflt(i,t),s=e("autorange",a),h;i&&(i[0]===null&&i[1]===null||(i[0]===null||i[1]===null)&&(s==="reversed"||s===!0)||i[0]!==null&&(s==="min"||s==="max reversed")||i[1]!==null&&(s==="max"||s==="min reversed"))&&(i=void 0,delete E.range,E.autorange=!0,h=!0),h||(a=E.getAutorangeDflt(i,t),s=e("autorange",a)),s&&(p(e,s,i),(o==="linear"||o==="-")&&e("rangemode")),E.cleanRange()}}}),DM=De({"node_modules/mouse-event-offset/index.js"(Y,H){var p={left:0,top:0};H.exports=x;function x(E,e,t){e=e||E.currentTarget||E.srcElement,Array.isArray(t)||(t=[0,0]);var r=E.clientX||0,o=E.clientY||0,i=S(e);return t[0]=r-i.left,t[1]=o-i.top,t}function S(E){return E===window||E===document||E===document.body?p:E.getBoundingClientRect()}}}),T_=De({"node_modules/has-passive-events/index.js"(Y,H){"use strict";var p=Ow();function x(){var S=!1;try{var E=Object.defineProperty({},"passive",{get:function(){S=!0}});window.addEventListener("test",null,E),window.removeEventListener("test",null,E)}catch{S=!1}return S}H.exports=p&&x()}}),zM=De({"src/components/dragelement/align.js"(Y,H){"use strict";H.exports=function(x,S,E,e,t){var r=(x-E)/(e-E),o=r+S/(e-E),i=(r+o)/2;return t==="left"||t==="bottom"?r:t==="center"||t==="middle"?i:t==="right"||t==="top"?o:r<2/3-i?r:o>4/3-i?o:i}}}),FM=De({"src/components/dragelement/cursor.js"(Y,H){"use strict";var p=ui(),x=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];H.exports=function(E,e,t,r){return t==="left"?E=0:t==="center"?E=1:t==="right"?E=2:E=p.constrain(Math.floor(E*3),0,2),r==="bottom"?e=0:r==="middle"?e=1:r==="top"?e=2:e=p.constrain(Math.floor(e*3),0,2),x[e][E]}}}),BM=De({"src/components/dragelement/unhover.js"(Y,H){"use strict";var p=Xm(),x=x_(),S=ny().getGraphDiv,E=cv(),e=H.exports={};e.wrapped=function(t,r,o){t=S(t),t._fullLayout&&x.clear(t._fullLayout._uid+E.HOVERID),e.raw(t,r,o)},e.raw=function(r,o){var i=r._fullLayout,n=r._hoverdata;o||(o={}),!(o.target&&!r._dragged&&p.triggerHandler(r,"plotly_beforehover",o)===!1)&&(i._hoverlayer.selectAll("g").remove(),i._hoverlayer.selectAll("line").remove(),i._hoverlayer.selectAll("circle").remove(),r._hoverdata=void 0,o.target&&n&&r.emit("plotly_unhover",{event:o,points:n}))}}}),Qh=De({"src/components/dragelement/index.js"(Y,H){"use strict";var p=DM(),x=Nw(),S=T_(),E=ui().removeElement,e=th(),t=H.exports={};t.align=zM(),t.getCursor=FM();var r=BM();t.unhover=r.wrapped,t.unhoverRaw=r.raw,t.init=function(a){var s=a.gd,h=1,c=s._context.doubleClickDelay,m=a.element,d,T,l,_,w,A,M,g;s._mouseDownTime||(s._mouseDownTime=0),m.style.pointerEvents="all",m.onmousedown=u,S?(m._ontouchstart&&m.removeEventListener("touchstart",m._ontouchstart),m._ontouchstart=u,m.addEventListener("touchstart",u,{passive:!1})):m.ontouchstart=u;function b(R,L,z){return Math.abs(R)<z&&(R=0),Math.abs(L)<z&&(L=0),[R,L]}var v=a.clampFn||b;function u(R){s._dragged=!1,s._dragging=!0;var L=i(R);d=L[0],T=L[1],M=R.target,A=R,g=R.buttons===2||R.ctrlKey,typeof R.clientX>"u"&&typeof R.clientY>"u"&&(R.clientX=d,R.clientY=T),l=new Date().getTime(),l-s._mouseDownTime<c?h+=1:(h=1,s._mouseDownTime=l),a.prepFn&&a.prepFn(R,d,T),x&&!g?(w=o(),w.style.cursor=window.getComputedStyle(m).cursor):x||(w=document,_=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(m).cursor),document.addEventListener("mouseup",f),document.addEventListener("touchend",f),a.dragmode!==!1&&(R.preventDefault(),document.addEventListener("mousemove",y),document.addEventListener("touchmove",y,{passive:!1}))}function y(R){R.preventDefault();var L=i(R),z=a.minDrag||e.MINDRAG,F=v(L[0]-d,L[1]-T,z),N=F[0],B=F[1];(N||B)&&(s._dragged=!0,t.unhover(s,R)),s._dragged&&a.moveFn&&!g&&(s._dragdata={element:m,dx:N,dy:B},a.moveFn(N,B))}function f(R){if(delete s._dragdata,a.dragmode!==!1&&(R.preventDefault(),document.removeEventListener("mousemove",y),document.removeEventListener("touchmove",y)),document.removeEventListener("mouseup",f),document.removeEventListener("touchend",f),x?E(w):_&&(w.documentElement.style.cursor=_,_=null),!s._dragging){s._dragged=!1;return}if(s._dragging=!1,new Date().getTime()-s._mouseDownTime>c&&(h=Math.max(h-1,1)),s._dragged)a.doneFn&&a.doneFn();else{var L;A.target===M?L=A:(L={target:M,srcElement:M,toElement:M},Object.keys(A).concat(Object.keys(A.__proto__)).forEach(z=>{var F=A[z];!L[z]&&typeof F!="function"&&(L[z]=F)})),a.clickFn&&a.clickFn(h,L),g||M.dispatchEvent(new MouseEvent("click",R))}s._dragging=!1,s._dragged=!1}};function o(){var n=document.createElement("div");n.className="dragcover";var a=n.style;return a.position="fixed",a.left=0,a.right=0,a.top=0,a.bottom=0,a.zIndex=999999999,a.background="none",document.body.appendChild(n),n}t.coverSlip=o;function i(n){return p(n.changedTouches?n.changedTouches[0]:n,document.body)}}}),hv=De({"src/lib/setcursor.js"(Y,H){"use strict";H.exports=function(x,S){(x.attr("class")||"").split(" ").forEach(function(E){E.indexOf("cursor-")===0&&x.classed(E,!1)}),S&&x.classed("cursor-"+S,!0)}}}),OM=De({"src/lib/override_cursor.js"(Y,H){"use strict";var p=hv(),x="data-savedcursor",S="!!";H.exports=function(e,t){var r=e.attr(x);if(t){if(!r){for(var o=(e.attr("class")||"").split(" "),i=0;i<o.length;i++){var n=o[i];n.indexOf("cursor-")===0&&e.attr(x,n.slice(7)).classed(n,!1)}e.attr(x)||e.attr(x,S)}p(e,t)}else r&&(e.attr(x,null),r===S?p(e):p(e,r))}}}),Yw=De({"src/components/legend/attributes.js"(Y,H){"use strict";var p=qu(),x=Pf();H.exports={_isSubplotObj:!0,visible:{valType:"boolean",dflt:!0,editType:"legend"},bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:x.defaultLine,editType:"legend"},maxheight:{valType:"number",min:0,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:p({editType:"legend"}),grouptitlefont:p({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:p({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left","top center","top right"],editType:"legend"},editType:"legend"},editType:"legend"}}}),uy=De({"src/components/legend/helpers.js"(Y){"use strict";Y.isGrouped=function(p){return(p.traceorder||"").indexOf("grouped")!==-1},Y.isVertical=function(p){return p.orientation!=="h"},Y.isReversed=function(p){return(p.traceorder||"").indexOf("reversed")!==-1},Y.getId=function(p){return p._id||"legend"}}}),Zw=De({"src/components/legend/defaults.js"(Y,H){"use strict";var p=Mo(),x=ui(),S=Gl(),E=Yl(),e=Yw(),t=Wm(),r=uy();function o(i,n,a,s,h){var c=n[i]||{},m=S.newContainer(a,i);function d(Z,ee){return x.coerce(c,m,e,Z,ee)}var T=x.coerceFont(d,"font",a.font);d("bgcolor",a.paper_bgcolor),d("bordercolor");var l=d("visible");if(!l)return;var _,w=function(Z,ee){var V=_._input,oe=_;return x.coerce(V,oe,E,Z,ee)},A=a.font||{},M=x.coerceFont(d,"grouptitlefont",A,{overrideDflt:{size:Math.round(A.size*1.1)}}),g=0,b=!1,v="normal",u=(a.shapes||[]).filter(function(Z){return Z.showlegend});function y(Z){return p.traceIs(Z,"pie-like")&&Z._length!=null&&(Array.isArray(Z.legend)||Array.isArray(Z.showlegend))}s.filter(y).forEach(function(Z){Z.visible&&g++;for(var ee=0;ee<Z._length;ee++){var V=(Array.isArray(Z.legend)?Z.legend[ee]:Z.legend)||"legend";V===i&&((Array.isArray(Z.showlegend)?Z.showlegend[ee]:Z.showlegend)||Z._dfltShowLegend)&&(b=!0,g++)}if(i==="legend"&&Z._length>Z.legend.length)for(var oe=Z.legend.length;oe<Z._length;oe++)b=!0,g++});for(var f=s.concat(u).filter(function(Z){return!y(_)&&i===(Z.legend||"legend")}),R=0;R<f.length;R++)if(_=f[R],!!_.visible){var L=_._isShape;(_.showlegend||_._dfltShowLegend&&!(_._module&&_._module.attributes&&_._module.attributes.showlegend&&_._module.attributes.showlegend.dflt===!1))&&(g++,_.showlegend&&(b=!0,(!L&&p.traceIs(_,"pie-like")||_._input.showlegend===!0)&&g++),x.coerceFont(w,"legendgrouptitle.font",M)),(!L&&p.traceIs(_,"bar")&&a.barmode==="stack"||["tonextx","tonexty"].indexOf(_.fill)!==-1)&&(v=r.isGrouped({traceorder:v})?"grouped+reversed":"reversed"),_.legendgroup!==void 0&&_.legendgroup!==""&&(v=r.isReversed({traceorder:v})?"reversed+grouped":"grouped")}var z=x.coerce(n,a,t,"showlegend",a.showlegend||b&&g>(i==="legend"?1:0));if(z===!1&&(a[i]=void 0),!(z===!1&&!c.uirevision)&&(d("uirevision",a.uirevision),z!==!1)){d("borderwidth");var F=d("orientation"),N=d("yref"),B=d("xref"),I=F==="h",U=N==="paper",O=B==="paper",X,J,se,le="left";I?(X=0,p.getComponentMethod("rangeslider","isVisible")(n.xaxis)?U?(J=1.1,se="bottom"):(J=1,se="top"):U?(J=-.1,se="top"):(J=0,se="bottom")):(J=1,se="auto",O?X=1.02:(X=1,le="right")),x.coerce(c,m,{x:{valType:"number",editType:"legend",min:O?-2:0,max:O?3:1,dflt:X}},"x"),x.coerce(c,m,{y:{valType:"number",editType:"legend",min:U?-2:0,max:U?3:1,dflt:J}},"y"),d("traceorder",v),r.isGrouped(a[i])&&d("tracegroupgap"),d("entrywidth"),d("entrywidthmode"),d("indentation"),d("itemsizing"),d("itemwidth"),d("itemclick"),d("itemdoubleclick"),d("groupclick"),d("xanchor",le),d("yanchor",se),d("maxheight"),d("valign"),x.noneOrAll(c,m,["x","y"]);var ce=d("title.text");if(ce){d("title.side",I?"left":"top");var q=x.extendFlat({},T,{size:x.bigFont(T.size)});x.coerceFont(d,"title.font",q);let Z=h>1;d("titleclick",Z?"toggle":!1),d("titledoubleclick",Z?"toggleothers":!1)}}}H.exports=function(n,a,s){var h,c=s.slice(),m=a.shapes;if(m)for(h=0;h<m.length;h++){var d=m[h];if(d.showlegend){var T={_input:d._input,visible:d.visible,showlegend:d.showlegend,legend:d.legend};c.push(T)}}var l=["legend"];for(h=0;h<c.length;h++)Array.isArray(c[h].legend)?l=l.concat(c[h].legend):x.pushUnique(l,c[h].legend);for(a._legends=[],h=0;h<l.length;h++){var _=l[h];o(_,n,a,c,l.length),a[_]&&(a[_]._id=_),a._legends.push(_)}}}}),Kw=De({"src/components/legend/handle_click.js"(Y){"use strict";var H=Mo(),p=ui(),x=p.pushUnique,S=uy(),E=!0;Y.handleItemClick=function(t,r,o,i){var n=r._fullLayout;if(r._dragged||r._editing)return;var a=t.data()[0][0];if(a.groupTitle&&a.noClick)return;var s=o.groupclick;i==="toggle"&&o.itemdoubleclick==="toggleothers"&&E&&r.data&&r._context.showTips&&(p.notifier(p._(r,"Double-click on legend to isolate one trace"),"long"),E=!1);var h=s==="togglegroup",c=n.hiddenlabels?n.hiddenlabels.slice():[],m=r._fullData,d=(n.shapes||[]).filter(function(et){return et.showlegend}),T=m.concat(d),l=a.trace;l._isShape&&(l=l._fullInput);var _=l.legendgroup,w,A,M,g,b,v,u={},y=[],f=[],R=[];function L(et,nt){var Ae=y.indexOf(et),me=u.visible;return me||(me=u.visible=[]),y.indexOf(et)===-1&&(y.push(et),Ae=y.length-1),me[Ae]=nt,Ae}var z=(n.shapes||[]).map(function(et){return et._input}),F=!1;function N(et,nt){z[et].visible=nt,F=!0}function B(et,nt){if(!(a.groupTitle&&!h)){var Ae=et._fullInput||et,me=Ae._isShape,fe=Ae.index;fe===void 0&&(fe=Ae._index);var Be=Ae.visible===!1?!1:nt;me?N(fe,Be):L(fe,Be)}}var I=l.legend,U=l._fullInput,O=U&&U._isShape;if(!O&&H.traceIs(l,"pie-like")){var X=a.label,J=c.indexOf(X);if(i==="toggle")J===-1?c.push(X):c.splice(J,1);else if(i==="toggleothers"){var se=J!==-1,le=[];for(w=0;w<r.calcdata.length;w++){var ce=r.calcdata[w];for(A=0;A<ce.length;A++){var q=ce[A],Z=q.label;I===ce[0].trace.legend&&X!==Z&&(c.indexOf(Z)===-1&&(se=!0),x(c,Z),le.push(Z))}}if(!se)for(var ee=0;ee<le.length;ee++){var V=c.indexOf(le[ee]);V!==-1&&c.splice(V,1)}}H.call("_guiRelayout",r,"hiddenlabels",c)}else{var oe=_&&_.length,ie=[],j;if(oe)for(w=0;w<T.length;w++)j=T[w],j.visible&&j.legendgroup===_&&ie.push(w);if(i==="toggle"){var Q;switch(l.visible){case!0:Q="legendonly";break;case!1:Q=!1;break;case"legendonly":Q=!0;break}if(oe)if(h)for(w=0;w<T.length;w++){var re=T[w];re.visible!==!1&&re.legendgroup===_&&B(re,Q)}else B(l,Q);else B(l,Q)}else if(i==="toggleothers"){var ue,_e,we,Re,ze,Xe=!0;for(w=0;w<T.length;w++)if(ze=T[w],ue=ze===l,we=ze.showlegend!==!0,!(ue||we)&&(_e=oe&&ze.legendgroup===_,!_e&&ze.legend===I&&ze.visible===!0&&!H.traceIs(ze,"notLegendIsolatable"))){Xe=!1;break}for(w=0;w<T.length;w++)if(ze=T[w],!(ze.visible===!1||ze.legend!==I)&&!H.traceIs(ze,"notLegendIsolatable"))switch(l.visible){case"legendonly":B(ze,!0);break;case!0:Re=Xe?!0:"legendonly",ue=ze===l,we=ze.showlegend!==!0&&!ze.legendgroup,_e=ue||oe&&ze.legendgroup===_,B(ze,_e||we?!0:Re);break}}for(w=0;w<f.length;w++)if(M=f[w],!!M){var tt=M.constructUpdate(),it=Object.keys(tt);for(A=0;A<it.length;A++)g=it[A],v=u[g]=u[g]||[],v[R[w]]=tt[g]}for(b=Object.keys(u),w=0;w<b.length;w++)for(g=b[w],A=0;A<y.length;A++)u[g].hasOwnProperty(A)||(u[g][A]=void 0);F?H.call("_guiUpdate",r,u,{shapes:z},y):H.call("_guiRestyle",r,u,y)}},Y.handleTitleClick=function(t,r,o){let i=t._fullLayout,n=t._fullData,a=S.getId(r),s=(i.shapes||[]).filter(function(M){return M.showlegend}),h=n.concat(s);function c(M){return(M.legend||"legend")===a}var m,d;if(o==="toggle")m=!h.some(function(g){return c(g)&&g.visible===!0}),d=!1;else{let M=h.some(function(g){return!c(g)&&g.visible===!0&&g.showlegend!==!1});m=!0,d=!M}let T={visible:[]},l=[],_=(i.shapes||[]).map(function(M){return M._input});for(var w=!1,A=0;A<h.length;A++){let M=h[A],g=c(M);if(!g){let u=M.showlegend!==!0&&!M.legendgroup;if(o==="toggle"||u)continue}let v=(g?m:d)?!0:"legendonly";M.visible!==!1&&M.visible!==v&&(M._isShape?(_[M._index].visible=v,w=!0):(l.push(M.index),T.visible.push(v)))}w?H.call("_guiUpdate",t,T,{shapes:_},l):l.length&&H.call("_guiRestyle",t,T,l)}}}),$w=De({"src/components/legend/constants.js"(Y,H){"use strict";H.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}}}),NM=De({"src/components/legend/get_legend_data.js"(Y,H){"use strict";var p=Mo(),x=uy();H.exports=function(E,e,t){var r=e._inHover,o=x.isGrouped(e),i=x.isReversed(e),n={},a=[],s=!1,h={},c=0,m=0,d,T;function l(X,J,se){if(e.visible!==!1&&!(t&&X!==e._id))if(J===""||!x.isGrouped(e)){var le="~~i"+c;a.push(le),n[le]=[se],c++}else a.indexOf(J)===-1?(a.push(J),s=!0,n[J]=[se]):n[J].push(se)}for(d=0;d<E.length;d++){var _=E[d],w=_[0],A=w.trace,M=A.legend,g=A.legendgroup;if(!(!r&&(!A.visible||!A.showlegend)))if(p.traceIs(A,"pie-like")){var b=Array.isArray(A.legend),v=Array.isArray(A.showlegend);for(h[g]||(h[g]={}),T=0;T<_.length;T++)if(!(v&&A.showlegend[_[T].i]===!1)){b&&(M=A.legend[_[T].i]||"legend");var u=_[T].label;h[g][u]||(l(M,g,{label:u,color:_[T].color,i:_[T].i,trace:A,pts:_[T].pts}),h[g][u]=!0,m=Math.max(m,(u||"").length))}}else l(M,g,w),m=Math.max(m,(A.name||"").length)}if(!a.length)return[];var y=!s||!o,f=[];for(d=0;d<a.length;d++){var R=n[a[d]];y?f.push(R[0]):f.push(R)}for(y&&(f=[f]),d=0;d<f.length;d++){var L=1/0;for(T=0;T<f[d].length;T++){var z=f[d][T].trace.legendrank;L>z&&(L=z)}f[d][0]._groupMinRank=L,f[d][0]._preGroupSort=d}var F=function(X,J){return X[0]._groupMinRank-J[0]._groupMinRank||X[0]._preGroupSort-J[0]._preGroupSort},N=function(X,J){return X.trace.legendrank-J.trace.legendrank||X._preSort-J._preSort};for(f.forEach(function(X,J){X[0]._preGroupSort=J}),f.sort(F),d=0;d<f.length;d++){f[d].forEach(function(X,J){X._preSort=J}),f[d].sort(N);var B=f[d][0].trace,I=null;for(T=0;T<f[d].length;T++){var U=f[d][T].trace.legendgrouptitle;if(U&&U.text){I=U,r&&(U.font=e._groupTitleFont);break}}if(i&&f[d].reverse(),I){var O=!1;for(T=0;T<f[d].length;T++)if(p.traceIs(f[d][T].trace,"pie-like")){O=!0;break}f[d].unshift({i:-1,groupTitle:I,noClick:O,trace:{showlegend:B.showlegend,legendgroup:B.legendgroup,legend:B.legend,visible:e.groupclick==="toggleitem"?!0:B.visible}})}for(T=0;T<f[d].length;T++)f[d][T]=[f[d][T]]}return e._lgroupsLength=f.length,e._maxNameLength=m,f}}}),Gp=De({"src/traces/pie/helpers.js"(Y){"use strict";var H=ui();function p(x){return x.indexOf("e")!==-1?x.replace(/[.]?0+e/,"e"):x.indexOf(".")!==-1?x.replace(/[.]?0+$/,""):x}Y.formatPiePercent=function(S,E){var e=p((S*100).toPrecision(3));return H.numSeparate(e,E)+"%"},Y.formatPieValue=function(S,E){var e=p(S.toPrecision(10));return H.numSeparate(e,E)},Y.getFirstFilled=function(S,E){if(H.isArrayOrTypedArray(S))for(var e=0;e<E.length;e++){var t=S[E[e]];if(t||t===0||t==="")return t}},Y.castOption=function(S,E){if(H.isArrayOrTypedArray(S))return Y.getFirstFilled(S,E);if(S)return S},Y.getRotationAngle=function(x){return(x==="auto"?0:x)*Math.PI/180}}}),UM=De({"src/traces/pie/fill_one.js"(Y,H){"use strict";var p=ys(),x=vo();H.exports=function(E,e,t,r){var o=t.marker.pattern;o&&o.shape?p.pointStyle(E,t,r,e):x.fill(E,e.color)}}}),Jm=De({"src/traces/pie/style_one.js"(Y,H){"use strict";var p=vo(),x=Gp().castOption,S=UM();H.exports=function(e,t,r,o){var i=r.marker.line,n=x(i.color,t.pts)||p.defaultLine,a=x(i.width,t.pts)||0;e.call(S,t,r,o).style("stroke-width",a).call(p.stroke,n)}}}),Jw=De({"src/components/legend/style.js"(Y,H){"use strict";var p=za(),x=Mo(),S=ui(),E=S.strTranslate,e=ys(),t=vo(),r=$h().extractOpts,o=Hu(),i=Jm(),n=Gp().castOption,a=$w(),s=12,h=5,c=2,m=10,d=5;H.exports=function(A,M,g){var b=M._fullLayout;g||(g=b.legend);var v=g.itemsizing==="constant",u=g.itemwidth,y=(u+a.itemGap*2)/2,f=E(y,0),R=function(q,Z,ee,V){var oe;if(q+1)oe=q;else if(Z&&Z.width>0)oe=Z.width;else return 0;return v?V:Math.min(oe,ee)};A.each(function(q){var Z=p.select(this),ee=S.ensureSingle(Z,"g","layers");ee.style("opacity",q[0].trace.opacity);var V=g.indentation,oe=g.valign,ie=q[0].lineHeight,j=q[0].height;if(oe==="middle"&&V===0||!ie||!j)ee.attr("transform",null);else{var Q={top:1,bottom:-1}[oe],re=Q*(.5*(ie-j+3))||0,ue=g.indentation;ee.attr("transform",E(ue,re))}var _e=ee.selectAll("g.legendfill").data([q]);_e.enter().append("g").classed("legendfill",!0);var we=ee.selectAll("g.legendlines").data([q]);we.enter().append("g").classed("legendlines",!0);var Re=ee.selectAll("g.legendsymbols").data([q]);Re.enter().append("g").classed("legendsymbols",!0),Re.selectAll("g.legendpoints").data([q]).enter().append("g").classed("legendpoints",!0)}).each(ce).each(F).each(B).each(N).each(U).each(se).each(J).each(L).each(z).each(O).each(X);function L(q){var Z=l(q),ee=Z.showFill,V=Z.showLine,oe=Z.showGradientLine,ie=Z.showGradientFill,j=Z.anyFill,Q=Z.anyLine,re=q[0],ue=re.trace,_e,we,Re=r(ue),ze=Re.colorscale,Xe=Re.reversescale,tt=function(Be){if(Be.size())if(ee)e.fillGroupStyle(Be,M,!0);else{var Qe="legendfill-"+ue.uid;e.gradient(Be,M,Qe,T(Xe),ze,"fill")}},it=function(Be){if(Be.size()){var Qe="legendline-"+ue.uid;e.lineGroupStyle(Be),e.gradient(Be,M,Qe,T(Xe),ze,"stroke")}},et=o.hasMarkers(ue)||!j?"M5,0":Q?"M5,-2":"M5,-3",nt=p.select(this),Ae=nt.select(".legendfill").selectAll("path").data(ee||ie?[q]:[]);if(Ae.enter().append("path").classed("js-fill",!0),Ae.exit().remove(),Ae.attr("d",et+"h"+u+"v6h-"+u+"z").call(tt),V||oe){var me=R(void 0,ue.line,m,h);we=S.minExtend(ue,{line:{width:me}}),_e=[S.minExtend(re,{trace:we})]}var fe=nt.select(".legendlines").selectAll("path").data(V||oe?[_e]:[]);fe.enter().append("path").classed("js-line",!0),fe.exit().remove(),fe.attr("d",et+(oe?"l"+u+",0.0001":"h"+u)).call(V?e.lineGroupStyle:it)}function z(q){var Z=l(q),ee=Z.anyFill,V=Z.anyLine,oe=Z.showLine,ie=Z.showMarker,j=q[0],Q=j.trace,re=!ie&&!V&&!ee&&o.hasText(Q),ue,_e;function we(Ae,me,fe,Be){var Qe=S.nestedProperty(Q,Ae).get(),at=S.isArrayOrTypedArray(Qe)&&me?me(Qe):Qe;if(v&&at&&Be!==void 0&&(at=Be),fe){if(at<fe[0])return fe[0];if(at>fe[1])return fe[1]}return at}function Re(Ae){return j._distinct&&j.index&&Ae[j.index]?Ae[j.index]:Ae[0]}if(ie||re||oe){var ze={},Xe={};if(ie){ze.mc=we("marker.color",Re),ze.mx=we("marker.symbol",Re),ze.mo=we("marker.opacity",S.mean,[.2,1]),ze.mlc=we("marker.line.color",Re),ze.mlw=we("marker.line.width",S.mean,[0,5],c),ze.mld=Q._isShape?"solid":we("marker.line.dash",Re),Xe.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var tt=we("marker.size",S.mean,[2,16],s);ze.ms=tt,Xe.marker.size=tt}oe&&(Xe.line={width:we("line.width",Re,[0,10],h)}),re&&(ze.tx="Aa",ze.tp=we("textposition",Re),ze.ts=10,ze.tc=we("textfont.color",Re),ze.tf=we("textfont.family",Re),ze.tw=we("textfont.weight",Re),ze.ty=we("textfont.style",Re),ze.tv=we("textfont.variant",Re),ze.tC=we("textfont.textcase",Re),ze.tE=we("textfont.lineposition",Re),ze.tS=we("textfont.shadow",Re)),ue=[S.minExtend(j,ze)],_e=S.minExtend(Q,Xe),_e.selectedpoints=null,_e.texttemplate=null}var it=p.select(this).select("g.legendpoints"),et=it.selectAll("path.scatterpts").data(ie?ue:[]);et.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform",f),et.exit().remove(),et.call(e.pointStyle,_e,M),ie&&(ue[0].mrc=3);var nt=it.selectAll("g.pointtext").data(re?ue:[]);nt.enter().append("g").classed("pointtext",!0).append("text").attr("transform",f),nt.exit().remove(),nt.selectAll("text").call(e.textPointStyle,_e,M)}function F(q){var Z=q[0].trace,ee=Z.type==="waterfall";if(q[0]._distinct&&ee){var V=q[0].trace[q[0].dir].marker;return q[0].mc=V.color,q[0].mlw=V.line.width,q[0].mlc=V.line.color,I(q,this,"waterfall")}var oe=[];Z.visible&&ee&&(oe=q[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 ie=p.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(oe);ie.enter().append("path").classed("legendwaterfall",!0).attr("transform",f).style("stroke-miterlimit",1),ie.exit().remove(),ie.each(function(j){var Q=p.select(this),re=Z[j[0]].marker,ue=R(void 0,re.line,d,c);Q.attr("d",j[1]).style("stroke-width",ue+"px").call(t.fill,re.color),ue&&Q.call(t.stroke,re.line.color)})}function N(q){I(q,this)}function B(q){I(q,this,"funnel")}function I(q,Z,ee){var V=q[0].trace,oe=V.marker||{},ie=oe.line||{},j=oe.cornerradius?"M6,3a3,3,0,0,1-3,3H-3a3,3,0,0,1-3-3V-3a3,3,0,0,1,3-3H3a3,3,0,0,1,3,3Z":"M6,6H-6V-6H6Z",Q=ee?V.visible&&V.type===ee:x.traceIs(V,"bar"),re=p.select(Z).select("g.legendpoints").selectAll("path.legend"+ee).data(Q?[q]:[]);re.enter().append("path").classed("legend"+ee,!0).attr("d",j).attr("transform",f),re.exit().remove(),re.each(function(ue){var _e=p.select(this),we=ue[0],Re=R(we.mlw,oe.line,d,c);_e.style("stroke-width",Re+"px");var ze=we.mcc;if(!g._inHover&&"mc"in we){var Xe=r(oe),tt=Xe.mid;tt===void 0&&(tt=(Xe.max+Xe.min)/2),ze=e.tryColorscale(oe,"")(tt)}var it=ze||we.mc||oe.color,et=oe.pattern,nt=e.getPatternAttr,Ae=et&&(nt(et.shape,0,"")||nt(et.path,0,""));if(Ae){var me=nt(et.bgcolor,0,null),fe=nt(et.fgcolor,0,null),Be=et.fgopacity,Qe=_(et.size,8,10),at=_(et.solidity,.5,1),$e="legend-"+V.uid;_e.call(e.pattern,"legend",M,$e,Ae,Qe,at,ze,et.fillmode,me,fe,Be)}else _e.call(t.fill,it);Re&&t.stroke(_e,we.mlc||ie.color)})}function U(q){var Z=q[0].trace,ee=p.select(this).select("g.legendpoints").selectAll("path.legendbox").data(Z.visible&&x.traceIs(Z,"box-violin")?[q]:[]);ee.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform",f),ee.exit().remove(),ee.each(function(){var V=p.select(this);if((Z.boxpoints==="all"||Z.points==="all")&&t.opacity(Z.fillcolor)===0&&t.opacity((Z.line||{}).color)===0){var oe=S.minExtend(Z,{marker:{size:v?s:S.constrain(Z.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});ee.call(e.pointStyle,oe,M)}else{var ie=R(void 0,Z.line,d,c);V.style("stroke-width",ie+"px").call(t.fill,Z.fillcolor),ie&&t.stroke(V,Z.line.color)}})}function O(q){var Z=q[0].trace,ee=p.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(Z.visible&&Z.type==="candlestick"?[q,q]:[]);ee.enter().append("path").classed("legendcandle",!0).attr("d",function(V,oe){return oe?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"}).attr("transform",f).style("stroke-miterlimit",1),ee.exit().remove(),ee.each(function(V,oe){var ie=p.select(this),j=Z[oe?"increasing":"decreasing"],Q=R(void 0,j.line,d,c);ie.style("stroke-width",Q+"px").call(t.fill,j.fillcolor),Q&&t.stroke(ie,j.line.color)})}function X(q){var Z=q[0].trace,ee=p.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(Z.visible&&Z.type==="ohlc"?[q,q]:[]);ee.enter().append("path").classed("legendohlc",!0).attr("d",function(V,oe){return oe?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"}).attr("transform",f).style("stroke-miterlimit",1),ee.exit().remove(),ee.each(function(V,oe){var ie=p.select(this),j=Z[oe?"increasing":"decreasing"],Q=R(void 0,j.line,d,c);ie.style("fill","none").call(e.dashLine,j.line.dash,Q),Q&&t.stroke(ie,j.line.color)})}function J(q){le(q,this,"pie")}function se(q){le(q,this,"funnelarea")}function le(q,Z,ee){var V=q[0],oe=V.trace,ie=ee?oe.visible&&oe.type===ee:x.traceIs(oe,ee),j=p.select(Z).select("g.legendpoints").selectAll("path.legend"+ee).data(ie?[q]:[]);if(j.enter().append("path").classed("legend"+ee,!0).attr("d","M6,6H-6V-6H6Z").attr("transform",f),j.exit().remove(),j.size()){var Q=oe.marker||{},re=R(n(Q.line.width,V.pts),Q.line,d,c),ue="pieLike",_e=S.minExtend(oe,{marker:{line:{width:re}}},ue),we=S.minExtend(V,{trace:_e},ue);i(j,we,_e,M)}}function ce(q){var Z=q[0].trace,ee,V=[];if(Z.visible)switch(Z.type){case"histogram2d":case"heatmap":V=[["M-15,-2V4H15V-2Z"]],ee=!0;break;case"choropleth":case"choroplethmapbox":case"choroplethmap":V=[["M-6,-6V6H6V-6Z"]],ee=!0;break;case"densitymapbox":case"densitymap":V=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],ee="radial";break;case"cone":V=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],ee=!1;break;case"streamtube":V=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],ee=!1;break;case"surface":V=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],ee=!0;break;case"mesh3d":V=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],ee=!1;break;case"volume":V=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],ee=!0;break;case"isosurface":V=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],ee=!1;break}var oe=p.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(V);oe.enter().append("path").classed("legend3dandfriends",!0).attr("transform",f).style("stroke-miterlimit",1),oe.exit().remove(),oe.each(function(ie,j){var Q=p.select(this),re=r(Z),ue=re.colorscale,_e=re.reversescale,we=function(tt){if(tt.size()){var it="legendfill-"+Z.uid;e.gradient(tt,M,it,T(_e,ee==="radial"),ue,"fill")}},Re;if(ue){if(!ee){var Xe=ue.length;Re=j===0?ue[_e?Xe-1:0][1]:j===1?ue[_e?0:Xe-1][1]:ue[Math.floor((Xe-1)/2)][1]}}else{var ze=Z.vertexcolor||Z.facecolor||Z.color;Re=S.isArrayOrTypedArray(ze)?ze[j]||ze[0]:ze}Q.attr("d",ie[0]),Re?Q.call(t.fill,Re):Q.call(we)})}};function T(w,A){var M=A?"radial":"horizontal";return M+(w?"":"reversed")}function l(w){var A=w[0].trace,M=A.contours,g=o.hasLines(A),b=o.hasMarkers(A),v=A.visible&&A.fill&&A.fill!=="none",u=!1,y=!1;if(M){var f=M.coloring;f==="lines"?u=!0:g=f==="none"||f==="heatmap"||M.showlines,M.type==="constraint"?v=M._operation!=="=":(f==="fill"||f==="heatmap")&&(y=!0)}return{showMarker:b,showLine:g,showFill:v,showGradientLine:u,showGradientFill:y,anyLine:g||u,anyFill:v||y}}function _(w,A,M){return w&&S.isArrayOrTypedArray(w)?A:w>M?M:w}}}),Qw=De({"src/components/legend/draw.js"(Y,H){"use strict";var p=za(),x=ui(),S=Mc(),E=Mo(),e=Xm(),t=Qh(),r=ys(),o=vo(),i=vu(),n=Kw().handleItemClick,a=Kw().handleTitleClick,s=$w(),h=rh(),c=h.LINE_SPACING,m=h.FROM_TL,d=h.FROM_BR,T=NM(),l=Jw(),_=uy(),w=1,A=/^legend[0-9]*$/;H.exports=function(X,J){if(J)g(X,J);else{var se=X._fullLayout,le=se._legends,ce=se._infolayer.selectAll('[class^="legend"]');ce.each(function(){var V=p.select(this),oe=V.attr("class"),ie=oe.split(" ")[0];ie.match(A)&&le.indexOf(ie)===-1&&V.remove()});for(var q=0;q<le.length;q++){var Z=le[q],ee=X._fullLayout[Z];g(X,ee)}}};function M(O,X,J){if(!(X.title.side!=="top center"&&X.title.side!=="top right")){var se=X.title.font,le=se.size*c,ce=0,q=O.node(),Z=r.bBox(q).width;X.title.side==="top center"?ce=.5*(X._width-2*J-2*s.titlePad-Z):X.title.side==="top right"&&(ce=X._width-2*J-2*s.titlePad-Z),i.positionText(O,J+s.titlePad+ce,J+le)}}function g(O,X){var J=X||{},se=O._fullLayout,le=_.getId(J),ce,q,Z=J._inHover;if(Z?(q=J.layer,ce="hover"):(q=se._infolayer,ce=le),!!q){ce+=se._uid,O._legendMouseDownTime||(O._legendMouseDownTime=0);var ee;if(Z){if(!J.entries)return;ee=T(J.entries,J)}else{for(var V=(O.calcdata||[]).slice(),oe=se.shapes,ie=0;ie<oe.length;ie++){var j=oe[ie];if(j.showlegend){var Q={_isShape:!0,_fullInput:j,index:j._index,name:j.name||j.label.text||"shape "+j._index,legend:j.legend,legendgroup:j.legendgroup,legendgrouptitle:j.legendgrouptitle,legendrank:j.legendrank,legendwidth:j.legendwidth,showlegend:j.showlegend,visible:j.visible,opacity:j.opacity,mode:j.type==="line"?"lines":"markers",line:j.line,marker:{line:j.line,color:j.fillcolor,size:12,symbol:j.type==="rect"?"square":j.type==="circle"?"circle":"hexagon2"}};V.push([{trace:Q}])}}ee=se.showlegend&&T(V,J,se._legends.length>1)}var re=se.hiddenlabels||[];if(!Z&&(!se.showlegend||!ee.length))return q.selectAll("."+le).remove(),se._topdefs.select("#"+ce).remove(),S.autoMargin(O,le);var ue=x.ensureSingle(q,"g",le,function(nt){Z||nt.attr("pointer-events","all")}),_e=x.ensureSingleById(se._topdefs,"clipPath",ce,function(nt){nt.append("rect")}),we=x.ensureSingle(ue,"rect","bg",function(nt){nt.attr("shape-rendering","crispEdges")});we.call(o.stroke,J.bordercolor).call(o.fill,J.bgcolor).style("stroke-width",J.borderwidth+"px");var Re=x.ensureSingle(ue,"g","scrollbox"),ze=J.title;J._titleWidth=0,J._titleHeight=0;var Xe;ze.text?(Xe=x.ensureSingle(Re,"text",le+"titletext"),Xe.attr("text-anchor","start").call(r.font,ze.font).text(ze.text),L(Xe,Re,O,J,w),!Z&&(J.titleclick||J.titledoubleclick)&&R(Re,O,J,le)):(Re.selectAll("."+le+"titletext").remove(),Re.selectAll("."+le+"titletoggle").remove());var tt=x.ensureSingle(ue,"rect","scrollbar",function(nt){nt.attr(s.scrollBarEnterAttrs).call(o.fill,s.scrollBarColor)}),it=Re.selectAll("g.groups").data(ee);it.enter().append("g").attr("class","groups"),it.exit().remove();var et=it.selectAll("g.traces").data(x.identity);et.enter().append("g").attr("class","traces"),et.exit().remove(),et.style("opacity",function(nt){let Ae=nt[0],me=Ae.trace;if(Ae.groupTitle){let fe=me.legendgroup,Be=(se.shapes||[]).filter(function(at){return at.showlegend});return O._fullData.concat(Be).some(function(at){return at.legendgroup===fe&&(at.legend||"legend")===le&&at.visible===!0})?1:.5}return E.traceIs(me,"pie-like")?re.indexOf(nt[0].label)!==-1?.5:1:me.visible==="legendonly"?.5:1}).each(function(){p.select(this).call(u,O,J)}).call(l,O,J).each(function(nt){Z||nt[0].groupTitle&&J.groupclick==="toggleitem"||p.select(this).call(f,O,le)}),x.syncOrAsync([S.previousPromises,function(){return N(O,it,et,J,Re)},function(){var nt=se._size,Ae=J.borderwidth,me=J.xref==="paper",fe=J.yref==="paper";if(ze.text){let lt=(se.shapes||[]).filter(function(kt){return kt.showlegend}),gt=O._fullData.concat(lt).some(function(kt){let nr=kt.legend||"legend";var ir=Array.isArray(nr)?nr.includes(le):nr===le;return ir&&kt.visible===!0});Xe.style("opacity",gt?1:.5)}if(!Z){var Be,Qe;me?Be=nt.l+nt.w*J.x-m[I(J)]*J._width:Be=se.width*J.x-m[I(J)]*J._width,fe?Qe=nt.t+nt.h*(1-J.y)-m[U(J)]*J._effHeight:Qe=se.height*(1-J.y)-m[U(J)]*J._effHeight;var at=B(O,le,Be,Qe);if(at)return;if(se.margin.autoexpand){var $e=Be,It=Qe;Be=me?x.constrain(Be,0,se.width-J._width):$e,Qe=fe?x.constrain(Qe,0,se.height-J._effHeight):It,Be!==$e&&x.log("Constrain "+le+".x to make legend fit inside graph"),Qe!==It&&x.log("Constrain "+le+".y to make legend fit inside graph")}r.setTranslate(ue,Be,Qe)}if(tt.on(".drag",null),ue.on("wheel",null),Z||J._height<=J._maxHeight||O._context.staticPlot){var Pt=J._effHeight;Z&&(Pt=J._height),we.attr({width:J._width-Ae,height:Pt-Ae,x:Ae/2,y:Ae/2}),r.setTranslate(Re,0,0),_e.select("rect").attr({width:J._width-2*Ae,height:Pt-2*Ae,x:Ae,y:Ae}),r.setClipUrl(Re,ce,O),r.setRect(tt,0,0,0,0),delete J._scrollY}else{var Vt=Math.max(s.scrollBarMinHeight,J._effHeight*J._effHeight/J._height),Wt=J._effHeight-Vt-2*s.scrollBarMargin,Cr=J._height-J._effHeight,yr=Wt/Cr,qr=Math.min(J._scrollY||0,Cr);we.attr({width:J._width-2*Ae+s.scrollBarWidth+s.scrollBarMargin,height:J._effHeight-Ae,x:Ae/2,y:Ae/2}),_e.select("rect").attr({width:J._width-2*Ae+s.scrollBarWidth+s.scrollBarMargin,height:J._effHeight-2*Ae,x:Ae,y:Ae+qr}),r.setClipUrl(Re,ce,O),qe(qr,Vt,yr),ue.on("wheel",function(){qr=x.constrain(J._scrollY+p.event.deltaY/Cr*Wt,0,Cr),qe(qr,Vt,yr),qr!==0&&qr!==Cr&&p.event.preventDefault()});var Mr,Dr,xt,Ne=function(lt,gt,kt){var nr=(kt-gt)/yr+lt;return x.constrain(nr,0,Cr)},Ye=function(lt,gt,kt){var nr=(gt-kt)/yr+lt;return x.constrain(nr,0,Cr)},be=p.behavior.drag().on("dragstart",function(){var lt=p.event.sourceEvent;lt.type==="touchstart"?Mr=lt.changedTouches[0].clientY:Mr=lt.clientY,xt=qr}).on("drag",function(){var lt=p.event.sourceEvent;lt.buttons===2||lt.ctrlKey||(lt.type==="touchmove"?Dr=lt.changedTouches[0].clientY:Dr=lt.clientY,qr=Ne(xt,Mr,Dr),qe(qr,Vt,yr))});tt.call(be);var Ie=p.behavior.drag().on("dragstart",function(){var lt=p.event.sourceEvent;lt.type==="touchstart"&&(Mr=lt.changedTouches[0].clientY,xt=qr)}).on("drag",function(){var lt=p.event.sourceEvent;lt.type==="touchmove"&&(Dr=lt.changedTouches[0].clientY,qr=Ye(xt,Mr,Dr),qe(qr,Vt,yr))});Re.call(Ie)}function qe(lt,gt,kt){J._scrollY=O._fullLayout[le]._scrollY=lt,r.setTranslate(Re,0,-lt),r.setRect(tt,J._width,s.scrollBarMargin+lt*kt,s.scrollBarWidth,gt),_e.select("rect").attr("y",Ae+lt)}if(O._context.edits.legendPosition){var ke,Me,Le,ut;ue.classed("cursor-move",!0),t.init({element:ue.node(),gd:O,prepFn:function(lt){if(lt.target!==tt.node()){var gt=r.getTranslate(ue);Le=gt.x,ut=gt.y}},moveFn:function(lt,gt){if(Le!==void 0&&ut!==void 0){var kt=Le+lt,nr=ut+gt;r.setTranslate(ue,kt,nr),ke=t.align(kt,J._width,nt.l,nt.l+nt.w,J.xanchor),Me=t.align(nr+J._height,-J._height,nt.t+nt.h,nt.t,J.yanchor)}},doneFn:function(){if(ke!==void 0&&Me!==void 0){var lt={};lt[le+".x"]=ke,lt[le+".y"]=Me,E.call("_guiRelayout",O,lt)}},clickFn:function(lt,gt){var kt=q.selectAll("g.traces").filter(function(){var nr=this.getBoundingClientRect();return gt.clientX>=nr.left&&gt.clientX<=nr.right&&gt.clientY>=nr.top&&gt.clientY<=nr.bottom});kt.size()>0&&v(O,J,kt,lt,gt)}})}}],O)}}function b(O,X,J){var se=O[0],le=se.width,ce=X.entrywidthmode,q=se.trace.legendwidth||X.entrywidth;return ce==="fraction"?X._maxWidth*q:J+(q||le)}function v(O,X,J,se,le){var ce=O._fullLayout,q=J.data()[0][0].trace,Z=X.itemclick,ee=X.itemdoubleclick,V={event:le,node:J.node(),curveNumber:q.index,expandedIndex:q.index,data:O.data,layout:O.layout,frames:O._transitionData._frames,config:O._context,fullData:O._fullData,fullLayout:ce};q._group&&(V.group=q._group),E.traceIs(q,"pie-like")&&(V.label=J.datum()[0].label);var oe=e.triggerHandler(O,"plotly_legendclick",V);if(se===1){if(oe===!1)return;X._clickTimeout=setTimeout(function(){O._fullLayout&&Z&&n(J,O,X,Z)},O._context.doubleClickDelay)}else if(se===2){X._clickTimeout&&clearTimeout(X._clickTimeout),O._legendMouseDownTime=0;var ie=e.triggerHandler(O,"plotly_legenddoubleclick",V);ie!==!1&&oe!==!1&&ee&&n(J,O,X,ee)}}function u(O,X,J){var se=_.getId(J),le=O.data()[0][0],ce=le.trace,q=E.traceIs(ce,"pie-like"),Z=!J._inHover&&X._context.edits.legendText&&!q,ee=J._maxNameLength,V,oe;le.groupTitle?(V=le.groupTitle.text,oe=le.groupTitle.font):(oe=J.font,J.entries?V=le.text:(V=q?le.label:ce.name,ce._meta&&(V=x.templateString(V,ce._meta))));var ie=x.ensureSingle(O,"text",se+"text");ie.attr("text-anchor","start").call(r.font,oe).text(Z?y(V,ee):V);var j=J.indentation+J.itemwidth+s.itemGap*2;i.positionText(ie,j,0),Z?ie.call(i.makeEditable,{gd:X,text:V}).call(L,O,X,J).on("edit",function(Q){this.text(y(Q,ee)).call(L,O,X,J);var re=le.trace._fullInput||{},ue={};return ue.name=Q,re._isShape?E.call("_guiRelayout",X,"shapes["+ce.index+"].name",ue.name):E.call("_guiRestyle",X,ue,ce.index)}):L(ie,O,X,J)}function y(O,X){var J=Math.max(4,X);if(O&&O.trim().length>=J/2)return O;O=O||"";for(var se=J-O.length;se>0;se--)O+=" ";return O}function f(O,X,J){var se=X._context.doubleClickDelay,le,ce=1,q=x.ensureSingle(O,"rect",J+"toggle",function(Z){X._context.staticPlot||Z.style("cursor","pointer").attr("pointer-events","all"),Z.call(o.fill,"rgba(0,0,0,0)")});X._context.staticPlot||(q.on("mousedown",function(){le=new Date().getTime(),le-X._legendMouseDownTime<se?ce+=1:(ce=1,X._legendMouseDownTime=le)}),q.on("mouseup",function(){if(!(X._dragged||X._editing)){var Z=X._fullLayout[J];new Date().getTime()-X._legendMouseDownTime>se&&(ce=Math.max(ce-1,1)),v(X,Z,O,ce,p.event)}}))}function R(O,X,J,se){if(X._fullData.some(function(V){let oe=V.legend||"legend";return(Array.isArray(oe)?oe.includes(se):oe===se)&&E.traceIs(V,"pie-like")}))return;let ce=X._context.doubleClickDelay;var q,Z=1;let ee=x.ensureSingle(O,"rect",se+"titletoggle",function(V){X._context.staticPlot||V.style("cursor","pointer").attr("pointer-events","all"),V.call(o.fill,"rgba(0,0,0,0)")});X._context.staticPlot||(ee.on("mousedown",function(){q=new Date().getTime(),q-X._legendMouseDownTime<ce?Z+=1:(Z=1,X._legendMouseDownTime=q)}),ee.on("mouseup",function(){if(X._dragged||X._editing)return;new Date().getTime()-X._legendMouseDownTime>ce&&(Z=Math.max(Z-1,1));let V={event:p.event,legendId:se,data:X.data,layout:X.layout,fullData:X._fullData,fullLayout:X._fullLayout};if(Z===1&&J.titleclick){if(e.triggerHandler(X,"plotly_legendtitleclick",V)===!1)return;J._titleClickTimeout=setTimeout(function(){X._fullLayout&&a(X,J,J.titleclick)},ce)}else Z===2&&(J._titleClickTimeout&&clearTimeout(J._titleClickTimeout),X._legendMouseDownTime=0,e.triggerHandler(X,"plotly_legendtitledoubleclick",V)!==!1&&J.titledoubleclick&&a(X,J,J.titledoubleclick))}))}function L(O,X,J,se,le){se._inHover&&O.attr("data-notex",!0),i.convertToTspans(O,J,function(){z(X,J,se,le)})}function z(O,X,J,se){var le=O.data()[0][0],ce=le&&le.trace.showlegend;if(Array.isArray(ce)&&(ce=ce[le.i]!==!1),!J._inHover&&le&&!ce){O.remove();return}var q=O.select("g[class*=math-group]"),Z=q.node(),ee=_.getId(J);J||(J=X._fullLayout[ee]);var V=J.borderwidth,oe;se===w?oe=J.title.font:le.groupTitle?oe=le.groupTitle.font:oe=J.font;var ie=oe.size*c,j,Q;if(Z){var re=r.bBox(Z);j=re.height,Q=re.width,se===w?r.setTranslate(q,V,V+j*.75):r.setTranslate(q,0,j*.25)}else{var ue="."+ee+(se===w?"title":"")+"text",_e=O.select(ue),we=i.lineCount(_e),Re=_e.node();if(j=ie*we,Q=Re?r.bBox(Re).width:0,se===w)J.title.side==="left"&&(Q+=s.itemGap*2),i.positionText(_e,V+s.titlePad,V+ie);else{var ze=s.itemGap*2+J.indentation+J.itemwidth;le.groupTitle&&(ze=s.itemGap,Q-=J.indentation+J.itemwidth),i.positionText(_e,ze,-ie*((we-1)/2-.3))}}se===w?(J._titleWidth=Q,J._titleHeight=j):(le.lineHeight=ie,le.height=Math.max(j,16)+3,le.width=Q)}function F(O){var X=0,J=0,se=O.title.side;return se&&(se.indexOf("left")!==-1&&(X=O._titleWidth),se.indexOf("top")!==-1&&(J=O._titleHeight)),[X,J]}function N(O,X,J,se,le){var ce=O._fullLayout,q=_.getId(se);se||(se=ce[q]);var Z=ce._size,ee=_.isVertical(se),V=_.isGrouped(se),oe=se.entrywidthmode==="fraction",ie=se.borderwidth,j=2*ie,Q=s.itemGap,re=se.indentation+se.itemwidth+Q*2,ue=2*(ie+Q),_e=U(se),we=se.y<0||se.y===0&&_e==="top",Re=se.y>1||se.y===1&&_e==="bottom",ze=se.tracegroupgap,Xe={};let{orientation:tt,yref:it}=se,{maxheight:et}=se,nt=we||Re||tt!=="v"||it!=="paper";et||(et=nt?.5:1);let Ae=nt?ce.height:Z.h;se._maxHeight=Math.max(et>1?et:et*Ae,30);var me=0;se._width=0,se._height=0;var fe=F(se);if(ee)J.each(function(lt){var gt=lt[0].height;r.setTranslate(this,ie+fe[0],ie+fe[1]+se._height+gt/2+Q),se._height+=gt,se._width=Math.max(se._width,lt[0].width)}),me=re+se._width,se._width+=Q+re+j,se._height+=ue,V&&(X.each(function(lt,gt){r.setTranslate(this,0,gt*se.tracegroupgap)}),se._height+=(se._lgroupsLength-1)*se.tracegroupgap);else{var Be=I(se),Qe=se.x<0||se.x===0&&Be==="right",at=se.x>1||se.x===1&&Be==="left",$e=Re||we,It=ce.width/2;se._maxWidth=Math.max(Qe?$e&&Be==="left"?Z.l+Z.w:It:at?$e&&Be==="right"?Z.r+Z.w:It:Z.w,2*re);var Pt=0,Vt=0;J.each(function(lt){var gt=b(lt,se,re);Pt=Math.max(Pt,gt),Vt+=gt}),me=null;var Wt=0;if(V){var Cr=0,yr=0,qr=0;X.each(function(){var lt=0,gt=0;p.select(this).selectAll("g.traces").each(function(nr){var ir=b(nr,se,re),tr=nr[0].height;r.setTranslate(this,fe[0],fe[1]+ie+Q+tr/2+gt),gt+=tr,lt=Math.max(lt,ir),Xe[nr[0].trace.legendgroup]=lt});var kt=lt+Q;yr>0&&kt+ie+yr>se._maxWidth?(Wt=Math.max(Wt,yr),yr=0,qr+=Cr+ze,Cr=gt):Cr=Math.max(Cr,gt),r.setTranslate(this,yr,qr),yr+=kt}),se._width=Math.max(Wt,yr)+ie,se._height=qr+Cr+ue}else{var Mr=J.size(),Dr=Vt+j+(Mr-1)*Q<se._maxWidth,xt=0,Ne=0,Ye=0,be=0;J.each(function(lt){var gt=lt[0].height,kt=b(lt,se,re,V),nr=Dr?kt:Pt;oe||(nr+=Q),nr+ie+Ne-Q>=se._maxWidth&&(Wt=Math.max(Wt,be),Ne=0,Ye+=xt,se._height+=xt,xt=0),r.setTranslate(this,fe[0]+ie+Ne,fe[1]+ie+Ye+gt/2+Q),be=Ne+kt+Q,Ne+=nr,xt=Math.max(xt,gt)}),Dr?(se._width=Ne+j,se._height=xt+ue):(se._width=Math.max(Wt,be)+j,se._height+=xt+ue)}}se._width=Math.ceil(Math.max(se._width+fe[0],se._titleWidth+2*(ie+s.titlePad))),se._height=Math.ceil(Math.max(se._height+fe[1],se._titleHeight+2*(ie+s.itemGap))),se._effHeight=Math.min(se._height,se._maxHeight);var Ie=O._context.edits,qe=Ie.legendText||Ie.legendPosition;J.each(function(lt){var gt=p.select(this).select("."+q+"toggle"),kt=lt[0].height,nr=lt[0].trace.legendgroup,ir=b(lt,se,re);V&&nr!==""&&(ir=Xe[nr]);var tr=qe?re:me||ir;!ee&&!oe&&(tr+=Q/2),r.setRect(gt,0,-kt/2,tr,kt)});var ke=le.select("."+q+"titletext");ke.node()&&M(ke,se,ie);var Me=le.select("."+q+"titletoggle");if(Me.size()&&ke.node()){var Le=ke.attr("x")||0,ut=s.titlePad;r.setRect(Me,Le-ut,ie,se._titleWidth+2*ut,se._titleHeight+2*ut)}}function B(O,X,J,se){var le=O._fullLayout,ce=le[X],q=I(ce),Z=U(ce),ee=ce.xref==="paper",V=ce.yref==="paper";O._fullLayout._reservedMargin[X]={};var oe=ce.y<.5?"b":"t",ie=ce.x<.5?"l":"r",j={r:le.width-J,l:J+ce._width,b:le.height-se,t:se+ce._effHeight};if(ee&&V)return S.autoMargin(O,X,{x:ce.x,y:ce.y,l:ce._width*m[q],r:ce._width*d[q],b:ce._effHeight*d[Z],t:ce._effHeight*m[Z]});ee?O._fullLayout._reservedMargin[X][oe]=j[oe]:V||ce.orientation==="v"?O._fullLayout._reservedMargin[X][ie]=j[ie]:O._fullLayout._reservedMargin[X][oe]=j[oe]}function I(O){return x.isRightAnchor(O)?"right":x.isCenterAnchor(O)?"center":"left"}function U(O){return x.isBottomAnchor(O)?"bottom":x.isMiddleAnchor(O)?"middle":"top"}}}),e2=De({"src/components/fx/hover.js"(Y){"use strict";var H=za(),p=vn(),x=wu(),S=ui(),E=S.pushUnique,e=S.strTranslate,t=S.strRotate,r=Xm(),o=vu(),i=OM(),n=ys(),a=vo(),s=Qh(),h=us(),c=th().zindexSeparator,m=Mo(),d=Ad(),T=cv(),l=Zw(),_=Qw(),w=T.YANGLE,A=Math.PI*w/180,M=1/Math.sin(A),g=Math.cos(A),b=Math.sin(A),v=T.HOVERARROWSIZE,u=T.HOVERTEXTPAD,y={box:!0,ohlc:!0,violin:!0,candlestick:!0},f={scatter:!0,scattergl:!0,splom:!0};function R(j,Q){return j.distance-Q.distance}Y.hover=function(Q,re,ue,_e){Q=S.getGraphDiv(Q);var we=re.target;S.throttle(Q._fullLayout._uid+T.HOVERID,T.HOVERMINTIME,function(){L(Q,re,ue,_e,we)})},Y.loneHover=function(Q,re){var ue=!0;Array.isArray(Q)||(ue=!1,Q=[Q]);var _e=re.gd,we=V(_e),Re=oe(_e),ze=Q.map(function(Be){var Qe=Be._x0||Be.x0||Be.x||0,at=Be._x1||Be.x1||Be.x||0,$e=Be._y0||Be.y0||Be.y||0,It=Be._y1||Be.y1||Be.y||0,Pt=Be.eventData;if(Pt){var Vt=Math.min(Qe,at),Wt=Math.max(Qe,at),Cr=Math.min($e,It),yr=Math.max($e,It),qr=Be.trace;if(m.traceIs(qr,"gl3d")){var Mr=_e._fullLayout[qr.scene]._scene.container,Dr=Mr.offsetLeft,xt=Mr.offsetTop;Vt+=Dr,Wt+=Dr,Cr+=xt,yr+=xt}Pt.bbox={x0:Vt+Re,x1:Wt+Re,y0:Cr+we,y1:yr+we},re.inOut_bbox&&re.inOut_bbox.push(Pt.bbox)}else Pt=!1;return{color:Be.color||a.defaultLine,x0:Be.x0||Be.x||0,x1:Be.x1||Be.x||0,y0:Be.y0||Be.y||0,y1:Be.y1||Be.y||0,xLabel:Be.xLabel,yLabel:Be.yLabel,zLabel:Be.zLabel,text:Be.text,name:Be.name,idealAlign:Be.idealAlign,borderColor:Be.borderColor,fontFamily:Be.fontFamily,fontSize:Be.fontSize,fontColor:Be.fontColor,fontWeight:Be.fontWeight,fontStyle:Be.fontStyle,fontVariant:Be.fontVariant,nameLength:Be.nameLength,textAlign:Be.textAlign,trace:Be.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:Be.hovertemplate||!1,hovertemplateLabels:Be.hovertemplateLabels||!1,eventData:Pt}}),Xe=!1,tt=N(ze,{gd:_e,hovermode:"closest",rotateLabels:Xe,bgColor:re.bgColor||a.background,container:H.select(re.container),outerContainer:re.outerContainer||re.container}),it=tt.hoverLabels,et=5,nt=0,Ae=0;it.sort(function(Be,Qe){return Be.y0-Qe.y0}).each(function(Be,Qe){var at=Be.y0-Be.by/2;at-et<nt?Be.offset=nt-at+et:Be.offset=0,nt=at+Be.by+Be.offset,Qe===re.anchorIndex&&(Ae=Be.offset)}).each(function(Be){Be.offset-=Ae});var me=_e._fullLayout._invScaleX,fe=_e._fullLayout._invScaleY;return X(it,Xe,me,fe),ue?it:it.node()};function L(j,Q,re,ue,_e){re||(re="xy"),typeof re=="string"&&(re=re.split(c)[0]);var we=Array.isArray(re)?re:[re],Re,ze=j._fullLayout,Xe=ze.hoversubplots,tt=ze._plots||[],it=tt[re],et=ze._has("cartesian"),nt=Q.hovermode||ze.hovermode,Ae=(nt||"").charAt(0)==="x",me=(nt||"").charAt(0)==="y",fe,Be;if(et&&(Ae||me)&&Xe==="axis"){for(var Qe=we.length,at=0;at<Qe;at++)if(Re=we[at],tt[Re]){fe=h.getFromId(j,Re,"x"),Be=h.getFromId(j,Re,"y");var $e=(Ae?fe:Be)._subplotsWith;if($e&&$e.length)for(var It=0;It<$e.length;It++)E(we,$e[It])}}if(it&&Xe!=="single"){var Pt=it.overlays.map(function(An){return An.id});we=we.concat(Pt)}for(var Vt=we.length,Wt=new Array(Vt),Cr=new Array(Vt),yr=!1,qr=0;qr<Vt;qr++)if(Re=we[qr],tt[Re])yr=!0,Wt[qr]=tt[Re].xaxis,Cr[qr]=tt[Re].yaxis;else if(ze[Re]&&ze[Re]._subplot){var Mr=ze[Re]._subplot;Wt[qr]=Mr.xaxis,Cr[qr]=Mr.yaxis}else{S.warn("Unrecognized subplot: "+Re);return}if(nt&&!yr&&(nt="closest"),["x","y","closest","x unified","y unified"].indexOf(nt)===-1||!j.calcdata||j.querySelector(".zoombox")||j._dragging)return s.unhoverRaw(j,Q);var Dr=ze.hoverdistance;Dr===-1&&(Dr=1/0);var xt=ze.spikedistance;xt===-1&&(xt=1/0);var Ne=[],Ye=[],be,Ie,qe,ke,Me,Le,ut,lt,gt,kt,nr,ir,tr,Ir={hLinePoint:null,vLinePoint:null},vi=!1;if(Array.isArray(Q))for(nt="array",qe=0;qe<Q.length;qe++)Me=j.calcdata[Q[qe].curveNumber||0],Me&&(Le=Me[0].trace,Me[0].trace.hoverinfo!=="skip"&&(Ye.push(Me),Le.orientation==="h"&&(vi=!0)));else{var Vi=j.calcdata.slice();for(Vi.sort(function(An,Eo){var fs=An[0].trace.zorder||0,Ls=Eo[0].trace.zorder||0;return fs-Ls}),ke=0;ke<Vi.length;ke++)Me=Vi[ke],Le=Me[0].trace,Le.hoverinfo!=="skip"&&d.isTraceInSubplots(Le,we)&&(Ye.push(Me),Le.orientation==="h"&&(vi=!0));var Ui=!_e,Ki,ea;if(Ui)"xpx"in Q?Ki=Q.xpx:Ki=Wt[0]._length/2,"ypx"in Q?ea=Q.ypx:ea=Cr[0]._length/2;else{if(r.triggerHandler(j,"plotly_beforehover",Q)===!1)return;var Bi=_e.getBoundingClientRect();Ki=Q.clientX-Bi.left,ea=Q.clientY-Bi.top,ze._calcInverseTransform(j);var _a=S.apply3DTransform(ze._invTransform)(Ki,ea);if(Ki=_a[0],ea=_a[1],Ki<0||Ki>Wt[0]._length||ea<0||ea>Cr[0]._length)return s.unhoverRaw(j,Q)}if(Q.pointerX=Ki+Wt[0]._offset,Q.pointerY=ea+Cr[0]._offset,"xval"in Q?be=d.flat(we,Q.xval):be=d.p2c(Wt,Ki),"yval"in Q?Ie=d.flat(we,Q.yval):Ie=d.p2c(Cr,ea),!p(be[0])||!p(Ie[0]))return S.warn("Fx.hover failed",Q,j),s.unhoverRaw(j,Q)}var Ca=1/0;function Kt(An,Eo){for(ke=0;ke<Ye.length;ke++)if(Me=Ye[ke],!(!Me||!Me[0]||!Me[0].trace)&&(Le=Me[0].trace,!(Le.visible!==!0||Le._length===0)&&["carpet","contourcarpet"].indexOf(Le._module.name)===-1)){if(gt=nt,d.isUnifiedHover(gt)&&(gt=gt.charAt(0)),Le.type==="splom"?(lt=0,ut=we[lt]):(ut=d.getSubplot(Le),lt=we.indexOf(ut)),ir={cd:Me,trace:Le,xa:Wt[lt],ya:Cr[lt],maxHoverDistance:Dr,maxSpikeDistance:xt,index:!1,distance:Math.min(Ca,Dr),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:a.defaultLine,name:Le.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},ze[ut]&&(ir.subplot=ze[ut]._subplot),ze._splomScenes&&ze._splomScenes[Le.uid]&&(ir.scene=ze._splomScenes[Le.uid]),gt==="array"){var fs=Q[ke];"pointNumber"in fs?(ir.index=fs.pointNumber,gt="closest"):(gt="","xval"in fs&&(kt=fs.xval,gt="x"),"yval"in fs&&(nr=fs.yval,gt=gt?"closest":"y"))}else An!==void 0&&Eo!==void 0?(kt=An,nr=Eo):(kt=be[lt],nr=Ie[lt]);if(tr=Ne.length,Dr!==0)if(Le._module&&Le._module.hoverPoints){var Ls=Le._module.hoverPoints(ir,kt,nr,gt,{finiteRange:!0,hoverLayer:ze._hoverlayer,hoversubplots:Xe,gd:j});if(Ls)for(var ns,uo=0;uo<Ls.length;uo++)ns=Ls[uo],p(ns.x0)&&p(ns.y0)&&Ne.push(J(ns,nt))}else S.log("Unrecognized trace type in hover:",Le);if(nt==="closest"&&Ne.length>tr&&(Ne.splice(0,tr),Ca=Ne[0].distance),et&&xt!==0&&Ne.length===0){ir.distance=xt,ir.index=!1;var ss=Le._module.hoverPoints(ir,kt,nr,"closest",{hoverLayer:ze._hoverlayer});if(ss&&(ss=ss.filter(function(co){return co.spikeDistance<=xt})),ss&&ss.length){var xs,el=ss.filter(function(co){return co.xa.showspikes&&co.xa.spikesnap!=="hovered data"});if(el.length){var Ss=el[0];p(Ss.x0)&&p(Ss.y0)&&(xs=Zt(Ss),(!Ir.vLinePoint||Ir.vLinePoint.spikeDistance>xs.spikeDistance)&&(Ir.vLinePoint=xs))}var Co=ss.filter(function(co){return co.ya.showspikes&&co.ya.spikesnap!=="hovered data"});if(Co.length){var ao=Co[0];p(ao.x0)&&p(ao.y0)&&(xs=Zt(ao),(!Ir.hLinePoint||Ir.hLinePoint.spikeDistance>xs.spikeDistance)&&(Ir.hLinePoint=xs))}}}}}Kt();function zt(An,Eo,fs){for(var Ls=null,ns=1/0,uo,ss=0;ss<An.length;ss++)fe&&fe._id!==An[ss].xa._id||Be&&Be._id!==An[ss].ya._id||(uo=An[ss].spikeDistance,fs&&ss===0&&(uo=-1/0),uo<=ns&&uo<=Eo&&(Ls=An[ss],ns=uo));return Ls}function Zt(An){return An?{xa:An.xa,ya:An.ya,x:An.xSpike!==void 0?An.xSpike:(An.x0+An.x1)/2,y:An.ySpike!==void 0?An.ySpike:(An.y0+An.y1)/2,distance:An.distance,spikeDistance:An.spikeDistance,curveNumber:An.trace.index,color:An.color,pointNumber:An.index}:null}var Jt={fullLayout:ze,container:ze._hoverlayer,event:Q},Br=j._spikepoints,ri={vLinePoint:Ir.vLinePoint,hLinePoint:Ir.hLinePoint};j._spikepoints=ri;var ii=function(){var An=Ne.filter(function(fs){return fe&&fe._id===fs.xa._id&&Be&&Be._id===fs.ya._id}),Eo=Ne.filter(function(fs){return!(fe&&fe._id===fs.xa._id&&Be&&Be._id===fs.ya._id)});An.sort(R),Eo.sort(R),Ne=An.concat(Eo),Ne=Z(Ne,nt)};ii();var di=nt.charAt(0),Wi=(di==="x"||di==="y")&&Ne[0]&&f[Ne[0].trace.type];if(et&&xt!==0&&Ne.length!==0){var oa=Ne.filter(function(An){return An.ya.showspikes}),ra=zt(oa,xt,Wi);Ir.hLinePoint=Zt(ra);var ca=Ne.filter(function(An){return An.xa.showspikes}),xa=zt(ca,xt,Wi);Ir.vLinePoint=Zt(xa)}if(Ne.length===0){var ji=s.unhoverRaw(j,Q);return et&&(Ir.hLinePoint!==null||Ir.vLinePoint!==null)&&ce(Br)&&se(j,Ir,Jt),ji}if(et&&ce(Br)&&se(j,Ir,Jt),d.isXYhover(gt)&&Ne[0].length!==0&&Ne[0].trace.type!=="splom"){var pn=Ne[0];y[pn.trace.type]?Ne=Ne.filter(An=>An.trace.index===pn.trace.index):Ne=[pn];var _n=Ne.length,En=ee("x",pn,ze),bt=ee("y",pn,ze);Kt(En,bt);var st=[],Nr={},Lr=0,br=function(An){var Eo=y[An.trace.type]?z(An):An.trace.index;if(!Nr[Eo])Lr++,Nr[Eo]=Lr,st.push(An);else{var fs=Nr[Eo]-1,Ls=st[fs];fs>0&&Math.abs(An.distance)<Math.abs(Ls.distance)&&(st[fs]=An)}},Rr;for(Rr=0;Rr<_n;Rr++)br(Ne[Rr]);for(Rr=Ne.length-1;Rr>_n-1;Rr--)br(Ne[Rr]);Ne=st,ii()}var jr=j._hoverdata,Wr=[],yt=V(j),Xt=oe(j);for(let An of Ne){var mr=d.makeEventData(An,An.trace,An.cd);if(An.hovertemplate!==!1){var Or=!1;An.cd[An.index]&&An.cd[An.index].ht&&(Or=An.cd[An.index].ht),An.hovertemplate=Or||An.trace.hovertemplate||!1}if(An.xa&&An.ya){var ki=An.x0+An.xa._offset,Ni=An.x1+An.xa._offset,Si=An.y0+An.ya._offset,fi=An.y1+An.ya._offset,Li=Math.min(ki,Ni),Ia=Math.max(ki,Ni),Fa=Math.min(Si,fi),un=Math.max(Si,fi);mr.bbox={x0:Li+Xt,x1:Ia+Xt,y0:Fa+yt,y1:un+yt}}An.eventData=[mr],Wr.push(mr)}j._hoverdata=Wr;var Bn=nt==="y"&&(Ye.length>1||Ne.length>1)||nt==="closest"&&vi&&Ne.length>1,Kn=a.combine(ze.plot_bgcolor||a.background,ze.paper_bgcolor),Gn=N(Ne,{gd:j,hovermode:nt,rotateLabels:Bn,bgColor:Kn,container:ze._hoverlayer,outerContainer:ze._paper.node(),commonLabelOpts:ze.hoverlabel,hoverdistance:ze.hoverdistance}),eo=Gn.hoverLabels;if(d.isUnifiedHover(nt)||(I(eo,Bn,ze,Gn.commonLabelBoundingBox),X(eo,Bn,ze._invScaleX,ze._invScaleY)),_e&&_e.tagName){var Ao=m.getComponentMethod("annotations","hasClickToShow")(j,Wr);i(H.select(_e),Ao?"pointer":"")}!_e||ue||!le(j,Q,jr)||(jr&&j.emit("plotly_unhover",{event:Q,points:jr}),j.emit("plotly_hover",{event:Q,points:j._hoverdata,xaxes:Wt,yaxes:Cr,xvals:be,yvals:Ie}))}function z(j){return[j.trace.index,j.index,j.x0,j.y0,j.name,j.attr,j.xa?j.xa._id:"",j.ya?j.ya._id:""].join(",")}var F=/<extra>([\s\S]*)<\/extra>/;function N(j,Q){var re=Q.gd,ue=re._fullLayout,_e=Q.hovermode,we=Q.rotateLabels,Re=Q.bgColor,ze=Q.container,Xe=Q.outerContainer,tt=Q.commonLabelOpts||{};if(j.length===0)return[[]];var it=Q.fontFamily||T.HOVERFONT,et=Q.fontSize||T.HOVERFONTSIZE,nt=Q.fontWeight||ue.font.weight,Ae=Q.fontStyle||ue.font.style,me=Q.fontVariant||ue.font.variant,fe=Q.fontTextcase||ue.font.textcase,Be=Q.fontLineposition||ue.font.lineposition,Qe=Q.fontShadow||ue.font.shadow,at=j[0],$e=at.xa,It=at.ya,Pt=_e.charAt(0),Vt=Pt+"Label",Wt=at[Vt];if(Wt===void 0&&$e.type==="multicategory")for(var Cr=0;Cr<j.length&&(Wt=j[Cr][Vt],Wt===void 0);Cr++);var yr=ie(re,Xe),qr=yr.top,Mr=yr.width,Dr=yr.height,xt=Wt!==void 0&&at.distance<=Q.hoverdistance&&(_e==="x"||_e==="y");if(xt){var Ne=!0,Ye,be;for(Ye=0;Ye<j.length;Ye++)if(Ne&&j[Ye].zLabel===void 0&&(Ne=!1),be=j[Ye].hoverinfo||j[Ye].trace.hoverinfo,be){var Ie=Array.isArray(be)?be:be.split("+");if(Ie.indexOf("all")===-1&&Ie.indexOf(_e)===-1){xt=!1;break}}Ne&&(xt=!1)}var qe=ze.selectAll("g.axistext").data(xt?[0]:[]);qe.enter().append("g").classed("axistext",!0),qe.exit().remove();var ke={minX:0,maxX:0,minY:0,maxY:0};if(qe.each(function(){var ji=H.select(this),pn=S.ensureSingle(ji,"path","",function(un){un.style({"stroke-width":"1px"})}),_n=S.ensureSingle(ji,"text","",function(un){un.attr("data-notex",1)}),En=tt.bgcolor||a.defaultLine,bt=tt.bordercolor||a.contrast(En),st=a.contrast(En),Nr=tt.font,Lr={weight:Nr.weight||nt,style:Nr.style||Ae,variant:Nr.variant||me,textcase:Nr.textcase||fe,lineposition:Nr.lineposition||Be,shadow:Nr.shadow||Qe,family:Nr.family||it,size:Nr.size||et,color:Nr.color||st};pn.style({fill:En,stroke:bt}),_n.text(Wt).call(n.font,Lr).call(o.positionText,0,0).call(o.convertToTspans,re),ji.attr("transform","");var br=ie(re,_n.node()),Rr,jr;if(_e==="x"){var Wr=$e.side==="top"?"-":"";_n.attr("text-anchor","middle").call(o.positionText,0,$e.side==="top"?qr-br.bottom-v-u:qr-br.top+v+u),Rr=$e._offset+(at.x0+at.x1)/2,jr=It._offset+($e.side==="top"?0:It._length);var yt=br.width/2+u,Xt=Rr;Rr<yt?Xt=yt:Rr>ue.width-yt&&(Xt=ue.width-yt),pn.attr("d","M"+(Rr-Xt)+",0L"+(Rr-Xt+v)+","+Wr+v+"H"+yt+"v"+Wr+(u*2+br.height)+"H"+-yt+"V"+Wr+v+"H"+(Rr-Xt-v)+"Z"),Rr=Xt,ke.minX=Rr-yt,ke.maxX=Rr+yt,$e.side==="top"?(ke.minY=jr-(u*2+br.height),ke.maxY=jr-u):(ke.minY=jr+u,ke.maxY=jr+(u*2+br.height))}else{var mr,Or,ki;It.side==="right"?(mr="start",Or=1,ki="",Rr=$e._offset+$e._length):(mr="end",Or=-1,ki="-",Rr=$e._offset),jr=It._offset+(at.y0+at.y1)/2,_n.attr("text-anchor",mr),pn.attr("d","M0,0L"+ki+v+","+v+"V"+(u+br.height/2)+"h"+ki+(u*2+br.width)+"V-"+(u+br.height/2)+"H"+ki+v+"V-"+v+"Z"),ke.minY=jr-(u+br.height/2),ke.maxY=jr+(u+br.height/2),It.side==="right"?(ke.minX=Rr+v,ke.maxX=Rr+v+(u*2+br.width)):(ke.minX=Rr-v-(u*2+br.width),ke.maxX=Rr-v);var Ni=br.height/2,Si=qr-br.top-Ni,fi="clip"+ue._uid+"commonlabel"+It._id,Li;if(Rr<br.width+2*u+v){Li="M-"+(v+u)+"-"+Ni+"h-"+(br.width-u)+"V"+Ni+"h"+(br.width-u)+"Z";var Ia=br.width-Rr+u;o.positionText(_n,Ia,Si),mr==="end"&&_n.selectAll("tspan").each(function(){var un=H.select(this),Bn=n.tester.append("text").text(un.text()).call(n.font,Lr),Kn=ie(re,Bn.node());Math.round(Kn.width)<Math.round(br.width)&&un.attr("x",Ia-Kn.width),Bn.remove()})}else o.positionText(_n,Or*(u+v),Si),Li=null;var Fa=ue._topclips.selectAll("#"+fi).data(Li?[0]:[]);Fa.enter().append("clipPath").attr("id",fi).append("path"),Fa.exit().remove(),Fa.select("path").attr("d",Li),n.setClipUrl(_n,Li?fi:null,re)}ji.attr("transform",e(Rr,jr))}),d.isUnifiedHover(_e)){ze.selectAll("g.hovertext").remove();let ji=j.filter(pn=>pn.hoverinfo!=="none");if(ji.length===0)return[];var Me=ue.hoverlabel,Le=Me.font,ut=ji[0],lt=((_e==="x unified"?ut.xa:ut.ya).unifiedhovertitle||{}).text,gt=lt?S.hovertemplateString({data:_e==="x unified"?[{xa:ut.xa,x:ut.xVal}]:[{ya:ut.ya,y:ut.yVal}],fallback:ut.trace.hovertemplatefallback,locale:ue._d3locale,template:lt}):Wt,kt={showlegend:!0,legend:{title:{text:gt,font:Le},font:Le,bgcolor:Me.bgcolor,bordercolor:Me.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:ue.legend?ue.legend.traceorder:void 0,orientation:"v"}},nr={font:Le};l(kt,nr,re._fullData);var ir=nr.legend;ir.entries=[];for(var tr=0;tr<ji.length;tr++){var Ir=ji[tr];if(Ir.hoverinfo!=="none"){var vi=B(Ir,!0,_e,ue,Wt),Vi=vi[0],Ui=vi[1];Ir.name=Ui,Ui!==""?Ir.text=Ui+" : "+Vi:Ir.text=Vi;var Ki=Ir.cd[Ir.index];Ki&&(Ki.mc&&(Ir.mc=Ki.mc),Ki.mcc&&(Ir.mc=Ki.mcc),Ki.mlc&&(Ir.mlc=Ki.mlc),Ki.mlcc&&(Ir.mlc=Ki.mlcc),Ki.mlw&&(Ir.mlw=Ki.mlw),Ki.mrc&&(Ir.mrc=Ki.mrc),Ki.dir&&(Ir.dir=Ki.dir)),Ir._distinct=!0,ir.entries.push([Ir])}}ir.entries.sort(function(pn,_n){return pn[0].trace.index-_n[0].trace.index}),ir.layer=ze,ir._inHover=!0,ir._groupTitleFont=Me.grouptitlefont,_(re,ir);var ea=ze.select("g.legend"),Bi=ie(re,ea.node()),_a=Bi.width+2*u,Ca=Bi.height+2*u,Kt=ji[0],zt=(Kt.x0+Kt.x1)/2,Zt=(Kt.y0+Kt.y1)/2,Jt=!(m.traceIs(Kt.trace,"bar-like")||m.traceIs(Kt.trace,"box-violin")),Br,ri;Pt==="y"?Jt?(ri=Zt-u,Br=Zt+u):(ri=Math.min.apply(null,ji.map(function(pn){return Math.min(pn.y0,pn.y1)})),Br=Math.max.apply(null,ji.map(function(pn){return Math.max(pn.y0,pn.y1)}))):ri=Br=S.mean(ji.map(function(pn){return(pn.y0+pn.y1)/2}))-Ca/2;var ii,di;Pt==="x"?Jt?(ii=zt+u,di=zt-u):(ii=Math.max.apply(null,ji.map(function(pn){return Math.max(pn.x0,pn.x1)})),di=Math.min.apply(null,ji.map(function(pn){return Math.min(pn.x0,pn.x1)}))):ii=di=S.mean(ji.map(function(pn){return(pn.x0+pn.x1)/2}))-_a/2;var Wi=$e._offset,oa=It._offset;Br+=oa,ii+=Wi,di+=Wi-_a,ri+=oa-Ca;var ra,ca;return ii+_a<Mr&&ii>=0?ra=ii:di+_a<Mr&&di>=0?ra=di:Wi+_a<Mr?ra=Wi:ii-zt<zt-di+_a?ra=Mr-_a:ra=0,ra+=u,Br+Ca<Dr&&Br>=0?ca=Br:ri+Ca<Dr&&ri>=0?ca=ri:oa+Ca<Dr?ca=oa:Br-Zt<Zt-ri+Ca?ca=Dr-Ca:ca=0,ca+=u,ea.attr("transform",e(ra-1,ca-1)),ea}var xa=ze.selectAll("g.hovertext").data(j,function(ji){return z(ji)});return xa.enter().append("g").classed("hovertext",!0).each(function(){var ji=H.select(this);ji.append("rect").call(a.fill,a.addOpacity(Re,.8)),ji.append("text").classed("name",!0),ji.append("path").style("stroke-width","1px"),ji.append("text").classed("nums",!0).call(n.font,{weight:nt,style:Ae,variant:me,textcase:fe,lineposition:Be,shadow:Qe,family:it,size:et})}),xa.exit().remove(),xa.each(function(ji){var pn=H.select(this).attr("transform",""),_n=ji.color;Array.isArray(_n)&&(_n=_n[ji.eventData[0].pointNumber]);var En=ji.bgcolor||_n,bt=a.combine(a.opacity(En)?En:a.defaultLine,Re),st=a.combine(a.opacity(_n)?_n:a.defaultLine,Re),Nr=ji.borderColor||a.contrast(bt),Lr=B(ji,xt,_e,ue,Wt,pn),br=Lr[0],Rr=Lr[1],jr=pn.select("text.nums").call(n.font,{family:ji.fontFamily||it,size:ji.fontSize||et,color:ji.fontColor||Nr,weight:ji.fontWeight||nt,style:ji.fontStyle||Ae,variant:ji.fontVariant||me,textcase:ji.fontTextcase||fe,lineposition:ji.fontLineposition||Be,shadow:ji.fontShadow||Qe}).text(br).attr("data-notex",1).call(o.positionText,0,0).call(o.convertToTspans,re),Wr=pn.select("text.name"),yt=0,Xt=0;if(Rr&&Rr!==br){Wr.call(n.font,{family:ji.fontFamily||it,size:ji.fontSize||et,color:st,weight:ji.fontWeight||nt,style:ji.fontStyle||Ae,variant:ji.fontVariant||me,textcase:ji.fontTextcase||fe,lineposition:ji.fontLineposition||Be,shadow:ji.fontShadow||Qe}).text(Rr).attr("data-notex",1).call(o.positionText,0,0).call(o.convertToTspans,re);var mr=ie(re,Wr.node());yt=mr.width+2*u,Xt=mr.height+2*u}else Wr.remove(),pn.select("rect").remove();pn.select("path").style({fill:bt,stroke:Nr});var Or=ji.xa._offset+(ji.x0+ji.x1)/2,ki=ji.ya._offset+(ji.y0+ji.y1)/2,Ni=Math.abs(ji.x1-ji.x0),Si=Math.abs(ji.y1-ji.y0),fi=ie(re,jr.node()),Li=fi.width/ue._invScaleX,Ia=fi.height/ue._invScaleY;ji.ty0=(qr-fi.top)/ue._invScaleY,ji.bx=Li+2*u,ji.by=Math.max(Ia+2*u,Xt),ji.anchor="start",ji.txwidth=Li,ji.tx2width=yt,ji.offset=0;var Fa=(Li+v+u+yt)*ue._invScaleX,un,Bn;if(we)ji.pos=Or,un=ki+Si/2+Fa<=Dr,Bn=ki-Si/2-Fa>=0,(ji.idealAlign==="top"||!un)&&Bn?(ki-=Si/2,ji.anchor="end"):un?(ki+=Si/2,ji.anchor="start"):ji.anchor="middle",ji.crossPos=ki;else{if(ji.pos=ki,un=Or+Ni/2+Fa<=Mr,Bn=Or-Ni/2-Fa>=0,(ji.idealAlign==="left"||!un)&&Bn)Or-=Ni/2,ji.anchor="end";else if(un)Or+=Ni/2,ji.anchor="start";else{ji.anchor="middle";var Kn=Fa/2,Gn=Or+Kn-Mr,eo=Or-Kn;Gn>0&&(Or-=Gn),eo<0&&(Or+=-eo)}ji.crossPos=Or}jr.attr("text-anchor",ji.anchor),yt&&Wr.attr("text-anchor",ji.anchor),pn.attr("transform",e(Or,ki)+(we?t(w):""))}),{hoverLabels:xa,commonLabelBoundingBox:ke}}function B(j,Q,re,ue,_e,we){var Re,ze,Xe="",tt="";j.nameOverride!==void 0&&(j.name=j.nameOverride),j.name&&(j.trace._meta&&(j.name=S.templateString(j.name,j.trace._meta)),Xe=q(j.name,j.nameLength));var it=re.charAt(0),et=it==="x"?"y":"x";j.zLabel!==void 0?(j.xLabel!==void 0&&(tt+="x: "+j.xLabel+"<br>"),j.yLabel!==void 0&&(tt+="y: "+j.yLabel+"<br>"),j.trace.type!=="choropleth"&&j.trace.type!=="choroplethmapbox"&&j.trace.type!=="choroplethmap"&&(tt+=(tt?"z: ":"")+j.zLabel)):Q&&j[it+"Label"]===_e?tt=j[et+"Label"]||"":j.xLabel===void 0?j.yLabel!==void 0&&j.trace.type!=="scattercarpet"&&(tt=j.yLabel):j.yLabel===void 0?tt=j.xLabel:tt="("+j.xLabel+", "+j.yLabel+")",(j.text||j.text===0)&&!Array.isArray(j.text)&&(tt+=(tt?"<br>":"")+j.text),j.extraText!==void 0&&(tt+=(tt?"<br>":"")+j.extraText),we&&tt===""&&!j.hovertemplate&&(Xe===""&&we.remove(),tt=Xe),(ze=(Re=j.trace)==null?void 0:Re.hoverlabel)!=null&&ze.split&&(j.hovertemplate="");let{hovertemplate:nt=!1}=j;if(nt){let Ae=j.hovertemplateLabels||j;j[it+"Label"]!==_e&&(Ae[it+"other"]=Ae[it+"Val"],Ae[it+"otherLabel"]=Ae[it+"Label"]),tt=S.hovertemplateString({data:[j.eventData[0]||{},j.trace._meta],fallback:j.trace.hovertemplatefallback,labels:Ae,locale:ue._d3locale,template:nt}),tt=tt.replace(F,(me,fe)=>(Xe=q(fe,j.nameLength),""))}return[tt,Xe]}function I(j,Q,re,ue){var _e=Q?"xa":"ya",we=Q?"ya":"xa",Re=0,ze=1,Xe=j.size(),tt=new Array(Xe),it=0,et=ue.minX,nt=ue.maxX,Ae=ue.minY,me=ue.maxY,fe=function(be){return be*re._invScaleX},Be=function(be){return be*re._invScaleY};j.each(function(be){var Ie=be[_e],qe=be[we],ke=Ie._id.charAt(0)==="x",Me=Ie.range;it===0&&Me&&Me[0]>Me[1]!==ke&&(ze=-1);var Le=0,ut=ke?re.width:re.height;if(re.hovermode==="x"||re.hovermode==="y"){var lt=U(be,Q),gt=be.anchor,kt=gt==="end"?-1:1,nr,ir;if(gt==="middle")nr=be.crossPos+(ke?Be(lt.y-be.by/2):fe(be.bx/2+be.tx2width/2)),ir=nr+(ke?Be(be.by):fe(be.bx));else if(ke)nr=be.crossPos+Be(v+lt.y)-Be(be.by/2-v),ir=nr+Be(be.by);else{var tr=fe(kt*v+lt.x),Ir=tr+fe(kt*be.bx);nr=be.crossPos+Math.min(tr,Ir),ir=be.crossPos+Math.max(tr,Ir)}ke?Ae!==void 0&&me!==void 0&&Math.min(ir,me)-Math.max(nr,Ae)>1&&(qe.side==="left"?(Le=qe._mainLinePosition,ut=re.width):ut=qe._mainLinePosition):et!==void 0&&nt!==void 0&&Math.min(ir,nt)-Math.max(nr,et)>1&&(qe.side==="top"?(Le=qe._mainLinePosition,ut=re.height):ut=qe._mainLinePosition)}tt[it++]=[{datum:be,traceIndex:be.trace.index,dp:0,pos:be.pos,posref:be.posref,size:be.by*(ke?M:1)/2,pmin:Le,pmax:ut}]}),tt.sort(function(be,Ie){return be[0].posref-Ie[0].posref||ze*(Ie[0].traceIndex-be[0].traceIndex)});var Qe,at,$e,It,Pt,Vt,Wt;function Cr(be){var Ie=be[0],qe=be[be.length-1];if(at=Ie.pmin-Ie.pos-Ie.dp+Ie.size,$e=qe.pos+qe.dp+qe.size-Ie.pmax,at>.01){for(Pt=be.length-1;Pt>=0;Pt--)be[Pt].dp+=at;Qe=!1}if(!($e<.01)){if(at<-.01){for(Pt=be.length-1;Pt>=0;Pt--)be[Pt].dp-=$e;Qe=!1}if(Qe){var ke=0;for(It=0;It<be.length;It++)Vt=be[It],Vt.pos+Vt.dp+Vt.size>Ie.pmax&&ke++;for(It=be.length-1;It>=0&&!(ke<=0);It--)Vt=be[It],Vt.pos>Ie.pmax-1&&(Vt.del=!0,ke--);for(It=0;It<be.length&&!(ke<=0);It++)if(Vt=be[It],Vt.pos<Ie.pmin+1)for(Vt.del=!0,ke--,$e=Vt.size*2,Pt=be.length-1;Pt>=0;Pt--)be[Pt].dp-=$e;for(It=be.length-1;It>=0&&!(ke<=0);It--)Vt=be[It],Vt.pos+Vt.dp+Vt.size>Ie.pmax&&(Vt.del=!0,ke--)}}}for(;!Qe&&Re<=Xe;){for(Re++,Qe=!0,It=0;It<tt.length-1;){var yr=tt[It],qr=tt[It+1],Mr=yr[yr.length-1],Dr=qr[0];if(at=Mr.pos+Mr.dp+Mr.size-Dr.pos-Dr.dp+Dr.size,at>.01){for(Pt=qr.length-1;Pt>=0;Pt--)qr[Pt].dp+=at;for(yr.push.apply(yr,qr),tt.splice(It+1,1),Wt=0,Pt=yr.length-1;Pt>=0;Pt--)Wt+=yr[Pt].dp;for($e=Wt/yr.length,Pt=yr.length-1;Pt>=0;Pt--)yr[Pt].dp-=$e;Qe=!1}else It++}tt.forEach(Cr)}for(It=tt.length-1;It>=0;It--){var xt=tt[It];for(Pt=xt.length-1;Pt>=0;Pt--){var Ne=xt[Pt],Ye=Ne.datum;Ye.offset=Ne.dp,Ye.del=Ne.del}}}function U(j,Q){var re=0,ue=j.offset;return Q&&(ue*=-b,re=j.offset*g),{x:re,y:ue}}function O(j){var Q={start:1,end:-1,middle:0}[j.anchor],re=Q*(v+u),ue=re+Q*(j.txwidth+u),_e=j.anchor==="middle";return _e&&(re-=j.tx2width/2,ue+=j.txwidth/2+u),{alignShift:Q,textShiftX:re,text2ShiftX:ue}}function X(j,Q,re,ue){var _e=function(Re){return Re*re},we=function(Re){return Re*ue};j.each(function(Re){var ze=H.select(this);if(Re.del)return ze.remove();var Xe=ze.select("text.nums"),tt=Re.anchor,it=tt==="end"?-1:1,et=O(Re),nt=U(Re,Q),Ae=nt.x,me=nt.y,fe=tt==="middle",Be="hoverlabel"in Re.trace?Re.trace.hoverlabel.showarrow:!0,Qe;fe?Qe="M-"+_e(Re.bx/2+Re.tx2width/2)+","+we(me-Re.by/2)+"h"+_e(Re.bx)+"v"+we(Re.by)+"h-"+_e(Re.bx)+"Z":Be?Qe="M0,0L"+_e(it*v+Ae)+","+we(v+me)+"v"+we(Re.by/2-v)+"h"+_e(it*Re.bx)+"v-"+we(Re.by)+"H"+_e(it*v+Ae)+"V"+we(me-v)+"Z":Qe="M"+_e(it*v+Ae)+","+we(me-Re.by/2)+"h"+_e(it*Re.bx)+"v"+we(Re.by)+"h"+_e(-it*Re.bx)+"Z",ze.select("path").attr("d",Qe);var at=Ae+et.textShiftX,$e=me+Re.ty0-Re.by/2+u,It=Re.textAlign||"auto";It!=="auto"&&(It==="left"&&tt!=="start"?(Xe.attr("text-anchor","start"),at=fe?-Re.bx/2-Re.tx2width/2+u:-Re.bx-u):It==="right"&&tt!=="end"&&(Xe.attr("text-anchor","end"),at=fe?Re.bx/2-Re.tx2width/2-u:Re.bx+u)),Xe.call(o.positionText,_e(at),we($e)),Re.tx2width&&(ze.select("text.name").call(o.positionText,_e(et.text2ShiftX+et.alignShift*u+Ae),we(me+Re.ty0-Re.by/2+u)),ze.select("rect").call(n.setRect,_e(et.text2ShiftX+(et.alignShift-1)*Re.tx2width/2+Ae),we(me-Re.by/2-1),_e(Re.tx2width),we(Re.by+2)))})}function J(j,Q){var re=j.index,ue=j.trace||{},_e=j.cd[0],we=j.cd[re]||{};function Re(nt){return nt||p(nt)&&nt===0}var ze=Array.isArray(re)?function(nt,Ae){var me=S.castOption(_e,re,nt);return Re(me)?me:S.extractOption({},ue,"",Ae)}:function(nt,Ae){return S.extractOption(we,ue,nt,Ae)};function Xe(nt,Ae,me){var fe=ze(Ae,me);Re(fe)&&(j[nt]=fe)}if(Xe("hoverinfo","hi","hoverinfo"),Xe("bgcolor","hbg","hoverlabel.bgcolor"),Xe("borderColor","hbc","hoverlabel.bordercolor"),Xe("fontFamily","htf","hoverlabel.font.family"),Xe("fontSize","hts","hoverlabel.font.size"),Xe("fontColor","htc","hoverlabel.font.color"),Xe("fontWeight","htw","hoverlabel.font.weight"),Xe("fontStyle","hty","hoverlabel.font.style"),Xe("fontVariant","htv","hoverlabel.font.variant"),Xe("nameLength","hnl","hoverlabel.namelength"),Xe("textAlign","hta","hoverlabel.align"),j.posref=Q==="y"||Q==="closest"&&ue.orientation==="h"?j.xa._offset+(j.x0+j.x1)/2:j.ya._offset+(j.y0+j.y1)/2,j.x0=S.constrain(j.x0,0,j.xa._length),j.x1=S.constrain(j.x1,0,j.xa._length),j.y0=S.constrain(j.y0,0,j.ya._length),j.y1=S.constrain(j.y1,0,j.ya._length),j.xLabelVal!==void 0&&(j.xLabel="xLabel"in j?j.xLabel:h.hoverLabelText(j.xa,j.xLabelVal,ue.xhoverformat),j.xVal=j.xa.c2d(j.xLabelVal)),j.yLabelVal!==void 0&&(j.yLabel="yLabel"in j?j.yLabel:h.hoverLabelText(j.ya,j.yLabelVal,ue.yhoverformat),j.yVal=j.ya.c2d(j.yLabelVal)),j.zLabelVal!==void 0&&j.zLabel===void 0&&(j.zLabel=String(j.zLabelVal)),!isNaN(j.xerr)&&!(j.xa.type==="log"&&j.xerr<=0)){var tt=h.tickText(j.xa,j.xa.c2l(j.xerr),"hover").text;j.xerrneg!==void 0?j.xLabel+=" +"+tt+" / -"+h.tickText(j.xa,j.xa.c2l(j.xerrneg),"hover").text:j.xLabel+=" \xB1 "+tt,Q==="x"&&(j.distance+=1)}if(!isNaN(j.yerr)&&!(j.ya.type==="log"&&j.yerr<=0)){var it=h.tickText(j.ya,j.ya.c2l(j.yerr),"hover").text;j.yerrneg!==void 0?j.yLabel+=" +"+it+" / -"+h.tickText(j.ya,j.ya.c2l(j.yerrneg),"hover").text:j.yLabel+=" \xB1 "+it,Q==="y"&&(j.distance+=1)}var et=j.hoverinfo||j.trace.hoverinfo;return et&&et!=="all"&&(et=Array.isArray(et)?et:et.split("+"),et.indexOf("x")===-1&&(j.xLabel=void 0),et.indexOf("y")===-1&&(j.yLabel=void 0),et.indexOf("z")===-1&&(j.zLabel=void 0),et.indexOf("text")===-1&&(j.text=void 0),et.indexOf("name")===-1&&(j.name=void 0)),j}function se(j,Q,re){var ue=re.container,_e=re.fullLayout,we=_e._size,Re=re.event,ze=!!Q.hLinePoint,Xe=!!Q.vLinePoint,tt,it;if(ue.selectAll(".spikeline").remove(),!!(Xe||ze)){var et=a.combine(_e.plot_bgcolor,_e.paper_bgcolor);if(ze){var nt=Q.hLinePoint,Ae,me;tt=nt&&nt.xa,it=nt&&nt.ya;var fe=it.spikesnap;fe==="cursor"?(Ae=Re.pointerX,me=Re.pointerY):(Ae=tt._offset+nt.x,me=it._offset+nt.y);var Be=x.readability(nt.color,et)<1.5?a.contrast(et):nt.color,Qe=it.spikemode,at=it.spikethickness,$e=it.spikecolor||Be,It=h.getPxPosition(j,it),Pt,Vt;if(Qe.indexOf("toaxis")!==-1||Qe.indexOf("across")!==-1){if(Qe.indexOf("toaxis")!==-1&&(Pt=It,Vt=Ae),Qe.indexOf("across")!==-1){var Wt=it._counterDomainMin,Cr=it._counterDomainMax;it.anchor==="free"&&(Wt=Math.min(Wt,it.position),Cr=Math.max(Cr,it.position)),Pt=we.l+Wt*we.w,Vt=we.l+Cr*we.w}ue.insert("line",":first-child").attr({x1:Pt,x2:Vt,y1:me,y2:me,"stroke-width":at,stroke:$e,"stroke-dasharray":n.dashStyle(it.spikedash,at)}).classed("spikeline",!0).classed("crisp",!0),ue.insert("line",":first-child").attr({x1:Pt,x2:Vt,y1:me,y2:me,"stroke-width":at+2,stroke:et}).classed("spikeline",!0).classed("crisp",!0)}Qe.indexOf("marker")!==-1&&ue.insert("circle",":first-child").attr({cx:It+(it.side!=="right"?at:-at),cy:me,r:at,fill:$e}).classed("spikeline",!0)}if(Xe){var yr=Q.vLinePoint,qr,Mr;tt=yr&&yr.xa,it=yr&&yr.ya;var Dr=tt.spikesnap;Dr==="cursor"?(qr=Re.pointerX,Mr=Re.pointerY):(qr=tt._offset+yr.x,Mr=it._offset+yr.y);var xt=x.readability(yr.color,et)<1.5?a.contrast(et):yr.color,Ne=tt.spikemode,Ye=tt.spikethickness,be=tt.spikecolor||xt,Ie=h.getPxPosition(j,tt),qe,ke;if(Ne.indexOf("toaxis")!==-1||Ne.indexOf("across")!==-1){if(Ne.indexOf("toaxis")!==-1&&(qe=Ie,ke=Mr),Ne.indexOf("across")!==-1){var Me=tt._counterDomainMin,Le=tt._counterDomainMax;tt.anchor==="free"&&(Me=Math.min(Me,tt.position),Le=Math.max(Le,tt.position)),qe=we.t+(1-Le)*we.h,ke=we.t+(1-Me)*we.h}ue.insert("line",":first-child").attr({x1:qr,x2:qr,y1:qe,y2:ke,"stroke-width":Ye,stroke:be,"stroke-dasharray":n.dashStyle(tt.spikedash,Ye)}).classed("spikeline",!0).classed("crisp",!0),ue.insert("line",":first-child").attr({x1:qr,x2:qr,y1:qe,y2:ke,"stroke-width":Ye+2,stroke:et}).classed("spikeline",!0).classed("crisp",!0)}Ne.indexOf("marker")!==-1&&ue.insert("circle",":first-child").attr({cx:qr,cy:Ie-(tt.side!=="top"?Ye:-Ye),r:Ye,fill:be}).classed("spikeline",!0)}}}function le(j,Q,re){if(!re||re.length!==j._hoverdata.length)return!0;for(var ue=re.length-1;ue>=0;ue--){var _e=re[ue],we=j._hoverdata[ue];if(_e.curveNumber!==we.curveNumber||String(_e.pointNumber)!==String(we.pointNumber)||String(_e.pointNumbers)!==String(we.pointNumbers)||_e.binNumber!==we.binNumber)return!0}return!1}function ce(j,Q){return!Q||Q.vLinePoint!==j._spikepoints.vLinePoint||Q.hLinePoint!==j._spikepoints.hLinePoint}function q(j,Q){return o.plainText(j||"",{len:Q,allowedTags:["br","sub","sup","b","i","em","s","u"]})}function Z(j,Q){for(var re=Q.charAt(0),ue=[],_e=[],we=[],Re=0;Re<j.length;Re++){var ze=j[Re];m.traceIs(ze.trace,"bar-like")||m.traceIs(ze.trace,"box-violin")?we.push(ze):ze.trace[re+"period"]?_e.push(ze):ue.push(ze)}return ue.concat(_e).concat(we)}function ee(j,Q,re){var ue=Q[j+"a"],_e=Q[j+"Val"],we=Q.cd[0];if(ue.type==="category"||ue.type==="multicategory")_e=ue._categoriesMap[_e];else if(ue.type==="date"){var Re=Q.trace[j+"periodalignment"];if(Re){var ze=Q.cd[Q.index],Xe=ze[j+"Start"];Xe===void 0&&(Xe=ze[j]);var tt=ze[j+"End"];tt===void 0&&(tt=ze[j]);var it=tt-Xe;Re==="end"?_e+=it:Re==="middle"&&(_e+=it/2)}_e=ue.d2c(_e)}return we&&we.t&&we.t.posLetter===ue._id&&(re.boxmode==="group"||re.violinmode==="group")&&(_e+=we.t.dPos),_e}var V=j=>j.offsetTop+j.clientTop,oe=j=>j.offsetLeft+j.clientLeft;function ie(j,Q){var re=j._fullLayout,ue=Q.getBoundingClientRect(),_e=ue.left,we=ue.top,Re=_e+ue.width,ze=we+ue.height,Xe=S.apply3DTransform(re._invTransform)(_e,we),tt=S.apply3DTransform(re._invTransform)(Re,ze),it=Xe[0],et=Xe[1],nt=tt[0],Ae=tt[1];return{x:it,y:et,width:nt-it,height:Ae-et,top:Math.min(et,Ae),left:Math.min(it,nt),right:Math.max(it,nt),bottom:Math.max(et,Ae)}}}}),cy=De({"src/components/fx/hoverlabel_defaults.js"(Y,H){"use strict";var p=ui(),x=vo(),S=Ad().isUnifiedHover;H.exports=function(e,t,r,o){o=o||{};var i=t.legend;function n(a){o.font[a]||(o.font[a]=i?t.legend.font[a]:t.font[a])}t&&S(t.hovermode)&&(o.font||(o.font={}),n("size"),n("family"),n("color"),n("weight"),n("style"),n("variant"),i?(o.bgcolor||(o.bgcolor=x.combine(t.legend.bgcolor,t.paper_bgcolor)),o.bordercolor||(o.bordercolor=t.legend.bordercolor)):o.bgcolor||(o.bgcolor=t.paper_bgcolor)),r("hoverlabel.bgcolor",o.bgcolor),r("hoverlabel.bordercolor",o.bordercolor),r("hoverlabel.namelength",o.namelength),r("hoverlabel.showarrow",o.showarrow),p.coerceFont(r,"hoverlabel.font",o.font),r("hoverlabel.align",o.align)}}}),jM=De({"src/components/fx/layout_global_defaults.js"(Y,H){"use strict";var p=ui(),x=cy(),S=Rv();H.exports=function(e,t){function r(o,i){return p.coerce(e,t,S,o,i)}x(e,t,r)}}}),VM=De({"src/components/fx/defaults.js"(Y,H){"use strict";var p=ui(),x=Np(),S=cy();H.exports=function(e,t,r,o){function i(a,s){return p.coerce(e,t,x,a,s)}var n=p.extendFlat({},o.hoverlabel);t.hovertemplate&&(n.namelength=-1),S(e,t,i,n)}}}),t2=De({"src/components/fx/hovermode_defaults.js"(Y,H){"use strict";var p=ui(),x=Rv();H.exports=function(E,e){function t(r,o){return e[r]!==void 0?e[r]:p.coerce(E,e,x,r,o)}return t("clickmode"),t("hoversubplots"),t("hovermode")}}}),qM=De({"src/components/fx/layout_defaults.js"(Y,H){"use strict";var p=ui(),x=Rv(),S=t2(),E=cy();H.exports=function(t,r){function o(m,d){return p.coerce(t,r,x,m,d)}var i=S(t,r);i&&(o("hoverdistance"),o("spikedistance"));var n=o("dragmode");n==="select"&&o("selectdirection");var a=r._has("mapbox"),s=r._has("map"),h=r._has("geo"),c=r._basePlotModules.length;r.dragmode==="zoom"&&((a||s||h)&&c===1||(a||s)&&h&&c===2)&&(r.dragmode="pan"),E(t,r,o),p.coerceFont(o,"hoverlabel.grouptitlefont",r.hoverlabel.font)}}}),HM=De({"src/components/fx/calc.js"(Y,H){"use strict";var p=ui(),x=Mo();H.exports=function(e){var t=e.calcdata,r=e._fullLayout;function o(h){return function(c){return p.coerceHoverinfo({hoverinfo:c},{_module:h._module},r)}}for(var i=0;i<t.length;i++){var n=t[i],a=n[0].trace;if(!x.traceIs(a,"pie-like")){var s=x.traceIs(a,"2dMap")?S:p.fillArray;s(a.hoverinfo,n,"hi",o(a)),a.hovertemplate&&s(a.hovertemplate,n,"ht"),a.hoverlabel&&(s(a.hoverlabel.bgcolor,n,"hbg"),s(a.hoverlabel.bordercolor,n,"hbc"),s(a.hoverlabel.font.size,n,"hts"),s(a.hoverlabel.font.color,n,"htc"),s(a.hoverlabel.font.family,n,"htf"),s(a.hoverlabel.font.weight,n,"htw"),s(a.hoverlabel.font.style,n,"hty"),s(a.hoverlabel.font.variant,n,"htv"),s(a.hoverlabel.namelength,n,"hnl"),s(a.hoverlabel.align,n,"hta"),s(a.hoverlabel.showarrow,n,"htsa"))}}};function S(E,e,t,r){r=r||p.identity,Array.isArray(E)&&(e[0][t]=r(E))}}}),GM=De({"src/components/fx/click.js"(Y,H){"use strict";var p=Mo(),x=e2().hover;H.exports=function(E,e,t){var r=p.getComponentMethod("annotations","onClick")(E,E._hoverdata);t!==void 0&&x(E,e,t,!0);function o(){E.emit("plotly_click",{points:E._hoverdata,event:e})}E._hoverdata&&e&&e.target&&(r&&r.then?r.then(o):o(),e.stopImmediatePropagation&&e.stopImmediatePropagation())}}}),sf=De({"src/components/fx/index.js"(Y,H){"use strict";var p=za(),x=ui(),S=Qh(),E=Ad(),e=Rv(),t=e2();H.exports={moduleType:"component",name:"fx",constants:cv(),schema:{layout:e},attributes:Np(),layoutAttributes:e,supplyLayoutGlobalDefaults:jM(),supplyDefaults:VM(),supplyLayoutDefaults:qM(),calc:HM(),getDistanceFunction:E.getDistanceFunction,getClosest:E.getClosest,inbox:E.inbox,quadrature:E.quadrature,appendArrayPointValue:E.appendArrayPointValue,castHoverOption:o,castHoverinfo:i,hover:t.hover,unhover:S.unhover,loneHover:t.loneHover,loneUnhover:r,click:GM()};function r(n){var a=x.isD3Selection(n)?n:p.select(n);a.selectAll("g.hovertext").remove(),a.selectAll(".spikeline").remove()}function o(n,a,s){return x.castOption(n,a,"hoverlabel."+s)}function i(n,a,s){function h(c){return x.coerceHoverinfo({hoverinfo:c},{_module:n._module},a)}return x.castOption(n,s,"hoverinfo",h)}}}),dv=De({"src/components/dragelement/helpers.js"(Y){"use strict";Y.selectMode=function(H){return H==="lasso"||H==="select"},Y.drawMode=function(H){return H==="drawclosedpath"||H==="drawopenpath"||H==="drawline"||H==="drawrect"||H==="drawcircle"},Y.openMode=function(H){return H==="drawline"||H==="drawopenpath"},Y.rectMode=function(H){return H==="select"||H==="drawline"||H==="drawrect"||H==="drawcircle"},Y.freeMode=function(H){return H==="lasso"||H==="drawclosedpath"||H==="drawopenpath"},Y.selectingOrDrawing=function(H){return Y.freeMode(H)||Y.rectMode(H)}}}),fy=De({"src/lib/clear_gl_canvases.js"(Y,H){"use strict";H.exports=function(x){var S=x._fullLayout;S._glcanvas&&S._glcanvas.size()&&S._glcanvas.each(function(E){E.regl&&E.regl.clear({color:!0,depth:!0})})}}}),A_=De({"src/fonts/ploticon.js"(Y,H){"use strict";H.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("")}}}}),S_=De({"src/components/shapes/draw_newshape/constants.js"(Y,H){"use strict";var p=32;H.exports={CIRCLE_SIDES:p,i000:0,i090:p/4,i180:p/2,i270:p/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}}}),M_=De({"src/components/selections/helpers.js"(Y,H){"use strict";var p=ui().strTranslate;function x(t,r){switch(t.type){case"log":return t.p2d(r);case"date":return t.p2r(r,0,t.calendar);default:return t.p2r(r)}}function S(t,r){switch(t.type){case"log":return t.d2p(r);case"date":return t.r2p(r,0,t.calendar);default:return t.r2p(r)}}function E(t){var r=t._id.charAt(0)==="y"?1:0;return function(o){return x(t,o[r])}}function e(t){return p(t.xaxis._offset,t.yaxis._offset)}H.exports={p2r:x,r2p:S,axValue:E,getTransform:e}}}),Wp=De({"src/components/shapes/draw_newshape/helpers.js"(Y){"use strict";var H=ly(),p=S_(),x=p.CIRCLE_SIDES,S=p.SQRT2,E=M_(),e=E.p2r,t=E.r2p,r=[0,3,4,5,6,1,2],o=[0,3,4,1,2];Y.writePaths=function(a){var s=a.length;if(!s)return"M0,0Z";for(var h="",c=0;c<s;c++)for(var m=a[c].length,d=0;d<m;d++){var T=a[c][d][0];if(T==="Z")h+="Z";else for(var l=a[c][d].length,_=0;_<l;_++){var w=_;T==="Q"||T==="S"?w=o[_]:T==="C"&&(w=r[_]),h+=a[c][d][w],_>0&&_<l-1&&(h+=",")}}return h},Y.readPaths=function(a,s,h,c){var m=H(a),d=[],T=-1,l=function(){T++,d[T]=[]},_,w=0,A=0,M,g,b=function(){M=w,g=A};b();for(var v=0;v<m.length;v++){var u=[],y,f,R,L,z=m[v][0],F=z;switch(z){case"M":l(),w=+m[v][1],A=+m[v][2],u.push([F,w,A]),b();break;case"Q":case"S":y=+m[v][1],R=+m[v][2],w=+m[v][3],A=+m[v][4],u.push([F,w,A,y,R]);break;case"C":y=+m[v][1],R=+m[v][2],f=+m[v][3],L=+m[v][4],w=+m[v][5],A=+m[v][6],u.push([F,w,A,y,R,f,L]);break;case"T":case"L":w=+m[v][1],A=+m[v][2],u.push([F,w,A]);break;case"H":F="L",w=+m[v][1],u.push([F,w,A]);break;case"V":F="L",A=+m[v][1],u.push([F,w,A]);break;case"A":F="L";var N=+m[v][1],B=+m[v][2];+m[v][4]||(N=-N,B=-B);var I=w-N,U=A;for(_=1;_<=x/2;_++){var O=2*Math.PI*_/x;u.push([F,I+N*Math.cos(O),U+B*Math.sin(O)])}break;case"Z":(w!==M||A!==g)&&(w=M,A=g,u.push([F,w,A]));break}for(var X=(h||{}).domain,J=s._fullLayout._size,se=h&&h.xsizemode==="pixel",le=h&&h.ysizemode==="pixel",ce=c===!1,q=0;q<u.length;q++){for(_=0;_+2<7;_+=2){var Z=u[q][_+1],ee=u[q][_+2];Z===void 0||ee===void 0||(w=Z,A=ee,h&&(h.xaxis&&h.xaxis.p2r?(ce&&(Z-=h.xaxis._offset),se?Z=t(h.xaxis,h.xanchor)+Z:Z=e(h.xaxis,Z)):(ce&&(Z-=J.l),X?Z=X.x[0]+Z/J.w:Z=Z/J.w),h.yaxis&&h.yaxis.p2r?(ce&&(ee-=h.yaxis._offset),le?ee=t(h.yaxis,h.yanchor)-ee:ee=e(h.yaxis,ee)):(ce&&(ee-=J.t),X?ee=X.y[1]-ee/J.h:ee=1-ee/J.h)),u[q][_+1]=Z,u[q][_+2]=ee)}d[T].push(u[q].slice())}}return d};function i(a,s){return Math.abs(a-s)<=1e-6}function n(a,s){var h=s[1]-a[1],c=s[2]-a[2];return Math.sqrt(h*h+c*c)}Y.pointsOnRectangle=function(a){var s=a.length;if(s!==5)return!1;for(var h=1;h<3;h++){var c=a[0][h]-a[1][h],m=a[3][h]-a[2][h];if(!i(c,m))return!1;var d=a[0][h]-a[3][h],T=a[1][h]-a[2][h];if(!i(d,T))return!1}return!i(a[0][1],a[1][1])&&!i(a[0][1],a[3][1])?!1:!!(n(a[0],a[1])*n(a[0],a[3]))},Y.pointsOnEllipse=function(a){var s=a.length;if(s!==x+1)return!1;s=x;for(var h=0;h<s;h++){var c=(s*2-h)%s,m=(s/2+c)%s,d=(s/2+h)%s;if(!i(n(a[h],a[d]),n(a[c],a[m])))return!1}return!0},Y.handleEllipse=function(a,s,h){if(!a)return[s,h];var c=Y.ellipseOver({x0:s[0],y0:s[1],x1:h[0],y1:h[1]}),m=(c.x1+c.x0)/2,d=(c.y1+c.y0)/2,T=(c.x1-c.x0)/2,l=(c.y1-c.y0)/2;T||(T=l=l/S),l||(l=T=T/S);for(var _=[],w=0;w<x;w++){var A=w*2*Math.PI/x;_.push([m+T*Math.cos(A),d+l*Math.sin(A)])}return _},Y.ellipseOver=function(a){var s=a.x0,h=a.y0,c=a.x1,m=a.y1,d=c-s,T=m-h;s-=d,h-=T;var l=(s+c)/2,_=(h+m)/2,w=S;return d*=w,T*=w,{x0:l-d,y0:_-T,x1:l+d,y1:_+T}},Y.fixDatesForPaths=function(a,s,h){var c=s.type==="date",m=h.type==="date";if(!c&&!m)return a;for(var d=0;d<a.length;d++)for(var T=0;T<a[d].length;T++)for(var l=0;l+2<a[d][T].length;l+=2)c&&(a[d][T][l+1]=a[d][T][l+1].replace(" ","_")),m&&(a[d][T][l+2]=a[d][T][l+2].replace(" ","_"));return a}}}),E_=De({"src/components/shapes/draw_newshape/newshapes.js"(Y,H){"use strict";var p=nf(),x=dv(),S=x.drawMode,E=x.openMode,e=S_(),t=e.i000,r=e.i090,o=e.i180,i=e.i270,n=e.cos45,a=e.sin45,s=M_(),h=s.p2r,c=s.r2p,m=Vp(),d=m.clearOutline,T=Wp(),l=T.readPaths,_=T.writePaths,w=T.ellipseOver,A=T.fixDatesForPaths;function M(b,v){if(b.length){var u=b[0][0];if(u){var y=v.gd,f=v.isActiveShape,R=v.dragmode,L=(y.layout||{}).shapes||[];if(!S(R)&&f!==void 0){var z=y._fullLayout._activeShapeIndex;if(z<L.length)switch(y._fullLayout.shapes[z].type){case"rect":R="drawrect";break;case"circle":R="drawcircle";break;case"line":R="drawline";break;case"path":var F=L[z].path||"";F[F.length-1]==="Z"?R="drawclosedpath":R="drawopenpath";break}}var N=g(b,v,R);d(y);for(var B=v.editHelpers,I=(B||{}).modifyItem,U=[],O=0;O<L.length;O++){var X=y._fullLayout.shapes[O];if(U[O]=X._input,f!==void 0&&O===y._fullLayout._activeShapeIndex){var J=N;switch(X.type){case"line":case"rect":case"circle":var se=p.getFromId(y,X.xref);X.xref.charAt(0)==="x"&&se.type.includes("category")?(I("x0",J.x0-(X.x0shift||0)),I("x1",J.x1-(X.x1shift||0))):(I("x0",J.x0),I("x1",J.x1));var le=p.getFromId(y,X.yref);X.yref.charAt(0)==="y"&&le.type.includes("category")?(I("y0",J.y0-(X.y0shift||0)),I("y1",J.y1-(X.y1shift||0))):(I("y0",J.y0),I("y1",J.y1));break;case"path":I("path",J.path);break}}}return f===void 0?(U.push(N),U):B?B.getUpdateObj():{}}}}function g(b,v,u){var y=b[0][0],f=v.gd,R=y.getAttribute("d"),L=f._fullLayout.newshape,z=v.plotinfo,F=v.isActiveShape,N=z.xaxis,B=z.yaxis,I=!!z.domain||!z.xaxis,U=!!z.domain||!z.yaxis,O=E(u),X=l(R,f,z,F),J={editable:!0,visible:L.visible,name:L.name,showlegend:L.showlegend,legend:L.legend,legendwidth:L.legendwidth,legendgroup:L.legendgroup,legendgrouptitle:{text:L.legendgrouptitle.text,font:L.legendgrouptitle.font},legendrank:L.legendrank,label:L.label,xref:I?"paper":N._id,yref:U?"paper":B._id,layer:L.layer,opacity:L.opacity,line:{color:L.line.color,width:L.line.width,dash:L.line.dash}};O||(J.fillcolor=L.fillcolor,J.fillrule=L.fillrule);var se;if(X.length===1&&(se=X[0]),se&&se.length===5&&u==="drawrect")J.type="rect",J.x0=se[0][1],J.y0=se[0][2],J.x1=se[2][1],J.y1=se[2][2];else if(se&&u==="drawline")J.type="line",J.x0=se[0][1],J.y0=se[0][2],J.x1=se[1][1],J.y1=se[1][2];else if(se&&u==="drawcircle"){J.type="circle";var le=se[t][1],ce=se[r][1],q=se[o][1],Z=se[i][1],ee=se[t][2],V=se[r][2],oe=se[o][2],ie=se[i][2],j=z.xaxis&&(z.xaxis.type==="date"||z.xaxis.type==="log"),Q=z.yaxis&&(z.yaxis.type==="date"||z.yaxis.type==="log");j&&(le=c(z.xaxis,le),ce=c(z.xaxis,ce),q=c(z.xaxis,q),Z=c(z.xaxis,Z)),Q&&(ee=c(z.yaxis,ee),V=c(z.yaxis,V),oe=c(z.yaxis,oe),ie=c(z.yaxis,ie));var re=(ce+Z)/2,ue=(ee+oe)/2,_e=(Z-ce+q-le)/2,we=(ie-V+oe-ee)/2,Re=w({x0:re,y0:ue,x1:re+_e*n,y1:ue+we*a});j&&(Re.x0=h(z.xaxis,Re.x0),Re.x1=h(z.xaxis,Re.x1)),Q&&(Re.y0=h(z.yaxis,Re.y0),Re.y1=h(z.yaxis,Re.y1)),J.x0=Re.x0,J.y0=Re.y0,J.x1=Re.x1,J.y1=Re.y1}else J.type="path",N&&B&&A(X,N,B),J.path=_(X),se=null;return J}H.exports={newShapes:M,createShapeObj:g}}}),r2=De({"src/components/selections/draw_newselection/newselections.js"(Y,H){"use strict";var p=dv(),x=p.selectMode,S=Vp(),E=S.clearOutline,e=Wp(),t=e.readPaths,r=e.writePaths,o=e.fixDatesForPaths;H.exports=function(n,a){if(n.length){var s=n[0][0];if(s){var h=s.getAttribute("d"),c=a.gd,m=c._fullLayout.newselection,d=a.plotinfo,T=d.xaxis,l=d.yaxis,_=a.isActiveSelection,w=a.dragmode,A=(c.layout||{}).selections||[];if(!x(w)&&_!==void 0){var M=c._fullLayout._activeSelectionIndex;if(M<A.length)switch(c._fullLayout.selections[M].type){case"rect":w="select";break;case"path":w="lasso";break}}var g=t(h,c,d,_),b={xref:T._id,yref:l._id,opacity:m.opacity,line:{color:m.line.color,width:m.line.width,dash:m.line.dash}},v;g.length===1&&(v=g[0]),v&&v.length===5&&w==="select"?(b.type="rect",b.x0=v[0][1],b.y0=v[0][2],b.x1=v[2][1],b.y1=v[2][2]):(b.type="path",T&&l&&o(g,T,l),b.path=r(g),v=null),E(c);for(var u=a.editHelpers,y=(u||{}).modifyItem,f=[],R=0;R<A.length;R++){var L=c._fullLayout.selections[R];if(!L){f[R]=L;continue}if(f[R]=L._input,_!==void 0&&R===c._fullLayout._activeSelectionIndex){var z=b;switch(L.type){case"rect":y("x0",z.x0),y("x1",z.x1),y("y0",z.y0),y("y1",z.y1);break;case"path":y("path",z.path);break}}}return _===void 0?(f.push(b),f):u?u.getUpdateObj():{}}}}}}),hy=De({"src/components/shapes/constants.js"(Y,H){"use strict";H.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}}}}),Xp=De({"src/components/shapes/helpers.js"(Y){"use strict";var H=hy(),p=ui(),x=us();Y.rangeToShapePosition=function(e){return e.type==="log"?e.r2d:function(t){return t}},Y.shapePositionToRange=function(e){return e.type==="log"?e.d2r:function(t){return t}},Y.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}},Y.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}},Y.extractPathCoords=function(e,t,r){var o=[],i=e.match(H.segmentRE);return i.forEach(function(n){var a=t[n.charAt(0)].drawn;if(a!==void 0){var s=n.slice(1).match(H.paramRE);if(!(!s||s.length<a)){var h=s[a],c=r?h:p.cleanNumber(h);o.push(c)}}}),o},Y.countDefiningCoords=function(e,t,r){if(e!=="path")return 2;if(!t)return 0;let o=t.match(H.segmentRE);if(!o)return 0;let i=r==="x"?H.paramIsX:H.paramIsY;return o.reduce((n,a)=>{let s=a.charAt(0),h=i[s].drawn!==void 0;return n+(h?1:0)},0)},Y.getDataToPixel=function(e,t,r,o,i){var n=e._fullLayout._size,a;if(t)if(i==="domain")a=function(h){return t._length*(o?1-h:h)+t._offset};else{var s=Y.shapePositionToRange(t);a=function(h){var c=E(t,r);return t._offset+t.r2p(s(h,!0))+c},t.type==="date"&&(a=Y.decodeDate(a))}else o?a=function(h){return n.t+n.h*(1-h)}:a=function(h){return n.l+n.w*h};return a},Y.getPixelToData=function(e,t,r,o){var i=e._fullLayout._size,n;if(t)if(o==="domain")n=function(s){var h=(s-t._offset)/t._length;return r?1-h:h};else{var a=Y.rangeToShapePosition(t);n=function(s){return a(t.p2r(s-t._offset))}}else r?n=function(s){return 1-(s-i.t)/i.h}:n=function(s){return(s-i.l)/i.w};return n},Y.roundPositionForSharpStrokeRendering=function(e,t){var r=Math.round(t%2)===1,o=Math.round(e);return r?o+.5:o},Y.makeShapesOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.shapes[t]||{},o=e._fullLayout._plots[r.xref+r.yref],i=!!o;return i?o._hadPlotinfo=!0:(o={},r.xref&&r.xref!=="paper"&&(o.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&r.yref!=="paper"&&(o.yaxis=e._fullLayout[r.yref+"axis"])),o.xsizemode=r.xsizemode,o.ysizemode=r.ysizemode,o.xanchor=r.xanchor,o.yanchor=r.yanchor,{options:r,plotinfo:o}},Y.makeSelectionsOptionsAndPlotinfo=function(e,t){var r=e._fullLayout.selections[t]||{},o=e._fullLayout._plots[r.xref+r.yref],i=!!o;return i?o._hadPlotinfo=!0:(o={},r.xref&&(o.xaxis=e._fullLayout[r.xref+"axis"]),r.yref&&(o.yaxis=e._fullLayout[r.yref+"axis"])),{options:r,plotinfo:o}},Y.getPathString=function(e,t){let r=t.type,o=x.getRefType(t.xref),i=x.getRefType(t.yref),n=e._fullLayout._size;var a,s,h,c,m,d,T,l,_,w,A,M;function g(z,F,N,B){var I;if(z)if(F==="domain")B?I=function(U){return z._offset+z._length*(1-U)}:I=function(U){return z._offset+z._length*U};else{let U=Y.shapePositionToRange(z);I=function(O){return z._offset+z.r2p(U(O,!0))},N==="path"&&z.type==="date"&&(I=Y.decodeDate(I))}else B?I=function(U){return n.t+n.h*(1-U)}:I=function(U){return n.l+n.w*U};return I}if(o==="array"?(T=[],a=t.xref.map(function(z){return x.getFromId(e,z)}),T=t.xref.map(function(z,F){return g(a[F],x.getRefType(z),r,!1)})):(a=x.getFromId(e,t.xref),T=g(a,o,r,!1)),i==="array"?(l=[],s=t.yref.map(function(z){return x.getFromId(e,z)}),l=t.yref.map(function(z,F){return g(s[F],x.getRefType(z),r,!0)})):(s=x.getFromId(e,t.yref),l=g(s,i,r,!0)),r==="path")return S(t,T,l);if(o==="array")h=E(a[0],t.x0shift),c=E(a[1],t.x1shift),_=T[0](t.x0)+h,w=T[1](t.x1)+c;else if(h=E(a,t.x0shift),c=E(a,t.x1shift),t.xsizemode==="pixel"){let z=T(t.xanchor);_=z+t.x0+h,w=z+t.x1+c}else _=T(t.x0)+h,w=T(t.x1)+c;if(i==="array")m=E(s[0],t.y0shift),d=E(s[1],t.y1shift),A=l[0](t.y0)+m,M=l[1](t.y1)+d;else if(m=E(s,t.y0shift),d=E(s,t.y1shift),t.ysizemode==="pixel"){let z=l(t.yanchor);A=z-t.y0+m,M=z-t.y1+d}else A=l(t.y0)+m,M=l(t.y1)+d;if(r==="line")return"M"+_+","+A+"L"+w+","+M;if(r==="rect")return"M"+_+","+A+"H"+w+"V"+M+"H"+_+"Z";var b=(_+w)/2,v=(A+M)/2,u=Math.abs(b-_),y=Math.abs(v-A),f="A"+u+","+y,R=b+u+","+v,L=b+","+(v-y);return"M"+R+f+" 0 1,1 "+L+f+" 0 0,1 "+R+"Z"};function S(e,t,r){let o=e.path,i=e.xsizemode,n=e.ysizemode,a=e.xanchor,s=e.yanchor,h=Array.isArray(e.xref),c=Array.isArray(e.yref);var m=0,d=0;return o.replace(H.segmentRE,function(T){var l=0,_=T.charAt(0),w=H.paramIsX[_],A=H.paramIsY[_],M=H.numParams[_];let g=w.drawn!==void 0,b=A.drawn!==void 0,v=h?t[m]:t,u=c?r[d]:r;var y=T.slice(1).replace(H.paramRE,function(f){return w[l]?i==="pixel"?f=v(a)+Number(f):f=v(f):A[l]&&(n==="pixel"?f=u(s)-Number(f):f=u(f)),l++,l>M&&(f="X"),f});return l>M&&(y=y.replace(/[\s,]*X.*/,""),p.log("Ignoring extra params in segment "+T)),g&&m++,b&&d++,_+y})}function E(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}}}),i2=De({"src/components/shapes/display_labels.js"(Y,H){"use strict";var p=ui(),x=us(),S=vu(),E=ys(),e=Wp().readPaths,t=Xp(),r=t.getPathString,o=g_(),i=rh().FROM_TL;H.exports=function(h,c,m,d){if(d.selectAll(".shape-label").remove(),!!(m.label.text||m.label.texttemplate)){var T;if(m.label.texttemplate){var l={};if(m.type!=="path"){var _=x.getFromId(h,m.xref),w=x.getFromId(h,m.yref);let j=Array.isArray(m.xref),Q=Array.isArray(m.yref);for(var A in o){var M=typeof o[A]=="function",g=!j||o.simpleXVariables.includes(A),b=!Q||o.simpleYVariables.includes(A);if(M&&g&&b){var v=o[A](m,_,w);v!==void 0&&(l[A]=v)}}}T=p.texttemplateStringForShapes({data:[l],fallback:m.label.texttemplatefallback,locale:h._fullLayout._d3locale,template:m.label.texttemplate})}else T=m.label.text;var u={"data-index":c},y=m.label.font,f={"data-notex":1},R=d.append("g").attr(u).classed("shape-label",!0),L=R.append("text").attr(f).classed("shape-label-text",!0).text(T),z,F,N,B;if(m.path){var I=r(h,m),U=e(I,h);z=1/0,N=1/0,F=-1/0,B=-1/0;for(var O=0;O<U.length;O++)for(var X=0;X<U[O].length;X++)for(var J=U[O][X],se=1;se<J.length;se+=2){var le=J[se],ce=J[se+1];z=Math.min(z,le),F=Math.max(F,le),N=Math.min(N,ce),B=Math.max(B,ce)}}else{let j=Array.isArray(m.xref),Q=Array.isArray(m.yref),re=x.getFromId(h,j?m.xref[0]:m.xref),ue=x.getFromId(h,j?m.xref[1]:m.xref),_e=x.getFromId(h,Q?m.yref[0]:m.yref),we=x.getFromId(h,Q?m.yref[1]:m.yref),Re=x.getRefType(j?m.xref[0]:m.xref),ze=x.getRefType(j?m.xref[1]:m.xref),Xe=x.getRefType(Q?m.yref[0]:m.yref),tt=x.getRefType(Q?m.yref[1]:m.yref),it=function(nt,Ae,me,fe){return t.getDataToPixel(h,me,Ae,!1,fe)(nt)},et=function(nt,Ae,me,fe){return t.getDataToPixel(h,me,Ae,!0,fe)(nt)};z=it(m.x0,m.x0shift,re,Re),F=it(m.x1,m.x1shift,ue,ze),N=et(m.y0,m.y0shift,_e,Xe),B=et(m.y1,m.y1shift,we,tt)}var q=m.label.textangle;q==="auto"&&(m.type==="line"?q=n(z,N,F,B):q=0),L.call(function(j){return j.call(E.font,y).attr({}),S.convertToTspans(j,h),j});var Z=E.bBox(L.node()),ee=a(z,N,F,B,m,q,Z),V=ee.textx,oe=ee.texty,ie=ee.xanchor;L.attr({"text-anchor":{left:"start",center:"middle",right:"end"}[ie],y:oe,x:V,transform:"rotate("+q+","+V+","+oe+")"}).call(S.positionText,V,oe)}};function n(s,h,c,m){var d,T;return T=Math.abs(c-s),c>=s?d=h-m:d=m-h,-180/Math.PI*Math.atan2(d,T)}function a(s,h,c,m,d,T,l){var _=d.label.textposition,w=d.label.textangle,A=d.label.padding,M=d.type,g=Math.PI/180*T,b=Math.sin(g),v=Math.cos(g),u=d.label.xanchor,y=d.label.yanchor,f,R,L,z;if(M==="line"){_==="start"?(f=s,R=h):_==="end"?(f=c,R=m):(f=(s+c)/2,R=(h+m)/2),u==="auto"&&(_==="start"?w==="auto"?c>s?u="left":c<s?u="right":u="center":c>s?u="right":c<s?u="left":u="center":_==="end"?w==="auto"?c>s?u="right":c<s?u="left":u="center":c>s?u="left":c<s?u="right":u="center":u="center");var F={left:1,center:0,right:-1},N={bottom:-1,middle:0,top:1};if(w==="auto"){var B=N[y];L=-A*b*B,z=A*v*B}else{var I=F[u],U=N[y];L=A*I,z=A*U}f=f+L,R=R+z}else L=A+3,_.indexOf("right")!==-1?(f=Math.max(s,c)-L,u==="auto"&&(u="right")):_.indexOf("left")!==-1?(f=Math.min(s,c)+L,u==="auto"&&(u="left")):(f=(s+c)/2,u==="auto"&&(u="center")),_.indexOf("top")!==-1?R=Math.min(h,m):_.indexOf("bottom")!==-1?R=Math.max(h,m):R=(h+m)/2,z=A,y==="bottom"?R=R-z:y==="top"&&(R=R+z);var O=i[y],X=d.label.font.size,J=l.height,se=(J*O-X)*b,le=-(J*O-X)*v;return{textx:f+se,texty:R+le,xanchor:u}}}}),k_=De({"src/components/shapes/display_outlines.js"(Y,H){"use strict";var p=ui(),x=p.strTranslate,S=Qh(),E=dv(),e=E.drawMode,t=E.selectMode,r=Mo(),o=vo(),i=S_(),n=i.i000,a=i.i090,s=i.i180,h=i.i270,c=Vp(),m=c.clearOutlineControllers,d=Wp(),T=d.pointsOnRectangle,l=d.pointsOnEllipse,_=d.writePaths,w=E_().newShapes,A=E_().createShapeObj,M=r2(),g=i2();H.exports=function y(f,R,L,z){z||(z=0);var F=L.gd;function N(){y(f,R,L,z++),(l(f[0])||L.hasText)&&B({redrawing:!0})}function B(et){var nt={};L.isActiveShape!==void 0&&(L.isActiveShape=!1,nt=w(R,L)),L.isActiveSelection!==void 0&&(L.isActiveSelection=!1,nt=M(R,L),F._fullLayout._reselect=!0),Object.keys(nt).length&&r.call((et||{}).redrawing?"relayout":"_guiRelayout",F,nt)}var I=F._fullLayout,U=I._zoomlayer,O=L.dragmode,X=e(O),J=t(O);(X||J)&&(F._fullLayout._outlining=!0),m(F),R.attr("d",_(f));var se,le,ce,q,Z;if(!z&&(L.isActiveShape||L.isActiveSelection)){Z=b([],f);var ee=U.append("g").attr("class","outline-controllers");_e(ee),it()}if(X&&L.hasText){var V=U.select(".label-temp"),oe=A(R,L,L.dragmode);g(F,"label-temp",oe,V)}function ie(et){ce=+et.srcElement.getAttribute("data-i"),q=+et.srcElement.getAttribute("data-j"),se[ce][q].moveFn=j}function j(et,nt){if(f.length){var Ae=Z[ce][q][1],me=Z[ce][q][2],fe=f[ce],Be=fe.length;if(T(fe)){var Qe=et,at=nt;if(L.isActiveSelection){var $e=v(fe,q);$e[1]===fe[q][1]?at=0:Qe=0}for(var It=0;It<Be;It++)if(It!==q){var Pt=fe[It];Pt[1]===fe[q][1]&&(Pt[1]=Ae+Qe),Pt[2]===fe[q][2]&&(Pt[2]=me+at)}if(fe[q][1]=Ae+Qe,fe[q][2]=me+at,!T(fe))for(var Vt=0;Vt<Be;Vt++)for(var Wt=0;Wt<fe[Vt].length;Wt++)fe[Vt][Wt]=Z[ce][Vt][Wt]}else fe[q][1]=Ae+et,fe[q][2]=me+nt;N()}}function Q(){B()}function re(){if(f.length&&f[ce]&&f[ce].length){for(var et=[],nt=0;nt<f[ce].length;nt++)nt!==q&&et.push(f[ce][nt]);et.length>1&&!(et.length===2&&et[1][0]==="Z")&&(q===0&&(et[0][0]="M"),f[ce]=et,N(),B())}}function ue(et,nt){if(et===2){ce=+nt.srcElement.getAttribute("data-i"),q=+nt.srcElement.getAttribute("data-j");var Ae=f[ce];!T(Ae)&&!l(Ae)&&re()}}function _e(et){se=[];for(var nt=0;nt<f.length;nt++){var Ae=f[nt],me=T(Ae),fe=!me&&l(Ae);se[nt]=[];for(var Be=Ae.length,Qe=0;Qe<Be;Qe++)if(Ae[Qe][0]!=="Z"&&!(fe&&Qe!==n&&Qe!==a&&Qe!==s&&Qe!==h)){var at=me&&L.isActiveSelection,$e;at&&($e=v(Ae,Qe));var It=Ae[Qe][1],Pt=Ae[Qe][2],Vt=et.append(at?"rect":"circle").attr("data-i",nt).attr("data-j",Qe).style({fill:o.background,stroke:o.defaultLine,"stroke-width":1,"shape-rendering":"crispEdges"});if(at){var Wt=$e[1]-It,Cr=$e[2]-Pt,yr=Cr?5:Math.max(Math.min(25,Math.abs(Wt)-5),5),qr=Wt?5:Math.max(Math.min(25,Math.abs(Cr)-5),5);Vt.classed(Cr?"cursor-ew-resize":"cursor-ns-resize",!0).attr("width",yr).attr("height",qr).attr("x",It-yr/2).attr("y",Pt-qr/2).attr("transform",x(Wt/2,Cr/2))}else Vt.classed("cursor-grab",!0).attr("r",5).attr("cx",It).attr("cy",Pt);se[nt][Qe]={element:Vt.node(),gd:F,prepFn:ie,doneFn:Q,clickFn:ue},S.init(se[nt][Qe])}}}function we(et,nt){if(f.length)for(var Ae=0;Ae<f.length;Ae++)for(var me=0;me<f[Ae].length;me++)for(var fe=0;fe+2<f[Ae][me].length;fe+=2)f[Ae][me][fe+1]=Z[Ae][me][fe+1]+et,f[Ae][me][fe+2]=Z[Ae][me][fe+2]+nt}function Re(et,nt){we(et,nt),N()}function ze(et){ce=+et.srcElement.getAttribute("data-i"),ce||(ce=0),le[ce].moveFn=Re}function Xe(){B()}function tt(et){et===2&&u(F)}function it(){if(le=[],!!f.length){var et=0;le[et]={element:R[0][0],gd:F,prepFn:ze,doneFn:Xe,clickFn:tt},S.init(le[et])}}};function b(y,f){for(var R=0;R<f.length;R++){var L=f[R];y[R]=[];for(var z=0;z<L.length;z++){y[R][z]=[];for(var F=0;F<L[z].length;F++)y[R][z][F]=L[z][F]}}return y}function v(y,f){var R=y[f][1],L=y[f][2],z=y.length,F,N,B;return F=(f+1)%z,N=y[F][1],B=y[F][2],N===R&&B===L&&(F=(f+2)%z,N=y[F][1],B=y[F][2]),[F,N,B]}function u(y){if(t(y._fullLayout.dragmode)){m(y);var f=y._fullLayout._activeSelectionIndex,R=(y.layout||{}).selections||[];if(f<R.length){for(var L=[],z=0;z<R.length;z++)z!==f&&L.push(R[z]);delete y._fullLayout._activeSelectionIndex;var F=y._fullLayout.selections[f];y._fullLayout._deselect={xref:F.xref,yref:F.yref},r.call("_guiRelayout",y,{selections:L})}}}}}),C_=De({"src/components/shapes/draw.js"(Y,H){"use strict";var p=za(),x=Mo(),S=ui(),E=us(),e=Wp().readPaths,t=k_(),r=i2(),o=Vp().clearOutlineControllers,i=vo(),n=ys(),a=Gl().arrayEditor,s=Qh(),h=hv(),c=hy(),m=Xp(),d=m.getPathString;H.exports={draw:T,drawOne:w,eraseActiveShape:y,drawLabel:r};function T(f){var R=f._fullLayout;R._shapeUpperLayer.selectAll("path").remove(),R._shapeLowerLayer.selectAll("path").remove(),R._shapeUpperLayer.selectAll("text").remove(),R._shapeLowerLayer.selectAll("text").remove();for(var L in R._plots){var z=R._plots[L].shapelayer;z&&(z.selectAll("path").remove(),z.selectAll("text").remove())}for(var F=0;F<R.shapes.length;F++)R.shapes[F].visible===!0&&w(f,F)}function l(f){return!!f._fullLayout._outlining}function _(f){return!f._context.edits.shapePosition}function w(f,R){f._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+R+'"]').remove();var L=m.makeShapesOptionsAndPlotinfo(f,R),z=L.options,F=L.plotinfo;if(!z._input||z.visible!==!0)return;let N=Array.isArray(z.xref)||Array.isArray(z.yref);if(z.layer==="above")I(f._fullLayout._shapeUpperLayer);else if(z.xref.includes("paper")||z.yref.includes("paper"))I(f._fullLayout._shapeLowerLayer);else if(z.layer==="between"&&!N)I(F.shapelayerBetween);else if(F._hadPlotinfo){var B=F.mainplotinfo||F;I(B.shapelayer)}else I(f._fullLayout._shapeLowerLayer);function I(U){var O=d(f,z),X={"data-index":R,"fill-rule":z.fillrule,d:O},J=z.opacity,se=z.fillcolor,le=z.line.width?z.line.color:"rgba(0,0,0,0)",ce=z.line.width,q=z.line.dash;!ce&&z.editable===!0&&(ce=5,q="solid");var Z=O[O.length-1]!=="Z",ee=_(f)&&z.editable&&f._fullLayout._activeShapeIndex===R;ee&&(se=Z?"rgba(0,0,0,0)":f._fullLayout.activeshape.fillcolor,J=f._fullLayout.activeshape.opacity);var V=U.append("g").classed("shape-group",!0).attr({"data-index":R}),oe=V.append("path").attr(X).style("opacity",J).call(i.stroke,le).call(i.fill,se).call(n.dashLine,q,ce);A(V,f,z),r(f,R,z,V);var ie;if((ee||f._context.edits.shapePosition)&&(ie=a(f.layout,"shapes",z)),ee){oe.style({cursor:"move"});var j={element:oe.node(),plotinfo:F,gd:f,editHelpers:ie,hasText:z.label.text||z.label.texttemplate,isActiveShape:!0},Q=e(O,f);t(Q,oe,j)}else f._context.edits.shapePosition?g(f,oe,z,R,U,ie):z.editable===!0&&oe.style("pointer-events",Z||i.opacity(se)*J<=.5?"stroke":"all");oe.node().addEventListener("click",function(){return v(f,oe)})}}function A(f,R,L){let z=L.xref,F=L.yref;if(Array.isArray(z)||Array.isArray(F)){let N="clip"+R._fullLayout._uid+"shape"+L._index,B=M(R,z,F);S.ensureSingleById(R._fullLayout._clips,"clipPath",N,function(I){I.append("rect")}).select("rect").attr(B),n.setClipUrl(f,N,R)}else{let N=(z+F).replace(/paper/g,"").replace(/[xyz][0-9]* *domain/g,"");n.setClipUrl(f,N?"clip"+R._fullLayout._uid+N:null,R)}}function M(f,R,L){let z=f._fullLayout._size;function F(I,U){let O=(Array.isArray(I)?I:[I]).map(se=>E.getFromId(f,se)).filter(Boolean);if(!O.length)return U?[z.t,z.t+z.h]:[z.l,z.l+z.w];let X=O.map(function(se){return se._offset}),J=O.map(function(se){return se._offset+se._length});return[Math.min(...X),Math.max(...J)]}let N=F(R,!1),B=F(L,!0);return{x:N[0],y:B[0],width:N[1]-N[0],height:B[1]-B[0]}}function g(f,R,L,z,F,N){var B=10,I=10,U=L.xsizemode==="pixel",O=L.ysizemode==="pixel",X=L.type==="line",J=L.type==="path",se=N.modifyItem,le,ce,q,Z,ee,V,oe,ie,j,Q,re,ue,_e,we,Re,ze=p.select(R.node().parentNode),Xe=E.getFromId(f,L.xref),tt=E.getRefType(L.xref),it=E.getFromId(f,L.yref),et=E.getRefType(L.yref),nt=L.x0shift,Ae=L.x1shift,me=L.y0shift,fe=L.y1shift,Be=function(qe,ke){var Me=m.getDataToPixel(f,Xe,ke,!1,tt);return Me(qe)},Qe=function(qe,ke){var Me=m.getDataToPixel(f,it,ke,!0,et);return Me(qe)},at=m.getPixelToData(f,Xe,!1,tt),$e=m.getPixelToData(f,it,!0,et),It=Wt(),Pt={element:It.node(),gd:f,prepFn:qr,doneFn:Mr,clickFn:Dr},Vt;s.init(Pt),It.node().onmousemove=yr;function Wt(){return X?Cr():R}function Cr(){var qe=10,ke=Math.max(L.line.width,qe),Me=F.append("g").attr("data-index",z).attr("drag-helper",!0);Me.append("path").attr("d",R.attr("d")).style({cursor:"move","stroke-width":ke,"stroke-opacity":"0"});var Le={"fill-opacity":"0"},ut=Math.max(ke/2,qe);return Me.append("circle").attr({"data-line-point":"start-point",cx:U?Be(L.xanchor)+L.x0:Be(L.x0,nt),cy:O?Qe(L.yanchor)-L.y0:Qe(L.y0,me),r:ut}).style(Le).classed("cursor-grab",!0),Me.append("circle").attr({"data-line-point":"end-point",cx:U?Be(L.xanchor)+L.x1:Be(L.x1,Ae),cy:O?Qe(L.yanchor)-L.y1:Qe(L.y1,fe),r:ut}).style(Le).classed("cursor-grab",!0),Me}function yr(qe){if(l(f)){Vt=null;return}if(X)qe.target.tagName==="path"?Vt="move":Vt=qe.target.attributes["data-line-point"].value==="start-point"?"resize-over-start-point":"resize-over-end-point";else{var ke=Pt.element.getBoundingClientRect(),Me=ke.right-ke.left,Le=ke.bottom-ke.top,ut=qe.clientX-ke.left,lt=qe.clientY-ke.top,gt=!J&&Me>B&&Le>I&&!qe.shiftKey?s.getCursor(ut/Me,1-lt/Le):"move";h(R,gt),Vt=gt.split("-")[0]}}function qr(qe){l(f)||(U&&(ee=Be(L.xanchor)),O&&(V=Qe(L.yanchor)),L.type==="path"?Re=L.path:(le=U?L.x0:Be(L.x0),ce=O?L.y0:Qe(L.y0),q=U?L.x1:Be(L.x1),Z=O?L.y1:Qe(L.y1)),le<q?(j=le,_e="x0",Q=q,we="x1"):(j=q,_e="x1",Q=le,we="x0"),!O&&ce<Z||O&&ce>Z?(oe=ce,re="y0",ie=Z,ue="y1"):(oe=Z,re="y1",ie=ce,ue="y0"),yr(qe),Ye(F,L),Ie(R,L,f),Pt.moveFn=Vt==="move"?xt:Ne,Pt.altKey=qe.altKey)}function Mr(){l(f)||(h(R),be(F),A(R,f,L),x.call("_guiRelayout",f,N.getUpdateObj()))}function Dr(){l(f)||be(F)}function xt(qe,ke){if(L.type==="path"){var Me=function(lt){return lt},Le=Me,ut=Me;U?se("xanchor",L.xanchor=at(ee+qe)):(Le=function(gt){return at(Be(gt)+qe)},Xe&&Xe.type==="date"&&(Le=m.encodeDate(Le))),O?se("yanchor",L.yanchor=$e(V+ke)):(ut=function(gt){return $e(Qe(gt)+ke)},it&&it.type==="date"&&(ut=m.encodeDate(ut))),se("path",L.path=b(Re,Le,ut))}else U?se("xanchor",L.xanchor=at(ee+qe)):(se("x0",L.x0=at(le+qe)),se("x1",L.x1=at(q+qe))),O?se("yanchor",L.yanchor=$e(V+ke)):(se("y0",L.y0=$e(ce+ke)),se("y1",L.y1=$e(Z+ke)));R.attr("d",d(f,L)),Ye(F,L),r(f,z,L,ze)}function Ne(qe,ke){if(J){var Me=function(_a){return _a},Le=Me,ut=Me;U?se("xanchor",L.xanchor=at(ee+qe)):(Le=function(Ca){return at(Be(Ca)+qe)},Xe&&Xe.type==="date"&&(Le=m.encodeDate(Le))),O?se("yanchor",L.yanchor=$e(V+ke)):(ut=function(Ca){return $e(Qe(Ca)+ke)},it&&it.type==="date"&&(ut=m.encodeDate(ut))),se("path",L.path=b(Re,Le,ut))}else if(X){if(Vt==="resize-over-start-point"){var lt=le+qe,gt=O?ce-ke:ce+ke;se("x0",L.x0=U?lt:at(lt)),se("y0",L.y0=O?gt:$e(gt))}else if(Vt==="resize-over-end-point"){var kt=q+qe,nr=O?Z-ke:Z+ke;se("x1",L.x1=U?kt:at(kt)),se("y1",L.y1=O?nr:$e(nr))}}else{var ir=function(_a){return Vt.indexOf(_a)!==-1},tr=ir("n"),Ir=ir("s"),vi=ir("w"),Vi=ir("e"),Ui=tr?oe+ke:oe,Ki=Ir?ie+ke:ie,ea=vi?j+qe:j,Bi=Vi?Q+qe:Q;O&&(tr&&(Ui=oe-ke),Ir&&(Ki=ie-ke)),(!O&&Ki-Ui>I||O&&Ui-Ki>I)&&(se(re,L[re]=O?Ui:$e(Ui)),se(ue,L[ue]=O?Ki:$e(Ki))),Bi-ea>B&&(se(_e,L[_e]=U?ea:at(ea)),se(we,L[we]=U?Bi:at(Bi)))}R.attr("d",d(f,L)),Ye(F,L),r(f,z,L,ze)}function Ye(qe,ke){(U||O)&&Me();function Me(){var Le=ke.type!=="path",ut=qe.selectAll(".visual-cue").data([0]),lt=1;ut.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":lt}).classed("visual-cue",!0);var gt=Be(U?ke.xanchor:S.midRange(Le?[ke.x0,ke.x1]:m.extractPathCoords(ke.path,c.paramIsX))),kt=Qe(O?ke.yanchor:S.midRange(Le?[ke.y0,ke.y1]:m.extractPathCoords(ke.path,c.paramIsY)));if(gt=m.roundPositionForSharpStrokeRendering(gt,lt),kt=m.roundPositionForSharpStrokeRendering(kt,lt),U&&O){var nr="M"+(gt-1-lt)+","+(kt-1-lt)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";ut.attr("d",nr)}else if(U){var ir="M"+(gt-1-lt)+","+(kt-9-lt)+"v18 h2 v-18 Z";ut.attr("d",ir)}else{var tr="M"+(gt-9-lt)+","+(kt-1-lt)+"h18 v2 h-18 Z";ut.attr("d",tr)}}}function be(qe){qe.selectAll(".visual-cue").remove()}function Ie(qe,ke,Me){var Le=ke.xref,ut=ke.yref,lt=E.getFromId(Me,Le),gt=E.getFromId(Me,ut),kt="";Le!=="paper"&&!lt.autorange&&(kt+=Le),ut!=="paper"&&!gt.autorange&&(kt+=ut),n.setClipUrl(qe,kt?"clip"+Me._fullLayout._uid+kt:null,Me)}}function b(f,R,L){return f.replace(c.segmentRE,function(z){var F=0,N=z.charAt(0),B=c.paramIsX[N],I=c.paramIsY[N],U=c.numParams[N],O=z.slice(1).replace(c.paramRE,function(X){return F>=U||(B[F]?X=R(X):I[F]&&(X=L(X)),F++),X});return N+O})}function v(f,R){if(_(f)){var L=R.node(),z=+L.getAttribute("data-index");if(z>=0){if(z===f._fullLayout._activeShapeIndex){u(f);return}f._fullLayout._activeShapeIndex=z,f._fullLayout._deactivateShape=u,T(f)}}}function u(f){if(_(f)){var R=f._fullLayout._activeShapeIndex;R>=0&&(o(f),delete f._fullLayout._activeShapeIndex,T(f))}}function y(f){if(_(f)){o(f);var R=f._fullLayout._activeShapeIndex,L=(f.layout||{}).shapes||[];if(R<L.length){for(var z=[],F=0;F<L.length;F++)F!==R&&z.push(L[F]);return delete f._fullLayout._activeShapeIndex,x.call("_guiRelayout",f,{shapes:z})}}}}}),a2=De({"src/components/modebar/buttons.js"(Y,H){"use strict";var p=Mo(),x=Mc(),S=nf(),E=A_(),e=C_().eraseActiveShape,t=ui(),r=t._,o=H.exports={};o.toImage={name:"toImage",title:function(M){var g=M._context.toImageButtonOptions||{},b=g.format||"png";return b==="png"?r(M,"Download plot as a PNG"):r(M,"Download plot")},icon:E.camera,click:function(M){var g=M._context.toImageButtonOptions,b={format:g.format||"png"};t.notifier(r(M,"Taking snapshot - this may take a few seconds"),"long"),["filename","width","height","scale"].forEach(function(v){v in g&&(b[v]=g[v])}),p.call("downloadImage",M,b).then(function(v){t.notifier(r(M,"Snapshot succeeded")+" - "+v,"long")}).catch(function(){t.notifier(r(M,"Sorry, there was a problem downloading your snapshot!"),"long")})}},o.sendDataToCloud={name:"sendDataToCloud",title:function(M){return r(M,"Edit in Chart Studio")},icon:E.disk,click:function(M){x.sendDataToCloud(M)}},o.editInChartStudio={name:"editInChartStudio",title:function(M){return r(M,"Edit in Chart Studio")},icon:E.pencil,click:function(M){x.sendDataToCloud(M)}},o.zoom2d={name:"zoom2d",_cat:"zoom",title:function(M){return r(M,"Zoom")},attr:"dragmode",val:"zoom",icon:E.zoombox,click:i},o.pan2d={name:"pan2d",_cat:"pan",title:function(M){return r(M,"Pan")},attr:"dragmode",val:"pan",icon:E.pan,click:i},o.select2d={name:"select2d",_cat:"select",title:function(M){return r(M,"Box Select")},attr:"dragmode",val:"select",icon:E.selectbox,click:i},o.lasso2d={name:"lasso2d",_cat:"lasso",title:function(M){return r(M,"Lasso Select")},attr:"dragmode",val:"lasso",icon:E.lasso,click:i},o.drawclosedpath={name:"drawclosedpath",title:function(M){return r(M,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:E.drawclosedpath,click:i},o.drawopenpath={name:"drawopenpath",title:function(M){return r(M,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:E.drawopenpath,click:i},o.drawline={name:"drawline",title:function(M){return r(M,"Draw line")},attr:"dragmode",val:"drawline",icon:E.drawline,click:i},o.drawrect={name:"drawrect",title:function(M){return r(M,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:E.drawrect,click:i},o.drawcircle={name:"drawcircle",title:function(M){return r(M,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:E.drawcircle,click:i},o.eraseshape={name:"eraseshape",title:function(M){return r(M,"Erase active shape")},icon:E.eraseshape,click:e},o.zoomIn2d={name:"zoomIn2d",_cat:"zoomin",title:function(M){return r(M,"Zoom in")},attr:"zoom",val:"in",icon:E.zoom_plus,click:i},o.zoomOut2d={name:"zoomOut2d",_cat:"zoomout",title:function(M){return r(M,"Zoom out")},attr:"zoom",val:"out",icon:E.zoom_minus,click:i},o.autoScale2d={name:"autoScale2d",_cat:"autoscale",title:function(M){return r(M,"Autoscale")},attr:"zoom",val:"auto",icon:E.autoscale,click:i},o.resetScale2d={name:"resetScale2d",_cat:"resetscale",title:function(M){return r(M,"Reset axes")},attr:"zoom",val:"reset",icon:E.home,click:i},o.hoverClosestCartesian={name:"hoverClosestCartesian",_cat:"hoverclosest",title:function(M){return r(M,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:E.tooltip_basic,gravity:"ne",click:i},o.hoverCompareCartesian={name:"hoverCompareCartesian",_cat:"hoverCompare",title:function(M){return r(M,"Compare data on hover")},attr:"hovermode",val:function(M){return M._fullLayout._isHoriz?"y":"x"},icon:E.tooltip_compare,gravity:"ne",click:i};function i(M,g){var b=g.currentTarget,v=b.getAttribute("data-attr"),u=b.getAttribute("data-val")||!0,y=M._fullLayout,f={},R=S.list(M,null,!0),L=y._cartesianSpikesEnabled,z,F;if(v==="zoom"){var N=u==="in"?.5:2,B=(1+N)/2,I=(1-N)/2,U,O;for(F=0;F<R.length;F++)if(z=R[F],O=z.modebardisable==="none"||z.modebardisable.indexOf(u==="auto"||u==="reset"?"autoscale":"zoominout")===-1,O&&!z.fixedrange)if(U=z._name,u==="auto")f[U+".autorange"]=!0;else if(u==="reset")z._rangeInitial0===void 0&&z._rangeInitial1===void 0?f[U+".autorange"]=!0:z._rangeInitial0===void 0?(f[U+".autorange"]=z._autorangeInitial,f[U+".range"]=[null,z._rangeInitial1]):z._rangeInitial1===void 0?(f[U+".range"]=[z._rangeInitial0,null],f[U+".autorange"]=z._autorangeInitial):f[U+".range"]=[z._rangeInitial0,z._rangeInitial1],z._showSpikeInitial!==void 0&&(f[U+".showspikes"]=z._showSpikeInitial,L==="on"&&!z._showSpikeInitial&&(L="off"));else{var X=[z.r2l(z.range[0]),z.r2l(z.range[1])],J=[B*X[0]+I*X[1],B*X[1]+I*X[0]];f[U+".range[0]"]=z.l2r(J[0]),f[U+".range[1]"]=z.l2r(J[1])}}else v==="hovermode"&&(u==="x"||u==="y")&&(u=y._isHoriz?"y":"x",b.setAttribute("data-val",u)),f[v]=u;y._cartesianSpikesEnabled=L,p.call("_guiRelayout",M,f)}o.zoom3d={name:"zoom3d",_cat:"zoom",title:function(M){return r(M,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:E.zoombox,click:n},o.pan3d={name:"pan3d",_cat:"pan",title:function(M){return r(M,"Pan")},attr:"scene.dragmode",val:"pan",icon:E.pan,click:n},o.orbitRotation={name:"orbitRotation",title:function(M){return r(M,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:E["3d_rotate"],click:n},o.tableRotation={name:"tableRotation",title:function(M){return r(M,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:E["z-axis"],click:n};function n(M,g){for(var b=g.currentTarget,v=b.getAttribute("data-attr"),u=b.getAttribute("data-val")||!0,y=M._fullLayout._subplots.gl3d||[],f={},R=v.split("."),L=0;L<y.length;L++)f[y[L]+"."+R[1]]=u;var z=u==="pan"?u:"zoom";f.dragmode=z,p.call("_guiRelayout",M,f)}o.resetCameraDefault3d={name:"resetCameraDefault3d",_cat:"resetCameraDefault",title:function(M){return r(M,"Reset camera to default")},attr:"resetDefault",icon:E.home,click:a},o.resetCameraLastSave3d={name:"resetCameraLastSave3d",_cat:"resetCameraLastSave",title:function(M){return r(M,"Reset camera to last save")},attr:"resetLastSave",icon:E.movie,click:a};function a(M,g){for(var b=g.currentTarget,v=b.getAttribute("data-attr"),u=v==="resetLastSave",y=v==="resetDefault",f=M._fullLayout,R=f._subplots.gl3d||[],L={},z=0;z<R.length;z++){var F=R[z],N=F+".camera",B=F+".aspectratio",I=F+".aspectmode",U=f[F]._scene,O;u?(L[N+".up"]=U.viewInitial.up,L[N+".eye"]=U.viewInitial.eye,L[N+".center"]=U.viewInitial.center,O=!0):y&&(L[N+".up"]=null,L[N+".eye"]=null,L[N+".center"]=null,O=!0),O&&(L[B+".x"]=U.viewInitial.aspectratio.x,L[B+".y"]=U.viewInitial.aspectratio.y,L[B+".z"]=U.viewInitial.aspectratio.z,L[I]=U.viewInitial.aspectmode)}p.call("_guiRelayout",M,L)}o.hoverClosest3d={name:"hoverClosest3d",_cat:"hoverclosest",title:function(M){return r(M,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:E.tooltip_basic,gravity:"ne",click:h};function s(M,g){var b=g.currentTarget,v=b._previousVal,u=M._fullLayout,y=u._subplots.gl3d||[],f=["xaxis","yaxis","zaxis"],R={},L={};if(v)L=v,b._previousVal=null;else{for(var z=0;z<y.length;z++){var F=y[z],N=u[F],B=F+".hovermode";R[B]=N.hovermode,L[B]=!1;for(var I=0;I<3;I++){var U=f[I],O=F+"."+U+".showspikes";L[O]=!1,R[O]=N[U].showspikes}}b._previousVal=R}return L}function h(M,g){var b=s(M,g);p.call("_guiRelayout",M,b)}o.zoomInGeo={name:"zoomInGeo",_cat:"zoomin",title:function(M){return r(M,"Zoom in")},attr:"zoom",val:"in",icon:E.zoom_plus,click:c},o.zoomOutGeo={name:"zoomOutGeo",_cat:"zoomout",title:function(M){return r(M,"Zoom out")},attr:"zoom",val:"out",icon:E.zoom_minus,click:c},o.resetGeo={name:"resetGeo",_cat:"reset",title:function(M){return r(M,"Reset")},attr:"reset",val:null,icon:E.autoscale,click:c},o.hoverClosestGeo={name:"hoverClosestGeo",_cat:"hoverclosest",title:function(M){return r(M,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:E.tooltip_basic,gravity:"ne",click:d};function c(M,g){for(var b=g.currentTarget,v=b.getAttribute("data-attr"),u=b.getAttribute("data-val")||!0,y=M._fullLayout,f=y._subplots.geo||[],R=0;R<f.length;R++){var L=f[R],z=y[L];if(v==="zoom"){var F=z.projection.scale,N=u==="in"?2*F:.5*F;p.call("_guiRelayout",M,L+".projection.scale",N)}}v==="reset"&&A(M,"geo")}o.hoverClosestPie={name:"hoverClosestPie",_cat:"hoverclosest",title:function(M){return r(M,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:E.tooltip_basic,gravity:"ne",click:d};function m(M){var g=M._fullLayout;return g.hovermode?!1:g._has("cartesian")?g._isHoriz?"y":"x":"closest"}function d(M){var g=m(M);p.call("_guiRelayout",M,"hovermode",g)}o.resetViewSankey={name:"resetSankeyGroup",title:function(M){return r(M,"Reset view")},icon:E.home,click:function(M){for(var g={"node.groups":[],"node.x":[],"node.y":[]},b=0;b<M._fullData.length;b++){var v=M._fullData[b]._viewInitial;g["node.groups"].push(v.node.groups.slice()),g["node.x"].push(v.node.x.slice()),g["node.y"].push(v.node.y.slice())}p.call("restyle",M,g)}},o.toggleHover={name:"toggleHover",title:function(M){return r(M,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:E.tooltip_basic,gravity:"ne",click:function(M,g){var b=s(M,g);b.hovermode=m(M),p.call("_guiRelayout",M,b)}},o.resetViews={name:"resetViews",title:function(M){return r(M,"Reset views")},icon:E.home,click:function(M,g){var b=g.currentTarget;b.setAttribute("data-attr","zoom"),b.setAttribute("data-val","reset"),i(M,g),b.setAttribute("data-attr","resetLastSave"),a(M,g),A(M,"geo"),A(M,"mapbox"),A(M,"map")}},o.toggleSpikelines={name:"toggleSpikelines",title:function(M){return r(M,"Toggle Spike Lines")},icon:E.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(M){var g=M._fullLayout,b=g._cartesianSpikesEnabled;g._cartesianSpikesEnabled=b==="on"?"off":"on",p.call("_guiRelayout",M,T(M))}};function T(M){for(var g=M._fullLayout,b=g._cartesianSpikesEnabled==="on",v=S.list(M,null,!0),u={},y=0;y<v.length;y++){var f=v[y];u[f._name+".showspikes"]=b?!0:f._showSpikeInitial}return u}o.resetViewMapbox={name:"resetViewMapbox",_cat:"resetView",title:function(M){return r(M,"Reset view")},attr:"reset",icon:E.home,click:function(M){A(M,"mapbox")}},o.resetViewMap={name:"resetViewMap",_cat:"resetView",title:function(M){return r(M,"Reset view")},attr:"reset",icon:E.home,click:function(M){A(M,"map")}},o.zoomInMapbox={name:"zoomInMapbox",_cat:"zoomin",title:function(M){return r(M,"Zoom in")},attr:"zoom",val:"in",icon:E.zoom_plus,click:l},o.zoomInMap={name:"zoomInMap",_cat:"zoomin",title:function(M){return r(M,"Zoom in")},attr:"zoom",val:"in",icon:E.zoom_plus,click:_},o.zoomOutMapbox={name:"zoomOutMapbox",_cat:"zoomout",title:function(M){return r(M,"Zoom out")},attr:"zoom",val:"out",icon:E.zoom_minus,click:l},o.zoomOutMap={name:"zoomOutMap",_cat:"zoomout",title:function(M){return r(M,"Zoom out")},attr:"zoom",val:"out",icon:E.zoom_minus,click:_};function l(M,g){w(M,g,"mapbox")}function _(M,g){w(M,g,"map")}function w(M,g,b){for(var v=g.currentTarget,u=v.getAttribute("data-val"),y=M._fullLayout,f=y._subplots[b]||[],R=1.05,L={},z=0;z<f.length;z++){var F=f[z],N=y[F].zoom,B=u==="in"?R*N:N/R;L[F+".zoom"]=B}p.call("_guiRelayout",M,L)}function A(M,g){for(var b=M._fullLayout,v=b._subplots[g]||[],u={},y=0;y<v.length;y++)for(var f=v[y],R=b[f]._subplot,L=R.viewInitial,z=Object.keys(L),F=0;F<z.length;F++){var N=z[F];u[f+"."+N]=L[N]}p.call("_guiRelayout",M,u)}}}),n2=De({"src/components/modebar/constants.js"(Y,H){"use strict";var p=a2(),x=Object.keys(p),S=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"],E=["v1hovermode","hoverclosest","hovercompare","togglehover","togglespikelines"].concat(S),e=[],t=function(r){if(E.indexOf(r._cat||r.name)===-1){var o=r.name,i=(r._cat||r.name).toLowerCase();e.indexOf(o)===-1&&e.push(o),e.indexOf(i)===-1&&e.push(i)}};x.forEach(function(r){t(p[r])}),e.sort(),H.exports={DRAW_MODES:S,backButtons:E,foreButtons:e}}}),o2=De({"src/components/modebar/attributes.js"(Y,H){"use strict";var p=n2();H.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"}}}}),WM=De({"src/components/modebar/defaults.js"(Y,H){"use strict";var p=ui(),x=vo(),S=Gl(),E=o2();H.exports=function(t,r){var o=t.modebar||{},i=S.newContainer(r,"modebar");function n(s,h){return p.coerce(o,i,E,s,h)}n("orientation"),n("bgcolor",x.addOpacity(r.paper_bgcolor,.5));var a=x.contrast(x.rgb(r.modebar.bgcolor));n("color",x.addOpacity(a,.3)),n("activecolor",x.addOpacity(a,.7)),n("uirevision",r.uirevision),n("add"),n("remove")}}}),XM=De({"src/components/modebar/modebar.js"(Y,H){"use strict";var p=za(),x=vn(),S=ui(),E=A_(),e=en().version,t=new DOMParser;function r(a){this.container=a.container,this.element=document.createElement("div"),this.update(a.graphInfo,a.buttons),this.container.appendChild(this.element)}var o=r.prototype;o.update=function(a,s){this.graphInfo=a;var h=this.graphInfo._context,c=this.graphInfo._fullLayout,m="modebar-"+c._uid;this.element.setAttribute("id",m),this.element.setAttribute("role","toolbar"),this._uid=m,this.element.className="modebar modebar--custom",h.displayModeBar==="hover"&&(this.element.className+=" modebar--hover ease-bg"),c.modebar.orientation==="v"&&(this.element.className+=" vertical",s=s.reverse());var d=c.modebar,T="#"+m+" .modebar-group";document.querySelectorAll(T).forEach(function(M){M.style.backgroundColor=d.bgcolor});var l=!this.hasButtons(s),_=this.hasLogo!==h.displaylogo,w=this.locale!==h.locale;if(this.locale=h.locale,(l||_||w)&&(this.removeAllButtons(),this.updateButtons(s),h.watermark||h.displaylogo)){var A=this.getLogo();h.watermark&&(A.className=A.className+" watermark"),c.modebar.orientation==="v"?this.element.insertBefore(A,this.element.childNodes[0]):this.element.appendChild(A),this.hasLogo=!0}this.updateActiveButton(),S.setStyleOnHover("#"+m+" .modebar-btn",".active",".icon path","fill: "+d.activecolor,"fill: "+d.color,this.element)},o.updateButtons=function(a){var s=this;this.buttons=a,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(h){var c=s.createGroup();h.forEach(function(m){var d=m.name;if(!d)throw new Error("must provide button 'name' in button config");if(s.buttonsNames.indexOf(d)!==-1)throw new Error("button name '"+d+"' is taken");s.buttonsNames.push(d);var T=s.createButton(m);s.buttonElements.push(T),c.appendChild(T)}),s.element.appendChild(c)})},o.createGroup=function(){var a=document.createElement("div");a.className="modebar-group";var s=this.graphInfo._fullLayout.modebar;return a.style.backgroundColor=s.bgcolor,a},o.createButton=function(a){var s=this,h=document.createElement("button");h.setAttribute("type","button"),h.setAttribute("rel","tooltip"),h.className="modebar-btn";var c=a.title;c===void 0?c=a.name:typeof c=="function"&&(c=c(this.graphInfo)),(c||c===0)&&(h.setAttribute("data-title",c),h.setAttribute("aria-label",c)),a.attr!==void 0&&h.setAttribute("data-attr",a.attr);var m=a.val;m!==void 0&&(typeof m=="function"&&(m=m(this.graphInfo)),h.setAttribute("data-val",m));var d=a.click;if(typeof d!="function")throw new Error("must provide button 'click' function in button config");h.addEventListener("click",function(l){a.click(s.graphInfo,l),s.updateActiveButton(l.currentTarget)}),h.setAttribute("data-toggle",a.toggle||!1),a.toggle&&p.select(h).classed("active",!0);var T=a.icon;return typeof T=="function"?h.appendChild(T()):h.appendChild(this.createIcon(T||E.question)),h.setAttribute("data-gravity",a.gravity||"n"),h},o.createIcon=function(a){var s=x(a.height)?Number(a.height):a.ascent-a.descent,h="http://www.w3.org/2000/svg",c;if(a.path){c=document.createElementNS(h,"svg"),c.setAttribute("viewBox",[0,0,a.width,s].join(" ")),c.setAttribute("class","icon");var m=document.createElementNS(h,"path");m.setAttribute("d",a.path),a.transform?m.setAttribute("transform",a.transform):a.ascent!==void 0&&m.setAttribute("transform","matrix(1 0 0 -1 0 "+a.ascent+")"),c.appendChild(m)}if(a.svg){var d=t.parseFromString(a.svg,"application/xml");c=d.childNodes[0]}return c.setAttribute("height","1em"),c.setAttribute("width","1em"),c},o.updateActiveButton=function(a){var s=this.graphInfo._fullLayout,h=a!==void 0?a.getAttribute("data-attr"):null;this.buttonElements.forEach(function(c){var m=c.getAttribute("data-val")||!0,d=c.getAttribute("data-attr"),T=c.getAttribute("data-toggle")==="true",l=p.select(c),_=function(M,g){var b=s.modebar,v=M.querySelector(".icon path");v&&(g||M.matches(":hover")?v.style.fill=b.activecolor:v.style.fill=b.color)};if(T){if(d===h){var w=!l.classed("active");l.classed("active",w),_(c,w)}}else{var A=d===null?d:S.nestedProperty(s,d).get();l.classed("active",A===m),_(c,A===m)}})},o.hasButtons=function(a){var s=this.buttons;if(!s||a.length!==s.length)return!1;for(var h=0;h<a.length;++h){if(a[h].length!==s[h].length)return!1;for(var c=0;c<a[h].length;c++)if(a[h][c].name!==s[h][c].name)return!1}return!0};function i(a){return a+" (v"+e+")"}o.getLogo=function(){var a=this.createGroup(),s=document.createElement("a");return s.href="https://plotly.com/",s.target="_blank",s.setAttribute("data-title",i(S._(this.graphInfo,"Produced with Plotly.js"))),s.className="modebar-btn plotlyjsicon modebar-btn--logo",s.appendChild(this.createIcon(E.newplotlylogo)),a.appendChild(s),a},o.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},o.destroy=function(){S.removeElement(this.container.querySelector(".modebar"))};function n(a,s){var h=a._fullLayout,c=new r({graphInfo:a,container:h._modebardiv.node(),buttons:s});return h._privateplot&&p.select(c.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),c}H.exports=n}}),YM=De({"src/components/modebar/manage.js"(Y,H){"use strict";var p=nf(),x=Hu(),S=Mo(),E=Ad().isUnifiedHover,e=XM(),t=a2(),r=n2().DRAW_MODES,o=ui().extendDeep;H.exports=function(d){var T=d._fullLayout,l=d._context,_=T._modeBar;if(!l.displayModeBar&&!l.watermark){_&&(_.destroy(),delete T._modeBar);return}if(!Array.isArray(l.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(l.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var w=l.modeBarButtons,A;Array.isArray(w)&&w.length?A=c(w):!l.displayModeBar&&l.watermark?A=[]:A=i(d),_?_.update(d,A):T._modeBar=e(d,A)};function i(m){var d=m._fullLayout,T=m._fullData,l=m._context;function _(j,Q){if(typeof Q=="string"){if(Q.toLowerCase()===j.toLowerCase())return!0}else{var re=Q.name,ue=Q._cat||Q.name;if(re===j||ue===j.toLowerCase())return!0}return!1}var w=d.modebar.add;typeof w=="string"&&(w=[w]);var A=d.modebar.remove;typeof A=="string"&&(A=[A]);var M=l.modeBarButtonsToAdd.concat(w.filter(function(j){for(var Q=0;Q<l.modeBarButtonsToRemove.length;Q++)if(_(j,l.modeBarButtonsToRemove[Q]))return!1;return!0})),g=l.modeBarButtonsToRemove.concat(A.filter(function(j){for(var Q=0;Q<l.modeBarButtonsToAdd.length;Q++)if(_(j,l.modeBarButtonsToAdd[Q]))return!1;return!0})),b=d._has("cartesian"),v=d._has("gl3d"),u=d._has("geo"),y=d._has("pie"),f=d._has("funnelarea"),R=d._has("ternary"),L=d._has("mapbox"),z=d._has("map"),F=d._has("polar"),N=d._has("smith"),B=d._has("sankey"),I=n(d),U=E(d.hovermode),O=[];function X(j){if(j.length){for(var Q=[],re=0;re<j.length;re++){for(var ue=j[re],_e=t[ue],we=_e.name.toLowerCase(),Re=(_e._cat||_e.name).toLowerCase(),ze=!1,Xe=0;Xe<g.length;Xe++){var tt=g[Xe].toLowerCase();if(tt===we||tt===Re){ze=!0;break}}ze||Q.push(t[ue])}O.push(Q)}}var J=["toImage"];l.showEditInChartStudio?J.push("editInChartStudio"):l.showSendToCloud&&J.push("sendDataToCloud"),X(J);var se=[],le=[],ce=[],q=[];(b||y||f||R)+u+v+L+z+F+N>1?(le=["toggleHover"],ce=["resetViews"]):u?(se=["zoomInGeo","zoomOutGeo"],le=["hoverClosestGeo"],ce=["resetGeo"]):v?(le=["hoverClosest3d"],ce=["resetCameraDefault3d","resetCameraLastSave3d"]):L?(se=["zoomInMapbox","zoomOutMapbox"],le=["toggleHover"],ce=["resetViewMapbox"]):z?(se=["zoomInMap","zoomOutMap"],le=["toggleHover"],ce=["resetViewMap"]):y?le=["hoverClosestPie"]:B?(le=["hoverClosestCartesian","hoverCompareCartesian"],ce=["resetViewSankey"]):le=["toggleHover"],b&&le.push("toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"),(s(T)||U)&&(le=[]),b&&!I&&(se=["zoomIn2d","zoomOut2d","autoScale2d"],ce[0]!=="resetViews"&&(ce=["resetScale2d"])),v?q=["zoom3d","pan3d","orbitRotation","tableRotation"]:b&&!I||R?q=["zoom2d","pan2d"]:L||z||u?q=["pan2d"]:F&&(q=["zoom2d"]),a(T)&&q.push("select2d","lasso2d");var Z=[],ee=function(j){Z.indexOf(j)===-1&&le.indexOf(j)!==-1&&Z.push(j)};if(Array.isArray(M)){for(var V=[],oe=0;oe<M.length;oe++){var ie=M[oe];typeof ie=="string"?(ie=ie.toLowerCase(),r.indexOf(ie)!==-1?(d._has("mapbox")||d._has("map")||d._has("cartesian"))&&q.push(ie):ie==="togglespikelines"?ee("toggleSpikelines"):ie==="togglehover"?ee("toggleHover"):ie==="hovercompare"?ee("hoverCompareCartesian"):ie==="hoverclosest"?(ee("hoverClosestCartesian"),ee("hoverClosestGeo"),ee("hoverClosest3d"),ee("hoverClosestPie")):ie==="v1hovermode"&&(ee("hoverClosestCartesian"),ee("hoverCompareCartesian"),ee("hoverClosestGeo"),ee("hoverClosest3d"),ee("hoverClosestPie"))):V.push(ie)}M=V}return X(q),X(se.concat(ce)),X(Z),h(O,M)}function n(m){for(var d=p.list({_fullLayout:m},null,!0),T=0;T<d.length;T++){var l=d[T].modebardisable;if(!d[T].fixedrange&&l!=="autoscale+zoominout"&&l!=="zoominout+autoscale")return!1}return!0}function a(m){for(var d=!1,T=0;T<m.length&&!d;T++){var l=m[T];!l._module||!l._module.selectPoints||(S.traceIs(l,"scatter-like")?(x.hasMarkers(l)||x.hasText(l))&&(d=!0):S.traceIs(l,"box-violin")?(l.boxpoints==="all"||l.points==="all")&&(d=!0):d=!0)}return d}function s(m){for(var d=0;d<m.length;d++)if(!S.traceIs(m[d],"noHover"))return!1;return!0}function h(m,d){if(d.length)if(Array.isArray(d[0]))for(var T=0;T<d.length;T++)m.push(d[T]);else m.push(d);return m}function c(m){for(var d=o([],m),T=0;T<d.length;T++)for(var l=d[T],_=0;_<l.length;_++){var w=l[_];if(typeof w=="string")if(t[w]!==void 0)d[T][_]=t[w];else throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "))}return d}}}),s2=De({"src/components/modebar/index.js"(Y,H){"use strict";H.exports={moduleType:"component",name:"modebar",layoutAttributes:o2(),supplyLayoutDefaults:WM(),manage:YM()}}}),l2=De({"src/plots/cartesian/scale_zoom.js"(Y,H){"use strict";var p=rh().FROM_BL;H.exports=function(S,E,e){e===void 0&&(e=p[S.constraintoward||"center"]);var t=[S.r2l(S.range[0]),S.r2l(S.range[1])],r=t[0]+(t[1]-t[0])*e;S.range=S._input.range=[S.l2r(r+(t[0]-r)*E),S.l2r(r+(t[1]-r)*E)],S.setScale()}}}),V0=De({"src/plots/cartesian/constraints.js"(Y){"use strict";var H=ui(),p=fv(),x=nf().id2name,S=Ih(),E=l2(),e=Dv(),t=zn().ALMOST_EQUAL,r=rh().FROM_BL;Y.handleDefaults=function(m,d,T){var l=T.axIds,_=T.axHasImage,w=d._axisConstraintGroups=[],A=d._axisMatchGroups=[],M,g,b,v,u,y,f,R;for(M=0;M<l.length;M++)v=x(l[M]),u=m[v],y=d[v],o(u,y,{axIds:l,layoutOut:d,hasImage:_[v]});function L(J,se){for(M=0;M<J.length;M++){g=J[M];for(b in g)d[x(b)][se]=g}}for(L(A,"_matchGroup"),M=0;M<w.length;M++){g=w[M];for(b in g)if(y=d[x(b)],y.fixedrange){for(var z in g){var F=x(z);(m[F]||{}).fixedrange===!1&&H.warn("fixedrange was specified as false for axis "+F+" but was overridden because another axis in its constraint group has fixedrange true"),d[F].fixedrange=!0}break}}for(M=0;M<w.length;){g=w[M];for(b in g){y=d[x(b)],y._matchGroup&&Object.keys(y._matchGroup).length===Object.keys(g).length&&(w.splice(M,1),M--);break}M++}L(w,"_constraintGroup");var N=["constrain","range","autorange","rangemode","rangebreaks","categoryorder","categoryarray"],B=!1,I=!1;function U(){R=y[f],f==="rangebreaks"&&(I=y._hasDayOfWeekBreaks)}for(M=0;M<A.length;M++){g=A[M];for(var O=0;O<N.length;O++){f=N[O],R=null;var X;for(b in g)if(v=x(b),u=m[v],y=d[v],f in y){if(!y.matches&&(X=y,f in u)){U();break}R===null&&f in u&&U()}if(f==="range"&&R&&u.range&&u.range.length===2&&u.range[0]!==null&&u.range[1]!==null&&(B=!0),f==="autorange"&&R===null&&B&&(R=!1),R===null&&f in X&&(R=X[f]),R!==null)for(b in g)y=d[x(b)],y[f]=f==="range"?R.slice():R,f==="rangebreaks"&&(y._hasDayOfWeekBreaks=I,e(y,d))}}};function o(m,d,T){var l=T.axIds,_=T.layoutOut,w=T.hasImage,A=_._axisConstraintGroups,M=_._axisMatchGroups,g=d._id,b=g.charAt(0),v=((_._splomAxes||{})[b]||{})[g]||{},u=d._id,y=u.charAt(0)==="x";d._matchGroup=null,d._constraintGroup=null;function f(q,Z){return H.coerce(m,d,S,q,Z)}f("constrain",w?"domain":"range"),H.coerce(m,d,{constraintoward:{valType:"enumerated",values:y?["left","center","right"]:["bottom","middle","top"],dflt:y?"center":"middle"}},"constraintoward");var R=d.type,L,z,F=[];for(L=0;L<l.length;L++)if(z=l[L],z!==u){var N=_[x(z)];N.type===R&&F.push(z)}var B=n(A,u);if(B){var I=[];for(L=0;L<F.length;L++)z=F[L],B[z]||I.push(z);F=I}var U=F.length,O,X;U&&(m.matches||v.matches)&&(O=H.coerce(m,d,{matches:{valType:"enumerated",values:F,dflt:F.indexOf(v.matches)!==-1?v.matches:void 0}},"matches"));var J=w&&!y?d.anchor:void 0;if(U&&!O&&(m.scaleanchor||J)&&(X=H.coerce(m,d,{scaleanchor:{valType:"enumerated",values:F.concat([!1])}},"scaleanchor",J)),O){d._matchGroup=a(M,u,O,1);var se=_[x(O)],le=i(_,d)/i(_,se);y!==(O.charAt(0)==="x")&&(le=(y?"x":"y")+le),a(A,u,O,le)}else m.matches&&l.indexOf(m.matches)!==-1&&H.warn("ignored "+d._name+'.matches: "'+m.matches+'" to avoid an infinite loop');if(X){var ce=f("scaleratio");ce||(ce=d.scaleratio=1),a(A,u,X,ce)}else m.scaleanchor&&l.indexOf(m.scaleanchor)!==-1&&H.warn("ignored "+d._name+'.scaleanchor: "'+m.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function i(m,d){var T=d.domain;return T||(T=m[x(d.overlaying)].domain),T[1]-T[0]}function n(m,d){for(var T=0;T<m.length;T++)if(m[T][d])return m[T];return null}function a(m,d,T,l){var _,w,A,M,g,b=n(m,d);b===null?(b={},b[d]=1,g=m.length,m.push(b)):g=m.indexOf(b);var v=Object.keys(b);for(_=0;_<m.length;_++)if(A=m[_],_!==g&&A[T]){var u=A[T];for(w=0;w<v.length;w++)M=v[w],A[M]=s(u,s(l,b[M]));m.splice(g,1);return}if(l!==1)for(w=0;w<v.length;w++){var y=v[w];b[y]=s(l,b[y])}b[T]=1}function s(m,d){var T="",l="",_,w;typeof m=="string"&&(T=m.match(/^[xy]*/)[0],_=T.length,m=+m.slice(_)),typeof d=="string"&&(l=d.match(/^[xy]*/)[0],w=l.length,d=+d.slice(w));var A=m*d;return!_&&!w?A:!_||!w||T.charAt(0)===l.charAt(0)?T+l+m*d:_===w?A:(_>w?T.slice(w):l.slice(_))+A}function h(m,d){for(var T=d._size,l=T.h/T.w,_={},w=Object.keys(m),A=0;A<w.length;A++){var M=w[A],g=m[M];if(typeof g=="string"){var b=g.match(/^[xy]*/)[0],v=b.length;g=+g.slice(v);for(var u=b.charAt(0)==="y"?l:1/l,y=0;y<v;y++)g*=u}_[M]=g}return _}Y.enforce=function(d){var T=d._fullLayout,l=T._axisConstraintGroups||[],_,w,A,M,g,b,v,u;for(_=0;_<l.length;_++){A=h(l[_],T);var y=Object.keys(A),f=1/0,R=0,L=1/0,z={},F={},N=!1;for(w=0;w<y.length;w++)M=y[w],F[M]=g=T[x(M)],g._inputDomain?g.domain=g._inputDomain.slice():g._inputDomain=g.domain.slice(),g._inputRange||(g._inputRange=g.range.slice()),g.setScale(),z[M]=b=Math.abs(g._m)/A[M],f=Math.min(f,b),(g.constrain==="domain"||!g._constraintShrinkable)&&(L=Math.min(L,b)),delete g._constraintShrinkable,R=Math.max(R,b),g.constrain==="domain"&&(N=!0);if(!(f>t*R&&!N)){for(w=0;w<y.length;w++)if(M=y[w],b=z[M],g=F[M],v=g.constrain,b!==L||v==="domain")if(u=b/L,v==="range")E(g,u);else{var B=g._inputDomain,I=(g.domain[1]-g.domain[0])/(B[1]-B[0]),U=(g.r2l(g.range[1])-g.r2l(g.range[0]))/(g.r2l(g._inputRange[1])-g.r2l(g._inputRange[0]));if(u/=I,u*U<1){g.domain=g._input.domain=B.slice(),E(g,u);continue}if(U<1&&(g.range=g._input.range=g._inputRange.slice(),u*=U),g.autorange){var O=g.r2l(g.range[0]),X=g.r2l(g.range[1]),J=(O+X)/2,se=J,le=J,ce=Math.abs(X-J),q=J-ce*u*1.0001,Z=J+ce*u*1.0001,ee=p.makePadFn(T,g,0),V=p.makePadFn(T,g,1);c(g,u);var oe=Math.abs(g._m),ie=p.concatExtremes(d,g),j=ie.min,Q=ie.max,re,ue;for(ue=0;ue<j.length;ue++)re=j[ue].val-ee(j[ue])/oe,re>q&&re<se&&(se=re);for(ue=0;ue<Q.length;ue++)re=Q[ue].val+V(Q[ue])/oe,re<Z&&re>le&&(le=re);var _e=(le-se)/(2*ce);u/=_e,se=g.l2r(se),le=g.l2r(le),g.range=g._input.range=O<X?[se,le]:[le,se]}c(g,u)}}}},Y.getAxisGroup=function(d,T){for(var l=d._axisMatchGroups,_=0;_<l.length;_++){var w=l[_];if(w[T])return"g"+_}return T},Y.clean=function(d,T){if(T._inputDomain){for(var l=!1,_=T._id,w=d._fullLayout._axisConstraintGroups,A=0;A<w.length;A++)if(w[A][_]){l=!0;break}(!l||T.constrain!=="domain")&&(T._input.domain=T.domain=T._inputDomain,delete T._inputDomain)}};function c(m,d){var T=m._inputDomain,l=r[m.constraintoward],_=T[0]+(T[1]-T[0])*l;m.domain=m._input.domain=[_+(T[0]-_)/d,_+(T[1]-_)/d],m.setScale()}}}),dy=De({"src/plot_api/subroutines.js"(Y){"use strict";var H=za(),p=Mo(),x=Mc(),S=ui(),E=vu(),e=fy(),t=vo(),r=ys(),o=j0(),i=s2(),n=us(),a=rh(),s=V0(),h=s.enforce,c=s.clean,m=fv().doAutoRange,d="start",T="middle",l="end",_=th().zindexSeparator;Y.layoutStyles=function(B){return S.syncOrAsync([x.doAutoMargin,A],B)};function w(B,I,U){for(var O=0;O<U.length;O++){var X=U[O][0],J=U[O][1];if(!(X[0]>=B[1]||X[1]<=B[0])&&J[0]<I[1]&&J[1]>I[0])return!0}return!1}function A(B){var I=B._fullLayout,U=I._size,O=U.p,X=n.list(B,"",!0),J,se,le,ce,q,Z;if(I._paperdiv.style({width:B._context.responsive&&I.autosize&&!B._context._hasZeroWidth&&!B.layout.width?"100%":I.width+"px",height:B._context.responsive&&I.autosize&&!B._context._hasZeroHeight&&!B.layout.height?"100%":I.height+"px"}).selectAll(".main-svg").call(r.setSize,I.width,I.height),B._context.setBackground(B,I.paper_bgcolor),Y.drawMainTitle(B),i.manage(B),!I._has("cartesian"))return x.previousPromises(B);function ee(be,Ie,qe){var ke=be._lw/2;if(be._id.charAt(0)==="x"){if(Ie){if(qe==="top")return Ie._offset-O-ke}else return U.t+U.h*(1-(be.position||0))+ke%1;return Ie._offset+Ie._length+O+ke}if(Ie){if(qe==="right")return Ie._offset+Ie._length+O+ke}else return U.l+U.w*(be.position||0)+ke%1;return Ie._offset-O-ke}for(J=0;J<X.length;J++){ce=X[J];var V=ce._anchorAxis;ce._linepositions={},ce._lw=r.crispRound(B,ce.linewidth,1),ce._mainLinePosition=ee(ce,V,ce.side),ce._mainMirrorPosition=ce.mirror&&V?ee(ce,V,a.OPPOSITE_SIDE[ce.side]):null}var oe=[],ie=[],j=[],Q=t.opacity(I.paper_bgcolor)===1&&t.opacity(I.plot_bgcolor)===1&&I.paper_bgcolor===I.plot_bgcolor;for(se in I._plots)if(le=I._plots[se],le.mainplot)le.bg&&le.bg.remove(),le.bg=void 0;else{var re=le.xaxis.domain,ue=le.yaxis.domain,_e=le.plotgroup;if(w(re,ue,j)&&se.indexOf(_)===-1){var we=_e.node(),Re=le.bg=S.ensureSingle(_e,"rect","bg");we.insertBefore(Re.node(),we.childNodes[0]),ie.push(se)}else _e.select("rect.bg").remove(),j.push([re,ue]),Q||(oe.push(se),ie.push(se))}var ze=I._bgLayer.selectAll(".bg").data(oe);for(ze.enter().append("rect").classed("bg",!0),ze.exit().remove(),ze.each(function(be){I._plots[be].bg=H.select(this)}),J=0;J<ie.length;J++)le=I._plots[ie[J]],q=le.xaxis,Z=le.yaxis,le.bg&&q._offset!==void 0&&Z._offset!==void 0&&le.bg.call(r.setRect,q._offset-O,Z._offset-O,q._length+2*O,Z._length+2*O).call(t.fill,I.plot_bgcolor).style("stroke-width",0);if(!I._hasOnlyLargeSploms)for(se in I._plots){le=I._plots[se],q=le.xaxis,Z=le.yaxis;var Xe=le.clipId="clip"+I._uid+se+"plot",tt=S.ensureSingleById(I._clips,"clipPath",Xe,function(be){be.classed("plotclip",!0).append("rect")});le.clipRect=tt.select("rect").attr({width:q._length,height:Z._length}),r.setTranslate(le.plot,q._offset,Z._offset);var it,et;le._hasClipOnAxisFalse?(it=null,et=Xe):(it=Xe,et=null),r.setClipUrl(le.plot,it,B),le.layerClipId=et}var nt,Ae,me,fe,Be,Qe,at,$e,It,Pt,Vt,Wt,Cr;function yr(be){return"M"+nt+","+be+"H"+Ae}function qr(be){return"M"+q._offset+","+be+"h"+q._length}function Mr(be){return"M"+be+","+$e+"V"+at}function Dr(be){return Z._shift!==void 0&&(be+=Z._shift),"M"+be+","+Z._offset+"v"+Z._length}function xt(be,Ie,qe){if(!be.showline||se!==be._mainSubplot)return"";if(!be._anchorAxis)return qe(be._mainLinePosition);var ke=Ie(be._mainLinePosition);return be.mirror&&(ke+=Ie(be._mainMirrorPosition)),ke}for(se in I._plots){le=I._plots[se],q=le.xaxis,Z=le.yaxis;var Ne="M0,0";M(q,se)&&(Be=b(q,"left",Z,X),nt=q._offset-(Be?O+Be:0),Qe=b(q,"right",Z,X),Ae=q._offset+q._length+(Qe?O+Qe:0),me=ee(q,Z,"bottom"),fe=ee(q,Z,"top"),Cr=!q._anchorAxis||se!==q._mainSubplot,Cr&&(q.mirror==="allticks"||q.mirror==="all")&&(q._linepositions[se]=[me,fe]),Ne=xt(q,yr,qr),Cr&&q.showline&&(q.mirror==="all"||q.mirror==="allticks")&&(Ne+=yr(me)+yr(fe)),le.xlines.style("stroke-width",q._lw+"px").call(t.stroke,q.showline?q.linecolor:"rgba(0,0,0,0)")),le.xlines.attr("d",Ne);var Ye="M0,0";M(Z,se)&&(Vt=b(Z,"bottom",q,X),at=Z._offset+Z._length+(Vt?O:0),Wt=b(Z,"top",q,X),$e=Z._offset-(Wt?O:0),It=ee(Z,q,"left"),Pt=ee(Z,q,"right"),Cr=!Z._anchorAxis||se!==Z._mainSubplot,Cr&&(Z.mirror==="allticks"||Z.mirror==="all")&&(Z._linepositions[se]=[It,Pt]),Ye=xt(Z,Mr,Dr),Cr&&Z.showline&&(Z.mirror==="all"||Z.mirror==="allticks")&&(Ye+=Mr(It)+Mr(Pt)),le.ylines.style("stroke-width",Z._lw+"px").call(t.stroke,Z.showline?Z.linecolor:"rgba(0,0,0,0)")),le.ylines.attr("d",Ye)}return n.makeClipPaths(B),x.previousPromises(B)}function M(B,I){return(B.ticks||B.showline)&&(I===B._mainSubplot||B.mirror==="all"||B.mirror==="allticks")}function g(B,I,U){if(!U.showline||!U._lw)return!1;if(U.mirror==="all"||U.mirror==="allticks")return!0;var O=U._anchorAxis;if(!O)return!1;var X=a.FROM_BL[I];return U.side===I?O.domain[X]===B.domain[X]:U.mirror&&O.domain[1-X]===B.domain[1-X]}function b(B,I,U,O){if(g(B,I,U))return U._lw;for(var X=0;X<O.length;X++){var J=O[X];if(J._mainAxis===U._mainAxis&&g(B,I,J))return J._lw}return 0}Y.drawMainTitle=function(B){var I=B._fullLayout.title,U=B._fullLayout,O=F(U),X=N(U),J=L(U,X),se=R(U,O);if(o.draw(B,"gtitle",{propContainer:U,propName:"title.text",subtitlePropName:"title.subtitle.text",placeholder:U._dfltTitle.plot,subtitlePlaceholder:U._dfltTitle.subtitle,attributes:{x:se,y:J,"text-anchor":O,dy:X}}),I.text&&I.automargin){var le=H.select(B).selectAll(".gtitle"),ce=r.bBox(H.select(B).selectAll(".g-gtitle").node()).height,q=y(B,I,ce);if(q>0){f(B,J,q,ce),le.attr({x:se,y:J,"text-anchor":O,dy:z(I.yanchor)}).call(E.positionText,se,J);var Z=(I.text.match(E.BR_TAG_ALL)||[]).length;if(Z){var ee=a.LINE_SPACING*Z+a.MID_SHIFT;I.y===0&&(ee=-ee),le.selectAll(".line").each(function(){var Q=+this.getAttribute("dy").slice(0,-2)-ee+"em";this.setAttribute("dy",Q)})}var V=H.select(B).selectAll(".gtitle-subtitle");if(V.node()){var oe=le.node().getBBox(),ie=oe.y+oe.height,j=ie+o.SUBTITLE_PADDING_EM*I.subtitle.font.size;V.attr({x:se,y:j,"text-anchor":O,dy:z(I.yanchor)}).call(E.positionText,se,j)}}}};function v(B,I,U,O,X){var J=I.yref==="paper"?B._fullLayout._size.h:B._fullLayout.height,se=S.isTopAnchor(I)?O:O-X,le=U==="b"?J-se:se;return S.isTopAnchor(I)&&U==="t"||S.isBottomAnchor(I)&&U==="b"?!1:le<X}function u(B,I,U,O,X){var J=0;return U==="middle"&&(J+=X/2),B==="t"?(U==="top"&&(J+=X),J+=O-I*O):(U==="bottom"&&(J+=X),J+=I*O),J}function y(B,I,U){var O=I.y,X=I.yanchor,J=O>.5?"t":"b",se=B._fullLayout.margin[J],le=0;return I.yref==="paper"?le=U+I.pad.t+I.pad.b:I.yref==="container"&&(le=u(J,O,X,B._fullLayout.height,U)+I.pad.t+I.pad.b),le>se?le:0}function f(B,I,U,O){var X="title.automargin",J=B._fullLayout.title,se=J.y>.5?"t":"b",le={x:J.x,y:J.y,t:0,b:0},ce={};J.yref==="paper"&&v(B,J,se,I,O)?le[se]=U:J.yref==="container"&&(ce[se]=U,B._fullLayout._reservedMargin[X]=ce),x.allowAutoMargin(B,X),x.autoMargin(B,X,le)}function R(B,I){var U=B.title,O=B._size,X=0;switch(I===d?X=U.pad.l:I===l&&(X=-U.pad.r),U.xref){case"paper":return O.l+O.w*U.x+X;case"container":default:return B.width*U.x+X}}function L(B,I){var U=B.title,O=B._size,X=0;if(I==="0em"||!I?X=-U.pad.b:I===a.CAP_SHIFT+"em"&&(X=U.pad.t),U.y==="auto")return O.t/2;switch(U.yref){case"paper":return O.t+O.h-O.h*U.y+X;case"container":default:return B.height-B.height*U.y+X}}function z(B){return B==="top"?a.CAP_SHIFT+.3+"em":B==="bottom"?"-0.3em":a.MID_SHIFT+"em"}function F(B){var I=B.title,U=T;return S.isRightAnchor(I)?U=l:S.isLeftAnchor(I)&&(U=d),U}function N(B){var I=B.title,U="0em";return S.isTopAnchor(I)?U=a.CAP_SHIFT+"em":S.isMiddleAnchor(I)&&(U=a.MID_SHIFT+"em"),U}Y.doTraceStyle=function(B){var I=B.calcdata,U=[],O;for(O=0;O<I.length;O++){var X=I[O],J=X[0]||{},se=J.trace||{},le=se._module||{},ce=le.arraysToCalcdata;ce&&ce(X,se);var q=le.editStyle;q&&U.push({fn:q,cd0:J})}if(U.length){for(O=0;O<U.length;O++){var Z=U[O];Z.fn(B,Z.cd0)}e(B),Y.redrawReglTraces(B)}return x.style(B),p.getComponentMethod("legend","draw")(B),x.previousPromises(B)},Y.doColorBars=function(B){return p.getComponentMethod("colorbar","draw")(B),x.previousPromises(B)},Y.layoutReplot=function(B){var I=B.layout;return B.layout=void 0,p.call("_doPlot",B,"",I)},Y.doLegend=function(B){return p.getComponentMethod("legend","draw")(B),x.previousPromises(B)},Y.doTicksRelayout=function(B){return n.draw(B,"redraw"),B._fullLayout._hasOnlyLargeSploms&&(p.subplotsRegistry.splom.updateGrid(B),e(B),Y.redrawReglTraces(B)),Y.drawMainTitle(B),x.previousPromises(B)},Y.doModeBar=function(B){var I=B._fullLayout;i.manage(B);for(var U=0;U<I._basePlotModules.length;U++){var O=I._basePlotModules[U].updateFx;O&&O(B)}return x.previousPromises(B)},Y.doCamera=function(B){for(var I=B._fullLayout,U=I._subplots.gl3d,O=0;O<U.length;O++){var X=I[U[O]],J=X._scene;J.setViewport(X)}},Y.drawData=function(B){var I=B._fullLayout;e(B);for(var U=I._basePlotModules,O=0;O<U.length;O++)U[O].plot(B);return Y.redrawReglTraces(B),x.style(B),p.getComponentMethod("selections","draw")(B),p.getComponentMethod("shapes","draw")(B),p.getComponentMethod("annotations","draw")(B),p.getComponentMethod("images","draw")(B),I._replotting=!1,x.previousPromises(B)},Y.redrawReglTraces=function(B){var I=B._fullLayout;if(I._has("regl")){var U=B._fullData,O=[],X=[],J,se;for(I._hasOnlyLargeSploms&&I._splomGrid.draw(),J=0;J<U.length;J++){var le=U[J];le.visible===!0&&le._length!==0&&(le.type==="splom"?I._splomScenes[le.uid].draw():le.type==="scattergl"?S.pushUnique(O,le.xaxis+le.yaxis):le.type==="scatterpolargl"&&S.pushUnique(X,le.subplot))}for(J=0;J<O.length;J++)se=I._plots[O[J]],se._scene&&se._scene.draw();for(J=0;J<X.length;J++)se=I[X[J]]._subplot,se._scene&&se._scene.draw()}},Y.doAutoRangeAndConstraints=function(B){for(var I=n.list(B,"",!0),U,O={},X=0;X<I.length;X++)if(U=I[X],!O[U._id]){O[U._id]=1,c(B,U),m(B,U);var J=U._matchGroup;if(J)for(var se in J){var le=n.getFromId(B,se);m(B,le,U.range),O[se]=1}}h(B)},Y.finalDraw=function(B){p.getComponentMethod("rangeslider","draw")(B),p.getComponentMethod("rangeselector","draw")(B)},Y.drawMarginPushers=function(B){p.getComponentMethod("legend","draw")(B),p.getComponentMethod("rangeselector","draw")(B),p.getComponentMethod("sliders","draw")(B),p.getComponentMethod("updatemenus","draw")(B),p.getComponentMethod("colorbar","draw")(B)}}}),u2=De({"src/components/selections/draw.js"(Y,H){"use strict";var p=Wp().readPaths,x=k_(),S=Vp().clearOutlineControllers,E=vo(),e=ys(),t=Gl().arrayEditor,r=Xp(),o=r.getPathString;H.exports={draw:i,drawOne:a,activateLastSelection:c};function i(d){var T=d._fullLayout;S(d),T._selectionLayer.selectAll("path").remove();for(var l in T._plots){var _=T._plots[l].selectionLayer;_&&_.selectAll("path").remove()}for(var w=0;w<T.selections.length;w++)a(d,w)}function n(d){return d._context.editSelection}function a(d,T){d._fullLayout._paperdiv.selectAll('.selectionlayer [data-index="'+T+'"]').remove();var l=r.makeSelectionsOptionsAndPlotinfo(d,T),_=l.options,w=l.plotinfo;if(!_._input)return;A(d._fullLayout._selectionLayer);function A(M){var g=o(d,_),b={"data-index":T,"fill-rule":"evenodd",d:g},v=_.opacity,u="rgba(0,0,0,0)",y=_.line.color||E.contrast(d._fullLayout.plot_bgcolor),f=_.line.width,R=_.line.dash;f||(f=5,R="solid");var L=n(d)&&d._fullLayout._activeSelectionIndex===T;L&&(u=d._fullLayout.activeselection.fillcolor,v=d._fullLayout.activeselection.opacity);for(var z=[],F=1;F>=0;F--){var N=M.append("path").attr(b).style("opacity",F?.1:v).call(E.stroke,y).call(E.fill,u).call(e.dashLine,F?"solid":R,F?4+f:f);if(s(N,d,_),L){var B=t(d.layout,"selections",_);N.style({cursor:"move"});var I={element:N.node(),plotinfo:w,gd:d,editHelpers:B,isActiveSelection:!0},U=p(g,d);x(U,N,I)}else N.style("pointer-events",F?"all":"none");z[F]=N}var O=z[0],X=z[1];X.node().addEventListener("click",function(){return h(d,O)})}}function s(d,T,l){var _=l.xref+l.yref;e.setClipUrl(d,"clip"+T._fullLayout._uid+_,T)}function h(d,T){if(n(d)){var l=T.node(),_=+l.getAttribute("data-index");if(_>=0){if(_===d._fullLayout._activeSelectionIndex){m(d);return}d._fullLayout._activeSelectionIndex=_,d._fullLayout._deactivateSelection=m,i(d)}}}function c(d){if(n(d)){var T=d._fullLayout.selections.length-1;d._fullLayout._activeSelectionIndex=T,d._fullLayout._deactivateSelection=m,i(d)}}function m(d){if(n(d)){var T=d._fullLayout._activeSelectionIndex;T>=0&&(S(d),delete d._fullLayout._activeSelectionIndex,i(d))}}}}),ZM=De({"node_modules/polybooljs/lib/build-log.js"(Y,H){function p(){var x,S=0,E=!1;function e(t,r){return x.list.push({type:t,data:r?JSON.parse(JSON.stringify(r)):void 0}),x}return x={list:[],segmentId:function(){return S++},checkIntersection:function(t,r){return e("check",{seg1:t,seg2:r})},segmentChop:function(t,r){return e("div_seg",{seg:t,pt:r}),e("chop",{seg:t,pt:r})},statusRemove:function(t){return e("pop_seg",{seg:t})},segmentUpdate:function(t){return e("seg_update",{seg:t})},segmentNew:function(t,r){return e("new_seg",{seg:t,primary:r})},segmentRemove:function(t){return e("rem_seg",{seg:t})},tempStatus:function(t,r,o){return e("temp_status",{seg:t,above:r,below:o})},rewind:function(t){return e("rewind",{seg:t})},status:function(t,r,o){return e("status",{seg:t,above:r,below:o})},vert:function(t){return t===E?x:(E=t,e("vert",{x:t}))},log:function(t){return typeof t!="string"&&(t=JSON.stringify(t,!1," ")),e("log",{txt:t})},reset:function(){return e("reset")},selected:function(t){return e("selected",{segs:t})},chainStart:function(t){return e("chain_start",{seg:t})},chainRemoveHead:function(t,r){return e("chain_rem_head",{index:t,pt:r})},chainRemoveTail:function(t,r){return e("chain_rem_tail",{index:t,pt:r})},chainNew:function(t,r){return e("chain_new",{pt1:t,pt2:r})},chainMatch:function(t){return e("chain_match",{index:t})},chainClose:function(t){return e("chain_close",{index:t})},chainAddHead:function(t,r){return e("chain_add_head",{index:t,pt:r})},chainAddTail:function(t,r){return e("chain_add_tail",{index:t,pt:r})},chainConnect:function(t,r){return e("chain_con",{index1:t,index2:r})},chainReverse:function(t){return e("chain_rev",{index:t})},chainJoin:function(t,r){return e("chain_join",{index1:t,index2:r})},done:function(){return e("done")}},x}H.exports=p}}),KM=De({"node_modules/polybooljs/lib/epsilon.js"(Y,H){function p(x){typeof x!="number"&&(x=1e-10);var S={epsilon:function(E){return typeof E=="number"&&(x=E),x},pointAboveOrOnLine:function(E,e,t){var r=e[0],o=e[1],i=t[0],n=t[1],a=E[0],s=E[1];return(i-r)*(s-o)-(n-o)*(a-r)>=-x},pointBetween:function(E,e,t){var r=E[1]-e[1],o=t[0]-e[0],i=E[0]-e[0],n=t[1]-e[1],a=i*o+r*n;if(a<x)return!1;var s=o*o+n*n;return!(a-s>-x)},pointsSameX:function(E,e){return Math.abs(E[0]-e[0])<x},pointsSameY:function(E,e){return Math.abs(E[1]-e[1])<x},pointsSame:function(E,e){return S.pointsSameX(E,e)&&S.pointsSameY(E,e)},pointsCompare:function(E,e){return S.pointsSameX(E,e)?S.pointsSameY(E,e)?0:E[1]<e[1]?-1:1:E[0]<e[0]?-1:1},pointsCollinear:function(E,e,t){var r=E[0]-e[0],o=E[1]-e[1],i=e[0]-t[0],n=e[1]-t[1];return Math.abs(r*n-i*o)<x},linesIntersect:function(E,e,t,r){var o=e[0]-E[0],i=e[1]-E[1],n=r[0]-t[0],a=r[1]-t[1],s=o*a-i*n;if(Math.abs(s)<x)return!1;var h=E[0]-t[0],c=E[1]-t[1],m=(n*c-a*h)/s,d=(o*c-i*h)/s,T={alongA:0,alongB:0,pt:[E[0]+m*o,E[1]+m*i]};return m<=-x?T.alongA=-2:m<x?T.alongA=-1:m-1<=-x?T.alongA=0:m-1<x?T.alongA=1:T.alongA=2,d<=-x?T.alongB=-2:d<x?T.alongB=-1:d-1<=-x?T.alongB=0:d-1<x?T.alongB=1:T.alongB=2,T},pointInsideRegion:function(E,e){for(var t=E[0],r=E[1],o=e[e.length-1][0],i=e[e.length-1][1],n=!1,a=0;a<e.length;a++){var s=e[a][0],h=e[a][1];h-r>x!=i-r>x&&(o-s)*(r-h)/(i-h)+s-t>x&&(n=!n),o=s,i=h}return n}};return S}H.exports=p}}),$M=De({"node_modules/polybooljs/lib/linked-list.js"(Y,H){var p={create:function(){var x={root:{root:!0,next:null},exists:function(S){return!(S===null||S===x.root)},isEmpty:function(){return x.root.next===null},getHead:function(){return x.root.next},insertBefore:function(S,E){for(var e=x.root,t=x.root.next;t!==null;){if(E(t)){S.prev=t.prev,S.next=t,t.prev.next=S,t.prev=S;return}e=t,t=t.next}e.next=S,S.prev=e,S.next=null},findTransition:function(S){for(var E=x.root,e=x.root.next;e!==null&&!S(e);)E=e,e=e.next;return{before:E===x.root?null:E,after:e,insert:function(t){return t.prev=E,t.next=e,E.next=t,e!==null&&(e.prev=t),t}}}};return x},node:function(x){return x.prev=null,x.next=null,x.remove=function(){x.prev.next=x.next,x.next&&(x.next.prev=x.prev),x.prev=null,x.next=null},x}};H.exports=p}}),JM=De({"node_modules/polybooljs/lib/intersecter.js"(Y,H){var p=$M();function x(S,E,e){function t(T,l){return{id:e?e.segmentId():-1,start:T,end:l,myFill:{above:null,below:null},otherFill:null}}function r(T,l,_){return{id:e?e.segmentId():-1,start:T,end:l,myFill:{above:_.myFill.above,below:_.myFill.below},otherFill:null}}var o=p.create();function i(T,l,_,w,A,M){var g=E.pointsCompare(l,A);return g!==0?g:E.pointsSame(_,M)?0:T!==w?T?1:-1:E.pointAboveOrOnLine(_,w?A:M,w?M:A)?1:-1}function n(T,l){o.insertBefore(T,function(_){var w=i(T.isStart,T.pt,l,_.isStart,_.pt,_.other.pt);return w<0})}function a(T,l){var _=p.node({isStart:!0,pt:T.start,seg:T,primary:l,other:null,status:null});return n(_,T.end),_}function s(T,l,_){var w=p.node({isStart:!1,pt:l.end,seg:l,primary:_,other:T,status:null});T.other=w,n(w,T.pt)}function h(T,l){var _=a(T,l);return s(_,T,l),_}function c(T,l){e&&e.segmentChop(T.seg,l),T.other.remove(),T.seg.end=l,T.other.pt=l,n(T.other,T.pt)}function m(T,l){var _=r(l,T.seg.end,T.seg);return c(T,l),h(_,T.primary)}function d(T,l){var _=p.create();function w(B,I){var U=B.seg.start,O=B.seg.end,X=I.seg.start,J=I.seg.end;return E.pointsCollinear(U,X,J)?E.pointsCollinear(O,X,J)||E.pointAboveOrOnLine(O,X,J)?1:-1:E.pointAboveOrOnLine(U,X,J)?1:-1}function A(B){return _.findTransition(function(I){var U=w(B,I.ev);return U>0})}function M(B,I){var U=B.seg,O=I.seg,X=U.start,J=U.end,se=O.start,le=O.end;e&&e.checkIntersection(U,O);var ce=E.linesIntersect(X,J,se,le);if(ce===!1){if(!E.pointsCollinear(X,J,se)||E.pointsSame(X,le)||E.pointsSame(J,se))return!1;var q=E.pointsSame(X,se),Z=E.pointsSame(J,le);if(q&&Z)return I;var ee=!q&&E.pointBetween(X,se,le),V=!Z&&E.pointBetween(J,se,le);if(q)return V?m(I,J):m(B,le),I;ee&&(Z||(V?m(I,J):m(B,le)),m(I,X))}else ce.alongA===0&&(ce.alongB===-1?m(B,se):ce.alongB===0?m(B,ce.pt):ce.alongB===1&&m(B,le)),ce.alongB===0&&(ce.alongA===-1?m(I,X):ce.alongA===0?m(I,ce.pt):ce.alongA===1&&m(I,J));return!1}for(var g=[];!o.isEmpty();){var b=o.getHead();if(e&&e.vert(b.pt[0]),b.isStart){let B=function(){if(y){var I=M(b,y);if(I)return I}return f?M(b,f):!1};var v=B;e&&e.segmentNew(b.seg,b.primary);var u=A(b),y=u.before?u.before.ev:null,f=u.after?u.after.ev:null;e&&e.tempStatus(b.seg,y?y.seg:!1,f?f.seg:!1);var R=B();if(R){if(S){var L;b.seg.myFill.below===null?L=!0:L=b.seg.myFill.above!==b.seg.myFill.below,L&&(R.seg.myFill.above=!R.seg.myFill.above)}else R.seg.otherFill=b.seg.myFill;e&&e.segmentUpdate(R.seg),b.other.remove(),b.remove()}if(o.getHead()!==b){e&&e.rewind(b.seg);continue}if(S){var L;b.seg.myFill.below===null?L=!0:L=b.seg.myFill.above!==b.seg.myFill.below,f?b.seg.myFill.below=f.seg.myFill.above:b.seg.myFill.below=T,L?b.seg.myFill.above=!b.seg.myFill.below:b.seg.myFill.above=b.seg.myFill.below}else if(b.seg.otherFill===null){var z;f?b.primary===f.primary?z=f.seg.otherFill.above:z=f.seg.myFill.above:z=b.primary?l:T,b.seg.otherFill={above:z,below:z}}e&&e.status(b.seg,y?y.seg:!1,f?f.seg:!1),b.other.status=u.insert(p.node({ev:b}))}else{var F=b.status;if(F===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(_.exists(F.prev)&&_.exists(F.next)&&M(F.prev.ev,F.next.ev),e&&e.statusRemove(F.ev.seg),F.remove(),!b.primary){var N=b.seg.myFill;b.seg.myFill=b.seg.otherFill,b.seg.otherFill=N}g.push(b.seg)}o.getHead().remove()}return e&&e.done(),g}return S?{addRegion:function(T){for(var l,_=T[T.length-1],w=0;w<T.length;w++){l=_,_=T[w];var A=E.pointsCompare(l,_);A!==0&&h(t(A<0?l:_,A<0?_:l),!0)}},calculate:function(T){return d(T,!1)}}:{calculate:function(T,l,_,w){return T.forEach(function(A){h(r(A.start,A.end,A),!0)}),_.forEach(function(A){h(r(A.start,A.end,A),!1)}),d(l,w)}}}H.exports=x}}),QM=De({"node_modules/polybooljs/lib/segment-chainer.js"(Y,H){function p(x,S,E){var e=[],t=[];return x.forEach(function(r){var o=r.start,i=r.end;if(S.pointsSame(o,i)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}E&&E.chainStart(r);var n={index:0,matches_head:!1,matches_pt1:!1},a={index:0,matches_head:!1,matches_pt1:!1},s=n;function h(F,N,B){return s.index=F,s.matches_head=N,s.matches_pt1=B,s===n?(s=a,!1):(s=null,!0)}for(var c=0;c<e.length;c++){var m=e[c],d=m[0],T=m[1],l=m[m.length-1],_=m[m.length-2];if(S.pointsSame(d,o)){if(h(c,!0,!0))break}else if(S.pointsSame(d,i)){if(h(c,!0,!1))break}else if(S.pointsSame(l,o)){if(h(c,!1,!0))break}else if(S.pointsSame(l,i)&&h(c,!1,!1))break}if(s===n){e.push([o,i]),E&&E.chainNew(o,i);return}if(s===a){E&&E.chainMatch(n.index);var w=n.index,A=n.matches_pt1?i:o,M=n.matches_head,m=e[w],g=M?m[0]:m[m.length-1],b=M?m[1]:m[m.length-2],v=M?m[m.length-1]:m[0],u=M?m[m.length-2]:m[1];if(S.pointsCollinear(b,g,A)&&(M?(E&&E.chainRemoveHead(n.index,A),m.shift()):(E&&E.chainRemoveTail(n.index,A),m.pop()),g=b),S.pointsSame(v,A)){e.splice(w,1),S.pointsCollinear(u,v,g)&&(M?(E&&E.chainRemoveTail(n.index,g),m.pop()):(E&&E.chainRemoveHead(n.index,g),m.shift())),E&&E.chainClose(n.index),t.push(m);return}M?(E&&E.chainAddHead(n.index,A),m.unshift(A)):(E&&E.chainAddTail(n.index,A),m.push(A));return}function y(F){E&&E.chainReverse(F),e[F].reverse()}function f(F,N){var B=e[F],I=e[N],U=B[B.length-1],O=B[B.length-2],X=I[0],J=I[1];S.pointsCollinear(O,U,X)&&(E&&E.chainRemoveTail(F,U),B.pop(),U=O),S.pointsCollinear(U,X,J)&&(E&&E.chainRemoveHead(N,X),I.shift()),E&&E.chainJoin(F,N),e[F]=B.concat(I),e.splice(N,1)}var R=n.index,L=a.index;E&&E.chainConnect(R,L);var z=e[R].length<e[L].length;n.matches_head?a.matches_head?z?(y(R),f(R,L)):(y(L),f(L,R)):f(L,R):a.matches_head?f(R,L):z?(y(R),f(L,R)):(y(L),f(R,L))}),t}H.exports=p}}),eE=De({"node_modules/polybooljs/lib/segment-selector.js"(Y,H){function p(S,E,e){var t=[];return S.forEach(function(r){var o=(r.myFill.above?8:0)+(r.myFill.below?4:0)+(r.otherFill&&r.otherFill.above?2:0)+(r.otherFill&&r.otherFill.below?1:0);E[o]!==0&&t.push({id:e?e.segmentId():-1,start:r.start,end:r.end,myFill:{above:E[o]===1,below:E[o]===2},otherFill:null})}),e&&e.selected(t),t}var x={union:function(S,E){return p(S,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],E)},intersect:function(S,E){return p(S,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],E)},difference:function(S,E){return p(S,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],E)},differenceRev:function(S,E){return p(S,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],E)},xor:function(S,E){return p(S,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],E)}};H.exports=x}}),tE=De({"node_modules/polybooljs/lib/geojson.js"(Y,H){var p={toPolygon:function(x,S){function E(r){if(r.length<=0)return x.segments({inverted:!1,regions:[]});function o(a){var s=a.slice(0,a.length-1);return x.segments({inverted:!1,regions:[s]})}for(var i=o(r[0]),n=1;n<r.length;n++)i=x.selectDifference(x.combine(i,o(r[n])));return i}if(S.type==="Polygon")return x.polygon(E(S.coordinates));if(S.type==="MultiPolygon"){for(var e=x.segments({inverted:!1,regions:[]}),t=0;t<S.coordinates.length;t++)e=x.selectUnion(x.combine(e,E(S.coordinates[t])));return x.polygon(e)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(x,S,E){E=x.polygon(x.segments(E));function e(m,d){return S.pointInsideRegion([(m[0][0]+m[1][0])*.5,(m[0][1]+m[1][1])*.5],d)}function t(m){return{region:m,children:[]}}var r=t(null);function o(m,d){for(var T=0;T<m.children.length;T++){var l=m.children[T];if(e(d,l.region)){o(l,d);return}}for(var _=t(d),T=0;T<m.children.length;T++){var l=m.children[T];e(l.region,d)&&(_.children.push(l),m.children.splice(T,1),T--)}m.children.push(_)}for(var i=0;i<E.regions.length;i++){var n=E.regions[i];n.length<3||o(r,n)}function a(m,d){for(var T=0,l=m[m.length-1][0],_=m[m.length-1][1],w=[],A=0;A<m.length;A++){var M=m[A][0],g=m[A][1];w.push([M,g]),T+=g*l-M*_,l=M,_=g}var b=T<0;return b!==d&&w.reverse(),w.push([w[0][0],w[0][1]]),w}var s=[];function h(m){var d=[a(m.region,!1)];s.push(d);for(var T=0;T<m.children.length;T++)d.push(c(m.children[T]))}function c(m){for(var d=0;d<m.children.length;d++)h(m.children[d]);return a(m.region,!0)}for(var i=0;i<r.children.length;i++)h(r.children[i]);return s.length<=0?{type:"Polygon",coordinates:[]}:s.length==1?{type:"Polygon",coordinates:s[0]}:{type:"MultiPolygon",coordinates:s}}};H.exports=p}}),rE=De({"node_modules/polybooljs/index.js"(Y,H){var p=ZM(),x=KM(),S=JM(),E=QM(),e=eE(),t=tE(),r=!1,o=x(),i;i={buildLog:function(a){return a===!0?r=p():a===!1&&(r=!1),r===!1?!1:r.list},epsilon:function(a){return o.epsilon(a)},segments:function(a){var s=S(!0,o,r);return a.regions.forEach(s.addRegion),{segments:s.calculate(a.inverted),inverted:a.inverted}},combine:function(a,s){var h=S(!1,o,r);return{combined:h.calculate(a.segments,a.inverted,s.segments,s.inverted),inverted1:a.inverted,inverted2:s.inverted}},selectUnion:function(a){return{segments:e.union(a.combined,r),inverted:a.inverted1||a.inverted2}},selectIntersect:function(a){return{segments:e.intersect(a.combined,r),inverted:a.inverted1&&a.inverted2}},selectDifference:function(a){return{segments:e.difference(a.combined,r),inverted:a.inverted1&&!a.inverted2}},selectDifferenceRev:function(a){return{segments:e.differenceRev(a.combined,r),inverted:!a.inverted1&&a.inverted2}},selectXor:function(a){return{segments:e.xor(a.combined,r),inverted:a.inverted1!==a.inverted2}},polygon:function(a){return{regions:E(a.segments,o,r),inverted:a.inverted}},polygonFromGeoJSON:function(a){return t.toPolygon(i,a)},polygonToGeoJSON:function(a){return t.fromPolygon(i,o,a)},union:function(a,s){return n(a,s,i.selectUnion)},intersect:function(a,s){return n(a,s,i.selectIntersect)},difference:function(a,s){return n(a,s,i.selectDifference)},differenceRev:function(a,s){return n(a,s,i.selectDifferenceRev)},xor:function(a,s){return n(a,s,i.selectXor)}};function n(a,s,h){var c=i.segments(a),m=i.segments(s),d=i.combine(c,m),T=h(d);return i.polygon(T)}typeof window=="object"&&(window.PolyBool=i),H.exports=i}}),iE=De({"node_modules/point-in-polygon/nested.js"(Y,H){H.exports=function(x,S,E,e){var t=x[0],r=x[1],o=!1;E===void 0&&(E=0),e===void 0&&(e=S.length);for(var i=e-E,n=0,a=i-1;n<i;a=n++){var s=S[n+E][0],h=S[n+E][1],c=S[a+E][0],m=S[a+E][1],d=h>r!=m>r&&t<(c-s)*(r-h)/(m-h)+s;d&&(o=!o)}return o}}}),vy=De({"src/lib/polygon.js"(Y,H){"use strict";var p=m_().dot,x=zn().BADNUM,S=H.exports={};S.tester=function(e){var t=e.slice(),r=t[0][0],o=r,i=t[0][1],n=i,a;for((t[t.length-1][0]!==t[0][0]||t[t.length-1][1]!==t[0][1])&&t.push(t[0]),a=1;a<t.length;a++)r=Math.min(r,t[a][0]),o=Math.max(o,t[a][0]),i=Math.min(i,t[a][1]),n=Math.max(n,t[a][1]);var s=!1,h;t.length===5&&(t[0][0]===t[1][0]?t[2][0]===t[3][0]&&t[0][1]===t[3][1]&&t[1][1]===t[2][1]&&(s=!0,h=function(l){return l[0]===t[0][0]}):t[0][1]===t[1][1]&&t[2][1]===t[3][1]&&t[0][0]===t[3][0]&&t[1][0]===t[2][0]&&(s=!0,h=function(l){return l[1]===t[0][1]}));function c(l,_){var w=l[0],A=l[1];return!(w===x||w<r||w>o||A===x||A<i||A>n||_&&h(l))}function m(l,_){var w=l[0],A=l[1];if(w===x||w<r||w>o||A===x||A<i||A>n)return!1;var M=t.length,g=t[0][0],b=t[0][1],v=0,u,y,f,R,L;for(u=1;u<M;u++)if(y=g,f=b,g=t[u][0],b=t[u][1],R=Math.min(y,g),!(w<R||w>Math.max(y,g)||A>Math.max(f,b)))if(A<Math.min(f,b))w!==R&&v++;else{if(g===y?L=A:L=f+(w-y)*(b-f)/(g-y),A===L)return!(u===1&&_);A<=L&&w!==R&&v++}return v%2===1}var d=!0,T=t[0];for(a=1;a<t.length;a++)if(T[0]!==t[a][0]||T[1]!==t[a][1]){d=!1;break}return{xmin:r,xmax:o,ymin:i,ymax:n,pts:t,contains:s?c:m,isRect:s,degenerate:d}},S.isSegmentBent=function(e,t,r,o){var i=e[t],n=[e[r][0]-i[0],e[r][1]-i[1]],a=p(n,n),s=Math.sqrt(a),h=[-n[1]/s,n[0]/s],c,m,d;for(c=t+1;c<r;c++)if(m=[e[c][0]-i[0],e[c][1]-i[1]],d=p(m,n),d<0||d>a||Math.abs(p(m,h))>o)return!0;return!1},S.filter=function(e,t){var r=[e[0]],o=0,i=0;function n(s){e.push(s);var h=r.length,c=o;r.splice(i+1);for(var m=c+1;m<e.length;m++)(m===e.length-1||S.isSegmentBent(e,c,m+1,t))&&(r.push(e[m]),r.length<h-2&&(o=m,i=r.length-1),c=m)}if(e.length>1){var a=e.pop();n(a)}return{addPt:n,raw:e,filtered:r}}}}),aE=De({"src/components/selections/constants.js"(Y,H){"use strict";H.exports={BENDPX:1.5,MINSELECT:12,SELECTDELAY:100,SELECTID:"-select"}}}),nE=De({"src/components/selections/select.js"(Y,H){"use strict";var p=rE(),x=iE(),S=Mo(),E=ys().dashStyle,e=vo(),t=sf(),r=Ad().makeEventData,o=dv(),i=o.freeMode,n=o.rectMode,a=o.drawMode,s=o.openMode,h=o.selectMode,c=Xp(),m=hy(),d=k_(),T=Vp().clearOutline,l=Wp(),_=l.handleEllipse,w=l.readPaths,A=E_().newShapes,M=r2(),g=u2().activateLastSelection,b=ui(),v=b.sorterAsc,u=vy(),y=x_(),f=nf().getFromId,R=fy(),L=dy().redrawReglTraces,z=aE(),F=z.MINSELECT,N=u.filter,B=u.tester,I=M_(),U=I.p2r,O=I.axValue,X=I.getTransform;function J(Ne){return Ne.subplot!==void 0}function se(Ne,Ye,be,Ie,qe){var ke=!J(Ie),Me=i(qe),Le=n(qe),ut=s(qe),lt=a(qe),gt=h(qe),kt=qe==="drawline",nr=qe==="drawcircle",ir=kt||nr,tr=Ie.gd,Ir=tr._fullLayout,vi=gt&&Ir.newselection.mode==="immediate"&&ke,Vi=Ir._zoomlayer,Ui=Ie.element.getBoundingClientRect(),Ki=Ie.plotinfo,ea=X(Ki),Bi=Ye-Ui.left,_a=be-Ui.top;Ir._calcInverseTransform(tr);var Ca=b.apply3DTransform(Ir._invTransform)(Bi,_a);Bi=Ca[0],_a=Ca[1];var Kt=Ir._invScaleX,zt=Ir._invScaleY,Zt=Bi,Jt=_a,Br="M"+Bi+","+_a,ri=Ie.xaxes[0],ii=Ie.yaxes[0],di=ri._length,Wi=ii._length,oa=Ne.altKey&&!(a(qe)&&ut),ra,ca,xa,ji,pn,_n,En;V(Ne,tr,Ie),Me&&(ra=N([[Bi,_a]],z.BENDPX));var bt=Vi.selectAll("path.select-outline-"+Ki.id).data([1]),st=lt?Ir.newshape:Ir.newselection;lt&&(Ie.hasText=st.label.text||st.label.texttemplate);var Nr=lt&&!ut?st.fillcolor:"rgba(0,0,0,0)",Lr=st.line.color||(ke?e.contrast(tr._fullLayout.plot_bgcolor):"#7f7f7f");bt.enter().append("path").attr("class","select-outline select-outline-"+Ki.id).style({opacity:lt?st.opacity/2:1,"stroke-dasharray":E(st.line.dash,st.line.width),"stroke-width":st.line.width+"px","shape-rendering":"crispEdges"}).call(e.stroke,Lr).call(e.fill,Nr).attr("fill-rule","evenodd").classed("cursor-move",!!lt).attr("transform",ea).attr("d",Br+"Z");var br=Vi.append("path").attr("class","zoombox-corners").style({fill:e.background,stroke:e.defaultLine,"stroke-width":1}).attr("transform",ea).attr("d","M0,0Z");if(lt&&Ie.hasText){var Rr=Vi.select(".label-temp");Rr.empty()&&(Rr=Vi.append("g").classed("label-temp",!0).classed("select-outline",!0).style({opacity:.8}))}var jr=Ir._uid+z.SELECTID,Wr=[],yt=re(tr,Ie.xaxes,Ie.yaxes,Ie.subplot);vi&&!Ne.shiftKey&&(Ie._clearSubplotSelections=function(){if(ke){var mr=ri._id,Or=ii._id;at(tr,mr,Or,yt);for(var ki=(tr.layout||{}).selections||[],Ni=[],Si=!1,fi=0;fi<ki.length;fi++){var Li=Ir.selections[fi];!Li||Li.xref!==mr||Li.yref!==Or?Ni.push(ki[fi]):Si=!0}Si&&(tr._fullLayout._noEmitSelectedAtStart=!0,S.call("_guiRelayout",tr,{selections:Ni}))}});var Xt=qr(Ie);Ie.moveFn=function(mr,Or){Ie._clearSubplotSelections&&(Ie._clearSubplotSelections(),Ie._clearSubplotSelections=void 0),Zt=Math.max(0,Math.min(di,Kt*mr+Bi)),Jt=Math.max(0,Math.min(Wi,zt*Or+_a));var ki=Math.abs(Zt-Bi),Ni=Math.abs(Jt-_a);if(Le){var Si,fi,Li;if(gt){var Ia=Ir.selectdirection;switch(Ia==="any"?Ni<Math.min(ki*.6,F)?Si="h":ki<Math.min(Ni*.6,F)?Si="v":Si="d":Si=Ia,Si){case"h":fi=nr?Wi/2:0,Li=Wi;break;case"v":fi=nr?di/2:0,Li=di;break}}if(lt)switch(Ir.newshape.drawdirection){case"vertical":Si="h",fi=nr?Wi/2:0,Li=Wi;break;case"horizontal":Si="v",fi=nr?di/2:0,Li=di;break;case"ortho":ki<Ni?(Si="h",fi=_a,Li=Jt):(Si="v",fi=Bi,Li=Zt);break;default:Si="d"}Si==="h"?(ji=ir?_(nr,[Zt,fi],[Zt,Li]):[[Bi,fi],[Bi,Li],[Zt,Li],[Zt,fi]],ji.xmin=ir?Zt:Math.min(Bi,Zt),ji.xmax=ir?Zt:Math.max(Bi,Zt),ji.ymin=Math.min(fi,Li),ji.ymax=Math.max(fi,Li),br.attr("d","M"+ji.xmin+","+(_a-F)+"h-4v"+2*F+"h4ZM"+(ji.xmax-1)+","+(_a-F)+"h4v"+2*F+"h-4Z")):Si==="v"?(ji=ir?_(nr,[fi,Jt],[Li,Jt]):[[fi,_a],[fi,Jt],[Li,Jt],[Li,_a]],ji.xmin=Math.min(fi,Li),ji.xmax=Math.max(fi,Li),ji.ymin=ir?Jt:Math.min(_a,Jt),ji.ymax=ir?Jt:Math.max(_a,Jt),br.attr("d","M"+(Bi-F)+","+ji.ymin+"v-4h"+2*F+"v4ZM"+(Bi-F)+","+(ji.ymax-1)+"v4h"+2*F+"v-4Z")):Si==="d"&&(ji=ir?_(nr,[Bi,_a],[Zt,Jt]):[[Bi,_a],[Bi,Jt],[Zt,Jt],[Zt,_a]],ji.xmin=Math.min(Bi,Zt),ji.xmax=Math.max(Bi,Zt),ji.ymin=Math.min(_a,Jt),ji.ymax=Math.max(_a,Jt),br.attr("d","M0,0Z"))}else Me&&(ra.addPt([Zt,Jt]),ji=ra.filtered);if(Ie.selectionDefs&&Ie.selectionDefs.length?(xa=et(Ie.mergedPolygons,ji,oa),ji.subtract=oa,ca=ee(Ie.selectionDefs.concat([ji]))):(xa=[ji],ca=B(ji)),d(Ae(xa,ut),bt,Ie),gt){var Fa=fe(tr,!1),un=Fa.eventData?Fa.eventData.points.slice():[];Fa=fe(tr,!1,ca,yt,Ie),ca=Fa.selectionTesters,En=Fa.eventData;var Bn;ra?Bn=ra.filtered:Bn=Wt(xa),y.throttle(jr,z.SELECTDELAY,function(){Wr=me(ca,yt);for(var Kn=Wr.slice(),Gn=0;Gn<un.length;Gn++){for(var eo=un[Gn],Ao=!1,An=0;An<Kn.length;An++)if(Kn[An].curveNumber===eo.curveNumber&&Kn[An].pointNumber===eo.pointNumber){Ao=!0;break}Ao||Kn.push(eo)}Kn.length&&(En||(En={}),En.points=Kn),Xt(En,Bn),Mr(tr,En)})}},Ie.clickFn=function(mr,Or){if(br.remove(),tr._fullLayout._activeShapeIndex>=0){tr._fullLayout._deactivateShape(tr);return}if(!lt){var ki=Ir.clickmode;y.done(jr).then(function(){if(y.clear(jr),mr===2){for(bt.remove(),pn=0;pn<yt.length;pn++)_n=yt[pn],_n._module.selectPoints(_n,!1);if(tt(tr,yt),j(Ie),xt(tr),yt.length){var Ni=yt[0].xaxis,Si=yt[0].yaxis;if(Ni&&Si){for(var fi=[],Li=tr._fullLayout.selections,Ia=0;Ia<Li.length;Ia++){var Fa=Li[Ia];Fa&&(Fa.xref!==Ni._id||Fa.yref!==Si._id)&&fi.push(Fa)}fi.length<Li.length&&(tr._fullLayout._noEmitSelectedAtStart=!0,S.call("_guiRelayout",tr,{selections:fi}))}}}else ki.indexOf("select")>-1&&le(Or,tr,Ie.xaxes,Ie.yaxes,Ie.subplot,Ie,bt),ki==="event"&&Dr(tr,void 0);t.click(tr,Or,Ki.id)}).catch(b.error)}},Ie.doneFn=function(){br.remove(),y.done(jr).then(function(){y.clear(jr),!vi&&ji&&Ie.selectionDefs&&(ji.subtract=oa,Ie.selectionDefs.push(ji),Ie.mergedPolygons.length=0,[].push.apply(Ie.mergedPolygons,xa)),(vi||lt)&&j(Ie,vi),Ie.doneFnCompleted&&Ie.doneFnCompleted(Wr),gt&&Dr(tr,En)}).catch(b.error)}}function le(Ne,Ye,be,Ie,qe,ke,Me){var Le=Ye._hoverdata,ut=Ye._fullLayout,lt=ut.clickmode,gt=lt.indexOf("event")>-1,kt=[],nr,ir,tr,Ir,vi,Vi,Ui,Ki,ea,Bi;if(_e(Le)){V(Ne,Ye,ke),nr=re(Ye,be,Ie,qe);var _a=we(Le,nr),Ca=_a.pointNumbers.length>0;if(Ca?ze(nr,_a):Xe(nr)&&(Ui=Re(_a))){for(Me&&Me.remove(),Bi=0;Bi<nr.length;Bi++)ir=nr[Bi],ir._module.selectPoints(ir,!1);tt(Ye,nr),j(ke),gt&&xt(Ye)}else{Ki=Ne.shiftKey&&(Ui!==void 0?Ui:Re(_a)),tr=ce(_a.pointNumber,_a.searchInfo,Ki);var Kt=ke.selectionDefs.concat([tr]);for(Ir=ee(Kt,Ir),Bi=0;Bi<nr.length;Bi++)if(vi=nr[Bi]._module.selectPoints(nr[Bi],Ir),Vi=nt(vi,nr[Bi]),kt.length)for(var zt=0;zt<Vi.length;zt++)kt.push(Vi[zt]);else kt=Vi;if(ea={points:kt},tt(Ye,nr,ea),tr&&ke&&ke.selectionDefs.push(tr),Me){var Zt=ke.mergedPolygons,Jt=s(ke.dragmode);d(Ae(Zt,Jt),Me,ke)}gt&&Dr(Ye,ea)}}}function ce(Ne,Ye,be){return{pointNumber:Ne,searchInfo:Ye,subtract:!!be}}function q(Ne){return"pointNumber"in Ne&&"searchInfo"in Ne}function Z(Ne){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(Ye,be,Ie,qe){var ke=Ne.searchInfo.cd[0].trace.index,Me=qe.cd[0].trace.index;return Me===ke&&Ie===Ne.pointNumber},isRect:!1,degenerate:!1,subtract:!!Ne.subtract}}function ee(Ne){if(!Ne.length)return;for(var Ye=[],be=q(Ne[0])?0:Ne[0][0][0],Ie=be,qe=q(Ne[0])?0:Ne[0][0][1],ke=qe,Me=0;Me<Ne.length;Me++)if(q(Ne[Me]))Ye.push(Z(Ne[Me]));else{var Le=B(Ne[Me]);Le.subtract=!!Ne[Me].subtract,Ye.push(Le),be=Math.min(be,Le.xmin),Ie=Math.max(Ie,Le.xmax),qe=Math.min(qe,Le.ymin),ke=Math.max(ke,Le.ymax)}function ut(lt,gt,kt,nr){for(var ir=!1,tr=0;tr<Ye.length;tr++)Ye[tr].contains(lt,gt,kt,nr)&&(ir=!Ye[tr].subtract);return ir}return{xmin:be,xmax:Ie,ymin:qe,ymax:ke,pts:[],contains:ut,isRect:!1,degenerate:!1}}function V(Ne,Ye,be){var Ie=Ye._fullLayout,qe=be.plotinfo,ke=be.dragmode,Me=Ie._lastSelectedSubplot&&Ie._lastSelectedSubplot===qe.id,Le=(Ne.shiftKey||Ne.altKey)&&!(a(ke)&&s(ke));Me&&Le&&qe.selection&&qe.selection.selectionDefs&&!be.selectionDefs?(be.selectionDefs=qe.selection.selectionDefs,be.mergedPolygons=qe.selection.mergedPolygons):(!Le||!qe.selection)&&j(be),Me||(T(Ye),Ie._lastSelectedSubplot=qe.id)}function oe(Ne){return Ne._fullLayout._activeShapeIndex>=0}function ie(Ne){return Ne._fullLayout._activeSelectionIndex>=0}function j(Ne,Ye){var be=Ne.dragmode,Ie=Ne.plotinfo,qe=Ne.gd;oe(qe)&&qe._fullLayout._deactivateShape(qe),ie(qe)&&qe._fullLayout._deactivateSelection(qe);var ke=qe._fullLayout,Me=ke._zoomlayer,Le=a(be),ut=h(be);if(Le||ut){var lt=Me.selectAll(".select-outline-"+Ie.id);if(lt&&qe._fullLayout._outlining){var gt;Le&&(gt=A(lt,Ne)),gt&&S.call("_guiRelayout",qe,{shapes:gt});var kt;ut&&!J(Ne)&&(kt=M(lt,Ne)),kt&&(qe._fullLayout._noEmitSelectedAtStart=!0,S.call("_guiRelayout",qe,{selections:kt}).then(function(){Ye&&g(qe)})),qe._fullLayout._outlining=!1}}Ie.selection={},Ie.selection.selectionDefs=Ne.selectionDefs=[],Ie.selection.mergedPolygons=Ne.mergedPolygons=[]}function Q(Ne){return Ne._id}function re(Ne,Ye,be,Ie){if(!Ne.calcdata)return[];var qe=[],ke=Ye.map(Q),Me=be.map(Q),Le,ut,lt;for(lt=0;lt<Ne.calcdata.length;lt++)if(Le=Ne.calcdata[lt],ut=Le[0].trace,!(ut.visible!==!0||!ut._module||!ut._module.selectPoints))if(J({subplot:Ie})&&(ut.subplot===Ie||ut.geo===Ie))qe.push(ue(ut._module,Le,Ye[0],be[0]));else if(ut.type==="splom"){if(ut._xaxes[ke[0]]&&ut._yaxes[Me[0]]){var gt=ue(ut._module,Le,Ye[0],be[0]);gt.scene=Ne._fullLayout._splomScenes[ut.uid],qe.push(gt)}}else if(ut.type==="sankey"){var kt=ue(ut._module,Le,Ye[0],be[0]);qe.push(kt)}else{if(ke.indexOf(ut.xaxis)===-1&&(!ut._xA||!ut._xA.overlaying)||Me.indexOf(ut.yaxis)===-1&&(!ut._yA||!ut._yA.overlaying))continue;qe.push(ue(ut._module,Le,f(Ne,ut.xaxis),f(Ne,ut.yaxis)))}return qe}function ue(Ne,Ye,be,Ie){return{_module:Ne,cd:Ye,xaxis:be,yaxis:Ie}}function _e(Ne){return Ne&&Array.isArray(Ne)&&Ne[0].hoverOnBox!==!0}function we(Ne,Ye){var be=Ne[0],Ie=-1,qe=[],ke,Me;for(Me=0;Me<Ye.length;Me++)if(ke=Ye[Me],be.fullData.index===ke.cd[0].trace.index){if(be.hoverOnBox===!0)break;be.pointNumber!==void 0?Ie=be.pointNumber:be.binNumber!==void 0&&(Ie=be.binNumber,qe=be.pointNumbers);break}return{pointNumber:Ie,pointNumbers:qe,searchInfo:ke}}function Re(Ne){var Ye=Ne.searchInfo.cd[0].trace,be=Ne.pointNumber,Ie=Ne.pointNumbers,qe=Ie.length>0,ke=qe?Ie[0]:be;return Ye.selectedpoints?Ye.selectedpoints.indexOf(ke)>-1:!1}function ze(Ne,Ye){var be=[],Ie,qe,ke,Me;for(Me=0;Me<Ne.length;Me++)Ie=Ne[Me],Ie.cd[0].trace.selectedpoints&&Ie.cd[0].trace.selectedpoints.length>0&&be.push(Ie);if(be.length===1&&(ke=be[0]===Ye.searchInfo,ke&&(qe=Ye.searchInfo.cd[0].trace,qe.selectedpoints.length===Ye.pointNumbers.length))){for(Me=0;Me<Ye.pointNumbers.length;Me++)if(qe.selectedpoints.indexOf(Ye.pointNumbers[Me])<0)return!1;return!0}return!1}function Xe(Ne){var Ye=0,be,Ie,qe;for(qe=0;qe<Ne.length;qe++)if(be=Ne[qe],Ie=be.cd[0].trace,Ie.selectedpoints&&(Ie.selectedpoints.length>1||(Ye+=Ie.selectedpoints.length,Ye>1)))return!1;return Ye===1}function tt(Ne,Ye,be){var Ie;for(Ie=0;Ie<Ye.length;Ie++){var qe=Ye[Ie].cd[0].trace._fullInput,ke=Ne._fullLayout._tracePreGUI[qe.uid]||{};ke.selectedpoints===void 0&&(ke.selectedpoints=qe._input.selectedpoints||null)}var Me;if(be){var Le=be.points||[];for(Ie=0;Ie<Ye.length;Ie++)Me=Ye[Ie].cd[0].trace,Me._input.selectedpoints=Me._fullInput.selectedpoints=[],Me._fullInput!==Me&&(Me.selectedpoints=[]);for(var ut=0;ut<Le.length;ut++){var lt=Le[ut],gt=lt.data,kt=lt.fullData,nr=lt.pointIndex,ir=lt.pointIndices;ir?([].push.apply(gt.selectedpoints,ir),Me._fullInput!==Me&&[].push.apply(kt.selectedpoints,ir)):(gt.selectedpoints.push(nr),Me._fullInput!==Me&&kt.selectedpoints.push(nr))}}else for(Ie=0;Ie<Ye.length;Ie++)Me=Ye[Ie].cd[0].trace,delete Me.selectedpoints,delete Me._input.selectedpoints,Me._fullInput!==Me&&delete Me._fullInput.selectedpoints;it(Ne,Ye)}function it(Ne,Ye){for(var be=!1,Ie=0;Ie<Ye.length;Ie++){var qe=Ye[Ie],ke=qe.cd;S.traceIs(ke[0].trace,"regl")&&(be=!0);var Me=qe._module,Le=Me.styleOnSelect||Me.style;Le&&(Le(Ne,ke,ke[0].node3),ke[0].nodeRangePlot3&&Le(Ne,ke,ke[0].nodeRangePlot3))}be&&(R(Ne),L(Ne))}function et(Ne,Ye,be){for(var Ie=be?p.difference:p.union,qe=Ie({regions:Ne},{regions:[Ye]}),ke=qe.regions.reverse(),Me=0;Me<ke.length;Me++){var Le=ke[Me];Le.subtract=Pt(Le,ke.slice(0,Me))}return ke}function nt(Ne,Ye){if(Array.isArray(Ne))for(var be=Ye.cd,Ie=Ye.cd[0].trace,qe=0;qe<Ne.length;qe++)Ne[qe]=r(Ne[qe],Ie,be);return Ne}function Ae(Ne,Ye){for(var be=[],Ie=0;Ie<Ne.length;Ie++){be[Ie]=[];for(var qe=0;qe<Ne[Ie].length;qe++){be[Ie][qe]=[],be[Ie][qe][0]=qe?"L":"M";for(var ke=0;ke<Ne[Ie][qe].length;ke++)be[Ie][qe].push(Ne[Ie][qe][ke])}Ye||be[Ie].push(["Z",be[Ie][0][1],be[Ie][0][2]])}return be}function me(Ne,Ye){for(var be=[],Ie,qe=[],ke,Me=0;Me<Ye.length;Me++){var Le=Ye[Me];ke=Le._module.selectPoints(Le,Ne),qe.push(ke),Ie=nt(ke,Le),be=be.concat(Ie)}return be}function fe(Ne,Ye,be,Ie,qe){var ke=!!Ie,Me,Le,ut;qe&&(Me=qe.plotinfo,Le=qe.xaxes[0]._id,ut=qe.yaxes[0]._id);var lt=[],gt=[],kt=It(Ne),nr=Ne._fullLayout;if(Me){var ir=nr._zoomlayer,tr=nr.dragmode,Ir=a(tr),vi=h(tr);if(Ir||vi){var Vi=f(Ne,Le,"x"),Ui=f(Ne,ut,"y");if(Vi&&Ui){var Ki=ir.selectAll(".select-outline-"+Me.id);if(Ki&&Ne._fullLayout._outlining&&Ki.length){for(var ea=Ki[0][0],Bi=ea.getAttribute("d"),_a=w(Bi,Ne,Me),Ca=[],Kt=0;Kt<_a.length;Kt++){for(var zt=_a[Kt],Zt=[],Jt=0;Jt<zt.length;Jt++)Zt.push([Vt(Vi,zt[Jt][1]),Vt(Ui,zt[Jt][2])]);Zt.xref=Le,Zt.yref=ut,Zt.subtract=Pt(Zt,Ca),Ca.push(Zt)}kt=kt.concat(Ca)}}}}var Br=Le&&ut?[Le+ut]:nr._subplots.cartesian;Be(Ne);for(var ri={},ii=0;ii<Br.length;ii++){var di=Br[ii],Wi=di.indexOf("y"),oa=di.slice(0,Wi),ra=di.slice(Wi),ca=Le&&ut?be:void 0;if(ca=$e(kt,oa,ra,ca),ca){var xa=Ie;if(!ke){var ji=f(Ne,oa,"x"),pn=f(Ne,ra,"y");xa=re(Ne,[ji],[pn],di);for(var _n=0;_n<xa.length;_n++){var En=xa[_n],bt=En.cd[0],st=bt.trace;if(En._module.name==="scattergl"&&!bt.t.xpx){var Nr=st.x,Lr=st.y,br=st._length;bt.t.xpx=[],bt.t.ypx=[];for(var Rr=0;Rr<br;Rr++)bt.t.xpx[Rr]=ji.c2p(Nr[Rr]),bt.t.ypx[Rr]=pn.c2p(Lr[Rr])}En._module.name==="splom"&&(ri[st.uid]||(ri[st.uid]=!0))}}var jr=me(ca,xa);lt=lt.concat(jr),gt=gt.concat(xa)}}var Wr={points:lt};tt(Ne,gt,Wr);var yt=nr.clickmode,Xt=yt.indexOf("event")>-1&&Ye;if(!Me&&Ye){var mr=It(Ne,!0);if(mr.length){var Or=mr[0].xref,ki=mr[0].yref;if(Or&&ki){var Ni=Wt(mr),Si=yr([f(Ne,Or,"x"),f(Ne,ki,"y")]);Si(Wr,Ni)}}Ne._fullLayout._noEmitSelectedAtStart?Ne._fullLayout._noEmitSelectedAtStart=!1:Xt&&Dr(Ne,Wr),nr._reselect=!1}if(!Me&&nr._deselect){var fi=nr._deselect;Le=fi.xref,ut=fi.yref,Qe(Le,ut,gt)||at(Ne,Le,ut,Ie),Xt&&(Wr.points.length?Dr(Ne,Wr):xt(Ne)),nr._deselect=!1}return{eventData:Wr,selectionTesters:be}}function Be(Ne){var Ye=Ne.calcdata;if(Ye)for(var be=0;be<Ye.length;be++){var Ie=Ye[be][0],qe=Ie.trace,ke=Ne._fullLayout._splomScenes;if(ke){var Me=ke[qe.uid];Me&&(Me.selectBatch=[])}}}function Qe(Ne,Ye,be){for(var Ie=0;Ie<be.length;Ie++){var qe=be[Ie];if(qe.xaxis&&qe.xaxis._id===Ne&&qe.yaxis&&qe.yaxis._id===Ye)return!0}return!1}function at(Ne,Ye,be,Ie){Ie=re(Ne,[f(Ne,Ye,"x")],[f(Ne,be,"y")],Ye+be);for(var qe=0;qe<Ie.length;qe++){var ke=Ie[qe];ke._module.selectPoints(ke,!1)}tt(Ne,Ie)}function $e(Ne,Ye,be,Ie){for(var qe,ke=0;ke<Ne.length;ke++){var Me=Ne[ke];if(!(Ye!==Me.xref||be!==Me.yref))if(qe){var Le=!!Me.subtract;qe=et(qe,Me,Le),Ie=ee(qe)}else qe=[Me],Ie=B(Me)}return Ie}function It(Ne,Ye){for(var be=[],Ie=Ne._fullLayout,qe=Ie.selections,ke=qe.length,Me=0;Me<ke;Me++)if(!(Ye&&Me!==Ie._activeSelectionIndex)){var Le=qe[Me];if(Le){var ut=Le.xref,lt=Le.yref,gt=f(Ne,ut,"x"),kt=f(Ne,lt,"y"),nr,ir,tr,Ir,vi;if(Le.type==="rect"){vi=[];var Vi=Vt(gt,Le.x0),Ui=Vt(gt,Le.x1),Ki=Vt(kt,Le.y0),ea=Vt(kt,Le.y1);vi=[[Vi,Ki],[Vi,ea],[Ui,ea],[Ui,Ki]],nr=Math.min(Vi,Ui),ir=Math.max(Vi,Ui),tr=Math.min(Ki,ea),Ir=Math.max(Ki,ea),vi.xmin=nr,vi.xmax=ir,vi.ymin=tr,vi.ymax=Ir,vi.xref=ut,vi.yref=lt,vi.subtract=!1,vi.isRect=!0,be.push(vi)}else if(Le.type==="path")for(var Bi=Le.path.split("Z"),_a=[],Ca=0;Ca<Bi.length;Ca++){var Kt=Bi[Ca];if(Kt){Kt+="Z";var zt=c.extractPathCoords(Kt,m.paramIsX,"raw"),Zt=c.extractPathCoords(Kt,m.paramIsY,"raw");nr=1/0,ir=-1/0,tr=1/0,Ir=-1/0,vi=[];for(var Jt=0;Jt<zt.length;Jt++){var Br=Vt(gt,zt[Jt]),ri=Vt(kt,Zt[Jt]);vi.push([Br,ri]),nr=Math.min(Br,nr),ir=Math.max(Br,ir),tr=Math.min(ri,tr),Ir=Math.max(ri,Ir)}vi.xmin=nr,vi.xmax=ir,vi.ymin=tr,vi.ymax=Ir,vi.xref=ut,vi.yref=lt,vi.subtract=Pt(vi,_a),_a.push(vi),be.push(vi)}}}}return be}function Pt(Ne,Ye){for(var be=!1,Ie=0;Ie<Ye.length;Ie++)for(var qe=Ye[Ie],ke=0;ke<Ne.length;ke++)if(x(Ne[ke],qe)){be=!be;break}return be}function Vt(Ne,Ye){return Ne.type==="date"&&(Ye=Ye.replace("_"," ")),Ne.type==="log"?Ne.c2p(Ye):Ne.r2p(Ye,null,Ne.calendar)}function Wt(Ne){for(var Ye=Ne.length,be=[],Ie=0;Ie<Ye;Ie++){var qe=Ne[Ie];be=be.concat(qe),be=be.concat([qe[0]])}return Cr(be)}function Cr(Ne){return Ne.isRect=Ne.length===5&&Ne[0][0]===Ne[4][0]&&Ne[0][1]===Ne[4][1]&&Ne[0][0]===Ne[1][0]&&Ne[2][0]===Ne[3][0]&&Ne[0][1]===Ne[3][1]&&Ne[1][1]===Ne[2][1]||Ne[0][1]===Ne[1][1]&&Ne[2][1]===Ne[3][1]&&Ne[0][0]===Ne[3][0]&&Ne[1][0]===Ne[2][0],Ne.isRect&&(Ne.xmin=Math.min(Ne[0][0],Ne[2][0]),Ne.xmax=Math.max(Ne[0][0],Ne[2][0]),Ne.ymin=Math.min(Ne[0][1],Ne[2][1]),Ne.ymax=Math.max(Ne[0][1],Ne[2][1])),Ne}function yr(Ne){return function(Ye,be){for(var Ie,qe,ke=0;ke<Ne.length;ke++){var Me=Ne[ke],Le=Me._id,ut=Le.charAt(0);if(be.isRect){Ie||(Ie={});var lt=be[ut+"min"],gt=be[ut+"max"];lt!==void 0&&gt!==void 0&&(Ie[Le]=[U(Me,lt),U(Me,gt)].sort(v))}else qe||(qe={}),qe[Le]=be.map(O(Me))}Ie&&(Ye.range=Ie),qe&&(Ye.lassoPoints=qe)}}function qr(Ne){var Ye=Ne.plotinfo;return Ye.fillRangeItems||yr(Ne.xaxes.concat(Ne.yaxes))}function Mr(Ne,Ye){Ne.emit("plotly_selecting",Ye)}function Dr(Ne,Ye){Ye&&(Ye.selections=(Ne.layout||{}).selections||[]),Ne.emit("plotly_selected",Ye)}function xt(Ne){Ne.emit("plotly_deselect",null)}H.exports={reselect:fe,prepSelect:se,clearOutline:T,clearSelectionsCache:j,selectOnClick:le}}}),c2=De({"src/components/annotations/arrow_paths.js"(Y,H){"use strict";H.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}]}}),py=De({"src/constants/axis_placeable_objects.js"(Y,H){"use strict";H.exports={axisRefDescription:function(p,x,S){return["If set to a",p,"axis id (e.g. *"+p+"* or","*"+p+"2*), the `"+p+"` position refers to a",p,"coordinate. If set to *paper*, the `"+p+"`","position refers to the distance from the",x,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",x,"("+S+"). If set to a",p,"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",x,"of the domain of that axis: e.g.,","*"+p+"2 domain* refers to the domain of the second",p," axis and a",p,"position of 0.5 refers to the","point between the",x,"and the",S,"of the domain of the","second",p,"axis."].join(" ")}}}}),q0=De({"src/components/annotations/attributes.js"(Y,H){"use strict";var p=c2(),x=qu(),S=th(),E=Gl().templatedArray,e=py();H.exports=E("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:x({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:p.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:p.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",S.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",S.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",S.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",S.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:x({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc"})}}),zv=De({"src/traces/scatter/constants.js"(Y,H){"use strict";H.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}}}),vv=De({"src/traces/scatter/fillcolor_attribute.js"(Y,H){"use strict";H.exports=function(x){return{valType:"color",editType:"style",anim:!0}}}}),lf=De({"src/traces/scatter/attributes.js"(Y,H){"use strict";var p=of().axisHoverFormat,{hovertemplateAttrs:x,texttemplateAttrs:S,templatefallbackAttrs:E}=ou(),e=zu(),t=qu(),r=Ch().dash,o=Ch().pattern,i=ys(),n=zv(),a=Xo().extendFlat,s=vv();function h(d){return{valType:"any",dflt:0,editType:"calc"}}function c(d){return{valType:"any",editType:"calc"}}function m(d){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}H.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:h("x"),yperiod:h("y"),xperiod0:c("x0"),yperiod0:c("y0"),xperiodalignment:m("x"),yperiodalignment:m("y"),xhoverformat:p("x"),yhoverformat:p("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:S(),texttemplatefallback:E({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:x({},{keys:n.eventDataKeys}),hovertemplatefallback:E(),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:a({},r,{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:s(!0),fillgradient:a({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:o,marker:a({symbol:{valType:"enumerated",values:i.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:a({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},dash:a({},r,{arrayOk:!0}),editType:"calc"},e("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"},e("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:t({editType:"calc",colorEditType:"style",arrayOk:!0}),zorder:{valType:"integer",dflt:0,editType:"plot"}}}}),f2=De({"src/components/selections/attributes.js"(Y,H){"use strict";var p=q0(),x=lf().line,S=Ch().dash,E=Xo().extendFlat,e=gc().overrideAll,t=Gl().templatedArray,r=py();H.exports=e(t("selection",{type:{valType:"enumerated",values:["rect","path"]},xref:E({},p.xref,{}),yref:E({},p.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:x.color,width:E({},x.width,{min:1,dflt:1}),dash:E({},S,{dflt:"dot"})}}),"arraydraw","from-root")}}),oE=De({"src/components/selections/defaults.js"(Y,H){"use strict";var p=ui(),x=us(),S=Vh(),E=f2(),e=Xp();H.exports=function(o,i){S(o,i,{name:"selections",handleItemDefaults:t});for(var n=i.selections,a=0;a<n.length;a++){var s=n[a];s&&s.path===void 0&&(s.x0===void 0||s.x1===void 0||s.y0===void 0||s.y1===void 0)&&(i.selections[a]=null)}};function t(r,o,i){function n(R,L){return p.coerce(r,o,E,R,L)}var a=n("path"),s=a?"path":"rect",h=n("type",s),c=h!=="path";c&&delete o.path,n("opacity"),n("line.color"),n("line.width"),n("line.dash");for(var m=["x","y"],d=0;d<2;d++){var T=m[d],l={_fullLayout:i},_,w,A,M=x.coerceRef(r,o,l,T);if(_=x.getFromId(l,M),_._selectionIndices.push(o._index),A=e.rangeToShapePosition(_),w=e.shapePositionToRange(_),c){var g=T+"0",b=T+"1",v=r[g],u=r[b];r[g]=w(r[g],!0),r[b]=w(r[b],!0),x.coercePosition(o,l,n,M,g),x.coercePosition(o,l,n,M,b);var y=o[g],f=o[b];y!==void 0&&f!==void 0&&(o[g]=A(y),o[b]=A(f),r[g]=v,r[b]=u)}}c&&p.noneOrAll(r,o,["x0","x1","y0","y1"])}}}),sE=De({"src/components/selections/draw_newselection/defaults.js"(Y,H){"use strict";H.exports=function(x,S,E){E("newselection.mode");var e=E("newselection.line.width");e&&(E("newselection.line.color"),E("newselection.line.dash")),E("activeselection.fillcolor"),E("activeselection.opacity")}}}),my=De({"src/plots/cartesian/include_components.js"(Y,H){"use strict";var p=Mo(),x=ui(),S=nf();H.exports=function(e){return function(r,o){var i=r[e];if(Array.isArray(i))for(var n=p.subplotsRegistry.cartesian,a=n.idRegex,s=o._subplots,h=s.xaxis,c=s.yaxis,m=s.cartesian,d=o._has("cartesian"),T=0;T<i.length;T++){var l=i[T];if(x.isPlainObject(l)){var _=S.cleanId(l.xref,"x",!1),w=S.cleanId(l.yref,"y",!1),A=a.x.test(_),M=a.y.test(w);if(A||M){d||x.pushUnique(o._basePlotModules,n);var g=!1;A&&h.indexOf(_)===-1&&(h.push(_),g=!0),M&&c.indexOf(w)===-1&&(c.push(w),g=!0),g&&A&&M&&m.push(_+w)}}}}}}}),Af=De({"src/components/selections/index.js"(Y,H){"use strict";var p=u2(),x=nE();H.exports={moduleType:"component",name:"selections",layoutAttributes:f2(),supplyLayoutDefaults:oE(),supplyDrawNewSelectionDefaults:sE(),includeBasePlot:my()("selections"),draw:p.draw,drawOne:p.drawOne,reselect:x.reselect,prepSelect:x.prepSelect,clearOutline:x.clearOutline,clearSelectionsCache:x.clearSelectionsCache,selectOnClick:x.selectOnClick}}}),h2=De({"src/plots/cartesian/dragbox.js"(Y,H){"use strict";var p=za(),x=ui(),S=x.numberFormat,E=wu(),e=T_(),t=Mo(),r=x.strTranslate,o=vu(),i=vo(),n=ys(),a=sf(),s=us(),h=hv(),c=Qh(),m=dv(),d=m.selectingOrDrawing,T=m.freeMode,l=rh().FROM_TL,_=fy(),w=dy().redrawReglTraces,A=Mc(),M=nf().getFromId,g=Af().prepSelect,b=Af().clearOutline,v=Af().selectOnClick,u=l2(),y=th(),f=y.MINDRAG,R=y.MINZOOM,L=!0;function z(ue,_e,we,Re,ze,Xe,tt,it){var et=ue._fullLayout._zoomlayer,nt=tt+it==="nsew",Ae=(tt+it).length===1,me,fe,Be,Qe,at,$e,It,Pt,Vt,Wt,Cr,yr,qr,Mr,Dr,xt,Ne,Ye,be,Ie,qe,ke,Me;we+=_e.yaxis._shift;function Le(){if(me=_e.xaxis,fe=_e.yaxis,Vt=me._length,Wt=fe._length,It=me._offset,Pt=fe._offset,Be={},Be[me._id]=me,Qe={},Qe[fe._id]=fe,tt&&it)for(var bt=_e.overlays,st=0;st<bt.length;st++){var Nr=bt[st].xaxis;Be[Nr._id]=Nr;var Lr=bt[st].yaxis;Qe[Lr._id]=Lr}at=re(Be),$e=re(Qe),qr=B(at,it),Mr=B($e,tt),Dr=!Mr&&!qr,yr=j(ue,ue._fullLayout._axisMatchGroups,Be,Qe),Cr=j(ue,ue._fullLayout._axisConstraintGroups,Be,Qe,yr);var br=Cr.isSubplotConstrained||yr.isSubplotConstrained;xt=it||br,Ne=tt||br;var Rr=ue._fullLayout;Ye=Rr._has("scattergl"),be=Rr._has("splom"),Ie=Rr._has("svg")}Le();var ut=J(Mr+qr,ue._fullLayout.dragmode,nt),lt=N(_e,tt+it+"drag",ut,we,Re,ze,Xe);if(Dr&&!nt)return lt.onmousedown=null,lt.style.pointerEvents="none",lt;var gt={element:lt,gd:ue,plotinfo:_e};gt.prepFn=function(bt,st,Nr){var Lr=gt.dragmode,br=ue._fullLayout.dragmode;br!==Lr&&(gt.dragmode=br),Le(),ke=ue._fullLayout._invScaleX,Me=ue._fullLayout._invScaleY,Dr||(nt?bt.shiftKey?br==="pan"?br="zoom":d(br)||(br="pan"):bt.ctrlKey&&(br="pan"):br="pan"),T(br)?gt.minDrag=1:gt.minDrag=void 0,d(br)?(gt.xaxes=at,gt.yaxes=$e,g(bt,st,Nr,gt,br)):(gt.clickFn=nr,d(Lr)&&kt(),Dr||(br==="zoom"?(gt.moveFn=Kt,gt.doneFn=Zt,gt.minDrag=1,Ca(bt,st,Nr)):br==="pan"&&(gt.moveFn=Wi,gt.doneFn=xa))),ue._fullLayout._redrag=function(){var Rr=ue._dragdata;if(Rr&&Rr.element===lt){var jr=ue._fullLayout.dragmode;d(jr)||(Le(),ji([0,0,Vt,Wt]),gt.moveFn(Rr.dx,Rr.dy))}}};function kt(){gt.plotinfo.selection=!1,b(ue)}function nr(bt,st){var Nr=gt.gd;if(Nr._fullLayout._activeShapeIndex>=0){Nr._fullLayout._deactivateShape(Nr);return}var Lr=Nr._fullLayout.clickmode;if(Z(Nr),bt===2&&!Ae&&ca(),nt)Lr.indexOf("select")>-1&&v(st,Nr,at,$e,_e.id,gt),Lr.indexOf("event")>-1&&a.click(Nr,st,_e.id);else if(bt===1&&Ae){var br=tt?fe:me,Rr=tt==="s"||it==="w"?0:1,jr=br._name+".range["+Rr+"]",Wr=I(br,Rr),yt="left",Xt="middle";if(br.fixedrange)return;tt?(Xt=tt==="n"?"top":"bottom",br.side==="right"&&(yt="right")):it==="e"&&(yt="right"),Nr._context.showAxisRangeEntryBoxes&&p.select(lt).call(o.makeEditable,{gd:Nr,immediate:!0,background:Nr._fullLayout.paper_bgcolor,text:String(Wr),fill:br.tickfont?br.tickfont.color:"#444",horizontalAlign:yt,verticalAlign:Xt}).on("edit",function(mr){var Or=br.d2r(mr);Or!==void 0&&t.call("_guiRelayout",Nr,jr,Or)})}}c.init(gt);var ir,tr,Ir,vi,Vi,Ui,Ki,ea,Bi,_a;function Ca(bt,st,Nr){var Lr=lt.getBoundingClientRect();ir=st-Lr.left,tr=Nr-Lr.top,ue._fullLayout._calcInverseTransform(ue);var br=x.apply3DTransform(ue._fullLayout._invTransform)(ir,tr);ir=br[0],tr=br[1],Ir={l:ir,r:ir,w:0,t:tr,b:tr,h:0},vi=ue._hmpixcount?ue._hmlumcount/ue._hmpixcount:E(ue._fullLayout.plot_bgcolor).getLuminance(),Vi="M0,0H"+Vt+"V"+Wt+"H0V0",Ui=!1,Ki="xy",_a=!1,ea=se(et,vi,It,Pt,Vi),Bi=le(et,It,Pt)}function Kt(bt,st){if(ue._transitioningWithDuration)return!1;var Nr=Math.max(0,Math.min(Vt,ke*bt+ir)),Lr=Math.max(0,Math.min(Wt,Me*st+tr)),br=Math.abs(Nr-ir),Rr=Math.abs(Lr-tr);Ir.l=Math.min(ir,Nr),Ir.r=Math.max(ir,Nr),Ir.t=Math.min(tr,Lr),Ir.b=Math.max(tr,Lr);function jr(){Ki="",Ir.r=Ir.l,Ir.t=Ir.b,Bi.attr("d","M0,0Z")}if(Cr.isSubplotConstrained)br>R||Rr>R?(Ki="xy",br/Vt>Rr/Wt?(Rr=br*Wt/Vt,tr>Lr?Ir.t=tr-Rr:Ir.b=tr+Rr):(br=Rr*Vt/Wt,ir>Nr?Ir.l=ir-br:Ir.r=ir+br),Bi.attr("d",ie(Ir))):jr();else if(yr.isSubplotConstrained)if(br>R||Rr>R){Ki="xy";var Wr=Math.min(Ir.l/Vt,(Wt-Ir.b)/Wt),yt=Math.max(Ir.r/Vt,(Wt-Ir.t)/Wt);Ir.l=Wr*Vt,Ir.r=yt*Vt,Ir.b=(1-Wr)*Wt,Ir.t=(1-yt)*Wt,Bi.attr("d",ie(Ir))}else jr();else!Mr||Rr<Math.min(Math.max(br*.6,f),R)?br<f||!qr?jr():(Ir.t=0,Ir.b=Wt,Ki="x",Bi.attr("d",V(Ir,tr))):!qr||br<Math.min(Rr*.6,R)?(Ir.l=0,Ir.r=Vt,Ki="y",Bi.attr("d",oe(Ir,ir))):(Ki="xy",Bi.attr("d",ie(Ir)));Ir.w=Ir.r-Ir.l,Ir.h=Ir.b-Ir.t,Ki&&(_a=!0),ue._dragged=_a,ce(ea,Bi,Ir,Vi,Ui,vi),zt(),ue.emit("plotly_relayouting",qe),Ui=!0}function zt(){qe={},(Ki==="xy"||Ki==="x")&&(U(at,Ir.l/Vt,Ir.r/Vt,qe,Cr.xaxes),oa("x",qe)),(Ki==="xy"||Ki==="y")&&(U($e,(Wt-Ir.b)/Wt,(Wt-Ir.t)/Wt,qe,Cr.yaxes),oa("y",qe))}function Zt(){zt(),Z(ue),xa(),ee(ue)}var Jt=[0,0,Vt,Wt],Br=null,ri=y.REDRAWDELAY,ii=_e.mainplot?ue._fullLayout._plots[_e.mainplot]:_e;function di(bt){if(!ue._context._scrollZoom.cartesian&&!ue._fullLayout._enablescrollzoom)return;if(kt(),ue._transitioningWithDuration){bt.preventDefault(),bt.stopPropagation();return}Le(),clearTimeout(Br);var st=-bt.deltaY;if(isFinite(st)||(st=bt.wheelDelta/10),!isFinite(st)){x.log("Did not find wheel motion attributes: ",bt);return}var Nr=Math.exp(-Math.min(Math.max(st,-20),20)/200),Lr=ii.draglayer.select(".nsewdrag").node().getBoundingClientRect(),br=(bt.clientX-Lr.left)/Lr.width,Rr=(Lr.bottom-bt.clientY)/Lr.height,jr;function Wr(yt,Xt,mr){if(yt.fixedrange)return;var Or=x.simpleMap(yt.range,yt.r2l),ki=Or[0]+(Or[1]-Or[0])*Xt;function Ni(Si){return yt.l2r(ki+(Si-ki)*mr)}yt.range=Or.map(Ni)}if(xt){for(it||(br=.5),jr=0;jr<at.length;jr++)Wr(at[jr],br,Nr);oa("x"),Jt[2]*=Nr,Jt[0]+=Jt[2]*br*(1/Nr-1)}if(Ne){for(tt||(Rr=.5),jr=0;jr<$e.length;jr++)Wr($e[jr],Rr,Nr);oa("y"),Jt[3]*=Nr,Jt[1]+=Jt[3]*(1-Rr)*(1/Nr-1)}ji(Jt),ra(),ue.emit("plotly_relayouting",qe),Br=setTimeout(function(){ue._fullLayout&&(Jt=[0,0,Vt,Wt],xa())},ri),bt.preventDefault()}tt.length*it.length!==1&&Q(lt,di);function Wi(bt,st){if(bt=bt*ke,st=st*Me,ue._transitioningWithDuration)return;if(ue._fullLayout._replotting=!0,qr==="ew"||Mr==="ns"){var Nr=qr?-bt:0,Lr=Mr?-st:0;if(yr.isSubplotConstrained){if(qr&&Mr){var br=(bt/Vt-st/Wt)/2;bt=br*Vt,st=-br*Wt,Nr=-bt,Lr=-st}Mr?Nr=-Lr*Vt/Wt:Lr=-Nr*Wt/Vt}qr&&(O(at,bt),oa("x")),Mr&&(O($e,st),oa("y")),ji([Nr,Lr,Vt,Wt]),ra(),ue.emit("plotly_relayouting",qe);return}function Rr(Ni,Si,fi){for(var Li=1-Si,Ia,Fa,un=0;un<Ni.length;un++){var Bn=Ni[un];if(!Bn.fixedrange){Ia=Bn,Fa=Bn._rl[Li]+(Bn._rl[Si]-Bn._rl[Li])/X(fi/Bn._length);var Kn=Bn.l2r(Fa);Kn!==!1&&Kn!==void 0&&(Bn.range[Si]=Kn)}}return Ia._length*(Ia._rl[Si]-Fa)/(Ia._rl[Si]-Ia._rl[Li])}var jr=qr==="w"==(Mr==="n")?1:-1;if(qr&&Mr&&(Cr.isSubplotConstrained||yr.isSubplotConstrained)){var Wr=(bt/Vt+jr*st/Wt)/2;bt=Wr*Vt,st=jr*Wr*Wt}var yt,Xt;if(qr==="w"?bt=Rr(at,0,bt):qr==="e"?bt=Rr(at,1,-bt):qr||(bt=0),Mr==="n"?st=Rr($e,1,st):Mr==="s"?st=Rr($e,0,-st):Mr||(st=0),yt=qr==="w"?bt:0,Xt=Mr==="n"?st:0,Cr.isSubplotConstrained&&!yr.isSubplotConstrained||yr.isSubplotConstrained&&qr&&Mr&&jr>0){var mr;if(yr.isSubplotConstrained||!qr&&Mr.length===1){for(mr=0;mr<at.length;mr++)at[mr].range=at[mr]._r.slice(),u(at[mr],1-st/Wt);bt=st*Vt/Wt,yt=bt/2}if(yr.isSubplotConstrained||!Mr&&qr.length===1){for(mr=0;mr<$e.length;mr++)$e[mr].range=$e[mr]._r.slice(),u($e[mr],1-bt/Vt);st=bt*Wt/Vt,Xt=st/2}}(!yr.isSubplotConstrained||!Mr)&&oa("x"),(!yr.isSubplotConstrained||!qr)&&oa("y");var Or=Vt-bt,ki=Wt-st;yr.isSubplotConstrained&&!(qr&&Mr)&&(qr?(Xt=yt?0:bt*Wt/Vt,ki=Or*Wt/Vt):(yt=Xt?0:st*Vt/Wt,Or=ki*Vt/Wt)),ji([yt,Xt,Or,ki]),ra(),ue.emit("plotly_relayouting",qe)}function oa(bt,st){for(var Nr=yr.isSubplotConstrained?{x:$e,y:at}[bt]:yr[bt+"axes"],Lr=yr.isSubplotConstrained?{x:at,y:$e}[bt]:[],br=0;br<Nr.length;br++){var Rr=Nr[br],jr=Rr._id,Wr=yr.xLinks[jr]||yr.yLinks[jr],yt=Lr[0]||Be[Wr]||Qe[Wr];yt&&(st?(st[Rr._name+".range[0]"]=st[yt._name+".range[0]"],st[Rr._name+".range[1]"]=st[yt._name+".range[1]"]):Rr.range=yt.range.slice())}}function ra(){var bt=[],st;function Nr(jr){for(st=0;st<jr.length;st++)jr[st].fixedrange||bt.push(jr[st]._id)}function Lr(jr,Wr){for(st=0;st<jr.length;st++){var yt=jr[st],Xt=yt[Wr];!yt.fixedrange&&Xt.tickmode==="sync"&&bt.push(Xt._id)}}for(xt&&(Nr(at),Nr(Cr.xaxes),Nr(yr.xaxes),Lr(_e.overlays,"xaxis")),Ne&&(Nr($e),Nr(Cr.yaxes),Nr(yr.yaxes),Lr(_e.overlays,"yaxis")),qe={},st=0;st<bt.length;st++){var br=bt[st],Rr=M(ue,br);s.drawOne(ue,Rr,{skipTitle:!0}),qe[Rr._name+".range[0]"]=Rr.range[0],qe[Rr._name+".range[1]"]=Rr.range[1]}s.redrawComponents(ue,bt)}function ca(){if(!ue._transitioningWithDuration){var bt=ue._context.doubleClick,st=[];qr&&(st=st.concat(at)),Mr&&(st=st.concat($e)),yr.xaxes&&(st=st.concat(yr.xaxes)),yr.yaxes&&(st=st.concat(yr.yaxes));var Nr={},Lr,br;if(bt==="reset+autosize")for(bt="autosize",br=0;br<st.length;br++){Lr=st[br];var Rr=Lr._rangeInitial0,jr=Lr._rangeInitial1,Wr=Rr!==void 0||jr!==void 0;if(Wr&&(Rr!==void 0&&Rr!==Lr.range[0]||jr!==void 0&&jr!==Lr.range[1])||!Wr&&Lr.autorange!==!0){bt="reset";break}}if(bt==="autosize")for(br=0;br<st.length;br++)Lr=st[br],Lr.fixedrange||(Nr[Lr._name+".autorange"]=!0);else if(bt==="reset"){for((qr||Cr.isSubplotConstrained)&&(st=st.concat(Cr.xaxes)),Mr&&!Cr.isSubplotConstrained&&(st=st.concat(Cr.yaxes)),Cr.isSubplotConstrained&&(qr?Mr||(st=st.concat($e)):st=st.concat(at)),br=0;br<st.length;br++)if(Lr=st[br],!Lr.fixedrange){var yt=Lr._name,Xt=Lr._autorangeInitial;Lr._rangeInitial0===void 0&&Lr._rangeInitial1===void 0?Nr[yt+".autorange"]=!0:Lr._rangeInitial0===void 0?(Nr[yt+".autorange"]=Xt,Nr[yt+".range"]=[null,Lr._rangeInitial1]):Lr._rangeInitial1===void 0?(Nr[yt+".range"]=[Lr._rangeInitial0,null],Nr[yt+".autorange"]=Xt):Nr[yt+".range"]=[Lr._rangeInitial0,Lr._rangeInitial1]}}ue.emit("plotly_doubleclick",null),t.call("_guiRelayout",ue,Nr)}}function xa(){ji([0,0,Vt,Wt]),x.syncOrAsync([A.previousPromises,function(){ue._fullLayout._replotting=!1,t.call("_guiRelayout",ue,qe)}],ue)}function ji(bt){var st=ue._fullLayout,Nr=st._plots,Lr=st._subplots.cartesian,br,Rr,jr,Wr;if(be&&t.subplotsRegistry.splom.drag(ue),Ye){for(br=0;br<Lr.length;br++)if(Rr=Nr[Lr[br]],jr=Rr.xaxis,Wr=Rr.yaxis,Rr._scene){jr.limitRange&&jr.limitRange(),Wr.limitRange&&Wr.limitRange();var yt=x.simpleMap(jr.range,jr.r2l),Xt=x.simpleMap(Wr.range,Wr.r2l);Rr._scene.update({range:[yt[0],Xt[0],yt[1],Xt[1]]})}}if((be||Ye)&&(_(ue),w(ue)),Ie){var mr=bt[2]/me._length,Or=bt[3]/fe._length;for(br=0;br<Lr.length;br++){Rr=Nr[Lr[br]],jr=Rr.xaxis,Wr=Rr.yaxis;var ki=(xt||yr.isSubplotConstrained)&&!jr.fixedrange&&Be[jr._id],Ni=(Ne||yr.isSubplotConstrained)&&!Wr.fixedrange&&Qe[Wr._id],Si,fi,Li,Ia;if(ki?(Si=mr,Li=it||yr.isSubplotConstrained?bt[0]:En(jr,Si)):yr.xaHash[jr._id]?(Si=mr,Li=bt[0]*jr._length/me._length):yr.yaHash[jr._id]?(Si=Or,Li=Mr==="ns"?-bt[1]*jr._length/fe._length:En(jr,Si,{n:"top",s:"bottom"}[Mr])):(Si=pn(jr,mr,Or),Li=_n(jr,Si)),Si>1&&(jr.maxallowed!==void 0&&xt===(jr.range[0]<jr.range[1]?"e":"w")||jr.minallowed!==void 0&&xt===(jr.range[0]<jr.range[1]?"w":"e"))&&(Si=1,Li=0),Ni?(fi=Or,Ia=tt||yr.isSubplotConstrained?bt[1]:En(Wr,fi)):yr.yaHash[Wr._id]?(fi=Or,Ia=bt[1]*Wr._length/fe._length):yr.xaHash[Wr._id]?(fi=mr,Ia=qr==="ew"?-bt[0]*Wr._length/me._length:En(Wr,fi,{e:"right",w:"left"}[qr])):(fi=pn(Wr,mr,Or),Ia=_n(Wr,fi)),fi>1&&(Wr.maxallowed!==void 0&&Ne===(Wr.range[0]<Wr.range[1]?"n":"s")||Wr.minallowed!==void 0&&Ne===(Wr.range[0]<Wr.range[1]?"s":"n"))&&(fi=1,Ia=0),!(!Si&&!fi)){Si||(Si=1),fi||(fi=1);var Fa=jr._offset-Li/Si,un=Wr._offset-Ia/fi;Rr.clipRect.call(n.setTranslate,Li,Ia).call(n.setScale,Si,fi),Rr.plot.call(n.setTranslate,Fa,un).call(n.setScale,1/Si,1/fi),(Si!==Rr.xScaleFactor||fi!==Rr.yScaleFactor)&&(n.setPointGroupScale(Rr.zoomScalePts,Si,fi),n.setTextPointsScale(Rr.zoomScaleTxt,Si,fi)),n.hideOutsideRangePoints(Rr.clipOnAxisFalseTraces,Rr),Rr.xScaleFactor=Si,Rr.yScaleFactor=fi}}}}function pn(bt,st,Nr){return bt.fixedrange?0:xt&&Cr.xaHash[bt._id]?st:Ne&&(Cr.isSubplotConstrained?Cr.xaHash:Cr.yaHash)[bt._id]?Nr:0}function _n(bt,st){return st?(bt.range=bt._r.slice(),u(bt,st),En(bt,st)):0}function En(bt,st,Nr){return bt._length*(1-st)*l[Nr||bt.constraintoward||"middle"]}return lt}function F(ue,_e,we,Re){var ze=x.ensureSingle(ue.draglayer,_e,we,function(Xe){Xe.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",ue.id)});return ze.call(h,Re),ze.node()}function N(ue,_e,we,Re,ze,Xe,tt){var it=F(ue,"rect",_e,we);return p.select(it).call(n.setRect,Re,ze,Xe,tt),it}function B(ue,_e){for(var we=0;we<ue.length;we++)if(!ue[we].fixedrange)return _e;return""}function I(ue,_e){var we=ue.range[_e],Re=Math.abs(we-ue.range[1-_e]),ze;return ue.type==="date"?we:ue.type==="log"?(ze=Math.ceil(Math.max(0,-Math.log(Re)/Math.LN10))+3,S("."+ze+"g")(Math.pow(10,we))):(ze=Math.floor(Math.log(Math.abs(we))/Math.LN10)-Math.floor(Math.log(Re)/Math.LN10)+4,S("."+String(ze)+"g")(we))}function U(ue,_e,we,Re,ze){for(var Xe=0;Xe<ue.length;Xe++){var tt=ue[Xe];if(!tt.fixedrange)if(tt.rangebreaks){var it=tt._id.charAt(0)==="y",et=it?1-_e:_e,nt=it?1-we:we;Re[tt._name+".range[0]"]=tt.l2r(tt.p2l(et*tt._length)),Re[tt._name+".range[1]"]=tt.l2r(tt.p2l(nt*tt._length))}else{var Ae=tt._rl[0],me=tt._rl[1]-Ae;Re[tt._name+".range[0]"]=tt.l2r(Ae+me*_e),Re[tt._name+".range[1]"]=tt.l2r(Ae+me*we)}}if(ze&&ze.length){var fe=(_e+(1-we))/2;U(ze,fe,1-fe,Re,[])}}function O(ue,_e){for(var we=0;we<ue.length;we++){var Re=ue[we];if(!Re.fixedrange){if(Re.rangebreaks){var ze=0,Xe=Re._length,tt=Re.p2l(ze+_e)-Re.p2l(ze),it=Re.p2l(Xe+_e)-Re.p2l(Xe),et=(tt+it)/2;Re.range=[Re.l2r(Re._rl[0]-et),Re.l2r(Re._rl[1]-et)]}else Re.range=[Re.l2r(Re._rl[0]-_e/Re._m),Re.l2r(Re._rl[1]-_e/Re._m)];Re.limitRange&&Re.limitRange()}}}function X(ue){return 1-(ue>=0?Math.min(ue,.9):1/(1/Math.max(ue,-.3)+3.222))}function J(ue,_e,we){return ue?ue==="nsew"?we?"":_e==="pan"?"move":"crosshair":ue.toLowerCase()+"-resize":"pointer"}function se(ue,_e,we,Re,ze){return ue.append("path").attr("class","zoombox").style({fill:_e>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform",r(we,Re)).attr("d",ze+"Z")}function le(ue,_e,we){return ue.append("path").attr("class","zoombox-corners").style({fill:i.background,stroke:i.defaultLine,"stroke-width":1,opacity:0}).attr("transform",r(_e,we)).attr("d","M0,0Z")}function ce(ue,_e,we,Re,ze,Xe){ue.attr("d",Re+"M"+we.l+","+we.t+"v"+we.h+"h"+we.w+"v-"+we.h+"h-"+we.w+"Z"),q(ue,_e,ze,Xe)}function q(ue,_e,we,Re){we||(ue.transition().style("fill",Re>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),_e.transition().style("opacity",1).duration(200))}function Z(ue){p.select(ue).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function ee(ue){L&&ue.data&&ue._context.showTips&&(x.notifier(x._(ue,"Double-click to zoom back out"),"long"),L=!1)}function V(ue,_e){return"M"+(ue.l-.5)+","+(_e-R-.5)+"h-3v"+(2*R+1)+"h3ZM"+(ue.r+.5)+","+(_e-R-.5)+"h3v"+(2*R+1)+"h-3Z"}function oe(ue,_e){return"M"+(_e-R-.5)+","+(ue.t-.5)+"v-3h"+(2*R+1)+"v3ZM"+(_e-R-.5)+","+(ue.b+.5)+"v3h"+(2*R+1)+"v-3Z"}function ie(ue){var _e=Math.floor(Math.min(ue.b-ue.t,ue.r-ue.l,R)/2);return"M"+(ue.l-3.5)+","+(ue.t-.5+_e)+"h3v"+-_e+"h"+_e+"v-3h-"+(_e+3)+"ZM"+(ue.r+3.5)+","+(ue.t-.5+_e)+"h-3v"+-_e+"h"+-_e+"v-3h"+(_e+3)+"ZM"+(ue.r+3.5)+","+(ue.b+.5-_e)+"h-3v"+_e+"h"+-_e+"v3h"+(_e+3)+"ZM"+(ue.l-3.5)+","+(ue.b+.5-_e)+"h3v"+_e+"h"+_e+"v3h-"+(_e+3)+"Z"}function j(ue,_e,we,Re,ze){for(var Xe=!1,tt={},it={},et,nt,Ae,me,fe=(ze||{}).xaHash,Be=(ze||{}).yaHash,Qe=0;Qe<_e.length;Qe++){var at=_e[Qe];for(et in we)if(at[et]){for(Ae in at)!(ze&&(fe[Ae]||Be[Ae]))&&!(Ae.charAt(0)==="x"?we:Re)[Ae]&&(tt[Ae]=et);for(nt in Re)!(ze&&(fe[nt]||Be[nt]))&&at[nt]&&(Xe=!0)}for(nt in Re)if(at[nt])for(me in at)!(ze&&(fe[me]||Be[me]))&&!(me.charAt(0)==="x"?we:Re)[me]&&(it[me]=nt)}Xe&&(x.extendFlat(tt,it),it={});var $e={},It=[];for(Ae in tt){var Pt=M(ue,Ae);It.push(Pt),$e[Pt._id]=Pt}var Vt={},Wt=[];for(me in it){var Cr=M(ue,me);Wt.push(Cr),Vt[Cr._id]=Cr}return{xaHash:$e,yaHash:Vt,xaxes:It,yaxes:Wt,xLinks:tt,yLinks:it,isSubplotConstrained:Xe}}function Q(ue,_e){if(!e)ue.onwheel!==void 0?ue.onwheel=_e:ue.onmousewheel!==void 0?ue.onmousewheel=_e:ue.isAddedWheelEvent||(ue.isAddedWheelEvent=!0,ue.addEventListener("wheel",_e,{passive:!1}));else{var we=ue.onwheel!==void 0?"wheel":"mousewheel";ue._onwheel&&ue.removeEventListener(we,ue._onwheel),ue._onwheel=_e,ue.addEventListener(we,_e,{passive:!1})}}function re(ue){var _e=[];for(var we in ue)_e.push(ue[we]);return _e}H.exports={makeDragBox:z,makeDragger:F,makeRectDragger:N,makeZoombox:se,makeCorners:le,updateZoombox:ce,xyCorners:ie,transitionZoombox:q,removeZoombox:Z,showDoubleClickNotifier:ee,attachWheelEventHandler:Q}}}),d2=De({"src/plots/cartesian/graph_interact.js"(Y){"use strict";var H=za(),p=sf(),x=Qh(),S=hv(),E=h2().makeDragBox,e=th().DRAGGERSIZE;Y.initInteractions=function(r){var o=r._fullLayout;if(r._context.staticPlot){H.select(r).selectAll(".drag").remove();return}if(!(!o._has("cartesian")&&!o._has("splom"))){var i=Object.keys(o._plots||{}).sort(function(a,s){if((o._plots[a].mainplot&&!0)===(o._plots[s].mainplot&&!0)){var h=a.split("y"),c=s.split("y");return h[0]===c[0]?Number(h[1]||1)-Number(c[1]||1):Number(h[0]||1)-Number(c[0]||1)}return o._plots[a].mainplot?1:-1});i.forEach(function(a){var s=o._plots[a],h=s.xaxis,c=s.yaxis;if(!s.mainplot){var m=E(r,s,h._offset,c._offset,h._length,c._length,"ns","ew");m.onmousemove=function(l){r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===a&&r._fullLayout._plots[a]&&p.hover(r,l,a)},p.hover(r,l,a),r._fullLayout._lasthover=m,r._fullLayout._hoversubplot=a},m.onmouseout=function(l){r._dragging||(r._fullLayout._hoversubplot=null,x.unhover(r,l))},r._context.showAxisDragHandles&&(E(r,s,h._offset-e,c._offset-e,e,e,"n","w"),E(r,s,h._offset+h._length,c._offset-e,e,e,"n","e"),E(r,s,h._offset-e,c._offset+c._length,e,e,"s","w"),E(r,s,h._offset+h._length,c._offset+c._length,e,e,"s","e"))}if(r._context.showAxisDragHandles){if(a===h._mainSubplot){var d=h._mainLinePosition;h.side==="top"&&(d-=e),E(r,s,h._offset+h._length*.1,d,h._length*.8,e,"","ew"),E(r,s,h._offset,d,h._length*.1,e,"","w"),E(r,s,h._offset+h._length*.9,d,h._length*.1,e,"","e")}if(a===c._mainSubplot){var T=c._mainLinePosition;c.side!=="right"&&(T-=e),E(r,s,T,c._offset+c._length*.1,e,c._length*.8,"ns",""),E(r,s,T,c._offset+c._length*.9,e,c._length*.1,"s",""),E(r,s,T,c._offset,e,c._length*.1,"n","")}}});var n=o._hoverlayer.node();n.onmousemove=function(a){a.target=r._fullLayout._lasthover,p.hover(r,a,o._hoversubplot)},n.onclick=function(a){a.target=r._fullLayout._lasthover,p.click(r,a)},n.onmousedown=function(a){r._fullLayout._lasthover.onmousedown(a)},Y.updateFx(r)}},Y.updateFx=function(t){var r=t._fullLayout,o=r.dragmode==="pan"?"move":"crosshair";S(r._draggers,o)}}}),lE=De({"src/plot_api/container_array_match.js"(Y,H){"use strict";var p=Mo();H.exports=function(S){for(var E=p.layoutArrayContainers,e=p.layoutArrayRegexes,t=S.split("[")[0],r,o,i=0;i<e.length;i++)if(o=S.match(e[i]),o&&o.index===0){r=o[0];break}if(r||(r=E[E.indexOf(t)]),!r)return!1;var n=S.slice(r.length);return n?(o=n.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/),o?{array:r,index:Number(o[1]),property:o[3]||""}:!1):{array:r,index:"",property:""}}}}),uE=De({"src/plot_api/manage_arrays.js"(Y){"use strict";var H=fu(),p=As(),x=Yo(),S=__().sorterAsc,E=Mo();Y.containerArrayMatch=lE();var e=Y.isAddVal=function(o){return o==="add"||H(o)},t=Y.isRemoveVal=function(o){return o===null||o==="remove"};Y.applyContainerArrayChanges=function(o,i,n,a,s){var h=i.astr,c=E.getComponentMethod(h,"supplyLayoutDefaults"),m=E.getComponentMethod(h,"draw"),d=E.getComponentMethod(h,"drawOne"),T=a.replot||a.recalc||c===p||m===p,l=o.layout,_=o._fullLayout;if(n[""]){Object.keys(n).length>1&&x.warn("Full array edits are incompatible with other edits",h);var w=n[""][""];if(t(w))i.set(null);else if(Array.isArray(w))i.set(w);else return x.warn("Unrecognized full array edit value",h,w),!0;return T?!1:(c(l,_),m(o),!0)}var A=Object.keys(n).map(Number).sort(S),M=i.get(),g=M||[],b=s(_,h).get(),v=[],u=-1,y=g.length,f,R,L,z,F,N,B,I;for(f=0;f<A.length;f++){if(L=A[f],z=n[L],F=Object.keys(z),N=z[""],B=e(N),L<0||L>g.length-(B?0:1)){x.warn("index out of range",h,L);continue}if(N!==void 0)F.length>1&&x.warn("Insertion & removal are incompatible with edits to the same index.",h,L),t(N)?v.push(L):B?(N==="add"&&(N={}),g.splice(L,0,N),b&&b.splice(L,0,{})):x.warn("Unrecognized full object edit value",h,L,N),u===-1&&(u=L);else for(R=0;R<F.length;R++)I=h+"["+L+"].",s(g[L],F[R],I).set(z[F[R]])}for(f=v.length-1;f>=0;f--)g.splice(v[f],1),b&&b.splice(v[f],1);if(g.length?M||i.set(g):i.set(null),T)return!1;if(c(l,_),d!==p){var U;if(u===-1)U=A;else{for(y=Math.max(g.length,y),U=[],f=0;f<A.length&&(L=A[f],!(L>=u));f++)U.push(L);for(f=u;f<y;f++)U.push(f)}for(f=0;f<U.length;f++)d(o,U[f])}else m(o);return!0}}}),cE=De({"src/plot_api/helpers.js"(Y){"use strict";var H=vn(),p=Mo(),x=ui(),S=Mc(),E=nf(),e=vo(),t=E.cleanId,r=E.getFromTrace,o=p.traceIs,i=["x","y","z"];Y.clearPromiseQueue=function(l){Array.isArray(l._promises)&&l._promises.length>0&&x.log("Clearing previous rejected promises from queue."),l._promises=[]},Y.cleanLayout=function(l){var _,w;l||(l={}),l.xaxis1&&(l.xaxis||(l.xaxis=l.xaxis1),delete l.xaxis1),l.yaxis1&&(l.yaxis||(l.yaxis=l.yaxis1),delete l.yaxis1),l.scene1&&(l.scene||(l.scene=l.scene1),delete l.scene1);var A=(S.subplotsRegistry.cartesian||{}).attrRegex,M=(S.subplotsRegistry.polar||{}).attrRegex,g=(S.subplotsRegistry.ternary||{}).attrRegex,b=(S.subplotsRegistry.gl3d||{}).attrRegex,v=Object.keys(l);for(_=0;_<v.length;_++){var u=v[_];if(A&&A.test(u)){var y=l[u];y.anchor&&y.anchor!=="free"&&(y.anchor=t(y.anchor)),y.overlaying&&(y.overlaying=t(y.overlaying)),y.type||(y.isdate?y.type="date":y.islog?y.type="log":y.isdate===!1&&y.islog===!1&&(y.type="linear")),(y.autorange==="withzero"||y.autorange==="tozero")&&(y.autorange=!0,y.rangemode="tozero"),y.insiderange&&delete y.range,delete y.islog,delete y.isdate,delete y.categories,c(y,"domain")&&delete y.domain}}var f=Array.isArray(l.annotations)?l.annotations.length:0;for(_=0;_<f;_++){var R=l.annotations[_];x.isPlainObject(R)&&(n(R,"xref"),n(R,"yref"))}var L=Array.isArray(l.shapes)?l.shapes.length:0;for(_=0;_<L;_++){var z=l.shapes[_];x.isPlainObject(z)&&(n(z,"xref",!0),n(z,"yref",!0))}var F=Array.isArray(l.images)?l.images.length:0;for(_=0;_<F;_++){var N=l.images[_];x.isPlainObject(N)&&(n(N,"xref"),n(N,"yref"))}var B=l.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")),l.dragmode==="rotate"&&(l.dragmode="orbit"),e.clean(l),l.template&&l.template.layout&&Y.cleanLayout(l.template.layout),l};function n(l,_,w=!1){var A=l[_],M=_.charAt(0);w&&Array.isArray(A)||A&&A!=="paper"&&(l[_]=t(A,M,!0))}Y.cleanData=function(l){for(var _=0;_<l.length;_++){var w=l[_],A;if(w.type==="histogramy"&&"xbins"in w&&!("ybins"in w)&&(w.ybins=w.xbins,delete w.xbins),w.type==="histogramy"&&Y.swapXYData(w),(w.type==="histogramx"||w.type==="histogramy")&&(w.type="histogram"),"scl"in w&&!("colorscale"in w)&&(w.colorscale=w.scl,delete w.scl),"reversescl"in w&&!("reversescale"in w)&&(w.reversescale=w.reversescl,delete w.reversescl),w.xaxis&&(w.xaxis=t(w.xaxis,"x")),w.yaxis&&(w.yaxis=t(w.yaxis,"y")),o(w,"gl3d")&&w.scene&&(w.scene=S.subplotsRegistry.gl3d.cleanId(w.scene)),!o(w,"pie-like")&&!o(w,"bar-like"))if(Array.isArray(w.textposition))for(A=0;A<w.textposition.length;A++)w.textposition[A]=h(w.textposition[A]);else w.textposition&&(w.textposition=h(w.textposition));var M=p.getModule(w);if(M&&M.colorbar){var g=M.colorbar.container,b=g?w[g]:w;b&&b.colorscale&&(b.colorscale==="YIGnBu"&&(b.colorscale="YlGnBu"),b.colorscale==="YIOrRd"&&(b.colorscale="YlOrRd"))}if(w.type==="surface"&&x.isPlainObject(w.contours)){var v=["x","y","z"];for(A=0;A<v.length;A++){var u=w.contours[v[A]];x.isPlainObject(u)&&(u.highlightColor&&(u.highlightcolor=u.highlightColor,delete u.highlightColor),u.highlightWidth&&(u.highlightwidth=u.highlightWidth,delete u.highlightWidth))}}if(w.type==="candlestick"||w.type==="ohlc"){var y=(w.increasing||{}).showlegend!==!1,f=(w.decreasing||{}).showlegend!==!1,R=a(w.increasing),L=a(w.decreasing);if(R!==!1&&L!==!1){var z=s(R,L,y,f);z&&(w.name=z)}else(R||L)&&!w.name&&(w.name=R||L)}c(w,"line")&&delete w.line,"marker"in w&&(c(w.marker,"line")&&delete w.marker.line,c(w,"marker")&&delete w.marker),e.clean(w),w.autobinx&&(delete w.autobinx,delete w.xbins),w.autobiny&&(delete w.autobiny,delete w.ybins)}};function a(l){if(!x.isPlainObject(l))return!1;var _=l.name;return delete l.name,delete l.showlegend,(typeof _=="string"||typeof _=="number")&&String(_)}function s(l,_,w,A){if(w&&!A)return l;if(A&&!w||!l.trim())return _;if(!_.trim())return l;var M=Math.min(l.length,_.length),g;for(g=0;g<M&&l.charAt(g)===_.charAt(g);g++);var b=l.slice(0,g);return b.trim()}function h(l){var _="middle",w="center";return typeof l=="string"&&(l.indexOf("top")!==-1?_="top":l.indexOf("bottom")!==-1&&(_="bottom"),l.indexOf("left")!==-1?w="left":l.indexOf("right")!==-1&&(w="right")),_+" "+w}function c(l,_){return _ in l&&typeof l[_]=="object"&&Object.keys(l[_]).length===0}Y.swapXYData=function(l){var _;if(x.swapAttrs(l,["?","?0","d?","?bins","nbins?","autobin?","?src","error_?"]),Array.isArray(l.z)&&Array.isArray(l.z[0])&&(l.transpose?delete l.transpose:l.transpose=!0),l.error_x&&l.error_y){var w=l.error_y,A="copy_ystyle"in w?w.copy_ystyle:!(w.color||w.thickness||w.width);x.swapAttrs(l,["error_?.copy_ystyle"]),A&&x.swapAttrs(l,["error_?.color","error_?.thickness","error_?.width"])}if(typeof l.hoverinfo=="string"){var M=l.hoverinfo.split("+");for(_=0;_<M.length;_++)M[_]==="x"?M[_]="y":M[_]==="y"&&(M[_]="x");l.hoverinfo=M.join("+")}},Y.coerceTraceIndices=function(l,_){if(H(_))return[_];if(!Array.isArray(_)||!_.length)return l.data.map(function(M,g){return g});if(Array.isArray(_)){for(var w=[],A=0;A<_.length;A++)x.isIndex(_[A],l.data.length)?w.push(_[A]):x.warn("trace index (",_[A],") is not a number or is out of bounds");return w}return _},Y.manageArrayContainers=function(l,_,w){var A=l.obj,M=l.parts,g=M.length,b=M[g-1],v=H(b);if(v&&_===null){var u=M.slice(0,g-1).join("."),y=x.nestedProperty(A,u).get();y.splice(b,1)}else v&&l.get()===void 0&&l.get()===void 0&&(w[l.astr]=null),l.set(_)};var m=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function d(l){var _=l.search(m);if(_>0)return l.slice(0,_)}Y.hasParent=function(l,_){for(var w=d(_);w;){if(w in l)return!0;w=d(w)}return!1},Y.clearAxisTypes=function(l,_,w){for(var A=0;A<_.length;A++)for(var M=l._fullData[A],g=0;g<3;g++){var b=r(l,M,i[g]);if(b&&b.type!=="log"){var v=b._name,u=b._id.slice(1);if(u.slice(0,5)==="scene"){if(w[u]!==void 0)continue;v=u+"."+v}var y=v+".type";w[v]===void 0&&w[y]===void 0&&x.nestedProperty(l.layout,y).set(null)}}};var T=(l,_)=>{let w=(...A)=>A.every(M=>x.isPlainObject(M))||A.every(M=>Array.isArray(M));if([l,_].every(A=>Array.isArray(A))){if(l.length!==_.length)return!1;for(let A=0;A<l.length;A++){let M=l[A],g=_[A];if(M!==g&&!(w(M,g)?T(M,g):!1))return!1}return!0}else if([l,_].every(A=>x.isPlainObject(A))){if(Object.keys(l).length!==Object.keys(_).length)return!1;for(let A in l){if(A.startsWith("_"))continue;let M=l[A],g=_[A];if(M!==g&&!(w(M,g)?T(M,g):!1))return!1}return!0}return!1};Y.collectionsAreEqual=T}}),L_=De({"src/plot_api/plot_api.js"(Y){"use strict";var H=za(),p=vn(),x=Nw(),S=ui(),E=S.nestedProperty,e=Xm(),t=CM(),r=Mo(),o=Ym(),i=Mc(),n=us(),a=Xw(),s=Ih(),h=ys(),c=vo(),m=d2().initInteractions,d=Bd(),T=Af().clearOutline,l=Cn().dfltConfig,_=uE(),w=cE(),A=dy(),M=gc(),g=th().AX_NAME_PATTERN,b=0,v=5;function u(be,Ie,qe,ke){var Me;if(be=S.getGraphDiv(be),e.init(be),S.isPlainObject(Ie)){var Le=Ie;Ie=Le.data,qe=Le.layout,ke=Le.config,Me=Le.frames}var ut=e.triggerHandler(be,"plotly_beforeplot",[Ie,qe,ke]);if(ut===!1)return Promise.reject();!Ie&&!qe&&!S.isPlotDiv(be)&&S.warn("Calling _doPlot as if redrawing but this container doesn't yet have a plot.",be);function lt(){if(Me)return Y.addFrames(be,Me)}z(be,ke),qe||(qe={}),H.select(be).classed("js-plotly-plot",!0),h.makeTester(),Array.isArray(be._promises)||(be._promises=[]);var gt=(be.data||[]).length===0&&Array.isArray(Ie);Array.isArray(Ie)&&(w.cleanData(Ie),gt?be.data=Ie:be.data.push.apply(be.data,Ie),be.empty=!1),(!be.layout||gt)&&(be.layout=w.cleanLayout(qe)),i.supplyDefaults(be);var kt=be._fullLayout,nr=kt._has("cartesian");kt._replotting=!0,(gt||kt._shouldCreateBgLayer)&&(Ye(be),kt._shouldCreateBgLayer&&delete kt._shouldCreateBgLayer),h.initGradients(be),h.initPatterns(be),gt&&n.saveShowSpikeInitial(be);var ir=!be.calcdata||be.calcdata.length!==(be._fullData||[]).length;ir&&i.doCalcdata(be);for(var tr=0;tr<be.calcdata.length;tr++)be.calcdata[tr][0].trace=be._fullData[tr];be._context.responsive?be._responsiveChartHandler||(be._responsiveChartHandler=function(){S.isHidden(be)||i.resize(be)},window.addEventListener("resize",be._responsiveChartHandler)):S.clearResponsive(be);var Ir=S.extendFlat({},kt._size),vi=0;function Vi(){for(var zt=kt._basePlotModules,Zt=0;Zt<zt.length;Zt++)zt[Zt].drawFramework&&zt[Zt].drawFramework(be);!kt._glcanvas&&kt._has("gl")&&(kt._glcanvas=kt._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],function(ii){return ii.key}),kt._glcanvas.enter().append("canvas").attr("class",function(ii){return"gl-canvas gl-canvas-"+ii.key.replace("Layer","")}).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"}));var Jt=be._context.plotGlPixelRatio;if(kt._glcanvas){kt._glcanvas.attr("width",kt.width*Jt).attr("height",kt.height*Jt).style("width",kt.width+"px").style("height",kt.height+"px");var Br=kt._glcanvas.data()[0].regl;if(Br&&(Math.floor(kt.width*Jt)!==Br._gl.drawingBufferWidth||Math.floor(kt.height*Jt)!==Br._gl.drawingBufferHeight)){var ri="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(vi)S.error(ri);else return S.log(ri+" Clearing graph and plotting again."),i.cleanPlot([],{},be._fullData,kt),i.supplyDefaults(be),kt=be._fullLayout,i.doCalcdata(be),vi++,Vi()}}return kt.modebar.orientation==="h"?kt._modebardiv.style("height",null).style("width","100%"):kt._modebardiv.style("width",null).style("height",kt.height+"px"),i.previousPromises(be)}function Ui(){if(i.clearAutoMarginIds(be),A.drawMarginPushers(be),n.allowAutoMargin(be),be._fullLayout.title.text&&be._fullLayout.title.automargin&&i.allowAutoMargin(be,"title.automargin"),kt._has("pie"))for(var zt=be._fullData,Zt=0;Zt<zt.length;Zt++){var Jt=zt[Zt];Jt.type==="pie"&&Jt.automargin&&i.allowAutoMargin(be,"pie."+Jt.uid+".automargin")}return i.doAutoMargin(be),i.previousPromises(be)}function Ki(){if(i.didMarginChange(Ir,kt._size))return S.syncOrAsync([Ui,A.layoutStyles],be)}function ea(){if(!ir){Bi();return}return S.syncOrAsync([r.getComponentMethod("shapes","calcAutorange"),r.getComponentMethod("annotations","calcAutorange"),Bi],be)}function Bi(){be._transitioning||(A.doAutoRangeAndConstraints(be),gt&&n.saveRangeInitial(be),r.getComponentMethod("rangeslider","calcAutorange")(be))}function _a(){return n.draw(be,gt?"":"redraw")}var Ca=[i.previousPromises,lt,Vi,Ui,Ki];nr&&Ca.push(ea),Ca.push(A.layoutStyles),nr&&Ca.push(_a,function(Zt){var Jt=Zt._fullLayout._insideTickLabelsUpdaterange;if(Jt)return Zt._fullLayout._insideTickLabelsUpdaterange=void 0,_e(Zt,Jt).then(function(){n.saveRangeInitial(Zt,!0)})}),Ca.push(A.drawData,A.finalDraw,m,i.addLinks,i.rehover,i.redrag,i.reselect,i.doAutoMargin,i.previousPromises);var Kt=S.syncOrAsync(Ca,be);return(!Kt||!Kt.then)&&(Kt=Promise.resolve()),Kt.then(function(){return y(be),be})}function y(be){var Ie=be._fullLayout;Ie._redrawFromAutoMarginCount?Ie._redrawFromAutoMarginCount--:be.emit("plotly_afterplot")}function f(be){return S.extendFlat(l,be)}function R(be,Ie){try{be._fullLayout._paper.style("background",Ie)}catch(qe){S.error(qe)}}function L(be,Ie){var qe=c.combine(Ie,"white");R(be,qe)}function z(be,Ie){if(!be._context){be._context=S.extendDeep({},l);var qe=H.select("base");be._context._baseUrl=qe.size()&&qe.attr("href")?window.location.href.split("#")[0]:""}var ke=be._context,Me,Le,ut;if(Ie){for(Le=Object.keys(Ie),Me=0;Me<Le.length;Me++)ut=Le[Me],!(ut==="editable"||ut==="edits")&&ut in ke&&(ut==="setBackground"&&Ie[ut]==="opaque"?ke[ut]=L:ke[ut]=Ie[ut]);var lt=Ie.editable;if(lt!==void 0)for(ke.editable=lt,Le=Object.keys(ke.edits),Me=0;Me<Le.length;Me++)ke.edits[Le[Me]]=lt;if(Ie.edits)for(Le=Object.keys(Ie.edits),Me=0;Me<Le.length;Me++)ut=Le[Me],ut in ke.edits&&(ke.edits[ut]=Ie.edits[ut]);ke._exportedPlot=Ie._exportedPlot}ke.staticPlot&&(ke.editable=!1,ke.edits={},ke.autosizable=!1,ke.scrollZoom=!1,ke.doubleClick=!1,ke.showTips=!1,ke.showLink=!1,ke.displayModeBar=!1),ke.displayModeBar==="hover"&&!x&&(ke.displayModeBar=!0),(ke.setBackground==="transparent"||typeof ke.setBackground!="function")&&(ke.setBackground=R),ke._hasZeroHeight=ke._hasZeroHeight||be.clientHeight===0,ke._hasZeroWidth=ke._hasZeroWidth||be.clientWidth===0;var gt=ke.scrollZoom,kt=ke._scrollZoom={};if(gt===!0)kt.cartesian=1,kt.gl3d=1,kt.geo=1,kt.mapbox=1,kt.map=1;else if(typeof gt=="string"){var nr=gt.split("+");for(Me=0;Me<nr.length;Me++)kt[nr[Me]]=1}else gt!==!1&&(kt.gl3d=1,kt.geo=1,kt.mapbox=1,kt.map=1)}function F(be){if(be=S.getGraphDiv(be),!S.isPlotDiv(be))throw new Error("This element is not a Plotly plot: "+be);return w.cleanData(be.data),w.cleanLayout(be.layout),be.calcdata=void 0,Y._doPlot(be).then(function(){return be.emit("plotly_redraw"),be})}function N(be,Ie,qe,ke){return be=S.getGraphDiv(be),i.cleanPlot([],{},be._fullData||[],be._fullLayout||{}),i.purge(be),Y._doPlot(be,Ie,qe,ke)}function B(be,Ie){var qe=Ie+1,ke=[],Me,Le;for(Me=0;Me<be.length;Me++)Le=be[Me],Le<0?ke.push(qe+Le):ke.push(Le);return ke}function I(be,Ie,qe){var ke,Me;for(ke=0;ke<Ie.length;ke++){if(Me=Ie[ke],Me!==parseInt(Me,10))throw new Error("all values in "+qe+" must be integers");if(Me>=be.data.length||Me<-be.data.length)throw new Error(qe+" must be valid indices for gd.data.");if(Ie.indexOf(Me,ke+1)>-1||Me>=0&&Ie.indexOf(-be.data.length+Me)>-1||Me<0&&Ie.indexOf(be.data.length+Me)>-1)throw new Error("each index in "+qe+" must be unique.")}}function U(be,Ie,qe){if(!Array.isArray(be.data))throw new Error("gd.data must be an array.");if(typeof Ie>"u")throw new Error("currentIndices is a required argument.");if(Array.isArray(Ie)||(Ie=[Ie]),I(be,Ie,"currentIndices"),typeof qe<"u"&&!Array.isArray(qe)&&(qe=[qe]),typeof qe<"u"&&I(be,qe,"newIndices"),typeof qe<"u"&&Ie.length!==qe.length)throw new Error("current and new indices must be of equal length.")}function O(be,Ie,qe){var ke,Me;if(!Array.isArray(be.data))throw new Error("gd.data must be an array.");if(typeof Ie>"u")throw new Error("traces must be defined.");for(Array.isArray(Ie)||(Ie=[Ie]),ke=0;ke<Ie.length;ke++)if(Me=Ie[ke],typeof Me!="object"||Array.isArray(Me)||Me===null)throw new Error("all values in traces array must be non-array objects");if(typeof qe<"u"&&!Array.isArray(qe)&&(qe=[qe]),typeof qe<"u"&&qe.length!==Ie.length)throw new Error("if indices is specified, traces.length must equal indices.length")}function X(be,Ie,qe,ke){var Me=S.isPlainObject(ke);if(!Array.isArray(be.data))throw new Error("gd.data must be an array");if(!S.isPlainObject(Ie))throw new Error("update must be a key:value object");if(typeof qe>"u")throw new Error("indices must be an integer or array of integers");I(be,qe,"indices");for(var Le in Ie){if(!Array.isArray(Ie[Le])||Ie[Le].length!==qe.length)throw new Error("attribute "+Le+" must be an array of length equal to indices array length");if(Me&&(!(Le in ke)||!Array.isArray(ke[Le])||ke[Le].length!==Ie[Le].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 J(be,Ie,qe,ke){var Me=S.isPlainObject(ke),Le=[],ut,lt,gt,kt,nr;Array.isArray(qe)||(qe=[qe]),qe=B(qe,be.data.length-1);for(var ir in Ie)for(var tr=0;tr<qe.length;tr++){if(ut=be.data[qe[tr]],gt=E(ut,ir),lt=gt.get(),kt=Ie[ir][tr],!S.isArrayOrTypedArray(kt))throw new Error("attribute: "+ir+" index: "+tr+" must be an array");if(!S.isArrayOrTypedArray(lt))throw new Error("cannot extend missing or non-array attribute: "+ir);if(lt.constructor!==kt.constructor)throw new Error("cannot extend array with an array of a different type: "+ir);nr=Me?ke[ir][tr]:ke,p(nr)||(nr=-1),Le.push({prop:gt,target:lt,insert:kt,maxp:Math.floor(nr)})}return Le}function se(be,Ie,qe,ke,Me){X(be,Ie,qe,ke);for(var Le=J(be,Ie,qe,ke),ut={},lt={},gt=0;gt<Le.length;gt++){var kt=Le[gt].prop,nr=Le[gt].maxp,ir=Me(Le[gt].target,Le[gt].insert,nr);kt.set(ir[0]),Array.isArray(ut[kt.astr])||(ut[kt.astr]=[]),ut[kt.astr].push(ir[1]),Array.isArray(lt[kt.astr])||(lt[kt.astr]=[]),lt[kt.astr].push(Le[gt].target.length)}return{update:ut,maxPoints:lt}}function le(be,Ie){var qe=new be.constructor(be.length+Ie.length);return qe.set(be),qe.set(Ie,be.length),qe}function ce(be,Ie,qe,ke){be=S.getGraphDiv(be);function Me(gt,kt,nr){var ir,tr;if(S.isTypedArray(gt))if(nr<0){var Ir=new gt.constructor(0),vi=le(gt,kt);nr<0?(ir=vi,tr=Ir):(ir=Ir,tr=vi)}else if(ir=new gt.constructor(nr),tr=new gt.constructor(gt.length+kt.length-nr),nr===kt.length)ir.set(kt),tr.set(gt);else if(nr<kt.length){var Vi=kt.length-nr;ir.set(kt.subarray(Vi)),tr.set(gt),tr.set(kt.subarray(0,Vi),gt.length)}else{var Ui=nr-kt.length,Ki=gt.length-Ui;ir.set(gt.subarray(Ki)),ir.set(kt,Ui),tr.set(gt.subarray(0,Ki))}else ir=gt.concat(kt),tr=nr>=0&&nr<ir.length?ir.splice(0,ir.length-nr):[];return[ir,tr]}var Le=se(be,Ie,qe,ke,Me),ut=Y.redraw(be),lt=[be,Le.update,qe,Le.maxPoints];return t.add(be,Y.prependTraces,lt,ce,arguments),ut}function q(be,Ie,qe,ke){be=S.getGraphDiv(be);function Me(gt,kt,nr){var ir,tr;if(S.isTypedArray(gt))if(nr<=0){var Ir=new gt.constructor(0),vi=le(kt,gt);nr<0?(ir=vi,tr=Ir):(ir=Ir,tr=vi)}else if(ir=new gt.constructor(nr),tr=new gt.constructor(gt.length+kt.length-nr),nr===kt.length)ir.set(kt),tr.set(gt);else if(nr<kt.length){var Vi=kt.length-nr;ir.set(kt.subarray(0,Vi)),tr.set(kt.subarray(Vi)),tr.set(gt,Vi)}else{var Ui=nr-kt.length;ir.set(kt),ir.set(gt.subarray(0,Ui),kt.length),tr.set(gt.subarray(Ui))}else ir=kt.concat(gt),tr=nr>=0&&nr<ir.length?ir.splice(nr,ir.length):[];return[ir,tr]}var Le=se(be,Ie,qe,ke,Me),ut=Y.redraw(be),lt=[be,Le.update,qe,Le.maxPoints];return t.add(be,Y.extendTraces,lt,q,arguments),ut}function Z(be,Ie,qe){be=S.getGraphDiv(be);var ke=[],Me=Y.deleteTraces,Le=Z,ut=[be,ke],lt=[be,Ie],gt,kt;for(O(be,Ie,qe),Array.isArray(Ie)||(Ie=[Ie]),Ie=Ie.map(function(nr){return S.extendFlat({},nr)}),w.cleanData(Ie),gt=0;gt<Ie.length;gt++)be.data.push(Ie[gt]);for(gt=0;gt<Ie.length;gt++)ke.push(-Ie.length+gt);if(typeof qe>"u")return kt=Y.redraw(be),t.add(be,Me,ut,Le,lt),kt;Array.isArray(qe)||(qe=[qe]);try{U(be,ke,qe)}catch(nr){throw be.data.splice(be.data.length-Ie.length,Ie.length),nr}return t.startSequence(be),t.add(be,Me,ut,Le,lt),kt=Y.moveTraces(be,ke,qe),t.stopSequence(be),kt}function ee(be,Ie){be=S.getGraphDiv(be);var qe=[],ke=Y.addTraces,Me=ee,Le=[be,qe,Ie],ut=[be,Ie],lt,gt;if(typeof Ie>"u")throw new Error("indices must be an integer or array of integers.");for(Array.isArray(Ie)||(Ie=[Ie]),I(be,Ie,"indices"),Ie=B(Ie,be.data.length-1),Ie.sort(S.sorterDes),lt=0;lt<Ie.length;lt+=1)gt=be.data.splice(Ie[lt],1)[0],qe.push(gt);var kt=Y.redraw(be);return t.add(be,ke,Le,Me,ut),kt}function V(be,Ie,qe){be=S.getGraphDiv(be);var ke=[],Me=[],Le=V,ut=V,lt=[be,qe,Ie],gt=[be,Ie,qe],kt;if(U(be,Ie,qe),Ie=Array.isArray(Ie)?Ie:[Ie],typeof qe>"u")for(qe=[],kt=0;kt<Ie.length;kt++)qe.push(-Ie.length+kt);for(qe=Array.isArray(qe)?qe:[qe],Ie=B(Ie,be.data.length-1),qe=B(qe,be.data.length-1),kt=0;kt<be.data.length;kt++)Ie.indexOf(kt)===-1&&ke.push(be.data[kt]);for(kt=0;kt<Ie.length;kt++)Me.push({newIndex:qe[kt],trace:be.data[Ie[kt]]});for(Me.sort(function(ir,tr){return ir.newIndex-tr.newIndex}),kt=0;kt<Me.length;kt+=1)ke.splice(Me[kt].newIndex,0,Me[kt].trace);be.data=ke;var nr=Y.redraw(be);return t.add(be,Le,lt,ut,gt),nr}function oe(be,Ie,qe,ke){be=S.getGraphDiv(be),w.clearPromiseQueue(be);var Me={};if(typeof Ie=="string")Me[Ie]=qe;else if(S.isPlainObject(Ie))Me=S.extendFlat({},Ie),ke===void 0&&(ke=qe);else return S.warn("Restyle fail.",Ie,qe,ke),Promise.reject();Object.keys(Me).length&&(be.changed=!0);var Le=w.coerceTraceIndices(be,ke),ut=ue(be,Me,Le),lt=ut.flags;lt.calc&&(be.calcdata=void 0),lt.clearAxisTypes&&w.clearAxisTypes(be,Le,{});var gt=[];lt.fullReplot?gt.push(Y._doPlot):(gt.push(i.previousPromises),i.supplyDefaults(be),lt.markerSize&&(i.doCalcdata(be),Re(gt)),lt.style&&gt.push(A.doTraceStyle),lt.colorbars&&gt.push(A.doColorBars),gt.push(y)),gt.push(i.rehover,i.redrag,i.reselect),t.add(be,oe,[be,ut.undoit,ut.traces],oe,[be,ut.redoit,ut.traces]);var kt=S.syncOrAsync(gt,be);return(!kt||!kt.then)&&(kt=Promise.resolve()),kt.then(function(){return be.emit("plotly_restyle",ut.eventData),be})}function ie(be){return be===void 0?null:be}function j(be,Ie){return Ie?function(qe,ke,Me){var Le=E(qe,ke),ut=Le.set;return Le.set=function(lt){var gt=(Me||"")+ke;Q(gt,Le.get(),lt,be),ut(lt)},Le}:E}function Q(be,Ie,qe,ke){if(Array.isArray(Ie)||Array.isArray(qe))for(var Me=Array.isArray(Ie)?Ie:[],Le=Array.isArray(qe)?qe:[],ut=Math.max(Me.length,Le.length),lt=0;lt<ut;lt++)Q(be+"["+lt+"]",Me[lt],Le[lt],ke);else if(S.isPlainObject(Ie)||S.isPlainObject(qe)){var gt=S.isPlainObject(Ie)?Ie:{},kt=S.isPlainObject(qe)?qe:{},nr=S.extendFlat({},gt,kt);for(var ir in nr)Q(be+"."+ir,gt[ir],kt[ir],ke)}else ke[be]===void 0&&(ke[be]=ie(Ie))}function re(be,Ie,qe){for(var ke in qe){var Me=E(be,ke);Q(ke,Me.get(),qe[ke],Ie)}}function ue(be,Ie,qe){var ke=be._fullLayout,Me=be._fullData,Le=be.data,ut=ke._guiEditing,lt=j(ke._preGUI,ut),gt=S.extendDeepAll({},Ie),kt,nr=M.traceFlags(),ir={},tr={},Ir;function vi(){return qe.map(function(){})}function Vi(Xt){var mr=n.id2name(Xt);Ir.indexOf(mr)===-1&&Ir.push(mr)}function Ui(Xt){return"LAYOUT"+Xt+".autorange"}function Ki(Xt){return"LAYOUT"+Xt+".range"}function ea(Xt){for(var mr=Xt;mr<Me.length;mr++)if(Me[mr]._input===Le[Xt])return Me[mr]}function Bi(Xt,mr,Or){if(Array.isArray(Xt)){Xt.forEach(function(fi){Bi(fi,mr,Or)});return}if(!(Xt in Ie||w.hasParent(Ie,Xt))){var ki;if(Xt.slice(0,6)==="LAYOUT")ki=lt(be.layout,Xt.replace("LAYOUT",""));else{var Ni=qe[Or],Si=ke._tracePreGUI[ea(Ni)._fullInput.uid];ki=j(Si,ut)(Le[Ni],Xt)}Xt in tr||(tr[Xt]=vi()),tr[Xt][Or]===void 0&&(tr[Xt][Or]=ie(ki.get())),mr!==void 0&&ki.set(mr)}}function _a(Xt){return function(mr){return Me[mr][Xt]}}function Ca(Xt){return function(mr,Or){return mr===!1?Me[qe[Or]][Xt]:null}}for(var Kt in Ie){if(w.hasParent(Ie,Kt))throw new Error("cannot set "+Kt+" and a parent attribute simultaneously");var zt=Ie[Kt],Zt,Jt,Br,ri,ii,di;if((Kt==="autobinx"||Kt==="autobiny")&&(Kt=Kt.charAt(Kt.length-1)+"bins",Array.isArray(zt)?zt=zt.map(Ca(Kt)):zt===!1?zt=qe.map(_a(Kt)):zt=null),ir[Kt]=zt,Kt.slice(0,6)==="LAYOUT"){Br=lt(be.layout,Kt.replace("LAYOUT","")),tr[Kt]=[ie(Br.get())],Br.set(Array.isArray(zt)?zt[0]:zt),nr.calc=!0;continue}for(tr[Kt]=vi(),kt=0;kt<qe.length;kt++){Zt=Le[qe[kt]],Jt=ea(qe[kt]);var Wi=ke._tracePreGUI[Jt._fullInput.uid];if(Br=j(Wi,ut)(Zt,Kt),ri=Br.get(),ii=Array.isArray(zt)?zt[kt%zt.length]:zt,ii!==void 0){var oa=Br.parts[Br.parts.length-1],ra=Kt.slice(0,Kt.length-oa.length-1),ca=ra?ra+".":"",xa=ra?E(Jt,ra).get():Jt;if(di=o.getTraceValObject(Jt,Br.parts),di&&di.impliedEdits&&ii!==null)for(var ji in di.impliedEdits)Bi(S.relativeAttr(Kt,ji),di.impliedEdits[ji],kt);else if((oa==="thicknessmode"||oa==="lenmode")&&ri!==ii&&(ii==="fraction"||ii==="pixels")&&xa){var pn=ke._size,_n=xa.orient,En=_n==="top"||_n==="bottom";if(oa==="thicknessmode"){var bt=En?pn.h:pn.w;Bi(ca+"thickness",xa.thickness*(ii==="fraction"?1/bt:bt),kt)}else{var st=En?pn.w:pn.h;Bi(ca+"len",xa.len*(ii==="fraction"?1/st:st),kt)}}else if(Kt==="type"&&(ii==="pie"!=(ri==="pie")||ii==="funnelarea"!=(ri==="funnelarea"))){var Nr="x",Lr="y";(ii==="bar"||ri==="bar")&&Zt.orientation==="h"&&(Nr="y",Lr="x"),S.swapAttrs(Zt,["?","?src"],"labels",Nr),S.swapAttrs(Zt,["d?","?0"],"label",Nr),S.swapAttrs(Zt,["?","?src"],"values",Lr),ri==="pie"||ri==="funnelarea"?(E(Zt,"marker.color").set(E(Zt,"marker.colors").get()),ke._pielayer.selectAll("g.trace").remove()):r.traceIs(Zt,"cartesian")&&E(Zt,"marker.colors").set(E(Zt,"marker.color").get())}tr[Kt][kt]=ie(ri);var br=["swapxy","swapxyaxes","orientation","orientationaxes"];if(br.indexOf(Kt)!==-1){if(Kt==="orientation"){Br.set(ii);var Rr=Zt.x&&!Zt.y?"h":"v";if((Br.get()||Rr)===Jt.orientation)continue}else Kt==="orientationaxes"&&(Zt.orientation={v:"h",h:"v"}[Jt.orientation]);w.swapXYData(Zt),nr.calc=nr.clearAxisTypes=!0}else i.dataArrayContainers.indexOf(Br.parts[0])!==-1?(w.manageArrayContainers(Br,ii,tr),nr.calc=!0):(di?di.arrayOk&&!r.traceIs(Jt,"regl")&&(S.isArrayOrTypedArray(ii)||S.isArrayOrTypedArray(ri))?nr.calc=!0:M.update(nr,di):nr.calc=!0,Br.set(ii))}}if(["swapxyaxes","orientationaxes"].indexOf(Kt)!==-1&&n.swap(be,qe),Kt==="orientationaxes"){var jr=E(be.layout,"hovermode"),Wr=jr.get();Wr==="x"?jr.set("y"):Wr==="y"?jr.set("x"):Wr==="x unified"?jr.set("y unified"):Wr==="y unified"&&jr.set("x unified")}if(["orientation","type"].indexOf(Kt)!==-1){for(Ir=[],kt=0;kt<qe.length;kt++){var yt=Le[qe[kt]];r.traceIs(yt,"cartesian")&&(Vi(yt.xaxis||"x"),Vi(yt.yaxis||"y"))}Bi(Ir.map(Ui),!0,0),Bi(Ir.map(Ki),[0,1],0)}}return(nr.calc||nr.plot)&&(nr.fullReplot=!0),{flags:nr,undoit:tr,redoit:ir,traces:qe,eventData:S.extendDeepNoArrays([],[gt,qe])}}function _e(be,Ie,qe){be=S.getGraphDiv(be),w.clearPromiseQueue(be);var ke={};if(typeof Ie=="string")ke[Ie]=qe;else if(S.isPlainObject(Ie))ke=S.extendFlat({},Ie);else return S.warn("Relayout fail.",Ie,qe),Promise.reject();Object.keys(ke).length&&(be.changed=!0);var Me=it(be,ke),Le=Me.flags;Le.calc&&(be.calcdata=void 0);var ut=[i.previousPromises];Le.layoutReplot?ut.push(A.layoutReplot):Object.keys(ke).length&&(we(be,Le,Me)||i.supplyDefaults(be),Le.legend&&ut.push(A.doLegend),Le.layoutstyle&&ut.push(A.layoutStyles),Le.axrange&&Re(ut,Me.rangesAltered),Le.ticks&&ut.push(A.doTicksRelayout),Le.modebar&&ut.push(A.doModeBar),Le.camera&&ut.push(A.doCamera),Le.colorbars&&ut.push(A.doColorBars),ut.push(y)),ut.push(i.rehover,i.redrag,i.reselect),t.add(be,_e,[be,Me.undoit],_e,[be,Me.redoit]);var lt=S.syncOrAsync(ut,be);return(!lt||!lt.then)&&(lt=Promise.resolve(be)),lt.then(function(){return be.emit("plotly_relayout",Me.eventData),be})}function we(be,Ie,qe){var ke=be._fullLayout;if(!Ie.axrange)return!1;for(var Me in Ie)if(Me!=="axrange"&&Ie[Me])return!1;var Le,ut,lt=function(Ir,vi){return S.coerce(Le,ut,s,Ir,vi)},gt={};for(var kt in qe.rangesAltered){var nr=n.id2name(kt);if(Le=be.layout[nr],ut=ke[nr],a(Le,ut,lt,gt),ut._matchGroup){for(var ir in ut._matchGroup)if(ir!==kt){var tr=ke[n.id2name(ir)];tr.autorange=ut.autorange,tr.range=ut.range.slice(),tr._input.range=ut.range.slice()}}}return!0}function Re(be,Ie){var qe=Ie?function(ke){var Me=[],Le=!0;for(var ut in Ie){var lt=n.getFromId(ke,ut);if(Me.push(ut),(lt.ticklabelposition||"").indexOf("inside")!==-1&&lt._anchorAxis&&Me.push(lt._anchorAxis._id),lt._matchGroup)for(var gt in lt._matchGroup)Ie[gt]||Me.push(gt)}return n.draw(ke,Me,{skipTitle:Le})}:function(ke){return n.draw(ke,"redraw")};be.push(T,A.doAutoRangeAndConstraints,qe,A.drawData,A.finalDraw)}var ze=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,Xe=/^[xyz]axis[0-9]*\.autorange$/,tt=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function it(be,Ie){var qe=be.layout,ke=be._fullLayout,Me=ke._guiEditing,Le=j(ke._preGUI,Me),ut=Object.keys(Ie),lt=n.list(be),gt=S.extendDeepAll({},Ie),kt={},nr,ir,tr;for(ut=Object.keys(Ie),ir=0;ir<ut.length;ir++)if(ut[ir].indexOf("allaxes")===0){for(tr=0;tr<lt.length;tr++){var Ir=lt[tr]._id.slice(1),vi=Ir.indexOf("scene")!==-1?Ir+".":"",Vi=ut[ir].replace("allaxes",vi+lt[tr]._name);Ie[Vi]||(Ie[Vi]=Ie[ut[ir]])}delete Ie[ut[ir]]}var Ui=M.layoutFlags(),Ki={},ea={};function Bi(Si,fi){if(Array.isArray(Si)){Si.forEach(function(Ia){Bi(Ia,fi)});return}if(!(Si in Ie||w.hasParent(Ie,Si))){var Li=Le(qe,Si);Si in ea||(ea[Si]=ie(Li.get())),fi!==void 0&&Li.set(fi)}}var _a={},Ca;function Kt(Si){var fi=n.name2id(Si.split(".")[0]);return _a[fi]=1,fi}for(var zt in Ie){if(w.hasParent(Ie,zt))throw new Error("cannot set "+zt+" and a parent attribute simultaneously");for(var Zt=Le(qe,zt),Jt=Ie[zt],Br=Zt.parts.length,ri=Br-1;ri>0&&typeof Zt.parts[ri]!="string";)ri--;var ii=Zt.parts[ri],di=Zt.parts[ri-1]+"."+ii,Wi=Zt.parts.slice(0,ri).join("."),oa=E(be.layout,Wi).get(),ra=E(ke,Wi).get(),ca=Zt.get();if(Jt!==void 0){Ki[zt]=Jt,ea[zt]=ii==="reverse"?Jt:ie(ca);var xa=o.getLayoutValObject(ke,Zt.parts);if(xa&&xa.impliedEdits&&Jt!==null)for(var ji in xa.impliedEdits)Bi(S.relativeAttr(zt,ji),xa.impliedEdits[ji]);if(["width","height"].indexOf(zt)!==-1)if(Jt){Bi("autosize",null);var pn=zt==="height"?"width":"height";Bi(pn,ke[pn])}else ke[zt]=be._initialAutoSize[zt];else if(zt==="autosize")Bi("width",Jt?null:ke.width),Bi("height",Jt?null:ke.height);else if(di.match(ze))Kt(di),E(ke,Wi+"._inputRange").set(null);else if(di.match(Xe)){Kt(di),E(ke,Wi+"._inputRange").set(null);var _n=E(ke,Wi).get();_n._inputDomain&&(_n._input.domain=_n._inputDomain.slice())}else di.match(tt)&&E(ke,Wi+"._inputDomain").set(null);if(ii==="type"){Ca=oa;var En=ra.type==="linear"&&Jt==="log",bt=ra.type==="log"&&Jt==="linear";if(En||bt){if(!Ca||!Ca.range)Bi(Wi+".autorange",!0);else if(ra.autorange)En&&(Ca.range=Ca.range[1]>Ca.range[0]?[1,2]:[2,1]);else{var st=Ca.range[0],Nr=Ca.range[1];En?(st<=0&&Nr<=0&&Bi(Wi+".autorange",!0),st<=0?st=Nr/1e6:Nr<=0&&(Nr=st/1e6),Bi(Wi+".range[0]",Math.log(st)/Math.LN10),Bi(Wi+".range[1]",Math.log(Nr)/Math.LN10)):(Bi(Wi+".range[0]",Math.pow(10,st)),Bi(Wi+".range[1]",Math.pow(10,Nr)))}Array.isArray(ke._subplots.polar)&&ke._subplots.polar.length&&ke[Zt.parts[0]]&&Zt.parts[1]==="radialaxis"&&delete ke[Zt.parts[0]]._subplot.viewInitial["radialaxis.range"],r.getComponentMethod("annotations","convertCoords")(be,ra,Jt,Bi),r.getComponentMethod("images","convertCoords")(be,ra,Jt,Bi)}else Bi(Wi+".autorange",!0),Bi(Wi+".range",null);E(ke,Wi+"._inputRange").set(null)}else if(ii.match(g)){var Lr=E(ke,zt).get(),br=(Jt||{}).type;(!br||br==="-")&&(br="linear"),r.getComponentMethod("annotations","convertCoords")(be,Lr,br,Bi),r.getComponentMethod("images","convertCoords")(be,Lr,br,Bi)}var Rr=_.containerArrayMatch(zt);if(Rr){nr=Rr.array,ir=Rr.index;var jr=Rr.property,Wr=xa||{editType:"calc"};ir!==""&&jr===""&&(_.isAddVal(Jt)?ea[zt]=null:_.isRemoveVal(Jt)?ea[zt]=(E(qe,nr).get()||[])[ir]:S.warn("unrecognized full object value",Ie)),M.update(Ui,Wr),kt[nr]||(kt[nr]={});var yt=kt[nr][ir];yt||(yt=kt[nr][ir]={}),yt[jr]=Jt,delete Ie[zt]}else ii==="reverse"?(oa.range?oa.range.reverse():(Bi(Wi+".autorange",!0),oa.range=[1,0]),ra.autorange?Ui.calc=!0:Ui.plot=!0):(zt==="dragmode"&&(Jt===!1&&ca!==!1||Jt!==!1&&ca===!1)||ke._has("scatter-like")&&ke._has("regl")&&zt==="dragmode"&&(Jt==="lasso"||Jt==="select")&&!(ca==="lasso"||ca==="select")?Ui.plot=!0:xa?M.update(Ui,xa):Ui.calc=!0,Zt.set(Jt))}}for(nr in kt){var Xt=_.applyContainerArrayChanges(be,Le(qe,nr),kt[nr],Ui,Le);Xt||(Ui.plot=!0)}for(var mr in _a){Ca=n.getFromId(be,mr);var Or=Ca&&Ca._constraintGroup;if(Or){Ui.calc=!0;for(var ki in Or)_a[ki]||(n.getFromId(be,ki)._constraintShrinkable=!0)}}(et(be)||Ie.height||Ie.width)&&(Ui.plot=!0);var Ni=ke.shapes;for(ir=0;ir<Ni.length;ir++)if(Ni[ir].showlegend){Ui.calc=!0;break}return(Ui.plot||Ui.calc)&&(Ui.layoutReplot=!0),{flags:Ui,rangesAltered:_a,undoit:ea,redoit:Ki,eventData:gt}}function et(be){var Ie=be._fullLayout,qe=Ie.width,ke=Ie.height;return be.layout.autosize&&i.plotAutoSize(be,be.layout,Ie),Ie.width!==qe||Ie.height!==ke}function nt(be,Ie,qe,ke){be=S.getGraphDiv(be),w.clearPromiseQueue(be),S.isPlainObject(Ie)||(Ie={}),S.isPlainObject(qe)||(qe={}),Object.keys(Ie).length&&(be.changed=!0),Object.keys(qe).length&&(be.changed=!0);var Me=w.coerceTraceIndices(be,ke),Le=ue(be,S.extendFlat({},Ie),Me),ut=Le.flags,lt=it(be,S.extendFlat({},qe)),gt=lt.flags;(ut.calc||gt.calc)&&(be.calcdata=void 0),ut.clearAxisTypes&&w.clearAxisTypes(be,Me,qe);var kt=[];gt.layoutReplot?kt.push(A.layoutReplot):ut.fullReplot?kt.push(Y._doPlot):(kt.push(i.previousPromises),we(be,gt,lt)||i.supplyDefaults(be),ut.style&&kt.push(A.doTraceStyle),(ut.colorbars||gt.colorbars)&&kt.push(A.doColorBars),gt.legend&&kt.push(A.doLegend),gt.layoutstyle&&kt.push(A.layoutStyles),gt.axrange&&Re(kt,lt.rangesAltered),gt.ticks&&kt.push(A.doTicksRelayout),gt.modebar&&kt.push(A.doModeBar),gt.camera&&kt.push(A.doCamera),kt.push(y)),kt.push(i.rehover,i.redrag,i.reselect),t.add(be,nt,[be,Le.undoit,lt.undoit,Le.traces],nt,[be,Le.redoit,lt.redoit,Le.traces]);var nr=S.syncOrAsync(kt,be);return(!nr||!nr.then)&&(nr=Promise.resolve(be)),nr.then(function(){return be.emit("plotly_update",{data:Le.eventData,layout:lt.eventData}),be})}function Ae(be){return function(qe){qe._fullLayout._guiEditing=!0;var ke=be.apply(null,arguments);return qe._fullLayout._guiEditing=!1,ke}}var me=[{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"}],fe=[{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 Be(be,Ie){for(var qe=0;qe<Ie.length;qe++){var ke=Ie[qe],Me=be.match(ke.pattern);if(Me){var Le=Me[1]||"";return{head:Le,tail:be.slice(Le.length+1),attr:ke.attr}}}}function Qe(be,Ie){var qe=E(Ie,be).get();if(qe!==void 0)return qe;var ke=be.split(".");for(ke.pop();ke.length>1;)if(ke.pop(),qe=E(Ie,ke.join(".")+".uirevision").get(),qe!==void 0)return qe;return Ie.uirevision}function at(be,Ie){for(var qe=0;qe<Ie.length;qe++)if(Ie[qe]._fullInput.uid===be)return qe;return-1}function $e(be,Ie,qe){for(var ke=0;ke<Ie.length;ke++)if(Ie[ke].uid===be)return ke;return!Ie[qe]||Ie[qe].uid?-1:qe}function It(be,Ie){var qe=S.isPlainObject(be),ke=Array.isArray(be);return qe||ke?(qe&&S.isPlainObject(Ie)||ke&&Array.isArray(Ie))&&JSON.stringify(be)===JSON.stringify(Ie):be===Ie}function Pt(be,Ie,qe,ke){var Me=ke._preGUI,Le,ut,lt,gt,kt,nr,ir,tr,Ir,vi,Vi=[],Ui={},Ki={};for(Le in Me){if(kt=Be(Le,me),kt){if(Ir=kt.head,vi=kt.tail,ut=kt.attr||Ir+".uirevision",lt=E(ke,ut).get(),gt=lt&&Qe(ut,Ie),gt&&gt===lt){if(nr=Me[Le],nr===null&&(nr=void 0),ir=E(Ie,Le),tr=ir.get(),It(tr,nr)){tr===void 0&&vi==="autorange"&&Vi.push(Ir),ir.set(ie(E(ke,Le).get()));continue}else if(vi==="autorange"||vi.slice(0,6)==="range["){var ea=Me[Ir+".range[0]"],Bi=Me[Ir+".range[1]"],_a=Me[Ir+".autorange"];if(_a||_a===null&&ea===null&&Bi===null){if(!(Ir in Ui)){var Ca=E(Ie,Ir).get();Ui[Ir]=Ca&&(Ca.autorange||Ca.autorange!==!1&&(!Ca.range||Ca.range.length!==2))}if(Ui[Ir]){ir.set(ie(E(ke,Le).get()));continue}}}}}else S.warn("unrecognized GUI edit: "+Le);delete Me[Le],kt&&kt.tail.slice(0,6)==="range["&&(Ki[kt.head]=1)}for(var Kt=0;Kt<Vi.length;Kt++){var zt=Vi[Kt];if(Ki[zt]){var Zt=E(Ie,zt).get();Zt&&delete Zt.autorange}}var Jt=ke._tracePreGUI;for(var Br in Jt){var ri=Jt[Br],ii=null,di;for(Le in ri){if(!ii){var Wi=at(Br,qe);if(Wi<0){delete Jt[Br];break}var oa=qe[Wi];di=oa._fullInput;var ra=$e(Br,be,di.index);if(ra<0){delete Jt[Br];break}ii=be[ra]}if(kt=Be(Le,fe),kt){if(kt.attr?(lt=E(ke,kt.attr).get(),gt=lt&&Qe(kt.attr,Ie)):(lt=di.uirevision,gt=ii.uirevision,gt===void 0&&(gt=Ie.uirevision)),gt&&gt===lt&&(nr=ri[Le],nr===null&&(nr=void 0),ir=E(ii,Le),tr=ir.get(),It(tr,nr))){ir.set(ie(E(di,Le).get()));continue}}else S.warn("unrecognized GUI edit: "+Le+" in trace uid "+Br);delete ri[Le]}}}function Vt(be,Ie,qe,ke){var Me,Le;function ut(){return Y.addFrames(be,Me)}be=S.getGraphDiv(be),w.clearPromiseQueue(be);var lt=be._fullData,gt=be._fullLayout;if(!S.isPlotDiv(be)||!lt||!gt)Le=Y.newPlot(be,Ie,qe,ke);else{if(S.isPlainObject(Ie)){var kt=Ie;Ie=kt.data,qe=kt.layout,ke=kt.config,Me=kt.frames}var nr=!1;if(ke){let di=S.extendDeepAll({},be._context);be._context=void 0,z(be,ke),nr=!w.collectionsAreEqual(di,be._context)}if(nr){let di=be._ev.eventNames().map(Wi=>[Wi,be._ev.listeners(Wi)]);Le=Y.newPlot(be,Ie,qe,ke).then(()=>{for(let[Wi,oa]of di)oa.forEach(ra=>be.on(Wi,ra));return Y.react(be,Ie,qe,ke)})}else{be.data=Ie||[],w.cleanData(be.data),be.layout=qe||{},w.cleanLayout(be.layout),Pt(be.data,be.layout,lt,gt),i.supplyDefaults(be,{skipUpdateCalc:!0});var ir=be._fullData,tr=be._fullLayout,Ir=tr.datarevision===void 0,vi=tr.transition,Vi=Cr(be,gt,tr,Ir,vi),Ui=Vi.newDataRevision,Ki=Wt(be,lt,ir,Ir,vi,Ui);if(et(be)&&(Vi.layoutReplot=!0),Ki.calc||Vi.calc){be.calcdata=void 0;for(var ea=Object.getOwnPropertyNames(tr),Bi=0;Bi<ea.length;Bi++){var _a=ea[Bi],Ca=_a.substring(0,5);if(Ca==="xaxis"||Ca==="yaxis"){var Kt=tr[_a]._emptyCategories;Kt&&Kt()}}}else i.supplyDefaultsUpdateCalc(be.calcdata,ir);var zt=[];if(Me&&(be._transitionData={},i.createTransitionData(be),zt.push(ut)),tr.transition&&(Ki.anim||Vi.anim))Vi.ticks&&zt.push(A.doTicksRelayout),i.doCalcdata(be),A.doAutoRangeAndConstraints(be),zt.push(function(){return i.transitionFromReact(be,Ki,Vi,gt)});else if(Ki.fullReplot||Vi.layoutReplot)be._fullLayout._skipDefaults=!0,zt.push(Y._doPlot);else{for(var Zt in Vi.arrays){var Jt=Vi.arrays[Zt];if(Jt.length){var Br=r.getComponentMethod(Zt,"drawOne");if(Br!==S.noop)for(var ri=0;ri<Jt.length;ri++)Br(be,Jt[ri]);else{var ii=r.getComponentMethod(Zt,"draw");if(ii===S.noop)throw new Error("cannot draw components: "+Zt);ii(be)}}}zt.push(i.previousPromises),Ki.style&&zt.push(A.doTraceStyle),(Ki.colorbars||Vi.colorbars)&&zt.push(A.doColorBars),Vi.legend&&zt.push(A.doLegend),Vi.layoutstyle&&zt.push(A.layoutStyles),Vi.axrange&&Re(zt),Vi.ticks&&zt.push(A.doTicksRelayout),Vi.modebar&&zt.push(A.doModeBar),Vi.camera&&zt.push(A.doCamera),zt.push(y)}zt.push(i.rehover,i.redrag,i.reselect),Le=S.syncOrAsync(zt,be),(!Le||!Le.then)&&(Le=Promise.resolve(be))}}return Le.then(()=>(nr||be.emit("plotly_react",{config:ke,data:Ie,layout:qe}),be))}function Wt(be,Ie,qe,ke,Me,Le){var ut=Ie.length===qe.length;if(!Me&&!ut)return{fullReplot:!0,calc:!0};var lt=M.traceFlags();lt.arrays={},lt.nChanges=0,lt.nChangesAnim=0;var gt,kt;function nr(Ir){var vi=o.getTraceValObject(kt,Ir);return!kt._module.animatable&&vi.anim&&(vi.anim=!1),vi}var ir={getValObject:nr,flags:lt,immutable:ke,transition:Me,newDataRevision:Le,gd:be},tr={};for(gt=0;gt<Ie.length;gt++)if(qe[gt]){if(kt=qe[gt]._fullInput,tr[kt.uid])continue;tr[kt.uid]=1,yr(Ie[gt]._fullInput,kt,[],ir)}return(lt.calc||lt.plot)&&(lt.fullReplot=!0),Me&&lt.nChanges&&lt.nChangesAnim&&(lt.anim=lt.nChanges===lt.nChangesAnim&&ut?"all":"some"),lt}function Cr(be,Ie,qe,ke,Me){var Le=M.layoutFlags();Le.arrays={},Le.rangesAltered={},Le.nChanges=0,Le.nChangesAnim=0;function ut(tr){return o.getLayoutValObject(qe,tr)}for(var lt in qe)if(!(!lt.startsWith("xaxis")&&!lt.startsWith("yaxis"))&&Ie[lt]){var gt=qe[lt].domain,kt=Ie[lt].domain,nr=Ie[lt]._inputDomain;Ie[lt]._inputDomain&&(gt[0]===nr[0]&&gt[1]===nr[1]?qe[lt].domain=Ie[lt].domain:(gt[0]!==kt[0]||gt[1]!==kt[1])&&(qe[lt]._inputDomain=null))}var ir={getValObject:ut,flags:Le,immutable:ke,transition:Me,gd:be};return yr(Ie,qe,[],ir),(Le.plot||Le.calc)&&(Le.layoutReplot=!0),Me&&Le.nChanges&&Le.nChangesAnim&&(Le.anim=Le.nChanges===Le.nChangesAnim?"all":"some"),Le}function yr(be,Ie,qe,ke){var Me,Le,ut,lt=ke.getValObject,gt=ke.flags,kt=ke.immutable,nr=ke.inArray,ir=ke.arrayIndex;function tr(){var Wi=Me.editType;if(nr&&Wi.indexOf("arraydraw")!==-1){S.pushUnique(gt.arrays[nr],ir);return}M.update(gt,Me),Wi!=="none"&&gt.nChanges++,ke.transition&&Me.anim&&gt.nChangesAnim++,(ze.test(ut)||Xe.test(ut))&&(gt.rangesAltered[qe[0]]=1),Le==="datarevision"&&(gt.newDataRevision=1)}function Ir(Wi){return Wi.valType==="data_array"||Wi.arrayOk}for(Le in be){if(gt.calc&&!ke.transition)return;var vi=be[Le],Vi=Ie[Le],Ui=qe.concat(Le);if(ut=Ui.join("."),!(Le.charAt(0)==="_"||typeof vi=="function"||vi===Vi)){if((Le==="tick0"||Le==="dtick")&&qe[0]!=="geo"){var Ki=Ie.tickmode;if(Ki==="auto"||Ki==="array"||!Ki)continue}if(!(Le==="range"&&Ie.autorange)&&!((Le==="zmin"||Le==="zmax")&&Ie.type==="contourcarpet")&&(Me=lt(Ui),!!Me&&!(Me._compareAsJSON&&JSON.stringify(vi)===JSON.stringify(Vi)))){var ea=Me.valType,Bi,_a=Ir(Me),Ca=Array.isArray(vi),Kt=Array.isArray(Vi);if(Ca&&Kt){var zt="_input_"+Le,Zt=be[zt],Jt=Ie[zt];if(Array.isArray(Zt)&&Zt===Jt)continue}if(Vi===void 0)_a&&Ca?gt.calc=!0:tr();else if(Me._isLinkedToArray){var Br=[],ri=!1;nr||(gt.arrays[Le]=Br);var ii=Math.min(vi.length,Vi.length),di=Math.max(vi.length,Vi.length);if(ii!==di)if(Me.editType==="arraydraw")ri=!0;else{tr();continue}for(Bi=0;Bi<ii;Bi++)yr(vi[Bi],Vi[Bi],Ui.concat(Bi),S.extendFlat({inArray:Le,arrayIndex:Bi},ke));if(ri)for(Bi=ii;Bi<di;Bi++)Br.push(Bi)}else!ea&&S.isPlainObject(vi)?yr(vi,Vi,Ui,ke):_a?Ca&&Kt?(kt&&(gt.calc=!0),(kt||ke.newDataRevision)&&tr()):Ca!==Kt?gt.calc=!0:tr():Ca&&Kt?(vi.length!==Vi.length||String(vi)!==String(Vi))&&tr():tr()}}}for(Le in Ie)if(!(Le in be||Le.charAt(0)==="_"||typeof Ie[Le]=="function"))if(Me=lt(qe.concat(Le)),Ir(Me)&&Array.isArray(Ie[Le])){gt.calc=!0;return}else tr()}function qr(be,Ie,qe){if(be=S.getGraphDiv(be),!S.isPlotDiv(be))throw new Error("This element is not a Plotly plot: "+be+". It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/");var ke=be._transitionData;ke._frameQueue||(ke._frameQueue=[]),qe=i.supplyAnimationDefaults(qe);var Me=qe.transition,Le=qe.frame;ke._frameWaitingCnt===void 0&&(ke._frameWaitingCnt=0);function ut(kt){return Array.isArray(Me)?kt>=Me.length?Me[0]:Me[kt]:Me}function lt(kt){return Array.isArray(Le)?kt>=Le.length?Le[0]:Le[kt]:Le}function gt(kt,nr){var ir=0;return function(){if(kt&&++ir===nr)return kt()}}return new Promise(function(kt,nr){function ir(){if(ke._frameQueue.length!==0){for(;ke._frameQueue.length;){var ii=ke._frameQueue.pop();ii.onInterrupt&&ii.onInterrupt()}be.emit("plotly_animationinterrupted",[])}}function tr(ii){if(ii.length!==0){for(var di=0;di<ii.length;di++){var Wi;ii[di].type==="byname"?Wi=i.computeFrame(be,ii[di].name):Wi=ii[di].data;var oa=lt(di),ra=ut(di);ra.duration=Math.min(ra.duration,oa.duration);var ca={frame:Wi,name:ii[di].name,frameOpts:oa,transitionOpts:ra};di===ii.length-1&&(ca.onComplete=gt(kt,2),ca.onInterrupt=nr),ke._frameQueue.push(ca)}qe.mode==="immediate"&&(ke._lastFrameAt=-1/0),ke._animationRaf||Vi()}}function Ir(){be.emit("plotly_animated"),window.cancelAnimationFrame(ke._animationRaf),ke._animationRaf=null}function vi(){ke._currentFrame&&ke._currentFrame.onComplete&&ke._currentFrame.onComplete();var ii=ke._currentFrame=ke._frameQueue.shift();if(ii){var di=ii.name?ii.name.toString():null;be._fullLayout._currentFrame=di,ke._lastFrameAt=Date.now(),ke._timeToNext=ii.frameOpts.duration,i.transition(be,ii.frame.data,ii.frame.layout,w.coerceTraceIndices(be,ii.frame.traces),ii.frameOpts,ii.transitionOpts).then(function(){ii.onComplete&&ii.onComplete()}),be.emit("plotly_animatingframe",{name:di,frame:ii.frame,animation:{frame:ii.frameOpts,transition:ii.transitionOpts}})}else Ir()}function Vi(){be.emit("plotly_animating"),ke._lastFrameAt=-1/0,ke._timeToNext=0,ke._runningTransitions=0,ke._currentFrame=null;var ii=function(){ke._animationRaf=window.requestAnimationFrame(ii),Date.now()-ke._lastFrameAt>ke._timeToNext&&vi()};ii()}var Ui=0;function Ki(ii){return Array.isArray(Me)?Ui>=Me.length?ii.transitionOpts=Me[Ui]:ii.transitionOpts=Me[0]:ii.transitionOpts=Me,Ui++,ii}var ea,Bi,_a=[],Ca=Ie==null,Kt=Array.isArray(Ie),zt=!Ca&&!Kt&&S.isPlainObject(Ie);if(zt)_a.push({type:"object",data:Ki(S.extendFlat({},Ie))});else if(Ca||["string","number"].indexOf(typeof Ie)!==-1)for(ea=0;ea<ke._frames.length;ea++)Bi=ke._frames[ea],Bi&&(Ca||String(Bi.group)===String(Ie))&&_a.push({type:"byname",name:String(Bi.name),data:Ki({name:Bi.name})});else if(Kt)for(ea=0;ea<Ie.length;ea++){var Zt=Ie[ea];["number","string"].indexOf(typeof Zt)!==-1?(Zt=String(Zt),_a.push({type:"byname",name:Zt,data:Ki({name:Zt})})):S.isPlainObject(Zt)&&_a.push({type:"object",data:Ki(S.extendFlat({},Zt))})}for(ea=0;ea<_a.length;ea++)if(Bi=_a[ea],Bi.type==="byname"&&!ke._frameHash[Bi.data.name]){S.warn('animate failure: frame not found: "'+Bi.data.name+'"'),nr();return}["next","immediate"].indexOf(qe.mode)!==-1&&ir(),qe.direction==="reverse"&&_a.reverse();var Jt=be._fullLayout._currentFrame;if(Jt&&qe.fromcurrent){var Br=-1;for(ea=0;ea<_a.length;ea++)if(Bi=_a[ea],Bi.type==="byname"&&Bi.name===Jt){Br=ea;break}if(Br>0&&Br<_a.length-1){var ri=[];for(ea=0;ea<_a.length;ea++)Bi=_a[ea],(_a[ea].type!=="byname"||ea>Br)&&ri.push(Bi);_a=ri}}_a.length>0?tr(_a):(be.emit("plotly_animated"),kt())})}function Mr(be,Ie,qe){if(be=S.getGraphDiv(be),Ie==null)return Promise.resolve();if(!S.isPlotDiv(be))throw new Error("This element is not a Plotly plot: "+be+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var ke,Me,Le,ut,lt=be._transitionData._frames,gt=be._transitionData._frameHash;if(!Array.isArray(Ie))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+Ie);var kt=lt.length+Ie.length*2,nr=[],ir={};for(ke=Ie.length-1;ke>=0;ke--)if(S.isPlainObject(Ie[ke])){var tr=Ie[ke].name,Ir=(gt[tr]||ir[tr]||{}).name,vi=Ie[ke].name,Vi=gt[Ir]||ir[Ir];Ir&&vi&&typeof vi=="number"&&Vi&&b<v&&(b++,S.warn('addFrames: overwriting frame "'+(gt[Ir]||ir[Ir]).name+'" with a frame whose name of type "number" also equates to "'+Ir+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),b===v&&S.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.")),ir[tr]={name:tr},nr.push({frame:i.supplyFrameDefaults(Ie[ke]),index:qe&&qe[ke]!==void 0&&qe[ke]!==null?qe[ke]:kt+ke})}nr.sort(function(zt,Zt){return zt.index>Zt.index?-1:zt.index<Zt.index?1:0});var Ui=[],Ki=[],ea=lt.length;for(ke=nr.length-1;ke>=0;ke--){if(Me=nr[ke].frame,typeof Me.name=="number"&&S.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!Me.name)for(;gt[Me.name="frame "+be._transitionData._counter++];);if(gt[Me.name]){for(Le=0;Le<lt.length&&(lt[Le]||{}).name!==Me.name;Le++);Ui.push({type:"replace",index:Le,value:Me}),Ki.unshift({type:"replace",index:Le,value:lt[Le]})}else ut=Math.max(0,Math.min(nr[ke].index,ea)),Ui.push({type:"insert",index:ut,value:Me}),Ki.unshift({type:"delete",index:ut}),ea++}var Bi=i.modifyFrames,_a=i.modifyFrames,Ca=[be,Ki],Kt=[be,Ui];return t&&t.add(be,Bi,Ca,_a,Kt),i.modifyFrames(be,Ui)}function Dr(be,Ie){if(be=S.getGraphDiv(be),!S.isPlotDiv(be))throw new Error("This element is not a Plotly plot: "+be);var qe,ke,Me=be._transitionData._frames,Le=[],ut=[];if(!Ie)for(Ie=[],qe=0;qe<Me.length;qe++)Ie.push(qe);for(Ie=Ie.slice(),Ie.sort(),qe=Ie.length-1;qe>=0;qe--)ke=Ie[qe],Le.push({type:"delete",index:ke}),ut.unshift({type:"insert",index:ke,value:Me[ke]});var lt=i.modifyFrames,gt=i.modifyFrames,kt=[be,ut],nr=[be,Le];return t&&t.add(be,lt,kt,gt,nr),i.modifyFrames(be,Le)}function xt(be){be=S.getGraphDiv(be);var Ie=be._fullLayout||{},qe=be._fullData||[];return i.cleanPlot([],{},qe,Ie),i.purge(be),e.purge(be),Ie._container&&Ie._container.remove(),delete be._context,be}function Ne(be){var Ie=be._fullLayout,qe=be.getBoundingClientRect();if(!S.equalDomRects(qe,Ie._lastBBox)){var ke=Ie._invTransform=S.inverseTransformMatrix(S.getFullTransformMatrix(be));Ie._invScaleX=Math.sqrt(ke[0][0]*ke[0][0]+ke[0][1]*ke[0][1]+ke[0][2]*ke[0][2]),Ie._invScaleY=Math.sqrt(ke[1][0]*ke[1][0]+ke[1][1]*ke[1][1]+ke[1][2]*ke[1][2]),Ie._lastBBox=qe}}function Ye(be){var Ie=H.select(be),qe=be._fullLayout;if(qe._calcInverseTransform=Ne,qe._calcInverseTransform(be),qe._container=Ie.selectAll(".plot-container").data([0]),qe._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0).style({width:"100%",height:"100%"}),qe._paperdiv=qe._container.selectAll(".svg-container").data([0]),qe._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),qe._glcontainer=qe._paperdiv.selectAll(".gl-container").data([{}]),qe._glcontainer.enter().append("div").classed("gl-container",!0),qe._paperdiv.selectAll(".main-svg").remove(),qe._paperdiv.select(".modebar-container").remove(),qe._paper=qe._paperdiv.insert("svg",":first-child").classed("main-svg",!0),qe._toppaper=qe._paperdiv.append("svg").classed("main-svg",!0),qe._modebardiv=qe._paperdiv.append("div"),delete qe._modeBar,qe._hoverpaper=qe._paperdiv.append("svg").classed("main-svg",!0),!qe._uid){var ke={};H.selectAll("defs").each(function(){this.id&&(ke[this.id.split("-")[1]]=1)}),qe._uid=S.randstr(ke)}qe._paperdiv.selectAll(".main-svg").attr(d.svgAttrs),qe._defs=qe._paper.append("defs").attr("id","defs-"+qe._uid),qe._clips=qe._defs.append("g").classed("clips",!0),qe._topdefs=qe._toppaper.append("defs").attr("id","topdefs-"+qe._uid),qe._topclips=qe._topdefs.append("g").classed("clips",!0),qe._bgLayer=qe._paper.append("g").classed("bglayer",!0),qe._draggers=qe._paper.append("g").classed("draglayer",!0);var Me=qe._paper.append("g").classed("layer-below",!0);qe._imageLowerLayer=Me.append("g").classed("imagelayer",!0),qe._shapeLowerLayer=Me.append("g").classed("shapelayer",!0),qe._cartesianlayer=qe._paper.append("g").classed("cartesianlayer",!0),qe._polarlayer=qe._paper.append("g").classed("polarlayer",!0),qe._smithlayer=qe._paper.append("g").classed("smithlayer",!0),qe._ternarylayer=qe._paper.append("g").classed("ternarylayer",!0),qe._geolayer=qe._paper.append("g").classed("geolayer",!0),qe._funnelarealayer=qe._paper.append("g").classed("funnelarealayer",!0),qe._pielayer=qe._paper.append("g").classed("pielayer",!0),qe._iciclelayer=qe._paper.append("g").classed("iciclelayer",!0),qe._treemaplayer=qe._paper.append("g").classed("treemaplayer",!0),qe._sunburstlayer=qe._paper.append("g").classed("sunburstlayer",!0),qe._indicatorlayer=qe._toppaper.append("g").classed("indicatorlayer",!0),qe._glimages=qe._paper.append("g").classed("glimages",!0);var Le=qe._toppaper.append("g").classed("layer-above",!0);qe._imageUpperLayer=Le.append("g").classed("imagelayer",!0),qe._shapeUpperLayer=Le.append("g").classed("shapelayer",!0),qe._selectionLayer=qe._toppaper.append("g").classed("selectionlayer",!0),qe._infolayer=qe._toppaper.append("g").classed("infolayer",!0),qe._menulayer=qe._toppaper.append("g").classed("menulayer",!0),qe._zoomlayer=qe._toppaper.append("g").classed("zoomlayer",!0),qe._hoverlayer=qe._hoverpaper.append("g").classed("hoverlayer",!0),qe._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),be.emit("plotly_framework")}Y.animate=qr,Y.addFrames=Mr,Y.deleteFrames=Dr,Y.addTraces=Z,Y.deleteTraces=ee,Y.extendTraces=ce,Y.moveTraces=V,Y.prependTraces=q,Y.newPlot=N,Y._doPlot=u,Y.purge=xt,Y.react=Vt,Y.redraw=F,Y.relayout=_e,Y.restyle=oe,Y.setPlotConfig=f,Y.update=nt,Y._guiRelayout=Ae(_e),Y._guiRestyle=Ae(oe),Y._guiUpdate=Ae(nt),Y._storeDirectGUIEdit=re}}),cp=De({"src/snapshot/helpers.js"(Y){"use strict";var H=Mo();Y.getDelay=function(S){return S._has&&(S._has("gl3d")||S._has("mapbox")||S._has("map"))?500:0},Y.getRedrawFunc=function(S){return function(){H.getComponentMethod("colorbar","draw")(S)}},Y.encodeSVG=function(S){return"data:image/svg+xml,"+encodeURIComponent(S)},Y.encodeJSON=function(S){return"data:application/json,"+encodeURIComponent(S)};var p=window.URL||window.webkitURL;Y.createObjectURL=function(S){return p.createObjectURL(S)},Y.revokeObjectURL=function(S){return p.revokeObjectURL(S)},Y.createBlob=function(S,E){if(E==="svg")return new window.Blob([S],{type:"image/svg+xml;charset=utf-8"});if(E==="full-json")return new window.Blob([S],{type:"application/json;charset=utf-8"});var e=x(window.atob(S));return new window.Blob([e],{type:"image/"+E})},Y.octetStream=function(S){document.location.href="data:application/octet-stream"+S};function x(S){for(var E=S.length,e=new ArrayBuffer(E),t=new Uint8Array(e),r=0;r<E;r++)t[r]=S.charCodeAt(r);return e}Y.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/}}),I_=De({"src/snapshot/tosvg.js"(Y,H){"use strict";var p=za(),x=ui(),S=ys(),E=vo(),e=Bd(),t=/"/g,r="TOBESTRIPPED",o=new RegExp('("'+r+")|("+r+'")',"g");function i(a){var s=p.select("body").append("div").style({display:"none"}).html(""),h=a.replace(/(&[^;]*;)/gi,function(c){return c==="&lt;"?"&#60;":c==="&rt;"?"&#62;":c.indexOf("<")!==-1||c.indexOf(">")!==-1?"":s.html(c).text()});return s.remove(),h}function n(a){return a.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&amp;")}H.exports=function(s,h,c){var m=s._fullLayout,d=m._paper,T=m._toppaper,l=m.width,_=m.height,w;d.insert("rect",":first-child").call(S.setRect,0,0,l,_).call(E.fill,m.paper_bgcolor);var A=m._basePlotModules||[];for(w=0;w<A.length;w++){var M=A[w];M.toSVG&&M.toSVG(s)}if(T){var g=T.node().childNodes,b=Array.prototype.slice.call(g);for(w=0;w<b.length;w++){var v=b[w];v.childNodes.length&&d.node().appendChild(v)}}m._draggers&&m._draggers.remove(),d.node().style.background="",d.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each(function(){var y=p.select(this);if(this.style.visibility==="hidden"||this.style.display==="none"){y.remove();return}else y.style({visibility:null,display:null});var f=this.style.fontFamily;f&&f.indexOf('"')!==-1&&y.style("font-family",f.replace(t,r));var R=this.style.fontWeight;R&&(R==="normal"||R==="400")&&y.style("font-weight",void 0);var L=this.style.fontStyle;L&&L==="normal"&&y.style("font-style",void 0);var z=this.style.fontVariant;z&&z==="normal"&&y.style("font-variant",void 0)}),d.selectAll(".gradient_filled,.pattern_filled").each(function(){var y=p.select(this),f=this.style.fill;f&&f.indexOf("url(")!==-1&&y.style("fill",f.replace(t,r));var R=this.style.stroke;R&&R.indexOf("url(")!==-1&&y.style("stroke",R.replace(t,r))}),(h==="pdf"||h==="eps")&&d.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),h==="svg"&&c&&(d.attr("width",c*l),d.attr("height",c*_),d.attr("viewBox","0 0 "+l+" "+_));var u=new window.XMLSerializer().serializeToString(d.node());return u=i(u),u=n(u),u=u.replace(o,"'"),u}}}),P_=De({"src/snapshot/svgtoimg.js"(Y,H){"use strict";var p=ui(),x=N0().EventEmitter,S=cp();function E(e){var t=e.emitter||new x,r=new Promise(function(o,i){var n=window.Image,a=e.svg,s=e.format||"png",h=e.canvas,c=e.scale||1,m=e.width||300,d=e.height||150,T=c*m,l=c*d,_=h.getContext("2d",{willReadFrequently:!0}),w=new n,A,M;s==="svg"||p.isSafari()?M=S.encodeSVG(a):(A=S.createBlob(a,"svg"),M=S.createObjectURL(A)),h.width=T,h.height=l,w.onload=function(){var g;switch(A=null,S.revokeObjectURL(M),s!=="svg"&&_.drawImage(w,0,0,T,l),s){case"jpeg":g=h.toDataURL("image/jpeg");break;case"png":g=h.toDataURL("image/png");break;case"webp":g=h.toDataURL("image/webp");break;case"svg":g=M;break;default:var b="Image format is not jpeg, png, svg or webp.";if(i(new Error(b)),!e.promise)return t.emit("error",b)}o(g),e.promise||t.emit("success",g)},w.onerror=function(g){if(A=null,S.revokeObjectURL(M),i(g),!e.promise)return t.emit("error",g)},w.src=M});return e.promise?r:t}H.exports=E}}),v2=De({"src/plot_api/to_image.js"(Y,H){"use strict";var p=vn(),x=L_(),S=Mc(),E=ui(),e=cp(),t=I_(),r=P_(),o=en().version,i={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 n(a,s){s=s||{};var h,c,m,d;E.isPlainObject(a)?(h=a.data||[],c=a.layout||{},m=a.config||{},d={}):(a=E.getGraphDiv(a),h=E.extendDeep([],a.data),c=E.extendDeep({},a.layout),m=a._context,d=a._fullLayout||{});function T(N){return!(N in s)||E.validate(s[N],i[N])}if(!T("width")&&s.width!==null||!T("height")&&s.height!==null)throw new Error("Height and width should be pixel values.");if(!T("format"))throw new Error("Export format is not "+E.join2(i.format.values,", "," or ")+".");var l={};function _(N,B){return E.coerce(s,l,i,N,B)}var w=_("format"),A=_("width"),M=_("height"),g=_("scale"),b=_("setBackground"),v=_("imageDataOnly"),u=document.createElement("div");u.style.position="absolute",u.style.left="-5000px",document.body.appendChild(u);var y=E.extendFlat({},c);A?y.width=A:s.width===null&&p(d.width)&&(y.width=d.width),M?y.height=M:s.height===null&&p(d.height)&&(y.height=d.height);var f=E.extendFlat({},m,{_exportedPlot:!0,staticPlot:!0,setBackground:b}),R=e.getRedrawFunc(u);function L(){return new Promise(function(N){setTimeout(N,e.getDelay(u._fullLayout))})}function z(){return new Promise(function(N,B){var I=t(u,w,g),U=u._fullLayout.width,O=u._fullLayout.height;function X(){x.purge(u),document.body.removeChild(u)}if(w==="full-json"){var J=S.graphJson(u,!1,"keepdata","object",!0,!0);return J.version=o,J=JSON.stringify(J),X(),N(v?J:e.encodeJSON(J))}if(X(),w==="svg")return N(v?I:e.encodeSVG(I));var se=document.createElement("canvas");se.id=E.randstr(),r({format:w,width:U,height:O,scale:g,canvas:se,svg:I,promise:!0}).then(N).catch(B)})}function F(N){return v?N.replace(e.IMAGE_URL_PREFIX,""):N}return new Promise(function(N,B){x.newPlot(u,h,y,f).then(R).then(L).then(z).then(function(I){N(F(I))}).catch(function(I){B(I)})})}H.exports=n}}),fE=De({"src/plot_api/validate.js"(Y,H){"use strict";var p=ui(),x=Mc(),S=Ym(),E=Cn().dfltConfig,e=p.isPlainObject,t=Array.isArray,r=p.isArrayOrTypedArray;H.exports=function(_,w){_===void 0&&(_=[]),w===void 0&&(w={});var A=S.get(),M=[],g={_context:p.extendFlat({},E)},b,v;t(_)?(g.data=p.extendDeep([],_),b=_):(g.data=[],b=[],M.push(s("array","data"))),e(w)?(g.layout=p.extendDeep({},w),v=w):(g.layout={},v={},arguments.length>1&&M.push(s("object","layout"))),x.supplyDefaults(g);for(var u=g._fullData,y=b.length,f=0;f<y;f++){var R=b[f],L=["data",f];if(!e(R)){M.push(s("object",L));continue}var z=u[f],F=z.type,N=A.traces[F].attributes;N.type={valType:"enumerated",values:[F]},z.visible===!1&&R.visible!==!1&&M.push(s("invisible",L)),o(R,z,N,M,L)}var B=g._fullLayout,I=i(A,u);return o(v,B,I,M,"layout"),M.length===0?void 0:M};function o(l,_,w,A,M,g){g=g||[];for(var b=Object.keys(l),v=0;v<b.length;v++){var u=b[v],y=g.slice();y.push(u);var f=l[u],R=_[u],L=c(w,u),z=(L||{}).valType,F=z==="info_array",N=z==="colorscale",B=(L||{}).items;if(!h(w,u))A.push(s("schema",M,y));else if(e(f)&&e(R)&&z!=="any")o(f,R,L,A,M,y);else if(F&&t(f)){f.length>R.length&&A.push(s("unused",M,y.concat(R.length)));var I=R.length,U=Array.isArray(B);U&&(I=Math.min(I,B.length));var O,X,J,se,le;if(L.dimensions===2)for(X=0;X<I;X++)if(t(f[X])){f[X].length>R[X].length&&A.push(s("unused",M,y.concat(X,R[X].length)));var ce=R[X].length;for(O=0;O<(U?Math.min(ce,B[X].length):ce);O++)J=U?B[X][O]:B,se=f[X][O],le=R[X][O],p.validate(se,J)?le!==se&&le!==+se&&A.push(s("dynamic",M,y.concat(X,O),se,le)):A.push(s("value",M,y.concat(X,O),se))}else A.push(s("array",M,y.concat(X),f[X]));else for(X=0;X<I;X++)J=U?B[X]:B,se=f[X],le=R[X],p.validate(se,J)?le!==se&&le!==+se&&A.push(s("dynamic",M,y.concat(X),se,le)):A.push(s("value",M,y.concat(X),se))}else if(L.items&&!F&&t(f)){var q=B[Object.keys(B)[0]],Z=[],ee,V;for(ee=0;ee<R.length;ee++){var oe=R[ee]._index||ee;if(V=y.slice(),V.push(oe),e(f[oe])&&e(R[ee])){Z.push(oe);var ie=f[oe],j=R[ee];e(ie)&&ie.visible!==!1&&j.visible===!1?A.push(s("invisible",M,V)):o(ie,j,q,A,M,V)}}for(ee=0;ee<f.length;ee++)V=y.slice(),V.push(ee),e(f[ee])?Z.indexOf(ee)===-1&&A.push(s("unused",M,V)):A.push(s("object",M,V,f[ee]))}else!e(f)&&e(R)?A.push(s("object",M,y,f)):!r(f)&&r(R)&&!F&&!N?A.push(s("array",M,y,f)):u in _?p.validate(f,L)?L.valType==="enumerated"&&(L.coerceNumber&&f!==+R||!r(f)&&f!==R||String(f)!==String(R))&&A.push(s("dynamic",M,y,f,R)):A.push(s("value",M,y,f)):A.push(s("unused",M,y,f))}return A}function i(l,_){for(var w=l.layout.layoutAttributes,A=0;A<_.length;A++){var M=_[A],g=l.traces[M.type],b=g.layoutAttributes;b&&(M.subplot?p.extendFlat(w[g.attributes.subplot.dflt],b):p.extendFlat(w,b))}return w}var n={object:function(l,_){var w;return l==="layout"&&_===""?w="The layout argument":l[0]==="data"&&_===""?w="Trace "+l[1]+" in the data argument":w=a(l)+"key "+_,w+" must be linked to an object container"},array:function(l,_){var w;return l==="data"?w="The data argument":w=a(l)+"key "+_,w+" must be linked to an array container"},schema:function(l,_){return a(l)+"key "+_+" is not part of the schema"},unused:function(l,_,w){var A=e(w)?"container":"key";return a(l)+A+" "+_+" did not get coerced"},dynamic:function(l,_,w,A){return[a(l)+"key",_,"(set to '"+w+"')","got reset to","'"+A+"'","during defaults."].join(" ")},invisible:function(l,_){return(_?a(l)+"item "+_:"Trace "+l[1])+" got defaulted to be not visible"},value:function(l,_,w){return[a(l)+"key "+_,"is set to an invalid value ("+w+")"].join(" ")}};function a(l){return t(l)?"In data trace "+l[1]+", ":"In "+l+", "}function s(l,_,w,A,M){w=w||"";var g,b;t(_)?(g=_[0],b=_[1]):(g=_,b=null);var v=T(w),u=n[l](_,v,A,M);return p.log(u),{code:l,container:g,trace:b,path:w,astr:v,msg:u}}function h(l,_){var w=d(_),A=w.keyMinusId,M=w.id;return A in l&&l[A]._isSubplotObj&&M?!0:_ in l}function c(l,_){if(_ in l)return l[_];var w=d(_);return l[w.keyMinusId]}var m=p.counterRegex("([a-z]+)");function d(l){var _=l.match(m);return{keyMinusId:_&&_[1],id:_&&_[2]}}function T(l){if(!t(l))return String(l);for(var _="",w=0;w<l.length;w++){var A=l[w];typeof A=="number"?_=_.slice(0,-1)+"["+A+"]":_+=A,w<l.length-1&&(_+=".")}return _}}}),hE=De({"src/snapshot/filesaver.js"(Y,H){"use strict";var p=ui(),x=cp();function S(E,e,t){var r=document.createElement("a"),o="download"in r,i=new Promise(function(n,a){var s,h;if(o)return s=x.createBlob(E,t),h=x.createObjectURL(s),r.href=h,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),x.revokeObjectURL(h),s=null,n(e);if(p.isSafari()){var c=t==="svg"?",":";base64,";return x.octetStream(c+encodeURIComponent(E)),n(e)}a(new Error("download error"))});return i}H.exports=S}}),p2=De({"src/snapshot/download.js"(Y,H){"use strict";var p=ui(),x=v2(),S=hE(),E=cp();function e(t,r){var o;return p.isPlainObject(t)||(o=p.getGraphDiv(t)),r=r||{},r.format=r.format||"png",r.width=r.width||null,r.height=r.height||null,r.imageDataOnly=!0,new Promise(function(i,n){o&&o._snapshotInProgress&&n(new Error("Snapshotting already in progress.")),o&&(o._snapshotInProgress=!0);var a=x(t,r),s=r.filename||t.fn||"newplot";s+="."+r.format.replace("-","."),a.then(function(h){return o&&(o._snapshotInProgress=!1),S(h,s,r.format)}).then(function(h){i(h)}).catch(function(h){o&&(o._snapshotInProgress=!1),n(h)})})}H.exports=e}}),dE=De({"src/plot_api/template_api.js"(Y){"use strict";var H=ui(),p=H.isPlainObject,x=Ym(),S=Mc(),E=Yl(),e=Gl(),t=Cn().dfltConfig;Y.makeTemplate=function(m){m=H.isPlainObject(m)?m:H.getGraphDiv(m),m=H.extendDeep({_context:t},{data:m.data,layout:m.layout}),S.supplyDefaults(m);var d=m.data||[],T=m.layout||{};T._basePlotModules=m._fullLayout._basePlotModules,T._modules=m._fullLayout._modules;var l={data:{},layout:{}};d.forEach(function(f){var R={};i(f,R,a.bind(null,f));var L=H.coerce(f,{},E,"type"),z=l.data[L];z||(z=l.data[L]=[]),z.push(R)}),i(T,l.layout,n.bind(null,T)),delete l.layout.template;var _=T.template;if(p(_)){var w=_.layout,A,M,g,b,v,u;p(w)&&r(w,l.layout);var y=_.data;if(p(y)){for(M in l.data)if(g=y[M],Array.isArray(g)){for(v=l.data[M],u=v.length,b=g.length,A=0;A<u;A++)r(g[A%b],v[A]);for(A=u;A<b;A++)v.push(H.extendDeep({},g[A]))}for(M in y)M in l.data||(l.data[M]=H.extendDeep([],y[M]))}}return l};function r(m,d){m=H.extendDeep({},m);var T=Object.keys(m).sort(),l,_;function w(v,u,y){if(p(u)&&p(v))r(v,u);else if(Array.isArray(u)&&Array.isArray(v)){var f=e.arrayTemplater({_template:m},y);for(_=0;_<u.length;_++){var R=u[_],L=f.newItem(R)._template;L&&r(L,R)}var z=f.defaultItems();for(_=0;_<z.length;_++)u.push(z[_]._template);for(_=0;_<u.length;_++)delete u[_].templateitemname}}for(l=0;l<T.length;l++){var A=T[l],M=m[A];if(A in d?w(M,d[A],A):d[A]=M,o(A)===A)for(var g in d){var b=o(g);g!==b&&b===A&&!(g in m)&&w(M,d[g],A)}}}function o(m){return m.replace(/[0-9]+$/,"")}function i(m,d,T,l,_){var w=_&&T(_);for(var A in m){var M=m[A],g=s(m,A,l),b=s(m,A,_),v=T(b);if(!v){var u=o(A);u!==A&&(b=s(m,u,_),v=T(b))}if(!(w&&w===v)&&!(!v||v._noTemplating||v.valType==="data_array"||v.arrayOk&&Array.isArray(M)))if(!v.valType&&p(M))i(M,d,T,g,b);else if(v._isLinkedToArray&&Array.isArray(M))for(var y=!1,f=0,R={},L=0;L<M.length;L++){var z=M[L];if(p(z)){var F=z.name;if(F)R[F]||(i(z,d,T,s(M,f,g),s(M,f,b)),f++,R[F]=1);else if(!y){var N=e.arrayDefaultKey(A),B=s(m,N,l),I=s(M,f,g);i(z,d,T,I,s(M,f,b));var U=H.nestedProperty(d,I),O=H.nestedProperty(d,B);O.set(U.get()),U.set(null),y=!0}}}else{var X=H.nestedProperty(d,g);X.set(M)}}}function n(m,d){return x.getLayoutValObject(m,H.nestedProperty({},d).parts)}function a(m,d){return x.getTraceValObject(m,H.nestedProperty({},d).parts)}function s(m,d,T){var l;return T?Array.isArray(m)?l=T+"["+d+"]":l=T+"."+d:l=d,l}Y.validateTemplate=function(m,d){var T=H.extendDeep({},{_context:t,data:m.data,layout:m.layout}),l=T.layout||{};p(d)||(d=l.template||{});var _=d.layout,w=d.data,A=[];T.layout=l,T.layout.template=d,S.supplyDefaults(T);var M=T._fullLayout,g=T._fullData,b={};function v(B,I){for(var U in B)if(U.charAt(0)!=="_"&&p(B[U])){var O=o(U),X=[],J;for(J=0;J<I.length;J++)X.push(s(B,U,I[J])),O!==U&&X.push(s(B,O,I[J]));for(J=0;J<X.length;J++)b[X[J]]=1;v(B[U],X)}}function u(B,I){for(var U in B)if(U.indexOf("defaults")===-1&&p(B[U])){var O=s(B,U,I);b[O]?u(B[U],O):A.push({code:"unused",path:O})}}if(p(_)?(v(M,["layout"]),u(_,"layout")):A.push({code:"layout"}),!p(w))A.push({code:"data"});else{for(var y={},f,R=0;R<g.length;R++){var L=g[R];f=L.type,y[f]=(y[f]||0)+1,L._fullInput._template||A.push({code:"missing",index:L.index,traceType:f})}for(f in w){var z=w[f].length,F=y[f]||0;z>F?A.push({code:"unused",traceType:f,templateCount:z,dataCount:F}):F>z&&A.push({code:"reused",traceType:f,templateCount:z,dataCount:F})}}function N(B,I){for(var U in B)if(U.charAt(0)!=="_"){var O=B[U],X=s(B,U,I);p(O)?(Array.isArray(B)&&O._template===!1&&O.templateitemname&&A.push({code:"missing",path:X,templateitemname:O.templateitemname}),N(O,X)):Array.isArray(O)&&h(O)&&N(O,X)}}if(N({data:g,layout:M},""),A.length)return A.map(c)};function h(m){for(var d=0;d<m.length;d++)if(p(m[d]))return!0}function c(m){var d;switch(m.code){case"data":d="The template has no key data.";break;case"layout":d="The template has no key layout.";break;case"missing":m.path?d="There are no templates for item "+m.path+" with name "+m.templateitemname:d="There are no templates for trace "+m.index+", of type "+m.traceType+".";break;case"unused":m.path?d="The template item at "+m.path+" was not used in constructing the plot.":m.dataCount?d="Some of the templates of type "+m.traceType+" were not used. The template has "+m.templateCount+" traces, the data only has "+m.dataCount+" of this type.":d="The template has "+m.templateCount+" traces of type "+m.traceType+" but there are none in the data.";break;case"reused":d="Some of the templates of type "+m.traceType+" were used more than once. The template has "+m.templateCount+" traces, the data has "+m.dataCount+" of this type.";break}return m.msg=d,m}}}),vE=De({"src/plot_api/index.js"(Y){"use strict";var H=L_();Y._doPlot=H._doPlot,Y.newPlot=H.newPlot,Y.restyle=H.restyle,Y.relayout=H.relayout,Y.redraw=H.redraw,Y.update=H.update,Y._guiRestyle=H._guiRestyle,Y._guiRelayout=H._guiRelayout,Y._guiUpdate=H._guiUpdate,Y._storeDirectGUIEdit=H._storeDirectGUIEdit,Y.react=H.react,Y.extendTraces=H.extendTraces,Y.prependTraces=H.prependTraces,Y.addTraces=H.addTraces,Y.deleteTraces=H.deleteTraces,Y.moveTraces=H.moveTraces,Y.purge=H.purge,Y.addFrames=H.addFrames,Y.deleteFrames=H.deleteFrames,Y.animate=H.animate,Y.setPlotConfig=H.setPlotConfig;var p=ny().getGraphDiv,x=C_().eraseActiveShape;Y.deleteActiveShape=function(E){return x(p(E))},Y.toImage=v2(),Y.validate=fE(),Y.downloadImage=p2();var S=dE();Y.makeTemplate=S.makeTemplate,Y.validateTemplate=S.validateTemplate}}),Qm=De({"src/traces/scatter/xy_defaults.js"(Y,H){"use strict";var p=ui(),x=Mo();H.exports=function(E,e,t,r){var o=r("x"),i=r("y"),n,a=x.getComponentMethod("calendars","handleTraceDefaults");if(a(E,e,["x","y"],t),o){var s=p.minRowLength(o);i?n=Math.min(s,p.minRowLength(i)):(n=s,r("y0"),r("dy"))}else{if(!i)return 0;n=p.minRowLength(i),r("x0"),r("dx")}return e._length=n,n}}}),pv=De({"src/traces/scatter/period_defaults.js"(Y,H){"use strict";var p=ui().dateTick0,x=zn(),S=x.ONEWEEK;function E(e,t){return e%S===0?p(t,1):p(t,0)}H.exports=function(t,r,o,i,n){if(n||(n={x:!0,y:!0}),n.x){var a=i("xperiod");a&&(i("xperiod0",E(a,r.xcalendar)),i("xperiodalignment"))}if(n.y){var s=i("yperiod");s&&(i("yperiod0",E(s,r.ycalendar)),i("yperiodalignment"))}}}}),pE=De({"src/traces/scatter/stack_defaults.js"(Y,H){"use strict";var p=["orientation","groupnorm","stackgaps"];H.exports=function(S,E,e,t){var r=e._scatterStackOpts,o=t("stackgroup");if(o){var i=E.xaxis+E.yaxis,n=r[i];n||(n=r[i]={});var a=n[o],s=!1;a?a.traces.push(E):(a=n[o]={traceIndices:[],traces:[E]},s=!0);for(var h={orientation:E.x&&!E.y?"h":"v"},c=0;c<p.length;c++){var m=p[c],d=m+"Found";if(!a[d]){var T=S[m]!==void 0,l=m==="orientation";if((T||s)&&(a[m]=t(m,h[m]),l&&(a.fillDflt=a[m]==="h"?"tonextx":"tonexty"),T&&(a[d]=!0,!s&&(delete a.traces[0][m],l))))for(var _=0;_<a.traces.length-1;_++){var w=a.traces[_];w._input.fill!==w.fill&&(w.fill=a.fillDflt)}}}return a}}}}),Od=De({"src/traces/scatter/marker_defaults.js"(Y,H){"use strict";var p=vo(),x=$h().hasColorscale,S=dh(),E=Hu();H.exports=function(t,r,o,i,n,a={}){var s=E.isBubble(t),h=(t.line||{}).color,c;if(h&&(o=h),n("marker.symbol"),n("marker.opacity",s?.7:1),n("marker.size"),a.noAngle||(n("marker.angle"),a.noAngleRef||n("marker.angleref"),a.noStandOff||n("marker.standoff")),n("marker.color",o),x(t,"marker")&&S(t,r,i,n,{prefix:"marker.",cLetter:"c"}),a.noSelect||(n("selected.marker.color"),n("unselected.marker.color"),n("selected.marker.size"),n("unselected.marker.size")),a.noLine||(h&&!Array.isArray(h)&&r.marker.color!==h?c=h:s?c=p.background:c=p.defaultLine,n("marker.line.color",c),x(t,"marker.line")&&S(t,r,i,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width",s?1:0),a.noLineDash||n("marker.line.dash")),s&&(n("marker.sizeref"),n("marker.sizemin"),n("marker.sizemode")),a.gradient){var m=n("marker.gradient.type");m!=="none"&&n("marker.gradient.color")}}}}),Wd=De({"src/traces/scatter/line_defaults.js"(Y,H){"use strict";var p=ui().isArrayOrTypedArray,x=$h().hasColorscale,S=dh();H.exports=function(e,t,r,o,i,n){n||(n={});var a=(e.marker||{}).color;if(a&&a._inputArray&&(a=a._inputArray),i("line.color",r),x(e,"line"))S(e,t,o,i,{prefix:"line.",cLetter:"c"});else{var s=(p(a)?!1:a)||r;i("line.color",s)}i("line.width"),n.noDash||i("line.dash"),n.backoff&&i("line.backoff")}}}),eg=De({"src/traces/scatter/line_shape_defaults.js"(Y,H){"use strict";H.exports=function(x,S,E){var e=E("line.shape");e==="spline"&&E("line.smoothing")}}}),Xd=De({"src/traces/scatter/text_defaults.js"(Y,H){"use strict";var p=ui();H.exports=function(x,S,E,e,t){t=t||{},e("textposition"),p.coerceFont(e,"textfont",t.font||E.font,t),t.noSelect||(e("selected.textfont.color"),e("unselected.textfont.color"))}}}),mv=De({"src/traces/scatter/fillcolor_defaults.js"(Y,H){"use strict";var p=vo(),x=ui().isArrayOrTypedArray;function S(E){for(var e=p.interpolate(E[0][1],E[1][1],.5),t=2;t<E.length;t++){var r=p.interpolate(E[t-1][1],E[t][1],.5);e=p.interpolate(e,r,E[t-1][0]/E[t][0])}return e}H.exports=function(e,t,r,o,i){i||(i={});var n=!1;if(t.marker){var a=t.marker.color,s=(t.marker.line||{}).color;a&&!x(a)?n=a:s&&!x(s)&&(n=s)}var h;if(i.moduleHasFillgradient){var c=o("fillgradient.type");if(c!=="none"){o("fillgradient.start"),o("fillgradient.stop");var m=o("fillgradient.colorscale");m&&(h=S(m))}}o("fillcolor",p.addOpacity((t.line||{}).color||n||h||r,.5))}}}),mE=De({"src/traces/scatter/defaults.js"(Y,H){"use strict";var p=ui(),x=Mo(),S=lf(),E=zv(),e=Hu(),t=Qm(),r=pv(),o=pE(),i=Od(),n=Wd(),a=eg(),s=Xd(),h=mv(),c=ui().coercePattern;H.exports=function(d,T,l,_){function w(f,R){return p.coerce(d,T,S,f,R)}var A=t(d,T,_,w);if(A||(T.visible=!1),!!T.visible){r(d,T,_,w),w("xhoverformat"),w("yhoverformat"),w("zorder");var M=o(d,T,_,w);_.scattermode==="group"&&T.orientation===void 0&&w("orientation","v");var g=!M&&A<E.PTS_LINESONLY?"lines+markers":"lines";w("text"),w("hovertext"),w("mode",g),e.hasMarkers(T)&&i(d,T,l,_,w,{gradient:!0}),e.hasLines(T)&&(n(d,T,l,_,w,{backoff:!0}),a(d,T,w),w("connectgaps"),w("line.simplify")),e.hasText(T)&&(w("texttemplate"),w("texttemplatefallback"),s(d,T,_,w));var b=[];(e.hasMarkers(T)||e.hasText(T))&&(w("cliponaxis"),w("marker.maxdisplayed"),b.push("points")),w("fill",M?M.fillDflt:"none"),T.fill!=="none"&&(h(d,T,l,w,{moduleHasFillgradient:!0}),e.hasLines(T)||a(d,T,w),c(w,"fillpattern",T.fillcolor,!1));var v=(T.line||{}).color,u=(T.marker||{}).color;(T.fill==="tonext"||T.fill==="toself")&&b.push("fills"),w("hoveron",b.join("+")||"points"),T.hoveron!=="fills"&&(w("hovertemplate"),w("hovertemplatefallback"));var y=x.getComponentMethod("errorbars","supplyDefaults");y(d,T,v||u||l,{axis:"y"}),y(d,T,v||u||l,{axis:"x",inherit:"y"}),p.coerceSelectionMarkerOpacity(T,w)}}}}),H0=De({"src/traces/scatter/grouping_defaults.js"(Y,H){"use strict";var p=V0().getAxisGroup;H.exports=function(S,E,e,t,r){var o=E.orientation,i=E[{v:"x",h:"y"}[o]+"axis"],n=p(e,i)+o,a=e._alignmentOpts||{},s=t("alignmentgroup"),h=a[n];h||(h=a[n]={});var c=h[s];c?c.traces.push(E):c=h[s]={traces:[E],alignmentIndex:Object.keys(h).length,offsetGroups:{}};var m=t("offsetgroup")||"",d=c.offsetGroups,T=d[m];E._offsetIndex=0,(r!=="group"||m)&&(T||(T=d[m]={offsetIndex:Object.keys(d).length}),E._offsetIndex=T.offsetIndex)}}}),m2=De({"src/traces/scatter/cross_trace_defaults.js"(Y,H){"use strict";var p=ui(),x=H0(),S=lf();H.exports=function(e,t){var r,o,i,n=t.scattermode;function a(d){return p.coerce(o._input,o,S,d)}if(t.scattermode==="group")for(i=0;i<e.length;i++)o=e[i],o.type==="scatter"&&(r=o._input,x(r,o,t,a,n));for(i=0;i<e.length;i++){var s=e[i];if(s.type==="scatter"){var h=s.fill;if(!(h==="none"||h==="toself")&&(s.opacity=void 0,h==="tonexty"||h==="tonextx"))for(var c=i-1;c>=0;c--){var m=e[c];if(m.type==="scatter"&&m.xaxis===s.xaxis&&m.yaxis===s.yaxis){m.opacity=void 0;break}}}}}}}),gE=De({"src/traces/scatter/layout_defaults.js"(Y,H){"use strict";var p=ui(),x=b_();H.exports=function(S,E){function e(r,o){return p.coerce(S,E,x,r,o)}var t=E.barmode==="group";E.scattermode==="group"&&e("scattergap",t?E.bargap:.2)}}}),gv=De({"src/plots/cartesian/align_period.js"(Y,H){"use strict";var p=vn(),x=ui(),S=x.dateTime2ms,E=x.incrementMonth,e=zn(),t=e.ONEAVGMONTH;H.exports=function(o,i,n,a){if(i.type!=="date")return{vals:a};var s=o[n+"periodalignment"];if(!s)return{vals:a};var h=o[n+"period"],c;if(p(h)){if(h=+h,h<=0)return{vals:a}}else if(typeof h=="string"&&h.charAt(0)==="M"){var m=+h.substring(1);if(m>0&&Math.round(m)===m)c=m;else return{vals:a}}for(var d=i.calendar,T=s==="start",l=s==="end",_=o[n+"period0"],w=S(_,d)||0,A=[],M=[],g=[],b=a.length,v=0;v<b;v++){var u=a[v],y,f,R;if(c){for(y=Math.round((u-w)/(c*t)),R=E(w,c*y,d);R>u;)R=E(R,-c,d);for(;R<=u;)R=E(R,c,d);f=E(R,-c,d)}else{for(y=Math.round((u-w)/h),R=w+y*h;R>u;)R-=h;for(;R<=u;)R+=h;f=R-h}A[v]=T?f:l?R:(f+R)/2,M[v]=f,g[v]=R}return{vals:A,starts:M,ends:g}}}}),Yd=De({"src/traces/scatter/colorscale_calc.js"(Y,H){"use strict";var p=$h().hasColorscale,x=Jh(),S=Hu();H.exports=function(e,t){S.hasLines(t)&&p(t,"line")&&x(e,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),S.hasMarkers(t)&&(p(t,"marker")&&x(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),p(t,"marker.line")&&x(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}}}),Fv=De({"src/traces/scatter/arrays_to_calcdata.js"(Y,H){"use strict";var p=ui();H.exports=function(S,E){for(var e=0;e<S.length;e++)S[e].i=e;p.mergeArray(E.text,S,"tx"),p.mergeArray(E.texttemplate,S,"txt"),p.mergeArray(E.hovertext,S,"htx"),p.mergeArray(E.customdata,S,"data"),p.mergeArray(E.textposition,S,"tp"),E.textfont&&(p.mergeArrayCastPositive(E.textfont.size,S,"ts"),p.mergeArray(E.textfont.color,S,"tc"),p.mergeArray(E.textfont.family,S,"tf"),p.mergeArray(E.textfont.weight,S,"tw"),p.mergeArray(E.textfont.style,S,"ty"),p.mergeArray(E.textfont.variant,S,"tv"),p.mergeArray(E.textfont.textcase,S,"tC"),p.mergeArray(E.textfont.lineposition,S,"tE"),p.mergeArray(E.textfont.shadow,S,"tS"));var t=E.marker;if(t){p.mergeArrayCastPositive(t.size,S,"ms"),p.mergeArrayCastPositive(t.opacity,S,"mo"),p.mergeArray(t.symbol,S,"mx"),p.mergeArray(t.angle,S,"ma"),p.mergeArray(t.standoff,S,"mf"),p.mergeArray(t.color,S,"mc");var r=t.line;t.line&&(p.mergeArray(r.color,S,"mlc"),p.mergeArrayCastPositive(r.width,S,"mlw"),p.mergeArray(r.dash,S,"mld"));var o=t.gradient;o&&o.type!=="none"&&(p.mergeArray(o.type,S,"mgt"),p.mergeArray(o.color,S,"mgc"))}}}}),Zd=De({"src/traces/scatter/calc_selection.js"(Y,H){"use strict";var p=ui();H.exports=function(S,E){p.isArrayOrTypedArray(E.selectedpoints)&&p.tagSelected(S,E)}}}),Kd=De({"src/traces/scatter/calc.js"(Y,H){"use strict";var p=vn(),x=ui(),S=us(),E=gv(),e=zn().BADNUM,t=Hu(),r=Yd(),o=Fv(),i=Zd();function n(d,T){var l=d._fullLayout,_=T._xA=S.getFromId(d,T.xaxis||"x","x"),w=T._yA=S.getFromId(d,T.yaxis||"y","y"),A=_.makeCalcdata(T,"x"),M=w.makeCalcdata(T,"y"),g=E(T,_,"x",A),b=E(T,w,"y",M),v=g.vals,u=b.vals,y=T._length,f=new Array(y),R=T.ids,L=m(T,l,_,w),z=!1,F,N,B,I,U,O;h(l,T);var X="x",J="y",se;if(L)x.pushUnique(L.traceIndices,T.index),F=L.orientation==="v",F?(J="s",se="x"):(X="s",se="y"),U=L.stackgaps==="interpolate";else{var le=s(T,y);a(d,T,_,w,v,u,le)}var ce=!!T.xperiodalignment,q=!!T.yperiodalignment;for(N=0;N<y;N++){var Z=f[N]={},ee=p(v[N]),V=p(u[N]);ee&&V?(Z[X]=v[N],Z[J]=u[N],ce&&(Z.orig_x=A[N],Z.xEnd=g.ends[N],Z.xStart=g.starts[N]),q&&(Z.orig_y=M[N],Z.yEnd=b.ends[N],Z.yStart=b.starts[N])):L&&(F?ee:V)?(Z[se]=F?v[N]:u[N],Z.gap=!0,U?(Z.s=e,z=!0):Z.s=0):Z[X]=Z[J]=e,R&&(Z.id=String(R[N]))}if(o(f,T),r(d,T),i(f,T),L){for(N=0;N<f.length;)f[N][se]===e?f.splice(N,1):N++;if(x.sort(f,function(Q,re){return Q[se]-re[se]||Q.i-re.i}),z){for(N=0;N<f.length-1&&f[N].gap;)N++;for(O=f[N].s,O||(O=f[N].s=0),B=0;B<N;B++)f[B].s=O;for(I=f.length-1;I>N&&f[I].gap;)I--;for(O=f[I].s,B=f.length-1;B>I;B--)f[B].s=O;for(;N<I;)if(N++,f[N].gap){for(B=N+1;f[B].gap;)B++;for(var oe=f[N-1][se],ie=f[N-1].s,j=(f[B].s-ie)/(f[B][se]-oe);N<B;)f[N].s=ie+(f[N][se]-oe)*j,N++}}}return f}function a(d,T,l,_,w,A,M){var g=T._length,b=d._fullLayout,v=l._id,u=_._id,y=b._firstScatter[c(T)]===T.uid,f=(m(T,b,l,_)||{}).orientation,R=T.fill;l._minDtick=0,_._minDtick=0;var L={padded:!0},z={padded:!0};M&&(L.ppad=z.ppad=M);var F=g<2||w[0]!==w[g-1]||A[0]!==A[g-1];F&&(R==="tozerox"||R==="tonextx"&&(y||f==="h"))?L.tozero=!0:!(T.error_y||{}).visible&&(R==="tonexty"||R==="tozeroy"||!t.hasMarkers(T)&&!t.hasText(T))&&(L.padded=!1,L.ppad=0),F&&(R==="tozeroy"||R==="tonexty"&&(y||f==="v"))?z.tozero=!0:(R==="tonextx"||R==="tozerox")&&(z.padded=!1),v&&(T._extremes[v]=S.findExtremes(l,w,L)),u&&(T._extremes[u]=S.findExtremes(_,A,z))}function s(d,T){if(t.hasMarkers(d)){var l=d.marker,_=1.6*(d.marker.sizeref||1),w;if(d.marker.sizemode==="area"?w=function(v){return Math.max(Math.sqrt((v||0)/_),3)}:w=function(v){return Math.max((v||0)/_,3)},x.isArrayOrTypedArray(l.size)){var A={type:"linear"};S.setConvert(A);for(var M=A.makeCalcdata(d.marker,"size"),g=new Array(T),b=0;b<T;b++)g[b]=w(M[b]);return g}else return w(l.size)}}function h(d,T){var l=c(T),_=d._firstScatter;_[l]||(_[l]=T.uid)}function c(d){var T=d.stackgroup;return d.xaxis+d.yaxis+d.type+(T?"-"+T:"")}function m(d,T,l,_){var w=d.stackgroup;if(w){var A=T._scatterStackOpts[l._id+_._id][w],M=A.orientation==="v"?_:l;if(M.type==="linear"||M.type==="log")return A}}H.exports={calc:n,calcMarkerSize:s,calcAxisExpansion:a,setFirstScatter:h,getStackOpts:m}}}),yE=De({"src/traces/bar/sieve.js"(Y,H){"use strict";H.exports=x;var p=ui().distinctVals;function x(S,E){this.traces=S,this.sepNegVal=E.sepNegVal,this.overlapNoMerge=E.overlapNoMerge;for(var e=1/0,t=E.posAxis._id.charAt(0),r=[],o=0;o<S.length;o++){for(var i=S[o],n=0;n<i.length;n++){var a=i[n],s=a.p;s===void 0&&(s=a[t]),s!==void 0&&r.push(s)}i[0]&&i[0].width1&&(e=Math.min(i[0].width1,e))}this.positions=r;var h=p(r);this.distinctPositions=h.vals,h.vals.length===1&&e!==1/0?this.minDiff=e:this.minDiff=Math.min(h.minDiff,e);var c=(E.posAxis||{}).type;(c==="category"||c==="multicategory")&&(this.minDiff=1),this.binWidth=this.minDiff,this.bins={}}x.prototype.put=function(E,e,t){var r=this.getLabel(E,e,t),o=this.bins[r]||0;return this.bins[r]=o+t,o},x.prototype.get=function(E,e,t){var r=this.getLabel(E,e,t);return this.bins[r]||0},x.prototype.getLabel=function(E,e,t){var r=t<0&&this.sepNegVal?"v":"^",o=this.overlapNoMerge?E:Math.round(E/this.binWidth);return r+o+"g"+e}}}),Yp=De({"src/traces/bar/constants.js"(Y,H){"use strict";H.exports={TEXTPAD:3,eventDataKeys:["value","label"]}}}),G0=De({"src/traces/bar/cross_trace_calc.js"(Y,H){"use strict";var p=vn(),{isArrayOrTypedArray:x}=ui(),{BADNUM:S}=zn(),E=Mo(),e=us(),{getAxisGroup:t}=V0(),r=yE(),{TEXTPAD:o}=Yp(),{LINE_SPACING:i}=rh(),{BR_TAG_ALL:n}=vu();function a(F,N){for(var B=N.xaxis,I=N.yaxis,U=F._fullLayout,O=F._fullData,X=F.calcdata,J=[],se=[],le=0;le<O.length;le++){var ce=O[le];if(ce.visible===!0&&E.traceIs(ce,"bar")&&ce.xaxis===B._id&&ce.yaxis===I._id&&(ce.orientation==="h"?J.push(X[le]):se.push(X[le]),ce._computePh))for(var q=F.calcdata[le],Z=0;Z<q.length;Z++)typeof q[Z].ph0=="function"&&(q[Z].ph0=q[Z].ph0()),typeof q[Z].ph1=="function"&&(q[Z].ph1=q[Z].ph1())}var ee={xCat:B.type==="category"||B.type==="multicategory",yCat:I.type==="category"||I.type==="multicategory",mode:U.barmode,norm:U.barnorm,gap:U.bargap,groupgap:U.bargroupgap};s(F,B,I,se,ee),s(F,I,B,J,ee)}function s(F,N,B,I,U){if(I.length){var O,X,J,se,le;switch(m(B,I),U.mode){case"overlay":d(F,N,B,I,U);break;case"group":for(O=[],X=[],J=0;J<I.length;J++)se=I[J],le=se[0].trace,le.offset===void 0?X.push(se):O.push(se);X.length&&T(F,N,B,X,U),O.length&&d(F,N,B,O,U);break;case"stack":case"relative":for(O=[],X=[],J=0;J<I.length;J++)se=I[J],le=se[0].trace,le.base===void 0?X.push(se):O.push(se);c(X),X.length&&l(F,N,B,X,U),O.length&&d(F,N,B,O,U);break}h(I),L(I,N)}}function h(F){var N,B,I,U,O,X,J;for(N=0;N<F.length;N++)B=F[N],I=B[0].trace,U=B[0].t,U.cornerradiusvalue===void 0&&(O=I.marker?I.marker.cornerradius:void 0,O!==void 0&&(X=p(O)?+O:+O.slice(0,-1),J=p(O)?"px":"%",U.cornerradiusvalue=X,U.cornerradiusform=J))}function c(F){if(!(F.length<2)){var N,B,I,U,O,X,J;for(N=0;N<F.length&&(B=F[N],I=B[0].trace,O=I.marker?I.marker.cornerradius:void 0,O===void 0);N++);if(O!==void 0)for(X=p(O)?+O:+O.slice(0,-1),J=p(O)?"px":"%",N=0;N<F.length;N++)B=F[N],U=B[0].t,U.cornerradiusvalue=X,U.cornerradiusform=J}}function m(F,N){var B,I;for(B=0;B<N.length;B++){var U=N[B],O=U[0].trace,X=O.type==="funnel"?O._base:O.base,J,se=O.orientation==="h"?O.xcalendar:O.ycalendar,le=F.type==="category"||F.type==="multicategory"?function(){return null}:F.d2c;if(x(X)){for(I=0;I<Math.min(X.length,U.length);I++)J=le(X[I],0,se),p(J)?(U[I].b=+J,U[I].hasB=1):U[I].b=0;for(;I<U.length;I++)U[I].b=0}else{J=le(X,0,se);var ce=p(J);for(J=ce?J:0,I=0;I<U.length;I++)U[I].b=J,ce&&(U[I].hasB=1)}}}function d(F,N,B,I,U){for(var O=0;O<I.length;O++){var X=I[O],J=new r([X],{posAxis:N,sepNegVal:!1,overlapNoMerge:!U.norm});_(F,N,J,U),U.norm?(v(J),y(B,J,U)):g(B,J)}}function T(F,N,B,I,U){var O=new r(I,{posAxis:N,sepNegVal:!1,overlapNoMerge:!U.norm});_(F,N,O,U),u(O,N),U.norm?(v(O),y(B,O,U)):g(B,O)}function l(F,N,B,I,U){var O=new r(I,{posAxis:N,sepNegVal:U.mode==="relative",overlapNoMerge:!(U.norm||U.mode==="stack"||U.mode==="relative")});_(F,N,O,U),b(B,O,U);for(var X=0;X<I.length;X++)for(var J=I[X],se=J[0].t.offsetindex,le=0;le<J.length;le++){var ce=J[le];if(ce.s!==S){var q=ce.b+ce.s===O.get(ce.p,se,ce.s);q&&(ce._outmost=!0)}}U.norm&&y(B,O,U)}function _(F,N,B,I){var U=F._fullLayout,O=B.positions,X=B.distinctPositions,J=B.minDiff,se=B.traces,le=se.length,ce=O.length!==X.length,q=J*(1-I.gap),Z,ee,V,oe;if(N._id==="angularaxis")Z=q,ee=Z*(1-(I.groupgap||0)),V=-ee/2;else{var ie=t(U,N._id)+se[0][0].trace.orientation;oe=U._alignmentOpts[ie]||{}}for(var j=0;j<le;j++){var Q=se[j],re=Q[0].trace;if(N._id!=="angularaxis"){var ue=oe[re.alignmentgroup]||{},_e=Object.keys(ue.offsetGroups||{}).length;_e?Z=q/_e:Z=ce?q/le:q,ee=Z*(1-(I.groupgap||0)),_e?V=((2*re._offsetIndex+1-_e)*Z-ee)/2:V=ce?((2*j+1-le)*Z-ee)/2:-ee/2}var we=Q[0].t;we.barwidth=ee,we.offsetindex=re._offsetIndex||0,we.poffset=V,we.bargroupwidth=q,we.bardelta=J}B.binWidth=se[0][0].t.barwidth/100,w(B),A(N,B),N._id==="angularaxis"?M(N,B):M(N,B,ce)}function w(F){var N=F.traces,B,I;for(B=0;B<N.length;B++){var U=N[B],O=U[0],X=O.trace,J=O.t,se=X._offset||X.offset,le=J.poffset,ce;if(x(se)){for(ce=Array.prototype.slice.call(se,0,U.length),I=0;I<ce.length;I++)p(ce[I])||(ce[I]=le);for(I=ce.length;I<U.length;I++)ce.push(le);J.poffset=ce}else se!==void 0&&(J.poffset=se);var q=X._width||X.width,Z=J.barwidth;if(x(q)){var ee=Array.prototype.slice.call(q,0,U.length);for(I=0;I<ee.length;I++)p(ee[I])||(ee[I]=Z);for(I=ee.length;I<U.length;I++)ee.push(Z);if(J.barwidth=ee,se===void 0){for(ce=[],I=0;I<U.length;I++)ce.push(le+(Z-ee[I])/2);J.poffset=ce}}else q!==void 0&&(J.barwidth=q,se===void 0&&(J.poffset=le+(Z-q)/2))}}function A(F,N){for(var B=N.traces,I=z(F),U=0;U<B.length;U++)for(var O=B[U],X=O[0].t,J=X.poffset,se=x(J),le=X.barwidth,ce=x(le),q=0;q<O.length;q++){var Z=O[q],ee=Z.w=ce?le[q]:le;Z.p===void 0&&(Z.p=Z[I],Z["orig_"+I]=Z[I]);var V=(se?J[q]:J)+ee/2;Z[I]=Z.p+V}}function M(F,N,B){var I=N.traces,U=N.minDiff,O=U/2;e.minDtick(F,N.minDiff,N.distinctPositions[0],B);for(var X=0;X<I.length;X++){var J=I[X],se=J[0],le=se.trace,ce=[],q,Z,ee,V;for(V=0;V<J.length;V++)q=J[V],Z=q.p-O,ee=q.p+O,ce.push(Z,ee);if(le.width||le.offset){var oe=se.t,ie=oe.poffset,j=oe.barwidth,Q=x(ie),re=x(j);for(V=0;V<J.length;V++){q=J[V];var ue=Q?ie[V]:ie,_e=re?j[V]:j;Z=q.p+ue,ee=Z+_e,ce.push(Z,ee)}}le._extremes[F._id]=e.findExtremes(F,ce,{padded:!1})}}function g(F,N){for(var B=N.traces,I=z(F),U=0;U<B.length;U++){for(var O=B[U],X=O[0].trace,J=X.type==="scatter",se=X.orientation==="v",le=[],ce=!1,q=0;q<O.length;q++){var Z=O[q],ee=J?0:Z.b,V=J?se?Z.y:Z.x:ee+Z.s;Z[I]=V,le.push(V),Z.hasB&&le.push(ee),(!Z.hasB||!Z.b)&&(ce=!0)}let{ppadminus:oe,ppadplus:ie}=f(X,O);X._extremes[F._id]=e.findExtremes(F,le,{tozero:ce,padded:!0,ppadplus:ie,ppadminus:oe})}}function b(F,N,B){var I=z(F),U=N.traces,O,X,J,se,le,ce,q;for(se=0;se<U.length;se++)if(O=U[se],X=O[0].trace,X.type==="funnel")for(q=O[0].t.offsetindex,le=0;le<O.length;le++)ce=O[le],ce.s!==S&&N.put(ce.p,q,-.5*ce.s);for(se=0;se<U.length;se++){O=U[se],X=O[0].trace,J=X.type==="funnel",q=X.type==="barpolar"?0:O[0].t.offsetindex;var Z=[];for(le=0;le<O.length;le++)if(ce=O[le],ce.s!==S){var ee;J?ee=ce.s:ee=ce.s+ce.b;var V=N.put(ce.p,q,ee),oe=V+ee;ce.b=V,ce[I]=oe,B.norm||(Z.push(oe),ce.hasB&&Z.push(V))}if(!B.norm){let{ppadminus:ie,ppadplus:j}=f(X,O);X._extremes[F._id]=e.findExtremes(F,Z,{tozero:!0,padded:!0,ppadplus:j,ppadminus:ie})}}}function v(F){for(var N=F.traces,B=0;B<N.length;B++)for(var I=N[B],U=I[0].t.offsetindex,O=0;O<I.length;O++){var X=I[O];X.s!==S&&F.put(X.p,U,X.b+X.s)}}function u(F,N){for(var B=F.traces,I=0;I<B.length;I++){var U=B[I],O=U[0].trace,X=U[0].t.offsetindex;if(O.base===void 0)for(var J=new r([U],{posAxis:N,sepNegVal:!0,overlapNoMerge:!0}),se=0;se<U.length;se++){var le=U[se];if(le.p!==S){var ce=J.put(le.p,X,le.b+le.s);ce&&(le.b=ce)}}}}function y(F,N,B){var I=N.traces,U=z(F),O=B.norm==="fraction"?1:100,X=O/1e9,J=F.l2c(F.c2l(0)),se=B.mode==="stack"?O:J;function le(we){return p(F.c2l(we))&&(we<J-X||we>se+X||!p(J))}for(var ce=0;ce<I.length;ce++){for(var q=I[ce],Z=q[0].t.offsetindex,ee=q[0].trace,V=[],oe=!1,ie=!1,j=0;j<q.length;j++){var Q=q[j];if(Q.s!==S){var re=Math.abs(O/N.get(Q.p,Z,Q.s));Q.b*=re,Q.s*=re;var ue=Q.b,_e=ue+Q.s;Q[U]=_e,V.push(_e),ie=ie||le(_e),Q.hasB&&(V.push(ue),ie=ie||le(ue)),(!Q.hasB||!Q.b)&&(oe=!0)}}let{ppadminus:we,ppadplus:Re}=f(ee,q);ee._extremes[F._id]=e.findExtremes(F,V,{tozero:oe,padded:ie,ppadplus:Re,ppadminus:we})}}function f(F,N){if(F.orientation==="v"&&(F.text||F.texttemplate)&&F.textposition==="outside"&&(F.textangle==="auto"||F.textangle===0)){let I=function(O){return!O||typeof O!="string"?0:(O.match(n)||[]).length+1};var B;F.texttemplate?B=I(F.texttemplate):B=x(F.text)?Math.max(...F.text.map(O=>I(O))):I(F.text);let U=F.outsidetextfont.size*i*B+o;return{ppadplus:N.some(O=>O.s<0)?U:0,ppadminus:N.some(O=>O.s>=0)?U:0}}return{ppadplus:void 0,ppadminus:void 0}}function R(F,N,B,I){for(var U=z(I),O=0;O<F.length;O++)for(var X=F[O],J=0;J<X.length;J++){var se=X[J],le=se[U];se._sMin=N[le],se._sMax=B[le]}}function L(F,N){var B=z(N),I={},U,O,X,J=1/0,se=-1/0;for(U=0;U<F.length;U++)for(X=F[U],O=0;O<X.length;O++){var le=X[O].p;p(le)&&(J=Math.min(J,le),se=Math.max(se,le))}var ce=1e4/(se-J),q=I.round=function(ze){return String(Math.round(ce*(ze-J)))},Z={},ee={},V=F.some(function(ze){var Xe=ze[0].trace;return"marker"in Xe&&Xe.marker.cornerradius});for(U=0;U<F.length;U++){X=F[U],X[0].t.extents=I;var oe=X[0].t.poffset,ie=x(oe);for(O=0;O<X.length;O++){var j=X[O],Q=j[B]-j.w/2;if(p(Q)){var re=j[B]+j.w/2,ue=q(j.p);I[ue]?I[ue]=[Math.min(Q,I[ue][0]),Math.max(re,I[ue][1])]:I[ue]=[Q,re]}if(j.p0=j.p+(ie?oe[O]:oe),j.p1=j.p0+j.w,j.s0=j.b,j.s1=j.s0+j.s,V){var _e=Math.min(j.s0,j.s1)||0,we=Math.max(j.s0,j.s1)||0,Re=j[B];Z[Re]=Re in Z?Math.min(Z[Re],_e):_e,ee[Re]=Re in ee?Math.max(ee[Re],we):we}}}V&&R(F,Z,ee,N)}function z(F){return F._id.charAt(0)}H.exports={crossTraceCalc:a,setGroupPositions:s}}}),_E=De({"src/traces/scatter/cross_trace_calc.js"(Y,H){"use strict";var p=Kd(),x=G0().setGroupPositions;function S(t,r){for(var o=r.xaxis,i=r.yaxis,n=t._fullLayout,a=t._fullData,s=t.calcdata,h=[],c=[],m=0;m<a.length;m++){var d=a[m];d.visible===!0&&d.type==="scatter"&&d.xaxis===o._id&&d.yaxis===i._id&&(d.orientation==="h"?h.push(s[m]):d.orientation==="v"&&c.push(s[m]))}var T={mode:n.scattermode,gap:n.scattergap};x(t,o,i,c,T),x(t,i,o,h,T)}H.exports=function(r,o){r._fullLayout.scattermode==="group"&&S(r,o);var i=o.xaxis,n=o.yaxis,a=i._id+n._id,s=r._fullLayout._scatterStackOpts[a];if(s){var h=r.calcdata,c,m,d,T,l,_,w,A,M,g,b,v,u,y,f;for(var R in s){g=s[R];var L=g.traceIndices;if(L.length){for(b=g.stackgaps==="interpolate",v=g.groupnorm,g.orientation==="v"?(u="x",y="y"):(u="y",y="x"),f=new Array(L.length),c=0;c<f.length;c++)f[c]=!1;_=h[L[0]];var z=new Array(_.length);for(c=0;c<_.length;c++)z[c]=_[c][u];for(c=1;c<L.length;c++){for(l=h[L[c]],m=d=0;m<l.length;m++){for(w=l[m][u];w>z[d]&&d<z.length;d++)E(l,m,z[d],c,f,b,u),m++;if(w!==z[d]){for(T=0;T<c;T++)E(h[L[T]],d,w,T,f,b,u);z.splice(d,0,w)}d++}for(;d<z.length;d++)E(l,m,z[d],c,f,b,u),m++}var F=z.length;for(m=0;m<_.length;m++){for(A=_[m][y]=_[m].s,c=1;c<L.length;c++)l=h[L[c]],l[0].trace._rawLength=l[0].trace._length,l[0].trace._length=F,A+=l[m].s,l[m][y]=A;if(v)for(M=(v==="fraction"?A:A/100)||1,c=0;c<L.length;c++){var N=h[L[c]][m];N[y]/=M,N.sNorm=N.s/M}}for(c=0;c<L.length;c++){l=h[L[c]];var B=l[0].trace,I=p.calcMarkerSize(B,B._rawLength),U=Array.isArray(I);if(I&&f[c]||U){var O=I;for(I=new Array(F),m=0;m<F;m++)I[m]=l[m].gap?0:U?O[l[m].i]:O}var X=new Array(F),J=new Array(F);for(m=0;m<F;m++)X[m]=l[m].x,J[m]=l[m].y;p.calcAxisExpansion(r,B,i,n,X,J,I),l[0].t.orientation=g.orientation}}}}};function E(t,r,o,i,n,a,s){n[i]=!0;var h={i:null,gap:!0,s:0};if(h[s]=o,t.splice(r,0,h),r&&o===t[r-1][s]){var c=t[r-1];h.s=c.s,h.i=c.i,h.gap=c.gap}else a&&(h.s=e(t,r,o,s));r||(t[0].t=t[1].t,t[0].trace=t[1].trace,delete t[1].t,delete t[1].trace)}function e(t,r,o,i){var n=t[r-1],a=t[r+1];return a?n?n.s+(a.s-n.s)*(o-n[i])/(a[i]-n[i]):a.s:n.s}}}),g2=De({"src/traces/scatter/line_points.js"(Y,H){"use strict";var p=ys(),x=zn(),S=x.BADNUM,E=x.LOG_CLIP,e=E+.5,t=E-.5,r=ui(),o=r.segmentsIntersect,i=r.constrain,n=zv();H.exports=function(s,h){var c=h.trace||{},m=h.xaxis,d=h.yaxis,T=m.type==="log",l=d.type==="log",_=m._length,w=d._length,A=h.backoff,M=c.marker,g=h.connectGaps,b=h.baseTolerance,v=h.shape,u=v==="linear",y=c.fill&&c.fill!=="none",f=[],R=n.minTolerance,L=s.length,z=new Array(L),F=0,N,B,I,U,O,X,J,se,le,ce,q,Z,ee,V,oe,ie;function j(lt){var gt=s[lt];if(!gt)return!1;var kt=h.linearized?m.l2p(gt.x):m.c2p(gt.x),nr=h.linearized?d.l2p(gt.y):d.c2p(gt.y);if(kt===S){if(T&&(kt=m.c2p(gt.x,!0)),kt===S)return!1;l&&nr===S&&(kt*=Math.abs(m._m*w*(m._m>0?e:t)/(d._m*_*(d._m>0?e:t)))),kt*=1e3}if(nr===S){if(l&&(nr=d.c2p(gt.y,!0)),nr===S)return!1;nr*=1e3}return[kt,nr]}function Q(lt,gt,kt,nr){var ir=kt-lt,tr=nr-gt,Ir=.5-lt,vi=.5-gt,Vi=ir*ir+tr*tr,Ui=ir*Ir+tr*vi;if(Ui>0&&Ui<Vi){var Ki=Ir*tr-vi*ir;if(Ki*Ki<Vi)return!0}}var re,ue;function _e(lt,gt){var kt=lt[0]/_,nr=lt[1]/w,ir=Math.max(0,-kt,kt-1,-nr,nr-1);return ir&&re!==void 0&&Q(kt,nr,re,ue)&&(ir=0),ir&&gt&&Q(kt,nr,gt[0]/_,gt[1]/w)&&(ir=0),(1+n.toleranceGrowth*ir)*b}function we(lt,gt){var kt=lt[0]-gt[0],nr=lt[1]-gt[1];return Math.sqrt(kt*kt+nr*nr)}var Re=n.maxScreensAway,ze=-_*Re,Xe=_*(1+Re),tt=-w*Re,it=w*(1+Re),et=[[ze,tt,Xe,tt],[Xe,tt,Xe,it],[Xe,it,ze,it],[ze,it,ze,tt]],nt,Ae,me,fe,Be,Qe;function at(lt,gt){for(var kt=[],nr=0,ir=0;ir<4;ir++){var tr=et[ir],Ir=o(lt[0],lt[1],gt[0],gt[1],tr[0],tr[1],tr[2],tr[3]);Ir&&(!nr||Math.abs(Ir.x-kt[0][0])>1||Math.abs(Ir.y-kt[0][1])>1)&&(Ir=[Ir.x,Ir.y],nr&&we(Ir,lt)<we(kt[0],lt)?kt.unshift(Ir):kt.push(Ir),nr++)}return kt}function $e(lt){if(lt[0]<ze||lt[0]>Xe||lt[1]<tt||lt[1]>it)return[i(lt[0],ze,Xe),i(lt[1],tt,it)]}function It(lt,gt){if(lt[0]===gt[0]&&(lt[0]===ze||lt[0]===Xe)||lt[1]===gt[1]&&(lt[1]===tt||lt[1]===it))return!0}function Pt(lt,gt){var kt=[],nr=$e(lt),ir=$e(gt);return nr&&ir&&It(nr,ir)||(nr&&kt.push(nr),ir&&kt.push(ir)),kt}function Vt(lt,gt,kt){return function(nr,ir){var tr=$e(nr),Ir=$e(ir),vi=[];if(tr&&Ir&&It(tr,Ir))return vi;tr&&vi.push(tr),Ir&&vi.push(Ir);var Vi=2*r.constrain((nr[lt]+ir[lt])/2,gt,kt)-((tr||nr)[lt]+(Ir||ir)[lt]);if(Vi){var Ui;tr&&Ir?Ui=Vi>0==tr[lt]>Ir[lt]?tr:Ir:Ui=tr||Ir,Ui[lt]+=Vi}return vi}}var Wt;v==="linear"||v==="spline"?Wt=at:v==="hv"||v==="vh"?Wt=Pt:v==="hvh"?Wt=Vt(0,ze,Xe):v==="vhv"&&(Wt=Vt(1,tt,it));function Cr(lt,gt){var kt=gt[0]-lt[0],nr=(gt[1]-lt[1])/kt,ir=(lt[1]*gt[0]-gt[1]*lt[0])/kt;return ir>0?[nr>0?ze:Xe,it]:[nr>0?Xe:ze,tt]}function yr(lt){var gt=lt[0],kt=lt[1],nr=gt===z[F-1][0],ir=kt===z[F-1][1];if(!(nr&&ir))if(F>1){var tr=gt===z[F-2][0],Ir=kt===z[F-2][1];nr&&(gt===ze||gt===Xe)&&tr?Ir?F--:z[F-1]=lt:ir&&(kt===tt||kt===it)&&Ir?tr?F--:z[F-1]=lt:z[F++]=lt}else z[F++]=lt}function qr(lt){z[F-1][0]!==lt[0]&&z[F-1][1]!==lt[1]&&yr([me,fe]),yr(lt),Be=null,me=fe=0}var Mr=r.isArrayOrTypedArray(M);function Dr(lt){if(lt&&A&&(lt.i=N,lt.d=s,lt.trace=c,lt.marker=Mr?M[lt.i]:M,lt.backoff=A),re=lt[0]/_,ue=lt[1]/w,nt=lt[0]<ze?ze:lt[0]>Xe?Xe:0,Ae=lt[1]<tt?tt:lt[1]>it?it:0,nt||Ae){if(!F)z[F++]=[nt||lt[0],Ae||lt[1]];else if(Be){var gt=Wt(Be,lt);gt.length>1&&(qr(gt[0]),z[F++]=gt[1])}else Qe=Wt(z[F-1],lt)[0],z[F++]=Qe;var kt=z[F-1];nt&&Ae&&(kt[0]!==nt||kt[1]!==Ae)?(Be&&(me!==nt&&fe!==Ae?yr(me&&fe?Cr(Be,lt):[me||nt,fe||Ae]):me&&fe&&yr([me,fe])),yr([nt,Ae])):me-nt&&fe-Ae&&yr([nt||me,Ae||fe]),Be=lt,me=nt,fe=Ae}else Be&&qr(Wt(Be,lt)[0]),z[F++]=lt}for(N=0;N<L;N++)if(B=j(N),!!B){for(F=0,Be=null,Dr(B),N++;N<L;N++){if(U=j(N),!U){if(g)continue;break}if(!u||!h.simplify){Dr(U);continue}var xt=j(N+1);if(ce=we(U,B),!(!(y&&(F===0||F===L-1))&&ce<_e(U,xt)*R)){for(se=[(U[0]-B[0])/ce,(U[1]-B[1])/ce],O=B,q=ce,Z=V=oe=0,J=!1,I=U,N++;N<s.length;N++){if(X=xt,xt=j(N+1),!X){if(g)continue;break}if(le=[X[0]-B[0],X[1]-B[1]],ie=le[0]*se[1]-le[1]*se[0],V=Math.min(V,ie),oe=Math.max(oe,ie),oe-V>_e(X,xt))break;I=X,ee=le[0]*se[0]+le[1]*se[1],ee>q?(q=ee,U=X,J=!1):ee<Z&&(Z=ee,O=X,J=!0)}if(J?(Dr(U),I!==O&&Dr(O)):(O!==B&&Dr(O),I!==U&&Dr(U)),Dr(I),N>=s.length||!X)break;Dr(X),B=X}}Be&&yr([me||Be[0],fe||Be[1]]),f.push(z.slice(0,F))}var Ne=v.slice(v.length-1);if(A&&Ne!=="h"&&Ne!=="v"){for(var Ye=!1,be=-1,Ie=[],qe=0;qe<f.length;qe++)for(var ke=0;ke<f[qe].length-1;ke++){var Me=f[qe][ke],Le=f[qe][ke+1],ut=p.applyBackoff(Le,Me);(ut[0]!==Le[0]||ut[1]!==Le[1])&&(Ye=!0),Ie[be+1]||(be++,Ie[be]=[Me,[ut[0],ut[1]]])}return Ye?Ie:f}return f}}}),y2=De({"src/traces/scatter/link_traces.js"(Y,H){"use strict";var p={tonextx:1,tonexty:1,tonext:1};H.exports=function(S,E,e){var t,r,o,i,n,a={},s=!1,h=-1,c=0,m=-1;for(r=0;r<e.length;r++)t=e[r][0].trace,o=t.stackgroup||"",o?o in a?n=a[o]:(n=a[o]=c,c++):t.fill in p&&m>=0?n=m:(n=m=c,c++),n<h&&(s=!0),t._groupIndex=h=n;var d=e.slice();s&&d.sort(function(l,_){var w=l[0].trace,A=_[0].trace;return w._groupIndex-A._groupIndex||w.index-A.index});var T={};for(r=0;r<d.length;r++)t=d[r][0].trace,o=t.stackgroup||"",t.visible===!0?(t._nexttrace=null,t.fill in p&&(i=T[o],t._prevtrace=i||null,i&&(i._nexttrace=t)),t._ownfill=t.fill&&(t.fill.slice(0,6)==="tozero"||t.fill==="toself"||t.fill.slice(0,2)==="to"&&!t._prevtrace),T[o]=t):t._prevtrace=t._nexttrace=t._ownfill=null;return d}}}),tg=De({"src/traces/scatter/plot.js"(Y,H){"use strict";var p=za(),x=Mo(),S=ui(),E=S.ensureSingle,e=S.identity,t=ys(),r=Hu(),o=g2(),i=y2(),n=vy().tester;H.exports=function(m,d,T,l,_,w){var A,M,g=!_,b=!!_&&_.duration>0,v=i(m,d,T);if(A=l.selectAll("g.trace").data(v,function(y){return y[0].trace.uid}),A.enter().append("g").attr("class",function(y){return"trace scatter trace"+y[0].trace.uid}).style("stroke-miterlimit",2),A.order(),a(m,A,d),b){w&&(M=w());var u=p.transition().duration(_.duration).ease(_.easing).each("end",function(){M&&M()}).each("interrupt",function(){M&&M()});u.each(function(){l.selectAll("g.trace").each(function(y,f){s(m,f,d,y,v,this,_)})})}else A.each(function(y,f){s(m,f,d,y,v,this,_)});g&&A.exit().remove(),l.selectAll("path:not([d])").remove()};function a(c,m,d){m.each(function(T){var l=E(p.select(this),"g","fills");t.setClipUrl(l,d.layerClipId,c);var _=T[0].trace;_._ownFill=null,_._nextFill=null;var w=[];_._ownfill&&w.push("_ownFill"),_._nexttrace&&w.push("_nextFill");var A=l.selectAll("g").data(w,e);A.enter().append("g"),A.exit().remove(),A.order().each(function(M){_[M]=E(p.select(this),"path","js-fill")})})}function s(c,m,d,T,l,_,w){var A=c._context.staticPlot,M;h(c,m,d,T,l);var g=!!w&&w.duration>0;function b(yr){return g?yr.transition():yr}var v=d.xaxis,u=d.yaxis,y=T[0].trace,f=y.line,R=p.select(_),L=E(R,"g","errorbars"),z=E(R,"g","lines"),F=E(R,"g","points"),N=E(R,"g","text");if(x.getComponentMethod("errorbars","plot")(c,L,d,w),y.visible!==!0)return;b(R).style("opacity",y.opacity);var B,I,U=y.fill.charAt(y.fill.length-1);U!=="x"&&U!=="y"&&(U="");var O,X;U==="y"?(O=1,X=u.c2p(0,!0)):U==="x"&&(O=0,X=v.c2p(0,!0)),T[0][d.isRangePlot?"nodeRangePlot3":"node3"]=R;var J="",se=[],le=y._prevtrace,ce=null,q=null;le&&(J=le._prevRevpath||"",I=le._nextFill,se=le._ownPolygons,ce=le._fillsegments,q=le._fillElement);var Z,ee,V="",oe="",ie,j,Q,re,ue,_e,we=[];y._polygons=[];var Re=[],ze=[],Xe=S.noop;if(B=y._ownFill,r.hasLines(y)||y.fill!=="none"){I&&I.datum(T),["hv","vh","hvh","vhv"].indexOf(f.shape)!==-1?(ie=t.steps(f.shape),j=t.steps(f.shape.split("").reverse().join(""))):f.shape==="spline"?ie=j=function(yr){var qr=yr[yr.length-1];return yr.length>1&&yr[0][0]===qr[0]&&yr[0][1]===qr[1]?t.smoothclosed(yr.slice(1),f.smoothing):t.smoothopen(yr,f.smoothing)}:ie=j=function(yr){return"M"+yr.join("L")},Q=function(yr){return j(yr.reverse())},ze=o(T,{xaxis:v,yaxis:u,trace:y,connectGaps:y.connectgaps,baseTolerance:Math.max(f.width||1,3)/4,shape:f.shape,backoff:f.backoff,simplify:f.simplify,fill:y.fill}),Re=new Array(ze.length);var tt=0;for(M=0;M<ze.length;M++){var it,et=ze[M];!it||!U?(it=et.slice(),Re[tt]=it,tt++):it.push.apply(it,et)}y._fillElement=null,y._fillExclusionElement=q,y._fillsegments=Re.slice(0,tt),Re=y._fillsegments,ze.length&&(re=ze[0][0].slice(),ue=ze[ze.length-1],_e=ue[ue.length-1].slice()),Xe=function(yr){return function(qr){if(Z=ie(qr),ee=Q(qr),V?U?(V+="L"+Z.slice(1),oe=ee+("L"+oe.slice(1))):(V+="Z"+Z,oe=ee+"Z"+oe):(V=Z,oe=ee),r.hasLines(y)){var Mr=p.select(this);if(Mr.datum(T),yr)b(Mr.style("opacity",0).attr("d",Z).call(t.lineGroupStyle)).style("opacity",1);else{var Dr=b(Mr);Dr.attr("d",Z),t.singleLineStyle(T,Dr)}}}}}var nt=z.selectAll(".js-line").data(ze);b(nt.exit()).style("opacity",0).remove(),nt.each(Xe(!1)),nt.enter().append("path").classed("js-line",!0).style("vector-effect",A?"none":"non-scaling-stroke").call(t.lineGroupStyle).each(Xe(!0)),t.setClipUrl(nt,d.layerClipId,c);function Ae(yr){b(yr).attr("d","M0,0Z")}var me=function(){var yr=new Array(Re.length);for(M=0;M<Re.length;M++)yr[M]=n(Re[M]);return yr},fe=function(yr){var qr,Mr;if(!yr||yr.length===0)for(qr=new Array(Re.length),Mr=0;Mr<Re.length;Mr++){var Dr=Re[Mr][0].slice(),xt=Re[Mr][Re[Mr].length-1].slice();Dr[O]=xt[O]=X;var Ne=[xt,Dr],Ye=Ne.concat(Re[Mr]);qr[Mr]=n(Ye)}else{for(qr=new Array(yr.length-1+Re.length),Mr=0;Mr<yr.length-1;Mr++)qr[Mr]=n(yr[Mr]);var be=yr[yr.length-1].slice();for(be.reverse(),Mr=0;Mr<Re.length;Mr++)qr[yr.length-1+Mr]=n(Re[Mr].concat(be))}return qr};ze.length?(B?(B.datum(T),re&&_e&&(U?(re[O]=_e[O]=X,b(B).attr("d","M"+_e+"L"+re+"L"+V.slice(1)).call(t.singleFillStyle,c),we=fe(null)):(b(B).attr("d",V+"Z").call(t.singleFillStyle,c),we=me())),y._polygons=we,y._fillElement=B):I&&(y.fill.slice(0,6)==="tonext"&&V&&J?(y.fill==="tonext"?(b(I).attr("d",V+"Z"+J+"Z").call(t.singleFillStyle,c),we=me(),y._polygons=we.concat(se)):(b(I).attr("d",V+"L"+J.slice(1)+"Z").call(t.singleFillStyle,c),we=fe(ce),y._polygons=we),y._fillElement=I):Ae(I)),y._prevRevpath=oe):(B?Ae(B):I&&Ae(I),y._prevRevpath=null),y._ownPolygons=we;function Be(yr){return yr.filter(function(qr){return!qr.gap&&qr.vis})}function Qe(yr){return yr.filter(function(qr){return qr.vis})}function at(yr){return yr.filter(function(qr){return!qr.gap})}function $e(yr){return yr.id}function It(yr){if(yr.ids)return $e}function Pt(){return!1}function Vt(yr,qr,Mr){var Dr,xt,Ne,Ye=Mr[0].trace,be=r.hasMarkers(Ye),Ie=r.hasText(Ye),qe=It(Ye),ke=Pt,Me=Pt;if(be||Ie){var Le=e,ut=Ye.stackgroup,lt=ut&&c._fullLayout._scatterStackOpts[v._id+u._id][ut].stackgaps==="infer zero";Ye.marker.maxdisplayed||Ye._needsCull?Le=lt?Qe:Be:ut&&!lt&&(Le=at),be&&(ke=Le),Ie&&(Me=Le)}xt=yr.selectAll("path.point"),Dr=xt.data(ke,qe);var gt=Dr.enter().append("path").classed("point",!0);g&&gt.call(t.pointStyle,Ye,c).call(t.translatePoints,v,u).style("opacity",0).transition().style("opacity",1),Dr.order();var kt;be&&(kt=t.makePointStyleFns(Ye)),Dr.each(function(nr){var ir=p.select(this),tr=b(ir);Ne=t.translatePoint(nr,tr,v,u),Ne?(t.singlePointStyle(nr,tr,Ye,kt,c),d.layerClipId&&t.hideOutsideRangePoint(nr,tr,v,u,Ye.xcalendar,Ye.ycalendar),Ye.customdata&&ir.classed("plotly-customdata",nr.data!==null&&nr.data!==void 0)):tr.remove()}),g?Dr.exit().transition().style("opacity",0).remove():Dr.exit().remove(),xt=qr.selectAll("g"),Dr=xt.data(Me,qe),Dr.enter().append("g").classed("textpoint",!0).append("text"),Dr.order(),Dr.each(function(nr){var ir=p.select(this),tr=b(ir.select("text"));Ne=t.translatePoint(nr,tr,v,u),Ne?d.layerClipId&&t.hideOutsideRangePoint(nr,ir,v,u,Ye.xcalendar,Ye.ycalendar):ir.remove()}),Dr.selectAll("text").call(t.textPointStyle,Ye,c).each(function(nr){var ir=v.c2p(nr.x),tr=u.c2p(nr.y);p.select(this).selectAll("tspan.line").each(function(){b(p.select(this)).attr({x:ir,y:tr})})}),Dr.exit().remove()}F.datum(T),N.datum(T),Vt(F,N,T);var Wt=y.cliponaxis===!1,Cr=Wt?null:d.layerClipId;t.setClipUrl(F,Cr,c),t.setClipUrl(N,Cr,c)}function h(c,m,d,T,l){var _=d.xaxis,w=d.yaxis,A=p.extent(S.simpleMap(_.range,_.r2c)),M=p.extent(S.simpleMap(w.range,w.r2c)),g=T[0].trace;if(r.hasMarkers(g)){var b=g.marker.maxdisplayed;if(b!==0){var v=T.filter(function(R){return R.x>=A[0]&&R.x<=A[1]&&R.y>=M[0]&&R.y<=M[1]}),u=Math.ceil(v.length/b),y=0;l.forEach(function(R,L){var z=R[0].trace;r.hasMarkers(z)&&z.marker.maxdisplayed>0&&L<m&&y++});var f=Math.round(y*u/3+Math.floor(y/3)*u/7.1);T.forEach(function(R){delete R.vis}),v.forEach(function(R,L){Math.round((L+f)%u)===0&&(R.vis=!0)})}}}}}),qh=De({"src/traces/scatter/marker_colorbar.js"(Y,H){"use strict";H.exports={container:"marker",min:"cmin",max:"cmax"}}}),R_=De({"src/traces/scatter/format_labels.js"(Y,H){"use strict";var p=us();H.exports=function(S,E,e){var t={},r={_fullLayout:e},o=p.getFromTrace(r,E,"x"),i=p.getFromTrace(r,E,"y"),n=S.orig_x;n===void 0&&(n=S.x);var a=S.orig_y;return a===void 0&&(a=S.y),t.xLabel=p.tickText(o,o.c2l(n),!0).text,t.yLabel=p.tickText(i,i.c2l(a),!0).text,t}}}),Sd=De({"src/traces/scatter/style.js"(Y,H){"use strict";var p=za(),x=ys(),S=Mo();function E(o){var i=p.select(o).selectAll("g.trace.scatter");i.style("opacity",function(n){return n[0].trace.opacity}),i.selectAll("g.points").each(function(n){var a=p.select(this),s=n.trace||n[0].trace;e(a,s,o)}),i.selectAll("g.text").each(function(n){var a=p.select(this),s=n.trace||n[0].trace;t(a,s,o)}),i.selectAll("g.trace path.js-line").call(x.lineGroupStyle),i.selectAll("g.trace path.js-fill").call(x.fillGroupStyle,o,!1),S.getComponentMethod("errorbars","style")(i)}function e(o,i,n){x.pointStyle(o.selectAll("path.point"),i,n)}function t(o,i,n){x.textPointStyle(o.selectAll("text"),i,n)}function r(o,i,n){var a=i[0].trace;a.selectedpoints?(x.selectedPointStyle(n.selectAll("path.point"),a),x.selectedTextStyle(n.selectAll("text"),a)):(e(n,a,o),t(n,a,o))}H.exports={style:E,stylePoints:e,styleText:t,styleOnSelect:r}}}),rg=De({"src/traces/scatter/get_trace_color.js"(Y,H){"use strict";var p=vo(),x=Hu();H.exports=function(E,e){var t,r;if(E.mode==="lines")return t=E.line.color,t&&p.opacity(t)?t:E.fillcolor;if(E.mode==="none")return E.fill?E.fillcolor:"";var o=e.mcc||(E.marker||{}).color,i=e.mlcc||((E.marker||{}).line||{}).color;return r=o&&p.opacity(o)?o:i&&p.opacity(i)&&(e.mlw||((E.marker||{}).line||{}).width)?i:"",r?p.opacity(r)<.3?p.addOpacity(r,.3):r:(t=(E.line||{}).color,t&&p.opacity(t)&&x.hasLines(E)&&E.line.width?t:E.fillcolor)}}}),ig=De({"src/traces/scatter/hover.js"(Y,H){"use strict";var p=ui(),x=sf(),S=Mo(),E=rg(),e=vo(),t=p.fillText;H.exports=function(o,i,n,a){var s=o.cd,h=s[0].trace,c=o.xa,m=o.ya,d=c.c2p(i),T=m.c2p(n),l=[d,T],_=h.hoveron||"",w=h.mode.indexOf("markers")!==-1?3:.5,A=!!h.xperiodalignment,M=!!h.yperiodalignment;if(_.indexOf("points")!==-1){var g=function(se){if(A){var le=c.c2p(se.xStart),ce=c.c2p(se.xEnd);return d>=Math.min(le,ce)&&d<=Math.max(le,ce)?0:1/0}var q=Math.max(3,se.mrc||0),Z=1-1/q,ee=Math.abs(c.c2p(se.x)-d);return ee<q?Z*ee/q:ee-q+Z},b=function(se){if(M){var le=m.c2p(se.yStart),ce=m.c2p(se.yEnd);return T>=Math.min(le,ce)&&T<=Math.max(le,ce)?0:1/0}var q=Math.max(3,se.mrc||0),Z=1-1/q,ee=Math.abs(m.c2p(se.y)-T);return ee<q?Z*ee/q:ee-q+Z},v=function(se){var le=Math.max(w,se.mrc||0),ce=c.c2p(se.x)-d,q=m.c2p(se.y)-T;return Math.max(Math.sqrt(ce*ce+q*q)-le,1-w/le)},u=x.getDistanceFunction(a,g,b,v);if(x.getClosest(s,u,o),o.index!==!1){var y=s[o.index],f=c.c2p(y.x,!0),R=m.c2p(y.y,!0),L=y.mrc||1;o.index=y.i;var z=s[0].t.orientation,F=z&&(y.sNorm||y.s),N=z==="h"?F:y.orig_x!==void 0?y.orig_x:y.x,B=z==="v"?F:y.orig_y!==void 0?y.orig_y:y.y;return p.extendFlat(o,{color:E(h,y),x0:f-L,x1:f+L,xLabelVal:N,y0:R-L,y1:R+L,yLabelVal:B,spikeDistance:v(y),hovertemplate:h.hovertemplate}),t(y,h,o),S.getComponentMethod("errorbars","hoverInfo")(y,h,o),[o]}}function I(se){if(!se)return!1;var le=se.node();try{var ce=new DOMPoint(l[0],l[1]);return le.isPointInFill(ce)}catch{var q=le.ownerSVGElement.createSVGPoint();return q.x=l[0],q.y=l[1],le.isPointInFill(q)}}function U(se){var le,ce=[],q=1/0,Z=-1/0,ee=1/0,V=-1/0,oe;for(le=0;le<se.length;le++){var ie=se[le];ie.contains(l)&&(ce.push(ie),ee=Math.min(ee,ie.ymin),V=Math.max(V,ie.ymax))}if(ce.length===0)return null;ee=Math.max(ee,0),V=Math.min(V,m._length),oe=(ee+V)/2;var j,Q,re,ue,_e,we,Re;for(le=0;le<ce.length;le++)for(Q=ce[le].pts,j=1;j<Q.length;j++)we=Q[j-1][1],Re=Q[j][1],we>oe!=Re>=oe&&(ue=Q[j-1][0],_e=Q[j][0],Re-we&&(re=ue+(_e-ue)*(oe-we)/(Re-we),q=Math.min(q,re),Z=Math.max(Z,re)));return q=Math.max(q,0),Z=Math.min(Z,c._length),{x0:q,x1:Z,y0:oe,y1:oe}}if(_.indexOf("fills")!==-1&&h._fillElement){var O=I(h._fillElement)&&!I(h._fillExclusionElement);if(O){var X=U(h._polygons);X===null&&(X={x0:l[0],x1:l[0],y0:l[1],y1:l[1]});var J=e.defaultLine;return e.opacity(h.fillcolor)?J=h.fillcolor:e.opacity((h.line||{}).color)&&(J=h.line.color),p.extendFlat(o,{distance:o.maxHoverDistance,x0:X.x0,x1:X.x1,y0:X.y0,y1:X.y1,color:J,hovertemplate:!1}),delete o.index,h.text&&!p.isArrayOrTypedArray(h.text)?o.text=String(h.text):o.text=h.name,[o]}}}}}),ag=De({"src/traces/scatter/select.js"(Y,H){"use strict";var p=Hu();H.exports=function(S,E){var e=S.cd,t=S.xaxis,r=S.yaxis,o=[],i=e[0].trace,n,a,s,h,c=!p.hasMarkers(i)&&!p.hasText(i);if(c)return[];if(E===!1)for(n=0;n<e.length;n++)e[n].selected=0;else for(n=0;n<e.length;n++)a=e[n],s=t.c2p(a.x),h=r.c2p(a.y),a.i!==null&&E.contains([s,h],!1,n,S)?(o.push({pointNumber:a.i,x:t.c2d(a.x),y:r.c2d(a.y)}),a.selected=1):a.selected=0;return o}}}),xE=De({"src/plots/cartesian/attributes.js"(Y,H){"use strict";H.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}}}),_2=De({"src/plots/cartesian/type_defaults.js"(Y,H){"use strict";var p=Mo().traceIs,x=$m();H.exports=function(o,i,n,a){n("autotypenumbers",a.autotypenumbersDflt);var s=n("type",(a.splomStash||{}).type);s==="-"&&(S(i,a.data),i.type==="-"?i.type="linear":o.type=i.type)};function S(r,o){if(r.type==="-"){var i=r._id,n=i.charAt(0),a;i.indexOf("scene")!==-1&&(i=n);var s=E(o,i,n);if(s){if(s.type==="histogram"&&n==={v:"y",h:"x"}[s.orientation||"v"]){r.type="linear";return}var h=n+"calendar",c=s[h],m={noMultiCategory:!p(s,"cartesian")||p(s,"noMultiCategory")};if(s.type==="box"&&s._hasPreCompStats&&n==={h:"x",v:"y"}[s.orientation||"v"]&&(m.noMultiCategory=!0),m.autotypenumbers=r.autotypenumbers,t(s,n)){var d=e(s),T=[];for(a=0;a<o.length;a++){var l=o[a];!p(l,"box-violin")||(l[n+"axis"]||n)!==i||(l[d]!==void 0?T.push(l[d][0]):l.name!==void 0?T.push(l.name):T.push("text"),l[h]!==c&&(c=void 0))}r.type=x(T,c,m)}else if(s.type==="splom"){var _=s.dimensions,w=_[s._axesDim[i]];w.visible&&(r.type=x(w.values,c,m))}else r.type=x(s[n]||[s[n+"0"]],c,m)}}}function E(r,o,i){for(var n=0;n<r.length;n++){var a=r[n];if(a.type==="splom"&&a._length>0&&(a["_"+i+"axes"]||{})[o])return a;if((a[i+"axis"]||i)===o){if(t(a,i))return a;if((a[i]||[]).length||a[i+"0"])return a}}}function e(r){return{v:"x",h:"y"}[r.orientation||"v"]}function t(r,o){var i=e(r),n=p(r,"box-violin"),a=p(r._fullInput||{},"candlestick");return n&&!a&&o===i&&r[i]===void 0&&r[i+"0"]===void 0}}}),D_=De({"src/plots/cartesian/category_order_defaults.js"(Y,H){"use strict";var p=vl().isTypedArraySpec;function x(S,E){var e=E.dataAttr||S._id.charAt(0),t={},r,o,i;if(E.axData)r=E.axData;else for(r=[],o=0;o<E.data.length;o++){var n=E.data[o];n[e+"axis"]===S._id&&r.push(n)}for(o=0;o<r.length;o++){var a=r[o][e];for(i=0;i<a.length;i++){var s=a[i];s!=null&&(t[s]=1)}}return Object.keys(t)}H.exports=function(E,e,t,r){if(e.type==="category"){var o=E.categoryarray,i=Array.isArray(o)&&o.length>0||p(o),n;i&&(n="array");var a=t("categoryorder",n),s;a==="array"&&(s=t("categoryarray")),!i&&a==="array"&&(a=e.categoryorder="trace"),a==="trace"?e._initialCategories=[]:a==="array"?e._initialCategories=s.slice():(s=x(e,r).sort(),a==="category ascending"?e._initialCategories=s:a==="category descending"&&(e._initialCategories=s.reverse()))}}}}),gy=De({"src/plots/cartesian/line_grid_defaults.js"(Y,H){"use strict";var p=wu().mix,x=Pf(),S=ui();H.exports=function(e,t,r,o){o=o||{};var i=o.dfltColor;function n(f,R){return S.coerce2(e,t,o.attributes,f,R)}var a=n("linecolor",i),s=n("linewidth"),h=r("showline",o.showLine||!!a||!!s);h||(delete t.linecolor,delete t.linewidth);var c=p(i,o.bgColor,o.blend||x.lightFraction).toRgbString(),m=n("gridcolor",c),d=n("gridwidth"),T=n("griddash"),l=r("showgrid",o.showGrid||!!m||!!d||!!T);if(l||(delete t.gridcolor,delete t.gridwidth,delete t.griddash),o.hasMinor){var _=p(t.gridcolor,o.bgColor,67).toRgbString(),w=n("minor.gridcolor",_),A=n("minor.gridwidth",t.gridwidth||1),M=n("minor.griddash",t.griddash||"solid"),g=r("minor.showgrid",!!w||!!A||!!M);g||(delete t.minor.gridcolor,delete t.minor.gridwidth,delete t.minor.griddash)}if(!o.noZeroLine){var b=n("zerolinelayer"),v=n("zerolinecolor",i),u=n("zerolinewidth"),y=r("zeroline",o.showGrid||!!v||!!u);y||(delete t.zerolinelayer,delete t.zerolinecolor,delete t.zerolinewidth)}}}}),yy=De({"src/plots/cartesian/axis_defaults.js"(Y,H){"use strict";var p=vn(),x=Mo(),S=ui(),E=Gl(),e=Vh(),t=Ih(),r=U0(),o=Zm(),i=qp(),n=Hp(),a=D_(),s=gy(),h=Xw(),c=Dv(),m=th().WEEKDAY_PATTERN,d=th().HOUR_PATTERN;H.exports=function(A,M,g,b,v){var u=b.letter,y=b.font||{},f=b.splomStash||{},R=g("visible",!b.visibleDflt),L=M._template||{},z=M.type||L.type||"-",F;if(z==="date"){var N=x.getComponentMethod("calendars","handleDefaults");N(A,M,"calendar",b.calendar),b.noTicklabelmode||(F=g("ticklabelmode"))}!b.noTicklabelindex&&(z==="date"||z==="linear")&&g("ticklabelindex");var B="";(!b.noTicklabelposition||z==="multicategory")&&(B=S.coerce(A,M,{ticklabelposition:{valType:"enumerated",dflt:"outside",values:F==="period"?["outside","inside"]:u==="x"?["outside","inside","outside left","inside left","outside right","inside right"]:["outside","inside","outside top","inside top","outside bottom","inside bottom"]}},"ticklabelposition")),b.noTicklabeloverflow||g("ticklabeloverflow",B.indexOf("inside")!==-1?"hide past domain":z==="category"||z==="multicategory"?"allow":"hide past div"),c(M,v),h(A,M,g,b),a(A,M,g,b),b.noHover||(z!=="category"&&g("hoverformat"),b.noUnifiedhovertitle||g("unifiedhovertitle.text"));var I=g("color"),U=I!==t.color.dflt?I:y.color,O=f.label||v._dfltTitle[u];if(n(A,M,g,z,b),!R)return M;g("title.text",O),S.coerceFont(g,"title.font",y,{overrideDflt:{size:S.bigFont(y.size),color:U}}),r(A,M,g,z);var X=b.hasMinor;if(X&&(E.newContainer(M,"minor"),r(A,M,g,z,{isMinor:!0})),i(A,M,g,z,b),o(A,M,g,b),X){var J=b.isMinor;b.isMinor=!0,o(A,M,g,b),b.isMinor=J}s(A,M,g,{dfltColor:I,bgColor:b.bgColor,showGrid:b.showGrid,hasMinor:X,attributes:t}),X&&!M.minor.ticks&&!M.minor.showgrid&&delete M.minor,(M.showline||M.ticks)&&g("mirror");var se=z==="multicategory";if(!b.noTickson&&(z==="category"||se)&&(M.ticks||M.showgrid)&&(se?(g("tickson","boundaries"),delete M.ticklabelposition):g("tickson")),se){var le=g("showdividers");le&&(g("dividercolor"),g("dividerwidth"))}if(z==="date")if(e(A,M,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:T}),!M.rangebreaks.length)delete M.rangebreaks;else{for(var ce=0;ce<M.rangebreaks.length;ce++)if(M.rangebreaks[ce].pattern===m){M._hasDayOfWeekBreaks=!0;break}if(c(M,v),v._has("scattergl")||v._has("splom"))for(var q=0;q<b.data.length;q++){var Z=b.data[q];(Z.type==="scattergl"||Z.type==="splom")&&(Z.visible=!1,S.warn(Z.type+" traces do not work on axes with rangebreaks. Setting trace "+Z.index+" to `visible: false`."))}}return M};function T(w,A,M){function g(F,N){return S.coerce(w,A,t.rangebreaks,F,N)}var b=g("enabled");if(b){var v=g("bounds");if(v&&v.length>=2){var u="",y,f;if(v.length===2){for(y=0;y<2;y++)if(f=_(v[y]),f){u=m;break}}var R=g("pattern",u);if(R===m)for(y=0;y<2;y++)f=_(v[y]),f&&(A.bounds[y]=v[y]=f-1);if(R)for(y=0;y<2;y++)switch(f=v[y],R){case m:if(!p(f)){A.enabled=!1;return}if(f=+f,f!==Math.floor(f)||f<0||f>=7){A.enabled=!1;return}A.bounds[y]=v[y]=f;break;case d:if(!p(f)){A.enabled=!1;return}if(f=+f,f<0||f>24){A.enabled=!1;return}A.bounds[y]=v[y]=f;break}if(M.autorange===!1){var L=M.range;if(L[0]<L[1]){if(v[0]<L[0]&&v[1]>L[1]){A.enabled=!1;return}}else if(v[0]>L[0]&&v[1]<L[1]){A.enabled=!1;return}}}else{var z=g("values");if(z&&z.length)g("dvalue");else{A.enabled=!1;return}}}}var l={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function _(w){if(typeof w=="string")return l[w.slice(0,3).toLowerCase()]}}}),z_=De({"src/plots/cartesian/position_defaults.js"(Y,H){"use strict";var p=vn(),x=ui();H.exports=function(E,e,t,r){var o=r.counterAxes||[],i=r.overlayableAxes||[],n=r.letter,a=r.grid,s=r.overlayingDomain,h,c,m,d,T,l;a&&(c=a._domains[n][a._axisMap[e._id]],h=a._anchors[e._id],c&&(m=a[n+"side"].split(" ")[0],d=a.domain[n][m==="right"||m==="top"?1:0])),c=c||[0,1],h=h||(p(E.position)?"free":o[0]||"free"),m=m||(n==="x"?"bottom":"left"),d=d||0,T=0,l=!1;var _=x.coerce(E,e,{anchor:{valType:"enumerated",values:["free"].concat(o),dflt:h}},"anchor"),w=x.coerce(E,e,{side:{valType:"enumerated",values:n==="x"?["bottom","top"]:["left","right"],dflt:m}},"side");if(_==="free"){if(n==="y"){var A=t("autoshift");A&&(d=w==="left"?s[0]:s[1],l=e.automargin?e.automargin:!0,T=w==="left"?-3:3),t("shift",T)}t("position",d)}t("automargin",l);var M=!1;if(i.length&&(M=x.coerce(E,e,{overlaying:{valType:"enumerated",values:[!1].concat(i),dflt:!1}},"overlaying")),!M){var g=t("domain",c);g[0]>g[1]-1/4096&&(e.domain=c),x.noneOrAll(E.domain,e.domain,c),e.tickmode==="sync"&&(e.tickmode="auto")}return t("layer"),e}}}),bE=De({"src/plots/cartesian/layout_defaults.js"(Y,H){"use strict";var p=ui(),x=vo(),S=Ad().isUnifiedHover,E=t2(),e=Gl(),t=Wm(),r=Ih(),o=_2(),i=yy(),n=V0(),a=z_(),s=nf(),h=s.id2name,c=s.name2id,m=th().AX_ID_PATTERN,d=Mo(),T=d.traceIs,l=d.getComponentMethod;function _(w,A,M){Array.isArray(w[A])?w[A].push(M):w[A]=[M]}H.exports=function(A,M,g){var b=M.autotypenumbers,v={},u={},y={},f={},R={},L={},z={},F={},N={},B={},I,U;for(I=0;I<g.length;I++){var O=g[I];if(T(O,"cartesian")){var X;if(O.xaxis)X=h(O.xaxis),_(v,X,O);else if(O.xaxes)for(U=0;U<O.xaxes.length;U++)_(v,h(O.xaxes[U]),O);var J;if(O.yaxis)J=h(O.yaxis),_(v,J,O);else if(O.yaxes)for(U=0;U<O.yaxes.length;U++)_(v,h(O.yaxes[U]),O);if(O.type==="funnel"?O.orientation==="h"?(X&&(u[X]=!0),J&&(z[J]=!0)):J&&(y[J]=!0):O.type==="image"?(J&&(F[J]=!0),X&&(F[X]=!0)):(J&&(R[J]=!0,L[J]=!0),(!T(O,"carpet")||O.type==="carpet"&&!O._cheater)&&X&&(f[X]=!0)),O.type==="carpet"&&O._cheater&&X&&(u[X]=!0),T(O,"2dMap")&&(N[X]=!0,N[J]=!0),T(O,"oriented")){var se=O.orientation==="h"?J:X;B[se]=!0}}}var le=M._subplots,ce=le.xaxis,q=le.yaxis,Z=p.simpleMap(ce,h),ee=p.simpleMap(q,h),V=Z.concat(ee),oe=x.background;ce.length&&q.length&&(oe=p.coerce(A,M,t,"plot_bgcolor"));var ie=x.combine(oe,M.paper_bgcolor),j,Q,re,ue,_e;function we(){var ke=v[j]||[];_e._traceIndices=ke.map(function(Me){return Me.index}),_e._annIndices=[],_e._shapeIndices=[],_e._selectionIndices=[],_e._imgIndices=[],_e._subplotsWith=[],_e._counterAxes=[],_e._name=_e._attr=j,_e._id=Q}function Re(ke,Me){return p.coerce(ue,_e,r,ke,Me)}function ze(ke,Me){return p.coerce2(ue,_e,r,ke,Me)}function Xe(ke){return ke==="x"?q:ce}function tt(ke,Me){for(var Le=ke==="x"?Z:ee,ut=[],lt=0;lt<Le.length;lt++){var gt=Le[lt];gt!==Me&&!(A[gt]||{}).overlaying&&ut.push(c(gt))}return ut}var it={x:Xe("x"),y:Xe("y")},et=it.x.concat(it.y),nt={},Ae=[];function me(){var ke=ue.matches;m.test(ke)&&et.indexOf(ke)===-1&&(nt[ke]=ue.type,Ae=Object.keys(nt))}var fe=E(A,M),Be=S(fe);for(I=0;I<V.length;I++){j=V[I],Q=c(j),re=j.charAt(0),p.isPlainObject(A[j])||(A[j]={}),ue=A[j],_e=e.newContainer(M,j,re+"axis"),we();var Qe=re==="x"&&!f[j]&&u[j]||re==="y"&&!R[j]&&y[j],at=re==="y"&&(!L[j]&&z[j]||F[j]),$e={hasMinor:!0,letter:re,font:M.font,outerTicks:N[j],showGrid:!B[j],data:v[j]||[],bgColor:ie,calendar:M.calendar,automargin:!0,visibleDflt:Qe,reverseDflt:at,autotypenumbersDflt:b,splomStash:((M._splomAxes||{})[re]||{})[Q],noAutotickangles:re==="y"};Re("uirevision",M.uirevision),o(ue,_e,Re,$e),i(ue,_e,Re,$e,M);var It=Be&&re===fe.charAt(0),Pt=ze("spikecolor",Be?_e.color:void 0),Vt=ze("spikethickness",Be?1.5:void 0),Wt=ze("spikedash",Be?"dot":void 0),Cr=ze("spikemode",Be?"across":void 0),yr=ze("spikesnap"),qr=Re("showspikes",!!It||!!Pt||!!Vt||!!Wt||!!Cr||!!yr);qr||(delete _e.spikecolor,delete _e.spikethickness,delete _e.spikedash,delete _e.spikemode,delete _e.spikesnap);var Mr=h(ue.overlaying),Dr=[0,1];if(M[Mr]!==void 0){var xt=h(M[Mr].anchor);M[xt]!==void 0&&(Dr=M[xt].domain)}a(ue,_e,Re,{letter:re,counterAxes:it[re],overlayableAxes:tt(re,j),grid:M.grid,overlayingDomain:Dr}),Re("title.standoff"),me(),_e._input=ue}for(I=0;I<Ae.length;){Q=Ae[I++],j=h(Q),re=j.charAt(0),p.isPlainObject(A[j])||(A[j]={}),ue=A[j],_e=e.newContainer(M,j,re+"axis"),we();var Ne={letter:re,font:M.font,outerTicks:N[j],showGrid:!B[j],data:[],bgColor:ie,calendar:M.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:b,splomStash:((M._splomAxes||{})[re]||{})[Q]};Re("uirevision",M.uirevision),_e.type=nt[Q]||"linear",i(ue,_e,Re,Ne,M),a(ue,_e,Re,{letter:re,counterAxes:it[re],overlayableAxes:tt(re,j),grid:M.grid}),Re("fixedrange"),Re("modebardisable"),me(),_e._input=ue}var Ye=l("rangeslider","handleDefaults"),be=l("rangeselector","handleDefaults");for(I=0;I<Z.length;I++)j=Z[I],ue=A[j],_e=M[j],Ye(A,M,j),_e.type==="date"&&be(ue,_e,M,ee,_e.calendar),Re("fixedrange"),Re("modebardisable");for(I=0;I<ee.length;I++){j=ee[I],ue=A[j],_e=M[j];var Ie=M[h(_e.anchor)],qe=l("rangeslider","isVisible")(Ie);Re("fixedrange",qe),Re("modebardisable")}n.handleDefaults(A,M,{axIds:et.concat(Ae).sort(s.idSort),axHasImage:F})}}}),wE=De({"src/plots/cartesian/transition_axes.js"(Y,H){"use strict";var p=za(),x=Mo(),S=ui(),E=ys(),e=us();H.exports=function(r,o,i,n){var a=r._fullLayout;if(o.length===0){e.redrawComponents(r);return}function s(M){var g=M.xaxis,b=M.yaxis;a._defs.select("#"+M.clipId+"> rect").call(E.setTranslate,0,0).call(E.setScale,1,1),M.plot.call(E.setTranslate,g._offset,b._offset).call(E.setScale,1,1);var v=M.plot.selectAll(".scatterlayer .trace");v.selectAll(".point").call(E.setPointGroupScale,1,1),v.selectAll(".textpoint").call(E.setTextPointsScale,1,1),v.call(E.hideOutsideRangePoints,M)}function h(M,g){var b=M.plotinfo,v=b.xaxis,u=b.yaxis,y=v._length,f=u._length,R=!!M.xr1,L=!!M.yr1,z=[];if(R){var F=S.simpleMap(M.xr0,v.r2l),N=S.simpleMap(M.xr1,v.r2l),B=F[1]-F[0],I=N[1]-N[0];z[0]=(F[0]*(1-g)+g*N[0]-F[0])/(F[1]-F[0])*y,z[2]=y*(1-g+g*I/B),v.range[0]=v.l2r(F[0]*(1-g)+g*N[0]),v.range[1]=v.l2r(F[1]*(1-g)+g*N[1])}else z[0]=0,z[2]=y;if(L){var U=S.simpleMap(M.yr0,u.r2l),O=S.simpleMap(M.yr1,u.r2l),X=U[1]-U[0],J=O[1]-O[0];z[1]=(U[1]*(1-g)+g*O[1]-U[1])/(U[0]-U[1])*f,z[3]=f*(1-g+g*J/X),u.range[0]=v.l2r(U[0]*(1-g)+g*O[0]),u.range[1]=u.l2r(U[1]*(1-g)+g*O[1])}else z[1]=0,z[3]=f;e.drawOne(r,v,{skipTitle:!0}),e.drawOne(r,u,{skipTitle:!0}),e.redrawComponents(r,[v._id,u._id]);var se=R?y/z[2]:1,le=L?f/z[3]:1,ce=R?z[0]:0,q=L?z[1]:0,Z=R?z[0]/z[2]*y:0,ee=L?z[1]/z[3]*f:0,V=v._offset-Z,oe=u._offset-ee;b.clipRect.call(E.setTranslate,ce,q).call(E.setScale,1/se,1/le),b.plot.call(E.setTranslate,V,oe).call(E.setScale,se,le),E.setPointGroupScale(b.zoomScalePts,1/se,1/le),E.setTextPointsScale(b.zoomScaleTxt,1/se,1/le)}var c;n&&(c=n());function m(){for(var M={},g=0;g<o.length;g++){var b=o[g],v=b.plotinfo.xaxis,u=b.plotinfo.yaxis;b.xr1&&(M[v._name+".range"]=b.xr1.slice()),b.yr1&&(M[u._name+".range"]=b.yr1.slice())}return c&&c(),x.call("relayout",r,M).then(function(){for(var y=0;y<o.length;y++)s(o[y].plotinfo)})}function d(){for(var M={},g=0;g<o.length;g++){var b=o[g],v=b.plotinfo.xaxis,u=b.plotinfo.yaxis;b.xr0&&(M[v._name+".range"]=b.xr0.slice()),b.yr0&&(M[u._name+".range"]=b.yr0.slice())}return x.call("relayout",r,M).then(function(){for(var y=0;y<o.length;y++)s(o[y].plotinfo)})}var T,l,_,w=p.ease(i.easing);r._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(_),_=null,d()});function A(){l=Date.now();for(var M=Math.min(1,(l-T)/i.duration),g=w(M),b=0;b<o.length;b++)h(o[b],g);l-T>i.duration?(m(),_=window.cancelAnimationFrame(A)):_=window.requestAnimationFrame(A)}return T=Date.now(),_=window.requestAnimationFrame(A),Promise.resolve()}}}),Gf=De({"src/plots/cartesian/index.js"(Y){"use strict";var H=za(),p=Mo(),x=ui(),S=Mc(),E=ys(),e=Lh().getModuleCalcData,t=nf(),r=th(),o=Bd(),i=x.ensureSingle;function n(T,l,_){return x.ensureSingle(T,l,_,function(w){w.datum(_)})}var a=r.zindexSeparator;Y.name="cartesian",Y.attr=["xaxis","yaxis"],Y.idRoot=["x","y"],Y.idRegex=r.idRegex,Y.attrRegex=r.attrRegex,Y.attributes=xE(),Y.layoutAttributes=Ih(),Y.supplyLayoutDefaults=bE(),Y.transitionAxes=wE(),Y.finalizeSubplots=function(T,l){var _=l._subplots,w=_.xaxis,A=_.yaxis,M=_.cartesian,g=M,b={},v={},u,y,f;for(u=0;u<g.length;u++){var R=g[u].split("y");b[R[0]]=1,v["y"+R[1]]=1}for(u=0;u<w.length;u++)y=w[u],b[y]||(f=(T[t.id2name(y)]||{}).anchor,r.idRegex.y.test(f)||(f="y"),M.push(y+f),g.push(y+f),v[f]||(v[f]=1,x.pushUnique(A,f)));for(u=0;u<A.length;u++)f=A[u],v[f]||(y=(T[t.id2name(f)]||{}).anchor,r.idRegex.x.test(y)||(y="x"),M.push(y+f),g.push(y+f),b[y]||(b[y]=1,x.pushUnique(w,y)));if(!g.length){y="",f="";for(var L in T)if(r.attrRegex.test(L)){var z=L.charAt(0);z==="x"?(!y||+L.slice(5)<+y.slice(5))&&(y=L):(!f||+L.slice(5)<+f.slice(5))&&(f=L)}y=y?t.name2id(y):"x",f=f?t.name2id(f):"y",w.push(y),A.push(f),M.push(y+f)}},Y.plot=function(T,l,_,w){var A=T._fullLayout,M=A._subplots.cartesian,g=T.calcdata,b;if(!Array.isArray(l))for(l=[],b=0;b<g.length;b++)l.push(b);for(var v=A._zindices,u=0;u<v.length;u++){var y=v[u];for(b=0;b<M.length;b++){var f=M[b],R=A._plots[f];if(u>0){var L=R.id;if(L.indexOf(a)!==-1)continue;L+=a+(u+1),R=x.extendFlat({},R,{id:L,plot:A._cartesianlayer.selectAll(".subplot").select("."+L)})}for(var z=[],F,N=0;N<g.length;N++){var B=g[N],I=B[0].trace;y===(I.zorder||0)&&I.xaxis+I.yaxis===f&&((l.indexOf(I.index)!==-1||I.carpet)&&(F&&F[0].trace.xaxis+F[0].trace.yaxis===f&&["tonextx","tonexty","tonext"].indexOf(I.fill)!==-1&&z.indexOf(F)===-1&&z.push(F),z.push(B)),F=B)}s(T,R,z,_,w)}}};function s(T,l,_,w,A){for(var M=r.traceLayerClasses,g=T._fullLayout,b=g._zindices,v=g._modules,u,y,f,R=[],L=[],z=0;z<b.length;z++)for(var F=b[z],N=0;N<v.length;N++){u=v[N];var B=u.name,I=p.modules[B].categories;if(I.svg){var U=u.layerName||B+"layer",O=U+(z?Number(z)+1:""),X=u.plot;y=e(_,X,F),f=y[0],_=y[1],f.length&&R.push({i:M.indexOf(U),zindex:z,className:O,plotMethod:X,cdModule:f}),I.zoomScale&&L.push("."+O)}}R.sort(function(le,ce){return(le.zindex||0)-(ce.zindex||0)||le.i-ce.i});var J=l.plot.selectAll("g.mlayer").data(R,function(le){return le.className});if(J.enter().append("g").attr("class",function(le){return le.className}).classed("mlayer",!0).classed("rangeplot",l.isRangePlot),J.exit().remove(),J.order(),J.each(function(le){var ce=H.select(this),q=le.className;le.plotMethod(T,l,le.cdModule,ce,w,A),r.clipOnAxisFalseQuery.indexOf("."+q)===-1&&E.setClipUrl(ce,l.layerClipId,T)}),g._has("scattergl")&&(u=p.getModule("scattergl"),f=e(_,u)[0],u.plot(T,l,f)),!T._context.staticPlot&&(l._hasClipOnAxisFalse&&(l.clipOnAxisFalseTraces=l.plot.selectAll(r.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),L.length)){var se=l.plot.selectAll(L.join(",")).selectAll(".trace");l.zoomScalePts=se.selectAll("path.point"),l.zoomScaleTxt=se.selectAll(".textpoint")}}Y.clean=function(T,l,_,w){var A=w._plots||{},M=l._plots||{},g=w._subplots||{},b,v,u;if(w._hasOnlyLargeSploms&&!l._hasOnlyLargeSploms)for(u in A)b=A[u],b.plotgroup&&b.plotgroup.remove();var y=w._has&&w._has("gl"),f=l._has&&l._has("gl");if(y&&!f)for(u in A)b=A[u],b._scene&&b._scene.destroy();if(g.xaxis&&g.yaxis){var R=t.listIds({_fullLayout:w});for(v=0;v<R.length;v++){var L=R[v];l[t.id2name(L)]||w._infolayer.selectAll(".g-"+L+"title").remove()}}var z=w._has&&w._has("cartesian"),F=l._has&&l._has("cartesian");if(z&&!F)m(w._cartesianlayer.selectAll(".subplot"),w),w._defs.selectAll(".axesclip").remove(),delete w._axisConstraintGroups,delete w._axisMatchGroups;else if(g.cartesian)for(v=0;v<g.cartesian.length;v++){var N=g.cartesian[v];if(N.indexOf(a)===-1&&!M[N]){var B="."+N+",."+N+"-x,."+N+"-y";w._cartesianlayer.selectAll(B).remove(),d(N,w)}}},Y.drawFramework=function(T){var l=T._fullLayout,_=T.calcdata,w,A={};for(w=0;w<_.length;w++){var M=_[w][0],g=M.trace,b=g.zorder||0;A[b]||(A[b]=[]),A[b].push(M)}var v=Object.keys(A).map(Number).sort(x.sorterAsc);v.length||(v=[0]),l._zindices=v;var u=h(T),y=u.length,f=[];for(w=0;w<y;w++)f[w]=u[w].slice();for(var R=1;R<v.length;R++){var L=[];for(w=0;w<y;w++)L[w]=u[w].slice(),L[w][0]+=a+(R+1);f=f.concat(L)}var z=l._cartesianlayer.selectAll(".subplot").data(f,String);z.enter().append("g").attr("class",function(F){return"subplot "+F[0]}),z.order(),z.exit().call(m,l),z.each(function(F){var N=F[0],B=N.indexOf(a),I=B!==-1,U=I?N.slice(0,B):N,O=l._plots[N];O||(O=x.extendFlat({},l._plots[U]),O&&(O.id=N,l._plots[N]=O,l._subplots.cartesian.push(N))),O&&(O.plotgroup=H.select(this),c(T,O),I||(O.draglayer=i(l._draggers,"g",N)))})},Y.rangePlot=function(T,l,_){c(T,l),s(T,l,_),S.style(T)};function h(T){var l=T._fullLayout,_=l._zindices.length,w=l._subplots.cartesian,A=w.length,M,g,b,v,u,y,f=[],R=[];for(M=0;M<A;M++){b=w[M],v=l._plots[b],u=v.xaxis,y=v.yaxis;var L=u._mainAxis,z=y._mainAxis,F=L._id+z._id,N=l._plots[F];v.overlays=[],F!==b&&N?(v.mainplot=F,v.mainplotinfo=N,R.push(b)):(v.mainplot=void 0,v.mainplotinfo=void 0,f.push(b))}for(M=0;M<R.length;M++)b=R[M],v=l._plots[b],v.mainplotinfo.overlays.push(v);var B=f.concat(R),I=[];for(M=0;M<A;M++){b=B[M],v=l._plots[b],u=v.xaxis,y=v.yaxis;for(var U=[],O=1;O<=_;O++){var X="";for(O>1&&(X+=a+O),U.push(b+X),g=0;g<v.overlays.length;g++)U.push(v.overlays[g].id+X)}U=U.concat([u.layer,y.layer,u.overlaying||"",y.overlaying||""]),I.push(U)}return I}function c(T,l){var _=T._fullLayout,w=l.plotgroup,A=l.id,M=A.indexOf(a),g=M!==-1,b=r.layerValue2layerClass[l.xaxis.layer],v=r.layerValue2layerClass[l.yaxis.layer],u=_._hasOnlyLargeSploms,y=_._zindices.length>1,f=l.mainplotinfo;if(!l.mainplot||y)if(u)l.xlines=i(w,"path","xlines-above"),l.ylines=i(w,"path","ylines-above"),l.xaxislayer=i(w,"g","xaxislayer-above"),l.yaxislayer=i(w,"g","yaxislayer-above");else{if(!g){var R=i(w,"g","layer-subplot");l.shapelayer=i(R,"g","shapelayer"),l.imagelayer=i(R,"g","imagelayer"),f&&y?(l.minorGridlayer=f.minorGridlayer,l.gridlayer=f.gridlayer,l.zerolinelayer=f.zerolinelayer):(l.minorGridlayer=i(w,"g","minor-gridlayer"),l.gridlayer=i(w,"g","gridlayer"),l.zerolinelayer=i(w,"g","zerolinelayer"));var L=i(w,"g","layer-between");l.shapelayerBetween=i(L,"g","shapelayer"),l.imagelayerBetween=i(L,"g","imagelayer"),i(w,"path","xlines-below"),i(w,"path","ylines-below"),l.overlinesBelow=i(w,"g","overlines-below"),i(w,"g","xaxislayer-below"),i(w,"g","yaxislayer-below"),l.overaxesBelow=i(w,"g","overaxes-below")}l.overplot=i(w,"g","overplot"),l.plot=i(l.overplot,"g",A),f&&y?l.zerolinelayerAbove=f.zerolinelayerAbove:l.zerolinelayerAbove=i(w,"g","zerolinelayer-above"),g||(l.xlines=i(w,"path","xlines-above"),l.ylines=i(w,"path","ylines-above"),l.overlinesAbove=i(w,"g","overlines-above"),i(w,"g","xaxislayer-above"),i(w,"g","yaxislayer-above"),l.overaxesAbove=i(w,"g","overaxes-above"),l.xlines=w.select(".xlines-"+b),l.ylines=w.select(".ylines-"+v),l.xaxislayer=w.select(".xaxislayer-"+b),l.yaxislayer=w.select(".yaxislayer-"+v))}else{var z=f.plotgroup,F=A+"-x",N=A+"-y";l.minorGridlayer=f.minorGridlayer,l.gridlayer=f.gridlayer,l.zerolinelayer=f.zerolinelayer,l.zerolinelayerAbove=f.zerolinelayerAbove,i(f.overlinesBelow,"path",F),i(f.overlinesBelow,"path",N),i(f.overaxesBelow,"g",F),i(f.overaxesBelow,"g",N),l.plot=i(f.overplot,"g",A),i(f.overlinesAbove,"path",F),i(f.overlinesAbove,"path",N),i(f.overaxesAbove,"g",F),i(f.overaxesAbove,"g",N),l.xlines=z.select(".overlines-"+b).select("."+F),l.ylines=z.select(".overlines-"+v).select("."+N),l.xaxislayer=z.select(".overaxes-"+b).select("."+F),l.yaxislayer=z.select(".overaxes-"+v).select("."+N)}g||(u||(n(l.minorGridlayer,"g",l.xaxis._id),n(l.minorGridlayer,"g",l.yaxis._id),l.minorGridlayer.selectAll("g").map(function(B){return B[0]}).sort(t.idSort),n(l.gridlayer,"g",l.xaxis._id),n(l.gridlayer,"g",l.yaxis._id),l.gridlayer.selectAll("g").map(function(B){return B[0]}).sort(t.idSort)),l.xlines.style("fill","none").classed("crisp",!0),l.ylines.style("fill","none").classed("crisp",!0))}function m(T,l){if(T){var _={};T.each(function(v){var u=v[0],y=H.select(this);y.remove(),d(u,l),_[u]=!0});for(var w in l._plots)for(var A=l._plots[w],M=A.overlays||[],g=0;g<M.length;g++){var b=M[g];_[b.id]&&b.plot.selectAll(".trace").remove()}}}function d(T,l){l._draggers.selectAll("g."+T).remove(),l._defs.select("#clip"+l._uid+T+"plot").remove()}Y.toSVG=function(T){var l=T._fullLayout._glimages,_=H.select(T).selectAll(".svg-container"),w=_.filter(function(M,g){return g===_.size()-1}).selectAll(".gl-canvas-context, .gl-canvas-focus");function A(){var M=this,g=M.toDataURL("image/png"),b=l.append("svg:image");b.attr({xmlns:o.svg,"xlink:href":g,preserveAspectRatio:"none",x:0,y:0,width:M.style.width,height:M.style.height})}w.each(A)},Y.updateFx=d2().updateFx}}),TE=De({"src/traces/scatter/index.js"(Y,H){"use strict";var p=Hu();H.exports={hasLines:p.hasLines,hasMarkers:p.hasMarkers,hasText:p.hasText,isBubble:p.isBubble,attributes:lf(),layoutAttributes:b_(),supplyDefaults:mE(),crossTraceDefaults:m2(),supplyLayoutDefaults:gE(),calc:Kd().calc,crossTraceCalc:_E(),arraysToCalcdata:Fv(),plot:tg(),colorbar:qh(),formatLabels:R_(),style:Sd().style,styleOnSelect:Sd().styleOnSelect,hoverPoints:ig(),selectPoints:ag(),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:Gf(),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}}}),AE=De({"src/components/annotations/draw_arrow_head.js"(Y,H){"use strict";var p=za(),x=vo(),S=c2(),E=ui(),e=E.strScale,t=E.strRotate,r=E.strTranslate;H.exports=function(i,n,a){var s=i.node(),h=S[a.arrowhead||0],c=S[a.startarrowhead||0],m=(a.arrowwidth||1)*(a.arrowsize||1),d=(a.arrowwidth||1)*(a.startarrowsize||1),T=n.indexOf("start")>=0,l=n.indexOf("end")>=0,_=h.backoff*m+a.standoff,w=c.backoff*d+a.startstandoff,A,M,g,b;if(s.nodeName==="line"){A={x:+i.attr("x1"),y:+i.attr("y1")},M={x:+i.attr("x2"),y:+i.attr("y2")};var v=A.x-M.x,u=A.y-M.y;if(g=Math.atan2(u,v),b=g+Math.PI,_&&w&&_+w>Math.sqrt(v*v+u*u)){X();return}if(_){if(_*_>v*v+u*u){X();return}var y=_*Math.cos(g),f=_*Math.sin(g);M.x+=y,M.y+=f,i.attr({x2:M.x,y2:M.y})}if(w){if(w*w>v*v+u*u){X();return}var R=w*Math.cos(g),L=w*Math.sin(g);A.x-=R,A.y-=L,i.attr({x1:A.x,y1:A.y})}}else if(s.nodeName==="path"){var z=s.getTotalLength(),F="";if(z<_+w){X();return}var N=s.getPointAtLength(0),B=s.getPointAtLength(.1);g=Math.atan2(N.y-B.y,N.x-B.x),A=s.getPointAtLength(Math.min(w,z)),F="0px,"+w+"px,";var I=s.getPointAtLength(z),U=s.getPointAtLength(z-.1);b=Math.atan2(I.y-U.y,I.x-U.x),M=s.getPointAtLength(Math.max(0,z-_));var O=F?w+_:_;F+=z-O+"px,"+z+"px",i.style("stroke-dasharray",F)}function X(){i.style("stroke-dasharray","0px,100px")}function J(se,le,ce,q){se.path&&(se.noRotate&&(ce=0),p.select(s.parentNode).append("path").attr({class:i.attr("class"),d:se.path,transform:r(le.x,le.y)+t(ce*180/Math.PI)+e(q)}).style({fill:x.rgb(a.arrowcolor),"stroke-width":0}))}T&&J(c,A,g,d),l&&J(h,M,b,m)}}}),F_=De({"src/components/annotations/draw.js"(Y,H){"use strict";var p=za(),x=Mo(),S=Mc(),E=ui(),e=E.strTranslate,t=us(),r=vo(),o=ys(),i=sf(),n=vu(),a=hv(),s=Qh(),h=Gl().arrayEditor,c=AE();H.exports={draw:m,drawOne:d,drawRaw:l};function m(_){var w=_._fullLayout;w._infolayer.selectAll(".annotation").remove();for(var A=0;A<w.annotations.length;A++)w.annotations[A].visible&&d(_,A);return S.previousPromises(_)}function d(_,w){var A=_._fullLayout,M=A.annotations[w]||{},g=t.getFromId(_,M.xref),b=t.getFromId(_,M.yref);g&&g.setScale(),b&&b.setScale(),l(_,M,w,!1,g,b)}function T(_,w,A,M,g){var b=g[A],v=g[A+"ref"],u=A.indexOf("y")!==-1,y=t.getRefType(v)==="domain",f=u?M.h:M.w;return _?y?b+(u?-w:w)/_._length:_.p2r(_.r2p(b)+w):b+(u?-w:w)/f}function l(_,w,A,M,g,b){var v=_._fullLayout,u=_._fullLayout._size,y=_._context.edits,f,R;M?(f="annotation-"+M,R=M+".annotations"):(f="annotation",R="annotations");var L=h(_.layout,R,w),z=L.modifyBase,F=L.modifyItem,N=L.getUpdateObj;v._infolayer.selectAll("."+f+'[data-index="'+A+'"]').remove();var B="clip"+v._uid+"_ann"+A;if(!w._input||w.visible===!1){p.selectAll("#"+B).remove();return}var I={x:{},y:{}},U=+w.textangle||0,O=v._infolayer.append("g").classed(f,!0).attr("data-index",String(A)).style("opacity",w.opacity),X=O.append("g").classed("annotation-text-g",!0),J=y[w.showarrow?"annotationTail":"annotationPosition"],se=w.captureevents||y.annotationText||J;function le(we){var Re={index:A,annotation:w._input,fullAnnotation:w,event:we};return M&&(Re.subplotId=M),Re}var ce=X.append("g").style("pointer-events",se?"all":null).call(a,"pointer").on("click",function(){_._dragging=!1,_.emit("plotly_clickannotation",le(p.event))});w.hovertext&&ce.on("mouseover",function(){var we=w.hoverlabel,Re=we.font,ze=this.getBoundingClientRect(),Xe=_.getBoundingClientRect();i.loneHover({x0:ze.left-Xe.left,x1:ze.right-Xe.left,y:(ze.top+ze.bottom)/2-Xe.top,text:w.hovertext,color:we.bgcolor,borderColor:we.bordercolor,fontFamily:Re.family,fontSize:Re.size,fontColor:Re.color,fontWeight:Re.weight,fontStyle:Re.style,fontVariant:Re.variant,fontShadow:Re.fontShadow,fontLineposition:Re.fontLineposition,fontTextcase:Re.fontTextcase},{container:v._hoverlayer.node(),outerContainer:v._paper.node(),gd:_})}).on("mouseout",function(){i.loneUnhover(v._hoverlayer.node())});var q=w.borderwidth,Z=w.borderpad,ee=q+Z,V=ce.append("rect").attr("class","bg").style("stroke-width",q+"px").call(r.stroke,w.bordercolor).call(r.fill,w.bgcolor),oe=w.width||w.height,ie=v._topclips.selectAll("#"+B).data(oe?[0]:[]);ie.enter().append("clipPath").classed("annclip",!0).attr("id",B).append("rect"),ie.exit().remove();var j=w.font,Q=v._meta?E.templateString(w.text,v._meta):w.text,re=ce.append("text").classed("annotation-text",!0).text(Q);function ue(we){return we.call(o.font,j).attr({"text-anchor":{left:"start",right:"end"}[w.align]||"middle"}),n.convertToTspans(we,_,_e),we}function _e(){var we=re.selectAll("a");if(we.size()===1&&we.text()===re.text()){var Re=ce.insert("a",":first-child").attr({"xlink:xlink:href":we.attr("xlink:href"),"xlink:xlink:show":we.attr("xlink:show")}).style({cursor:"pointer"});Re.node().appendChild(V.node())}var ze=ce.select(".annotation-text-math-group"),Xe=!ze.empty(),tt=o.bBox((Xe?ze:re).node()),it=tt.width,et=tt.height,nt=w.width||it,Ae=w.height||et,me=Math.round(nt+2*ee),fe=Math.round(Ae+2*ee);function Be(ea,Bi){return Bi==="auto"&&(ea<1/3?Bi="left":ea>2/3?Bi="right":Bi="center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[Bi]}for(var Qe=!1,at=["x","y"],$e=0;$e<at.length;$e++){var It=at[$e],Pt=w[It+"ref"]||It,Vt=w["a"+It+"ref"],Wt={x:g,y:b}[It],Cr=(U+(It==="x"?0:-90))*Math.PI/180,yr=me*Math.cos(Cr),qr=fe*Math.sin(Cr),Mr=Math.abs(yr)+Math.abs(qr),Dr=w[It+"anchor"],xt=w[It+"shift"]*(It==="x"?1:-1),Ne=I[It],Ye,be,Ie,qe,ke,Me=t.getRefType(Pt);if(Wt&&Me!=="domain"){var Le=Wt.r2fraction(w[It]);(Le<0||Le>1)&&(Vt===Pt?(Le=Wt.r2fraction(w["a"+It]),(Le<0||Le>1)&&(Qe=!0)):Qe=!0),Ye=Wt._offset+Wt.r2p(w[It]),qe=.5}else{var ut=Me==="domain";It==="x"?(Ie=w[It],Ye=ut?Wt._offset+Wt._length*Ie:Ye=u.l+u.w*Ie):(Ie=1-w[It],Ye=ut?Wt._offset+Wt._length*Ie:Ye=u.t+u.h*Ie),qe=w.showarrow?.5:Ie}if(w.showarrow){Ne.head=Ye;var lt=w["a"+It];if(ke=yr*Be(.5,w.xanchor)-qr*Be(.5,w.yanchor),Vt===Pt){var gt=t.getRefType(Vt);gt==="domain"?(It==="y"&&(lt=1-lt),Ne.tail=Wt._offset+Wt._length*lt):gt==="paper"?It==="y"?(lt=1-lt,Ne.tail=u.t+u.h*lt):Ne.tail=u.l+u.w*lt:Ne.tail=Wt._offset+Wt.r2p(lt),be=ke}else Ne.tail=Ye+lt,be=ke+lt;Ne.text=Ne.tail+ke;var kt=v[It==="x"?"width":"height"];if(Pt==="paper"&&(Ne.head=E.constrain(Ne.head,1,kt-1)),Vt==="pixel"){var nr=-Math.max(Ne.tail-3,Ne.text),ir=Math.min(Ne.tail+3,Ne.text)-kt;nr>0?(Ne.tail+=nr,Ne.text+=nr):ir>0&&(Ne.tail-=ir,Ne.text-=ir)}Ne.tail+=xt,Ne.head+=xt}else ke=Mr*Be(qe,Dr),be=ke,Ne.text=Ye+ke;Ne.text+=xt,ke+=xt,be+=xt,w["_"+It+"padplus"]=Mr/2+be,w["_"+It+"padminus"]=Mr/2-be,w["_"+It+"size"]=Mr,w["_"+It+"shift"]=ke}if(Qe){ce.remove();return}var tr=0,Ir=0;if(w.align!=="left"&&(tr=(nt-it)*(w.align==="center"?.5:1)),w.valign!=="top"&&(Ir=(Ae-et)*(w.valign==="middle"?.5:1)),Xe)ze.select("svg").attr({x:ee+tr-1,y:ee+Ir}).call(o.setClipUrl,oe?B:null,_);else{var vi=ee+Ir-tt.top,Vi=ee+tr-tt.left;re.call(n.positionText,Vi,vi).call(o.setClipUrl,oe?B:null,_)}ie.select("rect").call(o.setRect,ee,ee,nt,Ae),V.call(o.setRect,q/2,q/2,me-q,fe-q),ce.call(o.setTranslate,Math.round(I.x.text-me/2),Math.round(I.y.text-fe/2)),X.attr({transform:"rotate("+U+","+I.x.text+","+I.y.text+")"});var Ui=function(ea,Bi){O.selectAll(".annotation-arrow-g").remove();var _a=I.x.head,Ca=I.y.head,Kt=I.x.tail+ea,zt=I.y.tail+Bi,Zt=I.x.text+ea,Jt=I.y.text+Bi,Br=E.rotationXYMatrix(U,Zt,Jt),ri=E.apply2DTransform(Br),ii=E.apply2DTransform2(Br),di=+V.attr("width"),Wi=+V.attr("height"),oa=Zt-.5*di,ra=oa+di,ca=Jt-.5*Wi,xa=ca+Wi,ji=[[oa,ca,oa,xa],[oa,xa,ra,xa],[ra,xa,ra,ca],[ra,ca,oa,ca]].map(ii);if(!ji.reduce(function(yt,Xt){return yt^!!E.segmentsIntersect(_a,Ca,_a+1e6,Ca+1e6,Xt[0],Xt[1],Xt[2],Xt[3])},!1)){ji.forEach(function(yt){var Xt=E.segmentsIntersect(Kt,zt,_a,Ca,yt[0],yt[1],yt[2],yt[3]);Xt&&(Kt=Xt.x,zt=Xt.y)});var pn=w.arrowwidth,_n=w.arrowcolor,En=w.arrowside,bt=O.append("g").style({opacity:r.opacity(_n)}).classed("annotation-arrow-g",!0),st=bt.append("path").attr("d","M"+Kt+","+zt+"L"+_a+","+Ca).style("stroke-width",pn+"px").call(r.stroke,r.rgb(_n));if(c(st,En,w),y.annotationPosition&&st.node().parentNode&&!M){var Nr=_a,Lr=Ca;if(w.standoff){var br=Math.sqrt(Math.pow(_a-Kt,2)+Math.pow(Ca-zt,2));Nr+=w.standoff*(Kt-_a)/br,Lr+=w.standoff*(zt-Ca)/br}var Rr=bt.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(Kt-Nr)+","+(zt-Lr),transform:e(Nr,Lr)}).style("stroke-width",pn+6+"px").call(r.stroke,"rgba(0,0,0,0)").call(r.fill,"rgba(0,0,0,0)"),jr,Wr;s.init({element:Rr.node(),gd:_,prepFn:function(){var yt=o.getTranslate(ce);jr=yt.x,Wr=yt.y,g&&g.autorange&&z(g._name+".autorange",!0),b&&b.autorange&&z(b._name+".autorange",!0)},moveFn:function(yt,Xt){var mr=ri(jr,Wr),Or=mr[0]+yt,ki=mr[1]+Xt;ce.call(o.setTranslate,Or,ki),F("x",T(g,yt,"x",u,w)),F("y",T(b,Xt,"y",u,w)),w.axref===w.xref&&F("ax",T(g,yt,"ax",u,w)),w.ayref===w.yref&&F("ay",T(b,Xt,"ay",u,w)),bt.attr("transform",e(yt,Xt)),X.attr({transform:"rotate("+U+","+Or+","+ki+")"})},doneFn:function(){x.call("_guiRelayout",_,N());var yt=document.querySelector(".js-notes-box-panel");yt&&yt.redraw(yt.selectedObj)}})}}};if(w.showarrow&&Ui(0,0),J){var Ki;s.init({element:ce.node(),gd:_,prepFn:function(){Ki=X.attr("transform")},moveFn:function(ea,Bi){var _a="pointer";if(w.showarrow)w.axref===w.xref?F("ax",T(g,ea,"ax",u,w)):F("ax",w.ax+ea),w.ayref===w.yref?F("ay",T(b,Bi,"ay",u.w,w)):F("ay",w.ay+Bi),Ui(ea,Bi);else{if(M)return;var Ca,Kt;if(g)Ca=T(g,ea,"x",u,w);else{var zt=w._xsize/u.w,Zt=w.x+(w._xshift-w.xshift)/u.w-zt/2;Ca=s.align(Zt+ea/u.w,zt,0,1,w.xanchor)}if(b)Kt=T(b,Bi,"y",u,w);else{var Jt=w._ysize/u.h,Br=w.y-(w._yshift+w.yshift)/u.h-Jt/2;Kt=s.align(Br-Bi/u.h,Jt,0,1,w.yanchor)}F("x",Ca),F("y",Kt),(!g||!b)&&(_a=s.getCursor(g?.5:Ca,b?.5:Kt,w.xanchor,w.yanchor))}X.attr({transform:e(ea,Bi)+Ki}),a(ce,_a)},clickFn:function(ea,Bi){w.captureevents&&_.emit("plotly_clickannotation",le(Bi))},doneFn:function(){a(ce),x.call("_guiRelayout",_,N());var ea=document.querySelector(".js-notes-box-panel");ea&&ea.redraw(ea.selectedObj)}})}}y.annotationText?re.call(n.makeEditable,{delegate:ce,gd:_}).call(ue).on("edit",function(we){w.text=we,this.call(ue),F("text",we),g&&g.autorange&&z(g._name+".autorange",!0),b&&b.autorange&&z(b._name+".autorange",!0),x.call("_guiRelayout",_,N())}):re.call(ue)}}}),SE=De({"src/components/annotations/click.js"(Y,H){"use strict";var p=ui(),x=Mo(),S=Gl().arrayEditor;H.exports={hasClickToShow:E,onClick:e};function E(o,i){var n=t(o,i);return n.on.length>0||n.explicitOff.length>0}function e(o,i){var n=t(o,i),a=n.on,s=n.off.concat(n.explicitOff),h={},c=o._fullLayout.annotations,m,d;if(a.length||s.length){for(m=0;m<a.length;m++)d=S(o.layout,"annotations",c[a[m]]),d.modifyItem("visible",!0),p.extendFlat(h,d.getUpdateObj());for(m=0;m<s.length;m++)d=S(o.layout,"annotations",c[s[m]]),d.modifyItem("visible",!1),p.extendFlat(h,d.getUpdateObj());return x.call("update",o,{},h)}}function t(o,i){var n=o._fullLayout.annotations,a=[],s=[],h=[],c=(i||[]).length,m,d,T,l,_,w,A,M;for(m=0;m<n.length;m++)if(T=n[m],l=T.clicktoshow,l){for(d=0;d<c;d++)if(_=i[d],w=_.xaxis,A=_.yaxis,w._id===T.xref&&A._id===T.yref&&w.d2r(_.x)===r(T._xclick,w)&&A.d2r(_.y)===r(T._yclick,A)){T.visible?l==="onout"?M=s:M=h:M=a,M.push(m);break}d===c&&T.visible&&l==="onout"&&s.push(m)}return{on:a,off:s,explicitOff:h}}function r(o,i){return i.type==="log"?i.l2r(o):i.d2r(o)}}}),x2=De({"src/components/annotations/common_defaults.js"(Y,H){"use strict";var p=ui(),x=vo();H.exports=function(E,e,t,r){r("opacity");var o=r("bgcolor"),i=r("bordercolor"),n=x.opacity(i);r("borderpad");var a=r("borderwidth"),s=r("showarrow");r("text",s?" ":t._dfltTitle.annotation),r("textangle"),p.coerceFont(r,"font",t.font),r("width"),r("align");var h=r("height");if(h&&r("valign"),s){var c=r("arrowside"),m,d;c.indexOf("end")!==-1&&(m=r("arrowhead"),d=r("arrowsize")),c.indexOf("start")!==-1&&(r("startarrowhead",m),r("startarrowsize",d)),r("arrowcolor",n?e.bordercolor:x.defaultLine),r("arrowwidth",(n&&a||1)*2),r("standoff"),r("startstandoff")}var T=r("hovertext"),l=t.hoverlabel||{};if(T){var _=r("hoverlabel.bgcolor",l.bgcolor||(x.opacity(o)?x.rgb(o):x.defaultLine)),w=r("hoverlabel.bordercolor",l.bordercolor||x.contrast(_)),A=p.extendFlat({},l.font);A.color||(A.color=w),p.coerceFont(r,"hoverlabel.font",A)}r("captureevents",!!T)}}}),ME=De({"src/components/annotations/defaults.js"(Y,H){"use strict";var p=ui(),x=us(),S=Vh(),E=x2(),e=q0();H.exports=function(o,i){S(o,i,{name:"annotations",handleItemDefaults:t})};function t(r,o,i){function n(u,y){return p.coerce(r,o,e,u,y)}var a=n("visible"),s=n("clicktoshow");if(a||s){E(r,o,i,n);for(var h=o.showarrow,c=["x","y"],m=[-10,-30],d={_fullLayout:i},T=0;T<2;T++){var l=c[T],_=x.coerceRef(r,o,d,l,"","paper");if(_!=="paper"){var w=x.getFromId(d,_);w._annIndices.push(o._index)}if(x.coercePosition(o,d,n,_,l,.5),h){var A="a"+l,M=x.coerceRef(r,o,d,A,"pixel",["pixel","paper"]);M!=="pixel"&&M!==_&&(M=o[A]="pixel");var g=M==="pixel"?m[T]:.4;x.coercePosition(o,d,n,M,A,g)}n(l+"anchor"),n(l+"shift")}if(p.noneOrAll(r,o,["x","y"]),h&&p.noneOrAll(r,o,["ax","ay"]),s){var b=n("xclick"),v=n("yclick");o._xclick=b===void 0?o.x:x.cleanPosition(b,d,o.xref),o._yclick=v===void 0?o.y:x.cleanPosition(v,d,o.yref)}}}}}),EE=De({"src/components/annotations/calc_autorange.js"(Y,H){"use strict";var p=ui(),x=us(),S=F_().draw;H.exports=function(r){var o=r._fullLayout,i=p.filterVisible(o.annotations);if(i.length&&r._fullData.length)return p.syncOrAsync([S,E],r)};function E(t){var r=t._fullLayout;p.filterVisible(r.annotations).forEach(function(o){var i=x.getFromId(t,o.xref),n=x.getFromId(t,o.yref),a=x.getRefType(o.xref),s=x.getRefType(o.yref);o._extremes={},a==="range"&&e(o,i),s==="range"&&e(o,n)})}function e(t,r){var o=r._id,i=o.charAt(0),n=t[i],a=t["a"+i],s=t[i+"ref"],h=t["a"+i+"ref"],c=t["_"+i+"padplus"],m=t["_"+i+"padminus"],d={x:1,y:-1}[i]*t[i+"shift"],T=3*t.arrowsize*t.arrowwidth||0,l=T+d,_=T-d,w=3*t.startarrowsize*t.arrowwidth||0,A=w+d,M=w-d,g;if(h===s){var b=x.findExtremes(r,[r.r2c(n)],{ppadplus:l,ppadminus:_}),v=x.findExtremes(r,[r.r2c(a)],{ppadplus:Math.max(c,A),ppadminus:Math.max(m,M)});g={min:[b.min[0],v.min[0]],max:[b.max[0],v.max[0]]}}else A=a?A+a:A,M=a?M-a:M,g=x.findExtremes(r,[r.r2c(n)],{ppadplus:Math.max(c,l,A),ppadminus:Math.max(m,_,M)});t._extremes[o]=g}}}),kE=De({"src/components/annotations/convert_coords.js"(Y,H){"use strict";var p=vn(),x=Ac();H.exports=function(E,e,t,r){e=e||{};var o=t==="log"&&e.type==="linear",i=t==="linear"&&e.type==="log";if(!(o||i))return;var n=E._fullLayout.annotations,a=e._id.charAt(0),s,h;function c(d){var T=s[d],l=null;o?l=x(T,e.range):l=Math.pow(10,T),p(l)||(l=null),r(h+d,l)}for(var m=0;m<n.length;m++)s=n[m],h="annotations["+m+"].",s[a+"ref"]===e._id&&c(a),s["a"+a+"ref"]===e._id&&c("a"+a)}}}),CE=De({"src/components/annotations/index.js"(Y,H){"use strict";var p=F_(),x=SE();H.exports={moduleType:"component",name:"annotations",layoutAttributes:q0(),supplyLayoutDefaults:ME(),includeBasePlot:my()("annotations"),calcAutorange:EE(),draw:p.draw,drawOne:p.drawOne,drawRaw:p.drawRaw,hasClickToShow:x.hasClickToShow,onClick:x.onClick,convertCoords:kE()}}}),B_=De({"src/components/annotations3d/attributes.js"(Y,H){"use strict";var p=q0(),x=gc().overrideAll,S=Gl().templatedArray;H.exports=x(S("annotation",{visible:p.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:p.xanchor,xshift:p.xshift,yanchor:p.yanchor,yshift:p.yshift,text:p.text,textangle:p.textangle,font:p.font,width:p.width,height:p.height,opacity:p.opacity,align:p.align,valign:p.valign,bgcolor:p.bgcolor,bordercolor:p.bordercolor,borderpad:p.borderpad,borderwidth:p.borderwidth,showarrow:p.showarrow,arrowcolor:p.arrowcolor,arrowhead:p.arrowhead,startarrowhead:p.startarrowhead,arrowside:p.arrowside,arrowsize:p.arrowsize,startarrowsize:p.startarrowsize,arrowwidth:p.arrowwidth,standoff:p.standoff,startstandoff:p.startstandoff,hovertext:p.hovertext,hoverlabel:p.hoverlabel,captureevents:p.captureevents}),"calc","from-root")}}),LE=De({"src/components/annotations3d/defaults.js"(Y,H){"use strict";var p=ui(),x=us(),S=Vh(),E=x2(),e=B_();H.exports=function(o,i,n){S(o,i,{name:"annotations",handleItemDefaults:t,fullLayout:n.fullLayout})};function t(r,o,i,n){function a(c,m){return p.coerce(r,o,e,c,m)}function s(c){var m=c+"axis",d={_fullLayout:{}};return d._fullLayout[m]=i[m],x.coercePosition(o,d,a,c,c,.5)}var h=a("visible");h&&(E(r,o,n.fullLayout,a),s("x"),s("y"),s("z"),p.noneOrAll(r,o,["x","y","z"]),o.xref="x",o.yref="y",o.zref="z",a("xanchor"),a("yanchor"),a("xshift"),a("yshift"),o.showarrow&&(o.axref="pixel",o.ayref="pixel",a("ax",-10),a("ay",-30),p.noneOrAll(r,o,["ax","ay"])))}}}),IE=De({"src/components/annotations3d/convert.js"(Y,H){"use strict";var p=ui(),x=us();H.exports=function(e){for(var t=e.fullSceneLayout,r=t.annotations,o=0;o<r.length;o++)S(r[o],e);e.fullLayout._infolayer.selectAll(".annotation-"+e.id).remove()};function S(E,e){var t=e.fullSceneLayout,r=t.domain,o=e.fullLayout._size,i={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};E._xa={},p.extendFlat(E._xa,i),x.setConvert(E._xa),E._xa._offset=o.l+r.x[0]*o.w,E._xa.l2p=function(){return .5*(1+E._pdata[0]/E._pdata[3])*o.w*(r.x[1]-r.x[0])},E._ya={},p.extendFlat(E._ya,i),x.setConvert(E._ya),E._ya._offset=o.t+(1-r.y[1])*o.h,E._ya.l2p=function(){return .5*(1-E._pdata[1]/E._pdata[3])*o.h*(r.y[1]-r.y[0])}}}}),b2=De({"src/plots/gl3d/project.js"(Y,H){"use strict";function p(S,E){var e=[0,0,0,0],t,r;for(t=0;t<4;++t)for(r=0;r<4;++r)e[r]+=S[4*t+r]*E[t];return e}function x(S,E){var e=p(S.projection,p(S.view,p(S.model,[E[0],E[1],E[2],1])));return e}H.exports=x}}),PE=De({"src/components/annotations3d/draw.js"(Y,H){"use strict";var p=F_().drawRaw,x=b2(),S=["x","y","z"];H.exports=function(e){for(var t=e.fullSceneLayout,r=e.dataScale,o=t.annotations,i=0;i<o.length;i++){for(var n=o[i],a=!1,s=0;s<3;s++){var h=S[s],c=n[h],m=t[h+"axis"],d=m.r2fraction(c);if(d<0||d>1){a=!0;break}}a?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+i+'"]').remove():(n._pdata=x(e.glplot.cameraParams,[t.xaxis.r2l(n.x)*r[0],t.yaxis.r2l(n.y)*r[1],t.zaxis.r2l(n.z)*r[2]]),p(e.graphDiv,n,i,e.id,n._xa,n._ya))}}}}),RE=De({"src/components/annotations3d/index.js"(Y,H){"use strict";var p=Mo(),x=ui();H.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:B_()}}},layoutAttributes:B_(),handleDefaults:LE(),includeBasePlot:S,convert:IE(),draw:PE()};function S(E,e){var t=p.subplotsRegistry.gl3d;if(t)for(var r=t.attrRegex,o=Object.keys(E),i=0;i<o.length;i++){var n=o[i];r.test(n)&&(E[n].annotations||[]).length&&(x.pushUnique(e._basePlotModules,t),x.pushUnique(e._subplots.gl3d,n))}}}}),w2=De({"src/components/shapes/attributes.js"(Y,H){"use strict";var p=th(),x=qu(),S=lf().line,E=Ch().dash,e=Xo().extendFlat,t=Gl().templatedArray,r=py(),o=Yl(),i=q0(),{shapeTexttemplateAttrs:n,templatefallbackAttrs:a}=ou(),s=g_();H.exports=t("shape",{visible:e({},o.visible,{editType:"calc+arraydraw"}),showlegend:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},legend:e({},o.legend,{editType:"calc+arraydraw"}),legendgroup:e({},o.legendgroup,{editType:"calc+arraydraw"}),legendgrouptitle:{text:e({},o.legendgrouptitle.text,{editType:"calc+arraydraw"}),font:x({editType:"calc+arraydraw"}),editType:"calc+arraydraw"},legendrank:e({},o.legendrank,{editType:"calc+arraydraw"}),legendwidth:e({},o.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:e({},i.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:e({},i.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:e({},S.color,{editType:"arraydraw"}),width:e({},S.width,{editType:"calc+arraydraw"}),dash:e({},E,{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:n({},{keys:Object.keys(s)}),texttemplatefallback:a({editType:"arraydraw"}),font:x({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"})}}),DE=De({"src/components/shapes/defaults.js"(Y,H){"use strict";var p=ui(),x=us(),S=Vh(),E=w2(),e=Xp();H.exports=function(i,n){S(i,n,{name:"shapes",handleItemDefaults:r})};function t(o,i){return o?"bottom":i.indexOf("top")!==-1?"top":i.indexOf("bottom")!==-1?"bottom":"middle"}function r(o,i,n){function a(y,f){return p.coerce(o,i,E,y,f)}i._isShape=!0;var s=a("visible");if(!s)return;var h=a("showlegend");h&&(a("legend"),a("legendwidth"),a("legendgroup"),a("legendgrouptitle.text"),p.coerceFont(a,"legendgrouptitle.font"),a("legendrank"));var c=a("path"),m=c?"path":"rect",d=a("type",m),T=d!=="path";T&&delete i.path,a("editable"),a("layer"),a("opacity"),a("fillcolor"),a("fillrule");var l=a("line.width");l&&(a("line.color"),a("line.dash"));var _=a("xsizemode"),w=a("ysizemode");let A=[.25,.75],M=[0,10];["x","y"].forEach(y=>{var f=y+"anchor",R=y==="x"?_:w,L={_fullLayout:n},z,F,N,B;let I=y+"ref",U=o[I];if(Array.isArray(U)&&U.length>0){let O=e.countDefiningCoords(d,c,y);B=x.coerceRefArray(o,i,L,y,void 0,"paper",O),i["_"+y+"refArray"]=!0}else B=x.coerceRef(o,i,L,y,void 0,"paper");if(Array.isArray(B))B.forEach(function(O){x.getRefType(O)==="range"&&(z=x.getFromId(L,O),z&&z._shapeIndices.indexOf(i._index)===-1&&z._shapeIndices.push(i._index))}),T&&[0,1].forEach(function(O){let X=B[O];x.getRefType(X)==="range"?(z=x.getFromId(L,X),F=e.shapePositionToRange(z),N=e.rangeToShapePosition(z),(z.type==="category"||z.type==="multicategory")&&a(y+O+"shift")):F=N=p.identity;let se=y+O,le=o[se];if(o[se]=F(o[se],!0),R==="pixel"?a(se,M[O]):x.coercePosition(i,L,a,X,se,A[O]),i[se]=N(i[se]),o[se]=le,O===0&&R==="pixel"){let ce=o[f];o[f]=F(o[f],!0),x.coercePosition(i,L,a,X,f,.25),i[f]=N(i[f]),o[f]=ce}});else{if(x.getRefType(B)==="range"?(z=x.getFromId(L,B),z._shapeIndices.push(i._index),N=e.rangeToShapePosition(z),F=e.shapePositionToRange(z),T&&(z.type==="category"||z.type==="multicategory")&&(a(y+"0shift"),a(y+"1shift"))):F=N=p.identity,T){let X=y+"0",J=y+"1",se=o[X],le=o[J];o[X]=F(o[X],!0),o[J]=F(o[J],!0),R==="pixel"?(a(X,M[0]),a(J,M[1])):(x.coercePosition(i,L,a,B,X,A[0]),x.coercePosition(i,L,a,B,J,A[1])),i[X]=N(i[X]),i[J]=N(i[J]),o[X]=se,o[J]=le}if(R==="pixel"){let X=o[f];o[f]=F(o[f],!0),x.coercePosition(i,L,a,B,f,.25),i[f]=N(i[f]),o[f]=X}}}),T&&p.noneOrAll(o,i,["x0","x1","y0","y1"]);var g=d==="line",b,v;if(T&&(b=a("label.texttemplate"),a("label.texttemplatefallback")),b||(v=a("label.text")),v||b){a("label.textangle");var u=a("label.textposition",g?"middle":"middle center");a("label.xanchor"),a("label.yanchor",t(g,u)),a("label.padding"),p.coerceFont(a,"label.font",n.font)}}}}),zE=De({"src/components/shapes/draw_newshape/defaults.js"(Y,H){"use strict";var p=vo(),x=ui();function S(E,e){return E?"bottom":e.indexOf("top")!==-1?"top":e.indexOf("bottom")!==-1?"bottom":"middle"}H.exports=function(e,t,r){r("newshape.visible"),r("newshape.name"),r("newshape.showlegend"),r("newshape.legend"),r("newshape.legendwidth"),r("newshape.legendgroup"),r("newshape.legendgrouptitle.text"),x.coerceFont(r,"newshape.legendgrouptitle.font"),r("newshape.legendrank"),r("newshape.drawdirection"),r("newshape.layer"),r("newshape.fillcolor"),r("newshape.fillrule"),r("newshape.opacity");var o=r("newshape.line.width");if(o){var i=(e||{}).plot_bgcolor||"#FFF";r("newshape.line.color",p.contrast(i)),r("newshape.line.dash")}var n=e.dragmode==="drawline",a=r("newshape.label.text"),s=r("newshape.label.texttemplate");if(r("newshape.label.texttemplatefallback"),a||s){r("newshape.label.textangle");var h=r("newshape.label.textposition",n?"middle":"middle center");r("newshape.label.xanchor"),r("newshape.label.yanchor",S(n,h)),r("newshape.label.padding"),x.coerceFont(r,"newshape.label.font",t.font)}r("activeshape.fillcolor"),r("activeshape.opacity")}}}),FE=De({"src/components/shapes/calc_autorange.js"(Y,H){"use strict";var p=ui(),x=us(),S=hy(),E=Xp();H.exports=function(a){var s=a._fullLayout,h=p.filterVisible(s.shapes);if(!(!h.length||!a._fullData.length))for(var c=0;c<h.length;c++){var m=h[c];m._extremes={};var d,T,l=x.getRefType(m.xref),_=x.getRefType(m.yref);if(l==="array"){let w=e(a,m,"x");Object.entries(w).forEach(([A,M])=>{d=x.getFromId(a,A),m._extremes[d._id]=x.findExtremes(d,M,t(m))})}else m.xref!=="paper"&&l!=="domain"&&(d=x.getFromId(a,m.xref),T=i(d,m,S.paramIsX),T&&(m._extremes[d._id]=x.findExtremes(d,T,t(m))));if(_==="array"){let w=e(a,m,"y");Object.entries(w).forEach(([A,M])=>{d=x.getFromId(a,A),m._extremes[d._id]=x.findExtremes(d,M,r(m))})}else m.yref!=="paper"&&_!=="domain"&&(d=x.getFromId(a,m.yref),T=i(d,m,S.paramIsY),T&&(m._extremes[d._id]=x.findExtremes(d,T,r(m))))}};function e(n,a,s){let h=a[s+"ref"],c=s==="x"?S.paramIsX:S.paramIsY;function m(A,M){A==="paper"||x.getRefType(A)==="domain"||(d[A]||(d[A]=[]),d[A].push(M))}let d={};if(a.type==="path"&&a.path){let A=a.path.match(S.segmentRE)||[];for(var T=0,l=0;l<A.length;l++){let M=A[l],g=M.charAt(0),b=c[g].drawn;if(b===void 0)continue;let v=M.slice(1).match(S.paramRE);v&&v.length>b&&(m(h[T],v[b]),T++)}}else m(h[0],a[s+"0"]),m(h[1],a[s+"1"]);let _={};for(let A in d){let M=x.getFromId(n,A);if(M){var w=M.type==="category"||M.type==="multicategory"?M.r2c:M.d2c;M.type==="date"&&(w=E.decodeDate(w)),_[M._id]=d[A].map(w)}}return _}function t(n){return o(n.line.width,n.xsizemode,n.x0,n.x1,n.path,!1)}function r(n){return o(n.line.width,n.ysizemode,n.y0,n.y1,n.path,!0)}function o(n,a,s,h,c,m){var d=n/2,T=m;if(a==="pixel"){var l=c?E.extractPathCoords(c,m?S.paramIsY:S.paramIsX):[s,h],_=p.aggNums(Math.max,null,l),w=p.aggNums(Math.min,null,l),A=w<0?Math.abs(w)+d:d,M=_>0?_+d:d;return{ppad:d,ppadplus:T?A:M,ppadminus:T?M:A}}else return{ppad:d}}function i(n,a,s){var h=n._id.charAt(0)==="x"?"x":"y",c=n.type==="category"||n.type==="multicategory",m,d,T=0,l=0,_=c?n.r2c:n.d2c,w=a[h+"sizemode"]==="scaled";if(w?(m=a[h+"0"],d=a[h+"1"],c&&(T=a[h+"0shift"],l=a[h+"1shift"])):(m=a[h+"anchor"],d=a[h+"anchor"]),m!==void 0)return[_(m)+T,_(d)+l];if(a.path){var A=1/0,M=-1/0,g=a.path.match(S.segmentRE),b,v,u,y,f;for(n.type==="date"&&(_=E.decodeDate(_)),b=0;b<g.length;b++)v=g[b],u=s[v.charAt(0)].drawn,u!==void 0&&(y=g[b].slice(1).match(S.paramRE),!(!y||y.length<u)&&(f=_(y[u]),f<A&&(A=f),f>M&&(M=f)));if(M>=A)return[A,M]}}}}),BE=De({"src/components/shapes/index.js"(Y,H){"use strict";var p=C_();H.exports={moduleType:"component",name:"shapes",layoutAttributes:w2(),supplyLayoutDefaults:DE(),supplyDrawNewShapeDefaults:zE(),includeBasePlot:my()("shapes"),calcAutorange:FE(),draw:p.draw,drawOne:p.drawOne}}}),T2=De({"src/components/images/attributes.js"(Y,H){"use strict";var p=th(),x=Gl().templatedArray,S=py();H.exports=x("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",p.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",p.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})}}),OE=De({"src/components/images/defaults.js"(Y,H){"use strict";var p=ui(),x=us(),S=Vh(),E=T2(),e="images";H.exports=function(o,i){var n={name:e,handleItemDefaults:t};S(o,i,n)};function t(r,o,i){function n(_,w){return p.coerce(r,o,E,_,w)}var a=n("source"),s=n("visible",!!a);if(!s)return o;n("layer"),n("xanchor"),n("yanchor"),n("sizex"),n("sizey"),n("sizing"),n("opacity");for(var h={_fullLayout:i},c=["x","y"],m=0;m<2;m++){var d=c[m],T=x.coerceRef(r,o,h,d,"paper",void 0);if(T!=="paper"){var l=x.getFromId(h,T);l._imgIndices.push(o._index)}x.coercePosition(o,h,n,T,d,0)}return o}}}),NE=De({"src/components/images/draw.js"(Y,H){"use strict";var p=za(),x=ys(),S=us(),E=nf(),e=Bd();H.exports=function(r){var o=r._fullLayout,i=[],n={},a=[],s,h;for(h=0;h<o.images.length;h++){var c=o.images[h];if(c.visible)if(c.layer==="below"&&c.xref!=="paper"&&c.yref!=="paper"){s=E.ref2id(c.xref)+E.ref2id(c.yref);var m=o._plots[s];if(!m){a.push(c);continue}m.mainplot&&(s=m.mainplot.id),n[s]||(n[s]=[]),n[s].push(c)}else c.layer==="above"?i.push(c):a.push(c)}var d={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 T(u){var y=p.select(this);if(this._imgSrc!==u.source)if(y.attr("xmlns",e.svg),!r._context.staticPlot||u.source&&u.source.slice(0,5)==="data:")y.attr("xlink:href",u.source),this._imgSrc=u.source;else{var f=new Promise(function(R){var L=new Image;this.img=L,L.setAttribute("crossOrigin","anonymous"),L.onerror=z,L.onload=function(){var F=document.createElement("canvas");F.width=this.width,F.height=this.height;var N=F.getContext("2d",{willReadFrequently:!0});N.drawImage(this,0,0);var B=F.toDataURL("image/png");y.attr("xlink:href",B),R()},y.on("error",z),L.src=u.source,this._imgSrc=u.source;function z(){y.remove(),R()}}.bind(this));r._promises.push(f)}}function l(u){var y=p.select(this),f=S.getFromId(r,u.xref),R=S.getFromId(r,u.yref),L=S.getRefType(u.xref)==="domain",z=S.getRefType(u.yref)==="domain",F=o._size,N,B;f!==void 0?N=typeof u.xref=="string"&&L?f._length*u.sizex:Math.abs(f.l2p(u.sizex)-f.l2p(0)):N=u.sizex*F.w,R!==void 0?B=typeof u.yref=="string"&&z?R._length*u.sizey:Math.abs(R.l2p(u.sizey)-R.l2p(0)):B=u.sizey*F.h;var I=N*d.x[u.xanchor].offset,U=B*d.y[u.yanchor].offset,O=d.x[u.xanchor].sizing+d.y[u.yanchor].sizing,X,J;switch(f!==void 0?X=typeof u.xref=="string"&&L?f._length*u.x+f._offset:f.r2p(u.x)+f._offset:X=u.x*F.w+F.l,X+=I,R!==void 0?J=typeof u.yref=="string"&&z?R._length*(1-u.y)+R._offset:R.r2p(u.y)+R._offset:J=F.h-u.y*F.h+F.t,J+=U,u.sizing){case"fill":O+=" slice";break;case"stretch":O="none";break}y.attr({x:X,y:J,width:N,height:B,preserveAspectRatio:O,opacity:u.opacity});var se=f&&S.getRefType(u.xref)!=="domain"?f._id:"",le=R&&S.getRefType(u.yref)!=="domain"?R._id:"",ce=se+le;x.setClipUrl(y,ce?"clip"+o._uid+ce:null,r)}function _(u){return[u.xref,u.x,u.sizex,u.yref,u.y,u.sizey].join("_")}function w(u,y){return u._index-y._index}var A=o._imageLowerLayer.selectAll("image").data(a,_),M=o._imageUpperLayer.selectAll("image").data(i,_);A.enter().append("image"),M.enter().append("image"),A.exit().remove(),M.exit().remove(),A.each(function(u){T.bind(this)(u),l.bind(this)(u)}),M.each(function(u){T.bind(this)(u),l.bind(this)(u)}),A.sort(w),M.sort(w);var g=Object.keys(o._plots);for(h=0;h<g.length;h++){s=g[h];var b=o._plots[s];if(b.imagelayer){var v=b.imagelayer.selectAll("image").data(n[s]||[],_);v.enter().append("image"),v.exit().remove(),v.each(function(u){T.bind(this)(u),l.bind(this)(u)}),v.sort(w)}}}}}),UE=De({"src/components/images/convert_coords.js"(Y,H){"use strict";var p=vn(),x=Ac();H.exports=function(E,e,t,r){e=e||{};var o=t==="log"&&e.type==="linear",i=t==="linear"&&e.type==="log";if(o||i){for(var n=E._fullLayout.images,a=e._id.charAt(0),s,h,c=0;c<n.length;c++)if(s=n[c],h="images["+c+"].",s[a+"ref"]===e._id){var m=s[a],d=s["size"+a],T=null,l=null;if(o){T=x(m,e.range);var _=d/Math.pow(10,T)/2;l=2*Math.log(_+Math.sqrt(1+_*_))/Math.LN10}else T=Math.pow(10,m),l=T*(Math.pow(10,d/2)-Math.pow(10,-d/2));p(T)?p(l)||(l=null):(T=null,l=null),r(h+a,T),r(h+"size"+a,l)}}}}}),jE=De({"src/components/images/index.js"(Y,H){"use strict";H.exports={moduleType:"component",name:"images",layoutAttributes:T2(),supplyLayoutDefaults:OE(),includeBasePlot:my()("images"),draw:NE(),convertCoords:UE()}}}),O_=De({"src/components/updatemenus/constants.js"(Y,H){"use strict";H.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"}}}}),A2=De({"src/components/updatemenus/attributes.js"(Y,H){"use strict";var p=qu(),x=Pf(),S=Xo().extendFlat,E=gc().overrideAll,e=y_(),t=Gl().templatedArray,r=t("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}});H.exports=E(t("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:r,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:S(e({editType:"arraydraw"}),{}),font:p({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:x.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")}}),VE=De({"src/components/updatemenus/defaults.js"(Y,H){"use strict";var p=ui(),x=Vh(),S=A2(),E=O_(),e=E.name,t=S.buttons;H.exports=function(n,a){var s={name:e,handleItemDefaults:r};x(n,a,s)};function r(i,n,a){function s(m,d){return p.coerce(i,n,S,m,d)}var h=x(i,n,{name:"buttons",handleItemDefaults:o}),c=s("visible",h.length>0);c&&(s("active"),s("direction"),s("type"),s("showactive"),s("x"),s("y"),p.noneOrAll(i,n,["x","y"]),s("xanchor"),s("yanchor"),s("pad.t"),s("pad.r"),s("pad.b"),s("pad.l"),p.coerceFont(s,"font",a.font),s("bgcolor",a.paper_bgcolor),s("bordercolor"),s("borderwidth"))}function o(i,n){function a(h,c){return p.coerce(i,n,t,h,c)}var s=a("visible",i.method==="skip"||Array.isArray(i.args));s&&(a("method"),a("args"),a("args2"),a("label"),a("execute"))}}}),qE=De({"src/components/updatemenus/scrollbox.js"(Y,H){"use strict";H.exports=e;var p=za(),x=vo(),S=ys(),E=ui();function e(t,r,o){this.gd=t,this.container=r,this.id=o,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}e.barWidth=2,e.barLength=20,e.barRadius=2,e.barPad=1,e.barColor="#808BA4",e.prototype.enable=function(r,o,i){var n=this.gd._fullLayout,a=n.width,s=n.height;this.position=r;var h=this.position.l,c=this.position.w,m=this.position.t,d=this.position.h,T=this.position.direction,l=T==="down",_=T==="left",w=T==="right",A=T==="up",M=c,g=d,b,v,u,y;!l&&!_&&!w&&!A&&(this.position.direction="down",l=!0);var f=l||A;f?(b=h,v=b+M,l?(u=m,y=Math.min(u+g,s),g=y-u):(y=m+g,u=Math.max(y-g,0),g=y-u)):(u=m,y=u+g,_?(v=h+M,b=Math.max(v-M,0),M=v-b):(b=h,v=Math.min(b+M,a),M=v-b)),this._box={l:b,t:u,w:M,h:g};var R=c>M,L=e.barLength+2*e.barPad,z=e.barWidth+2*e.barPad,F=h,N=m+d;N+z>s&&(N=s-z);var B=this.container.selectAll("rect.scrollbar-horizontal").data(R?[0]:[]);B.exit().on(".drag",null).remove(),B.enter().append("rect").classed("scrollbar-horizontal",!0).call(x.fill,e.barColor),R?(this.hbar=B.attr({rx:e.barRadius,ry:e.barRadius,x:F,y:N,width:L,height:z}),this._hbarXMin=F+L/2,this._hbarTranslateMax=M-L):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var I=d>g,U=e.barWidth+2*e.barPad,O=e.barLength+2*e.barPad,X=h+c,J=m;X+U>a&&(X=a-U);var se=this.container.selectAll("rect.scrollbar-vertical").data(I?[0]:[]);se.exit().on(".drag",null).remove(),se.enter().append("rect").classed("scrollbar-vertical",!0).call(x.fill,e.barColor),I?(this.vbar=se.attr({rx:e.barRadius,ry:e.barRadius,x:X,y:J,width:U,height:O}),this._vbarYMin=J+O/2,this._vbarTranslateMax=g-O):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var le=this.id,ce=b-.5,q=I?v+U+.5:v+.5,Z=u-.5,ee=R?y+z+.5:y+.5,V=n._topdefs.selectAll("#"+le).data(R||I?[0]:[]);if(V.exit().remove(),V.enter().append("clipPath").attr("id",le).append("rect"),R||I?(this._clipRect=V.select("rect").attr({x:Math.floor(ce),y:Math.floor(Z),width:Math.ceil(q)-Math.floor(ce),height:Math.ceil(ee)-Math.floor(Z)}),this.container.call(S.setClipUrl,le,this.gd),this.bg.attr({x:h,y:m,width:c,height:d})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(S.setClipUrl,null),delete this._clipRect),R||I){var oe=p.behavior.drag().on("dragstart",function(){p.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(oe);var ie=p.behavior.drag().on("dragstart",function(){p.event.sourceEvent.preventDefault(),p.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));R&&this.hbar.on(".drag",null).call(ie),I&&this.vbar.on(".drag",null).call(ie)}this.setTranslate(o,i)},e.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(S.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)},e.prototype._onBoxDrag=function(){var r=this.translateX,o=this.translateY;this.hbar&&(r-=p.event.dx),this.vbar&&(o-=p.event.dy),this.setTranslate(r,o)},e.prototype._onBoxWheel=function(){var r=this.translateX,o=this.translateY;this.hbar&&(r+=p.event.deltaY),this.vbar&&(o+=p.event.deltaY),this.setTranslate(r,o)},e.prototype._onBarDrag=function(){var r=this.translateX,o=this.translateY;if(this.hbar){var i=r+this._hbarXMin,n=i+this._hbarTranslateMax,a=E.constrain(p.event.x,i,n),s=(a-i)/(n-i),h=this.position.w-this._box.w;r=s*h}if(this.vbar){var c=o+this._vbarYMin,m=c+this._vbarTranslateMax,d=E.constrain(p.event.y,c,m),T=(d-c)/(m-c),l=this.position.h-this._box.h;o=T*l}this.setTranslate(r,o)},e.prototype.setTranslate=function(r,o){var i=this.position.w-this._box.w,n=this.position.h-this._box.h;if(r=E.constrain(r||0,0,i),o=E.constrain(o||0,0,n),this.translateX=r,this.translateY=o,this.container.call(S.setTranslate,this._box.l-this.position.l-r,this._box.t-this.position.t-o),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+r-.5),y:Math.floor(this.position.t+o-.5)}),this.hbar){var a=r/i;this.hbar.call(S.setTranslate,r+a*this._hbarTranslateMax,o)}if(this.vbar){var s=o/n;this.vbar.call(S.setTranslate,r,o+s*this._vbarTranslateMax)}}}}),HE=De({"src/components/updatemenus/draw.js"(Y,H){"use strict";var p=za(),x=Mc(),S=vo(),E=ys(),e=ui(),t=vu(),r=Gl().arrayEditor,o=rh().LINE_SPACING,i=O_(),n=qE();H.exports=function(L){var z=L._fullLayout,F=e.filterVisible(z[i.name]);function N(le){x.autoMargin(L,u(le))}var B=z._menulayer.selectAll("g."+i.containerClassName).data(F.length>0?[0]:[]);if(B.enter().append("g").classed(i.containerClassName,!0).style("cursor","pointer"),B.exit().each(function(){p.select(this).selectAll("g."+i.headerGroupClassName).each(N)}).remove(),F.length!==0){var I=B.selectAll("g."+i.headerGroupClassName).data(F,a);I.enter().append("g").classed(i.headerGroupClassName,!0);for(var U=e.ensureSingle(B,"g",i.dropdownButtonGroupClassName,function(le){le.style("pointer-events","all")}),O=0;O<F.length;O++){var X=F[O];v(L,X)}var J="updatemenus"+z._uid,se=new n(L,U,J);I.enter().size()&&(U.node().parentNode.appendChild(U.node()),U.call(f)),I.exit().each(function(le){U.call(f),N(le)}).remove(),I.each(function(le){var ce=p.select(this),q=le.type==="dropdown"?U:null;x.manageCommandObserver(L,le,le.buttons,function(Z){c(L,le,le.buttons[Z.index],ce,q,se,Z.index,!0)}),le.type==="dropdown"?(m(L,ce,U,se,le),h(U,le)&&d(L,ce,U,se,le)):d(L,ce,null,null,le)})}};function a(R){return R._index}function s(R){return+R.attr(i.menuIndexAttrName)==-1}function h(R,L){return+R.attr(i.menuIndexAttrName)===L._index}function c(R,L,z,F,N,B,I,U){L.active=I,r(R.layout,i.name,L).applyUpdate("active",I),L.type==="buttons"?d(R,F,null,null,L):L.type==="dropdown"&&(N.attr(i.menuIndexAttrName,"-1"),m(R,F,N,B,L),U||d(R,F,N,B,L))}function m(R,L,z,F,N){var B=e.ensureSingle(L,"g",i.headerClassName,function(le){le.style("pointer-events","all")}),I=N._dims,U=N.active,O=N.buttons[U]||i.blankHeaderOpts,X={y:N.pad.t,yPad:0,x:N.pad.l,xPad:0,index:0},J={width:I.headerWidth,height:I.headerHeight};B.call(_,N,O,R).call(y,N,X,J);var se=e.ensureSingle(L,"text",i.headerArrowClassName,function(le){le.attr("text-anchor","end").call(E.font,N.font).text(i.arrowSymbol[N.direction])});se.attr({x:I.headerWidth-i.arrowOffsetX+N.pad.l,y:I.headerHeight/2+i.textOffsetY+N.pad.t}),B.on("click",function(){z.call(f,String(h(z,N)?-1:N._index)),d(R,L,z,F,N)}),B.on("mouseover",function(){B.call(g)}),B.on("mouseout",function(){B.call(b,N)}),E.setTranslate(L,I.lx,I.ly)}function d(R,L,z,F,N){z||(z=L,z.attr("pointer-events","all"));var B=!s(z)||N.type==="buttons"?N.buttons:[],I=N.type==="dropdown"?i.dropdownButtonClassName:i.buttonClassName,U=z.selectAll("g."+I).data(e.filterVisible(B)),O=U.enter().append("g").classed(I,!0),X=U.exit();N.type==="dropdown"?(O.attr("opacity","0").transition().attr("opacity","1"),X.transition().attr("opacity","0").remove()):X.remove();var J=0,se=0,le=N._dims,ce=["up","down"].indexOf(N.direction)!==-1;N.type==="dropdown"&&(ce?se=le.headerHeight+i.gapButtonHeader:J=le.headerWidth+i.gapButtonHeader),N.type==="dropdown"&&N.direction==="up"&&(se=-i.gapButtonHeader+i.gapButton-le.openHeight),N.type==="dropdown"&&N.direction==="left"&&(J=-i.gapButtonHeader+i.gapButton-le.openWidth);var q={x:le.lx+J+N.pad.l,y:le.ly+se+N.pad.t,yPad:i.gapButton,xPad:i.gapButton,index:0},Z={l:q.x+N.borderwidth,t:q.y+N.borderwidth};U.each(function(ee,V){var oe=p.select(this);oe.call(_,N,ee,R).call(y,N,q),oe.on("click",function(){p.event.defaultPrevented||(ee.execute&&(ee.args2&&N.active===V?(c(R,N,ee,L,z,F,-1),x.executeAPICommand(R,ee.method,ee.args2)):(c(R,N,ee,L,z,F,V),x.executeAPICommand(R,ee.method,ee.args))),R.emit("plotly_buttonclicked",{menu:N,button:ee,active:N.active}))}),oe.on("mouseover",function(){oe.call(g)}),oe.on("mouseout",function(){oe.call(b,N),U.call(M,N)})}),U.call(M,N),ce?(Z.w=Math.max(le.openWidth,le.headerWidth),Z.h=q.y-Z.t):(Z.w=q.x-Z.l,Z.h=Math.max(le.openHeight,le.headerHeight)),Z.direction=N.direction,F&&(U.size()?T(R,L,z,F,N,Z):l(F))}function T(R,L,z,F,N,B){var I=N.direction,U=I==="up"||I==="down",O=N._dims,X=N.active,J,se,le;if(U)for(se=0,le=0;le<X;le++)se+=O.heights[le]+i.gapButton;else for(J=0,le=0;le<X;le++)J+=O.widths[le]+i.gapButton;F.enable(B,J,se),F.hbar&&F.hbar.attr("opacity","0").transition().attr("opacity","1"),F.vbar&&F.vbar.attr("opacity","0").transition().attr("opacity","1")}function l(R){var L=!!R.hbar,z=!!R.vbar;L&&R.hbar.transition().attr("opacity","0").each("end",function(){L=!1,z||R.disable()}),z&&R.vbar.transition().attr("opacity","0").each("end",function(){z=!1,L||R.disable()})}function _(R,L,z,F){R.call(w,L).call(A,L,z,F)}function w(R,L){var z=e.ensureSingle(R,"rect",i.itemRectClassName,function(F){F.attr({rx:i.rx,ry:i.ry,"shape-rendering":"crispEdges"})});z.call(S.stroke,L.bordercolor).call(S.fill,L.bgcolor).style("stroke-width",L.borderwidth+"px")}function A(R,L,z,F){var N=e.ensureSingle(R,"text",i.itemTextClassName,function(U){U.attr({"text-anchor":"start","data-notex":1})}),B=z.label,I=F._fullLayout._meta;I&&(B=e.templateString(B,I)),N.call(E.font,L.font).text(B).call(t.convertToTspans,F)}function M(R,L){var z=L.active;R.each(function(F,N){var B=p.select(this);N===z&&L.showactive&&B.select("rect."+i.itemRectClassName).call(S.fill,i.activeColor)})}function g(R){R.select("rect."+i.itemRectClassName).call(S.fill,i.hoverColor)}function b(R,L){R.select("rect."+i.itemRectClassName).call(S.fill,L.bgcolor)}function v(R,L){var z=L._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},F=E.tester.selectAll("g."+i.dropdownButtonClassName).data(e.filterVisible(L.buttons));F.enter().append("g").classed(i.dropdownButtonClassName,!0);var N=["up","down"].indexOf(L.direction)!==-1;F.each(function(J,se){var le=p.select(this);le.call(_,L,J,R);var ce=le.select("."+i.itemTextClassName),q=ce.node()&&E.bBox(ce.node()).width,Z=Math.max(q+i.textPadX,i.minWidth),ee=L.font.size*o,V=t.lineCount(ce),oe=Math.max(ee*V,i.minHeight)+i.textOffsetY;oe=Math.ceil(oe),Z=Math.ceil(Z),z.widths[se]=Z,z.heights[se]=oe,z.height1=Math.max(z.height1,oe),z.width1=Math.max(z.width1,Z),N?(z.totalWidth=Math.max(z.totalWidth,Z),z.openWidth=z.totalWidth,z.totalHeight+=oe+i.gapButton,z.openHeight+=oe+i.gapButton):(z.totalWidth+=Z+i.gapButton,z.openWidth+=Z+i.gapButton,z.totalHeight=Math.max(z.totalHeight,oe),z.openHeight=z.totalHeight)}),N?z.totalHeight-=i.gapButton:z.totalWidth-=i.gapButton,z.headerWidth=z.width1+i.arrowPadX,z.headerHeight=z.height1,L.type==="dropdown"&&(N?(z.width1+=i.arrowPadX,z.totalHeight=z.height1):z.totalWidth=z.width1,z.totalWidth+=i.arrowPadX),F.remove();var B=z.totalWidth+L.pad.l+L.pad.r,I=z.totalHeight+L.pad.t+L.pad.b,U=R._fullLayout._size;z.lx=U.l+U.w*L.x,z.ly=U.t+U.h*(1-L.y);var O="left";e.isRightAnchor(L)&&(z.lx-=B,O="right"),e.isCenterAnchor(L)&&(z.lx-=B/2,O="center");var X="top";e.isBottomAnchor(L)&&(z.ly-=I,X="bottom"),e.isMiddleAnchor(L)&&(z.ly-=I/2,X="middle"),z.totalWidth=Math.ceil(z.totalWidth),z.totalHeight=Math.ceil(z.totalHeight),z.lx=Math.round(z.lx),z.ly=Math.round(z.ly),x.autoMargin(R,u(L),{x:L.x,y:L.y,l:B*({right:1,center:.5}[O]||0),r:B*({left:1,center:.5}[O]||0),b:I*({top:1,middle:.5}[X]||0),t:I*({bottom:1,middle:.5}[X]||0)})}function u(R){return i.autoMarginIdRoot+R._index}function y(R,L,z,F){F=F||{};var N=R.select("."+i.itemRectClassName),B=R.select("."+i.itemTextClassName),I=L.borderwidth,U=z.index,O=L._dims;E.setTranslate(R,I+z.x,I+z.y);var X=["up","down"].indexOf(L.direction)!==-1,J=F.height||(X?O.heights[U]:O.height1);N.attr({x:0,y:0,width:F.width||(X?O.width1:O.widths[U]),height:J});var se=L.font.size*o,le=t.lineCount(B),ce=(le-1)*se/2;t.positionText(B,i.textOffsetX,J/2-ce+i.textOffsetY),X?z.y+=O.heights[U]+z.yPad:z.x+=O.widths[U]+z.xPad,z.index++}function f(R,L){R.attr(i.menuIndexAttrName,L||"-1").selectAll("g."+i.dropdownButtonClassName).remove()}}}),GE=De({"src/components/updatemenus/index.js"(Y,H){"use strict";var p=O_();H.exports={moduleType:"component",name:p.name,layoutAttributes:A2(),supplyLayoutDefaults:VE(),draw:HE()}}}),_y=De({"src/components/sliders/constants.js"(Y,H){"use strict";H.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}}}),S2=De({"src/components/sliders/attributes.js"(Y,H){"use strict";var p=qu(),x=y_(),S=Xo().extendDeepAll,E=gc().overrideAll,e=oy(),t=Gl().templatedArray,r=_y(),o=t("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}});H.exports=E(t("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:o,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:S(x({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:e.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:p({})},font:p({}),activebgcolor:{valType:"color",dflt:r.gripBgActiveColor},bgcolor:{valType:"color",dflt:r.railBgColor},bordercolor:{valType:"color",dflt:r.railBorderColor},borderwidth:{valType:"number",min:0,dflt:r.railBorderWidth},ticklen:{valType:"number",min:0,dflt:r.tickLength},tickcolor:{valType:"color",dflt:r.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:r.minorTickLength}}),"arraydraw","from-root")}}),WE=De({"src/components/sliders/defaults.js"(Y,H){"use strict";var p=ui(),x=Vh(),S=S2(),E=_y(),e=E.name,t=S.steps;H.exports=function(n,a){x(n,a,{name:e,handleItemDefaults:r})};function r(i,n,a){function s(w,A){return p.coerce(i,n,S,w,A)}for(var h=x(i,n,{name:"steps",handleItemDefaults:o}),c=0,m=0;m<h.length;m++)h[m].visible&&c++;var d;if(c<2?d=n.visible=!1:d=s("visible"),!!d){n._stepCount=c;var T=n._visibleSteps=p.filterVisible(h),l=s("active");(h[l]||{}).visible||(n.active=T[0]._index),s("x"),s("y"),p.noneOrAll(i,n,["x","y"]),s("xanchor"),s("yanchor"),s("len"),s("lenmode"),s("pad.t"),s("pad.r"),s("pad.b"),s("pad.l"),p.coerceFont(s,"font",a.font);var _=s("currentvalue.visible");_&&(s("currentvalue.xanchor"),s("currentvalue.prefix"),s("currentvalue.suffix"),s("currentvalue.offset"),p.coerceFont(s,"currentvalue.font",n.font)),s("transition.duration"),s("transition.easing"),s("bgcolor"),s("activebgcolor"),s("bordercolor"),s("borderwidth"),s("ticklen"),s("tickwidth"),s("tickcolor"),s("minorticklen")}}function o(i,n){function a(c,m){return p.coerce(i,n,t,c,m)}var s;if(i.method!=="skip"&&!Array.isArray(i.args)?s=n.visible=!1:s=a("visible"),s){a("method"),a("args");var h=a("label","step-"+n._index);a("value",h),a("execute")}}}}),XE=De({"src/components/sliders/draw.js"(Y,H){"use strict";var p=za(),x=Mc(),S=vo(),E=ys(),e=ui(),t=e.strTranslate,r=vu(),o=Gl().arrayEditor,i=_y(),n=rh(),a=n.LINE_SPACING,s=n.FROM_TL,h=n.FROM_BR;H.exports=function(B){var I=B._context.staticPlot,U=B._fullLayout,O=m(U,B),X=U._infolayer.selectAll("g."+i.containerClassName).data(O.length>0?[0]:[]);X.enter().append("g").classed(i.containerClassName,!0).style("cursor",I?null:"ew-resize");function J(q){q._commandObserver&&(q._commandObserver.remove(),delete q._commandObserver),x.autoMargin(B,c(q))}if(X.exit().each(function(){p.select(this).selectAll("g."+i.groupClassName).each(J)}).remove(),O.length!==0){var se=X.selectAll("g."+i.groupClassName).data(O,d);se.enter().append("g").classed(i.groupClassName,!0),se.exit().each(J).remove();for(var le=0;le<O.length;le++){var ce=O[le];T(B,ce)}se.each(function(q){var Z=p.select(this);y(q),x.manageCommandObserver(B,q,q._visibleSteps,function(ee){var V=Z.data()[0];V.active!==ee.index&&(V._dragging||b(B,Z,V,ee.index,!1,!0))}),l(B,p.select(this),q)})}};function c(N){return i.autoMarginIdRoot+N._index}function m(N,B){for(var I=N[i.name],U=[],O=0;O<I.length;O++){var X=I[O];X.visible&&(X._gd=B,U.push(X))}return U}function d(N){return N._index}function T(N,B){var I=E.tester.selectAll("g."+i.labelGroupClass).data(B._visibleSteps);I.enter().append("g").classed(i.labelGroupClass,!0);var U=0,O=0;I.each(function(oe){var ie=p.select(this),j=A(ie,{step:oe},B),Q=j.node();if(Q){var re=E.bBox(Q);O=Math.max(O,re.height),U=Math.max(U,re.width)}}),I.remove();var X=B._dims={};X.inputAreaWidth=Math.max(i.railWidth,i.gripHeight);var J=N._fullLayout._size;X.lx=J.l+J.w*B.x,X.ly=J.t+J.h*(1-B.y),B.lenmode==="fraction"?X.outerLength=Math.round(J.w*B.len):X.outerLength=B.len,X.inputAreaStart=0,X.inputAreaLength=Math.round(X.outerLength-B.pad.l-B.pad.r);var se=X.inputAreaLength-2*i.stepInset,le=se/(B._stepCount-1),ce=U+i.labelPadding;if(X.labelStride=Math.max(1,Math.ceil(ce/le)),X.labelHeight=O,X.currentValueMaxWidth=0,X.currentValueHeight=0,X.currentValueTotalHeight=0,X.currentValueMaxLines=1,B.currentvalue.visible){var q=E.tester.append("g");I.each(function(oe){var ie=_(q,B,oe.label),j=ie.node()&&E.bBox(ie.node())||{width:0,height:0},Q=r.lineCount(ie);X.currentValueMaxWidth=Math.max(X.currentValueMaxWidth,Math.ceil(j.width)),X.currentValueHeight=Math.max(X.currentValueHeight,Math.ceil(j.height)),X.currentValueMaxLines=Math.max(X.currentValueMaxLines,Q)}),X.currentValueTotalHeight=X.currentValueHeight+B.currentvalue.offset,q.remove()}X.height=X.currentValueTotalHeight+i.tickOffset+B.ticklen+i.labelOffset+X.labelHeight+B.pad.t+B.pad.b;var Z="left";e.isRightAnchor(B)&&(X.lx-=X.outerLength,Z="right"),e.isCenterAnchor(B)&&(X.lx-=X.outerLength/2,Z="center");var ee="top";e.isBottomAnchor(B)&&(X.ly-=X.height,ee="bottom"),e.isMiddleAnchor(B)&&(X.ly-=X.height/2,ee="middle"),X.outerLength=Math.ceil(X.outerLength),X.height=Math.ceil(X.height),X.lx=Math.round(X.lx),X.ly=Math.round(X.ly);var V={y:B.y,b:X.height*h[ee],t:X.height*s[ee]};B.lenmode==="fraction"?(V.l=0,V.xl=B.x-B.len*s[Z],V.r=0,V.xr=B.x+B.len*h[Z]):(V.x=B.x,V.l=X.outerLength*s[Z],V.r=X.outerLength*h[Z]),x.autoMargin(N,c(B),V)}function l(N,B,I){(I.steps[I.active]||{}).visible||(I.active=I._visibleSteps[0]._index),B.call(_,I).call(F,I).call(M,I).call(u,I).call(z,N,I).call(w,N,I);var U=I._dims;E.setTranslate(B,U.lx+I.pad.l,U.ly+I.pad.t),B.call(f,I,!1),B.call(_,I)}function _(N,B,I){if(B.currentvalue.visible){var U=B._dims,O,X;switch(B.currentvalue.xanchor){case"right":O=U.inputAreaLength-i.currentValueInset-U.currentValueMaxWidth,X="left";break;case"center":O=U.inputAreaLength*.5,X="middle";break;default:O=i.currentValueInset,X="left"}var J=e.ensureSingle(N,"text",i.labelClass,function(ee){ee.attr({"text-anchor":X,"data-notex":1})}),se=B.currentvalue.prefix?B.currentvalue.prefix:"";if(typeof I=="string")se+=I;else{var le=B.steps[B.active].label,ce=B._gd._fullLayout._meta;ce&&(le=e.templateString(le,ce)),se+=le}B.currentvalue.suffix&&(se+=B.currentvalue.suffix),J.call(E.font,B.currentvalue.font).text(se).call(r.convertToTspans,B._gd);var q=r.lineCount(J),Z=(U.currentValueMaxLines+1-q)*B.currentvalue.font.size*a;return r.positionText(J,O,Z),J}}function w(N,B,I){var U=e.ensureSingle(N,"rect",i.gripRectClass,function(O){O.call(v,B,N,I).style("pointer-events","all")});U.attr({width:i.gripWidth,height:i.gripHeight,rx:i.gripRadius,ry:i.gripRadius}).call(S.stroke,I.bordercolor).call(S.fill,I.bgcolor).style("stroke-width",I.borderwidth+"px")}function A(N,B,I){var U=e.ensureSingle(N,"text",i.labelClass,function(J){J.attr({"text-anchor":"middle","data-notex":1})}),O=B.step.label,X=I._gd._fullLayout._meta;return X&&(O=e.templateString(O,X)),U.call(E.font,I.font).text(O).call(r.convertToTspans,I._gd),U}function M(N,B){var I=e.ensureSingle(N,"g",i.labelsClass),U=B._dims,O=I.selectAll("g."+i.labelGroupClass).data(U.labelSteps);O.enter().append("g").classed(i.labelGroupClass,!0),O.exit().remove(),O.each(function(X){var J=p.select(this);J.call(A,X,B),E.setTranslate(J,R(B,X.fraction),i.tickOffset+B.ticklen+B.font.size*a+i.labelOffset+U.currentValueTotalHeight)})}function g(N,B,I,U,O){var X=Math.round(U*(I._stepCount-1)),J=I._visibleSteps[X]._index;J!==I.active&&b(N,B,I,J,!0,O)}function b(N,B,I,U,O,X){var J=I.active;I.active=U,o(N.layout,i.name,I).applyUpdate("active",U);var se=I.steps[I.active];B.call(f,I,X),B.call(_,I),N.emit("plotly_sliderchange",{slider:I,step:I.steps[I.active],interaction:O,previousActive:J}),se&&se.method&&O&&(B._nextMethod?(B._nextMethod.step=se,B._nextMethod.doCallback=O,B._nextMethod.doTransition=X):(B._nextMethod={step:se,doCallback:O,doTransition:X},B._nextMethodRaf=window.requestAnimationFrame(function(){var le=B._nextMethod.step;le.method&&(le.execute&&x.executeAPICommand(N,le.method,le.args),B._nextMethod=null,B._nextMethodRaf=null)})))}function v(N,B,I){if(B._context.staticPlot)return;var U=I.node(),O=p.select(B);function X(){return I.data()[0]}function J(){var se=X();B.emit("plotly_sliderstart",{slider:se});var le=I.select("."+i.gripRectClass);p.event.stopPropagation(),p.event.preventDefault(),le.call(S.fill,se.activebgcolor);var ce=L(se,p.mouse(U)[0]);g(B,I,se,ce,!0),se._dragging=!0;function q(){var ee=X(),V=L(ee,p.mouse(U)[0]);g(B,I,ee,V,!1)}O.on("mousemove",q),O.on("touchmove",q);function Z(){var ee=X();ee._dragging=!1,le.call(S.fill,ee.bgcolor),O.on("mouseup",null),O.on("mousemove",null),O.on("touchend",null),O.on("touchmove",null),B.emit("plotly_sliderend",{slider:ee,step:ee.steps[ee.active]})}O.on("mouseup",Z),O.on("touchend",Z)}N.on("mousedown",J),N.on("touchstart",J)}function u(N,B){var I=N.selectAll("rect."+i.tickRectClass).data(B._visibleSteps),U=B._dims;I.enter().append("rect").classed(i.tickRectClass,!0),I.exit().remove(),I.attr({width:B.tickwidth+"px","shape-rendering":"crispEdges"}),I.each(function(O,X){var J=X%U.labelStride===0,se=p.select(this);se.attr({height:J?B.ticklen:B.minorticklen}).call(S.fill,B.tickcolor),E.setTranslate(se,R(B,X/(B._stepCount-1))-.5*B.tickwidth,(J?i.tickOffset:i.minorTickOffset)+U.currentValueTotalHeight)})}function y(N){var B=N._dims;B.labelSteps=[];for(var I=N._stepCount,U=0;U<I;U+=B.labelStride)B.labelSteps.push({fraction:U/(I-1),step:N._visibleSteps[U]})}function f(N,B,I){for(var U=N.select("rect."+i.gripRectClass),O=0,X=0;X<B._stepCount;X++)if(B._visibleSteps[X]._index===B.active){O=X;break}var J=R(B,O/(B._stepCount-1));if(!B._invokingCommand){var se=U;I&&B.transition.duration>0&&(se=se.transition().duration(B.transition.duration).ease(B.transition.easing)),se.attr("transform",t(J-i.gripWidth*.5,B._dims.currentValueTotalHeight))}}function R(N,B){var I=N._dims;return I.inputAreaStart+i.stepInset+(I.inputAreaLength-2*i.stepInset)*Math.min(1,Math.max(0,B))}function L(N,B){var I=N._dims;return Math.min(1,Math.max(0,(B-i.stepInset-I.inputAreaStart)/(I.inputAreaLength-2*i.stepInset-2*I.inputAreaStart)))}function z(N,B,I){var U=I._dims,O=e.ensureSingle(N,"rect",i.railTouchRectClass,function(X){X.call(v,B,N,I).style("pointer-events","all")});O.attr({width:U.inputAreaLength,height:Math.max(U.inputAreaWidth,i.tickOffset+I.ticklen+U.labelHeight)}).call(S.fill,I.bgcolor).attr("opacity",0),E.setTranslate(O,0,U.currentValueTotalHeight)}function F(N,B){var I=B._dims,U=I.inputAreaLength-i.railInset*2,O=e.ensureSingle(N,"rect",i.railRectClass);O.attr({width:U,height:i.railWidth,rx:i.railRadius,ry:i.railRadius,"shape-rendering":"crispEdges"}).call(S.stroke,B.bordercolor).call(S.fill,B.bgcolor).style("stroke-width",B.borderwidth+"px"),E.setTranslate(O,i.railInset,(I.inputAreaWidth-i.railWidth)*.5+I.currentValueTotalHeight)}}}),YE=De({"src/components/sliders/index.js"(Y,H){"use strict";var p=_y();H.exports={moduleType:"component",name:p.name,layoutAttributes:S2(),supplyLayoutDefaults:WE(),draw:XE()}}}),N_=De({"src/components/rangeslider/attributes.js"(Y,H){"use strict";var p=Pf();H.exports={bgcolor:{valType:"color",dflt:p.background,editType:"plot"},bordercolor:{valType:"color",dflt:p.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"}}}),M2=De({"src/components/rangeslider/oppaxis_attributes.js"(Y,H){"use strict";H.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"}}}),U_=De({"src/components/rangeslider/constants.js"(Y,H){"use strict";H.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}}}),ZE=De({"src/components/rangeslider/helpers.js"(Y){"use strict";var H=nf(),p=vu(),x=U_(),S=rh().LINE_SPACING,E=x.name;function e(t){var r=t&&t[E];return r&&r.visible}Y.isVisible=e,Y.makeData=function(t){for(var r=H.list({_fullLayout:t},"x",!0),o=t.margin,i=[],n=0;n<r.length;n++){var a=r[n];if(e(a)){i.push(a);var s=a[E];s._id=E+a._id,s._height=(t.height-o.b-o.t)*s.thickness,s._offsetShift=Math.floor(s.borderwidth/2)}}t._rangeSliderData=i},Y.autoMarginOpts=function(t,r){var o=t._fullLayout,i=r[E],n=r._id.charAt(0),a=0,s=0;if(r.side==="bottom"&&(a=r._depth,r.title.text!==o._dfltTitle[n])){s=1.5*r.title.font.size+10+i._offsetShift;var h=(r.title.text.match(p.BR_TAG_ALL)||[]).length;s+=h*r.title.font.size*S}return{x:0,y:r._counterDomainMin,l:0,r:0,t:0,b:i._height+a+Math.max(o.margin.b,s),pad:x.extraPad+i._offsetShift*2}}}}),KE=De({"src/components/rangeslider/defaults.js"(Y,H){"use strict";var p=ui(),x=Gl(),S=nf(),E=N_(),e=M2();H.exports=function(r,o,i){var n=r[i],a=o[i];if(!(n.rangeslider||o._requestRangeslider[a._id]))return;p.isPlainObject(n.rangeslider)||(n.rangeslider={});var s=n.rangeslider,h=x.newContainer(a,"rangeslider");function c(y,f){return p.coerce(s,h,E,y,f)}var m,d;function T(y,f){return p.coerce(m,d,e,y,f)}var l=c("visible");if(l){c("bgcolor",o.plot_bgcolor),c("bordercolor"),c("borderwidth"),c("thickness"),c("autorange",!a.isValidRange(s.range)),c("range");var _=o._subplots;if(_)for(var w=_.cartesian.filter(function(y){return y.slice(0,Math.max(0,y.indexOf("y")))===S.name2id(i)}).map(function(y){return y.slice(y.indexOf("y"),y.length)}),A=p.simpleMap(w,S.id2name),M=0;M<A.length;M++){var g=A[M];m=s[g]||{},d=x.newContainer(h,g,"yaxis");var b=o[g],v;m.range&&b.isValidRange(m.range)&&(v="fixed");var u=T("rangemode",v);u!=="match"&&T("range",b.range.slice())}h._input=s}}}}),$E=De({"src/components/rangeslider/calc_autorange.js"(Y,H){"use strict";var p=nf().list,x=fv().getAutoRange,S=U_();H.exports=function(e){for(var t=p(e,"x",!0),r=0;r<t.length;r++){var o=t[r],i=o[S.name];i&&i.visible&&i.autorange&&(i._input.autorange=!0,i._input.range=i.range=x(e,o))}}}}),JE=De({"src/components/rangeslider/draw.js"(Y,H){"use strict";var p=za(),x=Mo(),S=Mc(),E=ui(),e=E.strTranslate,t=ys(),r=vo(),o=j0(),i=Gf(),n=nf(),a=Qh(),s=hv(),h=U_();H.exports=function(v){for(var u=v._fullLayout,y=u._rangeSliderData,f=0;f<y.length;f++){var R=y[f][h.name];R._clipId=R._id+"-"+u._uid}function L(F){return F._name}var z=u._infolayer.selectAll("g."+h.containerClassName).data(y,L);z.exit().each(function(F){var N=F[h.name];u._topdefs.select("#"+N._clipId).remove()}).remove(),y.length!==0&&(z.enter().append("g").classed(h.containerClassName,!0).attr("pointer-events","all"),z.each(function(F){var N=p.select(this),B=F[h.name],I=u[n.id2name(F.anchor)],U=B[n.id2name(F.anchor)];if(B.range){var O=E.simpleMap(B.range,F.r2l),X=E.simpleMap(F.range,F.r2l),J;X[0]<X[1]?J=[Math.min(O[0],X[0]),Math.max(O[1],X[1])]:J=[Math.max(O[0],X[0]),Math.min(O[1],X[1])],B.range=B._input.range=E.simpleMap(J,F.l2r)}F.cleanRange("rangeslider.range");var se=u._size,le=F.domain;B._width=se.w*(le[1]-le[0]);var ce=Math.round(se.l+se.w*le[0]),q=Math.round(se.t+se.h*(1-F._counterDomainMin)+(F.side==="bottom"?F._depth:0)+B._offsetShift+h.extraPad);N.attr("transform",e(ce,q)),B._rl=E.simpleMap(B.range,F.r2l);var Z=B._rl[0],ee=B._rl[1],V=ee-Z;if(B.p2d=function(ze){return ze/B._width*V+Z},B.d2p=function(ze){return(ze-Z)/V*B._width},F.rangebreaks){var oe=F.locateBreaks(Z,ee);if(oe.length){var ie,j,Q=0;for(ie=0;ie<oe.length;ie++)j=oe[ie],Q+=j.max-j.min;var re=B._width/(ee-Z-Q),ue=[-re*Z];for(ie=0;ie<oe.length;ie++)j=oe[ie],ue.push(ue[ue.length-1]-re*(j.max-j.min));for(B.d2p=function(ze){for(var Xe=ue[0],tt=0;tt<oe.length;tt++){var it=oe[tt];if(ze>=it.max)Xe=ue[tt+1];else if(ze<it.min)break}return Xe+re*ze},ie=0;ie<oe.length;ie++)j=oe[ie],j.pmin=B.d2p(j.min),j.pmax=B.d2p(j.max);B.p2d=function(ze){for(var Xe=ue[0],tt=0;tt<oe.length;tt++){var it=oe[tt];if(ze>=it.pmax)Xe=ue[tt+1];else if(ze<it.pmin)break}return(ze-Xe)/re}}}if(U.rangemode!=="match"){var _e=I.r2l(U.range[0]),we=I.r2l(U.range[1]),Re=we-_e;B.d2pOppAxis=function(ze){return(ze-_e)/Re*B._height}}N.call(l,v,F,B).call(_,v,F,B).call(w,v,F,B).call(M,v,F,B,U).call(g,v,F,B).call(b,v,F,B),m(N,v,F,B),T(N,v,F,B,I,U),F.side==="bottom"&&o.draw(v,F._id+"title",{propContainer:F,propName:F._name+".title.text",placeholder:u._dfltTitle.x,attributes:{x:F._offset+F._length/2,y:q+B._height+B._offsetShift+10+1.5*F.title.font.size,"text-anchor":"middle"}})}))};function c(v){return typeof v.clientX=="number"?v.clientX:v.touches&&v.touches.length>0?v.touches[0].clientX:0}function m(v,u,y,f){if(u._context.staticPlot)return;var R=v.select("rect."+h.slideBoxClassName).node(),L=v.select("rect."+h.grabAreaMinClassName).node(),z=v.select("rect."+h.grabAreaMaxClassName).node();function F(){var N=p.event,B=N.target,I=c(N),U=I-v.node().getBoundingClientRect().left,O=f.d2p(y._rl[0]),X=f.d2p(y._rl[1]),J=a.coverSlip();this.addEventListener("touchmove",se),this.addEventListener("touchend",le),J.addEventListener("mousemove",se),J.addEventListener("mouseup",le);function se(ce){var q=c(ce),Z=+q-I,ee,V,oe;switch(B){case R:if(oe="ew-resize",O+Z>y._length||X+Z<0)return;ee=O+Z,V=X+Z;break;case L:if(oe="col-resize",O+Z>y._length)return;ee=O+Z,V=X;break;case z:if(oe="col-resize",X+Z<0)return;ee=O,V=X+Z;break;default:oe="ew-resize",ee=U,V=U+Z;break}if(V<ee){var ie=V;V=ee,ee=ie}f._pixelMin=ee,f._pixelMax=V,s(p.select(J),oe),d(v,u,y,f)}function le(){J.removeEventListener("mousemove",se),J.removeEventListener("mouseup",le),this.removeEventListener("touchmove",se),this.removeEventListener("touchend",le),E.removeElement(J)}}v.on("mousedown",F),v.on("touchstart",F)}function d(v,u,y,f){function R(F){return y.l2r(E.constrain(F,f._rl[0],f._rl[1]))}var L=R(f.p2d(f._pixelMin)),z=R(f.p2d(f._pixelMax));window.requestAnimationFrame(function(){x.call("_guiRelayout",u,y._name+".range",[L,z])})}function T(v,u,y,f,R,L){var z=h.handleWidth/2;function F(ce){return E.constrain(ce,0,f._width)}function N(ce){return E.constrain(ce,0,f._height)}function B(ce){return E.constrain(ce,-z,f._width+z)}var I=F(f.d2p(y._rl[0])),U=F(f.d2p(y._rl[1]));if(v.select("rect."+h.slideBoxClassName).attr("x",I).attr("width",U-I),v.select("rect."+h.maskMinClassName).attr("width",I),v.select("rect."+h.maskMaxClassName).attr("x",U).attr("width",f._width-U),L.rangemode!=="match"){var O=f._height-N(f.d2pOppAxis(R._rl[1])),X=f._height-N(f.d2pOppAxis(R._rl[0]));v.select("rect."+h.maskMinOppAxisClassName).attr("x",I).attr("height",O).attr("width",U-I),v.select("rect."+h.maskMaxOppAxisClassName).attr("x",I).attr("y",X).attr("height",f._height-X).attr("width",U-I),v.select("rect."+h.slideBoxClassName).attr("y",O).attr("height",X-O)}var J=.5,se=Math.round(B(I-z))-J,le=Math.round(B(U-z))+J;v.select("g."+h.grabberMinClassName).attr("transform",e(se,J)),v.select("g."+h.grabberMaxClassName).attr("transform",e(le,J))}function l(v,u,y,f){var R=E.ensureSingle(v,"rect",h.bgClassName,function(N){N.attr({x:0,y:0,"shape-rendering":"crispEdges"})}),L=f.borderwidth%2===0?f.borderwidth:f.borderwidth-1,z=-f._offsetShift,F=t.crispRound(u,f.borderwidth);R.attr({width:f._width+L,height:f._height+L,transform:e(z,z),"stroke-width":F}).call(r.stroke,f.bordercolor).call(r.fill,f.bgcolor)}function _(v,u,y,f){var R=u._fullLayout,L=E.ensureSingleById(R._topdefs,"clipPath",f._clipId,function(z){z.append("rect").attr({x:0,y:0})});L.select("rect").attr({width:f._width,height:f._height})}function w(v,u,y,f){var R=u.calcdata,L=v.selectAll("g."+h.rangePlotClassName).data(y._subplotsWith,E.identity);L.enter().append("g").attr("class",function(F){return h.rangePlotClassName+" "+F}).call(t.setClipUrl,f._clipId,u),L.order(),L.exit().remove();var z;L.each(function(F,N){var B=p.select(this),I=N===0,U=n.getFromId(u,F,"y"),O=U._name,X=f[O],J={data:[],layout:{xaxis:{type:y.type,domain:[0,1],range:f.range.slice(),calendar:y.calendar},width:f._width,height:f._height,margin:{t:0,b:0,l:0,r:0}},_context:u._context};y.rangebreaks&&(J.layout.xaxis.rangebreaks=y.rangebreaks),J.layout[O]={type:U.type,domain:[0,1],range:X.rangemode!=="match"?X.range.slice():U.range.slice(),calendar:U.calendar},U.rangebreaks&&(J.layout[O].rangebreaks=U.rangebreaks),S.supplyDefaults(J);var se=J._fullLayout.xaxis,le=J._fullLayout[O];se.clearCalc(),se.setScale(),le.clearCalc(),le.setScale();var ce={id:F,plotgroup:B,xaxis:se,yaxis:le,isRangePlot:!0};I?z=ce:(ce.mainplot="xy",ce.mainplotinfo=z),i.rangePlot(u,ce,A(R,F))})}function A(v,u){for(var y=[],f=0;f<v.length;f++){var R=v[f],L=R[0].trace;L.xaxis+L.yaxis===u&&y.push(R)}return y}function M(v,u,y,f,R){var L=E.ensureSingle(v,"rect",h.maskMinClassName,function(B){B.attr({x:0,y:0,"shape-rendering":"crispEdges"})});L.attr("height",f._height).call(r.fill,h.maskColor);var z=E.ensureSingle(v,"rect",h.maskMaxClassName,function(B){B.attr({y:0,"shape-rendering":"crispEdges"})});if(z.attr("height",f._height).call(r.fill,h.maskColor),R.rangemode!=="match"){var F=E.ensureSingle(v,"rect",h.maskMinOppAxisClassName,function(B){B.attr({y:0,"shape-rendering":"crispEdges"})});F.attr("width",f._width).call(r.fill,h.maskOppAxisColor);var N=E.ensureSingle(v,"rect",h.maskMaxOppAxisClassName,function(B){B.attr({y:0,"shape-rendering":"crispEdges"})});N.attr("width",f._width).style("border-top",h.maskOppBorder).call(r.fill,h.maskOppAxisColor)}}function g(v,u,y,f){if(!u._context.staticPlot){var R=E.ensureSingle(v,"rect",h.slideBoxClassName,function(L){L.attr({y:0,cursor:h.slideBoxCursor,"shape-rendering":"crispEdges"})});R.attr({height:f._height,fill:h.slideBoxFill})}}function b(v,u,y,f){var R=E.ensureSingle(v,"g",h.grabberMinClassName),L=E.ensureSingle(v,"g",h.grabberMaxClassName),z={x:0,width:h.handleWidth,rx:h.handleRadius,fill:r.background,stroke:r.defaultLine,"stroke-width":h.handleStrokeWidth,"shape-rendering":"crispEdges"},F={y:Math.round(f._height/4),height:Math.round(f._height/2)},N=E.ensureSingle(R,"rect",h.handleMinClassName,function(X){X.attr(z)});N.attr(F);var B=E.ensureSingle(L,"rect",h.handleMaxClassName,function(X){X.attr(z)});B.attr(F);var I={width:h.grabAreaWidth,x:0,y:0,fill:h.grabAreaFill,cursor:u._context.staticPlot?void 0:h.grabAreaCursor},U=E.ensureSingle(R,"rect",h.grabAreaMinClassName,function(X){X.attr(I)});U.attr("height",f._height);var O=E.ensureSingle(L,"rect",h.grabAreaMaxClassName,function(X){X.attr(I)});O.attr("height",f._height)}}}),QE=De({"src/components/rangeslider/index.js"(Y,H){"use strict";var p=ui(),x=N_(),S=M2(),E=ZE();H.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:p.extendFlat({},x,{yaxis:S})}}},layoutAttributes:N_(),handleDefaults:KE(),calcAutorange:$E(),draw:JE(),isVisible:E.isVisible,makeData:E.makeData,autoMarginOpts:E.autoMarginOpts}}}),j_=De({"src/components/rangeselector/attributes.js"(Y,H){"use strict";var p=qu(),x=Pf(),S=Gl().templatedArray,E=S("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"});H.exports={visible:{valType:"boolean",editType:"plot"},buttons:E,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:p({editType:"plot"}),bgcolor:{valType:"color",dflt:x.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:x.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}}}),E2=De({"src/components/rangeselector/constants.js"(Y,H){"use strict";H.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}}}),ek=De({"src/components/rangeselector/defaults.js"(Y,H){"use strict";var p=ui(),x=vo(),S=Gl(),E=Vh(),e=j_(),t=E2();H.exports=function(n,a,s,h,c){var m=n.rangeselector||{},d=S.newContainer(a,"rangeselector");function T(M,g){return p.coerce(m,d,e,M,g)}var l=E(m,d,{name:"buttons",handleItemDefaults:r,calendar:c}),_=T("visible",l.length>0);if(_){var w=o(a,s,h);T("x",w[0]),T("y",w[1]),p.noneOrAll(n,a,["x","y"]),T("xanchor"),T("yanchor"),p.coerceFont(T,"font",s.font);var A=T("bgcolor");T("activecolor",x.contrast(A,t.lightAmount,t.darkAmount)),T("bordercolor"),T("borderwidth")}};function r(i,n,a,s){var h=s.calendar;function c(T,l){return p.coerce(i,n,e.buttons,T,l)}var m=c("visible");if(m){var d=c("step");d!=="all"&&(h&&h!=="gregorian"&&(d==="month"||d==="year")?n.stepmode="backward":c("stepmode"),c("count")),c("label")}}function o(i,n,a){for(var s=a.filter(function(d){return n[d].anchor===i._id}),h=0,c=0;c<s.length;c++){var m=n[s[c]].domain;m&&(h=Math.max(m[1],h))}return[i.domain[0],h+t.yPad]}}}),tk=De({"src/components/rangeselector/get_update_object.js"(Y,H){"use strict";var p=Qn(),x=ui().titleCase;H.exports=function(e,t){var r=e._name,o={};if(t.step==="all")o[r+".autorange"]=!0;else{var i=S(e,t);o[r+".range[0]"]=i[0],o[r+".range[1]"]=i[1]}return o};function S(E,e){var t=E.range,r=new Date(E.r2l(t[1])),o=e.step,i=p["utc"+x(o)],n=e.count,a;switch(e.stepmode){case"backward":a=E.l2r(+i.offset(r,-n));break;case"todate":var s=i.offset(r,-n);a=E.l2r(+i.ceil(s));break}var h=t[1];return[a,h]}}}),rk=De({"src/components/rangeselector/draw.js"(Y,H){"use strict";var p=za(),x=Mo(),S=Mc(),E=vo(),e=ys(),t=ui(),r=t.strTranslate,o=vu(),i=nf(),n=rh(),a=n.LINE_SPACING,s=n.FROM_TL,h=n.FROM_BR,c=E2(),m=tk();H.exports=function(v){var u=v._fullLayout,y=u._infolayer.selectAll(".rangeselector").data(d(v),T);y.enter().append("g").classed("rangeselector",!0),y.exit().remove(),y.style({cursor:"pointer","pointer-events":"all"}),y.each(function(f){var R=p.select(this),L=f,z=L.rangeselector,F=R.selectAll("g.button").data(t.filterVisible(z.buttons));F.enter().append("g").classed("button",!0),F.exit().remove(),F.each(function(N){var B=p.select(this),I=m(L,N);N._isActive=l(L,N,I),B.call(_,z,N),B.call(A,z,N,v),B.on("click",function(){v._dragged||x.call("_guiRelayout",v,I)}),B.on("mouseover",function(){N._isHovered=!0,B.call(_,z,N)}),B.on("mouseout",function(){N._isHovered=!1,B.call(_,z,N)})}),g(v,F,z,L._name,R)})};function d(b){for(var v=i.list(b,"x",!0),u=[],y=0;y<v.length;y++){var f=v[y];f.rangeselector&&f.rangeselector.visible&&u.push(f)}return u}function T(b){return b._id}function l(b,v,u){if(v.step==="all")return b.autorange===!0;var y=Object.keys(u);return b.range[0]===u[y[0]]&&b.range[1]===u[y[1]]}function _(b,v,u){var y=t.ensureSingle(b,"rect","selector-rect",function(f){f.attr("shape-rendering","crispEdges")});y.attr({rx:c.rx,ry:c.ry}),y.call(E.stroke,v.bordercolor).call(E.fill,w(v,u)).style("stroke-width",v.borderwidth+"px")}function w(b,v){return v._isActive||v._isHovered?b.activecolor:b.bgcolor}function A(b,v,u,y){function f(L){o.convertToTspans(L,y)}var R=t.ensureSingle(b,"text","selector-text",function(L){L.attr("text-anchor","middle")});R.call(e.font,v.font).text(M(u,y._fullLayout._meta)).call(f)}function M(b,v){return b.label?v?t.templateString(b.label,v):b.label:b.step==="all"?"all":b.count+b.step.charAt(0)}function g(b,v,u,y,f){var R=0,L=0,z=u.borderwidth;v.each(function(){var O=p.select(this),X=O.select(".selector-text"),J=u.font.size*a,se=Math.max(J*o.lineCount(X),16)+3;L=Math.max(L,se)}),v.each(function(){var O=p.select(this),X=O.select(".selector-rect"),J=O.select(".selector-text"),se=J.node()&&e.bBox(J.node()).width,le=u.font.size*a,ce=o.lineCount(J),q=Math.max(se+10,c.minButtonWidth);O.attr("transform",r(z+R,z)),X.attr({x:0,y:0,width:q,height:L}),o.positionText(J,q/2,L/2-(ce-1)*le/2+3),R+=q+5});var F=b._fullLayout._size,N=F.l+F.w*u.x,B=F.t+F.h*(1-u.y),I="left";t.isRightAnchor(u)&&(N-=R,I="right"),t.isCenterAnchor(u)&&(N-=R/2,I="center");var U="top";t.isBottomAnchor(u)&&(B-=L,U="bottom"),t.isMiddleAnchor(u)&&(B-=L/2,U="middle"),R=Math.ceil(R),L=Math.ceil(L),N=Math.round(N),B=Math.round(B),S.autoMargin(b,y+"-range-selector",{x:u.x,y:u.y,l:R*s[I],r:R*h[I],b:L*h[U],t:L*s[U]}),f.attr("transform",r(N,B))}}}),ik=De({"src/components/rangeselector/index.js"(Y,H){"use strict";H.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:j_()}}},layoutAttributes:j_(),handleDefaults:ek(),draw:rk()}}}),Ec=De({"src/plots/domain.js"(Y){"use strict";var H=Xo().extendFlat;Y.attributes=function(p,x){p=p||{},x=x||{};var S={valType:"info_array",editType:p.editType,items:[{valType:"number",min:0,max:1,editType:p.editType},{valType:"number",min:0,max:1,editType:p.editType}],dflt:[0,1]},E=p.name?p.name+" ":"",e=p.trace?"trace ":"subplot ",t=x.description?" "+x.description:"",r={x:H({},S,{}),y:H({},S,{}),editType:p.editType};return p.noGridCell||(r.row={valType:"integer",min:0,dflt:0,editType:p.editType},r.column={valType:"integer",min:0,dflt:0,editType:p.editType}),r},Y.defaults=function(p,x,S,E){var e=E&&E.x||[0,1],t=E&&E.y||[0,1],r=x.grid;if(r){var o=S("domain.column");o!==void 0&&(o<r.columns?e=r._domains.x[o]:delete p.domain.column);var i=S("domain.row");i!==void 0&&(i<r.rows?t=r._domains.y[i]:delete p.domain.row)}var n=S("domain.x",e),a=S("domain.y",t);n[0]<n[1]||(p.domain.x=e.slice()),a[0]<a[1]||(p.domain.y=t.slice())}}}),k2=De({"src/components/grid/index.js"(Y,H){"use strict";var p=ui(),x=Uo().counter,S=Ec().attributes,E=th().idRegex,e=Gl(),t={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:[x("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[E.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[E.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:S({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 r(s,h,c){var m=h[c+"axes"],d=Object.keys((s._splomAxes||{})[c]||{});if(Array.isArray(m))return m;if(d.length)return d}function o(s,h){var c=s.grid||{},m=r(h,c,"x"),d=r(h,c,"y");if(!s.grid&&!m&&!d)return;var T=Array.isArray(c.subplots)&&Array.isArray(c.subplots[0]),l=Array.isArray(m),_=Array.isArray(d),w=l&&m!==c.xaxes&&_&&d!==c.yaxes,A,M;T?(A=c.subplots.length,M=c.subplots[0].length):(_&&(A=d.length),l&&(M=m.length));var g=e.newContainer(h,"grid");function b(B,I){return p.coerce(c,g,t,B,I)}var v=b("rows",A),u=b("columns",M);if(!(v*u>1)){delete h.grid;return}if(!T&&!l&&!_){var y=b("pattern")==="independent";y&&(T=!0)}g._hasSubplotGrid=T;var f=b("roworder"),R=f==="top to bottom",L=T?.2:.1,z=T?.3:.1,F,N;w&&h._splomGridDflt&&(F=h._splomGridDflt.xside,N=h._splomGridDflt.yside),g._domains={x:i("x",b,L,F,u),y:i("y",b,z,N,v,R)}}function i(s,h,c,m,d,T){var l=h(s+"gap",c),_=h("domain."+s);h(s+"side",m);for(var w=new Array(d),A=_[0],M=(_[1]-A)/(d-l),g=M*(1-l),b=0;b<d;b++){var v=A+M*b;w[T?d-1-b:b]=[v,v+g]}return w}function n(s,h){var c=h.grid;if(!(!c||!c._domains)){var m=s.grid||{},d=h._subplots,T=c._hasSubplotGrid,l=c.rows,_=c.columns,w=c.pattern==="independent",A,M,g,b,v,u,y,f=c._axisMap={};if(T){var R=m.subplots||[];u=c.subplots=new Array(l);var L=1;for(A=0;A<l;A++){var z=u[A]=new Array(_),F=R[A]||[];for(M=0;M<_;M++)if(w?(v=L===1?"xy":"x"+L+"y"+L,L++):v=F[M],z[M]="",d.cartesian.indexOf(v)!==-1){if(y=v.indexOf("y"),g=v.slice(0,y),b=v.slice(y),f[g]!==void 0&&f[g]!==M||f[b]!==void 0&&f[b]!==A)continue;z[M]=v,f[g]=M,f[b]=A}}}else{var N=r(h,m,"x"),B=r(h,m,"y");c.xaxes=a(N,d.xaxis,_,f,"x"),c.yaxes=a(B,d.yaxis,l,f,"y")}var I=c._anchors={},U=c.roworder==="top to bottom";for(var O in f){var X=O.charAt(0),J=c[X+"side"],se,le,ce;if(J.length<8)I[O]="free";else if(X==="x"){if(J.charAt(0)==="t"===U?(se=0,le=1,ce=l):(se=l-1,le=-1,ce=-1),T){var q=f[O];for(A=se;A!==ce;A+=le)if(v=u[A][q],!!v&&(y=v.indexOf("y"),v.slice(0,y)===O)){I[O]=v.slice(y);break}}else for(A=se;A!==ce;A+=le)if(b=c.yaxes[A],d.cartesian.indexOf(O+b)!==-1){I[O]=b;break}}else if(J.charAt(0)==="l"?(se=0,le=1,ce=_):(se=_-1,le=-1,ce=-1),T){var Z=f[O];for(A=se;A!==ce;A+=le)if(v=u[Z][A],!!v&&(y=v.indexOf("y"),v.slice(y)===O)){I[O]=v.slice(0,y);break}}else for(A=se;A!==ce;A+=le)if(g=c.xaxes[A],d.cartesian.indexOf(g+O)!==-1){I[O]=g;break}}}}function a(s,h,c,m,d){var T=new Array(c),l;function _(w,A){h.indexOf(A)!==-1&&m[A]===void 0?(T[w]=A,m[A]=w):T[w]=""}if(Array.isArray(s))for(l=0;l<c;l++)_(l,s[l]);else for(_(0,d),l=1;l<c;l++)_(l,d+(l+1));return T}H.exports={moduleType:"component",name:"grid",schema:{layout:{grid:t}},layoutAttributes:t,sizeDefaults:o,contentDefaults:n}}}),C2=De({"src/components/errorbars/attributes.js"(Y,H){"use strict";H.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"}}}),ak=De({"src/components/errorbars/defaults.js"(Y,H){"use strict";var p=vn(),x=Mo(),S=ui(),E=Gl(),e=C2();H.exports=function(t,r,o,i){var n="error_"+i.axis,a=E.newContainer(r,n),s=t[n]||{};function h(w,A){return S.coerce(s,a,e,w,A)}var c=s.array!==void 0||s.value!==void 0||s.type==="sqrt",m=h("visible",c);if(m!==!1){var d=h("type","array"in s?"data":"percent"),T=!0;d!=="sqrt"&&(T=h("symmetric",!((d==="data"?"arrayminus":"valueminus")in s))),d==="data"?(h("array"),h("traceref"),T||(h("arrayminus"),h("tracerefminus"))):(d==="percent"||d==="constant")&&(h("value"),T||h("valueminus"));var l="copy_"+i.inherit+"style";if(i.inherit){var _=r["error_"+i.inherit];(_||{}).visible&&h(l,!(s.color||p(s.thickness)||p(s.width)))}(!i.inherit||!a[l])&&(h("color",o),h("thickness"),h("width",x.traceIs(r,"gl3d")?0:4))}}}}),L2=De({"src/components/errorbars/compute_error.js"(Y,H){"use strict";H.exports=function(S){var E=S.type,e=S.symmetric;if(E==="data"){var t=S.array||[];if(e)return function(a,s){var h=+t[s];return[h,h]};var r=S.arrayminus||[];return function(a,s){var h=+t[s],c=+r[s];return!isNaN(h)||!isNaN(c)?[c||0,h||0]:[NaN,NaN]}}else{var o=p(E,S.value),i=p(E,S.valueminus);return e||S.valueminus===void 0?function(a){var s=o(a);return[s,s]}:function(a){return[i(a),o(a)]}}};function p(x,S){if(x==="percent")return function(E){return Math.abs(E*S/100)};if(x==="constant")return function(){return Math.abs(S)};if(x==="sqrt")return function(E){return Math.sqrt(Math.abs(E))}}}}),nk=De({"src/components/errorbars/calc.js"(Y,H){"use strict";var p=vn(),x=Mo(),S=us(),E=ui(),e=L2();H.exports=function(o){for(var i=o.calcdata,n=0;n<i.length;n++){var a=i[n],s=a[0].trace;if(s.visible===!0&&x.traceIs(s,"errorBarsOK")){var h=S.getFromId(o,s.xaxis),c=S.getFromId(o,s.yaxis);t(a,s,h,"x"),t(a,s,c,"y")}}};function t(r,o,i,n){var a=o["error_"+n]||{},s=a.visible&&["linear","log"].indexOf(i.type)!==-1,h=[];if(s){for(var c=e(a),m=0;m<r.length;m++){var d=r[m],T=d.i;if(T===void 0)T=m;else if(T===null)continue;var l=d[n];if(p(i.c2l(l))){var _=c(l,T);if(p(_[0])&&p(_[1])){var w=d[n+"s"]=l-_[0],A=d[n+"h"]=l+_[1];h.push(w,A)}}}var M=i._id,g=o._extremes[M],b=S.findExtremes(i,h,E.extendFlat({tozero:g.opts.tozero},{padded:!0}));g.min=g.min.concat(b.min),g.max=g.max.concat(b.max)}}}}),ok=De({"src/components/errorbars/plot.js"(Y,H){"use strict";var p=za(),x=vn(),S=ys(),E=Hu();H.exports=function(r,o,i,n){var a,s=i.xaxis,h=i.yaxis,c=n&&n.duration>0,m=r._context.staticPlot;o.each(function(d){var T=d[0].trace,l=T.error_x||{},_=T.error_y||{},w;T.ids&&(w=function(b){return b.id});var A=E.hasMarkers(T)&&T.marker.maxdisplayed>0;!_.visible&&!l.visible&&(d=[]);var M=p.select(this).selectAll("g.errorbar").data(d,w);if(M.exit().remove(),!!d.length){l.visible||M.selectAll("path.xerror").remove(),_.visible||M.selectAll("path.yerror").remove(),M.style("opacity",1);var g=M.enter().append("g").classed("errorbar",!0);c&&g.style("opacity",0).transition().duration(n.duration).style("opacity",1),S.setClipUrl(M,i.layerClipId,r),M.each(function(b){var v=p.select(this),u=e(b,s,h);if(!(A&&!b.vis)){var y,f=v.select("path.yerror");if(_.visible&&x(u.x)&&x(u.yh)&&x(u.ys)){var R=_.width;y="M"+(u.x-R)+","+u.yh+"h"+2*R+"m-"+R+",0V"+u.ys,u.noYS||(y+="m-"+R+",0h"+2*R),a=!f.size(),a?f=v.append("path").style("vector-effect",m?"none":"non-scaling-stroke").classed("yerror",!0):c&&(f=f.transition().duration(n.duration).ease(n.easing)),f.attr("d",y)}else f.remove();var L=v.select("path.xerror");if(l.visible&&x(u.y)&&x(u.xh)&&x(u.xs)){var z=(l.copy_ystyle?_:l).width;y="M"+u.xh+","+(u.y-z)+"v"+2*z+"m0,-"+z+"H"+u.xs,u.noXS||(y+="m0,-"+z+"v"+2*z),a=!L.size(),a?L=v.append("path").style("vector-effect",m?"none":"non-scaling-stroke").classed("xerror",!0):c&&(L=L.transition().duration(n.duration).ease(n.easing)),L.attr("d",y)}else L.remove()}})}})};function e(t,r,o){var i={x:r.c2p(t.x),y:o.c2p(t.y)};return t.yh!==void 0&&(i.yh=o.c2p(t.yh),i.ys=o.c2p(t.ys),x(i.ys)||(i.noYS=!0,i.ys=o.c2p(t.ys,!0))),t.xh!==void 0&&(i.xh=r.c2p(t.xh),i.xs=r.c2p(t.xs),x(i.xs)||(i.noXS=!0,i.xs=r.c2p(t.xs,!0))),i}}}),sk=De({"src/components/errorbars/style.js"(Y,H){"use strict";var p=za(),x=vo();H.exports=function(E){E.each(function(e){var t=e[0].trace,r=t.error_y||{},o=t.error_x||{},i=p.select(this);i.selectAll("path.yerror").style("stroke-width",r.thickness+"px").call(x.stroke,r.color),o.copy_ystyle&&(o=r),i.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call(x.stroke,o.color)})}}}),lk=De({"src/components/errorbars/index.js"(Y,H){"use strict";var p=ui(),x=gc().overrideAll,S=C2(),E={error_x:p.extendFlat({},S),error_y:p.extendFlat({},S)};delete E.error_x.copy_zstyle,delete E.error_y.copy_zstyle,delete E.error_y.copy_ystyle;var e={error_x:p.extendFlat({},S),error_y:p.extendFlat({},S),error_z:p.extendFlat({},S)};delete e.error_x.copy_ystyle,delete e.error_y.copy_ystyle,delete e.error_z.copy_ystyle,delete e.error_z.copy_zstyle,H.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:E,bar:E,histogram:E,scatter3d:x(e,"calc","nested"),scattergl:x(E,"calc","nested")}},supplyDefaults:ak(),calc:nk(),makeComputeError:L2(),plot:ok(),style:sk(),hoverInfo:t};function t(r,o,i){(o.error_y||{}).visible&&(i.yerr=r.yh-r.y,o.error_y.symmetric||(i.yerrneg=r.y-r.ys)),(o.error_x||{}).visible&&(i.xerr=r.xh-r.x,o.error_x.symmetric||(i.xerrneg=r.x-r.xs))}}}),uk=De({"src/components/colorbar/constants.js"(Y,H){"use strict";H.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"}}}}),ck=De({"src/components/colorbar/draw.js"(Y,H){"use strict";var p=za(),x=wu(),S=Mc(),E=Mo(),e=us(),t=Qh(),r=ui(),o=r.strTranslate,i=Xo().extendFlat,n=hv(),a=ys(),s=vo(),h=j0(),c=vu(),m=$h().flipScale,d=yy(),T=z_(),l=Ih(),_=rh(),w=_.LINE_SPACING,A=_.FROM_TL,M=_.FROM_BR,g=uk().cn;function b(L){var z=L._fullLayout,F=z._infolayer.selectAll("g."+g.colorbar).data(v(L),function(N){return N._id});F.enter().append("g").attr("class",function(N){return N._id}).classed(g.colorbar,!0),F.each(function(N){var B=p.select(this);r.ensureSingle(B,"rect",g.cbbg),r.ensureSingle(B,"g",g.cbfills),r.ensureSingle(B,"g",g.cblines),r.ensureSingle(B,"g",g.cbaxis,function(U){U.classed(g.crisp,!0)}),r.ensureSingle(B,"g",g.cbtitleunshift,function(U){U.append("g").classed(g.cbtitle,!0)}),r.ensureSingle(B,"rect",g.cboutline);var I=u(B,N,L);I&&I.then&&(L._promises||[]).push(I),L._context.edits.colorbarPosition&&y(B,N,L)}),F.exit().each(function(N){S.autoMargin(L,N._id)}).remove(),F.order()}function v(L){var z=L._fullLayout,F=L.calcdata,N=[],B,I,U,O;function X(j){return i(j,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function J(){typeof O.calc=="function"?O.calc(L,U,B):(B._fillgradient=I.reversescale?m(I.colorscale):I.colorscale,B._zrange=[I[O.min],I[O.max]])}for(var se=0;se<F.length;se++){var le=F[se];if(U=le[0].trace,!!U._module){var ce=U._module.colorbar;if(U.visible===!0&&ce)for(var q=Array.isArray(ce),Z=q?ce:[ce],ee=0;ee<Z.length;ee++){O=Z[ee];var V=O.container;I=V?U[V]:U,I&&I.showscale&&(B=X(I.colorbar),B._id="cb"+U.uid+(q&&V?"-"+V:""),B._traceIndex=U.index,B._propPrefix=(V?V+".":"")+"colorbar.",B._meta=U._meta,J(),N.push(B))}}}for(var oe in z._colorAxes)if(I=z[oe],I.showscale){var ie=z._colorAxes[oe];B=X(I.colorbar),B._id="cb"+oe,B._propPrefix=oe+".colorbar.",B._meta=z._meta,O={min:"cmin",max:"cmax"},ie[0]!=="heatmap"&&(U=ie[1],O.calc=U._module.colorbar.calc),J(),N.push(B)}return N}function u(L,z,F){var N=z.orientation==="v",B=z.len,I=z.lenmode,U=z.thickness,O=z.thicknessmode,X=z.outlinewidth,J=z.borderwidth,se=z.bgcolor,le=z.xanchor,ce=z.yanchor,q=z.xpad,Z=z.ypad,ee=z.x,V=N?z.y:1-z.y,oe=z.yref==="paper",ie=z.xref==="paper",j=F._fullLayout,Q=j._size,re=z._fillcolor,ue=z._line,_e=z.title,we=_e.side,Re=z._zrange||p.extent((typeof re=="function"?re:ue.color).domain()),ze=typeof ue.color=="function"?ue.color:function(){return ue.color},Xe=typeof re=="function"?re:function(){return re},tt=z._levels,it=f(F,z,Re),et=it.fill,nt=it.line,Ae=Math.round(U*(O==="fraction"?N?Q.w:Q.h:1)),me=Ae/(N?Q.w:Q.h),fe=Math.round(B*(I==="fraction"?N?Q.h:Q.w:1)),Be=fe/(N?Q.h:Q.w),Qe=ie?Q.w:F._fullLayout.width,at=oe?Q.h:F._fullLayout.height,$e=Math.round(N?ee*Qe+q:V*at+Z),It={center:.5,right:1}[le]||0,Pt={top:1,middle:.5}[ce]||0,Vt=N?ee-It*me:V-Pt*me,Wt=N?V-Pt*Be:ee-It*Be,Cr=Math.round(N?at*(1-Wt):Qe*Wt);z._lenFrac=Be,z._thickFrac=me,z._uFrac=Vt,z._vFrac=Wt;var yr=z._axis=R(F,z,Re);yr.position=me+(N?ee+q/Q.w:V+Z/Q.h);var qr=["top","bottom"].indexOf(we)!==-1;if(N&&qr&&(yr.title.side=we,yr.titlex=ee+q/Q.w,yr.titley=Wt+(_e.side==="top"?Be-Z/Q.h:Z/Q.h)),!N&&!qr&&(yr.title.side=we,yr.titley=V+Z/Q.h,yr.titlex=Wt+q/Q.w),ue.color&&z.tickmode==="auto"){yr.tickmode="linear",yr.tick0=tt.start;var Mr=tt.size,Dr=r.constrain(fe/50,4,15)+1,xt=(Re[1]-Re[0])/((z.nticks||Dr)*Mr);if(xt>1){var Ne=Math.pow(10,Math.floor(Math.log(xt)/Math.LN10));Mr*=Ne*r.roundUp(xt/Ne,[2,5,10]),(Math.abs(tt.start)/tt.size+1e-6)%1<2e-6&&(yr.tick0=0)}yr.dtick=Mr}yr.domain=N?[Wt+Z/Q.h,Wt+Be-Z/Q.h]:[Wt+q/Q.w,Wt+Be-q/Q.w],yr.setScale(),L.attr("transform",o(Math.round(Q.l),Math.round(Q.t)));var Ye=L.select("."+g.cbtitleunshift).attr("transform",o(-Math.round(Q.l),-Math.round(Q.t))),be=yr.ticklabelposition,Ie=yr.title.font.size,qe=L.select("."+g.cbaxis),ke,Me=0,Le=0;function ut(ir,tr){var Ir={propContainer:yr,propName:z._propPrefix+"title.text",traceIndex:z._traceIndex,_meta:z._meta,placeholder:j._dfltTitle.colorbar,containerGroup:L.select("."+g.cbtitle)},vi=ir.charAt(0)==="h"?ir.slice(1):"h"+ir;L.selectAll("."+vi+",."+vi+"-math-group").remove(),h.draw(F,ir,i(Ir,tr||{}))}function lt(){if(N&&qr||!N&&!qr){var ir,tr;we==="top"&&(ir=q+Q.l+Qe*ee,tr=Z+Q.t+at*(1-Wt-Be)+3+Ie*.75),we==="bottom"&&(ir=q+Q.l+Qe*ee,tr=Z+Q.t+at*(1-Wt)-3-Ie*.25),we==="right"&&(tr=Z+Q.t+at*V+3+Ie*.75,ir=q+Q.l+Qe*Wt),ut(yr._id+"title",{attributes:{x:ir,y:tr,"text-anchor":N?"start":"middle"}})}}function gt(){if(N&&!qr||!N&&qr){var ir=yr.position||0,tr=yr._offset+yr._length/2,Ir,vi;if(we==="right")vi=tr,Ir=Q.l+Qe*ir+10+Ie*(yr.showticklabels?1:.5);else if(Ir=tr,we==="bottom"&&(vi=Q.t+at*ir+10+(be.indexOf("inside")===-1?yr.tickfont.size:0)+(yr.ticks!=="inside"&&z.ticklen||0)),we==="top"){var Vi=_e.text.split("<br>").length;vi=Q.t+at*ir+10-Ae-w*Ie*Vi}ut((N?"h":"v")+yr._id+"title",{avoid:{selection:p.select(F).selectAll("g."+yr._id+"tick"),side:we,offsetTop:N?0:Q.t,offsetLeft:N?Q.l:0,maxShift:N?j.width:j.height},attributes:{x:Ir,y:vi,"text-anchor":"middle"},transform:{rotate:N?-90:0,offset:0}})}}function kt(){if(!N&&!qr||N&&qr){var ir=L.select("."+g.cbtitle),tr=ir.select("text"),Ir=[-X/2,X/2],vi=ir.select(".h"+yr._id+"title-math-group").node(),Vi=15.6;tr.node()&&(Vi=parseInt(tr.node().style.fontSize,10)*w);var Ui;if(vi?(Ui=a.bBox(vi),Le=Ui.width,Me=Ui.height,Me>Vi&&(Ir[1]-=(Me-Vi)/2)):tr.node()&&!tr.classed(g.jsPlaceholder)&&(Ui=a.bBox(tr.node()),Le=Ui.width,Me=Ui.height),N){if(Me){if(Me+=5,we==="top")yr.domain[1]-=Me/Q.h,Ir[1]*=-1;else{yr.domain[0]+=Me/Q.h;var Ki=c.lineCount(tr);Ir[1]+=(1-Ki)*Vi}ir.attr("transform",o(Ir[0],Ir[1])),yr.setScale()}}else Le&&(we==="right"&&(yr.domain[0]+=(Le+Ie/2)/Q.w),ir.attr("transform",o(Ir[0],Ir[1])),yr.setScale())}L.selectAll("."+g.cbfills+",."+g.cblines).attr("transform",N?o(0,Math.round(Q.h*(1-yr.domain[1]))):o(Math.round(Q.w*yr.domain[0]),0)),qe.attr("transform",N?o(0,Math.round(-Q.t)):o(Math.round(-Q.l),0));var ea=L.select("."+g.cbfills).selectAll("rect."+g.cbfill).attr("style","").data(et);ea.enter().append("rect").classed(g.cbfill,!0).attr("style",""),ea.exit().remove();var Bi=Re.map(yr.c2p).map(Math.round).sort(function(Zt,Jt){return Zt-Jt});ea.each(function(Zt,Jt){var Br=[Jt===0?Re[0]:(et[Jt]+et[Jt-1])/2,Jt===et.length-1?Re[1]:(et[Jt]+et[Jt+1])/2].map(yr.c2p).map(Math.round);N&&(Br[1]=r.constrain(Br[1]+(Br[1]>Br[0])?1:-1,Bi[0],Bi[1]));var ri=p.select(this).attr(N?"x":"y",$e).attr(N?"y":"x",p.min(Br)).attr(N?"width":"height",Math.max(Ae,2)).attr(N?"height":"width",Math.max(p.max(Br)-p.min(Br),2));if(z._fillgradient)a.gradient(ri,F,z._id,N?"vertical":"horizontalreversed",z._fillgradient,"fill");else{var ii=Xe(Zt).replace("e-","");ri.attr("fill",x(ii).toHexString())}});var _a=L.select("."+g.cblines).selectAll("path."+g.cbline).data(ue.color&&ue.width?nt:[]);_a.enter().append("path").classed(g.cbline,!0),_a.exit().remove(),_a.each(function(Zt){var Jt=$e,Br=Math.round(yr.c2p(Zt))+ue.width/2%1;p.select(this).attr("d","M"+(N?Jt+","+Br:Br+","+Jt)+(N?"h":"v")+Ae).call(a.lineGroupStyle,ue.width,ze(Zt),ue.dash)}),qe.selectAll("g."+yr._id+"tick,path").remove();var Ca=$e+Ae+(X||0)/2-(z.ticks==="outside"?1:0),Kt=e.calcTicks(yr),zt=e.getTickSigns(yr)[2];return e.drawTicks(F,yr,{vals:yr.ticks==="inside"?e.clipEnds(yr,Kt):Kt,layer:qe,path:e.makeTickPath(yr,Ca,zt),transFn:e.makeTransTickFn(yr)}),e.drawLabels(F,yr,{vals:Kt,layer:qe,transFn:e.makeTransTickLabelFn(yr),labelFns:e.makeLabelFns(yr,Ca)})}function nr(){var ir,tr=Ae+X/2;be.indexOf("inside")===-1&&(ir=a.bBox(qe.node()),tr+=N?ir.width:ir.height),ke=Ye.select("text");var Ir=0,vi=N&&we==="top",Vi=!N&&we==="right",Ui=0;if(ke.node()&&!ke.classed(g.jsPlaceholder)){var Ki,ea=Ye.select(".h"+yr._id+"title-math-group").node();ea&&(N&&qr||!N&&!qr)?(ir=a.bBox(ea),Ir=ir.width,Ki=ir.height):(ir=a.bBox(Ye.node()),Ir=ir.right-Q.l-(N?$e:Cr),Ki=ir.bottom-Q.t-(N?Cr:$e),!N&&we==="top"&&(tr+=ir.height,Ui=ir.height)),Vi&&(ke.attr("transform",o(Ir/2+Ie/2,0)),Ir*=2),tr=Math.max(tr,N?Ir:Ki)}var Bi=(N?q:Z)*2+tr+J+X/2,_a=0;!N&&_e.text&&ce==="bottom"&&V<=0&&(_a=Bi/2,Bi+=_a,Ui+=_a),j._hColorbarMoveTitle=_a,j._hColorbarMoveCBTitle=Ui;var Ca=J+X,Kt=(N?$e:Cr)-Ca/2-(N?q:0),zt=(N?Cr:$e)-(N?fe:Z+Ui-_a);L.select("."+g.cbbg).attr("x",Kt).attr("y",zt).attr(N?"width":"height",Math.max(Bi-_a,2)).attr(N?"height":"width",Math.max(fe+Ca,2)).call(s.fill,se).call(s.stroke,z.bordercolor).style("stroke-width",J);var Zt=Vi?Math.max(Ir-10,0):0;L.selectAll("."+g.cboutline).attr("x",(N?$e:Cr+q)+Zt).attr("y",(N?Cr+Z-fe:$e)+(vi?Me:0)).attr(N?"width":"height",Math.max(Ae,2)).attr(N?"height":"width",Math.max(fe-(N?2*Z+Me:2*q+Zt),2)).call(s.stroke,z.outlinecolor).style({fill:"none","stroke-width":X});var Jt=N?It*Bi:0,Br=N?0:(1-Pt)*Bi-Ui;if(Jt=ie?Q.l-Jt:-Jt,Br=oe?Q.t-Br:-Br,L.attr("transform",o(Jt,Br)),!N&&(J||x(se).getAlpha()&&!x.equals(j.paper_bgcolor,se))){var ri=qe.selectAll("text"),ii=ri[0].length,di=L.select("."+g.cbbg).node(),Wi=a.bBox(di),oa=a.getTranslate(L),ra=2;ri.each(function(Lr,br){var Rr=0,jr=ii-1;if(br===Rr||br===jr){var Wr=a.bBox(this),yt=a.getTranslate(this),Xt;if(br===jr){var mr=Wr.right+yt.x,Or=Wi.right+oa.x+Cr-J-ra+ee;Xt=Or-mr,Xt>0&&(Xt=0)}else if(br===Rr){var ki=Wr.left+yt.x,Ni=Wi.left+oa.x+Cr+J+ra;Xt=Ni-ki,Xt<0&&(Xt=0)}Xt&&(ii<3?this.setAttribute("transform","translate("+Xt+",0) "+this.getAttribute("transform")):this.setAttribute("visibility","hidden"))}})}var ca={},xa=A[le],ji=M[le],pn=A[ce],_n=M[ce],En=Bi-Ae;N?(I==="pixels"?(ca.y=V,ca.t=fe*pn,ca.b=fe*_n):(ca.t=ca.b=0,ca.yt=V+B*pn,ca.yb=V-B*_n),O==="pixels"?(ca.x=ee,ca.l=Bi*xa,ca.r=Bi*ji):(ca.l=En*xa,ca.r=En*ji,ca.xl=ee-U*xa,ca.xr=ee+U*ji)):(I==="pixels"?(ca.x=ee,ca.l=fe*xa,ca.r=fe*ji):(ca.l=ca.r=0,ca.xl=ee+B*xa,ca.xr=ee-B*ji),O==="pixels"?(ca.y=1-V,ca.t=Bi*pn,ca.b=Bi*_n):(ca.t=En*pn,ca.b=En*_n,ca.yt=V-U*pn,ca.yb=V+U*_n));var bt=z.y<.5?"b":"t",st=z.x<.5?"l":"r";F._fullLayout._reservedMargin[z._id]={};var Nr={r:j.width-Kt-Jt,l:Kt+ca.r,b:j.height-zt-Br,t:zt+ca.b};ie&&oe?S.autoMargin(F,z._id,ca):ie?F._fullLayout._reservedMargin[z._id][bt]=Nr[bt]:oe||N?F._fullLayout._reservedMargin[z._id][st]=Nr[st]:F._fullLayout._reservedMargin[z._id][bt]=Nr[bt]}return r.syncOrAsync([S.previousPromises,lt,kt,gt,S.previousPromises,nr],F)}function y(L,z,F){var N=z.orientation==="v",B=F._fullLayout,I=B._size,U,O,X;t.init({element:L.node(),gd:F,prepFn:function(){U=L.attr("transform"),n(L)},moveFn:function(J,se){L.attr("transform",U+o(J,se)),O=t.align((N?z._uFrac:z._vFrac)+J/I.w,N?z._thickFrac:z._lenFrac,0,1,z.xanchor),X=t.align((N?z._vFrac:1-z._uFrac)-se/I.h,N?z._lenFrac:z._thickFrac,0,1,z.yanchor);var le=t.getCursor(O,X,z.xanchor,z.yanchor);n(L,le)},doneFn:function(){if(n(L),O!==void 0&&X!==void 0){var J={};J[z._propPrefix+"x"]=O,J[z._propPrefix+"y"]=X,z._traceIndex!==void 0?E.call("_guiRestyle",F,J,z._traceIndex):E.call("_guiRelayout",F,J)}}})}function f(L,z,F){var N=z._levels,B=[],I=[],U,O,X=N.end+N.size/100,J=N.size,se=1.001*F[0]-.001*F[1],le=1.001*F[1]-.001*F[0];for(O=0;O<1e5&&(U=N.start+O*J,!(J>0?U>=X:U<=X));O++)U>se&&U<le&&B.push(U);if(z._fillgradient)I=[0];else if(typeof z._fillcolor=="function"){var ce=z._filllevels;if(ce)for(X=ce.end+ce.size/100,J=ce.size,O=0;O<1e5&&(U=ce.start+O*J,!(J>0?U>=X:U<=X));O++)U>F[0]&&U<F[1]&&I.push(U);else I=B.map(function(q){return q-N.size/2}),I.push(I[I.length-1]+N.size)}else z._fillcolor&&typeof z._fillcolor=="string"&&(I=[0]);return N.size<0&&(B.reverse(),I.reverse()),{line:B,fill:I}}function R(L,z,F){var N=L._fullLayout,B=z.orientation==="v",I={type:"linear",range:F,tickmode:z.tickmode,nticks:z.nticks,tick0:z.tick0,dtick:z.dtick,tickvals:z.tickvals,ticktext:z.ticktext,ticks:z.ticks,ticklen:z.ticklen,tickwidth:z.tickwidth,tickcolor:z.tickcolor,showticklabels:z.showticklabels,labelalias:z.labelalias,ticklabelposition:z.ticklabelposition,ticklabeloverflow:z.ticklabeloverflow,ticklabelstep:z.ticklabelstep,tickfont:z.tickfont,tickangle:z.tickangle,tickformat:z.tickformat,exponentformat:z.exponentformat,minexponent:z.minexponent,separatethousands:z.separatethousands,showexponent:z.showexponent,showtickprefix:z.showtickprefix,tickprefix:z.tickprefix,showticksuffix:z.showticksuffix,ticksuffix:z.ticksuffix,title:z.title,showline:!0,anchor:"free",side:B?"right":"bottom",position:1},U=B?"y":"x",O={type:"linear",_id:U+z._id},X={letter:U,font:N.font,noAutotickangles:U==="y",noHover:!0,noTickson:!0,noTicklabelmode:!0,noInsideRange:!0,calendar:N.calendar};function J(se,le){return r.coerce(I,O,l,se,le)}return d(I,O,J,X,N),T(I,O,J,X),O}H.exports={draw:b}}}),fk=De({"src/components/colorbar/index.js"(Y,H){"use strict";H.exports={moduleType:"component",name:"colorbar",attributes:w_(),supplyDefaults:Gw(),draw:ck().draw,hasColorbar:Vw()}}}),hk=De({"src/components/legend/index.js"(Y,H){"use strict";H.exports={moduleType:"component",name:"legend",layoutAttributes:Yw(),supplyLayoutDefaults:Zw(),draw:Qw(),style:Jw()}}}),dk=De({"src/locale-en.js"(Y,H){"use strict";H.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"}}}}),vk=De({"src/locale-en-us.js"(Y,H){"use strict";H.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}}}),I2=De({"src/snapshot/cloneplot.js"(Y,H){"use strict";var p=Mo(),x=ui(),S=x.extendFlat,E=x.extendDeep;function e(r){var o;switch(r){case"themes__thumb":o={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":o={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:o={}}return o}function t(r){var o=["xaxis","yaxis","zaxis"];return o.indexOf(r.slice(0,5))>-1}H.exports=function(o,i){var n,a=o.data,s=o.layout,h=E([],a),c=E({},s,e(i.tileClass)),m=o._context||{};if(i.width&&(c.width=i.width),i.height&&(c.height=i.height),i.tileClass==="thumbnail"||i.tileClass==="themes__thumb"){c.annotations=[];var d=Object.keys(c);for(n=0;n<d.length;n++)t(d[n])&&(c[d[n]].title={text:""});for(n=0;n<h.length;n++){var T=h[n];T.showscale=!1,T.marker&&(T.marker.showscale=!1),p.traceIs(T,"pie-like")&&(T.textposition="none")}}if(Array.isArray(i.annotations))for(n=0;n<i.annotations.length;n++)c.annotations.push(i.annotations[n]);var l=Object.keys(c).filter(function(g){return g.match(/^scene\d*$/)});if(l.length){var _={};for(i.tileClass==="thumbnail"&&(_={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),n=0;n<l.length;n++){var w=c[l[n]];w.xaxis||(w.xaxis={}),w.yaxis||(w.yaxis={}),w.zaxis||(w.zaxis={}),S(w.xaxis,_),S(w.yaxis,_),S(w.zaxis,_),w._scene=null}}var A=document.createElement("div");i.tileClass&&(A.className=i.tileClass);var M={gd:A,td:A,layout:c,data:h,config:{staticPlot:i.staticPlot===void 0?!0:i.staticPlot,plotGlPixelRatio:i.plotGlPixelRatio===void 0?2:i.plotGlPixelRatio,displaylogo:i.displaylogo||!1,showLink:i.showLink||!1,showTips:i.showTips||!1,mapboxAccessToken:m.mapboxAccessToken}};return i.setBackground!=="transparent"&&(M.config.setBackground=i.setBackground||"opaque"),M.gd.defaultLayout=e(i.tileClass),M}}}),pk=De({"src/snapshot/toimage.js"(Y,H){"use strict";var p=N0().EventEmitter,x=Mo(),S=ui(),E=cp(),e=I2(),t=I_(),r=P_();function o(i,n){var a=new p,s=e(i,{format:"png"}),h=s.gd;h.style.position="absolute",h.style.left="-5000px",document.body.appendChild(h);function c(){var d=E.getDelay(h._fullLayout);setTimeout(function(){var T=t(h),l=document.createElement("canvas");l.id=S.randstr(),a=r({format:n.format,width:h._fullLayout.width,height:h._fullLayout.height,canvas:l,emitter:a,svg:T}),a.clean=function(){h&&document.body.removeChild(h)}},d)}var m=E.getRedrawFunc(h);return x.call("_doPlot",h,s.data,s.layout,s.config).then(m).then(c).catch(function(d){a.emit("error",d)}),a}H.exports=o}}),mk=De({"src/snapshot/index.js"(Y,H){"use strict";var p=cp(),x={getDelay:p.getDelay,getRedrawFunc:p.getRedrawFunc,clone:I2(),toSVG:I_(),svgToImg:P_(),toImage:pk(),downloadImage:p2()};H.exports=x}}),gk=De({"src/core.js"(Y){"use strict";Y.version=en().version,Mn(),kM();var H=Mo(),p=Y.register=H.register,x=vE(),S=Object.keys(x);for(e=0;e<S.length;e++)E=S[e],E.charAt(0)!=="_"&&(Y[E]=x[E]),p({moduleType:"apiMethod",name:E,fn:x[E]});var E,e;p(TE()),p([CE(),RE(),Af(),BE(),jE(),GE(),YE(),QE(),ik(),k2(),lk(),oc(),fk(),hk(),sf(),s2()]),p([dk(),vk()]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(p(window.PlotlyLocales),delete window.PlotlyLocales),Y.Icons=A_();var t=sf(),r=Mc();Y.Plots={resize:r.resize,graphJson:r.graphJson,sendDataToCloud:r.sendDataToCloud},Y.Fx={hover:t.hover,unhover:t.unhover,loneHover:t.loneHover,loneUnhover:t.loneUnhover},Y.Snapshot=mk(),Y.PlotSchema=Ym()}}),yk=De({"lib/core.js"(Y,H){"use strict";H.exports=gk()}}),Bv=De({"src/traces/bar/attributes.js"(Y,H){"use strict";var p=lf(),x=of().axisHoverFormat,{hovertemplateAttrs:S,texttemplateAttrs:E,templatefallbackAttrs:e}=ou(),t=zu(),r=qu(),o=Yp(),i=Ch().pattern,n=Xo().extendFlat,a=r({editType:"calc",arrayOk:!0,colorEditType:"style"}),s=p.marker,h=s.line,c=n({},h.width,{dflt:0}),m=n({width:c,editType:"calc"},t("marker.line")),d=n({line:m,editType:"calc"},t("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"},pattern:i,cornerradius:{valType:"any",editType:"calc"}});H.exports={x:p.x,x0:p.x0,dx:p.dx,y:p.y,y0:p.y0,dy:p.dy,xperiod:p.xperiod,yperiod:p.yperiod,xperiod0:p.xperiod0,yperiod0:p.yperiod0,xperiodalignment:p.xperiodalignment,yperiodalignment:p.yperiodalignment,xhoverformat:x("x"),yhoverformat:x("y"),text:p.text,texttemplate:E({editType:"plot"},{keys:o.eventDataKeys}),texttemplatefallback:e({editType:"plot"}),hovertext:p.hovertext,hovertemplate:S({},{keys:o.eventDataKeys}),hovertemplatefallback:e(),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:n({},a,{}),insidetextfont:n({},a,{}),outsidetextfont:n({},a,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:n({},p.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:d,offsetgroup:p.offsetgroup,alignmentgroup:p.alignmentgroup,selected:{marker:{opacity:p.selected.marker.opacity,color:p.selected.marker.color,editType:"style"},textfont:p.selected.textfont,editType:"style"},unselected:{marker:{opacity:p.unselected.marker.opacity,color:p.unselected.marker.color,editType:"style"},textfont:p.unselected.textfont,editType:"style"},zorder:p.zorder}}}),V_=De({"src/traces/bar/layout_attributes.js"(Y,H){"use strict";H.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"}}}}),q_=De({"src/traces/bar/style_defaults.js"(Y,H){"use strict";var p=vo(),x=$h().hasColorscale,S=dh(),E=ui().coercePattern;H.exports=function(t,r,o,i,n){var a=o("marker.color",i),s=x(t,"marker");s&&S(t,r,n,o,{prefix:"marker.",cLetter:"c"}),o("marker.line.color",p.defaultLine),x(t,"marker.line")&&S(t,r,n,o,{prefix:"marker.line.",cLetter:"c"}),o("marker.line.width"),o("marker.opacity"),E(o,"marker.pattern",a,s),o("selected.marker.color"),o("unselected.marker.color")}}}),Nd=De({"src/traces/bar/defaults.js"(Y,H){"use strict";var p=vn(),x=ui(),S=vo(),E=Mo(),e=Qm(),t=pv(),r=q_(),o=H0(),i=Bv(),n=x.coerceFont;function a(m,d,T,l){function _(b,v){return x.coerce(m,d,i,b,v)}var w=e(m,d,l,_);if(!w){d.visible=!1;return}t(m,d,l,_),_("xhoverformat"),_("yhoverformat"),_("zorder"),_("orientation",d.x&&!d.y?"h":"v"),_("base"),_("offset"),_("width"),_("text"),_("hovertext"),_("hovertemplate"),_("hovertemplatefallback");var A=_("textposition");c(m,d,l,_,A,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),r(m,d,_,T,l);var M=(d.marker.line||{}).color,g=E.getComponentMethod("errorbars","supplyDefaults");g(m,d,M||S.defaultLine,{axis:"y"}),g(m,d,M||S.defaultLine,{axis:"x",inherit:"y"}),x.coerceSelectionMarkerOpacity(d,_)}function s(m,d){var T,l;function _(M,g){return x.coerce(l._input,l,i,M,g)}for(var w=0;w<m.length;w++)if(l=m[w],l.type==="bar"){T=l._input;var A=_("marker.cornerradius",d.barcornerradius);l.marker&&(l.marker.cornerradius=h(A)),o(T,l,d,_,d.barmode)}}function h(m){if(p(m)){if(m=+m,m>=0)return m}else if(typeof m=="string"&&(m=m.trim(),m.slice(-1)==="%"&&p(m.slice(0,-1))&&(m=+m.slice(0,-1),m>=0)))return m+"%"}function c(m,d,T,l,_,w){w=w||{};var A=w.moduleHasSelected!==!1,M=w.moduleHasUnselected!==!1,g=w.moduleHasConstrain!==!1,b=w.moduleHasCliponaxis!==!1,v=w.moduleHasTextangle!==!1,u=w.moduleHasInsideanchor!==!1,y=!!w.hasPathbar,f=Array.isArray(_)||_==="auto",R=f||_==="inside",L=f||_==="outside";if(R||L){var z=n(l,"textfont",T.font),F=x.extendFlat({},z),N=m.textfont&&m.textfont.color,B=!N;if(B&&delete F.color,n(l,"insidetextfont",F),y){var I=x.extendFlat({},z);B&&delete I.color,n(l,"pathbar.textfont",I)}L&&n(l,"outsidetextfont",z),A&&l("selected.textfont.color"),M&&l("unselected.textfont.color"),g&&l("constraintext"),b&&l("cliponaxis"),v&&l("textangle"),l("texttemplate"),l("texttemplatefallback")}R&&u&&l("insidetextanchor")}H.exports={supplyDefaults:a,crossTraceDefaults:s,handleText:c,validateCornerradius:h}}}),P2=De({"src/traces/bar/layout_defaults.js"(Y,H){"use strict";var p=Mo(),x=us(),S=ui(),E=V_(),e=Nd().validateCornerradius;H.exports=function(t,r,o){function i(A,M){return S.coerce(t,r,E,A,M)}for(var n=!1,a=!1,s=!1,h={},c=i("barmode"),m=c==="group",d=0;d<o.length;d++){var T=o[d];if(p.traceIs(T,"bar")&&T.visible)n=!0;else continue;var l=T.xaxis+T.yaxis;if(m?(h[l]&&(s=!0),h[l]=!0):(l+=T._input.offsetgroup,h.length>0&&!h[l]&&(s=!0),h[l]=!0),T.visible&&T.type==="histogram"){var _=x.getFromId({_fullLayout:r},T[T.orientation==="v"?"xaxis":"yaxis"]);_.type!=="category"&&(a=!0)}}if(!n){delete r.barmode;return}c!=="overlay"&&i("barnorm"),i("bargap",a&&!s?0:.2),i("bargroupgap");var w=i("barcornerradius");r.barcornerradius=e(w)}}}),xy=De({"src/traces/bar/arrays_to_calcdata.js"(Y,H){"use strict";var p=ui();H.exports=function(S,E){for(var e=0;e<S.length;e++)S[e].i=e;p.mergeArray(E.text,S,"tx"),p.mergeArray(E.hovertext,S,"htx");var t=E.marker;if(t){p.mergeArray(t.opacity,S,"mo",!0),p.mergeArray(t.color,S,"mc");var r=t.line;r&&(p.mergeArray(r.color,S,"mlc"),p.mergeArrayCastPositive(r.width,S,"mlw"))}}}}),_k=De({"src/traces/bar/calc.js"(Y,H){"use strict";var p=us(),x=gv(),S=$h().hasColorscale,E=Jh(),e=xy(),t=Zd();H.exports=function(o,i){var n=p.getFromId(o,i.xaxis||"x"),a=p.getFromId(o,i.yaxis||"y"),s,h,c,m,d,T,l={msUTC:!!(i.base||i.base===0)};i.orientation==="h"?(s=n.makeCalcdata(i,"x",l),c=a.makeCalcdata(i,"y"),m=x(i,a,"y",c),d=!!i.yperiodalignment,T="y"):(s=a.makeCalcdata(i,"y",l),c=n.makeCalcdata(i,"x"),m=x(i,n,"x",c),d=!!i.xperiodalignment,T="x"),h=m.vals;for(var _=Math.min(h.length,s.length),w=new Array(_),A=0;A<_;A++)w[A]={p:h[A],s:s[A]},d&&(w[A].orig_p=c[A],w[A][T+"End"]=m.ends[A],w[A][T+"Start"]=m.starts[A]),i.ids&&(w[A].id=String(i.ids[A]));return S(i,"marker")&&E(o,i,{vals:i.marker.color,containerStr:"marker",cLetter:"c"}),S(i,"marker.line")&&E(o,i,{vals:i.marker.line.color,containerStr:"marker.line",cLetter:"c"}),e(w,i),t(w,i),w}}}),ed=De({"src/traces/bar/uniform_text.js"(Y,H){"use strict";var p=za(),x=ui();function S(r,o,i){var n=r._fullLayout,a=n["_"+i+"Text_minsize"];if(a){var s=n.uniformtext.mode==="hide",h;switch(i){case"funnelarea":case"pie":case"sunburst":h="g.slice";break;case"treemap":case"icicle":h="g.slice, g.pathbar";break;default:h="g.points > g.point"}o.selectAll(h).each(function(c){var m=c.transform;if(m){m.scale=s&&m.hide?0:a/m.fontSize;var d=p.select(this).select("text");x.setTransormAndDisplay(d,m)}})}}function E(r,o,i){if(i.uniformtext.mode){var n=t(r),a=i.uniformtext.minsize,s=o.scale*o.fontSize;o.hide=s<a,i[n]=i[n]||1/0,o.hide||(i[n]=Math.min(i[n],Math.max(s,a)))}}function e(r,o){var i=t(r);o[i]=void 0}function t(r){return"_"+r+"Text_minsize"}H.exports={recordMinTextSize:E,clearMinTextSize:e,resizeText:S}}}),H_=De({"src/traces/bar/helpers.js"(Y){"use strict";var H=vn(),p=wu(),x=ui().isArrayOrTypedArray;Y.coerceString=function(S,E,e){if(typeof E=="string"){if(E||!S.noBlank)return E}else if((typeof E=="number"||E===!0)&&!S.strict)return String(E);return e!==void 0?e:S.dflt},Y.coerceNumber=function(S,E,e){if(H(E)){E=+E;var t=S.min,r=S.max,o=t!==void 0&&E<t||r!==void 0&&E>r;if(!o)return E}return e!==void 0?e:S.dflt},Y.coerceColor=function(S,E,e){return p(E).isValid()?E:e!==void 0?e:S.dflt},Y.coerceEnumerated=function(S,E,e){return S.coerceNumber&&(E=+E),S.values.indexOf(E)!==-1?E:e!==void 0?e:S.dflt},Y.getValue=function(S,E){var e;return x(S)?E<S.length&&(e=S[E]):e=S,e},Y.getLineWidth=function(S,E){var e=0<E.mlw?E.mlw:x(S.marker.line.width)?0:S.marker.line.width;return e}}}),$d=De({"src/traces/bar/style.js"(Y,H){"use strict";var p=za(),x=vo(),S=ys(),E=ui(),e=Mo(),t=ed().resizeText,r=Bv(),o=r.textfont,i=r.insidetextfont,n=r.outsidetextfont,a=H_();function s(b){var v=p.select(b).selectAll('g[class^="barlayer"]').selectAll("g.trace");t(b,v,"bar");var u=v.size(),y=b._fullLayout;v.style("opacity",function(f){return f[0].trace.opacity}).each(function(f){(y.barmode==="stack"&&u>1||y.bargap===0&&y.bargroupgap===0&&!f[0].trace.marker.line.width)&&p.select(this).attr("shape-rendering","crispEdges")}),v.selectAll("g.points").each(function(f){var R=p.select(this),L=f[0].trace;h(R,L,b)}),e.getComponentMethod("errorbars","style")(v)}function h(b,v,u){S.pointStyle(b.selectAll("path"),v,u),c(b,v,u)}function c(b,v,u){b.selectAll("text").each(function(y){var f=p.select(this),R=E.ensureUniformFontSize(u,l(f,y,v,u));S.font(f,R)})}function m(b,v,u){var y=v[0].trace;y.selectedpoints?d(u,y,b):(h(u,y,b),e.getComponentMethod("errorbars","style")(u))}function d(b,v,u){S.selectedPointStyle(b.selectAll("path"),v),T(b.selectAll("text"),v,u)}function T(b,v,u){b.each(function(y){var f=p.select(this),R;if(y.selected){R=E.ensureUniformFontSize(u,l(f,y,v,u));var L=v.selected.textfont&&v.selected.textfont.color;L&&(R.color=L),S.font(f,R)}else S.selectedTextStyle(f,v)})}function l(b,v,u,y){var f=y._fullLayout.font,R=u.textfont;if(b.classed("bartext-inside")){var L=g(v,u);R=w(u,v.i,f,L)}else b.classed("bartext-outside")&&(R=A(u,v.i,f));return R}function _(b,v,u){return M(o,b.textfont,v,u)}function w(b,v,u,y){var f=_(b,v,u),R=b._input.textfont===void 0||b._input.textfont.color===void 0||Array.isArray(b.textfont.color)&&b.textfont.color[v]===void 0;return R&&(f={color:x.contrast(y),family:f.family,size:f.size,weight:f.weight,style:f.style,variant:f.variant,textcase:f.textcase,lineposition:f.lineposition,shadow:f.shadow}),M(i,b.insidetextfont,v,f)}function A(b,v,u){var y=_(b,v,u);return M(n,b.outsidetextfont,v,y)}function M(b,v,u,y){v=v||{};var f=a.getValue(v.family,u),R=a.getValue(v.size,u),L=a.getValue(v.color,u),z=a.getValue(v.weight,u),F=a.getValue(v.style,u),N=a.getValue(v.variant,u),B=a.getValue(v.textcase,u),I=a.getValue(v.lineposition,u),U=a.getValue(v.shadow,u);return{family:a.coerceString(b.family,f,y.family),size:a.coerceNumber(b.size,R,y.size),color:a.coerceColor(b.color,L,y.color),weight:a.coerceString(b.weight,z,y.weight),style:a.coerceString(b.style,F,y.style),variant:a.coerceString(b.variant,N,y.variant),textcase:a.coerceString(b.variant,B,y.textcase),lineposition:a.coerceString(b.variant,I,y.lineposition),shadow:a.coerceString(b.variant,U,y.shadow)}}function g(b,v){return v.type==="waterfall"?v[b.dir].marker.color:b.mcc||b.mc||v.marker.color}H.exports={style:s,styleTextPoints:c,styleOnSelect:m,getInsideTextFont:w,getOutsideTextFont:A,getBarColor:g,resizeText:t}}}),W0=De({"src/traces/bar/plot.js"(Y,H){"use strict";var p=za(),x=vn(),S=ui(),E=vu(),e=vo(),t=ys(),r=Mo(),o=us().tickText,i=ed(),n=i.recordMinTextSize,a=i.clearMinTextSize,s=$d(),h=H_(),c=Yp(),m=Bv(),d=m.text,T=m.textposition,l=Ad().appendArrayPointValue,_=c.TEXTPAD;function w(J){return J.id}function A(J){if(J.ids)return w}function M(J){return(J>0)-(J<0)}function g(J,se){return J<se?1:-1}function b(J,se,le,ce){var q=[],Z=[],ee=ce?se:le,V=ce?le:se;return q[0]=ee.c2p(J.s0,!0),Z[0]=V.c2p(J.p0,!0),q[1]=ee.c2p(J.s1,!0),Z[1]=V.c2p(J.p1,!0),ce?[q,Z]:[Z,q]}function v(J,se,le,ce){if(!se.uniformtext.mode&&u(le)){var q;return ce&&(q=ce()),J.transition().duration(le.duration).ease(le.easing).each("end",function(){q&&q()}).each("interrupt",function(){q&&q()})}else return J}function u(J){return J&&J.duration>0}function y(J,se,le,ce,q,Z){var ee=se.xaxis,V=se.yaxis,oe=J._fullLayout,ie=J._context.staticPlot;q||(q={mode:oe.barmode,norm:oe.barmode,gap:oe.bargap,groupgap:oe.bargroupgap},a("bar",oe));var j=S.makeTraceGroups(ce,le,"trace bars").each(function(Q){var re=p.select(this),ue=Q[0].trace,_e=Q[0].t,we=ue.type==="waterfall",Re=ue.type==="funnel",ze=ue.type==="histogram",Xe=ue.type==="bar",tt=Xe||Re,it=0;we&&ue.connector.visible&&ue.connector.mode==="between"&&(it=ue.connector.line.width/2);var et=ue.orientation==="h",nt=u(q),Ae=S.ensureSingle(re,"g","points"),me=A(ue),fe=Ae.selectAll("g.point").data(S.identity,me);fe.enter().append("g").classed("point",!0),fe.exit().remove(),fe.each(function(Qe,at){var $e=p.select(this),It=b(Qe,ee,V,et),Pt=It[0][0],Vt=It[0][1],Wt=It[1][0],Cr=It[1][1],yr=(et?Vt-Pt:Cr-Wt)===0;yr&&tt&&h.getLineWidth(ue,Qe)&&(yr=!1),yr||(yr=!x(Pt)||!x(Vt)||!x(Wt)||!x(Cr)),Qe.isBlank=yr,yr&&(et?Vt=Pt:Cr=Wt),it&&!yr&&(et?(Pt-=g(Pt,Vt)*it,Vt+=g(Pt,Vt)*it):(Wt-=g(Wt,Cr)*it,Cr+=g(Wt,Cr)*it));var qr,Mr;if(ue.type==="waterfall"){if(!yr){var Dr=ue[Qe.dir].marker;qr=Dr.line.width,Mr=Dr.color}}else qr=h.getLineWidth(ue,Qe),Mr=Qe.mc||ue.marker.color;function xt(Ca){var Kt=p.round(qr/2%1,2);return q.gap===0&&q.groupgap===0?p.round(Math.round(Ca)-Kt,2):Ca}function Ne(Ca,Kt,zt){return zt&&Ca===Kt?Ca:Math.abs(Ca-Kt)>=2?xt(Ca):Ca>Kt?Math.ceil(Ca):Math.floor(Ca)}var Ye=e.opacity(Mr),be=Ye<1||qr>.01?xt:Ne;J._context.staticPlot||(Pt=be(Pt,Vt,et),Vt=be(Vt,Pt,et),Wt=be(Wt,Cr,!et),Cr=be(Cr,Wt,!et));var Ie=et?ee.c2p:V.c2p,qe;Qe.s0>0?qe=Qe._sMax:Qe.s0<0?qe=Qe._sMin:qe=Qe.s1>0?Qe._sMax:Qe._sMin;function ke(Ca,Kt){if(!Ca)return 0;var zt=Math.abs(et?Cr-Wt:Vt-Pt),Zt=Math.abs(et?Vt-Pt:Cr-Wt),Jt=be(Math.abs(Ie(qe,!0)-Ie(0,!0))),Br=Qe.hasB?Math.min(zt/2,Zt/2):Math.min(zt/2,Jt),ri;if(Kt==="%"){var ii=Math.min(50,Ca);ri=zt*(ii/100)}else ri=Ca;return be(Math.max(Math.min(ri,Br),0))}var Me=Xe||ze?ke(_e.cornerradiusvalue,_e.cornerradiusform):0,Le,ut,lt="M"+Pt+","+Wt+"V"+Cr+"H"+Vt+"V"+Wt+"Z",gt=0;if(Me&&Qe.s){var kt=M(Qe.s0)===0||M(Qe.s)===M(Qe.s0)?Qe.s1:Qe.s0;if(gt=be(Qe.hasB?0:Math.abs(Ie(qe,!0)-Ie(kt,!0))),gt<Me){var nr=g(Pt,Vt),ir=g(Wt,Cr),tr=nr===-ir?1:0;if(et)if(Qe.hasB)Le="M"+(Pt+Me*nr)+","+Wt+"A "+Me+","+Me+" 0 0 "+tr+" "+Pt+","+(Wt+Me*ir)+"V"+(Cr-Me*ir)+"A "+Me+","+Me+" 0 0 "+tr+" "+(Pt+Me*nr)+","+Cr+"H"+(Vt-Me*nr)+"A "+Me+","+Me+" 0 0 "+tr+" "+Vt+","+(Cr-Me*ir)+"V"+(Wt+Me*ir)+"A "+Me+","+Me+" 0 0 "+tr+" "+(Vt-Me*nr)+","+Wt+"Z";else{ut=Math.abs(Vt-Pt)+gt;var Ir=ut<Me?Me-Math.sqrt(ut*(2*Me-ut)):0,vi=gt>0?Math.sqrt(gt*(2*Me-gt)):0,Vi=nr>0?Math.max:Math.min;Le="M"+Pt+","+Wt+"V"+(Cr-Ir*ir)+"H"+Vi(Vt-(Me-gt)*nr,Pt)+"A "+Me+","+Me+" 0 0 "+tr+" "+Vt+","+(Cr-Me*ir-vi)+"V"+(Wt+Me*ir+vi)+"A "+Me+","+Me+" 0 0 "+tr+" "+Vi(Vt-(Me-gt)*nr,Pt)+","+(Wt+Ir*ir)+"Z"}else if(Qe.hasB)Le="M"+(Pt+Me*nr)+","+Wt+"A "+Me+","+Me+" 0 0 "+tr+" "+Pt+","+(Wt+Me*ir)+"V"+(Cr-Me*ir)+"A "+Me+","+Me+" 0 0 "+tr+" "+(Pt+Me*nr)+","+Cr+"H"+(Vt-Me*nr)+"A "+Me+","+Me+" 0 0 "+tr+" "+Vt+","+(Cr-Me*ir)+"V"+(Wt+Me*ir)+"A "+Me+","+Me+" 0 0 "+tr+" "+(Vt-Me*nr)+","+Wt+"Z";else{ut=Math.abs(Cr-Wt)+gt;var Ui=ut<Me?Me-Math.sqrt(ut*(2*Me-ut)):0,Ki=gt>0?Math.sqrt(gt*(2*Me-gt)):0,ea=ir>0?Math.max:Math.min;Le="M"+(Pt+Ui*nr)+","+Wt+"V"+ea(Cr-(Me-gt)*ir,Wt)+"A "+Me+","+Me+" 0 0 "+tr+" "+(Pt+Me*nr-Ki)+","+Cr+"H"+(Vt-Me*nr+Ki)+"A "+Me+","+Me+" 0 0 "+tr+" "+(Vt-Ui*nr)+","+ea(Cr-(Me-gt)*ir,Wt)+"V"+Wt+"Z"}}else Le=lt}else Le=lt;var Bi=v(S.ensureSingle($e,"path"),oe,q,Z);if(Bi.style("vector-effect",ie?"none":"non-scaling-stroke").attr("d",isNaN((Vt-Pt)*(Cr-Wt))||yr&&J._context.staticPlot?"M0,0Z":Le).call(t.setClipUrl,se.layerClipId,J),!oe.uniformtext.mode&&nt){var _a=t.makePointStyleFns(ue);t.singlePointStyle(Qe,Bi,ue,_a,J)}f(J,se,$e,Q,at,Pt,Vt,Wt,Cr,Me,gt,q,Z),se.layerClipId&&t.hideOutsideRangePoint(Qe,$e.select("text"),ee,V,ue.xcalendar,ue.ycalendar)});var Be=ue.cliponaxis===!1;t.setClipUrl(re,Be?null:se.layerClipId,J)});r.getComponentMethod("errorbars","plot")(J,j,se,q)}function f(J,se,le,ce,q,Z,ee,V,oe,ie,j,Q,re){var ue=se.xaxis,_e=se.yaxis,we=J._fullLayout,Re;function ze(ut,lt,gt){var kt=S.ensureSingle(ut,"text").text(lt).attr({class:"bartext bartext-"+Re,"text-anchor":"middle","data-notex":1}).call(t.font,gt).call(E.convertToTspans,J);return kt}var Xe=ce[0].trace,tt=Xe.orientation==="h",it=I(we,ce,q,ue,_e);Re=U(Xe,q);var et=Q.mode==="stack"||Q.mode==="relative",nt=ce[q],Ae=!et||nt._outmost,me=nt.hasB,fe=ie&&ie-j>_;if(!it||Re==="none"||(nt.isBlank||Z===ee||V===oe)&&(Re==="auto"||Re==="inside")){le.select("text").remove();return}var Be=we.font,Qe=s.getBarColor(ce[q],Xe),at=s.getInsideTextFont(Xe,q,Be,Qe),$e=s.getOutsideTextFont(Xe,q,Be),It=Xe.insidetextanchor||"end",Pt=le.datum();tt?ue.type==="log"&&Pt.s0<=0&&(ue.range[0]<ue.range[1]?Z=0:Z=ue._length):_e.type==="log"&&Pt.s0<=0&&(_e.range[0]<_e.range[1]?V=_e._length:V=0);var Vt=Math.abs(ee-Z),Wt=Math.abs(oe-V),Cr=Vt-2*_,yr=Wt-2*_,qr,Mr,Dr,xt,Ne;if(Re==="outside"&&!Ae&&!nt.hasB&&(Re="inside"),Re==="auto")if(Ae){Re="inside",Ne=S.ensureUniformFontSize(J,at),qr=ze(le,it,Ne),Mr=t.bBox(qr.node()),Dr=Mr.width,xt=Mr.height;var Ye=Dr>0&&xt>0,be;fe?me?be=R(Cr-2*ie,yr,Dr,xt,tt)||R(Cr,yr-2*ie,Dr,xt,tt):tt?be=R(Cr-(ie-j),yr,Dr,xt,tt)||R(Cr,yr-2*(ie-j),Dr,xt,tt):be=R(Cr,yr-(ie-j),Dr,xt,tt)||R(Cr-2*(ie-j),yr,Dr,xt,tt):be=R(Cr,yr,Dr,xt,tt),Ye&&be?Re="inside":(Re="outside",qr.remove(),qr=null)}else Re="inside";if(!qr){Ne=S.ensureUniformFontSize(J,Re==="outside"?$e:at),qr=ze(le,it,Ne);var Ie=qr.attr("transform");if(qr.attr("transform",""),Mr=t.bBox(qr.node()),Dr=Mr.width,xt=Mr.height,qr.attr("transform",Ie),Dr<=0||xt<=0){qr.remove();return}}var qe=Xe.textangle,ke,Me;Re==="outside"?(Me=Xe.constraintext==="both"||Xe.constraintext==="outside",ke=B(Z,ee,V,oe,Mr,{isHorizontal:tt,constrained:Me,angle:qe})):(Me=Xe.constraintext==="both"||Xe.constraintext==="inside",ke=F(Z,ee,V,oe,Mr,{isHorizontal:tt,constrained:Me,angle:qe,anchor:It,hasB:me,r:ie,overhead:j})),ke.fontSize=Ne.size,n(Xe.type==="histogram"?"bar":Xe.type,ke,we),nt.transform=ke;var Le=v(qr,we,Q,re);S.setTransormAndDisplay(Le,ke)}function R(J,se,le,ce,q){if(J<0||se<0)return!1;var Z=le<=J&&ce<=se,ee=le<=se&&ce<=J,V=q?J>=le*(se/ce):se>=ce*(J/le);return Z||ee||V}function L(J){return J==="auto"?0:J}function z(J,se){var le=Math.PI/180*se,ce=Math.abs(Math.sin(le)),q=Math.abs(Math.cos(le));return{x:J.width*q+J.height*ce,y:J.width*ce+J.height*q}}function F(J,se,le,ce,q,Z){var ee=!!Z.isHorizontal,V=!!Z.constrained,oe=Z.angle||0,ie=Z.anchor,j=ie==="end",Q=ie==="start",re=Z.leftToRight||0,ue=(re+1)/2,_e=1-ue,we=Z.hasB,Re=Z.r,ze=Z.overhead,Xe=q.width,tt=q.height,it=Math.abs(se-J),et=Math.abs(ce-le),nt=it>2*_&&et>2*_?_:0;it-=2*nt,et-=2*nt;var Ae=L(oe);oe==="auto"&&!(Xe<=it&&tt<=et)&&(Xe>it||tt>et)&&(!(Xe>et||tt>it)||Xe<tt!=it<et)&&(Ae+=90);var me=z(q,Ae),fe,Be;if(Re&&Re-ze>_){var Qe=N(J,se,le,ce,me,Re,ze,ee,we);fe=Qe.scale,Be=Qe.pad}else fe=1,V&&(fe=Math.min(1,it/me.x,et/me.y)),Be=0;var at=q.left*_e+q.right*ue,$e=(q.top+q.bottom)/2,It=(J+_)*_e+(se-_)*ue,Pt=(le+ce)/2,Vt=0,Wt=0;if(Q||j){var Cr=(ee?me.x:me.y)/2;Re&&(j||we)&&(nt+=Be);var yr=ee?g(J,se):g(le,ce);ee?Q?(It=J+yr*nt,Vt=-yr*Cr):(It=se-yr*nt,Vt=yr*Cr):Q?(Pt=le+yr*nt,Wt=-yr*Cr):(Pt=ce-yr*nt,Wt=yr*Cr)}return{textX:at,textY:$e,targetX:It,targetY:Pt,anchorX:Vt,anchorY:Wt,scale:fe,rotate:Ae}}function N(J,se,le,ce,q,Z,ee,V,oe){var ie=Math.max(0,Math.abs(se-J)-2*_),j=Math.max(0,Math.abs(ce-le)-2*_),Q=Z-_,re=ee?Q-Math.sqrt(Q*Q-(Q-ee)*(Q-ee)):Q,ue=oe?Q*2:V?Q-ee:2*re,_e=oe?Q*2:V?2*re:Q-ee,we,Re,ze,Xe,tt;return q.y/q.x>=j/(ie-ue)?Xe=j/q.y:q.y/q.x<=(j-_e)/ie?Xe=ie/q.x:!oe&&V?(we=q.x*q.x+q.y*q.y/4,Re=-2*q.x*(ie-Q)-q.y*(j/2-Q),ze=(ie-Q)*(ie-Q)+(j/2-Q)*(j/2-Q)-Q*Q,Xe=(-Re+Math.sqrt(Re*Re-4*we*ze))/(2*we)):oe?(we=(q.x*q.x+q.y*q.y)/4,Re=-q.x*(ie/2-Q)-q.y*(j/2-Q),ze=(ie/2-Q)*(ie/2-Q)+(j/2-Q)*(j/2-Q)-Q*Q,Xe=(-Re+Math.sqrt(Re*Re-4*we*ze))/(2*we)):(we=q.x*q.x/4+q.y*q.y,Re=-q.x*(ie/2-Q)-2*q.y*(j-Q),ze=(ie/2-Q)*(ie/2-Q)+(j-Q)*(j-Q)-Q*Q,Xe=(-Re+Math.sqrt(Re*Re-4*we*ze))/(2*we)),Xe=Math.min(1,Xe),V?tt=Math.max(0,Q-Math.sqrt(Math.max(0,Q*Q-(Q-(j-q.y*Xe)/2)*(Q-(j-q.y*Xe)/2)))-ee):tt=Math.max(0,Q-Math.sqrt(Math.max(0,Q*Q-(Q-(ie-q.x*Xe)/2)*(Q-(ie-q.x*Xe)/2)))-ee),{scale:Xe,pad:tt}}function B(J,se,le,ce,q,Z){var ee=!!Z.isHorizontal,V=!!Z.constrained,oe=Z.angle||0,ie=q.width,j=q.height,Q=Math.abs(se-J),re=Math.abs(ce-le),ue;ee?ue=re>2*_?_:0:ue=Q>2*_?_:0;var _e=1;V&&(_e=ee?Math.min(1,re/j):Math.min(1,Q/ie));var we=L(oe),Re=z(q,we),ze=(ee?Re.x:Re.y)/2,Xe=(q.left+q.right)/2,tt=(q.top+q.bottom)/2,it=(J+se)/2,et=(le+ce)/2,nt=0,Ae=0,me=ee?g(se,J):g(le,ce);return ee?(it=se-me*ue,nt=me*ze):(et=ce+me*ue,Ae=-me*ze),{textX:Xe,textY:tt,targetX:it,targetY:et,anchorX:nt,anchorY:Ae,scale:_e,rotate:we}}function I(J,se,le,ce,q){var Z=se[0].trace,ee=Z.texttemplate,V;return ee?V=O(J,se,le,ce,q):Z.textinfo?V=X(se,le,ce,q):V=h.getValue(Z.text,le),h.coerceString(d,V)}function U(J,se){var le=h.getValue(J.textposition,se);return h.coerceEnumerated(T,le)}function O(J,se,le,ce,q){var Z=se[0].trace,ee=S.castOption(Z,le,"texttemplate");if(!ee)return"";var V=Z.type==="histogram",oe=Z.type==="waterfall",ie=Z.type==="funnel",j=Z.orientation==="h",Q,re,ue,_e;j?(Q="y",re=q,ue="x",_e=ce):(Q="x",re=ce,ue="y",_e=q);function we(nt){return o(re,re.c2l(nt),!0).text}function Re(nt){return o(_e,_e.c2l(nt),!0).text}var ze=se[le],Xe={};Xe.label=ze.p,Xe.labelLabel=Xe[Q+"Label"]=we(ze.p);var tt=S.castOption(Z,ze.i,"text");(tt===0||tt)&&(Xe.text=tt),Xe.value=ze.s,Xe.valueLabel=Xe[ue+"Label"]=Re(ze.s);var it={};l(it,Z,ze.i),(V||it.x===void 0)&&(it.x=j?Xe.value:Xe.label),(V||it.y===void 0)&&(it.y=j?Xe.label:Xe.value),(V||it.xLabel===void 0)&&(it.xLabel=j?Xe.valueLabel:Xe.labelLabel),(V||it.yLabel===void 0)&&(it.yLabel=j?Xe.labelLabel:Xe.valueLabel),oe&&(Xe.delta=+ze.rawS||ze.s,Xe.deltaLabel=Re(Xe.delta),Xe.final=ze.v,Xe.finalLabel=Re(Xe.final),Xe.initial=Xe.final-Xe.delta,Xe.initialLabel=Re(Xe.initial)),ie&&(Xe.value=ze.s,Xe.valueLabel=Re(Xe.value),Xe.percentInitial=ze.begR,Xe.percentInitialLabel=S.formatPercent(ze.begR),Xe.percentPrevious=ze.difR,Xe.percentPreviousLabel=S.formatPercent(ze.difR),Xe.percentTotal=ze.sumR,Xe.percenTotalLabel=S.formatPercent(ze.sumR));var et=S.castOption(Z,ze.i,"customdata");return et&&(Xe.customdata=et),S.texttemplateString({data:[it,Xe,Z._meta],fallback:Z.texttemplatefallback,labels:Xe,locale:J._d3locale,template:ee})}function X(J,se,le,ce){var q=J[0].trace,Z=q.orientation==="h",ee=q.type==="waterfall",V=q.type==="funnel";function oe(et){var nt=Z?ce:le;return o(nt,et,!0).text}function ie(et){var nt=Z?le:ce;return o(nt,+et,!0).text}var j=q.textinfo,Q=J[se],re=j.split("+"),ue=[],_e,we=function(et){return re.indexOf(et)!==-1};if(we("label")&&ue.push(oe(J[se].p)),we("text")&&(_e=S.castOption(q,Q.i,"text"),(_e===0||_e)&&ue.push(_e)),ee){var Re=+Q.rawS||Q.s,ze=Q.v,Xe=ze-Re;we("initial")&&ue.push(ie(Xe)),we("delta")&&ue.push(ie(Re)),we("final")&&ue.push(ie(ze))}if(V){we("value")&&ue.push(ie(Q.s));var tt=0;we("percent initial")&&tt++,we("percent previous")&&tt++,we("percent total")&&tt++;var it=tt>1;we("percent initial")&&(_e=S.formatPercent(Q.begR),it&&(_e+=" of initial"),ue.push(_e)),we("percent previous")&&(_e=S.formatPercent(Q.difR),it&&(_e+=" of previous"),ue.push(_e)),we("percent total")&&(_e=S.formatPercent(Q.sumR),it&&(_e+=" of total"),ue.push(_e))}return ue.join("<br>")}H.exports={plot:y,toMoveInsideBar:F}}}),ng=De({"src/traces/bar/hover.js"(Y,H){"use strict";var p=sf(),x=Mo(),S=vo(),E=ui().fillText,e=H_().getLineWidth,t=us().hoverLabelText,r=zn().BADNUM;function o(a,s,h,c,m){var d=i(a,s,h,c,m);if(d){var T=d.cd,l=T[0].trace,_=T[d.index];return d.color=n(l,_),x.getComponentMethod("errorbars","hoverInfo")(_,l,d),[d]}}function i(a,s,h,c,m){var d=a.cd,T=d[0].trace,l=d[0].t,_=c==="closest",w=T.type==="waterfall",A=a.maxHoverDistance,M=a.maxSpikeDistance,g,b,v,u,y,f,R;T.orientation==="h"?(g=h,b=s,v="y",u="x",y=ce,f=J):(g=s,b=h,v="x",u="y",f=ce,y=J);var L=T[v+"period"],z=_||L;function F(_e){return B(_e,-1)}function N(_e){return B(_e,1)}function B(_e,we){var Re=_e.w;return _e[v]+we*Re/2}function I(_e){return _e[v+"End"]-_e[v+"Start"]}var U=_?F:L?function(_e){return _e.p-I(_e)/2}:function(_e){return Math.min(F(_e),_e.p-l.bardelta/2)},O=_?N:L?function(_e){return _e.p+I(_e)/2}:function(_e){return Math.max(N(_e),_e.p+l.bardelta/2)};function X(_e,we,Re){return m.finiteRange&&(Re=0),p.inbox(_e-g,we-g,Re+Math.min(1,Math.abs(we-_e)/R)-1)}function J(_e){return X(U(_e),O(_e),A)}function se(_e){return X(F(_e),N(_e),M)}function le(_e){var we=_e[u];if(w){var Re=Math.abs(_e.rawS)||0;b>0?we+=Re:b<0&&(we-=Re)}return we}function ce(_e){var we=b,Re=_e.b,ze=le(_e);return p.inbox(Re-we,ze-we,A+(ze-we)/(ze-Re)-1)}function q(_e){var we=b,Re=_e.b,ze=le(_e);return p.inbox(Re-we,ze-we,M+(ze-we)/(ze-Re)-1)}var Z=a[v+"a"],ee=a[u+"a"];R=Math.abs(Z.r2c(Z.range[1])-Z.r2c(Z.range[0]));function V(_e){return(y(_e)+f(_e))/2}var oe=p.getDistanceFunction(c,y,f,V);if(p.getClosest(d,oe,a),a.index!==!1&&d[a.index].p!==r){z||(U=function(_e){return Math.min(F(_e),_e.p-l.bargroupwidth/2)},O=function(_e){return Math.max(N(_e),_e.p+l.bargroupwidth/2)});var ie=a.index,j=d[ie],Q=T.base?j.b+j.s:j.s;a[u+"0"]=a[u+"1"]=ee.c2p(j[u],!0),a[u+"LabelVal"]=Q;var re=l.extents[l.extents.round(j.p)];a[v+"0"]=Z.c2p(_?U(j):re[0],!0),a[v+"1"]=Z.c2p(_?O(j):re[1],!0);var ue=j.orig_p!==void 0;return a[v+"LabelVal"]=ue?j.orig_p:j.p,a.labelLabel=t(Z,a[v+"LabelVal"],T[v+"hoverformat"]),a.valueLabel=t(ee,a[u+"LabelVal"],T[u+"hoverformat"]),a.baseLabel=t(ee,j.b,T[u+"hoverformat"]),a.spikeDistance=(q(j)+se(j))/2,a[v+"Spike"]=Z.c2p(j.p,!0),E(j,T,a),a.hovertemplate=T.hovertemplate,a}}function n(a,s){var h=s.mcc||a.marker.color,c=s.mlcc||a.marker.line.color,m=e(a,s);if(S.opacity(h))return h;if(S.opacity(c)&&m)return c}H.exports={hoverPoints:o,hoverOnBars:i,getTraceColor:n}}}),xk=De({"src/traces/bar/event_data.js"(Y,H){"use strict";H.exports=function(x,S,E){return x.x="xVal"in S?S.xVal:S.x,x.y="yVal"in S?S.yVal:S.y,S.xa&&(x.xaxis=S.xa),S.ya&&(x.yaxis=S.ya),E.orientation==="h"?(x.label=x.y,x.value=x.x):(x.label=x.x,x.value=x.y),x}}}),og=De({"src/traces/bar/select.js"(Y,H){"use strict";H.exports=function(S,E){var e=S.cd,t=S.xaxis,r=S.yaxis,o=e[0].trace,i=o.type==="funnel",n=o.orientation==="h",a=[],s;if(E===!1)for(s=0;s<e.length;s++)e[s].selected=0;else for(s=0;s<e.length;s++){var h=e[s],c="ct"in h?h.ct:p(h,t,r,n,i);E.contains(c,!1,s,S)?(a.push({pointNumber:s,x:t.c2d(h.x),y:r.c2d(h.y)}),h.selected=1):h.selected=0}return a};function p(x,S,E,e,t){var r=S.c2p(e?x.s0:x.p0,!0),o=S.c2p(e?x.s1:x.p1,!0),i=E.c2p(e?x.p0:x.s0,!0),n=E.c2p(e?x.p1:x.s1,!0);return t?[(r+o)/2,(i+n)/2]:e?[o,(i+n)/2]:[(r+o)/2,n]}}}),bk=De({"src/traces/bar/index.js"(Y,H){"use strict";H.exports={attributes:Bv(),layoutAttributes:V_(),supplyDefaults:Nd().supplyDefaults,crossTraceDefaults:Nd().crossTraceDefaults,supplyLayoutDefaults:P2(),calc:_k(),crossTraceCalc:G0().crossTraceCalc,colorbar:qh(),arraysToCalcdata:xy(),plot:W0().plot,style:$d().style,styleOnSelect:$d().styleOnSelect,hoverPoints:ng().hoverPoints,eventData:xk(),selectPoints:og(),moduleType:"trace",name:"bar",basePlotModule:Gf(),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}}}),wk=De({"lib/bar.js"(Y,H){"use strict";H.exports=bk()}}),by=De({"src/traces/box/attributes.js"(Y,H){"use strict";var p=vv(),x=lf(),S=Bv(),E=Pf(),e=of().axisHoverFormat,{hovertemplateAttrs:t,templatefallbackAttrs:r}=ou(),o=Xo().extendFlat,i=x.marker,n=i.line;H.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:x.xperiod,yperiod:x.yperiod,xperiod0:x.xperiod0,yperiod0:x.yperiod0,xperiodalignment:x.xperiodalignment,yperiodalignment:x.yperiodalignment,xhoverformat:e("x"),yhoverformat:e("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:o({},i.symbol,{arrayOk:!1,editType:"plot"}),opacity:o({},i.opacity,{arrayOk:!1,dflt:1,editType:"style"}),angle:o({},i.angle,{arrayOk:!1,editType:"calc"}),size:o({},i.size,{arrayOk:!1,editType:"calc"}),color:o({},i.color,{arrayOk:!1,editType:"style"}),line:{color:o({},n.color,{arrayOk:!1,dflt:E.defaultLine,editType:"style"}),width:o({},n.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:p(),whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},showwhiskers:{valType:"boolean",editType:"calc"},offsetgroup:S.offsetgroup,alignmentgroup:S.alignmentgroup,selected:{marker:x.selected.marker,editType:"style"},unselected:{marker:x.unselected.marker,editType:"style"},text:o({},x.text,{}),hovertext:o({},x.hovertext,{}),hovertemplate:t({}),hovertemplatefallback:r(),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"},zorder:x.zorder}}}),wy=De({"src/traces/box/layout_attributes.js"(Y,H){"use strict";H.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"}}}}),Ty=De({"src/traces/box/defaults.js"(Y,H){"use strict";var p=ui(),x=Mo(),S=vo(),E=pv(),e=H0(),t=$m(),r=by();function o(s,h,c,m){function d(u,y){return p.coerce(s,h,r,u,y)}if(i(s,h,d,m),h.visible!==!1){E(s,h,m,d),d("xhoverformat"),d("yhoverformat");var T=h._hasPreCompStats;T&&(d("lowerfence"),d("upperfence")),d("line.color",(s.marker||{}).color||c),d("line.width"),d("fillcolor",S.addOpacity(h.line.color,.5));var l=!1;if(T){var _=d("mean"),w=d("sd");_&&_.length&&(l=!0,w&&w.length&&(l="sd"))}d("whiskerwidth");var A=d("sizemode"),M;A==="quartiles"&&(M=d("boxmean",l)),d("showwhiskers",A==="quartiles"),(A==="sd"||M==="sd")&&d("sdmultiple"),d("width"),d("quartilemethod");var g=!1;if(T){var b=d("notchspan");b&&b.length&&(g=!0)}else p.validate(s.notchwidth,r.notchwidth)&&(g=!0);var v=d("notched",g);v&&d("notchwidth"),n(s,h,d,{prefix:"box"}),d("zorder")}}function i(s,h,c,m){function d(X){var J=0;return X&&X.length&&(J+=1,p.isArrayOrTypedArray(X[0])&&X[0].length&&(J+=1)),J}function T(X){return p.validate(s[X],r[X])}var l=c("y"),_=c("x"),w;if(h.type==="box"){var A=c("q1"),M=c("median"),g=c("q3");h._hasPreCompStats=A&&A.length&&M&&M.length&&g&&g.length,w=Math.min(p.minRowLength(A),p.minRowLength(M),p.minRowLength(g))}var b=d(l),v=d(_),u=b&&p.minRowLength(l),y=v&&p.minRowLength(_),f=m.calendar,R={autotypenumbers:m.autotypenumbers},L,z;if(h._hasPreCompStats)switch(String(v)+String(b)){case"00":var F=T("x0")||T("dx"),N=T("y0")||T("dy");N&&!F?L="h":L="v",z=w;break;case"10":L="v",z=Math.min(w,y);break;case"20":L="h",z=Math.min(w,_.length);break;case"01":L="h",z=Math.min(w,u);break;case"02":L="v",z=Math.min(w,l.length);break;case"12":L="v",z=Math.min(w,y,l.length);break;case"21":L="h",z=Math.min(w,_.length,u);break;case"11":z=0;break;case"22":var B=!1,I;for(I=0;I<_.length;I++)if(t(_[I],f,R)==="category"){B=!0;break}if(B)L="v",z=Math.min(w,y,l.length);else{for(I=0;I<l.length;I++)if(t(l[I],f,R)==="category"){B=!0;break}B?(L="h",z=Math.min(w,_.length,u)):(L="v",z=Math.min(w,y,l.length))}break}else b>0?(L="v",v>0?z=Math.min(y,u):z=Math.min(u)):v>0?(L="h",z=Math.min(y)):z=0;if(!z){h.visible=!1;return}h._length=z;var U=c("orientation",L);h._hasPreCompStats?U==="v"&&v===0?(c("x0",0),c("dx",1)):U==="h"&&b===0&&(c("y0",0),c("dy",1)):U==="v"&&v===0?c("x0"):U==="h"&&b===0&&c("y0");var O=x.getComponentMethod("calendars","handleTraceDefaults");O(s,h,["x","y"],m)}function n(s,h,c,m){var d=m.prefix,T=p.coerce2(s,h,r,"marker.outliercolor"),l=c("marker.line.outliercolor"),_="outliers";h._hasPreCompStats?_="all":(T||l)&&(_="suspectedoutliers");var w=c(d+"points",_);w?(c("jitter",w==="all"?.3:0),c("pointpos",w==="all"?-1.5:0),c("marker.symbol"),c("marker.opacity"),c("marker.size"),c("marker.angle"),c("marker.color",h.line.color),c("marker.line.color"),c("marker.line.width"),w==="suspectedoutliers"&&(c("marker.line.outliercolor",h.marker.color),c("marker.line.outlierwidth")),c("selected.marker.color"),c("unselected.marker.color"),c("selected.marker.size"),c("unselected.marker.size"),c("text"),c("hovertext")):delete h.marker;var A=c("hoveron");(A==="all"||A.indexOf("points")!==-1)&&(c("hovertemplate"),c("hovertemplatefallback")),p.coerceSelectionMarkerOpacity(h,c)}function a(s,h){var c,m;function d(w){return p.coerce(m._input,m,r,w)}for(var T=0;T<s.length;T++){m=s[T];var l=m.type;if(l==="box"||l==="violin"){c=m._input;var _=h[l+"mode"];_==="group"&&e(c,m,h,d,_)}}}H.exports={supplyDefaults:o,crossTraceDefaults:a,handleSampleDefaults:i,handlePointsDefaults:n}}}),G_=De({"src/traces/box/layout_defaults.js"(Y,H){"use strict";var p=Mo(),x=ui(),S=wy();function E(t,r,o,i,n){for(var a=n+"Layout",s=!1,h=0;h<o.length;h++){var c=o[h];if(p.traceIs(c,a)){s=!0;break}}s&&(i(n+"mode"),i(n+"gap"),i(n+"groupgap"))}function e(t,r,o){function i(n,a){return x.coerce(t,r,S,n,a)}E(t,r,o,i,"box")}H.exports={supplyLayoutDefaults:e,_supply:E}}}),R2=De({"src/traces/box/calc.js"(Y,H){"use strict";var p=vn(),x=us(),S=gv(),E=ui(),e=zn().BADNUM,t=E._;H.exports=function(A,M){var g=A._fullLayout,b=x.getFromId(A,M.xaxis||"x"),v=x.getFromId(A,M.yaxis||"y"),u=[],y=M.type==="violin"?"_numViolins":"_numBoxes",f,R,L,z,F,N,B;M.orientation==="h"?(L=b,z="x",F=v,N="y",B=!!M.yperiodalignment):(L=v,z="y",F=b,N="x",B=!!M.xperiodalignment);var I=r(M,N,F,g[y]),U=I[0],O=I[1],X=E.distinctVals(U,F),J=X.vals,se=X.minDiff/2,le,ce,q,Z,ee,V,oe=(M.boxpoints||M.points)==="all"?E.identity:function(yr){return yr.v<le.lf||yr.v>le.uf};if(M._hasPreCompStats){var ie=M[z],j=function(yr){return L.d2c((M[yr]||[])[f])},Q=1/0,re=-1/0;for(f=0;f<M._length;f++){var ue=U[f];if(p(ue)){if(le={},le.pos=le[N]=ue,B&&O&&(le.orig_p=O[f]),le.q1=j("q1"),le.med=j("median"),le.q3=j("q3"),ce=[],ie&&E.isArrayOrTypedArray(ie[f]))for(R=0;R<ie[f].length;R++)V=L.d2c(ie[f][R]),V!==e&&(ee={v:V,i:[f,R]},a(ee,M,[f,R]),ce.push(ee));if(le.pts=ce.sort(h),q=le[z]=ce.map(c),Z=q.length,le.med!==e&&le.q1!==e&&le.q3!==e&&le.med>=le.q1&&le.q3>=le.med){var _e=j("lowerfence");le.lf=_e!==e&&_e<=le.q1?_e:m(le,q,Z);var we=j("upperfence");le.uf=we!==e&&we>=le.q3?we:d(le,q,Z);var Re=j("mean");le.mean=Re!==e?Re:Z?E.mean(q,Z):(le.q1+le.q3)/2;var ze=j("sd");le.sd=Re!==e&&ze>=0?ze:Z?E.stdev(q,Z,le.mean):le.q3-le.q1,le.lo=T(le),le.uo=l(le);var Xe=j("notchspan");Xe=Xe!==e&&Xe>0?Xe:_(le,Z),le.ln=le.med-Xe,le.un=le.med+Xe;var tt=le.lf,it=le.uf;M.boxpoints&&q.length&&(tt=Math.min(tt,q[0]),it=Math.max(it,q[Z-1])),M.notched&&(tt=Math.min(tt,le.ln),it=Math.max(it,le.un)),le.min=tt,le.max=it}else{E.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+le.q1,"median = "+le.med,"q3 = "+le.q3].join(`

Callers 9

HnFunction · 0.70
plFunction · 0.70
ZsFunction · 0.70
yoFunction · 0.70
tlFunction · 0.70
OoFunction · 0.70
ecFunction · 0.70
woFunction · 0.70
processTaskMethod · 0.70

Calls 14

mapMethod · 0.80
yoFunction · 0.70
_Class · 0.70
mFunction · 0.70
woFunction · 0.70
goFunction · 0.70
applyMethod · 0.45
concatMethod · 0.45
rangeMethod · 0.45
filterMethod · 0.45
toLngLatMethod · 0.45
deserializeMethod · 0.45

Tested by

no test coverage detected